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.

RTOS/TDA2: Error in TI IVAHD H.264 Encode function

Part Number: TDA2


Tool/software: TI-RTOS

Hi TI Experts,

I am trying to encode a frame using ti ivahd encoder api but i am getting error that means:

Active frame region dimensions are not matching with the  encoding frame dimensions


I am using  APIs in the same sequence as suggested in H264enctest.c sample application.

Also i am not giving input frm some file but some data as given below:

#pragma DATA_SECTION(".input_buffer")
uint8_t luma_buffer[176*144];

#pragma DATA_SECTION(".input_buffer")
uint8_t chroma_buffer[176*144/2];

memset(&luma_buffer,0x22,sizeof(luma_buffer));
gInputBufDes[0].planeDesc[0].buf = (XDAS_Int8*)luma_buffer;

memset(&chroma_buffer,0x22,sizeof(chroma_buffer));
gInputBufDes[0].planeDesc[1].buf = (XDAS_Int8*)chroma_buffer;

result = H264ENC_encodeFrame(m_encHandle[0],&gInputBufDes[0],&gOutputBufDesc[0],&gInArgs[0],&gOutArgs[0]);

real_error = status.videnc2Status.extendedError;

real_error = 0,that suggests Active frame region dimensions are not matching with the  encoding frame dimensions.


If anybody suggest which parameter settings i am getting wrong or the sequence is not correct.

Error suggests mismatch in frame dimensions,since i am currently working using qcif  so everywhere i am setting width*height = 176*144.

Thanks in advance

Regards

Mayank