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
e9d5c052
Commit
e9d5c052
authored
Jun 22, 2012
by
Paul B Mahol
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lavc: use designated initializers for AVClasses
Signed-off-by:
Paul B Mahol
<
onemda@gmail.com
>
parent
53cec46b
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
38 additions
and
10 deletions
+38
-10
ac3enc_fixed.c
libavcodec/ac3enc_fixed.c
+7
-2
ac3enc_float.c
libavcodec/ac3enc_float.c
+6
-2
dnxhdenc.c
libavcodec/dnxhdenc.c
+7
-1
eac3enc.c
libavcodec/eac3enc.c
+6
-2
libvorbisenc.c
libavcodec/libvorbisenc.c
+6
-2
rawdec.c
libavcodec/rawdec.c
+6
-1
No files found.
libavcodec/ac3enc_fixed.c
View file @
e9d5c052
...
...
@@ -34,8 +34,13 @@
#define AC3ENC_TYPE AC3ENC_TYPE_AC3_FIXED
#include "ac3enc_opts_template.c"
static
const
AVClass
ac3enc_class
=
{
"Fixed-Point AC-3 Encoder"
,
av_default_item_name
,
ac3fixed_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
ac3enc_class
=
{
.
class_name
=
"Fixed-Point AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
ac3fixed_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
#include "ac3enc_template.c"
...
...
libavcodec/ac3enc_float.c
View file @
e9d5c052
...
...
@@ -36,8 +36,12 @@
#if CONFIG_AC3_ENCODER
#define AC3ENC_TYPE AC3ENC_TYPE_AC3
#include "ac3enc_opts_template.c"
static
const
AVClass
ac3enc_class
=
{
"AC-3 Encoder"
,
av_default_item_name
,
ac3_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
ac3enc_class
=
{
.
class_name
=
"AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
ac3_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
#endif
#include "ac3enc_template.c"
...
...
libavcodec/dnxhdenc.c
View file @
e9d5c052
...
...
@@ -42,7 +42,13 @@ static const AVOption options[]={
{
"nitris_compat"
,
"encode with Avid Nitris compatibility"
,
offsetof
(
DNXHDEncContext
,
nitris_compat
),
AV_OPT_TYPE_INT
,
{.
dbl
=
0
},
0
,
1
,
VE
},
{
NULL
}
};
static
const
AVClass
class
=
{
"dnxhd"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
class
=
{
.
class_name
=
"dnxhd"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
#define LAMBDA_FRAC_BITS 10
...
...
libavcodec/eac3enc.c
View file @
e9d5c052
...
...
@@ -32,9 +32,13 @@
#define AC3ENC_TYPE AC3ENC_TYPE_EAC3
#include "ac3enc_opts_template.c"
static
const
AVClass
eac3enc_class
=
{
"E-AC-3 Encoder"
,
av_default_item_name
,
eac3_options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
eac3enc_class
=
{
.
class_name
=
"E-AC-3 Encoder"
,
.
item_name
=
av_default_item_name
,
.
option
=
eac3_options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
/**
* LUT for finding a matching frame exponent strategy index from a set of
...
...
libavcodec/libvorbisenc.c
View file @
e9d5c052
...
...
@@ -65,8 +65,12 @@ static const AVCodecDefault defaults[] = {
{
NULL
},
};
static
const
AVClass
class
=
{
"libvorbis"
,
av_default_item_name
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
class
=
{
.
class_name
=
"libvorbis"
,
.
item_name
=
av_default_item_name
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
int
vorbis_error_to_averror
(
int
ov_err
)
{
...
...
libavcodec/rawdec.c
View file @
e9d5c052
...
...
@@ -45,7 +45,12 @@ static const AVOption options[]={
{
"top"
,
"top field first"
,
offsetof
(
RawVideoContext
,
tff
),
AV_OPT_TYPE_INT
,
{.
dbl
=
-
1
},
-
1
,
1
,
AV_OPT_FLAG_DECODING_PARAM
|
AV_OPT_FLAG_VIDEO_PARAM
},
{
NULL
}
};
static
const
AVClass
class
=
{
"rawdec"
,
NULL
,
options
,
LIBAVUTIL_VERSION_INT
};
static
const
AVClass
class
=
{
.
class_name
=
"rawdec"
,
.
option
=
options
,
.
version
=
LIBAVUTIL_VERSION_INT
,
};
static
const
PixelFormatTag
pix_fmt_bps_avi
[]
=
{
{
PIX_FMT_MONOWHITE
,
1
},
...
...
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