libexplain  1.4.D001
Functions
libexplain/buffer/v4l2_fmtdesc.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Functions

void explain_buffer_v4l2_fmtdesc (explain_string_buffer_t *sb, const struct v4l2_fmtdesc *data, int extra)
int explain_v4l2_fmtdesc_get_nformats (int fildes, int type)

Function Documentation

void explain_buffer_v4l2_fmtdesc ( explain_string_buffer_t sb,
const struct v4l2_fmtdesc *  data,
int  extra 
)

The explain_buffer_v4l2_fmtdesc function may be used to print a representation of a v4l2_fmtdesc structure.

Parameters:
sbThe string buffer to print into.
dataThe v4l2_fmtdesc structure to be printed.
extrawhether or not to also print the returned value fields
int explain_v4l2_fmtdesc_get_nformats ( int  fildes,
int  type 
)

The explain_v4l2_fmtdesc_get_nformats function may be used to determine the number of vailable pixel format descriptions.

Parameters:
fildesThe associated file descriptor
typeThe type of pixel format of interest
Returns:
>0 the number of formats available, 0 there are no formats available, <0 unable to determine number of available formats