History

avfilter/vf_v360: support input flips for tetrahedron format

Paul B Mahol committed 6 years ago

Commit d033f401 parent 05d3d091 file · +3 −3Browse files

Showing the changes to libavfilter (1 of 1 file). Show all

Unified · Split

libavfilter/vf_v360.c+3−3
@@ -2647,13 +2647,13 @@ static void xyz_to_tetrahedron(const V360Context *s, · 2646 unmodified lines
2647 y = vec[1] / d;2647 y = vec[1] / d;
2648 z = -vec[2] / d;2648 z = -vec[2] / d;
2649 2649
2650 vf = 0.5f - y * 0.5f;2650 vf = 0.5f - y * 0.5f * s->input_mirror_modifier[1];
2651 2651
2652 if ((x + y >= 0.f && y + z >= 0.f && -z - x <= 0.f) ||2652 if ((x + y >= 0.f && y + z >= 0.f && -z - x <= 0.f) ||
2653 (x + y <= 0.f && -y + z >= 0.f && z - x >= 0.f)) {2653 (x + y <= 0.f && -y + z >= 0.f && z - x >= 0.f)) {
2654 uf = 0.25f * x + 0.25f;2654 uf = 0.25f * x * s->input_mirror_modifier[0] + 0.25f;
2655 } else {2655 } else {
2656 uf = 0.75f - 0.25f * x;2656 uf = 0.75f - 0.25f * x * s->input_mirror_modifier[0];
2657 }2657 }
2658 2658
2659 uf *= width;2659 uf *= width;

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