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.

is there any jpeg encode demos for dm6467t-evm?

hi:

     i want to encode jpeg pictures in dm6467t-evm, but i can only found a jpeg encode codec for C64Xplus, here it is link: http://software-dl.ti.com/dsps/dsps_public_sw/codecs/C64XPlus_Video//C64XPlus_Video_latest/c64xplus_jpegenc_02_00_01_00_production.bin,

i am a freshman to the davinci dsp. is there any detailed demos which contains the apps and codecs and code servers about jpeg encode for

dm6467t-evm?

  • The JPEG encoder is part of the current DVSDK. You can just use it as is. The only thing you need is to convert the color space from 422SP to 422P.

  • hello Fabrice:

         thanks for your reply. I am using dvsdk_3_10_00_11, unfortunately, i can not find the jpeg encode demo for dm6467t evm. would you tell me which dvsdk contain the JPEG encoder for dm6467t evm?  thanks a lot! 

  • there is no JPEG DEMO, what I'm saying is that the JPEG encoder is part of the DVSDK. You will have to write your own code to use the codec.

  • Hi,

    A good starting point to write code to test the JPEG encoder on DM6467 is the DMAI sample application image_encode_io1. This is a file input/file output application. Out of the box it does not support dm6467. As Fabrice mentionned it will require some work to perform colorSpace conversion. Please take a look a the DMAI release notes about how to use DMAI.

    For colorspace conversion please see the function readFrame420SP() in another DMAI sample app video_encode_io1/appMain.c. This will perform the colorspace conversion on the ARM

    It is also possible to perform the colorspace conversion on the DSP using the C6accel library:

    http://processors.wiki.ti.com/index.php/C6Accel:_ARM_access_to_DSP_software_on_TI_SoCs

    Thanks
    Cesar

     

  • That's good info about the c6accel lib. It should relieve the ARM. Thanks!

  • hi Cesar,

    i am now trying to use c6accel lib to do the color conversion work(convert 422sp to 420planar)

    i use the function as follows:

    int C6accel_IMG_ycbcr422sp_to_ycbcr420pl(C6accel_Handle hC6accel, const unsigned char * y_src,
                                               const unsigned char *cbcr_src, unsigned char * restrict y_dst,
                                               unsigned char * restrict cb_dst, unsigned char * restrict cr_dst,
                                               unsigned int num_lines,  unsigned int width,  unsigned int src_pitch,
                                               unsigned int dst_y_pitch, unsigned int dst_cbcr_pitch)

    Parameters

    • hC6accel: C6Accel handle
    • y_src Luminance data of YUV422sp input
    • cbcr_src Chrominance data of YUV422 semiplanar input
    • y_dst Luminence data of YUV420 planar output(Y’).
    • cb_data Blue color-diff (B’-Y’) output (yuv420 planar.)
    • cr_data Red color-diff (R’-Y’) output(in 420 planar format).
    • num_lines Number of lines in the image.
    • Width: Width of image data. Must be multiple of 16
    • src_pitch: Pitch of the input image
    • dst_y_pitch: Pitch of the ouput luminance image
    • dst_cbcr_pitch: Pitch of the output chrominance
    • Return value: Error codes

    but i cannot get the right output image,the luma info is correct,the chroma is wrong.

    i guess maybe the last 3 params are the reason,

    • src_pitch: Pitch of the input image
    • dst_y_pitch: Pitch of the ouput luminance image
    • dst_cbcr_pitch: Pitch of the output chrominance

    for a image like 1920x1080,what should the params be?

    i tried some different numbers,but it does not work.

    give me some help,thx

  • Steven,

    Thanks for writing to us on this issue. There was an issue reported on this which we have fixed. In order to see the fix, please refer to the post mentioned below

    http://e2e.ti.com/support/embedded/f/355/p/90049/312728.aspx#312728

    Let us know if this resolves your issue. If you still have any questions write to us @http://processors.wiki.ti.com/index.php/C6Accel#Developer_Mailing_List 

    Regards,

    Rahul

  • Rahul,

    Followed  the way you mentioned in http://e2e.ti.com/support/embedded/f/355/p/90049/312728.aspx#312728,

    we resolved the problem,

    thank you