FFmpeg
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
qtkit.m File Reference

QTKit input device. More...

#import <QTKit/QTKit.h>
#include <pthread.h>
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "libavformat/internal.h"
#include "libavutil/internal.h"
#include "libavutil/time.h"
#include "avdevice.h"

Go to the source code of this file.

Data Structures

struct  CaptureContext
 
class  FFMPEG_FrameReceiver
 FrameReciever class - delegate for QTCaptureSession. More...
 

Macros

#define QTKIT_TIMEBASE   100
 

Functions

static void lock_frames (CaptureContext *ctx)
 
static void unlock_frames (CaptureContext *ctx)
 
static void destroy_context (CaptureContext *ctx)
 
static int qtkit_read_header (AVFormatContext *s)
 
static int qtkit_read_packet (AVFormatContext *s, AVPacket *pkt)
 
static int qtkit_close (AVFormatContext *s)
 

Variables

static const AVRational kQTKitTimeBase_q
 
static const AVOption options []
 
static const AVClass qtkit_class
 
AVInputFormat ff_qtkit_demuxer
 

Detailed Description

QTKit input device.

Author
Vadim Kalinsky vadim.nosp@m.@kal.nosp@m.insky.nosp@m..ru

Definition in file qtkit.m.

Macro Definition Documentation

#define QTKIT_TIMEBASE   100

Definition at line 42 of file qtkit.m.

Referenced by qtkit_read_header().

Function Documentation

static void lock_frames ( CaptureContext ctx)
static
static void unlock_frames ( CaptureContext ctx)
static
static void destroy_context ( CaptureContext ctx)
static

Definition at line 125 of file qtkit.m.

Referenced by qtkit_close(), and qtkit_read_header().

static int qtkit_read_header ( AVFormatContext s)
static

Definition at line 144 of file qtkit.m.

static int qtkit_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 292 of file qtkit.m.

static int qtkit_close ( AVFormatContext s)
static

Definition at line 327 of file qtkit.m.

Variable Documentation

const AVRational kQTKitTimeBase_q
static
Initial value:
= {
.num = 1,
}
#define QTKIT_TIMEBASE
Definition: qtkit.m:42

Definition at line 44 of file qtkit.m.

const AVOption options[]
static
Initial value:
= {
{ "frame_rate", "set frame rate", 0x42, AV_OPT_TYPE_FLOAT, { .dbl = 30.0 }, 0.1, 30.0, AV_OPT_TYPE_VIDEO_RATE, NULL },
{ "list_devices", "list available devices", 0x42, AV_OPT_TYPE_INT, {.i64=0}, 0, 1, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
{ "true", "", 0, AV_OPT_TYPE_CONST, {.i64=1}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
{ "false", "", 0, AV_OPT_TYPE_CONST, {.i64=0}, 0, 0, AV_OPT_FLAG_DECODING_PARAM, "list_devices" },
{ "video_device_index", "select video device by index for devices with same name (starts at 0)", 0x42, AV_OPT_TYPE_INT, {.i64 = -1}, -1, INT_MAX, AV_OPT_FLAG_DECODING_PARAM },
{ NULL },
}
#define NULL
Definition: coverity.c:32
#define AV_OPT_FLAG_DECODING_PARAM
a generic parameter which can be set by the user for demuxing or decoding
Definition: opt.h:276
offset must point to AVRational
Definition: opt.h:235

Definition at line 336 of file qtkit.m.

const AVClass qtkit_class
static
Initial value:
= {
.class_name = "QTKit input device",
.item_name = av_default_item_name,
.option = options,
}
#define LIBAVUTIL_VERSION_INT
Definition: version.h:70
static const AVOption options[]
Definition: qtkit.m:336
av_default_item_name

Definition at line 345 of file qtkit.m.

AVInputFormat ff_qtkit_demuxer
Initial value:
= {
.name = "qtkit",
.long_name = NULL_IF_CONFIG_SMALL("QTKit input device"),
.priv_data_size = sizeof(CaptureContext),
.priv_class = &qtkit_class,
}
static int qtkit_read_header(AVFormatContext *s)
Definition: qtkit.m:144
static av_cold int read_close(AVFormatContext *ctx)
Definition: libcdio.c:145
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:176
static int qtkit_close(AVFormatContext *s)
Definition: qtkit.m:327
static const AVClass qtkit_class
Definition: qtkit.m:345
static int qtkit_read_packet(AVFormatContext *s, AVPacket *pkt)
Definition: qtkit.m:292
static int read_header(FFV1Context *f)
Definition: ffv1dec.c:638
static int read_packet(void *opaque, uint8_t *buf, int buf_size)
Definition: avio_reading.c:42
static int flags
Definition: cpu.c:47
#define AVFMT_NOFILE
Demuxer will use avio_open, no opened file should be provided by the caller.
Definition: avformat.h:476

Definition at line 353 of file qtkit.m.