FreeRDP
tsmf_X11.c File Reference
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/syscall.h>
#include <unistd.h>
#include <fcntl.h>
#include <string.h>
#include <err.h>
#include <errno.h>
#include <winpr/thread.h>
#include <winpr/string.h>
#include <winpr/platform.h>
#include <gst/gst.h>
#include <gst/interfaces/xoverlay.h>
#include <X11/Xlib.h>
#include <X11/extensions/Xrandr.h>
#include <X11/extensions/shape.h>
#include <freerdp/channels/tsmf.h>
#include "tsmf_platform.h"
#include "tsmf_constants.h"
#include "tsmf_decoder.h"

Functions

static const char * get_shm_id ()
 
static GstBusSyncReply tsmf_platform_bus_sync_handler (GstBus *bus, GstMessage *message, gpointer user_data)
 
const char * tsmf_platform_get_video_sink (void)
 
const char * tsmf_platform_get_audio_sink (void)
 
int tsmf_platform_create (TSMFGstreamerDecoder *decoder)
 
int tsmf_platform_set_format (TSMFGstreamerDecoder *decoder)
 
int tsmf_platform_register_handler (TSMFGstreamerDecoder *decoder)
 
int tsmf_platform_free (TSMFGstreamerDecoder *decoder)
 
int tsmf_window_create (TSMFGstreamerDecoder *decoder)
 
int tsmf_window_resize (TSMFGstreamerDecoder *decoder, int x, int y, int width, int height, int nr_rects, RDP_RECT *rects)
 
int tsmf_window_map (TSMFGstreamerDecoder *decoder)
 
int tsmf_window_unmap (TSMFGstreamerDecoder *decoder)
 
int tsmf_window_destroy (TSMFGstreamerDecoder *decoder)
 

Function Documentation

◆ get_shm_id()

static const char* get_shm_id ( void  )
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_platform_bus_sync_handler()

static GstBusSyncReply tsmf_platform_bus_sync_handler ( GstBus *  bus,
GstMessage *  message,
gpointer  user_data 
)
static
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_platform_create()

int tsmf_platform_create ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:

◆ tsmf_platform_free()

int tsmf_platform_free ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_platform_get_audio_sink()

const char* tsmf_platform_get_audio_sink ( void  )
Here is the caller graph for this function:

◆ tsmf_platform_get_video_sink()

const char* tsmf_platform_get_video_sink ( void  )
Here is the caller graph for this function:

◆ tsmf_platform_register_handler()

int tsmf_platform_register_handler ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_platform_set_format()

int tsmf_platform_set_format ( TSMFGstreamerDecoder decoder)
Here is the caller graph for this function:

◆ tsmf_window_create()

int tsmf_window_create ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_window_destroy()

int tsmf_window_destroy ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_window_map()

int tsmf_window_map ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_window_resize()

int tsmf_window_resize ( TSMFGstreamerDecoder decoder,
int  x,
int  y,
int  width,
int  height,
int  nr_rects,
RDP_RECT rects 
)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ tsmf_window_unmap()

int tsmf_window_unmap ( TSMFGstreamerDecoder decoder)
Here is the call graph for this function:
Here is the caller graph for this function: