#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/types.h>
#include <X11/Xlib.h>
#include <X11/Xutil.h>
#include <X11/keysym.h>
#include <libdv/dv.h>
#include "xdvshow-x11.h"
#include "xdvshow-flags.h"
Include dependency graph for xdvshow-x11.c:
Go to the source code of this file.
Defines | |
#define | USE_COLOR 0x00000001 |
#define | USE_GREY 0x00000002 |
#define | WIDTH 720 |
#define | PAL_HEIGHT 576 |
#define | NTSC_HEIGHT 480 |
Functions | |
int _init_color_table | __P ((int)) |
int | _init_color_table (int type) |
alocates the memory for x11 color table. | |
int | xdvshow_x11_open_window (char *window_name, struct x_params *param) |
creates the simple x11 window, sets its name and allocates an image within the window. | |
int | xdvshow_x11_close_window (void) |
should free the rgb image, unmap the window and then destroy it. | |
int | xdvshow_x11_render (void) |
renders the decoded video into the rgb image within the x11 window. | |
Variables | |
int | flags |
u_long *** | color_table |
u_long | color_depth = 4 |
Display * | display |
int | screen |
Window | root |
Window | window |
XImage * | ximage |
GC | gc |
int | width |
int | height |
int | real_width |
int | real_height |
x_params * | x_param |
|
Definition at line 58 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
Definition at line 57 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
Definition at line 52 of file xdvshow-x11.c. |
|
Definition at line 53 of file xdvshow-x11.c. |
|
Definition at line 55 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
|
|
alocates the memory for x11 color table.
Definition at line 83 of file xdvshow-x11.c. References color_depth, color_table, display, and screen. Referenced by xdvshow_x11_open_window().
|
|
should free the rgb image, unmap the window and then destroy it.
Definition at line 224 of file xdvshow-x11.c. References display, window, and ximage. Referenced by sigint_signal().
|
|
creates the simple x11 window, sets its name and allocates an image within the window.
Definition at line 135 of file xdvshow-x11.c. References _init_color_table(), color_table, display, gc, height, NTSC_HEIGHT, PAL_HEIGHT, x_params::pixels, real_height, real_width, root, screen, WIDTH, width, window, x_param, and ximage. Referenced by video_thread_func().
Here is the call graph for this function: ![]() |
|
renders the decoded video into the rgb image within the x11 window.
Definition at line 241 of file xdvshow-x11.c. References color_depth, color_table, display, gc, height, x_params::pixels, width, window, x_param, and ximage. Referenced by video_thread_func().
|
|
Definition at line 63 of file xdvshow-x11.c. Referenced by _init_color_table(), and xdvshow_x11_render(). |
|
Definition at line 62 of file xdvshow-x11.c. Referenced by _init_color_table(), xdvshow_x11_open_window(), and xdvshow_x11_render(). |
|
Definition at line 65 of file xdvshow-x11.c. Referenced by _init_color_table(), xdvshow_x11_close_window(), xdvshow_x11_open_window(), and xdvshow_x11_render(). |
|
Definition at line 60 of file xdvshow-x11.c. |
|
Definition at line 69 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(), and xdvshow_x11_render(). |
|
Definition at line 70 of file xdvshow-x11.c. |
|
Definition at line 71 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
Definition at line 71 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
Definition at line 67 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(). |
|
Definition at line 66 of file xdvshow-x11.c. Referenced by _init_color_table(), and xdvshow_x11_open_window(). |
|
Definition at line 70 of file xdvshow-x11.c. |
|
Definition at line 67 of file xdvshow-x11.c. Referenced by xdvshow_x11_close_window(), xdvshow_x11_open_window(), and xdvshow_x11_render(). |
|
Definition at line 75 of file xdvshow-x11.c. Referenced by xdvshow_x11_open_window(), and xdvshow_x11_render(). |
|
Definition at line 68 of file xdvshow-x11.c. Referenced by xdvshow_x11_close_window(), xdvshow_x11_open_window(), and xdvshow_x11_render(). |