motion  4.3.0
About: Motion monitors the video signal from one or more cameras and is able to detect motion.
  Fossies Dox: motion-Release-4.3.0.tar.gz  ("unofficial" and yet experimental doxygen-generated source code documentation)  

video_v4l2.c File Reference
#include "translate.h"
#include "rotate.h"
#include "video_common.h"
#include "video_v4l2.h"
#include <sys/mman.h>
Include dependency graph for video_v4l2.c:

Go to the source code of this file.

Functions

void v4l2_mutex_init (void)
 
void v4l2_mutex_destroy (void)
 
int v4l2_start (struct context *cnt)
 
void v4l2_cleanup (struct context *cnt)
 
int v4l2_next (struct context *cnt, struct image_data *img_data)
 
int v4l2_palette_valid (char *video_device, int v4l2_palette)
 
void v4l2_palette_fourcc (int v4l2_palette, char *fourcc)
 
int v4l2_parms_valid (char *video_device, int v4l2_palette, int v4l2_fps, int v4l2_width, int v4l2_height)
 

Function Documentation

◆ v4l2_cleanup()

◆ v4l2_mutex_destroy()

void v4l2_mutex_destroy ( void  )

Definition at line 1381 of file video_v4l2.c.

References _, DBG, MOTION_LOG, NO_ERRNO, and TYPE_VIDEO.

Referenced by vid_mutex_destroy().

◆ v4l2_mutex_init()

void v4l2_mutex_init ( void  )

Definition at line 1373 of file video_v4l2.c.

References _, DBG, MOTION_LOG, NO_ERRNO, and TYPE_VIDEO.

Referenced by vid_mutex_init().

◆ v4l2_next()

◆ v4l2_palette_fourcc()

void v4l2_palette_fourcc ( int  v4l2_palette,
char *  fourcc 
)

Definition at line 1628 of file video_v4l2.c.

◆ v4l2_palette_valid()

int v4l2_palette_valid ( char *  video_device,
int  v4l2_palette 
)

Definition at line 1574 of file video_v4l2.c.

References _, ALR, MOTION_LOG, SHOW_ERRNO, and TYPE_VIDEO.

◆ v4l2_parms_valid()

int v4l2_parms_valid ( char *  video_device,
int  v4l2_palette,
int  v4l2_fps,
int  v4l2_width,
int  v4l2_height 
)

Definition at line 1658 of file video_v4l2.c.

References _, ALR, DBG, MOTION_LOG, NO_ERRNO, SHOW_ERRNO, and TYPE_VIDEO.

◆ v4l2_start()