History

avfilter/vf_v360: improve equirect_to_xyz() quality

Paul B Mahol committed 6 years ago

Commit ebc88061 parent c48e5431 file · +2 −2Browse files

Unified · Split

libavfilter/vf_v360.c+2−2
@@ -1561,8 +1561,8 @@ static int equirect_to_xyz(const V360Context *s, · 1560 unmodified lines
1561 int i, int j, int width, int height,1561 int i, int j, int width, int height,
1562 float *vec)1562 float *vec)
1563{1563{
1564 const float phi = ((2.f * i) / width - 1.f) * M_PI;1564 const float phi = ((2.f * i + 0.5f) / width - 1.f) * M_PI;
1565 const float theta = ((2.f * j) / height - 1.f) * M_PI_2;1565 const float theta = ((2.f * j + 0.5f) / height - 1.f) * M_PI_2;
1566 1566
1567 const float sin_phi = sinf(phi);1567 const float sin_phi = sinf(phi);
1568 const float cos_phi = cosf(phi);1568 const float cos_phi = cosf(phi);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t