FFmpeg
|
ffmpeg.h
Go to the documentation of this file.
293 pthread_cond_t fifo_cond; /* the main thread will signal on this cond after reading from fifo */
319 int64_t sync_opts; /* output frame counter, could be changed to some true timestamp */ // FIXME look at frame_number
344 int audio_channels_map[SWR_CH_MAX]; /* list of the channels id to pick from the source stream */
371 int64_t recording_time; ///< desired length of the resulting file in microseconds == AV_TIME_BASE units
Definition: ffmpeg.h:299
int64_t recording_time
desired length of the resulting file in microseconds == AV_TIME_BASE units
Definition: ffmpeg.h:371
Buffered I/O operations.
external API header
SpecifierOpt * copy_initial_nonkeyframes
Definition: ffmpeg.h:161
Definition: ffmpeg.h:190
FilterGraph * init_simple_filtergraph(InputStream *ist, OutputStream *ost)
external API header
Definition: cmdutils.h:144
Definition: cmdutils.h:256
Definition: cmdutils.h:133
Definition: ffmpeg.h:302
Definition: ffmpeg.h:276
struct InputFilter InputFilter
Public dictionary API.
Definition: ffmpeg.h:259
Definition: eval.c:140
Definition: ffmpeg.h:213
Definition: ffmpeg.h:183
Definition: os2threads.h:41
void reset_options(OptionsContext *o, int is_input)
Definition: ffmpeg.h:59
int64_t filter_in_rescale_delta_last
Definition: ffmpeg.h:232
int ist_in_filtergraph(FilterGraph *fg, InputStream *ist)
Definition: ffmpeg_filter.c:800
Definition: libavcodec/avcodec.h:3102
struct InputStream InputStream
libswresample public header
Definition: dict.c:28
Definition: ffmpeg.h:73
external API header
struct OutputStream OutputStream
Definition: ffmpeg.h:68
struct FilterGraph FilterGraph
struct OutputFile OutputFile
void opt_output_file(void *optctx, const char *filename)
Definition: avfilter.h:991
struct StreamMap StreamMap
Definition: fifo.h:31
enum AVPixelFormat choose_pixel_fmt(AVStream *st, AVCodec *codec, enum AVPixelFormat target)
Definition: ffmpeg_filter.c:38
int configure_output_filter(FilterGraph *fg, OutputFilter *ofilter, AVFilterInOut *out)
Definition: ffmpeg_filter.c:483
a very simple circular buffer FIFO implementation
Definition: ffmpeg.h:300
Definition: ffmpeg.h:367
int64_t dts
dts of the last packet read for this stream (in AV_TIME_BASE units)
Definition: ffmpeg.h:226
int64_t next_pts
synthetic pts for the next decode frame (in AV_TIME_BASE units)
Definition: ffmpeg.h:228
Main libavformat public API header.
rational numbers
const char *const forced_keyframes_const_names[]
Definition: ffmpeg.c:111
Definition: ffmpeg.h:304
Definition: ffmpeg.h:309
pixel format definitions
struct InputFile InputFile
Definition: w32pthreads.h:46
struct OutputFilter OutputFilter
struct OptionsContext OptionsContext
int nb_copy_initial_nonkeyframes
Definition: ffmpeg.h:162
Definition: ffmpeg.h:200
Definition: ffmpeg.h:301
uint8_t pi<< 24) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi-0x80)*(1.0f/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t,(*(const uint8_t *) pi-0x80)*(1.0/(1<< 7))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t,(*(const int16_t *) pi >> 8)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S16, int16_t,*(const int16_t *) pi *(1.0f/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S16, int16_t,*(const int16_t *) pi *(1.0/(1<< 15))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t,(*(const int32_t *) pi >> 24)+0x80) CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_S32, int32_t,*(const int32_t *) pi *(1.0f/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_S32, int32_t,*(const int32_t *) pi *(1.0/(1U<< 31))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8(lrintf(*(const float *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_FLT, float, av_clip_int16(lrintf(*(const float *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_FLT, float, av_clipl_int32(llrintf(*(const float *) pi *(1U<< 31)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8(lrint(*(const double *) pi *(1<< 7))+0x80)) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_DBL, double, av_clip_int16(lrint(*(const double *) pi *(1<< 15)))) CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_DBL, double, av_clipl_int32(llrint(*(const double *) pi *(1U<< 31))))#define SET_CONV_FUNC_GROUP(ofmt, ifmt) static void set_generic_function(AudioConvert *ac){}void ff_audio_convert_free(AudioConvert **ac){if(!*ac) return;ff_dither_free(&(*ac) ->dc);av_freep(ac);}AudioConvert *ff_audio_convert_alloc(AVAudioResampleContext *avr, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt, int channels, int sample_rate, int apply_map){AudioConvert *ac;int in_planar, out_planar;ac=av_mallocz(sizeof(*ac));if(!ac) return NULL;ac->avr=avr;ac->out_fmt=out_fmt;ac->in_fmt=in_fmt;ac->channels=channels;ac->apply_map=apply_map;if(avr->dither_method!=AV_RESAMPLE_DITHER_NONE &&av_get_packed_sample_fmt(out_fmt)==AV_SAMPLE_FMT_S16 &&av_get_bytes_per_sample(in_fmt) > 2){ac->dc=ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, apply_map);if(!ac->dc){av_free(ac);return NULL;}return ac;}in_planar=av_sample_fmt_is_planar(in_fmt);out_planar=av_sample_fmt_is_planar(out_fmt);if(in_planar==out_planar){ac->func_type=CONV_FUNC_TYPE_FLAT;ac->planes=in_planar?ac->channels:1;}else if(in_planar) ac->func_type=CONV_FUNC_TYPE_INTERLEAVE;else ac->func_type=CONV_FUNC_TYPE_DEINTERLEAVE;set_generic_function(ac);if(ARCH_ARM) ff_audio_convert_init_arm(ac);if(ARCH_X86) ff_audio_convert_init_x86(ac);return ac;}int ff_audio_convert(AudioConvert *ac, AudioData *out, AudioData *in){int use_generic=1;int len=in->nb_samples;int p;if(ac->dc){av_dlog(ac->avr,"%d samples - audio_convert: %s to %s (dithered)\n", len, av_get_sample_fmt_name(ac->in_fmt), av_get_sample_fmt_name(ac->out_fmt));return ff_convert_dither(ac-> out
Definition: audio_convert.c:194
Definition: ffmpeg.h:303
simple arithmetic expression evaluator
Generated on Fri Dec 20 2024 06:56:00 for FFmpeg by 1.8.11