[libav-devel] [PATCH 02/15] hevc: Improve stream constraint values in common header

2017-06-23 Thread Mark Thompson
Add comments to describe the sources of the constraint values expressed here, and add some more related values which will be used in following patches. Fix the incorrect values for SPS and PPS count (they are not the same as those used for H.264), and remove HEVC_MAX_CU_SIZE because it is not used

[libav-devel] [PATCH 01/15] h264: Add stream constraint values to the common header

2017-06-23 Thread Mark Thompson
With comments describing the derivation of each value. --- libavcodec/h264.h | 45 + 1 file changed, 45 insertions(+) diff --git a/libavcodec/h264.h b/libavcodec/h264.h index eb3805c06..aa137b5b5 100644 --- a/libavcodec/h264.h +++ b/libavcodec/h264.h @@

[libav-devel] [PATCH 04/15] lavc: Add coded bitstream read/write API

2017-06-23 Thread Mark Thompson
--- libavcodec/cbs.c | 656 ++ libavcodec/cbs.h | 274 +++ libavcodec/cbs_internal.h | 99 +++ 3 files changed, 1029 insertions(+) create mode 100644 libavcodec/cbs.c create mode 100644 libavcodec/cbs.h create mo

[libav-devel] [PATCH 12/15] vaapi_h264: Add support for AUD NAL units

2017-06-23 Thread Mark Thompson
Adds a new private option to enable them (off by default). --- 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 84aa97373..624f2b9a8 100644 --- a/libavcodec/va

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

2017-06-23 Thread Mark Thompson
Also improves the metadata and generally makes the configuration a bit cleaner. --- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h265.c | 1511 +++- libavcodec/vaapi_encode_h26x.c | 68 -- libavcodec/vaapi_encode_h26x.h | 45 -- 4 files

[libav-devel] [PATCH 00/15] Coded bitstream editing (v4)

2017-06-23 Thread Mark Thompson
Since last time: * Moved limit values to common headers and documented them. * Cleaned API, added internal documentation. * Fixes to syntax files from running on more streams, also a bit more complete (yay FMO support). * Logging fixed to actually work properly (trace_headers uses normal logging

[libav-devel] [PATCH 15/15] vaapi_mpeg2: Convert to use coded bitstream infrastructure

2017-06-23 Thread Mark Thompson
--- libavcodec/vaapi_encode_mpeg2.c | 670 +++- 1 file changed, 462 insertions(+), 208 deletions(-) diff --git a/libavcodec/vaapi_encode_mpeg2.c b/libavcodec/vaapi_encode_mpeg2.c index 634178521..cf1976507 100644 --- a/libavcodec/vaapi_encode_mpeg2.c +++ b/liba

[libav-devel] [PATCH 10/15] lavc: Add h264_redundant_pps bitstream filter

2017-06-23 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 06/15] lavc: Add coded bitstream read/write support for H.265

2017-06-23 Thread Mark Thompson
--- libavcodec/cbs.c |1 + libavcodec/cbs_h2645.c | 410 +++- libavcodec/cbs_h265.h| 544 libavcodec/cbs_h265_syntax.c | 1482 ++ libavcodec/cbs_internal.h|1 + 5 files changed, 2435 insertions

[libav-devel] [PATCH 09/15] lavc: Add h264_metadata bitstream filter

2017-06-23 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. --- doc/bitstream_filters.texi | 47 + libavcodec/Makefile| 2 + libavcodec/bitstream_filters.c | 1 + libavcodec/h264_metadata_bsf.c | 462

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

2017-06-23 Thread Mark Thompson
--- libavcodec/cbs.c | 1 + libavcodec/cbs_internal.h | 1 + libavcodec/cbs_mpeg2.c| 355 libavcodec/cbs_mpeg2.h| 207 libavcodec/cbs_mpeg2_syntax.c | 367

[libav-devel] [PATCH 13/15] vaapi_h264: Add support for SEI recovery points

