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.

how to generate LDC mesh table

Other Parts Discussed in Thread: TDA4VM, TDA4VH-Q1

Dear TI experts,

I follow "[FAQ] TDA4VM: How to create a LDC mesh LUT for fisheye distortion correction on TDA4?" to generate mesh table. While setting s=2; m=4, it has some many NaN in mesh table.

May I know how to decide suitable value for s and m?

  • 2112.mesh.txt

    7737.spec_file.txt
    0	0.000 		
    0.1	0.005 		
    0.2	0.010 		
    0.3	0.015 		
    0.4	0.020 		
    0.5	0.025 		
    0.6	0.030 		
    0.7	0.036 		
    0.8	0.041 		
    0.9	0.046 		
    1	0.051 		
    1.1	0.056 		
    1.2	0.061 		
    1.3	0.066 		
    1.4	0.071 		
    1.5	0.076 		
    1.6	0.081 		
    1.7	0.086 		
    1.8	0.091 		
    1.9	0.097 		
    2	0.102 		
    2.1	0.107 		
    2.2	0.112 		
    2.3	0.117 		
    2.4	0.122 		
    2.5	0.127 		
    2.6	0.132 		
    2.7	0.137 		
    2.8	0.142 		
    2.9	0.147 		
    3	0.152 		
    3.1	0.157 		
    3.2	0.163 		
    3.3	0.168 		
    3.4	0.173 		
    3.5	0.178 		
    3.6	0.183 		
    3.7	0.188 		
    3.8	0.193 		
    3.9	0.198 		
    4	0.203 		
    4.1	0.208 		
    4.2	0.213 		
    4.3	0.218 		
    4.4	0.223 		
    4.5	0.229 		
    4.6	0.234 		
    4.7	0.239 		
    4.8	0.244 		
    4.9	0.249 		
    5	0.254 		
    5.1	0.259 		
    5.2	0.264 		
    5.3	0.269 		
    5.4	0.274 		
    5.5	0.279 		
    5.6	0.284 		
    5.7	0.289 		
    5.8	0.295 		
    5.9	0.300 		
    6	0.305 		
    6.1	0.310 		
    6.2	0.315 		
    6.3	0.320 		
    6.4	0.325 		
    6.5	0.330 		
    6.6	0.335 		
    6.7	0.340 		
    6.8	0.345 		
    6.9	0.350 		
    7	0.355 		
    7.1	0.360 		
    7.2	0.366 		
    7.3	0.371 		
    7.4	0.376 		
    7.5	0.381 		
    7.6	0.386 		
    7.7	0.391 		
    7.8	0.396 		
    7.9	0.401 		
    8	0.406 		
    8.1	0.411 		
    8.2	0.416 		
    8.3	0.421 		
    8.4	0.426 		
    8.5	0.431 		
    8.6	0.436 		
    8.7	0.442 		
    8.8	0.447 		
    8.9	0.452 		
    9	0.457 		
    9.1	0.462 		
    9.2	0.467 		
    9.3	0.472 		
    9.4	0.477 		
    9.5	0.482 		
    9.6	0.487 		
    9.7	0.492 		
    9.8	0.497 		
    9.9	0.502 		
    10	0.507 		
    10.1	0.512 		
    10.2	0.517 		
    10.3	0.522 		
    10.4	0.528 		
    10.5	0.533 		
    10.6	0.538 		
    10.7	0.543 		
    10.8	0.548 		
    10.9	0.553 		
    11	0.558 		
    11.1	0.563 		
    11.2	0.568 		
    11.3	0.573 		
    11.4	0.578 		
    11.5	0.583 		
    11.6	0.588 		
    11.7	0.593 		
    11.8	0.598 		
    11.9	0.603 		
    12	0.608 		
    12.1	0.613 		
    12.2	0.618 		
    12.3	0.624 		
    12.4	0.629 		
    12.5	0.634 		
    12.6	0.639 		
    12.7	0.644 		
    12.8	0.649 		
    12.9	0.654 		
    13	0.659 		
    13.1	0.664 		
    13.2	0.669 		
    13.3	0.674 		
    13.4	0.679 		
    13.5	0.684 		
    13.6	0.689 		
    13.7	0.694 		
    13.8	0.699 		
    13.9	0.704 		
    14	0.709 		
    14.1	0.714 		
    14.2	0.719 		
    14.3	0.724 		
    14.4	0.729 		
    14.5	0.734 		
    14.6	0.739 		
    14.7	0.744 		
    14.8	0.749 		
    14.9	0.754 		
    15	0.760 		
    15.1	0.765 		
    15.2	0.770 		
    15.3	0.775 		
    15.4	0.780 		
    15.5	0.785 		
    15.6	0.790 		
    15.7	0.795 		
    15.8	0.800 		
    15.9	0.805 		
    16	0.810 		
    16.1	0.815 		
    16.2	0.820 		
    16.3	0.825 		
    16.4	0.830 		
    16.5	0.835 		
    16.6	0.840 		
    16.7	0.845 		
    16.8	0.850 		
    16.9	0.855 		
    17	0.860 		
    17.1	0.865 		
    17.2	0.870 		
    17.3	0.875 		
    17.4	0.880 		
    17.5	0.885 		
    17.6	0.890 		
    17.7	0.895 		
    17.8	0.900 		
    17.9	0.905 		
    18	0.910 		
    18.1	0.915 		
    18.2	0.920 		
    18.3	0.925 		
    18.4	0.930 		
    18.5	0.935 		
    18.6	0.940 		
    18.7	0.945 		
    18.8	0.950 		
    18.9	0.955 		
    19	0.960 		
    19.1	0.965 		
    19.2	0.970 		
    19.3	0.975 		
    19.4	0.980 		
    19.5	0.985 		
    19.6	0.990 		
    19.7	0.995 		
    19.8	1.000 		
    19.9	1.005 		
    20	1.010 		
    20.1	1.015 		
    20.2	1.020 		
    20.3	1.025 		
    20.4	1.030 		
    20.5	1.035 		
    20.6	1.040 		
    20.7	1.045 		
    20.8	1.050 		
    20.9	1.055 		
    21	1.060 		
    21.1	1.065 		
    21.2	1.070 		
    21.3	1.075 		
    21.4	1.080 		
    21.5	1.085 		
    21.6	1.090 		
    21.7	1.094 		
    21.8	1.099 		
    21.9	1.104 		
    22	1.109 		
    22.1	1.114 		
    22.2	1.119 		
    22.3	1.124 		
    22.4	1.129 		
    22.5	1.134 		
    22.6	1.139 		
    22.7	1.144 		
    22.8	1.149 		
    22.9	1.154 		
    23	1.159 		
    23.1	1.164 		
    23.2	1.169 		
    23.3	1.174 		
    23.4	1.179 		
    23.5	1.184 		
    23.6	1.189 		
    23.7	1.194 		
    23.8	1.199 		
    23.9	1.204 		
    24	1.208 		
    24.1	1.213 		
    24.2	1.218 		
    24.3	1.223 		
    24.4	1.228 		
    24.5	1.233 		
    24.6	1.238 		
    24.7	1.243 		
    24.8	1.248 		
    24.9	1.253 		
    25	1.258 		
    25.1	1.263 		
    25.2	1.268 		
    25.3	1.273 		
    25.4	1.277 		
    25.5	1.282 		
    25.6	1.287 		
    25.7	1.292 		
    25.8	1.297 		
    25.9	1.302 		
    26	1.307 		
    26.1	1.312 		
    26.2	1.317 		
    26.3	1.322 		
    26.4	1.327 		
    26.5	1.332 		
    26.6	1.336 		
    26.7	1.341 		
    26.8	1.346 		
    26.9	1.351 		
    27	1.356 		
    27.1	1.361 		
    27.2	1.366 		
    27.3	1.371 		
    27.4	1.376 		
    27.5	1.381 		
    27.6	1.385 		
    27.7	1.390 		
    27.8	1.395 		
    27.9	1.400 		
    28	1.405 		
    28.1	1.410 		
    28.2	1.415 		
    28.3	1.420 		
    28.4	1.425 		
    28.5	1.429 		
    28.6	1.434 		
    28.7	1.439 		
    28.8	1.444 		
    28.9	1.449 		
    29	1.454 		
    29.1	1.459 		
    29.2	1.464 		
    29.3	1.468 		
    29.4	1.473 		
    29.5	1.478 		
    29.6	1.483 		
    29.7	1.488 		
    29.8	1.493 		
    29.9	1.498 		
    30	1.503 		
    30.1	1.507 		
    30.2	1.512 		
    30.3	1.517 		
    30.4	1.522 		
    30.5	1.527 		
    30.6	1.532 		
    30.7	1.537 		
    30.8	1.541 		
    30.9	1.546 		
    31	1.551 		
    31.1	1.556 		
    31.2	1.561 		
    31.3	1.566 		
    31.4	1.570 		
    31.5	1.575 		
    31.6	1.580 		
    31.7	1.585 		
    31.8	1.590 		
    31.9	1.595 		
    32	1.599 		
    32.1	1.604 		
    32.2	1.609 		
    32.3	1.614 		
    32.4	1.619 		
    32.5	1.624 		
    32.6	1.628 		
    32.7	1.633 		
    32.8	1.638 		
    32.9	1.643 		
    33	1.648 		
    33.1	1.652 		
    33.2	1.657 		
    33.3	1.662 		
    33.4	1.667 		
    33.5	1.672 		
    33.6	1.676 		
    33.7	1.681 		
    33.8	1.686 		
    33.9	1.691 		
    34	1.696 		
    34.1	1.700 		
    34.2	1.705 		
    34.3	1.710 		
    34.4	1.715 		
    34.5	1.720 		
    34.6	1.724 		
    34.7	1.729 		
    34.8	1.734 		
    34.9	1.739 		
    35	1.743 		
    35.1	1.748 		
    35.2	1.753 		
    35.3	1.758 		
    35.4	1.763 		
    35.5	1.767 		
    35.6	1.772 		
    35.7	1.777 		
    35.8	1.782 		
    35.9	1.786 		
    36	1.791 		
    36.1	1.796 		
    36.2	1.801 		
    36.3	1.805 		
    36.4	1.810 		
    36.5	1.815 		
    36.6	1.820 		
    36.7	1.824 		
    36.8	1.829 		
    36.9	1.834 		
    37	1.839 		
    37.1	1.843 		
    37.2	1.848 		
    37.3	1.853 		
    37.4	1.858 		
    37.5	1.862 		
    37.6	1.867 		
    37.7	1.872 		
    37.8	1.876 		
    37.9	1.881 		
    38	1.886 		
    38.1	1.891 		
    38.2	1.895 		
    38.3	1.900 		
    38.4	1.905 		
    38.5	1.909 		
    38.6	1.914 		
    38.7	1.919 		
    38.8	1.924 		
    38.9	1.928 		
    39	1.933 		
    39.1	1.938 		
    39.2	1.942 		
    39.3	1.947 		
    39.4	1.952 		
    39.5	1.956 		
    39.6	1.961 		
    39.7	1.966 		
    39.8	1.971 		
    39.9	1.975 		
    40	1.980 		
    40.1	1.985 		
    40.2	1.989 		
    40.3	1.994 		
    40.4	1.999 		
    40.5	2.003 		
    40.6	2.008 		
    40.7	2.013 		
    40.8	2.017 		
    40.9	2.022 		
    41	2.027 		
    41.1	2.031 		
    41.2	2.036 		
    41.3	2.041 		
    41.4	2.045 		
    41.5	2.050 		
    41.6	2.055 		
    41.7	2.059 		
    41.8	2.064 		
    41.9	2.068 		
    42	2.073 		
    42.1	2.078 		
    42.2	2.082 		
    42.3	2.087 		
    42.4	2.092 		
    42.5	2.096 		
    42.6	2.101 		
    42.7	2.106 		
    42.8	2.110 		
    42.9	2.115 		
    43	2.119 		
    43.1	2.124 		
    43.2	2.129 		
    43.3	2.133 		
    43.4	2.138 		
    43.5	2.142 		
    43.6	2.147 		
    43.7	2.152 		
    43.8	2.156 		
    43.9	2.161 		
    44	2.165 		
    44.1	2.170 		
    44.2	2.175 		
    44.3	2.179 		
    44.4	2.184 		
    44.5	2.188 		
    44.6	2.193 		
    44.7	2.198 		
    44.8	2.202 		
    44.9	2.207 		
    45	2.211 		
    45.1	2.216 		
    45.2	2.220 		
    45.3	2.225 		
    45.4	2.230 		
    45.5	2.234 		
    45.6	2.239 		
    45.7	2.243 		
    45.8	2.248 		
    45.9	2.252 		
    46	2.257 		
    46.1	2.261 		
    46.2	2.266 		
    46.3	2.271 		
    46.4	2.275 		
    46.5	2.280 		
    46.6	2.284 		
    46.7	2.289 		
    46.8	2.293 		
    46.9	2.298 		
    47	2.302 		
    47.1	2.307 		
    47.2	2.311 		
    47.3	2.316 		
    47.4	2.320 		
    47.5	2.325 		
    47.6	2.329 		
    47.7	2.334 		
    47.8	2.338 		
    47.9	2.343 		
    48	2.347 		
    48.1	2.352 		
    48.2	2.356 		
    48.3	2.361 		
    48.4	2.365 		
    48.5	2.370 		
    48.6	2.374 		
    48.7	2.379 		
    48.8	2.383 		
    48.9	2.388 		
    49	2.392 		
    49.1	2.397 		
    49.2	2.401 		
    49.3	2.406 		
    49.4	2.410 		
    49.5	2.415 		
    49.6	2.419 		
    49.7	2.424 		
    49.8	2.428 		
    49.9	2.432 		
    50	2.437 		
    50.1	2.441 		
    50.2	2.446 		
    50.3	2.450 		
    50.4	2.455 		
    50.5	2.459 		
    50.6	2.464 		
    50.7	2.468 		
    50.8	2.472 		
    50.9	2.477 		
    51	2.481 		
    51.1	2.486 		
    51.2	2.490 		
    51.3	2.495 		
    51.4	2.499 		
    51.5	2.503 		
    51.6	2.508 		
    51.7	2.512 		
    51.8	2.517 		
    51.9	2.521 		
    52	2.525 		
    52.1	2.530 		
    52.2	2.534 		
    52.3	2.539 		
    52.4	2.543 		
    52.5	2.547 		
    52.6	2.552 		
    52.7	2.556 		
    52.8	2.560 		
    52.9	2.565 		
    53	2.569 		
    53.1	2.574 		
    53.2	2.578 		
    53.3	2.582 		
    53.4	2.587 		
    53.5	2.591 		
    53.6	2.595 		
    53.7	2.600 		
    53.8	2.604 		
    53.9	2.608 		
    54	2.613 		
    54.1	2.617 		
    54.2	2.621 		
    54.3	2.626 		
    54.4	2.630 		
    54.5	2.634 		
    54.6	2.639 		
    54.7	2.643 		
    54.8	2.647 		
    54.9	2.652 		
    55	2.656 		
    55.1	2.660 		
    55.2	2.664 		
    55.3	2.669 		
    55.4	2.673 		
    55.5	2.677 		
    55.6	2.682 		
    55.7	2.686 		
    55.8	2.690 		
    55.9	2.694 		
    56	2.699 		
    56.1	2.703 		
    56.2	2.707 		
    56.3	2.711 		
    56.4	2.716 		
    56.5	2.720 		
    56.6	2.724 		
    56.7	2.728 		
    56.8	2.733 		
    56.9	2.737 		
    57	2.741 		
    57.1	2.745 		
    57.2	2.750 		
    57.3	2.754 		
    57.4	2.758 		
    57.5	2.762 		
    57.6	2.766 		
    57.7	2.771 		
    57.8	2.775 		
    57.9	2.779 		
    58	2.783 		
    58.1	2.787 		
    58.2	2.792 		
    58.3	2.796 		
    58.4	2.800 		
    58.5	2.804 		
    58.6	2.808 		
    58.7	2.813 		
    58.8	2.817 		
    58.9	2.821 		
    59	2.825 		
    59.1	2.829 		
    59.2	2.833 		
    59.3	2.838 		
    59.4	2.842 		
    59.5	2.846 		
    59.6	2.850 		
    59.7	2.854 		
    59.8	2.858 		
    59.9	2.862 		
    60	2.866 		
    60.1	2.871 		
    60.2	2.875 		
    60.3	2.879 		
    60.4	2.883 		
    60.5	2.887 		
    60.6	2.891 		
    60.7	2.895 		
    60.8	2.899 		
    60.9	2.903 		
    61	2.907 		
    61.1	2.911 		
    61.2	2.916 		
    61.3	2.920 		
    61.4	2.924 		
    61.5	2.928 		
    61.6	2.932 		
    61.7	2.936 		
    61.8	2.940 		
    61.9	2.944 		
    62	2.948 		
    62.1	2.952 		
    62.2	2.956 		
    62.3	2.960 		
    62.4	2.964 		
    62.5	2.968 		
    62.6	2.972 		
    62.7	2.976 		
    62.8	2.980 		
    62.9	2.984 		
    63	2.988 		
    63.1	2.992 		
    63.2	2.996 		
    63.3	3.000 		
    63.4	3.004 		
    63.5	3.008 		
    63.6	3.012 		
    63.7	3.016 		
    63.8	3.020 		
    63.9	3.024 		
    64	3.028 		
    64.1	3.032 		
    64.2	3.035 		
    64.3	3.039 		
    64.4	3.043 		
    64.5	3.047 		
    64.6	3.051 		
    64.7	3.055 		
    64.8	3.059 		
    64.9	3.063 		
    65	3.067 		
    65.1	3.071 		
    65.2	3.074 		
    65.3	3.078 		
    65.4	3.082 		
    65.5	3.086 		
    65.6	3.090 		
    65.7	3.094 		
    65.8	3.098 		
    65.9	3.101 		
    66	3.105 		
    66.1	3.109 		
    66.2	3.113 		
    66.3	3.117 		
    66.4	3.120 		
    66.5	3.124 		
    66.6	3.128 		
    66.7	3.132 		
    66.8	3.136 		
    66.9	3.139 		
    67	3.143 		
    67.1	3.147 		
    67.2	3.151 		
    67.3	3.154 		
    67.4	3.158 		
    67.5	3.162 		
    67.6	3.166 		
    67.7	3.169 		
    67.8	3.173 		
    67.9	3.177 		
    68	3.181 		
    68.1	3.184 		
    68.2	3.188 		
    68.3	3.192 		
    68.4	3.195 		
    68.5	3.199 		
    68.6	3.203 		
    68.7	3.206 		
    68.8	3.210 		
    68.9	3.214 		
    69	3.217 		
    69.1	3.221 		
    69.2	3.225 		
    69.3	3.228 		
    69.4	3.232 		
    69.5	3.235 		
    69.6	3.239 		
    69.7	3.243 		
    69.8	3.246 		
    69.9	3.250 		
    70	3.253 		
    70.1	3.257 		
    70.2	3.261 		
    70.3	3.264 		
    70.4	3.268 		
    70.5	3.271 		
    70.6	3.275 		
    70.7	3.278 		
    70.8	3.282 		
    70.9	3.285 		
    71	3.289 		
    71.1	3.292 		
    71.2	3.296 		
    71.3	3.299 		
    71.4	3.303 		
    71.5	3.306 		
    71.6	3.310 		
    71.7	3.313 		
    71.8	3.317 		
    71.9	3.320 		
    72	3.324 		
    72.1	3.327 		
    72.2	3.330 		
    72.3	3.334 		
    72.4	3.337 		
    72.5	3.341 		
    72.6	3.344 		
    72.7	3.347 		
    72.8	3.351 		
    72.9	3.354 		
    73	3.357 		
    73.1	3.361 		
    73.2	3.364 		
    73.3	3.367 		
    73.4	3.371 		
    73.5	3.374 		
    73.6	3.377 		
    73.7	3.381 		
    73.8	3.384 		
    73.9	3.387 		
    74	3.391 		
    74.1	3.394 		
    74.2	3.397 		
    74.3	3.400 		
    74.4	3.404 		
    74.5	3.407 		
    74.6	3.410 		
    74.7	3.413 		
    74.8	3.417 		
    74.9	3.420 		
    75	3.423 		
    75.1	3.426 		
    75.2	3.429 		
    75.3	3.433 		
    75.4	3.436 		
    75.5	3.439 		
    75.6	3.442 		
    

  • Dear TI experts,

    I upload spec_file.txt and mesh.txt that I use and generate. Could you help to check if there is anything wrong?

    Thanks

  • Most likely, it goes out of your input range of 75.6 degrees.

    You may add one more line at the end as below and try again.

    "180  3.442" or "90 3.442"

  • 8741.mesh.txt

    Hi Gang Hua,

    After adding 90 3.442 at the end of spec_file.txt, we can get mesh.txt as attachment. Coud you help to check if it is reasonable?

    Thank you

  • I don't find any NaN in the new file.

  • Yes, there is no NaN this time. But I don't know if the result is reasonable. Could you help to check it?

  • Dear TI

    I used cam_single.sh to capture two image

    img_msc_0000_1904x1072.YUV and img_viss_0000_1934x1096.YUV

    I have converted distortion table "spec_file.txt" to mesh.txt and my setting is W = 1904; H = 1072

    I used mesh.txt to convert mesh_lut.h ./convert.sh mesh.txt 1904 1072 16
    I used DCC tool to open the preview image "DCCOutPut.png"
    Seems the picture is wrong, I saw some error message
    Input Image DDR BW = 12124992, MESH LUT DDR BW = 433088, Total = 12558080
    output_image.yuv created in C:\work\Project\MD\TestProject\.plugoutdir\DC_Mesh_LDC2
    Input Image DDR BW = 12124992, MESH LUT DDR BW = 433088, Total = 12558080
    LDC error flags:
    bit0 = 1: out of input image frame bound or mesh frame bound (warning only: clipped back)
    bit1 = 0: out of pixel block bound (PIXPAD is too small; warning only: clipped back)
    bit2 = 0: internal pixel buffer overflow (input image block is too big)
    bit3 = 0: internal mesh buffer overflow (mesh down sampling is too small)
    bit4 = 0: affine/pwarp internal overflow
    bit5 = 0: out of mesh block bound (warning only: clipped back)

    Request to get YUV image from Target : Enter IP Address...

    Loaded communication DLL:itCommun.dll

    Request to get YUV image from Target : Enter IP Address...

    Loaded communication DLL:itCommun.dll


    Do I set any wrong?

    img_msc_0000_1904x1072.rar 6557.mesh.txt

    7356.spec_file.txt
    0	0.000 
    0.1	0.005 
    0.2	0.010 
    0.3	0.015 
    0.4	0.020 
    0.5	0.025 
    0.6	0.030 
    0.7	0.036 
    0.8	0.041 
    0.9	0.046 
    1	0.051 
    1.1	0.056 
    1.2	0.061 
    1.3	0.066 
    1.4	0.071 
    1.5	0.076 
    1.6	0.081 
    1.7	0.086 
    1.8	0.091 
    1.9	0.097 
    2	0.102 
    2.1	0.107 
    2.2	0.112 
    2.3	0.117 
    2.4	0.122 
    2.5	0.127 
    2.6	0.132 
    2.7	0.137 
    2.8	0.142 
    2.9	0.147 
    3	0.152 
    3.1	0.157 
    3.2	0.163 
    3.3	0.168 
    3.4	0.173 
    3.5	0.178 
    3.6	0.183 
    3.7	0.188 
    3.8	0.193 
    3.9	0.198 
    4	0.203 
    4.1	0.208 
    4.2	0.213 
    4.3	0.218 
    4.4	0.223 
    4.5	0.229 
    4.6	0.234 
    4.7	0.239 
    4.8	0.244 
    4.9	0.249 
    5	0.254 
    5.1	0.259 
    5.2	0.264 
    5.3	0.269 
    5.4	0.274 
    5.5	0.279 
    5.6	0.284 
    5.7	0.289 
    5.8	0.295 
    5.9	0.300 
    6	0.305 
    6.1	0.310 
    6.2	0.315 
    6.3	0.320 
    6.4	0.325 
    6.5	0.330 
    6.6	0.335 
    6.7	0.340 
    6.8	0.345 
    6.9	0.350 
    7	0.355 
    7.1	0.360 
    7.2	0.366 
    7.3	0.371 
    7.4	0.376 
    7.5	0.381 
    7.6	0.386 
    7.7	0.391 
    7.8	0.396 
    7.9	0.401 
    8	0.406 
    8.1	0.411 
    8.2	0.416 
    8.3	0.421 
    8.4	0.426 
    8.5	0.431 
    8.6	0.436 
    8.7	0.442 
    8.8	0.447 
    8.9	0.452 
    9	0.457 
    9.1	0.462 
    9.2	0.467 
    9.3	0.472 
    9.4	0.477 
    9.5	0.482 
    9.6	0.487 
    9.7	0.492 
    9.8	0.497 
    9.9	0.502 
    10	0.507 
    10.1 0.512 
    10.2 0.517 
    10.3 0.522 
    10.4 0.528 
    10.5 0.533 
    10.6 0.538 
    10.7 0.543 
    10.8 0.548 
    10.9 0.553 
    11	 0.558 
    11.1 0.563 
    11.2 0.568 
    11.3 0.573 
    11.4 0.578 
    11.5 0.583 
    11.6 0.588 
    11.7 0.593 
    11.8 0.598 
    11.9 0.603 
    12	 0.608 
    12.1 0.613 
    12.2 0.618 
    12.3 0.624 
    12.4 0.629 
    12.5 0.634 
    12.6 0.639 
    12.7 0.644 
    12.8 0.649 
    12.9 0.654 
    13	 0.659 
    13.1 0.664 
    13.2 0.669 
    13.3 0.674 
    13.4 0.679 
    13.5 0.684 
    13.6 0.689 
    13.7 0.694 
    13.8 0.699 
    13.9 0.704 
    14	 0.709 
    14.1 0.714 
    14.2 0.719 
    14.3 0.724 
    14.4 0.729 
    14.5 0.734 
    14.6 0.739 
    14.7 0.744 
    14.8 0.749 
    14.9 0.754 
    15	 0.760 
    15.1 0.765 
    15.2 0.770 
    15.3 0.775 
    15.4 0.780 
    15.5 0.785 
    15.6 0.790 
    15.7 0.795 
    15.8 0.800 
    15.9 0.805 
    16	 0.810 
    16.1 0.815 
    16.2 0.820 
    16.3 0.825 
    16.4 0.830 
    16.5 0.835 
    16.6 0.840 
    16.7 0.845 
    16.8 0.850 
    16.9 0.855 
    17	 0.860 
    17.1 0.865 
    17.2 0.870 
    17.3 0.875 
    17.4 0.880 
    17.5 0.885 
    17.6 0.890 
    17.7 0.895 
    17.8 0.900 
    17.9 0.905 
    18	 0.910 
    18.1 0.915 
    18.2 0.920 
    18.3 0.925 
    18.4 0.930 
    18.5 0.935 
    18.6 0.940 
    18.7 0.945 
    18.8 0.950 
    18.9 0.955 
    19	 0.960 
    19.1 0.965 
    19.2 0.970 
    19.3 0.975 
    19.4 0.980 
    19.5 0.985 
    19.6 0.990 
    19.7 0.995 
    19.8 1.000 
    19.9 1.005 
    20	 1.010 
    20.1 1.015 
    20.2 1.020 
    20.3 1.025 
    20.4 1.030 
    20.5 1.035 
    20.6 1.040 
    20.7 1.045 
    20.8 1.050 
    20.9 1.055 
    21	 1.060 
    21.1 1.065 
    21.2 1.070 
    21.3 1.075 
    21.4 1.080 
    21.5 1.085 
    21.6 1.090 
    21.7 1.094 
    21.8 1.099 
    21.9 1.104 
    22	 1.109 
    22.1 1.114 
    22.2 1.119 
    22.3 1.124 
    22.4 1.129 
    22.5 1.134 
    22.6 1.139 
    22.7 1.144 
    22.8 1.149 
    22.9 1.154 
    23	 1.159 
    23.1 1.164 
    23.2 1.169 
    23.3 1.174 
    23.4 1.179 
    23.5 1.184 
    23.6 1.189 
    23.7 1.194 
    23.8 1.199 
    23.9 1.204 
    24	 1.208 
    24.1 1.213 
    24.2 1.218 
    24.3 1.223 
    24.4 1.228 
    24.5 1.233 
    24.6 1.238 
    24.7 1.243 
    24.8 1.248 
    24.9 1.253 
    25	 1.258 
    25.1 1.263 
    25.2 1.268 
    25.3 1.273 
    25.4 1.277 
    25.5 1.282 
    25.6 1.287 
    25.7 1.292 
    25.8 1.297 
    25.9 1.302 
    26	 1.307 
    26.1 1.312 
    26.2 1.317 
    26.3 1.322 
    26.4 1.327 
    26.5 1.332 
    26.6 1.336 
    26.7 1.341 
    26.8 1.346 
    26.9 1.351 
    27	 1.356 
    27.1 1.361 
    27.2 1.366 
    27.3 1.371 
    27.4 1.376 
    27.5 1.381 
    27.6 1.385 
    27.7 1.390 
    27.8 1.395 
    27.9 1.400 
    28	 1.405 
    28.1 1.410 
    28.2 1.415 
    28.3 1.420 
    28.4 1.425 
    28.5 1.429 
    28.6 1.434 
    28.7 1.439 
    28.8 1.444 
    28.9 1.449 
    29	 1.454 
    29.1 1.459 
    29.2 1.464 
    29.3 1.468 
    29.4 1.473 
    29.5 1.478 
    29.6 1.483 
    29.7 1.488 
    29.8 1.493 
    29.9 1.498 
    30	 1.503 
    30.1 1.507 
    30.2 1.512 
    30.3 1.517 
    30.4 1.522 
    30.5 1.527 
    30.6 1.532 
    30.7 1.537 
    30.8 1.541 
    30.9 1.546 
    31	 1.551 
    31.1 1.556 
    31.2 1.561 
    31.3 1.566 
    31.4 1.570 
    31.5 1.575 
    31.6 1.580 
    31.7 1.585 
    31.8 1.590 
    31.9 1.595 
    32	 1.599 
    32.1 1.604 
    32.2 1.609 
    32.3 1.614 
    32.4 1.619 
    32.5 1.624 
    32.6 1.628 
    32.7 1.633 
    32.8 1.638 
    32.9 1.643 
    33	 1.648 
    33.1 1.652 
    33.2 1.657 
    33.3 1.662 
    33.4 1.667 
    33.5 1.672 
    33.6 1.676 
    33.7 1.681 
    33.8 1.686 
    33.9 1.691 
    34	 1.696 
    34.1 1.700 
    34.2 1.705 
    34.3 1.710 
    34.4 1.715 
    34.5 1.720 
    34.6 1.724 
    34.7 1.729 
    34.8 1.734 
    34.9 1.739 
    35	 1.743 
    35.1 1.748 
    35.2 1.753 
    35.3 1.758 
    35.4 1.763 
    35.5 1.767 
    35.6 1.772 
    35.7 1.777 
    35.8 1.782 
    35.9 1.786 
    36	 1.791 
    36.1 1.796 
    36.2 1.801 
    36.3 1.805 
    36.4 1.810 
    36.5 1.815 
    36.6 1.820 
    36.7 1.824 
    36.8 1.829 
    36.9 1.834 
    37	 1.839 
    37.1 1.843 
    37.2 1.848 
    37.3 1.853 
    37.4 1.858 
    37.5 1.862 
    37.6 1.867 
    37.7 1.872 
    37.8 1.876 
    37.9 1.881 
    38	 1.886 
    38.1 1.891 
    38.2 1.895 
    38.3 1.900 
    38.4 1.905 
    38.5 1.909 
    38.6 1.914 
    38.7 1.919 
    38.8 1.924 
    38.9 1.928 
    39	 1.933 
    39.1 1.938 
    39.2 1.942 
    39.3 1.947 
    39.4 1.952 
    39.5 1.956 
    39.6 1.961 
    39.7 1.966 
    39.8 1.971 
    39.9 1.975 
    40	 1.980 
    40.1 1.985 
    40.2 1.989 
    40.3 1.994 
    40.4 1.999 
    40.5 2.003 
    40.6 2.008 
    40.7 2.013 
    40.8 2.017 
    40.9 2.022 
    41	 2.027 
    41.1 2.031 
    41.2 2.036 
    41.3 2.041 
    41.4 2.045 
    41.5 2.050 
    41.6 2.055 
    41.7 2.059 
    41.8 2.064 
    41.9 2.068 
    42	 2.073 
    42.1 2.078 
    42.2 2.082 
    42.3 2.087 
    42.4 2.092 
    42.5 2.096 
    42.6 2.101 
    42.7 2.106 
    42.8 2.110 
    42.9 2.115 
    43	 2.119 
    43.1 2.124 
    43.2 2.129 
    43.3 2.133 
    43.4 2.138 
    43.5 2.142 
    43.6 2.147 
    43.7 2.152 
    43.8 2.156 
    43.9 2.161 
    44	 2.165 
    44.1 2.170 
    44.2 2.175 
    44.3 2.179 
    44.4 2.184 
    44.5 2.188 
    44.6 2.193 
    44.7 2.198 
    44.8 2.202 
    44.9 2.207 
    45	 2.211 
    45.1 2.216 
    45.2 2.220 
    45.3 2.225 
    45.4 2.230 
    45.5 2.234 
    45.6 2.239 
    45.7 2.243 
    45.8 2.248 
    45.9 2.252 
    46	 2.257 
    46.1 2.261 
    46.2 2.266 
    46.3 2.271 
    46.4 2.275 
    46.5 2.280 
    46.6 2.284 
    46.7 2.289 
    46.8 2.293 
    46.9 2.298 
    47	 2.302 
    47.1 2.307 
    47.2 2.311 
    47.3 2.316 
    47.4 2.320 
    47.5 2.325 
    47.6 2.329 
    47.7 2.334 
    47.8 2.338 
    47.9 2.343 
    48	 2.347 
    48.1 2.352 
    48.2 2.356 
    48.3 2.361 
    48.4 2.365 
    48.5 2.370 
    48.6 2.374 
    48.7 2.379 
    48.8 2.383 
    48.9 2.388 
    49	 2.392 
    49.1 2.397 
    49.2 2.401 
    49.3 2.406 
    49.4 2.410 
    49.5 2.415 
    49.6 2.419 
    49.7 2.424 
    49.8 2.428 
    49.9 2.432 
    50	 2.437 
    50.1 2.441 
    50.2 2.446 
    50.3 2.450 
    50.4 2.455 
    50.5 2.459 
    50.6 2.464 
    50.7 2.468 
    50.8 2.472 
    50.9 2.477 
    51	 2.481 
    51.1 2.486 
    51.2 2.490 
    51.3 2.495 
    51.4 2.499 
    51.5 2.503 
    51.6 2.508 
    51.7 2.512 
    51.8 2.517 
    51.9 2.521 
    52	 2.525 
    52.1 2.530 
    52.2 2.534 
    52.3 2.539 
    52.4 2.543 
    52.5 2.547 
    52.6 2.552 
    52.7 2.556 
    52.8 2.560 
    52.9 2.565 
    53	 2.569 
    53.1 2.574 
    53.2 2.578 
    53.3 2.582 
    53.4 2.587 
    53.5 2.591 
    53.6 2.595 
    53.7 2.600 
    53.8 2.604 
    53.9 2.608 
    54	 2.613 
    54.1 2.617 
    54.2 2.621 
    54.3 2.626 
    54.4 2.630 
    54.5 2.634 
    54.6 2.639 
    54.7 2.643 
    54.8 2.647 
    54.9 2.652 
    55	 2.656 
    55.1 2.660 
    55.2 2.664 
    55.3 2.669 
    55.4 2.673 
    55.5 2.677 
    55.6 2.682 
    55.7 2.686 
    55.8 2.690 
    55.9 2.694 
    56	 2.699 
    56.1 2.703 
    56.2 2.707 
    56.3 2.711 
    56.4 2.716 
    56.5 2.720 
    56.6 2.724 
    56.7 2.728 
    56.8 2.733 
    56.9 2.737 
    57	 2.741 
    57.1 2.745 
    57.2 2.750 
    57.3 2.754 
    57.4 2.758 
    57.5 2.762 
    57.6 2.766 
    57.7 2.771 
    57.8 2.775 
    57.9 2.779 
    58	 2.783 
    58.1 2.787 
    58.2 2.792 
    58.3 2.796 
    58.4 2.800 
    58.5 2.804 
    58.6 2.808 
    58.7 2.813 
    58.8 2.817 
    58.9 2.821 
    59	 2.825 
    59.1 2.829 
    59.2 2.833 
    59.3 2.838 
    59.4 2.842 
    59.5 2.846 
    59.6 2.850 
    59.7 2.854 
    59.8 2.858 
    59.9 2.862 
    60	 2.866 
    60.1 2.871 
    60.2 2.875 
    60.3 2.879 
    60.4 2.883 
    60.5 2.887 
    60.6 2.891 
    60.7 2.895 
    60.8 2.899 
    60.9 2.903 
    61	 2.907 
    61.1 2.911 
    61.2 2.916 
    61.3 2.920 
    61.4 2.924 
    61.5 2.928 
    61.6 2.932 
    61.7 2.936 
    61.8 2.940 
    61.9 2.944 
    62	 2.948 
    62.1 2.952 
    62.2 2.956 
    62.3 2.960 
    62.4 2.964 
    62.5 2.968 
    62.6 2.972 
    62.7 2.976 
    62.8 2.980 
    62.9 2.984 
    63	 2.988 
    63.1 2.992 
    63.2 2.996 
    63.3 3.000 
    63.4 3.004 
    63.5 3.008 
    63.6 3.012 
    63.7 3.016 
    63.8 3.020 
    63.9 3.024 
    64	 3.028 
    64.1 3.032 
    64.2 3.035 
    64.3 3.039 
    64.4 3.043 
    64.5 3.047 
    64.6 3.051 
    64.7 3.055 
    64.8 3.059 
    64.9 3.063 
    65	 3.067 
    65.1 3.071 
    65.2 3.074 
    65.3 3.078 
    65.4 3.082 
    65.5 3.086 
    65.6 3.090 
    65.7 3.094 
    65.8 3.098 
    65.9 3.101 
    66	 3.105 
    66.1 3.109 
    66.2 3.113 
    66.3 3.117 
    66.4 3.120 
    66.5 3.124 
    66.6 3.128 
    66.7 3.132 
    66.8 3.136 
    66.9 3.139 
    67	 3.143 
    67.1 3.147 
    67.2 3.151 
    67.3 3.154 
    67.4 3.158 
    67.5 3.162 
    67.6 3.166 
    67.7 3.169 
    67.8 3.173 
    67.9 3.177 
    68	 3.181 
    68.1 3.184 
    68.2 3.188 
    68.3 3.192 
    68.4 3.195 
    68.5 3.199 
    68.6 3.203 
    68.7 3.206 
    68.8 3.210 
    68.9 3.214 
    69	 3.217 
    69.1 3.221 
    69.2 3.225 
    69.3 3.228 
    69.4 3.232 
    69.5 3.235 
    69.6 3.239 
    69.7 3.243 
    69.8 3.246 
    69.9 3.250 
    70	 3.253 
    70.1 3.257 
    70.2 3.261 
    70.3 3.264 
    70.4 3.268 
    70.5 3.271 
    70.6 3.275 
    70.7 3.278 
    70.8 3.282 
    70.9 3.285 
    71	 3.289 
    71.1 3.292 
    71.2 3.296 
    71.3 3.299 
    71.4 3.303 
    71.5 3.306 
    71.6 3.310 
    71.7 3.313 
    71.8 3.317 
    71.9 3.320 
    72	 3.324 
    72.1 3.327 
    72.2 3.330 
    72.3 3.334 
    72.4 3.337 
    72.5 3.341 
    72.6 3.344 
    72.7 3.347 
    72.8 3.351 
    72.9 3.354 
    73	 3.357 
    73.1 3.361 
    73.2 3.364 
    73.3 3.367 
    73.4 3.371 
    73.5 3.374 
    73.6 3.377 
    73.7 3.381 
    73.8 3.384 
    73.9 3.387 
    74	 3.391 
    74.1 3.394 
    74.2 3.397 
    74.3 3.400 
    74.4 3.404 
    74.5 3.407 
    74.6 3.410 
    74.7 3.413 
    74.8 3.417 
    74.9 3.420 
    75	 3.423 
    75.1 3.426 
    75.2 3.429 
    75.3 3.433 
    75.4 3.436 
    75.5 3.439 
    75.6 3.442 
    75.7 3.445 
    75.8 3.448 
    75.9 3.451 
    76	 3.455 
    76.1 3.458 
    76.2 3.461 
    76.3 3.464 
    76.4 3.467 
    76.5 3.470 
    76.6 3.473 
    76.7 3.476 
    76.8 3.479 
    76.9 3.482 
    77	 3.485 
    77.1 3.488 
    77.2 3.491 
    77.3 3.494 
    77.4 3.497 
    77.5 3.500 
    77.6 3.503 
    77.7 3.506 
    77.8 3.509 
    77.9 3.512 
    78	 3.515 
    78.1 3.518 
    78.2 3.521 
    78.3 3.524 
    78.4 3.527 
    78.5 3.530 
    78.6 3.532 
    78.7 3.535 
    78.8 3.538 
    78.9 3.541 
    79	 3.544 
    79.1 3.547 
    79.2 3.550 
    79.3 3.552 
    79.4 3.555 
    79.5 3.558 
    79.6 3.561 
    79.7 3.564 
    79.8 3.566 
    79.9 3.569 
    80	 3.572 
    80.1 3.575 
    80.2 3.577 
    80.3 3.580 
    80.4 3.583 
    80.5 3.585 
    80.6 3.588 
    80.7 3.591 
    80.8 3.593 
    80.9 3.596 
    81	 3.599 
    81.1 3.601 
    81.2 3.604 
    81.3 3.607 
    81.4 3.609 
    81.5 3.612 
    81.6 3.614 
    81.7 3.617 
    81.8 3.620 
    81.9 3.622 
    82	 3.625 
    82.1 3.627 
    82.2 3.630 
    82.3 3.632 
    82.4 3.635 
    82.5 3.637 
    82.6 3.640 
    82.7 3.642 
    82.8 3.645 
    82.9 3.647 
    83	 3.650 
    83.1 3.652 
    83.2 3.655 
    83.3 3.657 
    83.4 3.659 
    83.5 3.662 
    83.6 3.664 
    83.7 3.666 
    83.8 3.669 
    83.9 3.671 
    84	 3.674 
    84.1 3.676 
    84.2 3.678 
    84.3 3.680 
    84.4 3.683 
    84.5 3.685 
    84.6 3.687 
    84.7 3.690 
    84.8 3.692 
    84.9 3.694 
    85	 3.696 
    85.1 3.699 
    85.2 3.701 
    85.3 3.703 
    85.4 3.705 
    85.5 3.707 
    85.6 3.709 
    85.7 3.712 
    85.8 3.714 
    85.9 3.716 
    86	 3.718 
    86.1 3.720 
    86.2 3.722 
    86.3 3.724 
    86.4 3.726 
    86.5 3.728 
    86.6 3.730 
    86.7 3.733 
    86.8 3.735 
    86.9 3.737 
    87	 3.739 
    87.1 3.741 
    87.2 3.743 
    87.3 3.745 
    87.4 3.746 
    87.5 3.748 
    87.6 3.750 
    87.7 3.752 
    87.8 3.754 
    87.9 3.756 
    88	 3.758 
    88.1 3.760 
    88.2 3.762 
    88.3 3.764 
    88.4 3.765 
    88.5 3.767 
    88.6 3.769 
    88.7 3.771 
    88.8 3.773 
    88.9 3.774 
    89	 3.776 
    89.1 3.778 
    89.2 3.780 
    89.3 3.781 
    89.4 3.783 
    89.5 3.785 
    89.6 3.787 
    89.7 3.788 
    89.8 3.790 
    89.9 3.792 
    90	 3.793 
    

  • Dear TI

    I modified output frame x, y to 1280x720

    and output starting x coodinate = 300 and y = 140

    seems OK but the top area have some dislocation, can you give me suggestion to modify it?

  • Do I set any wrong?

    Not really wrong, but your output view goes out of your input view by too much.

    You may use smaller "s" values for smaller output view and try again.

  • seems OK but the top area have some dislocation, can you give me suggestion to modify it?

    Same problem as above

    You output view on the top is going out of your input image boundary.
    LDC H/W repeats input image border pixels when it is getting out of boundary.
    You will need to plan your output view properly according to your lens distortion geometry.

  • Hi Gang

    OK, I will try smaller "s" values

    How could I build the new bin to camera module

    I copy xml to imaging\sensor_drv\src\imx390 and run the "generate_dcc.sh"

    Then, It generated some new bin, but i don't know how to use it.

    I built imaging and sdk and copy .out to sdk, but It still not work

    Thanks

  • If you are using PSDK RTOS, you may have to do below to copy everything to SD card.

    make linux_fs_install_sd

  • Dear Gang

    Could you give me more detail.

    I have downloaded pre-build RTOS and source code RTOS

    I copied pre-build RTOS and It's workful.

    Now, I modified imaging\sensor_drv\src\imx390 in source code RTOS and run the "generate_dcc.sh" and got new bin

    Could I just copied bin to sdcard? If yes, where is the path?

    Or what is the procedure I need to do?

    I made vision_app, sdk, and imaging, then copied all .out to sdcard, but nothing changed.

    Or I don't need to make anything, just after modifying then make linux_fs_install_sd?

    Thanks

  • Hi Gang

    We are successful to modify parameters.

    But I have some questions.

    1. I used vision_app script single_cam to take picture, then I only can get img_msc_0000_1904x1072.YUV and img_viss_0000_1934x1096.YUV

    But the imx390 config defines IMX390_1920x1080 to preview

    2. I used img_msc_0000_1904x1072.YUV to do LDC, DCC simulation is OK, but I push to SD card that the preview is not right, so I need to use 1920x1080 to preduce parameters

    How could I take 1920x1080 YUV or RAW?

    I need it to simulate LDC on DCC tool

    Thanks

     

  • Hi Will,

    I am not sure about these questions.

    IMX390 sensor output raw image and VISS output YUV should be both 1936x1096 if you have not changed the IMX390 sensor driver.

    LDC output in PSDK is configured to 1920x1080 in the single-cam app.

  • Hi Gang

    I understand IMX390 sensor output raw image and VISS output YUV should be both 1936x1096

    And LDC output in PSDK is configured to 1920x1080

    But I need to re-correction LDC, because the LDC is wrong now 

    So, I need to take 1920x1080 YUV, then I can use DCC tool to re-gen LDC table like this  "ldc_xml_IMX390_1920x1080_2.txt"

    If I use YUV 1936x1096 to gen 1920x1080 LDC table on DCC tool, the DCC output is wrong

    Thanks

  • I am confused about your LDC input and output image size on TDA4.

    For tuning tool, you can specify your input image size, output image size, and LUT image frame size separately.
    Please follow plugin guide for the details.

  • Hi Gang

    Let me explain my problem

    First of all, there is a sample code in TDA4VH-Q1 source code

    imaging\sensor_drv\src\imx390\dcc_xmls\wdr\ldc_xml_IMX390_1920x1080_3.txt

    I took a YUV image img_viss_0000_1934x1096 to simulate LDC parameter  

    I set input image size 1934x1096, and output image size 1280x720, then the DCC preview like that. 

    But If i put the parameter code to code base, modify IMX390_ldc.xml and ldc_xml_IMX390_1934x1096_1.txt

    The real preview is like this

    So the real resolution is not fitting 1934x1096.

    Then I ignored the input size 1934x1096, I used sample resolution 1920x1080 to simulate LDC, now the DCC preview is wrong but output parameter is right for code base.

    So, I suspect that I only can use 1920x1080 to simulate. So, I need to take 1920x1080 YUV, but I don't know how to take it

    Thanks

  • First of all, there is a sample code in TDA4VH-Q1 source code

    Do you use "app_single_cam" under "vision_apps"?

    The sensor output RAW and VISS output YUV should be both 1936x1096.
    I am not sure why you have 1934 instead.

    When I press "s" key at "app_single_cam", it saves the raw and yuv images with the size below.

    RAW file name .//img_0000.raw
    YUV file name .//img_viss_0000.yuv
    imgaddr_width = 1936
    imgaddr_height = 1096
    imgaddr_stride = 1936
    width = 1936
    height = 1096
    
    
    YUV file name .//img_ldc_0000.yuv
    imgaddr_width = 1920
    imgaddr_height = 1080
    imgaddr_stride = 1920
    width = 1920
    height = 1080
    

    I suppose LDC output size is decided by "app_single_cam" while creating the LDC openvx node.

    If you need to modify LDC output size, you may have to change the LDC node settings.

  • Hi Gang

    That's my mistake.

    RAW file name .//img_0000.raw
    YUV file name .//img_viss_0000.yuv
    imgaddr_width = 1936
    imgaddr_height = 1096
    imgaddr_stride = 1936
    width = 1936
    height = 1096

    This is what i got.

    Then, I need to get 1920x1080 YUV to simulate LDC,

    Because, as i mentioned before, I can't use 1936x1096 YUV to simulate LDC on DCC tool

    because If I use the output XML code base, I only can get wrong preview.

    Can you give me more specific infornation about where i need to modify.

    1. How to get 1920x1080 YUV?

    2. If i need to modify LDC output, I only need to get new XML or i need to modify source code

    Thanks

  • Then, I need to get 1920x1080 YUV to simulate LDC,

    Because, as i mentioned before, I can't use 1936x1096 YUV to simulate LDC on DCC tool

    Your LDC input is from VISS output and it should be 1936x1096.
    You should use 1936x1096 for LDC input in tuning tool as well.

    because If I use the output XML code base, I only can get wrong preview.

    I suppose you should be able set LDC output size to 1936x1096 in tuning tool.

    2. If i need to modify LDC output, I only need to get new XML or i need to modify source code

    If you use the single-cam app, please refer to "app_create_ldc(...)" in "app_single_cam_common.c".
    I believe "obj->ldc_out" is the LDC output image.

  • Hi Gang

    We saw some DCC XML parameters were written app_single_cam_common.h

    #define LDC_TABLE_WIDTH (1920)
    #define LDC_TABLE_HEIGHT (1080)
    #define LDC_DS_FACTOR (2)
    #define LDC_BLOCK_WIDTH (64)
    #define LDC_BLOCK_HEIGHT (32)
    #define LDC_PIXEL_PAD (1)

    I am confused, if i want use DCC XML config, which app i need to use?

    Thanks

  • For VPAC tuning, the single-cam app is the simplest to use.

  • Hi Gang

    We modified app_single_cam_common.c and app_single_cam_main.c 

    It is worked

    Thank you

  • Hi Will,

    Thanks for the update!

    Could you please confirm if the cause is the output image size?