search for: lpos

Displaying 10 results from an estimated 10 matches for "lpos".

Did you mean: los
2005 Sep 30
2
Reg. FLAC decoding
...ettings.PcmCdaParams.BitsPerSample = BitsPerSample; pThis->m_AudioSettings.PcmCdaParams.SamplingFrequency = FLAC__seekable_stream_decoder_get_sample_rate (pThis->m_Decoder); pThis->ApplyAudioDecoderSettingsOnTheFly (); unsigned char *LChannel, *RChannel; unsigned int RPos, LPos; LChannel = RChannel = (unsigned char *)buffer[0]; if (Channels > 1) RChannel = (unsigned char *)buffer[1]; BytesPerSample = BitsPerSample >> 3; LPos = RPos = 0; /* Copy the decoded audio data to the DMA buffer. We have to * interleave the channels. When the DMA buffer i...
2005 Sep 30
0
Re: Reg. FLAC decoding
...n buffer[] as packed 16 bit numbers. but all samples in buffer[] are 32-bit signed integers in host order, regardless of the bits-per-sample of the frame. so to get them down to shorts (assuming they'll fit), do like: FLAC__int32 * LChannel = buffer[0]; short TempSource = (short)LChannel[LPos]; instead of LChannel = (unsigned char *)buffer[0]; short * TempSource = (short *)&LChannel[LPos]; etc. also, it's probably faster and safer to get the #channels, bits-per-sample, and sample rate from the the frame header itself, e.g. channels = frame->header.channels sample...
2005 Oct 06
2
Re: Reg. FLAC decoding
...wrote: > but all samples in buffer[] are 32-bit signed integers in host > order, regardless of the bits-per-sample of the frame. so to get > them down to shorts (assuming they'll fit), do like: > > FLAC__int32 * LChannel = buffer[0]; > short TempSource = (short)LChannel[LPos]; > > instead of > > LChannel = (unsigned char *)buffer[0]; > short * TempSource = (short *)&LChannel[LPos]; > let me know if this works or if you have other questions. I tried this., but still i dont get the proper output. I'm still debugging with the decoder. I...
2012 Jan 30
1
about changing line type and line width in Taylor Diagram
...<-c(0.0120621,0.0117936,0.00854782,0.00734006,0.00669576,0.00629334,0.00595018,0.00564455,0.00396859,0.000991006,0.000171742,9.68E-06,8.10E-05,0.000186982,0.00018854,0.000136548,0.000104581,9.18E-05,6.20E-05) taylor.diagram(ref,m7,add=TRUE,pch=19,col="cyan",lty="solid",lwd=3) lpos<-3.5*sd(ref) legend(.75*lpos,1.5*lpos,legend=c("1111","1171","1211","2121","2221","4141","5251"),pch=19,col=c("red","blue","orange","pink","purple","brown","cyan...
2010 Jan 06
1
How to get bubbles on times series plot
...ENTREE.dec <- decaverage(ENTREE.ts, order=variable, sides=2, ends="fill") plot(ENTREE.dec, col=c(1, 4), xlab="temps",ylab="Nombre d'entr?es",main=paste("Moyenne mobile d'ordre ",variable," sous R"), stack=FALSE, resid=FALSE, lpos=c(50, 12.3)) } lissage(100) My code gives this: http://n4.nabble.com/file/n1008225/mb.png but i want that: http://n4.nabble.com/file/n1008225/mboriginal.png I can't find the option to change into bubbles. Can you help me? Thanks. -- View this message in context: http://n4.nabble.com/How-to-g...
2016 Sep 10
0
[PATCH] gm107: separate out sched decoding from regular ops
...struct struct iasctx c = { isa, varinfo }; struct iasctx *ctx = &c; convert_insn(ctx, insn); - struct matches *m = atomtab_a(ctx, isa->troot, 0); + struct matches *m = atomtab_a(ctx, isa->trootas ?: isa->troot, 0); int i; for (i = 0; i < m->mnum; i++) if (m->m[i].lpos == ctx->atomsnum) { diff --git a/envydis/core-dis.c b/envydis/core-dis.c index 9d9ca5b..f4af5f2 100644 --- a/envydis/core-dis.c +++ b/envydis/core-dis.c @@ -489,7 +489,10 @@ struct dis_res *do_dis(struct decoctx *deco, uint32_t cur) { } ctx->isa = deco->isa; ctx->varinfo = deco-&g...
2014 Jun 17
0
[PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...void *); int nvc0_screen_tsc_alloc(struct nvc0_screen *, void *); -int nve4_screen_compute_setup(struct nvc0_screen *, struct nouveau_pushbuf *); -int nvc0_screen_compute_setup(struct nvc0_screen *, struct nouveau_pushbuf *); - boolean nvc0_screen_resize_tls_area(struct nvc0_screen *, uint32_t lpos, uint32_t lneg, uint32_t cstack); -static INLINE void -nvc0_resource_fence(struct nv04_resource *res, uint32_t flags) -{ - struct nvc0_screen *screen = nvc0_screen(res->base.screen); - - if (res->mm) { - nouveau_fence_ref(screen->base.fence.c...
2014 Jun 17
2
[PATCH try 2 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 ++++++++++++------------- src/gallium/drivers/nouveau/nouveau_fence.h | 22 +++++-- src/gallium/drivers/nouveau/nouveau_screen.c | 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h | 14 ++--- src/gallium/drivers/nouveau/nv30/nv30_context.c | 4 +-
2014 Jun 21
3
[Mesa-dev] [PATCH try 2 2/2] gallium/nouveau: move pushbuf and fences to context
...een_tsc_alloc(struct nvc0_screen *, void *); > > -int nve4_screen_compute_setup(struct nvc0_screen *, struct nouveau_pushbuf *); > -int nvc0_screen_compute_setup(struct nvc0_screen *, struct nouveau_pushbuf *); > - > boolean nvc0_screen_resize_tls_area(struct nvc0_screen *, uint32_t lpos, > uint32_t lneg, uint32_t cstack); > > -static INLINE void > -nvc0_resource_fence(struct nv04_resource *res, uint32_t flags) > -{ > - struct nvc0_screen *screen = nvc0_screen(res->base.screen); > - > - if (res->mm) { > -...
2014 Jun 16
2
[PATCH 1/2] gallium/nouveau: decouple nouveau_fence implementation from screen
Signed-off-by: Maarten Lankhorst <maarten.lankhorst at canonical.com> --- src/gallium/drivers/nouveau/nouveau_fence.c | 76 ++++++++++++------------- src/gallium/drivers/nouveau/nouveau_fence.h | 22 +++++-- src/gallium/drivers/nouveau/nouveau_screen.c | 9 +++ src/gallium/drivers/nouveau/nouveau_screen.h | 14 ++--- src/gallium/drivers/nouveau/nv30/nv30_context.c | 4