Skip to content
GitLab
Explore
Projects
Groups
Topics
Snippets
Projects
Groups
Topics
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
BC
public
external
libvpx
Commits
89826f1d
Commit
89826f1d
authored
12 years ago
by
Marco Paniconi
Browse files
Options
Download
Patches
Plain Diff
Change some settings in multi-res_encoder test.
Change-Id: Ic6a0c3a4b3bb00584d1e9dcdda0b50bdebab87aa
parent
27825e9e
v1.14.0-linphone
1.4.X
experimental
feature/update_to_v1.9.0-linphone
feature/uwp_nuget
forest
frame_parallel
highbitdepth
indianrunnerduck
javanwhistlingduck
khakicampbell
linphone
linphone-android
linphone-old
longtailedduck
m29-baseline
m31-baseline
m49-2623
m52-2743
m54-2840
m56-2924
m66-3359
m68-3440
mandarinduck
mcw
mcw2
nextgen
nextgenv2
pcs-2013
playground
sandbox/Jingning/experimental
sandbox/Jingning/transcode
sandbox/Jingning/vpx
sandbox/aconverse@google.com/ansbench
sandbox/debargha/playground
sandbox/hkuang/frame_parallel
sandbox/hkuang@google.com/decode
sandbox/jimbankoski@google.com/proposed-aom
sandbox/jingning@google.com/decoder_test_suite
sandbox/jingning@google.com/experimental
sandbox/jzern@google.com/test
sandbox/wangch@google.com/vp9
sandbox/yaowu@google.com/mergeaom
stable-vp9-decoder
v1.12.0-linphone
v1.6.1_linphone
v1.7.0-linphone
v1.9.0-linphone
v1.9.0
v1.9.0-rc1
v1.8.2
v1.8.1
v1.8.0
v1.7.0
v1.6.1
v1.6.0
v1.5.0
v1.4.0
v1.3.0
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
vp8_multi_resolution_encoder.c
+11
-12
vp8_multi_resolution_encoder.c
with
11 additions
and
12 deletions
vp8_multi_resolution_encoder.c
+
11
−
12
View file @
89826f1d
...
...
@@ -216,7 +216,7 @@ int main(int argc, char **argv)
* If target bitrate for highest-resolution level is set to 0,
* (i.e. target_bitrate[0]=0), we skip encoding at that level.
*/
unsigned
int
target_bitrate
[
NUM_ENCODERS
]
=
{
1
4
00
,
500
,
100
};
unsigned
int
target_bitrate
[
NUM_ENCODERS
]
=
{
1
0
00
,
500
,
100
};
/* Enter the frame rate of the input video */
int
framerate
=
30
;
/* Set down-sampling factor for each resolution level.
...
...
@@ -351,27 +351,26 @@ int main(int argc, char **argv)
if
(
vpx_codec_control
(
&
codec
[
i
],
VP8E_SET_CPUUSED
,
speed
))
die_codec
(
&
codec
[
i
],
"Failed to set cpu_used"
);
}
/* Set static thresh for highest-resolution encoder. Set it to 1000 for
* better performance. */
{
unsigned
int
static_thresh
=
1000
;
if
(
vpx_codec_control
(
&
codec
[
0
],
VP8E_SET_STATIC_THRESHOLD
,
static_thresh
))
die_codec
(
&
codec
[
0
],
"Failed to set static threshold"
);
}
/* Set static thresh = 0 for other encoders for better quality */
for
(
i
=
1
;
i
<
NUM_ENCODERS
;
i
++
)
/* Set static threshold. */
for
(
i
=
0
;
i
<
NUM_ENCODERS
;
i
++
)
{
unsigned
int
static_thresh
=
0
;
unsigned
int
static_thresh
=
1
;
if
(
vpx_codec_control
(
&
codec
[
i
],
VP8E_SET_STATIC_THRESHOLD
,
static_thresh
))
die_codec
(
&
codec
[
i
],
"Failed to set static threshold"
);
}
/* Set NOISE_SENSITIVITY to do TEMPORAL_DENOISING */
for
(
i
=
0
;
i
<
NUM_ENCODERS
;
i
++
)
/* Enable denoising for the highest-resolution encoder. */
if
(
vpx_codec_control
(
&
codec
[
0
],
VP8E_SET_NOISE_SENSITIVITY
,
1
))
die_codec
(
&
codec
[
0
],
"Failed to set noise_sensitivity"
);
for
(
i
=
1
;
i
<
NUM_ENCODERS
;
i
++
)
{
if
(
vpx_codec_control
(
&
codec
[
i
],
VP8E_SET_NOISE_SENSITIVITY
,
0
))
die_codec
(
&
codec
[
i
],
"Failed to set noise_sensitivity"
);
}
frame_avail
=
1
;
got_data
=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
Supports
Markdown
0%
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
Menu
Explore
Projects
Groups
Topics
Snippets