/** *Fillplanedatapointersandlinesizeforsampleswithsample *formatsample_fmt. * *Theaudio_dataarrayisfilledwiththepointerstothesamplesdataplanes: *forplanar,setthestartpointofeachchannel'sdatawithinthebuffer, *forpacked,setthestartpointoftheentirebufferonly. * *Thevaluepointedtobylinesizeissettothealignedsizeofeach *channel'sdatabufferforplanarlayout,ortothealignedsizeofthe *bufferforallchannelsforpackedlayout. * *Thebufferinbufmustbebigenoughtocontainallthesamples *(useav_samples_get_buffer_size()tocomputeitsminimumsize), *otherwisetheaudio_datapointerswillpointtoinvaliddata. * *@seeenumAVSampleFormat *ThedocumentationforAVSampleFormatdescribesthedatalayout. * *@param[out]audio_dataarraytobefilledwiththepointerforeachchannel *@param[out]linesizecalculatedlinesize,maybeNULL *@parambufthepointertoabuffercontainingthesamples *@paramnb_channelsthenumberofchannels *@paramnb_samplesthenumberofsamplesinasinglechannel *@paramsample_fmtthesampleformat *@paramalignbuffersizealignment(0=default,1=noalignment) *@returnminimumsizeinbytesrequiredforthebufferonsuccess, *oranegativeerrorcodeonfailure
*/ int av_samples_fill_arrays(uint8_t **audio_data, int *linesize, const uint8_t *buf, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align);
/** *Allocateasamplesbufferfornb_samplessamples,andfilldatapointersand *linesizeaccordingly. *Theallocatedsamplesbuffercanbefreedbyusingav_freep(&audio_data[0]) *Allocateddatawillbeinitializedtosilence. * *@seeenumAVSampleFormat *ThedocumentationforAVSampleFormatdescribesthedatalayout. * *@param[out]audio_dataarraytobefilledwiththepointerforeachchannel *@param[out]linesizealignedsizeforaudiobuffer(s),maybeNULL *@paramnb_channelsnumberofaudiochannels *@paramnb_samplesnumberofsamplesperchannel *@paramsample_fmtthesampleformat *@paramalignbuffersizealignment(0=default,1=noalignment) *@return>=0onsuccessoranegativeerrorcodeonfailure *@todoreturnthesizeoftheallocatedbufferincaseofsuccessatthenextbump *@seeav_samples_fill_arrays() *@seeav_samples_alloc_array_and_samples()
*/ int av_samples_alloc(uint8_t **audio_data, int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align);
/** *Allocateadatapointersarray,samplesbufferfornb_samples *samples,andfilldatapointersandlinesizeaccordingly. * *Thisisthesameasav_samples_alloc(),butalsoallocatesthedata *pointersarray. * *@seeav_samples_alloc()
*/ int av_samples_alloc_array_and_samples(uint8_t ***audio_data, int *linesize, int nb_channels, int nb_samples, enum AVSampleFormat sample_fmt, int align);
/** *Copysamplesfromsrctodst. * *@paramdstdestinationarrayofpointerstodataplanes *@paramsrcsourcearrayofpointerstodataplanes *@paramdst_offsetoffsetinsamplesatwhichthedatawillbewrittentodst *@paramsrc_offsetoffsetinsamplesatwhichthedatawillbereadfromsrc *@paramnb_samplesnumberofsamplestobecopied *@paramnb_channelsnumberofaudiochannels *@paramsample_fmtaudiosampleformat
*/ int av_samples_copy(uint8_t * const *dst, uint8_t * const *src, int dst_offset, int src_offset, int nb_samples, int nb_channels, enum AVSampleFormat sample_fmt);
/** *Fillanaudiobufferwithsilence. * *@paramaudio_dataarrayofpointerstodataplanes *@paramoffsetoffsetinsamplesatwhichtostartfilling *@paramnb_samplesnumberofsamplestofill *@paramnb_channelsnumberofaudiochannels *@paramsample_fmtaudiosampleformat
*/ int av_samples_set_silence(uint8_t * const *audio_data, int offset, int nb_samples, int nb_channels, enum AVSampleFormat sample_fmt);
/** *@} *@}
*/ #endif/* AVUTIL_SAMPLEFMT_H */
Messung V0.5 in Prozent
¤ Dauer der Verarbeitung: 0.19 Sekunden
(vorverarbeitet am 2026-08-25)
¤
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.