/external/llvm/unittests/ADT/ |
D | MapVectorTest.cpp | 43 MapVector<int, int> MV; in TEST() local 46 R = MV.insert(std::make_pair(1, 2)); in TEST() 47 ASSERT_EQ(R.first, MV.begin()); in TEST() 52 R = MV.insert(std::make_pair(1, 3)); in TEST() 53 ASSERT_EQ(R.first, MV.begin()); in TEST() 58 R = MV.insert(std::make_pair(4, 5)); in TEST() 59 ASSERT_NE(R.first, MV.end()); in TEST() 64 EXPECT_EQ(MV.size(), 2u); in TEST() 65 EXPECT_EQ(MV[1], 2); in TEST() 66 EXPECT_EQ(MV[4], 5); in TEST() [all …]
|
/external/libvpx/vp9/encoder/ |
D | vp9_mcomp.h | 27 // Max full pel mv specified in the unit of full pixel 38 MV ss_mv[8 * MAX_MVSEARCH_STEPS]; // Motion vector 50 const MV *mv) { in get_buf_from_mv() argument 51 return &buf->buf[mv->row * buf->stride + mv->col]; in get_buf_from_mv() 57 void vp9_set_mv_search_range(MvLimits *mv_limits, const MV *mv); 58 int vp9_mv_bit_cost(const MV *mv, const MV *ref, const int *mvjcost, 61 // Utility to compute variance + MV rate cost for a given MV 62 int vp9_get_mvpred_var(const MACROBLOCK *x, const MV *best_mv, 63 const MV *center_mv, const vp9_variance_fn_ptr_t *vfp, 65 int vp9_get_mvpred_av_var(const MACROBLOCK *x, const MV *best_mv, [all …]
|
D | vp9_mcomp.c | 32 void vp9_set_mv_search_range(MvLimits *mv_limits, const MV *mv) { in vp9_set_mv_search_range() argument 33 int col_min = (mv->col >> 3) - MAX_FULL_PEL_VAL + (mv->col & 7 ? 1 : 0); in vp9_set_mv_search_range() 34 int row_min = (mv->row >> 3) - MAX_FULL_PEL_VAL + (mv->row & 7 ? 1 : 0); in vp9_set_mv_search_range() 35 int col_max = (mv->col >> 3) + MAX_FULL_PEL_VAL; in vp9_set_mv_search_range() 36 int row_max = (mv->row >> 3) + MAX_FULL_PEL_VAL; in vp9_set_mv_search_range() 43 // Get intersection of UMV window and valid MV window to reduce # of checks in vp9_set_mv_search_range() 53 const MV *ref_mv) { in vp9_set_subpel_mv_search_range() 80 int vp9_mv_bit_cost(const MV *mv, const MV *ref, const int *mvjcost, in vp9_mv_bit_cost() argument 82 const MV diff = { mv->row - ref->row, mv->col - ref->col }; in vp9_mv_bit_cost() 87 static int mv_err_cost(const MV *mv, const MV *ref, const int *mvjcost, in mv_err_cost() argument [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/internal/flow/ |
D | ClassProbesAdapterTest.java | 120 final MockMethodVisitor mv = new MockMethodVisitor(); in testVisitWithFrames() local 125 return mv; in testVisitWithFrames() 131 assertTrue(mv.frame); in testVisitWithFrames() 136 final MockMethodVisitor mv = new MockMethodVisitor(); in testVisitWithoutFrames() local 141 return mv; in testVisitWithoutFrames() 147 assertFalse(mv.frame); in testVisitWithoutFrames() 151 MethodVisitor mv = cv.visitMethod(0, "foo", "()V", null, null); in writeMethod() local 152 mv.visitCode(); in writeMethod() 153 mv.visitInsn(Opcodes.RETURN); in writeMethod() 154 mv.visitMaxs(0, 1); in writeMethod() [all …]
|
/external/libvpx/vp8/common/ |
D | reconinter.c | 64 ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + in vp8_build_inter_predictors_b() 65 (d->bmi.mv.as_mv.col >> 3); in vp8_build_inter_predictors_b() 67 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) { in vp8_build_inter_predictors_b() 68 sppf(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, d->bmi.mv.as_mv.row & 7, in vp8_build_inter_predictors_b() 86 ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + in build_inter_predictors4b() 87 (d->bmi.mv.as_mv.col >> 3); in build_inter_predictors4b() 89 if (d->bmi.mv.as_mv.row & 7 || d->bmi.mv.as_mv.col & 7) { in build_inter_predictors4b() 90 x->subpixel_predict8x8(ptr, pre_stride, d->bmi.mv.as_mv.col & 7, in build_inter_predictors4b() 91 d->bmi.mv.as_mv.row & 7, dst, dst_stride); in build_inter_predictors4b() 101 ptr = base_pre + d->offset + (d->bmi.mv.as_mv.row >> 3) * pre_stride + in build_inter_predictors2b() [all …]
|
D | findnearmv.h | 15 #include "mv.h" 34 static INLINE void vp8_clamp_mv2(int_mv *mv, const MACROBLOCKD *xd) { in vp8_clamp_mv2() argument 35 if (mv->as_mv.col < (xd->mb_to_left_edge - LEFT_TOP_MARGIN)) { in vp8_clamp_mv2() 36 mv->as_mv.col = xd->mb_to_left_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2() 37 } else if (mv->as_mv.col > xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN) { in vp8_clamp_mv2() 38 mv->as_mv.col = xd->mb_to_right_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2() 41 if (mv->as_mv.row < (xd->mb_to_top_edge - LEFT_TOP_MARGIN)) { in vp8_clamp_mv2() 42 mv->as_mv.row = xd->mb_to_top_edge - LEFT_TOP_MARGIN; in vp8_clamp_mv2() 43 } else if (mv->as_mv.row > xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN) { in vp8_clamp_mv2() 44 mv->as_mv.row = xd->mb_to_bottom_edge + RIGHT_BOTTOM_MARGIN; in vp8_clamp_mv2() [all …]
|
/external/libgav1/src/dsp/ |
D | motion_vector_search.cc | 51 &candidate_mvs[index].mv[i]); in MvProjectionCompoundLowPrecision_C() 52 for (auto& mv : candidate_mvs[index].mv[i].mv) { in MvProjectionCompoundLowPrecision_C() local 54 // if ((mv & 1) != 0) mv += (mv > 0) ? -1 : 1; in MvProjectionCompoundLowPrecision_C() 55 mv = (mv - (mv >> 15)) & ~1; in MvProjectionCompoundLowPrecision_C() 78 &candidate_mvs[index].mv[i]); in MvProjectionCompoundForceInteger_C() 79 for (auto& mv : candidate_mvs[index].mv[i].mv) { in MvProjectionCompoundForceInteger_C() local 81 // const int value = (std::abs(static_cast<int>(mv)) + 3) & ~7; in MvProjectionCompoundForceInteger_C() 82 // const int sign = mv >> 15; in MvProjectionCompoundForceInteger_C() 83 // mv = ApplySign(value, sign); in MvProjectionCompoundForceInteger_C() 84 mv = (mv + 3 - (mv >> 15)) & ~7; in MvProjectionCompoundForceInteger_C() [all …]
|
/external/libdav1d/src/ |
D | refmvs.c | 43 const union refmvs_refpair ref, const mv gmv[2], in add_spatial_candidate() 47 if (b->mv.mv[0].n == INVALID_MV) return; // intra block, no intrabc in add_spatial_candidate() 52 const mv cand_mv = ((b->mf & 1) && gmv[0].n != INVALID_MV) ? in add_spatial_candidate() 53 gmv[0] : b->mv.mv[n]; in add_spatial_candidate() 60 if (mvstack[m].mv.mv[0].n == cand_mv.n) { in add_spatial_candidate() 66 mvstack[last].mv.mv[0] = cand_mv; in add_spatial_candidate() 74 const refmvs_mvpair cand_mv = { .mv = { in add_spatial_candidate() 75 [0] = ((b->mf & 1) && gmv[0].n != INVALID_MV) ? gmv[0] : b->mv.mv[0], in add_spatial_candidate() 76 [1] = ((b->mf & 1) && gmv[1].n != INVALID_MV) ? gmv[1] : b->mv.mv[1], in add_spatial_candidate() 84 if (mvstack[n].mv.n == cand_mv.n) { in add_spatial_candidate() [all …]
|
/external/perfmark/agent/src/main/java/io/perfmark/agent/ |
D | MethodWrappingWriter.java | 53 …MethodVisitor mv = classVisitor.visitMethod(access, methodName, descriptor, signature, exceptions); in visit() local 54 if (mv == null) { in visit() 58 recorder.replay(mv); in visit() 60 mv.visitCode(); in visit() 63 mv.visitLabel(start); in visit() 64 mv.visitLineNumber(recorder.firstLine, start); in visit() 65 mv.visitLdcInsn(className + "::" + methodName); in visit() 66 …mv.visitMethodInsn(Opcodes.INVOKESTATIC, "io/perfmark/PerfMark", "startTask", "(Ljava/lang/String;… in visit() 69 mv.visitVarInsn(Opcodes.ALOAD, 0); in visit() 82 mv.visitVarInsn(Opcodes.ALOAD, params++); in visit() [all …]
|
/external/llvm/test/Transforms/MemCpyOpt/ |
D | form-memset.ll | 60 %struct.MV = type { i16, i16 } 66 %left_mvd = alloca [8 x %struct.MV] ; <[8 x %struct.MV]*> [#uses=17] 67 %up_mvd = alloca [8 x %struct.MV] ; <[8 x %struct.MV]*> [#uses=17] 84 …%tmp43 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 7, i32 0 ; <i16*> … 86 …%tmp46 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 7, i32 1 ; <i16*> … 88 …%tmp57 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 6, i32 0 ; <i16*> … 90 …%tmp60 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 6, i32 1 ; <i16*> … 92 …%tmp71 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 5, i32 0 ; <i16*> … 94 …%tmp74 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 5, i32 1 ; <i16*> … 96 …%tmp85 = getelementptr [8 x %struct.MV], [8 x %struct.MV]* %up_mvd, i32 0, i32 4, i32 0 ; <i16*> … [all …]
|
/external/jacoco/org.jacoco.core/src/org/jacoco/core/internal/instr/ |
D | InterfaceFieldProbeArrayStrategy.java | 55 public int storeInstance(final MethodVisitor mv, final boolean clinit, in storeInstance() argument 59 className, probeCount, mv); in storeInstance() 63 mv.visitInsn(Opcodes.DUP); in storeInstance() 68 mv.visitFieldInsn(Opcodes.PUTSTATIC, className, in storeInstance() 73 mv.visitVarInsn(Opcodes.ASTORE, variable); in storeInstance() 78 mv.visitMethodInsn(Opcodes.INVOKESTATIC, className, in storeInstance() 81 mv.visitVarInsn(Opcodes.ASTORE, variable); in storeInstance() 101 final MethodVisitor mv = cv.visitMethod(InstrSupport.INITMETHOD_ACC, in createInitMethod() local 104 mv.visitCode(); in createInitMethod() 107 mv.visitFieldInsn(Opcodes.GETSTATIC, className, in createInitMethod() [all …]
|
D | ClassFieldProbeArrayStrategy.java | 53 public int storeInstance(final MethodVisitor mv, final boolean clinit, in storeInstance() argument 55 mv.visitMethodInsn(Opcodes.INVOKESTATIC, className, in storeInstance() 58 mv.visitVarInsn(Opcodes.ASTORE, variable); in storeInstance() 73 final MethodVisitor mv = cv.visitMethod(InstrSupport.INITMETHOD_ACC, in createInitMethod() local 76 mv.visitCode(); in createInitMethod() 79 mv.visitFieldInsn(Opcodes.GETSTATIC, className, in createInitMethod() 81 mv.visitInsn(Opcodes.DUP); in createInitMethod() 88 mv.visitJumpInsn(Opcodes.IFNONNULL, alreadyInitialized); in createInitMethod() 92 mv.visitInsn(Opcodes.POP); in createInitMethod() 93 final int size = genInitializeDataField(mv, probeCount); in createInitMethod() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/runtime/ |
D | RuntimeDataTest.java | 121 MethodVisitor mv = writer.visitMethod(Opcodes.ACC_PUBLIC, "<init>", in testGenerateArgumentArray() local 123 mv.visitCode(); in testGenerateArgumentArray() 124 mv.visitVarInsn(Opcodes.ALOAD, 0); in testGenerateArgumentArray() 125 mv.visitMethodInsn(Opcodes.INVOKESPECIAL, "java/lang/Object", "<init>", in testGenerateArgumentArray() 127 mv.visitInsn(Opcodes.RETURN); in testGenerateArgumentArray() 128 mv.visitMaxs(1, 1); in testGenerateArgumentArray() 129 mv.visitEnd(); in testGenerateArgumentArray() 132 mv = writer.visitMethod(Opcodes.ACC_PUBLIC, "call", in testGenerateArgumentArray() 134 mv.visitCode(); in testGenerateArgumentArray() 135 RuntimeData.generateArgumentArray(1000, "Sample", 15, mv); in testGenerateArgumentArray() [all …]
|
/external/libaom/av1/common/ |
D | mv.h | 31 #define MARK_MV_INVALID(mv) \ argument 33 ((int_mv *)(mv))->as_int = INVALID_MV; \ 44 typedef struct mv { struct 47 } MV; typedef 49 static const MV kZeroMv = { 0, 0 }; 54 MV as_mv; 63 // The mv limit for fullpel mvs argument 71 // The mv limit for subpel mvs 79 static inline FULLPEL_MV get_fullmv_from_mv(const MV *subpel_mv) { in get_fullmv_from_mv() 85 static inline MV get_mv_from_fullmv(const FULLPEL_MV *full_mv) { in get_mv_from_fullmv() [all …]
|
/external/jacoco/org.jacoco.core.test/src/org/jacoco/core/instr/ |
D | ResizeInstructionsTest.java | 70 final MethodVisitor mv = cv.visitMethod(0, "m", "()V", null, in should_not_loose_InnerClasses_attribute() 72 mv.visitCode(); in should_not_loose_InnerClasses_attribute() 73 addCauseOfResizeInstructions(mv); in should_not_loose_InnerClasses_attribute() 74 mv.visitInsn(Opcodes.NOP); in should_not_loose_InnerClasses_attribute() 75 mv.visitMaxs(2, 1); in should_not_loose_InnerClasses_attribute() 76 mv.visitEnd(); in should_not_loose_InnerClasses_attribute() 115 final MethodVisitor mv = cw.visitMethod(Opcodes.ACC_PUBLIC, "m", "()V", in should_not_require_computation_of_common_superclass() local 117 mv.visitCode(); in should_not_require_computation_of_common_superclass() 118 addCauseOfResizeInstructions(mv); in should_not_require_computation_of_common_superclass() 119 addCauseOfGetCommonSuperClass(mv); in should_not_require_computation_of_common_superclass() [all …]
|
/external/libvpx/vp9/common/ |
D | vp9_mv.h | 24 typedef struct mv { struct 27 } MV; typedef 31 MV as_mv; 39 static INLINE int is_zero_mv(const MV *mv) { in is_zero_mv() argument 40 return *((const uint32_t *)mv) == 0; in is_zero_mv() 43 static INLINE int is_equal_mv(const MV *a, const MV *b) { in is_equal_mv() 47 static INLINE void clamp_mv(MV *mv, int min_col, int max_col, int min_row, in clamp_mv() argument 49 mv->col = clamp(mv->col, min_col, max_col); in clamp_mv() 50 mv->row = clamp(mv->row, min_row, max_row); in clamp_mv()
|
D | vp9_reconinter.c | 26 const MV *src_mv, const struct scale_factors *sf, int w, int h, int ref, in vp9_highbd_build_inter_predictor() 30 const MV mv_q4 = { is_q4 ? src_mv->row : src_mv->row * 2, in vp9_highbd_build_inter_predictor() 32 MV32 mv = vp9_scale_mv(&mv_q4, x, y, sf); in vp9_highbd_build_inter_predictor() local 33 const int subpel_x = mv.col & SUBPEL_MASK; in vp9_highbd_build_inter_predictor() 34 const int subpel_y = mv.row & SUBPEL_MASK; in vp9_highbd_build_inter_predictor() 36 src += (mv.row >> SUBPEL_BITS) * src_stride + (mv.col >> SUBPEL_BITS); in vp9_highbd_build_inter_predictor() 45 int dst_stride, const MV *src_mv, in vp9_build_inter_predictor() 50 const MV mv_q4 = { is_q4 ? src_mv->row : src_mv->row * 2, in vp9_build_inter_predictor() 52 MV32 mv = vp9_scale_mv(&mv_q4, x, y, sf); in vp9_build_inter_predictor() local 53 const int subpel_x = mv.col & SUBPEL_MASK; in vp9_build_inter_predictor() [all …]
|
/external/libdav1d/src/riscv/64/ |
D | ipred16.S | 34 mv t1, a1 47 mv t1, a2 48 mv t2, a0 98 mv t1, a1 117 mv t1, a1 152 mv t3, a2 183 mv t6, a0 # dst 184 mv a0, a2 # topleft 185 mv t4, a1 # stride 186 mv a1, a3 # width [all …]
|
D | ipred.S | 34 mv t1, a1 47 mv t1, a2 48 mv t2, a0 99 mv t1, a1 117 mv t1, a1 152 mv t3, a2 184 mv t6, a0 # dst 185 mv a0, a2 # topleft 186 mv t4, a1 # stride 187 mv a1, a3 # width [all …]
|
/external/libaom/av1/encoder/ |
D | mcomp.h | 15 #include "av1/common/mv.h" 33 MV_COST_ENTROPY, // Use the entropy rate of the mv as the cost 34 MV_COST_L1_LOWRES, // Use the l1 norm of the mv as the cost (<480p) 35 MV_COST_L1_MIDRES, // Use the l1 norm of the mv as the cost (>=480p) 36 MV_COST_L1_HDRES, // Use the l1 norm of the mv as the cost (>=720p) 37 MV_COST_NONE // Use 0 as as cost irrespective of the current mv 41 // The reference mv used to compute the mv cost 42 const MV *ref_mv; 52 int av1_mv_bit_cost(const MV *mv, const MV *ref_mv, const int *mvjcost, 112 int mesh_search_mv_diff_threshold; // mv diff threshold to enable [all …]
|
D | encodemv.h | 21 void av1_encode_mv(AV1_COMP *cpi, aom_writer *w, ThreadData *td, const MV *mv, 22 const MV *ref, nmv_context *mvctx, int usehp); 24 void av1_update_mv_stats(const MV *mv, const MV *ref, nmv_context *mvctx, 36 void av1_encode_dv(aom_writer *w, const MV *mv, const MV *ref, 49 static inline MV_JOINT_TYPE av1_get_mv_joint(const MV *mv) { in av1_get_mv_joint() argument 54 return (!!mv->col) | ((!!mv->row) << 1); in av1_get_mv_joint() 84 if (mbmi->mv[0].as_int == ref_mv_0.as_int || in av1_check_newmv_joint_nonzero() 85 mbmi->mv[1].as_int == ref_mv_1.as_int) { in av1_check_newmv_joint_nonzero() 90 if (mbmi->mv[1].as_int == ref_mv_1.as_int) { in av1_check_newmv_joint_nonzero() 95 if (mbmi->mv[0].as_int == ref_mv_0.as_int) { in av1_check_newmv_joint_nonzero() [all …]
|
/external/toybox/tests/ |
D | mv.test | 5 # "touch two; chmod -w two; mv one two" shouldn't prompt to delete two if 17 "mv file file1 && [ ! -e file -a -f file1 ] && echo yes" \ 24 "mv file dir && [ ! -e file -a -f dir/file ] && echo yes" \ 30 "mv dir dir1 && [ ! -e dir -a -d dir1 ] && echo yes" \ 38 "mv file1 file2 link1 dir1 dir2 && 47 "mv file1 file2 && [ ! -e file1 -a -f file2 ] && stat -c %s file2" \ 54 "mv link1 link2 && [ ! -e link1 -a -L link2 ] && readlink link2" \ 62 "mv link1 link2 && [ ! -e link1 -a -f link2 -a file1 -ef link2 ] && echo yes" \ 70 "mv file1 file2 && [ ! -e file1 -a -f file2 ] && echo yes" \ 78 "mv file1 link1 dir1 && [all …]
|
/external/ow2-asm/asm-commons/src/main/java/org/objectweb/asm/commons/ |
D | InstructionAdapter.java | 681 mv.visitInsn(Opcodes.NOP); in nop() 696 mv.visitInsn(Opcodes.ACONST_NULL); in aconst() 698 mv.visitLdcInsn(value); in aconst() 709 mv.visitInsn(Opcodes.ICONST_0 + intValue); in iconst() 711 mv.visitIntInsn(Opcodes.BIPUSH, intValue); in iconst() 713 mv.visitIntInsn(Opcodes.SIPUSH, intValue); in iconst() 715 mv.visitLdcInsn(intValue); in iconst() 726 mv.visitInsn(Opcodes.LCONST_0 + (int) longValue); in lconst() 728 mv.visitLdcInsn(longValue); in lconst() 740 mv.visitInsn(Opcodes.FCONST_0 + (int) floatValue); in fconst() [all …]
|
/external/jazzer-api/src/main/java/com/code_intelligence/jazzer/instrumentor/ |
D | HookMethodVisitor.kt | 115 mv.visitMethodInsn(opcode, owner, methodName, methodDescriptor, isInterface) in visitMethodInsn() 153 mv.visitMethodInsn(opcode, owner, methodName, methodDescriptor, isInterface) in handleMethodInsn() 162 val preCallFrame = (mv as? AnalyzerAdapter)?.let { storeFrame(it) } in handleMethodInsn() 164 mv.visitFieldInsn( in handleMethodInsn() 170 mv.visitJumpInsn(Opcodes.IFNE, applyHooksLabel) in handleMethodInsn() 171 mv.visitMethodInsn(opcode, owner, methodName, methodDescriptor, isInterface) in handleMethodInsn() 172 postCallFrame = (mv as? AnalyzerAdapter)?.let { storeFrame(it) } in handleMethodInsn() 173 mv.visitJumpInsn(Opcodes.GOTO, skipHooksLabel) in handleMethodInsn() 176 mv.visitLabel(applyHooksLabel) in handleMethodInsn() 178 mv.visitFrame( in handleMethodInsn() [all …]
|
/external/libgav1/src/ |
D | motion_vector.cc | 45 for (auto& mv : mvs->mv) { in LowerMvPrecision() local 47 // const int value = (std::abs(static_cast<int>(mv)) + 3) & ~7; in LowerMvPrecision() 48 // const int sign = mv >> 15; in LowerMvPrecision() 49 // mv = ApplySign(value, sign); in LowerMvPrecision() 50 mv = (mv + 3 - (mv >> 15)) & ~7; in LowerMvPrecision() 53 for (auto& mv : mvs->mv) { in LowerMvPrecision() local 55 // if ((mv & 1) != 0) mv += (mv > 0) ? -1 : 1; in LowerMvPrecision() 56 mv = (mv - (mv >> 15)) & ~1; in LowerMvPrecision() 63 MotionVector* const mv) { in SetupGlobalMv() argument 70 mv->mv32 = 0; in SetupGlobalMv() [all …]
|