it11 Hello,
We only get 8bits data from 12bits mt9p031. Capture high 4 bit data from mt9p031 always is 0, the low 8 bit is okay. but the high 4 bits has data bits through oscillocope. ( This mode is CCDC_NO_COMPRESSION). and data bit11 of mt9p031 is connected to CDATA 11.
CCDCFG = 0.
MODESET = 0
CGAMMAWD = 0x1108
****************************************************************************************************************************************
If we use CCDC_ALAW, but the getting 8 bits data is very small. That is to day, the high 4 bit hasn't data.
How can we get correctly 12 bits data form mt9p031? That is to say, we can get high 4 bit data when use CCDC_NO_COMPRESSION.
When we use CCDC_NO_COMPORESSION, the sdram is set 16 bit pack(not 12 bit pack), is it correct?
waiting for your answers,
The folling is using by CCDC_ALAW, the registers of CCDC.
input_std_paramsdavinci_resizer davinci_resizer.2: RSZ_G_CONFIG:1:1:176
: name = V4L2_STD_MT9P031_1080p_davinci_previewer davinci_previewer.2: ipipe_set_preview_config
30FPS
input_std_params: output width = 1920
opdavinci_previewer davinci_previewer.2: ipipe_set_preview_config
ening resize device
Successfully set mode to single shot in resizer
default configuration setting in Resizer successfull
Resizer initialized
Operating mode changed successfully to continuous in previewerSetting default configuration in previewer
default configuration setting in previewer successfull
Setting default for LUT Defect Correction
Setting default for OTF Defect Pixel Correction
Setting default for 2-D Noise filter - 1
Setting default for 2-D Noise filter - 2
Setting default for Green Imbalance Correction
Setting default for CFA Interpolation
Setting default for RGB-RGB Conversion - 1
Setting default for Gamma MUX: initialized GPIO40
Correction
Setting default for RGB-RGB Conversion - 2
Setting default for 3D LUT
Setting default for RGB-YCbCr conversion
Setting default for Global Brightness,Contrast Control
Setting default for YUV 422 conversion
Setting default for Luminance Adjustment
Setting default for Edge Enhancer
Setting default for Chromatic Artifact Reduction
Setting default for Chromatic Gain Suppression
previewer initialized
setting data format
SetDataFormat:setting std to 0
input.name = RAW
input.name = RAW-1
InitDevice:ioctl:VIDIOC_S_INPUT, selected input
Calling configCCDCraw()
pix_fmt = 0
frm_fmt = 0
fid_pol = 0
vd_pol = 0
hd_pol = 0
data_size = 4
data_shift = 0
test_pat_gen = 0
win.width = 640
win.height = 480
module_params.culling.hcpat_odd = 0xff
module_params.culling.hcpat_even = 0xff
configCCDCraw Done
S_STD Done
vpfe ccdc capture vpfe ccdc capture.1: hpitch = 1920, vpitch = 1080, bpp = 1
GetSTD Done WITH std = 0
Found the std information
stdinfo.name = 1080P-MP-30
stdinfo.frameperiod.numerator = 1
stdinfo.frameperiod.denominator = 30
SetDataFormat:requesting width:1920 height:1080
Compression enabled
S_FMT Done
initializing capture buffers
REQBUF Done
QUERYBUF Done
buffer = 0x84000000
QUERYBUF Done
buffer = 0x80800000
QUERYBUF Done
buffer = 0x83000000
Capture initialized
/sys/class/davinci_display/ch0/output was opened successfully
Current output value is COMPOSITE
DavinciDisplay DavinciDisplay.1: Not MMAP
Changed output tDavinciDisplay DavinciDisplay.1: Not MMAP
o COMPONENT
/User set bytesperline: 3840
width: 0
height: 0
sizeimage: 4147200
sys/class/davincBefore finishing with S_FMT:
layer.pix_fmt.bytesperline = 3840
layer.pix_fmt.width = 1920
layer.pix_fmt.height = 1080
layer.pix_fmt.sizeimage =4147200
i_display/ch0/mopixfmt->width = 1920
layer->layer_info.config.line_length = 3840
de was opened successfully
Currcalling ccdc_config_raw()
ent mode value i*************************Starting ccdc_config_raw..
s 480P-60
Chastarting ccdc_reset...nged mode to 108<7>
End of ccdc_reset...0I-30
Enabled<7>***********Writing 0x2 to ...CCDCFG
streaming on di************************************Writing 0x0 to MODESET...
splay device
In*************************************Writing 4e4e to CCOLP ...
itialized displaStarting ccdc_setwin...y
Queing buffer<7>
End of ccdc_setwin...:0
Q_BUF Done<7>
******************************End of ccdc_config_ycbcr...
Queing buffer:***********Read 0x2 to ...CCDCFG
1
***********Read 0x0 to ...MODESET
***********Read 0x4e4e to ...CCOLP