[FFmpeg-devel] [PATCH] avcodec/prores_ks reduce twice fdct calls

Alex Mogurenko alex at mogurenko.com
Mon Dec 31 11:12:11 EET 2018


I seems to be lame as failed to find how to run fate to check prores_ks :(

On Mon, Dec 31, 2018 at 4:46 AM Michael Niedermayer <michael at niedermayer.cc>
wrote:

> On Sun, Dec 30, 2018 at 10:57:23PM +0200, Alex Mogurenko wrote:
> > fdct done twice for each block. first time during quant calculation,
> second during slice encoding. so if we pre-save dct coefficients no need to
> do fdct second time.
> > disadvantages: requires more memory
> > advantages: improves performance ~4-5%
> > ---
> >  libavcodec/proresenc_kostya.c | 74 ++++++++++++++++++++++++-----------
> >  1 file changed, 52 insertions(+), 22 deletions(-)
>
> breaks fate
>
> TEST    vsynth1-prores_ks
> --- ./tests/ref/vsynth/vsynth1-prores_ks        2018-12-28
> 17:54:41.361383177 +0100
> +++ tests/data/fate/vsynth1-prores_ks   2018-12-31 03:45:17.207673799 +0100
> @@ -1,4 +1,4 @@
> -fe41a284da97ea5ec8866ca9a55b84da *tests/data/fate/vsynth1-prores_ks.mov
> -3858911 tests/data/fate/vsynth1-prores_ks.mov
> -100eb002413fe7a632d440dfbdf7e3ff
> *tests/data/fate/vsynth1-prores_ks.out.rawvideo
> -stddev:    3.17 PSNR: 38.09 MAXDIFF:   39 bytes:  7603200/  7603200
> +ba6294d95b96f032b90f804f112ab98a *tests/data/fate/vsynth1-prores_ks.mov
> +3867422 tests/data/fate/vsynth1-prores_ks.mov
> +e85510eadb1ff115e85c480d8e1011a4
> *tests/data/fate/vsynth1-prores_ks.out.rawvideo
> +stddev:   19.38 PSNR: 22.38 MAXDIFF:  210 bytes:  7603200/  7603200
> Test vsynth1-prores_ks failed. Look at
> tests/data/fate/vsynth1-prores_ks.err for details.
> make: *** [fate-vsynth1-prores_ks] Error 1
>
> [...]
> --
> Michael     GnuPG fingerprint: 9FF2128B147EF6730BADF133611EC787040B0FAB
>
> "You are 36 times more likely to die in a bathtub than at the hands of a
> terrorist. Also, you are 2.5 times more likely to become a president and
> 2 times more likely to become an astronaut, than to die in a terrorist
> attack." -- Thoughty2
>
> _______________________________________________
> ffmpeg-devel mailing list
> ffmpeg-devel at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-devel
>


More information about the ffmpeg-devel mailing list