59 |
|
|
60 |
// comment any #defs we dont use |
// comment any #defs we dont use |
61 |
|
|
62 |
|
/* start codes */ |
63 |
|
|
64 |
#define VIDOBJ_START_CODE 0x00000100 /* ..0x0000011f */ |
#define VIDOBJ_START_CODE 0x00000100 /* ..0x0000011f */ |
65 |
#define VIDOBJLAY_START_CODE 0x00000120 /* ..0x0000012f */ |
#define VIDOBJLAY_START_CODE 0x00000120 /* ..0x0000012f */ |
66 |
#define VISOBJSEQ_START_CODE 0x000001b0 |
#define VISOBJSEQ_START_CODE 0x000001b0 |
69 |
#define GRPOFVOP_START_CODE 0x000001b3 |
#define GRPOFVOP_START_CODE 0x000001b3 |
70 |
//#define VIDSESERR_ERROR_CODE 0x000001b4 |
//#define VIDSESERR_ERROR_CODE 0x000001b4 |
71 |
#define VISOBJ_START_CODE 0x000001b5 |
#define VISOBJ_START_CODE 0x000001b5 |
72 |
//#define SLICE_START_CODE 0x000001b7 |
#define VOP_START_CODE 0x000001b6 |
73 |
//#define EXT_START_CODE 0x000001b8 |
//#define STUFFING_START_CODE 0x000001c3 |
74 |
|
|
75 |
|
|
76 |
#define VISOBJ_TYPE_VIDEO 1 |
#define VISOBJ_TYPE_VIDEO 1 |
93 |
//#define VIDOBJLAY_TYPE_CORE_SCALABLE 11 |
//#define VIDOBJLAY_TYPE_CORE_SCALABLE 11 |
94 |
#define VIDOBJLAY_TYPE_ACE 12 |
#define VIDOBJLAY_TYPE_ACE 12 |
95 |
//#define VIDOBJLAY_TYPE_SIMPLE_FBA 13 |
//#define VIDOBJLAY_TYPE_SIMPLE_FBA 13 |
96 |
|
#define VIDOBJLAY_TYPE_ASP 17 |
97 |
|
|
98 |
|
|
99 |
//#define VIDOBJLAY_AR_SQUARE 1 |
//#define VIDOBJLAY_AR_SQUARE 1 |
115 |
#define SPRITE_GMC 2 |
#define SPRITE_GMC 2 |
116 |
|
|
117 |
|
|
|
#define VO_START_CODE 0x8 |
|
|
#define VOL_START_CODE 0x12 |
|
|
#define VOP_START_CODE 0x1b6 |
|
118 |
|
|
119 |
#define READ_MARKER() BitstreamSkip(bs, 1) |
#define READ_MARKER() BitstreamSkip(bs, 1) |
120 |
#define WRITE_MARKER() BitstreamPutBit(bs, 1) |
#define WRITE_MARKER() BitstreamPutBit(bs, 1) |
150 |
uint32_t * fcode_forward, |
uint32_t * fcode_forward, |
151 |
uint32_t * fcode_backward, |
uint32_t * fcode_backward, |
152 |
uint32_t * intra_dc_threshold, |
uint32_t * intra_dc_threshold, |
153 |
VECTOR * gmc_mv); |
WARPPOINTS * gmc_warp); |
154 |
|
|
155 |
|
|
156 |
void BitstreamWriteVolHeader(Bitstream * const bs, |
void BitstreamWriteVolHeader(Bitstream * const bs, |
157 |
const MBParam * pParam, |
const MBParam * pParam); |
|
const FRAMEINFO * const frame); |
|
158 |
|
|
159 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
160 |
const MBParam * pParam, |
const MBParam * pParam, |