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
1f2baec7
Commit
1f2baec7
authored
May 06, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: add gbrap support to some filters
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
5c057433
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
6 additions
and
4 deletions
+6
-4
vf_blend.c
libavfilter/vf_blend.c
+1
-1
vf_extractplanes.c
libavfilter/vf_extractplanes.c
+2
-1
vf_geq.c
libavfilter/vf_geq.c
+1
-1
vf_histogram.c
libavfilter/vf_histogram.c
+2
-1
No files found.
libavfilter/vf_blend.c
View file @
1f2baec7
...
...
@@ -283,7 +283,7 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ440P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_G
BRAP
,
AV_PIX_FMT_G
RAY8
,
AV_PIX_FMT_NONE
};
ff_set_common_formats
(
ctx
,
ff_make_format_list
(
pix_fmts
));
...
...
libavfilter/vf_extractplanes.c
View file @
1f2baec7
...
...
@@ -75,8 +75,9 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_YUV444P16BE
,
AV_PIX_FMT_YUVA444P16BE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRAP
,
AV_PIX_FMT_GBRP16LE
,
AV_PIX_FMT_GBRP16BE
,
AV_PIX_FMT_GBRAP16LE
,
AV_PIX_FMT_GBRAP16BE
,
AV_PIX_FMT_NONE
,
};
static
const
enum
AVPixelFormat
out8_pixfmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
...
...
libavfilter/vf_geq.c
View file @
1f2baec7
...
...
@@ -165,7 +165,7 @@ static int geq_query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
};
static
const
enum
PixelFormat
rgb_pix_fmts
[]
=
{
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRAP
,
AV_PIX_FMT_NONE
};
if
(
geq
->
is_rgb
)
{
...
...
libavfilter/vf_histogram.c
View file @
1f2baec7
...
...
@@ -80,7 +80,7 @@ static const enum AVPixelFormat color_pix_fmts[] = {
static
const
enum
AVPixelFormat
levels_pix_fmts
[]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_NONE
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_
GBRAP
,
AV_PIX_FMT_
NONE
};
static
int
query_formats
(
AVFilterContext
*
ctx
)
...
...
@@ -119,6 +119,7 @@ static int config_input(AVFilterLink *inlink)
h
->
ncomp
=
desc
->
nb_components
;
switch
(
inlink
->
format
)
{
case
AV_PIX_FMT_GBRAP
:
case
AV_PIX_FMT_GBRP
:
h
->
bg_color
=
black_gbrp_color
;
h
->
fg_color
=
white_gbrp_color
;
...
...
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