MythTV  master
Functions | Variables
util-xv.cpp File Reference
#include <iostream>
#include <cstdlib>
#include <QCoreApplication>
#include "signalhandling.h"
#include "mythlogging.h"
#include "mythxdisplay.h"
#include "util-xv.h"
#include <X11/Xatom.h>
#include <X11/Xutil.h>
#include <X11/extensions/XShm.h>
#include <X11/extensions/Xv.h>
#include <X11/extensions/Xvlib.h>
Include dependency graph for util-xv.cpp:

Go to the source code of this file.

Functions

void close_all_xv_ports_signal_handler (int sig)
 
static void close_all_xv_ports_signal_handler_SIGINT (void)
 
static void close_all_xv_ports_signal_handler_SIGTERM (void)
 
void save_port_attributes (int port)
 
void restore_port_attributes (int port, bool clear)
 
bool add_open_xv_port (MythXDisplay *disp, int port)
 
void del_open_xv_port (int port)
 
bool has_open_xv_port (int port)
 
uint cnt_open_xv_port (void)
 
QString xvflags2str (int flags)
 
bool xv_is_attrib_supported (MythXDisplay *disp, int port, const char *name, int *current_value, int *min_value, int *max_value)
 
bool xv_set_attrib (MythXDisplay *disp, int port, const char *name, int val)
 
bool xv_get_attrib (MythXDisplay *disp, int port, const char *name, int &val)
 

Variables

QMap< int, port_infoopen_xv_ports
 

Function Documentation

◆ close_all_xv_ports_signal_handler()

void close_all_xv_ports_signal_handler ( int  sig)

◆ close_all_xv_ports_signal_handler_SIGINT()

static void close_all_xv_ports_signal_handler_SIGINT ( void  )
static

Definition at line 37 of file util-xv.cpp.

Referenced by add_open_xv_port().

◆ close_all_xv_ports_signal_handler_SIGTERM()

static void close_all_xv_ports_signal_handler_SIGTERM ( void  )
static

Definition at line 41 of file util-xv.cpp.

Referenced by add_open_xv_port().

◆ save_port_attributes()

void save_port_attributes ( int  port)

Definition at line 46 of file util-xv.cpp.

Referenced by VideoOutputXv::InitSetupBuffers().

◆ restore_port_attributes()

void restore_port_attributes ( int  port,
bool  clear 
)

Definition at line 73 of file util-xv.cpp.

Referenced by close_all_xv_ports_signal_handler(), and VideoOutputXv::UngrabXvPort().

◆ add_open_xv_port()

bool add_open_xv_port ( MythXDisplay disp,
int  port 
)

Definition at line 96 of file util-xv.cpp.

Referenced by VideoOutputXv::GrabSuitableXvPort().

◆ del_open_xv_port()

void del_open_xv_port ( int  port)

Definition at line 114 of file util-xv.cpp.

Referenced by VideoOutputXv::UngrabXvPort().

◆ has_open_xv_port()

bool has_open_xv_port ( int  port)

Definition at line 128 of file util-xv.cpp.

◆ cnt_open_xv_port()

uint cnt_open_xv_port ( void  )

Definition at line 133 of file util-xv.cpp.

◆ xvflags2str()

QString xvflags2str ( int  flags)

Definition at line 138 of file util-xv.cpp.

Referenced by VideoOutputXv::GrabSuitableXvPort().

◆ xv_is_attrib_supported()

bool xv_is_attrib_supported ( MythXDisplay disp,
int  port,
const char *  name,
int *  current_value,
int *  min_value,
int *  max_value 
)

◆ xv_set_attrib()

bool xv_set_attrib ( MythXDisplay disp,
int  port,
const char *  name,
int  val 
)

◆ xv_get_attrib()

bool xv_get_attrib ( MythXDisplay disp,
int  port,
const char *  name,
int &  val 
)

Definition at line 217 of file util-xv.cpp.

Referenced by VideoOutputXv::InitColorKey(), and save_port_attributes().

Variable Documentation

◆ open_xv_ports

QMap<int,port_info> open_xv_ports