]> git.sesse.net Git - ffmpeg/blobdiff - libavutil/aes.h
avutil: Add functions for allocating opaque contexts for algorithms
[ffmpeg] / libavutil / aes.h
index cf7b462092764561253adf176a3517c17aa553e8..edff275b7ad8e32b67bdd93ed5475e47494d9514 100644 (file)
 
 #include <stdint.h>
 
+#include "attributes.h"
+#include "version.h"
+
 /**
  * @defgroup lavu_aes AES
  * @ingroup lavu_crypto
  * @{
  */
 
-extern const int av_aes_size;
+#if FF_API_CONTEXT_SIZE
+extern attribute_deprecated const int av_aes_size;
+#endif
 
 struct AVAES;
 
+/**
+ * Allocate an AVAES context.
+ */
+struct AVAES *av_aes_alloc(void);
+
 /**
  * Initialize an AVAES context.
  * @param key_bits 128, 192 or 256