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);
|
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;
|
video4linux_t *v4l = (video4linux_t*)data;
|
||||||
return v4l->ready;
|
return v4l->ready;
|
||||||
|
|
2
driver.h
2
driver.h
|
@ -339,7 +339,7 @@ typedef struct camera_driver
|
||||||
void (*free)(void *data);
|
void (*free)(void *data);
|
||||||
int (*start)(void *data);
|
int (*start)(void *data);
|
||||||
int (*stop)(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_image_2d)(void *data);
|
||||||
void (*texture_subimage_2d)(void *data);
|
void (*texture_subimage_2d)(void *data);
|
||||||
const char *ident;
|
const char *ident;
|
||||||
|
|
Loading…
Reference in New Issue