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
984e3398
Commit
984e3398
authored
Feb 06, 2014
by
Diego Biurrun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
avcodec: Consistently name encoder init functions foo_encode_init
parent
017a06a9
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
10 deletions
+9
-10
a64multienc.c
libavcodec/a64multienc.c
+3
-3
dvenc.c
libavcodec/dvenc.c
+2
-2
libvorbis.c
libavcodec/libvorbis.c
+2
-3
rawenc.c
libavcodec/rawenc.c
+2
-2
No files found.
libavcodec/a64multienc.c
View file @
984e3398
...
...
@@ -174,7 +174,7 @@ static av_cold int a64multi_close_encoder(AVCodecContext *avctx)
return
0
;
}
static
av_cold
int
a64multi_
init_encoder
(
AVCodecContext
*
avctx
)
static
av_cold
int
a64multi_
encode_init
(
AVCodecContext
*
avctx
)
{
A64Context
*
c
=
avctx
->
priv_data
;
int
a
;
...
...
@@ -382,7 +382,7 @@ AVCodec ff_a64multi_encoder = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_A64_MULTI
,
.
priv_data_size
=
sizeof
(
A64Context
),
.
init
=
a64multi_
init_encoder
,
.
init
=
a64multi_
encode_init
,
.
encode2
=
a64multi_encode_frame
,
.
close
=
a64multi_close_encoder
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
},
...
...
@@ -395,7 +395,7 @@ AVCodec ff_a64multi5_encoder = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_A64_MULTI5
,
.
priv_data_size
=
sizeof
(
A64Context
),
.
init
=
a64multi_
init_encoder
,
.
init
=
a64multi_
encode_init
,
.
encode2
=
a64multi_encode_frame
,
.
close
=
a64multi_close_encoder
,
.
pix_fmts
=
(
const
enum
AVPixelFormat
[])
{
AV_PIX_FMT_GRAY8
,
AV_PIX_FMT_NONE
},
...
...
libavcodec/dvenc.c
View file @
984e3398
...
...
@@ -33,7 +33,7 @@
#include "dv.h"
#include "dv_tablegen.h"
static
av_cold
int
dvvideo_
init_encoder
(
AVCodecContext
*
avctx
)
static
av_cold
int
dvvideo_
encode_init
(
AVCodecContext
*
avctx
)
{
if
(
!
avpriv_dv_codec_profile
(
avctx
))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"Found no DV profile for %ix%i %s video. "
...
...
@@ -699,7 +699,7 @@ AVCodec ff_dvvideo_encoder = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_DVVIDEO
,
.
priv_data_size
=
sizeof
(
DVVideoContext
),
.
init
=
dvvideo_
init_encoder
,
.
init
=
dvvideo_
encode_init
,
.
encode2
=
dvvideo_encode_frame
,
.
close
=
dvvideo_encode_close
,
.
capabilities
=
CODEC_CAP_SLICE_THREADS
,
...
...
libavcodec/libvorbis.c
View file @
984e3398
...
...
@@ -85,8 +85,7 @@ static int vorbis_error_to_averror(int ov_err)
}
}
static
av_cold
int
oggvorbis_init_encoder
(
vorbis_info
*
vi
,
AVCodecContext
*
avctx
)
static
av_cold
int
oggvorbis_encode_init
(
vorbis_info
*
vi
,
AVCodecContext
*
avctx
)
{
OggVorbisContext
*
s
=
avctx
->
priv_data
;
double
cfreq
;
...
...
@@ -176,7 +175,7 @@ static av_cold int oggvorbis_encode_init(AVCodecContext *avctx)
int
ret
;
vorbis_info_init
(
&
s
->
vi
);
if
((
ret
=
oggvorbis_
init_encoder
(
&
s
->
vi
,
avctx
)))
{
if
((
ret
=
oggvorbis_
encode_init
(
&
s
->
vi
,
avctx
)))
{
av_log
(
avctx
,
AV_LOG_ERROR
,
"encoder setup failed
\n
"
);
goto
error
;
}
...
...
libavcodec/rawenc.c
View file @
984e3398
...
...
@@ -31,7 +31,7 @@
#include "libavutil/intreadwrite.h"
#include "libavutil/internal.h"
static
av_cold
int
raw_
init_encoder
(
AVCodecContext
*
avctx
)
static
av_cold
int
raw_
encode_init
(
AVCodecContext
*
avctx
)
{
const
AVPixFmtDescriptor
*
desc
=
av_pix_fmt_desc_get
(
avctx
->
pix_fmt
);
...
...
@@ -75,6 +75,6 @@ AVCodec ff_rawvideo_encoder = {
.
type
=
AVMEDIA_TYPE_VIDEO
,
.
id
=
AV_CODEC_ID_RAWVIDEO
,
.
priv_data_size
=
sizeof
(
AVFrame
),
.
init
=
raw_
init_encoder
,
.
init
=
raw_
encode_init
,
.
encode2
=
raw_encode
,
};
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