mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2025-12-15 19:40:07 +01:00
hap: Decode using optimal slices sizes
Enjoy some cache locality and use less threads. About 5x speedup (from 60ms to 12ms to decode a 4k frame). Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
This commit is contained in:
@@ -46,6 +46,8 @@ typedef struct HapContext {
|
||||
uint8_t *snappied; /* Buffer interacting with snappy */
|
||||
size_t max_snappy; /* Maximum compressed size for snappy buffer */
|
||||
|
||||
int slice_size; /* Optimal slice size */
|
||||
|
||||
/* Pointer to the selected compress or decompress function */
|
||||
int (*tex_fun)(uint8_t *dst, ptrdiff_t stride, const uint8_t *block);
|
||||
} HapContext;
|
||||
|
||||
Reference in New Issue
Block a user