Commit 82e6711c authored by cehoyos's avatar cehoyos

Calculate gradient from parameter instead of using a global variable.


git-svn-id: file:///var/local/repositories/ffmpeg/trunk@19482 9553f0bf-9b14-0410-a0b8-cfaf0461ba5b
parent c1e6ee7f
...@@ -197,8 +197,8 @@ static int ipol(uint8_t *src, int x, int y){ ...@@ -197,8 +197,8 @@ static int ipol(uint8_t *src, int x, int y){
static void gen_image(int num, int w, int h) static void gen_image(int num, int w, int h)
{ {
const int c = h_cos [teta]; const int c = h_cos [num % 360];
const int s = h_sin [teta]; const int s = h_sin [num % 360];
const int xi = -(w/2) * c; const int xi = -(w/2) * c;
const int yi = (w/2) * s; const int yi = (w/2) * s;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment