diff mbox series

[FFmpeg-devel,3/7] avcodec/texturedspenc: Remove unused rgtc1_u_alpha encoding func

Message ID AS8P250MB074461CCFF3649C00F32F83A8F7B2@AS8P250MB0744.EURP250.PROD.OUTLOOK.COM
State Accepted
Commit e1d1304b4b30e442cb0b348ba486003b40740af3
Headers show
Series [FFmpeg-devel,1/7] avcodec/dxvenc: Don't cast const away | expand

Checks

Context Check Description
yinshiyou/make_loongarch64 success Make finished
yinshiyou/make_fate_loongarch64 success Make fate finished
andriy/make_x86 success Make finished
andriy/make_fate_x86 success Make fate finished

Commit Message

Andreas Rheinhardt Jan. 24, 2024, 7:52 p.m. UTC
Effectively reverts 50a20de6b9edd1d893fe0ea652ccf796dd9850fb.

Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
---
 libavcodec/texturedspenc.c | 17 -----------------
 1 file changed, 17 deletions(-)
diff mbox series

Patch

diff --git a/libavcodec/texturedspenc.c b/libavcodec/texturedspenc.c
index 7ae28ea134..54cf6fe6e0 100644
--- a/libavcodec/texturedspenc.c
+++ b/libavcodec/texturedspenc.c
@@ -647,28 +647,11 @@  static int dxt5ys_block(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
     return 16;
 }
 
-/**
- * Compress one block of RGBA pixels in a RGTC1U texture and store the
- * resulting bytes in 'dst'. Use the alpha channel of the input image.
- *
- * @param dst    output buffer.
- * @param stride scanline in bytes.
- * @param block  block to compress.
- * @return how much texture data has been written.
- */
-static int rgtc1u_alpha_block(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
-{
-    compress_alpha(dst, stride, block);
-
-    return 8;
-}
-
 av_cold void ff_texturedspenc_init(TextureDSPContext *c)
 {
     c->dxt1_block         = dxt1_block;
     c->dxt5_block         = dxt5_block;
     c->dxt5ys_block       = dxt5ys_block;
-    c->rgtc1u_alpha_block = rgtc1u_alpha_block;
 }
 
 #define TEXTUREDSP_FUNC_NAME ff_texturedsp_compress_thread