Skip to content

Commit 28dc37c

Browse files
author
Clement Champetier
committed
Frame: removed getPlaneData method
* Not tested. * Not used. * Can be done by accessing the full buffer thanks to getData method.
1 parent a2c8493 commit 28dc37c

File tree

2 files changed

+0
-13
lines changed

2 files changed

+0
-13
lines changed

src/AvTranscoder/data/decoded/Frame.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,14 +40,6 @@ Frame::~Frame()
4040
}
4141
}
4242

43-
unsigned char* Frame::getPlaneData(const size_t plane)
44-
{
45-
AVBufferRef* buffer = av_frame_get_plane_buffer(_frame, plane);
46-
if(buffer != NULL)
47-
return buffer->data;
48-
return NULL;
49-
}
50-
5143
void Frame::copyData(const Frame& frameToRef)
5244
{
5345
const int ret = av_frame_copy(_frame, &frameToRef.getAVFrame());

src/AvTranscoder/data/decoded/Frame.hpp

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ class AvExport Frame
3333
*/
3434
unsigned char** getData() { return _frame->data; }
3535

36-
/**
37-
* @return The specified data plane.
38-
*/
39-
unsigned char* getPlaneData(const size_t plane);
40-
4136
/**
4237
* @brief Returns the size in byte.
4338
* For video, size in bytes of each picture line.

0 commit comments

Comments
 (0)