History

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.

Michael Niedermayer committed 14 years ago

Commit ac090fa1 parent c73fcc89 files · +4 −21Browse files

Unified · Split

9 files
  1. doc/APIchanges +0 −1
  2. libavutil/aes.c +0 −2
  3. libavutil/aes.h +1 −3
  4. libavutil/md5.c +0 −2
  5. libavutil/md5.h +1 −3
  6. libavutil/sha.c +0 −2
  7. libavutil/sha.h +1 −3
  8. libavutil/tree.c +0 −2
  9. libavutil/tree.h +1 −3
doc/APIchanges+0−1
@@ -114,7 +114,6 @@ API changes, most recent first: · 113 unmodified lines
114 114
1152012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h1152012-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
1192012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h1182012-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.
libavutil/aes.c+0−2
@@ -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
43const int av_aes_size= sizeof(AVAES);42const int av_aes_size= sizeof(AVAES);
44#endif
45 43
46struct AVAES *av_aes_alloc(void)44struct AVAES *av_aes_alloc(void)
47{45{
libavutil/aes.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
32 * @{32 * @{
33 */33 */
34 34
35#if FF_API_CONTEXT_SIZE35extern const int av_aes_size;
36extern attribute_deprecated const int av_aes_size;
37#endif
38 36
39struct AVAES;37struct AVAES;
40 38
libavutil/md5.c+0−2
@@ -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
46const int av_md5_size = sizeof(AVMD5);45const int av_md5_size = sizeof(AVMD5);
47#endif
48 46
49struct AVMD5 *av_md5_alloc(void)47struct AVMD5 *av_md5_alloc(void)
50{48{
libavutil/md5.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
32 * @{32 * @{
33 */33 */
34 34
35#if FF_API_CONTEXT_SIZE35extern const int av_md5_size;
36extern attribute_deprecated const int av_md5_size;
37#endif
38 36
39struct AVMD5;37struct AVMD5;
40 38
libavutil/sha.c+0−2
@@ -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
42const int av_sha_size = sizeof(AVSHA);41const int av_sha_size = sizeof(AVSHA);
43#endif
44 42
45struct AVSHA *av_sha_alloc(void)43struct AVSHA *av_sha_alloc(void)
46{44{
libavutil/sha.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
32 * @{32 * @{
33 */33 */
34 34
35#if FF_API_CONTEXT_SIZE35extern const int av_sha_size;
36extern attribute_deprecated const int av_sha_size;
37#endif
38 36
39struct AVSHA;37struct AVSHA;
40 38
libavutil/tree.c+0−2
@@ -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
32const int av_tree_node_size = sizeof(AVTreeNode);31const int av_tree_node_size = sizeof(AVTreeNode);
33#endif
34 32
35struct AVTreeNode *av_tree_node_alloc(void)33struct AVTreeNode *av_tree_node_alloc(void)
36{34{
libavutil/tree.h+1−3
@@ -43,9 +43,7 @@ · 42 unmodified lines
43 43
44 44
45struct AVTreeNode;45struct AVTreeNode;
46#if FF_API_CONTEXT_SIZE46extern const int av_tree_node_size;
47extern attribute_deprecated const int av_tree_node_size;
48#endif
49 47
50/**48/**
51 * Allocate an AVTreeNode.49 * Allocate an AVTreeNode.

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t