Lines Matching defs:framebuffers
70 /* Framebuffers are shared via memory mapping. */
72 /* Framebuffers are available via user pointers. */
74 /* Framebuffers are to be read from the device. */
103 /* Allocated framebuffers. */
104 struct CameraFrameBuffer* framebuffers;
105 /* Actual number of allocated framebuffers. */
194 /* Frees array of framebuffers, depending on the I/O method the array has been
209 /* Unmap framebuffers. */
221 /* Free framebuffers. */
274 if (lcd->framebuffers != NULL) {
275 _free_framebuffers(lcd->framebuffers, lcd->framebuffer_num,
277 free(lcd->framebuffers);
295 /* Free capturing framebuffers first. */
296 if (cd->framebuffers != NULL) {
297 _free_framebuffers(cd->framebuffers, cd->framebuffer_num, cd->io_type);
298 free(cd->framebuffers);
299 cd->framebuffers = NULL;
319 * 0 Framebuffers have been mapped.
347 cd->framebuffers = calloc(req.count, sizeof(CameraFrameBuffer));
348 if (cd->framebuffers == NULL) {
368 cd->framebuffers[cd->framebuffer_num].size = buf.length;
369 cd->framebuffers[cd->framebuffer_num].data =
372 if (MAP_FAILED == cd->framebuffers[cd->framebuffer_num].data) {
396 * 0 Framebuffers have been mapped.
424 cd->framebuffers = calloc(req.count, sizeof(CameraFrameBuffer));
425 if (cd->framebuffers == NULL) {
433 cd->framebuffers[cd->framebuffer_num].size =
435 cd->framebuffers[cd->framebuffer_num].data =
436 malloc(cd->framebuffers[cd->framebuffer_num].size);
437 if (cd->framebuffers[cd->framebuffer_num].data == NULL) {
447 buf.m.userptr = (unsigned long)cd->framebuffers[cd->framebuffer_num].data;
448 buf.length = cd->framebuffers[cd->framebuffer_num].size;
462 * 0 Framebuffers have been mapped.
471 cd->framebuffers = malloc(sizeof(CameraFrameBuffer));
472 if (cd->framebuffers == NULL) {
477 cd->framebuffers[0].size = cd->actual_pixel_format.sizeimage;
478 cd->framebuffers[0].data = malloc(cd->framebuffers[0].size);
479 if (cd->framebuffers[0].data == NULL) {
971 ClientFrameBuffer* framebuffers,
995 void* buff = cd->framebuffers[0].data;
1013 /* Convert the read frame into the caller's framebuffers. */
1018 framebuffers, fbs_num,
1042 res = convert_frame(cd->framebuffers[buf.index].data,
1047 framebuffers, fbs_num,