summaryrefslogtreecommitdiff
path: root/libavcodec/hap.h
diff options
context:
space:
mode:
authorTom Butterworth <bangnoise@gmail.com>2016-11-07 23:58:48 +0000
committerTom Butterworth <bangnoise@gmail.com>2016-11-10 14:27:38 +0000
commitbd6fa80d56fcda385da1c8f21eb83282a7930899 (patch)
tree7223761a5514ea3606c2eed012601f6810d061e6 /libavcodec/hap.h
parent08be65a07557686bd2f0a8b318145802d419e79b (diff)
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 <martin.vignali@gmail.com> Signed-off-by: Tom Butterworth <bangnoise@gmail.com>
Diffstat (limited to 'libavcodec/hap.h')
-rw-r--r--libavcodec/hap.h1
1 files changed, 1 insertions, 0 deletions
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;