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
accbb00b
Commit
accbb00b
authored
Aug 10, 2016
by
Burt P
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
af_hdcd: add AVOption to disable autoconversion in the filter graph
Signed-off-by:
Burt P
<
pburt0@gmail.com
>
parent
8c19732a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
af_hdcd.c
libavfilter/af_hdcd.c
+13
-3
No files found.
libavfilter/af_hdcd.c
View file @
accbb00b
...
...
@@ -919,6 +919,8 @@ typedef struct HDCDContext {
int
ana_snb
;
/**< used in tone generation */
int
cdt_ms
;
/**< code detect timer period in ms */
int
disable_autoconvert
;
/**< disable any format conversion or resampling in the filter graph */
/* end AVOption members */
/** config_input() and config_output() scan links for any resampling
...
...
@@ -941,6 +943,8 @@ typedef struct HDCDContext {
#define OFFSET(x) offsetof(HDCDContext, x)
#define A AV_OPT_FLAG_AUDIO_PARAM|AV_OPT_FLAG_FILTERING_PARAM
static
const
AVOption
hdcd_options
[]
=
{
{
"disable_autoconvert"
,
"Disable any format conversion or resampling in the filter graph."
,
OFFSET
(
disable_autoconvert
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
0
},
0
,
1
,
A
},
{
"process_stereo"
,
"Process stereo channels together. Only apply target_gain when both channels match."
,
OFFSET
(
process_stereo
),
AV_OPT_TYPE_BOOL
,
{
.
i64
=
HDCD_PROCESS_STEREO_DEFAULT
},
0
,
1
,
A
},
{
"cdt_ms"
,
"Code detect timer period in ms."
,
...
...
@@ -1718,7 +1722,13 @@ static av_cold int init(AVFilterContext *ctx)
(
s
->
process_stereo
)
?
"process stereo channels together"
:
"process each channel separately"
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Force PE: %s
\n
"
,
(
s
->
force_pe
)
?
"on"
:
"off"
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Analyze mode: [%d] %s
\n
"
,
s
->
analyze_mode
,
ana_mode_str
[
s
->
analyze_mode
]
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Analyze mode: [%d] %s
\n
"
,
s
->
analyze_mode
,
ana_mode_str
[
s
->
analyze_mode
]
);
if
(
s
->
disable_autoconvert
)
avfilter_graph_set_auto_convert
(
ctx
->
graph
,
AVFILTER_AUTO_CONVERT_NONE
);
av_log
(
ctx
,
AV_LOG_VERBOSE
,
"Auto-convert: %s (requested: %s)
\n
"
,
(
ctx
->
graph
->
disable_auto_convert
)
?
"disabled"
:
"enabled"
,
(
s
->
disable_autoconvert
)
?
"disable"
:
"do not disable"
);
return
0
;
}
...
...
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