Lines Matching refs:pool
57 FramePool *pool = (FramePool*)data;
60 for (i = 0; i < FF_ARRAY_ELEMS(pool->pools); i++)
61 av_buffer_pool_uninit(&pool->pools[i]);
68 FramePool *pool = av_mallocz(sizeof(*pool));
71 if (!pool)
74 buf = av_buffer_create((uint8_t*)pool, sizeof(*pool),
77 av_freep(&pool);
86 FramePool *pool = avctx->internal->pool ?
87 (FramePool*)avctx->internal->pool->data : NULL;
103 if (pool && pool->format == frame->format) {
105 pool->width == frame->width && pool->height == frame->height)
107 if (avctx->codec_type == AVMEDIA_TYPE_AUDIO && pool->planes == planes &&
108 pool->channels == ch && frame->nb_samples == pool->samples)
115 pool = (FramePool*)pool_buf->data;
126 avcodec_align_dimensions2(avctx, &w, &h, pool->stride_align);
139 unaligned |= linesize[i] % pool->stride_align[i];
149 pool->linesize[i] = linesize[i];
155 pool->pools[i] = av_buffer_pool_init(size[i] + 16 + STRIDE_ALIGN - 1,
159 if (!pool->pools[i]) {
165 pool->format = frame->format;
166 pool->width = frame->width;
167 pool->height = frame->height;
172 ret = av_samples_get_buffer_size(&pool->linesize[0], ch,
177 pool->pools[0] = av_buffer_pool_init(pool->linesize[0], NULL);
178 if (!pool->pools[0]) {
183 pool->format = frame->format;
184 pool->planes = planes;
185 pool->channels = ch;
186 pool->samples = frame->nb_samples;
192 av_buffer_unref(&avctx->internal->pool);
193 avctx->internal->pool = pool_buf;
203 FramePool *pool = (FramePool*)avctx->internal->pool->data;
204 int planes = pool->planes;
207 frame->linesize[0] = pool->linesize[0];
225 frame->buf[i] = av_buffer_pool_get(pool->pools[0]);
231 frame->extended_buf[i] = av_buffer_pool_get(pool->pools[0]);
248 FramePool *pool = (FramePool*)s->internal->pool->data;
267 for (i = 0; i < 4 && pool->pools[i]; i++) {
268 pic->linesize[i] = pool->linesize[i];
270 pic->buf[i] = av_buffer_pool_get(pool->pools[i]);