Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
Opus
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alexander Traud
Opus
Commits
25947cbc
Commit
25947cbc
authored
13 years ago
by
Jean-Marc Valin
Browse files
Options
Downloads
Patches
Plain Diff
Header documentation fixes
parent
8cb54e11
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/opus.h
+7
-7
7 additions, 7 deletions
src/opus.h
with
7 additions
and
7 deletions
src/opus.h
+
7
−
7
View file @
25947cbc
...
...
@@ -150,13 +150,13 @@ typedef struct OpusDecoder OpusDecoder;
/*
* There are two coding modes:
* OPUS_
MODE
_VOI
CE
gives best quality at a given bitrate for voice signals. It enhances the
* OPUS_
APPLICATION
_VOI
P
gives best quality at a given bitrate for voice signals. It enhances the
* input signal by high-pass filtering and emphasizing formants and harmonics. Optionally
* it includes in-band forward error correction to protect against packet loss. Use this
* mode for typical VoIP applications. Because of the enhancement, even at high bitrates
* the output may sound different from the input.
* OPUS_
MODE
_AUDIO gives best quality at a given bitrate for most non-voice signals like music.
* Use this mode for music and mixed (music/voice) content, and applications requiring less
* OPUS_
APPLICATION
_AUDIO gives best quality at a given bitrate for most non-voice signals like music.
* Use this mode for music and mixed (music/voice) content,
broadcast,
and applications requiring less
* than 15 ms of coding delay.
*/
...
...
@@ -164,17 +164,17 @@ typedef struct OpusDecoder OpusDecoder;
OPUS_EXPORT
OpusEncoder
*
opus_encoder_create
(
int
Fs
,
/* Sampling rate of input signal (Hz) */
int
channels
,
/* Number of channels (1/2) in input signal */
int
application
/* Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
int
application
/* Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
);
OPUS_EXPORT
OpusEncoder
*
opus_encoder_init
(
OpusEncoder
*
st
,
/* Encoder state */
int
Fs
,
/* Sampling rate of input signal (Hz) */
int
channels
,
/* Number of channels (1/2) in input signal */
int
application
/* Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
int
application
/* Coding mode (OPUS_APPLICATION_VOIP/OPUS_APPLICATION_AUDIO) */
);
/*
r
eturns length of data payload (in bytes) */
/*
R
eturns length of
the
data payload (in bytes) */
OPUS_EXPORT
int
opus_encode
(
OpusEncoder
*
st
,
/* Encoder state */
const
short
*
pcm
,
/* Input signal (interleaved if 2 channels). length is frame_size*channels */
...
...
@@ -197,7 +197,7 @@ OPUS_EXPORT OpusDecoder *opus_decoder_init(OpusDecoder *st,
int
channels
/* Number of channels (1/2) in output signal */
);
/*
r
eturns
(CELT)
error code */
/*
R
eturns
the number of samples decoded or a negative
error code */
OPUS_EXPORT
int
opus_decode
(
OpusDecoder
*
st
,
/* Decoder state */
const
unsigned
char
*
data
,
/* Input payload. Use a NULL pointer to indicate packet loss */
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment