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.

JPEG压缩函数中的params.forceChromaFormat



设置params.forceChromaFormat这个参数的作用是什么,是将输入图像的格式转换为params.forceChromaFormat相应的格式在进行JPEG压缩吗?

  • 是不是只能在初始化中对此参数进行赋值

  • 请问楼主, 你的问题解决了吗, 我现在碰到和你一样的疑惑,  我把设置params.forceChromaFormatX=DM_YUV_422ILE, 在创建算法时报错:

    Algorithm creation FAILED; make sure that 1) alg params are correct/appropriate,

    2) there is enough internal and external algorithm memory available -- check DSKT2 settings for heap assignments

    只有把params.forceChromaFormatX设置成DM_YUV_422P才能算法创建成功, 但是这样的话在给DSP的输入数据格式必须是UYVY格式的了

    我想用VID_FMT_YUV422SP的格式, 就是用两个分离的buff在分别存储Y和C分量。