|
|
@ -23,14 +23,14 @@ |
|
|
|
* 360 video conversion filter. |
|
|
|
* 360 video conversion filter. |
|
|
|
* Principle of operation: |
|
|
|
* Principle of operation: |
|
|
|
* |
|
|
|
* |
|
|
|
* (for each pixel in output frame)\n |
|
|
|
* (for each pixel in output frame) |
|
|
|
* 1) Calculate OpenGL-like coordinates (x, y, z) for pixel position (i, j)\n |
|
|
|
* 1) Calculate OpenGL-like coordinates (x, y, z) for pixel position (i, j) |
|
|
|
* 2) Apply 360 operations (rotation, mirror) to (x, y, z)\n |
|
|
|
* 2) Apply 360 operations (rotation, mirror) to (x, y, z) |
|
|
|
* 3) Calculate pixel position (u, v) in input frame\n |
|
|
|
* 3) Calculate pixel position (u, v) in input frame |
|
|
|
* 4) Calculate interpolation window and weight for each pixel |
|
|
|
* 4) Calculate interpolation window and weight for each pixel |
|
|
|
* |
|
|
|
* |
|
|
|
* (for each frame)\n |
|
|
|
* (for each frame) |
|
|
|
* 5) Remap input frame to output frame using precalculated data\n |
|
|
|
* 5) Remap input frame to output frame using precalculated data |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
|
|
|
|
|
|
|
|
#include "libavutil/eval.h" |
|
|
|
#include "libavutil/eval.h" |
|
|
|