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 | ) |
|
Value:
gdigrab->cursor_error_printed = 1; \
}
GDI Device Demuxer context.
#define WIN32_API_ERROR(str)
Referenced by paint_mouse_pointer().
#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 517 of file gdigrab.c.
Closes gdi frame grabber (public device demuxer API).
- Parameters
-
- Returns
- 0 success, !0 failure
Definition at line 601 of file gdigrab.c.
Initial value:= {
}
offset must point to AVRational
offset must point to two consecutive integers
Definition at line 622 of file gdigrab.c.
Initial value:= {
.class_name = "GDIgrab indev",
}
#define LIBAVUTIL_VERSION_INT
static const AVOption options[]
Definition at line 632 of file gdigrab.c.
Initial value:= {
.name = "gdigrab",
.priv_data_size =
sizeof(
struct gdigrab),
}
static int gdigrab_read_packet(AVFormatContext *s1, AVPacket *pkt)
Grabs a frame from gdi (public device demuxer API).
static int gdigrab_read_close(AVFormatContext *s1)
Closes gdi frame grabber (public device demuxer API).
static int gdigrab_read_header(AVFormatContext *s1)
Initializes the gdi grab device demuxer (public device demuxer API).
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
static const AVClass gdigrab_class
GDI Device Demuxer context.
static int read_header(FFV1Context *f)
gdi grabber device demuxer declaration
Definition at line 640 of file gdigrab.c.