gif_seq_hdr_new
Allocate a new GIF sequence header.
gif_seq_hdr_free hdr
Frees the memory allocated for the GIF sequence header hdr.
gif_img_hdr_new
Allocate a new GIF Image Header.
gif_img_hdr_free hdr
Deallocate the GifImgHdr pointed to by hdr.
gif_seq_hdr_parse bp hdr
Assuming that the corresponding BitStreams position is at the beginning of a GIF file, BitParser bp will parse its BitStream and initialize the sequence header structure hdr. After parsing, the BitParser's current bit position is right after the end of the sequence header.
gif_ct_parse bp size redmap greenmap bluemap
Assuming the BitParser bp is pointing to the beginning of a color table (global or local) of size size, parse the color table into the three ImageMaps. The BitParser's new position will be immediately following the color table.
gif_img_hdr_parse bp hdr
Assuming that the corresponding BitStreams position is at the beginning of a GIF image header (an image DESCRIPTOR or a graphical control extension), BitParser bp will parse its BitStream and initialize the GIF image header structure hdr. After parsing, the BitParser's current bit position is right after the end of the image header.
gif_img_interlacaed_parse bp seqHdr imgHdr mapBuf
Assuming that the corresponding BitStream's position is at the beginning of an interlaced image data, BitParser bp will parse its BitStream and initialize the ByteImage mapBuf with ColorTable indices corresponding to the ImageMaps containing the ColorTable data. After parsing, the BitParser's current bit position is immediately following the end of the image data.
gif_img_non_interlacaed_parse bp seqHdr imgHdr mapBuf
Assuming that the corresponding BitStream's position is at the beginning of a non-interlaced image data, BitParser bp will parse its BitStream and initialize the ByteImage mapBuf with ColorTable indices corresponding to the ImageMaps containing the ColorTable data. After parsing, the BitParser's current bit position is immediately following the end of the image data.
gif_seq_hdr_encode hdr bp
Encodes the content of the sequence header gifHdr to the output BitStream attached to BitParser bp.
gif_seq_loop_encode bp
Encodes the Netscape application header that indicates the the animated GIF sequence should be played in a loop.
gif_seq_trailer_encode bp
Encodes a GIF_TRAILER, indicating the end of a GIF sequence.
gif_ct_encode size redmap greenmap bluemap bp
Encodes the contents of the three ImageMaps to the position in the BitStream pointed to by BitParser bp.
gif_img_hdr_encode hdr bp
Encodes the content of the picture header hdr to the output BitStream attached to BitParser bp.
gif_img_encode bp buf
Encodes the Color Table indices in ByteImage buf using BitParser bp.
gif_seq_hdr_get_width seqHdr
gif_seq_hdr_get_height seqHdr
gif_seq_hdr_get_ct_flag seqHdr
gif_seq_hdr_get_ct_size seqHdr
gif_seq_hdr_get_ct_sorted seqHdr
gif_seq_hdr_get_resolution seqHdr
gif_seq_hdr_get_background_color seqHdr
gif_seq_hdr_get_aspect_ratio seqHdr
gif_seq_hdr_get_version seqHdr
These information operations return the fields of the GIF sequence header.
gif_seq_hdr_set_width seqHdr width
gif_seq_hdr_set_height seqHdr height
gif_seq_hdr_set_ct_flag seqHdr ctFlag
gif_seq_hdr_set_ct_size seqHdr ctSize
gif_seq_hdr_set_ct_sorted seqHdr ctSorted
gif_seq_hdr_set_resolution seqHdr resolution
gif_seq_hdr_set_background_color seqHdr bgColor
gif_seq_hdr_set_aspect_ratio seqHdr aspectRatio
gif_seq_hdr_set_version seqHdr version
These primtives intializate various fields in the GIF sequence header.
gif_img_hdr_get_width imgHdr
gif_img_hdr_get_height imgHdr
gif_img_hdr_get_ct_flag imgHdr
gif_img_hdr_get_bits_per_pixel imgHdr
gif_img_hdr_get_ct_size imgHdr
gif_img_hdr_get_left_position imgHdr
gif_img_hdr_get_top_position imgHdr
gif_img_hdr_get_interlaced imgHdr
gif_img_hdr_get_graphic_control_flag imgHdr
gif_img_hdr_get_disposal_method imgHdr
gif_img_hdr_get_user_input_flag imgHdr
gif_img_hdr_get_transparent_color_flag imgHdr
gif_img_hdr_get_delay_time imgHdr
gif_img_hdr_get_transparent_color_index imgHdr
These information operations return the corresponding fields in the GIF image header.
gif_img_hdr_set_width imgHdr width
gif_img_hdr_set_height imgHdr height
gif_img_hdr_set_ct_flag imgHdr ctFlag
gif_img_hdr_set_bits_per_pixel imgHdr bitsPerPixels
gif_img_hdr_set_ct_size imgHdr ctSize
gif_img_hdr_set_left_position imgHdr leftPosition
gif_img_hdr_set_top_position imgHdr topPosition
gif_img_hdr_set_interlaced imgHdr interlaced
gif_img_hdr_set_graphic_control_flag imgHdr graphicControlFlag
gif_img_hdr_set_disposal_method imgHdr disposalMethod
gif_img_hdr_set_user_input_flag imgHdr userInputFlag
gif_img_hdr_set_transparent_color_flag imgHdr transparentColorFlag
gif_img_hdr_set_delay_time imgHdr delayTime
gif_img_hdr_set_transparent_color_index imgHdr transparentColorIndex
These initialization primitives set the fields in the GIF image header.
gif_img_skip bp
Assuming the BitParser bp positioned at the beginning of an image header, skips the image. The BitParser's current bit position is set to the start of the next image header, or the GIF sequence trailer.
gif_img_find bp
Advances the BitParser bp to the beginning of the next GIF image header (by finding GIF_IMG_SEPARATOR or GIF_GRAPHIC_CONTROL_LABEL in the BitStream it is attached to). Returns DVM_GIF_OK if successful, or DVM_GIF_EOF_ERROR if a GIF_TRAILER is found first.
Last updated : Saturday, November 14, 1998, 07:50 PM