git.videolan.org Git - ffmpeg.git/rss log
FFmpeg git repo
Les articles publiés sur le site
-
avcodec/asvenc,dvenc : Optimize unaligned checks away if possible
27 mai, par Andreas Rheinhardtavcodec/asvenc,dvenc: Optimize unaligned checks away if possible For certain arches (AARCH64, x86, generic) get_pixels and get_pixels_unaligned always coincide for 8 bit input. In these cases it is possible to avoid checks for unaligned input in asvenc, dvenc. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
avcodec/pixblockdsp : Fix get_pixels alignment documentation
27 mai, par Andreas Rheinhardt -
avfilter/x86/vf_spp : Remove permutation-specific code
27 mai, par Andreas Rheinhardtavfilter/x86/vf_spp: Remove permutation-specific code The MMX requantize functions have the MMX permutation (i.e. FF_IDCT_PERM_SIMPLE) hardcoded and therefore check for the used permutation (namely via a CRC). Yet this is very ugly and could even lead to misdetection; furthermore, since d7246ea9f229db64ed909d7446196128d6f53de0 the permutation used here is de-facto and since bfb28b5ce89f3e950214b67ea95b45e3355c2caf definitely impossible on x64, making this code dead on x64. So remove it. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
avcodec/pixblockdsp : Pass bits_per_raw_sample directly
27 mai, par Andreas Rheinhardtavcodec/pixblockdsp: Pass bits_per_raw_sample directly Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
-
avcodec/pixblockdsp : Improve 8 vs 16 bit check
27 mai, par Andreas Rheinhardtavcodec/pixblockdsp: Improve 8 vs 16 bit check Before this commit, the input in get_pixels and get_pixels_unaligned has been treated inconsistenly: - The generic code treated 9, 10, 12 and 14 bits as 16bit input (these bits correspond to what FFmpeg's dsputils supported), everything with <= 8 bits as 8 bit and everything else as 8 bit when used via AVDCT (which exposes these functions and purports to support up to 14 bits). - AARCH64, ARM, PPC and RISC-V, x86 ignore this AVDCT special case. - RISC-V also ignored the restriction to 9, 10, 12 and 14 for its 16bit check and treated everything > 8 bits as 16bit. - The mmi MIPS code treats everything as 8 bit when used via AVDCT (this is certainly broken); otherwise it checks for <= 8 bits. The msa MIPS code behaves like the generic code. This commit changes this to treat 9..16 bits as 16 bit input, everything else as 8 bit (the former because it makes sense, the latter to preserve the behaviour for external users*). *: The only internal user of AVDCT (the spp filter) always uses 8, 9 or 10 bits. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
- [DH] libavcodec/aarch64/pixblockdsp_init_aarch64.c
- [DH] libavcodec/arm/pixblockdsp_init_arm.c
- [DH] libavcodec/mips/pixblockdsp_init_mips.c
- [DH] libavcodec/pixblockdsp.c
- [DH] libavcodec/pixblockdsp.h
- [DH] libavcodec/ppc/pixblockdsp.c
- [DH] libavcodec/riscv/pixblockdsp_init.c
- [DH] libavcodec/x86/pixblockdsp_init.c