They are essential to be able to use the utils without av_malloc() That is for example use with malloc(), memalign(), some other private allocation function, on the stack or others. Signed-off-by: Michael Niedermayer <michaelni@gmx.at>tags/n1.1
@@ -114,7 +114,6 @@ API changes, most recent first: | |||||
2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h | 2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h | ||||
Add functions for allocating the opaque contexts for the algorithms, | Add functions for allocating the opaque contexts for the algorithms, | ||||
deprecate the context size variables. | |||||
2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h | 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h | ||||
Add avio_closep to complement avio_close. | Add avio_closep to complement avio_close. | ||||
@@ -39,9 +39,7 @@ typedef struct AVAES { | |||||
int rounds; | int rounds; | ||||
} AVAES; | } AVAES; | ||||
#if FF_API_CONTEXT_SIZE | |||||
const int av_aes_size= sizeof(AVAES); | const int av_aes_size= sizeof(AVAES); | ||||
#endif | |||||
struct AVAES *av_aes_alloc(void) | struct AVAES *av_aes_alloc(void) | ||||
{ | { | ||||
@@ -32,9 +32,7 @@ | |||||
* @{ | * @{ | ||||
*/ | */ | ||||
#if FF_API_CONTEXT_SIZE | |||||
extern attribute_deprecated const int av_aes_size; | |||||
#endif | |||||
extern const int av_aes_size; | |||||
struct AVAES; | struct AVAES; | ||||
@@ -42,9 +42,7 @@ typedef struct AVMD5{ | |||||
uint32_t ABCD[4]; | uint32_t ABCD[4]; | ||||
} AVMD5; | } AVMD5; | ||||
#if FF_API_CONTEXT_SIZE | |||||
const int av_md5_size = sizeof(AVMD5); | const int av_md5_size = sizeof(AVMD5); | ||||
#endif | |||||
struct AVMD5 *av_md5_alloc(void) | struct AVMD5 *av_md5_alloc(void) | ||||
{ | { | ||||
@@ -32,9 +32,7 @@ | |||||
* @{ | * @{ | ||||
*/ | */ | ||||
#if FF_API_CONTEXT_SIZE | |||||
extern attribute_deprecated const int av_md5_size; | |||||
#endif | |||||
extern const int av_md5_size; | |||||
struct AVMD5; | struct AVMD5; | ||||
@@ -38,9 +38,7 @@ typedef struct AVSHA { | |||||
void (*transform)(uint32_t *state, const uint8_t buffer[64]); | void (*transform)(uint32_t *state, const uint8_t buffer[64]); | ||||
} AVSHA; | } AVSHA; | ||||
#if FF_API_CONTEXT_SIZE | |||||
const int av_sha_size = sizeof(AVSHA); | const int av_sha_size = sizeof(AVSHA); | ||||
#endif | |||||
struct AVSHA *av_sha_alloc(void) | struct AVSHA *av_sha_alloc(void) | ||||
{ | { | ||||
@@ -32,9 +32,7 @@ | |||||
* @{ | * @{ | ||||
*/ | */ | ||||
#if FF_API_CONTEXT_SIZE | |||||
extern attribute_deprecated const int av_sha_size; | |||||
#endif | |||||
extern const int av_sha_size; | |||||
struct AVSHA; | struct AVSHA; | ||||
@@ -28,9 +28,7 @@ typedef struct AVTreeNode { | |||||
int state; | int state; | ||||
} AVTreeNode; | } AVTreeNode; | ||||
#if FF_API_CONTEXT_SIZE | |||||
const int av_tree_node_size = sizeof(AVTreeNode); | const int av_tree_node_size = sizeof(AVTreeNode); | ||||
#endif | |||||
struct AVTreeNode *av_tree_node_alloc(void) | struct AVTreeNode *av_tree_node_alloc(void) | ||||
{ | { | ||||
@@ -43,9 +43,7 @@ | |||||
struct AVTreeNode; | struct AVTreeNode; | ||||
#if FF_API_CONTEXT_SIZE | |||||
extern attribute_deprecated const int av_tree_node_size; | |||||
#endif | |||||
extern const int av_tree_node_size; | |||||
/** | /** | ||||
* Allocate an AVTreeNode. | * Allocate an AVTreeNode. | ||||