camera: add support for V4L2_PIX_FMT_SBGGR10P
This commit is contained in:
@ -1,5 +1,7 @@
|
||||
#include "fourcc.h"
|
||||
|
||||
#include <string.h>
|
||||
|
||||
fourcc_string fourcc_to_string(unsigned format)
|
||||
{
|
||||
fourcc_string fourcc;
|
||||
@ -19,3 +21,17 @@ fourcc_string fourcc_to_string(unsigned format)
|
||||
*ptr++ = 0;
|
||||
return fourcc;
|
||||
}
|
||||
|
||||
many_fourcc_string many_fourcc_to_string(unsigned formats[])
|
||||
{
|
||||
many_fourcc_string fourcc = {0};
|
||||
|
||||
for (int i = 0; formats[i]; i++) {
|
||||
if (fourcc.buf[0]) {
|
||||
strcat(fourcc.buf, ", ");
|
||||
}
|
||||
strcat(fourcc.buf, fourcc_to_string(formats[i]).buf);
|
||||
}
|
||||
|
||||
return fourcc;
|
||||
}
|
||||
|
Reference in New Issue
Block a user