Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for vaapi

2021-12-14 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of > Michael Niedermayer > Sent: Wednesday, December 15, 2021 5:40 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] MAINTAINERS: Add Haihao Xiang for > vaapi > > On Tue, Dec

[FFmpeg-devel] [PATCH 4/4] avcodec: vaapi_decode, do not set initial_pool_size if driver supports frame pool resizing

2021-11-17 Thread Xu Guangxin
Two benifites of this commit: 1. Save memory. If we play an 8k hevc, previous code we allocate 50M * 20(1 + 16 + 3) = 1G memory. 4 may enough for most of playback usecases. 16 is a waste. 2. Allow downstream cache more frames. A downstream lookahead encoder will cache some frames. 20 may not enou

[FFmpeg-devel] [PATCH 3/4] avutil: hwcontext_vaapi, mark i965, VDPAU and ubit driver as AV_VAAPI_DRIVER_QUIRK_FRAME_POOL_RESIZING

2021-11-17 Thread Xu Guangxin
Legacy drivers can't support decode output frame pool resize. --- libavutil/hwcontext_vaapi.c | 15 +-- 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 14a2df38c6..c13c395da2 100644 --- a/libavutil/hwcontext_

[FFmpeg-devel] [PATCH 2/4] avutil: hwcontext_vaapi, add AV_VAAPI_DRIVER_QUIRK_FRAME_POOL_RESIZING

