Add an index entry into a sorted list.
Update the entry if the list already contains it.
Definition at line 1543 of file utils.c.
Referenced by ape_read_header(), asf_build_simple_index(), asf_read_pts(), avi_read_idx1(), avi_sync(), clean_index(), find_and_decode_index(), flv_read_packet(), gxf_read_index(), matroska_add_index_entries(), matroska_parse_block(), mov_read_trun(), mpc8_parse_seektable(), mpc_read_packet(), mpegps_read_pes_header(), mpegts_get_dts(), nsv_parse_NSVs_header(), nut_write_packet(), nuv_read_dts(), parse_keyframes_index(), pmp_header(), pva_read_header(), read_braindead_odml_indx(), read_frame_internal(), read_header(), read_pakt_chunk(), read_part_of_packet(), rl2_read_header(), rm_read_dts(), rm_read_index(), rm_read_packet(), rpl_read_header(), tta_read_header(), wv_read_packet(), and xwma_read_header().
Get the CodecID for the given codec tag tag.
If no codec id is found returns CODEC_ID_NONE.
Referenced by decode_stream_header(), and transcode_init().
Get the codec tag for the given codec id id.
If no codec tag is found returns 0.
Referenced by avformat_query_codec(), avformat_write_header(), and transcode_init().
Definition at line 3737 of file utils.c.
Referenced by dump_format(), main(), open_input_file(), opt_input_file(), read_thread(), and transcode_init().
Check whether filename actually is a numbered sequence generator.
Definition at line 328 of file utils.c.
Referenced by av_guess_format(), avformat_open_input(), opt_output_file(), and read_probe().
Return in 'buf' the path with 'd' replaced by a number.
Also handles the '0nd' format where 'n' is the total number of digits and '%'.
Definition at line 3848 of file utils.c.
Referenced by av_filename_number_test(), find_image_range(), read_packet(), seg_write_header(), and segment_start().
Get the current time in microseconds.
Definition at line 3816 of file utils.c.
Referenced by applehttp_read(), audio_get_output_timestamp(), audio_read_packet(), bktr_getframe(), enqueue_packet(), fbdev_read_packet(), ff_ntp_time(), ff_rtsp_setup_output_streams(), get_audio_clock(), get_external_clock(), get_video_clock(), get_video_frame(), getutime(), grab_read_header(), grab_read_packet(), http_server(), main(), open_input_stream(), parse_playlist(), process_callback(), rate_emu_sleep(), read_data(), read_packet(), rtsp_read_packet(), sap_write_header(), sap_write_packet(), sdl_audio_callback(), stream_toggle_pause(), transcode(), transcode_init(), update_video_pts(), video_audio_display(), video_refresh(), video_thread(), x11grab_read_header(), and x11grab_read_packet().
Send a nice hexadecimal dump of a buffer to the specified file stream.
Definition at line 3932 of file utils.c.
Referenced by pkt_dump_internal().
Send a nice hexadecimal dump of a buffer to the log.
Definition at line 3937 of file utils.c.
Referenced by asf_read_header().
Get the index for a specific timestamp.
Definition at line 1585 of file utils.c.
Referenced by ape_read_seek(), asf_read_seek(), avi_read_packet(), avi_read_seek(), ff_seek_frame_binary(), gxf_seek(), matroska_read_seek(), mov_seek_stream(), mpc8_read_seek(), mpc_read_seek(), nsv_read_seek(), nut_write_packet(), read_packet(), read_seek(), rl2_read_seek(), seek_frame_generic(), tta_read_seek(), and wv_read_seek().
Return a positive value if the given filename has one of the given extensions, 0 otherwise.
Definition at line 160 of file utils.c.
Referenced by av_guess_format(), av_probe_input_format3(), http_parse_request(), ipod_get_codec_tag(), mpegts_probe(), mpegts_write_header(), and nsv_probe().
Send a nice dump of a packet to the log.
Definition at line 3989 of file utils.c.
Referenced by transcode().
Generate an SDP for an RTP session.
Definition at line 636 of file sdp.c.
Referenced by avf_sdp_create(), ff_rtsp_setup_output_streams(), prepare_sdp_description(), print_sdp(), and sap_write_header().
Split a URL string into components.
The pointers to buffers for storing individual components may be null, in order to ignore that component. Buffers for components not found are set to empty strings. If the port is not found, it is set to a negative value.
Definition at line 3995 of file utils.c.
Referenced by ff_rtp_set_remote_url(), ff_udp_set_remote_url(), find_rtp_session_with_url(), gopher_open(), http_open_cnx(), mms_open(), mmsh_open_internal(), resetup_tcp(), rtmp_open(), rtp_open(), rtsp_cmd_describe(), rtsp_cmd_setup(), sap_read_header(), sap_write_header(), tcp_open(), tls_open(), and udp_open().
Definition at line 3728 of file utils.c.
Referenced by transcode_init().
Parse datestr and return a corresponding number of microseconds.