comparison dnxhddec.c @ 5463:521465ec12e0 libavcodec

should be more correct
author bcoudurier
date Sat, 04 Aug 2007 12:43:31 +0000
parents 3e15e577ca32
children 75940bbbecfc
comparison
equal deleted inserted replaced
5462:4c4d00a98ab1 5463:521465ec12e0
300 300
301 static int dnxhd_decode_macroblocks(DNXHDContext *ctx, uint8_t *buf, int buf_size) 301 static int dnxhd_decode_macroblocks(DNXHDContext *ctx, uint8_t *buf, int buf_size)
302 { 302 {
303 int x, y; 303 int x, y;
304 for (y = 0; y < ctx->mb_height; y++) { 304 for (y = 0; y < ctx->mb_height; y++) {
305 memset(ctx->last_dc, 4, sizeof(ctx->last_dc)); // 4 for levels +128 305 ctx->last_dc[0] =
306 ctx->last_dc[1] =
307 ctx->last_dc[2] = 1024; // 1024 for levels +128
306 init_get_bits(&ctx->gb, buf + ctx->mb_scan_index[y], (buf_size - ctx->mb_scan_index[y]) << 3); 308 init_get_bits(&ctx->gb, buf + ctx->mb_scan_index[y], (buf_size - ctx->mb_scan_index[y]) << 3);
307 for (x = 0; x < ctx->mb_width; x++) { 309 for (x = 0; x < ctx->mb_width; x++) {
308 //START_TIMER; 310 //START_TIMER;
309 dnxhd_decode_macroblock(ctx, x, y); 311 dnxhd_decode_macroblock(ctx, x, y);
310 //STOP_TIMER("decode macroblock"); 312 //STOP_TIMER("decode macroblock");