]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/hap.h
fate-opus: update tests to use new decoder outputs
[ffmpeg] / libavcodec / hap.h
index 0ee65335d913bf7c4dc1a98cd0f8c2eb2dceeb22..74455f3dd9d6d4429eba8bd9da8e7159881ffbc9 100644 (file)
@@ -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;
 
 /*