aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/rtjpeg.h
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-08 13:41:33 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2023-09-11 00:26:34 +0200
commita84fe06112af4929a4f3d993373b4f3cf2725f9a (patch)
tree9de177c13e6d2c5101c6264017265c0e24e7ead8 /libavcodec/rtjpeg.h
parent7b0b9a25ed11625ae75f1fa47db41744578675fe (diff)
downloadffmpeg-a84fe06112af4929a4f3d993373b4f3cf2725f9a.tar.gz
avcodec/idctdsp: Avoid inclusion of avcodec.h
Not every user of idctdsp.h wants to initialize an IDCTDSPContext; e.g. the proresdsp only uses ff_init_scantable_permutation() and the IDCT permutation enum; similarly for cavsdsp and wmv2dsp. Using a forward declaration here avoids an avcodec.h dependency in the relevant files. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
Diffstat (limited to 'libavcodec/rtjpeg.h')
-rw-r--r--libavcodec/rtjpeg.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/libavcodec/rtjpeg.h b/libavcodec/rtjpeg.h
index d4dc074408..14befb5489 100644
--- a/libavcodec/rtjpeg.h
+++ b/libavcodec/rtjpeg.h
@@ -24,6 +24,7 @@
#include <stdint.h>
+#include "libavutil/frame.h"
#include "libavutil/mem_internal.h"
#include "idctdsp.h"
@@ -39,7 +40,8 @@ typedef struct RTJpegContext {
DECLARE_ALIGNED(16, int16_t, block)[64];
} RTJpegContext;
-void ff_rtjpeg_init(RTJpegContext *c, AVCodecContext *avctx);
+struct AVCodecContext;
+void ff_rtjpeg_init(RTJpegContext *c, struct AVCodecContext *avctx);
void ff_rtjpeg_decode_init(RTJpegContext *c, int width, int height,
const uint32_t *lquant, const uint32_t *cquant);