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"
|
| #define | INTERLEAVE_OUTPUT(bps) |
| |
§ INTERLEAVE_OUTPUT
| #define INTERLEAVE_OUTPUT |
( |
|
bps | ) |
|
Value:{ \
int##bps##_t **src; \
int##bps##_t *dest; \
src =
av_malloc(ctx->audio_channels *
sizeof(
int##bps##_t*)); \
if (!src) return AVERROR(EIO); \
for (c = 0; c < ctx->audio_channels; c++) { \
src[c] = ((int##bps##_t*)ctx->audio_buffer) + c * num_samples; \
} \
dest = (int##bps##_t*)pkt->data; \
shift = bps - ctx->audio_bits_per_sample; \
for (sample = 0; sample < num_samples; sample++) \
for (c = 0; c < ctx->audio_channels; c++) \
*dest++ = src[c][sample] << shift; \
av_freep(&src); \
}
void * av_malloc(size_t size)
Allocate a memory block with alignment suitable for all memory accesses (including vectors if availab...
Definition: mem.c:77
§ ff_avfoundation_demuxer
Initial value:= {
.name = "avfoundation",
.read_header = avf_read_header,
.read_packet = avf_read_packet,
.read_close = avf_close,
.priv_class = &avf_class,
}
#define NULL_IF_CONFIG_SMALL(x)
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. ...
Definition: internal.h:186
Definition: avfoundation.m:81