v4l.c File Reference

Include dependency graph for v4l.c:


Data Structures

struct  quicktime_mjpeg_app1
struct  demux_sys_t

Defines

#define _LINUX_TIME_H
#define CACHING_TEXT   N_("Caching value in ms")
#define CACHING_LONGTEXT
#define VDEV_TEXT   N_("Video device name")
#define VDEV_LONGTEXT
#define CHROMA_TEXT   N_("Video input chroma format")
#define CHROMA_LONGTEXT
#define FREQUENCY_TEXT   N_( "Frequency" )
#define FREQUENCY_LONGTEXT
#define CHANNEL_TEXT   N_( "Channel" )
#define CHANNEL_LONGTEXT
#define NORM_TEXT   N_( "Norm" )
#define NORM_LONGTEXT
#define AUDIO_TEXT   N_( "Audio Channel" )
#define AUDIO_LONGTEXT
#define WIDTH_TEXT   N_( "Width" )
#define WIDTH_LONGTEXT
#define HEIGHT_TEXT   N_( "Height" )
#define HEIGHT_LONGTEXT
#define BRIGHTNESS_TEXT   N_( "Brightness" )
#define BRIGHTNESS_LONGTEXT
#define HUE_TEXT   N_( "Hue" )
#define HUE_LONGTEXT
#define COLOUR_TEXT   N_( "Color" )
#define COLOUR_LONGTEXT
#define CONTRAST_TEXT   N_( "Contrast" )
#define CONTRAST_LONGTEXT
#define TUNER_TEXT   N_( "Tuner" )
#define TUNER_LONGTEXT   N_( "Tuner to use, if there are several ones." )
#define MJPEG_TEXT   N_( "MJPEG" )
#define MJPEG_LONGTEXT
#define DECIMATION_TEXT   N_( "Decimation" )
#define DECIMATION_LONGTEXT
#define QUALITY_TEXT   N_( "Quality" )
#define QUALITY_LONGTEXT   N_( "Quality of the stream." )
#define FPS_TEXT   N_( "Framerate" )
#define FPS_LONGTEXT
#define AUDIO_DEPRECATED_ERROR
#define V4L_DEFAULT   "/dev/video"
#define MJPEG_BUFFER_SIZE   (256*1024)
#define v4l1_close   close
#define v4l1_ioctl   ioctl
#define v4l1_mmap   mmap
#define v4l1_munmap   munmap
#define v4l1_open   vlc_open

Functions

static int Open (vlc_object_t *)
 Probes and initializes.
static void Close (vlc_object_t *)
 Releases resources.
int vlc_entry__main (module_t *p_module)
const char * vlc_entry_license__main (void)
static int Demux (demux_t *)
static int Control (demux_t *, int, va_list)
static void ParseMRL (demux_t *)
static int OpenVideoDev (demux_t *, char *)
static block_tGrabVideo (demux_t *)
static uint8_t * GrabCapture (demux_t *p_demux)
static uint8_t * GrabMJPEG (demux_t *p_demux)

Variables

