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
ad9ee2c9
Commit
ad9ee2c9
authored
11 years ago
by
John Koleszar
Committed by
Gerrit Code Review
11 years ago
Browse files
Options
Download
Plain Diff
Merge "encode_test_driver: check for fatal failures"
parents
3cc8c8c3
1c05e9de
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
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
10
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
test/altref_test.cc
+0
-4
test/altref_test.cc
test/borders_test.cc
+0
-4
test/borders_test.cc
test/config_test.cc
+0
-4
test/config_test.cc
test/cq_test.cc
+0
-4
test/cq_test.cc
test/datarate_test.cc
+0
-4
test/datarate_test.cc
test/encode_test_driver.h
+3
-1
test/encode_test_driver.h
test/error_resilience_test.cc
+0
-4
test/error_resilience_test.cc
test/keyframe_test.cc
+0
-4
test/keyframe_test.cc
test/resize_test.cc
+0
-4
test/resize_test.cc
test/superframe_test.cc
+0
-4
test/superframe_test.cc
with
3 additions
and
37 deletions
test/altref_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -33,10 +33,6 @@ class AltRefTest : public ::libvpx_test::EncoderTest,
...
@@ -33,10 +33,6 @@ class AltRefTest : public ::libvpx_test::EncoderTest,
altref_count_
=
0
;
altref_count_
=
0
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
libvpx_test
::
Encoder
*
encoder
)
{
libvpx_test
::
Encoder
*
encoder
)
{
if
(
video
->
frame
()
==
1
)
{
if
(
video
->
frame
()
==
1
)
{
...
...
This diff is collapsed.
Click to expand it.
test/borders_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -27,10 +27,6 @@ class BordersTest : public ::libvpx_test::EncoderTest,
...
@@ -27,10 +27,6 @@ class BordersTest : public ::libvpx_test::EncoderTest,
SetMode
(
GET_PARAM
(
1
));
SetMode
(
GET_PARAM
(
1
));
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
::
libvpx_test
::
Encoder
*
encoder
)
{
::
libvpx_test
::
Encoder
*
encoder
)
{
if
(
video
->
frame
()
==
1
)
{
if
(
video
->
frame
()
==
1
)
{
...
...
This diff is collapsed.
Click to expand it.
test/config_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -40,10 +40,6 @@ class ConfigTest : public ::libvpx_test::EncoderTest,
...
@@ -40,10 +40,6 @@ class ConfigTest : public ::libvpx_test::EncoderTest,
++
frame_count_out_
;
++
frame_count_out_
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
unsigned
int
frame_count_in_
;
unsigned
int
frame_count_in_
;
unsigned
int
frame_count_out_
;
unsigned
int
frame_count_out_
;
unsigned
int
frame_count_max_
;
unsigned
int
frame_count_max_
;
...
...
This diff is collapsed.
Click to expand it.
test/cq_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -42,10 +42,6 @@ class CQTest : public ::libvpx_test::EncoderTest,
...
@@ -42,10 +42,6 @@ class CQTest : public ::libvpx_test::EncoderTest,
n_frames_
=
0
;
n_frames_
=
0
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
libvpx_test
::
Encoder
*
encoder
)
{
libvpx_test
::
Encoder
*
encoder
)
{
if
(
video
->
frame
()
==
1
)
{
if
(
video
->
frame
()
==
1
)
{
...
...
This diff is collapsed.
Click to expand it.
test/datarate_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -36,10 +36,6 @@ class DatarateTest : public ::libvpx_test::EncoderTest,
...
@@ -36,10 +36,6 @@ class DatarateTest : public ::libvpx_test::EncoderTest,
duration_
=
0.0
;
duration_
=
0.0
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
::
libvpx_test
::
Encoder
*
encoder
)
{
::
libvpx_test
::
Encoder
*
encoder
)
{
const
vpx_rational_t
tb
=
video
->
timebase
();
const
vpx_rational_t
tb
=
video
->
timebase
();
...
...
This diff is collapsed.
Click to expand it.
test/encode_test_driver.h
+
3
−
1
View file @
ad9ee2c9
...
@@ -190,7 +190,9 @@ class EncoderTest {
...
@@ -190,7 +190,9 @@ class EncoderTest {
virtual
void
PSNRPktHook
(
const
vpx_codec_cx_pkt_t
*
pkt
)
{}
virtual
void
PSNRPktHook
(
const
vpx_codec_cx_pkt_t
*
pkt
)
{}
// Hook to determine whether the encode loop should continue.
// Hook to determine whether the encode loop should continue.
virtual
bool
Continue
()
const
{
return
!
abort_
;
}
virtual
bool
Continue
()
const
{
return
!
(
::
testing
::
Test
::
HasFatalFailure
()
||
abort_
);
}
const
CodecFactory
*
codec_
;
const
CodecFactory
*
codec_
;
// Hook to determine whether to decode frame after encoding
// Hook to determine whether to decode frame after encoding
...
...
This diff is collapsed.
Click to expand it.
test/error_resilience_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -50,10 +50,6 @@ class ErrorResilienceTest : public ::libvpx_test::EncoderTest,
...
@@ -50,10 +50,6 @@ class ErrorResilienceTest : public ::libvpx_test::EncoderTest,
mismatch_nframes_
=
0
;
mismatch_nframes_
=
0
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PSNRPktHook
(
const
vpx_codec_cx_pkt_t
*
pkt
)
{
virtual
void
PSNRPktHook
(
const
vpx_codec_cx_pkt_t
*
pkt
)
{
psnr_
+=
pkt
->
data
.
psnr
.
psnr
[
0
];
psnr_
+=
pkt
->
data
.
psnr
.
psnr
[
0
];
nframes_
++
;
nframes_
++
;
...
...
This diff is collapsed.
Click to expand it.
test/keyframe_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -31,10 +31,6 @@ class KeyframeTest : public ::libvpx_test::EncoderTest,
...
@@ -31,10 +31,6 @@ class KeyframeTest : public ::libvpx_test::EncoderTest,
set_cpu_used_
=
0
;
set_cpu_used_
=
0
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
::
libvpx_test
::
VideoSource
*
video
,
::
libvpx_test
::
Encoder
*
encoder
)
{
::
libvpx_test
::
Encoder
*
encoder
)
{
if
(
kf_do_force_kf_
)
if
(
kf_do_force_kf_
)
...
...
This diff is collapsed.
Click to expand it.
test/resize_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -70,10 +70,6 @@ class ResizeTest : public ::libvpx_test::EncoderTest,
...
@@ -70,10 +70,6 @@ class ResizeTest : public ::libvpx_test::EncoderTest,
SetMode
(
GET_PARAM
(
1
));
SetMode
(
GET_PARAM
(
1
));
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
DecompressedFrameHook
(
const
vpx_image_t
&
img
,
virtual
void
DecompressedFrameHook
(
const
vpx_image_t
&
img
,
vpx_codec_pts_t
pts
)
{
vpx_codec_pts_t
pts
)
{
frame_info_list_
.
push_back
(
FrameInfo
(
pts
,
img
.
d_w
,
img
.
d_h
));
frame_info_list_
.
push_back
(
FrameInfo
(
pts
,
img
.
d_w
,
img
.
d_h
));
...
...
This diff is collapsed.
Click to expand it.
test/superframe_test.cc
+
0
−
4
View file @
ad9ee2c9
...
@@ -33,10 +33,6 @@ class SuperframeTest : public ::libvpx_test::EncoderTest,
...
@@ -33,10 +33,6 @@ class SuperframeTest : public ::libvpx_test::EncoderTest,
delete
[]
modified_buf_
;
delete
[]
modified_buf_
;
}
}
virtual
bool
Continue
()
const
{
return
!
HasFatalFailure
()
&&
!
abort_
;
}
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
virtual
void
PreEncodeFrameHook
(
libvpx_test
::
VideoSource
*
video
,
libvpx_test
::
Encoder
*
encoder
)
{
libvpx_test
::
Encoder
*
encoder
)
{
if
(
video
->
frame
()
==
1
)
{
if
(
video
->
frame
()
==
1
)
{
...
...
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