mom_structs.h
上传用户:tuheem
上传日期:2007-05-01
资源大小:21889k
文件大小:1k
- #ifndef _MOM_STRUCTS_H_
- #define _MOM_STRUCTS_H_
- #include "momusys.h"
- #define VERSION 1
- enum image_type {SHORT_TYPE,FLOAT_TYPE,UCHAR_TYPE};
- typedef enum image_type ImageType;
- union image_data
- {
- SInt *s;
- Float *f;
- UChar *u;
- };
- typedef union image_data ImageData;
- struct image
- {
- Int version;
- UInt x,y;
- Char upperodd;
- Char grid;
- SInt *f;
- ImageData *data;
- ImageType type;
- };
- typedef struct image Image;
- typedef struct image ImageI;
- typedef struct image ImageF;
- struct vop
- {
-
- Int prediction_type;
- Int mod_time_base;
- Float time_inc;
- Int rounding_type;
- Int width;
- Int height;
- Int hor_spat_ref;
- Int ver_spat_ref;
-
- Int intra_dc_vlc_thr;
- Int quantizer;
- Int intra_quantizer;
-
-
- Int time_increment_resolution;
- Int intra_acdc_pred_disable;
- Int sr_for;
- Int fcode_for;
- Int quant_precision;
- Int bits_per_pixel;
-
- Image *y_chan;
- Image *u_chan;
- Image *v_chan;
- };
- typedef struct vop Vop;
- struct object_layer_cfg
- {
- Float frame_rate;
- Int M;
- Int start_frame;
- Int end_frame;
- Int bit_rate;
- Int frame_skip;
- Int quantizer;
- Int intra_quantizer;
- Int intra_period;
- Int modulo_time_base[2];
- };
- typedef struct object_layer_cfg VolConfig;
- #include "mom_util.h"
- #include "mom_access.h"
- #endif