Home
last modified time | relevance | path

Searched refs:column4x4 (Results 1 – 22 of 22) sorted by relevance

/external/libgav1/src/utils/
Dsegmentation_map_test.cc32 for (int column4x4 = 0; column4x4 < kColumns4x4; ++column4x4) { in TEST() local
33 EXPECT_EQ(segmentation_map.segment_id(row4x4, column4x4), 0); in TEST()
51 for (int column4x4 = 0; column4x4 < kColumns4x4; ++column4x4) { in TEST() local
52 if (4 <= row4x4 && row4x4 < 4 + kBlockHeight4x4 && 6 <= column4x4 && in TEST()
53 column4x4 < 6 + kBlockWidth4x4) { 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()
86 for (int column4x4 = 0; column4x4 < kBlockWidth4x4; ++column4x4) { 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()
[all …]
Dblock_parameters_holder.h46 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,
Dblock_parameters_holder.cc34 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
53 columns4x4_ - column4x4); in FillCache()
54 auto* bp_dst = &block_parameters_cache_[row4x4][column4x4]; in FillCache()
Dsegmentation_map.h43 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,
Dsegmentation_map.cc45 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()
Dtypes.h512 PartitionTreeNode(int row4x4, int column4x4, BlockSize block_size) in PartitionTreeNode()
513 : row4x4(row4x4), column4x4(column4x4), block_size(block_size) {} in PartitionTreeNode()
515 int column4x4 = -1; member
/external/libgav1/src/post_filter/
Ddeblock.cc123 bool PostFilter::GetHorizontalDeblockFilterEdgeInfo(int row4x4, int column4x4, in GetHorizontalDeblockFilterEdgeInfo() argument
126 *step = kTransformHeight[inter_transform_sizes_[row4x4][column4x4]]; in GetHorizontalDeblockFilterEdgeInfo()
129 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfo()
133 block_parameters_.Find(row4x4_prev, column4x4); in GetHorizontalDeblockFilterEdgeInfo()
148 kTransformHeight[inter_transform_sizes_[row4x4_prev][column4x4]]; in GetHorizontalDeblockFilterEdgeInfo()
154 int row4x4, int column4x4, uint8_t* level_u, uint8_t* level_v, int* step, in GetHorizontalDeblockFilterEdgeInfoUV() argument
159 column4x4 = GetDeblockPosition(column4x4, subsampling_x); in GetHorizontalDeblockFilterEdgeInfoUV()
160 const BlockParameters* bp = block_parameters_.Find(row4x4, column4x4); in GetHorizontalDeblockFilterEdgeInfoUV()
178 block_parameters_.Find(row4x4_prev, column4x4); in GetHorizontalDeblockFilterEdgeInfoUV()
214 int row4x4, int column4x4, BlockParameters* const* bp_ptr, uint8_t* level, in GetVerticalDeblockFilterEdgeInfo() argument
[all …]
Dcdef.cc118 int row4x4, int column4x4, in PrepareCdefBlock() argument
127 const int start_x = MultiplyBy4(column4x4) >> subsampling_x; in PrepareCdefBlock()
139 const bool is_frame_left = column4x4 == 0; in PrepareCdefBlock()
367 int column4x4 = column4x4_start; in ApplyCdefForOneUnit() local
388 const uint8_t skip_shift = (column4x4 >> 1) & 0x7; in ApplyCdefForOneUnit()
455 column4x4 += kStep4x4; in ApplyCdefForOneUnit()
457 } while (column4x4 < column4x4_start + block_width4x4); in ApplyCdefForOneUnit()
530 int column4x4 = column4x4_start; in ApplyCdefForOneUnit() local
547 if (column4x4 + (kStep4x4 * 2) <= column4x4_start + block_width4x4) { in ApplyCdefForOneUnit()
585 column4x4 += kStep4x4 << dual_cdef; in ApplyCdefForOneUnit()
[all …]
/external/libgav1/src/tile/bitstream/
Dtransform_size.cc70 int Tile::GetTopTransformWidth(const Block& block, int row4x4, int column4x4, in GetTopTransformWidth() argument
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
85 if (column4x4 == block.column4x4) { in GetLeftTransformHeight()
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()
135 int column4x4, TransformSize tx_size) { in ReadVariableTransformTree() argument
[all …]
Dpartition.cc84 uint16_t* Tile::GetPartitionCdf(int row4x4, int column4x4, in GetPartitionCdf() argument
90 k4x4WidthLog2[block_parameters_holder_.Find(row4x4 - 1, column4x4) in GetPartitionCdf()
94 if (IsLeftInside(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()
Dmode_info.cc195 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()
606 const int x_limit = std::min(frame_header_.columns4x4 - block.column4x4, in ComputePredictedSegmentId()
614 prev_segment_ids_->segment_id(block.row4x4 + y, block.column4x4 + x); in ComputePredictedSegmentId()
736 if (subsampling_x_[kPlaneU] == 0 || (block.column4x4 & 1) == 1 || in SetCdfContextUVMode()
763 block.column4x4 - 1 - (block.column4x4 & subsampling_x_[kPlaneU]); in ReadIntraBlockModeInfo()
775 block.column4x4 + (~block.column4x4 & subsampling_x_[kPlaneU]); in ReadIntraBlockModeInfo()
Dpalette.cc270 block_width, MultiplyBy4(frame_header_.columns4x4 - block.column4x4)); in ReadPaletteTokens()
/external/libgav1/src/
Dtile.h134 bool IsInside(int row4x4, int column4x4) const { in IsInside() argument
135 return IsRow4x4Inside(row4x4) && column4x4 >= column4x4_start_ && in IsInside()
136 column4x4 < column4x4_end_; in IsInside()
139 bool IsLeftInside(int column4x4) const { in IsLeftInside() argument
142 assert(column4x4 <= column4x4_end_); in IsLeftInside()
143 return column4x4 > column4x4_start_; in IsLeftInside()
153 bool IsTopLeftInside(int row4x4, int column4x4) const { in IsTopLeftInside() argument
157 assert(column4x4 <= column4x4_end_); in IsTopLeftInside()
158 return row4x4 > row4x4_start_ && column4x4 > column4x4_start_; in IsTopLeftInside()
161 bool IsBottomRightInside(int row4x4, int column4x4) const { in IsBottomRightInside() argument
[all …]
Dpost_filter.h220 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()
301 bool GetHorizontalDeblockFilterEdgeInfo(int row4x4, int column4x4,
304 void GetHorizontalDeblockFilterEdgeInfoUV(int row4x4, int column4x4,
308 bool GetVerticalDeblockFilterEdgeInfo(int row4x4, int column4x4,
312 void GetVerticalDeblockFilterEdgeInfoUV(int column4x4,
[all …]
Dmotion_vector.cc78 const int x = MultiplyBy4(block.column4x4) + DivideBy2(block.width) - 1; in SetupGlobalMv()
220 tile.frame_header().columns4x4 - block.column4x4, 16}); in ScanRow()
236 const int mv_column = block.column4x4 + delta_column; in ScanColumn()
262 const int mv_column = block.column4x4 + delta_column; in ScanPoint()
390 const int column = (block.column4x4 & 15) + delta_column; in IsWithinTheSame64x64Block()
407 const int column_start = block.column4x4 | 1; in TemporalScan()
581 tile.frame_header().columns4x4 - block.column4x4, in ExtraSearch()
593 const int mv_column = block.column4x4 + ((pass == 0) ? i : -1); in ExtraSearch()
719 const int mv_column = block.column4x4 + delta_column; in AddSample()
802 ScanRow(block, block.column4x4, -1, is_compound, &found_new_mv, in FindMvStack()
[all …]
Dwarp_prediction_test.cc209 const int column4x4 = rnd.Rand8(); in TEST_P() local
217 candidates[i][1] = rnd.Rand8() + MultiplyBy32(column4x4); in TEST_P()
219 candidates[i][3] = rnd.Rand8() + MultiplyBy32(column4x4); in TEST_P()
226 column4x4, mv, candidates, &warp_params); in TEST_P()
Dloop_restoration_info.cc106 uint8_t superres_scale_denominator, int row4x4, int column4x4, in PopulateUnitInfoForSuperBlock() argument
113 RowOrColumn4x4ToPixel(column4x4, plane, subsampling_x_); in PopulateUnitInfoForSuperBlock()
115 column4x4 + kNum4x4BlocksWide[block_size], plane, subsampling_x_); in PopulateUnitInfoForSuperBlock()
Dwarp_prediction.h34 int row4x4, int column4x4, const MotionVector& mv,
Dwarp_prediction.cc136 const int column4x4, const MotionVector& mv, in WarpEstimation() argument
153 const int mid_x = MultiplyBy4(column4x4) + MultiplyBy2(block_width4x4) - 1; in WarpEstimation()
Dloop_restoration_info.h57 int row4x4, int column4x4,
/external/libgav1/src/tile/
Dtile.cc314 const int x_offset = x4 - block.column4x4; in SetTransformType()
373 const int macroblocks_to_left_edge = -block.column4x4; in GetClampParameters()
375 block.tile.frame_header().columns4x4 - block.width4x4 - block.column4x4; in GetClampParameters()
605 for (int column4x4 = column4x4_start_; column4x4 < column4x4_end_; in ProcessSuperBlockRow() local
606 column4x4 += block_width4x4) { in ProcessSuperBlockRow()
607 if (!ProcessSuperBlock(row4x4, column4x4, scratch_buffer, in ProcessSuperBlockRow()
610 row4x4, column4x4); in ProcessSuperBlockRow()
768 for (int column4x4 = column4x4_start_, column_index = 0; in ThreadedParseAndDecode() local
769 column4x4 < column4x4_end_; in ThreadedParseAndDecode()
770 column4x4 += block_width4x4, ++column_index) { in ThreadedParseAndDecode()
[all …]
Dprediction.cc669 DivideBy4(prediction_height), block.row4x4, block.column4x4, in GetWarpParams()
839 std::min(block.column4x4 + block.width4x4, frame_header_.columns4x4); in ObmcPrediction()
842 int column4x4 = block.column4x4; in ObmcPrediction() local
844 for (int i = 0, step; i < num_limit && column4x4 < column4x4_max; in ObmcPrediction()
845 column4x4 += step) { in ObmcPrediction()
846 const int candidate_column = column4x4 | 1; in ObmcPrediction()
861 MultiplyBy4(column4x4) >> subsampling_x, block_start_y, in ObmcPrediction()
873 const int candidate_column = block.column4x4 - 1; in ObmcPrediction()
875 const int block_start_x = MultiplyBy4(block.column4x4) >> subsampling_x; in ObmcPrediction()