14 , _frameDesc(frameDesc)
28 LOG_WARN(
"The given frame is not a valid video frame: allocate a new AVPicture to put generated data into it.");
39 std::stringstream msg;
40 msg <<
"Generate a black image with the following features:" << std::endl;
43 msg <<
"pixel format = rgb24" << std::endl;
46 VideoFrame& imageBuffer = static_cast<VideoFrame&>(frameBuffer);
53 const unsigned char fillChar = 0;
54 intermediateBuffer.
assign(fillChar);
63 LOG_DEBUG(
"Copy data of the black image when decode next frame")
69 LOG_DEBUG(
"Copy data of the image specified when decode next frame")
const VideoFrameDesc _frameDesc
The description of the black image (width, height...)
Description to create a video frame.
bool decodeNextFrame(Frame &frameBuffer)
Decode next frame.
bool isVideoFrame() const
This class describes decoded video data.
void clear()
Unreference all the buffers referenced by frame and reset the frame fields.
Frame * _inputFrame
A frame given from outside (has link, no ownership)
VideoGenerator(const VideoGenerator &videoGenerator)
AVPixelFormat getAVPixelFormat(const std::string &pixelFormat)
Get the corresponding AVPixelFormat from the pixel format name.
AVPixelFormat _pixelFormat
void assign(const unsigned char value)
Assign the given value to all the data of the picture.
This class describes decoded (raw) audio or video data.
VideoFrame * _blackImage
The generated black image (has ownership)
void copyData(const Frame &frameToRef)
Copy the data of the given Frame.