diff options
author | Marton Balint <cus@passwd.hu> | 2022-03-19 21:01:41 +0100 |
---|---|---|
committer | Marton Balint <cus@passwd.hu> | 2022-04-10 20:12:23 +0200 |
commit | b3074ac9f4987bd730d6e8e7d50c107ec65d79a3 (patch) | |
tree | 5f5afdc080c73e069185212b50a50adf45cb3db6 /libavcodec/hap.h | |
parent | 30fdcd2e12532c23e4662abf8523292c3f32e5e4 (diff) |
avcodec/hapdec: use the common texturedsp decode function
Signed-off-by: Marton Balint <cus@passwd.hu>
Diffstat (limited to 'libavcodec/hap.h')
-rw-r--r-- | libavcodec/hap.h | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 00c3dbb32d..7e065e4838 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -72,23 +72,18 @@ typedef struct HapContext { HapChunk *chunks; int *chunk_results; /* Results from threaded operations */ - int tex_rat; /* Compression ratio */ - int tex_rat2; /* Compression ratio of the second texture */ - const uint8_t *tex_data; /* Compressed texture */ uint8_t *tex_buf; /* Buffer for compressed texture */ size_t tex_size; /* Size of the compressed texture */ size_t max_snappy; /* Maximum compressed size for snappy buffer */ - int slice_count; /* Number of slices for threaded operations */ - int texture_count; /* 2 for HAQA, 1 for other version */ int texture_section_size; /* size of the part of the texture section (for HAPQA) */ - int uncompress_pix_size; /* nb of byte / pixel for the target picture */ - /* Pointer to the selected compress or decompress function */ + /* Pointer to the selected compress function (encoder only) */ int (*tex_fun)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block); - int (*tex_fun2)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block); + + TextureDSPThreadContext dec[2]; } HapContext; /* |