Picture: Explains the role of EndPicture

EndPicture and RenderPicture might be confusing to get so this commit
adds a comment making that a bit clearer.
This commit is contained in:
Florent Revest
2016-08-26 15:40:19 +02:00
parent f53e579944
commit 6d7050cc7b
+7
View File
@@ -163,6 +163,13 @@ VAStatus sunxi_cedrus_EndPicture(VADriverContextP ctx, VAContextID context)
return vaStatus;
}
/*
* The real rendering is done in EndPicture instead of RenderPicture
* because the v4l2 driver expects to have the full corresponding
* extended control when a buffer is queued and we don't know in which
* order the different RenderPicture will be called.
*/
memset(&(out_buf), 0, sizeof(out_buf));
out_buf.type = V4L2_BUF_TYPE_VIDEO_OUTPUT_MPLANE;
out_buf.memory = V4L2_MEMORY_MMAP;