20 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
21 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
22 |
* |
* |
23 |
* $Id: bitstream.c,v 1.39.2.13 2003-06-12 14:16:41 Isibaar Exp $ |
* $Id: bitstream.c,v 1.39.2.14 2003-06-29 16:17:51 chl Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
1185 |
if (vol_ver_id != 1) |
if (vol_ver_id != 1) |
1186 |
{ if ((pParam->vol_flags & XVID_VOL_GMC)) |
{ if ((pParam->vol_flags & XVID_VOL_GMC)) |
1187 |
{ BitstreamPutBits(bs, 2, 2); /* sprite_enable=='GMC' */ |
{ BitstreamPutBits(bs, 2, 2); /* sprite_enable=='GMC' */ |
1188 |
BitstreamPutBits(bs, 2, 6); /* no_of_sprite_warping_points */ |
BitstreamPutBits(bs, 3, 6); /* no_of_sprite_warping_points */ |
1189 |
BitstreamPutBits(bs, 3, 2); /* sprite_warping_accuracy 0==1/2, 1=1/4, 2=1/8, 3=1/16 */ |
BitstreamPutBits(bs, 3, 2); /* sprite_warping_accuracy 0==1/2, 1=1/4, 2=1/8, 3=1/16 */ |
1190 |
BitstreamPutBit(bs, 0); /* sprite_brightness_change (not supported) */ |
BitstreamPutBit(bs, 0); /* sprite_brightness_change (not supported) */ |
1191 |
|
|
1322 |
if (frame->coding_type == S_VOP) { |
if (frame->coding_type == S_VOP) { |
1323 |
if (1) { /* no_of_sprite_warping_points>=1 (we use 2!) */ |
if (1) { /* no_of_sprite_warping_points>=1 (we use 2!) */ |
1324 |
int k; |
int k; |
1325 |
for (k=0;k<2;k++) |
for (k=0;k<3;k++) |
1326 |
{ |
{ |
1327 |
bs_put_spritetrajectory(bs, frame->warp.duv[k].x ); /* du[k] */ |
bs_put_spritetrajectory(bs, frame->warp.duv[k].x ); /* du[k] */ |
1328 |
WRITE_MARKER(); |
WRITE_MARKER(); |