mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-23 00:36:51 +00:00
uvcsink: configfs.{c,h}: add parsing of more fields from format
- add parsing of dwMaxVideoFrameBufferSize Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1304>
This commit is contained in:
parent
e50dcac517
commit
da61d8f96d
2 changed files with 3 additions and 0 deletions
|
@ -563,6 +563,8 @@ configfs_parse_streaming_frame (const char *path,
|
||||||
ret = ret ? : attribute_read_uint (path, "bFrameIndex", &frame->index);
|
ret = ret ? : attribute_read_uint (path, "bFrameIndex", &frame->index);
|
||||||
ret = ret ? : attribute_read_uint (path, "wWidth", &frame->width);
|
ret = ret ? : attribute_read_uint (path, "wWidth", &frame->width);
|
||||||
ret = ret ? : attribute_read_uint (path, "wHeight", &frame->height);
|
ret = ret ? : attribute_read_uint (path, "wHeight", &frame->height);
|
||||||
|
ret = ret ? : attribute_read_uint (path, "dwMaxVideoFrameBufferSize",
|
||||||
|
&frame->maxvideofbsize);
|
||||||
if (ret)
|
if (ret)
|
||||||
return ret;
|
return ret;
|
||||||
|
|
||||||
|
|
|
@ -58,6 +58,7 @@ struct uvc_function_config_frame
|
||||||
unsigned int height;
|
unsigned int height;
|
||||||
unsigned int num_intervals;
|
unsigned int num_intervals;
|
||||||
unsigned int *intervals;
|
unsigned int *intervals;
|
||||||
|
unsigned int maxvideofbsize;
|
||||||
};
|
};
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
Loading…
Reference in a new issue