Home
last modified time | relevance | path

Searched refs:mb (Results 1 – 25 of 229) sorted by relevance

12345678910

/external/mesa3d/src/gallium/auxiliary/vl/
Dvl_mpeg12_bitstream.c662 motion_vector_frame(struct vl_mpg12_bs *bs, int s, struct pipe_mpeg12_macroblock *mb) in motion_vector_frame() argument
664 int dmv = mb->macroblock_modes.bits.frame_motion_type == PIPE_MPEG12_MO_TYPE_DUAL_PRIME; in motion_vector_frame()
667 if (mb->macroblock_modes.bits.frame_motion_type == PIPE_MPEG12_MO_TYPE_FIELD) { in motion_vector_frame()
668 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << s; in motion_vector_frame()
670 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame()
671 mb->PMV[0][s][1] = wrap(DIV2DOWN(mb->PMV[0][s][1]) + delta[1], bs->desc->f_code[s][1]) * 2; in motion_vector_frame()
673 mb->motion_vertical_field_select |= vl_vlc_get_uimsbf(&bs->vlc, 1) << (s + 2); in motion_vector_frame()
675 mb->PMV[1][s][0] = wrap(mb->PMV[1][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame()
676 mb->PMV[1][s][1] = wrap(DIV2DOWN(mb->PMV[1][s][1]) + delta[1], bs->desc->f_code[s][1]) * 2; in motion_vector_frame()
680 mb->PMV[0][s][0] = wrap(mb->PMV[0][s][0] + delta[0], bs->desc->f_code[s][0]); in motion_vector_frame()
[all …]
Dvl_mpeg12_decoder.c242 MacroBlockTypeToPipeWeights(const struct pipe_mpeg12_macroblock *mb, unsigned weights[2]) in MacroBlockTypeToPipeWeights() argument
244 assert(mb); in MacroBlockTypeToPipeWeights()
246 …switch (mb->macroblock_type & (PIPE_MPEG12_MB_TYPE_MOTION_FORWARD | PIPE_MPEG12_MB_TYPE_MOTION_BAC… in MacroBlockTypeToPipeWeights()
263 if (mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA) { in MacroBlockTypeToPipeWeights()
277 MotionVectorToPipe(const struct pipe_mpeg12_macroblock *mb, unsigned vector, in MotionVectorToPipe() argument
282 assert(mb); in MotionVectorToPipe()
284 …if (mb->macroblock_type & (PIPE_MPEG12_MB_TYPE_MOTION_FORWARD | PIPE_MPEG12_MB_TYPE_MOTION_BACKWAR… in MotionVectorToPipe()
285 switch (mb->macroblock_modes.bits.frame_motion_type) { in MotionVectorToPipe()
287 mv.top.x = mb->PMV[0][vector][0]; in MotionVectorToPipe()
288 mv.top.y = mb->PMV[0][vector][1]; in MotionVectorToPipe()
[all …]
/external/valgrind/VEX/test/
Dmmxtest.c508 mmx_t mb; in main() local
524 mkRand(&mb); \ in main()
525 ma0 = ma; mb0 = mb; \ in main()
528 _name, ma0.q, mb0.q, mb.q); \ in main()
534 do_test("paddd", paddd(ma,mb)); in main()
535 do_test("paddw", paddw(ma,mb)); in main()
536 do_test("paddb", paddb(ma,mb)); in main()
538 do_test("paddsw", paddsw(ma,mb)); in main()
539 do_test("paddsb", paddsb(ma,mb)); in main()
541 do_test("paddusw", paddusw(ma,mb)); in main()
[all …]
/external/icu/icu4c/source/data/locales/
Dnnh.txt94 "mbɔ́ɔntè mvfò lyɛ̌ʼ",
96 "mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ",
103 "mbɔ́ɔntè mvfò lyɛ̌ʼ",
105 "mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ",
112 "mbɔ́ɔntè mvfò lyɛ̌ʼ",
114 "mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ",
123 "mbɔ́ɔntè mvfò lyɛ̌ʼ",
125 "mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ",
132 "mbɔ́ɔntè mvfò lyɛ̌ʼ",
134 "mbɔ́ɔntè tsetsɛ̀ɛ lyɛ̌ʼ",
[all …]
/external/icu/icu4c/source/tools/toolutil/
Ducm.c273 UCMapping *mb, *mbLimit; in ucm_moveMappings() local
276 mb=base->mappings; in ucm_moveMappings()
277 mbLimit=mb+base->mappingsLength; in ucm_moveMappings()
279 while(mb<mbLimit) { in ucm_moveMappings()
280 flag=mb->moveFlag; in ucm_moveMappings()
283 mb->moveFlag=0; in ucm_moveMappings()
287 ucm_addMapping(ext, mb, UCM_GET_CODE_POINTS(base, mb), UCM_GET_BYTES(base, mb)); in ucm_moveMappings()
291 if(mb<(mbLimit-1)) { in ucm_moveMappings()
292 uprv_memcpy(mb, mbLimit-1, sizeof(UCMapping)); in ucm_moveMappings()
298 ++mb; in ucm_moveMappings()
[all …]
/external/mesa3d/src/gallium/drivers/nouveau/
Dnouveau_video.c104 nouveau_vpe_mb_dct_blocks(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb) in nouveau_vpe_mb_dct_blocks() argument
107 unsigned cbp = mb->coded_block_pattern; in nouveau_vpe_mb_dct_blocks()
108 short *db = mb->blocks; in nouveau_vpe_mb_dct_blocks()
133 } else if (mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA) { in nouveau_vpe_mb_dct_blocks()
140 nouveau_vpe_mb_data_blocks(struct nouveau_decoder *dec, const struct pipe_mpeg12_macroblock *mb) in nouveau_vpe_mb_data_blocks() argument
143 unsigned cbp = mb->coded_block_pattern; in nouveau_vpe_mb_data_blocks()
144 short *db = mb->blocks; in nouveau_vpe_mb_data_blocks()
150 } else if (mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA) { in nouveau_vpe_mb_data_blocks()
159 const struct pipe_mpeg12_macroblock *mb, in nouveau_vpe_mb_dct_header() argument
163 bool intra = mb->macroblock_type & PIPE_MPEG12_MB_TYPE_INTRA; in nouveau_vpe_mb_dct_header()
[all …]
/external/opencv/cv/src/
Dcvmatchcontours.cpp63 double ma[7], mb[7]; in cvMatchShapes() local
97 mb[0] = huMoments.hu1; in cvMatchShapes()
98 mb[1] = huMoments.hu2; in cvMatchShapes()
99 mb[2] = huMoments.hu3; in cvMatchShapes()
100 mb[3] = huMoments.hu4; in cvMatchShapes()
101 mb[4] = huMoments.hu5; in cvMatchShapes()
102 mb[5] = huMoments.hu6; in cvMatchShapes()
103 mb[6] = huMoments.hu7; in cvMatchShapes()
112 double amb = fabs( mb[i] ); in cvMatchShapes()
120 if( mb[i] > 0 ) in cvMatchShapes()
[all …]
/external/linux-tools-perf/src/tools/perf/ui/browsers/
Dmap.c24 struct map_browser *mb = container_of(self, struct map_browser, b); in map_browser__write() local
30 mb->addrlen, sym->start, mb->addrlen, sym->end, in map_browser__write()
33 width = self->width - ((mb->addrlen * 2) + 4); in map_browser__write()
103 struct map_browser mb = { in map__browse() local
116 for (nd = rb_first(mb.b.entries); nd; nd = rb_next(nd)) { in map__browse()
123 *idx = mb.b.nr_entries; in map__browse()
125 ++mb.b.nr_entries; in map__browse()
128 mb.addrlen = snprintf(tmp, sizeof(tmp), "%" PRIx64, maxaddr); in map__browse()
129 return map_browser__run(&mb); in map__browse()
/external/llvm/test/Bindings/OCaml/
Dbitreader.ml27 let mb = Llvm.MemoryBuffer.of_file fn in
29 let m = Llvm_bitreader.parse_bitcode context mb in
32 Llvm.MemoryBuffer.dispose mb;
39 let mb = Llvm.MemoryBuffer.of_file (fn ^ ".bogus") in
40 Llvm.MemoryBuffer.dispose mb;
48 let mb = Llvm.MemoryBuffer.of_file fn in
50 Llvm_bitreader.get_module context mb
52 Llvm.MemoryBuffer.dispose mb;
68 let mb = Llvm.MemoryBuffer.of_file fn in
70 Llvm_bitreader.get_module context mb
[all …]
/external/libcxx/test/std/localization/locale.categories/category.monetary/locale.moneypunct/
Dmoney_base.pass.cpp24 std::money_base mb; in main() local
25 assert(mb.none == 0); in main()
26 assert(mb.space == 1); in main()
27 assert(mb.symbol == 2); in main()
28 assert(mb.sign == 3); in main()
29 assert(mb.value == 4); in main()
/external/eigen/bench/
DbenchBlasGemm.cpp30 void bench_eigengemm(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops);
102 MyMatrix ma(M,K), mb(K,N), mc(M,N); in main() local
104 mb = MyMatrix::Random(K,N); in main()
123 …M(CblasRowMajor, CblasNoTrans, CblasNoTrans, M, N, K, alpha, ma.data(), K, mb.data(), N, beta, mc.… in main()
125 …M(CblasColMajor, CblasNoTrans, CblasNoTrans, M, N, K, alpha, ma.data(), M, mb.data(), K, beta, mc.… in main()
137 mb = MyMatrix::Random(K,N); in main()
147 bench_eigengemm(mc, ma, mb, nbloops); in main()
165 void bench_eigengemm(MyMatrix& mc, const MyMatrix& ma, const MyMatrix& mb, int nbloops) in bench_eigengemm() argument
168 mc.noalias() += ma * mb; in bench_eigengemm()
176 MyMatrix ma(M,K), mb(K,N), mc(M,N), maT(K,M), mbT(N,K), meigen(M,N), mref(M,N); in check_product() local
[all …]
/external/libvpx/libvpx/vp8/encoder/x86/
Dvp8_enc_stubs_sse2.c18 int vp8_mbblock_error_xmm(MACROBLOCK *mb, int dc) in vp8_mbblock_error_xmm() argument
20 short *coeff_ptr = mb->block[0].coeff; in vp8_mbblock_error_xmm()
21 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; in vp8_mbblock_error_xmm()
26 int vp8_mbuverror_xmm(MACROBLOCK *mb) in vp8_mbuverror_xmm() argument
28 short *s_ptr = &mb->coeff[256]; in vp8_mbuverror_xmm()
29 short *d_ptr = &mb->e_mbd.dqcoeff[256]; in vp8_mbuverror_xmm()
Dvp8_enc_stubs_mmx.c53 int vp8_mbblock_error_mmx(MACROBLOCK *mb, int dc) in vp8_mbblock_error_mmx() argument
55 short *coeff_ptr = mb->block[0].coeff; in vp8_mbblock_error_mmx()
56 short *dcoef_ptr = mb->e_mbd.block[0].dqcoeff; in vp8_mbblock_error_mmx()
61 int vp8_mbuverror_mmx(MACROBLOCK *mb) in vp8_mbuverror_mmx() argument
63 short *s_ptr = &mb->coeff[256]; in vp8_mbuverror_mmx()
64 short *d_ptr = &mb->e_mbd.dqcoeff[256]; in vp8_mbuverror_mmx()
/external/webp/src/enc/
Danalysis.c40 const VP8MBInfo* const mb = &enc->mb_info_[x + w * y]; in SmoothSegmentMap() local
41 int majority_seg = mb->segment_; in SmoothSegmentMap()
43 cnt[mb[-w - 1].segment_]++; // top-left in SmoothSegmentMap()
44 cnt[mb[-w + 0].segment_]++; // top in SmoothSegmentMap()
45 cnt[mb[-w + 1].segment_]++; // top-right in SmoothSegmentMap()
46 cnt[mb[ - 1].segment_]++; // left in SmoothSegmentMap()
47 cnt[mb[ + 1].segment_]++; // right in SmoothSegmentMap()
48 cnt[mb[ w - 1].segment_]++; // bottom-left in SmoothSegmentMap()
49 cnt[mb[ w + 0].segment_]++; // bottom in SmoothSegmentMap()
50 cnt[mb[ w + 1].segment_]++; // bottom-right in SmoothSegmentMap()
[all …]
/external/mesa3d/src/gallium/state_trackers/xvmc/
Dsurface.c50 struct pipe_mpeg12_macroblock *mb, in MacroBlocksToPipe() argument
60 mb->base.codec = PIPE_VIDEO_CODEC_MPEG12; in MacroBlocksToPipe()
61 mb->x = xvmc_mb->x; in MacroBlocksToPipe()
62 mb->y = xvmc_mb->y; in MacroBlocksToPipe()
63 mb->macroblock_type = xvmc_mb->macroblock_type; in MacroBlocksToPipe()
67 mb->macroblock_modes.bits.frame_motion_type = xvmc_mb->motion_type; in MacroBlocksToPipe()
68 mb->macroblock_modes.bits.field_motion_type = 0; in MacroBlocksToPipe()
73 mb->macroblock_modes.bits.frame_motion_type = 0; in MacroBlocksToPipe()
74 mb->macroblock_modes.bits.field_motion_type = xvmc_mb->motion_type; in MacroBlocksToPipe()
81 mb->macroblock_modes.bits.dct_type = xvmc_mb->dct_type; in MacroBlocksToPipe()
[all …]
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/text/
DCharsetRecog_sbcs.java121 byte mb = byteMap[b]; in parseCharacters()
124 if (mb != 0) { in parseCharacters()
125 if (!(mb == spaceChar && ignoreSpace)) { in parseCharacters()
126 addByte(mb); in parseCharacters()
129 ignoreSpace = (mb == spaceChar); in parseCharacters()
237 byte mb = byteMap[b]; in parseCharacters()
240 if (mb != 0) { in parseCharacters()
241 if (!(mb == spaceChar && ignoreSpace)) { in parseCharacters()
242 addByte(mb); in parseCharacters()
245 ignoreSpace = (mb == spaceChar); in parseCharacters()
[all …]
/external/libvpx/libvpx/vp8/encoder/
Dethreading.c66 MACROBLOCK *x = &mbri->mb; in thread_encoding_proc()
463 MACROBLOCK *mb = & mbr_ei[i].mb; in vp8cx_init_mbrthread_data() local
464 MACROBLOCKD *mbd = &mb->e_mbd; in vp8cx_init_mbrthread_data()
470 mb->gf_active_ptr = x->gf_active_ptr; in vp8cx_init_mbrthread_data()
475 mb->partition_info = x->pi + x->e_mbd.mode_info_stride * (i + 1); in vp8cx_init_mbrthread_data()
482 mb->src = * cpi->Source; in vp8cx_init_mbrthread_data()
486 mb->src.y_buffer += 16 * x->src.y_stride * (i + 1); in vp8cx_init_mbrthread_data()
487 mb->src.u_buffer += 8 * x->src.uv_stride * (i + 1); in vp8cx_init_mbrthread_data()
488 mb->src.v_buffer += 8 * x->src.uv_stride * (i + 1); in vp8cx_init_mbrthread_data()
490 vp8_build_block_offsets(mb); in vp8cx_init_mbrthread_data()
[all …]
Donyx_if.c245 lc->zbin_over_quant = cpi->mb.zbin_over_quant; in save_layer_context()
253 cpi->mb.count_mb_ref_frame_usage, in save_layer_context()
254 sizeof(cpi->mb.count_mb_ref_frame_usage)); in save_layer_context()
283 cpi->mb.zbin_over_quant = lc->zbin_over_quant; in restore_layer_context()
290 memcpy (cpi->mb.count_mb_ref_frame_usage, in restore_layer_context()
292 sizeof(cpi->mb.count_mb_ref_frame_usage)); in restore_layer_context()
417 if ( cpi->mb.e_mbd.segmentation_enabled ) in setup_features()
419 cpi->mb.e_mbd.update_mb_segmentation_map = 1; in setup_features()
420 cpi->mb.e_mbd.update_mb_segmentation_data = 1; in setup_features()
424 cpi->mb.e_mbd.update_mb_segmentation_map = 0; in setup_features()
[all …]
Dpickinter.c43 int vp8_skip_fractional_mv_step(MACROBLOCK *mb, BLOCK *b, BLOCKD *d, in vp8_skip_fractional_mv_step() argument
64 int vp8_get_inter_mbpred_error(MACROBLOCK *mb, in vp8_get_inter_mbpred_error() argument
70 BLOCK *b = &mb->block[0]; in vp8_get_inter_mbpred_error()
71 BLOCKD *d = &mb->e_mbd.block[0]; in vp8_get_inter_mbpred_error()
74 int pre_stride = mb->e_mbd.pre.y_stride; in vp8_get_inter_mbpred_error()
75 unsigned char *in_what = mb->e_mbd.pre.y_buffer + d->offset ; in vp8_get_inter_mbpred_error()
182 MACROBLOCK *mb, in pick_intra4x4mby_modes() argument
187 MACROBLOCKD *const xd = &mb->e_mbd; in pick_intra4x4mby_modes()
189 int cost = mb->mbmode_cost [xd->frame_type] [B_PRED]; in pick_intra4x4mby_modes()
196 bmode_costs = mb->inter_bmode_costs; in pick_intra4x4mby_modes()
[all …]
Drdopt.c221 cpi->mb.sadperbit16 = sad_per_bit16lut[QIndex]; in vp8cx_initialize_me_consts()
222 cpi->mb.sadperbit4 = sad_per_bit4lut[QIndex]; in vp8cx_initialize_me_consts()
240 if (cpi->mb.zbin_over_quant > 0) in vp8_initialize_rd_consts()
248 oq_factor = 1.0 + ((double)0.0015625 * cpi->mb.zbin_over_quant); in vp8_initialize_rd_consts()
262 cpi->mb.errorperbit = (cpi->RDMULT / 110); in vp8_initialize_rd_consts()
263 cpi->mb.errorperbit += (cpi->mb.errorperbit==0); in vp8_initialize_rd_consts()
325 cpi->mb.token_costs, in vp8_initialize_rd_consts()
422 int vp8_mbblock_error_c(MACROBLOCK *mb, int dc) in vp8_mbblock_error_c() argument
431 be = &mb->block[i]; in vp8_mbblock_error_c()
432 bd = &mb->e_mbd.block[i]; in vp8_mbblock_error_c()
[all …]
/external/icu/icu4c/source/i18n/
Dcsrsbcs.cpp109 uint8_t mb = charMap[b]; in parseCharacters() local
112 if (mb != 0) { in parseCharacters()
113 if (!(mb == 0x20 && ignoreSpace)) { in parseCharacters()
114 addByte(mb); in parseCharacters()
117 ignoreSpace = (mb == 0x20); in parseCharacters()
215 uint8_t mb = charMap[b]; in parseCharacters() local
218 if (mb != 0) { in parseCharacters()
219 if (!(mb == 0x20 && ignoreSpace)) { in parseCharacters()
220 addByte(mb); in parseCharacters()
222 ignoreSpace = (mb == 0x20); in parseCharacters()
[all …]
/external/libvpx/libvpx/vp8/decoder/
Ddecodemv.c350 const int mis = pbi->mb.mode_info_stride; in read_mb_modes_mv()
460 mb_to_top_edge = pbi->mb.mb_to_top_edge; in read_mb_modes_mv()
461 mb_to_bottom_edge = pbi->mb.mb_to_bottom_edge; in read_mb_modes_mv()
464 mb_to_right_edge = pbi->mb.mb_to_right_edge; in read_mb_modes_mv()
466 mb_to_left_edge = pbi->mb.mb_to_left_edge; in read_mb_modes_mv()
473 vp8_clamp_mv2(&near_mvs[near_index], &pbi->mb); in read_mb_modes_mv()
516 vp8_clamp_mv2(&mbmi->mv, &pbi->mb); in read_mb_modes_mv()
523 vp8_clamp_mv2(&mbmi->mv, &pbi->mb); in read_mb_modes_mv()
598 if (pbi->mb.update_mb_segmentation_map) in decode_mb_mode_mvs()
599 read_mb_features(&pbi->mbc[8], &mi->mbmi, &pbi->mb); in decode_mb_mode_mvs()
[all …]
Derror_concealment.c495 static void interpolate_mvs(MACROBLOCKD *mb, in interpolate_mvs() argument
500 MODE_INFO * const mi = mb->mode_info_context; in interpolate_mvs()
514 int mb_to_top_edge = mb->mb_to_top_edge + ((row*4)<<3); in interpolate_mvs()
515 int mb_to_bottom_edge = mb->mb_to_bottom_edge - ((row*4)<<3); in interpolate_mvs()
518 int mb_to_left_edge = mb->mb_to_left_edge + ((col*4)<<3); in interpolate_mvs()
519 int mb_to_right_edge = mb->mb_to_right_edge - ((col*4)<<3); in interpolate_mvs()
558 void vp8_interpolate_motion(MACROBLOCKD *mb, in vp8_interpolate_motion() argument
572 find_neighboring_blocks(mb->mode_info_context, in vp8_interpolate_motion()
576 mb->mode_info_stride); in vp8_interpolate_motion()
579 interpolate_mvs(mb, neighbors, LAST_FRAME); in vp8_interpolate_motion()
[all …]
/external/libvpx/libvpx/test/
Dset_roi.cc48 cpi.mb.e_mbd.mb_segement_abs_delta = SEGMENT_DELTADATA; in TEST()
50 cpi.mb.e_mbd.segmentation_enabled = 0; in TEST()
51 cpi.mb.e_mbd.update_mb_segmentation_map = 0; in TEST()
52 cpi.mb.e_mbd.update_mb_segmentation_data = 0; in TEST()
114 EXPECT_EQ(1, cpi.mb.e_mbd.segmentation_enabled) in TEST()
116 EXPECT_EQ(1, cpi.mb.e_mbd.update_mb_segmentation_map) in TEST()
118 EXPECT_EQ(1, cpi.mb.e_mbd.update_mb_segmentation_data) in TEST()
/external/mesa3d/src/gallium/state_trackers/xvmc/tests/
Dtest_rendering.c148 XvMCMacroBlock *mb; in main() local
188 mb = mb_array.macro_blocks; in main()
194 mb->x = mbx; in main()
195 mb->y = mby; in main()
196 mb->macroblock_type = XVMC_MB_TYPE_INTRA; in main()
199 mb->dct_type = XVMC_DCT_TYPE_FRAME; in main()
208 mb->index = (mby * INPUT_WIDTH_IN_MACROBLOCKS + mbx) * BLOCKS_PER_MACROBLOCK; in main()
209 mb->coded_block_pattern = 0x3F; in main()
211 mb++; in main()

12345678910