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

Unified · Split

libavfilter/vf_v360.c+3−3
@@ -2647,13 +2647,13 @@ static void xyz_to_tetrahedron(const V360Context *s, · 2646 unmodified lines
26472647 y = vec[1] / d;
26482648 z = -vec[2] / d;
26492649
2650− vf = 0.5f - y * 0.5f;
2650+ vf = 0.5f - y * 0.5f * s->input_mirror_modifier[1];
26512651
26522652 if ((x + y >= 0.f && y + z >= 0.f && -z - x <= 0.f) ||
26532653 (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;
26552655 } else {
2656− uf = 0.75f - 0.25f * x;
2656+ uf = 0.75f - 0.25f * x * s->input_mirror_modifier[0];
26572657 }
26582658
26592659 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