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
6c06389d
Commit
6c06389d
authored
Sep 09, 2018
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avfilter/vf_extractplanes: define common 8-bit pixel formats
parent
43421386
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
34 deletions
+22
-34
vf_extractplanes.c
libavfilter/vf_extractplanes.c
+22
-34
No files found.
libavfilter/vf_extractplanes.c
View file @
6c06389d
...
...
@@ -64,31 +64,34 @@ static const AVOption extractplanes_options[] = {
AVFILTER_DEFINE_CLASS
(
extractplanes
);
#define EIGHTBIT_FORMATS \
AV_PIX_FMT_YUV410P, \
AV_PIX_FMT_YUV411P, \
AV_PIX_FMT_YUV440P, \
AV_PIX_FMT_YUV420P, AV_PIX_FMT_YUVA420P, \
AV_PIX_FMT_YUV422P, AV_PIX_FMT_YUVA422P, \
AV_PIX_FMT_YUVJ420P, AV_PIX_FMT_YUVJ422P, \
AV_PIX_FMT_YUVJ440P, AV_PIX_FMT_YUVJ444P, \
AV_PIX_FMT_YUVJ411P, \
AV_PIX_FMT_YUV444P, AV_PIX_FMT_YUVA444P, \
AV_PIX_FMT_GRAY8, AV_PIX_FMT_GRAY8A, \
AV_PIX_FMT_RGB24, AV_PIX_FMT_BGR24, \
AV_PIX_FMT_RGBA, AV_PIX_FMT_BGRA, \
AV_PIX_FMT_ARGB, AV_PIX_FMT_ABGR, \
AV_PIX_FMT_RGB0, AV_PIX_FMT_BGR0, \
AV_PIX_FMT_0RGB, AV_PIX_FMT_0BGR, \
AV_PIX_FMT_GBRP, AV_PIX_FMT_GBRAP
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVPixelFormat
in_pixfmts_le
[]
=
{
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ440P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ411P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUVA444P
,
EIGHTBIT_FORMATS
,
AV_PIX_FMT_YA16LE
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_YUV420P16LE
,
AV_PIX_FMT_YUVA420P16LE
,
AV_PIX_FMT_YUV422P16LE
,
AV_PIX_FMT_YUVA422P16LE
,
AV_PIX_FMT_YUV444P16LE
,
AV_PIX_FMT_YUVA444P16LE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_YA16LE
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_RGB0
,
AV_PIX_FMT_BGR0
,
AV_PIX_FMT_0RGB
,
AV_PIX_FMT_0BGR
,
AV_PIX_FMT_RGB48LE
,
AV_PIX_FMT_BGR48LE
,
AV_PIX_FMT_RGBA64LE
,
AV_PIX_FMT_BGRA64LE
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRAP
,
AV_PIX_FMT_GBRP16LE
,
AV_PIX_FMT_GBRAP16LE
,
AV_PIX_FMT_YUV420P10LE
,
AV_PIX_FMT_YUV422P10LE
,
...
...
@@ -117,28 +120,13 @@ static int query_formats(AVFilterContext *ctx)
AV_PIX_FMT_NONE
,
};
static
const
enum
AVPixelFormat
in_pixfmts_be
[]
=
{
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ440P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ411P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUVA444P
,
EIGHTBIT_FORMATS
,
AV_PIX_FMT_YA16BE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_YUV420P16BE
,
AV_PIX_FMT_YUVA420P16BE
,
AV_PIX_FMT_YUV422P16BE
,
AV_PIX_FMT_YUVA422P16BE
,
AV_PIX_FMT_YUV444P16BE
,
AV_PIX_FMT_YUVA444P16BE
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_GRAY8A
,
AV_PIX_FMT_YA16BE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_RGB0
,
AV_PIX_FMT_BGR0
,
AV_PIX_FMT_0RGB
,
AV_PIX_FMT_0BGR
,
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_BGR48BE
,
AV_PIX_FMT_RGBA64BE
,
AV_PIX_FMT_BGRA64BE
,
AV_PIX_FMT_GBRP
,
AV_PIX_FMT_GBRAP
,
AV_PIX_FMT_GBRP16BE
,
AV_PIX_FMT_GBRAP16BE
,
AV_PIX_FMT_YUV420P10BE
,
AV_PIX_FMT_YUV422P10BE
,
...
...
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