[libav-devel] [PATCH 3/6] cbs: Demote the "decomposition unimplemented" warning

2017-12-10 Thread Mark Thompson
This is harmless and should not be a warning - unknown units are passed through to the write functions unchanged, and no other code will interact with them. --- libavcodec/cbs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/cbs.c b/libavcodec/cbs.c index

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

2017-12-10 Thread Mark Thompson
Replaced with more complete implementation via coded bitstream infrastructure. --- 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 --git

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

2017-12-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). --- configure|

[libav-devel] [PATCH 5/6] cbs_h264: Add hack for pic_timing with no active SPS

2017-12-10 Thread Mark Thompson
If there is exactly one possible SPS but it is not yet active then just assume that it should be the active one. --- libavcodec/cbs_h264_syntax_template.c | 16 1 file changed, 16 insertions(+) diff --git a/libavcodec/cbs_h264_syntax_template.c

[libav-devel] [PATCH 4/6] cbs_h2645: Remove active ps references when it is replaced

2017-12-10 Thread Mark Thompson
--- libavcodec/cbs_h2645.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/cbs_h2645.c b/libavcodec/cbs_h2645.c index 00eed0f28..1e7854584 100644 --- a/libavcodec/cbs_h2645.c +++ b/libavcodec/cbs_h2645.c @@ -674,6 +674,8 @@ static int cbs_h26 ## h26n ## _replace_ ##

[libav-devel] [PATCH 6/6] h264_metadata: Add ability to delete filler data

2017-12-10 Thread Mark Thompson
Deletes both filler NAL units and filler SEI messages. --- libavcodec/h264_metadata_bsf.c | 44 ++ 1 file changed, 44 insertions(+) diff --git a/libavcodec/h264_metadata_bsf.c b/libavcodec/h264_metadata_bsf.c index ac0b9823b..58d598e6d 100644 ---

[libav-devel] [PATCH 6/9] lavc: Remove register mechanism for hwaccels

2017-12-10 Thread Mark Thompson
There is no longer any need for a list of them at runtime, because decoders now carry the pointers to their associated hwaccels internally. The file containing external declarations is now used to make the list of hwaccels for configure. --- configure | 2 +- libavcodec/allcodecs.c

[libav-devel] [PATCH 7/9] lavc: Delete all fake hwaccels

2017-12-10 Thread Mark Thompson
They are now unused. --- configure | 18 +- libavcodec/mmaldec.c | 21 - libavcodec/qsvdec_h2645.c | 18 -- libavcodec/qsvdec_other.c | 27 --- 4 files changed, 5 insertions(+), 79 deletions(-) diff

[libav-devel] [PATCH 9/9] avconv: Use codec hardware config to configure hwaccels

2017-12-10 Thread Mark Thompson
Removes specific support for all hwaccels supported by the generic code (CUVID, DXVA2, D3D11VA, VAAPI and VDPAU). --- avtools/avconv.c | 76 +++- avtools/avconv.h | 9 +- avtools/avconv_hw.c | 249 ++- avtools/avconv_opt.c |

[libav-devel] [PATCH 8/9] lavc: Mark all AVHWAccel structures as const

2017-12-10 Thread Mark Thompson
--- libavcodec/avcodec.h | 2 +- libavcodec/cuvid_h264.c | 2 +- libavcodec/cuvid_hevc.c | 2 +- libavcodec/decode.c | 2 +- libavcodec/dxva2_h264.c | 6 ++--- libavcodec/dxva2_hevc.c | 6 ++--- libavcodec/dxva2_mpeg2.c | 6 ++--- libavcodec/dxva2_vc1.c| 12

[libav-devel] [PATCH 5/9] lavc: Deprecate av_hwaccel_next() and av_register_hwaccel()

2017-12-10 Thread Mark Thompson
--- doc/APIchanges | 4 libavcodec/avcodec.h | 13 + libavcodec/utils.c | 15 +-- libavcodec/version.h | 3 +++ 4 files changed, 25 insertions(+), 10 deletions(-) diff --git a/doc/APIchanges b/doc/APIchanges index 9d8c7725e..a1abcffaa 100644 ---

[libav-devel] [PATCH 1/9] lavc: Add codec metadata to indicate hardware support

2017-12-10 Thread Mark Thompson
--- doc/APIchanges | 3 +++ libavcodec/avcodec.h | 74 libavcodec/hwaccel.h | 18 + libavcodec/utils.c | 12 + 4 files changed, 107 insertions(+) diff --git a/doc/APIchanges b/doc/APIchanges index

[libav-devel] [PATCH 2/9] lavc: Add hardware config metadata for decoders supporting hardware output

2017-12-10 Thread Mark Thompson
This includes a pointer to the associated hwaccel for decoders using hwaccels - these will be used later to implement the hwaccel setup without needing a global list. Also added is a new file listing all hwaccels as external declarations - this will be used later to generate the hwaccel list at

[libav-devel] [PATCH 4/9] lavc: Use hardware config information in ff_get_format()

2017-12-10 Thread Mark Thompson
This removes the dependency that hardware pixel formats previously had on AVHWAccel instances, meaning only those which actually do something need exist after this patch. Also updates avcodec_default_get_format() to be able to choose hardware formats if either a matching device has been supplied

[libav-devel] [PATCH 3/9] webp: Fix alpha initialisation

2017-12-10 Thread Mark Thompson
ff_get_format() in the next patch will reject formats which aren't in the offered list, so the hack in 7cb9296db872c4221453e5411f242ebcfca62664 is no longer valid. Change the hack by adding a new field in the VP8 decoder context to indicate that it's actually WebP and don't call ff_get_format()