Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
gscbuf = v4l2_getfree_v4l2buf(gsc->output);
if (!gscbuf)
return AVERROR(ENOMEM);
// copy mfc capture buffer to gsc capture buffer
for(i = 0; i < avbuf->num_planes; i++) {
gscbuf->plane_info[i].mm_addr = avbuf->plane_info[i].mm_addr;
gscbuf->planes[i].bytesused = avbuf->planes[i].bytesused;
gscbuf->planes[i].length = avbuf->planes[i].length;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment