NIST Biometric Evaluation Framework
Software components for biometric technology evaluations
|
Representation of a video container. More...
#include <be_video_container.h>
Public Member Functions | |
Container (const Memory::uint8Array &buffer) | |
Construct a Container from a memory buffer. More... | |
Container (const std::shared_ptr< Memory::uint8Array > &buffer) | |
Construct a Container from a memory buffer wrapped in a shared pointer. More... | |
Container (const std::string &filename) | |
Construct a Container from file. More... | |
uint32_t | getAudioCount () |
Obtain the number of audio streams. More... | |
uint32_t | getVideoCount () |
Obtain the number of video streams. More... | |
std::unique_ptr< Video::Stream > | getVideoStream (uint32_t videoNum) |
Obtain a video stream from the container. More... | |
~Container () | |
Representation of a video container.
The Container class represents a single container stream that can be used to access the video and audio components of the stream.
Definition at line 29 of file be_video_container.h.
BiometricEvaluation::Video::Container::Container | ( | const Memory::uint8Array & | buffer | ) |
Construct a Container from a memory buffer.
Using this constructor can result in buffer memory usage twice that of other constructors.
Error::MemoryError | Error allocating memory for internal buffering. |
Error::StrategyError | Other error when reading the container stream. |
BiometricEvaluation::Video::Container::Container | ( | const std::shared_ptr< Memory::uint8Array > & | buffer | ) |
Construct a Container from a memory buffer wrapped in a shared pointer.
Applications must not modify the data underlying the AutoArray.
Error::MemoryError | Error allocating memory for internal buffering. |
Error::StrategyError | Other error when reading the container stream. |
BiometricEvaluation::Video::Container::Container | ( | const std::string & | filename | ) |
Construct a Container from file.
Error::ObjectDoesNotExist | File does not exist. |
Error::MemoryError | Error allocating memory for internal buffering. |
Error::StrategyError | Other error when reading the container stream. |
BiometricEvaluation::Video::Container::~Container | ( | ) |
uint32_t BiometricEvaluation::Video::Container::getAudioCount | ( | ) |
Obtain the number of audio streams.
uint32_t BiometricEvaluation::Video::Container::getVideoCount | ( | ) |
Obtain the number of video streams.
std::unique_ptr< Video::Stream > BiometricEvaluation::Video::Container::getVideoStream | ( | uint32_t | videoNum | ) |
Obtain a video stream from the container.
Video streams are indexed independently from other streams in the container.
videoNum | The number of the video stream within the container. |
Error::ParameterError | The requested video stream is not available. |