|
FFmpeg
|
AVFoundation input device. More...
#include "config.h"import <AVFoundation/AVFoundation.h>#include <pthread.h>#include "libavutil/channel_layout.h"#include "libavutil/mem.h"#include "libavutil/pixdesc.h"#include "libavutil/opt.h"#include "libavutil/avstring.h"#include "libavformat/demux.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 |
| FrameReceiver class - delegate for AVCaptureSession. More... | |
| class | AVFAudioReceiver |
| AudioReceiver 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 int | parse_device_name (AVFormatContext *s) |
| static int | configure_video_device (AVFormatContext *s, AVCaptureDevice *video_device) |
| Configure the video device. | |
| 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 NSArray * | getDevicesWithMediaType (AVMediaType mediaType) |
| static int64_t | avf_usb_location_for_serial (const char *serial) |
| static NSString * | avf_usb_serial_for_location (uint32_t location) |
| static AVCaptureDevice * | avf_video_device_with_serial (const char *serial, NSArray *devices, NSArray *devices_muxed, int *is_muxed) |
| static NSString * | avf_audio_serial_for_uid (NSString *uid) |
| static AVCaptureDevice * | avf_audio_device_with_serial (const char *serial, NSArray *devices) |
| static AVCaptureDevice * | avf_device_with_uid (const char *uid, NSArray *devices, NSArray *devices_muxed, int *is_muxed) |
| static NSString * | avf_device_listing_serial (AVCaptureDevice *device) |
| static void | avf_log_device_entry (AVFContext *ctx, int index, AVCaptureDevice *device) |
| static int | avf_device_from_id (AVFContext *ctx, AVMediaType media_type, NSArray *devices, NSArray *devices_muxed, const char *id, AVCaptureDevice **device, int *is_muxed) |
| 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 |
| const FFInputFormat | ff_avfoundation_demuxer |
AVFoundation input device.
Definition in file avfoundation.m.
| #define INTERLEAVE_OUTPUT | ( | bps | ) |
|
static |
Definition at line 160 of file avfoundation.m.
Referenced by avf_read_packet(), AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, destroy_context(), get_audio_config(), and get_video_config().
|
static |
Definition at line 165 of file avfoundation.m.
Referenced by avf_read_packet(), AVFAudioReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, AVFFrameReceiver::captureOutput:didOutputSampleBuffer:fromConnection:, destroy_context(), get_audio_config(), and get_video_config().
|
static |
Definition at line 322 of file avfoundation.m.
Referenced by avf_close(), and avf_read_header().
|
static |
Definition at line 361 of file avfoundation.m.
Referenced by avf_read_header(), and dshow_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 389 of file avfoundation.m.
Referenced by add_video_device().
|
static |
Definition at line 486 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 633 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 677 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 723 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 810 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 915 of file avfoundation.m.
Referenced by avf_video_device_with_serial().
|
static |
Definition at line 945 of file avfoundation.m.
Referenced by avf_device_listing_serial().
|
static |
Definition at line 952 of file avfoundation.m.
Referenced by avf_device_from_id().
|
static |
Definition at line 990 of file avfoundation.m.
Referenced by avf_audio_device_with_serial(), and avf_device_listing_serial().
|
static |
Definition at line 996 of file avfoundation.m.
Referenced by avf_device_from_id().
|
static |
Definition at line 1007 of file avfoundation.m.
Referenced by avf_device_from_id().
|
static |
Definition at line 1027 of file avfoundation.m.
Referenced by avf_log_device_entry().
|
static |
Definition at line 1039 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 1053 of file avfoundation.m.
Referenced by avf_read_header().
|
static |
Definition at line 1085 of file avfoundation.m.
|
static |
Definition at line 1341 of file avfoundation.m.
Referenced by avf_read_packet().
|
static |
Definition at line 1384 of file avfoundation.m.
|
static |
Definition at line 1540 of file avfoundation.m.
|
static |
Definition at line 57 of file avfoundation.m.
Referenced by get_audio_config(), and get_video_config().
|
static |
Definition at line 59 of file avfoundation.m.
Referenced by avf_read_packet().
|
static |
Definition at line 69 of file avfoundation.m.
Referenced by add_video_device().
|
static |
Definition at line 1547 of file avfoundation.m.
Referenced by AVFFrameReceiver::initWithContext:.
|
static |
Definition at line 1564 of file avfoundation.m.
| const FFInputFormat ff_avfoundation_demuxer |
Definition at line 1572 of file avfoundation.m.