Hi all,
I am now using the libimxvpuapi on an imx8m plus board to do YUV2H264 encoding. I refer to example/encode-example.c. However, I encountered the failure to allocate dma buffer at the line of function call imx_dma_buffer_allocate() as below:
ctx->stream_buffer = imx_dma_buffer_allocate(
ctx->allocator,
ctx->enc_global_info->min_required_stream_buffer_size,
ctx->enc_global_info->required_stream_buffer_physaddr_alignment,
0
);
I get a exception at this call and a print "Bus error" without any detailed informaiton.
Would you please help check what the root cause it is?
Thank you!
Hello,
You are using a processor instruction with an address that does not satisfy its alignment requirements. Check your code to avoid this bus error.
Regards
Thank you for your reply.
According to the comment in the code as below:
It seems that the only thing being related to the allocation of dma buffer is the allocator. When I compiled the libimxdmabuffer, I did not specified which allocator to used because I have no idea which one I should use.
Question: I am now using imx8m plus, what allocator should I use?
Thank you!