Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 215) sorted by relevance

123456789

/frameworks/rs/tests/java_api/Refocus/src/com/android/rs/test/
Dlayer_info_fast.rsh6 // Front and back depth values of this layer.
24 static inline int ValidDepth(int depth) { return (depth != 0); }
26 static inline int NotInFrontOfTheLayer(int depth,
28 return (depth <= layer_info_f2.s0);
31 static inline int OnTheLayer(int depth, const int2 layer_info_i2) {
32 //return (layer_info->back_depth <= depth && depth <= layer_info->front_depth);
33 return (layer_info_i2.s1 <= depth && depth <= layer_info_i2.s0);
37 int depth, const int2 layer_info_f2) {
38 //return (depth != 0) & (depth <= layer_info->front_depth);
39 return (depth != 0) & (depth <= layer_info_f2.s0);
[all …]
Dlayer_info.rsh6 // Front and back depth values of this layer.
24 static inline int ValidDepth(int depth) { return (depth != 0); }
26 static inline int NotInFrontOfTheLayer(int depth,
28 return (depth <= layer_info->front_depth);
31 static inline int OnTheLayer(int depth, const LayerInfo_t *layer_info) {
32 return (layer_info->back_depth <= depth && depth <= layer_info->front_depth);
36 int depth, const LayerInfo_t *layer_info) {
37 return (depth != 0) & (depth <= layer_info->front_depth);
40 static inline int ValidDepthNotOnTheLayer(int depth,
42 return (depth != 0) &
[all …]
DBlurStack.java88 public float getDiskRadius(int depth) { in getDiskRadius() argument
89 return diskRadiusArray[depth - MIN_DEPTH]; in getDiskRadius()
245 for (int depth = MIN_DEPTH; depth <= MAX_DEPTH; ++depth) { in computeDiskRadius()
247 depthTransform.reconstruct(stackDepthToOpenglDepth(depth)); in computeDiskRadius()
254 diskRadiusArray[depth - MIN_DEPTH] = Math.min(radius, MAX_DISC_RADIUS); in computeDiskRadius()
276 for (int depth = MAX_DEPTH; depth > frontFocalDepth; --depth, ++layer) { in generateOneLayerForEachDepth()
277 layerInfo[layer] = new LayerInfo(depth); in generateOneLayerForEachDepth()
286 for (int depth = backFocalDepth - 1; depth >= MIN_DEPTH; --depth, ++layer) { in generateOneLayerForEachDepth()
287 layerInfo[layer] = new LayerInfo(depth); in generateOneLayerForEachDepth()
DLayerInfo.java11 LayerInfo(int depth) { in LayerInfo() argument
12 frontDepth = depth; in LayerInfo()
13 backDepth = depth; in LayerInfo()
Dlayered_filter_d1new_helper.rsh34 // depth of the closest pixel to sharp->dilated_depth.
37 // may not be in the depth range of the target layer.
52 int depth = sharp_input_actual_depth; // Get meta data actual_depth
66 // Updates min_dist and corresponding depth.
68 depth = cond ? sharp_actual_depth : depth;
77 // If sharp->matte > 0, depth must be within the depth range of this layer.
78 rsSetElementAt_uchar(g_sharp_dilated_depth, (uchar)depth, index_sharp_meta);
93 int depth = sharp_input_actual_depth; // Get meta data actual_depth
107 // Updates min_dist and corresponding depth.
109 depth = cond ? sharp_actual_depth : depth;
[all …]
Dpixel_format_f32.rsh7 // 1. Initially, it stores the input color (red, green, blue) and the depth
16 // 3. After each layer is processed from back-most layer to focal depth layer,
20 // 4. After each layer is processed from front-most layer to focal depth layer,
42 // For active pixels, dilated_depth is the same as actual depth;
43 // For inactive pixels with non-zero matte, dilated_depth is the depth of the
45 // For other pixels, 0 (invalid depth).
DKernelDataForRenderScript.java106 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() local
107 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
128 int depth = blurStack.getDepth(targetLayer, m); in KernelDataForRenderScript() local
129 float diskRadius = blurStack.getDiskRadius(depth); in KernelDataForRenderScript()
Dlayered_filter_f32_helper.rsh17 // depth of the closest pixel to sharp->dilated_depth.
20 // may not be in the depth range of the target layer.
33 int depth = sharp->actual_depth;
46 // Updates min_dist and corresponding depth.
48 depth = cond ? sharp_nbr->actual_depth : depth;
57 // If sharp->matte > 0, depth must be within the depth range of this layer.
58 sharp->dilated_depth = (uchar)depth;
62 // the sharp depth.
76 // Gets the visibility probability lookup table for the target layer depth.
115 // the sharp depth.
[all …]
/frameworks/base/cmds/statsd/src/
DFieldValue.h37 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth);
39 int32_t encodeMatcherMask(int32_t mask[], int32_t depth);
89 Field(int32_t tag, int32_t pos[], int32_t depth) : mTag(tag) { in Field()
90 mField = getEncodedField(pos, depth, true); in Field()
106 inline void decorateLastPos(int32_t depth) { in decorateLastPos()
107 int32_t mask = kLastBitMask << 8 * (kMaxLogDepth - depth); in decorateLastPos()
119 inline int32_t getPath(int32_t depth) const { in getPath()
120 if (depth > 2 || depth < 0) return 0; in getPath()
124 return (field & (mask << 8 * (kMaxLogDepth - depth))); in getPath()
127 inline int32_t getPrefix(int32_t depth) const { in getPrefix()
[all …]
DFieldValue.cpp28 int32_t getEncodedField(int32_t pos[], int32_t depth, bool includeDepth) { in getEncodedField() argument
30 for (int32_t i = 0; i <= depth; i++) { in getEncodedField()
36 field |= (depth << 24); in getEncodedField()
41 int32_t encodeMatcherMask(int32_t mask[], int32_t depth) { in encodeMatcherMask() argument
42 return getEncodedField(mask, depth, false) | 0xff000000; in encodeMatcherMask()
61 void translateFieldMatcher(int tag, const FieldMatcher& matcher, int depth, int* pos, int* mask, in translateFieldMatcher() argument
63 if (depth > kMaxLogDepth) { in translateFieldMatcher()
68 pos[depth] = matcher.field(); in translateFieldMatcher()
69 mask[depth] = 0x7f; in translateFieldMatcher()
72 depth++; in translateFieldMatcher()
[all …]
Dstats_log_util.cpp92 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() argument
99 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper()
100 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper()
106 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
141 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
161 size_t* index, int depth, in writeDimensionLeafToProtoHelper() argument
168 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionLeafToProtoHelper()
174 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
208 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
220 size_t* index, int depth, int prefix, in writeDimensionPathToProtoHelper() argument
[all …]
/frameworks/rs/rsov/tests/RSoVTest/src/com/android/rs/rsov/test/
DUT_global_query.java31 private boolean Test(int width, int height, int depth) { in Test() argument
39 if (depth > 0) { in Test()
40 typeBuilder.setZ(depth); in Test()
44 if (depth < 1) { in Test()
45 depth = 1; in Test()
56 int g[] = new int[width * height * depth]; in Test()
57 int d[] = new int[width * height * depth]; in Test()
58 int r[] = new int[width * height * depth]; in Test()
62 for (int i = 0; i < width * height * depth; i++) { in Test()
84 for (int i = 0; i < width * height * depth; i++) { in Test()
DUT_invert.java31 private boolean Test(int width, int height, int depth) { in Test() argument
39 if (depth > 0) { in Test()
40 typeBuilder.setZ(depth); in Test()
44 if (depth < 1) { in Test()
45 depth = 1; in Test()
55 float a[] = new float[width * height * depth * 4]; in Test()
56 float b[] = new float[width * height * depth * 4]; in Test()
60 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
77 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
DUT_multi_kernel.java31 private boolean Test(int width, int height, int depth) { in Test() argument
39 if (depth > 0) { in Test()
40 typeBuilder.setZ(depth); in Test()
44 if (depth < 1) { in Test()
45 depth = 1; in Test()
55 float a[] = new float[width * height * depth * 4]; in Test()
56 float b[] = new float[width * height * depth * 4]; in Test()
60 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
79 for (int i = 0; i < width * height * depth * 4; i++) { in Test()
/frameworks/base/sax/java/android/sax/
DRootElement.java100 int depth = -1; field in RootElement.Handler
112 int depth = ++this.depth; in startElement() local
114 if (depth == 0) { in startElement()
128 if (depth == current.depth + 1) { in startElement()
183 if (depth == current.depth) { in endElement()
204 depth--; in endElement()
DChildren.java37 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate()
56 current = new Child(parent, uri, localName, parent.depth + 1, hash); in getOrCreate()
91 Child(Element parent, String uri, String localName, int depth, in Child() argument
93 super(parent, uri, localName, depth); in Child()
/frameworks/base/cmds/statsd/src/subscriber/
DSubscriberReporter.cpp120 void getStatsDimensionsValueHelper(const vector<FieldValue>& dims, size_t* index, int depth, in getStatsDimensionsValueHelper() argument
126 const int valuePrefix = dim.mField.getPrefix(depth); in getStatsDimensionsValueHelper()
131 if (depth == valueDepth && valuePrefix == prefix) { in getStatsDimensionsValueHelper()
134 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
138 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
142 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
146 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
153 } else if (valueDepth > depth && valuePrefix == prefix) { in getStatsDimensionsValueHelper()
155 getStatsDimensionsValueHelper(dims, index, depth + 1, dim.mField.getPrefix(depth + 1), in getStatsDimensionsValueHelper()
157 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), childOutput)); in getStatsDimensionsValueHelper()
/frameworks/base/cmds/statsd/src/logd/
DLogEvent.cpp67 int depth = 2; in LogEvent() local
70 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.uids[i]))); in LogEvent()
72 mValues.push_back(FieldValue(Field(mTagId, pos, depth), Value(wc.tags[i]))); in LogEvent()
445 int depth = -1; in init() local
457 if (depth < 0 || depth > 2) { in init()
462 FieldValue(Field(mTagId, pos, depth), Value((int32_t)elem.data.int32))); in init()
464 pos[depth]++; in init()
468 if (depth < 0 || depth > 2) { in init()
474 if (isKeyValuePairAtom && depth == 2) { in init()
475 pos[depth] = 5; in init()
[all …]
/frameworks/base/tools/bit/
Daapt.cpp62 int depth; member
114 int depth; member
117 Scope(Scope* parent, int depth);
122 depth(d) in Scope()
184 int depth = match[1].length() / 2; in inspect_apk() local
185 while (depth < scope->depth) { in inspect_apk()
190 scope = new Scope(scope, depth); in inspect_apk()
204 element->depth = match[1].length() / 2; in inspect_apk()
210 while (element->depth <= current->depth && current->parent != NULL) { in inspect_apk()
/frameworks/base/cmds/statsd/src/matchers/
Dmatcher_util.cpp102 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument
103 if (depth > 2) { in matchesSimple()
118 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
141 depth++; in matchesSimple()
142 if (depth > 2) { in matchesSimple()
148 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
162 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
175 int currentPos = values[start].mField.getPosAtDepth(depth); in matchesSimple()
178 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
201 ++depth; in matchesSimple()
[all …]
/frameworks/native/opengl/libagl/
Degl.cpp193 GGLSurface depth; member
201 depth.version = sizeof(GGLSurface); in egl_surface_t()
202 depth.data = 0; in egl_surface_t()
203 depth.format = depthFormat; in egl_surface_t()
208 free(depth.data); in ~egl_surface_t()
410 if (depth.format) { in connect()
411 depth.width = width; in connect()
412 depth.height = height; in connect()
413 depth.stride = depth.width; // use the width here in connect()
414 uint64_t allocSize = static_cast<uint64_t>(depth.stride) * in connect()
[all …]
/frameworks/base/tools/aapt/
Dpseudolocalize.cpp42 size_t depth = mLastDepth; in text() local
59 depth++; in text()
60 } else if (c == k_arg_end && depth) { in text()
61 depth--; in text()
64 if (mLastDepth != depth || pos == length - 1) { in text()
67 if (!pseudo || depth == mLastDepth) { in text()
81 if (pseudo && depth < mLastDepth) { // End of message in text()
83 } else if (!pseudo && depth > mLastDepth) { // Start of message in text()
87 mLastDepth = depth; in text()
/frameworks/base/apct-tests/perftests/core/src/android/view/
DViewShowHidePerfTest.java62 abstract View create(Context context, int depth); in create() argument
98 public View create(Context context, int depth) {
100 createNestedLinearLayoutTree(context, root, depth - 1);
106 public View create(Context context, int depth) {
109 int childCount = (int) Math.pow(2, depth);
125 for (int depth : new int[] { 6 }) { in params()
127 params.add(new Object[]{ subTreeFactory, depth }); in params()
135 public ViewShowHidePerfTest(SubTreeFactory subTreeFactory, int depth) { in ViewShowHidePerfTest() argument
136 mChild = subTreeFactory.create(getContext(), depth); in ViewShowHidePerfTest()
/frameworks/base/tools/aapt2/compile/
DPseudolocalizer.cpp89 size_t depth = last_depth_; in Text() local
106 depth++; in Text()
107 } else if (c == kArgEnd && depth) { in Text()
108 depth--; in Text()
111 if (last_depth_ != depth || pos == length - 1) { in Text()
114 if (!pseudo || depth == last_depth_) { in Text()
127 if (pseudo && depth < last_depth_) { // End of message in Text()
129 } else if (!pseudo && depth > last_depth_) { // Start of message in Text()
133 last_depth_ = depth; in Text()
/frameworks/base/tools/aapt2/xml/
DXmlPullParser.h92 size_t depth() const;
170 size_t depth; member
242 while (IsGoodEvent(event = parser->Next()) && parser->depth() > start_depth + 1) { in NextChildNode()
246 while ((event != Event::kEndElement || parser->depth() > start_depth) && IsGoodEvent(event)) { in NextChildNode()
263 int depth = 1; in SkipCurrentElement() local
264 while (depth > 0) { in SkipCurrentElement()
271 depth++; in SkipCurrentElement()
274 depth--; in SkipCurrentElement()

123456789