/third_party/ffmpeg/libavfilter/ |
D | vf_mestimate.c | 142 #define ADD_PRED(preds, px, py)\ argument 144 preds.mvs[preds.nb][0] = px;\ 145 preds.mvs[preds.nb][1] = py;\ 146 preds.nb++;\ 220 AVMotionEstPredictor *preds = me_ctx->preds; in filter_frame() local 221 preds[0].nb = 0; in filter_frame() 223 ADD_PRED(preds[0], 0, 0); in filter_frame() 227 … ADD_PRED(preds[0], s->mv_table[0][mb_i - 1][dir][0], s->mv_table[0][mb_i - 1][dir][1]); in filter_frame() 231 …ADD_PRED(preds[0], s->mv_table[0][mb_i - s->b_width][dir][0], s->mv_table[0][mb_i - s->b_width][di… in filter_frame() 235 …ADD_PRED(preds[0], s->mv_table[0][mb_i - s->b_width + 1][dir][0], s->mv_table[0][mb_i - s->b_width… in filter_frame() [all …]
|
D | vf_minterpolate.c | 418 #define ADD_PRED(preds, px, py)\ argument 420 preds.mvs[preds.nb][0] = px;\ 421 preds.mvs[preds.nb][1] = py;\ 422 preds.nb++;\ 428 AVMotionEstPredictor *preds = me_ctx->preds; in search_mv() local 460 preds[0].nb = 0; in search_mv() 461 preds[1].nb = 0; in search_mv() 463 ADD_PRED(preds[0], 0, 0); in search_mv() 467 … ADD_PRED(preds[0], mi_ctx->mv_table[0][mb_i - 1][dir][0], mi_ctx->mv_table[0][mb_i - 1][dir][1]); in search_mv() 471 …ADD_PRED(preds[0], mi_ctx->mv_table[0][mb_i - mi_ctx->b_width][dir][0], mi_ctx->mv_table[0][mb_i -… in search_mv() [all …]
|
D | motion_estimation.c | 342 AVMotionEstPredictor *preds = me_ctx->preds; in ff_me_search_epzs() local 348 for (i = 0; i < preds[0].nb; i++) in ff_me_search_epzs() 349 COST_P_MV(x_mb + preds[0].mvs[i][0], y_mb + preds[0].mvs[i][1]); in ff_me_search_epzs() 351 for (i = 0; i < preds[1].nb; i++) in ff_me_search_epzs() 352 COST_P_MV(x_mb + preds[1].mvs[i][0], y_mb + preds[1].mvs[i][1]); in ff_me_search_epzs() 384 AVMotionEstPredictor *pred = &me_ctx->preds[0]; in ff_me_search_umh()
|
/third_party/flutter/skia/third_party/externals/libwebp/src/dsp/ |
D | filters.c | 49 const uint8_t* preds; in DoHorizontalFilter_C() local 55 preds = inverse ? out : in; in DoHorizontalFilter_C() 60 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoHorizontalFilter_C() 62 preds += stride; in DoHorizontalFilter_C() 70 PredictLine_C(in, preds - stride, out, 1, inverse); in DoHorizontalFilter_C() 71 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoHorizontalFilter_C() 73 preds += stride; in DoHorizontalFilter_C() 86 const uint8_t* preds; in DoVerticalFilter_C() local 92 preds = inverse ? out : in; in DoVerticalFilter_C() 98 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoVerticalFilter_C() [all …]
|
D | filters_msa.c | 71 const uint8_t* preds = data; in HorizontalFilter_MSA() local 79 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in HorizontalFilter_MSA() 80 preds += stride; in HorizontalFilter_MSA() 86 PredictLineInverse0(in, preds - stride, out, 1); in HorizontalFilter_MSA() 87 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in HorizontalFilter_MSA() 89 preds += stride; in HorizontalFilter_MSA() 135 const uint8_t* preds = data; in GradientFilter_MSA() local 142 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in GradientFilter_MSA() 143 preds += stride; in GradientFilter_MSA() 148 out[0] = in[0] - preds[- stride]; in GradientFilter_MSA() [all …]
|
D | filters_mips_dsp_r2.c | 186 PREDICT_LINE_ONE_PASS(in, preds - stride, out); \ 189 preds += stride; \ 200 const uint8_t* preds; in DoHorizontalFilter_MIPSdspR2() local 206 preds = in; in DoHorizontalFilter_MIPSdspR2() 213 preds += stride; in DoHorizontalFilter_MIPSdspR2() 235 DO_PREDICT_LINE_VERTICAL(in, preds, out, width, 0); \ 237 preds += stride; \ 248 const uint8_t* preds; in DoVerticalFilter_MIPSdspR2() local 254 preds = in; in DoVerticalFilter_MIPSdspR2() 266 preds -= stride; in DoVerticalFilter_MIPSdspR2() [all …]
|
/third_party/skia/third_party/externals/libwebp/src/dsp/ |
D | filters.c | 49 const uint8_t* preds; in DoHorizontalFilter_C() local 55 preds = inverse ? out : in; in DoHorizontalFilter_C() 60 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoHorizontalFilter_C() 62 preds += stride; in DoHorizontalFilter_C() 70 PredictLine_C(in, preds - stride, out, 1, inverse); in DoHorizontalFilter_C() 71 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoHorizontalFilter_C() 73 preds += stride; in DoHorizontalFilter_C() 86 const uint8_t* preds; in DoVerticalFilter_C() local 92 preds = inverse ? out : in; in DoVerticalFilter_C() 98 PredictLine_C(in + 1, preds, out + 1, width - 1, inverse); in DoVerticalFilter_C() [all …]
|
D | filters_msa.c | 71 const uint8_t* preds = data; in HorizontalFilter_MSA() local 79 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in HorizontalFilter_MSA() 80 preds += stride; in HorizontalFilter_MSA() 86 PredictLineInverse0(in, preds - stride, out, 1); in HorizontalFilter_MSA() 87 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in HorizontalFilter_MSA() 89 preds += stride; in HorizontalFilter_MSA() 135 const uint8_t* preds = data; in GradientFilter_MSA() local 142 PredictLineInverse0(in + 1, preds, out + 1, width - 1); in GradientFilter_MSA() 143 preds += stride; in GradientFilter_MSA() 148 out[0] = in[0] - preds[- stride]; in GradientFilter_MSA() [all …]
|
D | filters_mips_dsp_r2.c | 186 PREDICT_LINE_ONE_PASS(in, preds - stride, out); \ 189 preds += stride; \ 200 const uint8_t* preds; in DoHorizontalFilter_MIPSdspR2() local 206 preds = in; in DoHorizontalFilter_MIPSdspR2() 213 preds += stride; in DoHorizontalFilter_MIPSdspR2() 235 DO_PREDICT_LINE_VERTICAL(in, preds, out, width, 0); \ 237 preds += stride; \ 248 const uint8_t* preds; in DoVerticalFilter_MIPSdspR2() local 254 preds = in; in DoVerticalFilter_MIPSdspR2() 266 preds -= stride; in DoVerticalFilter_MIPSdspR2() [all …]
|
/third_party/flutter/skia/third_party/externals/libwebp/src/enc/ |
D | tree_enc.c | 319 const uint8_t* preds = it.preds_; in VP8CodeIntraModes() local 327 PutI16Mode(bw, preds[0]); in VP8CodeIntraModes() 330 const uint8_t* top_pred = preds - preds_w; in VP8CodeIntraModes() 333 int left = preds[-1]; in VP8CodeIntraModes() 336 left = PutI4Mode(bw, preds[x], probas); in VP8CodeIntraModes() 338 top_pred = preds; in VP8CodeIntraModes() 339 preds += preds_w; in VP8CodeIntraModes()
|
/third_party/skia/third_party/externals/libwebp/src/enc/ |
D | tree_enc.c | 319 const uint8_t* preds = it.preds_; in VP8CodeIntraModes() local 327 PutI16Mode(bw, preds[0]); in VP8CodeIntraModes() 330 const uint8_t* top_pred = preds - preds_w; in VP8CodeIntraModes() 333 int left = preds[-1]; in VP8CodeIntraModes() 336 left = PutI4Mode(bw, preds[x], probas); in VP8CodeIntraModes() 338 top_pred = preds; in VP8CodeIntraModes() 339 preds += preds_w; in VP8CodeIntraModes()
|
/third_party/spirv-tools/test/opt/loop_optimizations/ |
D | nested_loops.cpp | 730 const std::vector<uint32_t>& preds = in TEST_F() local 731 cfg->preds(loop.GetPreHeaderBlock()->id()); in TEST_F() 732 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 744 const std::vector<uint32_t>& preds = in TEST_F() local 745 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() 746 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 764 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id()).size(), 1u); in TEST_F() 765 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id())[0], 25u); in TEST_F() 772 const std::vector<uint32_t>& preds = in TEST_F() local 773 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/spirv-tools/test/opt/loop_optimizations/ |
D | nested_loops.cpp | 730 const std::vector<uint32_t>& preds = in TEST_F() local 731 cfg->preds(loop.GetPreHeaderBlock()->id()); in TEST_F() 732 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 744 const std::vector<uint32_t>& preds = in TEST_F() local 745 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() 746 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 764 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id()).size(), 1u); in TEST_F() 765 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id())[0], 25u); in TEST_F() 772 const std::vector<uint32_t>& preds = in TEST_F() local 773 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() [all …]
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/test/opt/loop_optimizations/ |
D | nested_loops.cpp | 730 const std::vector<uint32_t>& preds = in TEST_F() local 731 cfg->preds(loop.GetPreHeaderBlock()->id()); in TEST_F() 732 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 744 const std::vector<uint32_t>& preds = in TEST_F() local 745 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() 746 std::unordered_set<uint32_t> pred_set(preds.begin(), preds.end()); in TEST_F() 764 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id()).size(), 1u); in TEST_F() 765 EXPECT_EQ(cfg->preds(loop.GetPreHeaderBlock()->id())[0], 25u); in TEST_F() 772 const std::vector<uint32_t>& preds = in TEST_F() local 773 cfg->preds(loop.GetHeaderBlock()->id()); in TEST_F() [all …]
|
/third_party/mesa3d/src/amd/compiler/ |
D | aco_insert_exec_mask.cpp | 248 std::vector<unsigned>& preds = block->linear_preds; in add_coupling_code() local 292 assert(preds[0] == idx - 1); in add_coupling_code() 303 Format::PSEUDO, preds.size(), 1)); in add_coupling_code() 305 phi->operands[0] = get_exec_op(ctx.info[preds[0]].exec[i].first); in add_coupling_code() 314 aco_opcode::p_linear_phi, Format::PSEUDO, preds.size(), 1)}; in add_coupling_code() 316 phi->operands[0] = get_exec_op(ctx.info[preds[0]].exec[info.num_exec_masks - 1].first); in add_coupling_code() 322 aco_opcode::p_linear_phi, Format::PSEUDO, preds.size(), 1)}; in add_coupling_code() 327 phi->operands[0] = get_exec_op(ctx.info[preds[0]].exec.back().first); in add_coupling_code() 360 for (ASSERTED unsigned pred : preds) in add_coupling_code() 396 Operand same = ctx.info[preds[0]].exec[exec_idx].first; in add_coupling_code() [all …]
|
D | aco_live_var_analysis.cpp | 232 std::vector<unsigned>& preds = rc.is_linear() ? block->linear_preds : block->logical_preds; in process_live_temps_per_block() local 235 if (preds.empty()) in process_live_temps_per_block() 240 for (unsigned pred_idx : preds) { in process_live_temps_per_block() 253 std::vector<unsigned>& preds = in process_live_temps_per_block() local 255 for (unsigned i = 0; i < preds.size(); ++i) { in process_live_temps_per_block() 262 const bool inserted = lives.live_out[preds[i]].insert(operand.tempId()).second; in process_live_temps_per_block() 264 worklist = std::max(worklist, preds[i] + 1); in process_live_temps_per_block() 266 phi_info[preds[i]].logical_phi_sgpr_ops += operand.size(); in process_live_temps_per_block() 269 phi_info[preds[i]].linear_phi_ops += operand.size(); in process_live_temps_per_block()
|
D | aco_lower_to_cssa.cpp | 92 std::vector<unsigned>& preds = in collect_parallelcopies() local 119 ctx.parallelcopies[preds[i]].emplace_back(copy{Definition(tmp), op}); in collect_parallelcopies() 124 ctx.merge_node_table[tmp.id()] = {op, index, preds[i]}; in collect_parallelcopies() 128 ctx.live_out[preds[i]].erase(op.tempId()); in collect_parallelcopies() 129 ctx.live_out[preds[i]].insert(tmp.id()); in collect_parallelcopies() 197 std::vector<uint32_t>& preds = var.type() == RegType::vgpr in intersects() local 200 for (uint32_t pred : preds) { in intersects()
|
/third_party/skia/third_party/externals/swiftshader/third_party/llvm-10.0/llvm/include/llvm/CodeGen/GlobalISel/ |
D | MIPatternMatch.h | 82 And(Pred &&p, Preds &&... preds) 83 : And<Preds...>(std::forward<Preds>(preds)...), P(std::forward<Pred>(p)) { 101 Or(Pred &&p, Preds &&... preds) 102 : Or<Preds...>(std::forward<Preds>(preds)...), P(std::forward<Pred>(p)) {} 109 template <typename... Preds> And<Preds...> m_all_of(Preds &&... preds) { 110 return And<Preds...>(std::forward<Preds>(preds)...); 113 template <typename... Preds> Or<Preds...> m_any_of(Preds &&... preds) { 114 return Or<Preds...>(std::forward<Preds>(preds)...);
|
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/source/opt/ |
D | if_conversion.cpp | 152 const std::vector<uint32_t>& preds = cfg()->preds(block->id()); in CheckBlock() local 155 if (preds.size() != 2) return false; in CheckBlock() 157 BasicBlock* inc0 = context()->get_instr_block(preds[0]); in CheckBlock() 160 BasicBlock* inc1 = context()->get_instr_block(preds[1]); in CheckBlock()
|
D | loop_fusion.cpp | 122 if (context_->cfg()->preds(loop_0_->GetMergeBlock()->id()).size() != 1 || in AreCompatible() 123 context_->cfg()->preds(loop_1_->GetMergeBlock()->id()).size() != 1) { in AreCompatible() 128 if (context_->cfg()->preds(loop_0_->GetContinueBlock()->id()).size() != 1 || in AreCompatible() 129 context_->cfg()->preds(loop_1_->GetContinueBlock()->id()).size() != 1) { in AreCompatible() 177 auto preds = context_->cfg()->preds(pre_header_1->id()); in AreCompatible() local 178 if (preds.size() == 1) { in AreCompatible() 179 auto block = &*containing_function_->FindBlock(preds.front()); in AreCompatible()
|
/third_party/skia/third_party/externals/spirv-tools/source/opt/ |
D | if_conversion.cpp | 152 const std::vector<uint32_t>& preds = cfg()->preds(block->id()); in CheckBlock() local 155 if (preds.size() != 2) return false; in CheckBlock() 157 BasicBlock* inc0 = context()->get_instr_block(preds[0]); in CheckBlock() 160 BasicBlock* inc1 = context()->get_instr_block(preds[1]); in CheckBlock()
|
D | loop_fusion.cpp | 122 if (context_->cfg()->preds(loop_0_->GetMergeBlock()->id()).size() != 1 || in AreCompatible() 123 context_->cfg()->preds(loop_1_->GetMergeBlock()->id()).size() != 1) { in AreCompatible() 128 if (context_->cfg()->preds(loop_0_->GetContinueBlock()->id()).size() != 1 || in AreCompatible() 129 context_->cfg()->preds(loop_1_->GetContinueBlock()->id()).size() != 1) { in AreCompatible() 177 auto preds = context_->cfg()->preds(pre_header_1->id()); in AreCompatible() local 178 if (preds.size() == 1) { in AreCompatible() 179 auto block = &*containing_function_->FindBlock(preds.front()); in AreCompatible()
|
/third_party/spirv-tools/source/opt/ |
D | loop_fusion.cpp | 122 if (context_->cfg()->preds(loop_0_->GetMergeBlock()->id()).size() != 1 || in AreCompatible() 123 context_->cfg()->preds(loop_1_->GetMergeBlock()->id()).size() != 1) { in AreCompatible() 128 if (context_->cfg()->preds(loop_0_->GetContinueBlock()->id()).size() != 1 || in AreCompatible() 129 context_->cfg()->preds(loop_1_->GetContinueBlock()->id()).size() != 1) { in AreCompatible() 177 auto preds = context_->cfg()->preds(pre_header_1->id()); in AreCompatible() local 178 if (preds.size() == 1) { in AreCompatible() 179 auto block = &*containing_function_->FindBlock(preds.front()); in AreCompatible()
|
D | if_conversion.cpp | 152 const std::vector<uint32_t>& preds = cfg()->preds(block->id()); in CheckBlock() local 155 if (preds.size() != 2) return false; in CheckBlock() 157 BasicBlock* inc0 = context()->get_instr_block(preds[0]); in CheckBlock() 160 BasicBlock* inc1 = context()->get_instr_block(preds[1]); in CheckBlock()
|
/third_party/mesa3d/src/compiler/nir/ |
D | nir_phi_builder.c | 287 nir_block **preds = nir_block_get_predecessors_sorted(phi->instr.block, pb); in nir_phi_builder_finish() local 290 nir_phi_instr_add_src(phi, preds[i], in nir_phi_builder_finish() 291 … nir_src_for_ssa(nir_phi_builder_value_get_block_def(val, preds[i]))); in nir_phi_builder_finish() 294 ralloc_free(preds); in nir_phi_builder_finish()
|