avcodec/hapdec : reorganize code before adding multi-texture decoding

This commit is contained in:
Martin Vignali
2017-11-21 11:55:37 +01:00
parent ba98f8463f
commit 518b9ee3d1
2 changed files with 32 additions and 9 deletions

View File

@@ -81,6 +81,8 @@ typedef struct HapContext {
int slice_count; /* Number of slices for threaded operations */
int texture_count; /* 2 for HAQA, 1 for other version */
/* Pointer to the selected compress or decompress function */
int (*tex_fun)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block);
} HapContext;