aboutsummaryrefslogtreecommitdiffstats
path: root/libavcodec/texturedspenc.c
Commit message (Collapse)AuthorAgeFilesLines
* avcodec/texturedsp: Factor common code outAndreas Rheinhardt2024-01-281-1/+1
| | | | | | Namely calling avctx->execute2(avctx,...). Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/texturedsp: Add separate TextureDSPEncContextAndreas Rheinhardt2024-01-281-1/+1
| | | | | | | | ff_texturedspenc_init() doesn't support most of the function types supported for decoding; add a separate context containing only pointers for the actually supported types. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/texturedspenc: Remove unused rgtc1_u_alpha encoding funcAndreas Rheinhardt2024-01-281-17/+0
| | | | | | Effectively reverts 50a20de6b9edd1d893fe0ea652ccf796dd9850fb. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/texturedspenc: Fix indexing in color distribution determinationMichael Niedermayer2022-06-091-3/+3
| | | | | | | | | | Fixes CID1396405 MSE and PSNR is slightly improved, and some noticable corruptions disappear as well. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc> Signed-off-by: Marton Balint <cus@passwd.hu>
* avcodec/texturedspenc: Fix invalid shiftAndreas Rheinhardt2022-05-121-3/+3
| | | | | | | | Left shifts of signed types are UB unless the results fit into the type. (Furthermore the value to be shifted need to be nonnegative.) Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
* avcodec/texturedsp: add TextureDSPThreadContext for common decode/encode ↵Marton Balint2022-04-101-0/+4
| | | | | | | | | function This will allow using a common threaded decode or encode function from most codecs using texture DSP functions. Signed-off-by: Marton Balint <cus@passwd.hu>
* libavcodec/texturedspenc : indent after add rgtc1u_alpha funcMartin Vignali2017-10-161-3/+3
| | | | Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
* libavcodec/texturedspenc : add rgtc1_u_alpha encoding funcMartin Vignali2017-10-161-0/+17
| | | | | | | this func encode the alpha channel of the rgba input to an rgtc1u block Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
* Merge commit '5afb94c817abffad030c6b94d7003dca8aace3d5'Clément Bœsch2016-06-211-3/+3
|\ | | | | | | | | | | | | * commit '5afb94c817abffad030c6b94d7003dca8aace3d5': Mark read-only tables as static Merged-by: Clément Bœsch <u@pkh.me>
| * Mark read-only tables as staticDiego Biurrun2016-05-051-3/+3
| |
* | Merge commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb'Clément Bœsch2016-06-211-2/+2
|\| | | | | | | | | | | | | * commit '41ed7ab45fc693f7d7fc35664c0233f4c32d69bb': cosmetics: Fix spelling mistakes Merged-by: Clément Bœsch <u@pkh.me>
| * cosmetics: Fix spelling mistakesVittorio Giovara2016-05-041-2/+2
| | | | | | | | Signed-off-by: Diego Biurrun <diego@biurrun.de>
* | Merge commit 'eef38316cab68aff080cf2b83c2427a734194e8d'Hendrik Leppkes2015-11-291-7/+3
|\| | | | | | | | | | | | | * commit 'eef38316cab68aff080cf2b83c2427a734194e8d': texturedspenc: Avoid using separate variables Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * texturedspenc: Avoid using separate variablesVittorio Giovara2015-11-241-7/+3
| | | | | | | | Use the result directly, removing an unneeded cast.
* | Merge commit '7831fb90503142e32cc3c9be43bc3f9d342ded6b'Hendrik Leppkes2015-11-291-4/+4
|\| | | | | | | | | | | | | * commit '7831fb90503142e32cc3c9be43bc3f9d342ded6b': textureencdsp: cosmetics: Use normal static const for tables Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
| * textureencdsp: cosmetics: Use normal static const for tablesVittorio Giovara2015-11-241-4/+4
| |
* | Merge commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d'Michael Niedermayer2015-06-241-1/+1
|\| | | | | | | | | | | | | * commit '5dbd491eb38efab1d1313d4129ed76ab2e98176d': TextureDSP: fix erroneous condition which produced blocky output for DXT Merged-by: Michael Niedermayer <michaelni@gmx.at>
| * TextureDSP: fix erroneous condition which produced blocky output for DXTTom Butterworth2015-06-241-1/+1
| |
* | avcodec/texturedspenc: Add () to protect macro / argument evaluation orderMichael Niedermayer2015-06-231-3/+3
| | | | | | | | Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
* | Merge commit '8337e0c57345f24cf6471220e5f8a0ea21b7c1d0'Michael Niedermayer2015-06-221-1/+1
|/ | | | | | | * commit '8337e0c57345f24cf6471220e5f8a0ea21b7c1d0': Introduce a TextureDSP module Merged-by: Michael Niedermayer <michaelni@gmx.at>
* Introduce a TextureDSP moduleVittorio Giovara2015-06-221-0/+659
This module implements generic texture decompression from different families (DXTC, RGTC, BCn) and texture compression DXTC 1, 3, and 5. Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>