Andreas Rheinhardt
341d0419e1
avcodec/texturedsp: Factor common code out
...
Namely calling avctx->execute2(avctx,...).
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-01-28 11:00:01 +01:00
Andreas Rheinhardt
a3fc9fb9fb
avcodec/texturedsp: Add separate TextureDSPEncContext
...
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>
2024-01-28 10:52:48 +01:00
Andreas Rheinhardt
e1d1304b4b
avcodec/texturedspenc: Remove unused rgtc1_u_alpha encoding func
...
Effectively reverts 50a20de6b9 .
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
2024-01-28 10:52:38 +01:00
Michael Niedermayer
ade36d61de
avcodec/texturedspenc: Fix indexing in color distribution determination
...
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>
2022-06-09 00:02:02 +02:00
Andreas Rheinhardt
e92e74b897
avcodec/texturedspenc: Fix invalid shift
...
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>
2022-05-12 08:33:11 +02:00
Marton Balint
541d3755e9
avcodec/texturedsp: add TextureDSPThreadContext for common decode/encode 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>
2022-04-10 20:12:23 +02:00
Martin Vignali
7480f232d2
libavcodec/texturedspenc : indent after add rgtc1u_alpha func
...
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
2017-10-16 15:35:04 +01:00
Martin Vignali
50a20de6b9
libavcodec/texturedspenc : add rgtc1_u_alpha encoding func
...
this func encode the alpha channel of the rgba input
to an rgtc1u block
Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
2017-10-16 15:34:14 +01:00
Clément Bœsch
8df1dbd798
Merge commit ' 5afb94c817'
...
* commit '5afb94c817 ':
Mark read-only tables as static
Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21 22:09:35 +02:00
Clément Bœsch
8ef57a0d61
Merge commit ' 41ed7ab45f'
...
* commit '41ed7ab45f ':
cosmetics: Fix spelling mistakes
Merged-by: Clément Bœsch <u@pkh.me>
2016-06-21 21:55:34 +02:00
Diego Biurrun
5afb94c817
Mark read-only tables as static
2016-05-05 10:48:34 +02:00
Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
2016-05-04 18:16:21 +02:00
Hendrik Leppkes
c754591677
Merge commit ' eef38316ca'
...
* commit 'eef38316ca ':
texturedspenc: Avoid using separate variables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-11-29 16:05:50 +01:00
Hendrik Leppkes
f01a276b50
Merge commit ' 7831fb9050'
...
* commit '7831fb9050 ':
textureencdsp: cosmetics: Use normal static const for tables
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2015-11-29 16:05:19 +01:00
Vittorio Giovara
eef38316ca
texturedspenc: Avoid using separate variables
...
Use the result directly, removing an unneeded cast.
2015-11-24 09:24:39 -05:00
Vittorio Giovara
7831fb9050
textureencdsp: cosmetics: Use normal static const for tables
2015-11-24 09:24:30 -05:00
Michael Niedermayer
eb823df817
Merge commit ' 5dbd491eb3'
...
* commit '5dbd491eb3 ':
TextureDSP: fix erroneous condition which produced blocky output for DXT
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-24 21:06:58 +02:00
Tom Butterworth
5dbd491eb3
TextureDSP: fix erroneous condition which produced blocky output for DXT
2015-06-24 14:45:23 +01:00
Michael Niedermayer
9f997acdd0
avcodec/texturedspenc: Add () to protect macro / argument evaluation order
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-23 17:12:00 +02:00
Michael Niedermayer
d1dc22dddd
Merge commit ' 8337e0c573'
...
* commit '8337e0c573 ':
Introduce a TextureDSP module
Merged-by: Michael Niedermayer <michaelni@gmx.at>
2015-06-22 20:57:41 +02:00
Vittorio Giovara
8337e0c573
Introduce a TextureDSP module
...
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>
2015-06-22 15:23:08 +01:00