Searched refs:vertex (Results 1 - 25 of 126) sorted by relevance

123456

/external/ceres-solver/internal/ceres/
H A Dgraph.h46 // A weighted undirected graph templated over the vertex ids. Vertex
53 // Add a weighted vertex. If the vertex already exists in the graph,
55 void AddVertex(const Vertex& vertex, double weight) { argument
56 if (vertices_.find(vertex) == vertices_.end()) {
57 vertices_.insert(vertex);
58 edges_[vertex] = HashSet<Vertex>();
60 vertex_weights_[vertex] = weight;
63 // Uses weight = 1.0. If vertex already exists, its weight is set to
65 void AddVertex(const Vertex& vertex) { argument
69 RemoveVertex(const Vertex& vertex) argument
[all...]
H A Dgraph_algorithms.h124 // Iterate over vertex_queue. Pick the first white vertex, add it
127 const Vertex& vertex = vertex_queue[i]; local
128 if (vertex_color[vertex] != kWhite) {
132 ordering->push_back(vertex);
133 vertex_color[vertex] = kBlack;
134 const HashSet<Vertex>& neighbors = graph.Neighbors(vertex);
150 const Vertex vertex = *it; local
151 DCHECK(vertex_color[vertex] != kWhite);
152 if (vertex_color[vertex] != kBlack) {
153 ordering->push_back(vertex);
202 const Vertex& vertex = vertex_queue[i]; local
225 const Vertex vertex = *it; local
243 FindConnectedComponent(const Vertex& vertex, HashMap<Vertex, Vertex>* union_find) argument
[all...]
/external/mesa3d/src/mesa/drivers/dri/i965/
H A Dbrw_gs_emit.c51 * 1 needs to be set aside to hold the streamed vertex buffer indices.
65 /* Streamed vertex buffer indices */
72 c->reg.vertex[j] = brw_vec4_grf(i, 0);
114 * need to be able to update on a per-vertex basis.
144 * for each vertex.
155 * Emit a vertex using the URB_WRITE message. Use the contents of
157 * for the vertex data.
159 * If \c last is true, then this is the last vertex, so no further URB space
173 /* Copy the vertex from vertn into m1..mN+1:
177 /* Send each vertex a
361 unsigned vertex, binding; local
[all...]
/external/mesa3d/src/mesa/vbo/
H A Dvbo_exec_eval.c123 * They alias and override the conventional vertex attributs.
169 GLfloat vertex[4]; local
171 ASSIGN_4V(vertex, 0, 0, 0, 1);
173 _math_horner_bezier_curve(map->Points, vertex, uu,
178 CALL_Vertex4fv(GET_DISPATCH(), ( vertex ));
180 CALL_Vertex3fv(GET_DISPATCH(), ( vertex ));
218 GLfloat vertex[4]; local
220 ASSIGN_4V(vertex, 0, 0, 0, 1);
226 _math_de_casteljau_surf(map->Points, vertex, du, dv, uu, vv,
231 du[0] = du[0]*vertex[
[all...]
/external/mesa3d/src/mesa/swrast_setup/
H A Dswrast_setup.h55 /* Helper function to translate a hardware vertex (as understood by
56 * the tnl/t_vertex.c code) to a swrast vertex.
59 _swsetup_Translate( struct gl_context *ctx, const void *vertex, SWvertex *dest );
H A Dss_context.c40 /* Need to check lighting state and vertex program state to know
179 * Prepare to render a vertex buffer.
213 * It's called when we finish rendering a vertex buffer.
263 * Populate a swrast SWvertex from an attrib-style vertex.
266 _swsetup_Translate( struct gl_context *ctx, const void *vertex, SWvertex *dest ) argument
272 _tnl_get_attr( ctx, vertex, _TNL_ATTRIB_POS, tmp );
281 _tnl_get_attr( ctx, vertex, _TNL_ATTRIB_TEX0 + i,
285 _tnl_get_attr( ctx, vertex, _TNL_ATTRIB_GENERIC0 + i,
288 _tnl_get_attr( ctx, vertex, _TNL_ATTRIB_COLOR0,
292 _tnl_get_attr( ctx, vertex, _TNL_ATTRIB_COLOR
[all...]
/external/skia/src/gpu/text/
H A DGrAtlasTextBlob_regenInBatch.cpp22 inline void regen_vertices(intptr_t vertex, const GrGlyph* glyph, size_t vertexStride, argument
66 SkPoint* point = reinterpret_cast<SkPoint*>(vertex);
72 SkColor* vcolor = reinterpret_cast<SkColor*>(vertex + colorOffset);
77 uint16_t* textureCoords = reinterpret_cast<uint16_t*>(vertex + texCoordOffset);
81 vertex += vertexStride;
85 SkPoint* point = reinterpret_cast<SkPoint*>(vertex);
91 SkColor* vcolor = reinterpret_cast<SkColor*>(vertex + colorOffset);
96 uint16_t* textureCoords = reinterpret_cast<uint16_t*>(vertex + texCoordOffset);
100 vertex += vertexStride;
104 SkPoint* point = reinterpret_cast<SkPoint*>(vertex);
214 intptr_t vertex = reinterpret_cast<intptr_t>(fVertices); local
[all...]
/external/pdfium/third_party/agg23/
H A Dagg_path_storage.h39 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y) function in class:agg::path_storage::vertex_source
42 m_path->vertex(m_vertex_idx++, x, y) :
66 while(!is_stop(cmd = vs.vertex(&x, &y))) {
93 unsigned vertex(unsigned idx, FX_FLOAT* x, FX_FLOAT* y) const function in class:agg::path_storage
110 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y);
124 inline unsigned path_storage::vertex(FX_FLOAT* x, FX_FLOAT* y) function in class:agg::path_storage
129 return vertex(m_iterator++, x, y);
134 return vertex(m_total_vertices - 2, x, y);
141 return vertex(m_total_vertices - 1, x, y);
H A Dagg_conv_adaptor_vcgen.h26 unsigned vertex(FX_FLOAT*, FX_FLOAT*) function in struct:agg::null_markers
70 unsigned vertex(FX_FLOAT* x, FX_FLOAT* y);
84 unsigned conv_adaptor_vcgen<VertexSource, Generator, Markers>::vertex(FX_FLOAT* x, FX_FLOAT* y) function in class:agg::conv_adaptor_vcgen
92 m_last_cmd = m_source->vertex(&m_start_x, &m_start_y);
102 cmd = m_source->vertex(x, y);
126 cmd = m_generator.vertex(x, y);
/external/mesa3d/src/gallium/tests/graw/
H A Dtex-srgb.c16 struct vertex { struct
21 static struct vertex vertices1[] =
37 static struct vertex vertices2[] =
56 set_vertices(struct vertex *verts, unsigned num_verts)
64 ve[0].src_offset = Offset(struct vertex, position);
66 ve[1].src_offset = Offset(struct vertex, color);
73 vbuf.stride = sizeof(struct vertex);
78 num_verts * sizeof(struct vertex),
H A Dfs-fragcoord.c16 struct vertex { struct
21 /* Note: the upper-left vertex is pushed to the left a bit to
24 static struct vertex vertices[] =
59 ve[0].src_offset = Offset(struct vertex, position);
61 ve[1].src_offset = Offset(struct vertex, color);
68 vbuf.stride = sizeof(struct vertex);
H A Dfs-frontface.c14 struct vertex { struct
23 static struct vertex vertices[] =
81 ve[0].src_offset = Offset(struct vertex, position);
83 ve[1].src_offset = Offset(struct vertex, color);
90 vbuf.stride = sizeof(struct vertex);
H A Dfs-write-z.c17 struct vertex { struct
27 static struct vertex vertices[] =
85 ve[0].src_offset = Offset(struct vertex, position);
87 ve[1].src_offset = Offset(struct vertex, color);
94 vbuf.stride = sizeof(struct vertex);
H A Docclusion-query.c19 struct vertex { struct
27 static struct vertex obj1_vertices[4] =
50 static struct vertex obj2_vertices[4] =
78 set_vertices(struct vertex *vertices, unsigned bytes)
86 ve[0].src_offset = Offset(struct vertex, position);
88 ve[1].src_offset = Offset(struct vertex, color);
95 vbuf.stride = sizeof(struct vertex);
123 debug_printf("Failed to parse vertex shader\n");
H A Dquad-tex.c17 struct vertex { struct
22 static struct vertex vertices[] =
48 ve[0].src_offset = Offset(struct vertex, position);
50 ve[1].src_offset = Offset(struct vertex, color);
57 vbuf.stride = sizeof( struct vertex );
/external/pdfium/core/src/fpdfapi/fpdf_page/
H A Dfpdf_page_pattern.cpp236 FX_DWORD CPDF_MeshStream::GetVertex(CPDF_MeshVertex& vertex, argument
239 GetCoords(vertex.x, vertex.y);
240 pObject2Bitmap->Transform(vertex.x, vertex.y);
241 GetColor(vertex.r, vertex.g, vertex.b);
245 FX_BOOL CPDF_MeshStream::GetVertexRow(CPDF_MeshVertex* vertex, argument
252 GetCoords(vertex[
[all...]
/external/mesa3d/src/gallium/state_trackers/xa/
H A Dxa_renderer.c115 /* vertex elements state */
128 float *vertex = r->buffer + r->buffer_size; local
130 vertex[0] = x;
131 vertex[1] = y;
132 vertex[2] = 0.f; /*z */
133 vertex[3] = 1.f; /*w */
135 vertex[4] = color[0]; /*r */
136 vertex[5] = color[1]; /*g */
137 vertex[6] = color[2]; /*b */
138 vertex[
146 float *vertex = r->buffer + r->buffer_size; local
165 float *vertex = r->buffer + r->buffer_size; local
[all...]
/external/mesa3d/src/gallium/state_trackers/xorg/
H A Dxorg_renderer.c88 /* vertex elements state */
104 float *vertex = r->buffer + r->buffer_size; local
106 vertex[0] = x;
107 vertex[1] = y;
108 vertex[2] = 0.f; /*z*/
109 vertex[3] = 1.f; /*w*/
111 vertex[4] = color[0]; /*r*/
112 vertex[5] = color[1]; /*g*/
113 vertex[6] = color[2]; /*b*/
114 vertex[
123 float *vertex = r->buffer + r->buffer_size; local
188 float *vertex = r->buffer + r->buffer_size; local
[all...]
/external/clang/utils/analyzer/
H A Dubiviz30 if action == 'vertex':
31 vertex = data[1]
32 G.new_vertex_w_id(vertex)
34 G.set_vertex_attribute(vertex, attribute[0], attribute[1])
/external/opencv3/modules/stitching/include/opencv2/stitching/detail/
H A Dutil_inl.hpp79 int vertex = vertices.front(); local
82 std::list<GraphEdge>::const_iterator edge = edges_[vertex].begin();
83 for (; edge != edges_[vertex].end(); ++edge)
/external/deqp/external/vulkancts/modules/vulkan/pipeline/
H A DvktPipelineInputAssemblyTests.cpp345 const Vertex4RGBA vertex = local
351 vertices.push_back(vertex);
361 const Vertex4RGBA vertex = local
367 vertices.push_back(vertex);
378 Vertex4RGBA vertex = local
384 vertices.push_back(vertex);
387 vertex.position = tcu::Vec4(originX, originY + primitiveSizeY, 0.0f, 1.0f);
388 vertices.push_back(vertex);
393 const Vertex4RGBA vertex = local
399 vertices.push_back(vertex);
410 const Vertex4RGBA vertex = local
429 const Vertex4RGBA vertex = local
441 const Vertex4RGBA vertex = local
461 Vertex4RGBA vertex = local
480 const Vertex4RGBA vertex = local
502 const Vertex4RGBA vertex = local
525 Vertex4RGBA vertex = local
540 const Vertex4RGBA vertex = local
561 const Vertex4RGBA vertex = local
583 const Vertex4RGBA vertex = local
596 const Vertex4RGBA vertex = local
695 const Vertex4RGBA vertex = local
707 const Vertex4RGBA vertex = local
734 const Vertex4RGBA vertex = local
746 const Vertex4RGBA vertex = local
774 Vertex4RGBA vertex = local
790 const Vertex4RGBA vertex = local
820 const Vertex4RGBA vertex = local
832 const Vertex4RGBA vertex = local
862 const Vertex4RGBA vertex = local
876 const Vertex4RGBA vertex = local
[all...]
/external/opencv3/modules/cudalegacy/src/
H A Dneedle_map.cpp63 void cv::cuda::createOpticalFlowNeedleMap(const GpuMat& u, const GpuMat& v, GpuMat& vertex, GpuMat& colors)
84 vertex.create(1, num_arrows, CV_32FC3);
95 CreateOpticalFlowNeedleMap_gpu(u_avg, v_avg, vertex.ptr<float>(), colors.ptr<float>(), max_flow, 1.0f / u.cols, 1.0f / u.rows);
/external/opencv3/samples/gpu/
H A Dopengl.cpp80 Mat_<Vec2f> vertex(1, 4);
81 vertex << Vec2f(-1, 1), Vec2f(-1, -1), Vec2f(1, -1), Vec2f(1, 1);
91 data.arr.setVertexArray(vertex);
/external/dexmaker/src/dx/java/com/android/dx/ssa/
H A DDominators.java56 private final ArrayList<SsaBasicBlock> vertex; field in class:Dominators
75 this.vertex = new ArrayList<SsaBasicBlock>();
175 vertex.add(root);
188 int dfsMax = vertex.size() - 1;
192 SsaBasicBlock w = vertex.get(i);
213 info[vertex.get(wInfo.semidom).getIndex()].bucket.add(w);
222 // Implicity define idom for each vertex.
239 // Now explicitly define the immediate dominator of each vertex
241 SsaBasicBlock w = vertex.get(i);
243 != vertex
[all...]
/external/opencv3/modules/java/src/
H A Dimgproc+Subdiv2D.java102 // C++: Point2f getVertex(int vertex, int* firstEdge = 0)
105 //javadoc: Subdiv2D::getVertex(vertex, firstEdge)
106 public Point getVertex(int vertex, int[] firstEdge) argument
109 Point retVal = new Point(getVertex_0(nativeObj, vertex, firstEdge_out));
114 //javadoc: Subdiv2D::getVertex(vertex)
115 public Point getVertex(int vertex) argument
118 Point retVal = new Point(getVertex_1(nativeObj, vertex));
269 // C++: int locate(Point2f pt, int& edge, int& vertex)
272 //javadoc: Subdiv2D::locate(pt, edge, vertex)
273 public int locate(Point pt, int[] edge, int[] vertex) argument
341 getVertex_0(long nativeObj, int vertex, double[] firstEdge_out) argument
342 getVertex_1(long nativeObj, int vertex) argument
[all...]

Completed in 740 milliseconds

123456