4 |
* - MacroBlock transfer and quantization - |
* - MacroBlock transfer and quantization - |
5 |
* |
* |
6 |
* Copyright(C) 2002-2001 Michael Militzer <isibaar@xvid.org> |
* Copyright(C) 2002-2001 Michael Militzer <isibaar@xvid.org> |
7 |
* 2002-2001 Peter Ross <pross@cs.rmit.edu.au> |
* 2002-2001 Peter Ross <pross@xvid.org> |
8 |
* |
* |
9 |
* 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 |
10 |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
* Video tools as specified in ISO/IEC 14496-2 standard. Those intending |
29 |
* along with this program; if not, write to the Free Software |
* along with this program; if not, write to the Free Software |
30 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
31 |
* |
* |
32 |
* $Id: mbtransquant.c,v 1.12 2002-09-05 21:44:11 edgomez Exp $ |
* $Id: mbtransquant.c,v 1.17 2002-10-16 20:58:22 h Exp $ |
33 |
* |
* |
34 |
****************************************************************************/ |
****************************************************************************/ |
35 |
|
|
364 |
MBQuantIntra(const MBParam * pParam, |
MBQuantIntra(const MBParam * pParam, |
365 |
FRAMEINFO * frame, |
FRAMEINFO * frame, |
366 |
MACROBLOCK *pMB, |
MACROBLOCK *pMB, |
367 |
int16_t qcoeff[6 * 64], |
int16_t data[6 * 64], |
368 |
int16_t data[6*64]) |
int16_t qcoeff[6 * 64]) |
369 |
{ |
{ |
370 |
int i; |
int i; |
371 |
int iQuant = frame->quant; |
int iQuant = frame->quant; |
598 |
} |
} |
599 |
} |
} |
600 |
|
|
601 |
if (frame > field) { |
if (frame > (field + 350)) { |
602 |
MBFrameToField(data); |
MBFrameToField(data); |
603 |
} |
} |
604 |
|
|
605 |
return (frame > field); |
return (frame > (field + 350)); |
606 |
} |
} |
607 |
|
|
608 |
|
|