diff options
author | Martin Vignali <martin.vignali@gmail.com> | 2017-11-21 13:59:02 +0300 |
---|---|---|
committer | Martin Vignali <martin.vignali@gmail.com> | 2017-11-21 14:05:16 +0300 |
commit | 2053832d1caae1cb37250d8a2c08591e07c65774 (patch) | |
tree | 9de4e22b3549346d8cc454c4eb6f27393728a61f /libavcodec/hap.h | |
parent | fca89199615928a21cb0b5b7a0839eb04f972f55 (diff) |
avcodec/hapdec : add support for hapqa decoding
Diffstat (limited to 'libavcodec/hap.h')
-rw-r--r-- | libavcodec/hap.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/libavcodec/hap.h b/libavcodec/hap.h index b80511d6a4..4dfbb8cb16 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -73,6 +73,7 @@ typedef struct HapContext { 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 */ @@ -82,9 +83,11 @@ typedef struct HapContext { 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) */ /* Pointer to the selected compress or decompress function */ 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); } HapContext; /* |