/external/libgav1/libgav1/src/post_filter/ |
D | deblock.cc | 124 bool PostFilter::GetHorizontalDeblockFilterEdgeInfo(int row4x4, int column4x4, in GetHorizontalDeblockFilterEdgeInfo() argument 127 *step = kTransformHeight[inter_transform_sizes_[row4x4][column4x4]]; in GetHorizontalDeblockFilterEdgeInfo() 128 if (row4x4 == 0) return false; in GetHorizontalDeblockFilterEdgeInfo() 130 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfo() 131 const int row4x4_prev = row4x4 - 1; in GetHorizontalDeblockFilterEdgeInfo() 155 int row4x4, int column4x4, uint8_t* level_u, uint8_t* level_v, int* step, in GetHorizontalDeblockFilterEdgeInfoUV() argument 159 row4x4 = GetDeblockPosition(row4x4, subsampling_y); in GetHorizontalDeblockFilterEdgeInfoUV() 161 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfoUV() 165 if (row4x4 == subsampling_y) { in GetHorizontalDeblockFilterEdgeInfoUV() 176 const int row4x4_prev = row4x4 - (1 << subsampling_y); in GetHorizontalDeblockFilterEdgeInfoUV() [all …]
|
D | cdef.cc | 96 int row4x4, int column4x4, in PrepareCdefBlock() argument 104 const int start_y = MultiplyBy4(row4x4) >> subsampling_y; in PrepareCdefBlock() 117 const bool is_frame_top = row4x4 == 0; in PrepareCdefBlock() 247 int row4x4 = row4x4_start; in ApplyCdefForOneUnit() local 294 (MultiplyBy4(row4x4 - row4x4_start)) * kCdefUnitSizeWithBorders + in ApplyCdefForOneUnit() 317 row4x4 += kStep4x4; in ApplyCdefForOneUnit() 318 } while (row4x4 < row4x4_start + block_height4x4); in ApplyCdefForOneUnit() 354 int row4x4 = row4x4_start; in ApplyCdefForOneUnit() local 403 (MultiplyBy4(row4x4 - row4x4_start) >> subsampling_y) * in ApplyCdefForOneUnit() 424 row4x4 += kStep4x4; in ApplyCdefForOneUnit() [all …]
|
D | post_filter.cc | 289 void PostFilter::CopyDeblockedPixels(Plane plane, int row4x4) { in CopyDeblockedPixels() argument 292 GetSourceBuffer(static_cast<Plane>(plane), row4x4, 0); in CopyDeblockedPixels() 294 const int row_offset = DivideBy4(row4x4); in CopyDeblockedPixels() 304 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + row; in CopyDeblockedPixels() 330 void PostFilter::CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, in CopyBordersForOneSuperBlockRow() argument 334 const int row_offset = (row4x4 == 0) ? 0 : 8; in CopyBordersForOneSuperBlockRow() 336 const int height_offset = (row4x4 == 0) ? 8 : 0; in CopyBordersForOneSuperBlockRow() 345 const int row = (MultiplyBy4(row4x4) - row_offset) >> subsampling_y_[plane]; in CopyBordersForOneSuperBlockRow() 386 for (int row4x4 = 0; row4x4 < frame_header_.rows4x4; in ApplyFilteringThreaded() local 387 row4x4 += kNum4x4InLoopFilterUnit) { in ApplyFilteringThreaded() [all …]
|
D | super_res.cc | 99 const int row4x4 = row4x4_start - 2; in ApplySuperResForOneSuperBlockRow() local 102 (MultiplyBy4(row4x4) >> subsampling_y_[plane]) + num_rows_extra; in ApplySuperResForOneSuperBlockRow() 189 const int row4x4 = row4x4_start + sb_y; in SetupDeblockBuffer() local 191 CopyDeblockedPixels(static_cast<Plane>(plane), row4x4); in SetupDeblockBuffer() 193 const int row_offset_start = DivideBy4(row4x4); in SetupDeblockBuffer()
|
/external/libgav1/libgav1/src/ |
D | tile.h | 115 bool ProcessSuperBlockRow(int row4x4, TileScratchBuffer* scratch_buffer); 126 bool IsRow4x4Inside(int row4x4) const { in IsRow4x4Inside() argument 127 return row4x4 >= row4x4_start_ && row4x4 < row4x4_end_; in IsRow4x4Inside() 131 bool IsInside(int row4x4, int column4x4) const { in IsInside() argument 132 return IsRow4x4Inside(row4x4) && column4x4 >= column4x4_start_ && in IsInside() 143 bool IsTopInside(int row4x4) const { in IsTopInside() argument 146 assert(row4x4 <= row4x4_end_); in IsTopInside() 147 return row4x4 > row4x4_start_; in IsTopInside() 150 bool IsTopLeftInside(int row4x4, int column4x4) const { in IsTopLeftInside() argument 153 assert(row4x4 <= row4x4_end_); in IsTopLeftInside() [all …]
|
D | post_filter.h | 139 int ApplyFilteringForOneSuperBlockRow(int row4x4, int sb4x4, bool is_last_row, 238 int row4x4, int column4x4) const { in GetBufferOffset() argument 240 RowOrColumn4x4ToPixel(row4x4, plane, subsampling_y_[plane]) * in GetBufferOffset() 245 uint8_t* GetSourceBuffer(Plane plane, int row4x4, int column4x4) const { in GetSourceBuffer() argument 247 plane, row4x4, column4x4); in GetSourceBuffer() 296 void CopyDeblockedPixels(Plane plane, int row4x4); 303 void CopyBordersForOneSuperBlockRow(int row4x4, int sb4x4, 329 static int GetIndex(int row4x4) { return DivideBy4(row4x4); } in GetIndex() argument 330 static int GetShift(int row4x4, int column4x4) { in GetShift() argument 331 return ((row4x4 & 3) << 4) | column4x4; in GetShift() [all …]
|
D | decoder_impl.cc | 139 for (int row4x4 = 0; row4x4 < frame_header.rows4x4; in DecodeTilesNonFrameParallel() local 140 row4x4 += block_width4x4) { in DecodeTilesNonFrameParallel() 143 row4x4, tile_scratch_buffer.get())) { in DecodeTilesNonFrameParallel() 148 row4x4, block_width4x4, row4x4 + block_width4x4 >= frame_header.rows4x4, in DecodeTilesNonFrameParallel() 246 for (int row4x4 = 0; row4x4 < frame_header.rows4x4; in DecodeTilesFrameParallel() local 247 row4x4 += block_width4x4) { in DecodeTilesFrameParallel() 250 row4x4, tile_scratch_buffer.get())) { in DecodeTilesFrameParallel() 257 row4x4, block_width4x4, row4x4 + block_width4x4 >= frame_header.rows4x4, in DecodeTilesFrameParallel() 275 const ObuFrameHeader& frame_header, int row4x4, int block_width4x4, in ApplyDeblockingFilterForTileBoundaries() argument 281 kLoopFilterTypeVertical, row4x4, tile.column4x4_start(), in ApplyDeblockingFilterForTileBoundaries() [all …]
|
D | motion_vector.cc | 83 const int y = MultiplyBy4(block.row4x4) + DivideBy2(block.height) - 1; in SetupGlobalMv() 216 const int mv_row = block.row4x4 + delta_row; in ScanRow() 249 tile.frame_header().rows4x4 - block.row4x4, 16}); in ScanColumn() 265 const int mv_row = block.row4x4 + delta_row; in ScanPoint() 387 const int row = (block.row4x4 & 15) + delta_row; in IsWithinTheSame64x64Block() 407 const int row_start = block.row4x4 | 1; in TemporalScan() 582 tile.frame_header().rows4x4 - block.row4x4, 16}); in ExtraSearch() 591 const int mv_row = block.row4x4 + ((pass == 0) ? -1 : i); in ExtraSearch() 717 const int mv_row = block.row4x4 + delta_row; in AddSample() 804 ScanColumn(block, block.row4x4, -1, is_compound, &found_new_mv, in FindMvStack() [all …]
|
D | loop_restoration_info.cc | 108 uint8_t superres_scale_denominator, int row4x4, int column4x4, in PopulateUnitInfoForSuperBlock() argument 124 RowOrColumn4x4ToPixel(row4x4, plane, subsampling_y_); in PopulateUnitInfoForSuperBlock() 126 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() 131 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 | 192 block_parameters_holder_.Find(block.row4x4 - 1, block.column4x4 - 1) in ReadSegmentId() 303 const int row4x4 = block.row4x4 & cdef_mask4x4; in ReadCdef() local 305 const int row = DivideBy16(row4x4); in ReadCdef() 312 for (int i = row4x4; i < row4x4 + block.height4x4; i += cdef_size4x4) { in ReadCdef() 599 const int y_limit = std::min(frame_header_.rows4x4 - block.row4x4, in ComputePredictedSegmentId() 605 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/utils/ |
D | block_parameters_holder.h | 48 BlockParameters* Find(int row4x4, int column4x4) const { in Find() argument 49 return block_parameters_cache_[row4x4][column4x4]; in Find() 52 BlockParameters** Address(int row4x4, int column4x4) { in Address() argument 53 return block_parameters_cache_.data() + row4x4 * columns4x4_ + column4x4; in Address() 56 BlockParameters* const* Address(int row4x4, int column4x4) const { in Address() argument 57 return block_parameters_cache_.data() + row4x4 * columns4x4_ + column4x4; in Address() 68 void FillCache(int row4x4, int column4x4, BlockSize block_size,
|
D | parameter_tree.h | 40 static std::unique_ptr<ParameterTree> Create(int row4x4, int column4x4, 65 int row4x4() const { return row4x4_; } in row4x4() function 79 ParameterTree(int row4x4, int column4x4, BlockSize block_size) in ParameterTree() argument 80 : row4x4_(row4x4), column4x4_(column4x4), block_size_(block_size) {} in ParameterTree()
|
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 | block_parameters_holder.cc | 71 void BlockParametersHolder::FillCache(int row4x4, int column4x4, in FillCache() argument 75 rows4x4_ - row4x4); in FillCache() 78 auto* bp_dst = &block_parameters_cache_[row4x4][column4x4]; in FillCache()
|
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 | parameter_tree.cc | 29 std::unique_ptr<ParameterTree> ParameterTree::Create(int row4x4, int column4x4, in Create() argument 33 new (std::nothrow) ParameterTree(row4x4, column4x4, block_size)); in Create()
|
/external/libgav1/libgav1/src/tile/ |
D | tile.cc | 316 const int y_offset = y4 - block.row4x4; in SetTransformType() 373 const int macroblocks_to_top_edge = -block.row4x4; in GetClampParameters() 375 block.tile.frame_header().rows4x4 - block.height4x4 - block.row4x4; in GetClampParameters() 606 bool Tile::ProcessSuperBlockRow(int row4x4, in ProcessSuperBlockRow() argument 608 if (row4x4 < row4x4_start_ || row4x4 >= row4x4_end_) return true; in ProcessSuperBlockRow() 613 if (!ProcessSuperBlock(row4x4, column4x4, block_width4x4, scratch_buffer, in ProcessSuperBlockRow() 616 row4x4, column4x4); in ProcessSuperBlockRow() 620 if (save_symbol_decoder_context && row4x4 + block_width4x4 >= row4x4_end_) { in ProcessSuperBlockRow() 625 PopulateIntraPredictionBuffer(row4x4); in ProcessSuperBlockRow() 633 int row4x4, TileScratchBuffer* scratch_buffer); [all …]
|
D | prediction.cc | 287 block.row4x4 >> (sequence_header_.use_128x128_superblock ? 5 : 4); in IntraPrediction() 408 block.row4x4 - 1 - in GetIntraEdgeFilterType() 409 static_cast<int>(subsampling_y != 0 && (block.row4x4 & 1) != 0); in GetIntraEdgeFilterType() 416 const int row = block.row4x4 + static_cast<int>(subsampling_y != 0 && in GetIntraEdgeFilterType() 417 (block.row4x4 & 1) == 0); in GetIntraEdgeFilterType() 688 DivideBy4(prediction_height), block.row4x4, block.column4x4, in GetWarpParams() 860 const int candidate_row = block.row4x4 - 1; in ObmcPrediction() 861 const int block_start_y = MultiplyBy4(block.row4x4) >> subsampling_y; in ObmcPrediction() 892 std::min(block.row4x4 + block.height4x4, frame_header_.rows4x4); in ObmcPrediction() 894 int row4x4 = block.row4x4; in ObmcPrediction() local [all …]
|