FFmpeg
|
common internal API header More...
#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include "config.h"
#include "attributes.h"
#include "timer.h"
#include "cpu.h"
#include "dict.h"
#include "macros.h"
#include "mem.h"
#include "pixfmt.h"
#include "version.h"
#include "libm.h"
Go to the source code of this file.
Macros | |
#define | NDEBUG |
#define | av_export_avutil |
#define | FF_DISABLE_DEPRECATION_WARNINGS |
#define | FF_ENABLE_DEPRECATION_WARNINGS |
#define | FF_MEMORY_POISON 0x2a |
#define | MAKE_ACCESSORS(str, name, type, field) |
#define | E1(x) x |
#define | AV_CHECK_OFFSET(s, m, o) |
#define | LOCAL_ALIGNED_A(a, t, v, s, o,...) |
#define | LOCAL_ALIGNED_D(a, t, v, s, o,...) |
#define | LOCAL_ALIGNED(a, t, v,...) LOCAL_ALIGNED_##a(t, v, __VA_ARGS__) |
#define | LOCAL_ALIGNED_4(t, v,...) E1(LOCAL_ALIGNED_A(4, t, v, __VA_ARGS__,,)) |
#define | LOCAL_ALIGNED_8(t, v,...) E1(LOCAL_ALIGNED_A(8, t, v, __VA_ARGS__,,)) |
#define | LOCAL_ALIGNED_16(t, v,...) E1(LOCAL_ALIGNED_A(16, t, v, __VA_ARGS__,,)) |
#define | LOCAL_ALIGNED_32(t, v,...) E1(LOCAL_ALIGNED_A(32, t, v, __VA_ARGS__,,)) |
#define | FF_ALLOC_OR_GOTO(ctx, p, size, label) |
#define | FF_ALLOCZ_OR_GOTO(ctx, p, size, label) |
#define | FF_ALLOC_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label) |
#define | FF_ALLOCZ_ARRAY_OR_GOTO(ctx, p, nelem, elsize, label) |
#define | NULL_IF_CONFIG_SMALL(x) x |
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification. More... | |
#define | ONLY_IF_THREADS_ENABLED(x) NULL |
Define a function with only the non-default version specified. More... | |
#define | PTRDIFF_SPECIFIER "td" |
#define | SIZE_SPECIFIER "zu" |
#define | ff_dlog(ctx,...) do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0) |
#define | SUINT unsigned |
#define | SUINT32 uint32_t |
#define | FF_PSEUDOPAL AV_PIX_FMT_FLAG_PSEUDOPAL |
Functions | |
void | avpriv_report_missing_feature (void *avc, const char *msg,...) av_printf_format(2 |
Log a generic warning message about a missing feature. More... | |
void void | avpriv_request_sample (void *avc, const char *msg,...) av_printf_format(2 |
Log a generic warning message about a missing feature. More... | |
static av_always_inline av_const int64_t | ff_rint64_clip (double a, int64_t amin, int64_t amax) |
Clip and convert a double value into the long long amin-amax range. More... | |
av_warn_unused_result int | avpriv_open (const char *filename, int flags,...) |
A wrapper for open() setting O_CLOEXEC. More... | |
int | avpriv_tempfile (const char *prefix, char **filename, int log_offset, void *log_ctx) |
Wrapper to work around the lack of mkstemp() on mingw. More... | |
int | avpriv_set_systematic_pal2 (uint32_t pal[256], enum AVPixelFormat pix_fmt) |
static av_always_inline av_const int | avpriv_mirror (int x, int w) |
void | ff_check_pixfmt_descriptors (void) |
int | avpriv_dict_set_timestamp (AVDictionary **dict, const char *key, int64_t timestamp) |
Set a dictionary value to an ISO-8601 compliant timestamp string. More... | |
common internal API header
Definition in file internal.h.
#define NDEBUG |
Definition at line 30 of file internal.h.
#define av_export_avutil |
Definition at line 69 of file internal.h.
#define FF_DISABLE_DEPRECATION_WARNINGS |
Definition at line 84 of file internal.h.
Referenced by alac_encode_init(), av_frame_get_qp_table(), av_frame_set_qp_table(), av_frame_unref(), av_init_packet(), av_packet_copy_props(), av_packet_rescale_ts(), av_parser_init(), av_stream_get_codec_timebase(), avcodec_close(), avcodec_copy_context(), avcodec_open2(), avformat_alloc_output_context2(), avformat_find_stream_info(), avformat_match_stream_specifier(), avformat_new_stream(), avformat_open_input(), avi_read_header(), avpriv_set_pts_info(), bmp_encode_frame(), compute_pkt_fields(), copy_context_reset(), copy_frame(), cuvid_output_frame(), decode_dvd_subtitles(), decode_simple_internal(), display_end_segment(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_load_picture(), do_swap(), dvvideo_encode_frame(), encode_dvd_subtitles(), encode_frame(), encode_init(), encode_init_ls(), encode_picture_ls(), encode_thread(), ff_decode_frame_props(), ff_format_set_url(), ff_mp4_read_dec_config_descr(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_stream_encode_params_copy(), ffat_decode(), ffmal_copy_frame(), find_decoder(), find_fps(), find_smallest_bounding_rectangle(), flac_encode_frame(), flac_encode_init(), flashsv_encode_frame(), frame_copy_props(), frame_end(), free_stream(), get_frame_defaults(), gif_decode_frame(), gif_encode_init(), init_muxer(), init_video_param(), io_open_default(), j2kenc_init(), libx265_encode_frame(), ljpeg_encode_bgr(), ljpeg_encode_init(), ljpeg_encode_yuv(), matroska_parse_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), mkv_write_packet_internal(), mov_parse_stsd_data(), mov_read_dac3(), mov_read_dec3(), mov_write_tmcd_tag(), mov_write_video_tag(), mpeg_decode_gop(), pam_encode_init(), pcx_encode_init(), png_enc_init(), pnm_encode_init(), process_output_surface(), qsv_decode(), qtrle_encode_frame(), raw_encode_init(), read_frame_internal(), set_codec_from_probe_data(), srt_write_packet(), storeframe(), sunrast_encode_init(), svc_decode_frame(), svc_encode_init(), svq1_encode_frame(), targa_encode_frame(), targa_encode_init(), teletext_decode_frame(), update_context_from_thread(), update_stream_avctx(), utvideo_encode_frame(), utvideo_encode_init(), v410_encode_frame(), v4l2_read_packet(), vp9_decode_frame(), vpx_init(), X264_frame(), X264_init(), XAVS_frame(), XAVS_init(), xsub_encode(), xvid_encode_frame(), xvid_encode_init(), and yuv4_generate_header().
#define FF_ENABLE_DEPRECATION_WARNINGS |
Definition at line 85 of file internal.h.
Referenced by alac_encode_init(), av_frame_get_qp_table(), av_frame_set_qp_table(), av_frame_unref(), av_init_packet(), av_packet_copy_props(), av_packet_rescale_ts(), av_parser_init(), av_stream_get_codec_timebase(), avcodec_close(), avcodec_copy_context(), avcodec_open2(), avformat_alloc_output_context2(), avformat_find_stream_info(), avformat_match_stream_specifier(), avformat_new_stream(), avformat_open_input(), avi_read_header(), avpriv_set_pts_info(), bmp_encode_frame(), compute_pkt_fields(), copy_context_reset(), copy_frame(), cuvid_output_frame(), decode_dvd_subtitles(), decode_simple_internal(), display_end_segment(), dnxhd_encode_init(), dnxhd_encode_picture(), dnxhd_load_picture(), do_swap(), dvvideo_encode_frame(), encode_dvd_subtitles(), encode_frame(), encode_init(), encode_init_ls(), encode_picture_ls(), encode_thread(), ff_decode_frame_props(), ff_format_set_url(), ff_mp4_read_dec_config_descr(), ff_mpv_encode_init(), ff_mpv_encode_picture(), ff_stream_encode_params_copy(), ffat_decode(), ffmal_copy_frame(), find_decoder(), find_fps(), find_smallest_bounding_rectangle(), flac_encode_frame(), flac_encode_init(), flashsv_encode_frame(), frame_copy_props(), frame_end(), free_stream(), get_frame_defaults(), gif_decode_frame(), gif_encode_init(), init_muxer(), init_video_param(), io_open_default(), j2kenc_init(), libx265_encode_frame(), ljpeg_encode_bgr(), ljpeg_encode_init(), ljpeg_encode_yuv(), matroska_parse_frame(), mediacodec_wrap_hw_buffer(), mediacodec_wrap_sw_buffer(), mkv_write_packet_internal(), mov_parse_stsd_data(), mov_read_dac3(), mov_read_dec3(), mov_write_tmcd_tag(), mov_write_video_tag(), mpeg_decode_gop(), pam_encode_init(), pcx_encode_init(), png_enc_init(), pnm_encode_init(), process_output_surface(), qsv_decode(), qtrle_encode_frame(), raw_encode_init(), read_frame_internal(), set_codec_from_probe_data(), srt_write_packet(), storeframe(), sunrast_encode_init(), svc_decode_frame(), svc_encode_init(), svq1_encode_frame(), targa_encode_frame(), targa_encode_init(), teletext_decode_frame(), update_context_from_thread(), update_stream_avctx(), utvideo_encode_frame(), utvideo_encode_init(), v410_encode_frame(), v4l2_read_packet(), vp9_decode_frame(), vpx_init(), X264_frame(), X264_init(), XAVS_frame(), XAVS_init(), xsub_encode(), xvid_encode_frame(), xvid_encode_init(), and yuv4_generate_header().
#define FF_MEMORY_POISON 0x2a |
Definition at line 89 of file internal.h.
Referenced by av_dynarray2_add(), av_malloc(), and pool_release_buffer().
Definition at line 91 of file internal.h.
#define E1 | ( | x | ) | x |
Definition at line 97 of file internal.h.
#define AV_CHECK_OFFSET | ( | s, | |
m, | |||
o | |||
) |
Definition at line 102 of file internal.h.
Definition at line 106 of file internal.h.
Definition at line 110 of file internal.h.
Definition at line 114 of file internal.h.
Referenced by check_idct(), check_idct_dc(), checkasm_check_audiodsp(), checkasm_check_fmtconvert(), checkasm_check_synth_filter(), do_hybrid_window(), encode_slice(), ff_atrac3p_ipqf(), ff_h264_filter_mb(), ff_lpc_calc_coefs(), ff_prores_idct_wrap(), filter_mb_dir(), h264_filter_mb_fast_internal(), intra_predict(), and main().
#define LOCAL_ALIGNED_4 | ( | t, | |
v, | |||
... | |||
) | E1(LOCAL_ALIGNED_A(4, t, v, __VA_ARGS__,,)) |
Definition at line 119 of file internal.h.
#define LOCAL_ALIGNED_8 | ( | t, | |
v, | |||
... | |||
) | E1(LOCAL_ALIGNED_A(8, t, v, __VA_ARGS__,,)) |
Definition at line 125 of file internal.h.
Referenced by apply_obmc(), and dv_encode_video_segment().
#define LOCAL_ALIGNED_16 | ( | t, | |
v, | |||
... | |||
) | E1(LOCAL_ALIGNED_A(16, t, v, __VA_ARGS__,,)) |
Definition at line 131 of file internal.h.
Referenced by apply_channel_coupling(), bink_decode_plane(), binkb_decode_plane(), bit8x8_c(), check_append_extra_bits(), check_butterflies(), check_decorrelate_stereo(), check_idct(), check_idct_dc4(), check_idct_multiple(), check_loopfilter_16y(), check_loopfilter_8uv(), check_loopfilter_simple(), check_luma_dc_wht(), check_mc(), check_vector_fmul_window_scaled(), checkasm_check_bswapdsp(), checkasm_check_flacdsp(), checkasm_check_float_dsp(), checkasm_check_h264pred(), checkasm_check_h264qpel(), checkasm_check_pixblockdsp(), count_mantissa_bits(), dct_max8x8_c(), dct_quantize_refine(), dct_quantize_TMPL(), dct_sad8x8_c(), decode_slice_thread(), decorrelation(), dnxhd_calc_bits_thread(), dv_decode_video_segment(), dv_init_enc_block(), ff_check_alignment(), hybrid6_cx(), imc_decode_frame(), mpc7_decode_init(), quant_psnr8x8_c(), rd8x8_c(), rv34_decode_inter_macroblock(), rv34_output_i16x16(), sbr_hf_assemble(), sbr_hf_inverse_filter(), stereo_processing(), test_add_squares(), test_autocorrelate(), test_butterflies_float(), test_hf_apply_noise(), test_hf_g_filt(), test_hf_gen(), test_hybrid_analysis(), test_hybrid_analysis_ileave(), test_hybrid_synthesis_deint(), test_mul_pair_single(), test_neg_odd_64(), test_qmf_deint_bfly(), test_qmf_deint_neg(), test_qmf_post_shuffle(), test_qmf_pre_shuffle(), test_stereo_interpolate(), test_sum64x5(), test_sum_square(), test_vector_fmul_scalar(), and test_vector_fmul_window().
#define LOCAL_ALIGNED_32 | ( | t, | |
v, | |||
... | |||
) | E1(LOCAL_ALIGNED_A(32, t, v, __VA_ARGS__,,)) |
Definition at line 137 of file internal.h.
Referenced by bink_decode_plane(), binkb_decode_plane(), calc_power(), check_add_res(), check_diff_bytes(), check_hflip(), check_ict_float(), check_ipred(), check_itxfm(), check_loopfilter(), check_mc(), check_multiply3x3(), check_predictor(), check_rct_int(), check_reorder_pixels(), check_rgb2yuv(), check_sao_band(), check_sao_edge(), check_shuffle_bytes(), check_sub_left_pred(), check_threshold(), check_uyvy_to_422p(), check_vector_fmul(), check_vector_fmul_add(), check_vector_fmul_window(), check_yuv2rgb(), check_yuv2yuv(), checkasm_check_blockdsp(), checkasm_check_fixed_dsp(), checkasm_check_float_dsp(), decode_dct_block(), decode_slice_alpha(), decode_slice_chroma(), decode_slice_luma(), ff_atrac3p_power_compensation(), h263_skip_b_part(), intra_recon(), sub_qmf32_fixed_c(), sub_qmf32_float_c(), sub_qmf64_fixed_c(), sub_qmf64_float_c(), test_vector_dmac_scalar(), test_vector_dmul(), test_vector_dmul_scalar(), test_vector_fmac_scalar(), test_vector_fmul(), test_vector_fmul_add(), transform(), and transform_channel().
Definition at line 140 of file internal.h.
Referenced by adpcm_encode_frame(), adpcm_encode_init(), allocate_buffers(), allocate_sample_buffers(), ape_decode_init(), ff_h264_slice_context_init(), ff_iir_filter_init_coeffs(), ff_snow_common_init_after_header(), init_context_frame(), and sws_init_context().
Definition at line 149 of file internal.h.
Referenced by allocate_sample_buffers(), dnxhd_encode_init(), dnxhd_init_vlc(), ff_h264_alloc_tables(), ff_h264_slice_context_init(), ff_iir_filter_init_coeffs(), ff_mpv_common_init(), ff_mpv_encode_init(), init_context_frame(), init_duplicate_context(), and sws_init_context().
#define FF_ALLOC_ARRAY_OR_GOTO | ( | ctx, | |
p, | |||
nelem, | |||
elsize, | |||
label | |||
) |
Definition at line 158 of file internal.h.
Referenced by adpcm_encode_frame(), allocate_buffers(), allocate_sample_buffers(), init_mdct_win(), initFilter(), and mca().
#define FF_ALLOCZ_ARRAY_OR_GOTO | ( | ctx, | |
p, | |||
nelem, | |||
elsize, | |||
label | |||
) |
Definition at line 167 of file internal.h.
Referenced by alloc_buffers(), allocate_buffers(), dnxhd_init_qmat(), dnxhd_init_rc(), dnxhd_init_vlc(), ff_h264_alloc_tables(), ff_mpeg_framesize_alloc(), ff_snow_common_init_after_header(), initFilter(), and mca().
#define NULL_IF_CONFIG_SMALL | ( | x | ) | x |
Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
Used to disable the definition of strings (for example AVCodec long_names).
Definition at line 186 of file internal.h.
Referenced by mpeg12_class().
#define ONLY_IF_THREADS_ENABLED | ( | x | ) | NULL |
Define a function with only the non-default version specified.
On systems with ELF shared libraries, all symbols exported from FFmpeg libraries are tagged with the name and major version of the library to which they belong. If a function is moved from one library to another, a wrapper must be retained in the original location to preserve binary compatibility.
Functions defined with this macro will never be used to resolve symbols by the build-time linker.
type | return type of function |
name | name of function |
args | argument list of function |
ver | version tag to assign function Return NULL if a threading library has not been enabled. Used to disable threading functions in AVCodec definitions when not needed. |
Definition at line 225 of file internal.h.
#define PTRDIFF_SPECIFIER "td" |
Definition at line 261 of file internal.h.
Referenced by decode_cblk(), decode_chunks(), decode_slice(), encode_dvd_subtitles(), ff_hevc_decode_nal_pps(), ff_hevc_decode_nal_sps(), ff_hevc_decode_nal_vps(), ff_mjpeg_decode_frame(), ff_mjpeg_find_marker(), ff_vorbis_comment(), flac_parse(), load_input_picture(), parse_packed_headers(), revert_channel_correlation(), wma_decode_superframe(), zmbv_decode_xor_16(), zmbv_decode_xor_32(), and zmbv_decode_xor_8().
#define SIZE_SPECIFIER "zu" |
Definition at line 262 of file internal.h.
Referenced by aom_encode(), aom_init(), ape_read_header(), apply_cropping(), avgblur_opencl_filter_frame(), cbs_h2645_write_nal_unit(), cbs_jpeg_write_unit(), cbs_mpeg2_write_unit(), convolution_opencl_filter_frame(), dnxhd_decode_header(), dump_enc_cfg(), dump_spherical(), epic_jb_decode_tile(), ff_h264_decode_picture_parameter_set(), ff_hevc_decode_nal_pps(), ff_hevc_decode_nal_sps(), ff_hevc_decode_nal_vps(), get_http_header_data(), get_tcp_server_response(), hap_compress_frame(), hq_decode_frame(), hqa_decode_frame(), http_write_reply(), jpeg2000_decode_packet(), neighbor_opencl_filter_frame(), parse_multipart_header(), queue_frames(), read_data_packet(), read_geobtag(), storeframe(), unsharp_opencl_filter_frame(), vpx_init(), and x8_vlc_init().
#define ff_dlog | ( | ctx, | |
... | |||
) | do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0) |
Definition at line 268 of file internal.h.
#define SUINT unsigned |
Definition at line 277 of file internal.h.
#define SUINT32 uint32_t |
Definition at line 278 of file internal.h.
#define FF_PSEUDOPAL AV_PIX_FMT_FLAG_PSEUDOPAL |
Definition at line 367 of file internal.h.
Referenced by av_image_alloc(), av_image_fill_pointers(), av_image_get_buffer_size(), calc_cropping_offsets(), config_props(), decode_frame(), ff_draw_init(), ff_frame_pool_get(), ff_frame_pool_video_init(), filter_frame(), image_copy(), raw_decode(), raw_init_decoder(), shuffleplanes_config_input(), smv_img_pnt(), validate_avframe_allocation(), and video_get_buffer().
Log a generic warning message about a missing feature.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | msg | string containing the name of the missing feature |
Referenced by aac_adtstoasc_filter(), alac_decode_frame(), alac_decode_init(), amr_decode_fix_avctx(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_init(), atrac3p_decode_frame(), avi_write_header(), bmp_decode_frame(), cfhd_decode(), codec2_read_header(), cpia_decode_frame(), decode_audio_specific_config_gb(), decode_block(), decode_eld_specific_config(), decode_element(), decode_extension_payload(), decode_frame(), decode_ga_specific_config(), decode_gop_header(), decode_group3_2d_line(), decode_header(), decode_ics(), decode_idat_chunk(), decode_seq_header(), decode_subframe(), decode_tones_info(), ff_get_wav_header(), ff_h264_decode_picture_parameter_set(), ff_hevc_encode_nal_vps(), ff_ivi_decode_frame(), ff_jpegls_decode_picture(), ff_mjpeg_decode_sof(), ff_mjpeg_decode_sos(), ff_rtp_send_vc2hq(), ff_rv10_encode_picture_header(), ff_silk_decode_superframe(), ff_spdif_read_packet(), ff_vc1_parse_frame_header_adv(), g2m_decode_frame(), g2m_load_cursor(), g723_1_encode_init(), get_packet_header(), h264_handle_packet(), handle_id3(), hevc_handle_packet(), jpeg_parse_packet(), libopenjpeg_decode_frame(), matroska_read_header(), mpc8_read_header(), mpegaudio_parse(), ogg_replace_stream(), old_codec37(), old_codec47(), parse_adts_frame_header(), parse_bit_alloc(), parse_channel(), parse_decoder_init(), parse_fmtp_config(), parse_MP4SLDescrTag(), parse_packed_headers(), pixfmt_from_pixmap_format(), read_frame_header(), read_header(), rpl_read_header(), rso_read_header(), rso_write_header(), s337m_get_offset_and_codec(), set_option(), shorten_decode_frame(), spdif_write_header(), svq3_decode_slice_header(), tak_decode_frame(), tiff_decode_tag(), txd_decode_frame(), v4l2_check_b_frame_support(), vfw_read_header(), vp5_parse_header(), vp6_parse_header(), vp9_handle_packet(), vqa_decode_init(), wv_read_block_header(), xcbgrab_read_header(), xiph_handle_packet(), and xwd_decode_frame().
Log a generic warning message about a missing feature.
Additionally request that a sample showcasing the feature be uploaded.
[in] | avc | a pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct |
[in] | msg | string containing the name of the missing feature |
Referenced by aac_decode_er_frame(), alac_decode_init(), amrwb_decode_frame(), ape_decode_init(), apng_read_packet(), asf_get_packet(), ast_read_header(), avi_extract_stream_metadata(), avr_read_header(), cdxl_decode_frame(), chs_parse_header(), cine_read_header(), cinepak_predecode_check(), compute_band_indexes(), cook_decode_init(), coupling_strategy(), dcstr_read_header(), decode_band_hdr(), decode_bytes(), decode_cdlms(), decode_channel_transform(), decode_dlta(), decode_eld_specific_config(), decode_element(), decode_frame(), decode_frame_headers(), decode_header(), decode_idat_chunk(), decode_init(), decode_move(), decode_mvc2(), decode_nal_units(), decode_nop(), decode_packet(), decode_scalefactors(), decode_sgirle8(), decode_studio_vol_header(), decode_studiovisualobject(), decode_subframe(), decode_wmv9(), decode_yuv_frame(), determine_bitrate(), dnxhd_decode_header(), dsf_read_header(), dss_read_header(), dxtory_decode_v2(), dxva2_mpeg2_decode_slice(), dxva2_vc1_decode_slice(), ea_read_packet(), encode_frame(), epaf_read_header(), epic_decode_pixel_pred(), execute_code(), exif_add_metadata(), ff_adx_decode_header(), ff_dca_exss_parse(), ff_eac3_parse_header(), ff_get_wav_header(), ff_h264_decode_seq_parameter_set(), ff_h264_pred_weight_table(), ff_hevc_parse_sps(), ff_jpegls_decode_lse(), ff_mjpeg_decode_sof(), ff_mpeg4_decode_picture_header(), ff_opus_parse_extradata(), ff_parse_mpeg2_descriptor(), ff_spdif_read_packet(), fill_coding_method_array(), flashsv_decode_frame(), flv_read_packet(), flv_set_audio_codec(), flv_set_video_codec(), fsb_read_header(), g2m_decode_frame(), genh_read_header(), get_aiff_header(), get_edit_list_entry(), get_packet_header(), get_poc(), get_scale_factor(), get_siz(), get_sot(), h263p_decode_umotion(), h264_field_start(), handle_p_frame_apng(), hq_decode_frame(), iff_read_header(), imc_decode_init(), jp2_find_codestream(), jpeg2000_decode_packet(), jpeg2000_decode_packets_po_iteration(), lag_decode_zero_run_line(), load_buffer(), lvf_read_header(), m101_decode_init(), magy_decode_frame(), magy_decode_slice(), magy_decode_slice10(), mimic_decode_frame(), mov_build_index(), mov_read_mdhd(), mov_read_sidx(), mpc7_decode_init(), mpc8_decode_init(), mpeg4_decode_sprite_trajectory(), msf_read_header(), mtv_read_header(), musx_read_header(), mv_read_header(), mxf_parse_structural_metadata(), mxf_read_packet(), mxf_read_primer_pack(), nist_read_header(), oma_read_header(), on2avc_decode_init(), output_configure(), paf_video_decode(), parse_coding_header(), parse_common_header(), parse_dsd_prop(), parse_fmtp(), parse_setup_header(), parse_video_var(), parse_xxch_frame(), pix_decode_frame(), pixlet_decode_frame(), process_audio_header_eacs(), process_audio_header_elements(), process_ea_header(), process_frame_obj(), ptx_decode_frame(), qdm2_decode_init(), qdmc_decode_init(), qt_rtp_parse_packet(), read_block_data(), read_decoding_params(), read_frame(), read_header(), read_kuki_chunk(), read_major_sync(), read_restart_header(), read_sbr_extension(), read_stream_mux_config(), read_table(), rm_read_audio_stream_info(), rm_read_multi(), roq_decode_init(), rpl_read_header(), rsd_read_header(), rso_read_header(), rv10_decode_init(), rv10_decode_picture_header(), save_bits(), save_subtitle_set(), scan_file(), smc_decode_stream(), smjpeg_read_header(), spdif_get_offset_and_codec(), spdif_header_dts(), spdif_header_truehd(), sunrast_decode_frame(), svq3_decode_frame(), synth_superframe(), tdsc_load_cursor(), tdsc_parse_dtsm(), threedostr_read_header(), tiff_decode_tag(), tm2_read_header(), truemotion1_decode_header(), truespeech_decode_init(), unsupported(), update_odml_entry(), vc1_decode_init(), vcr1_decode_init(), vp7_decode_frame_header(), vp8_decode_frame_header(), vqa_decode_init(), wsaud_read_header(), wsd_read_header(), wsd_to_av_channel_layoyt(), xa_decode(), xan_wc3_copy_pixel_run(), xma_decode_init(), xmv_read_header(), xvag_read_header(), xwd_decode_frame(), xwma_read_header(), and zero12v_decode_init().
|
static |
Clip and convert a double value into the long long amin-amax range.
This function is needed because conversion of floating point to integers when it does not fit in the integer's representation does not necessarily saturate correctly (usually converted to a cvttsd2si on x86) which saturates numbers
INT64_MAX to INT64_MIN. The standard marks such conversions as undefined
behavior, allowing this sort of mathematically bogus conversions. This provides a safe alternative that is slower obviously but assures safety and better mathematical behavior.
a | value to clip |
amin | minimum value of the clip range |
amax | maximum value of the clip range |
Definition at line 295 of file internal.h.
av_warn_unused_result int avpriv_open | ( | const char * | filename, |
int | flags, | ||
... | |||
) |
A wrapper for open() setting O_CLOEXEC.
Definition at line 66 of file file_open.c.
Referenced by av_file_map(), av_fopen_utf8(), bktr_init(), fbdev_read_header(), fbdev_write_header(), ff_fbdev_get_device_list(), ff_oss_audio_open(), and read_random().
Wrapper to work around the lack of mkstemp() on mingw.
Also, tries to create file in /tmp first, if possible. *prefix can be a character constant; *filename will be allocated internally.
Definition at line 110 of file file_open.c.
Referenced by av_tempfile(), cache_open(), and xvid_encode_init().
int avpriv_set_systematic_pal2 | ( | uint32_t | pal[256], |
enum AVPixelFormat | pix_fmt | ||
) |
Definition at line 152 of file imgutils.c.
Referenced by av_image_alloc(), bmp_encode_frame(), ff_frame_pool_get(), filter_frame(), gif_encode_init(), gif_write_header(), pcx_encode_frame(), raw_init_decoder(), video_get_buffer(), and xwd_encode_frame().
|
static |
Definition at line 338 of file internal.h.
Referenced by avfilter_transform(), blur(), compose(), decompose(), spatial_compose53i_buffered_init(), spatial_compose53i_dy(), spatial_compose53i_dy_buffered(), spatial_compose53i_init(), spatial_compose53i_init_TMPL(), spatial_compose97i_buffered_init(), spatial_compose97i_dy(), spatial_compose97i_dy_buffered(), spatial_compose97i_init(), spatial_compose97i_init_TMPL(), spatial_compose_daub97i_dy_TMPL(), spatial_compose_dirac53i_dy_TMPL(), spatial_decompose53i(), and spatial_decompose97i().
int avpriv_dict_set_timestamp | ( | AVDictionary ** | dict, |
const char * | key, | ||
int64_t | timestamp | ||
) |
Set a dictionary value to an ISO-8601 compliant timestamp string.
s | AVFormatContext |
key | metadata key |
timestamp | unix timestamp in microseconds |
Definition at line 258 of file dict.c.
Referenced by ff_standardize_creation_time(), matroska_metadata_creation_time(), and mov_metadata_creation_time().