2021-11-17 Thread Xu Guangxin
--- libavutil/hwcontext_vaapi.h | 6 ++ 1 file changed, 6 insertions(+) diff --git a/libavutil/hwcontext_vaapi.h b/libavutil/hwcontext_vaapi.h index 0b2e071cb3..e4c7707861 100644 --- a/libavutil/hwcontext_vaapi.h +++ b/libavutil/hwcontext_vaapi.h @@ -58,6 +58,12 @@ enum { * and the resu

[FFmpeg-devel] [PATCH 1/4] avutils: hwcontext_vaapi, print error if allocated surfaces > pool size

2021-11-17 Thread Xu Guangxin
--- libavutil/hwcontext_vaapi.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavutil/hwcontext_vaapi.c b/libavutil/hwcontext_vaapi.c index 83e542876d..14a2df38c6 100644 --- a/libavutil/hwcontext_vaapi.c +++ b/libavutil/hwcontext_vaapi.c @@ -475,8 +475,11 @@ static AVBu

Re: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-03-13 Thread Xu, Guangxin
> You are hacking it to lie to the hwcontext implementation around how the > device was derived, so the test fails because it finds a different derivation > structure to what it created? That seems correct? > > Your command-line was: > > $ ffmpeg -init_hw_device vaapi=intel:/dev/dri/renderD128 -

Re: [FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-03-11 Thread Xu, Guangxin
sv_device_create > > On Tue, Feb 23, 2021 at 9:34 AM Guangxin Xu wrote: > > > > > > > On Mon, Feb 22, 2021 at 5:17 PM Soft Works > wrote: > > > >> > >> > >> > -Original Message- > >> > From: ffmpeg-devel On

Re: [FFmpeg-devel] [PATCH] avcodec/h264_slice: don't copy frame data during error concealment

2021-03-10 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of Xu, > Guangxin > Sent: Tuesday, March 9, 2021 5:13 PM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] avcodec/h264_slice: don't copy frame >

Re: [FFmpeg-devel] [PATCH] avcodec/h264_slice: don't copy frame data during error concealment

2021-03-09 Thread Xu, Guangxin
We will test vaapi for this patch. But I am more curious about the software decoder behaviors. This approach just ref the yuv. Not the intermedia data(like mv, macroblock type) Will it have problem if missed frame selected as colPic (Figure 8-2 in spec). > -Original Message- > From: ff

[FFmpeg-devel] [PATCH] avutils/hwcontext_qsv: set the source device in qsv_device_create

2021-02-22 Thread Xu Guangxin
opencl_device_derive only handles AV_HWDEVICE_TYPE_VAAPI. We need a source device for qsv. this will fix following pipeline: ffmpeg -init_hw_device vaapi=intel:/dev/dri/renderD128 -init_hw_device opencl=ocl@intel -hwaccel qsv -c:v h264_qsv -hwaccel_output_format qsv -i $input -filter_hw_device o

Re: [FFmpeg-devel] [PATCH] avutils/vulkan: hwmap, respect src frame resolution

2021-01-21 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of > Lynne > Sent: Friday, January 22, 2021 11:37 AM > To: FFmpeg development discussions and patches de...@ffmpeg.org> > Subject: Re: [FFmpeg-devel] [PATCH] avutils/vulkan: hwmap, respect src > frame resolution > > Jan 21, 2021, 05:3

[FFmpeg-devel] [PATCH] avutils/vulkan: hwmap, respect src frame resolution

2021-01-20 Thread Xu Guangxin
fixes http://trac.ffmpeg.org/ticket/9055 The hw decoder may allocate a large frame from AVHWFramesContext, and adjust width and height based on bitstream. We need to use resolution from src frame instead of AVHWFramesContext. test command: ffmpeg -loglevel debug -hide_banner -hwaccel vaapi -init

[FFmpeg-devel] [PATCH] avcodec/qsv_enc: do not reuse enc_ctrl from previous frames

2021-01-05 Thread Xu Guangxin
fixes #8857 If we do not clear the enc_ctrl, we will reuse previous frames' data like FrameType. --- libavcodec/qsvenc.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/qsvenc.c b/libavcodec/qsvenc.c index 2bd2a56227..94473c4eab 100644 --- a/libavcodec/qsvenc.c +++ b/libavcodec/

[FFmpeg-devel] [PATCH v2 6/6] avcodec/qsvdec: refact, remove duplicate code for plugin loading

2021-01-04 Thread Xu Guangxin
--- libavcodec/qsvdec.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index 3ca16dafae..d10f90a0db 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -682,21 +682,12 @@ static av_cold int qsv

[FFmpeg-devel] [PATCH v2 5/6] avcodec/qsvdec: refact, move qsvdec_other.c to qsvdec.c

2021-01-04 Thread Xu Guangxin
--- libavcodec/Makefile | 14 +-- libavcodec/qsvdec.c | 41 ++- libavcodec/qsvdec_other.c | 242 -- 3 files changed, 47 insertions(+), 250 deletions(-) delete mode 100644 libavcodec/qsvdec_other.c diff --git a/libavcodec/Makefile b/libavcodec

[FFmpeg-devel] [PATCH v2 4/6] avcodec/qsvdec: refact, move qsvdec_h2645.c to qsvdec.c

2021-01-04 Thread Xu Guangxin
--- libavcodec/Makefile | 8 +- libavcodec/qsvdec.c | 217 - libavcodec/qsvdec_h2645.c | 250 -- 3 files changed, 219 insertions(+), 256 deletions(-) delete mode 100644 libavcodec/qsvdec_h2645.c diff --git a/libavc

[FFmpeg-devel] [PATCH v2 3/6] avcodec/qsvdec_h2645: refact, use DEFINE_QSV_DECODER to remove duplicate code

2021-01-04 Thread Xu Guangxin
--- libavcodec/qsvdec_h2645.c | 89 +++ 1 file changed, 33 insertions(+), 56 deletions(-) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index 3d6e85230f..974c1b6034 100644 --- a/libavcodec/qsvdec_h2645.c +++ b/libavcodec/qsvdec_h2645.c @@ -

[FFmpeg-devel] [PATCH v2 2/6] avcodec/qsvdec_other: refact, use DEFINE_QSV_DECODER to remove duplicate code

2021-01-04 Thread Xu Guangxin
--- libavcodec/qsvdec_other.c | 188 -- 1 file changed, 36 insertions(+), 152 deletions(-) diff --git a/libavcodec/qsvdec_other.c b/libavcodec/qsvdec_other.c index 2775e07955..266ac9f2e5 100644 --- a/libavcodec/qsvdec_other.c +++ b/libavcodec/qsvdec_other.c @@

[FFmpeg-devel] [PATCH v2 1/6] avcodec/qsv_h2645: fix memory leak for plugin load

2021-01-04 Thread Xu Guangxin
--- libavcodec/qsvdec_h2645.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index 02c41883b6..3d6e85230f 100644 --- a/libavcodec/qsvdec_h2645.c +++ b/libavcodec/qsvdec_h2645.c @@ -69,6 +69,8 @@ static av_cold int qsv_decode_close(AVCode

[FFmpeg-devel] [PATCH 5/5] avcodec/qsvdec: refact, remove duplicate code for plugin loading

2020-11-26 Thread Xu Guangxin
--- libavcodec/qsvdec.c | 29 +++-- 1 file changed, 11 insertions(+), 18 deletions(-) diff --git a/libavcodec/qsvdec.c b/libavcodec/qsvdec.c index ed40e2f4c2..8da367079a 100644 --- a/libavcodec/qsvdec.c +++ b/libavcodec/qsvdec.c @@ -681,21 +681,12 @@ static av_cold int qsv

[FFmpeg-devel] [PATCH 4/5] avcodec/qsvdec: refact, move qsvdec_other.c to qsvdec.c

2020-11-26 Thread Xu Guangxin
--- libavcodec/Makefile | 14 +-- libavcodec/qsvdec.c | 42 ++- libavcodec/qsvdec_other.c | 242 -- 3 files changed, 48 insertions(+), 250 deletions(-) delete mode 100644 libavcodec/qsvdec_other.c diff --git a/libavcodec/Makefile b/libavcodec

[FFmpeg-devel] [PATCH 3/5] avcodec/qsvdec: refact, move qsvdec_h2645.c to qsvdec.c

2020-11-26 Thread Xu Guangxin
--- libavcodec/Makefile | 8 +- libavcodec/qsvdec.c | 215 - libavcodec/qsvdec_h2645.c | 248 -- 3 files changed, 217 insertions(+), 254 deletions(-) delete mode 100644 libavcodec/qsvdec_h2645.c diff --git a/libavc

[FFmpeg-devel] [PATCH 2/5] avcodec/qsvdec_h2645: refact, use DEFINE_QSV_DECODER to remove duplicate code

2020-11-26 Thread Xu Guangxin
--- libavcodec/qsvdec_h2645.c | 89 +++ 1 file changed, 33 insertions(+), 56 deletions(-) diff --git a/libavcodec/qsvdec_h2645.c b/libavcodec/qsvdec_h2645.c index 02c41883b6..b0ab23a922 100644 --- a/libavcodec/qsvdec_h2645.c +++ b/libavcodec/qsvdec_h2645.c @@ -

[FFmpeg-devel] [PATCH 1/5] avcodec/qsvdec_other: refact, use DEFINE_QSV_DECODER to remove duplicate code

2020-11-26 Thread Xu Guangxin
--- libavcodec/qsvdec_other.c | 188 -- 1 file changed, 36 insertions(+), 152 deletions(-) diff --git a/libavcodec/qsvdec_other.c b/libavcodec/qsvdec_other.c index 2775e07955..266ac9f2e5 100644 --- a/libavcodec/qsvdec_other.c +++ b/libavcodec/qsvdec_other.c @@

[FFmpeg-devel] [PATCH v2] fate/hevc-conformance: add clip for persistent_rice_adaptation_enabled_flag

2020-11-14 Thread Xu Guangxin
you can download it from: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/RExt/WPP_HIGH_TP_444_8BIT_RExt_Apple_2.zip Signed-off-by: Xu Guangxin --- tests/fate/hevc.mak | 1 + .../hevc-conformance

[FFmpeg-devel] [PATCH v2] fate/hevc-conformance: add clip for persistent_rice_adaptation_enabled_flag

2020-11-14 Thread Xu Guangxin
you can download it from: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/RExt/WPP_HIGH_TP_444_8BIT_RExt_Apple_2.zip Signed-off-by: Xu Guangxin --- tests/fate/hevc.mak | 1 + .../hevc-conformance

[FFmpeg-devel] [PATCH v2] avcodec/hevcdec: fix stat_coeff save/load for persistent_rice_adaptation_enabled_flag

2020-11-14 Thread Xu Guangxin
2.bit WPP_AND_TILE_AND_CABAC_BYPASS_ALIGN_0_HIGH_TP_444_14BIT_RExt_Apple_2.bit WPP_AND_TILE_AND_CABAC_BYPASS_ALIGN_1_HIGH_TP_444_14BIT_RExt_Apple_2.bit WPP_AND_TILE_HIGH_TP_444_8BIT_RExt_Apple_2.bit you can download them from: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/RExt/ Signed-off-by: Xu Gua

[FFmpeg-devel] [PATCH] avcodec/hevcdec: constrained intra predict, do not check top left IS_INTRA if it's not available

2020-10-16 Thread Xu Guangxin
fix ticket: 8932 For poc 2, we have tile boundary at x = 640. When we predict cu(640,912),the top left pixel is not avaliable to the cu. So, we can not check it's intra or not. We need set top[-1] = top[0] directly. see 8.4.4.2.1 for details --- libavcodec/hevcpred_template.c | 2 +- 1 file chang

[FFmpeg-devel] [PATCH 2/2] fate/hevc-conformance: add clip for persistent_rice_adaptation_enabled_flag

2020-08-28 Thread Xu Guangxin
you can download it from: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/RExt/WPP_HIGH_TP_444_8BIT_RExt_Apple_2.bit Signed-off-by: Xu Guangxin --- tests/fate/hevc.mak | 1 + .../hevc-conformance

[FFmpeg-devel] [PATCH 1/2] avcodec/hevcdec: fix stat_coeff save/load for persistent_rice_adaptation_enabled_flag

2020-08-28 Thread Xu Guangxin
ple_2.bit WPP_AND_TILE_AND_CABAC_BYPASS_ALIGN_1_HIGH_TP_444_14BIT_RExt_Apple_2.bit WPP_AND_TILE_HIGH_TP_444_8BIT_RExt_Apple_2.bit you can download them from: https://www.itu.int/wftp3/av-arch/jctvc-site/bitstream_exchange/draft_conformance/RExt/ Signed-off-by: Xu Guangxin --- libavcodec/hevc_ca

[FFmpeg-devel] [PATCH] avcodec/ff_mpv_encode_end: fix a crash for null s->avctx

2020-08-25 Thread Xu Guangxin
Steps to reproduce: 1. ./configure --enable-debug=3 --disable-libx264 && make install 2. ffmpeg -i input.mp4 -profile:v baseline output.mp4 -y you will see a crash like this: [mpeg4 @ 0x575854c0] [Eval @ 0x7fffbf80] Undefined constant or missing '(' in 'baseline' [mpeg4 @ 0x575854c0]

Re: [FFmpeg-devel] [PATCH 2/3] avcodec/cbs_av1: infer frame_type when parsing a show_existing_frame frame

2020-08-24 Thread Xu, Guangxin
May not related to this patch. When we have show_existing_frame and the frame_type is key frame, do we need do "Reference frame update"? > -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: Monday, August 24, 2020 3:24 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [

Re: [FFmpeg-devel] [PATCH V2] dnn_backend_openvino.c: parse options in openvino backend

2020-08-14 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of Guo, > Yejun > Sent: Friday, August 14, 2020 9:50 AM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH V2] dnn_backend_openvino.c: parse options > in openvino backend > > Signed-off-by: Guo, Yejun > --- > libavfilter/

Re: [FFmpeg-devel] [PATCH] dnn_backend_native_layer_mathbinary: add floormod support

2020-08-14 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of > Mingyu Yin > Sent: Friday, August 14, 2020 6:11 PM > To: ffmpeg-devel@ffmpeg.org > Subject: [FFmpeg-devel] [PATCH] dnn_backend_native_layer_mathbinary: add > floormod support > > Signed-off-by: Mingyu Yin > --- > .../dnn/dnn_bac

[FFmpeg-devel] [PATCH v3] fate: av1dec, add test clip for low overhead obu

2020-08-13 Thread Xu Guangxin
v3 changelist: add missed tests/ref/fate/av1-low-overhead-demux --- tests/fate/demux.mak | 3 +++ tests/ref/fate/av1-low-overhead-demux | 16 2 files changed, 19 insertions(+) create mode 100644 tests/ref/fate/av1-low-overhead-demux diff --git a/tests/fate/dem

Re: [FFmpeg-devel] [PATCH v3 2/3] avormat/av1dec: add low-overhead bitstream format

2020-08-13 Thread Xu, Guangxin
: [FFmpeg-devel] [PATCH v3 2/3] avormat/av1dec: add low- > overhead bitstream format > > On Thu, 13 Aug 2020, James Almer wrote: > > > On 8/13/2020 3:51 AM, Xu Guangxin wrote: > > >> + > >> +ret = obu_prefetch(s, header, MAX_OBU_HEADER_SIZE); > &g

Re: [FFmpeg-devel] [PATCH v3 2/3] avormat/av1dec: add low-overhead bitstream format

2020-08-13 Thread Xu, Guangxin
James > Almer > Sent: Friday, August 14, 2020 3:11 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH v3 2/3] avormat/av1dec: add low- > overhead bitstream format > > On 8/13/2020 3:51 AM, Xu Guangxin wrote: > > Hi James, > > thanks for your feed

[FFmpeg-devel] [PATCH v3 2/3] avormat/av1dec: add low-overhead bitstream format

2020-08-12 Thread Xu Guangxin
Hi James, thanks for your feedback, please help review it again. Changelist for v3: use av_fifo_* instead of homebrewed fifo operations obu_probe(), add padding obu to alllow list read_header(), use "const AVRational* framerate" instead of "AVRational framerate" It's defined in Section

Re: [FFmpeg-devel] [PATCH V2 2/3] avormat/av1dec: add low-overhead bitstream format

2020-08-12 Thread Xu, Guangxin
t; overhead bitstream format > > On 8/10/2020 6:34 AM, Xu Guangxin wrote: > > It's defined in Section 5.2, used by netflix. > > see http://download.opencontent.netflix.com/?prefix=AV1/Chimera/ > > --- > > configure| 1 + > > libavf

Re: [FFmpeg-devel] [PATCH V2 0/3] avformat/av1dec: add low overhead obu demux

2020-08-11 Thread Xu, Guangxin
Hi James, All issues addressed. Could you help review it again? Thanks for you great help on this. > -Original Message- > From: Xu, Guangxin > Sent: Monday, August 10, 2020 5:34 PM > To: ffmpeg-devel@ffmpeg.org; jamr...@gmail.com > Cc: Xu, Guangxin > Subject: [PATC

[FFmpeg-devel] [PATCH V2 2/3] avormat/av1dec: add low-overhead bitstream format

2020-08-10 Thread Xu Guangxin
It's defined in Section 5.2, used by netflix. see http://download.opencontent.netflix.com/?prefix=AV1/Chimera/ --- configure| 1 + libavformat/allformats.c | 1 + libavformat/av1dec.c | 266 +++ 3 files changed, 245 insertions(+), 23 dele

[FFmpeg-devel] [PATCH V2 3/3] fate: av1dec, add test clip for low overhead obu

2020-08-10 Thread Xu Guangxin
--- tests/fate/demux.mak | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak index 9f3a6be276..763452a533 100644 --- a/tests/fate/demux.mak +++ b/tests/fate/demux.mak @@ -13,6 +13,9 @@ fate-aea-demux: CMD = crc -i $(TARGET_SAMPLES)/aea/chirp.aea -c:a

[FFmpeg-devel] [PATCH V2 1/3] av1_parse: refact, use macro for MAX_OBU_HEADER_SIZE

2020-08-10 Thread Xu Guangxin
--- libavcodec/av1_parse.h | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/libavcodec/av1_parse.h b/libavcodec/av1_parse.h index 01bcd646c2..ae0ebb5a18 100644 --- a/libavcodec/av1_parse.h +++ b/libavcodec/av1_parse.h @@ -27,6 +27,9 @@ #include "avcodec.h" #include "get_bi

[FFmpeg-devel] [PATCH V2 0/3] avformat/av1dec: add low overhead obu demux

2020-08-10 Thread Xu Guangxin
ot;av1" to "obu". Change demux name to ff_obu_demuxer Use MAX_OBU_HEADER_SIZE instead MAX_HEADER_SIZE Rename log context c to logctx. Xu Guangxin (3): av1_parse: refact, use macro for MAX_OBU_HEADER_SIZE avormat/av1dec: add low-overhead bitstream format fate: av1dec, add

Re: [FFmpeg-devel] [PATCH 2/5] av1_parser: do not check buf_size if we have size in obu header

2020-08-06 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: Friday, August 7, 2020 1:38 AM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/5] av1_parser: do not check buf_size if > we have size in obu header > > On 8/6/

Re: [FFmpeg-devel] [PATCH 4/5] avormat/av1dec: add low-overhead bitstream format

2020-08-06 Thread Xu, Guangxin
> -Original Message- > From: ffmpeg-devel On Behalf Of James > Almer > Sent: Thursday, August 6, 2020 10:09 PM > To: ffmpeg-devel@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 4/5] avormat/av1dec: add low-overhead > bitstream format > > On 8/6/2020

