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>
pull/6/merge
Michael Niedermayer 12 years ago
parent c73fcc8de3
commit ac090fa68c
  1. 1
      doc/APIchanges
  2. 2
      libavutil/aes.c
  3. 4
      libavutil/aes.h
  4. 2
      libavutil/md5.c
  5. 4
      libavutil/md5.h
  6. 2
      libavutil/sha.c
  7. 4
      libavutil/sha.h
  8. 2
      libavutil/tree.c
  9. 4
      libavutil/tree.h

@ -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 const int av_aes_size;
extern attribute_deprecated const int av_aes_size;
#endif
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 const int av_md5_size;
extern attribute_deprecated const int av_md5_size;
#endif
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 const int av_sha_size;
extern attribute_deprecated const int av_sha_size;
#endif
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 const int av_tree_node_size;
extern attribute_deprecated const int av_tree_node_size;
#endif
/** /**
* Allocate an AVTreeNode. * Allocate an AVTreeNode.

Loading…
Cancel
Save