summaryrefslogtreecommitdiff
path: root/libswscale/utils.c
diff options
context:
space:
mode:
authorPhilip Langdale <philipl@overt.org>2022-09-04 15:43:23 -0700
committerPhilip Langdale <philipl@overt.org>2022-09-06 12:49:10 -0700
commit5bdd7261150db5d254d588f6cf8f038c149e63b5 (patch)
tree6e65e13063d0b3f2548762bb6dfb8697a0f854b2 /libswscale/utils.c
parent8d9462844a85b0546c827a5f2c4cc7a1ba49dc9d (diff)
swscale/input: add support for P012
As we now have three of these formats, I added macros to generate the conversion functions.
Diffstat (limited to 'libswscale/utils.c')
-rw-r--r--libswscale/utils.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libswscale/utils.c b/libswscale/utils.c
index a67e07b612..a7f77cd39d 100644
--- a/libswscale/utils.c
+++ b/libswscale/utils.c
@@ -236,6 +236,8 @@ static const FormatEntry format_entries[] = {
[AV_PIX_FMT_AYUV64LE] = { 1, 1},
[AV_PIX_FMT_P010LE] = { 1, 1 },
[AV_PIX_FMT_P010BE] = { 1, 1 },
+ [AV_PIX_FMT_P012LE] = { 1, 0 },
+ [AV_PIX_FMT_P012BE] = { 1, 0 },
[AV_PIX_FMT_P016LE] = { 1, 1 },
[AV_PIX_FMT_P016BE] = { 1, 1 },
[AV_PIX_FMT_GRAYF32LE] = { 1, 1 },