From bd6fa80d56fcda385da1c8f21eb83282a7930899 Mon Sep 17 00:00:00 2001 From: Tom Butterworth Date: Mon, 7 Nov 2016 23:58:48 +0000 Subject: avcodec/hap: add "compressor" option to Hap encoder to disable secondary compression The secondary compression in Hap is optional, this change exposes that option to the user as some use-cases favour higher bitrate files to reduce workload decoding. Adds "none" or "snappy" as options for "compressor". Selecting "none" disregards "chunks" option: chunking is only of benefit decompressing Snappy. Reviewed-by: Martin Vignali Signed-off-by: Tom Butterworth --- libavcodec/hap.h | 1 + 1 file changed, 1 insertion(+) (limited to 'libavcodec/hap.h') diff --git a/libavcodec/hap.h b/libavcodec/hap.h index e4762ee438..f39e621805 100644 --- a/libavcodec/hap.h +++ b/libavcodec/hap.h @@ -65,6 +65,7 @@ typedef struct HapContext { enum HapTextureFormat opt_tex_fmt; /* Texture type (encoder only) */ int opt_chunk_count; /* User-requested chunk count (encoder only) */ + int opt_compressor; /* User-requested compressor (encoder only) */ int chunk_count; HapChunk *chunks; -- cgit v1.2.3