21 static constexpr std::string_view
CODEC_4CC =
"ZMBV";
30 [[nodiscard]]
unsigned neededSize()
const;
31 void addFullFrame(
unsigned& workUsed);
32 void addXorFrame (
unsigned& workUsed);
33 [[nodiscard]]
unsigned possibleBlock(
int vx,
int vy,
size_t offset);
34 [[nodiscard]]
unsigned compareBlock(
int vx,
int vy,
size_t offset);
35 void addXorBlock(
int vx,
int vy,
size_t offset,
unsigned& workUsed);
36 [[nodiscard]]
const void* getScaledLine(
const FrameSource* frame,
unsigned y,
void* workBuf)
const;
49 const unsigned height;
Interface for getting lines from a video frame.
This class manages the lifetime of a block of memory.
static constexpr std::string_view CODEC_4CC
std::span< const uint8_t > compressFrame(bool keyFrame, FrameSource *frame)
This file implemented 3 utility functions: