Go to the documentation of this file.
36 #ifndef AVCODEC_TEXTUREDSP_H
37 #define AVCODEC_TEXTUREDSP_H
42 #define TEXTURE_BLOCK_W 4
43 #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)
void ff_texturedspenc_init(TextureDSPEncContext *c)
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)
union TextureDSPThreadContext::@174 tex_data
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
int ff_texturedsp_exec_decompress_threads(struct AVCodecContext *avctx, TextureDSPThreadContext *ctx)
int ff_texturedsp_exec_compress_threads(struct AVCodecContext *avctx, TextureDSPThreadContext *ctx)
int(* dxt5y_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt5ys_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
main external API structure.
int(* dxt1_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* dxt3_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
union TextureDSPThreadContext::@173 frame_data
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(* dxt5_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)
int(* rgtc1s_block)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block)