mirror of
https://github.com/CTCaer/RetroArch.git
synced 2024-12-14 22:38:34 +00:00
add width and height retrieval to camera driver
This commit is contained in:
parent
7525421c27
commit
a6024c4efa
@ -750,7 +750,7 @@ static void v4l_texture_subimage_2d(void *data)
|
||||
preprocess_image(data);
|
||||
}
|
||||
|
||||
static int v4l_ready(void *data)
|
||||
static int v4l_ready(void *data, unsigned *width, unsigned *height)
|
||||
{
|
||||
video4linux_t *v4l = (video4linux_t*)data;
|
||||
return v4l->ready;
|
||||
|
2
driver.h
2
driver.h
@ -339,7 +339,7 @@ typedef struct camera_driver
|
||||
void (*free)(void *data);
|
||||
int (*start)(void *data);
|
||||
int (*stop)(void *data);
|
||||
int (*ready)(void *data);
|
||||
int (*ready)(void *data, unsigned *width, unsigned *height);
|
||||
void (*texture_image_2d)(void *data);
|
||||
void (*texture_subimage_2d)(void *data);
|
||||
const char *ident;
|
||||
|
Loading…
Reference in New Issue
Block a user