#include <memory>
#include <string>
#include "gtest/gtest.h"
#include "config/aom_config.h"
#include "aom_ports/mem.h"
#include "test/codec_factory.h"
#include "test/decode_test_driver.h"
#include "test/encode_test_driver.h"
#include "test/register_state_check.h"
#include "test/video_source.h"
namespace libaom_test {
void Encoder::InitEncoder(VideoSource *video) { … }
void Encoder::EncodeFrame(VideoSource *video,
const aom_enc_frame_flags_t frame_flags) { … }
void Encoder::EncodeFrameInternal(const VideoSource &video,
const aom_enc_frame_flags_t frame_flags) { … }
void Encoder::Flush() { … }
void EncoderTest::InitializeConfig(TestMode mode) { … }
static bool compare_plane(const uint8_t *const buf1, int stride1,
const uint8_t *const buf2, int stride2, int w, int h,
int *const mismatch_row, int *const mismatch_col,
int *const mismatch_pix1, int *const mismatch_pix2) { … }
static bool compare_img(const aom_image_t *img1, const aom_image_t *img2,
int *const mismatch_row, int *const mismatch_col,
int *const mismatch_plane, int *const mismatch_pix1,
int *const mismatch_pix2) { … }
void EncoderTest::MismatchHook(const aom_image_t *img_enc,
const aom_image_t *img_dec) { … }
void EncoderTest::RunLoop(VideoSource *video) { … }
}