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: adapt_quant.c,v 1.8 2002-09-20 19:58:36 edgomez Exp $ |
* $Id: adapt_quant.c,v 1.9 2002-09-20 20:17:22 edgomez Exp $ |
32 |
* |
* |
33 |
****************************************************************************/ |
****************************************************************************/ |
34 |
|
|
125 |
if (!(quant = (float *) malloc(mb_width * mb_height * sizeof(float)))) |
if (!(quant = (float *) malloc(mb_width * mb_height * sizeof(float)))) |
126 |
return(-1); |
return(-1); |
127 |
|
|
128 |
if(!(val = (float *) malloc(mb_width * mb_height * sizeof(float)))) |
if(!(val = (float *) malloc(mb_width * mb_height * sizeof(float)))) { |
129 |
|
free(quant); |
130 |
return(-1); |
return(-1); |
131 |
|
} |
132 |
|
|
133 |
for (k = 0; k < mb_height; k++) { |
for (k = 0; k < mb_height; k++) { |
134 |
for (l = 0; l < mb_width; l++) // do this for all macroblocks individually |
for (l = 0; l < mb_width; l++) // do this for all macroblocks individually |