32 #define APE_TAG_FLAG_CONTAINS_HEADER (1U << 31) 33 #define APE_TAG_FLAG_LACKS_FOOTER (1 << 30) 34 #define APE_TAG_FLAG_IS_HEADER (1 << 29) 35 #define APE_TAG_FLAG_IS_BINARY (1 << 1) 46 for (i = 0; i <
sizeof(
key) - 1; i++) {
48 if (c < 0x20 || c > 0x7E)
70 ret =
avio_get_str(pb, size, filename,
sizeof(filename));
155 if (fields > 65536) {
166 avio_seek(pb, file_size - tag_bytes, SEEK_SET);
171 tag_start = file_size - tag_bytes;
181 while (*str && *str >= 0x20 && *str <= 0x7e ) str++;
204 val_len = strlen(e->
value);
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
int64_t avio_size(AVIOContext *s)
Get the filesize.
#define AV_LOG_WARNING
Something somehow does not look correct.
enum AVCodecID codec_id
Specific type of the encoded data (the codec used).
int index
stream index in AVFormatContext
int64_t avio_seek(AVIOContext *s, int64_t offset, int whence)
fseek() equivalent for AVIOContext.
int avio_open_dyn_buf(AVIOContext **s)
Open a write only memory stream.
void avio_wl32(AVIOContext *s, unsigned int val)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
GLsizei GLboolean const GLfloat * value
AVStream * avformat_new_stream(AVFormatContext *s, const AVCodec *c)
Add a new stream to a media file.
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
void avio_write(AVIOContext *s, const unsigned char *buf, int size)
int avio_read(AVIOContext *s, unsigned char *buf, int size)
Read size bytes from AVIOContext into buf.
#define AV_PKT_FLAG_KEY
The packet contains a keyframe.
AVCodecID
Identify the syntax and semantics of the bitstream.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
AVDictionary * metadata
Metadata that applies to the whole file.
unsigned int avio_rl32(AVIOContext *s)
#define APE_TAG_HEADER_BYTES
enum AVMediaType codec_type
General type of the encoded data.
int64_t ff_ape_parse_tag(AVFormatContext *s)
Read and parse an APE tag.
int flags
A combination of AV_PKT_FLAG values.
int avio_r8(AVIOContext *s)
the definition of that something depends on the semantic of the filter The callback must examine the status of the filter s links and proceed accordingly The status of output links is stored in the status_in and status_out fields and tested by the then the processing requires a frame on this link and the filter is expected to make efforts in that direction The status of input links is stored by the fifo and status_out fields
void ffio_fill(AVIOContext *s, int b, int count)
static int string_is_ascii(const uint8_t *str)
#define AV_DICT_DONT_STRDUP_VAL
Take ownership of a value that's been allocated with av_malloc() or another memory allocation functio...
#define APE_TAG_FLAG_CONTAINS_HEADER
#define APE_TAG_FLAG_IS_BINARY
Opaque data information usually sparse.
#define APE_TAG_FOOTER_BYTES
void ffio_free_dyn_buf(AVIOContext **s)
Free a dynamic buffer.
int avio_put_str(AVIOContext *s, const char *str)
Write a NULL-terminated string.
AVIOContext * pb
I/O context.
int av_dict_set(AVDictionary **pm, const char *key, const char *value, int flags)
Set the given entry in *pm, overwriting an existing entry.
int ff_ape_write_tag(AVFormatContext *s)
Write an APE tag into a file.
#define flags(name, subs,...)
#define APE_TAG_FLAG_IS_HEADER
int disposition
AV_DISPOSITION_* bit field.
enum AVCodecID ff_guess_image2_codec(const char *filename)
#define AV_INPUT_BUFFER_PADDING_SIZE
Required number of additionally allocated bytes at the end of the input bitstream for decoding...
static int ape_tag_read_field(AVFormatContext *s)
#define AV_DICT_IGNORE_SUFFIX
Return first entry in a dictionary whose first part corresponds to the search key, ignoring the suffix of the found key string.
AVCodecParameters * codecpar
Codec parameters associated with this stream.
int avio_get_str(AVIOContext *pb, int maxlen, char *buf, int buflen)
Read a string from pb into buf.
Filter the word “frame” indicates either a video frame or a group of audio as stored in an AVFrame structure Format for each input and each output the list of supported formats For video that means pixel format For audio that means channel sample they are references to shared objects When the negotiation mechanism computes the intersection of the formats supported at each end of a all references to both lists are replaced with a reference to the intersection And when a single format is eventually chosen for a link amongst the remaining all references to the list are updated That means that if a filter requires that its input and output have the same format amongst a supported all it has to do is use a reference to the same list of formats query_formats can leave some formats unset and return AVERROR(EAGAIN) to cause the negotiation mechanism toagain later.That can be used by filters with complex requirements to use the format negotiated on one link to set the formats supported on another.Frame references ownership and permissions
static double val(void *priv, double ch)
This structure stores compressed data.
AVPacket attached_pic
For streams with AV_DISPOSITION_ATTACHED_PIC disposition, this packet will contain the attached pictu...
int avio_get_dyn_buf(AVIOContext *s, uint8_t **pbuffer)
Return the written size and a pointer to the buffer.