From 977105407cae55876041dddbf4ce0934cdd4cd6c Mon Sep 17 00:00:00 2001 From: Luca Barbato Date: Fri, 17 Jul 2015 03:07:07 +0200 Subject: 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 --- libavcodec/hap.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libavcodec/hap.h') diff --git a/libavcodec/hap.h b/libavcodec/hap.h index 1250a6f683..75299fda74 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -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; -- cgit v1.2.3