|
avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
Non-owning view for the nested AVBufferRef. More...
#include <buffer.h>


Classes | |
| struct | iam_sure_what_i_do_tag |
| Tag to confirm usage of the Low Level functionality. More... | |
Public Member Functions | |
| BufferRefView ()=default | |
| Construct null buffer. More... | |
| BufferRefView (BufferRef &ref) | |
| BufferRefView (const BufferRef &ref) | |
| AVBufferRef * | makeRef (iam_sure_what_i_do_tag) const noexcept |
| Make an reference of the exsting buffer. More... | |
| BufferRef | ref () |
| Create reference to the view data, refCount() will be increased. More... | |
| BufferRef | clone (int flags=0) const noexcept |
| Make deep copy of the existing buffer. More... | |
| int | refCount () const noexcept |
| Report current reference counter of the buffer. More... | |
| bool | isWritable () const noexcept |
| Report writable flag. More... | |
| std::size_t | size () const noexcept |
| Nested buffer size. More... | |
| const uint8_t * | data () const noexcept |
| Pointer to the data block start. More... | |
| const uint8_t * | constData () const noexcept |
| Force request const data. More... | |
| uint8_t * | data (OptionalErrorCode ec=throws()) |
| Pointer to the data block start. More... | |
Public Member Functions inherited from FFWrapperPtr< AVBufferRef > | |
| FFWrapperPtr ()=default | |
| FFWrapperPtr (AVBufferRef *raw) | |
| const AVBufferRef * | raw () const |
| AVBufferRef * | raw () |
| void | reset (AVBufferRef *raw=nullptr) |
| bool | isNull () const |
| void | _log (int level, const char *fmt) const |
| void | _log (int level, const char *fmt, const Args &... args) const |
Additional Inherited Members | |
Protected Attributes inherited from FFWrapperPtr< AVBufferRef > | |
| AVBufferRef * | m_raw |
Non-owning view for the nested AVBufferRef.
|
default |
Construct null buffer.
|
explicit |
|
explicit |
|
noexcept |
Make deep copy of the existing buffer.
Data will be copied into new buffer and owning taken.
| flags | AV_BUFFER_FLAG_* |
|
noexcept |
Force request const data.
|
noexcept |
Pointer to the data block start.
| uint8_t * av::BufferRefView::data | ( | OptionalErrorCode | ec = throws() | ) |
Pointer to the data block start.
Note, write access possible only to the buffer when isWritable()==true. If buffer can't be written error code will reported or exception reised.
| ec |
|
noexcept |
Report writable flag.
Always false if refCount() == 0 or > 1. Otherwise controls by the AV_BUFFER_FLAG_READONLY.
|
noexcept |
Make an reference of the exsting buffer.
Useful to pass to the low-level API.
| BufferRef av::BufferRefView::ref | ( | ) |
Create reference to the view data, refCount() will be increased.
|
noexcept |
Report current reference counter of the buffer.
For the refCount() > 1 isWritable() always return false.
|
noexcept |
Nested buffer size.