mom_structs.h

来自「VC++视频开发实例集锦(包括“远程视频监控”"语音识别系统&quot」· C头文件 代码 · 共 73 行

H
73
字号
#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 + =
减小字号Ctrl + -
显示快捷键?