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(), alloc_base_frame(), 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(), 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_q2den(), av_q2intfloat(), av_rescale_delta(), av_rescale_q_rnd(), avcodec_decode_subtitle2(), avcodec_open2(), avcodec_string(), avformat_find_stream_info(), avformat_seek_file(), avi_read_header(), avi_write_header(), avisynth_read_packet_audio(), avpriv_set_pts_info(), avpriv_update_cur_dts(), binary_export(), calculate_bitrate(), calculate_display_rect(), cdxl_read_packet(), check_timecode(), 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_input_ref(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), configure_input_audio_filter(), 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(), d3d12va_create_decoder(), d3d12va_create_decoder_heap(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_init_rate_control(), 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(), do_scale(), draw_items(), dump_detection_bbox(), dump_roi(), dump_stereo3d(), dump_stream_format(), dv_audio_frame_size(), dv_init_mux(), dv_write_header(), dvd_nav_parse(), enable_pcr_generation_for_stream(), 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_dovi_configure_ext(), ff_encode_preinit(), ff_filter_config_links(), ff_framehash_write_header(), ff_h263_aspect_to_info(), ff_h2645_decode_common_vui_params(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_imf_xml_read_rational(), ff_jpegxl_parse_codestream_header(), 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(), ff_yadif_config_output_common(), 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(), generate_output(), get_aspect_ratio(), get_conf(), get_fpsQ(), 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(), h2645_sei_to_side_data(), h264_parse(), has_codec_parameters(), heif_add_stream(), hevc_parse_slice_header(), hls_write_header(), hls_write_packet(), iamf_write_mixing_presentation(), iff_read_header(), imf_seek(), init(), init_convert_timestamp(), init_filter(), init_filters(), init_fps(), init_muxer(), init_pic_rc(), init_pts(), init_stream(), init_video_param(), init_video_param_jpeg(), interleave_compare_dts(), interpolate(), ist_add(), ist_dts_update(), ist_filter_add(), ist_use(), jpeg_put_comments(), jpegxl_anim_read_header(), lavfi_read_header(), libaribb24_decode(), libkvazaar_init(), libplacebo_config_output(), librav1e_encode_init(), libuavs3d_decode_frame(), libwebp_anim_encode_frame(), libx265_encode_init(), libx265_encode_set_roi(), libxeve_encode(), log_default(), main(), mcc_read_header(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_audio_buffer(), mediacodec_wrap_sw_video_buffer(), mf_encv_output_adjust(), mf_get_tb(), microdvd_read_header(), mkv_write_track(), mkv_write_track_video(), mods_read_header(), moflex_read_sync(), mov_parse_stsd_data(), mov_read_clap(), mov_read_eyes(), mov_read_header(), mov_read_hfov(), mov_read_timecode_track(), mov_read_trak(), mov_write_amve_tag(), mov_write_avid_tag(), mov_write_clap_tag(), mov_write_dvc1_structs(), mov_write_emsg_tag(), mov_write_eyes_tag(), mov_write_hfov_tag(), 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_vexu_tag(), mov_write_video_tag(), mpeg_decode_postinit(), mpeg_decode_sequence_extension(), 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_set_timestamp(), nvenc_setup_encoder(), of_stream_init(), 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_target(), ost_add(), pad_opencl_config_output(), pad_vaapi_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(), process_ea_header(), put_videoinfoheader2(), qsv_av1_set_encode_ctrl(), qsv_decode_init(), query_frame(), r3d_read_rdvo(), r3d_read_redv(), r3d_seek(), read_chapter(), read_gab2_sub(), read_header(), read_packet(), request_frame(), rescale_mastering_chroma(), rescale_mastering_luma(), rescale_pts(), rescale_rational(), 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(), 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(), tonemap_vaapi_update_sidedata(), ts_to_samples(), update_context_with_frame_header(), update_frame_rate(), update_sar(), update_wrap_reference(), v4l2_get_sar(), v4l2_prepare_encoder(), v4l2_set_parameters(), vaapi_encode_av1_init_picture_params(), vaapi_encode_av1_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(), vulkan_encode_ffv1_submit_frame(), vvenc_init(), vvenc_set_framerate(), 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(), alloc_base_frame(), 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_q2den(), av_q2intfloat(), av_rescale_delta(), av_rescale_q_rnd(), avcodec_open2(), avcodec_string(), avformat_find_stream_info(), avformat_seek_file(), avi_read_header(), avi_write_header(), avisynth_read_packet_audio(), avpriv_set_pts_info(), avpriv_update_cur_dts(), binary_export(), calculate_bitrate(), calculate_display_rect(), cdxl_read_packet(), check_timecode(), 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_input_ref(), config_out_props(), config_output(), config_output_props(), config_props(), config_props_output(), configure_filtergraph(), configure_input_audio_filter(), configure_input_video_filter(), 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(), d3d12va_create_decoder(), d3d12va_create_decoder_heap(), d3d12va_encode_hevc_init_sequence_params(), d3d12va_encode_init_rate_control(), 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(), do_scale(), draw_items(), dump_detection_bbox(), dump_roi(), dump_stereo3d(), dump_stream_format(), dv_audio_frame_size(), dv_init_mux(), dv_write_header(), dvd_nav_parse(), enable_pcr_generation_for_stream(), 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_dovi_configure_ext(), ff_encode_preinit(), ff_filter_config_links(), ff_framehash_write_header(), ff_h263_aspect_to_info(), ff_h2645_decode_common_vui_params(), ff_hw_base_encode_init_params_h264(), ff_hw_base_encode_init_params_h265(), ff_imf_xml_read_rational(), ff_jpegxl_parse_codestream_header(), 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(), ff_yadif_config_output_common(), 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(), generate_output(), get_aspect_ratio(), get_conf(), get_fpsQ(), 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(), h2645_sei_to_side_data(), h264_parse(), handle_file(), heif_add_stream(), hevc_parse_slice_header(), hls_read_packet(), hls_write_header(), hls_write_packet(), iamf_write_mixing_presentation(), iff_read_header(), imf_seek(), init(), init_filter(), init_filters(), init_fps(), init_muxer(), init_pic_rc(), init_pts(), init_stream(), init_video_param(), init_video_param_jpeg(), interleave_compare_dts(), interpolate(), ist_filter_add(), jpeg_put_comments(), jpegxl_anim_read_header(), lavfi_read_header(), libaribb24_decode(), libkvazaar_init(), librav1e_encode_init(), libuavs3d_decode_frame(), libwebp_anim_encode_frame(), libx265_encode_init(), libx265_encode_set_roi(), libxeve_encode(), log_default(), main(), mcc_read_header(), mediacodec_init(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_audio_buffer(), mediacodec_wrap_sw_video_buffer(), mf_encv_output_adjust(), mf_get_tb(), microdvd_read_header(), mkv_write_track(), mkv_write_track_video(), mods_read_header(), moflex_read_sync(), mov_get_dv_codec_tag(), mov_init(), mov_parse_stsd_data(), mov_read_clap(), mov_read_eyes(), mov_read_header(), mov_read_hfov(), mov_read_sidx(), mov_read_timecode_track(), mov_read_trak(), mov_write_avid_tag(), mov_write_clap_tag(), mov_write_dvc1_structs(), mov_write_emsg_tag(), 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(), mpeg_decode_sequence_extension(), 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_set_timestamp(), nvenc_setup_encoder(), of_stream_init(), 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_target(), ost_add(), output_segment_list(), pad_opencl_config_output(), pad_vaapi_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_digraph(), print_link_prop(), process_audio_header_elements(), put_videoinfoheader2(), qsv_av1_set_encode_ctrl(), query_frame(), r3d_read_red1(), r3d_read_reda(), r3d_read_redv(), read_chapter(), read_gab2_sub(), read_header(), read_packet(), reopen_demux_for_component(), request_frame(), rescale_mastering_chroma(), rescale_mastering_luma(), rescale_pts(), rescale_rational(), 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(), tonemap_vaapi_update_sidedata(), 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_picture_params(), vaapi_encode_av1_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_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(), vulkan_encode_ffv1_submit_frame(), vvenc_init(), vvenc_set_framerate(), 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: