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.

Linux/AM5728: ARGB32 to YUV422 conversion

Part Number: AM5728

Tool/software: Linux

Hi,

a customer is using the AM5728 and notices that the VPE cannot do ARGB to YUV conversion (it can do the opposite direction). Is there a Linux driver well supported way of doing ARGB32 to YUV422 in HW on the AM5728?

Thanks,

--Gunter

  • Hello,

    You could check this user guide about VPE linux driver and supported formats.

    http://processors.wiki.ti.com/index.php/Linux_Core_VPE_User's_Guide

    Gunter Schmer said:
    Is there a Linux driver well supported way of doing ARGB32 to YUV422 in HW on the AM5728?

    I will check with the video expert.

    BR
    Margarita

  • Hi Gunter,
    DSS-WB pipeline which is memory to memory driver can be used to convert RGB to yuyv/nv12.

    Check if the test-v4l2-m2m application exists in your rootfs.
    Source code is available here
    git.ti.com/.../test-v4l2-m2m.c

    This application earlier named as testvpe . To support DSS_WB m2m, this was renamed to test-v4l2-m2m.

    Below commands show how to convert RGB to yuyv/nv12
    Get RGB file using vpe
    target$ test-v4l2-m2m /dev/video0 /usr/share/ti/video/airshow_p352x288.yuv 352 288 nv12 airshow_abgr32.yuv 720 480 abgr32 0 1 10

    Convert RGB to yuyv
    target $test-v4l2-m2m /dev/video10 airshow_abgr32.yuv 720 480 xbgr32 output_yuyv.yuv 720 480 yuyv 0 1 10

    Ram
  • Below is the link to DSS WB driver wiki page. It has helpful information including list of features supported/not supported.