Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Opus
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Mark Harris
Opus
Commits
691d4935
Verified
Commit
691d4935
authored
Sep 03, 2016
by
Mark Harris
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Allow disabling phase inversion for multistream
Also clarify in doc that conformance issue relates to decoder only.
parent
f25b46a3
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
5 deletions
+10
-5
include/opus_defines.h
include/opus_defines.h
+6
-5
src/opus_multistream_decoder.c
src/opus_multistream_decoder.c
+2
-0
src/opus_multistream_encoder.c
src/opus_multistream_encoder.c
+2
-0
No files found.
include/opus_defines.h
View file @
691d4935
...
...
@@ -682,11 +682,12 @@ extern "C" {
*/
#define OPUS_GET_SAMPLE_RATE(x) OPUS_GET_SAMPLE_RATE_REQUEST, __opus_check_int_ptr(x)
/** If set to 1, disables the use of phase inversion for intensity stereo, improving the
* quality of mono downmixes, but slightly reducing normal stereo quality. Disabling phase
* inversion does not comply with RFC6716, even though it does not cause any
* interoperability issue. It will become part of the Opus standard once RFC6716 gets
* updated with draft-ietf-codec-opus-update.
/** If set to 1, disables the use of phase inversion for intensity stereo,
* improving the quality of mono downmixes, but slightly reducing normal
* stereo quality. Disabling phase inversion in the decoder does not comply
* with RFC 6716, although it does not cause any interoperability issue and
* is expected to become part of the Opus standard once RFC 6716 is updated
* by draft-ietf-codec-opus-update.
* @see OPUS_GET_PHASE_INVERSION_DISABLED
* @param[in] x <tt>opus_int32</tt>: Allowed values:
* <dl>
...
...
src/opus_multistream_decoder.c
View file @
691d4935
...
...
@@ -425,6 +425,7 @@ int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...)
case
OPUS_GET_SAMPLE_RATE_REQUEST
:
case
OPUS_GET_GAIN_REQUEST
:
case
OPUS_GET_LAST_PACKET_DURATION_REQUEST
:
case
OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST
:
{
OpusDecoder
*
dec
;
/* For int32* GET params, just query the first stream */
...
...
@@ -499,6 +500,7 @@ int opus_multistream_decoder_ctl(OpusMSDecoder *st, int request, ...)
}
break
;
case
OPUS_SET_GAIN_REQUEST
:
case
OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST
:
{
int
s
;
/* This works for int32 params */
...
...
src/opus_multistream_encoder.c
View file @
691d4935
...
...
@@ -1204,6 +1204,7 @@ int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...)
case
OPUS_GET_INBAND_FEC_REQUEST
:
case
OPUS_GET_FORCE_CHANNELS_REQUEST
:
case
OPUS_GET_PREDICTION_DISABLED_REQUEST
:
case
OPUS_GET_PHASE_INVERSION_DISABLED_REQUEST
:
{
OpusEncoder
*
enc
;
/* For int32* GET params, just query the first stream */
...
...
@@ -1250,6 +1251,7 @@ int opus_multistream_encoder_ctl(OpusMSEncoder *st, int request, ...)
case
OPUS_SET_FORCE_MODE_REQUEST
:
case
OPUS_SET_FORCE_CHANNELS_REQUEST
:
case
OPUS_SET_PREDICTION_DISABLED_REQUEST
:
case
OPUS_SET_PHASE_INVERSION_DISABLED_REQUEST
:
{
int
s
;
/* This works for int32 params */
...
...
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