[libav-devel] [PATCH 1/2 V6] libavfilter/overlay_qsv: Add QSV overlay vpp filter

2017-08-10 Thread Huang, Zhengxu
--- Changes from v5: * Initialize the AVExpr variables to NULL as Anton's review. --- --- Changes from v4: * Modify the configure file/coding style/system memory input surface align issue/resource release issue when exception happens/memory mode logic and some potential problem in the

[libav-devel] [PATCH 08/14] vaapi_h264: Convert to use coded bitstream infrastructure

2017-08-10 Thread Mark Thompson
--- Just updated build system. configure |2 +- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h264.c | 1421 3 files changed, 549 insertions(+), 876 deletions(-) diff --git a/configure b/configure index

[libav-devel] [PATCH 14/14] hevc: Remove unused hevc_ps_enc.c

2017-08-10 Thread Mark Thompson
Replaced with more complete implementation via coded bitstream infrastructure. --- Unchanged. libavcodec/hevc_ps.h | 3 -- libavcodec/hevc_ps_enc.c | 118 --- 2 files changed, 121 deletions(-) delete mode 100644 libavcodec/hevc_ps_enc.c diff

[libav-devel] [PATCH 10/14] vaapi_h264: Add support for SEI recovery points

2017-08-10 Thread Mark Thompson
Included by default with non-IDR intra frames. --- Unchanged. libavcodec/vaapi_encode_h264.c | 20 +++- 1 file changed, 19 insertions(+), 1 deletion(-) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index 4f0e879e9..271644ebb 100644 ---

[libav-devel] [PATCH 11/14] vaapi_h265: Convert to use coded bitstream infrastructure

2017-08-10 Thread Mark Thompson
Also improves the metadata and generally makes the configuration a bit cleaner. --- Build system; also fix a silly bug with num_ticks_poc_diff noticed by hevc_metadata testing. configure |2 +- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h265.c |

[libav-devel] [PATCH 12/14] vaapi_h265: Add support for AUD NAL units

2017-08-10 Thread Mark Thompson
Matching the H.264 encoder. --- Unchanged. libavcodec/vaapi_encode_h265.c | 39 +++ 1 file changed, 39 insertions(+) diff --git a/libavcodec/vaapi_encode_h265.c b/libavcodec/vaapi_encode_h265.c index f441e0370..0ebeeb693 100644 ---

[libav-devel] [PATCH 13/14] qsvenc_hevc: Replace ad-hoc VPS writing with CBS implementation

