#include <stdlib.h>#include <stdio.h>#include <string.h>#include <math.h>#include "avformat.h"#include "swscale.h"Go to the source code of this file.
| #define M_PI 3.14159265358979323846 |
Definition at line 31 of file output_example.c.
| #define STREAM_DURATION 5.0 |
| #define STREAM_FRAME_RATE 25 |
| #define STREAM_NB_FRAMES ((int)(STREAM_DURATION * STREAM_FRAME_RATE)) |
| #define STREAM_PIX_FMT PIX_FMT_YUV420P |
| static AVStream* add_audio_stream | ( | AVFormatContext * | oc, | |
| int | codec_id | |||
| ) | [static] |
| static AVStream* add_video_stream | ( | AVFormatContext * | oc, | |
| int | codec_id | |||
| ) | [static] |
| static AVFrame* alloc_picture | ( | int | pix_fmt, | |
| int | width, | |||
| int | height | |||
| ) | [static] |
Definition at line 232 of file output_example.c.
| static void close_audio | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
| static void close_video | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
| static void fill_yuv_image | ( | AVFrame * | pict, | |
| int | frame_index, | |||
| int | width, | |||
| int | height | |||
| ) | [static] |
| static void get_audio_frame | ( | int16_t * | samples, | |
| int | frame_size, | |||
| int | nb_channels | |||
| ) | [static] |
| int main | ( | int | argc, | |
| char ** | argv | |||
| ) |
Definition at line 418 of file output_example.c.
| static void open_audio | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
| static void open_video | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
| static void write_audio_frame | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
| static void write_video_frame | ( | AVFormatContext * | oc, | |
| AVStream * | st | |||
| ) | [static] |
Definition at line 54 of file output_example.c.
Referenced by open_audio(), and write_audio_frame().
Definition at line 52 of file output_example.c.
Referenced by close_audio(), open_audio(), and write_audio_frame().
Definition at line 53 of file output_example.c.
Referenced by open_audio(), and write_audio_frame().
| int frame_count |
Definition at line 184 of file output_example.c.
Referenced by msmpeg4_decode_picture_header(), and write_video_frame().
Definition at line 182 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(), ff_xvid_encode_frame(), gif_decode_frame(), ir2_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(), and yuv4_write_packet().
| int16_t* samples |
Definition at line 51 of file output_example.c.
Referenced by AC3_encode_frame(), adx_decode_frame(), adx_encode_frame(), ape_decode_frame(), atrac3_decode_frame(), audio_encode_example(), cinaudio_decode_frame(), close_audio(), dca_decode_frame(), decode_residuals(), decode_tag(), encode_superframe(), faac_decode_frame(), ff_aac_ac3_parse(), flac_decode_frame(), flac_encode_frame(), mace_decode_frame(), MPA_encode_frame(), mpc_synth(), oggvorbis_encode_frame(), open_audio(), output_packet(), pcm_decode_frame(), pcm_encode_frame(), qdm2_synthesis_filter(), roq_dpcm_encode_frame(), 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(), wv_unpack_mono(), and wv_unpack_stereo().
int sws_flags = SWS_BICUBIC [static] |
Definition at line 45 of file output_example.c.
| float t |
Definition at line 50 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(), bessel(), body(), bswap_32(), dca_downmix(), decode_frame(), decode_run_2bit(), decode_subband_slice_buffered(), dering_TMPL(), encode_block(), encode_picture_ls(), encode_subband_c0run(), ff_jpegls_decode_picture(), ff_mjpeg_decode_frame(), ff_snow_horizontal_compose97i_altivec(), get_audio_frame(), get_dimension(), hpel_motion_search(), idct32(), idct_row(), idx_to_quant(), ir2_decode_plane(), ir2_decode_plane_inter(), matroska_parse_seekhead(), mid_pred(), mktimegm(), mpc7_decode_frame(), mpc8_decode_frame(), mpc8_parse_seektable(), mpc_read_header(), nsv_parse_NSVs_header(), ogm_dshow_header(), open_audio(), parse_date(), postProcess_TMPL(), pow_m1_4(), print_report(), qpel_motion_search(), rv34_decode_cbp(), rv34_decode_mb_header(), rv40_parse_slice_header(), sad_hpel_motion_search(), smacker_decode_bigtree(), smacker_read_packet(), tm2_low_chroma(), transform(), 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_comment(), vorbis_parse_setup_hdr_codebooks(), vp56_deblock_filter(), vp6_filter_diag4(), wavpack_decode_frame(), ws_snd_decode_frame(), wv_get_value(), wv_unpack_mono(), wv_unpack_stereo(), x8_ac_compensation(), x8_get_ac_rlf(), x8_loop_filter(), and yuv2rgb_get_func_ptr().
| float tincr |
Definition at line 50 of file output_example.c.
Referenced by audio_encode_example(), get_audio_frame(), and open_audio().
| float tincr2 |
Definition at line 182 of file output_example.c.
Definition at line 183 of file output_example.c.
Referenced by close_video(), open_video(), and write_video_frame().
Definition at line 184 of file output_example.c.
Referenced by open_video(), and write_video_frame().
1.5.6