MythTV  master
Macros | Functions
mpegrecorder.cpp File Reference
#include <algorithm>
#include <chrono>
#include <cinttypes>
#include <ctime>
#include <fcntl.h>
#include <thread>
#include <unistd.h>
#include <vector>
#include <sys/types.h>
#include <sys/stat.h>
#include <sys/ioctl.h>
#include <sys/time.h>
#include <sys/poll.h>
#include <linux/videodev2.h>
#include "mythconfig.h"
#include "mpegrecorder.h"
#include "ringbuffer.h"
#include "mythcorecontext.h"
#include "programinfo.h"
#include "recordingprofile.h"
#include "tv_rec.h"
#include "mythdate.h"
#include "cardutil.h"
#include "ivtv_myth.h"
Include dependency graph for mpegrecorder.cpp:

Go to the source code of this file.

Macros

#define IVTV_KERNEL_VERSION(a, b, c)   (((a) << 16) + ((b) << 8) + (c))
 
#define LOC
 

Functions

static int find_index (const int *audio_rate, int value)
 
static int streamtype_ivtv_to_v4l2 (int st)
 
static void add_ext_ctrl (vector< struct v4l2_ext_control > &ctrl_list, uint32_t id, int32_t value)
 
static void set_ctrls (int fd, vector< struct v4l2_ext_control > &ext_ctrls)
 

Macro Definition Documentation

◆ IVTV_KERNEL_VERSION

#define IVTV_KERNEL_VERSION (   a,
  b,
 
)    (((a) << 16) + ((b) << 8) + (c))

Definition at line 40 of file mpegrecorder.cpp.

◆ LOC

#define LOC
Value:
QString("MPEGRec[%1](%2): ") \
.arg(m_tvrec ? m_tvrec->GetInputId() : -1).arg(m_videodevice)

Definition at line 42 of file mpegrecorder.cpp.

Function Documentation

◆ find_index()

static int find_index ( const int *  audio_rate,
int  value 
)
static

Definition at line 99 of file mpegrecorder.cpp.

Referenced by MpegRecorder::SetOption().

◆ streamtype_ivtv_to_v4l2()

static int streamtype_ivtv_to_v4l2 ( int  st)
static

Definition at line 658 of file mpegrecorder.cpp.

Referenced by MpegRecorder::SetV4L2DeviceOptions().

◆ add_ext_ctrl()

static void add_ext_ctrl ( vector< struct v4l2_ext_control > &  ctrl_list,
uint32_t  id,
int32_t  value 
)
static

◆ set_ctrls()

static void set_ctrls ( int  fd,
vector< struct v4l2_ext_control > &  ext_ctrls 
)
static