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 get remap LUT from SD card

Other Parts Discussed in Thread: SYSBIOS

Hi all,

For our application on TDA2X EVM (Vision SDK 2.08, Linux + SysBIOS), I have to read a text file from SD card. This file contents several image remapping LUTs and may over 3MB on memory spaces.

I have tried following tasks,

  1. Generate a LUT text file and move file to target file system (SD card).
  2. Read LUT file in APP initial time.
  3. Allocate memory spaces to the pointers (I created) of AlgorithmLink_FramecopyCreateParams in use-case initial time.
  4. Fill LUT into the space in use-case initial time.
  5. Allocate memory spaces to the pointers (I created) of AlgorithmLink_FramecopyObj in algorithm link create time.
  6. Memory copy from create parameter to object parameter in algorithm create time.

Use-case: vip_single_cam_sgx_display
Chain: Capture -> Alg_FrameCopy (DSP1) -> SgxDisplay (A15)
Algorithm link: Alg_FrameCopy

 

In my case, this method has buffer size limited in algorithm create stage. The size of LUT might limit around 264,000 bytes. I get these error message if LUT over size limitation, 

[HOST ] 80.969238 s: SYSTEM: IPC: [DSP1] Notify recvfrom failed (Link has 
been severed, 67) !!!

How could I get more buffers based on this method? Thank you.

Best Regards,

Jeremy Lee

  • Hi,

    Your question has been forwarded to SW experts.

    Best regards
    Lucy
  • Lee,

    it’s possible to increase the Alg link output buffer size, in this particular case of Alg frame copy we assume output size is same as input size and hence no create time parameters available from application,  but you can modify to pass the output buffer size and use the same to allocate bigger output buffers.

    FYI, we have the latest version of vision SDK (2.10) is available which support direct SD card read and this is supported via NullSrc Link, so any meta data kept in the SD card can be read and pass to the next link, say Alg link. which is very straight forward as something below

    NullSrc -> Alg -> Display

    Refer the below vision SDK Linux UseCase for SD card read,

    5: NullSrc + Decode + Display (Only 1920x1080 H264/MJPEG Video Input Bit-Stream Supported)

    regards, Shiju