📄 downconvert.h
字号:
int* m_aiTmp1dBufferInQ3pel;
int* m_paiTmp1dBufferOut;
#endif //DOWN_CONVERT_STATIC
void xDestroy ( );
int xClip ( int iValue,
int imin,
int imax );
void xUpsampling3 ( ResizeParameters* pcParameters,
bool bLuma );
void xUpsampling3 ( int input_width, int input_height,
int output_width, int output_height,
int crop_x0, int crop_y0, int crop_w, int crop_h,
int input_chroma_phase_shift_x, int input_chroma_phase_shift_y,
int output_chroma_phase_shift_x, int output_chroma_phase_shift_y );
//cixunzhang
void xUpsampling3 ( int input_width, int input_height,
int output_width, int output_height,
int crop_x0, int crop_y0, int crop_w, int crop_h,
int input_chroma_phase_shift_x, int input_chroma_phase_shift_y,
int output_chroma_phase_shift_x, int output_chroma_phase_shift_y, bool uv_flag );
#ifndef DOWN_CONVERT_STATIC // TMM_JV
//-------------------------------------------------
//JSVM upsampling methods (encoder + decoder) only
//-------------------------------------------------
void xGenericUpsampleEss ( short* psBufferY, int iStrideY,
short* psBufferU, int iStrideU,
short* psBufferV, int iStrideV,
ResizeParameters* pcParameters,
h264::MbDataCtrl* pcMbDataCtrl);
void xGenericUpsampleEss ( short* psBufferY, int iStrideY,
short* psBufferU, int iStrideU,
short* psBufferV, int iStrideV,
ResizeParameters* pcParameters,
bool bClip = true );
//jzxu
void xFilterResidualHor ( short *buf_in, short *buf_out,
int width, int x, int w,
int wsize_in, int hsize_in,
h264::MbDataCtrl* pcMbDataCtrl,
bool chroma, int output_chroma_phase_shift_x, int input_chroma_phase_shift_x,
unsigned char *buf_blocksize );
void xFilterResidualVer ( short *buf_in, short *buf_out,
int width,
int x, int y, int w, int h,
int wsize_in, int hsize_in,
bool chroma, int output_chroma_phase_shift_y, int input_chroma_phase_shift_y,
unsigned char *buf_blocksize );
void xCrop ( short* psBufferY, int iStrideY,
short* psBufferU, int iStrideU,
short* psBufferV, int iStrideV,
ResizeParameters* pcParameters,
bool bClip = true );
void xCopyToImageBuffer ( short* psSrc,
int iWidth,
int iHeight,
int iStride );
void xCopyFromImageBuffer ( short* psDes,
int iWidth,
int iHeight,
int iStride,
int imin,
int imax );
void xSetValue ( short* psBuffer, int iStride,
int iWidth, int iHeight,
short value );
#else // DOWN_CONVERT_STATIC is defined
//------------------------
//DownConvert Tool only
//------------------------
void xCopyToImageBuffer ( unsigned char* pucSrc,
int iWidth,
int iHeight,
int iStride );
void xCopyFromImageBuffer ( unsigned char* pucDes,
int iWidth,
int iHeight,
int iStride,
int imin,
int imax );
void xSetValue ( unsigned char* pucBuffer, int iStride,
int iWidth, int iHeight,
unsigned char value );
void xDownsampling ( int iWidth, // high-resolution width
int iHeight, // high-resolution height
int aiFilter[] ); // downsampling filter [15coeff+sum]
void xUpsampling ( int iWidth, // low-resolution width
int iHeight, // low-resolution height
int aiFilter[] ); // downsampling filter [15coeff+sum]
void xUpsampling ( ResizeParameters* pcParameters,
bool bLuma, int type );
// =================================================================================
// INTRA 1 Lanczos
// =================================================================================
void xInitFilterTmm1 ( );
void xDestroyFilterTmm1 ( );
void xUpsampling1 ( ResizeParameters* pcParameters,
bool bLuma );
void xUpsamplingData1 ( int iInLength , int iOutLength , long spos );
long xGetFilter ( long x );
// =================================================================================
// INTRA 2
// =================================================================================
void xInitFilterTmm2 ( int iMaxDim );
void xDestroyFilterTmm2 ( );
void xUpsampling2 ( ResizeParameters* pcParameters,
bool bLuma );
void xUpsamplingData2 ( int iInLength , int iOutLength );
// =================================================================================
void xInitFilterTmm ( int iMaxDim );
void xDestroyFilterTmm ( );
void xCrop ( unsigned char* pucBufferY, int iStrideY,
unsigned char* pucBufferU, int iStrideU,
unsigned char* pucBufferV, int iStrideV,
ResizeParameters* pcParameters );
void xComputeNumeratorDenominator ( int iInWidth , int iOutWidth ,
int* iNumerator, int *iDenominator);
void xDownsampling3 ( int input_width, int input_height, int output_width, int output_height,
int crop_x0, int crop_y0, int crop_w, int crop_h,
int input_chroma_phase_shift_x, int input_chroma_phase_shift_y,
int output_chroma_phase_shift_x, int output_chroma_phase_shift_y );
#endif //DOWN_CONVERT_STATIC
};
#include "DownConvert.inl"
#ifdef DOWN_CONVERT_STATIC //TMM_JV
#include "DownConvertTools.inl"
#endif // DOWN_CONVERT_STATIC
#undef DEFAULTY
#undef DEFAULTU
#undef DEFAULTV
#endif // _DOWN_CONVERT_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -