Displaying 19 results from an estimated 19 matches for "num_sample".
Did you mean:
num_samples
2014 Aug 30
3
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
On 30/08/14 23:02, Ilia Mirkin wrote:
> Samplers are only defined up to num_samplers, so set all samplers above
> nr to NULL so that we don't try to read them again later.
>
Would it be worth doing a similar thing with the unlocked samplers below the
nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or
perhaps I'm missing something ?
-Emil...
2005 Jun 05
0
[PATCH] line endings fix
...replaygain.org/
- */
-
-/*
- * Here's the deal. Call
- *
- * InitGainAnalysis ( long samplefreq );
- *
- * to initialize everything. Call
- *
- * AnalyzeSamples ( const Float_t* left_samples,
- * const Float_t* right_samples,
- * size_t num_samples,
- * int num_channels );
- *
- * as many times as you want, with as many or as few samples as you want.
- * If mono, pass the sample buffer in through left_samples, leave
- * right_samples NULL, and make sure num_channels = 1.
- *
- * GetTitleGain()
- *
- * w...
2005 Jun 04
2
[PATCH] line endings fix
The replay gain code has dos line endings in CVS, which causes problems
for the Sun compiler, among others. Attached is a patch for the lazy,
but it's probably easier to fix locally and commit.
-r
2014 Aug 30
2
[PATCH 1/2] nvc0/ir: avoid infinite recursion when finding first uses of tex
In certain circumstances, findFirstUses could end up doubling back on
instructions it had already processed, resulting in an infinite
recursion. Avoid this by keeping track of already-visited instructions.
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=83079
Tested-by: Tobias Klausmann <tobias.johannes.klausmann at mni.thm.de>
Signed-off-by: Ilia Mirkin <imirkin at
2007 Nov 07
1
thumbnailer/swfdec-thumbnailer.c
thumbnailer/swfdec-thumbnailer.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
New commits:
commit a31d0686b78df2da96b9d8d1e3220e63978bba30
Author: Benjamin Otte <otte at gnome.org>
Date: Wed Nov 7 20:02:04 2007 +0100
s/swfdec_player_get_image_size/swfdec_player_get_default_size/
diff --git a/thumbnailer/swfdec-thumbnailer.c b/thumbnailer/swfdec-thumbnailer.c
index
2005 Jun 22
1
Newbie - Encoding PCM
...peex 1.0.5 for its quality
in voice encoding. I've tried to implement an encoder but unsuccesfully.
Here's my code:
/* ============ SPEEX stream ENCODER
============================================ */
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
/* buffer point to the output buffer
PCM point to the numsamples bytes 8bit - 8Khz PCM from the modem
num_samples is, commonly, 16000
*/
int ret,c,d;
short int PCM_F[160];
for(c=0;c<num_samples;c++) {
/* tempbuf 0<-127->256 */
/* pcmbuff -32786 <- 0 -> +32786 */...
2014 Aug 31
2
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
On 31/08/14 00:34, Ilia Mirkin wrote:
> On Sat, Aug 30, 2014 at 7:30 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>> On 30/08/14 23:02, Ilia Mirkin wrote:
>>> Samplers are only defined up to num_samplers, so set all samplers above
>>> nr to NULL so that we don't try to read them again later.
>>>
>> Would it be worth doing a similar thing with the unlocked samplers below the
>> nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or
>>...
2014 Aug 30
0
[PATCH 2/2] nv50: zero out unbound samplers
Samplers are only defined up to num_samplers, so set all samplers above
nr to NULL so that we don't try to read them again later.
Tested-by: Christian Ruppert <idl0r at qasl.de>
Signed-off-by: Ilia Mirkin <imirkin at alum.mit.edu>
Cc: "10.2 10.3" <mesa-stable at lists.freedesktop.org>
---
src/gallium/driver...
2014 Aug 30
0
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
On Sat, Aug 30, 2014 at 7:30 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 30/08/14 23:02, Ilia Mirkin wrote:
>> Samplers are only defined up to num_samplers, so set all samplers above
>> nr to NULL so that we don't try to read them again later.
>>
> Would it be worth doing a similar thing with the unlocked samplers below the
> nr mark ? It seems to me that we might be leaking nv50->samplers[s][i], or
> perhaps I'm miss...
2012 Jun 28
3
Storing results in a single file after looping over all files
...?? 0.9
3??? 1???? 0.1?? 0.2?? 1.5
......
..
My code is as follows:
files <- list.files(pattern="*.raw")
for(i in files){
of <- strsplit(i, "\\.")[[1]]
of <- paste(head(of, 1))
data <- read.table(file=i, header=T)
y<-data$PHI
num<-length(y)
index1<-c(1:num_sample)[y==1]
index2<-c(1:num_sample)[y==0]
gen<-as.matrix(data[,-c(1:2)])
source("pcc.R") # a function for my use
out<- fpc_func(gen,num,index1,index2)
out1<-as.data.frame(out)
id1<-data[,2]
id<- as.data.frame(iid1)
out2<-cbind(iid1,out1)
colnames(out2)[2] <- of
}
writ...
2005 Oct 19
1
Lists and Binary Operators.
Dear R Users,
Any insights into why the following occurs would be helpful....
Firstly:
#Evaluating proportions
p<-as.list(rep(0,times=length(n))) #creating object of appropriate size.
for(j in 1:length(n)){
for(k in 1:length(n[[j]])){
p[[j]][[k]]<- (s[[j]][[k]]/n[[j]][k])}} # 31 x k x num_samples(dim)
where k varies
The list object s[[j]][[k]] has 3 levels, j, k, and i. j represents the
review number, k the study number in that review, and i is the number of
simulations in that study. n[[j]][k] is also a list object with 2
levels that represents the number of patients in study k of revie...
2009 Jan 31
2
[LLVMdev] -msse3 can degrade performance
...I = 16;
else I--;
R->i = I;
if (J == 0)
J = 16 ;
else J--;
R->j = J;
if (R->haveRange)
return R->left + dm1 * (double) k * R->width;
else
return dm1 * (double) k;
}
double MonteCarlo_integrate(int Num_samples)
{
Random R = new_Random_seed(SEED);
int under_curve = 0;
int count;
for (count=0; count<Num_samples; count++)
{
double x= Random_nextDouble(R);
double y= Random_nextDouble(R);
if ( x*x + y*y <= 1.0)
under_curve...
2016 Jul 05
3
ayuda frecuencia asistencia clase
Estimados usurios-R:
Tengo una lista de alumnos.
Hay alguna forma de sacar una tabla de frecuencias por la asistencia a
clases mensual.
Es decir cuantos días concurrió cada alumno en el mes.
Supongamos que la lista está conformada por ocho alumnos, el curso duró 4
días y quiero saber cuantos días concurrió cada uno al curso poniendolo en
la columna mes.
Quisiera obtener un cuadro así:
Alumnos
2005 Jun 30
0
speex_encode segfault
Hi,
i'm following encoder example in the manual.pdf of speex documentation. Here's
my portion of code:
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
int ret,c,d=0,nbBytes,ttBytes=0;
float PCM_F[160];
char cBits[200];
#ifndef DISABLESPEEX
speex_bits_reset(&IDA->speex_bits);
for(c=0;c<num_samples;c++) {
PCM_F[d] = (float)((int)PCM[c] << 8) - 32640;
if(d >= 159) {
speex_encode(IDA->speex_state,...
2005 Jul 03
0
speex_encode segfault
Hi,
i'm following encoder example in the manual.pdf of speex documentation. Here's
my portion of code:
int SPEEX_EncodePCM(struct _IDA_ClientSocket *IDA,char *buffer,unsigned char
*PCM,int num_samples) {
int ret,c,d=0,nbBytes,ttBytes=0;
float PCM_F[160];
char cBits[200];
#ifndef DISABLESPEEX
speex_bits_reset(&IDA->speex_bits);
for(c=0;c<num_samples;c++) {
PCM_F[d] = (float)((int)PCM[c] << 8) - 32640;
if(d >= 159) {
speex_encode(IDA->speex_state,...
2010 Nov 10
0
bug fix for speex_resampler_reset_mem?
I'm using resample.c from speex in my project, and was testing it by
processing the same waveform twice, with a reset() call in the middle,
as follows:
short *input_data = read_waveform_as_linear(infileName, &rate,
&num_samples, &num_channels);
SpeexResamplerState *state = speex_resampler_init_frac(num_channels,
in_rate, out_rate, in_rate, out_rate, quality, &error);
speex_resampler_skip_zeros(state);
speex_resampler_process_int(state, 0, input_data, ...)
write_waveform(...)
speex_resampler_reset_mem(m_resampler...
2014 Aug 31
0
[Mesa-stable] [PATCH 2/2] nv50: zero out unbound samplers
...M, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> On 31/08/14 00:34, Ilia Mirkin wrote:
>> On Sat, Aug 30, 2014 at 7:30 PM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
>>> On 30/08/14 23:02, Ilia Mirkin wrote:
>>>> Samplers are only defined up to num_samplers, so set all samplers above
>>>> nr to NULL so that we don't try to read them again later.
>>>>
>>> Would it be worth doing a similar thing with the unlocked samplers below the
>>> nr mark ? It seems to me that we might be leaking nv50->samplers[s][...
2014 Nov 27
0
[Mesa-dev] [RFC] tegra: Initial support
...context->gpu->create_sampler_state(context->gpu, cso);
> +}
> +
> +static void
> +tegra_bind_sampler_states(struct pipe_context *pcontext,
> + unsigned shader,
> + unsigned start_slot,
> + unsigned num_samplers,
> + void **samplers)
> +{
> + struct tegra_context *context = to_tegra_context(pcontext);
> +
> + context->gpu->bind_sampler_states(context->gpu, shader, start_slot,
> + num_samplers, samplers)...
2014 Nov 27
7
[RFC] tegra: Initial support
...ampler_state *cso)
+{
+ struct tegra_context *context = to_tegra_context(pcontext);
+
+ return context->gpu->create_sampler_state(context->gpu, cso);
+}
+
+static void
+tegra_bind_sampler_states(struct pipe_context *pcontext,
+ unsigned shader,
+ unsigned start_slot,
+ unsigned num_samplers,
+ void **samplers)
+{
+ struct tegra_context *context = to_tegra_context(pcontext);
+
+ context->gpu->bind_sampler_states(context->gpu, shader, start_slot,
+ num_samplers, samplers);
+}
+
+static void
+tegra_delete_sampler_state(struct pipe_context *pcontext,
+ void *so)...