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
437c11ca
Commit
437c11ca
authored
Oct 28, 2011
by
Justin Ruggles
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
g726: group the g726_encoder AVCodec with the other encoding functions
parent
50969c0f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
15 deletions
+13
-15
g726.c
libavcodec/g726.c
+13
-15
No files found.
libavcodec/g726.c
View file @
437c11ca
...
...
@@ -365,6 +365,19 @@ static int g726_encode_frame(AVCodecContext *avctx,
return
put_bits_count
(
&
pb
)
>>
3
;
}
AVCodec
ff_adpcm_g726_encoder
=
{
.
name
=
"g726"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
id
=
CODEC_ID_ADPCM_G726
,
.
priv_data_size
=
sizeof
(
G726Context
),
.
init
=
g726_encode_init
,
.
encode
=
g726_encode_frame
,
.
close
=
g726_encode_close
,
.
capabilities
=
CODEC_CAP_SMALL_LAST_FRAME
,
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"G.726 ADPCM"
),
};
#endif
static
av_cold
int
g726_decode_init
(
AVCodecContext
*
avctx
)
...
...
@@ -426,21 +439,6 @@ static int g726_decode_frame(AVCodecContext *avctx,
return
buf_size
;
}
#if CONFIG_ADPCM_G726_ENCODER
AVCodec
ff_adpcm_g726_encoder
=
{
.
name
=
"g726"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
.
id
=
CODEC_ID_ADPCM_G726
,
.
priv_data_size
=
sizeof
(
G726Context
),
.
init
=
g726_encode_init
,
.
encode
=
g726_encode_frame
,
.
close
=
g726_encode_close
,
.
capabilities
=
CODEC_CAP_SMALL_LAST_FRAME
,
.
sample_fmts
=
(
const
enum
AVSampleFormat
[]){
AV_SAMPLE_FMT_S16
,
AV_SAMPLE_FMT_NONE
},
.
long_name
=
NULL_IF_CONFIG_SMALL
(
"G.726 ADPCM"
),
};
#endif
AVCodec
ff_adpcm_g726_decoder
=
{
.
name
=
"g726"
,
.
type
=
AVMEDIA_TYPE_AUDIO
,
...
...
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