/external/libgav1/libgav1/src/post_filter/ |
D | post_filter.cc | 308 void PostFilter::CopyDeblockedPixels(Plane plane, int row4x4) { in CopyDeblockedPixels() argument 310 const uint8_t* const src = GetSourceBuffer(plane, row4x4, 0); in CopyDeblockedPixels() 311 const int row_offset = DivideBy4(row4x4); in CopyDeblockedPixels() 321 const int absolute_row = (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in CopyDeblockedPixels() 335 void PostFilter::CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, in CopyBordersForOneSuperBlockRow() argument 339 const int row_offset = (row4x4 == 0) ? 0 : 8; in CopyBordersForOneSuperBlockRow() 341 const int height_offset = (row4x4 == 0) ? 8 : 0; in CopyBordersForOneSuperBlockRow() 351 const int row = (MultiplyBy4(row4x4) - row_offset) >> subsampling_y_[plane]; in CopyBordersForOneSuperBlockRow() 389 void PostFilter::SetupLoopRestorationBorder(const int row4x4) { in SetupLoopRestorationBorder() argument 390 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() 364 int row4x4 = row4x4_start; in ApplyCdefForOneUnit() local [all …]
|
D | loop_restoration.cc | 153 int row4x4; in ApplyLoopRestorationWorker() local 159 while ((row4x4 = row4x4_atomic->fetch_add(kNum4x4InLoopRestorationUnit, in ApplyLoopRestorationWorker() 162 CopyBordersForOneSuperBlockRow(row4x4, kNum4x4InLoopRestorationUnit, in ApplyLoopRestorationWorker() 167 row4x4, kNum4x4InLoopRestorationUnit); in ApplyLoopRestorationWorker() 172 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/libgav1/src/utils/ |
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 | 42 void SegmentationMap::FillBlock(int row4x4, int column4x4, int block_width4x4, in FillBlock() argument 45 memset(&segment_id_[row4x4 + y][column4x4], segment_id, block_width4x4); in FillBlock()
|
D | types.h | 532 PartitionTreeNode(int row4x4, int column4x4, BlockSize block_size) in PartitionTreeNode() 533 : row4x4(row4x4), column4x4(column4x4), block_size(block_size) {} in PartitionTreeNode() 534 int row4x4 = -1; member
|
/external/libgav1/libgav1/src/ |
D | post_filter.h | 142 int ApplyFilteringForOneSuperBlockRow(int row4x4, int sb4x4, bool is_last_row, 226 uint8_t* GetSourceBuffer(Plane plane, int row4x4, int column4x4) const { in GetSourceBuffer() argument 228 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetSourceBuffer() 230 uint8_t* GetCdefBuffer(Plane plane, int row4x4, int column4x4) const { in GetCdefBuffer() argument 232 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetCdefBuffer() 234 uint8_t* GetSuperResBuffer(Plane plane, int row4x4, int column4x4) const { in GetSuperResBuffer() argument 236 plane, MultiplyBy4(row4x4), MultiplyBy4(column4x4)); in GetSuperResBuffer() 265 void CopyDeblockedPixels(Plane plane, int row4x4); 272 void CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, 311 static int GetIndex(int row4x4) { return DivideBy4(row4x4); } in GetIndex() argument [all …]
|
D | tile.h | 116 bool ProcessSuperBlockRow(int row4x4, TileScratchBuffer* scratch_buffer); 127 bool IsRow4x4Inside(int row4x4) const { in IsRow4x4Inside() argument 128 return row4x4 >= row4x4_start_ && row4x4 < row4x4_end_; in IsRow4x4Inside() 132 bool IsInside(int row4x4, int column4x4) const { in IsInside() argument 133 return IsRow4x4Inside(row4x4) && column4x4 >= column4x4_start_ && in IsInside() 144 bool IsTopInside(int row4x4) const { in IsTopInside() argument 147 assert(row4x4 <= row4x4_end_); in IsTopInside() 148 return row4x4 > row4x4_start_; in IsTopInside() 151 bool IsTopLeftInside(int row4x4, int column4x4) const { in IsTopLeftInside() argument 154 assert(row4x4 <= row4x4_end_); in IsTopLeftInside() [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() 214 const int mv_row = block.row4x4 + delta_row; in ScanRow() 247 tile.frame_header().rows4x4 - block.row4x4, 16}); in ScanColumn() 263 const int mv_row = block.row4x4 + delta_row; in ScanPoint() 390 const int row = (block.row4x4 & 15) + delta_row; in IsWithinTheSame64x64Block() 407 const int row_start = block.row4x4 | 1; in TemporalScan() 584 tile.frame_header().rows4x4 - block.row4x4, 16}); in ExtraSearch() 593 const int mv_row = block.row4x4 + ((pass == 0) ? -1 : i); in ExtraSearch() 719 const int mv_row = block.row4x4 + delta_row; in AddSample() 806 ScanColumn(block, block.row4x4, -1, is_compound, &found_new_mv, in FindMvStack() [all …]
|
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 | 59 int row4x4, int column4x4,
|
/external/libgav1/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() 111 ? GetTopTransformWidth(block, block.row4x4, block.column4x4, true) in ReadFixedTransformSize() 115 ? GetLeftTransformHeight(block, block.row4x4, block.column4x4, true) in ReadFixedTransformSize() 133 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 | 191 block_parameters_holder_.Find(block.row4x4 - 1, block.column4x4 - 1) in ReadSegmentId() 302 const int row4x4 = block.row4x4 & cdef_mask4x4; in ReadCdef() local 304 const int row = DivideBy16(row4x4); in ReadCdef() 311 for (int i = row4x4; i < row4x4 + block.height4x4; i += cdef_size4x4) { in ReadCdef() 598 const int y_limit = std::min(frame_header_.rows4x4 - block.row4x4, in ComputePredictedSegmentId() 604 prev_segment_ids_->segment_id(block.row4x4 + y, block.column4x4 + x); in ComputePredictedSegmentId()
|
D | palette.cc | 37 (block.top_available[kPlaneY] && Mod64(MultiplyBy4(block.row4x4)) != 0) in GetPaletteCache() 258 block_height, MultiplyBy4(frame_header_.rows4x4 - block.row4x4)); in ReadPaletteTokens()
|
/external/libgav1/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() 605 bool Tile::ProcessSuperBlockRow(int row4x4, in ProcessSuperBlockRow() argument 607 if (row4x4 < row4x4_start_ || row4x4 >= row4x4_end_) return true; in ProcessSuperBlockRow() 612 if (!ProcessSuperBlock(row4x4, column4x4, scratch_buffer, in ProcessSuperBlockRow() 615 row4x4, column4x4); in ProcessSuperBlockRow() 619 if (save_symbol_decoder_context && row4x4 + block_width4x4 >= row4x4_end_) { in ProcessSuperBlockRow() 624 PopulateIntraPredictionBuffer(row4x4); in ProcessSuperBlockRow() 632 int row4x4, TileScratchBuffer* scratch_buffer); [all …]
|
D | prediction.cc | 289 block.row4x4 >> (sequence_header_.use_128x128_superblock ? 5 : 4); in IntraPrediction() 409 const int row = block.row4x4 - 1 - (block.row4x4 & subsampling_y); in GetIntraEdgeFilterType() 414 const int row = block.row4x4 + (~block.row4x4 & subsampling_y); in GetIntraEdgeFilterType() 683 DivideBy4(prediction_height), block.row4x4, block.column4x4, in GetWarpParams() 855 const int candidate_row = block.row4x4 - 1; in ObmcPrediction() 856 const int block_start_y = MultiplyBy4(block.row4x4) >> subsampling_y; in ObmcPrediction() 887 std::min(block.row4x4 + block.height4x4, frame_header_.rows4x4); in ObmcPrediction() 889 int row4x4 = block.row4x4; in ObmcPrediction() local 892 for (int i = 0, step; i < num_limit && row4x4 < row4x4_max; in ObmcPrediction() 893 row4x4 += step) { in ObmcPrediction() [all …]
|