aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/huffyuvencdsp.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/huffyuvencdsp: Fix load of misaligned valuesAndreas Rheinhardt2024-04-021-8/+24
| | | | | | Affected many ffvhuff FATE tests. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/huffyuvencdsp: Pass pix_fmt directly when initing dspAndreas Rheinhardt2022-10-091-2/+2
| | | | | | It is the only thing that is actually used. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* all: Replace if (ARCH_FOO) checks by #if ARCH_FOOAndreas Rheinhardt2022-06-151-2/+3
| | | | | | | | | | | | | | | | | | This is more spec-compliant because it does not rely on dead-code elimination by the compiler. Especially MSVC has problems with this, as can be seen in https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/296373.html or https://ffmpeg.org/pipermail/ffmpeg-devel/2022-May/297022.html This commit does not eliminate every instance where we rely on dead code elimination: It only tackles branching to the initialization of arch-specific dsp code, not e.g. all uses of CONFIG_ and HAVE_ checks. But maybe it is already enough to compile FFmpeg with MSVC with whole-programm-optimizations enabled (if one does not disable too many components). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/huffyuvencdsp: use an actual unsigned long constantJames Almer2017-02-191-2/+5
| | | | | Reviewed-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: James Almer <jamrial@gmail.com>
* huffyuvencdsp: move shared functions to a new lossless_videoencdsp contextJames Almer2017-01-121-55/+0
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* huffyuvencdsp: move functions only used by huffyuv from lossless_videodspJames Almer2017-01-121-2/+48
| | | | Signed-off-by: James Almer <jamrial@gmail.com>
* huffyuvencdsp: Use intptr_t for widthTimothy Gu2015-10-191-2/+2
| | | | It is done this way in huffyuvdsp as well.
* avcodec/huffyuvencdsp: try to fix misaligned accessMichael Niedermayer2014-06-291-1/+1
| | | | | | Should fix fate on MIPS Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* Merge commit '512f3ffe9b4bb86767c2b1176554407c75fe1a5c'Michael Niedermayer2014-05-281-5/+5
| | | | | | | | | | | | | | | | * commit '512f3ffe9b4bb86767c2b1176554407c75fe1a5c': dsputil: Split off HuffYUV encoding bits into their own context Conflicts: configure libavcodec/dsputil.c libavcodec/dsputil.h libavcodec/huffyuv.h libavcodec/huffyuvenc.c libavcodec/pngenc.c libavcodec/x86/dsputilenc_mmx.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
* dsputil: Split off HuffYUV encoding bits into their own contextDiego Biurrun2014-05-271-0/+84
Also shorten HuffYUV context member names to avoid clutter.