avcpp
2.0
Wrapper for the FFmpeg that simplify usage from C++ projects.
|
The PixelFormat class is a simple wrapper for AVPixelFormat that allow to acces it it properties. More...
#include <pixelformat.h>
Public Types | |
using | Parent = PixSampleFmtWrapper< PixelFormat, AVPixelFormat > |
Public Member Functions | |
PixelFormat ()=default | |
PixelFormat (const char *name) noexcept | |
PixelFormat (const std::string &name) noexcept | |
const char * | name (OptionalErrorCode ec=throws()) const |
const AVPixFmtDescriptor * | descriptor (OptionalErrorCode ec=throws()) const |
int | bitsPerPixel (OptionalErrorCode ec=throws()) const |
size_t | planesCount (OptionalErrorCode ec=throws()) const |
PixelFormat | swapEndianness () const noexcept |
size_t | convertionLoss (PixelFormat dstFmt, bool srcHasAlpha=false) const noexcept |
Public Member Functions inherited from PixSampleFmtWrapper< PixelFormat, AVPixelFormat > | |
constexpr | PixSampleFmtWrapper ()=default |
constexpr | PixSampleFmtWrapper (AVPixelFormat fmt) noexcept |
operator AVPixelFormat () const noexcept | |
AVPixelFormat | get () const noexcept |
operator AVPixelFormat & () noexcept | |
PixelFormat & | operator= (AVPixelFormat fmt) noexcept |
void | set (AVPixelFormat fmt) noexcept |
Additional Inherited Members | |
Protected Attributes inherited from PixSampleFmtWrapper< PixelFormat, AVPixelFormat > | |
AVPixelFormat | m_fmt |
The PixelFormat class is a simple wrapper for AVPixelFormat that allow to acces it it properties.
It has size same to the AVPixelFormat, but wrap pixel description function too.
using av::PixelFormat::Parent = PixSampleFmtWrapper<PixelFormat, AVPixelFormat> |
|
default |
|
explicitnoexcept |
|
explicitnoexcept |
int av::PixelFormat::bitsPerPixel | ( | OptionalErrorCode | ec = throws() | ) | const |
|
noexcept |
const AVPixFmtDescriptor * av::PixelFormat::descriptor | ( | OptionalErrorCode | ec = throws() | ) | const |
const char * av::PixelFormat::name | ( | OptionalErrorCode | ec = throws() | ) | const |
size_t av::PixelFormat::planesCount | ( | OptionalErrorCode | ec = throws() | ) | const |
|
noexcept |