Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 203) 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()
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 …]
DLayerInfo.java11 LayerInfo(int depth) { in LayerInfo() argument
12 frontDepth = depth; in LayerInfo()
13 backDepth = depth; in LayerInfo()
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 …]
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).
Dlayered_filter_fast_f32.rscript9 // 1. The depth value varies between 1 and number of depth levels. 0 is reserved
11 // 2. The depth value represents inverse depth. Larger depths are closer to the
13 // 3. The depth values are grouped into several blending layers.
14 // 4. The focal layer (i.e., the global variable g_focal_layer) is the depth
20 // @param in an input RGBD pixel with @in.a being quantized inverse depth.
42 // back-most to the focal depth. This image buffer is padded.
54 // In the first pass from back-most to focal depth, g_fuzzy_image holds the
57 // In the second pass from front-most to focal depth, g_fuzzy_image accumulates
69 // The depth level that is in focus.
72 // For depth d, let n = d-g_target_layer.back_depth be the relative depth index.
[all …]
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()
/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.cpp88 void writeDimensionToProtoHelper(const std::vector<FieldValue>& dims, size_t* index, int depth, in writeDimensionToProtoHelper() argument
95 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionToProtoHelper()
96 const int fieldNum = dim.mField.getPosAtDepth(depth); in writeDimensionToProtoHelper()
102 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
137 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionToProtoHelper()
157 size_t* index, int depth, in writeDimensionLeafToProtoHelper() argument
164 const int valuePrefix = dim.mField.getPrefix(depth); in writeDimensionLeafToProtoHelper()
170 if (depth == valueDepth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
204 } else if (valueDepth > depth && valuePrefix == prefix) { in writeDimensionLeafToProtoHelper()
216 size_t* index, int depth, int prefix, in writeDimensionPathToProtoHelper() argument
[all …]
/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()
414 int depth = -1; in init() local
426 if (depth < 0 || depth > 2) { in init()
431 FieldValue(Field(mTagId, pos, depth), Value((int32_t)elem.data.int32))); in init()
433 pos[depth]++; in init()
437 if (depth < 0 || depth > 2) { in init()
443 if (isKeyValuePairAtom && depth == 2) { in init()
444 pos[depth] = 5; in init()
[all …]
/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.cpp119 void getStatsDimensionsValueHelper(const vector<FieldValue>& dims, size_t* index, int depth, in getStatsDimensionsValueHelper() argument
125 const int valuePrefix = dim.mField.getPrefix(depth); in getStatsDimensionsValueHelper()
130 if (depth == valueDepth && valuePrefix == prefix) { in getStatsDimensionsValueHelper()
133 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
137 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
141 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
145 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), in getStatsDimensionsValueHelper()
152 } else if (valueDepth > depth && valuePrefix == prefix) { in getStatsDimensionsValueHelper()
154 getStatsDimensionsValueHelper(dims, index, depth + 1, dim.mField.getPrefix(depth + 1), in getStatsDimensionsValueHelper()
156 output->push_back(StatsDimensionsValue(dim.mField.getPosAtDepth(depth), childOutput)); in getStatsDimensionsValueHelper()
/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/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/cmds/statsd/src/matchers/
Dmatcher_util.cpp101 const vector<FieldValue>& values, int start, int end, int depth) { in matchesSimple() argument
102 if (depth > 2) { in matchesSimple()
117 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
140 depth++; in matchesSimple()
141 if (depth > 2) { in matchesSimple()
147 int pos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
161 if (values[i].mField.isLastPos(depth)) { in matchesSimple()
174 int currentPos = values[start].mField.getPosAtDepth(depth); in matchesSimple()
177 int newPos = values[i].mField.getPosAtDepth(depth); in matchesSimple()
200 ++depth; in matchesSimple()
[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()
/frameworks/base/startop/view_compiler/
Dapk_layout_compiler.cc43 size_t depth{0}; in Accept() local
47 depth++; in Accept()
51 depth--; in Accept()
55 depth++; in Accept()
62 depth--; in Accept()
67 } while (depth > 0 || parser_->getEventType() == ResXMLParser::FIRST_CHUNK_CODE); in Accept()
/frameworks/compile/mclinker/lib/LD/
DDiagnostic.cpp41 unsigned int depth = 0; in findMatch() local
43 if (depth == 0 && *pBegin == pVal) in findMatch()
45 if (depth != 0 && *pBegin == '}') in findMatch()
46 --depth; in findMatch()
61 ++depth; in findMatch()

123456789