This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

A-Law question

Other Parts Discussed in Thread: TMS320DM355

Hello!

I work with TMS320DM355 and MT9V034 CMOS, data width 10 bit RAW.
Below is my configuration options:

enabled A-Law
CCDC:
ccdc_config_params_raw raw_params = {
................................
.data_sz = _10BITS,
.alaw = { .b_alaw_enable = TRUE, .gama_wd = BITS_10_1 },
............................. }
IPIPEIF:
params.ipipeif_param.ialaw = ALAW_ON;
params.ipipeif_param.data_shift = BITS10_0;
Also I write 0x11 in the 0x80 CCDC-register.

disabled A-Law:
CCDC:
ccdc_config_params_raw raw_params = {
................................
.data_sz = _10BITS,
.alaw = { .b_alaw_enable = FALSE, .gama_wd = BITS_10_1 },
............................. }
IPIPEIF:
params.ipipeif_param.ialaw = ALAW_OFF;
params.ipipeif_param.data_shift = BITS10_0;

I don't undestand how A-Law works, how the brightness depends on A-Law? Why do I get such differente pictures, please see attache?

Thank you and excuse me for my bad english.

 

  • Kirill said:
    I don't undestand how A-Law works, how the brightness depends on A-Law? Why do I get such differente pictures, please see attache?

    A-Law means that the video has been compressed from 10 bit values to 8 bit values using an A-Law algorithm. Basically this means that you have taken values of your original 10 bit range and squeezed them into an 8 bit range along a curve to optimize the dynamic range available in the 8 bits. Since the transformation is non linear, displaying the A-Law compressed data directly will result in a significantly different looking image, to display the intended output you would need to run the data through an inverse A-law algorithm.

    You can see the table being used for the A-Law algorithm in the DM355 in figure 28 of SPRUF71a.