|
Revision a8eb61e4d0ebc9bc6a0ed6567968bfb8552f1945, 2.1 kB
(checked in by Antoine Cellerier <dionoea@videolan.org>, 2 months ago)
|
Implement mouse pointer support in win32 screen.
Also fix mouse pointer position when capture a subscreen in x11.
|
- Property mode set to
100644
|
| Line | |
|---|
| 1 |
|
|---|
| 2 |
|
|---|
| 3 |
|
|---|
| 4 |
|
|---|
| 5 |
|
|---|
| 6 |
|
|---|
| 7 |
|
|---|
| 8 |
|
|---|
| 9 |
|
|---|
| 10 |
|
|---|
| 11 |
|
|---|
| 12 |
|
|---|
| 13 |
|
|---|
| 14 |
|
|---|
| 15 |
|
|---|
| 16 |
|
|---|
| 17 |
|
|---|
| 18 |
|
|---|
| 19 |
|
|---|
| 20 |
|
|---|
| 21 |
|
|---|
| 22 |
|
|---|
| 23 |
|
|---|
| 24 |
|
|---|
| 25 |
#include <vlc_input.h> |
|---|
| 26 |
#include <vlc_access.h> |
|---|
| 27 |
#include <vlc_demux.h> |
|---|
| 28 |
|
|---|
| 29 |
#if !defined( HAVE_BEOS ) && !defined( HAVE_DARWIN ) |
|---|
| 30 |
# define SCREEN_SUBSCREEN |
|---|
| 31 |
# define SCREEN_MOUSE |
|---|
| 32 |
#endif |
|---|
| 33 |
|
|---|
| 34 |
#ifdef SCREEN_MOUSE |
|---|
| 35 |
# include <vlc_image.h> |
|---|
| 36 |
#endif |
|---|
| 37 |
|
|---|
| 38 |
typedef struct screen_data_t screen_data_t; |
|---|
| 39 |
|
|---|
| 40 |
struct demux_sys_t |
|---|
| 41 |
{ |
|---|
| 42 |
es_format_t fmt; |
|---|
| 43 |
es_out_id_t *es; |
|---|
| 44 |
|
|---|
| 45 |
float f_fps; |
|---|
| 46 |
mtime_t i_next_date; |
|---|
| 47 |
int i_incr; |
|---|
| 48 |
|
|---|
| 49 |
#ifdef SCREEN_SUBSCREEN |
|---|
| 50 |
bool b_follow_mouse; |
|---|
| 51 |
unsigned int i_screen_height; |
|---|
| 52 |
unsigned int i_screen_width; |
|---|
| 53 |
|
|---|
| 54 |
unsigned int i_top; |
|---|
| 55 |
unsigned int i_left; |
|---|
| 56 |
unsigned int i_height; |
|---|
| 57 |
unsigned int i_width; |
|---|
| 58 |
#endif |
|---|
| 59 |
|
|---|
| 60 |
#ifdef SCREEN_MOUSE |
|---|
| 61 |
picture_t *p_mouse; |
|---|
| 62 |
filter_t *p_blend; |
|---|
| 63 |
picture_t dst; |
|---|
| 64 |
#endif |
|---|
| 65 |
|
|---|
| 66 |
screen_data_t *p_data; |
|---|
| 67 |
}; |
|---|
| 68 |
|
|---|
| 69 |
int screen_InitCapture ( demux_t * ); |
|---|
| 70 |
int screen_CloseCapture( demux_t * ); |
|---|
| 71 |
block_t *screen_Capture( demux_t * ); |
|---|
| 72 |
|
|---|
| 73 |
#ifdef SCREEN_SUBSCREEN |
|---|
| 74 |
void FollowMouse( demux_sys_t *, int, int ); |
|---|
| 75 |
#endif |
|---|
| 76 |
#ifdef SCREEN_MOUSE |
|---|
| 77 |
void RenderCursor( demux_t *, int, int, uint8_t * ); |
|---|
| 78 |
#endif |
|---|