VideoFormatCoercion.C File Reference

#include "Video/VideoFormatCoercion.H"
#include "Image/Image.H"
#include "Image/Pixels.H"
#include "Util/log.H"
#include "Util/sformat.H"
#include "Video/VideoFrame.H"
#include "Video/RgbConversion.H"
Include dependency graph for VideoFormatCoercion.C:

Go to the source code of this file.

Defines

#define CONVERT(vf1, vf2, wt, f)   table[vf1][vf2] = VideoFormatCoercion(wt, vf1, vf2, f, #f)

Functions

static void checkBufferLength (const size_t actual, const size_t expected)
VideoFrame RGB_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame ARGB_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB555_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB565_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV444_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUYV_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV422_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV411_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV444P_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV422P_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV411P_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV420P_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV410P_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame GREY_to_RGB24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB24_to_GREY (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB24_to_RGB555 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB24_to_RGB565 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB24_to_RGB32 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame GREY_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB24_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame RGB32_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV444_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUYV_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV422_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV411_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV444P_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV422P_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV411P_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV420P_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV410P_to_YUV24 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV444 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUYV (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
ArrayHandle< byteYUV24_to_UYVYx (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_UYVY (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV422 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV411 (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV444P (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV422P (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV411P (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV420P (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
VideoFrame YUV24_to_YUV410P (const byte *sptr, const size_t length, const Dims &dims, const bool byteswap)
static void initDirectConversions (VideoFormatCoercion table[VIDFMT_AUTO+1][VIDFMT_AUTO+1])
void initIndirectConversions (VideoFormatCoercion table[VIDFMT_AUTO+1][VIDFMT_AUTO+1])
const VideoFormatCoercionfindConverter (const VideoFormat srcformat, const VideoFormat dstformat)
 Find a direct or indirect converter for a pair of VideoFormat values.
VideoFrame coerceVideoFormat (const VideoFrame &src, const VideoFormat dstformat)
 Coerce a VideoFrame into a different VideoFormat.
void printCoercionTable ()
 Print a quick summary table of available coercions and their path-lengths to stderr.

Variables

static VideoFormatCoercion pathtab [VIDFMT_AUTO+1][VIDFMT_AUTO+1]
static const unsigned int PRECISION_PENALTY = 100
static const unsigned int RESOLUTION_PENALTY = 10000
static const unsigned int COLORSPACE_PENALTY = 1000000
static const unsigned int COLORDIMENSION_PENALTY = 100000000

Detailed Description

Definition in file VideoFormatCoercion.C.


Function Documentation

VideoFrame coerceVideoFormat ( const VideoFrame src,
const VideoFormat  dstformat 
)

Coerce a VideoFrame into a different VideoFormat.

Definition at line 1417 of file VideoFormatCoercion.C.

References findConverter(), and VideoFrame::getMode().

const VideoFormatCoercion& findConverter ( const VideoFormat  srcformat,
const VideoFormat  dstformat 
)

Find a direct or indirect converter for a pair of VideoFormat values.

Definition at line 1397 of file VideoFormatCoercion.C.

References ASSERT.

Referenced by coerceVideoFormat(), CoerceVideoFormatOfilt::filterFrame(), and printCoercionTable().

void printCoercionTable (  ) 

Print a quick summary table of available coercions and their path-lengths to stderr.

Definition at line 1429 of file VideoFormatCoercion.C.

References findConverter(), and sformat().

Referenced by CoerceVideoFormatOfilt::start1().

Generated on Sun May 8 08:19:46 2011 for iLab Neuromorphic Vision Toolkit by  doxygen 1.6.3