3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Bitstream reader/writer functions - |
* - Bitstream reader/writer functions - |
5 |
* |
* |
6 |
* Copyright (C) 2001-2002 - Peter Ross <pross@cs.rmit.edu.au> |
* Copyright (C) 2001-2002 - Peter Ross <pross@xvid.org> |
7 |
* |
* |
8 |
* This program is an implementation of a part of one or more MPEG-4 |
* This program is an implementation of a part of one or more MPEG-4 |
9 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
44 |
log2bin(uint32_t value) |
log2bin(uint32_t value) |
45 |
{ |
{ |
46 |
/* Changed by Chenm001 */ |
/* Changed by Chenm001 */ |
47 |
#ifndef WIN32 |
#if !defined(_MSC_VER) |
48 |
int n = 0; |
int n = 0; |
49 |
|
|
50 |
while (value) { |
while (value) { |
417 |
|
|
418 |
|
|
419 |
if (vol_ver_id != 1) { |
if (vol_ver_id != 1) { |
420 |
DEBUG("QUARTERPEL BITSTREAM"); |
DPRINTF(DPRINTF_DEBUG, "QUARTERPEL BITSTREAM"); |
421 |
dec->quarterpel = BitstreamGetBit(bs); // quarter_sample |
dec->quarterpel = BitstreamGetBit(bs); // quarter_sample |
422 |
} |
} |
423 |
else |
else |