Re: [FFmpeg-devel] [PATCH 4/5] avormat/av1dec: add low-overhead bitstream format

2020-08-06 Thread Xu, Guangxin
; > On 8/6/2020 5:04 AM, Xu Guangxin wrote: > > It's defined in Section 5.2, used by netflix. > > see http://download.opencontent.netflix.com/?prefix=AV1/Chimera/ > > --- > > libavformat/allformats.c | 1 + > > libavformat/av1dec.c | 193 > +++

Re: [FFmpeg-devel] [PATCH 2/5] av1_parser: do not check buf_size if we have size in obu header

2020-08-06 Thread Xu, Guangxin
@ffmpeg.org > Subject: Re: [FFmpeg-devel] [PATCH 2/5] av1_parser: do not check buf_size if > we have size in obu header > > On 8/6/2020 5:04 AM, Xu Guangxin wrote: > > for low overhead obu, we can't forsee the obu size. we can only get it > > when we parsed the obu hea

[FFmpeg-devel] [PATCH 5/5] fate: av1dec, add test clip for low overhead obu

2020-08-06 Thread Xu Guangxin
--- tests/fate/demux.mak | 3 +++ tests/ref/fate/av1-low-overhead-demux | 16 2 files changed, 19 insertions(+) create mode 100644 tests/ref/fate/av1-low-overhead-demux diff --git a/tests/fate/demux.mak b/tests/fate/demux.mak index 9f3a6be276..763452a533 100644

