|
|
| PixelFormatList ()=default |
| | Create an empty list.
|
| | PixelFormatList (AVPixelFormat *formats) noexcept |
| | Take ownership of a format array allocated by FFmpeg.
|
|
| ~PixelFormatList () |
| | Free the owned array.
|
| | PixelFormatList (PixelFormatList &&other) noexcept |
| | Move the array out of another list.
|
| PixelFormatList & | operator= (PixelFormatList &&other) noexcept |
| | Move assignment: frees the current array and takes the other one.
|
|
| PixelFormatList (const PixelFormatList &)=delete |
| | Copying is disabled: the list owns its array.
|
|
PixelFormatList & | operator= (const PixelFormatList &)=delete |
| | Copy assignment is disabled: the list owns its array.
|
| PixelFormatRange | range () const noexcept |
| | Non-owning view over the array.
|
| iterator | begin () const noexcept |
| | First format.
|
| iterator | end () const noexcept |
| | One past the last format.
|
| size_t | size () const noexcept |
| | Number of formats.
|
| bool | empty () const noexcept |
| | Whether the list has no formats.
|
| std::vector< PixelFormat > | toVector () const |
| | Copy the list into a vector.
|
The class is a range itself. Iteration returns a non-owning view.