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
114114
115115 2012-10-xx - xxxxxxx - lavu 51.43.0 - aes.h, md5.h, sha.h, tree.h
116116 Add functions for allocating the opaque contexts for the algorithms,
117− deprecate the context size variables.
118117
119118 2012-10-xx - xxxxxxx - lavf 54.18.0 - avio.h
120119 Add avio_closep to complement avio_close.
libavutil/aes.c+0−2
@@ -39,9 +39,7 @@ typedef struct AVAES { · 38 unmodified lines
3939 int rounds;
4040 } AVAES;
4141
42−#if FF_API_CONTEXT_SIZE
4342 const int av_aes_size= sizeof(AVAES);
44−#endif
4543
4644 struct AVAES *av_aes_alloc(void)
4745 {
libavutil/aes.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
3232 * @{
3333 */
3434
35−#if FF_API_CONTEXT_SIZE
36−extern attribute_deprecated const int av_aes_size;
37−#endif
35+extern const int av_aes_size;
3836
3937 struct AVAES;
4038
libavutil/md5.c+0−2
@@ -42,9 +42,7 @@ typedef struct AVMD5{ · 41 unmodified lines
4242 uint32_t ABCD[4];
4343 } AVMD5;
4444
45−#if FF_API_CONTEXT_SIZE
4645 const int av_md5_size = sizeof(AVMD5);
47−#endif
4846
4947 struct AVMD5 *av_md5_alloc(void)
5048 {
libavutil/md5.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
3232 * @{
3333 */
3434
35−#if FF_API_CONTEXT_SIZE
36−extern attribute_deprecated const int av_md5_size;
37−#endif
35+extern const int av_md5_size;
3836
3937 struct AVMD5;
4038
libavutil/sha.c+0−2
@@ -38,9 +38,7 @@ typedef struct AVSHA { · 37 unmodified lines
3838 void (*transform)(uint32_t *state, const uint8_t buffer[64]);
3939 } AVSHA;
4040
41−#if FF_API_CONTEXT_SIZE
4241 const int av_sha_size = sizeof(AVSHA);
43−#endif
4442
4543 struct AVSHA *av_sha_alloc(void)
4644 {
libavutil/sha.h+1−3
@@ -32,9 +32,7 @@ · 31 unmodified lines
3232 * @{
3333 */
3434
35−#if FF_API_CONTEXT_SIZE
36−extern attribute_deprecated const int av_sha_size;
37−#endif
35+extern const int av_sha_size;
3836
3937 struct AVSHA;
4038
libavutil/tree.c+0−2
@@ -28,9 +28,7 @@ typedef struct AVTreeNode { · 27 unmodified lines
2828 int state;
2929 } AVTreeNode;
3030
31−#if FF_API_CONTEXT_SIZE
3231 const int av_tree_node_size = sizeof(AVTreeNode);
33−#endif
3432
3533 struct AVTreeNode *av_tree_node_alloc(void)
3634 {
libavutil/tree.h+1−3
@@ -43,9 +43,7 @@ · 42 unmodified lines
4343
4444
4545 struct AVTreeNode;
46−#if FF_API_CONTEXT_SIZE
47−extern attribute_deprecated const int av_tree_node_size;
48−#endif
46+extern const int av_tree_node_size;
4947
5048 /**
5149 * 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