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.
Unified · Split
| @@ -114,7 +114,6 @@ API changes, most recent first: · 113 unmodified lines | |||
| 114 | 114 | ||
| 115 | 2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h | 115 | 2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h |
| 116 | Add functions for allocating the opaque contexts for the algorithms, | 116 | Add functions for allocating the opaque contexts for the algorithms, |
| 117 | deprecate the context size variables. | ||
| 118 | 117 | ||
| 119 | 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h | 118 | 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h |
| 120 | Add avio_closep to complement avio_close. | 119 | Add avio_closep to complement avio_close. |
| @@ -39,9 +39,7 @@ typedef struct AVAES { · 38 unmodified lines | |||
| 39 | int rounds; | 39 | int rounds; |
| 40 | } AVAES; | 40 | } AVAES; |
| 41 | 41 | ||
| 42 | #if FF_API_CONTEXT_SIZE | ||
| 43 | const int av_aes_size= sizeof(AVAES); | 42 | const int av_aes_size= sizeof(AVAES); |
| 44 | #endif | ||
| 45 | 43 | ||
| 46 | struct AVAES *av_aes_alloc(void) | 44 | struct AVAES *av_aes_alloc(void) |
| 47 | { | 45 | { |
| @@ -32,9 +32,7 @@ · 31 unmodified lines | |||
| 32 | * @{ | 32 | * @{ |
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #if FF_API_CONTEXT_SIZE | 35 | extern const int av_aes_size; |
| 36 | extern attribute_deprecated const int av_aes_size; | ||
| 37 | #endif | ||
| 38 | 36 | ||
| 39 | struct AVAES; | 37 | struct AVAES; |
| 40 | 38 | ||
| @@ -42,9 +42,7 @@ typedef struct AVMD5{ · 41 unmodified lines | |||
| 42 | uint32_t ABCD[4]; | 42 | uint32_t ABCD[4]; |
| 43 | } AVMD5; | 43 | } AVMD5; |
| 44 | 44 | ||
| 45 | #if FF_API_CONTEXT_SIZE | ||
| 46 | const int av_md5_size = sizeof(AVMD5); | 45 | const int av_md5_size = sizeof(AVMD5); |
| 47 | #endif | ||
| 48 | 46 | ||
| 49 | struct AVMD5 *av_md5_alloc(void) | 47 | struct AVMD5 *av_md5_alloc(void) |
| 50 | { | 48 | { |
| @@ -32,9 +32,7 @@ · 31 unmodified lines | |||
| 32 | * @{ | 32 | * @{ |
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #if FF_API_CONTEXT_SIZE | 35 | extern const int av_md5_size; |
| 36 | extern attribute_deprecated const int av_md5_size; | ||
| 37 | #endif | ||
| 38 | 36 | ||
| 39 | struct AVMD5; | 37 | struct AVMD5; |
| 40 | 38 | ||
| @@ -38,9 +38,7 @@ typedef struct AVSHA { · 37 unmodified lines | |||
| 38 | void (*transform)(uint32_t *state, const uint8_t buffer[64]); | 38 | void (*transform)(uint32_t *state, const uint8_t buffer[64]); |
| 39 | } AVSHA; | 39 | } AVSHA; |
| 40 | 40 | ||
| 41 | #if FF_API_CONTEXT_SIZE | ||
| 42 | const int av_sha_size = sizeof(AVSHA); | 41 | const int av_sha_size = sizeof(AVSHA); |
| 43 | #endif | ||
| 44 | 42 | ||
| 45 | struct AVSHA *av_sha_alloc(void) | 43 | struct AVSHA *av_sha_alloc(void) |
| 46 | { | 44 | { |
| @@ -32,9 +32,7 @@ · 31 unmodified lines | |||
| 32 | * @{ | 32 | * @{ |
| 33 | */ | 33 | */ |
| 34 | 34 | ||
| 35 | #if FF_API_CONTEXT_SIZE | 35 | extern const int av_sha_size; |
| 36 | extern attribute_deprecated const int av_sha_size; | ||
| 37 | #endif | ||
| 38 | 36 | ||
| 39 | struct AVSHA; | 37 | struct AVSHA; |
| 40 | 38 | ||
| @@ -28,9 +28,7 @@ typedef struct AVTreeNode { · 27 unmodified lines | |||
| 28 | int state; | 28 | int state; |
| 29 | } AVTreeNode; | 29 | } AVTreeNode; |
| 30 | 30 | ||
| 31 | #if FF_API_CONTEXT_SIZE | ||
| 32 | const int av_tree_node_size = sizeof(AVTreeNode); | 31 | const int av_tree_node_size = sizeof(AVTreeNode); |
| 33 | #endif | ||
| 34 | 32 | ||
| 35 | struct AVTreeNode *av_tree_node_alloc(void) | 33 | struct AVTreeNode *av_tree_node_alloc(void) |
| 36 | { | 34 | { |
| @@ -43,9 +43,7 @@ · 42 unmodified lines | |||
| 43 | 43 | ||
| 44 | 44 | ||
| 45 | struct AVTreeNode; | 45 | struct AVTreeNode; |
| 46 | #if FF_API_CONTEXT_SIZE | 46 | extern const int av_tree_node_size; |
| 47 | extern attribute_deprecated const int av_tree_node_size; | ||
| 48 | #endif | ||
| 49 | 47 | ||
| 50 | /** | 48 | /** |
| 51 | * Allocate an AVTreeNode. | 49 | * Allocate an AVTreeNode. |