From 6eae9c1d3946771c577faeda9e4394a26063dd22 Mon Sep 17 00:00:00 2001 From: Andreas Rheinhardt Date: Wed, 10 Feb 2021 00:31:46 +0100 Subject: avcodec/jpegtables: Move ff_mjpeg_build_huffman_codes to mjpegenc_common Since g2meet.c doesn't use it any more, only encoders use it and the place for their common code is mjpegenc_common.c. Signed-off-by: Andreas Rheinhardt --- libavcodec/jpegtables.c | 21 --------------------- libavcodec/jpegtables.h | 4 ---- libavcodec/mjpegenc_common.c | 21 +++++++++++++++++++++ libavcodec/mjpegenc_common.h | 3 +++ 4 files changed, 24 insertions(+), 25 deletions(-) (limited to 'libavcodec') diff --git a/libavcodec/jpegtables.c b/libavcodec/jpegtables.c index e44bc7a22a..ef3f8dee20 100644 --- a/libavcodec/jpegtables.c +++ b/libavcodec/jpegtables.c @@ -122,24 +122,3 @@ const uint8_t avpriv_mjpeg_val_ac_chrominance[] = 0xea, 0xf2, 0xf3, 0xf4, 0xf5, 0xf6, 0xf7, 0xf8, 0xf9, 0xfa }; - -/* isn't this function nicer than the one in the libjpeg ? */ -void ff_mjpeg_build_huffman_codes(uint8_t *huff_size, uint16_t *huff_code, - const uint8_t *bits_table, - const uint8_t *val_table) -{ - int i, j, k,nb, code, sym; - - k = 0; - code = 0; - for(i=1;i<=16;i++) { - nb = bits_table[i]; - for(j=0;j