2017-08-10 Thread Mark Thompson
This copies more information which should be present from the SPS. It also fixes the value of vps_temporal_id_nesting_flag, which was previously incorrect for a single-layer stream (the standard states that it must be 1, and the reference decoder barfs if it isn't). --- Build system change only.

[libav-devel] [PATCH 06/14] lavc: Add h264_redundant_pps bitstream filter

2017-08-10 Thread Mark Thompson
This applies a specific fixup to some Bluray streams which contain redundant PPSs modifying irrelevant parameters of the stream which confuse other transformations which require correct extradata. A new single global PPS is created, and all of the redundant PPSs within the stream are removed. ---

[libav-devel] [PATCH 09/14] vaapi_h264: Add support for AUD NAL units

2017-08-10 Thread Mark Thompson
Adds a new private option to enable them (off by default). --- Unchanged. libavcodec/vaapi_encode_h264.c | 33 + 1 file changed, 33 insertions(+) diff --git a/libavcodec/vaapi_encode_h264.c b/libavcodec/vaapi_encode_h264.c index b48070c95..4f0e879e9 100644 ---

[libav-devel] [PATCH 02/14] lavc: Add coded bitstream read/write support for H.264

2017-08-10 Thread Mark Thompson
--- The golomb read/write functions are now local to cbs_h2645.c. configure|2 + libavcodec/Makefile |1 + libavcodec/cbs.c |3 + libavcodec/cbs_h264.h| 427 +++ libavcodec/cbs_h2645.c | 997

[libav-devel] [PATCH 05/14] lavc: Add h264_metadata bitstream filter

2017-08-10 Thread Mark Thompson
This is able to modify some header metadata found in the SPS/VUI, and can also add/remove AUDs and insert user data in SEI NAL units. --- The frame_rate option is renamed tick_rate to be more consistent with what is actually in the stream. Crop unit has been changed to pixels rather than the

[libav-devel] [PATCH 03/14] lavc: Add coded bitstream read/write support for H.265

2017-08-10 Thread Mark Thompson
--- Build system changes only. configure|2 + libavcodec/Makefile |1 + libavcodec/cbs.c |3 + libavcodec/cbs_h2645.c | 410 +++- libavcodec/cbs_h265.h| 537 +++ libavcodec/cbs_h265_syntax.c | 1502

[libav-devel] [PATCH 04/14] lavc: Add trace_headers bitstream filter

2017-08-10 Thread Mark Thompson
Supports all streams that the coded bitstream infrastructure does (currently H.264 and H.265). --- Removed MPEG-2 from this patch; will add it again later when it is complete. configure | 1 + doc/bitstream_filters.texi | 8 +++ libavcodec/Makefile| 1

[libav-devel] [PATCH 07/14] lavc: Add hevc_metadata bitstream filter

2017-08-10 Thread Mark Thompson
This is able to modify some header metadata found in the VPS/SPS/VUI, and can also add/remove AUDs. --- Crop unit has been changed to pixels rather than the subsample units used in the stream. Fixed updating the VPS in extradata and some failure cases. configure | 1 +

[libav-devel] [PATCH 00/14] Coded bitstream editing (v6)

2017-08-10 Thread Mark Thompson
The main change here is to make cbs and cbs_codec subsystems for configure, plus miscellaneous minor fixes reflecting review comments. This is H.264/5 only to make it a bit more cohesive. I have some further changes to make to MPEG-2, and that can follow later. The build system changes want

[libav-devel] [PATCH 01/14] lavc: Add coded bitstream read/write API

2017-08-10 Thread Mark Thompson
--- The golomb read/write functions have moved to the following patch to make the dependencies work out sensibly. configure | 1 + libavcodec/Makefile | 1 + libavcodec/cbs.c | 461 ++ libavcodec/cbs.h |

Re: [libav-devel] [PATCH] h264: Add support for alternative transfer characterics SEI

2017-08-10 Thread Luca Barbato
On 08/08/2017 16:06, Vittorio Giovara wrote: > The use of this SEI is for backward compatibility in HLG HDR systems: > older devices that cannot interpret the "arib-std-b67" transfer will > get the compatible transfer (usually bt709 or bt2020) from the VUI, > while newer devices that can interpret

Re: [libav-devel] [PATCH 1/2 V5] libavfilter/overlay_qsv: Add QSV overlay vpp filter

2017-08-10 Thread Anton Khirnov
Quoting Huang, Zhengxu (2017-08-10 03:35:09) >From 873222a2fa0c0686e0611bc769707947fe243d27 Mon Sep 17 00:00:00 2001 >+static int eval_expr(AVFilterContext *ctx) >+{ >+QSVOverlayContext *vpp = ctx->priv; >+double *var_values = vpp->var_values; >+intret = 0; >+

Re: [libav-devel] [PATCH 13/22] vaapi_h264: Add support for AUD NAL units

2017-08-10 Thread Anton Khirnov
Quoting Mark Thompson (2017-07-29 23:16:36) > Adds a new private option to enable them (off by default). > --- > libavcodec/vaapi_encode_h264.c | 33 + > 1 file changed, 33 insertions(+) Looks ok -- Anton Khirnov ___

Re: [libav-devel] [PATCH 12/22] vaapi_h264: Convert to use coded bitstream infrastructure

2017-08-10 Thread Anton Khirnov
Quoting Mark Thompson (2017-07-29 23:16:35) > --- > libavcodec/Makefile|2 +- > libavcodec/vaapi_encode_h264.c | 1421 > > 2 files changed, 548 insertions(+), 875 deletions(-) > > diff --git a/libavcodec/Makefile b/libavcodec/Makefile >

Re: [libav-devel] [PATCH 11/22] lavc: Add hevc_metadata bitstream filter

2017-08-10 Thread Anton Khirnov
Quoting Mark Thompson (2017-07-29 23:16:34) > This is able to modify some header metadata found in the VPS/SPS/VUI, > and can also add/remove AUDs. > --- > doc/bitstream_filters.texi | 54 ++ > libavcodec/Makefile| 2 + > libavcodec/bitstream_filters.c | 1 + >

Re: [libav-devel] [PATCH 07/22] lavc: Add coded bitstream read/write support for MPEG-2

2017-08-10 Thread Anton Khirnov
Quoting Mark Thompson (2017-07-29 23:16:30) > --- > libavcodec/cbs.c | 1 + > libavcodec/cbs_internal.h | 1 + > libavcodec/cbs_mpeg2.c| 355 > ++ > libavcodec/cbs_mpeg2.h| 208 + >