Displaying 6 results from an estimated 6 matches for "render_line".
2002 Oct 15
5
Specification change requests
...ion / step 2:
Steps 11 and 12 should be performed outside and after the iteration
started in step 4. As far as I can see, performing these two steps
for each iteration makes no sense, as the values set in the vector
are overwritten by the later iterations.
11) if ( [hx] is less than [n] ) {
12) render_line( [hx], [hy], [n], [hy], [floor] )
}
It also does not make sense to use the expensive function render_line
to set all remaining elements in the vector to the same value, so
a better algorithm for this might be something like:
if ( [hx] is less than [n] ) {
iterate [i] over the range [hx] + 1 ....
2002 Sep 23
2
More errors in the file format specification Was: Test files for decoder implementation
...on / step 1: amplitude value synthesis
21) vector [floor1_final_Y] element [i] =
[predicted] - (([val] - 1) divided by 2 using integer division)
hould be:
21) vector [floor1_final_Y] element [i] =
[predicted] - (([val] + 1) divided by 2 using integer division)
<p>- in the function render_line
11) [ady] = [ady] - [base] * [adx]
hould be:
11) [ady] = [ady] - absolute value of [base] * [adx]
<p>Also, the parameter order of render_point(x0,x1,y0,y1,X) and render_line(x0,
y0, x1, y1, v) is not consistent, and the references to the render_line
function use different ordering:
- Fl...
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 al...
2002 Aug 13
1
Specification documents
...he distinction between [floor1_Y] and [floor1_final_Y] has to go
away, otherwise the following may do the trick:
move steps 25) .. 28) to the top, e.g. behind step 1)
in step 5) (but not in step 6) replace the two occurrences of
[floor1_Y] with [floor1_final_Y].
---
#3:
in helper.html, function render_line:
Replace 11) with
11) [ady] = [ady] - abs ( [base] ) * [adx]
---
That's all I can think of at the moment. Any comments?
Henning
<p>--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message...
2006 Mar 02
0
Lancer 20060302 is out
Lancer 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
...,
0x3E61F836,0x3E70A783,0x3E80258F,
0x3E887973,0x3E9157E1,0x3E9AC9DC,
0x3EA4D8F8,0x3EAF8F6D,0x3EBAF81A,
0x3EC71E95,0x3ED40F33,0x3EE1D716,
0x3EF0843C,0x3F0012C6,0x3F086571,
0x3F114293,0x3F1AB32B,0x3F24C0CE,
0x3F2F75B1,0x3F3ADCB2,0x3F470165,
0x3F53F01D,0x3F61B5FB,0x3F7060FB,
0x3F800000
};
tatic void render_line(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(e...