Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save mihailescu2m/0118e2edd913c5d6fafab7fd118af3be to your computer and use it in GitHub Desktop.
Save mihailescu2m/0118e2edd913c5d6fafab7fd118af3be to your computer and use it in GitHub Desktop.
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