libexplain  1.4.D001
Enumerations | Functions
libexplain/buffer/v4l2_buf_type.h File Reference
#include <libexplain/string_buffer.h>

Go to the source code of this file.

Enumerations

enum  explain_v4l2_buf_type_check_t { explain_v4l2_buf_type_check_no_idea, explain_v4l2_buf_type_check_notsup, explain_v4l2_buf_type_check_nosuch, explain_v4l2_buf_type_check_ok }

Functions

void explain_buffer_v4l2_buf_type (explain_string_buffer_t *sb, int value)
void explain_buffer_v4l2_buf_type_ptr (explain_string_buffer_t *sb, const int *value)
enum explain_v4l2_buf_type_check_t explain_v4l2_buf_type_check (int fildes, int data)
enum explain_v4l2_buf_type_check_t explain_v4l2_buf_type_ptr_check (int fildes, const int *data)

Enumeration Type Documentation

Enumerator:
explain_v4l2_buf_type_check_no_idea 
explain_v4l2_buf_type_check_notsup 
explain_v4l2_buf_type_check_nosuch 
explain_v4l2_buf_type_check_ok 

Definition at line 47 of file v4l2_buf_type.h.


Function Documentation

void explain_buffer_v4l2_buf_type ( explain_string_buffer_t sb,
int  value 
)

The explain_buffer_v4l2_buf_type function may be used to print a representation of a v4l2_buf_type structure.

Parameters:
sbThe string buffer to print into.
valueThe v4l2_buf_type value to be printed.
void explain_buffer_v4l2_buf_type_ptr ( explain_string_buffer_t sb,
const int *  value 
)

The explain_buffer_v4l2_buf_type function may be used to print a representation of a v4l2_buf_type structure.

Parameters:
sbThe string buffer to print into.
valueThe v4l2_buf_type value to be printed.
enum explain_v4l2_buf_type_check_t explain_v4l2_buf_type_check ( int  fildes,
int  data 
)

The explain_v4l2_buf_type_check function is used to check the validity of a v4l2 buffer type.

Parameters:
fildesThe associated file descriptor.
dataThe alleged v4l2 buffer type to be checked.
Returns:
no_idea if the file descriptor is unhelpful, no if the data is not a valid buffer type, and yes of it is valif and supported by the device (fildes).
enum explain_v4l2_buf_type_check_t explain_v4l2_buf_type_ptr_check ( int  fildes,
const int *  data 
)

The explain_v4l2_buf_type_ptr_check function is used to check the validity of a v4l2 buffer type.

Parameters:
fildesThe associated file descriptor.
dataThe alleged v4l2 buffer type to be checked.
Returns:
no_idea if the file descriptor is unhelpful or the pointer is efault, no if the data is not a valid buffer type, and yes of it is valif and supported by the device (fildes).