Skip to content

Commit 2297872

Browse files
author
Clement Champetier
committed
Frame: hide methods to SWIG
AVPacket is an unknown type for SWIG.
1 parent 6a62af4 commit 2297872

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/AvTranscoder/frame/Frame.hpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,10 @@ class AvExport Frame
1919
/// Create a frame with a the given buffer size
2020
Frame( const size_t dataSize );
2121

22+
#ifndef SWIG
2223
/// Create a frame from the given AVPAcket (copy data of given packet)
2324
Frame( const AVPacket& avPacket );
25+
#endif
2426

2527
/// Override copy constructor in order to copy AVPacket data
2628
Frame( const Frame& other );
@@ -52,11 +54,11 @@ class AvExport Frame
5254
/// Clear existing data and set size to 0
5355
void clear();
5456

55-
AVPacket& getAVPacket() { return _packet; }
5657
unsigned char* getData() { return _packet.data; }
5758
size_t getSize() const { return _packet.size; }
5859

5960
#ifndef SWIG
61+
AVPacket& getAVPacket() { return _packet; }
6062
const AVPacket& getAVPacket() const { return _packet; }
6163
const unsigned char* getData() const { return _packet.data; }
6264
#endif

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy