GDI frame device demuxer.
More...
#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.
#define REGION_WND_BORDER 3 |
#define CURSOR_ERROR |
( |
|
str | ) |
|
#define OFFSET |
( |
|
x | ) |
offsetof(struct gdigrab, x) |
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().
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().
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().
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().
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.
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 498 of file gdigrab.c.
Closes gdi frame grabber (public device demuxer API).
- Parameters
-
- Returns
- 0 success, !0 failure
Definition at line 582 of file gdigrab.c.
Initial value:= {
.class_name = "GDIgrab indev",
}
Definition at line 613 of file gdigrab.c.
Initial value:= {
.name = "gdigrab",
.priv_data_size =
sizeof(
struct gdigrab),
}
gdi grabber device demuxer declaration
Definition at line 621 of file gdigrab.c.