Home
last modified time | relevance | path

Searched +full:diff +full:- +full:tree (Results 1 – 25 of 395) sorted by relevance

12345678910>>...16

/external/clang/tools/clang-format/
Dgit-clang-format3 #===- git-clang-format - ClangFormat Git Integration ---------*- python -*--===#
10 #===------------------------------------------------------------------------===#
13 clang-format git integration
16 This file provides a clang-format integration for git. Put it somewhere in your
17 path and ensure that it is executable. Then, "git clang-format" will invoke
18 clang-format on the changes in current files or a specific commit.
21 git clang-format -h
35 usage = 'git clang-format [OPTIONS] [<commit>] [<commit>] [--] [<file>...]'
38 If zero or one commits are given, run clang-format on all lines that differ
42 If two commits are given (requires --diff), run clang-format on all lines in the
[all …]
/external/python/cpython2/Lib/lib2to3/tests/
Dpytree_idempotency.py29 tree = dr.parse_file(fn, debug=True)
30 if not diff(fn, tree):
44 fn = fn[:-1]
48 tree = dr.parse_file(fn, debug=True)
49 if diff(fn, tree):
65 tree = dr.parse_file(fn, debug=True)
69 if diff(fn, tree):
80 def diff(fn, tree): argument
83 f.write(str(tree))
87 return os.system("diff -u %s @" % fn)
/external/webp/src/utils/
Drandom_utils.h3 // Use of this source code is governed by a BSD-style license
5 // tree. An additional intellectual property rights grant can be found
7 // be found in the AUTHORS file in the root of the source tree.
8 // -----------------------------------------------------------------------------
10 // Pseudo-random utilities
24 #define VP8_RANDOM_DITHER_FIX 8 // fixed-point precision for dithering
36 // Returns a centered pseudo-random number with 'num_bits' amplitude.
37 // (uses D.Knuth's Difference-based random generator).
38 // 'amp' is in VP8_RANDOM_DITHER_FIX fixed-point precision.
41 int diff; in VP8RandomBits2() local
[all …]
/external/libvpx/libvpx/vpx_dsp/arm/
Dsubtract_neon.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
16 void vpx_subtract_block_neon(int rows, int cols, int16_t *diff, in vpx_subtract_block_neon() argument
37 vst1q_s16(&diff[c + 0], vreinterpretq_s16_u16(v_diff_lo_00)); in vpx_subtract_block_neon()
38 vst1q_s16(&diff[c + 8], vreinterpretq_s16_u16(v_diff_hi_00)); in vpx_subtract_block_neon()
39 vst1q_s16(&diff[c + 16], vreinterpretq_s16_u16(v_diff_lo_16)); in vpx_subtract_block_neon()
40 vst1q_s16(&diff[c + 24], vreinterpretq_s16_u16(v_diff_hi_16)); in vpx_subtract_block_neon()
42 diff += diff_stride; in vpx_subtract_block_neon()
54 vst1q_s16(&diff[0], vreinterpretq_s16_u16(v_diff_lo)); in vpx_subtract_block_neon()
[all …]
/external/libvpx/libvpx/vpx_dsp/
Dsubtract.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
19 void vpx_subtract_block_c(int rows, int cols, int16_t *diff, in vpx_subtract_block_c() argument
26 for (c = 0; c < cols; c++) diff[c] = src[c] - pred[c]; in vpx_subtract_block_c()
28 diff += diff_stride; in vpx_subtract_block_c()
35 void vpx_highbd_subtract_block_c(int rows, int cols, int16_t *diff, in vpx_highbd_subtract_block_c() argument
46 diff[c] = src[c] - pred[c]; in vpx_highbd_subtract_block_c()
49 diff += diff_stride; in vpx_highbd_subtract_block_c()
Davg.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
35 // src_diff: first pass, 9 bit, dynamic range [-255, 255]
36 // second pass, 12 bit, dynamic range [-2040, 2040]
40 int16_t b1 = src_diff[0 * src_stride] - src_diff[1 * src_stride]; in hadamard_col8()
42 int16_t b3 = src_diff[2 * src_stride] - src_diff[3 * src_stride]; in hadamard_col8()
44 int16_t b5 = src_diff[4 * src_stride] - src_diff[5 * src_stride]; in hadamard_col8()
46 int16_t b7 = src_diff[6 * src_stride] - src_diff[7 * src_stride]; in hadamard_col8()
50 int16_t c2 = b0 - b2; in hadamard_col8()
[all …]
/external/libvpx/libvpx/tools/
Dftfy.sh10 options are given, then the modified files are left in the working tree.
13 -h, --help Shows this message
14 -n, --dry-run Shows a diff of the changes to be made.
15 --amend Squashes the changes into the commit at HEAD
17 --commit Creates a new commit containing only the whitespace changes
18 --msg-only Reformat the commit message only, ignore the patch itself.
21 rm -f ${CLEAN_FILES}
35 clang-format -i --style=file "$f"
43 [ $INTERSECT_RESULT -ne 0 ] && patch -p1 < "$1"
48 LAST_CHANGEID=$(git show | awk '/Change-Id:/{print $2}')
[all …]
Dlint-hunks.py4 ## Use of this source code is governed by a BSD-style license
6 ## tree. An additional intellectual property rights grant can be found
8 ## be found in the AUTHORS file in the root of the source tree.
10 """Performs style checking on each diff hunk."""
17 import diff
23 TOPLEVEL_CMD = ["git", "rev-parse", "--show-toplevel"]
24 DIFF_CMD = ["git", "diff"]
25 DIFF_INDEX_CMD = ["git", "diff-index", "-u", "HEAD", "--"]
27 CPPLINT_FILTERS = ["-readability/casting"]
71 if o in ("-h", "--help"):
[all …]
Dintersect-diffs.py4 ## Use of this source code is governed by a BSD-style license
6 ## tree. An additional intellectual property rights grant can be found
8 ## be found in the AUTHORS file in the root of the source tree.
12 Given two diffs, A and B, it finds all hunks in B that had non-context lines
21 import diff
25 """Re-serialize a list of DiffHunks."""
53 old_hunks = [x for x in diff.ParseDiffHunks(open(sys.argv[1], "r"))]
54 new_hunks = [x for x in diff.ParseDiffHunks(open(sys.argv[2], "r"))]
57 # Join the right hand side of the older diff with the left hand side of the
58 # newer diff.
[all …]
Ddiff.py4 ## Use of this source code is governed by a BSD-style license
6 ## tree. An additional intellectual property rights grant can be found
8 ## be found in the AUTHORS file in the root of the source tree.
10 """Classes for representing diff pieces."""
18 """A container for one half of a diff."""
38 return item >= self.offset and item <= self.offset + self.length - 1
42 """A container for one diff hunk, consisting of two DiffLines."""
52 if line[0] == "-":
60 # Ignore newline messages from git diff.
63 assert False, ("Unrecognized character at start of diff line "
[all …]
/external/libvpx/libvpx/vpx_ports/
Dvpx_timer.h4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
40 (result)->tv_sec = (a)->tv_sec - (b)->tv_sec; \
41 (result)->tv_usec = (a)->tv_usec - (b)->tv_usec; \
42 if ((result)->tv_usec < 0) { \
43 --(result)->tv_sec; \
44 (result)->tv_usec += 1000000; \
60 QueryPerformanceCounter(&t->begin); in vpx_usec_timer_start()
62 gettimeofday(&t->begin, NULL); in vpx_usec_timer_start()
[all …]
/external/webrtc/webrtc/common_audio/signal_processing/
Dresample_by_2.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
27 // Multiply two 32-bit values and accumulate to another input value.
28 // Return: state + ((diff * tbl_value) >> 16)
31 int32_t diff, in MUL_ACCUM_1() argument
34 __asm __volatile ("smlawb %0, %1, %2, %3": "=r"(result): "r"(diff), in MUL_ACCUM_1()
39 // Multiply two 32-bit values and accumulate to another input value.
40 // Return: Return: state + (((diff << 1) * tbl_value) >> 32)
47 int32_t diff, in MUL_ACCUM_2() argument
[all …]
Dsplitting_filter.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
20 // Maximum number of samples in a low/high-band frame.
36 // - in_data : Input data sequence (Q10)
37 // - data_length : Length of data sequence (>2)
38 // - filter_coefficients : Filter coefficients (length 3, Q16)
41 // - filter_state : Filter state (length 6, Q10).
44 // - out_data : Output data sequence (Q10), length equal to
55 // a_3 + q^-1 a_2 + q^-1 a_1 + q^-1 in WebRtcSpl_AllPassQMF()
[all …]
Dresample_by_2_mips.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
26 // Multiply a 32-bit value with a 16-bit value and accumulate to another input:
62 for (i = len1; i > 0; i--) { in WebRtcSpl_DownsampleBy2()
147 // limit amplitude to prevent wrap-around, and write to output array in WebRtcSpl_DownsampleBy2()
151 int32_t tmp1, tmp2, diff; in WebRtcSpl_DownsampleBy2() local
154 for (i = len1; i > 0; i--) { in WebRtcSpl_DownsampleBy2()
157 diff = in32 - state1; in WebRtcSpl_DownsampleBy2()
158 tmp1 = MUL_ACCUM_1(kResampleAllpass2[0], diff, state0); in WebRtcSpl_DownsampleBy2()
[all …]
/external/libvpx/libvpx/vp9/encoder/arm/neon/
Dvp9_error_neon.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
26 const int16x8_t diff = vsubq_s16(c, d); in vp9_block_error_fp_neon() local
27 const int16x4_t diff_lo = vget_low_s16(diff); in vp9_block_error_fp_neon()
28 const int16x4_t diff_hi = vget_high_s16(diff); in vp9_block_error_fp_neon()
29 // diff is 15-bits, the squares 30, so we can store 2 in 31-bits before in vp9_block_error_fp_neon()
30 // accumulating them in 64-bits. in vp9_block_error_fp_neon()
37 block_size -= 8; in vp9_block_error_fp_neon()
/external/libxml2/doc/examples/
Dexamples.xml6 <test>io1 &gt; io1.tmp &amp;&amp; diff io1.tmp $(srcdir)/io1.res</test>
14 <include>&lt;libxml/tree.h&gt;</include>
17 <function line='143' file='tree' name='xmlDocDump'/>
19 <function line='149' file='tree' name='xmlFreeDoc'/>
25 <typedef line='105' file='tree' name='xmlDocPtr'/>
32 <test>io2 &gt; io2.tmp &amp;&amp; diff io2.tmp $(srcdir)/io2.res</test>
40 <function line='29' file='tree' name='xmlNodeSetContent'/>
41 <function line='36' file='tree' name='xmlDocDumpFormatMemory'/>
43 <function line='30' file='tree' name='xmlDocSetRootElement'/>
44 <typedef line='20' file='tree' name='xmlDocPtr'/>
[all …]
/external/webrtc/webrtc/modules/video_processing/util/
Ddenoiser_filter_c.cc4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
51 const int diff = a[j] - b[j]; in Variance16x8() local
52 sum += diff; in Variance16x8()
53 *sse += diff * diff; in Variance16x8()
59 return *sse - ((static_cast<int64_t>(sum) * sum) >> 7); in Variance16x8()
88 int diff = 0; in MbDenoise() local
92 diff = mc_running_avg_y[c] - sig[c]; in MbDenoise()
93 absdiff = abs(diff); in MbDenoise()
[all …]
/external/libvpx/libvpx/test/
Dvp9_subtract_test.cc4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
44 int16_t *diff = reinterpret_cast<int16_t *>( in TEST_P() local
45 vpx_memalign(16, sizeof(*diff) * block_width * block_height * 2)); in TEST_P()
59 GetParam()(block_height, block_width, diff, block_width, src, block_width, in TEST_P()
64 EXPECT_EQ(diff[r * block_width + c], in TEST_P()
65 (src[r * block_width + c] - pred[r * block_width + c])) in TEST_P()
70 GetParam()(block_height, block_width, diff, block_width * 2, src, in TEST_P()
76 diff[r * block_width * 2 + c], in TEST_P()
[all …]
/external/libvpx/libvpx/vpx_dsp/mips/
Dsubtract_msa.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
43 for (loop_cnt = 4; loop_cnt--;) { in sub_blk_8x8_msa()
60 int16_t *diff, int32_t diff_stride) { in sub_blk_16x16_msa() argument
67 for (count = 2; count--;) { in sub_blk_16x16_msa()
77 ST_SH2(diff0, diff1, diff, 8); in sub_blk_16x16_msa()
78 diff += diff_stride; in sub_blk_16x16_msa()
82 ST_SH2(diff0, diff1, diff, 8); in sub_blk_16x16_msa()
83 diff += diff_stride; in sub_blk_16x16_msa()
[all …]
/external/libvpx/libvpx/third_party/libyuv/source/
Dcompare_common.cc4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
24 int diff = src_a[i] - src_b[i]; in SumSquareError_C() local
25 sse += (uint32)(diff * diff); in SumSquareError_C()
/external/libyuv/files/source/
Dcompare_common.cc4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
24 int diff = src_a[i] - src_b[i]; in SumSquareError_C() local
25 sse += (uint32)(diff * diff); in SumSquareError_C()
/external/webrtc/webrtc/modules/audio_coding/codecs/ilbc/
Dnearest_neighbor.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
13 iLBC Speech Coder ANSI-C Source Code
26 size_t min_diff = (size_t)-1; in WebRtcIlbcfix_NearestNeighbor()
28 const size_t diff = in WebRtcIlbcfix_NearestNeighbor() local
29 (array[i] < value) ? (value - array[i]) : (array[i] - value); in WebRtcIlbcfix_NearestNeighbor()
30 if (diff < min_diff) { in WebRtcIlbcfix_NearestNeighbor()
32 min_diff = diff; in WebRtcIlbcfix_NearestNeighbor()
Dlsp_to_lsf.c4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
13 iLBC Speech Coder ANSI-C Source Code
22 /*----------------------------------------------------------------*
24 *---------------------------------------------------------------*/
27 int16_t *lsp, /* (i) lsp vector -1...+1 in Q15 */ in WebRtcIlbcfix_Lsp2Lsf()
34 int16_t diff; /* diff between table value and desired value (Q15) */ in WebRtcIlbcfix_Lsp2Lsf() local
50 for(i=m-1; i>=0; i--) in WebRtcIlbcfix_Lsp2Lsf()
56 while( (((int32_t)(*cosTblPtr)-(*lspPtr)) < 0)&&(k>0) ) in WebRtcIlbcfix_Lsp2Lsf()
[all …]
/external/webrtc/webrtc/base/
Dversionparsing.cc4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
28 n = dot_pos - pos; in ParseVersionString()
49 int diff = version1[i] - version2[i]; in CompareVersions() local
50 if (diff != 0) { in CompareVersions()
51 return diff; in CompareVersions()
/external/libvpx/libvpx/vp8/common/
Dinvtrans.h4 * Use of this source code is governed by a BSD-style license
6 * tree. An additional intellectual property rights grant can be found
8 * be found in the AUTHORS file in the root of the source tree.
27 static void eob_adjust(char *eobs, short *diff) { in eob_adjust() argument
31 if ((eobs[js] == 0) && (diff[0] != 0)) eobs[js]++; in eob_adjust()
32 diff += 16; in eob_adjust()
37 short *DQC = xd->dequant_y1; in vp8_inverse_transform_mby()
39 if (xd->mode_info_context->mbmi.mode != SPLITMV) { in vp8_inverse_transform_mby()
41 if (xd->eobs[24] > 1) { in vp8_inverse_transform_mby()
42 vp8_short_inv_walsh4x4(&xd->block[24].dqcoeff[0], xd->qcoeff); in vp8_inverse_transform_mby()
[all …]

12345678910>>...16