[FFmpeg-devel] [PATCH 4/5] avormat/av1dec: add low-overhead bitstream format

2020-08-06 Thread Xu Guangxin
It's defined in Section 5.2, used by netflix. see http://download.opencontent.netflix.com/?prefix=AV1/Chimera/ --- libavformat/allformats.c | 1 + libavformat/av1dec.c | 193 +-- 2 files changed, 185 insertions(+), 9 deletions(-) diff --git a/libavformat/

[FFmpeg-devel] [PATCH 3/5] avformat/av1dec: refact, do not overide return value in read_obu

2020-08-06 Thread Xu Guangxin
we need them later --- libavformat/av1dec.c | 11 +++ 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/libavformat/av1dec.c b/libavformat/av1dec.c index 297e87cc52..ec66152e03 100644 --- a/libavformat/av1dec.c +++ b/libavformat/av1dec.c @@ -60,14 +60,9 @@ static int leb(AVIOCo

[FFmpeg-devel] [PATCH 2/5] av1_parser: do not check buf_size if we have size in obu header

2020-08-06 Thread Xu Guangxin
for low overhead obu, we can't forsee the obu size. we can only get it when we parsed the obu header. --- libavcodec/av1_parse.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libavcodec/av1_parse.h b/libavcodec/av1_parse.h index a3b39f039c..823bdedd5e 100644 --- a/libavcodec/

[FFmpeg-devel] [PATCH 0/5] avformat/av1dec: add low overhead obu demux

2020-08-06 Thread Xu Guangxin
Xu Guangxin (5): av1_parser: parser_obu_header, return has_size_flag av1_parser: do not check buf_size if we have size in obu header avformat/av1dec: refact, do not overide return value in read_obu avormat/av1dec: add low-overhead bitstream format fate: av1dec, add test clip for low

[FFmpeg-devel] [PATCH 1/5] av1_parser: parser_obu_header, return has_size_flag

2020-08-06 Thread Xu Guangxin
From: Xu Guangxin we need check has_size_flag for low overhead obu --- libavcodec/av1_parse.c | 4 ++-- libavcodec/av1_parse.h | 8 libavformat/av1.c | 12 ++-- libavformat/av1dec.c | 10 +- 4 files changed, 17 insertions(+), 17 deletions(-) diff --git a