CPC H04N 21/816 (2013.01) [G06F 3/01 (2013.01); G06F 3/048 (2013.01); H04N 13/139 (2018.05); H04N 19/597 (2014.11)] | 17 Claims |
1. A method, comprising:
reading video information of the three-dimension (3D) video to be rendered;
determining an image format of the 3D video according to the video information;
generating a first spherical model and a second spherical model according to the image format;
reading a frame image of the 3D video, wherein the frame image comprises a first sub-image and a second sub-image;
obtaining angle-of-view rotation data and image scaling data;
rendering the frame image according to the angle-of-view rotation data and the image scaling data, wherein the first sub-image is rendered to the first spherical model to obtain a first spherical image, and the second sub-image is rendered to the second spherical model to obtain a second spherical image; and
outputting images in a viewport area of the first spherical image and the second spherical image to a display device,
wherein the video information comprises a height and a width of the frame image, and the determining an image format of the 3D video comprises:
calculating a ratio of the height to the width;
in response to determining the ratio is 1:1, determining that the image format of the 3D video is an up-down format; and
in response to determining the ratio is 1:4, determining that the image format of the 3D video is a left-right format.
|