Lines Matching full:plane

196 uint8_t* GetStartPoint(Array2DView<uint8_t>* const buffer, const int plane,  in GetStartPoint()  argument
201 buffer[plane].rows(), buffer[plane].columns() / sizeof(uint16_t), in GetStartPoint()
202 reinterpret_cast<uint16_t*>(&buffer[plane][0][0])); in GetStartPoint()
207 return &buffer[plane][y][x]; in GetStartPoint()
225 void Tile::IntraPrediction(const Block& block, Plane plane, int x, int y, in IntraPrediction() argument
231 const int x_shift = subsampling_x_[plane]; in IntraPrediction()
232 const int y_shift = subsampling_y_[plane]; in IntraPrediction()
256 (plane == kPlaneY && prediction_parameters.use_filter_intra); in IntraPrediction()
260 prediction_parameters.angle_delta[GetPlaneType(plane)] * in IntraPrediction()
271 Array2DView<Pixel> buffer(buffer_[plane].rows(), in IntraPrediction()
272 buffer_[plane].columns() / sizeof(Pixel), in IntraPrediction()
273 reinterpret_cast<Pixel*>(&buffer_[plane][0][0])); in IntraPrediction()
290 // Superblock index of y - 1. y is in the plane dimension (chroma planes in IntraPrediction()
293 subsampling_y_[plane]; in IntraPrediction()
300 (*intra_prediction_buffer_)[plane].get()); in IntraPrediction()
356 const ptrdiff_t dest_stride = buffer_[plane].columns(); in IntraPrediction()
362 DirectionalPrediction(block, plane, x, y, has_left, has_top, needs_left, in IntraPrediction()
374 template void Tile::IntraPrediction<uint8_t>(const Block& block, Plane plane,
381 template void Tile::IntraPrediction<uint16_t>(const Block& block, Plane plane,
389 int Tile::GetIntraEdgeFilterType(const Block& block, Plane plane) const { in GetIntraEdgeFilterType()
392 if (plane == kPlaneY) { in GetIntraEdgeFilterType()
398 top = block.top_available[plane] && in GetIntraEdgeFilterType()
400 left = block.left_available[plane] && in GetIntraEdgeFilterType()
407 void Tile::DirectionalPrediction(const Block& block, Plane plane, int x, int y, in DirectionalPrediction() argument
413 Array2DView<Pixel> buffer(buffer_[plane].rows(), in DirectionalPrediction()
414 buffer_[plane].columns() / sizeof(Pixel), in DirectionalPrediction()
415 reinterpret_cast<Pixel*>(&buffer_[plane][0][0])); in DirectionalPrediction()
417 const ptrdiff_t stride = buffer_[plane].columns(); in DirectionalPrediction()
432 const int filter_type = GetIntraEdgeFilterType(block, plane); in DirectionalPrediction()
493 void Tile::PalettePrediction(const Block& block, const Plane plane, in PalettePrediction() argument
499 block.bp->prediction_parameters->palette_mode_info.color[plane]; in PalettePrediction()
500 const PlaneType plane_type = GetPlaneType(plane); in PalettePrediction()
503 Array2DView<Pixel> buffer(buffer_[plane].rows(), in PalettePrediction()
504 buffer_[plane].columns() / sizeof(Pixel), in PalettePrediction()
505 reinterpret_cast<Pixel*>(&buffer_[plane][0][0])); in PalettePrediction()
518 const Block& block, const Plane plane, const int start_x, const int start_y,
522 const Block& block, const Plane plane, const int start_x, const int start_y,
527 void Tile::ChromaFromLumaPrediction(const Block& block, const Plane plane, in ChromaFromLumaPrediction() argument
530 const int subsampling_x = subsampling_x_[plane]; in ChromaFromLumaPrediction()
531 const int subsampling_y = subsampling_y_[plane]; in ChromaFromLumaPrediction()
548 Array2DView<Pixel> buffer(buffer_[plane].rows(), in ChromaFromLumaPrediction()
549 buffer_[plane].columns() / sizeof(Pixel), in ChromaFromLumaPrediction()
550 reinterpret_cast<Pixel*>(&buffer_[plane][0][0])); in ChromaFromLumaPrediction()
553 buffer_[plane].columns(), block.scratch_buffer->cfl_luma_buffer, in ChromaFromLumaPrediction()
554 (plane == kPlaneU) ? prediction_parameters.cfl_alpha_u in ChromaFromLumaPrediction()
559 const Block& block, const Plane plane, const int start_x, const int start_y,
563 const Block& block, const Plane plane, const int start_x, const int start_y,
654 const Block& block, const Plane plane, const int prediction_width, in GetWarpParams() argument
664 if (plane == kPlaneY) { in GetWarpParams()
693 bool Tile::InterPrediction(const Block& block, const Plane plane, const int x, in InterPrediction() argument
709 uint8_t* const dest = GetStartPoint(buffer_, plane, x, y, bitdepth); in InterPrediction()
710 const ptrdiff_t dest_stride = buffer_[plane].columns(); // In bytes. in InterPrediction()
717 GetWarpParams(block, plane, prediction_width, prediction_height, in InterPrediction()
721 if (!BlockWarpProcess(block, plane, index, x, y, prediction_width, in InterPrediction()
733 block, plane, reference_index, bp_reference.mv.mv[index], x, y, in InterPrediction()
742 const int subsampling_x = subsampling_x_[plane]; in InterPrediction()
743 const int subsampling_y = subsampling_y_[plane]; in InterPrediction()
766 if (plane == kPlaneY) { in InterPrediction()
787 return ObmcPrediction(block, plane, prediction_width, prediction_height); in InterPrediction()
799 const Plane plane, in ObmcBlockPrediction() argument
817 if (!BlockInterPrediction(block, plane, reference_frame_index, mv, x, y, in ObmcBlockPrediction()
824 uint8_t* const prediction = GetStartPoint(buffer_, plane, x, y, bitdepth); in ObmcBlockPrediction()
825 const ptrdiff_t prediction_stride = buffer_[plane].columns(); in ObmcBlockPrediction()
831 bool Tile::ObmcPrediction(const Block& block, const Plane plane, in ObmcPrediction() argument
833 const int subsampling_x = subsampling_x_[plane]; in ObmcPrediction()
834 const int subsampling_y = subsampling_y_[plane]; in ObmcPrediction()
836 !IsBlockSmallerThan8x8(block.residual_size[plane])) { in ObmcPrediction()
859 block, bp_top.mv.mv[0], plane, candidate_reference_frame_index, in ObmcPrediction()
892 block, bp_left.mv.mv[0], plane, candidate_reference_frame_index, in ObmcPrediction()
928 void Tile::ScaleMotionVector(const MotionVector& mv, const Plane plane, in ScaleMotionVector() argument
948 int orig_x = (x << kSubPixelBits) + ((2 * mv.mv[1]) >> subsampling_x_[plane]); in ScaleMotionVector()
949 int orig_y = (y << kSubPixelBits) + ((2 * mv.mv[0]) >> subsampling_y_[plane]); in ScaleMotionVector()
1031 const Plane plane, const int reference_frame_index, const bool is_scaled, in BuildConvolveBlock() argument
1042 reference_buffer->height(plane), in BuildConvolveBlock()
1043 reference_buffer->stride(plane) / sizeof(Pixel), in BuildConvolveBlock()
1044 reinterpret_cast<const Pixel*>(reference_buffer->data(plane))); in BuildConvolveBlock()
1096 const Block& block, const Plane plane, const int reference_frame_index, in BlockInterPrediction() argument
1108 ScaleMotionVector(mv, plane, reference_frame_index, x, y, &start_x, &start_y, in BlockInterPrediction()
1112 const int subsampling_x = subsampling_x_[plane]; in BlockInterPrediction()
1113 const int subsampling_y = subsampling_y_[plane]; in BlockInterPrediction()
1146 reference_buffer->left_border(plane), in BlockInterPrediction()
1147 reference_buffer->right_border(plane), in BlockInterPrediction()
1148 reference_buffer->top_border(plane), in BlockInterPrediction()
1149 reference_buffer->bottom_border(plane), &ref_block_start_x, in BlockInterPrediction()
1175 convolve_buffer_stride = reference_buffer->stride(plane); in BlockInterPrediction()
1177 block_start = reference_buffer->data(plane) + in BlockInterPrediction()
1178 ref_block_start_y * reference_buffer->stride(plane) + in BlockInterPrediction()
1181 block_start = reference_buffer->data(plane) + in BlockInterPrediction()
1183 reference_buffer->stride(plane) + in BlockInterPrediction()
1198 plane, reference_frame_index, is_scaled, height, ref_start_x, in BlockInterPrediction()
1206 plane, reference_frame_index, is_scaled, height, ref_start_x, in BlockInterPrediction()
1259 bool Tile::BlockWarpProcess(const Block& block, const Plane plane, in BlockWarpProcess() argument
1271 reference_frames_[reference_frame_index]->buffer()->data(plane); in BlockWarpProcess()
1273 reference_frames_[reference_frame_index]->buffer()->stride(plane); in BlockWarpProcess()
1275 reference_frames_[reference_frame_index]->buffer()->width(plane); in BlockWarpProcess()
1277 reference_frames_[reference_frame_index]->buffer()->height(plane); in BlockWarpProcess()
1289 const int src_x = (start_x + 4) << subsampling_x_[plane]; in BlockWarpProcess()
1290 const int src_y = (start_y + 4) << subsampling_y_[plane]; in BlockWarpProcess()
1295 const int64_t y4 = dst_y >> subsampling_y_[plane]; in BlockWarpProcess()
1302 reference_y_max = LeftShift(reference_y_max, subsampling_y_[plane]); in BlockWarpProcess()
1313 warp_params->params, subsampling_x_[plane], in BlockWarpProcess()
1314 subsampling_y_[plane], block_start_x, block_start_y, in BlockWarpProcess()
1333 warp_params->params, subsampling_x_[plane], subsampling_y_[plane], in BlockWarpProcess()