📄 mom_structs.h
字号:
#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
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -