![]() |
MPEG CDVA Experimentation Model (CXM)
1.0
Compact Descriptors for Visual Analisys
|
Extension of segment descriptor container to also hold compressed data for a segment. More...
#include <CdvaImpl.h>
Public Member Functions | |
CompressedSegmentDescriptor (const mpeg7cdvs::Parameters ¶ms) | |
virtual | ~CompressedSegmentDescriptor () |
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... | |
virtual unsigned char * | allocateLocalBuffer (unsigned long sz) |
virtual unsigned char * | allocateGlobalBuffer (unsigned long sz) |
virtual unsigned char * | allocateHistoBuffer (unsigned long sz) |
virtual unsigned char * | getLocalBuffer () |
virtual unsigned char * | getGlobalBuffer () |
virtual unsigned char * | getHistoBuffer () |
virtual unsigned long | getLocalBufSz () |
virtual unsigned long | getGlobalBufSz () |
virtual unsigned long | getHistoBufSz () |
virtual void | setHistoBufSz (unsigned long sz) |
virtual void | setLocalUncompressedBufSz (unsigned long sz) |
virtual void | setGlobalUncompressedBufSz (unsigned long sz) |
virtual DescriptorTimeMap & | getDtm () |
virtual void | clear () |
clear the shot container More... | |
![]() | |
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... | |
bool | empty () const |
returns true if the segment is empty More... | |
Protected Member Functions | |
void | decode (char *globalMedBuf, unsigned int globalMedBufSz, std::vector< unsigned int > &nLocalDesc, unsigned char cdvsDescriptorMode, unsigned short origImgX, unsigned short origImgY, unsigned short histoMapSzX, unsigned short histoMapSzY, bool hasBitSel, bool hasVar, bool hasRelB) |
void | reconstructGlobalDifferences (char *uncompressedData, unsigned int uncompressedSz, int nrGDesc, bool hasVar, bool globalHasBitSelection, std::vector< unsigned int > &nLocalDesc) |
mpeg7cdvs::FeatureList | readFeatureListFromBinaryAbs (unsigned char *buffer, unsigned int bufferSz, bool readRelevance, unsigned int nrElemGr) |
int | numGlobFctPresent (const mpeg7cdvs::CdvsDescriptor &desc) const |
int | nBitsSet (unsigned char byte) const |
![]() | |
size_t | getSize () const |
Protected Attributes | |
unsigned char * | globalBuf |
buffer for differential global descriptors More... | |
unsigned char * | localBuf |
buffer for local descriptors More... | |
unsigned char * | histoBuf |
buffer for histogram descriptors More... | |
unsigned long | globalBufSz |
size of encoded global buffer More... | |
unsigned long | localBufSz |
size of encoded local buffer More... | |
unsigned long | histoBufSz |
size of encoded histogram buffer More... | |
unsigned long | globalUncompressedBufSz |
size of unencoded global buffer More... | |
unsigned long | localUncompressedBufSz |
size of unencoded local buffer More... | |
DescriptorTimeMap | dtm |
map for frame - descriptor association More... | |
const mpeg7cdvs::Parameters & | params |
parameters needed to invoke histogram decoding More... | |
![]() | |
unsigned long | startTime |
unsigned long | endTime |
unsigned int | parity |
Static Protected Attributes | |
static const int | SHOT_HEADER_SIZE = 35 |
![]() | |
static const int | SHOT_HEADER_SIZE = 10 |
Additional Inherited Members | |
![]() | |
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... | |
![]() | |
std::vector< mpeg7cdvs::CdvsDescriptor > | keyframes |
keyframes belonging to this shot More... | |
Extension of segment descriptor container to also hold compressed data for a segment.
mpeg7cdva::CompressedSegmentDescriptor::CompressedSegmentDescriptor | ( | const mpeg7cdvs::Parameters & | params | ) |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
|
virtual |
clear the shot container
Reimplemented from mpeg7cdva::SegmentDescriptor.
|
protected |
nLocalDesc | decode compressed descriptor structure |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlineprotected |
References mpeg7cdva::SegmentDescriptor::read(), and mpeg7cdva::SegmentDescriptor::write().
|
inlineprotected |
|
virtual |
read (from the current position) this segment from a file
Reimplemented from mpeg7cdva::SegmentDescriptor.
|
protected |
|
protected |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
write (appending) this segment to a file
Reimplemented from mpeg7cdva::SegmentDescriptor.
|
protected |
map for frame - descriptor association
|
protected |
buffer for differential global descriptors
|
protected |
size of encoded global buffer
|
protected |
size of unencoded global buffer
|
protected |
buffer for histogram descriptors
|
protected |
size of encoded histogram buffer
|
protected |
buffer for local descriptors
|
protected |
size of encoded local buffer
|
protected |
size of unencoded local buffer
|
protected |
parameters needed to invoke histogram decoding
|
staticprotected |