/external/libgav1/src/utils/ |
D | segmentation_map_test.cc | 31 for (int row4x4 = 0; row4x4 < kRows4x4; ++row4x4) { in TEST() local 33 EXPECT_EQ(segmentation_map.segment_id(row4x4, column4x4), 0); in TEST() 50 for (int row4x4 = 0; row4x4 < kRows4x4; ++row4x4) { in TEST() local 52 if (4 <= row4x4 && row4x4 < 4 + kBlockHeight4x4 && 6 <= column4x4 && in TEST() 55 EXPECT_EQ(segmentation_map.segment_id(row4x4, column4x4), 1); in TEST() 58 EXPECT_EQ(segmentation_map.segment_id(row4x4, column4x4), 2); in TEST() 85 for (int row4x4 = 0; row4x4 < kBlockHeight4x4; ++row4x4) { in TEST() local 87 EXPECT_EQ(segmentation_map.segment_id(row4x4, column4x4), 1); in TEST() 88 EXPECT_EQ(segmentation_map2.segment_id(row4x4, column4x4), 1); in TEST() 91 for (int row4x4 = 0; row4x4 < kBlockHeight4x4; ++row4x4) { in TEST() local [all …]
|
D | block_parameters_holder.h | 46 BlockParameters* Get(int row4x4, int column4x4, BlockSize block_size); 51 BlockParameters* Find(int row4x4, int column4x4) const { in Find() argument 52 return block_parameters_cache_[row4x4][column4x4]; in Find() 55 BlockParameters** Address(int row4x4, int column4x4) { in Address() argument 56 return block_parameters_cache_.data() + row4x4 * columns4x4_ + column4x4; in Address() 59 BlockParameters* const* Address(int row4x4, int column4x4) const { in Address() argument 60 return block_parameters_cache_.data() + row4x4 * columns4x4_ + column4x4; in Address() 70 void FillCache(int row4x4, int column4x4, BlockSize block_size,
|
D | block_parameters_holder.cc | 34 BlockParameters* BlockParametersHolder::Get(int row4x4, int column4x4, in Get() argument 43 FillCache(row4x4, column4x4, block_size, bp.get()); in Get() 47 void BlockParametersHolder::FillCache(int row4x4, int column4x4, in FillCache() argument 51 rows4x4_ - row4x4); in FillCache() 54 auto* bp_dst = &block_parameters_cache_[row4x4][column4x4]; in FillCache()
|
D | segmentation_map.h | 43 int8_t segment_id(int row4x4, int column4x4) const { in segment_id() argument 44 return segment_id_[row4x4][column4x4]; in segment_id() 56 void FillBlock(int row4x4, int column4x4, int block_width4x4,
|
D | segmentation_map.cc | 45 void SegmentationMap::FillBlock(int row4x4, int column4x4, int block_width4x4, in FillBlock() argument 48 memset(&segment_id_[row4x4 + y][column4x4], segment_id, block_width4x4); in FillBlock()
|
D | types.h | 512 PartitionTreeNode(int row4x4, int column4x4, BlockSize block_size) in PartitionTreeNode() 513 : row4x4(row4x4), column4x4(column4x4), block_size(block_size) {} in PartitionTreeNode() 514 int row4x4 = -1; member
|
/external/libgav1/src/post_filter/ |
D | post_filter.cc | 312 void PostFilter::CopyDeblockedPixels(Plane plane, int row4x4) { in CopyDeblockedPixels() argument 314 const uint8_t* const src = GetSourceBuffer(plane, row4x4, 0); in CopyDeblockedPixels() 315 const int row_offset = DivideBy4(row4x4); in CopyDeblockedPixels() 325 const int absolute_row = (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in CopyDeblockedPixels() 339 void PostFilter::CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, in CopyBordersForOneSuperBlockRow() argument 343 const int row_offset = (row4x4 == 0) ? 0 : 8; in CopyBordersForOneSuperBlockRow() 345 const int height_offset = (row4x4 == 0) ? 8 : 0; in CopyBordersForOneSuperBlockRow() 357 const int row = (MultiplyBy4(row4x4) - row_offset) >> subsampling_y_[plane]; in CopyBordersForOneSuperBlockRow() 404 void PostFilter::SetupLoopRestorationBorder(const int row4x4) { in SetupLoopRestorationBorder() argument 405 assert(row4x4 >= 0); in SetupLoopRestorationBorder() [all …]
|
D | deblock.cc | 123 bool PostFilter::GetHorizontalDeblockFilterEdgeInfo(int row4x4, int column4x4, in GetHorizontalDeblockFilterEdgeInfo() argument 126 *step = kTransformHeight[inter_transform_sizes_[row4x4][column4x4]]; in GetHorizontalDeblockFilterEdgeInfo() 127 if (row4x4 == 0) return false; in GetHorizontalDeblockFilterEdgeInfo() 129 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfo() 130 const int row4x4_prev = row4x4 - 1; in GetHorizontalDeblockFilterEdgeInfo() 154 int row4x4, int column4x4, uint8_t* level_u, uint8_t* level_v, int* step, in GetHorizontalDeblockFilterEdgeInfoUV() argument 158 row4x4 = GetDeblockPosition(row4x4, subsampling_y); in GetHorizontalDeblockFilterEdgeInfoUV() 160 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfoUV() 164 if (row4x4 == subsampling_y) { in GetHorizontalDeblockFilterEdgeInfoUV() 175 const int row4x4_prev = row4x4 - (1 << subsampling_y); in GetHorizontalDeblockFilterEdgeInfoUV() [all …]
|
D | cdef.cc | 89 void PostFilter::SetupCdefBorder(int row4x4) { in SetupCdefBorder() argument 90 assert(row4x4 >= 0); in SetupCdefBorder() 96 const int row_offset = DivideBy4(row4x4); in SetupCdefBorder() 105 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in SetupCdefBorder() 108 GetSourceBuffer(static_cast<Plane>(plane), row4x4, 0) + in SetupCdefBorder() 118 int row4x4, int column4x4, in PrepareCdefBlock() argument 128 const int start_y = MultiplyBy4(row4x4) >> subsampling_y; in PrepareCdefBlock() 141 const bool is_frame_top = row4x4 == 0; in PrepareCdefBlock() 144 const int cdef_border_row_offset = DivideBy4(row4x4) - (is_frame_top ? 0 : 2); in PrepareCdefBlock() 362 int row4x4 = row4x4_start; in ApplyCdefForOneUnit() local [all …]
|
D | loop_restoration.cc | 155 int row4x4; in ApplyLoopRestorationWorker() local 161 while ((row4x4 = row4x4_atomic->fetch_add(kNum4x4InLoopRestorationUnit, in ApplyLoopRestorationWorker() 164 CopyBordersForOneSuperBlockRow(row4x4, kNum4x4InLoopRestorationUnit, in ApplyLoopRestorationWorker() 169 row4x4, kNum4x4InLoopRestorationUnit); in ApplyLoopRestorationWorker() 174 row4x4, kNum4x4InLoopRestorationUnit); in ApplyLoopRestorationWorker()
|
D | super_res.cc | 109 const int row4x4 = row4x4_start - 2; in ApplySuperResForOneSuperBlockRow() local 113 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + num_rows_extra; in ApplySuperResForOneSuperBlockRow()
|
/external/libgav1/src/ |
D | tile.h | 118 bool ProcessSuperBlockRow(int row4x4, TileScratchBuffer* scratch_buffer); 129 bool IsRow4x4Inside(int row4x4) const { in IsRow4x4Inside() argument 130 return row4x4 >= row4x4_start_ && row4x4 < row4x4_end_; in IsRow4x4Inside() 134 bool IsInside(int row4x4, int column4x4) const { in IsInside() argument 135 return IsRow4x4Inside(row4x4) && column4x4 >= column4x4_start_ && in IsInside() 146 bool IsTopInside(int row4x4) const { in IsTopInside() argument 149 assert(row4x4 <= row4x4_end_); in IsTopInside() 150 return row4x4 > row4x4_start_; in IsTopInside() 153 bool IsTopLeftInside(int row4x4, int column4x4) const { in IsTopLeftInside() argument 156 assert(row4x4 <= row4x4_end_); in IsTopLeftInside() [all …]
|
D | post_filter.h | 142 int ApplyFilteringForOneSuperBlockRow(int row4x4, int sb4x4, bool is_last_row, 220 uint8_t* GetSourceBuffer(Plane plane, int row4x4, int column4x4) const { in GetSourceBuffer() argument 222 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetSourceBuffer() 224 uint8_t* GetCdefBuffer(Plane plane, int row4x4, int column4x4) const { in GetCdefBuffer() argument 226 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetCdefBuffer() 228 uint8_t* GetSuperResBuffer(Plane plane, int row4x4, int column4x4) const { in GetSuperResBuffer() argument 230 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetSuperResBuffer() 255 void CopyDeblockedPixels(Plane plane, int row4x4); 262 void CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, 301 bool GetHorizontalDeblockFilterEdgeInfo(int row4x4, int column4x4, [all …]
|
D | decoder_impl.cc | 137 for (int row4x4 = 0; row4x4 < frame_header.rows4x4; in DecodeTilesNonFrameParallel() local 138 row4x4 += block_width4x4) { in DecodeTilesNonFrameParallel() 141 row4x4, tile_scratch_buffer.get())) { in DecodeTilesNonFrameParallel() 146 row4x4, block_width4x4, row4x4 + block_width4x4 >= frame_header.rows4x4, in DecodeTilesNonFrameParallel() 244 for (int row4x4 = 0; row4x4 < frame_header.rows4x4; in DecodeTilesFrameParallel() local 245 row4x4 += block_width4x4) { in DecodeTilesFrameParallel() 248 row4x4, tile_scratch_buffer.get())) { in DecodeTilesFrameParallel() 255 row4x4, block_width4x4, row4x4 + block_width4x4 >= frame_header.rows4x4, in DecodeTilesFrameParallel() 273 const ObuFrameHeader& frame_header, int row4x4, int block_width4x4, in ApplyDeblockingFilterForTileBoundaries() argument 279 kLoopFilterTypeVertical, row4x4, tile.column4x4_start(), in ApplyDeblockingFilterForTileBoundaries() [all …]
|
D | motion_vector.cc | 79 const int y = MultiplyBy4(block.row4x4) + DivideBy2(block.height) - 1; in SetupGlobalMv() 212 const int mv_row = block.row4x4 + delta_row; in ScanRow() 245 tile.frame_header().rows4x4 - block.row4x4, 16}); in ScanColumn() 261 const int mv_row = block.row4x4 + delta_row; in ScanPoint() 389 const int row = (block.row4x4 & 15) + delta_row; in IsWithinTheSame64x64Block() 406 const int row_start = block.row4x4 | 1; in TemporalScan() 583 tile.frame_header().rows4x4 - block.row4x4, 16}); in ExtraSearch() 592 const int mv_row = block.row4x4 + ((pass == 0) ? -1 : i); in ExtraSearch() 718 const int mv_row = block.row4x4 + delta_row; in AddSample() 805 ScanColumn(block, block.row4x4, -1, is_compound, &found_new_mv, in FindMvStack() [all …]
|
D | warp_prediction_test.cc | 208 const int row4x4 = rnd.Rand8(); in TEST_P() local 216 candidates[i][0] = rnd.Rand8() + MultiplyBy32(row4x4); in TEST_P() 218 candidates[i][2] = rnd.Rand8() + MultiplyBy32(row4x4); in TEST_P() 225 param_.num_samples, param_.block_width4x4, param_.block_height4x4, row4x4, in TEST_P()
|
D | loop_restoration_info.cc | 106 uint8_t superres_scale_denominator, int row4x4, int column4x4, in PopulateUnitInfoForSuperBlock() argument 120 RowOrColumn4x4ToPixel(row4x4, plane, subsampling_y_); in PopulateUnitInfoForSuperBlock() 122 row4x4 + kNum4x4BlocksHigh[block_size], plane, subsampling_y_); in PopulateUnitInfoForSuperBlock()
|
D | warp_prediction.h | 34 int row4x4, int column4x4, const MotionVector& mv,
|
D | warp_prediction.cc | 135 const int block_height4x4, const int row4x4, in WarpEstimation() argument 152 const int mid_y = MultiplyBy4(row4x4) + MultiplyBy2(block_height4x4) - 1; in WarpEstimation()
|
D | loop_restoration_info.h | 57 int row4x4, int column4x4,
|
/external/libgav1/src/tile/bitstream/ |
D | transform_size.cc | 70 int Tile::GetTopTransformWidth(const Block& block, int row4x4, int column4x4, in GetTopTransformWidth() argument 72 if (row4x4 == block.row4x4) { in GetTopTransformWidth() 75 *block_parameters_holder_.Find(row4x4 - 1, column4x4); in GetTopTransformWidth() 80 return kTransformWidth[inter_transform_sizes_[row4x4 - 1][column4x4]]; in GetTopTransformWidth() 83 int Tile::GetLeftTransformHeight(const Block& block, int row4x4, int column4x4, in GetLeftTransformHeight() argument 88 *block_parameters_holder_.Find(row4x4, column4x4 - 1); in GetLeftTransformHeight() 93 return kTransformHeight[inter_transform_sizes_[row4x4][column4x4 - 1]]; in GetLeftTransformHeight() 112 ? GetTopTransformWidth(block, block.row4x4, block.column4x4, true) in ReadFixedTransformSize() 116 ? GetLeftTransformHeight(block, block.row4x4, block.column4x4, true) in ReadFixedTransformSize() 134 void Tile::ReadVariableTransformTree(const Block& block, int row4x4, in ReadVariableTransformTree() argument [all …]
|
D | partition.cc | 84 uint16_t* Tile::GetPartitionCdf(int row4x4, int column4x4, in GetPartitionCdf() argument 88 if (IsTopInside(row4x4)) { in GetPartitionCdf() 90 k4x4WidthLog2[block_parameters_holder_.Find(row4x4 - 1, column4x4) in GetPartitionCdf() 96 k4x4HeightLog2[block_parameters_holder_.Find(row4x4, column4x4 - 1) in GetPartitionCdf() 103 bool Tile::ReadPartition(int row4x4, int column4x4, BlockSize block_size, in ReadPartition() argument 115 GetPartitionCdf(row4x4, column4x4, block_size); in ReadPartition()
|
D | mode_info.cc | 195 top_left = map.segment_id(block.row4x4 - 1, block.column4x4 - 1); in ReadSegmentId() 199 top = map.segment_id(block.row4x4 - 1, block.column4x4); in ReadSegmentId() 203 left = map.segment_id(block.row4x4, block.column4x4 - 1); in ReadSegmentId() 307 &cdef_index_[DivideBy16(block.row4x4)][DivideBy16(block.column4x4)]; in ReadCdef() 608 const int y_limit = std::min(frame_header_.rows4x4 - block.row4x4, in ComputePredictedSegmentId() 614 prev_segment_ids_->segment_id(block.row4x4 + y, block.column4x4 + x); in ComputePredictedSegmentId() 741 if (subsampling_y_[kPlaneU] == 0 || (block.row4x4 & 1) == 1 || in SetCdfContextUVMode() 761 block.row4x4 + (~block.row4x4 & subsampling_y_[kPlaneU]); in ReadIntraBlockModeInfo() 773 block.row4x4 - 1 - (block.row4x4 & subsampling_y_[kPlaneU]); in ReadIntraBlockModeInfo()
|
/external/libgav1/src/tile/ |
D | tile.cc | 313 const int y_offset = y4 - block.row4x4; in SetTransformType() 370 const int macroblocks_to_top_edge = -block.row4x4; in GetClampParameters() 372 block.tile.frame_header().rows4x4 - block.height4x4 - block.row4x4; in GetClampParameters() 600 bool Tile::ProcessSuperBlockRow(int row4x4, in ProcessSuperBlockRow() argument 602 if (row4x4 < row4x4_start_ || row4x4 >= row4x4_end_) return true; in ProcessSuperBlockRow() 607 if (!ProcessSuperBlock(row4x4, column4x4, scratch_buffer, in ProcessSuperBlockRow() 610 row4x4, column4x4); in ProcessSuperBlockRow() 614 if (save_symbol_decoder_context && row4x4 + block_width4x4 >= row4x4_end_) { in ProcessSuperBlockRow() 619 PopulateIntraPredictionBuffer(row4x4); in ProcessSuperBlockRow() 627 int row4x4, TileScratchBuffer* scratch_buffer); [all …]
|
D | prediction.cc | 289 block.row4x4 >> (sequence_header_.use_128x128_superblock ? 5 : 4); in IntraPrediction() 669 DivideBy4(prediction_height), block.row4x4, block.column4x4, in GetWarpParams() 840 const int candidate_row = block.row4x4 - 1; in ObmcPrediction() 841 const int block_start_y = MultiplyBy4(block.row4x4) >> subsampling_y; in ObmcPrediction() 872 std::min(block.row4x4 + block.height4x4, frame_header_.rows4x4); in ObmcPrediction() 874 int row4x4 = block.row4x4; in ObmcPrediction() local 877 for (int i = 0, step; i < num_limit && row4x4 < row4x4_max; in ObmcPrediction() 878 row4x4 += step) { in ObmcPrediction() 879 const int candidate_row = row4x4 | 1; in ObmcPrediction() 894 MultiplyBy4(row4x4) >> subsampling_y, candidate_row, in ObmcPrediction()
|