mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2024-12-28 20:53:54 +02:00
avformat/movenc: add support for UYVA pixel format
Signed-off-by: James Almer <jamrial@gmail.com>
This commit is contained in:
parent
de923595fd
commit
d6b08e0c0f
@ -33,6 +33,7 @@ const AVCodecTag ff_codec_movvideo_tags[] = {
|
|||||||
{ AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', '2') }, /* uncompressed YUV422 */
|
||||||
{ AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('2', 'v', 'u', 'y') }, /* uncompressed 8-bit 4:2:2 */
|
||||||
{ AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('y', 'u', 'v', 's') }, /* same as 2VUY but byte-swapped */
|
||||||
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('v', '4', '0', '8') }, /* uncompressed 8-bit 4:4:4:4 */
|
||||||
|
|
||||||
{ AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '5', '5') },
|
||||||
{ AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
|
{ AV_CODEC_ID_RAWVIDEO, MKTAG('L', '5', '6', '5') },
|
||||||
|
@ -1879,6 +1879,7 @@ static const struct {
|
|||||||
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','2'), 0 },
|
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','2'), 0 },
|
||||||
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','s'), 0 },
|
{ AV_PIX_FMT_YUYV422, MKTAG('y','u','v','s'), 0 },
|
||||||
{ AV_PIX_FMT_UYVY422, MKTAG('2','v','u','y'), 0 },
|
{ AV_PIX_FMT_UYVY422, MKTAG('2','v','u','y'), 0 },
|
||||||
|
{ AV_PIX_FMT_UYVA, MKTAG('v','4','0','8'), 0 },
|
||||||
{ AV_PIX_FMT_RGB555BE,MKTAG('r','a','w',' '), 16 },
|
{ AV_PIX_FMT_RGB555BE,MKTAG('r','a','w',' '), 16 },
|
||||||
{ AV_PIX_FMT_RGB555LE,MKTAG('L','5','5','5'), 16 },
|
{ AV_PIX_FMT_RGB555LE,MKTAG('L','5','5','5'), 16 },
|
||||||
{ AV_PIX_FMT_RGB565LE,MKTAG('L','5','6','5'), 16 },
|
{ AV_PIX_FMT_RGB565LE,MKTAG('L','5','6','5'), 16 },
|
||||||
@ -2612,6 +2613,7 @@ static int mov_write_video_tag(AVFormatContext *s, AVIOContext *pb, MOVMuxContex
|
|||||||
|
|
||||||
int uncompressed_ycbcr = ((track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVY422)
|
int uncompressed_ycbcr = ((track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVY422)
|
||||||
|| (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_YUYV422)
|
|| (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_YUYV422)
|
||||||
|
|| (track->par->codec_id == AV_CODEC_ID_RAWVIDEO && track->par->format == AV_PIX_FMT_UYVA)
|
||||||
|| track->par->codec_id == AV_CODEC_ID_V308
|
|| track->par->codec_id == AV_CODEC_ID_V308
|
||||||
|| track->par->codec_id == AV_CODEC_ID_V408
|
|| track->par->codec_id == AV_CODEC_ID_V408
|
||||||
|| track->par->codec_id == AV_CODEC_ID_V410
|
|| track->par->codec_id == AV_CODEC_ID_V410
|
||||||
|
Loading…
Reference in New Issue
Block a user