3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Bitstream reader/writer inlined functions and constants- |
* - Bitstream reader/writer inlined functions and constants- |
5 |
* |
* |
6 |
* Copyright (C) 2001-2003 - Peter Ross <pross@xvid.org> |
* Copyright (C) 2001-2003 Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This file is part of XviD, a free MPEG-4 video encoder/decoder |
* This program is free software ; you can redistribute it and/or modify |
9 |
* |
* it under the terms of the GNU General Public License as published by |
|
* XviD is free software; you can redistribute it and/or modify it |
|
|
* under the terms of the GNU General Public License as published by |
|
10 |
* the Free Software Foundation; either version 2 of the License, or |
* the Free Software Foundation; either version 2 of the License, or |
11 |
* (at your option) any later version. |
* (at your option) any later version. |
12 |
* |
* |
58 |
|
|
59 |
#define VIDOBJLAY_TYPE_SIMPLE 1 |
#define VIDOBJLAY_TYPE_SIMPLE 1 |
60 |
/*#define VIDOBJLAY_TYPE_SIMPLE_SCALABLE 2 */ |
/*#define VIDOBJLAY_TYPE_SIMPLE_SCALABLE 2 */ |
61 |
#define VIDOBJLAY_TYPE_CORE 3 |
/*#define VIDOBJLAY_TYPE_CORE 3 */ |
62 |
#define VIDOBJLAY_TYPE_MAIN 4 |
/*#define VIDOBJLAY_TYPE_MAIN 4 */ |
63 |
/*#define VIDOBJLAY_TYPE_NBIT 5 */ |
/*#define VIDOBJLAY_TYPE_NBIT 5 */ |
64 |
/*#define VIDOBJLAY_TYPE_ANIM_TEXT 6 */ |
/*#define VIDOBJLAY_TYPE_ANIM_TEXT 6 */ |
65 |
/*#define VIDOBJLAY_TYPE_ANIM_MESH 7 */ |
/*#define VIDOBJLAY_TYPE_ANIM_MESH 7 */ |
67 |
/*#define VIDOBJLAY_TYPE_STILL_SCALABLE 9 */ |
/*#define VIDOBJLAY_TYPE_STILL_SCALABLE 9 */ |
68 |
#define VIDOBJLAY_TYPE_ART_SIMPLE 10 |
#define VIDOBJLAY_TYPE_ART_SIMPLE 10 |
69 |
/*#define VIDOBJLAY_TYPE_CORE_SCALABLE 11 */ |
/*#define VIDOBJLAY_TYPE_CORE_SCALABLE 11 */ |
70 |
#define VIDOBJLAY_TYPE_ACE 12 |
/*#define VIDOBJLAY_TYPE_ACE 12 */ |
71 |
/*#define VIDOBJLAY_TYPE_SIMPLE_FBA 13 */ |
/*#define VIDOBJLAY_TYPE_ADVANCED_SCALABLE_TEXTURE 13 */ |
72 |
|
/*#define VIDOBJLAY_TYPE_SIMPLE_FBA 14 */ |
73 |
|
/*#define VIDEOJLAY_TYPE_SIMPLE_STUDIO 15*/ |
74 |
|
/*#define VIDEOJLAY_TYPE_CORE_STUDIO 16*/ |
75 |
|
#define VIDOBJLAY_TYPE_ASP 17 |
76 |
|
/*#define VIDOBJLAY_TYPE_FGS 18*/ |
77 |
|
|
78 |
|
|
79 |
/*#define VIDOBJLAY_AR_SQUARE 1 */ |
/*#define VIDOBJLAY_AR_SQUARE 1 */ |
128 |
int BitstreamReadHeaders(Bitstream * bs, |
int BitstreamReadHeaders(Bitstream * bs, |
129 |
DECODER * dec, |
DECODER * dec, |
130 |
uint32_t * rounding, |
uint32_t * rounding, |
|
uint32_t * reduced_resolution, |
|
131 |
uint32_t * quant, |
uint32_t * quant, |
132 |
uint32_t * fcode_forward, |
uint32_t * fcode_forward, |
133 |
uint32_t * fcode_backward, |
uint32_t * fcode_backward, |
142 |
void BitstreamWriteVopHeader(Bitstream * const bs, |
void BitstreamWriteVopHeader(Bitstream * const bs, |
143 |
const MBParam * pParam, |
const MBParam * pParam, |
144 |
const FRAMEINFO * const frame, |
const FRAMEINFO * const frame, |
145 |
int vop_coded); |
int vop_coded, |
146 |
|
unsigned int quant); |
147 |
|
|
148 |
void BitstreamWriteUserData(Bitstream * const bs, |
void BitstreamWriteUserData(Bitstream * const bs, |
149 |
uint8_t * data, |
uint8_t * data, |