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 38 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 121 of file qtkit.m.

Referenced by qtkit_close(), and qtkit_read_header().

static int qtkit_read_header ( AVFormatContext s)
static

Definition at line 140 of file qtkit.m.

static int qtkit_read_packet ( AVFormatContext s,
AVPacket pkt 
)
static

Definition at line 288 of file qtkit.m.

static int qtkit_close ( AVFormatContext s)
static

Definition at line 323 of file qtkit.m.

Variable Documentation

const AVRational kQTKitTimeBase_q
static
Initial value:
= {
.num = 1,
}

Definition at line 40 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 },
}

Definition at line 332 of file qtkit.m.

const AVClass qtkit_class
static
Initial value:
= {
.class_name = "QTKit input device",
.item_name = av_default_item_name,
.option = options,
}

Definition at line 341 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,
}

Definition at line 349 of file qtkit.m.