SpatialReductionAdaptor Class Reference

Implementation of Adaptor that implements spatial adaptation <short description="">. More...

#include <SpatialReductionAdaptor.hpp>

Inheritance diagram for SpatialReductionAdaptor:

VideoAdaptorChain AdaptorChain Adaptor List of all members.

Public Member Functions

 SpatialReductionAdaptor (VideoESInfo *pESInfo, u32 *puiWidth, u32 *puiHeight, u32 uiTargetBitrate, u32 keyFrameInterval=300, MP4Decoder::meCoderType codec=MP4Decoder::FFMPEG)
 Constructor.
virtual ~SpatialReductionAdaptor ()
 Destructor.
Adaptorclone ()
 implemented.
void initialize ()
 Initialize internal data structures.

Protected Attributes

u32 width
u32 height
u32 targetBitrate
u32 keyFrameInterval
MP4Decoder::meCoderType codec

Detailed Description

Implementation of Adaptor that implements spatial adaptation <short description="">.

Author:
Bernhard Penz
Version:
Id
SpatialReductionAdaptor.hpp,v 1.4 2004/05/27 17:56:53 pschojer Exp

Definition at line 65 of file SpatialReductionAdaptor.hpp.


Constructor & Destructor Documentation

SpatialReductionAdaptor::SpatialReductionAdaptor VideoESInfo *  pESInfo,
u32 *  puiWidth,
u32 *  puiHeight,
u32  uiTargetBitrate,
u32  keyFrameInterval = 300,
MP4Decoder::meCoderType  codec = MP4Decoder::FFMPEG
 

Constructor.

Parameters:
pESInfo Pointer to ESInfo object. Width, height, and bitrate information about the input stream will be fetched from this object.
puiWidth Desired width of the output stream.
puiHeight Desired height of the output stream.
uiTargetBitrate Target bitrate of the output stream.
Definition at line 46 of file SpatialReductionAdaptor.cpp.

References MP4Decoder::meCoderType.

Referenced by clone().

00051 { 00052 es = pESInfo; 00053 initialized = false; 00054 keyFrameInterval = key; 00055 width = *puiWidth; 00056 height = *puiHeight; 00057 targetBitrate = uiTargetBitrate; 00058 strcpy(name,"SpatialReductionAdaptor"); 00059 codec=code; 00060 }

SpatialReductionAdaptor::~SpatialReductionAdaptor  )  [virtual]
 

Destructor.

Definition at line 73 of file SpatialReductionAdaptor.cpp.

00074 { 00075 }


Member Function Documentation

Adaptor * SpatialReductionAdaptor::clone  )  [virtual]
 

implemented.

Returns:
SpatialReductionAdaptor

Reimplemented from VideoAdaptorChain.

Definition at line 78 of file SpatialReductionAdaptor.cpp.

References SpatialReductionAdaptor().

00079 { 00080 return new SpatialReductionAdaptor(es, &width, &height, targetBitrate,keyFrameInterval,codec); 00081 }

void SpatialReductionAdaptor::initialize  )  [virtual]
 

Initialize internal data structures.

Reimplemented from AdaptorChain.

Definition at line 63 of file SpatialReductionAdaptor.cpp.

References AdaptorChain::addAdaptor().

00064 { 00065 if(this->mAdaptorList.empty()) { 00066 addAdaptor(new MP4Decoder(es,false,UncompressedVideoFrame::ColorSpaceI420,codec)); 00067 addAdaptor(new YUVSpatialReductionAdaptor(es, &width, &height)); 00068 addAdaptor(new MP4Encoder(es, targetBitrate, (int)es->getFPS(), keyFrameInterval, 0 /*BVOPs*/,UncompressedVideoFrame::ColorSpaceI420,codec)); 00069 } 00070 initialized = true; 00071 };


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