00001 /* VID_WRAPPER.H */ 00002 00003 #ifndef _VID_WRAPPER_H_ 00004 #define _VID_WRAPPER_H_ 00005 00006 /* Function Prototypes */ 00007 00008 static int filelen(char *fn); 00009 /* 00010 * Returns the length of a file. 00011 */ 00012 00013 static char *stripext(char *fn); 00014 /* 00015 * Strips the file extension (.*) from the end of a filename. 00016 * Won't nullify the string (which is good). 00017 */ 00018 00019 static void config_vc(video_codec *v); 00020 /* 00021 * Get configuration options for video coder. 00022 */ 00023 00024 00025 int FindFrameSkip(int last); 00026 /* 00027 * Used to advance frame counter to code a frame. 00028 */ 00029 00030 video_codec *new_video_codec(char *name); 00031 /* 00032 * This function sets up a new video codec and returns a pointer to it. 00033 * It will do all the initialization stuff that would have been done 00034 * in the main() procedure of TMN. 00035 * 00036 * Note: Ignoring OFFLINE_RATE_CONTROL stuff while I make changes. 00037 * This will probably break OFFLINE_RATE_CONTROL, but that doesn't 00038 * matter because this system is going to be used in an online 00039 * matter only anyways. 00040 */ 00041 00042 void code_video(video_codec *v); 00043 /* 00044 * Main video coding function. Called a lot of times. 00045 * 00046 */ 00047 00048 void close_video_codec(video_codec *v); 00049 /* 00050 * does just what it says 00051 */ 00052 00053 void decode_video(video_codec *bob); 00054 /* 00055 * Read any data in and save it. 00056 */ 00057 00058 void set_frames(video_codec *v); 00059 /* 00060 * set the number of frames to process 00061 */ 00062 00063 #endif