Samsung S3C6400X User Manual page 593

Table of Contents

Advertisement

CAMERA INTERFACE
If ( SRC_Width >= 64 × DST_Width ) { Exit(-1); /* Out Of Horizontal Scale Range */ }
else if (SRC_Width >= 32 × DST_Width) { PreHorRatio_xx = 32; H_Shift = 5; }
else if (SRC_Width >= 16 × DST_Width) { PreHorRatio_xx = 16; H_Shift = 4; }
else if (SRC_Width >= 8 × DST_Width) { PreHorRatio_xx = 8; H_Shift = 3; }
else if (SRC_Width >= 4 × DST_Width) { PreHorRatio_xx = 4; H_Shift = 2; }
else if (SRC_Width >= 2 × DST_Width) { PreHorRatio_xx = 2; H_Shift = 1; }
else { PreHorRatio_xx = 1; H_Shift = 0; }
PreDstWidth_xx = SRC_Width / PreHorRatio_xx;
MainHorRatio_xx = ( SRC_Width << 8 ) / ( DST_Width << H_Shift);
If ( SRC_Height >= 64 × DST_Height ) { Exit(-1); /* Out Of Vertical Scale Range */ }
else if (SRC_Height >= 32 × DST_Height) { PreVerRatio_xx = 32; V_Shift = 5; }
else if (SRC_Height >= 16 × DST_Height) { PreVerRatio_xx = 16; V_Shift = 4; }
else if (SRC_Height >= 8 × DST_Height) { PreVerRatio_xx = 8; V_Shift = 3; }
else if (SRC_Height >= 4 × DST_Height) { PreVerRatio_xx = 4; V_Shift = 2; }
else if (SRC_Height >= 2 × DST_Height) { PreVerRatio_xx = 2; V_Shift = 1; }
else { PreVerRatio_xx = 1; V_Shift = 0; }
PreDstHeight_xx = SRC_Height / PreVerRatio_xx;
MainVerRatio_xx = ( SRC_Height << 8 ) / ( DST_Height << V_Shift);
SHfactor_xx = 10 – ( H_Shit + V_Shift);
C
aution! In preview path, Pre-scaled H_width must be the less than 640. (The maximum size of preview
path scaler's line buffer is 640.)
C
aution! In Zoom-In case, you must check the next equation.
((SourceHsize - (WinHorOfst + WinHorOfst2)) / PreHorRatio_Pr) <= 640 (preview scaler max. hsize)
CODEC PRE-SCALER CONTROL REGISTER 1
Register
CICOSCPRERATIO
CICOSCPRERATIO
SHfactor_Co
Preliminary product information describe products that are in development,
20-28
for which full characterization data and associated errata are not yet available.
Specifications and information herein are subject to change without notice.
refer to the table 1-1.
Address
R/W
0x78000050
RW
Bit
[31:28]
Shift factor for codec pre-scaler
S3C6400X RISC MICROPROCESSOR
Description
Codec pre-scaler ratio control
Description
Reset Value
0
Initial
M L
State
0
O O

Advertisement

Table of Contents
loading

Table of Contents