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
d7e95ccd
Commit
d7e95ccd
authored
Nov 05, 2011
by
Reimar Döffinger
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make PIX_FMT format list arrays const.
Signed-off-by:
Reimar Döffinger
<
Reimar.Doeffinger@gmx.de
>
parent
85414225
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
vf_lut.c
libavfilter/vf_lut.c
+5
-5
No files found.
libavfilter/vf_lut.c
View file @
d7e95ccd
...
...
@@ -141,15 +141,15 @@ static av_cold void uninit(AVFilterContext *ctx)
PIX_FMT_ABGR, PIX_FMT_BGRA, \
PIX_FMT_RGB24, PIX_FMT_BGR24
static
enum
PixelFormat
yuv_pix_fmts
[]
=
{
YUV_FORMATS
,
PIX_FMT_NONE
};
static
enum
PixelFormat
rgb_pix_fmts
[]
=
{
RGB_FORMATS
,
PIX_FMT_NONE
};
static
enum
PixelFormat
all_pix_fmts
[]
=
{
RGB_FORMATS
,
YUV_FORMATS
,
PIX_FMT_NONE
};
static
const
enum
PixelFormat
yuv_pix_fmts
[]
=
{
YUV_FORMATS
,
PIX_FMT_NONE
};
static
const
enum
PixelFormat
rgb_pix_fmts
[]
=
{
RGB_FORMATS
,
PIX_FMT_NONE
};
static
const
enum
PixelFormat
all_pix_fmts
[]
=
{
RGB_FORMATS
,
YUV_FORMATS
,
PIX_FMT_NONE
};
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
LutContext
*
lut
=
ctx
->
priv
;
enum
PixelFormat
*
pix_fmts
=
lut
->
is_rgb
?
rgb_pix_fmts
:
const
enum
PixelFormat
*
pix_fmts
=
lut
->
is_rgb
?
rgb_pix_fmts
:
lut
->
is_yuv
?
yuv_pix_fmts
:
all_pix_fmts
;
avfilter_set_common_pixel_formats
(
ctx
,
avfilter_make_format_list
(
pix_fmts
));
...
...
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