Hello,
I am trying to modify C6678 H264 HP Encoder by creating a periodic clock encode function using Clock_Create call.The original implementation was having a Task_Create call which creates the Encode task thread. When using Clock_Create, my RMAN_Init inside the clock function is failing and it appears function is not returning(probably it is getting hung).
Orignial Implementation in h264hpvenc_ti_testapp.c(C6678 H264 HP Encoder Demo)
Task_Params taskParams;
Task_Params_init(&taskParams);
taskParams.stackSize = 0x4000;
Task_create((Task_FuncPtr)EncodeTask, &taskParams, NULL);
Modified Implementation
Clock_Handle clk;
Clock_Params clkParams;
Clock_Params_init(&clkParams);
clkParams.period = 0; /* period = 0 one shot function call */
clkParams.startFlag = TRUE;
clk = Clock_create((Clock_FuncPtr)EncodeTask, 1, &clkParams, NULL);
I am doing single core encoding with test input yuv file (resolution 352*288 with 30fps) provided along with demo.What could be the reasons RMAN_init is failing or getting hung? Can RMAN_init() only be called from a task thread?
Thanks
Anish
~Signalogic