Displaying 3 results from an estimated 3 matches for "render_line0".
Did you mean:
render_line
2009 Aug 21
1
Floor1 encode/decode and FLOOR1_fromdB_LOOKUP
Hello,
I have two questions concerning floor1 encoding/decoding. First I'll ask
about the FLOOR1_fromdB_LOOKUP table: what is it's purpose? Is it to convert
the amplitude differences between [floor1_Y] values to a dB scale? And, if
I'm right with that, here comes the 2nd question: when render_line0 is used
to encode floor1, then floor1_inverse2 must be used in decode (in order to
convert to dB scale), and, in the other hand, if render_line is used to
encode, then floor1_inverse1 must be used in decode (render_line converts to
dB and therefore floor1_inverse1 gets the amplitudes in dB). If all...
2006 Mar 02
0
Lancer 20060302 is out
...r 20060302 (based on aoTuV 4.51)
http://homepage3.nifty.com/blacksword/
Changes:
* update to oggenc v2.81
* optimized SSE2 code implementation
* bark_noise_hybridmp and seed_curve are inline assembled
* modified mdct_forward's SSE optimization
* double step bresebham algorithm for render_line, render_line0
implementation
2001 Oct 12
2
FLOOR_fromdB_LOOKUP
...;
int x=x0;
int y=y0;
int err=0;
ady-=abs(base*adx);
d[x]*=*((float *)&FLOOR_fromdB_LOOKUP[y]);
while(++x<x1){
err=err+ady;
if(err>=adx){
err-=adx;
y+=sy;
}else{
y+=base;
}
d[x]*=*((float *)&FLOOR_fromdB_LOOKUP[y]);
}
}
tatic void render_line0(int x0,int x1,int y0,int y1,float *d){
int dy=y1-y0;
int adx=x1-x0;
int ady=abs(dy);
int base=dy/adx;
int sy=(dy<0?base-1:base+1);
int x=x0;
int y=y0;
int err=0;
ady-=abs(base*adx);
d[x]=*((float *)&FLOOR_fromdB_LOOKUP[y]);
while(++x<x1){
err=err+ady;
if(er...