Home
last modified time | relevance | path

Searched refs:vb (Results 1 – 25 of 217) sorted by relevance

123456789

/external/libvorbis/lib/
Dsynthesis.c26 int vorbis_synthesis(vorbis_block *vb,ogg_packet *op){ in vorbis_synthesis() argument
27 vorbis_dsp_state *vd= vb ? vb->vd : 0; in vorbis_synthesis()
31 oggpack_buffer *opb=vb ? &vb->opb : 0; in vorbis_synthesis()
39 _vorbis_block_ripcord(vb); in vorbis_synthesis()
54 vb->mode=mode; in vorbis_synthesis()
59 vb->W=ci->mode_param[mode]->blockflag; in vorbis_synthesis()
60 if(vb->W){ in vorbis_synthesis()
64 vb->lW=oggpack_read(opb,1); in vorbis_synthesis()
65 vb->nW=oggpack_read(opb,1); in vorbis_synthesis()
66 if(vb->nW==-1){ in vorbis_synthesis()
[all …]
Dblock.c88 int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb){ in vorbis_block_init() argument
90 memset(vb,0,sizeof(*vb)); in vorbis_block_init()
91 vb->vd=v; in vorbis_block_init()
92 vb->localalloc=0; in vorbis_block_init()
93 vb->localstore=NULL; in vorbis_block_init()
96 vb->internal=_ogg_calloc(1,sizeof(vorbis_block_internal)); in vorbis_block_init()
101 vbi->packetblob[i]=&vb->opb; in vorbis_block_init()
113 void *_vorbis_block_alloc(vorbis_block *vb,long bytes){ in _vorbis_block_alloc() argument
115 if(bytes+vb->localtop>vb->localalloc){ in _vorbis_block_alloc()
117 if(vb->localstore){ in _vorbis_block_alloc()
[all …]
Dmapping0.c238 static int mapping0_forward(vorbis_block *vb){ in mapping0_forward() argument
239 vorbis_dsp_state *vd=vb->vd; in mapping0_forward()
242 private_state *b=vb->vd->backend_state; in mapping0_forward()
243 vorbis_block_internal *vbi=(vorbis_block_internal *)vb->internal; in mapping0_forward()
244 int n=vb->pcmend; in mapping0_forward()
248 float **gmdct = _vorbis_block_alloc(vb,vi->channels*sizeof(*gmdct)); in mapping0_forward()
249 int **iwork = _vorbis_block_alloc(vb,vi->channels*sizeof(*iwork)); in mapping0_forward()
250 int ***floor_posts = _vorbis_block_alloc(vb,vi->channels*sizeof(*floor_posts)); in mapping0_forward()
256 int modenumber=vb->W; in mapping0_forward()
258 vorbis_look_psy *psy_look=b->psy+blocktype+(vb->W?2:0); in mapping0_forward()
[all …]
Dbitrate.c64 int vorbis_bitrate_managed(vorbis_block *vb){ in vorbis_bitrate_managed() argument
65 vorbis_dsp_state *vd=vb->vd; in vorbis_bitrate_managed()
74 int vorbis_bitrate_addblock(vorbis_block *vb){ in vorbis_bitrate_addblock() argument
75 vorbis_block_internal *vbi=vb->internal; in vorbis_bitrate_addblock()
76 vorbis_dsp_state *vd=vb->vd; in vorbis_bitrate_addblock()
85 long min_target_bits=(vb->W?bm->min_bitsper*bm->short_per_long:bm->min_bitsper); in vorbis_bitrate_addblock()
86 long max_target_bits=(vb->W?bm->max_bitsper*bm->short_per_long:bm->max_bitsper); in vorbis_bitrate_addblock()
87 int samples=ci->blocksizes[vb->W]>>1; in vorbis_bitrate_addblock()
93 if(bm->vb)return(-1); /* one has been submitted without in vorbis_bitrate_addblock()
95 bm->vb=vb; in vorbis_bitrate_addblock()
[all …]
Danalysis.c30 int vorbis_analysis(vorbis_block *vb, ogg_packet *op){ in vorbis_analysis() argument
32 vorbis_block_internal *vbi=vb->internal; in vorbis_analysis()
34 vb->glue_bits=0; in vorbis_analysis()
35 vb->time_bits=0; in vorbis_analysis()
36 vb->floor_bits=0; in vorbis_analysis()
37 vb->res_bits=0; in vorbis_analysis()
47 if((ret=_mapping_P[0]->forward(vb))) in vorbis_analysis()
51 if(vorbis_bitrate_managed(vb)) in vorbis_analysis()
56 op->packet=oggpack_get_buffer(&vb->opb); in vorbis_analysis()
57 op->bytes=oggpack_bytes(&vb->opb); in vorbis_analysis()
[all …]
Dfloor0.c110 static void floor0_map_lazy_init(vorbis_block *vb, in floor0_map_lazy_init() argument
113 if(!look->linearmap[vb->W]){ in floor0_map_lazy_init()
114 vorbis_dsp_state *vd=vb->vd; in floor0_map_lazy_init()
118 int W=vb->W; in floor0_map_lazy_init()
157 static void *floor0_inverse1(vorbis_block *vb,vorbis_look_floor *i){ in floor0_inverse1() argument
162 int ampraw=oggpack_read(&vb->opb,info->ampbits); in floor0_inverse1()
166 int booknum=oggpack_read(&vb->opb,_ilog(info->numbooks)); in floor0_inverse1()
169 codec_setup_info *ci=vb->vd->vi->codec_setup; in floor0_inverse1()
176 float *lsp=_vorbis_block_alloc(vb,sizeof(*lsp)*(look->m+b->dim+1)); in floor0_inverse1()
179 if(vorbis_book_decodev_set(b,lsp+j,&vb->opb,b->dim)==-1)goto eop; in floor0_inverse1()
[all …]
/external/mesa3d/src/mesa/tnl_dd/
Dt_dd_triemit.h10 #define COPY_DWORDS( j, vb, vertsize, v ) \ argument
14 : "=%c" (j), "=D" (vb), "=S" (__tmp) \
16 "D" ((long)vb), \
20 #define COPY_DWORDS( j, vb, vertsize, v ) \ argument
23 vb[j] = CPU_TO_LE32(((GLuint *)v)[j]); \
24 vb += vertsize; \
27 #define COPY_DWORDS( j, vb, vertsize, v ) \ argument
30 vb[j] = ((GLuint *)v)[j]; \
31 vb += vertsize; \
45 GLuint *vb = (GLuint *)ALLOC_VERTS( 4, vertsize); in TAG() local
[all …]
/external/clang/test/PCH/
Dcxx1y-variable-templates.cpp38 template<typename T> extern T vb;
55 template<typename T> T vb = T(); variable
56 template<> constexpr float vb<float> = 1.5; variable
69 template<typename T> T vb = T(10); variable
70 template<> extern float vb<float>;
88 template<typename T> T vb = T(100); variable
104 template<> float vb<float> = 1.5; variable
105 template int vb<int>; variable
134 template<> constexpr float vb<float> = 2.5; variable
135 template const int vb<const int>; variable
[all …]
/external/mesa3d/src/gallium/drivers/svga/
Dsvga_state_vdecl.c75 const struct pipe_vertex_buffer *vb = in emit_hw_vs_vdecl() local
76 &svga->curr.vb[ve[i].vertex_buffer_index]; in emit_hw_vs_vdecl()
78 unsigned int offset = vb->buffer_offset + ve[i].src_offset; in emit_hw_vs_vdecl()
81 if (!vb->buffer) in emit_hw_vs_vdecl()
84 buffer = svga_buffer(vb->buffer); in emit_hw_vs_vdecl()
87 if (vb->stride) in emit_hw_vs_vdecl()
88 tmp_neg_bias = (tmp_neg_bias + vb->stride - 1) / vb->stride; in emit_hw_vs_vdecl()
94 const struct pipe_vertex_buffer *vb = in emit_hw_vs_vdecl() local
95 &svga->curr.vb[ve[i].vertex_buffer_index]; in emit_hw_vs_vdecl()
99 if (!vb->buffer) in emit_hw_vs_vdecl()
[all …]
Dsvga_pipe_draw.c70 struct pipe_vertex_buffer *vb = in svga_user_buffer_range() local
71 &svga->curr.vb[ve[i].vertex_buffer_index]; in svga_user_buffer_range()
73 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { in svga_user_buffer_range()
74 struct svga_buffer *buffer = svga_buffer(vb->buffer); in svga_user_buffer_range()
83 struct pipe_vertex_buffer *vb = in svga_user_buffer_range() local
84 &svga->curr.vb[ve[i].vertex_buffer_index]; in svga_user_buffer_range()
86 if (vb->buffer && svga_buffer_is_user_buffer(vb->buffer)) { in svga_user_buffer_range()
87 struct svga_buffer *buffer = svga_buffer(vb->buffer); in svga_user_buffer_range()
97 size = vb->stride * (count - 1) + elemSize; in svga_user_buffer_range()
99 first = vb->stride * start + ve[i].src_offset; in svga_user_buffer_range()
[all …]
/external/mesa3d/src/mesa/drivers/dri/i965/
Dbrw_draw_upload.c361 unsigned int min_index = brw->vb.min_index; in brw_prepare_vertices()
362 unsigned int max_index = brw->vb.max_index; in brw_prepare_vertices()
386 brw->vb.nr_enabled = 0; in brw_prepare_vertices()
389 struct brw_vertex_element *input = &brw->vb.inputs[i]; in brw_prepare_vertices()
393 brw->vb.enabled[brw->vb.nr_enabled++] = input; in brw_prepare_vertices()
396 if (brw->vb.nr_enabled == 0) in brw_prepare_vertices()
399 if (brw->vb.nr_buffers) in brw_prepare_vertices()
402 for (i = j = 0; i < brw->vb.nr_enabled; i++) { in brw_prepare_vertices()
403 struct brw_vertex_element *input = brw->vb.enabled[i]; in brw_prepare_vertices()
415 const struct gl_client_array *other = brw->vb.enabled[k]->glarray; in brw_prepare_vertices()
[all …]
Dbrw_draw.c167 base_vertex_location += brw->vb.start_vertex_bias; in brw_emit_prim()
170 start_vertex_location += brw->vb.start_vertex_bias; in brw_emit_prim()
224 base_vertex_location += brw->vb.start_vertex_bias; in gen7_emit_prim()
227 start_vertex_location += brw->vb.start_vertex_bias; in gen7_emit_prim()
264 struct brw_vertex_info old = brw->vb.info; in brw_merge_inputs()
267 for (i = 0; i < brw->vb.nr_buffers; i++) { in brw_merge_inputs()
268 drm_intel_bo_unreference(brw->vb.buffers[i].bo); in brw_merge_inputs()
269 brw->vb.buffers[i].bo = NULL; in brw_merge_inputs()
271 brw->vb.nr_buffers = 0; in brw_merge_inputs()
273 memset(&brw->vb.info, 0, sizeof(brw->vb.info)); in brw_merge_inputs()
[all …]
/external/jmonkeyengine/engine/src/core/com/jme3/scene/
DMesh.java237 for (VertexBuffer vb : buffersList.getArray()){ in deepClone()
238 VertexBuffer bufClone = vb.clone(); in deepClone()
239 clone.buffers.put(vb.getBufferType().ordinal(), bufClone); in deepClone()
540 for (VertexBuffer vb : buffersList.getArray()){ in setStatic()
541 vb.setUsage(Usage.Static); in setStatic()
551 for (VertexBuffer vb : buffersList.getArray()){ in setDynamic()
552 vb.setUsage(Usage.Dynamic); in setDynamic()
562 for (VertexBuffer vb : buffersList.getArray()){ in setStreamed()
563 vb.setUsage(Usage.Stream); in setStreamed()
583 VertexBuffer vb = vbs.get(i); in setInterleaved() local
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/
DTriangleCollector.java135 VertexBuffer vb = ent.getValue(); in gatherTris() local
136 if (vb.getBufferType() == Type.Index) in gatherTris()
142 Buffer b = VertexBuffer.createBuffer(vb.getFormat(), in gatherTris()
143 vb.getNumComponents(), in gatherTris()
146 VertexBuffer outVb = new VertexBuffer(vb.getBufferType()); in gatherTris()
147 outVb.setNormalized(vb.isNormalized()); in gatherTris()
148 outVb.setupData(vb.getUsage(), vb.getNumComponents(), vb.getFormat(), b); in gatherTris()
195 VertexBuffer vb = ent.getValue(); in gatherTris() local
196 if (vb.getBufferType() == Type.Index) in gatherTris()
199 VertexBuffer outVb = out.getBuffer(vb.getBufferType()); in gatherTris()
[all …]
/external/jmonkeyengine/engine/src/tools/jme3tools/converters/model/
DFloatToFixed.java117 VertexBuffer vb = mesh.getBuffer(Type.Index); in compressIndexBuffer() local
119 if (vb.getFormat() == Format.UnsignedInt && vertCount <= 0xffff){ in compressIndexBuffer()
124 }else if (vb.getFormat() == Format.UnsignedShort && vertCount <= 0xff){ in compressIndexBuffer()
131 Buffer newBuf = VertexBuffer.createBuffer(targetFmt, vb.getNumComponents(), src.size()); in compressIndexBuffer()
134 newVb.setupData(vb.getUsage(), vb.getNumComponents(), targetFmt, newBuf); in compressIndexBuffer()
181 public static VertexBuffer convertToUByte(VertexBuffer vb){ in convertToUByte() argument
182 FloatBuffer fb = (FloatBuffer) vb.getData(); in convertToUByte()
186 VertexBuffer newVb = new VertexBuffer(vb.getBufferType()); in convertToUByte()
187 newVb.setupData(vb.getUsage(), in convertToUByte()
188 vb.getNumComponents(), in convertToUByte()
[all …]
DModelConverter.java141 VertexBuffer vb = entry.getValue(); in optimize() local
142 if (vb == null || vb.getBufferType() == Type.Index) in optimize()
145 if (vb.getFormat() == Format.Float){ in optimize()
146 if (vb.getBufferType() == Type.Color){ in optimize()
148 vb = FloatToFixed.convertToUByte(vb); in optimize()
149 vb.setNormalized(true); in optimize()
153 vb = FloatToFixed.convertToFixed(vb); in optimize()
156 mesh.clearBuffer(vb.getBufferType()); in optimize()
157 mesh.setBuffer(vb); in optimize()
/external/jmonkeyengine/engine/src/android/com/jme3/renderer/android/
DOGLESShaderRenderer.java2078 public void updateBufferData(VertexBuffer vb) { in updateBufferData() argument
2081 logger.info("updateBufferData(" + vb + ")"); in updateBufferData()
2084 int bufId = vb.getId(); in updateBufferData()
2095 vb.setId(bufId); in updateBufferData()
2096 objManager.registerForCleanup(vb); in updateBufferData()
2103 if (vb.getBufferType() == VertexBuffer.Type.Index) { in updateBufferData()
2137 int usage = convertUsage(vb.getUsage()); in updateBufferData()
2138 vb.getData().clear(); in updateBufferData()
2140 if (created || vb.hasDataSizeChanged()) { in updateBufferData()
2142 int size = vb.getData().capacity() * vb.getFormat().getComponentSize(); in updateBufferData()
[all …]
/external/jmonkeyengine/engine/src/test/jme3test/light/
DTestTangentGen.java113 FloatBuffer vb = BufferUtils.createFloatBuffer(3*3*3); // 3 rows * 3 columns * 3 floats in createTriangleStripMesh() local
114 vb.rewind(); in createTriangleStripMesh()
115 vb.put(new float[]{0,2,0}); vb.put(new float[]{1,2,0}); vb.put(new float[]{2,2,0}); in createTriangleStripMesh()
116 vb.put(new float[]{0,1,0}); vb.put(new float[]{1,1,0}); vb.put(new float[]{2,1,0}); in createTriangleStripMesh()
117 vb.put(new float[]{0,0,0}); vb.put(new float[]{1,0,0}); vb.put(new float[]{2,0,0}); in createTriangleStripMesh()
131 strip.setBuffer(Type.Position, 3, vb); in createTriangleStripMesh()
/external/clang/test/SemaCXX/
Ddestructor.cpp244 VB vb; use(vb); in nowarnstack() local
270 VB* vb = new VB[4]; in nowarnarray() local
271 delete[] vb; in nowarnarray()
297 VB* vb = new VB(); in nowarn0() local
298 delete vb; in nowarn0()
301 VB* vb = new VD(); in nowarn0() local
302 delete vb; in nowarn0()
335 simple_ptr<VB> vb(new VB()); in nowarn1() local
336 use(*vb); in nowarn1()
339 simple_ptr<VB> vb(new VD()); in nowarn1() local
[all …]
/external/skia/src/gpu/glsl/
DGrGLSLGeometryProcessor.cpp27 void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb, in emitTransforms() argument
74 vb->codeAppendf("%s = (%s * vec3(%s, 1)).xy;", in emitTransforms()
78 vb->codeAppendf("{ vec3 temp = %s * %s;", uniName, posVar.c_str()); in emitTransforms()
79 vb->codeAppendf("%s = vec2(temp.x/temp.z, temp.y/temp.z); }", v.vsOut()); in emitTransforms()
83 vb->codeAppendf("%s = %s * vec3(%s, 1);", in emitTransforms()
86 vb->codeAppendf("%s = %s * %s;", v.vsOut(), uniName, posVar.c_str()); in emitTransforms()
91 vb->codeAppendf("%s = (%s * vec3(%s, 1)).xy;", v.vsOut(), uniName, localCoords); in emitTransforms()
93 vb->codeAppendf("%s = %s * vec3(%s, 1);", v.vsOut(), uniName, localCoords); in emitTransforms()
100 void GrGLSLGeometryProcessor::emitTransforms(GrGLSLVertexBuilder* vb, in emitTransforms() argument
120 vb->codeAppendf("%s = %s;", v.vsOut(), localCoords); in emitTransforms()
/external/mesa3d/src/mesa/tnl/
Dt_pipeline.c80 if (tnl->vb.AttribPtr[i]->size != tnl->pipeline.last_attrib_size[i] || in check_input_changes()
81 tnl->vb.AttribPtr[i]->stride != tnl->pipeline.last_attrib_stride[i]) { in check_input_changes()
82 tnl->pipeline.last_attrib_size[i] = tnl->vb.AttribPtr[i]->size; in check_input_changes()
83 tnl->pipeline.last_attrib_stride[i] = tnl->vb.AttribPtr[i]->stride; in check_input_changes()
98 if (tnl->vb.ResultPtr[i]->size != tnl->last_result_size[i] || in check_output_changes()
99 tnl->vb.ResultPtr[i]->stride != tnl->last_result_stride[i]) { in check_output_changes()
100 tnl->last_result_size[i] = tnl->vb.ResultPtr[i]->size; in check_output_changes()
101 tnl->last_result_stride[i] = tnl->vb.ResultPtr[i]->stride; in check_output_changes()
122 if (!tnl->vb.Count) in _tnl_run_pipeline()
/external/libvorbis/test/
Dwrite_read.c41 vorbis_block vb; in write_vorbis_data_or_die() local
63 vorbis_block_init (&vd,&vb); in write_vorbis_data_or_die()
101 while (vorbis_analysis_blockout (&vd,&vb) == 1) { in write_vorbis_data_or_die()
102 vorbis_analysis (&vb,NULL); in write_vorbis_data_or_die()
103 vorbis_bitrate_addblock (&vb); in write_vorbis_data_or_die()
122 vorbis_block_clear (&vb); in write_vorbis_data_or_die()
143 vorbis_block vb; in read_vorbis_data_or_die() local
235 vorbis_block_init (&vd,&vb); in read_vorbis_data_or_die()
258 if (vorbis_synthesis (&vb,&op) == 0) in read_vorbis_data_or_die()
259 vorbis_synthesis_blockin(&vd,&vb); in read_vorbis_data_or_die()
[all …]
/external/mesa3d/src/gallium/drivers/nv30/
Dnv30_vbo.c37 nv30_emit_vtxattr(struct nv30_context *nv30, struct pipe_vertex_buffer *vb, in nv30_emit_vtxattr() argument
42 struct nv04_resource *res = nv04_resource(vb->buffer); in nv30_emit_vtxattr()
46 data = nouveau_resource_map_offset(&nv30->base, res, vb->buffer_offset + in nv30_emit_vtxattr()
93 struct pipe_vertex_buffer *vb; in nv30_prevalidate_vbufs() local
101 vb = &nv30->vtxbuf[i]; in nv30_prevalidate_vbufs()
102 if (!vb->stride || !vb->buffer) /* NOTE: user_buffer not implemented */ in nv30_prevalidate_vbufs()
104 buf = nv04_resource(vb->buffer); in nv30_prevalidate_vbufs()
107 if (!nouveau_resource_mapped_by_gpu(vb->buffer)) { in nv30_prevalidate_vbufs()
114 assert(vb->stride > vb->buffer_offset); in nv30_prevalidate_vbufs()
137 struct pipe_vertex_buffer *vb = &nv30->vtxbuf[b]; in nv30_update_user_vbufs() local
[all …]
/external/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/
DMeshLoader.java95 private VertexBuffer vb; field in MeshLoader
126 vb = null; in startDocument()
200 vb = new VertexBuffer(VertexBuffer.Type.Index); in startFaces()
204 vb.setupData(Usage.Static, indicesPerFace, Format.UnsignedShort, sb); in startFaces()
208 vb.setupData(Usage.Static, indicesPerFace, Format.UnsignedInt, ib); in startFaces()
210 mesh.setBuffer(vb); in startFaces()
394 vb = new VertexBuffer(Type.Position); in startVertexBuffer()
396 vb.setupData(Usage.Static, 3, Format.Float, fb); in startVertexBuffer()
397 mesh.setBuffer(vb); in startVertexBuffer()
400 vb = new VertexBuffer(Type.Normal); in startVertexBuffer()
[all …]
/external/libvorbis/include/vorbis/
Dcodec.h176 extern int vorbis_block_init(vorbis_dsp_state *v, vorbis_block *vb);
177 extern int vorbis_block_clear(vorbis_block *vb);
195 extern int vorbis_analysis_blockout(vorbis_dsp_state *v,vorbis_block *vb);
196 extern int vorbis_analysis(vorbis_block *vb,ogg_packet *op);
198 extern int vorbis_bitrate_addblock(vorbis_block *vb);
209 extern int vorbis_synthesis(vorbis_block *vb,ogg_packet *op);
210 extern int vorbis_synthesis_trackonly(vorbis_block *vb,ogg_packet *op);
211 extern int vorbis_synthesis_blockin(vorbis_dsp_state *v,vorbis_block *vb);

123456789