X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=libavcodec%2Fhap.h;h=74455f3dd9d6d4429eba8bd9da8e7159881ffbc9;hb=1da9851e3470a019a35793c913a1de07f75dc3fc;hp=0ee65335d913bf7c4dc1a98cd0f8c2eb2dceeb22;hpb=93ccba96df6340249b0db227d5bc3297010797a4;p=ffmpeg diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 0ee65335d91..74455f3dd9d 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 */ @@ -81,8 +82,13 @@ 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) */ + int uncompress_pix_size; /* nb of byte / pixel for the target picture */ + /* 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; /*