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
e0ccb5fa
Commit
e0ccb5fa
authored
Feb 25, 2013
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi/hflip: support more formats
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
eac93932
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
29 deletions
+13
-29
vf_hflip.c
libavfilter/vf_hflip.c
+13
-29
No files found.
libavfilter/vf_hflip.c
View file @
e0ccb5fa
...
...
@@ -42,35 +42,19 @@ typedef struct {
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_RGB48BE
,
AV_PIX_FMT_RGB48LE
,
AV_PIX_FMT_BGR48BE
,
AV_PIX_FMT_BGR48LE
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
AV_PIX_FMT_RGB565BE
,
AV_PIX_FMT_RGB565LE
,
AV_PIX_FMT_RGB555BE
,
AV_PIX_FMT_RGB555LE
,
AV_PIX_FMT_RGB444BE
,
AV_PIX_FMT_RGB444LE
,
AV_PIX_FMT_BGR565BE
,
AV_PIX_FMT_BGR565LE
,
AV_PIX_FMT_BGR555BE
,
AV_PIX_FMT_BGR555LE
,
AV_PIX_FMT_BGR444BE
,
AV_PIX_FMT_BGR444LE
,
AV_PIX_FMT_GRAY16BE
,
AV_PIX_FMT_GRAY16LE
,
AV_PIX_FMT_YUV420P16LE
,
AV_PIX_FMT_YUV420P16BE
,
AV_PIX_FMT_YUV422P16LE
,
AV_PIX_FMT_YUV422P16BE
,
AV_PIX_FMT_YUV444P16LE
,
AV_PIX_FMT_YUV444P16BE
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ440P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_RGB8
,
AV_PIX_FMT_BGR8
,
AV_PIX_FMT_RGB4_BYTE
,
AV_PIX_FMT_BGR4_BYTE
,
AV_PIX_FMT_PAL8
,
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
ff_set_common_formats
(
ctx
,
ff_make_format_list
(
pix_fmts
));
AVFilterFormats
*
pix_fmts
=
NULL
;
int
fmt
;
for
(
fmt
=
0
;
fmt
<
AV_PIX_FMT_NB
;
fmt
++
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
fmt
);
if
(
!
(
desc
->
flags
&
PIX_FMT_HWACCEL
||
desc
->
flags
&
PIX_FMT_BITSTREAM
||
(
desc
->
log2_chroma_w
!=
desc
->
log2_chroma_h
&&
desc
->
comp
[
0
].
plane
==
desc
->
comp
[
1
].
plane
)))
ff_add_format
(
&
pix_fmts
,
fmt
);
}
ff_set_common_formats
(
ctx
,
pix_fmts
);
return
0
;
}
...
...
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