Signed-off-by: Paul B Mahol <onemda@gmail.com>
Paul B Mahol authored on 2013/09/13 22:47:07... | ... |
@@ -45,32 +45,6 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h) |
45 | 45 |
AVFrame *frame = av_frame_alloc(); |
46 | 46 |
int ret; |
47 | 47 |
|
48 |
-#if 0 //POOL |
|
49 |
- AVFilterPool *pool = link->pool; |
|
50 |
- if (pool) { |
|
51 |
- for (i = 0; i < POOL_SIZE; i++) { |
|
52 |
- picref = pool->pic[i]; |
|
53 |
- if (picref && picref->buf->format == link->format && picref->buf->w == w && picref->buf->h == h) { |
|
54 |
- AVFilterBuffer *pic = picref->buf; |
|
55 |
- pool->pic[i] = NULL; |
|
56 |
- pool->count--; |
|
57 |
- av_assert0(!picref->video->qp_table); |
|
58 |
- picref->video->w = w; |
|
59 |
- picref->video->h = h; |
|
60 |
- picref->perms = full_perms; |
|
61 |
- picref->format = link->format; |
|
62 |
- pic->refcount = 1; |
|
63 |
- memcpy(picref->data, pic->data, sizeof(picref->data)); |
|
64 |
- memcpy(picref->linesize, pic->linesize, sizeof(picref->linesize)); |
|
65 |
- pool->refcount++; |
|
66 |
- return picref; |
|
67 |
- } |
|
68 |
- } |
|
69 |
- } else { |
|
70 |
- pool = link->pool = av_mallocz(sizeof(AVFilterPool)); |
|
71 |
- pool->refcount = 1; |
|
72 |
- } |
|
73 |
-#endif |
|
74 | 48 |
if (!frame) |
75 | 49 |
return NULL; |
76 | 50 |
|
... | ... |
@@ -82,14 +56,6 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h) |
82 | 82 |
if (ret < 0) |
83 | 83 |
av_frame_free(&frame); |
84 | 84 |
|
85 |
-#if 0 //POOL |
|
86 |
- memset(data[0], 128, i); |
|
87 |
- |
|
88 |
- picref->buf->priv = pool; |
|
89 |
- picref->buf->free = NULL; |
|
90 |
- pool->refcount++; |
|
91 |
-#endif |
|
92 |
- |
|
93 | 85 |
return frame; |
94 | 86 |
} |
95 | 87 |
|