#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <math.h>
#include "libavformat/avformat.h"
#include "libswscale/swscale.h"
Go to the source code of this file.
#define STREAM_DURATION 5.0 |
Definition at line 36 of file output-example.c.
Referenced by main().
#define STREAM_FRAME_RATE 25 |
Definition at line 37 of file output-example.c.
#define STREAM_NB_FRAMES ((int)(STREAM_DURATION * STREAM_FRAME_RATE)) |
Definition at line 38 of file output-example.c.
Referenced by write_video_frame().
#define STREAM_PIX_FMT PIX_FMT_YUV420P |
Definition at line 39 of file output-example.c.
static AVStream* add_audio_stream | ( | AVFormatContext * | oc, | |
enum CodecID | codec_id | |||
) | [static] |
Definition at line 55 of file output-example.c.
Referenced by main().
static AVStream* add_video_stream | ( | AVFormatContext * | oc, | |
enum CodecID | codec_id | |||
) | [static] |
Definition at line 189 of file output-example.c.
Referenced by main().
static AVFrame* alloc_picture | ( | enum PixelFormat | pix_fmt, | |
int | width, | |||
int | height | |||
) | [static] |
Definition at line 234 of file output-example.c.
static void close_audio | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 173 of file output-example.c.
Referenced by main().
static void close_video | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 406 of file output-example.c.
Referenced by main().
static void fill_yuv_image | ( | AVFrame * | pict, | |
int | frame_index, | |||
int | width, | |||
int | height | |||
) | [static] |
Definition at line 307 of file output-example.c.
Referenced by write_video_frame().
static void get_audio_frame | ( | int16_t * | samples, | |
int | frame_size, | |||
int | nb_channels | |||
) | [static] |
Definition at line 133 of file output-example.c.
Referenced by write_audio_frame().
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 421 of file output-example.c.
static void open_audio | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 82 of file output-example.c.
Referenced by main().
static void open_video | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 254 of file output-example.c.
Referenced by main().
static void write_audio_frame | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 148 of file output-example.c.
Referenced by main().
static void write_video_frame | ( | AVFormatContext * | oc, | |
AVStream * | st | |||
) | [static] |
Definition at line 329 of file output-example.c.
Referenced by main().
Definition at line 50 of file output-example.c.
Referenced by open_audio(), and write_audio_frame().
uint8_t* audio_outbuf |
Definition at line 48 of file output-example.c.
Referenced by close_audio(), open_audio(), and write_audio_frame().
Definition at line 49 of file output-example.c.
Referenced by open_audio(), and write_audio_frame().
int frame_count |
Definition at line 186 of file output-example.c.
Referenced by rl2_read_header(), write_video_frame(), and yop_read_seek().
Definition at line 184 of file output-example.c.
Referenced by avcodec_default_get_buffer(), avs_decode_frame(), bmp_decode_frame(), cavs_decode_frame(), decode_frame(), dnxhd_decode_frame(), ff_mjpeg_decode_frame(), gif_decode_frame(), ir2_decode_frame(), libdirac_decode_frame(), libopenjpeg_decode_frame(), libschroedinger_decode_frame(), mjpegb_decode_frame(), mpeg_decode_frame(), output_packet(), pcx_decode_frame(), pnm_decode_frame(), ptx_decode_frame(), raw_decode(), sunrast_decode_frame(), try_decode_frame(), txd_decode_frame(), video_decode_example(), video_encode_example(), vp8_decode(), and xvid_encode_frame().
int16_t* samples |
Definition at line 47 of file output-example.c.
Referenced by aac_decode_frame(), aac_encode_frame(), AC3_encode_frame(), adx_decode_frame(), adx_encode_frame(), alac_encode_frame(), alac_entropy_coder(), alac_linear_predictor(), ape_decode_frame(), atrac1_decode_frame(), atrac3_decode_frame(), audio_encode_example(), cinaudio_decode_frame(), close_audio(), dca_decode_frame(), decode_frame(), decode_residuals(), decode_tag(), encode_frame(), encode_superframe(), faac_decode_frame(), ff_ac3_downmix_c(), flac_encode_frame(), mace_decode_frame(), mov_build_index(), MPA_encode_frame(), mpc_synth(), mxf_write_d10_audio_packet(), oggvorbis_encode_frame(), open_audio(), pcm_bluray_decode_frame(), pcm_decode_frame(), pcm_encode_frame(), postfilter(), qdm2_synthesis_filter(), r3d_read_reda(), rematrix_channels(), roq_dpcm_encode_frame(), sample_queue_push(), shorten_decode_frame(), smka_decode_frame(), synthfilt_build_sb_samples(), truespeech_decode_frame(), try_decode_frame(), tta_decode_frame(), vorbis_encode_frame(), wavpack_decode_frame(), wma_decode_superframe(), write_audio_frame(), ws_snd_decode_frame(), and wv_unpack_mono().
int sws_flags = SWS_BICUBIC [static] |
Definition at line 41 of file output-example.c.
Referenced by write_video_frame().
float t |
Definition at line 46 of file output-example.c.
Referenced by alaw2linear(), altivec_packIntArrayToCharArray(), audio_encode_example(), audio_write_packet(), audioplay_callback(), av_add_sf(), av_aes_init(), av_cmp_sf(), av_normalize1_sf(), av_transcode(), av_write_header(), avi_write_header(), bessel(), block_cmp(), bmp_decode_frame(), body(), butterflies_float_c(), copy_chapters(), dca_downmix(), decode_band(), decode_cce(), decode_end(), decode_frame(), decode_group3_1d_line(), decode_group3_2d_line(), decode_init(), decode_run_2bit(), decode_subband_slice_buffered(), dering_SSE2(), encode_block(), encode_picture_ls(), ff_amf_tag_contents(), ff_amf_tag_size(), ff_ivi_free_buffers(), ff_jpegls_decode_picture(), ff_mjpeg_decode_frame(), ff_pca(), ff_rtmp_packet_read(), ff_vorbis_comment(), ff_vp3_idct_add_altivec(), ff_vp3_idct_put_altivec(), ff_vp6_filter_diag4_c(), ff_vp6_filter_diag4_mmx(), ff_vp6_filter_diag4_sse2(), ff_yuv2rgb_get_func_ptr(), get_audio_frame(), get_dimension(), get_scale_idx(), hpel_motion_search(), idct32(), idct_row(), idx_to_quant(), ir2_decode_plane(), ir2_decode_plane_inter(), mid_pred(), mktimegm(), mkv_write_chapters(), mov_create_chapter_track(), mov_read_mac_string(), mov_write_3gp_udta_tag(), mov_write_chpl_tag(), mov_write_string_metadata(), mov_write_trkn_tag(), mpc7_decode_frame(), mpc8_decode_frame(), mpc8_parse_seektable(), mpc_read_header(), nsv_parse_NSVs_header(), ogm_dshow_header(), open_audio(), parse_date(), postProcess_SSE2(), pow_m1_4(), print_report(), qpel_motion_search(), quantize_and_encode_band_cost(), read_block_types(), read_colors(), read_dct_coeffs(), read_motion_values(), read_patterns(), read_runs(), read_time(), read_tree(), revert_channel_correlation(), rtmp_parse_result(), rv34_decode_cbp(), rv34_decode_mb_header(), rv40_adaptive_loop_filter(), rv40_weak_loop_filter(), sad_hpel_motion_search(), scalarproduct_int16_altivec(), search_for_quantizers_anmr(), search_for_quantizers_faac(), sha1_transform(), sipr_decode_lp(), smacker_decode_bigtree(), smacker_read_packet(), tm2_low_chroma(), tqi_decode_init(), truespeech_apply_twopoint_filter(), truespeech_place_pulses(), truespeech_read_frame(), truespeech_synth(), ulaw2linear(), ulti_grad(), unix_to_file_time(), unpack_coeffs(), vb_decode_framedata(), vorbis_parse_setup_hdr_codebooks(), vp56_deblock_filter(), wavpack_decode_frame(), write_globalinfo(), ws_snd_decode_frame(), wv_get_value(), wv_unpack_mono(), wv_unpack_stereo(), x8_ac_compensation(), x8_get_ac_rlf(), and x8_loop_filter().
float tincr |
Definition at line 46 of file output-example.c.
Referenced by audio_encode_example(), get_audio_frame(), and open_audio().
float tincr2 |
Definition at line 46 of file output-example.c.
Referenced by get_audio_frame(), and open_audio().
Definition at line 184 of file output-example.c.
uint8_t* video_outbuf |
Definition at line 185 of file output-example.c.
Referenced by close_video(), open_video(), and write_video_frame().
Definition at line 186 of file output-example.c.
Referenced by open_video(), and write_video_frame().