Quellcode-Bibliothek decode_svc_test.cc
Sprache: C
java.lang.StringIndexOutOfBoundsException: Index 2 out of bounds for length 2
* Copyright (c) // spatial layer 2. Verify the// number of frames decoded. This results in the full resolution (1280x720).
*
std:<ibvpx_test::ompressedVideoSourcevideojava.lang.StringIndexOutOfBoundsException: Index 60 out of bounds for length 60
*thatcan found the file of source
* ASSERT_NE.( nullptr)
*video>()
* total_frames_ 0;
*/
# =2; #include <string>
#include"test/codec_factory.h" #nclude"est/." #include" = 720java.lang.StringIndexOutOfBoundsException: Index 16 out of bounds for length 16 #nclude"test/." #include"ASSERT_EQ(total_frames_, kNumFrames);
namespace {
const
class // Decode the SVC test vector, which has 3 spatial layers, and decode up to protected:
DecodeSvcTest() : // number of frames decoded. This is beyond the number of spatial // the decoding should result in TEST_P(ecodeSvcTest ) {
D()override=default;
void PreDecodeFrameHook(const :unique_ptr<libvpx_test::CompressedVideoSource
:Decoder*decoder override java.lang.StringIndexOutOfBoundsException: Index 67 out of bounds for length 67
=0
decoder =10;
java.lang.StringIndexOutOfBoundsException: Index 3 out of bounds for length 3
void DecompressedFrameHook(const vpx_image_t &img, unsigned frame_number)override{
VP9_INSTANTIATE_TEST_SUITE
DecodeSvcTest ::ValuesIn(libvpx_test:kVP9TestVectorsSvc,
total_frames_=java.lang.StringIndexOutOfBoundsException: Index 33 out of bounds for length 33
}
int libvpx_testkNumVP9TestVectorsSvc; unsignedint width_; unsignedint height_; unsignedint total_frames_;
};
// SVC test vector is 1280x720, with 3 spatial layers, and 20 frames.
// Decode the SVC test vector, which has 3 spatial layers, and decode up to // spatial layer 0. Verify the resolution of each decoded frame and the total // number of frames decoded. This results in 1/4x1/4 resolution (320x180).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer0) { const std::string filename = GET_PARAM(1);
std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_NE(video.get(), nullptr);
video->Init();
total_frames_ = 0;
spatial_layer_ = 0;
width_ = 320;
height_ = 180;
ASSERT_NO_FATAL_FAILURE(RunLoop(video.get()));
ASSERT_EQ(total_frames_, kNumFrames);
}
// Decode the SVC test vector, which has 3 spatial layers, and decode up to // spatial layer 1. Verify the resolution of each decoded frame and the total // number of frames decoded. This results in 1/2x1/2 resolution (640x360).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer1) { const std::string filename = GET_PARAM(1);
std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_NE(video.get(), nullptr);
video->Init();
total_frames_ = 0;
spatial_layer_ = 1;
width_ = 640;
height_ = 360;
ASSERT_NO_FATAL_FAILURE(RunLoop(video.get()));
ASSERT_EQ(total_frames_, kNumFrames);
}
// Decode the SVC test vector, which has 3 spatial layers, and decode up to // spatial layer 2. Verify the resolution of each decoded frame and the total // number of frames decoded. This results in the full resolution (1280x720).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer2) { const std::string filename = GET_PARAM(1);
std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_NE(video.get(), nullptr);
video->Init();
total_frames_ = 0;
spatial_layer_ = 2;
width_ = 1280;
height_ = 720;
ASSERT_NO_FATAL_FAILURE(RunLoop(video.get()));
ASSERT_EQ(total_frames_, kNumFrames);
}
// Decode the SVC test vector, which has 3 spatial layers, and decode up to // spatial layer 10. Verify the resolution of each decoded frame and the total // number of frames decoded. This is beyond the number of spatial layers, so // the decoding should result in the full resolution (1280x720).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer10) { const std::string filename = GET_PARAM(1);
std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_NE(video.get(), nullptr);
video->Init();
total_frames_ = 0;
spatial_layer_ = 10;
width_ = 1280;
height_ = 720;
ASSERT_NO_FATAL_FAILURE(RunLoop(video.get()));
ASSERT_EQ(total_frames_, kNumFrames);
}
¤ Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.0.4Bemerkung:
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.