Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
ffmpeg
Project
Project
Details
Activity
Releases
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Stefan Westerfeld
ffmpeg
Commits
a0e4c41d
Commit
a0e4c41d
authored
Dec 12, 2017
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_pseudocolor: add support for more formats
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
0e526022
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
vf_pseudocolor.c
libavfilter/vf_pseudocolor.c
+11
-2
No files found.
libavfilter/vf_pseudocolor.c
View file @
a0e4c41d
...
...
@@ -94,7 +94,7 @@ static const AVOption pseudocolor_options[] = {
};
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY
10
,
AV_PIX_FMT_GRAY16
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY
9
,
AV_PIX_FMT_GRAY10
,
AV_PIX_FMT_GRAY12
,
AV_PIX_FMT_GRAY16
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_GBRP
,
...
...
@@ -114,7 +114,10 @@ static const enum AVPixelFormat pix_fmts[] = {
AV_PIX_FMT_YUV420P16
,
AV_PIX_FMT_YUVA420P16
,
AV_PIX_FMT_YUV422P16
,
AV_PIX_FMT_YUVA422P16
,
AV_PIX_FMT_YUV444P16
,
AV_PIX_FMT_YUVA444P16
,
AV_PIX_FMT_GBRP9
,
AV_PIX_FMT_GBRP10
,
AV_PIX_FMT_GBRAP10
,
AV_PIX_FMT_GBRP12
,
AV_PIX_FMT_GBRAP12
,
AV_PIX_FMT_GBRP14
,
AV_PIX_FMT_GBRP16
,
AV_PIX_FMT_GBRAP16
,
AV_PIX_FMT_NONE
};
...
...
@@ -531,11 +534,17 @@ static int config_input(AVFilterLink *inlink)
case
AV_PIX_FMT_YUV444P14
:
case
AV_PIX_FMT_YUV444P16
:
case
AV_PIX_FMT_YUVA444P16
:
case
AV_PIX_FMT_GBRP9
:
case
AV_PIX_FMT_GBRP10
:
case
AV_PIX_FMT_GBRAP10
:
case
AV_PIX_FMT_GBRP12
:
case
AV_PIX_FMT_GBRP14
:
case
AV_PIX_FMT_GBRP16
:
case
AV_PIX_FMT_GBRAP10
:
case
AV_PIX_FMT_GBRAP12
:
case
AV_PIX_FMT_GBRAP16
:
case
AV_PIX_FMT_GRAY9
:
case
AV_PIX_FMT_GRAY10
:
case
AV_PIX_FMT_GRAY12
:
case
AV_PIX_FMT_GRAY16
:
s
->
filter
[
0
]
=
s
->
filter
[
1
]
=
s
->
filter
[
2
]
=
s
->
filter
[
3
]
=
pseudocolor_filter_16
;
break
;
...
...
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