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
f2d200d4
Commit
f2d200d4
authored
Feb 11, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/overlay: yuv444p & yuva444p support
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
d41efc1f
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
3 deletions
+11
-3
vf_overlay.c
libavfilter/vf_overlay.c
+11
-3
No files found.
libavfilter/vf_overlay.c
View file @
f2d200d4
...
...
@@ -134,8 +134,15 @@ static int query_formats(AVFilterContext *ctx)
OverlayContext
*
over
=
ctx
->
priv
;
/* overlay formats contains alpha, for avoiding conversion with alpha information loss */
static
const
enum
AVPixelFormat
main_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
overlay_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
main_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
overlay_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
main_pix_fmts_rgb
[]
=
{
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_BGRA
,
...
...
@@ -167,7 +174,8 @@ static int query_formats(AVFilterContext *ctx)
}
static
const
enum
AVPixelFormat
alpha_pix_fmts
[]
=
{
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_NONE
};
...
...
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