Go to the documentation of this file.
36 #ifndef AVCODEC_TEXTUREDSP_H
37 #define AVCODEC_TEXTUREDSP_H
44 #define TEXTURE_BLOCK_W 4
45 #define TEXTURE_BLOCK_H 4
int(* dxt1_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* rgtc1u_alpha_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* rgtc1u_gray_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* rgtc2s_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt2_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt5ys_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int ff_texturedsp_decompress_thread(AVCodecContext *avctx, void *arg, int slice, int thread_nb)
int ff_texturedsp_compress_thread(AVCodecContext *avctx, void *arg, int slice, int thread_nb)
int(* rgtc1u_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt5_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt1a_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxn3dc_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
void ff_texturedspenc_init(TextureDSPContext *c)
int(* rgtc2u_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt4_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
Undefined Behavior In the C some operations are like signed integer dereferencing freed accessing outside allocated Undefined Behavior must not occur in a C it is not safe even if the output of undefined operations is unused The unsafety may seem nit picking but Optimizing compilers have in fact optimized code on the assumption that no undefined Behavior occurs Optimizing code based on wrong assumptions can and has in some cases lead to effects beyond the output of computations The signed integer overflow problem in speed critical code Code which is highly optimized and works with signed integers sometimes has the problem that often the output of the computation does not c
union TextureDSPThreadContext::@168 tex_data
int(* dxt5y_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
union TextureDSPThreadContext::@167 frame_data
main external API structure.
int(* dxt3_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* tex_funct)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
void ff_texturedsp_init(TextureDSPContext *c)
The exact code depends on how similar the blocks are and how related they are to the block
int(* rgtc1s_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)