summaryrefslogtreecommitdiff
path: root/ffmpeg/libavfilter/video.c
diff options
context:
space:
mode:
authorTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
committerTim Redfern <tim@eclectronics.org>2013-12-29 12:19:38 +0000
commitf7813a5324be39d13ab536c245d15dfc602a7849 (patch)
treefad99148b88823d34a5df2f0a25881a002eb291b /ffmpeg/libavfilter/video.c
parentb7a5a477b8ff4d4e3028b9dfb9a9df0a41463f92 (diff)
basic type mechanism working
Diffstat (limited to 'ffmpeg/libavfilter/video.c')
-rw-r--r--ffmpeg/libavfilter/video.c34
1 files changed, 0 insertions, 34 deletions
diff --git a/ffmpeg/libavfilter/video.c b/ffmpeg/libavfilter/video.c
index b274070..74c9161 100644
--- a/ffmpeg/libavfilter/video.c
+++ b/ffmpeg/libavfilter/video.c
@@ -45,32 +45,6 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
AVFrame *frame = av_frame_alloc();
int ret;
-#if 0 //POOL
- AVFilterPool *pool = link->pool;
- if (pool) {
- for (i = 0; i < POOL_SIZE; i++) {
- picref = pool->pic[i];
- if (picref && picref->buf->format == link->format && picref->buf->w == w && picref->buf->h == h) {
- AVFilterBuffer *pic = picref->buf;
- pool->pic[i] = NULL;
- pool->count--;
- av_assert0(!picref->video->qp_table);
- picref->video->w = w;
- picref->video->h = h;
- picref->perms = full_perms;
- picref->format = link->format;
- pic->refcount = 1;
- memcpy(picref->data, pic->data, sizeof(picref->data));
- memcpy(picref->linesize, pic->linesize, sizeof(picref->linesize));
- pool->refcount++;
- return picref;
- }
- }
- } else {
- pool = link->pool = av_mallocz(sizeof(AVFilterPool));
- pool->refcount = 1;
- }
-#endif
if (!frame)
return NULL;
@@ -82,14 +56,6 @@ AVFrame *ff_default_get_video_buffer(AVFilterLink *link, int w, int h)
if (ret < 0)
av_frame_free(&frame);
-#if 0 //POOL
- memset(data[0], 128, i);
-
- picref->buf->priv = pool;
- picref->buf->free = NULL;
- pool->refcount++;
-#endif
-
return frame;
}