In ~/tegra_multimedia_api/samples/02_video_dec_cuda, I use command :
$./video_dec_cuda video.H264 H264
Decoder run was successful but drawed a black rect on the top-left corner in EglDisplay.
However, when I try
$./video_decode video.H264 H264
for the same .H264 file in ~/tegra_multimedia_api/samples/00_video_decode, this problem does not occur.
How can I fixed this problem?
Hi weitao94926,
Did not read MMAPI document (Start_L4T_MultimediaAPI_Docs.html) or sample source code ?
Flow
The following diagram shows the flow of data through the sample.
read_decoder_input(H.264/H.265)
Apply CUDA processing by rendering a rectangle on YUV frame without memory copy
static bool
conv0_capture_dqbuf_thread_callback(struct v4l2_buffer *v4l2_buf,
NvBuffer * buffer, NvBuffer * shared_buffer,
void *arg)
{
if (ctx->g_rect_num > 0) {
nvosd_draw_rectangles(ctx->nvosd_context,
MODE_HW,
buffer->planes[0].fd,
ctx->g_rect_num,
ctx->g_rect);
}
}
Best Regards