[FFmpeg-devel] [PATCH 2/3] cbs_h264: Improve performance of writing slices

2018-11-03 Thread Andreas Rheinhardt
Instead of using a combination of bitreader and -writer for copying data, one can byte-align the (obsolete and removed) bitreader to improve performance. With the right alignment one can even use memcpy. The right alignment normally exists for CABAC. For aligned data this reduced the time to copy

[FFmpeg-devel] [PATCH 3/3] cbs_h265: Improve performance of writing slices

2018-11-03 Thread Andreas Rheinhardt
Instead of using a combination of bitreader and -writer for copying data, one can byte-align the (obsolete and removed) bitreader to improve performance. Given that the H265 slice segment header always has a byte length, one can normally use memcpy. With this patch the number of decicycles used to

[FFmpeg-devel] [PATCH 0/3] cbs: Improve performance of writing slices

2018-11-03 Thread Andreas Rheinhardt
When assembling slices in cbs_mpeg2, cbs_h264 and cbs_h265, a combination of a bitreader and bitwriter is used to copy the data (after the slice header has been assembled). They copy in blocks of 16 bits. This is inefficient: E.g. the bitreader can be eliminated by first copying bits until the

[FFmpeg-devel] [PATCH 1/3] cbs_mpeg2: Improve performance of writing slices

2018-11-03 Thread Andreas Rheinhardt
Instead of using a combination of bitreader and -writer for copying data, one can byte-align the (obsolete and removed) bitreader to improve performance. One can even use memcpy in the normal case. This improved the time needed for writing the slicedata from 33618 to 2370 decicycles when tested on

Re: [FFmpeg-devel] [PATCH] Revert "lavc/v4l2_m2m_enc: Add missing braces around initializers."

2018-11-03 Thread Ronak
> On Oct 31, 2018, at 5:58 PM, Mark Thompson wrote: > > On 31/10/18 00:07, Ronak Patel wrote: >> >>> On Oct 27, 2018, at 5:25 PM, Carl Eugen Hoyos wrote: >>> >>> 2018-10-27 20:50 GMT+02:00, Mark Thompson : This reverts commit 6dbb64fdccafe846aaec75d3784f7ad49d8af5df. The

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-03 Thread James Almer
On 11/3/2018 6:04 PM, James Zern wrote: > On Sat, Nov 3, 2018 at 2:02 PM James Zern wrote: >> [...] >> #define COMMON_OPTIONS \ >> { "auto-alt-ref","Enable use of alternate reference " \ >> - "frames (2-pass only)", >> OFFSET(auto_alt_ref),

Re: [FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-03 Thread James Zern
On Sat, Nov 3, 2018 at 2:02 PM James Zern wrote: > [...] > #define COMMON_OPTIONS \ > { "auto-alt-ref","Enable use of alternate reference " \ > - "frames (2-pass only)", > OFFSET(auto_alt_ref),AV_OPT_TYPE_INT, {.i64 = -1}, -1, 2,

[FFmpeg-devel] [PATCH] libvpxenc,vp9: add enable-tpl option

2018-11-03 Thread James Zern
enables temporal dependency model Signed-off-by: James Zern --- doc/encoders.texi | 2 ++ libavcodec/libvpxenc.c | 11 +++ 2 files changed, 13 insertions(+) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac49b..fced8d7369 100644 --- a/doc/encoders.texi +++

[FFmpeg-devel] [PATCH] libvpxenc: extend auto-alt-ref range

2018-11-03 Thread James Zern
vp9 now supports [0, 6] Signed-off-by: James Zern --- doc/encoders.texi | 1 + libavcodec/libvpxenc.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/doc/encoders.texi b/doc/encoders.texi index 899faac49b..3c6f5cd70b 100644 --- a/doc/encoders.texi +++

Re: [FFmpeg-devel] [PATCH 1/4] doc/filters: add document for opencl filters

2018-11-03 Thread Lou Logan
On Thu, Nov 1, 2018, at 9:13 PM, Gyan wrote: > > Lou, can you push this? Won't have my comp with the repo credentials for > some time. Sure, but I may not get to it until Monday. ___ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org

Re: [FFmpeg-devel] [PATCH 1/4] proresenc_nanatoliy: Rename a profile name with the correct one

2018-11-03 Thread Paul B Mahol
On 11/2/18, Vittorio Giovara wrote: > In all Apple documentation, this profile is called Prores . > --- > libavcodec/proresenc_anatoliy.c | 16 > 1 file changed, 8 insertions(+), 8 deletions(-) There is typo in log message, with that fixed patchset lgtm.