ref: 96f6a87358df7183b9070a8441cce4a2c2e46541
parent: 8f68c407604a7584cbd9c0b2323530b2451b24eb
author: giles <giles@ded80894-8fb9-0310-811b-c03f3676ab4d>
date: Mon Mar 24 19:17:45 EST 2003
add some comments git-svn-id: http://svn.ghostscript.com/jbig2dec/trunk@226 ded80894-8fb9-0310-811b-c03f3676ab4d
--- a/jbig2_segment.c
+++ b/jbig2_segment.c
@@ -134,7 +134,7 @@
int index, index_max = ctx->segment_index - 1;
const Jbig2Ctx *global_ctx = ctx->global_ctx;
- /* FIXME: binary search would be better? */
+ /* FIXME: binary search would be better */
for (index = index_max; index >= 0; index--)
if (ctx->segments[index]->number == number)
return (ctx->segments[index]);
@@ -148,6 +148,7 @@
return NULL;
}
+/* parse the generic portion of a region segment data header */
void
jbig2_get_region_segment_info(Jbig2RegionSegmentInfo *info,
const byte *segment_data)
@@ -160,6 +161,7 @@
info->flags = segment_data[16];
}
+/* dispatch code for extension segment parsing */
int jbig2_parse_extension_segment(Jbig2Ctx *ctx, Jbig2Segment *segment,
const uint8_t *segment_data)
{
@@ -193,6 +195,7 @@
return 0;
}
+/* general segment parsing dispatch */
int jbig2_parse_segment (Jbig2Ctx *ctx, Jbig2Segment *segment,
const uint8_t *segment_data)
{