1 #ifndef _AV_TRANSCODER_FRAME_FRAME_HPP_
2 #define _AV_TRANSCODER_FRAME_FRAME_HPP_
7 #include <libavutil/frame.h>
35 unsigned char**
getData() {
return _frame->data; }
50 int getEncodedSize()
const;
57 void copyData(
const Frame& frameToRef);
62 void copyProperties(
const Frame& otherFrame);
68 void refFrame(
const Frame& otherFrame);
79 bool isAudioFrame()
const;
85 bool isVideoFrame()
const;
90 const unsigned char**
getData()
const {
return const_cast<const unsigned char**
>(_frame->data); }
94 void allocateAVFrame();
const unsigned char ** getData() const
unsigned char ** getData()
Get all the data of the frame.
This class describes decoded (raw) audio or video data.
int * getLineSize() const
Returns the size in byte. For video, size in bytes of each picture line. For audio, size in bytes of each plane.
const AVFrame & getAVFrame() const