Browse Source

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>
tags/n1.1
Michael Niedermayer 12 years ago
parent
commit
ac090fa68c
9 changed files with 4 additions and 21 deletions
  1. +0
    -1
      doc/APIchanges
  2. +0
    -2
      libavutil/aes.c
  3. +1
    -3
      libavutil/aes.h
  4. +0
    -2
      libavutil/md5.c
  5. +1
    -3
      libavutil/md5.h
  6. +0
    -2
      libavutil/sha.c
  7. +1
    -3
      libavutil/sha.h
  8. +0
    -2
      libavutil/tree.c
  9. +1
    -3
      libavutil/tree.h

+ 0
- 1
doc/APIchanges 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 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.


+ 0
- 2
libavutil/aes.c View File

@@ -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)
{ {


+ 1
- 3
libavutil/aes.h 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; struct AVAES;




+ 0
- 2
libavutil/md5.c View File

@@ -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)
{ {


+ 1
- 3
libavutil/md5.h 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; struct AVMD5;




+ 0
- 2
libavutil/sha.c View File

@@ -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)
{ {


+ 1
- 3
libavutil/sha.h 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; struct AVSHA;




+ 0
- 2
libavutil/tree.c View File

@@ -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)
{ {


+ 1
- 3
libavutil/tree.h View File

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


Loading…
Cancel
Save