Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/FFmpeg/FFmpeg.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-05 19:41:18 +0300
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2022-10-09 20:28:11 +0300
commit5bd55b488fe5e4bbeb87dbe1d47eb6cdafa7bcd2 (patch)
tree2f1fb87a2cb573c4e59443f1d827276a5cb3453c /libavcodec/ljpegenc.c
parent77adbe28abd2372eee46ed4c07ad737584bfebc9 (diff)
avcodec/ljpegenc: Remove unused IDCTDSPContext
It is basically write-only. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/ljpegenc.c')
-rw-r--r--libavcodec/ljpegenc.c14
1 files changed, 2 insertions, 12 deletions
diff --git a/libavcodec/ljpegenc.c b/libavcodec/ljpegenc.c
index a708d71220..4b88218990 100644
--- a/libavcodec/ljpegenc.c
+++ b/libavcodec/ljpegenc.c
@@ -33,22 +33,16 @@
#include "libavutil/frame.h"
#include "libavutil/mem.h"
#include "libavutil/opt.h"
-#include "libavutil/pixdesc.h"
#include "avcodec.h"
#include "codec_internal.h"
#include "encode.h"
-#include "idctdsp.h"
#include "jpegtables.h"
-#include "mathops.h"
#include "mjpegenc_common.h"
#include "mjpeg.h"
typedef struct LJpegEncContext {
AVClass *class;
- IDCTDSPContext idsp;
- ScanTable scantable;
- uint16_t matrix[64];
int vsample[4];
int hsample[4];
@@ -240,8 +234,8 @@ static int ljpeg_encode_frame(AVCodecContext *avctx, AVPacket *pkt,
init_put_bits(&pb, pkt->data, pkt->size);
- ff_mjpeg_encode_picture_header(avctx, &pb, pict, NULL, &s->scantable,
- s->pred, s->matrix, s->matrix, 0);
+ ff_mjpeg_encode_picture_header(avctx, &pb, pict, NULL, NULL,
+ s->pred, NULL, NULL, 0);
header_bits = put_bits_count(&pb);
@@ -287,10 +281,6 @@ static av_cold int ljpeg_encode_init(AVCodecContext *avctx)
if (!s->scratch)
return AVERROR(ENOMEM);
- ff_idctdsp_init(&s->idsp, avctx);
- ff_init_scantable(s->idsp.idct_permutation, &s->scantable,
- ff_zigzag_direct);
-
ff_mjpeg_init_hvsample(avctx, s->hsample, s->vsample);
ff_mjpeg_build_huffman_codes(s->huff_size_dc_luminance,