FFmpeg
|
AVFoundation input device. More...
#import <AVFoundation/AVFoundation.h>
#include <pthread.h>
#include "libavutil/pixdesc.h"
#include "libavutil/opt.h"
#include "libavutil/avstring.h"
#include "libavformat/internal.h"
#include "libavutil/internal.h"
#include "libavutil/parseutils.h"
#include "libavutil/time.h"
#include "avdevice.h"
Go to the source code of this file.
Data Structures | |
struct | AVFPixelFormatSpec |
struct | AVFContext |
class | AVFFrameReceiver |
FrameReciever class - delegate for AVCaptureSession. More... | |
class | AVFAudioReceiver |
AudioReciever class - delegate for AVCaptureSession. More... | |
Macros | |
#define | INTERLEAVE_OUTPUT(bps) |
Functions | |
static void | lock_frames (AVFContext *ctx) |
static void | unlock_frames (AVFContext *ctx) |
static void | destroy_context (AVFContext *ctx) |
static void | parse_device_name (AVFormatContext *s) |
static int | configure_video_device (AVFormatContext *s, AVCaptureDevice *video_device) |
Configure the video device. More... | |
static int | add_video_device (AVFormatContext *s, AVCaptureDevice *video_device) |
static int | add_audio_device (AVFormatContext *s, AVCaptureDevice *audio_device) |
static int | get_video_config (AVFormatContext *s) |
static int | get_audio_config (AVFormatContext *s) |
static int | avf_read_header (AVFormatContext *s) |
static int | avf_read_packet (AVFormatContext *s, AVPacket *pkt) |
static int | avf_close (AVFormatContext *s) |
Variables | |
static const int | avf_time_base = 1000000 |
static const AVRational | avf_time_base_q |
static const struct AVFPixelFormatSpec | avf_pixel_formats [] |
static const AVOption | options [] |
static const AVClass | avf_class |
AVInputFormat | ff_avfoundation_demuxer |
AVFoundation input device.
Definition in file avfoundation.m.
#define INTERLEAVE_OUTPUT | ( | bps | ) |
Referenced by avf_read_packet().
|
static |
Definition at line 131 of file avfoundation.m.
Referenced by avf_read_packet(), AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, get_audio_config(), and get_video_config().
|
static |
Definition at line 136 of file avfoundation.m.
Referenced by avf_read_packet(), AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, get_audio_config(), and get_video_config().
|
static |
Definition at line 233 of file avfoundation.m.
Referenced by avf_close(), and avf_read_header().
|
static |
Definition at line 259 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Configure the video device.
Configure the video device using a run-time approach to access properties since formats, activeFormat are available since iOS >= 7.0 or OSX >= 10.7 and activeVideoMaxFrameDuration is available since i0S >= 7.0 and OSX >= 10.9.
The NSUndefinedKeyException must be handled by the caller of this function.
Definition at line 283 of file avfoundation.m.
Referenced by add_video_device().
|
static |
Definition at line 366 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 494 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 538 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 577 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 662 of file avfoundation.m.
|
static |
Definition at line 895 of file avfoundation.m.
|
static |
Definition at line 1010 of file avfoundation.m.
|
static |
Definition at line 40 of file avfoundation.m.
Referenced by get_audio_config(), and get_video_config().
|
static |
Definition at line 42 of file avfoundation.m.
|
static |
Definition at line 52 of file avfoundation.m.
|
static |
Definition at line 1017 of file avfoundation.m.
|
static |
Definition at line 1032 of file avfoundation.m.
AVInputFormat ff_avfoundation_demuxer |
Definition at line 1040 of file avfoundation.m.