MythTV  master
Macros | Functions
v4lchannel.cpp File Reference
#include <cstdio>
#include <cstdlib>
#include <cerrno>
#include <unistd.h>
#include <fcntl.h>
#include <sys/ioctl.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/wait.h>
#include <algorithm>
#include <iostream>
#include <linux/videodev2.h>
#include "v4lchannel.h"
#include "frequencies.h"
#include "tv_rec.h"
#include "mythdb.h"
#include "channelutil.h"
#include "cardutil.h"
Include dependency graph for v4lchannel.cpp:

Go to the source code of this file.

Macros

#define DEBUG_ATTRIB   1
 
#define LOC
 

Functions

static int format_to_mode (const QString &fmt)
 
static QString mode_to_format (int mode)
 
static int get_v4l2_attribute (const QString &db_col_name)
 
static int get_v4l2_attribute_value (int videofd, int v4l2_attrib)
 
static int set_v4l2_attribute_value (int videofd, int v4l2_attrib, int newvalue)
 

Macro Definition Documentation

◆ DEBUG_ATTRIB

#define DEBUG_ATTRIB   1

Definition at line 29 of file v4lchannel.cpp.

◆ LOC

#define LOC
Value:
QString("V4LChannel[%1](%2): ") \
.arg(m_inputid).arg(GetDevice())

Definition at line 31 of file v4lchannel.cpp.

Function Documentation

◆ format_to_mode()

static int format_to_mode ( const QString &  fmt)
static

Definition at line 121 of file v4lchannel.cpp.

Referenced by V4LChannel::InitializeInputs(), and V4LChannel::SetInputAndFormat().

◆ mode_to_format()

static QString mode_to_format ( int  mode)
static

Definition at line 157 of file v4lchannel.cpp.

Referenced by V4LChannel::InitializeInputs(), and V4LChannel::SetFormat().

◆ get_v4l2_attribute()

static int get_v4l2_attribute ( const QString &  db_col_name)
static

◆ get_v4l2_attribute_value()

static int get_v4l2_attribute_value ( int  videofd,
int  v4l2_attrib 
)
static

Definition at line 702 of file v4lchannel.cpp.

Referenced by V4LChannel::ChangePictureAttribute().

◆ set_v4l2_attribute_value()

static int set_v4l2_attribute_value ( int  videofd,
int  v4l2_attrib,
int  newvalue 
)
static

Definition at line 726 of file v4lchannel.cpp.

Referenced by V4LChannel::ChangePictureAttribute().