#ifndef _VIDEO_COMMON_H #define _VIDEO_COMMON_H #include "frame.h" #include "picinfo.h" #define VIDEO_PORT 3460 #ifdef BOUNDS_CHECK void bounds_error(int line, char *file, char *function); #endif int write_picture(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int startgb, int startmb); void write_gob(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int gobnum, int startmb); void write_mb(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int gobnum, int mbnum) throw(PicException_t); int read_picture(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int startgb, int startmb); void read_gob(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int gobnum, int startmb) throw (PicException_t); void read_mb(PicInfo *p, Frame *xn, Frame *xpn1, Frame *xmcn1, int gobnum, int mbnum); void write_block(short *fr, bit_io *output, int framewidth, int gquant); void read_block(short *fr, bit_io *input, int framewidth, int gquant); #endif