2017-06-23 Thread Mark Thompson
Included by default with non-IDR intra frames. --- 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 624f2b9a8..7c9c96a3a 100644 --- a/libavcodec/vaapi_encode

[libav-devel] [PATCH 08/15] lavc: Add trace_headers bitstream filter

2017-06-23 Thread Mark Thompson
Supports all streams that the coded bitstream infrastructure does (currently H.264, H.265 and MPEG-2). --- doc/bitstream_filters.texi | 8 +++ libavcodec/Makefile| 2 + libavcodec/bitstream_filters.c | 1 + libavcodec/trace_headers_bsf.c | 113

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

2017-06-23 Thread Mark Thompson
--- libavcodec/cbs.c |1 + libavcodec/cbs_h264.h| 426 +++ libavcodec/cbs_h2645.c | 800 +++ libavcodec/cbs_h2645.h | 42 ++ libavcodec/cbs_h264_syntax.c | 1224 ++ libavcodec/cbs_in

[libav-devel] [PATCH 11/15] vaapi_h264: Convert to use coded bitstream infrastructure

2017-06-23 Thread Mark Thompson
--- libavcodec/Makefile|2 +- libavcodec/vaapi_encode_h264.c | 1419 2 files changed, 547 insertions(+), 874 deletions(-) diff --git a/libavcodec/Makefile b/libavcodec/Makefile index 31fb412eb..ffca7a103 100644 --- a/libavcodec/Makefile +++

[libav-devel] [PATCH 03/15] hevc: Validate the number of long term reference pictures

2017-06-23 Thread Mark Thompson
This would overflow if the stream contained a value greater than the maximum allowed by the standard (32). --- libavcodec/hevc_ps.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavcodec/hevc_ps.c b/libavcodec/hevc_ps.c index 74906fd71..2603e6d99 100644 --- a/libavcodec/hevc_ps.c +++

Re: [libav-devel] [PATCH] NVENC Input Surface Optimization

2017-06-23 Thread Ben Chang
Thanks Lu. I will go through the submitted changes to understand what the styling issues are. -Original Message- From: libav-devel [mailto:libav-devel-boun...@libav.org] On Behalf Of Luca Barbato Sent: Thursday, June 22, 2017 5:39 PM To: libav-devel@libav.org Subject: Re: [libav-devel]

[libav-devel] [PATCH] configure: fix assignment of assembler specific flags

2017-06-23 Thread James Almer
If the first assembler to be probed is an old nasm build, X86ASM_DEPFLAGS will be set and remain so after yasm is ultimately used as fallback. This results in yasm being called with said nasm specific flags and failing during actual object assembly but not with configure sanity checks. Regression

Re: [libav-devel] [v12] [PATCH 1/2] build: Add an option for passing linker flags to the shared library build

2017-06-23 Thread Diego Biurrun
On Fri, Jun 23, 2017 at 02:06:28PM +0200, Diego Biurrun wrote: > From: Janne Grunau > > Also employ this mechanism to pass $libdir to the runtime library search > path if rpath is enabled. This fixes underlinking of some test binaries > on some systems. > > (cherry picked from commit 857e26b655a

[libav-devel] [v12] [PATCH 1/2] build: Add an option for passing linker flags to the shared library build

2017-06-23 Thread Diego Biurrun
From: Janne Grunau Also employ this mechanism to pass $libdir to the runtime library search path if rpath is enabled. This fixes underlinking of some test binaries on some systems. (cherry picked from commit 857e26b655a769e5a56bada1a0d9adb44cc176b7) Signed-off-by: Diego Biurrun --- configure

[libav-devel] [v12] [PATCH 2/2] configure: Simplify and fix libxcb check

2017-06-23 Thread Diego Biurrun
Check for xcb as well as xcb-shape before enabling libxcb since newer versions of libxcb have xcb-foo pkg-config files that do not declare their xcb dependency so that required linker flags will not be generated. Use helper functions to simplify libxcb check, drop unused variables. (cherry picked