File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed
src/AvTranscoder/data/decoded Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ class AvExport AudioFrame : public IFrame
49
49
*/
50
50
void allocateData ();
51
51
void freeData ();
52
+ size_t getSize () const ;
52
53
53
54
size_t getSampleRate () const { return av_frame_get_sample_rate (_frame); }
54
55
size_t getNbChannels () const { return av_frame_get_channels (_frame); }
@@ -58,8 +59,6 @@ class AvExport AudioFrame : public IFrame
58
59
size_t getBytesPerSample () const ; // /< 0 if unknown sample format
59
60
size_t getNbSamplesPerChannel () const { return _frame->nb_samples ; }
60
61
61
- size_t getSize () const ;
62
-
63
62
/* *
64
63
* @brief This methods dynamically updates the size that the data buffer would occupy if allocated.
65
64
* @warning If the data buffer is already allocated, this could lead to memory leaks or seg fault.
Original file line number Diff line number Diff line change @@ -57,13 +57,12 @@ class AvExport VideoFrame : public IFrame
57
57
*/
58
58
void allocateData ();
59
59
void freeData ();
60
+ size_t getSize () const ;
60
61
61
62
size_t getWidth () const { return _frame->width ; }
62
63
size_t getHeight () const { return _frame->height ; }
63
64
AVPixelFormat getPixelFormat () const { return static_cast <AVPixelFormat>(_frame->format ); }
64
65
65
- size_t getSize () const ;
66
-
67
66
void assignBuffer (const unsigned char * ptrValue);
68
67
69
68
private:
You can’t perform that action at this time.
0 commit comments