RetroArch
Classes | Typedefs | Functions | Variables
video4linux2.c File Reference
#include <stdio.h>
#include <malloc.h>
#include <string.h>
#include <assert.h>
#include <stddef.h>
#include <stdlib.h>
#include <fcntl.h>
#include <unistd.h>
#include <errno.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/ioctl.h>
#include <asm/types.h>
#include <linux/videodev2.h>
#include <memmap.h>
#include <retro_assert.h>
#include <retro_miscellaneous.h>
#include <gfx/scaler/scaler.h>
#include <gfx/video_frame.h>
#include <file/file_path.h>
#include <compat/strl.h>
#include "../camera_driver.h"
#include "../../verbosity.h"
Include dependency graph for video4linux2.c:

Classes

struct  buffer
 
struct  video4linux
 

Typedefs

typedef struct video4linux video4linux_t
 

Functions

static int xioctl (int fd, unsigned long request, void *args)
 
static bool init_mmap (void *data)
 
static bool init_device (void *data)
 
static void v4l_stop (void *data)
 
static bool v4l_start (void *data)
 
static void v4l_free (void *data)
 
static voidv4l_init (const char *device, uint64_t caps, unsigned width, unsigned height)
 
static bool preprocess_image (void *data)
 
static bool v4l_poll (void *data, retro_camera_frame_raw_framebuffer_t frame_raw_cb, retro_camera_frame_opengl_texture_t frame_gl_cb)
 

Variables

camera_driver_t camera_v4l2
 

Typedef Documentation

◆ video4linux_t

typedef struct video4linux video4linux_t

Function Documentation

◆ init_device()

static bool init_device ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ init_mmap()

static bool init_mmap ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ preprocess_image()

static bool preprocess_image ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ v4l_free()

static void v4l_free ( void data)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ v4l_init()

static void* v4l_init ( const char *  device,
uint64_t  caps,
unsigned  width,
unsigned  height 
)
static
Here is the call graph for this function:

◆ v4l_poll()

static bool v4l_poll ( void data,
retro_camera_frame_raw_framebuffer_t  frame_raw_cb,
retro_camera_frame_opengl_texture_t  frame_gl_cb 
)
static
Here is the call graph for this function:

◆ v4l_start()

static bool v4l_start ( void data)
static
Here is the call graph for this function:

◆ v4l_stop()

static void v4l_stop ( void data)
static
Here is the call graph for this function:

◆ xioctl()

static int xioctl ( int  fd,
unsigned long  request,
void args 
)
static
Here is the caller graph for this function:

Variable Documentation

◆ camera_v4l2

camera_driver_t camera_v4l2
Initial value:
= {
"video4linux2",
}
static void v4l_free(void *data)
Definition: video4linux2.c:271
static void * v4l_init(const char *device, uint64_t caps, unsigned width, unsigned height)
Definition: video4linux2.c:288
static bool v4l_start(void *data)
Definition: video4linux2.c:237
static void v4l_stop(void *data)
Definition: video4linux2.c:226
static bool v4l_poll(void *data, retro_camera_frame_raw_framebuffer_t frame_raw_cb, retro_camera_frame_opengl_texture_t frame_gl_cb)
Definition: video4linux2.c:393