#include <climits>
#include <cstring>
#include <vector>
#include "gtest/gtest.h"
#include "test/codec_factory.h"
#include "test/encode_test_driver.h"
#include "test/i420_video_source.h"
#include "test/util.h"
#include "./vpx_config.h"
#include "vpx/vp8cx.h"
#include "vpx/vpx_codec.h"
#include "vpx/vpx_encoder.h"
#include "vpx/vpx_image.h"
namespace {
class KeyframeTest
: public ::libvpx_test::EncoderTest,
public ::libvpx_test::CodecTestWithParam<libvpx_test::TestMode> { … };
TEST_P(KeyframeTest, TestRandomVideoSource) { … }
TEST_P(KeyframeTest, TestDisableKeyframes) { … }
TEST_P(KeyframeTest, TestForceKeyframe) { … }
TEST_P(KeyframeTest, TestKeyframeMaxDistance) { … }
TEST_P(KeyframeTest, TestAutoKeyframe) { … }
VP8_INSTANTIATE_TEST_SUITE(…);
bool IsVP9(vpx_codec_iface_t *iface) { … }
vpx_image_t *CreateGrayImage(vpx_img_fmt_t fmt, unsigned int w,
unsigned int h) { … }
void TestKeyframeMaximumInterval(vpx_codec_iface_t *iface,
vpx_enc_deadline_t deadline,
unsigned int kf_max_dist) { … }
TEST(KeyframeIntervalTest, KeyframeMaximumInterval) { … }
}