3rd try at a new audio encoding API.
I also included 2 example implementations of AVCodec.encode2().
I plan to convert other encoders once the new API is committed.
One thing I'm unsure about is whether or not it would be a good idea
to add a codec capability to indicate that the output packet will
always have the same pts and duration as the input frame (or the
opposite case). This would avoid duplicating a few lines in each
encoder that uses encode2(). The user wouldn't have to worry about
it because it could be handled in avcodec_encode_audio2().
Thanks,
Justin
Justin Ruggles (7):
avcodec: fix avcodec_encode_audio() documentation.
avcodec: add a public function, avcodec_fill_audio_frame().
avcodec: Add avcodec_encode_audio2() as replacement for
avcodec_encode_audio()
avcodec: bump minor version and add APIChanges for the new audio
encoding API
avconv: use avcodec_encode_audio2()
ac3enc: use AVCodec.encode2()
pcmenc: use AVCodec.encode2()
avconv.c | 212 +++++++++++++++--------------
doc/APIchanges | 8 +
libavcodec/ac3enc.c | 2 +-
libavcodec/ac3enc.h | 8 +-
libavcodec/ac3enc_fixed.c | 2 +-
libavcodec/ac3enc_float.c | 2 +-
libavcodec/ac3enc_template.c | 22 +++-
libavcodec/avcodec.h | 91 ++++++++++++-
libavcodec/internal.h | 25 ++++
libavcodec/pcm.c | 33 +++--
libavcodec/utils.c | 306 ++++++++++++++++++++++++++++++++++--------
libavcodec/version.h | 7 +-
12 files changed, 532 insertions(+), 186 deletions(-)
_______________________________________________
libav-devel mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-devel