OXIESEC PANEL
- Current Dir:
/
/
usr
/
include
/
x86_64-linux-gnu
/
libavutil
Server IP: 139.59.38.164
Upload:
Create Dir:
Name
Size
Modified
Perms
📁
..
-
10/28/2024 06:50:44 AM
rwxr-xr-x
📄
adler32.h
1.63 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
aes.h
1.79 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
aes_ctr.h
2.07 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
attributes.h
4.47 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
audio_fifo.h
5.78 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
avassert.h
2.3 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
avconfig.h
170 bytes
05/18/2022 08:01:02 PM
rw-r--r--
📄
avstring.h
13.76 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
avutil.h
9.35 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
base64.h
2.23 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
blowfish.h
2.34 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
bprint.h
7.61 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
bswap.h
2.79 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
buffer.h
10.4 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
camellia.h
2.09 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
cast5.h
2.5 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
channel_layout.h
9.39 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
common.h
15.41 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
cpu.h
5.43 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
crc.h
3.13 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
des.h
2.28 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
dict.h
8.08 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
display.h
3.44 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
downmix_info.h
3.16 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
error.h
5.34 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
eval.h
5.18 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
ffversion.h
196 bytes
05/18/2022 08:01:02 PM
rw-r--r--
📄
fifo.h
5.76 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
file.h
2.5 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
frame.h
25.96 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hash.h
8.24 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hmac.h
2.82 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext.h
22.43 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_cuda.h
1.43 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_d3d11va.h
6.06 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_drm.h
4.46 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_dxva2.h
2.35 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_qsv.h
1.52 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_vaapi.h
3.7 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_vdpau.h
1.33 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
hwcontext_videotoolbox.h
1.84 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
imgutils.h
11.26 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
intfloat.h
1.69 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
intreadwrite.h
18.13 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
lfg.h
2.44 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
log.h
11.4 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
lzo.h
2 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
macros.h
1.22 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
mastering_display_metadata.h
3.85 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
mathematics.h
7.82 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
md5.h
2.27 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
mem.h
22.92 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
motion_vector.h
1.73 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
murmur3.h
3.4 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
opt.h
35.25 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
parseutils.h
7.4 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
pixdesc.h
15.18 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
pixelutils.h
2.02 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
pixfmt.h
33.54 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
random_seed.h
1.37 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
rational.h
5.71 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
rc4.h
1.84 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
replaygain.h
1.57 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
ripemd.h
2.11 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
samplefmt.h
10.08 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
sha.h
2.45 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
sha512.h
2.5 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
spherical.h
7.84 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
stereo3d.h
4.72 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
tea.h
1.99 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
threadmessage.h
3.58 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
time.h
1.76 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
timecode.h
5.2 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
timestamp.h
2.56 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
tree.h
5.3 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
twofish.h
2.19 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
version.h
4.86 KB
05/18/2022 08:01:02 PM
rw-r--r--
📄
xtea.h
2.77 KB
05/18/2022 08:01:02 PM
rw-r--r--
Editing: bprint.h
Close
/* * Copyright (c) 2012 Nicolas George * * This file is part of FFmpeg. * * FFmpeg is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * FFmpeg is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with FFmpeg; if not, write to the Free Software * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA */ #ifndef AVUTIL_BPRINT_H #define AVUTIL_BPRINT_H #include <stdarg.h> #include "attributes.h" #include "avstring.h" /** * Define a structure with extra padding to a fixed size * This helps ensuring binary compatibility with future versions. */ #define FF_PAD_STRUCTURE(name, size, ...) \ struct ff_pad_helper_##name { __VA_ARGS__ }; \ typedef struct name { \ __VA_ARGS__ \ char reserved_padding[size - sizeof(struct ff_pad_helper_##name)]; \ } name; /** * Buffer to print data progressively * * The string buffer grows as necessary and is always 0-terminated. * The content of the string is never accessed, and thus is * encoding-agnostic and can even hold binary data. * * Small buffers are kept in the structure itself, and thus require no * memory allocation at all (unless the contents of the buffer is needed * after the structure goes out of scope). This is almost as lightweight as * declaring a local "char buf[512]". * * The length of the string can go beyond the allocated size: the buffer is * then truncated, but the functions still keep account of the actual total * length. * * In other words, buf->len can be greater than buf->size and records the * total length of what would have been to the buffer if there had been * enough memory. * * Append operations do not need to be tested for failure: if a memory * allocation fails, data stop being appended to the buffer, but the length * is still updated. This situation can be tested with * av_bprint_is_complete(). * * The size_max field determines several possible behaviours: * * size_max = -1 (= UINT_MAX) or any large value will let the buffer be * reallocated as necessary, with an amortized linear cost. * * size_max = 0 prevents writing anything to the buffer: only the total * length is computed. The write operations can then possibly be repeated in * a buffer with exactly the necessary size * (using size_init = size_max = len + 1). * * size_max = 1 is automatically replaced by the exact size available in the * structure itself, thus ensuring no dynamic memory allocation. The * internal buffer is large enough to hold a reasonable paragraph of text, * such as the current paragraph. */ FF_PAD_STRUCTURE(AVBPrint, 1024, char *str; /**< string so far */ unsigned len; /**< length so far */ unsigned size; /**< allocated memory */ unsigned size_max; /**< maximum allocated memory */ char reserved_internal_buffer[1]; ) /** * Convenience macros for special values for av_bprint_init() size_max * parameter. */ #define AV_BPRINT_SIZE_UNLIMITED ((unsigned)-1) #define AV_BPRINT_SIZE_AUTOMATIC 1 #define AV_BPRINT_SIZE_COUNT_ONLY 0 /** * Init a print buffer. * * @param buf buffer to init * @param size_init initial size (including the final 0) * @param size_max maximum size; * 0 means do not write anything, just count the length; * 1 is replaced by the maximum value for automatic storage; * any large value means that the internal buffer will be * reallocated as needed up to that limit; -1 is converted to * UINT_MAX, the largest limit possible. * Check also AV_BPRINT_SIZE_* macros. */ void av_bprint_init(AVBPrint *buf, unsigned size_init, unsigned size_max); /** * Init a print buffer using a pre-existing buffer. * * The buffer will not be reallocated. * * @param buf buffer structure to init * @param buffer byte buffer to use for the string data * @param size size of buffer */ void av_bprint_init_for_buffer(AVBPrint *buf, char *buffer, unsigned size); /** * Append a formatted string to a print buffer. */ void av_bprintf(AVBPrint *buf, const char *fmt, ...) av_printf_format(2, 3); /** * Append a formatted string to a print buffer. */ void av_vbprintf(AVBPrint *buf, const char *fmt, va_list vl_arg); /** * Append char c n times to a print buffer. */ void av_bprint_chars(AVBPrint *buf, char c, unsigned n); /** * Append data to a print buffer. * * param buf bprint buffer to use * param data pointer to data * param size size of data */ void av_bprint_append_data(AVBPrint *buf, const char *data, unsigned size); struct tm; /** * Append a formatted date and time to a print buffer. * * param buf bprint buffer to use * param fmt date and time format string, see strftime() * param tm broken-down time structure to translate * * @note due to poor design of the standard strftime function, it may * produce poor results if the format string expands to a very long text and * the bprint buffer is near the limit stated by the size_max option. */ void av_bprint_strftime(AVBPrint *buf, const char *fmt, const struct tm *tm); /** * Allocate bytes in the buffer for external use. * * @param[in] buf buffer structure * @param[in] size required size * @param[out] mem pointer to the memory area * @param[out] actual_size size of the memory area after allocation; * can be larger or smaller than size */ void av_bprint_get_buffer(AVBPrint *buf, unsigned size, unsigned char **mem, unsigned *actual_size); /** * Reset the string to "" but keep internal allocated data. */ void av_bprint_clear(AVBPrint *buf); /** * Test if the print buffer is complete (not truncated). * * It may have been truncated due to a memory allocation failure * or the size_max limit (compare size and size_max if necessary). */ static inline int av_bprint_is_complete(const AVBPrint *buf) { return buf->len < buf->size; } /** * Finalize a print buffer. * * The print buffer can no longer be used afterwards, * but the len and size fields are still valid. * * @arg[out] ret_str if not NULL, used to return a permanent copy of the * buffer contents, or NULL if memory allocation fails; * if NULL, the buffer is discarded and freed * @return 0 for success or error code (probably AVERROR(ENOMEM)) */ int av_bprint_finalize(AVBPrint *buf, char **ret_str); /** * Escape the content in src and append it to dstbuf. * * @param dstbuf already inited destination bprint buffer * @param src string containing the text to escape * @param special_chars string containing the special characters which * need to be escaped, can be NULL * @param mode escape mode to employ, see AV_ESCAPE_MODE_* macros. * Any unknown value for mode will be considered equivalent to * AV_ESCAPE_MODE_BACKSLASH, but this behaviour can change without * notice. * @param flags flags which control how to escape, see AV_ESCAPE_FLAG_* macros */ void av_bprint_escape(AVBPrint *dstbuf, const char *src, const char *special_chars, enum AVEscapeMode mode, int flags); #endif /* AVUTIL_BPRINT_H */