summaryrefslogtreecommitdiff
path: root/libavcodec/dnxhddec.c
diff options
context:
space:
mode:
authorChristophe Gisquet <christophe.gisquet@gmail.com>2015-09-27 10:09:02 +0200
committerMichael Niedermayer <michael@niedermayer.cc>2015-09-27 12:03:00 +0200
commit8e8ed57ea7d33fa2b872884ead5ec3033637ce92 (patch)
tree8316b42e0d4b6e7dbae5c48bde2f3121d3bad6f3 /libavcodec/dnxhddec.c
parent23acb982a3c79e993ed45bffde4b1cfc574402df (diff)
downloadffmpeg-8e8ed57ea7d33fa2b872884ead5ec3033637ce92.tar.gz
dnxhddec: remove unused qscale parameter
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavcodec/dnxhddec.c')
-rw-r--r--libavcodec/dnxhddec.c25
1 files changed, 12 insertions, 13 deletions
diff --git a/libavcodec/dnxhddec.c b/libavcodec/dnxhddec.c
index fa9340721c..34cf379884 100644
--- a/libavcodec/dnxhddec.c
+++ b/libavcodec/dnxhddec.c
@@ -63,7 +63,7 @@ typedef struct DNXHDContext {
int act;
void (*decode_dct_block)(const struct DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale);
+ int n);
} DNXHDContext;
#define DNXHD_VLC_BITS 9
@@ -71,13 +71,13 @@ typedef struct DNXHDContext {
static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale);
+ int n);
static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale);
+ int n);
static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale);
+ int n);
static av_cold int dnxhd_decode_init(AVCodecContext *avctx)
{
@@ -272,7 +272,6 @@ static int dnxhd_decode_header(DNXHDContext *ctx, AVFrame *frame,
static av_always_inline void dnxhd_decode_dct_block(const DNXHDContext *ctx,
RowContext *row,
int16_t *block, int n,
- int qscale,
int index_bits,
int level_bias,
int level_shift)
@@ -366,23 +365,23 @@ static av_always_inline void dnxhd_decode_dct_block(const DNXHDContext *ctx,
static void dnxhd_decode_dct_block_8(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale)
+ int n)
{
- dnxhd_decode_dct_block(ctx, row, block, n, qscale, 4, 32, 6);
+ dnxhd_decode_dct_block(ctx, row, block, n, 4, 32, 6);
}
static void dnxhd_decode_dct_block_10(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale)
+ int n)
{
- dnxhd_decode_dct_block(ctx, row, block, n, qscale, 6, 8, 4);
+ dnxhd_decode_dct_block(ctx, row, block, n, 6, 8, 4);
}
static void dnxhd_decode_dct_block_10_444(const DNXHDContext *ctx,
RowContext *row, int16_t *block,
- int n, int qscale)
+ int n)
{
- dnxhd_decode_dct_block(ctx, row, block, n, qscale, 6, 32, 6);
+ dnxhd_decode_dct_block(ctx, row, block, n, 6, 32, 6);
}
static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row,
@@ -421,12 +420,12 @@ static int dnxhd_decode_macroblock(const DNXHDContext *ctx, RowContext *row,
for (i = 0; i < 8; i++) {
ctx->bdsp.clear_block(row->blocks[i]);
- ctx->decode_dct_block(ctx, row, row->blocks[i], i, qscale);
+ ctx->decode_dct_block(ctx, row, row->blocks[i], i);
}
if (ctx->is_444) {
for (; i < 12; i++) {
ctx->bdsp.clear_block(row->blocks[i]);
- ctx->decode_dct_block(ctx, row, row->blocks[i], i, qscale);
+ ctx->decode_dct_block(ctx, row, row->blocks[i], i);
}
}