3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - MacroBlock transfer and quantization - |
* - MacroBlock transfer and quantization - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2001 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2002-2001 Christoph Lampert <gruel@web.de> |
7 |
* 2002-2001 Peter Ross <pross@cs.rmit.edu.au> |
* 2002-2001 Michael Militzer <isibaar@xvid.org> |
8 |
|
* 2002-2001 Peter Ross <pross@xvid.org> |
9 |
|
* 2002 Daniel Smith <danielsmith@astroboymail.com> |
10 |
* |
* |
11 |
* 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 |
12 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
366 |
MBQuantIntra(const MBParam * pParam, |
MBQuantIntra(const MBParam * pParam, |
367 |
FRAMEINFO * frame, |
FRAMEINFO * frame, |
368 |
MACROBLOCK *pMB, |
MACROBLOCK *pMB, |
369 |
int16_t qcoeff[6 * 64], |
int16_t data[6 * 64], |
370 |
int16_t data[6*64]) |
int16_t qcoeff[6 * 64]) |
371 |
{ |
{ |
372 |
int i; |
int i; |
373 |
int iQuant = frame->quant; |
int iQuant = frame->quant; |
600 |
} |
} |
601 |
} |
} |
602 |
|
|
603 |
if (frame > field) { |
if (frame > (field + 350)) { |
604 |
MBFrameToField(data); |
MBFrameToField(data); |
605 |
} |
} |
606 |
|
|
607 |
return (frame > field); |
return (frame > (field + 350)); |
608 |
} |
} |
609 |
|
|
610 |
|
|