Lines Matching defs:planes

110     Plane           planes[3];
160 av_freep(&ctx->planes[p].buffers[0]);
161 av_freep(&ctx->planes[p].buffers[1]);
162 ctx->planes[p].pixels[0] = ctx->planes[p].pixels[1] = 0;
195 /* Calculate size of a chrominance planes. */
201 ctx->planes[p].pitch = !p ? luma_pitch : chroma_pitch;
202 ctx->planes[p].width = !p ? luma_width : chroma_width;
203 ctx->planes[p].height = !p ? luma_height : chroma_height;
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;
218 memset(ctx->planes[p].pixels[0], 0, ctx->planes[p].pitch * ctx->planes[p].height);
219 memset(ctx->planes[p].pixels[1], 0, ctx->planes[p].pitch * ctx->planes[p].height);
969 /* unfortunately there is no common order of planes in the buffer */
970 /* so we use that sorting algo for determining planes data sizes */
1103 if ((res = decode_plane(ctx, avctx, ctx->planes, ctx->y_data_ptr, ctx->y_data_size, 40)))
1106 /* decode chroma planes */
1107 if ((res = decode_plane(ctx, avctx, &ctx->planes[1], ctx->u_data_ptr, ctx->u_data_size, 10)))
1110 if ((res = decode_plane(ctx, avctx, &ctx->planes[2], ctx->v_data_ptr, ctx->v_data_size, 10)))
1113 output_plane(&ctx->planes[0], ctx->buf_sel,
1116 output_plane(&ctx->planes[1], ctx->buf_sel,
1119 output_plane(&ctx->planes[2], ctx->buf_sel,