Samsung S3C2440A Laptop User Manual


 
S3C2440A RISC MICROPROCESSOR CAMERA INTERFACE
23-18
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);
NOTE :
Preview path contains 640 pixel line buffer. (Codec path contains 2048 pixel line buffer) So, upper 1280
pixels, input images must be pre-scaled by over 1/2 for capturing valid preview image.
((SourceHsize-2*WinHorOfst)/PreHorRatio_Pr) <= 640
CODEC PRE-SCALER CONTROL REGISTER 1
Register Address R/W Description Reset Value
CICOSCPRERATIO 0x4F000050 RW Codec pre-scaler ratio control 0
CICOSCPRERATIO Bit Description Initial State
SHfactor_Co [31:28] Shift factor for codec pre-scaler 0
PreHorRatio_Co [22:16] Horizontal ratio of codec pre-scaler 0
PreVerRatio_Co [6:0] Vertical ratio of codec pre-scaler 0
CODEC PRE-SCALER CONTROL REGISTER 2
Register Address R/W Description Reset Value
CICOSCPREDST 0x4F000054 RW Codec pre-scaler destination format 0
CICOSCPREDST Bit Description Initial State
PreDstWidth_Co [27:16] Destination width for codec pre-scaler 0
PreDstHeight_Co [11:0] Destination height for codec pre-scaler 0