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:
Michael Grzeschik 2023-05-09 00:50:41 +02:00 committed by GStreamer Marge Bot
parent e50dcac517
commit da61d8f96d
2 changed files with 3 additions and 0 deletions

View file

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

View file

@ -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;
}; };
/* /*