Go to the documentation of this file.
54 db = strtol(
value, &fraction, 0);
55 if (*fraction++ ==
'.') {
57 mb +=
scale * (*fraction -
'0');
63 if (
abs(db) > (INT32_MAX -
mb) / 100000)
66 return db * 100000 + sign *
mb;
74 if (
tg == INT32_MIN && ag == INT32_MIN)
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
int ff_replaygain_export(AVStream *st, AVDictionary *metadata)
Parse replaygain tags and export them as per-stream side data.
int ff_replaygain_export_raw(AVStream *st, int32_t tg, uint32_t tp, int32_t ag, uint32_t ap)
Export already decoded replaygain values as per-stream side data.
int32_t album_gain
Same as track_gain, but for the whole album.
static av_always_inline float scale(float x, float s)
@ AV_PKT_DATA_REPLAYGAIN
This side data should be associated with an audio stream and contains ReplayGain information in form ...
AVDictionaryEntry * av_dict_get(const AVDictionary *m, const char *key, const AVDictionaryEntry *prev, int flags)
Get a dictionary entry with matching key.
uint32_t track_peak
Peak track amplitude, with 100000 representing full scale (but values may overflow).
int32_t track_gain
Track replay gain in microbels (divide by 100000 to get the value in dB).
static av_const int av_isdigit(int c)
Locale-independent conversion of ASCII isdigit.
static int32_t parse_value(const char *value, int32_t min)
it s the only field you need to keep assuming you have a context There is some magic you don t need to care about around this just let it vf default value
uint32_t album_peak
Same as track_peak, but for the whole album,.
ReplayGain information (see http://wiki.hydrogenaudio.org/index.php?title=ReplayGain_1....
uint8_t * av_stream_new_side_data(AVStream *stream, enum AVPacketSideDataType type, size_t size)
Allocate new information from stream.