/external/libvorbis/lib/ |
D | synthesis.c | 26 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 …]
|
D | block.c | 88 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 …]
|
D | mapping0.c | 238 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 …]
|
D | analysis.c | 30 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 …]
|
D | bitrate.c | 64 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 …]
|
D | floor0.c | 110 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 …]
|
D | res0.c | 413 static long **_01class(vorbis_block *vb,vorbis_look_residue *vl, in _01class() argument 425 long **partword=_vorbis_block_alloc(vb,ch*sizeof(*partword)); in _01class() 433 partword[i]=_vorbis_block_alloc(vb,n/samples_per_partition*sizeof(*partword[i])); in _01class() 480 static long **_2class(vorbis_block *vb,vorbis_look_residue *vl,int **in, in _2class() argument 492 long **partword=_vorbis_block_alloc(vb,sizeof(*partword)); in _2class() 499 partword[0]=_vorbis_block_alloc(vb,partvals*sizeof(*partword[0])); in _2class() 536 vorbis_block *vb,vorbis_look_residue *vl, in _01forward() argument 656 static int _01inverse(vorbis_block *vb,vorbis_look_residue *vl, in _01inverse() argument 668 int max=vb->pcmend>>1; in _01inverse() 678 partword[j]=_vorbis_block_alloc(vb,partwords*sizeof(*partword[j])); in _01inverse() [all …]
|
D | bitrate.h | 38 vorbis_block *vb; member 55 extern int vorbis_bitrate_managed(vorbis_block *vb); 56 extern int vorbis_bitrate_addblock(vorbis_block *vb);
|
/external/openssl/crypto/srp/ |
D | srp_vfy.c | 246 SRP_VBASE *vb = (SRP_VBASE *) OPENSSL_malloc(sizeof(SRP_VBASE)); in SRP_VBASE_new() local 248 if (vb == NULL) in SRP_VBASE_new() 250 if (!(vb->users_pwd = sk_SRP_user_pwd_new_null()) || in SRP_VBASE_new() 251 !(vb->gN_cache = sk_SRP_gN_cache_new_null())) in SRP_VBASE_new() 253 OPENSSL_free(vb); in SRP_VBASE_new() 256 vb->default_g = NULL; in SRP_VBASE_new() 257 vb->default_N = NULL; in SRP_VBASE_new() 258 vb->seed_key = NULL; in SRP_VBASE_new() 260 (vb->seed_key = BUF_strdup(seed_key)) == NULL) in SRP_VBASE_new() 262 sk_SRP_user_pwd_free(vb->users_pwd); in SRP_VBASE_new() [all …]
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/ |
D | Mesh.java | 237 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 …]
|
D | VertexBuffer.java | 886 VertexBuffer vb = (VertexBuffer) super.clone(); in clone() local 887 vb.handleRef = new Object(); in clone() 888 vb.id = -1; in clone() 894 vb.updateData(BufferUtils.clone(getDataReadOnly())); in clone() 897 return vb; in clone() 908 VertexBuffer vb = new VertexBuffer(overrideType); in clone() local 909 vb.components = components; in clone() 910 vb.componentsLength = componentsLength; in clone() 916 vb.data = BufferUtils.clone(getDataReadOnly()); in clone() 917 vb.format = format; in clone() [all …]
|
/external/jmonkeyengine/engine/src/tools/jme3tools/optimize/ |
D | TriangleCollector.java | 135 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/ |
D | FloatToFixed.java | 117 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 …]
|
D | ModelConverter.java | 141 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/ |
D | OGLESShaderRenderer.java | 2078 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/ |
D | TestTangentGen.java | 113 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/ |
D | destructor.cpp | 225 VB vb; use(vb); in nowarnstack() local 251 VB* vb = new VB[4]; in nowarnarray() local 252 delete[] vb; in nowarnarray() 278 VB* vb = new VB(); in nowarn0() local 279 delete vb; in nowarn0() 282 VB* vb = new VD(); in nowarn0() local 283 delete vb; in nowarn0() 316 simple_ptr<VB> vb(new VB()); in nowarn1() local 317 use(*vb); in nowarn1() 320 simple_ptr<VB> vb(new VD()); in nowarn1() local [all …]
|
/external/libvorbis/test/ |
D | write_read.c | 41 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/jmonkeyengine/engine/src/ogre/com/jme3/scene/plugins/ogre/ |
D | MeshLoader.java | 95 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/ |
D | codec.h | 176 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);
|
/external/jmonkeyengine/engine/src/lwjgl/com/jme3/renderer/lwjgl/ |
D | LwjglGL1Renderer.java | 912 public void setVertexAttrib(VertexBuffer vb, VertexBuffer idb) { in setVertexAttrib() argument 913 int arrayType = convertArrayType(vb.getBufferType()); in setVertexAttrib() 918 context.boundAttribs[vb.getBufferType().ordinal()] = vb; in setVertexAttrib() 920 if (vb.getBufferType() == Type.Normal) { in setVertexAttrib() 922 if (vb.isNormalized() && !context.normalizeEnabled) { in setVertexAttrib() 925 } else if (!vb.isNormalized() && context.normalizeEnabled) { in setVertexAttrib() 932 Buffer data = idb != null ? idb.getData() : vb.getData(); in setVertexAttrib() 933 int comps = vb.getNumComponents(); in setVertexAttrib() 934 int type = convertVertexFormat(vb.getFormat()); in setVertexAttrib() 938 switch (vb.getBufferType()) { in setVertexAttrib() [all …]
|
D | LwjglRenderer.java | 1990 public void updateBufferData(VertexBuffer vb) { in updateBufferData() argument 1991 int bufId = vb.getId(); in updateBufferData() 1997 vb.setId(bufId); in updateBufferData() 1998 objManager.registerForCleanup(vb); in updateBufferData() 2007 if (vb.getBufferType() == VertexBuffer.Type.Index) { in updateBufferData() 2027 int usage = convertUsage(vb.getUsage()); in updateBufferData() 2028 vb.getData().rewind(); in updateBufferData() 2030 if (created || vb.hasDataSizeChanged()) { in updateBufferData() 2032 switch (vb.getFormat()) { in updateBufferData() 2035 glBufferData(target, (ByteBuffer) vb.getData(), usage); in updateBufferData() [all …]
|
/external/libvorbis/examples/ |
D | encoder_example.c | 53 vorbis_block vb; /* local working space for packet->PCM decode */ in main() local 142 vorbis_block_init(&vd,&vb); in main() 212 while(vorbis_analysis_blockout(&vd,&vb)==1){ in main() 215 vorbis_analysis(&vb,NULL); in main() 216 vorbis_bitrate_addblock(&vb); in main() 242 vorbis_block_clear(&vb); in main()
|
/external/jmonkeyengine/engine/src/core/com/jme3/scene/debug/ |
D | WireFrustum.java | 70 VertexBuffer vb = getBuffer(Type.Position); in update() local 71 if (vb == null){ in update() 77 FloatBuffer a = (FloatBuffer) vb.getData(); in update() 83 vb.updateData(a); in update()
|
/external/jmonkeyengine/engine/src/core/com/jme3/collision/bih/ |
D | BIHTree.java | 81 private void initTriList(FloatBuffer vb, IndexBuffer ib) { in initTriList() argument 86 pointData[p++] = vb.get(vert++); in initTriList() 87 pointData[p++] = vb.get(vert++); in initTriList() 88 pointData[p++] = vb.get(vert); in initTriList() 91 pointData[p++] = vb.get(vert++); in initTriList() 92 pointData[p++] = vb.get(vert++); in initTriList() 93 pointData[p++] = vb.get(vert); in initTriList() 96 pointData[p++] = vb.get(vert++); in initTriList() 97 pointData[p++] = vb.get(vert++); in initTriList() 98 pointData[p++] = vb.get(vert); in initTriList() [all …]
|