Lines Matching defs:buffers
63 #define BS_BUFFER 9 ///< indicates which of two frame buffers should be used
67 uint8_t *buffers[2];
68 uint8_t *pixels[2]; ///< pointer to the actual pixel data of the buffers above
160 av_freep(&ctx->planes[p].buffers[0]);
161 av_freep(&ctx->planes[p].buffers[1]);
199 /* allocate frame buffers */
205 ctx->planes[p].buffers[0] = av_malloc(!p ? luma_size : chroma_size);
206 ctx->planes[p].buffers[1] = av_malloc(!p ? luma_size : chroma_size);
208 if (!ctx->planes[p].buffers[0] || !ctx->planes[p].buffers[1])
212 memset(ctx->planes[p].buffers[0], 0x40, ctx->planes[p].pitch);
213 memset(ctx->planes[p].buffers[1], 0x40, ctx->planes[p].pitch);
216 ctx->planes[p].pixels[0] = ctx->planes[p].buffers[0] + ctx->planes[p].pitch;
217 ctx->planes[p].pixels[1] = ctx->planes[p].buffers[1] + ctx->planes[p].pitch;