FFmpeg
Classes | Macros | Variables
gdigrab.c File Reference

GDI frame device demuxer. More...

#include "config.h"
#include "libavformat/internal.h"
#include "libavutil/opt.h"
#include "libavutil/time.h"
#include <windows.h>

Classes

struct  gdigrab
 GDI Device Demuxer context. More...
 

Macros

#define WIN32_API_ERROR(str)   av_log(s1, AV_LOG_ERROR, str " (error %li)\n", GetLastError())
 
#define REGION_WND_BORDER   3
 
#define CURSOR_ERROR(str)
 
#define OFFSET(x)   offsetof(struct gdigrab, x)
 
#define DEC   AV_OPT_FLAG_DECODING_PARAM
 

Variables

AVInputFormat ff_gdigrab_demuxer
 gdi grabber device demuxer declaration More...
 

Detailed Description

GDI frame device demuxer.

Author
Calvin Walton calvi.nosp@m.n.wa.nosp@m.lton@.nosp@m.keps.nosp@m.tin.c.nosp@m.a
Christophe Gisquet word1.nosp@m..wor.nosp@m.d2@gm.nosp@m.ail..nosp@m.com

Macro Definition Documentation

§ CURSOR_ERROR

#define CURSOR_ERROR (   str)
Value:
if (!gdigrab->cursor_error_printed) { \
WIN32_API_ERROR(str); \
gdigrab->cursor_error_printed = 1; \
}
GDI Device Demuxer context.
Definition: gdigrab.c:40

Variable Documentation

§ ff_gdigrab_demuxer

AVInputFormat ff_gdigrab_demuxer
Initial value:
= {
.name = "gdigrab",
.long_name = NULL_IF_CONFIG_SMALL("GDI API Windows frame grabber"),
.priv_data_size = sizeof(struct gdigrab),
.read_header = gdigrab_read_header,
.read_packet = gdigrab_read_packet,
.read_close = gdigrab_read_close,
.flags = AVFMT_NOFILE,
.priv_class = &gdigrab_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
GDI Device Demuxer context.
Definition: gdigrab.c:40
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:465

gdi grabber device demuxer declaration