Hi All, I am working on a DM355 processor based Development board and the kernel version is 2.6.10.
I need auto focus value that is sharpness of the image. I found an example application for autofocus in DM355 EVM package and the output of the sample example is as follows 2974 : Green Sum (Paxel 0 Data) 122 : FV Sum for IIR filter 0 (Paxel 0 Data) 1496 : FV Sum for IIR filter 1 (Paxel 0 Data) 0 : Zero (Paxel 0 Data) 1022 : Red/Blue Sum (Paxel 0 Data) 62 : FV Sum for IIR filter 0 (Paxel 0 Data) 831 : FV Sum for IIR filter 1 (Paxel 0 Data) 0 : Zero (Paxel 0 Data) 1122 : Red/Blue Sum (Paxel 0 Data) 115 : FV Sum for IIR filter 0 (Paxel 0 Data) 881 : FV Sum for IIR filter 1 (Paxel 0 Data) 0 : Zero (Paxel 0 Data) I could not understand this output format. Please can anyone clarify my doubts. I need a single focus value. How does I know that the object is focused properly using the H3A engine in DM355 ? Can I give a static frame data (instead of the frame captured from sensor) to this Auto Focus engine ? My configuration: int iir0[12] = { 64, 0, 0, 21, 22, 21, 0, 0, -16, 32, -16 }; int iir1[12] = { 64, 0, 0, 21, 22, 21, 0, -29, -16,32, -16 }; /* Enable Alaw */ config.alaw_enable = H3A_AF_DISABLE; /*Set Horizontal Median filter*/ config.hmf_config.enable = H3A_AF_DISABLE; config.hmf_config.threshold = 100; /* Set paxel Parmateres */ config.iir_config.hz_start_pos = 2; config.paxel_config.height = 8; config.paxel_config.width = 8; config.paxel_config.line_incr = 4; config.paxel_config.vt_start = 4; config.paxel_config.hz_start = 4; config.paxel_config.hz_cnt = 1; config.paxel_config.vt_cnt = 1; /* Set Accumulator mode */ //config.mode = ACCUMULATOR_SUMMED; config.mode = ACCUMULATOR_PEAK; /* Set IIR Filter Parameters */ for (index = 0; index < 11; index++) { config.iir_config.coeff_set0[index] = iir0[index]; config.iir_config.coeff_set1[index] = iir1[index]; } /* Set RGBPOSITION */ config.rgb_pos = RG_GB_BAYER; Thanks Dinesh
_______________________________________________ Davinci-linux-open-source mailing list Davinci-linux-open-source@linux.davincidsp.com http://linux.davincidsp.com/mailman/listinfo/davinci-linux-open-source