Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Xiph.Org
aom-rav1e
Commits
0ec34d2c
Commit
0ec34d2c
authored
Apr 03, 2017
by
Alex Converse
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
inspect: Fix build with CDEF disabled
Change-Id: I463d01ecf0ef2d666c38f9dec510b8b0b1eecadc
parent
2b9d19d2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
0 deletions
+7
-0
examples/inspect.c
examples/inspect.c
+7
-0
No files found.
examples/inspect.c
View file @
0ec34d2c
...
...
@@ -95,7 +95,9 @@ static const arg_def_t *main_args[] = { &limit_arg,
&
dump_mode_arg
,
&
dump_skip_arg
,
&
dump_filter_arg
,
#if CONFIG_CDEF
&
dump_cdef_arg
,
#endif
&
dump_reference_frame_arg
,
&
dump_motion_vectors_arg
,
&
usage_arg
,
...
...
@@ -433,12 +435,14 @@ void inspect(void *pbi, void *data) {
if
(
layers
&
FILTER_LAYER
)
{
buf
+=
put_block_info
(
buf
,
NULL
,
"filter"
,
offsetof
(
insp_mi_data
,
filter
));
}
#if CONFIG_CDEF
if
(
layers
&
CDEF_LAYER
)
{
buf
+=
put_block_info
(
buf
,
NULL
,
"cdef_level"
,
offsetof
(
insp_mi_data
,
cdef_level
));
buf
+=
put_block_info
(
buf
,
NULL
,
"cdef_strength"
,
offsetof
(
insp_mi_data
,
cdef_strength
));
}
#endif
if
(
layers
&
MOTION_VECTORS_LAYER
)
{
buf
+=
put_motion_vectors
(
buf
);
}
...
...
@@ -543,6 +547,7 @@ static void parse_args(char **argv) {
char
**
argi
,
**
argj
;
struct
arg
arg
;
(
void
)
dump_accounting_arg
;
(
void
)
dump_cdef_arg
;
for
(
argi
=
argj
=
argv
;
(
*
argj
=
*
argi
);
argi
+=
arg
.
argv_step
)
{
arg
.
argv_step
=
1
;
if
(
arg_match
(
&
arg
,
&
dump_block_size_arg
,
argi
))
layers
|=
BLOCK_SIZE_LAYER
;
...
...
@@ -560,8 +565,10 @@ static void parse_args(char **argv) {
layers
|=
SKIP_LAYER
;
else
if
(
arg_match
(
&
arg
,
&
dump_filter_arg
,
argi
))
layers
|=
FILTER_LAYER
;
#if CONFIG_CDEF
else
if
(
arg_match
(
&
arg
,
&
dump_cdef_arg
,
argi
))
layers
|=
CDEF_LAYER
;
#endif
else
if
(
arg_match
(
&
arg
,
&
dump_reference_frame_arg
,
argi
))
layers
|=
REFERENCE_FRAME_LAYER
;
else
if
(
arg_match
(
&
arg
,
&
dump_motion_vectors_arg
,
argi
))
...
...
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