v4l2: implement enum_formats with filter

Use the filter to query the device and return a filtered result.
This commit is contained in:
Wim Taymans 2016-09-07 13:43:14 +02:00
parent 8ada6736c0
commit 64ad745437
6 changed files with 302 additions and 44 deletions

View file

@ -110,7 +110,7 @@ static const uint32_t format_values[] = {
};
static const SpaPropRangeInfo format_range[] = {
{ "ENCODED,", "ENCODED", sizeof (uint32_t), &format_values[1] },
{ "ENCODED", "ENCODED", sizeof (uint32_t), &format_values[1] },
{ "I420", "I420", sizeof (uint32_t), &format_values[2] },
{ "YV12", "YV12", sizeof (uint32_t), &format_values[3] },
{ "YUY2", "YUY2", sizeof (uint32_t), &format_values[4] },