FFmpeg
Loading...
Searching...
No Matches
internal.h File Reference

common internal API header More...

#include <limits.h>
#include <stdint.h>
#include <stddef.h>
#include <assert.h>
#include <stdio.h>
#include "config.h"
#include "attributes.h"
#include "libm.h"
#include "macros.h"

Go to the source code of this file.

Macros

#define NDEBUG
 
#define attribute_align_arg
 
#define FF_DISABLE_DEPRECATION_WARNINGS
 
#define FF_ENABLE_DEPRECATION_WARNINGS
 
#define FF_ALLOC_TYPED_ARRAY(p, nelem)
 
#define FF_ALLOCZ_TYPED_ARRAY(p, nelem)
 
#define FF_PTR_ADD(ptr, off)
 
#define FF_FIELD_AT(type, off, obj)
 Access a field in a structure by its offset.
 
#define NULL_IF_CONFIG_SMALL(x)
 Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.
 
#define ff_dlog(ctx, ...)
 
#define ff_tlog(ctx, ...)
 
#define SUINT   unsigned
 
#define SUINT32   uint32_t
 

Functions

void avpriv_report_missing_feature (void *avc, const char *msg,...) av_printf_format(2
 Log a generic warning message about a missing feature.
 
void void avpriv_request_sample (void *avc, const char *msg,...) av_printf_format(2
 Log a generic warning message about a missing feature.
 
static av_always_inline av_const int avpriv_mirror (int x, int w)
 

Detailed Description

common internal API header

Definition in file internal.h.

Macro Definition Documentation

◆ NDEBUG

#define NDEBUG

Definition at line 30 of file internal.h.

◆ attribute_align_arg

◆ FF_DISABLE_DEPRECATION_WARNINGS

#define FF_DISABLE_DEPRECATION_WARNINGS

◆ FF_ENABLE_DEPRECATION_WARNINGS

#define FF_ENABLE_DEPRECATION_WARNINGS

◆ FF_ALLOC_TYPED_ARRAY

#define FF_ALLOC_TYPED_ARRAY ( p,
nelem )
Value:
(p = av_malloc_array(nelem, sizeof(*p)))
#define av_malloc_array(a, b)

Definition at line 71 of file internal.h.

Referenced by adpcm_encode_init(), allocate_buffers(), config_input(), ff_mpv_init_context_frame(), init_mdct_win(), initFilter(), and mxf_read_index_entry_array().

◆ FF_ALLOCZ_TYPED_ARRAY

◆ FF_PTR_ADD

#define FF_PTR_ADD ( ptr,
off )

◆ FF_FIELD_AT

#define FF_FIELD_AT ( type,
off,
obj )
Value:
(*(type *)((char *)&(obj) + (off)))
cl_device_type type

Access a field in a structure by its offset.

Definition at line 79 of file internal.h.

Referenced by print_filter_formats(), print_link_formats(), and query_formats().

◆ NULL_IF_CONFIG_SMALL

#define NULL_IF_CONFIG_SMALL ( x)
Value:
x

Return NULL if CONFIG_SMALL is true, otherwise the argument without modification.

Used to disable the definition of strings.

Definition at line 88 of file internal.h.

◆ ff_dlog

#define ff_dlog ( ctx,
... )
Value:
do { if (0) av_log(ctx, AV_LOG_DEBUG, __VA_ARGS__); } while (0)
static AVFormatContext * ctx
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
Definition log.h:231
#define av_log(a,...)

Definition at line 115 of file internal.h.

◆ ff_tlog

#define ff_tlog ( ctx,
... )
Value:
do { } while(0)

Definition at line 121 of file internal.h.

◆ SUINT

#define SUINT   unsigned

Definition at line 130 of file internal.h.

◆ SUINT32

#define SUINT32   uint32_t

Definition at line 131 of file internal.h.

Function Documentation

◆ avpriv_report_missing_feature()

void avpriv_report_missing_feature ( void * avc,
const char * msg,
... )

Log a generic warning message about a missing feature.

Parameters
[in]avca pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct
[in]msgstring containing the name of the missing feature

Referenced by aac_adtstoasc_filter(), aac_decode_frame_int(), alac_decode_frame(), alac_decode_init(), amrnb_decode_frame(), amrnb_decode_init(), amrwb_decode_init(), atrac3p_decode_frame(), av1_handle_packet(), avi_write_header(), bmp_decode_frame(), cfhd_decode(), check_modelinput_inlink(), check_output_nb(), codec2_read_header(), cpia_decode_frame(), decode_audio_specific_config_gb(), decode_bl16(), decode_block(), decode_drc_config(), decode_eld_specific_config(), decode_element(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_frame(), decode_ga_specific_config(), decode_gop_header(), decode_group3_2d_line(), decode_header(), decode_idat_chunk(), decode_nal_unit(), decode_seq_header(), decode_tones_info(), decode_usac_core_coder(), decode_usac_sbr_data(), decode_usac_stereo_info(), dnn_detect_post_proc(), dnn_execute_model_ov(), dvbsub_parse_object_segment(), execute_model_onnx(), ff_aac_decode_ics(), 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_proc_from_dnn_to_frame(), ff_proc_from_frame_to_dnn(), ff_rtp_send_vc2hq(), ff_spdif_read_packet(), ff_vc1_parse_frame_header_adv(), ff_vvc_slice_rpl(), fill_model_input_onnx(), fill_model_input_tf(), fill_model_input_th(), g2m_decode_frame(), g2m_load_cursor(), g723_1_encode_init(), get_input_onnx(), get_packet_header(), h264_handle_packet(), handle_id3(), hevc_handle_packet(), infer_completion_callback(), infer_completion_callback(), init_model_ov(), jpeg_parse_packet(), mov_read_iloc(), mov_read_infe(), mov_read_iref_dimg(), mpc8_read_header(), mpegaudio_parse(), ogg_replace_stream(), old_codec37(), old_codec47(), old_codec48(), onnx_start_inference(), 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_header(), rpl_read_header(), rso_read_header(), rso_write_header(), rv10_encode_init(), 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(), vp9_handle_packet(), wv_read_block_header(), xcbgrab_read_header(), xiph_handle_packet(), and xwd_decode_frame().

◆ avpriv_request_sample()

void void avpriv_request_sample ( void * avc,
const char * msg,
... )

Log a generic warning message about a missing feature.

Additionally request that a sample showcasing the feature be uploaded.

Parameters
[in]avca pointer to an arbitrary struct of which the first field is a pointer to an AVClass struct
[in]msgstring containing the name of the missing feature

◆ avpriv_mirror()