MPEG CDVA Experimentation Model (CXM)  1.0
Compact Descriptors for Visual Analisys
Public Member Functions | Static Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes | Static Protected Attributes
mpeg7cdva::SegmentDescriptor Class Reference

A container for CdvsDescriptor instances belonging to the same video segment. More...

#include <CdvaImpl.h>

Inheritance diagram for mpeg7cdva::SegmentDescriptor:
Inheritance graph
[legend]

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
 

Detailed Description

A container for CdvsDescriptor instances belonging to the same video segment.

Constructor & Destructor Documentation

◆ SegmentDescriptor()

mpeg7cdva::SegmentDescriptor::SegmentDescriptor ( )

◆ ~SegmentDescriptor()

virtual mpeg7cdva::SegmentDescriptor::~SegmentDescriptor ( )
virtual

Member Function Documentation

◆ addSegmentToDB()

static size_t mpeg7cdva::SegmentDescriptor::addSegmentToDB ( std::ifstream &  fin,
mpeg7cdvs::CdvsServer *  cdvsserver,
const std::string &  relativepathname,
bool  optMatch 
)
static

read (from the current position) this segment from a file and store it into the CdvsServer DB

◆ clear()

virtual void mpeg7cdva::SegmentDescriptor::clear ( )
virtual

clear the shot container

Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.

Referenced by mpeg7cdva::CompressedSegmentDescriptor::getDtm().

◆ empty()

bool mpeg7cdva::SegmentDescriptor::empty ( ) const

returns true if the segment is empty

◆ getEndTimeMs()

unsigned long mpeg7cdva::SegmentDescriptor::getEndTimeMs ( ) const

Get the frame start time in milliseconds.

◆ getParity()

unsigned int mpeg7cdva::SegmentDescriptor::getParity ( ) const

Get the shot parity.

◆ getSize()

size_t mpeg7cdva::SegmentDescriptor::getSize ( ) const
protected

◆ getStartTimeMs()

unsigned long mpeg7cdva::SegmentDescriptor::getStartTimeMs ( ) const

Get the shot start time in milliseconds.

◆ read()

virtual size_t mpeg7cdva::SegmentDescriptor::read ( std::ifstream &  fin,
mpeg7cdvs::CdvsServer *  cdvsserver 
)
virtual

read (from the current position) this segment from a file

Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.

Referenced by mpeg7cdva::CompressedSegmentDescriptor::nBitsSet().

◆ setEndTimeMs()

void mpeg7cdva::SegmentDescriptor::setEndTimeMs ( unsigned long  position_ms)

Set the start time of the frame in milliseconds.

◆ setParity()

void mpeg7cdva::SegmentDescriptor::setParity ( unsigned int  value)

Set the shot parity.

◆ setStartTimeMs()

void mpeg7cdva::SegmentDescriptor::setStartTimeMs ( unsigned long  position_ms)

Set the start time of the shot in milliseconds.

◆ write()

virtual size_t mpeg7cdva::SegmentDescriptor::write ( std::ofstream &  fout) const
virtual

write (appending) this segment to a file

Reimplemented in mpeg7cdva::CompressedSegmentDescriptor.

Referenced by mpeg7cdva::CompressedSegmentDescriptor::nBitsSet().

Field Documentation

◆ endTime

unsigned long mpeg7cdva::SegmentDescriptor::endTime
protected

◆ keyframes

std::vector<mpeg7cdvs::CdvsDescriptor> mpeg7cdva::SegmentDescriptor::keyframes

keyframes belonging to this shot

◆ parity

unsigned int mpeg7cdva::SegmentDescriptor::parity
protected

◆ SHOT_HEADER_SIZE

const int mpeg7cdva::SegmentDescriptor::SHOT_HEADER_SIZE = 10
staticprotected

◆ startTime

unsigned long mpeg7cdva::SegmentDescriptor::startTime
protected

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