static const int i_norm_list []
static const char *const psz_norm_list_text []
struct {
   int   i_v4l
   vlc_fourcc_t   i_fourcc
v4lchroma_to_fourcc []

Define Documentation

#define _LINUX_TIME_H

#define AUDIO_DEPRECATED_ERROR

Value:

N_( \
    "Alsa or OSS audio capture in the v4l access is deprecated. " \
    "please use 'v4l:/""/ :input-slave=alsa:/""/' or " \
    "'v4l:/""/ :input-slave=oss:/""/' instead." )

Referenced by ParseMRL().

#define AUDIO_LONGTEXT

Value:

N_( \
    "Audio Channel to use, if there are several audio inputs." )

#define AUDIO_TEXT   N_( "Audio Channel" )

#define BRIGHTNESS_LONGTEXT

Value:

N_( \
    "Brightness of the video input." )

#define BRIGHTNESS_TEXT   N_( "Brightness" )

#define CACHING_LONGTEXT

Value:

N_( \
    "Caching value for V4L captures. This " \
    "value should be set in milliseconds." )

#define CACHING_TEXT   N_("Caching value in ms")

#define CHANNEL_LONGTEXT

Value:

N_( \
    "Channel of the card to use (Usually, 0 = tuner, " \
    "1 = composite, 2 = svideo)." )

#define CHANNEL_TEXT   N_( "Channel" )

#define CHROMA_LONGTEXT

Value:

N_( \
    "Force the Video4Linux video device to use a specific chroma format " \
    "(eg. I420 (default), RV24, etc.)")

#define CHROMA_TEXT   N_("Video input chroma format")

#define COLOUR_LONGTEXT

Value:

N_( \
    "Color of the video input." )

#define COLOUR_TEXT   N_( "Color" )

#define CONTRAST_LONGTEXT

Value:

N_( \
    "Contrast of the video input." )

#define CONTRAST_TEXT   N_( "Contrast" )

#define DECIMATION_LONGTEXT

Value:

N_( \
    "Decimation level for MJPEG streams" )

#define DECIMATION_TEXT   N_( "Decimation" )

#define FPS_LONGTEXT

Value:

N_( "Framerate to capture, if applicable " \
    "(-1 for autodetect)." )

#define FPS_TEXT   N_( "Framerate" )

#define FREQUENCY_LONGTEXT

Value:

N_( \
    "Frequency to capture (in kHz), if applicable." )

#define FREQUENCY_TEXT   N_( "Frequency" )

#define HEIGHT_LONGTEXT

Value:

N_( "Height of the stream to capture " \
    "(-1 for autodetect)." )

#define HEIGHT_TEXT   N_( "Height" )

#define HUE_LONGTEXT

Value:

N_( \
    "Hue of the video input." )

#define HUE_TEXT   N_( "Hue" )

#define MJPEG_BUFFER_SIZE   (256*1024)

Referenced by OpenVideoDev().

#define MJPEG_LONGTEXT

Value:

N_(  \
    "Set this option if the capture device outputs MJPEG" )

#define MJPEG_TEXT   N_( "MJPEG" )

#define NORM_LONGTEXT

Value:

N_( \
    "Norm of the stream (Automatic, SECAM, PAL, or NTSC)." )

#define NORM_TEXT   N_( "Norm" )

#define QUALITY_LONGTEXT   N_( "Quality of the stream." )

#define QUALITY_TEXT   N_( "Quality" )

#define TUNER_LONGTEXT   N_( "Tuner to use, if there are several ones." )

#define TUNER_TEXT   N_( "Tuner" )

#define v4l1_close   close

Referenced by OpenVideoDev().

#define v4l1_ioctl   ioctl

#define v4l1_mmap   mmap

Referenced by OpenVideoDev().

#define v4l1_munmap   munmap

#define v4l1_open   vlc_open

Referenced by OpenVideoDev().

#define V4L_DEFAULT   "/dev/video"

Referenced by ParseMRL().

#define VDEV_LONGTEXT

Value:

N_( \
    "Name of the video device to use. " \
    "If you don't specify anything, no video device will be used.")

#define VDEV_TEXT   N_("Video device name")

#define WIDTH_LONGTEXT

Value:

N_( "Width of the stream to capture " \
    "(-1 for autodetect)." )

#define WIDTH_TEXT   N_( "Width" )


Function Documentation

static void Close ( vlc_object_t p_this  )  [static]

Releases resources.

Close the module.

Destroys the X11 window.

Disconnect from the X server.

Close a SDL video output.

It destroys an OpenGL vout display.

Terminate a vout display created by Open.

It destroyes a Direct3D vout display.

Terminate an output method created by Open.

Release the drawable.

Close a libcaca video output.

Close a aa video output method.

Close the filter.

Terminate a splitter module.

This function closes a clone video splitter module.

Common close function.

Releases allocate resources.

Close: Destructor.

Parameters:
p_this pointer to this filter object
p_this,: the filter object

static int Control ( demux_t p_demux,
int  i_query,
va_list  args 
) [static]

static int Demux ( demux_t p_demux  )  [static]

static uint8_t* GrabCapture ( demux_t p_demux  )  [static]

static uint8_t* GrabMJPEG ( demux_t p_demux  )  [static]

static block_t * GrabVideo ( demux_t p_demux  )  [static]

static int Open ( vlc_object_t p_this  )  [static]

Probes and initializes.

Todo:

