#include "config.h"
#include "libavformat/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include <windows.h>
Go to the source code of this file.
◆ WIN32_API_ERROR
◆ REGION_WND_BORDER
#define REGION_WND_BORDER 3 |
◆ CURSOR_ERROR
#define CURSOR_ERROR |
( |
|
str | ) |
|
Value:
gdigrab->cursor_error_printed = 1; \
}
◆ OFFSET
#define OFFSET |
( |
|
x | ) |
offsetof(struct gdigrab, x) |
◆ DEC
◆ gdigrab_region_wnd_proc()
static LRESULT CALLBACK gdigrab_region_wnd_proc |
( |
HWND |
hwnd, |
|
|
UINT |
msg, |
|
|
WPARAM |
wparam, |
|
|
LPARAM |
lparam |
|
) |
| |
|
static |
Callback to handle Windows messages for the region outline window.
In particular, this handles painting the frame rectangle.
- Parameters
-
hwnd | The region outline window handle. |
msg | The Windows message. |
wparam | First Windows message parameter. |
lparam | Second Windows message parameter. |
- Returns
- 0 success, !0 failure
Definition at line 86 of file gdigrab.c.
Referenced by gdigrab_region_wnd_init().
◆ gdigrab_region_wnd_init()
Initialize the region outline window.
- Parameters
-
s1 | The format context. |
gdigrab | gdigrab context. |
- Returns
- 0 success, !0 failure
Definition at line 121 of file gdigrab.c.
Referenced by gdigrab_read_header().
◆ gdigrab_region_wnd_destroy()
Cleanup/free the region outline window.
- Parameters
-
s1 | The format context. |
gdigrab | gdigrab context. |
Definition at line 187 of file gdigrab.c.
Referenced by gdigrab_read_close().
◆ gdigrab_region_wnd_update()
Process the Windows message queue.
This is important to prevent Windows from thinking the window has become unresponsive. As well, things like WM_PAINT (to actually draw the window contents) are handled from the message queue context.
- Parameters
-
s1 | The format context. |
gdigrab | gdigrab context. |
Definition at line 205 of file gdigrab.c.
Referenced by gdigrab_read_packet().
◆ gdigrab_read_header()
Initializes the gdi grab device demuxer (public device demuxer API).
- Parameters
-
- Returns
- AVERROR_IO error, 0 success
Definition at line 222 of file gdigrab.c.
◆ paint_mouse_pointer()
◆ gdigrab_read_packet()
Grabs a frame from gdi (public device demuxer API).
- Parameters
-
s1 | Context from avformat core |
pkt | Packet holding the grabbed frame |
- Returns
- frame size in bytes
Definition at line 530 of file gdigrab.c.
◆ gdigrab_read_close()
Closes gdi frame grabber (public device demuxer API).
- Parameters
-
- Returns
- 0 success, !0 failure
Definition at line 614 of file gdigrab.c.
◆ options
◆ gdigrab_class
Initial value:= {
.class_name = "GDIgrab indev",
}
Definition at line 645 of file gdigrab.c.
◆ ff_gdigrab_demuxer
Initial value:= {
.name = "gdigrab",
.priv_data_size =
sizeof(
struct gdigrab),
}
gdi grabber device demuxer declaration
Definition at line 654 of file gdigrab.c.