AJA NTV2 SDK  17.1.1.1245
NTV2 SDK 17.1.1.1245
ntv2resample.cpp File Reference

Implementations for the pixel resampling functions. More...

#include "ntv2resample.h"
Include dependency graph for ntv2resample.cpp:

Go to the source code of this file.

Macros

#define MIN_YCBCR_10BIT   4
 
#define MAX_YCBCR_10BIT   1019
 
#define ClipYCbCr_10BIT(X)   ((X) > MAX_YCBCR_10BIT ? (MAX_YCBCR_10BIT) : ((X) < MIN_YCBCR_10BIT ? (MIN_YCBCR_10BIT) : (X)))
 

Functions

RGBAlphaPixel CubicInterPolate (RGBAlphaPixel *Input, LWord Index)
 
Word CubicInterPolateWord (Word *Input, Fixed_ Index)
 
Word CubicInterPolateAudioWord (Word *Input, Fixed_ Index)
 
void ReSampleLine (RGBAlphaPixel *Input, RGBAlphaPixel *Output, UWord startPixel, UWord endPixel, LWord numInputPixels, LWord numOutputPixels)
 
void ReSampleLine (Word *Input, Word *Output, UWord startPixel, UWord endPixel, LWord numInputPixels, LWord numOutputPixels)
 
void ReSampleYCbCrSampleLine (Word *Input, Word *Output, LWord numInputPixels, LWord numOutputPixels)
 
void ReSampleAudio (Word *Input, Word *Output, UWord startPixel, UWord endPixel, LWord numInputPixels, LWord numOutputPixels, Word channelInterleaveMulitplier)
 

Variables

static unsigned int CubicCoef [129]
 

Detailed Description

Implementations for the pixel resampling functions.

Definition in file ntv2resample.cpp.

Macro Definition Documentation

◆ ClipYCbCr_10BIT

#define ClipYCbCr_10BIT (   X)    ((X) > MAX_YCBCR_10BIT ? (MAX_YCBCR_10BIT) : ((X) < MIN_YCBCR_10BIT ? (MIN_YCBCR_10BIT) : (X)))

Definition at line 213 of file ntv2resample.cpp.

◆ MAX_YCBCR_10BIT

#define MAX_YCBCR_10BIT   1019

Definition at line 212 of file ntv2resample.cpp.

◆ MIN_YCBCR_10BIT

#define MIN_YCBCR_10BIT   4

Definition at line 211 of file ntv2resample.cpp.

Function Documentation

◆ CubicInterPolate()

RGBAlphaPixel CubicInterPolate ( RGBAlphaPixel Input,
LWord  Index 
)
inline

Definition at line 337 of file ntv2resample.cpp.

◆ CubicInterPolateAudioWord()

Word CubicInterPolateAudioWord ( Word Input,
Fixed_  Index 
)
inline

Definition at line 320 of file ntv2resample.cpp.

◆ CubicInterPolateWord()

Word CubicInterPolateWord ( Word Input,
Fixed_  Index 
)
inline

Definition at line 307 of file ntv2resample.cpp.

◆ ReSampleAudio()

void ReSampleAudio ( Word Input,
Word Output,
UWord  startPixel,
UWord  endPixel,
LWord  numInputPixels,
LWord  numOutputPixels,
Word  channelInterleaveMulitplier 
)

Definition at line 282 of file ntv2resample.cpp.

◆ ReSampleLine() [1/2]

void ReSampleLine ( RGBAlphaPixel Input,
RGBAlphaPixel Output,
UWord  startPixel,
UWord  endPixel,
LWord  numInputPixels,
LWord  numOutputPixels 
)

Definition at line 152 of file ntv2resample.cpp.

◆ ReSampleLine() [2/2]

void ReSampleLine ( Word Input,
Word Output,
UWord  startPixel,
UWord  endPixel,
LWord  numInputPixels,
LWord  numOutputPixels 
)

Definition at line 184 of file ntv2resample.cpp.

◆ ReSampleYCbCrSampleLine()

void ReSampleYCbCrSampleLine ( Word Input,
Word Output,
LWord  numInputPixels,
LWord  numOutputPixels 
)

Definition at line 217 of file ntv2resample.cpp.

Variable Documentation

◆ CubicCoef

unsigned int CubicCoef[129]
static

Definition at line 15 of file ntv2resample.cpp.