  • Improve CDDB support (non-blocking, cache, .

Open the module.

Create an X11 window.

Probe the X server.

This function initializes SDL vout method.

It creates an OpenGL vout display.

This function allocates and initialize the DirectX vout display.

It creates a Direct3D vout display.

This function allocates and initializes a FB vout method.

Find the drawable set by libvlc application.

This function initializes libcaca vout method.

This function allocates and initializes a aa vout method.

This function allocates and initializes a Wall splitter module.

Open the filter.

This function allocates and initializes a Clone splitter module.

Open: initialize and create stuff.

Connect to the sftp server and ask for a file.

Parameters:
p_this,: the vlc_object
Returns:
VLC_SUCCESS if everything was fine
Parameters:
p_this 
p_this,: the filter object
Returns:
VLC_SUCCESS or vlc error codes

Todo:
Reinstate meta codec name

static int OpenVideoDev ( demux_t p_demux,
char *  psz_device 
) [static]

References mjpeg_params::APP_data, mjpeg_params::APP_len, mjpeg_params::APPn, demux_sys_t::b_mjpeg, mjpeg_requestbuffers::count, mjpeg_params::decimation, mjpeg_params::field_per_buff, mjpeg_params::HorDcm, hton32, i, demux_sys_t::i_audio, demux_sys_t::i_brightness, demux_sys_t::i_channel, i_chroma, demux_sys_t::i_colour, demux_sys_t::i_contrast, quicktime_mjpeg_app1::i_data_offset, demux_sys_t::i_decimation, quicktime_mjpeg_app1::i_DHT_offset, quicktime_mjpeg_app1::i_DQT_offset, quicktime_mjpeg_app1::i_field_size, i_fourcc, demux_sys_t::i_fourcc, demux_sys_t::i_frame_pos, demux_sys_t::i_frequency, demux_sys_t::i_height, demux_sys_t::i_hue, quicktime_mjpeg_app1::i_next_field, demux_sys_t::i_norm, quicktime_mjpeg_app1::i_padded_field_size, picture_t::i_planes, quicktime_mjpeg_app1::i_reserved, quicktime_mjpeg_app1::i_SOF_offset, quicktime_mjpeg_app1::i_SOS_offset, quicktime_mjpeg_app1::i_tag, demux_sys_t::i_tuner, i_v4l, demux_sys_t::i_video_frame_size, plane_t::i_visible_lines, plane_t::i_visible_pitch, demux_sys_t::i_width, mjpeg_params::img_height, mjpeg_params::img_width, mjpeg_params::input, JPEG_MARKER_DHT, JPEG_MARKER_DQT, mjpeg_params::jpeg_markers, MJPEG_BUFFER_SIZE, demux_sys_t::mjpeg_buffers, MJPIOC_G_PARAMS, MJPIOC_QBUF_CAPT, MJPIOC_REQBUFS, MJPIOC_S_PARAMS, msg_Dbg, msg_Err, msg_Warn, mjpeg_params::norm, picture_t::p, demux_t::p_sys, demux_sys_t::p_video_mmap, demux_sys_t::pic, picture_Setup(), mjpeg_requestbuffers::size, v4l1_close, v4l1_ioctl, v4l1_mmap, v4l1_open, v4lchroma_to_fourcc, var_CreateGetString, mjpeg_params::VerDcm, demux_sys_t::vid_cap, demux_sys_t::vid_mbuf, demux_sys_t::vid_mmap, demux_sys_t::vid_picture, VIDEO_ES, VLC_CODEC_MJPG, VLC_FOURCC, and vlc_fourcc_GetCodecFromString().

Referenced by FindMainDevice().

static void ParseMRL ( demux_t p_demux  )  [static]

int vlc_entry__main ( module_t p_module  ) 

const char* vlc_entry_license__main ( void   ) 


Variable Documentation

const int i_norm_list[] [static]

Initial value:

    { VIDEO_MODE_AUTO, VIDEO_MODE_SECAM, VIDEO_MODE_PAL, VIDEO_MODE_NTSC }

int i_v4l

Referenced by OpenVideoDev().

const char* const psz_norm_list_text[] [static]

Initial value:

    { N_("Automatic"), N_("SECAM"), N_("PAL"),  N_("NTSC") }

struct { ... } v4lchroma_to_fourcc[] [static]

Referenced by OpenVideoDev().


Generated on Tue May 25 08:05:08 2010 for VLC by  doxygen 1.5.6