Showing the changes to libavfilter (1 of 1 file). Show all
Unified · Split
| @@ -717,7 +717,7 @@ static void normalize_vector(float *vec) · 716 unmodified lines | |||
| 717 | * Calculate 3D coordinates on sphere for corresponding cubemap position. | 717 | * Calculate 3D coordinates on sphere for corresponding cubemap position. |
| 718 | * Common operation for every cubemap. | 718 | * Common operation for every cubemap. |
| 719 | * | 719 | * |
| 720 | * @param s filter context | 720 | * @param s filter private context |
| 721 | * @param uf horizontal cubemap coordinate [0, 1) | 721 | * @param uf horizontal cubemap coordinate [0, 1) |
| 722 | * @param vf vertical cubemap coordinate [0, 1) | 722 | * @param vf vertical cubemap coordinate [0, 1) |
| 723 | * @param face face of cubemap | 723 | * @param face face of cubemap |
| @@ -781,7 +781,7 @@ static void cube_to_xyz(const V360Context *s, · 57 unmodified lines | |||
| 781 | * Calculate cubemap position for corresponding 3D coordinates on sphere. | 781 | * Calculate cubemap position for corresponding 3D coordinates on sphere. |
| 782 | * Common operation for every cubemap. | 782 | * Common operation for every cubemap. |
| 783 | * | 783 | * |
| 784 | * @param s filter context | 784 | * @param s filter private context |
| 785 | * @param vec coordinated on sphere | 785 | * @param vec coordinated on sphere |
| 786 | * @param uf horizontal cubemap coordinate [0, 1) | 786 | * @param uf horizontal cubemap coordinate [0, 1) |
| 787 | * @param vf vertical cubemap coordinate [0, 1) | 787 | * @param vf vertical cubemap coordinate [0, 1) |
| @@ -857,7 +857,7 @@ static void xyz_to_cube(const V360Context *s, · 69 unmodified lines | |||
| 857 | * Find position on another cube face in case of overflow/underflow. | 857 | * Find position on another cube face in case of overflow/underflow. |
| 858 | * Used for calculation of interpolation window. | 858 | * Used for calculation of interpolation window. |
| 859 | * | 859 | * |
| 860 | * @param s filter context | 860 | * @param s filter private context |
| 861 | * @param uf horizontal cubemap coordinate | 861 | * @param uf horizontal cubemap coordinate |
| 862 | * @param vf vertical cubemap coordinate | 862 | * @param vf vertical cubemap coordinate |
| 863 | * @param direction direction of view | 863 | * @param direction direction of view |
| @@ -1050,7 +1050,7 @@ static void process_cube_coordinates(const V360Context *s, · 186 unmodified lines | |||
| 1050 | /** | 1050 | /** |
| 1051 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap3x2 format. | 1051 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap3x2 format. |
| 1052 | * | 1052 | * |
| 1053 | * @param s filter context | 1053 | * @param s filter private context |
| 1054 | * @param i horizontal position on frame [0, width) | 1054 | * @param i horizontal position on frame [0, width) |
| 1055 | * @param j vertical position on frame [0, height) | 1055 | * @param j vertical position on frame [0, height) |
| 1056 | * @param width frame width | 1056 | * @param width frame width |
| @@ -1082,7 +1082,7 @@ static void cube3x2_to_xyz(const V360Context *s, · 25 unmodified lines | |||
| 1082 | /** | 1082 | /** |
| 1083 | * Calculate frame position in cubemap3x2 format for corresponding 3D coordinates on sphere. | 1083 | * Calculate frame position in cubemap3x2 format for corresponding 3D coordinates on sphere. |
| 1084 | * | 1084 | * |
| 1085 | * @param s filter context | 1085 | * @param s filter private context |
| 1086 | * @param vec coordinates on sphere | 1086 | * @param vec coordinates on sphere |
| 1087 | * @param width frame width | 1087 | * @param width frame width |
| 1088 | * @param height frame height | 1088 | * @param height frame height |
| @@ -1169,7 +1169,7 @@ static void xyz_to_cube3x2(const V360Context *s, · 80 unmodified lines | |||
| 1169 | /** | 1169 | /** |
| 1170 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap1x6 format. | 1170 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap1x6 format. |
| 1171 | * | 1171 | * |
| 1172 | * @param s filter context | 1172 | * @param s filter private context |
| 1173 | * @param i horizontal position on frame [0, width) | 1173 | * @param i horizontal position on frame [0, width) |
| 1174 | * @param j vertical position on frame [0, height) | 1174 | * @param j vertical position on frame [0, height) |
| 1175 | * @param width frame width | 1175 | * @param width frame width |
| @@ -1197,7 +1197,7 @@ static void cube1x6_to_xyz(const V360Context *s, · 21 unmodified lines | |||
| 1197 | /** | 1197 | /** |
| 1198 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap6x1 format. | 1198 | * Calculate 3D coordinates on sphere for corresponding frame position in cubemap6x1 format. |
| 1199 | * | 1199 | * |
| 1200 | * @param s filter context | 1200 | * @param s filter private context |
| 1201 | * @param i horizontal position on frame [0, width) | 1201 | * @param i horizontal position on frame [0, width) |
| 1202 | * @param j vertical position on frame [0, height) | 1202 | * @param j vertical position on frame [0, height) |
| 1203 | * @param width frame width | 1203 | * @param width frame width |
| @@ -1225,7 +1225,7 @@ static void cube6x1_to_xyz(const V360Context *s, · 21 unmodified lines | |||
| 1225 | /** | 1225 | /** |
| 1226 | * Calculate frame position in cubemap1x6 format for corresponding 3D coordinates on sphere. | 1226 | * Calculate frame position in cubemap1x6 format for corresponding 3D coordinates on sphere. |
| 1227 | * | 1227 | * |
| 1228 | * @param s filter context | 1228 | * @param s filter private context |
| 1229 | * @param vec coordinates on sphere | 1229 | * @param vec coordinates on sphere |
| 1230 | * @param width frame width | 1230 | * @param width frame width |
| 1231 | * @param height frame height | 1231 | * @param height frame height |
| @@ -1301,7 +1301,7 @@ static void xyz_to_cube1x6(const V360Context *s, · 69 unmodified lines | |||
| 1301 | /** | 1301 | /** |
| 1302 | * Calculate frame position in cubemap6x1 format for corresponding 3D coordinates on sphere. | 1302 | * Calculate frame position in cubemap6x1 format for corresponding 3D coordinates on sphere. |
| 1303 | * | 1303 | * |
| 1304 | * @param s filter context | 1304 | * @param s filter private context |
| 1305 | * @param vec coordinates on sphere | 1305 | * @param vec coordinates on sphere |
| 1306 | * @param width frame width | 1306 | * @param width frame width |
| 1307 | * @param height frame height | 1307 | * @param height frame height |
| @@ -1377,7 +1377,7 @@ static void xyz_to_cube6x1(const V360Context *s, · 69 unmodified lines | |||
| 1377 | /** | 1377 | /** |
| 1378 | * Calculate 3D coordinates on sphere for corresponding frame position in equirectangular format. | 1378 | * Calculate 3D coordinates on sphere for corresponding frame position in equirectangular format. |
| 1379 | * | 1379 | * |
| 1380 | * @param s filter context | 1380 | * @param s filter private context |
| 1381 | * @param i horizontal position on frame [0, width) | 1381 | * @param i horizontal position on frame [0, width) |
| 1382 | * @param j vertical position on frame [0, height) | 1382 | * @param j vertical position on frame [0, height) |
| 1383 | * @param width frame width | 1383 | * @param width frame width |
| @@ -1424,7 +1424,7 @@ static int prepare_stereographic_out(AVFilterContext *ctx) · 40 unmodified lines | |||
| 1424 | /** | 1424 | /** |
| 1425 | * Calculate 3D coordinates on sphere for corresponding frame position in stereographic format. | 1425 | * Calculate 3D coordinates on sphere for corresponding frame position in stereographic format. |
| 1426 | * | 1426 | * |
| 1427 | * @param s filter context | 1427 | * @param s filter private context |
| 1428 | * @param i horizontal position on frame [0, width) | 1428 | * @param i horizontal position on frame [0, width) |
| 1429 | * @param j vertical position on frame [0, height) | 1429 | * @param j vertical position on frame [0, height) |
| 1430 | * @param width frame width | 1430 | * @param width frame width |
| @@ -1449,7 +1449,7 @@ static void stereographic_to_xyz(const V360Context *s, · 18 unmodified lines | |||
| 1449 | /** | 1449 | /** |
| 1450 | * Calculate frame position in stereographic format for corresponding 3D coordinates on sphere. | 1450 | * Calculate frame position in stereographic format for corresponding 3D coordinates on sphere. |
| 1451 | * | 1451 | * |
| 1452 | * @param s filter context | 1452 | * @param s filter private context |
| 1453 | * @param vec coordinates on sphere | 1453 | * @param vec coordinates on sphere |
| 1454 | * @param width frame width | 1454 | * @param width frame width |
| 1455 | * @param height frame height | 1455 | * @param height frame height |
| @@ -1486,7 +1486,7 @@ static void xyz_to_stereographic(const V360Context *s, · 30 unmodified lines | |||
| 1486 | /** | 1486 | /** |
| 1487 | * Calculate frame position in equirectangular format for corresponding 3D coordinates on sphere. | 1487 | * Calculate frame position in equirectangular format for corresponding 3D coordinates on sphere. |
| 1488 | * | 1488 | * |
| 1489 | * @param s filter context | 1489 | * @param s filter private context |
| 1490 | * @param vec coordinates on sphere | 1490 | * @param vec coordinates on sphere |
| 1491 | * @param width frame width | 1491 | * @param width frame width |
| 1492 | * @param height frame height | 1492 | * @param height frame height |
| @@ -1523,7 +1523,7 @@ static void xyz_to_equirect(const V360Context *s, · 30 unmodified lines | |||
| 1523 | /** | 1523 | /** |
| 1524 | * Calculate frame position in mercator format for corresponding 3D coordinates on sphere. | 1524 | * Calculate frame position in mercator format for corresponding 3D coordinates on sphere. |
| 1525 | * | 1525 | * |
| 1526 | * @param s filter context | 1526 | * @param s filter private context |
| 1527 | * @param vec coordinates on sphere | 1527 | * @param vec coordinates on sphere |
| 1528 | * @param width frame width | 1528 | * @param width frame width |
| 1529 | * @param height frame height | 1529 | * @param height frame height |
| @@ -1560,7 +1560,7 @@ static void xyz_to_mercator(const V360Context *s, · 30 unmodified lines | |||
| 1560 | /** | 1560 | /** |
| 1561 | * Calculate 3D coordinates on sphere for corresponding frame position in mercator format. | 1561 | * Calculate 3D coordinates on sphere for corresponding frame position in mercator format. |
| 1562 | * | 1562 | * |
| 1563 | * @param s filter context | 1563 | * @param s filter private context |
| 1564 | * @param i horizontal position on frame [0, width) | 1564 | * @param i horizontal position on frame [0, width) |
| 1565 | * @param j vertical position on frame [0, height) | 1565 | * @param j vertical position on frame [0, height) |
| 1566 | * @param width frame width | 1566 | * @param width frame width |
| @@ -1587,7 +1587,7 @@ static void mercator_to_xyz(const V360Context *s, · 20 unmodified lines | |||
| 1587 | /** | 1587 | /** |
| 1588 | * Calculate frame position in ball format for corresponding 3D coordinates on sphere. | 1588 | * Calculate frame position in ball format for corresponding 3D coordinates on sphere. |
| 1589 | * | 1589 | * |
| 1590 | * @param s filter context | 1590 | * @param s filter private context |
| 1591 | * @param vec coordinates on sphere | 1591 | * @param vec coordinates on sphere |
| 1592 | * @param width frame width | 1592 | * @param width frame width |
| 1593 | * @param height frame height | 1593 | * @param height frame height |
| @@ -1624,7 +1624,7 @@ static void xyz_to_ball(const V360Context *s, · 30 unmodified lines | |||
| 1624 | /** | 1624 | /** |
| 1625 | * Calculate 3D coordinates on sphere for corresponding frame position in ball format. | 1625 | * Calculate 3D coordinates on sphere for corresponding frame position in ball format. |
| 1626 | * | 1626 | * |
| 1627 | * @param s filter context | 1627 | * @param s filter private context |
| 1628 | * @param i horizontal position on frame [0, width) | 1628 | * @param i horizontal position on frame [0, width) |
| 1629 | * @param j vertical position on frame [0, height) | 1629 | * @param j vertical position on frame [0, height) |
| 1630 | * @param width frame width | 1630 | * @param width frame width |
| @@ -1662,7 +1662,7 @@ static void ball_to_xyz(const V360Context *s, · 31 unmodified lines | |||
| 1662 | * Prepare data for processing equi-angular cubemap input format. | 1662 | * Prepare data for processing equi-angular cubemap input format. |
| 1663 | * | 1663 | * |
| 1664 | * @param ctx filter context | 1664 | * @param ctx filter context |
| 1665 | 1665 | * | |
| 1666 | * @return error code | 1666 | * @return error code |
| 1667 | */ | 1667 | */ |
| 1668 | static int prepare_eac_in(AVFilterContext *ctx) | 1668 | static int prepare_eac_in(AVFilterContext *ctx) |
| @@ -1749,7 +1749,7 @@ static int prepare_eac_out(AVFilterContext *ctx) · 80 unmodified lines | |||
| 1749 | /** | 1749 | /** |
| 1750 | * Calculate 3D coordinates on sphere for corresponding frame position in equi-angular cubemap format. | 1750 | * Calculate 3D coordinates on sphere for corresponding frame position in equi-angular cubemap format. |
| 1751 | * | 1751 | * |
| 1752 | * @param s filter context | 1752 | * @param s filter private context |
| 1753 | * @param i horizontal position on frame [0, width) | 1753 | * @param i horizontal position on frame [0, width) |
| 1754 | * @param j vertical position on frame [0, height) | 1754 | * @param j vertical position on frame [0, height) |
| 1755 | * @param width frame width | 1755 | * @param width frame width |
| @@ -1850,7 +1850,7 @@ static void eac_to_xyz(const V360Context *s, · 94 unmodified lines | |||
| 1850 | /** | 1850 | /** |
| 1851 | * Calculate frame position in equi-angular cubemap format for corresponding 3D coordinates on sphere. | 1851 | * Calculate frame position in equi-angular cubemap format for corresponding 3D coordinates on sphere. |
| 1852 | * | 1852 | * |
| 1853 | * @param s filter context | 1853 | * @param s filter private context |
| 1854 | * @param vec coordinates on sphere | 1854 | * @param vec coordinates on sphere |
| 1855 | * @param width frame width | 1855 | * @param width frame width |
| 1856 | * @param height frame height | 1856 | * @param height frame height |
| @@ -1926,7 +1926,7 @@ static int prepare_flat_out(AVFilterContext *ctx) · 69 unmodified lines | |||
| 1926 | /** | 1926 | /** |
| 1927 | * Calculate 3D coordinates on sphere for corresponding frame position in flat format. | 1927 | * Calculate 3D coordinates on sphere for corresponding frame position in flat format. |
| 1928 | * | 1928 | * |
| 1929 | * @param s filter context | 1929 | * @param s filter private context |
| 1930 | * @param i horizontal position on frame [0, width) | 1930 | * @param i horizontal position on frame [0, width) |
| 1931 | * @param j vertical position on frame [0, height) | 1931 | * @param j vertical position on frame [0, height) |
| 1932 | * @param width frame width | 1932 | * @param width frame width |
| @@ -1951,7 +1951,7 @@ static void flat_to_xyz(const V360Context *s, · 18 unmodified lines | |||
| 1951 | /** | 1951 | /** |
| 1952 | * Calculate 3D coordinates on sphere for corresponding frame position in dual fisheye format. | 1952 | * Calculate 3D coordinates on sphere for corresponding frame position in dual fisheye format. |
| 1953 | * | 1953 | * |
| 1954 | * @param s filter context | 1954 | * @param s filter private context |
| 1955 | * @param i horizontal position on frame [0, width) | 1955 | * @param i horizontal position on frame [0, width) |
| 1956 | * @param j vertical position on frame [0, height) | 1956 | * @param j vertical position on frame [0, height) |
| 1957 | * @param width frame width | 1957 | * @param width frame width |
| @@ -1991,7 +1991,7 @@ static void dfisheye_to_xyz(const V360Context *s, · 33 unmodified lines | |||
| 1991 | /** | 1991 | /** |
| 1992 | * Calculate frame position in dual fisheye format for corresponding 3D coordinates on sphere. | 1992 | * Calculate frame position in dual fisheye format for corresponding 3D coordinates on sphere. |
| 1993 | * | 1993 | * |
| 1994 | * @param s filter context | 1994 | * @param s filter private context |
| 1995 | * @param vec coordinates on sphere | 1995 | * @param vec coordinates on sphere |
| 1996 | * @param width frame width | 1996 | * @param width frame width |
| 1997 | * @param height frame height | 1997 | * @param height frame height |
| @@ -2042,7 +2042,7 @@ static void xyz_to_dfisheye(const V360Context *s, · 44 unmodified lines | |||
| 2042 | /** | 2042 | /** |
| 2043 | * Calculate 3D coordinates on sphere for corresponding frame position in barrel facebook's format. | 2043 | * Calculate 3D coordinates on sphere for corresponding frame position in barrel facebook's format. |
| 2044 | * | 2044 | * |
| 2045 | * @param s filter context | 2045 | * @param s filter private context |
| 2046 | * @param i horizontal position on frame [0, width) | 2046 | * @param i horizontal position on frame [0, width) |
| 2047 | * @param j vertical position on frame [0, height) | 2047 | * @param j vertical position on frame [0, height) |
| 2048 | * @param width frame width | 2048 | * @param width frame width |
| @@ -2112,7 +2112,7 @@ static void barrel_to_xyz(const V360Context *s, · 63 unmodified lines | |||
| 2112 | /** | 2112 | /** |
| 2113 | * Calculate frame position in barrel facebook's format for corresponding 3D coordinates on sphere. | 2113 | * Calculate frame position in barrel facebook's format for corresponding 3D coordinates on sphere. |
| 2114 | * | 2114 | * |
| 2115 | * @param s filter context | 2115 | * @param s filter private context |
| 2116 | * @param vec coordinates on sphere | 2116 | * @param vec coordinates on sphere |
| 2117 | * @param width frame width | 2117 | * @param width frame width |
| 2118 | * @param height frame height | 2118 | * @param height frame height |