• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/minidlna/ffmpeg-2.3.4/libavcodec/

Lines Matching refs:plane

188     /* Calculate size of the luminance plane.  */
229 * @param plane pointer to the plane descriptor
232 static int copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
238 offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
239 dst = plane->pixels[ctx->buf_sel] + offset_dst;
248 ((cell->ypos + cell->height) << 2) + mv_y > plane->height ||
249 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) {
255 offset = offset_dst + mv_y * plane->pitch + mv_x;
256 src = plane->pixels[ctx->buf_sel ^ 1] + offset;
264 ctx->hdsp.put_pixels_tab[0][0](dst, src, plane->pitch, h);
269 ctx->hdsp.put_pixels_tab[1][0](dst, src, plane->pitch, h);
274 ctx->hdsp.put_pixels_tab[2][0](dst, src, plane->pitch, h);
577 * @param plane pointer to the plane descriptor
584 Plane *plane, Cell *cell, const uint8_t *data_ptr,
600 offset = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
601 block = plane->pixels[ctx->buf_sel] + offset;
605 ref_block = block - plane->pitch;
609 int ret = copy_cell(ctx, plane, cell);
619 ((cell->ypos + cell->height) << 2) + mv_y > plane->height ||
620 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) {
626 offset += mv_y * plane->pitch + mv_x;
627 ref_block = plane->pixels[ctx->buf_sel ^ 1] + offset;
673 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
680 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
690 error = decode_cell_data(ctx, cell, block, ref_block, plane->pitch,
746 if (curr_cell.xpos + curr_cell.width > (plane->width >> 2) || \
747 curr_cell.ypos + curr_cell.height > (plane->height >> 2)) { \
755 Plane *plane, int code, Cell *ref_cell,
790 if (parse_bintree(ctx, avctx, plane, code, &curr_cell, depth - 1, strip_width))
811 ret = copy_cell(ctx, plane, &curr_cell);
838 bytes_used = decode_cell(ctx, avctx, plane, &curr_cell,
856 Plane *plane, const uint8_t *data, int32_t data_size,
862 /* each plane data starts with mc_vector_count field, */
883 /* initialize the 1st cell and set its dimensions to whole plane */
885 curr_cell.width = plane->width >> 2;
886 curr_cell.height = plane->height >> 2;
890 return parse_bintree(ctx, avctx, plane, INTRA_NULL, &curr_cell, CELL_STACK_MAX, strip_width);
1016 * Convert and output the current plane.
1019 * @param[in] plane pointer to the descriptor of the plane being processed
1023 * @param[in] dst_height output plane height
1025 static void output_plane(const Plane *plane, int buf_sel, uint8_t *dst,
1029 const uint8_t *src = plane->pixels[buf_sel];
1030 uint32_t pitch = plane->pitch;
1032 dst_height = FFMIN(dst_height, plane->height);
1035 for (x = 0; x < plane->width >> 2; x++) {
1041 for (x <<= 2; x < plane->width; x++)
1044 src += pitch - plane->width;
1045 dst += dst_pitch - plane->width;
1100 /* decode luma plane */