add width and height retrieval to camera driver

This commit is contained in:
ToadKing 2013-11-09 23:06:58 -05:00
parent 7525421c27
commit a6024c4efa
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;