GDI frame device demuxer.
More...
Go to the source code of this file.
◆ WIN32_API_ERROR
| #define WIN32_API_ERROR |
( |
| str | ) |
|
◆ REGION_WND_BORDER
| #define REGION_WND_BORDER 3 |
◆ CURSOR_ERROR
| #define CURSOR_ERROR |
( |
| str | ) |
|
◆ OFFSET
◆ 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 92 of file gdigrab.c.
Referenced by gdigrab_region_wnd_task().
◆ gdigrab_region_wnd_task()
| static DWORD WINAPI gdigrab_region_wnd_task |
( |
LPVOID | opaque | ) |
|
|
static |
◆ gdigrab_region_wnd_init()
| static int gdigrab_region_wnd_init |
( |
struct gdigrab * | gdigrab | ) |
|
|
static |
◆ gdigrab_region_wnd_destroy()
Cleanup/free the region outline window.
- Parameters
-
| s1 | The format context. |
| gdigrab | gdigrab context. |
Definition at line 242 of file gdigrab.c.
Referenced by gdigrab_read_close().
◆ gdigrab_read_header()
Initializes the gdi grab device demuxer (public device demuxer API).
- Parameters
-
| s1 | Context from avformat core |
- Returns
- AVERROR_IO error, 0 success
Definition at line 256 of file gdigrab.c.
◆ paint_mouse_pointer()
Paints a mouse pointer in a Win32 image.
- Parameters
-
| s1 | Context of the log information |
| s | Current grad structure |
Definition at line 501 of file gdigrab.c.
Referenced by gdigrab_read_packet().
◆ 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 589 of file gdigrab.c.
◆ gdigrab_read_close()
Closes gdi frame grabber (public device demuxer API).
- Parameters
-
| s1 | Context from avformat core |
- Returns
- 0 success, !0 failure
Definition at line 669 of file gdigrab.c.
◆ options
Initial value:= {
}
@ AV_OPT_TYPE_IMAGE_SIZE
Underlying C type is two consecutive integers.
@ AV_OPT_TYPE_VIDEO_RATE
Underlying C type is AVRational.
@ AV_OPT_TYPE_INT
Underlying C type is int.
Definition at line 690 of file gdigrab.c.
◆ gdigrab_class
Initial value:= {
.class_name = "GDIgrab indev",
}
const char * av_default_item_name(void *ptr)
Return the context name.
#define LIBAVUTIL_VERSION_INT
@ AV_CLASS_CATEGORY_DEVICE_VIDEO_INPUT
Definition at line 700 of file gdigrab.c.
◆ ff_gdigrab_demuxer
Initial value:= {
.p.name = "gdigrab",
.priv_data_size =
sizeof(
struct gdigrab),
}
static int read_header(FFV1Context *f, RangeCoder *c)
static int gdigrab_read_close(AVFormatContext *s1)
Closes gdi frame grabber (public device demuxer API).
static int gdigrab_read_packet(AVFormatContext *s1, AVPacket *pkt)
Grabs a frame from gdi (public device demuxer API).
static int gdigrab_read_header(AVFormatContext *s1)
Initializes the gdi grab device demuxer (public device demuxer API).
static const AVClass gdigrab_class
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
gdi grabber device demuxer declaration
Definition at line 709 of file gdigrab.c.