avi_file_open filename
Opens an existing avi file filename for reading. Returns a handle to the avi file for use in other calls.
avi_file_create filename
Creates an avi file filename for writing. In case the file exists, it is truncated. Returns a handle to the avi file for use in other calls.
avi_file_close avifile
Closes the file and frees memory associated with handle aviFile
avi_stream_open avifile streamnum
Opens the streamnum -th stream in the avi file aviFile, where the first stream is numbered 0. This stream must already exist in the file aviFile. Returns a handle to the avi stream for use in other calls.
avi_stream_close avistream
Closes the stream and frees memory associated with handle aviStream
avi_video_stream_create avifile codec w h keyinterval quality bitrate
Create a video stream in the file aviFile, using codec. The frame width and height are given by w and h. The keyinterval specifies the number of frames between key frames, and is used by some codecs. quality is a number between 0 and 100, higher numbers indicating better desired quality. Finally, bitrate is the desired bit rate of the stream in bits per second. The codec value is the short textual form of the coded as used by windows - e.g., "iv50" for Indeo Video 5.0. A handle to to the created stream is returned.
avi_stream_start_decode avistream
This should be called prior to calling any functions to decode any frames.
avi_stream_stop_decode avistream
This should be called after decoding frames in the stream is complete Frees up memory allocated by AviStreamStartDecode
avi_video_frame_read avistream r g b
Decodes the next video frame in the stream and fills in the ByteImages r, g, b with its contents.
avi_video_frame_write avistream r g b
Encodes the next frame given in the ByteImages r, g, b and writes them out to the stream.
avi_video_frame_seek avistream frameno
Seeks to the frame position given by frameno. Also returns this frame position.
avi_video_frame_tell avistream
Returns the current frame position in the stream.
avi_video_frame_skip avistream
Skips the next frame position in the stream.
avi_video_frame_rewind avistream
Sets the frame position to the beginning of the stream.
avi_stream_get_type avistream
avi_stream_get_codec avistream
avi_stream_get_length avistream
avi_stream_get_width avistream
avi_stream_get_height avistream
avi_stream_get_fps avistream
These functions (macros in the tcl version) get the corresponding fields from the AviStream and AviVideoStream structure.
Last updated : Saturday, November 14, 1998, 11:20 PM