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
41ebbae9
Commit
41ebbae9
authored
May 03, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_extractplanes: add support for extracting planes with 14 depth
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
b9dd058f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
vf_extractplanes.c
libavfilter/vf_extractplanes.c
+6
-0
No files found.
libavfilter/vf_extractplanes.c
View file @
41ebbae9
...
...
@@ -165,6 +165,8 @@ static int query_formats(AVFilterContext *ctx)
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
};
static
const
enum
AVPixelFormat
out12be_pixfmts
[]
=
{
AV_PIX_FMT_GRAY12BE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out14le_pixfmts
[]
=
{
AV_PIX_FMT_GRAY14LE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out14be_pixfmts
[]
=
{
AV_PIX_FMT_GRAY14BE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out16le_pixfmts
[]
=
{
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out16be_pixfmts
[]
=
{
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_NONE
};
const
enum
AVPixelFormat
*
out_pixfmts
,
*
in_pixfmts
;
...
...
@@ -212,6 +214,10 @@ static int query_formats(AVFilterContext *ctx)
out_pixfmts
=
out12le_pixfmts
;
else
if
(
be
&&
depth
==
12
)
out_pixfmts
=
out12be_pixfmts
;
else
if
(
!
be
&&
depth
==
14
)
out_pixfmts
=
out14le_pixfmts
;
else
if
(
be
&&
depth
==
14
)
out_pixfmts
=
out14be_pixfmts
;
else
if
(
be
)
out_pixfmts
=
out16be_pixfmts
;
else
...
...
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