[FFmpeg-devel] [PATCH v2 0/6] Improve writing units
Andreas Rheinhardt
andreas.rheinhardt at gmail.com
Sun Nov 17 09:34:34 EET 2019
This patchset supersedes my earlier patches [1], [2], [3]. The main
difference between the earlier version is that I have avoided the
repetition in [2] by factoring out the common parts of writing units
into a single function in cbs.c. This does not hinder the efforts of
reducing memcpy in any way: Then as now one can easily signal via the
return value whether a unit is already finished or whether it is only
within the write buffer.
- Andreas
[1]: https://ffmpeg.org/pipermail/ffmpeg-devel/2019-November/252979.html
[2]: https://ffmpeg.org/pipermail/ffmpeg-devel/2019-November/253022.html
[3]: https://ffmpeg.org/pipermail/ffmpeg-devel/2019-November/253023.html
Andreas Rheinhardt (6):
avcodec/cbs: Factor out common code for writing units
avcodec/cbs: Fix potential overflow
avcodec/cbs_vp9: Write frame data directly
avcodec/cbs_h2645: Write slice data directly
avcodec/cbs_jpeg: Use memcpy when writing pictures
avcodec/cbs_jpeg: Write scan data directly
libavcodec/cbs.c | 70 ++++++++++++++++++--
libavcodec/cbs.h | 7 ++
libavcodec/cbs_av1.c | 59 ++---------------
libavcodec/cbs_av1.h | 4 --
libavcodec/cbs_h2645.c | 134 ++++++++++----------------------------
libavcodec/cbs_h2645.h | 7 --
libavcodec/cbs_internal.h | 8 ++-
libavcodec/cbs_jpeg.c | 88 +++++++------------------
libavcodec/cbs_jpeg.h | 7 --
libavcodec/cbs_mpeg2.c | 64 ++----------------
libavcodec/cbs_mpeg2.h | 4 --
libavcodec/cbs_vp9.c | 64 +++++-------------
libavcodec/cbs_vp9.h | 4 --
13 files changed, 162 insertions(+), 358 deletions(-)
--
2.20.1
More information about the ffmpeg-devel
mailing list