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

AVBPrint public header. More...

#include <stdarg.h>
#include "attributes.h"
#include "avstring.h"

Go to the source code of this file.

Macros

#define FF_PAD_STRUCTURE(name, size, ...)
 Define a structure with extra padding to a fixed size This helps ensuring binary compatibility with future versions.
 
#define AV_BPRINT_SIZE_UNLIMITED   ((unsigned)-1)
 
#define AV_BPRINT_SIZE_AUTOMATIC   1
 
#define AV_BPRINT_SIZE_COUNT_ONLY   0
 

Functions

void av_bprint_init_for_buffer (AVBPrint *buf, char *buffer, unsigned size)
 Init a print buffer using a pre-existing buffer.
 
void av_bprintf (AVBPrint *buf, const char *fmt,...) av_printf_format(2
 Append a formatted string to a print buffer.
 
void void av_vbprintf (AVBPrint *buf, const char *fmt, va_list vl_arg)
 Append a formatted string to a print buffer.
 
void av_bprint_chars (AVBPrint *buf, char c, unsigned n)
 Append char c n times to a print buffer.
 
void av_bprint_append_data (AVBPrint *buf, const char *data, unsigned size)
 Append data to a print buffer.
 
void av_bprint_strftime (AVBPrint *buf, const char *fmt, const struct tm *tm)
 Append a formatted date and time to a print buffer.
 
void av_bprint_get_buffer (AVBPrint *buf, unsigned size, unsigned char **mem, unsigned *actual_size)
 Allocate bytes in the buffer for external use.
 
void av_bprint_clear (AVBPrint *buf)
 Reset the string to "" but keep internal allocated data.
 
static int av_bprint_is_complete (const AVBPrint *buf)
 Test if the print buffer is complete (not truncated).
 
int av_bprint_finalize (AVBPrint *buf, char **ret_str)
 Finalize a print buffer.
 
void av_bprint_escape (AVBPrint *dstbuf, const char *src, const char *special_chars, enum AVEscapeMode mode, int flags)
 Escape the content in src and append it to dstbuf.
 

Variables

unsigned size_init
 
unsigned unsigned size_max
 

Detailed Description

AVBPrint public header.

Definition in file bprint.h.

Macro Definition Documentation

◆ AV_BPRINT_SIZE_UNLIMITED

#define AV_BPRINT_SIZE_UNLIMITED   ((unsigned)-1)

Referenced by asmgen(), ass_read_header(), av_dict_get_string(), av_opt_serialize(), av_strireplace(), avtext_context_open(), avtext_print_data(), chunk_end(), compact_print_str(), concat_parse_script(), configure_output_audio_filter(), configure_output_video_filter(), create_ass_text(), dashenc_delete_segment_file(), decode_frame_common(), decode_zbuf(), dict_to_headers(), disp_tree(), dump_curves(), exif_ifd_to_dict(), ff_id3v2_parse_priv_dict(), ff_img_read_packet(), ff_print_debug_info2(), ff_print_time(), ff_tadd_shorts_metadata(), ffprobe_show_program_version(), find_image_range(), flat_print_str(), gen_sub_ass(), gif_read_header(), has_link_pair(), hls_append_segment(), hls_delete_old_segments(), ini_print_str(), init(), init(), init_decoder(), init_graphprint(), istg_parse_tile_grid(), json_print_int(), json_print_item_str(), json_print_section_header(), lavfi_read_header(), libaribb24_handle_regions(), lrc_read_header(), main(), main(), mermaid_init(), mermaid_print_section_header(), mov_read_infe(), mov_read_kind(), mov_text_decode_frame(), mpl2_decode_frame(), mpsub_read_header(), ost_add(), parse_file(), print_dovi_metadata(), print_film_grain_params(), print_filter_formats(), print_iamf_audio_element_params(), print_link_formats(), print_op(), print_sanizied_id(), print_section_header_id(), print_streams(), read_file_to_string(), read_header(), realtext_read_header(), replace_int_data_in_filename(), replace_str_data_in_filename(), rtmp_open(), sami_read_header(), set_segment_filename(), show_frame(), show_packet(), show_stream(), show_stream_group(), show_subtitle(), srt_decode_frame(), srt_read_header(), subviewer_decode_frame(), subviewer_read_header(), sws_uops_macros_gen(), text_decode_frame(), tlog_ref(), ttml_text_cb(), validate_string(), webvtt_decode_frame(), webvtt_event_to_ass(), webvtt_read_header(), write_frame(), write_packet(), xml_print_section_header(), and xml_print_value().

◆ AV_BPRINT_SIZE_AUTOMATIC

◆ AV_BPRINT_SIZE_COUNT_ONLY

#define AV_BPRINT_SIZE_COUNT_ONLY   0