Skip to content

Commit 4a0714a

Browse files
committed
lavc,v4l2: add mappings fro VUYA
1 parent e4d896e commit 4a0714a

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

src/libavcodec/utils.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* @author Martin Piatka <[email protected]>
55
*/
66
/*
7-
* Copyright (c) 2013-2023 CESNET, z. s. p. o.
7+
* Copyright (c) 2013-2025 CESNET
88
* All rights reserved.
99
*
1010
* Redistribution and use in source and binary forms, with or without
@@ -50,6 +50,7 @@ static const struct uv_to_av_pixfmt uv_to_av_pixfmts[] = {
5050
{RGBA, AV_PIX_FMT_RGBA},
5151
{UYVY, AV_PIX_FMT_UYVY422},
5252
{YUYV,AV_PIX_FMT_YUYV422},
53+
{VUYA, AV_PIX_FMT_VUYA},
5354
//R10k,
5455
//v210,
5556
//DVS10,

src/v4l2_common.h

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* @author Martin Pulec <[email protected]>
66
*/
77
/*
8-
* Copyright (c) 2012-2024 CESNET
8+
* Copyright (c) 2012-2025 CESNET
99
* All rights reserved.
1010
*
1111
* Redistribution and use in source and binary forms, with or without
@@ -71,6 +71,12 @@ static struct {
7171
{V4L2_PIX_FMT_YUYV, YUYV},
7272
{V4L2_PIX_FMT_UYVY, UYVY},
7373
{V4L2_PIX_FMT_YUV420, I420},
74+
#ifdef V4L2_PIX_FMT_VUYA32
75+
{V4L2_PIX_FMT_VUYA32, VUYA},
76+
#endif
77+
#ifdef V4L2_PIX_FMT_VUYX32
78+
{V4L2_PIX_FMT_VUYX32, VUYA},
79+
#endif
7480
#ifdef V4L2_PIX_FMT_YUVA32
7581
{V4L2_PIX_FMT_YUVA32, Y416},
7682
#endif

0 commit comments

Comments
 (0)