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 "libavutil/imgutils.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 | copy_cvpixelbuffer (AVFormatContext *s, CVPixelBufferRef image_buffer, AVPacket *pkt) |
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 132 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 137 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 234 of file avfoundation.m.
Referenced by avf_close(), and avf_read_header().
|
static |
Definition at line 260 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 284 of file avfoundation.m.
Referenced by add_video_device().
|
static |
Definition at line 367 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 495 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 539 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 578 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 663 of file avfoundation.m.
|
static |
Definition at line 896 of file avfoundation.m.
Referenced by avf_read_packet().
|
static |
Definition at line 939 of file avfoundation.m.
|
static |
Definition at line 1052 of file avfoundation.m.
|
static |
Definition at line 41 of file avfoundation.m.
Referenced by get_audio_config(), and get_video_config().
|
static |
Definition at line 43 of file avfoundation.m.
|
static |
Definition at line 53 of file avfoundation.m.
|
static |
Definition at line 1059 of file avfoundation.m.
|
static |
Definition at line 1074 of file avfoundation.m.
AVInputFormat ff_avfoundation_demuxer |
Definition at line 1082 of file avfoundation.m.