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.

[TDA4M] I was wondering if TDA4X has interface to finish tivxVpacLdcNodc for gray image

Here take vx_app_single_cam testcase for example, which can be described as follows:
input_img(raw image) -> VISS(nv12) -----> LDC -----> output_img(nv12)

I want to call VPAC to finish remap from gray image format(only one plane), as follows:

input_img(gray image) ----> LDC -----> output_img(gray image)

How can I achieve this goal without transformation from gray image to YUV on A72 ? 

  • Hi

    The LDC node does support the Luma only transformation.

    You would need to make sure to set the yc_mode to 0:

    Structure: tivx_vpac_ldc_params_t

    /*! When LDC is used to operate on single plane mode, ie by
    * settings output format to U8/U16/P12, this flag can be
    * used to configure LDC in Luma only or Chroma Only mode
    *
    * 0: Luma only mode, 1: Chroma Only mode
    *
    * Note: In case of chroma only mode, LDC assumes chroma is from
    * YUV420 input and expects the frame size
    * to be for YUV420 frame, ie frame size of luma, where chroma
    * height is half of luma height.
    * Node internally takes care of multiplying height by 2. */
    uint32_t yc_mode;

    You can find a reference in vision_apps/apps/ptk_demos/app_ldc/main.c

    Thanks and Regards

    Piyali