aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-06-20 12:46:43 +0200
committerAndreas Rheinhardt <andreas.rheinhardt@outlook.com>2025-07-03 20:35:31 +0200
commit502a6ea123cf159194d3ba6e46c98382b72b37b1 (patch)
treead8216c0a202ed02b3041ebf6bee50b1034df780
parent2089d39735c1622cce3e8dc5562039b30c9ed165 (diff)
downloadffmpeg-502a6ea123cf159194d3ba6e46c98382b72b37b1.tar.gz
avcodec/mpegvideo: Move SLICE_* defs to h263dec.h, h261dec.c
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-rw-r--r--libavcodec/h261dec.c4
-rw-r--r--libavcodec/h263dec.h4
-rw-r--r--libavcodec/mpegvideo.h5
3 files changed, 8 insertions, 5 deletions
diff --git a/libavcodec/h261dec.c b/libavcodec/h261dec.c
index e47bc00a71..32d41903e7 100644
--- a/libavcodec/h261dec.c
+++ b/libavcodec/h261dec.c
@@ -37,6 +37,10 @@
#include "mpegvideodec.h"
#include "h261.h"
+#define SLICE_OK 0
+#define SLICE_ERROR -1
+#define SLICE_END -2 ///<end marker found
+
#define H261_MBA_VLC_BITS 8
#define H261_MTYPE_VLC_BITS 6
#define H261_MV_VLC_BITS 7
diff --git a/libavcodec/h263dec.h b/libavcodec/h263dec.h
index 90340a59bd..0c6228f9d9 100644
--- a/libavcodec/h263dec.h
+++ b/libavcodec/h263dec.h
@@ -73,6 +73,10 @@ typedef struct H263DecContext {
int rv10_first_dc_coded[3];
int (*decode_mb)(struct H263DecContext *h);
+#define SLICE_OK 0
+#define SLICE_ERROR -1
+#define SLICE_END -2 ///<end marker found
+#define SLICE_NOEND -3 ///<no end marker or error found but mb count exceeded
GetBitContext last_resync_gb; ///< used to search for the next resync marker
diff --git a/libavcodec/mpegvideo.h b/libavcodec/mpegvideo.h
index 4c5f034690..9318801019 100644
--- a/libavcodec/mpegvideo.h
+++ b/libavcodec/mpegvideo.h
@@ -285,11 +285,6 @@ typedef struct MpegEncContext {
int interlaced_dct;
int first_field; ///< is 1 for the first field of a field picture 0 otherwise
-#define SLICE_OK 0
-#define SLICE_ERROR -1
-#define SLICE_END -2 ///<end marker found
-#define SLICE_NOEND -3 ///<no end marker or error found but mb count exceeded
-
void (*dct_unquantize_intra)(struct MpegEncContext *s, // unquantizer to use (MPEG-4 can use both)
int16_t *block/*align 16*/, int n, int qscale);
void (*dct_unquantize_inter)(struct MpegEncContext *s, // unquantizer to use (MPEG-4 can use both)