• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/iserver/libav-0.8.8/libavcodec/

Lines Matching refs:plane

173     /* Calculate size of the luminance plane.  */
222 * @param plane pointer to the plane descriptor
225 static int copy_cell(Indeo3DecodeContext *ctx, Plane *plane, Cell *cell)
231 offset_dst = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
232 dst = plane->pixels[ctx->buf_sel] + offset_dst;
238 ((cell->ypos + cell->height) << 2) + mv_y > plane->height ||
239 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) {
245 offset = offset_dst + mv_y * plane->pitch + mv_x;
246 src = plane->pixels[ctx->buf_sel ^ 1] + offset;
254 ctx->dsp.put_no_rnd_pixels_tab[0][0](dst, src, plane->pitch, h);
259 ctx->dsp.put_no_rnd_pixels_tab[1][0](dst, src, plane->pitch, h);
266 copy_block4(dst, src, plane->pitch, plane->pitch, h);
568 * @param plane pointer to the plane descriptor
575 Plane *plane, Cell *cell, const uint8_t *data_ptr,
591 offset = (cell->ypos << 2) * plane->pitch + (cell->xpos << 2);
592 block = plane->pixels[ctx->buf_sel] + offset;
595 ref_block = block - plane->pitch;
599 int ret = copy_cell(ctx, plane, cell);
609 ((cell->ypos + cell->height) << 2) + mv_y > plane->height ||
610 ((cell->xpos + cell->width) << 2) + mv_x > plane->width) {
616 offset += mv_y * plane->pitch + mv_x;
617 ref_block = plane->pixels[ctx->buf_sel ^ 1] + offset;
663 error = decode_cell_data(cell, block, ref_block, plane->pitch, 0, zoom_fac,
669 error = decode_cell_data(cell, block, ref_block, plane->pitch, 1, 1,
678 error = decode_cell_data(cell, block, ref_block, plane->pitch,
734 if (curr_cell.xpos + curr_cell.width > (plane->width >> 2) || \
735 curr_cell.ypos + curr_cell.height > (plane->height >> 2)) { \
743 Plane *plane, int code, Cell *ref_cell,
778 if (parse_bintree(ctx, avctx, plane, code, &curr_cell, depth - 1, strip_width))
798 ret = copy_cell(ctx, plane, &curr_cell);
821 bytes_used = decode_cell(ctx, avctx, plane, &curr_cell,
839 Plane *plane, const uint8_t *data, int32_t data_size,
845 /* each plane data starts with mc_vector_count field, */
866 /* initialize the 1st cell and set its dimensions to whole plane */
868 curr_cell.width = plane->width >> 2;
869 curr_cell.height = plane->height >> 2;
873 return parse_bintree(ctx, avctx, plane, INTRA_NULL, &curr_cell, CELL_STACK_MAX, strip_width);
1002 * Convert and output the current plane.
1005 * @param[in] plane pointer to the descriptor of the plane being processed
1010 static void output_plane(const Plane *plane, int buf_sel, uint8_t *dst, int dst_pitch)
1013 const uint8_t *src = plane->pixels[buf_sel];
1014 uint32_t pitch = plane->pitch;
1016 for (y = 0; y < plane->height; y++) {
1018 for (x = 0; x < plane->width >> 2; x++) {
1024 for (x <<= 2; x < plane->width; x++)
1027 src += pitch - plane->width;
1028 dst += dst_pitch - plane->width;
1083 /* decode luma plane */