* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
#include <string>
#include "test/codec_factory.h"
// number of frames decoded. This results in 1/4x1/4 resolution (320x180).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer0) {
const std::string filename = GET_PARAM(1);
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_TRUE(video.get() != NULL);
video->Init();
// number of frames decoded. This results in 1/2x1/2 resolution (640x360).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer1) {
const std::string filename = GET_PARAM(1);
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_TRUE(video.get() != NULL);
video->Init();
// number of frames decoded. This results in the full resolution (1280x720).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer2) {
const std::string filename = GET_PARAM(1);
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_TRUE(video.get() != NULL);
video->Init();
// the decoding should result in the full resolution (1280x720).
TEST_P(DecodeSvcTest, DecodeSvcTestUpToSpatialLayer10) {
const std::string filename = GET_PARAM(1);
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
video.reset(new libvpx_test::IVFVideoSource(filename));
ASSERT_TRUE(video.get() != NULL);
video->Init();
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
#include <string>
#include "third_party/googletest/src/include/gtest/gtest.h"
}
BeginPassHook(pass);
- testing::internal::scoped_ptr<Encoder> encoder(
+ std::unique_ptr<Encoder> encoder(
codec_->CreateEncoder(cfg_, deadline_, init_flags_, &stats_));
ASSERT_TRUE(encoder.get() != NULL);
if (init_flags_ & VPX_CODEC_USE_OUTPUT_PARTITION) {
dec_init_flags |= VPX_CODEC_USE_INPUT_FRAGMENTS;
}
- testing::internal::scoped_ptr<Decoder> decoder(
+ std::unique_ptr<Decoder> decoder(
codec_->CreateDecoder(dec_cfg, dec_init_flags));
bool again;
for (again = true; again; video->Next()) {
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
#include <string>
#include "./vpx_config.h"
#endif
// Open compressed video file.
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
if (filename.substr(filename.length() - 3, 3) == "ivf") {
video.reset(new libvpx_test::IVFVideoSource(filename));
} else {
#include <cstdio>
#include <cstdlib>
+#include <memory>
#include <string>
#include <vector>
#include "third_party/googletest/src/include/gtest/gtest.h"
const std::string filename = input.filename;
// Open compressed video file.
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
if (filename.substr(filename.length() - 3, 3) == "ivf") {
video.reset(new libvpx_test::IVFVideoSource(filename));
} else if (filename.substr(filename.length() - 4, 4) == "webm") {
#include <cstdio>
#include <cstdlib>
+#include <memory>
#include <set>
#include <string>
#include "third_party/googletest/src/include/gtest/gtest.h"
SCOPED_TRACE(str);
// Open compressed video file.
- testing::internal::scoped_ptr<libvpx_test::CompressedVideoSource> video;
+ std::unique_ptr<libvpx_test::CompressedVideoSource> video;
if (filename.substr(filename.length() - 3, 3) == "ivf") {
video.reset(new libvpx_test::IVFVideoSource(filename));
} else if (filename.substr(filename.length() - 4, 4) == "webm") {
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "test/codec_factory.h"
init_flags_ = VPX_CODEC_USE_PSNR;
if (cfg_.g_bit_depth > 8) init_flags_ |= VPX_CODEC_USE_HIGHBITDEPTH;
- testing::internal::scoped_ptr<libvpx_test::VideoSource> video;
+ std::unique_ptr<libvpx_test::VideoSource> video;
if (is_extension_y4m(test_video_param_.filename)) {
video.reset(new libvpx_test::Y4mVideoSource(test_video_param_.filename, 0,
kFrames));
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "test/codec_factory.h"
TEST_P(VpxEncoderParmsGetToDecoder, BitstreamParms) {
init_flags_ = VPX_CODEC_USE_PSNR;
- testing::internal::scoped_ptr<libvpx_test::VideoSource> video(
+ std::unique_ptr<libvpx_test::VideoSource> video(
new libvpx_test::Y4mVideoSource(test_video_.name, 0, test_video_.frames));
ASSERT_TRUE(video.get() != NULL);
* be found in the AUTHORS file in the root of the source tree.
*/
+#include "memory"
+
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "test/codec_factory.h"
init_flags_ = VPX_CODEC_USE_PSNR;
if (cfg_.g_bit_depth > 8) init_flags_ |= VPX_CODEC_USE_HIGHBITDEPTH;
- testing::internal::scoped_ptr<libvpx_test::VideoSource> video;
+ std::unique_ptr<libvpx_test::VideoSource> video;
if (is_extension_y4m(test_video_param_.filename)) {
video.reset(new libvpx_test::Y4mVideoSource(test_video_param_.filename, 0,
kFrames));
denoiser_on_ = 1;
if (cfg_.g_bit_depth > 8) init_flags_ |= VPX_CODEC_USE_HIGHBITDEPTH;
- testing::internal::scoped_ptr<libvpx_test::VideoSource> video;
+ std::unique_ptr<libvpx_test::VideoSource> video;
if (is_extension_y4m(test_video_param_.filename)) {
video.reset(new libvpx_test::Y4mVideoSource(test_video_param_.filename, 0,
kFrames));
* be found in the AUTHORS file in the root of the source tree.
*/
+#include <memory>
+
#include "third_party/googletest/src/include/gtest/gtest.h"
#include "test/codec_factory.h"
cfg_.g_profile = 0;
init_flags_ = VPX_CODEC_USE_PSNR;
- testing::internal::scoped_ptr<libvpx_test::VideoSource> video;
+ std::unique_ptr<libvpx_test::VideoSource> video;
video.reset(new libvpx_test::YUVVideoSource(
"niklas_640_480_30.yuv", VPX_IMG_FMT_I420, 3840, 2160, // 2048, 1080,
30, 1, 0, 5));
#ifndef VPX_TEST_Y4M_VIDEO_SOURCE_H_
#define VPX_TEST_Y4M_VIDEO_SOURCE_H_
#include <algorithm>
+#include <memory>
#include <string>
#include "test/video_source.h"
std::string file_name_;
FILE *input_file_;
- testing::internal::scoped_ptr<vpx_image_t> img_;
+ std::unique_ptr<vpx_image_t> img_;
unsigned int start_;
unsigned int limit_;
unsigned int frame_;