1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-12-23 12:43:46 +02:00

lavu: keep context size variables

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>
This commit is contained in:
Michael Niedermayer 2012-10-12 18:58:55 +02:00
parent c73fcc8de3
commit ac090fa68c
9 changed files with 4 additions and 21 deletions

View File

@ -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
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
Add avio_closep to complement avio_close.

View File

@ -39,9 +39,7 @@ typedef struct AVAES {
int rounds;
} AVAES;
#if FF_API_CONTEXT_SIZE
const int av_aes_size= sizeof(AVAES);
#endif
struct AVAES *av_aes_alloc(void)
{

View File

@ -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;

View File

@ -42,9 +42,7 @@ typedef struct AVMD5{
uint32_t ABCD[4];
} AVMD5;
#if FF_API_CONTEXT_SIZE
const int av_md5_size = sizeof(AVMD5);
#endif
struct AVMD5 *av_md5_alloc(void)
{

View File

@ -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;

View File

@ -38,9 +38,7 @@ typedef struct AVSHA {
void (*transform)(uint32_t *state, const uint8_t buffer[64]);
} AVSHA;
#if FF_API_CONTEXT_SIZE
const int av_sha_size = sizeof(AVSHA);
#endif
struct AVSHA *av_sha_alloc(void)
{

View File

@ -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;

View File

@ -28,9 +28,7 @@ typedef struct AVTreeNode {
int state;
} AVTreeNode;
#if FF_API_CONTEXT_SIZE
const int av_tree_node_size = sizeof(AVTreeNode);
#endif
struct AVTreeNode *av_tree_node_alloc(void)
{

View File

@ -43,9 +43,7 @@
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.