Greetings,
The dvsdk encode demo in DM365 doesn't support the jpeg encode algorithm. So I modified the code to make the jpeg encoder work based on the encode demo in dvsdk.
At first, add following to the encode.cfg:
var JPEGENC = xdc.useModule('ti.sdo.codecs.jpegenc.ce.JPEGENC');
var myEngine = Engine.create("encode", [
{name: "mpeg4enc", mod: MPEG4ENC, local: true, groupId: 1},
{name:
"h264enc", mod: H264ENC, local: true, groupId: 1},
{name: "jpegenc", mod: JPEGENC, local: true, groupId: 1},
{name: "g711enc", mod: G711ENC, local: true},]);
Sencond, invoke the jpeg coder in the programme:
49157
@2,419,097us: [+7 T:0x43782490] ti.sdo.ce.alg.Algorithm - Algorithm_create> Algo
rithm 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 and scratch allocation
@2,419,637us: [+7 T:0x43782490] ti.sdo.dmai - [Ienc1] Can't open imaging encode
algorithm
Error: Failed to create video encoder: jpegenc
if (hEncode == NULL) {
Dmai_err0("Can't open imaging encode algorithm\n");
free(hIe);
return NULL;
}