![]() |
MPEG CDVA Experimentation Model (CXM)
1.0
Compact Descriptors for Visual Analisys
|
A container for CdvsDescriptor instances belonging to the same video segment. More...
#include <CdvaImpl.h>
Public Member Functions | |
SegmentDescriptor () | |
virtual | ~SegmentDescriptor () |
void | setParity (unsigned int value) |
Set the shot parity. More... | |
unsigned int | getParity () const |
Get the shot parity. More... | |
void | setStartTimeMs (unsigned long position_ms) |
Set the start time of the shot in milliseconds. More... | |
void | setEndTimeMs (unsigned long position_ms) |
Set the start time of the frame in milliseconds. More... | |
unsigned long | getStartTimeMs () const |
Get the shot start time in milliseconds. More... | |
unsigned long | getEndTimeMs () const |
Get the frame start time in milliseconds. More... | |
virtual size_t | write (std::ofstream &fout) const |
write (appending) this segment to a file More... | |
virtual size_t | read (std::ifstream &fin, mpeg7cdvs::CdvsServer *cdvsserver) |
read (from the current position) this segment from a file More... | |
bool | empty () const |
returns true if the segment is empty More... | |
virtual void | clear () |
clear the shot container More... | |
Static Public Member Functions | |
static size_t | addSegmentToDB (std::ifstream &fin, mpeg7cdvs::CdvsServer *cdvsserver, const std::string &relativepathname, bool optMatch) |
read (from the current position) this segment from a file and store it into the CdvsServer DB More... | |
Data Fields | |
std::vector< mpeg7cdvs::CdvsDescriptor > | keyframes |
keyframes belonging to this shot More... | |
Protected Member Functions | |
size_t | getSize () const |
Protected Attributes | |
unsigned long | startTime |
unsigned long | endTime |
unsigned int | parity |
Static Protected Attributes | |
static const int | SHOT_HEADER_SIZE = 10 |
A container for CdvsDescriptor instances belonging to the same video segment.
mpeg7cdva::SegmentDescriptor::SegmentDescriptor | ( | ) |
|
virtual |
|
static |
read (from the current position) this segment from a file and store it into the CdvsServer DB
|
virtual |
clear the shot container
Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.
Referenced by mpeg7cdva::CompressedSegmentDescriptor::getDtm().
bool mpeg7cdva::SegmentDescriptor::empty | ( | ) | const |
returns true if the segment is empty
unsigned long mpeg7cdva::SegmentDescriptor::getEndTimeMs | ( | ) | const |
Get the frame start time in milliseconds.
unsigned int mpeg7cdva::SegmentDescriptor::getParity | ( | ) | const |
Get the shot parity.
|
protected |
unsigned long mpeg7cdva::SegmentDescriptor::getStartTimeMs | ( | ) | const |
Get the shot start time in milliseconds.
|
virtual |
read (from the current position) this segment from a file
Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.
Referenced by mpeg7cdva::CompressedSegmentDescriptor::nBitsSet().
void mpeg7cdva::SegmentDescriptor::setEndTimeMs | ( | unsigned long | position_ms | ) |
Set the start time of the frame in milliseconds.
void mpeg7cdva::SegmentDescriptor::setParity | ( | unsigned int | value | ) |
Set the shot parity.
void mpeg7cdva::SegmentDescriptor::setStartTimeMs | ( | unsigned long | position_ms | ) |
Set the start time of the shot in milliseconds.
|
virtual |
write (appending) this segment to a file
Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.
Referenced by mpeg7cdva::CompressedSegmentDescriptor::nBitsSet().
|
protected |
std::vector<mpeg7cdvs::CdvsDescriptor> mpeg7cdva::SegmentDescriptor::keyframes |
keyframes belonging to this shot
|
protected |
|
staticprotected |
|
protected |