FFmpeg
Data Fields
AVRational Struct Reference

Rational number (pair of numerator and denominator). More...

#include <rational.h>

Data Fields

int num
 Numerator. More...
 
int den
 Denominator. More...
 

Detailed Description

Rational number (pair of numerator and denominator).

Examples
decode_filter_audio.c, decode_filter_video.c, encode_video.c, filter_audio.c, mux.c, remux.c, transcode.c, and vaapi_encode.c.

Definition at line 58 of file rational.h.

Field Documentation

◆ num

int AVRational::num

Numerator.

Examples
decode_filter_audio.c, decode_filter_video.c, transcode.c, and transcode_aac.c.

Definition at line 59 of file rational.h.

Referenced by activate(), adjust_frame_pts_to_encoder_tb(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amv_init(), amv_write_header(), aom_decode(), aom_encode(), aom_init(), apng_write_header(), apply_delogo(), aqt_read_header(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_frame_header(), asf_read_header(), asf_read_metadata(), asf_store_aspect_ratio(), asf_write_header1(), audio_samplerate_update(), av_add_stable(), av_buffersrc_parameters_set(), av_compare_ts(), av_csp_luma_coeffs_from_avcsp(), av_csp_primaries_desc_from_id(), av_dv_codec_profile2(), av_guess_frame_rate(), av_guess_sample_aspect_ratio(), av_image_check_sar(), av_inv_q(), av_nearer_q(), av_parse_ratio(), av_parse_video_rate(), av_q2intfloat(), av_rescale_delta(), av_rescale_q_rnd(), avcodec_decode_subtitle2(), avcodec_open2(), avcodec_string(), avfilter_config_links(), avformat_find_stream_info(), avformat_seek_file(), avformat_transfer_internal_stream_timing_info(), avi_read_header(), avi_write_header(), avif_add_stream(), avisynth_read_packet_audio(), avpriv_set_pts_info(), avpriv_update_cur_dts(), binary_export(), calculate_bitrate(), calculate_display_rect(), cdxl_read_packet(), choose_out_timebase(), choose_timebase(), coherent_ts(), compute_dar(), compute_display_area(), compute_frame_duration(), compute_muxer_pkt_fields(), compute_pkt_fields(), compute_texture_rect(), config_comm_output(), config_enc_params(), config_input(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), configure_input_audio_filter(), configure_input_video_filter(), configure_video_filters(), copy_stream_props(), create_stream(), create_subcc_streams(), cri_decode_frame(), cudacolorspace_filter_frame(), cudascale_filter_frame(), cuvid_decode_init(), cuvid_decode_packet(), cuvid_output_frame(), dash_init(), dash_read_packet(), decklink_setup_video(), decode_frame(), decode_info_header(), decode_main_header(), decode_phys_chunk(), decode_sequence_header_adv(), decode_stream_header(), dhav_read_packet(), dirac_header(), discard_samples(), draw_items(), dump_detection_bbox(), dump_roi(), dump_stream_format(), dv_audio_frame_size(), dv_write_header(), dvd_nav_parse(), enable_pcr_generation_for_stream(), enc_open(), enc_stats_write(), encode_aspect_ratio(), encode_frame(), encode_frame_rate(), encode_headers(), encode_init(), encode_preinit_video(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), export_stream_params(), fbdev_read_header(), ff_av1_framerate(), ff_canopus_parse_info_tag(), ff_ccfifo_extractbytes(), ff_dnxhd_get_hr_frame_size(), ff_encode_preinit(), ff_framehash_write_header(), ff_h263_aspect_to_info(), ff_h2645_decode_common_vui_params(), ff_h2645_sei_to_frame(), ff_imf_xml_read_rational(), ff_mediacodec_dec_send(), ff_mpv_encode_init(), ff_nut_reset_ts(), ff_parse_specific_params(), ff_pcm_read_seek(), ff_rfps_calculate(), ff_rm_read_mdpr_codecdata(), ff_set_sar(), ff_vorbiscomment_write(), ffmal_update_format(), ffmmal_init_decoder(), fg_output_step(), fill_frameinfo_by_link(), filter_frame(), filter_frame_ref(), fits_read_header(), flush_packet(), fps_from_frame_rate(), gem_decode_frame(), get_aspect_ratio(), get_fps(), get_pkt_pts(), get_vp9_level(), gif_read_header(), guess_pkt_duration(), gxf_compare_field_nb(), gxf_header(), gxf_write_header(), gxf_write_media_preamble(), h264_parse(), has_codec_parameters(), hevc_parse_slice_header(), hls_write_header(), hls_write_packet(), iff_read_header(), imf_seek(), init(), init_convert_timestamp(), init_filter(), init_filters(), init_fps(), init_muxer(), init_pts(), init_stream(), init_video_param(), init_video_param_jpeg(), interleave_compare_dts(), interpolate(), ist_dts_update(), jpeg_put_comments(), jpegxl_anim_read_header(), lavfi_read_header(), libaribb24_decode(), libdav1d_receive_frame(), libjxl_receive_frame(), libkvazaar_init(), libplacebo_config_output(), librav1e_encode_init(), libuavs3d_decode_frame(), libwebp_anim_encode_frame(), libx265_encode_init(), libx265_encode_set_roi(), main(), mcc_read_header(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), mf_encv_output_adjust(), mf_get_tb(), microdvd_read_header(), mkv_write_track(), mkv_write_track_video(), mods_read_header(), mov_parse_stsd_data(), mov_read_header(), mov_read_pasp(), mov_read_timecode_track(), mov_read_trak(), mov_write_avid_tag(), mov_write_dvc1_structs(), mov_write_pasp_tag(), mov_write_tapt_tag(), mov_write_tkhd_tag(), mov_write_tmcd_tag(), mov_write_trak_tag(), mov_write_uuidprof_tag(), mov_write_video_tag(), mpeg_decode_postinit(), mpegvideo_extract_headers(), mpsub_read_header(), msp_read_header(), mv_read_header(), mxf_compute_edit_units_per_packet(), mxf_compute_index_tables(), mxf_compute_sample_count(), mxf_init(), mxf_init_timecode(), mxf_parse_dnxhd_frame(), mxf_parse_ffv1_frame(), mxf_parse_h264_frame(), mxf_parse_mpeg2_frame(), mxf_parse_physical_source_package(), mxf_parse_structural_metadata(), mxf_read_generic_descriptor(), mxf_read_seek(), mxf_read_track(), mxf_write_cdci_common(), mxf_write_generic_desc(), mxf_write_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_track(), new_stream_video(), ni_prepare_read(), nppscale_eval_dimensions(), nppscale_filter_frame(), nppscale_filter_frame_ref(), nppscale_scale(), nsv_read_chunk(), nut_write_header(), nut_write_packet(), nvenc_setup_encoder(), ogg_build_vp8_headers(), ogg_init(), omx_component_init(), open_demux_for_component(), open_output_file(), open_track_file_resource(), opengl_compute_display_area(), opt_list(), opt_target(), ost_add(), pad_opencl_config_output(), parse_avs2_seq_header(), parse_avs3_nal_units(), parse_chunk(), parse_nal_unit(), parse_nal_units(), parse_packet(), parse_utf(), parse_video_var(), parse_vtrk(), pcx_decode_frame(), pcx_encode_frame(), pdv_read_header(), print_codec(), print_digraph(), print_link_prop(), put_videoinfoheader2(), qsv_decode_init(), query_frame(), r3d_read_rdvo(), r3d_read_redv(), r3d_seek(), read_gab2_sub(), read_header(), read_packet(), read_packet_vs(), request_frame(), rescale_mastering_chroma(), rescale_mastering_luma(), rescale_mdcv(), rescale_pts(), rpl_read_header(), rtp_mpegts_write_header(), rv10_write_header(), rv20_decode_picture_header(), scale_eval_dimensions(), scale_frame(), scale_vt_filter_frame(), seek_frame_internal(), seek_to_start(), seg_init(), ser_read_header(), set_context_streams_from_tracks(), set_parser_ctx(), set_roi_encode_ctrl(), set_roi_map(), set_stream_info_from_input_stream(), setup_roi(), sga_video_packet(), show_frame(), show_stream(), streamcopy_init(), svc_encode_init(), swf_write_header(), tb_unreliable(), tb_update(), teletext_decode_frame(), test_av_parse_video_rate(), test_cpl_parsing(), theora_header(), thp_read_header(), tmv_read_header(), ts_to_samples(), update_context_with_frame_header(), update_crops(), update_frame_rate(), update_sar(), update_wrap_reference(), v4l2_get_sar(), v4l2_prepare_encoder(), v4l2_set_parameters(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_h264_init_sequence_params(), vaapi_encode_h265_init_sequence_params(), vaapi_encode_init_rate_control(), vaapi_encode_issue(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mpeg2_init_sequence_params(), vaapi_mpeg4_start_frame(), vc2_encode_init(), vfw_read_header(), video_decode_example(), video_duration_estimate(), video_frame(), video_frame_process(), video_thread(), vivo_read_header(), vp8_header(), vpx_encode(), vpx_init(), vqf_read_seek(), vt_pixbuf_set_par(), vtenc_cm_to_avpacket(), vtenc_create_encoder(), vtenc_send_frame(), webm_chunk_init(), write_adaptation_set(), write_mainheader(), write_streamheader(), write_streaminfo(), write_trailer(), writer_print_rational(), X264_init(), XAVS_init(), xfade_opencl_config_output(), xml_export(), xv_write_header(), xvid_correct_framerate(), xvid_encode_frame(), xvid_encode_init(), and yuv4_write_header().

◆ den

int AVRational::den

Denominator.

Examples
decode_filter_audio.c, decode_filter_video.c, transcode.c, and transcode_aac.c.

Definition at line 60 of file rational.h.

Referenced by activate(), adjust_frame_pts_to_encoder_tb(), amf_encode_init_av1(), amf_encode_init_h264(), amf_encode_init_hevc(), amv_init(), amv_write_header(), aom_decode(), aom_encode(), aom_init(), apng_write_header(), apply_delogo(), aqt_read_header(), asf_read_ext_content_desc(), asf_read_ext_stream_properties(), asf_read_frame_header(), asf_read_header(), asf_read_metadata(), asf_store_aspect_ratio(), asf_write_header1(), audio_samplerate_update(), av_add_stable(), av_buffersrc_parameters_set(), av_compare_ts(), av_dv_codec_profile2(), av_find_nearest_q_idx(), av_guess_frame_rate(), av_guess_sample_aspect_ratio(), av_image_check_sar(), av_inv_q(), av_nearer_q(), av_parse_ratio(), av_parse_video_rate(), av_q2intfloat(), av_rescale_delta(), av_rescale_q_rnd(), avcodec_open2(), avcodec_string(), avfilter_config_links(), avformat_find_stream_info(), avformat_seek_file(), avformat_transfer_internal_stream_timing_info(), avi_read_header(), avi_write_header(), avif_add_stream(), avisynth_read_packet_audio(), avpriv_set_pts_info(), avpriv_update_cur_dts(), binary_export(), calculate_bitrate(), calculate_display_rect(), cdxl_read_packet(), choose_out_timebase(), choose_timebase(), coherent_ts(), compute_dar(), compute_display_area(), compute_frame_duration(), compute_muxer_pkt_fields(), compute_pkt_fields(), compute_texture_rect(), config_comm_output(), config_enc_params(), config_input(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), configure_input_audio_filter(), configure_input_video_filter(), configure_video_filters(), copy_stream_props(), create_stream(), create_subcc_streams(), cri_decode_frame(), cudacolorspace_filter_frame(), cudascale_filter_frame(), cuvid_decode_init(), cuvid_decode_packet(), cuvid_output_frame(), dash_init(), dash_read_packet(), decklink_setup_video(), decode_frame(), decode_info_header(), decode_main_header(), decode_phys_chunk(), decode_sequence_header_adv(), decode_stream_header(), defined_frame_rate(), dhav_read_packet(), dirac_header(), draw_items(), dump_detection_bbox(), dump_roi(), dump_stream_format(), dv_audio_frame_size(), dv_write_header(), dvd_nav_parse(), enable_pcr_generation_for_stream(), enc_open(), enc_stats_write(), encode_aspect_ratio(), encode_frame(), encode_frame_rate(), encode_headers(), encode_init(), encode_preinit_video(), estimate_timings(), estimate_timings_from_bit_rate(), estimate_timings_from_pts(), export_stream_params(), fbdev_read_header(), ff_av1_framerate(), ff_canopus_parse_info_tag(), ff_ccfifo_extractbytes(), ff_dnxhd_get_hr_frame_size(), ff_encode_preinit(), ff_framehash_write_header(), ff_h263_aspect_to_info(), ff_h2645_decode_common_vui_params(), ff_h2645_sei_to_frame(), ff_imf_xml_read_rational(), ff_mediacodec_dec_send(), ff_mov_init_hinting(), ff_mpv_encode_init(), ff_nut_reset_ts(), ff_parse_specific_params(), ff_pcm_read_seek(), ff_rfps_calculate(), ff_rm_read_mdpr_codecdata(), ff_set_sar(), ff_vorbiscomment_write(), ffmal_update_format(), ffmmal_init_decoder(), fg_output_step(), fill_frameinfo_by_link(), filter_frame(), filter_frame_ref(), fits_read_header(), flush_packet(), fps_from_frame_rate(), gem_decode_frame(), get_aspect_ratio(), get_fps(), get_pkt_pts(), get_vp9_level(), gif_read_header(), guess_pkt_duration(), gxf_compare_field_nb(), gxf_header(), gxf_write_header(), gxf_write_media_preamble(), gxf_write_umf_material_description(), h264_parse(), handle_file(), hevc_parse_slice_header(), hls_write_header(), hls_write_packet(), iff_read_header(), imf_seek(), init(), init_filter(), init_filters(), init_fps(), init_muxer(), init_pts(), init_stream(), init_video_param(), init_video_param_jpeg(), interleave_compare_dts(), interpolate(), jpeg_put_comments(), jpegxl_anim_read_header(), lavfi_read_header(), libaribb24_decode(), libdav1d_receive_frame(), libkvazaar_init(), librav1e_encode_init(), libuavs3d_decode_frame(), libwebp_anim_encode_frame(), libx265_encode_init(), libx265_encode_set_roi(), main(), mcc_read_header(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), mf_encv_output_adjust(), mf_get_tb(), microdvd_read_header(), mkv_write_track(), mkv_write_track_video(), mods_read_header(), mov_get_dv_codec_tag(), mov_init(), mov_parse_stsd_data(), mov_read_header(), mov_read_pasp(), mov_read_sidx(), mov_read_timecode_track(), mov_read_trak(), mov_write_avid_tag(), mov_write_dvc1_structs(), mov_write_pasp_tag(), mov_write_tapt_tag(), mov_write_tkhd_tag(), mov_write_tmcd_tag(), mov_write_uuidprof_tag(), mov_write_video_tag(), mpeg_decode_postinit(), mpegvideo_extract_headers(), mpsub_read_header(), msp_read_header(), mv_read_header(), mxf_compute_edit_units_per_packet(), mxf_compute_index_tables(), mxf_compute_sample_count(), mxf_init(), mxf_init_timecode(), mxf_parse_dnxhd_frame(), mxf_parse_ffv1_frame(), mxf_parse_h264_frame(), mxf_parse_mpeg2_frame(), mxf_parse_physical_source_package(), mxf_parse_structural_metadata(), mxf_read_generic_descriptor(), mxf_read_seek(), mxf_read_track(), mxf_write_cdci_common(), mxf_write_generic_desc(), mxf_write_index_table_segment(), mxf_write_multi_descriptor(), mxf_write_track(), new_stream_video(), ni_prepare_read(), nppscale_eval_dimensions(), nppscale_filter_frame(), nppscale_filter_frame_ref(), nppscale_scale(), nsv_read_chunk(), nut_write_header(), nut_write_packet(), nvenc_setup_encoder(), ogg_build_vp8_headers(), ogg_init(), omx_component_init(), open_demux_for_component(), open_output_file(), open_track_file_resource(), open_virtual_track(), opengl_compute_display_area(), opt_list(), opt_target(), ost_add(), output_segment_list(), pad_opencl_config_output(), parse_avs2_seq_header(), parse_avs3_nal_units(), parse_chunk(), parse_nal_unit(), parse_nal_units(), parse_packet(), parse_utf(), parse_video_var(), parse_vtrk(), pcx_decode_frame(), pcx_encode_frame(), pdv_read_header(), print_codec(), print_digraph(), print_link_prop(), put_videoinfoheader2(), query_frame(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), read_gab2_sub(), read_header(), read_packet(), read_packet_vs(), reopen_demux_for_component(), request_frame(), rescale_mastering_chroma(), rescale_mastering_luma(), rescale_mdcv(), rescale_pts(), rpl_read_header(), rtp_mpegts_write_header(), rv10_write_header(), scale_eval_dimensions(), scale_frame(), scale_vt_filter_frame(), seek_frame_internal(), seg_init(), send_silence(), ser_read_header(), set_context_streams_from_tracks(), set_parser_ctx(), set_roi_encode_ctrl(), set_roi_map(), set_stream_info_from_input_stream(), setup_roi(), sga_video_packet(), show_stream(), streamcopy_init(), svc_encode_init(), swf_write_header(), tb_unreliable(), tb_update(), test_av_parse_video_rate(), test_cpl_parsing(), theora_header(), thp_read_header(), tmv_read_header(), ts_to_samples(), update_context_with_frame_header(), update_frame_rate(), update_stream_timings(), update_wrap_reference(), v4l2_get_sar(), v4l2_prepare_encoder(), v4l2_read_header(), v4l2_set_parameters(), vaapi_encode_av1_init_sequence_params(), vaapi_encode_h264_init_sequence_params(), vaapi_encode_h265_init_sequence_params(), vaapi_encode_init_rate_control(), vaapi_encode_issue(), vaapi_encode_mjpeg_init_picture_params(), vaapi_encode_mpeg2_init_sequence_params(), vc2_encode_init(), vfw_read_header(), video_decode_example(), video_duration_estimate(), video_frame(), video_frame_process(), video_thread(), decklink_input_callback::VideoInputFrameArrived(), vivo_read_header(), vp8_header(), vpx_encode(), vpx_init(), vqf_read_seek(), vt_pixbuf_set_par(), vtenc_create_encoder(), vtenc_populate_extradata(), vtenc_send_frame(), webm_chunk_init(), write_adaptation_set(), write_hls_media_playlist(), write_mainheader(), write_streamheader(), write_streaminfo(), write_trailer(), writer_print_rational(), X264_init(), XAVS_init(), xfade_opencl_config_output(), xml_export(), xv_write_header(), xvid_correct_framerate(), xvid_encode_frame(), xvid_encode_init(), and yuv4_write_header().


The documentation for this struct was generated from the following file: