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: quant_matrix.c,v 1.15 2006-07-10 08:09:59 syskin Exp $ |
* $Id: quant_matrix.c,v 1.16 2008-11-26 01:04:34 Isibaar Exp $ |
24 |
* |
* |
25 |
****************************************************************************/ |
****************************************************************************/ |
26 |
|
|
127 |
|
|
128 |
for (i = 0; i < 64; i++) { |
for (i = 0; i < 64; i++) { |
129 |
uint32_t div = intra_matrix[i]*quant; |
uint32_t div = intra_matrix[i]*quant; |
130 |
intra_matrix_rec[i] = ((1<<SCALEBITS) + (div>>1))/div; |
intra_matrix_rec[i] = ((uint32_t)((1<<SCALEBITS) + (div>>1)))/div; |
131 |
} |
} |
132 |
} |
} |
133 |
|
|