[vlc-commits] [Git][videolan/vlc][master] 2 commits: avcodec/chroma: use the proper vlc_fourcc_t for 'Y', 'V', 'U', '9'
Steve Lhomme (@robUx4)
gitlab at videolan.org
Thu Sep 7 18:41:06 UTC 2023
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
824506e8 by Steve Lhomme at 2023-09-07T18:20:09+00:00
avcodec/chroma: use the proper vlc_fourcc_t for 'Y','V','U','9'
It does match the description for AV_PIX_FMT_YUV410P.
- - - - -
1a8dc3fc by Steve Lhomme at 2023-09-07T18:20:09+00:00
avcodec/chroma: remove mapping to non VLC chromas
If VLC doesn't have a chroma for it, that means it won't be handled later.
We should not pretend to map it.
- - - - -
1 changed file:
- modules/codec/avcodec/chroma.c
Changes:
=====================================
modules/codec/avcodec/chroma.c
=====================================
@@ -75,11 +75,10 @@ static const struct
{VLC_CODEC_I420, AV_PIX_FMT_YUV420P, 0, 0, 0 },
{VLC_CODEC_YV12, AV_PIX_FMT_YUV420P, 0, 0, 0 },
- {VLC_FOURCC('I','Y','U','V'), AV_PIX_FMT_YUV420P, 0, 0, 0 },
{VLC_CODEC_J420, AV_PIX_FMT_YUVJ420P, 0, 0, 0 },
{VLC_CODEC_I411, AV_PIX_FMT_YUV411P, 0, 0, 0 },
{VLC_CODEC_I410, AV_PIX_FMT_YUV410P, 0, 0, 0 },
- {VLC_FOURCC('Y','V','U','9'), AV_PIX_FMT_YUV410P, 0, 0, 0 },
+ {VLC_CODEC_YV9, AV_PIX_FMT_YUV410P, 0, 0, 0 },
{VLC_CODEC_NV12, AV_PIX_FMT_NV12, 0, 0, 0 },
{VLC_CODEC_NV21, AV_PIX_FMT_NV21, 0, 0, 0 },
@@ -137,13 +136,10 @@ static const struct
/* Packed YUV formats */
{VLC_CODEC_YUYV, AV_PIX_FMT_YUYV422, 0, 0, 0 },
- {VLC_FOURCC('Y','U','Y','V'), AV_PIX_FMT_YUYV422, 0, 0, 0 },
{VLC_CODEC_UYVY, AV_PIX_FMT_UYVY422, 0, 0, 0 },
{VLC_CODEC_YVYU, AV_PIX_FMT_YVYU422, 0, 0, 0 },
- {VLC_FOURCC('Y','4','1','1'), AV_PIX_FMT_UYYVYY411, 0, 0, 0 },
/* Packed RGB formats */
- VLC_RGB( VLC_FOURCC('R','G','B','4'), AV_PIX_FMT_RGB4, AV_PIX_FMT_BGR4, 0x10, 0x06, 0x01 )
VLC_RGB( VLC_CODEC_RGB8, AV_PIX_FMT_RGB8, AV_PIX_FMT_BGR8, 0xC0, 0x38, 0x07 )
VLC_RGB( VLC_CODEC_RGB15, AV_PIX_FMT_RGB555, AV_PIX_FMT_BGR555, 0x7c00, 0x03e0, 0x001f )
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/399bd1cb729b4d8d90e960eb423e2bb7edf5aa9c...1a8dc3fcbf25cde9fd8134bf38faa7b171c096ef
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/compare/399bd1cb729b4d8d90e960eb423e2bb7edf5aa9c...1a8dc3fcbf25cde9fd8134bf38faa7b171c096ef
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list