📄 csl_resz_defaults.h
字号:
/** @file csl_resz_defaults.h
*
* @brief Header file for functional layer of CSL
*
* Description
* - Default structure instantiations for the CSL_reszHwSetup() function
*
* @date 12th May, 2005
* @author Jesse Villarreal.
*/
#include <csl_resz.h>
/* Default instantiation of CSL_ReszStartInfo
*/
static CSL_ReszStartInfo csl_reszStartInfoDfault = {
0, /* hStart */
0 /* vStart */
};
/* Default instantiation of CSL_ReszSize
*/
static CSL_ReszSize csl_reszInputSizeDfault = {
0, /* width */
0 /* height */
};
/* Default instantiation of CSL_ReszSize
*/
static CSL_ReszSize csl_reszOutputSizeDfault = {
640, /* width */
480 /* height */
};
/* Default instantiation of CSL_ReszResizeValue
*/
static CSL_ReszResizeValue csl_reszResizeValueDfault = {
256, /* hrzValue */
256 /* vrzValue */
};
/* Default instantiation of CSL_ReszStartPhase
*/
static CSL_ReszStartPhase csl_reszStartPhaseDfault = {
2, /* hPhase */
2 /* vPhase */
};
/* Default instantiation of a set of filter coefficients for zooming in.
* This set of coefficients is what is always generated by the coefficient
* calculator for resize ratios that are equal to or greater than 1
* (RESIZE VALUE <= 256).
*/
static Uint16 csl_reszZoomInCoefDfault[32] = {
0x0000, 0x0100, 0x0000, 0x0000,
0x03FA, 0x00F6, 0x0010, 0x0000,
0x03F9, 0x00DB, 0x002C, 0x0000,
0x03FB, 0x00B3, 0x0053, 0x03FF,
0x03FD, 0x0082, 0x0084, 0x03FD,
0x03FF, 0x0053, 0x00B3, 0x03FB,
0x0000, 0x002C, 0x00DB, 0x03F9,
0x0000, 0x0010, 0x00F6, 0x03FA
};
/* Default instantiation of CSL_ReszFilterConfig
*/
static CSL_ReszFilterConfig csl_reszReszFilterDfault = {
csl_reszZoomInCoefDfault, /* horzFilter */
csl_reszZoomInCoefDfault /* vertFilter */
};
/* Default instantiation of CSL_ReszLumEnhance
*/
static CSL_ReszLumEnhance csl_reszLumEnhanceDfault = {
CSL_RESZ_YENH_DISABLE, /* lumAlgo */
0, /* lumMaxGain */
0, /* lumSlope */
0 /* lumOffset */
};
/* Default instantiation of CSL_ReszHwSetup. See default structs in this file
* to see what the settings are.
*/
static CSL_ReszHwSetup csl_reszHWSetupDfault = {
CSL_RESZ_INPUT_SDRAM, /* inputSource */
CSL_RESZ_TYPE_INTERLEAVED, /* inputType */
CSL_RESZ_POS_YC, /* ycPosition */
CSL_RESZ_CHROM_ALGO_BILINEAR, /* algorithm */
{0, 0}, /* startPos */
{0, 0}, /* inputSize */
{640, 480}, /* outputSize */
{256, 256}, /* ratios */
{2, 2}, /* startPhase */
FALSE, /* inMax */
0, /* numSlices */
1312, /* inputLineOffset */
(Uint32 *) 0x84100000, /* inputAddr */
1280, /* outputLineOffset */
(Uint32 *) 0x84200000, /* outputAddr */
&csl_reszReszFilterDfault, /* filterCoeffs */
&csl_reszLumEnhanceDfault, /* lumEnhance */
NULL /* sliceInfo */
};
#define CSL_RESZ_HWSETUP_DEFAULTS csl_reszHWSetupDfault
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -