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
185d1f3b
Commit
185d1f3b
authored
Dec 21, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavfi: declare arrays that never change as static const
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
165be91c
Hide whitespace changes
Inline
Side-by-side
Showing
15 changed files
with
20 additions
and
20 deletions
+20
-20
af_atempo.c
libavfilter/af_atempo.c
+1
-1
af_earwax.c
libavfilter/af_earwax.c
+1
-1
af_silencedetect.c
libavfilter/af_silencedetect.c
+1
-1
af_volumedetect.c
libavfilter/af_volumedetect.c
+1
-1
asrc_aevalsrc.c
libavfilter/asrc_aevalsrc.c
+1
-1
vf_alphaextract.c
libavfilter/vf_alphaextract.c
+2
-2
vf_alphamerge.c
libavfilter/vf_alphamerge.c
+2
-2
vf_boxblur.c
libavfilter/vf_boxblur.c
+1
-1
vf_delogo.c
libavfilter/vf_delogo.c
+1
-1
vf_deshake.c
libavfilter/vf_deshake.c
+1
-1
vf_drawbox.c
libavfilter/vf_drawbox.c
+1
-1
vf_overlay.c
libavfilter/vf_overlay.c
+4
-4
vf_removelogo.c
libavfilter/vf_removelogo.c
+1
-1
vf_transpose.c
libavfilter/vf_transpose.c
+1
-1
vf_unsharp.c
libavfilter/vf_unsharp.c
+1
-1
No files found.
libavfilter/af_atempo.c
View file @
185d1f3b
...
...
@@ -978,7 +978,7 @@ static int query_formats(AVFilterContext *ctx)
// Planar sample formats are too cumbersome to store in a ring buffer,
// therefore planar sample formats are not supported.
//
enum
AVSampleFormat
sample_fmts
[]
=
{
static
const
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_U8
,
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_S32
,
...
...
libavfilter/af_earwax.c
View file @
185d1f3b
...
...
@@ -77,7 +77,7 @@ typedef struct {
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
int
sample_rates
[]
=
{
44100
,
-
1
};
static
const
int
sample_rates
[]
=
{
44100
,
-
1
};
AVFilterFormats
*
formats
=
NULL
;
AVFilterChannelLayouts
*
layout
=
NULL
;
...
...
libavfilter/af_silencedetect.c
View file @
185d1f3b
...
...
@@ -131,7 +131,7 @@ static int query_formats(AVFilterContext *ctx)
{
AVFilterFormats
*
formats
=
NULL
;
AVFilterChannelLayouts
*
layouts
=
NULL
;
enum
AVSampleFormat
sample_fmts
[]
=
{
static
const
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_DBL
,
AV_SAMPLE_FMT_NONE
};
...
...
libavfilter/af_volumedetect.c
View file @
185d1f3b
...
...
@@ -35,7 +35,7 @@ typedef struct {
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVSampleFormat
sample_fmts
[]
=
{
static
const
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_S16P
,
AV_SAMPLE_FMT_NONE
...
...
libavfilter/asrc_aevalsrc.c
View file @
185d1f3b
...
...
@@ -198,7 +198,7 @@ static int config_props(AVFilterLink *outlink)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
EvalContext
*
eval
=
ctx
->
priv
;
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_DBLP
,
AV_SAMPLE_FMT_NONE
};
static
const
enum
AVSampleFormat
sample_fmts
[]
=
{
AV_SAMPLE_FMT_DBLP
,
AV_SAMPLE_FMT_NONE
};
int64_t
chlayouts
[]
=
{
eval
->
chlayout
,
-
1
};
int
sample_rates
[]
=
{
eval
->
sample_rate
,
-
1
};
...
...
libavfilter/vf_alphaextract.c
View file @
185d1f3b
...
...
@@ -41,12 +41,12 @@ typedef struct {
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
in_fmts
[]
=
{
static
const
enum
AVPixelFormat
in_fmts
[]
=
{
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_NONE
};
enum
AVPixelFormat
out_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
out_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
ff_formats_ref
(
ff_make_format_list
(
in_fmts
),
&
ctx
->
inputs
[
0
]
->
out_formats
);
ff_formats_ref
(
ff_make_format_list
(
out_fmts
),
&
ctx
->
outputs
[
0
]
->
in_formats
);
return
0
;
...
...
libavfilter/vf_alphamerge.c
View file @
185d1f3b
...
...
@@ -52,12 +52,12 @@ static av_cold void uninit(AVFilterContext *ctx)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
main_fmts
[]
=
{
static
const
enum
AVPixelFormat
main_fmts
[]
=
{
AV_PIX_FMT_YUVA444P
,
AV_PIX_FMT_YUVA422P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_NONE
};
enum
AVPixelFormat
alpha_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
alpha_fmts
[]
=
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
};
AVFilterFormats
*
main_formats
=
ff_make_format_list
(
main_fmts
);
AVFilterFormats
*
alpha_formats
=
ff_make_format_list
(
alpha_fmts
);
ff_formats_ref
(
main_formats
,
&
ctx
->
inputs
[
0
]
->
out_formats
);
...
...
libavfilter/vf_boxblur.c
View file @
185d1f3b
...
...
@@ -124,7 +124,7 @@ static av_cold void uninit(AVFilterContext *ctx)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_GRAY8
,
...
...
libavfilter/vf_delogo.c
View file @
185d1f3b
...
...
@@ -157,7 +157,7 @@ AVFILTER_DEFINE_CLASS(delogo);
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
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_YUVA420P
,
AV_PIX_FMT_GRAY8
,
...
...
libavfilter/vf_deshake.c
View file @
185d1f3b
...
...
@@ -387,7 +387,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ440P
,
AV_PIX_FMT_NONE
...
...
libavfilter/vf_drawbox.c
View file @
185d1f3b
...
...
@@ -100,7 +100,7 @@ static av_cold void uninit(AVFilterContext *ctx)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ420P
,
...
...
libavfilter/vf_overlay.c
View file @
185d1f3b
...
...
@@ -157,15 +157,15 @@ static int query_formats(AVFilterContext *ctx)
OverlayContext
*
over
=
ctx
->
priv
;
/* overlay formats contains alpha, for avoiding conversion with alpha information loss */
const
enum
AVPixelFormat
main_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_NONE
};
const
enum
AVPixelFormat
overlay_pix_fmts_yuv
[]
=
{
AV_PIX_FMT_YUVA420P
,
AV_PIX_FMT_NONE
};
const
enum
AVPixelFormat
main_pix_fmts_rgb
[]
=
{
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_rgb
[]
=
{
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_NONE
};
const
enum
AVPixelFormat
overlay_pix_fmts_rgb
[]
=
{
static
const
enum
AVPixelFormat
overlay_pix_fmts_rgb
[]
=
{
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_NONE
...
...
libavfilter/vf_removelogo.c
View file @
185d1f3b
...
...
@@ -192,7 +192,7 @@ static void convert_mask_to_strength_mask(uint8_t *data, int linesize,
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
};
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_NONE
};
ff_set_common_formats
(
ctx
,
ff_make_format_list
(
pix_fmts
));
return
0
;
}
...
...
libavfilter/vf_transpose.c
View file @
185d1f3b
...
...
@@ -86,7 +86,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_ARGB
,
AV_PIX_FMT_RGBA
,
AV_PIX_FMT_ABGR
,
AV_PIX_FMT_BGRA
,
AV_PIX_FMT_RGB24
,
AV_PIX_FMT_BGR24
,
...
...
libavfilter/vf_unsharp.c
View file @
185d1f3b
...
...
@@ -159,7 +159,7 @@ static av_cold int init(AVFilterContext *ctx, const char *args)
static
int
query_formats
(
AVFilterContext
*
ctx
)
{
enum
AVPixelFormat
pix_fmts
[]
=
{
static
const
enum
AVPixelFormat
pix_fmts
[]
=
{
AV_PIX_FMT_YUV420P
,
AV_PIX_FMT_YUV422P
,
AV_PIX_FMT_YUV444P
,
AV_PIX_FMT_YUV410P
,
AV_PIX_FMT_YUV411P
,
AV_PIX_FMT_YUV440P
,
AV_PIX_FMT_YUVJ420P
,
AV_PIX_FMT_YUVJ422P
,
AV_PIX_FMT_YUVJ444P
,
AV_PIX_FMT_YUVJ440P
,
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