File tree Expand file tree Collapse file tree 2 files changed +11
-0
lines changed
src/AvTranscoder/data/decoded Expand file tree Collapse file tree 2 files changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -40,6 +40,11 @@ Frame::~Frame()
40
40
}
41
41
}
42
42
43
+ int Frame::getEncodedSize () const
44
+ {
45
+ return av_frame_get_pkt_size (_frame);
46
+ }
47
+
43
48
void Frame::copyData (const Frame& frameToRef)
44
49
{
45
50
const int ret = av_frame_copy (_frame, &frameToRef.getAVFrame ());
Original file line number Diff line number Diff line change @@ -43,6 +43,12 @@ class AvExport Frame
43
43
*/
44
44
int * getLineSize () const { return _frame->linesize ; }
45
45
46
+ /* *
47
+ * @return Size of the corresponding packet containing the compressed frame (in bytes)
48
+ * @warning returns a negative value if the size is unknown
49
+ */
50
+ int getEncodedSize () const ;
51
+
46
52
/* *
47
53
* @brief Copy the data of the given Frame.
48
54
* @note This function does not allocate anything: the current frame must be already initialized and
You can’t perform that action at this time.
0 commit comments