Home
last modified time | relevance | path

Searched refs:depth (Results 1 – 25 of 220) 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).
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 …]
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_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 …]
/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/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/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.java63 abstract View create(Context context, int depth); in create() argument
99 public View create(Context context, int depth) {
101 createNestedLinearLayoutTree(context, root, depth - 1);
107 public View create(Context context, int depth) {
110 int childCount = (int) Math.pow(2, depth);
126 for (int depth : new int[] { 6 }) { in params()
128 params.add(new Object[]{ subTreeFactory, depth }); in params()
136 public ViewShowHidePerfTest(SubTreeFactory subTreeFactory, int depth) { in ViewShowHidePerfTest() argument
137 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.h91 size_t depth() const;
177 size_t depth; member
244 while (IsGoodEvent(event = parser->Next()) && parser->depth() > start_depth + 1) { in NextChildNode()
248 while ((event != Event::kEndElement || parser->depth() > start_depth) && IsGoodEvent(event)) { in NextChildNode()
265 int depth = 1; in SkipCurrentElement() local
266 while (depth > 0) { in SkipCurrentElement()
273 depth++; in SkipCurrentElement()
276 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()
/frameworks/base/apct-tests/perftests/utils/src/android/perftests/utils/
DTraceMarkParser.java83 int depth = 1; in visit() local
87 mDepthMap.put(line.taskPid, depth = existingDepth + 1); in visit()
91 mPendingStarts.put(getSyncPendingStartKey(line, depth), line); in visit()
96 depth = existingDepth; in visit()
99 final TraceMarkLine begin = mPendingStarts.remove(getSyncPendingStartKey(line, depth)); in visit()
106 private static String getSyncPendingStartKey(TraceMarkLine line, int depth) { in getSyncPendingStartKey() argument
107 return line.taskPid + "@" + depth; in getSyncPendingStartKey()
/frameworks/libs/net/common/framework/com/android/net/module/util/
DDnsPacketUtils.java82 public static String parseName(ByteBuffer buf, int depth, in parseName() argument
85 if (depth > MAXLABELCOUNT) { in parseName()
104 final String pointed = parseName(buf, depth + 1, isNameCompressionSupported); in parseName()
114 final String tail = parseName(buf, depth + 1, isNameCompressionSupported); in parseName()
/frameworks/native/opengl/tests/gl_perfapp/src/com/android/glperf/
DGLPerfView.java65 public GLPerfView(Context context, boolean translucent, int depth, int stencil) { in GLPerfView() argument
67 init(translucent, depth, stencil); in GLPerfView()
70 private void init(boolean translucent, int depth, int stencil) { in init() argument
73 new ConfigChooser(8,8,8,8, depth, stencil) : in init()
74 new ConfigChooser(5,6,5,0, depth, stencil)); in init()
112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument
117 mDepthSize = depth; in ConfigChooser()
/frameworks/native/opengl/tests/gldual/src/com/android/gldual/
DGLDualGL2View.java68 public GLDualGL2View(Context context, boolean translucent, int depth, int stencil) { in GLDualGL2View() argument
70 init(translucent, depth, stencil); in GLDualGL2View()
73 private void init(boolean translucent, int depth, int stencil) { in init() argument
76 new ConfigChooser(8,8,8,8, depth, stencil) : in init()
77 new ConfigChooser(5,6,5,0, depth, stencil)); in init()
115 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument
120 mDepthSize = depth; in ConfigChooser()
/frameworks/native/opengl/tests/gl2_jni/src/com/android/gl2jni/
DGL2JNIView.java65 public GL2JNIView(Context context, boolean translucent, int depth, int stencil) { in GL2JNIView() argument
67 init(translucent, depth, stencil); in GL2JNIView()
70 private void init(boolean translucent, int depth, int stencil) { in init() argument
73 new ConfigChooser(8,8,8,8, depth, stencil) : in init()
74 new ConfigChooser(5,6,5,0, depth, stencil)); in init()
112 public ConfigChooser(int r, int g, int b, int a, int depth, int stencil) { in ConfigChooser() argument
117 mDepthSize = depth; in ConfigChooser()
/frameworks/rs/driver/
DrsdFrameBuffer.cpp35 DrvAllocation *depth = nullptr; in setDepthAttachment() local
37 depth = (DrvAllocation *)fb->mHal.state.depthTarget->mHal.drv; in setDepthAttachment()
39 if (depth->uploadDeferred) { in setDepthAttachment()
44 fbo->setDepthTarget(depth); in setDepthAttachment()
/frameworks/wilhelm/src/itf/
DI3DMacroscopic.cpp23 SLmillimeter width, SLmillimeter height, SLmillimeter depth) in I3DMacroscopic_SetSize() argument
29 (0 <= depth) && (depth <= SL_MILLIMETER_MAX))) { in I3DMacroscopic_SetSize()
36 thiz->mSize.mDepth = depth; in I3DMacroscopic_SetSize()
57 SLmillimeter depth = thiz->mSize.mDepth; in I3DMacroscopic_GetSize() local
61 *pDepth = depth; in I3DMacroscopic_GetSize()

123456789