summaryrefslogtreecommitdiffstats
path: root/libmpcodecs/mp_image.h
diff options
context:
space:
mode:
authorrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-18 14:49:06 +0000
committerrfelker <rfelker@b3059339-0415-0410-9bf9-f77b7e298cf2>2003-08-18 14:49:06 +0000
commit48ecb3e717979195d45c691366da422fb7b06f90 (patch)
treee1b55aeaf9ccc75aee6952c6c40c73bf9034b841 /libmpcodecs/mp_image.h
parentdb1804fcac42a4cbec012c64efabfbc1b2e9fc7f (diff)
downloadmpv-48ecb3e717979195d45c691366da422fb7b06f90.tar.bz2
mpv-48ecb3e717979195d45c691366da422fb7b06f90.tar.xz
clean up field flags:
1) cosmetic change, no reason these need to be mpeg2-specific 2) add a flag to tell when fields are ordered, so we don't have to assume bff (which would usually be wrong) when field flags are not available. 3) add other flags for future use :) git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@10664 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'libmpcodecs/mp_image.h')
-rw-r--r--libmpcodecs/mp_image.h9
1 files changed, 6 insertions, 3 deletions
diff --git a/libmpcodecs/mp_image.h b/libmpcodecs/mp_image.h
index 0ff66d27d8..9efe128954 100644
--- a/libmpcodecs/mp_image.h
+++ b/libmpcodecs/mp_image.h
@@ -64,8 +64,11 @@
#define MP_MAX_PLANES 4
-#define MP_IMGMPEG2FLAG_TOP_FIELD_FIRST 0x01
-#define MP_IMGMPEG2FLAG_REPEAT_FIRST_FIELD 0x02
+#define MP_IMGFIELD_ORDERED 0x01
+#define MP_IMGFIELD_TOP_FIRST 0x02
+#define MP_IMGFIELD_REPEAT_FIRST 0x04
+#define MP_IMGFIELD_TOP 0x08
+#define MP_IMGFIELD_BOTTOM 0x10
typedef struct mp_image_s {
unsigned short flags;
@@ -79,7 +82,7 @@ typedef struct mp_image_s {
char * qscale;
int qstride;
int pict_type; // 0->unknown, 1->I, 2->P, 3->B
- int mpeg2_flags;
+ int fields;
int qscale_type; // 0->mpeg1/4/h263, 1->mpeg2
int num_planes;
/* these are only used by planar formats Y,U(Cb),V(Cr) */