summaryrefslogtreecommitdiff
path: root/vpx
diff options
context:
space:
mode:
authorDmitry Kovalev <dkovalev@google.com>2013-03-15 18:21:55 -0700
committerDmitry Kovalev <dkovalev@google.com>2013-03-15 18:21:55 -0700
commit26cec5c13f1d9f2911e903ee5089a052adea86f0 (patch)
treea460e3d0795168f15a1e728360903ee3d8d127dd /vpx
parent7d855a9f13c0b303ec07b2025a35925b7a84dde9 (diff)
downloadlibvpx-26cec5c13f1d9f2911e903ee5089a052adea86f0.tar
libvpx-26cec5c13f1d9f2911e903ee5089a052adea86f0.tar.gz
libvpx-26cec5c13f1d9f2911e903ee5089a052adea86f0.tar.bz2
libvpx-26cec5c13f1d9f2911e903ee5089a052adea86f0.zip
Basic encryption feature for libvpx.
New decoder control paramter VP8_SET_DECRYPT_KEY to set the decryption key. Change-Id: I6fc1f44d41f74f3b3f702778af1a6f8f5cc9439f
Diffstat (limited to 'vpx')
-rw-r--r--vpx/vp8dx.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/vpx/vp8dx.h b/vpx/vp8dx.h
index e2ec8b213..ca3d63c8f 100644
--- a/vpx/vp8dx.h
+++ b/vpx/vp8dx.h
@@ -63,6 +63,12 @@ enum vp8_dec_control_id {
*/
VP8D_GET_LAST_REF_USED,
+ /** decryption key to protect encoded data buffer before decoding,
+ * pointer to 32 byte array which is copied, so the array passed
+ * does not need to be preserved
+ */
+ VP8_SET_DECRYPT_KEY,
+
VP8_DECODER_CTRL_ID_MAX
};
@@ -78,6 +84,7 @@ enum vp8_dec_control_id {
VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_UPDATES, int *)
VPX_CTRL_USE_TYPE(VP8D_GET_FRAME_CORRUPTED, int *)
VPX_CTRL_USE_TYPE(VP8D_GET_LAST_REF_USED, int *)
+VPX_CTRL_USE_TYPE(VP8_SET_DECRYPT_KEY, const unsigned char *)
/*! @} - end defgroup vp8_decoder */