#include "test/frame_generator.h"
#include <string.h>
#include <cstdint>
#include <cstdio>
#include <memory>
#include "api/video/i010_buffer.h"
#include "api/video/nv12_buffer.h"
#include "api/video/video_rotation.h"
#include "common_video/include/video_frame_buffer.h"
#include "common_video/libyuv/include/webrtc_libyuv.h"
#include "rtc_base/checks.h"
#include "test/frame_utils.h"
namespace webrtc {
namespace test {
SquareGenerator::SquareGenerator(int width,
int height,
OutputType type,
int num_squares)
: … { … }
void SquareGenerator::ChangeResolution(size_t width, size_t height) { … }
FrameGeneratorInterface::Resolution SquareGenerator::GetResolution() const { … }
rtc::scoped_refptr<I420Buffer> SquareGenerator::CreateI420Buffer(int width,
int height) { … }
FrameGeneratorInterface::VideoFrameData SquareGenerator::NextFrame() { … }
SquareGenerator::Square::Square(int width, int height, int seed)
: … { … }
void SquareGenerator::Square::Draw(
const rtc::scoped_refptr<VideoFrameBuffer>& frame_buffer) { … }
YuvFileGenerator::YuvFileGenerator(std::vector<FILE*> files,
size_t width,
size_t height,
int frame_repeat_count)
: … { … }
YuvFileGenerator::~YuvFileGenerator() { … }
FrameGeneratorInterface::VideoFrameData YuvFileGenerator::NextFrame() { … }
bool YuvFileGenerator::ReadNextFrame() { … }
FrameGeneratorInterface::Resolution YuvFileGenerator::GetResolution() const { … }
NV12FileGenerator::NV12FileGenerator(std::vector<FILE*> files,
size_t width,
size_t height,
int frame_repeat_count)
: … { … }
NV12FileGenerator::~NV12FileGenerator() { … }
FrameGeneratorInterface::VideoFrameData NV12FileGenerator::NextFrame() { … }
FrameGeneratorInterface::Resolution NV12FileGenerator::GetResolution() const { … }
bool NV12FileGenerator::ReadNextFrame() { … }
SlideGenerator::SlideGenerator(int width, int height, int frame_repeat_count)
: … { … }
FrameGeneratorInterface::VideoFrameData SlideGenerator::NextFrame() { … }
FrameGeneratorInterface::Resolution SlideGenerator::GetResolution() const { … }
void SlideGenerator::GenerateNewFrame() { … }
ScrollingImageFrameGenerator::ScrollingImageFrameGenerator(
Clock* clock,
const std::vector<FILE*>& files,
size_t source_width,
size_t source_height,
size_t target_width,
size_t target_height,
int64_t scroll_time_ms,
int64_t pause_time_ms)
: … { … }
FrameGeneratorInterface::VideoFrameData
ScrollingImageFrameGenerator::NextFrame() { … }
FrameGeneratorInterface::Resolution
ScrollingImageFrameGenerator::GetResolution() const { … }
void ScrollingImageFrameGenerator::UpdateSourceFrame(size_t frame_num) { … }
void ScrollingImageFrameGenerator::CropSourceToScrolledImage(
double scroll_factor) { … }
}
}