Go to the documentation of this file.
54 db = strtol(
value, &fraction, 0);
55 if (*fraction++ ==
'.') {
57 mb +=
scale * (*fraction -
'0');
63 if (llabs(db) > (INT32_MAX -
mb) / 100000)
66 return db * 100000 + sign *
mb;
75 if (tg == INT32_MIN && ag == INT32_MIN)
81 sizeof(*replaygain), 0);
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.
This structure stores auxiliary information for decoding, presenting, or otherwise processing the cod...
int32_t album_gain
Same as track_gain, but for the whole album.
@ 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.
int nb_coded_side_data
Amount of entries in coded_side_data.
uint32_t track_peak
Peak track amplitude, with 100000 representing full scale (but values may overflow).
AVCodecParameters * codecpar
Codec parameters associated with this stream.
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
AVPacketSideData * coded_side_data
Additional data associated with the entire stream.
AVPacketSideData * av_packet_side_data_new(AVPacketSideData **psd, int *pnb_sd, enum AVPacketSideDataType type, size_t size, int flags)
Allocate a new packet side data.
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....
static void scale(int *out, const int *in, const int w, const int h, const int shift)