|
MayaFlux 0.5.0
Digital-First Multimedia Processing Framework
|
| std::optional< Portal::Graphics::ImageFormat > MayaFlux::IO::to_image_format | ( | int | av_pixel_format | ) |
Map an AVPixelFormat to the Portal ImageFormat backing it.
Covers the formats a container can store. Returns nullopt for anything without a direct equivalent, including planar YUV and packed 24-bit layouts that swscale must convert before a container sees them.
| av_pixel_format | AVPixelFormat as int; negative means RGBA. |
Definition at line 489 of file VideoStreamContext.cpp.
Referenced by MayaFlux::IO::CameraReader::create_container(), and MayaFlux::IO::VideoFileReader::load_into_container().
Here is the caller graph for this function: