3 |
* XVID MPEG-4 VIDEO CODEC |
* XVID MPEG-4 VIDEO CODEC |
4 |
* - Custom matrix quantization functions - |
* - Custom matrix quantization functions - |
5 |
* |
* |
6 |
* Copyright(C) 2002 Michael Militzer |
* Copyright(C) 2002 Michael Militzer <isibaar@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 |
28 |
* along with this program ; if not, write to the Free Software |
* along with this program ; if not, write to the Free Software |
29 |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA |
30 |
* |
* |
31 |
* $Id: quant_matrix.c,v 1.8 2002-09-08 17:28:22 edgomez Exp $ |
* $Id: quant_matrix.c,v 1.10 2002-10-19 11:41:11 edgomez Exp $ |
32 |
* |
* |
33 |
****************************************************************************/ |
****************************************************************************/ |
34 |
|
|
178 |
intra_matrix[i] = (int16_t) matrix[i]; |
intra_matrix[i] = (int16_t) matrix[i]; |
179 |
intra_matrix_fix[i] = FIX(intra_matrix[i]); |
intra_matrix_fix[i] = FIX(intra_matrix[i]); |
180 |
} |
} |
181 |
return custom_intra_matrix | change; |
return /*custom_intra_matrix |*/ change; |
182 |
} |
} |
183 |
|
|
184 |
|
|
198 |
inter_matrix[i] = (int16_t) matrix[i]; |
inter_matrix[i] = (int16_t) matrix[i]; |
199 |
inter_matrix_fix[i] = FIX(inter_matrix[i]); |
inter_matrix_fix[i] = FIX(inter_matrix[i]); |
200 |
} |
} |
201 |
return custom_inter_matrix | change; |
return /*custom_inter_matrix |*/ change; |
202 |
} |
} |