img_format: add alias for ffmpeg pal8 format

For the next commit.
This commit is contained in:
wm4 2020-02-10 18:59:59 +01:00
parent a8404ed0a0
commit d699893dbd
2 changed files with 4 additions and 0 deletions

View File

@ -33,6 +33,7 @@ static const struct {
{IMGFMT_ABGR, AV_PIX_FMT_ABGR}, {IMGFMT_ABGR, AV_PIX_FMT_ABGR},
{IMGFMT_RGBA, AV_PIX_FMT_RGBA}, {IMGFMT_RGBA, AV_PIX_FMT_RGBA},
{IMGFMT_RGB24, AV_PIX_FMT_RGB24}, {IMGFMT_RGB24, AV_PIX_FMT_RGB24},
{IMGFMT_PAL8, AV_PIX_FMT_PAL8},
{IMGFMT_UYVY, AV_PIX_FMT_UYVY422}, {IMGFMT_UYVY, AV_PIX_FMT_UYVY422},
{IMGFMT_NV12, AV_PIX_FMT_NV12}, {IMGFMT_NV12, AV_PIX_FMT_NV12},
#if LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(56, 27, 0) #if LIBAVUTIL_VERSION_MICRO >= 100 && LIBAVUTIL_VERSION_INT >= AV_VERSION_INT(56, 27, 0)

View File

@ -192,6 +192,9 @@ enum mp_imgfmt {
// Accessed with bit-shifts, uint32_t units. // Accessed with bit-shifts, uint32_t units.
IMGFMT_RGB30, // 2pad 10r 10g 10b (MSG to LSB) IMGFMT_RGB30, // 2pad 10r 10g 10b (MSG to LSB)
// AV_PIX_FMT_PAL8
IMGFMT_PAL8,
// Hardware accelerated formats. Plane data points to special data // Hardware accelerated formats. Plane data points to special data
// structures, instead of pixel data. // structures, instead of pixel data.
IMGFMT_VDPAU, // VdpVideoSurface IMGFMT_VDPAU, // VdpVideoSurface