MythTV  master
Classes | Macros | Functions | Variables
videoout_xv.cpp File Reference
#include "mythplayer.h"
#include <cstdlib>
#include <cstring>
#include <cmath>
#include <ctime>
#include <cerrno>
#include <fcntl.h>
#include <unistd.h>
#include <sys/time.h>
#include <sys/ipc.h>
#include <sys/shm.h>
#include <X11/keysym.h>
#include <algorithm>
#include <iostream>
#include "mythconfig.h"
#include "yuv2rgb.h"
#include "osd.h"
#include "osdchromakey.h"
#include "videoout_xv.h"
#include "mythxdisplay.h"
#include "util-xv.h"
#include "mythcorecontext.h"
#include "mythlogging.h"
#include "filtermanager.h"
#include "videodisplayprofile.h"
#include "tv.h"
#include "fourcc.h"
#include "mythmainwindow.h"
#include "mythuihelper.h"
#include "mythavutil.h"
#include <X11/extensions/xf86vmode.h>
#include <X11/extensions/Xinerama.h>
#include "libswscale/swscale.h"
#include "libavutil/imgutils.h"
Include dependency graph for videoout_xv.cpp:

Go to the source code of this file.

Classes

class  XvAttributes
 

Macros

#define IGNORE_TV_PLAY_REC
 
#define LOC   QString("VideoOutputXv: ")
 
#define round(x)   ((int) ((x) + 0.5))
 
#define XV_INIT_FATAL_ERROR_TEST(test, msg)
 
#define NVIDIA_6629
 

Functions

int XShmQueryExtension (Display *)
 
int XShmGetEventBase (Display *)
 
static QStringList allowed_video_renderers (MythCodecID codec_id, MythXDisplay *display, Window curwin=0)
 
static void SetFromEnv (bool &useXV, bool &useShm)
 
static void SetFromHW (MythXDisplay *d, Window curwin, bool &useXV, bool &useShm)
 
static bool has_format (XvImageFormatValues *formats, int format_cnt, int id)
 
static QString toCommaList (const QStringList &list)
 
static void calc_bob (FrameScanType scan, int imgh, int disphoff, int imgy, int dispyoff, int frame_height, int top_field_first, int &field, int &src_y, int &dest_y, int &xv_src_y_incr, int &xv_dest_y_incr)
 

Variables

const char * vr_str []
 

Macro Definition Documentation

◆ IGNORE_TV_PLAY_REC

#define IGNORE_TV_PLAY_REC

Definition at line 43 of file videoout_xv.cpp.

◆ LOC

#define LOC   QString("VideoOutputXv: ")

Definition at line 50 of file videoout_xv.cpp.

◆ round

#define round (   x)    ((int) ((x) + 0.5))

Definition at line 65 of file videoout_xv.cpp.

◆ XV_INIT_FATAL_ERROR_TEST

#define XV_INIT_FATAL_ERROR_TEST (   test,
  msg 
)
Value:
do { \
if (test) \
{ \
LOG(VB_GENERAL, LOG_ERR, LOC + (msg) + " Exiting playback."); \
errorState = kError_Unknown; \
return false; \
} \
} while (false)
#define LOC
Definition: videoout_xv.cpp:50

Definition at line 789 of file videoout_xv.cpp.

◆ NVIDIA_6629

#define NVIDIA_6629

Function Documentation

◆ XShmQueryExtension()

int XShmQueryExtension ( Display *  )

Referenced by SetFromHW().

◆ XShmGetEventBase()

int XShmGetEventBase ( Display *  )

◆ allowed_video_renderers()

static QStringList allowed_video_renderers ( MythCodecID  codec_id,
MythXDisplay display,
Window  curwin = 0 
)
static

◆ SetFromEnv()

static void SetFromEnv ( bool useXV,
bool useShm 
)
static

Definition at line 2031 of file videoout_xv.cpp.

Referenced by allowed_video_renderers().

◆ SetFromHW()

static void SetFromHW ( MythXDisplay d,
Window  curwin,
bool useXV,
bool useShm 
)
static

Definition at line 2040 of file videoout_xv.cpp.

Referenced by allowed_video_renderers().

◆ has_format()

static bool has_format ( XvImageFormatValues *  formats,
int  format_cnt,
int  id 
)
static

Definition at line 576 of file videoout_xv.cpp.

Referenced by VideoOutputXv::InitXVideo().

◆ toCommaList()

static QString toCommaList ( const QStringList &  list)
static

Definition at line 799 of file videoout_xv.cpp.

Referenced by VideoOutputXv::InitSetupBuffers().

◆ calc_bob()

static void calc_bob ( FrameScanType  scan,
int  imgh,
int  disphoff,
int  imgy,
int  dispyoff,
int  frame_height,
int  top_field_first,
int &  field,
int &  src_y,
int &  dest_y,
int &  xv_src_y_incr,
int &  xv_dest_y_incr 
)
static

Definition at line 1501 of file videoout_xv.cpp.

Referenced by VideoOutputXv::ShowXVideo().

Variable Documentation

◆ vr_str

const char* vr_str[]
Initial value:
=
{
"unknown", "xlib", "xshm", "xv-blit",
}

Definition at line 75 of file videoout_xv.cpp.

Referenced by VideoOutputXv::InitVideoBuffers().