VRS
A file format for sensor data.
Loading...
Searching...
No Matches
vrs::CustomContentBlock Class Reference
Inheritance diagram for vrs::CustomContentBlock:
vrs::ContentBlock

Public Member Functions

 CustomContentBlock (const string &customContentBlockFormat, size_t size=kSizeUnknown)
 CustomContentBlock (size_t size=kSizeUnknown)
Public Member Functions inherited from vrs::ContentBlock
 ContentBlock (ContentType type=ContentType::EMPTY, size_t size=kSizeUnknown)
 Very generic block description.
 ContentBlock (const string &formatStr)
 Factory-style reconstruct from persisted description as string on disk.
 ContentBlock (ImageFormat imageFormat, uint32_t width=0, uint32_t height=0)
 Image formats with encoding (png, jpeg, etc).
 ContentBlock (std::string codecName, uint8_t codecQuality, PixelFormat pixelFormat=PixelFormat::UNDEFINED, uint32_t width=0, uint32_t height=0, uint32_t stride=0, uint32_t stride2=0)
 Image formats with custom codec encoding.
 ContentBlock (PixelFormat pixelFormat, uint32_t width, uint32_t height, uint32_t stride=0, uint32_t stride2=0)
 Raw image formats: a PixelFormat and maybe resolutions & raw stride.
 ContentBlock (const ImageContentBlockSpec &imageSpec, size_t size=kSizeUnknown)
 ContentBlock (ImageContentBlockSpec &&imageSpec, size_t size=kSizeUnknown) noexcept
 ContentBlock (const ContentBlock &imageContentBlock, double keyFrameTimestamp, uint32_t keyFrameIndex)
 ContentBlock (AudioFormat audioFormat, uint8_t channelCount=0)
 Very generic audio block description.
 ContentBlock (const AudioContentBlockSpec &audioSpec, size_t size)
 ContentBlock (AudioFormat audioFormat, AudioSampleFormat sampleFormat, uint8_t numChannels=0, uint8_t sampleFrameStride=0, uint32_t sampleRate=0, uint32_t sampleCount=0, uint8_t stereoPairCount=0)
 Audio block description.
 ContentBlock (const ContentBlock &)=default
 Default copy constructor.
 ContentBlock (ContentBlock &&) noexcept=default
 ContentBlock (const ContentBlock &other, size_t size)
 Copy constructor, except for the size.
ContentBlock & operator= (const ContentBlock &rhs)=default
ContentBlock & operator= (ContentBlock &&rhs) noexcept=default
string asString () const
 Conversion to string, to store on disk & reconstruct later using constructor.
size_t getBlockSize () const
 Get the content block size, if available or calculable.
ContentType getContentType () const
 Get the ContentType of the block.
string getCustomContentBlockFormat () const
bool operator== (const ContentBlock &rhs) const
bool operator!= (const ContentBlock &rhs) const
RecordFormat operator+ (const ContentBlock &) const
 Assembly operator, to construct a RecordFormat for ContentBlock parts.
const ImageContentBlockSpec & image () const
 Get the image content spec. Requires the content block to be of type ContentType::IMAGE.
const AudioContentBlockSpec & audio () const
 Get the audio content spec. Requires the content block to be of type ContentType::AUDIO.

Additional Inherited Members

Static Public Attributes inherited from vrs::ContentBlock
static const size_t kSizeUnknown = numeric_limits<size_t>::max()
 Special value used to represent an unknown block size.
Protected Attributes inherited from vrs::ContentBlock
ContentType contentType_ = ContentType::EMPTY
size_t size_ = kSizeUnknown
ImageContentBlockSpec imageSpec_
AudioContentBlockSpec audioSpec_
string customContentBlockFormat_

The documentation for this class was generated from the following files: