summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2020-02-10 18:59:59 +0100
committerwm4 <wm4@nowhere>2020-02-10 18:59:59 +0100
commitd699893dbda3213198d75c6d19cf401c53af3f1e (patch)
treefd79f47765e9a7597885be77e0a6b2aa36ad41a2
parenta8404ed0a0b79da9b91d57e4b671eaeaed9f936e (diff)
downloadmpv-d699893dbda3213198d75c6d19cf401c53af3f1e.tar.bz2
mpv-d699893dbda3213198d75c6d19cf401c53af3f1e.tar.xz
img_format: add alias for ffmpeg pal8 format
For the next commit.
-rw-r--r--video/fmt-conversion.c1
-rw-r--r--video/img_format.h3
2 files changed, 4 insertions, 0 deletions
diff --git a/video/fmt-conversion.c b/video/fmt-conversion.c
index b9b3d5ef66..9f3c6380ff 100644
--- a/video/fmt-conversion.c
+++ b/video/fmt-conversion.c
@@ -33,6 +33,7 @@ static const struct {
{IMGFMT_ABGR, AV_PIX_FMT_ABGR},
{IMGFMT_RGBA, AV_PIX_FMT_RGBA},
{IMGFMT_RGB24, AV_PIX_FMT_RGB24},
+ {IMGFMT_PAL8, AV_PIX_FMT_PAL8},
{IMGFMT_UYVY, AV_PIX_FMT_UYVY422},
{IMGFMT_NV12, AV_PIX_FMT_NV12},
#if LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(56, 27, 0)
diff --git a/video/img_format.h b/video/img_format.h
index 61d9e02107..139c690ebe 100644
--- a/video/img_format.h
+++ b/video/img_format.h
@@ -192,6 +192,9 @@ enum mp_imgfmt {
// Accessed with bit-shifts, uint32_t units.
IMGFMT_RGB30, // 2pad 10r 10g 10b (MSG to LSB)
+ // AV_PIX_FMT_PAL8
+ IMGFMT_PAL8,
+
// Hardware accelerated formats. Plane data points to special data
// structures, instead of pixel data.
IMGFMT_VDPAU, // VdpVideoSurface