Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
F
ffmpeg.wasm-core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Linshizhi
ffmpeg.wasm-core
Commits
7bfbc2d7
Commit
7bfbc2d7
authored
Aug 05, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_extractplanes: add 9 bitdepth support
parent
de48710c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
0 deletions
+20
-0
vf_extractplanes.c
libavfilter/vf_extractplanes.c
+20
-0
No files found.
libavfilter/vf_extractplanes.c
View file @
7bfbc2d7
...
...
@@ -103,6 +103,13 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUV440P12LE
,
AV_PIX_FMT_GBRP10LE
,
AV_PIX_FMT_GBRAP10LE
,
AV_PIX_FMT_GBRP12LE
,
AV_PIX_FMT_GBRAP12LE
,
AV_PIX_FMT_YUV420P9LE
,
AV_PIX_FMT_YUV422P9LE
,
AV_PIX_FMT_YUV444P9LE
,
AV_PIX_FMT_YUVA420P9LE
,
AV_PIX_FMT_YUVA422P9LE
,
AV_PIX_FMT_YUVA444P9LE
,
AV_PIX_FMT_GBRP9LE
,
AV_PIX_FMT_NONE
,
};
static
const
enum
AVPixelFormat
in_pixfmts_be
[]
=
{
...
...
@@ -142,9 +149,18 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUV440P12BE
,
AV_PIX_FMT_GBRP10BE
,
AV_PIX_FMT_GBRAP10BE
,
AV_PIX_FMT_GBRP12BE
,
AV_PIX_FMT_GBRAP12BE
,
AV_PIX_FMT_YUV420P9BE
,
AV_PIX_FMT_YUV422P9BE
,
AV_PIX_FMT_YUV444P9BE
,
AV_PIX_FMT_YUVA420P9BE
,
AV_PIX_FMT_YUVA422P9BE
,
AV_PIX_FMT_YUVA444P9BE
,
AV_PIX_FMT_GBRP9BE
,
AV_PIX_FMT_NONE
,
};
static
const
enum
AVPixelFormat
out8_pixfmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out9le_pixfmts
[]
=
{
AV_PIX_FMT_GRAY9LE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out9be_pixfmts
[]
=
{
AV_PIX_FMT_GRAY9BE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out10le_pixfmts
[]
=
{
AV_PIX_FMT_GRAY10LE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out10be_pixfmts
[]
=
{
AV_PIX_FMT_GRAY10BE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out12le_pixfmts
[]
=
{
AV_PIX_FMT_GRAY12LE
,
AV_PIX_FMT_NONE
};
...
...
@@ -184,6 +200,10 @@ static int query_formats(AVFilterContext *ctx)
if
(
depth
==
8
)
out_pixfmts
=
out8_pixfmts
;
else
if
(
!
be
&&
depth
==
9
)
out_pixfmts
=
out9le_pixfmts
;
else
if
(
be
&&
depth
==
9
)
out_pixfmts
=
out9be_pixfmts
;
else
if
(
!
be
&&
depth
==
10
)
out_pixfmts
=
out10le_pixfmts
;
else
if
(
be
&&
depth
==
10
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment