Mercurial > libavcodec.hg
comparison dnxhddec.c @ 5793:33c615713e26 libavcodec
merge
author | bcoudurier |
---|---|
date | Mon, 08 Oct 2007 12:14:43 +0000 |
parents | aa620757cceb |
children | 8412118b41d3 |
comparison
equal
deleted
inserted
replaced
5792:aa620757cceb | 5793:33c615713e26 |
---|---|
199 //av_log(ctx->avctx, AV_LOG_DEBUG, "level %d, weigth %d\n", level, weigth_matrix[i]); | 199 //av_log(ctx->avctx, AV_LOG_DEBUG, "level %d, weigth %d\n", level, weigth_matrix[i]); |
200 level = (2*level+1) * qscale * weigth_matrix[i]; | 200 level = (2*level+1) * qscale * weigth_matrix[i]; |
201 if (weigth_matrix[i] != 32) // FIXME 10bit | 201 if (weigth_matrix[i] != 32) // FIXME 10bit |
202 level += 32; | 202 level += 32; |
203 level >>= 6; | 203 level >>= 6; |
204 level = (level^sign) - sign; | |
205 //av_log(NULL, AV_LOG_DEBUG, "i %d, j %d, end level %d\n", i, j, level); | 204 //av_log(NULL, AV_LOG_DEBUG, "i %d, j %d, end level %d\n", i, j, level); |
206 block[j] = level; | 205 block[j] = (level^sign) - sign; |
207 } | 206 } |
208 } | 207 } |
209 | 208 |
210 static int dnxhd_decode_macroblock(DNXHDContext *ctx, int x, int y) | 209 static int dnxhd_decode_macroblock(DNXHDContext *ctx, int x, int y) |
211 { | 210 { |