Decoding method and apparatus applicable to spatial image
By determining the target longitude, latitude and key frame information, the target spatial image is directly decoded, which solves the problem of low spatial code stream decoding efficiency and achieves a more efficient spatial image decoding process.
Patent Information
- Application Number
- PCT/CN2024/089774
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-04-28
- Filing Date
- 2024-04-25
- Publication Date
- 2024-10-31
AI Technical Summary
The decoding efficiency of spatial code streams is low, mainly due to the pressure caused by dependent frames during decoding, which greatly reduces the efficiency of traditional sequential decoding.
By determining the target longitude and latitude of the target space picture expected by the user, determining its location information in the encoded file and the picture group it belongs to, determining the target key frame from the preloaded key frame sequence, and decoding the target based on the target key frame and location information. Spatial pictures to avoid repeating the process of decoding key frames.
The efficiency of spatial decoding is improved, the time loss during the decoding process is reduced, and more flexible and efficient spatial image decoding is achieved.
Smart Images

Figure CN2024089774_31102024_PF_FP_ABST
Abstract
Description
Decoding method and device applicable to spatial images
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This patent application claims priority to the Chinese patent application filed on April 28, 2023, with application number 202310483604.5 and invention name “Decoding method and device for spatial images”, the full text of which is incorporated by reference into this application. Technical Field
[0003] The embodiments of the present disclosure relate to the field of computer technology, specifically to decoding technology, and more particularly to a decoding method, device, computer-readable medium, and electronic device applicable to spatial images. Background Art
[0004] Spatial bitstreams are spatially continuous, unlike traditional sequential video bitstreams, which are temporally continuous. A fundamental requirement of spatial bitstreams is that they can be decoded spatially, rather than in the order in which they are stored within the bitstream. This is the key difference from sequential bitstreams. To facilitate storage and transmission, encoding often uses I-frames (key frames) and P-frames (predicted frames). This interdependent frame decoding creates several times the burden of sequential decoding, significantly reducing spatial decoding efficiency.
[0005] Summary of the Invention
[0006] The embodiments of the present disclosure provide a decoding method, device, computer-readable medium, and electronic device applicable to spatial images.
[0007] In a first aspect, an embodiment of the present disclosure provides a decoding method suitable for spatial images, comprising: determining the target longitude and latitude corresponding to the target spatial image desired by the user based on the acquired operation information; determining the position information of the target spatial image in the encoded file and the target picture group to which the target spatial image belongs based on the target longitude and latitude; determining the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; and decoding to obtain the target spatial image based on the target key frame and the position information.
[0008] In some examples, the above-mentioned determining the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target longitude and latitude includes: determining the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture based on the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file; determining the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target picture group identifier and the target picture identifier.
[0009] In some examples, the above-mentioned determination of the target picture group identifier and the target picture identifier of the target spatial picture to which the target spatial picture belongs based on the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file includes: taking the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude among the key frame longitudes and latitudes of the key frames in each picture group in the encoded file belongs as the target picture group, and determining the target picture group identifier; determining the target picture identifier based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.
[0010] In some examples, determining the target key frame corresponding to the target picture group from the preloaded key frame sequence includes: determining the target key frame corresponding to the target picture group from the key frame sequence according to the target picture group identifier.
[0011] In some examples, before determining the target key frame corresponding to the target picture group from the preloaded key frame sequence, the method further includes: loading the decoded key frames included in the encoding file during initialization to generate a key frame sequence.
[0012] In some examples, the above decoding to obtain the target spatial picture based on the target key frame and position information includes: determining, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group, or a predicted frame in the target picture group; in response to determining that the target spatial picture is a predicted frame in the target picture group, decoding the predicted frame corresponding to the target picture identifier based on the target key frame and position information to obtain the target spatial picture.
[0013] In some examples, decoding to obtain the target spatial picture according to the target key frame and the position information further includes: in response to determining that the target spatial picture is a key frame in the target picture group, using the target key frame as the target spatial picture.
[0014] In the second aspect, an embodiment of the present disclosure provides a decoding device suitable for spatial images, including: a first determination unit, configured to determine the target longitude and latitude corresponding to the target spatial picture desired by the user based on the acquired operation information; a second determination unit, configured to determine the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target longitude and latitude; a third determination unit, configured to determine the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; a decoding unit, configured to decode the target spatial picture based on the target key frame and the position information.
[0015] In some examples, the above-mentioned second determination unit is further configured to: determine the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture based on the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file; determine the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target picture group identifier and the target picture identifier.
[0016] In some examples, the above-mentioned second determination unit is further configured to: take the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame of each picture group in the encoded file belongs as the target picture group, and determine the target picture group identifier; determine the target picture identifier based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.
[0017] In some examples, the third determining unit is further configured to: determine, according to the target picture group identifier, a target key frame corresponding to the target picture group from the key frame sequence.
[0018] In some examples, the apparatus further includes a loading unit configured to: during an initialization process, load decoded key frames included in the encoding file to generate a key frame sequence.
[0019] In some examples, the above-mentioned decoding unit is further configured to: determine, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; in response to determining that the target spatial picture is a predicted frame in the target picture group, decode the predicted frame corresponding to the target picture identifier according to the target key frame and position information to obtain the target spatial picture.
[0020] In some examples, the decoding unit is further configured to: in response to determining that the target spatial picture is a key frame in the target picture group, use the target key frame as the target spatial picture.
[0021] In a third aspect, an embodiment of the present disclosure provides a non-transitory computer-readable medium having a computer program stored thereon, wherein when the computer program is executed by a processor, the method described in any implementation manner of the first aspect is implemented.
[0022] In a fourth aspect, an embodiment of the present disclosure provides an electronic device comprising: one or more processors; a storage device on which one or more computer programs are stored, wherein when the one or more computer programs are executed by one or more processors, the one or more processors implement the method described in any implementation manner of the first aspect. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] Other features, objects and advantages of the present disclosure will become more apparent from a reading of the detailed description of non-limiting embodiments made with reference to the following drawings:
[0024] FIG1 is a diagram of an exemplary system architecture in which an embodiment of the present disclosure may be applied;
[0025] FIG2 is a schematic diagram of the spatial layout of sampling points of the latitude and longitude sampling method disclosed herein;
[0026] FIG3 is a schematic diagram of a spatial image matrix of the present disclosure;
[0027] FIG4 is a schematic diagram of a reference method between a predicted frame and a key frame in a picture group of the present disclosure.
[0028] FIG5 is a flowchart of an embodiment of a decoding method applicable to a spatial image according to the present disclosure;
[0029] FIG6 is a schematic diagram of a user's operation trajectory in a spatial image matrix according to this embodiment;
[0030] 7A-7C are schematic diagrams of various reference frame management methods according to this embodiment;
[0031] FIG8 is a schematic diagram of an application scenario of the decoding method for spatial images according to this embodiment;
[0032] FIG9 is a flowchart of another embodiment of a decoding method applicable to spatial images according to the present disclosure;
[0033] FIG10 is a structural diagram of an embodiment of a decoding apparatus applicable to spatial images according to the present disclosure;
[0034] FIG11 is a schematic diagram of the structure of a computer system suitable for implementing the embodiments of the present disclosure. DETAILED DESCRIPTION
[0035] The present disclosure will be further described in detail below with reference to the accompanying drawings and examples. It should be understood that the specific embodiments described herein are intended only to illustrate the relevant invention and are not intended to limit the invention. It should also be noted that, for ease of description, only portions relevant to the relevant invention are shown in the accompanying drawings.
[0036] It should be noted that, in the absence of conflict, the embodiments and features of the embodiments in the present disclosure can be combined with each other. The present disclosure will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0037] It should be noted that the collection, collection, updating, analysis, processing, use, transmission, and storage of user personal information involved in the technical solutions disclosed herein all comply with relevant laws and regulations, are used for legitimate purposes, and do not violate public order and good morals. Necessary measures are taken with respect to user personal information to prevent unauthorized access to user personal information data and to safeguard the security of user personal information, network security, and national security.
[0038] FIG. 1 shows an exemplary architecture 100 to which the method and apparatus for decoding spatial images of the present disclosure may be applied.
[0039] As shown in Figure 1, system architecture 100 may include terminal devices 101, 102, and 103, a network 104, and a server 105. The communication connections between terminal devices 101, 102, and 103 constitute a topological network, and network 104 is used to provide a medium for communication links between terminal devices 101, 102, and 103 and server 105. Network 104 may include various connection types, such as wired or wireless communication links or fiber optic cables.
[0040] Users can use terminal devices 101, 102, 103 to interact with server 105 via network 104 to receive or send messages, etc. Terminal devices 101, 102, 103 can be hardware devices or software that support network connection for data interaction and data processing. When terminal devices 101, 102, 103 are hardware, they can be various electronic devices that support network connection, information acquisition, interaction, display, processing and other functions, including but not limited to smart phones, tablet computers, e-book readers, laptop computers and desktop computers, etc. When terminal devices 101, 102, 103 are software, they can be installed in the electronic devices listed above. They can be implemented as multiple software or software modules for providing distributed services, for example, or they can be implemented as a single software or software module. No specific limitation is made here.
[0041] The server 105 may be a server that provides various services. For example, it may be a background processing server that decodes the target space image desired by the user based on the operation information and pre-loaded key frames of the terminal devices 101, 102, and 103. As an example, the server 105 may be a cloud server.
[0042] It should be noted that the server can be either hardware or software. When the server is hardware, it can be implemented as a distributed server cluster consisting of multiple servers, or as a single server. When the server is software, it can be implemented as multiple software programs or software modules (e.g., software or software modules used to provide distributed services), or as a single software program or software module. This is not specifically limited here.
[0043] It should also be noted that the spatial image decoding method provided in the embodiments of the present disclosure can be executed by a server, a terminal device, or a server and a terminal device in cooperation with each other. Accordingly, the various components (e.g., various units) included in the spatial image decoding apparatus can be entirely located in the server, entirely located in the terminal device, or separately located in the server and the terminal device.
[0044] It should be understood that the number of terminal devices, networks, and servers in Figure 1 is merely illustrative. Any number of terminal devices, networks, and servers may be provided as needed. When the electronic device on which the method for decoding spatial images is running does not need to transmit data with other electronic devices, the system architecture may include only the electronic device (e.g., a server or terminal device) on which the method for decoding spatial images is running.
[0045] In order to fully illustrate the decoding method applicable to spatial images, a process of an embodiment of the corresponding decoding method applicable to spatial images is provided, which includes the following steps:
[0046] The first step is to generate a spatial picture matrix including a plurality of spatial pictures collected by the plurality of sampling points according to the longitudes and latitudes corresponding to the plurality of sampling points at different spatial angles.
[0047] The spatial images represent images of target objects obtained from different spatial angles. The target objects can be various objects such as people and objects.
[0048] As an example, multiple sampling points may be uniformly set at different spatial angles to capture spatial images of the target object at different spatial angles, that is, a uniform sampling method.
[0049] As another example, multiple sampling points can be non-uniformly set at different spatial angles around the target object with preset intervals of longitude and latitude to capture spatial images of the target object at different spatial angles, that is, longitude and latitude sampling.
[0050] Figure 2 shows a schematic diagram 200 of the spatial layout of sampling points for a latitude and longitude sampling method. For the upper hemisphere of the target object, sampling is performed at 10° intervals. Thus, there are 36 sampling points in the longitude direction and 9 sampling points in the latitude direction, resulting in 324 (36×9) sampling points in the upper hemisphere of the target object. The left sub-image in Figure 2 is a top view of the spatial layout of the sampling points, and the right sub-image is a front view of the spatial layout of the sampling points.
[0051] The sampling points at different spatial angles correspond to different longitudes and latitudes, thereby sampling and obtaining spatial images at different spatial angles. By arranging the spatial images at different spatial angles in a certain order, a spatial image matrix can be obtained. As an example, for each spatial image, the spatial image is named according to the longitude and latitude of the sampling point corresponding to the spatial image; then, according to the naming information of each spatial image, multiple spatial images are arranged to generate a spatial image matrix. For example, if the longitude and latitude of the sampling point corresponding to the spatial image is (10°, 20°), the spatial image can be named "10-20.jpg".
[0052] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned first step in the following manner: arrange multiple spatial images with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis to generate a spatial image matrix.
[0053] Specifically, with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis, multiple spatial images are arranged in the order of longitude from small to large and latitude from small to large to obtain a spatial image matrix.
[0054] Continuing with the sampling points shown in FIG2 as an example, the generated spatial picture matrix is shown in FIG3. The latitude in the spatial picture matrix ranges from 0° to 80°, and the longitude ranges from 0° to 350°.
[0055] In this implementation, based on the latitude and longitude of the sampling points, an arrangement method that is more consistent with the spatial correlation between multiple spatial pictures is provided, so that the generated spatial picture matrix is more conducive to spatial coding, thereby improving spatial coding efficiency.
[0056] In the second step, the spatial picture matrix is divided into sub-matrices of a preset size to obtain multiple picture groups.
[0057] As an example, the preset size may be a pre-set fixed size, wherein the length and width of the sub-matrices may be the same or different, for example, the preset size is 3×3.
[0058] As another example, the preset size can be flexibly determined based on the density of the sampling points. When the sampling points are dense, a larger preset size can be set; when the sampling points are sparse, a smaller preset size can be set. In other words, the size of the preset size is positively correlated with the density of the sampling points.
[0059] The spatial picture matrix is divided into sub-matrices of a preset size, and the number of spatial pictures included in each resulting picture group is the same as the number of elements included in the sub-matrix. Continuing with Figure 3, the spatial picture matrix is divided into sub-matrices of a preset size of 3×3, resulting in 36 picture groups (GOP1-GOP36), each of which includes 9 spatial pictures.
[0060] The third step is to encode the spatial pictures in the spatial picture matrix according to the key frames and predicted frames respectively included in the plurality of picture groups, and generate an encoded file.
[0061] During the compression encoding process, each spatial image frame represents a still image. During actual compression, various compression algorithms are employed to reduce data capacity, with IPB frames being the most common. The I-frame within an IPB frame is also known as a key frame or intra-frame coded frame. A key frame is typically the first frame in each picture group. After appropriate compression, it serves as a reference point for random access, generating a static image. A key frame can be considered the product of image compression, which removes redundant information from the video. A P-frame, also known as a predicted frame or forward predictive coded frame, is used to generate the encoded data corresponding to the predicted frame by removing any redundant information from the compressed data corresponding to the key frame in the same picture group. A predicted frame represents the difference between the predicted frame and the corresponding key frame. During decoding, the decoded data corresponding to the key frame and the predicted frame are referenced to generate the spatial image corresponding to the predicted frame.
[0062] In this embodiment, a determination method can be preset to determine the key frames and prediction frames in the picture group; then, based on the key frames and prediction frames included in each of the multiple picture groups, the spatial pictures in the spatial picture matrix are encoded to generate an encoded file.
[0063] For example, for each picture group in multiple picture groups, the spatial picture corresponding to the sampling point with the smallest longitude and latitude in the picture group is used as the key frame, and the remaining spatial pictures in the picture group are used as prediction frames. The spatial pictures in the spatial picture matrix are encoded to generate an encoded file.
[0064] In some optional implementations of this embodiment, the execution entity may perform the third step in the following manner:
[0065] (1) Arrange the picture groups corresponding to the sampling points at the same latitude in the multiple picture groups in ascending order of the longitudes of the sampling points corresponding to the picture groups to generate multiple picture group subsequences.
[0066] 3 , the plurality of GOP subsequences include a first GOP subsequence, a second GOP subsequence, and a third GOP subsequence. The first GOP subsequence is "GOP1->GOP2->...->GOP12," the second GOP subsequence is "GOP13->GOP14->...->GOP24," and the third GOP subsequence is "GOP25->GOP26->...->GOP36."
[0067] (2) Arrange multiple picture group subsequences in ascending order of the latitudes of the sampling points corresponding to the picture groups, determine the picture group identifiers corresponding to each of the multiple picture groups, and generate a picture group sequence.
[0068] Continuing to refer to FIG3 , the sequence of group of pictures is “GOP1 -> GOP2 -> GOP3 … -> GOP35 -> GOP36”
[0069] (3) Arranging the spatial pictures in each picture group in the picture group sequence in the order of key frames first and predicted frames later, determining the picture identifiers of the spatial pictures in each picture group in the plurality of picture groups, and generating a spatial picture sequence.
[0070] Specifically, based on the determined picture group sequence, for the spatial pictures in each picture group, the picture sequence within the picture group is determined in the order of key frames first and then predicted frames, and thus the picture identifier of the spatial picture in each picture group is determined according to the picture sequence corresponding to the picture group, and finally the spatial picture sequence is obtained.
[0071] For the multiple prediction frames in each picture group, the arrangement order of the multiple prediction frames can be determined according to a preset determination method. For example, the multiple prediction frames are arranged in the order of latitude and longitude of the sampling points corresponding to the spatial pictures from small to large.
[0072] Continuing with Figure 3, the spatial picture sequence is "0->1->2->3...->322->323." This spatial picture sequence includes multiple picture sequences, such as "0->1->2->3...->8," "9->10->11...->17," and so on. Taking the picture sequence "0->1->2->3...->8" as an example, "0" is the picture identifier of the key frame in this picture sequence, and "1-8" are the picture identifiers of the predicted frames in this picture sequence.
[0073] (4) Encode the spatial picture sequence according to the key frames and prediction frames included in each of the multiple picture groups to generate an encoded file.
[0074] In this implementation, the spatial picture matrix is first arranged to obtain a spatial picture sequence, and then encoding is performed according to the arrangement order of the spatial pictures in the spatial picture sequence, as well as the key frames and predicted frames in each picture group, further improving the efficiency and accuracy of the encoding process.
[0075] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned step (3) in the following manner: taking the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, taking the spatial picture adjacent to the key frame as the prediction frame, arranging the spatial pictures in each picture group in the picture group sequence in the order of key frame first and prediction frame later, determining the picture identifier of the spatial picture in each picture group in multiple picture groups, and generating a spatial picture sequence.
[0076] Continuing with the example of the 3×3 submatrix shown in FIG3 , for the 9 spatial pictures in the divided picture group, the 8 spatial pictures around the center position all have a high correlation with the spatial picture at the center position, because the 8 surrounding spatial pictures can all be regarded as being obtained by changing the spatial picture at the center position by 10° in the longitude and / or latitude directions.
[0077] The spatial picture at the center position of the submatrix corresponding to the picture group is used as the key frame, and the spatial picture adjacent to the key frame is used as the prediction frame, so that there is a direct and strong correlation between the prediction frame and the key frame, which helps the prediction frame to directly refer to the key frame during the encoding process of the spatial picture, improves the encoding efficiency, and reduces the data volume of the encoded file.
[0078] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned step (4) in the following manner: for each picture group in multiple picture groups, a reference method is adopted in which the predicted frame in the picture group uniquely refers to the key frame in the picture group, and the spatial picture sequence is encoded to generate an encoded file.
[0079] 4, a schematic diagram 400 is shown of a reference method between a predicted frame and a key frame in a group of pictures. For each predicted frame in a group of pictures, a key frame in the group of pictures is uniquely referenced to obtain an encoded file.
[0080] In this implementation, the spatial picture sequence is encoded by adopting a reference method in which the predicted frame in the picture group uniquely references the key frame in the picture group, which reduces the complexity of the relationship between the predicted frame and the key frame in the encoded file and helps to improve the data determination speed and decoding efficiency during the decoding process.
[0081] In order to more fully illustrate the decoding method applicable to spatial images, a process of another embodiment of the corresponding decoding method applicable to spatial images is provided, which includes the following steps:
[0082] In the first step, a plurality of spatial images are arranged with the longitude of the sampling point corresponding to the spatial image as the horizontal axis and the latitude of the sampling point corresponding to the spatial image as the vertical axis to generate a spatial image matrix.
[0083] In the second step, the spatial picture matrix is divided into sub-matrices of a preset size to obtain multiple picture groups.
[0084] In the third step, the picture groups corresponding to the sampling points at the same latitude in the multiple picture groups are arranged in ascending order of the longitudes of the sampling points corresponding to the picture groups to generate multiple picture group subsequences.
[0085] The fourth step is to arrange the multiple picture group subsequences in ascending order of the latitudes of the sampling points corresponding to the picture groups, determine the picture group identifiers corresponding to the multiple picture groups, and generate a picture group sequence.
[0086] The fifth step is to use the spatial picture at the center position of the submatrix corresponding to the picture group as the key frame, and the spatial picture adjacent to the key frame as the prediction frame. Arrange the spatial pictures in each picture group in the picture group sequence in the order of key frame first and prediction frame later, determine the picture identifier of the spatial picture in each picture group in multiple picture groups, and generate a spatial picture sequence.
[0087] In the sixth step, for each picture group in the plurality of picture groups, a spatial picture sequence is encoded using a reference method in which a predicted frame in the picture group uniquely references a key frame in the picture group to generate an encoded file.
[0088] 5 , a flowchart 500 of an embodiment of a decoding method applicable to a spatial image is shown, including the following steps:
[0089] Step 501: Determine the target longitude and latitude corresponding to the target space image desired by the user based on the acquired operation information.
[0090] In this embodiment, an execution subject of the spatial image decoding method (eg, the terminal device or server in FIG1 ) determines the target longitude and latitude corresponding to the target spatial image desired by the user based on the acquired operation information.
[0091] The operation information can be an action instruction corresponding to a user's sliding operation or a voice instruction corresponding to voice information. Continuing with Figure 6, it shows the user's operation trajectory within the spatial image matrix. Following the operation trajectory, the execution entity decodes the spatial image data at the corresponding location and obtains and displays the user's desired target spatial image.
[0092] As an example, the execution entity can pre-establish a correspondence between the user's operation position on the screen and the target longitude and latitude corresponding to the user's desired target space image, thereby determining the target longitude and latitude corresponding to the user's desired target space image in real time during the user's operation. The target longitude and latitude corresponding to the target space image are the longitude and latitude corresponding to the sampling point corresponding to the target space image.
[0093] Step 502: Determine the location information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target longitude and latitude.
[0094] In this embodiment, the execution entity may determine the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs according to the target longitude and latitude.
[0095] As an example, the execution entity can pre-establish a correspondence between the latitude and longitude corresponding to each spatial image in the encoded file and the spatial image's location information within the encoded file. Thus, the location information of the target spatial image within the encoded file is determined based on the target latitude and longitude. Based on the location information, the key frame and the key frame's latitude and longitude within the target picture group to which the target spatial image belongs are determined, thereby determining the picture group to which the key frame belongs.
[0096] In some optional implementations of this embodiment, the execution entity may perform step 502 as follows:
[0097] First, according to the target longitude and latitude and the key frame longitude and latitude of each key frame in each picture group in the encoded file, the target picture group identifier and the target picture identifier of the target spatial picture are determined.
[0098] As an example, the above-mentioned execution entity can determine the key frame longitude and latitude of the key frames in each picture group in the encoded file to generate a key frame longitude and longitude set; then, compare the target longitude and latitude with the key frame longitude and longitude in the key frame longitude and longitude set, and determine the target picture group to which the target spatial picture belongs based on the comparison result between the target longitude and longitude and the longitude and longitude of each key frame in the key frame longitude and longitude set; then, determine the target picture group identifier of the target picture group and the target picture identifier of the target spatial picture.
[0099] Continuing to refer to Figure 3, the corresponding key frame latitude and longitude set is
[0100] Second, according to the target picture group identifier and the target picture identifier, the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs are determined.
[0101] During the encoding process to obtain the encoded file, the spatial picture identifier and the picture group identifier of the picture group to which the spatial picture belongs are generally encoded. After determining the target picture group identifier and the target picture identifier, the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs can be determined.
[0102] In this implementation, a specific implementation method for determining the position information of a target spatial picture in an encoded file and the target picture group to which the target spatial picture belongs is provided, thereby improving the efficiency and accuracy of the information determination process.
[0103] In some optional implementations of this embodiment, the above-mentioned execution entity can perform the above-mentioned first step in the following manner: first, the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame of each picture group in the encoded file belongs is taken as the target picture group, and the target picture group identifier is determined; then, the target picture identifier is determined based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.
[0104] As an example, the target longitude and latitude is (60, 20), which is the closest to the key frame longitude and latitude (70, 10) in the key frame longitude and longitude set. Then the picture group GOP3 to which the key frame corresponding to the key frame longitude and longitude (70, 10) belongs is taken as the target picture group, and the target picture group identifier is determined to be 3.
[0105] Specifically, the process of determining the target group of pictures identifier can be expressed by the following formula: GOPid=minl2_arg((longitude, latitude)-GOPs)
[0106] Wherein, GOPid represents the target picture group identifier, minl2_arg represents the minimum distance requirement, (longitude, latitude) represents the target longitude and latitude, and GOPs represents the key frame longitude and latitude of the key frames in each picture group.
[0107] Then, the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group is determined to be (-10, 10), and the target picture identifier is determined to be 8.
[0108] Continuing with the 3×3 submatrix shown in FIG3 as an example, the offset between the longitude and latitude corresponding to the spatial picture in each picture group and the longitude and latitude corresponding to the key frame is:
[0109] According to the arrangement order of the spatial pictures in the picture sequence corresponding to the picture group during the encoding process, the above offset set is reordered to obtain the sorted offset sequence: OFFSETs = {(0,0),(-10,0),(-10,-10),(0,-10),(10,-10),(10,0),(10,10),(0,10),(-10,10)}
[0110] According to the offset sequence, the target image identifier corresponding to the target space image can be determined.
[0111] Specifically, the process of determining the target image identifier can be expressed by the following formula: OFFSETid = minl2_arg(((longtitude, latitude)-GOPs[GOPid])-OFFSETs)
[0112] Among them, OFFSETid represents the target image identifier, minl2_arg indicates that the minimum distance requirement is met, (longtitude, latitude) represents the target longitude and latitude, GOPs[GOPid] represents the key frame longitude and latitude of the key frame corresponding to the target picture group identifier GOPid, and OFFSETs represents the offset between the longitude and latitude corresponding to the spatial image in the picture group and the key frame longitude and latitude corresponding to the key frame.
[0113] In this implementation method, the target picture group identifier of the target picture group is determined based on the comparison results of the key frame longitude and latitude of each key frame involved in the encoded file and the target longitude and latitude of the target spatial picture expected by the user, and then the target picture identifier is determined, thereby improving the versatility and accuracy of the identification information determination process.
[0114] Step 503: Determine the target key frame corresponding to the target picture group from the preloaded key frame sequence.
[0115] In this embodiment, the execution entity may determine the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoding file.
[0116] As an example, for a preloaded key frame sequence, the correspondence between each key frame in the key frame sequence and the picture group to which it belongs is determined during the loading process. Then, after determining the target picture group, the target key frame corresponding to the target picture group is determined from the key frame sequence based on the correspondence.
[0117] In some optional implementations of this embodiment, the execution subject may perform step 503 in the following manner: determining a target key frame corresponding to the target picture group from a key frame sequence according to the target picture group identifier.
[0118] For example, for a preloaded key frame sequence, during the loading process, a correspondence between each key frame in the key frame sequence and the picture group identifier of the picture group to which it belongs is determined. Furthermore, a target picture group identifier is matched with the picture group identifier in the correspondence, and the key frame corresponding to the picture group identifier that matches the target picture group identifier is determined as the target key frame.
[0119] In this implementation, based on the target picture group identifier, the target key frame corresponding to the target picture group can be quickly determined from the key frame sequence, thereby improving the efficiency of determining the target key frame.
[0120] In some optional implementations of this embodiment, before step 503, the execution subject may further perform the following operations: during the initialization process, load the decoded key frames included in the encoding file to generate a key frame sequence.
[0121] As an example, during the initialization process of the decoding logic for the encoded file, the position information of the key frames in each picture group is determined from the encoded file; all key frames are decoded according to the position information, and the obtained key frames are cached to generate a key frame sequence.
[0122] In this implementation, key frames included in the encoded file are decoded and preloaded during the initialization process, so that key frames referenced by the data to be decoded are directly determined from the key frame sequence during the subsequent decoding process, which helps to improve decoding efficiency.
[0123] Step 504: Decode the target spatial image according to the target key frame and position information.
[0124] In this embodiment, the execution subject can decode and obtain the target space picture according to the target key frame and position information.
[0125] After determining the location information of the target data to be decoded, the target key frame can be referenced to decode the encoded data at the corresponding position in the encoded file to obtain and display the target space image.
[0126] In some optional implementations of this embodiment, the execution entity may perform step 504 in the following manner:
[0127] First, according to the target picture identifier, it is determined whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group.
[0128] As an example, when it is determined that the target picture identifier is the same as the key frame identifier of the key frame in the target picture group, it is determined that the target spatial picture is the key frame in the target picture group; when it is determined that the target picture identifier is the same as the predicted frame identifier of the predicted frame in the target picture group, it is determined that the target spatial picture is the predicted frame in the target picture group.
[0129] Second, in response to determining that the target spatial picture is a predicted frame in the target picture group, the predicted frame corresponding to the target picture identifier is decoded according to the target key frame and the position information to obtain the target spatial picture.
[0130] When the target spatial picture is a predicted frame in the target picture group, since the predicted frame refers to the key frame in the picture group, it is necessary to refer to the target key frame and decode the predicted frame at the position represented by the position information to obtain the target spatial picture.
[0131] In some optional implementations of this embodiment, the execution subject may also perform step 504 in the following manner: in response to determining that the target space picture is a key frame in the target picture group, using the target key frame as the target space picture.
[0132] When the target spatial picture is a key frame in the target picture group, the decoded target key frame in the key frame sequence will be directly used as the target spatial picture without performing the decoding process again.
[0133] Due to the spatial decoding process, B frames are not used during the encoding phase and are therefore generally not included in encoded files. However, if only I frames were used during the encoding phase, compression efficiency would be too low, making storage and transmission inefficient. Therefore, encoded files often use both I and P frames.
[0134] Not only does the frame type affect decoding efficiency, but the reference frame management method also significantly impacts decoding efficiency. Taking the following three reference frame management methods as an example, Figure 7A illustrates the most common management method, where a P frame references the preceding I or P frame within the picture group. In this case, decoding a P frame requires first decoding all the I and P frames on which it depends. Therefore, the number of frames to be decoded for each displayed frame in the picture group in Figure 7A is {1, 2, 3, 4, 5, 6, 7, 8, 9}, meaning that on average, 45 / 9 = 5 frames must be decoded to display each frame.
[0135] In Figure 7B, although each P-frame in the GOP has only one reference frame, its reference frames also depend on other frames, so later reference frames actually have more dependencies. For Figure 7B, the number of frames required to decode each displayed frame is {1, 2, 3, 4, 5, 6, 7, 8, 9}, meaning an average of 45 / 9 = 5 frames are required to decode each displayed frame.
[0136] For Figure 7C, all predicted frames in the picture group only refer to I frames, so the number of frames required to be decoded for each frame displayed is {1, 2, 2, 2, 2, 2, 2, 2}, and an average of 17 / 9 = 1.889 frames need to be decoded for each frame displayed.
[0137] In the above embodiment, since the key frames in the picture group are pre-loaded, the number of frames required to be decoded to display each frame is {0, 1, 1, 1, 1, 1, 1, 1}. Therefore, on average, 8 / 9 = 0.889 frames need to be decoded to display one frame. It can be seen that the decoding efficiency in the above embodiment is much higher than that of other reference methods.
[0138] Continuing to refer to FIG8 , FIG8 is a schematic diagram 800 of an application scenario of a decoding method for spatial images according to this embodiment. In the application scenario of FIG8 , the server pre-acquires a coded file obtained by encoding spatial images of the object to be displayed at different spatial angles. In the process of the user displaying the object to be displayed, first, based on the obtained user operation information, the target longitude and latitude 801 corresponding to the target spatial image desired by the user is determined, wherein the determined target longitude and latitude 801 is (60, 20); then, based on the target longitude and latitude 801, the position information of the target spatial image in the coded file and the target picture group to which the target spatial image belongs are determined; then, the target key frame corresponding to the target picture group is determined from the preloaded key frame sequence 802, wherein the key frame sequence includes the key frames involved in the coded file; finally, based on the target key frame and the position information, the target spatial image is decoded.
[0139] The method provided by the above-mentioned embodiments of the present disclosure determines the target longitude and latitude corresponding to the target spatial picture expected by the user based on the obtained operation information; determines the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target longitude and latitude; determines the target key frame corresponding to the target picture group from the preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; decodes the target spatial picture based on the target key frame and the position information, thereby providing a decoding method suitable for spatial pictures. During the decoding process, the target longitude and latitude corresponding to the target spatial picture expected by the user are mapped to the corresponding position in the encoded file to decode the data of the corresponding position, and all the key frames in the encoded file are preloaded as external reference frames of the predicted frames in the encoded file, thereby avoiding the time loss caused by repeated decoding of key frames during the decoding process, and improving the spatial decoding efficiency while ensuring the flexibility of the spatial decoding process.
[0140] Continuing with FIG9 , a schematic process 900 of another embodiment of a decoding method applicable to spatial images according to the present disclosure is shown, including the following steps:
[0141] Step 901 : During the initialization process, the decoded key frames included in the encoding file are loaded to generate a key frame sequence.
[0142] Step 902: Determine the target longitude and latitude corresponding to the target space image desired by the user based on the acquired operation information.
[0143] Step 903 : The picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in each picture group in the encoded file belongs is taken as the target picture group, and the target picture group identifier is determined.
[0144] Step 904 : Determine the target picture identifier according to the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.
[0145] Step 905 : Determine the position information of the target spatial picture in the coded file and the target picture group to which the target spatial picture belongs according to the target picture group identifier and the target picture identifier.
[0146] Step 906: Determine the target key frame corresponding to the target picture group from the key frame sequence according to the target picture group identifier.
[0147] Step 907 : Determine, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group.
[0148] Step 908 : In response to determining that the target spatial picture is a predicted frame in the target picture group, the predicted frame corresponding to the target picture identifier is decoded according to the target key frame and the position information to obtain the target spatial picture.
[0149] Step 909 : In response to determining that the target spatial picture is a key frame in the target picture group, use the target key frame as the target spatial picture.
[0150] It can be seen from this embodiment that, compared with the embodiment corresponding to Figure 6, the process 900 of the decoding method applicable to spatial images in this embodiment specifically illustrates the preloading process of the key frame sequence, the position information of the target spatial picture in the encoded file and the information determination process of the target picture group to which the target spatial picture belongs, and the decoding process based on the key frame sequence, which further improves the spatial decoding efficiency while ensuring the flexibility of the spatial decoding process.
[0151] Continuing to refer to FIG10 , as an implementation of the methods shown in the above figures, the present disclosure provides an embodiment of a decoding device suitable for spatial images. This device embodiment corresponds to the method embodiment shown in FIG6 , and the device can be specifically applied to various electronic devices.
[0152] As shown in Figure 10, a decoding device suitable for spatial images includes: a first determination unit 1001, configured to determine the target longitude and latitude corresponding to the target spatial image desired by the user based on the obtained operation information; a second determination unit 1002, configured to determine the position information of the target spatial image in the encoded file and the target picture group to which the target spatial image belongs based on the target longitude and latitude; a third determination unit 1003, configured to determine the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; a decoding unit 1004, configured to decode the target spatial image based on the target key frame and the position information.
[0153] In some examples, the above-mentioned second determination unit 1002 is further configured to: determine the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture based on the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file; determine the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target picture group identifier and the target picture identifier.
[0154] In some examples, the above-mentioned second determination unit 1002 is further configured to: take the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame of each picture group in the encoded file belongs as the target picture group, and determine the target picture group identifier; determine the target picture identifier based on the offset between the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group.
[0155] In some examples, the third determining unit 1003 is further configured to: determine, according to the target picture group identifier, a target key frame corresponding to the target picture group from the key frame sequence.
[0156] In some examples, the apparatus further includes a loading unit (not shown in the figure) configured to: during the initialization process, load the decoded key frames included in the encoding file to generate a key frame sequence.
[0157] In some examples, the above-mentioned decoding unit 1004 is further configured to: determine, based on the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; in response to determining that the target spatial picture is a predicted frame in the target picture group, decode the predicted frame corresponding to the target picture identifier according to the target key frame and position information to obtain the target spatial picture.
[0158] In some examples, the decoding unit 1004 is further configured to: in response to determining that the target spatial picture is a key frame in the target picture group, use the target key frame as the target spatial picture.
[0159] In this embodiment, a first determination unit in a decoding device suitable for spatial images determines the target longitude and latitude corresponding to the target spatial picture expected by the user based on the obtained operation information; a second determination unit determines the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs based on the target longitude and latitude; a third determination unit determines the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; the decoding unit decodes the target spatial picture based on the target key frame and the position information, thereby providing a decoding device suitable for spatial pictures. During the decoding process, the target longitude and latitude corresponding to the target spatial picture expected by the user are mapped to the corresponding position in the encoded file to decode the data at the corresponding position, and all the key frames in the encoded file are preloaded as external reference frames of the predicted frames in the encoded file, thereby avoiding time loss caused by repeated decoding of key frames during the decoding process, and improving the efficiency of spatial decoding while ensuring the flexibility of the spatial decoding process.
[0160] Referring now to FIG11 , a schematic diagram illustrating the structure of a computer system 1100 suitable for implementing devices (e.g., devices 101, 102, 103, and 105 shown in FIG1 ) according to an embodiment of the present disclosure is shown. The device shown in FIG11 is merely an example and should not limit the functionality or scope of use of the embodiments of the present disclosure.
[0161] As shown in FIG11 , a computer system 1100 includes a processor (e.g., a CPU, a central processing unit) 1101, which can perform various appropriate actions and processes according to a program stored in a read-only memory (ROM) 1102 or a program loaded from a storage unit 1108 into a random access memory (RAM) 1103. Various programs and data required for the operation of the system 1100 are also stored in the RAM 1103. The processor 1101, the ROM 1102, and the RAM 1103 are connected to each other via a bus 1104. An input / output (I / O) interface 1105 is also connected to the bus 1104.
[0162] The following components are connected to the I / O interface 1105: an input section 1106 including a keyboard, a mouse, and the like; an output section 1107 including devices such as a cathode ray tube (CRT), a liquid crystal display (LCD), and speakers; a storage section 1108 including a hard disk; and a communication section 1109 including a network interface card such as a LAN card or a modem. The communication section 1109 performs communication processing via a network such as the Internet. A drive 1110 is also connected to the I / O interface 1105 as needed. Removable media 1111, such as a magnetic disk, an optical disk, a magneto-optical disk, or a semiconductor memory, is installed in the drive 1110 as needed, so that computer programs read therefrom can be installed into the storage section 1108 as needed.
[0163] In particular, according to an embodiment of the present disclosure, the process described above with reference to the flowchart can be implemented as a computer software program. For example, an embodiment of the present disclosure includes a computer program product, which includes a computer program carried on a computer-readable medium, and the computer program includes program code for executing the method shown in the flowchart. In such an embodiment, the computer program can be downloaded and installed from a network via the communication section 1109 and / or installed from a removable medium 1111. When the computer program is executed by the processor 1101, the above-mentioned functions defined in the method of the present disclosure are performed.
[0164] It should be noted that the computer-readable medium of the present disclosure may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, device, or component, or any combination thereof. More specific examples of computer-readable storage media may include, but are not limited to, an electrical connection having one or more wires, a portable computer disk, a hard disk, a random access memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disk read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination thereof. In the present disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, device, or component. In the present disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, which carries computer-readable program code. This propagated data signal may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium may also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport a program for use by or in conjunction with an instruction execution system, apparatus, or device. Program code embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to wireless, wireline, optical fiber cable, RF, or any suitable combination thereof.
[0165] Computer program code for performing the operations of the present disclosure may be written in one or more programming languages, or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, C++, and conventional procedural programming languages such as "C" or similar programming languages. The program code may be executed entirely on the client computer, partially on the client computer, as a stand-alone software package, partially on the client computer and partially on a remote computer, or entirely on the remote computer or server. In cases involving a remote computer, the remote computer may be connected to the client computer through any type of network, including a local area network (LAN) or a wide area network (WAN), or may be connected to an external computer (e.g., through the Internet using an Internet service provider).
[0166] The flowcharts and block diagrams in the accompanying drawings illustrate the possible implementation architecture, functions and operations of the devices, methods and computer program products according to various embodiments of the present disclosure. In this regard, each box in the flowchart or block diagram can represent a module, program segment, or a part of code, and the module, program segment, or a part of code contains one or more executable instructions for implementing the specified logical function. It should also be noted that in some alternative implementations, the functions marked in the box can also occur in a different order than that marked in the accompanying drawings. For example, two boxes represented in succession can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, depending on the functions involved. It should also be noted that each box in the block diagram and / or flowchart, and the combination of the boxes in the block diagram and / or flowchart, can be implemented with a dedicated hardware-based system that performs the specified function or operation, or can be implemented with a combination of dedicated hardware and computer instructions.
[0167] The units involved in the embodiments described in the present disclosure may be implemented in software or in hardware. The units described may also be provided in a processor, for example, may be described as: a processor comprising a first determination unit, a second determination unit, a third determination unit, and a decoding unit. The names of these units do not, in some cases, constitute a limitation on the units themselves. For example, the third determination unit may also be described as a "unit for determining a target key frame corresponding to a target picture group from a preloaded key frame sequence."
[0168] As another aspect, the present disclosure further provides a computer-readable medium, which may be included in the device described in the above embodiment; or may exist independently and not be assembled into the device. The computer-readable medium carries one or more programs. When the one or more programs are executed by the device, the computer device: determines the target longitude and latitude corresponding to the target spatial image desired by the user based on the acquired operation information; determines the position information of the target spatial image in the encoded file and the target picture group to which the target spatial image belongs based on the target longitude and latitude; determines the target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoded file; and decodes the target spatial image based on the target key frame and the position information.
[0169] The above description is merely a preferred embodiment of the present disclosure and an illustration of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the present disclosure is not limited to the technical solutions formed by the specific combination of the above-mentioned technical features, but also encompasses other technical solutions formed by any combination of the above-mentioned technical features or their equivalents without departing from the above-mentioned inventive concept. For example, a technical solution formed by replacing the above-mentioned features with (but not limited to) technical features with similar functions disclosed in this disclosure.
Claims
1. A decoding method for a space image, comprising: Determine the target longitude and latitude corresponding to the target space image desired by the user according to the acquired operation information; Determine, according to the target longitude and latitude, the location information of the target space picture in the encoding file and the target picture group to which the target space picture belongs; Determining a target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoding file; The target space picture is obtained by decoding according to the target key frame and the position information.
2. The method according to claim 1, wherein: The step of determining, according to the target longitude and latitude, the position information of the target space picture in the encoded file and the target picture group to which the target space picture belongs includes: Determine a target picture group identifier of a target picture group to which the target spatial picture belongs and a target picture identifier of the target spatial picture according to the target longitude and latitude and key frame longitude and latitude of key frames in each picture group in the encoded file; According to the target picture group identifier and the target picture identifier, position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs are determined.
3. The method according to claim 2, wherein: The step of determining the target picture group identifier of the target picture group to which the target spatial picture belongs and the target picture identifier of the target spatial picture according to the target longitude and latitude and the key frame longitude and latitude of the key frames in each picture group in the encoded file comprises: The target picture group is determined by taking the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame in each picture group in the encoded file belongs as the target picture group, and determining the target picture group identifier; According to the target longitude and latitude and the key frame longitude and latitude corresponding to the key frame in the target picture group The offset between them determines the target image identifier.
4. The method according to claim 2 or 3, wherein: The step of determining the target key frame corresponding to the target picture group from the preloaded key frame sequence includes: According to the target picture group identifier, a target key frame corresponding to the target picture group is determined from the key frame sequence.
5. The method according to claim 1, wherein: Before determining the target key frame corresponding to the target picture group from the preloaded key frame sequence, the method further includes: During the initialization process, the decoded key frames included in the encoding file are loaded to generate the key frame sequence.
6. The method according to claim 1, wherein: The decoding to obtain the target space picture according to the target key frame and the position information includes: Determining, according to the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; In response to determining that the target spatial picture is a predicted frame in the target picture group, the predicted frame corresponding to the target picture identifier is decoded according to the target key frame and the position information to obtain the target spatial picture.
7. The method according to claim 6, wherein: The decoding to obtain the target space picture according to the target key frame and the position information further includes: In response to determining that the target spatial picture is a key frame in the target picture group, the target key frame is used as the target spatial picture.
8. A decoding device for spatial images, comprising: The first determining unit is configured to determine the target desired by the user according to the acquired operation information. The target longitude and latitude corresponding to the space image; A second determining unit is configured to determine, according to the target longitude and latitude, the position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs; A third determining unit is configured to determine a target key frame corresponding to the target picture group from a preloaded key frame sequence, wherein the key frame sequence includes the key frames involved in the encoding file; The decoding unit is configured to decode and obtain the target space picture according to the target key frame and the position information.
9. The device according to claim 8, wherein: The second determining unit is further configured to: Determine a target picture group identifier of a target picture group to which the target spatial picture belongs and a target picture identifier of the target spatial picture according to the target longitude and latitude and key frame longitude and latitude of key frames in each picture group in the encoded file; According to the target picture group identifier and the target picture identifier, position information of the target spatial picture in the encoded file and the target picture group to which the target spatial picture belongs are determined.
10. The device according to claim 8, wherein: The second determining unit is further configured to: The target picture group is determined by taking the picture group to which the key frame corresponding to the key frame longitude and latitude closest to the target longitude and latitude in the key frame in each picture group in the encoded file belongs as the target picture group, and determining the target picture group identifier; The target picture identifier is determined according to an offset between the target longitude and latitude and a key frame longitude and latitude corresponding to a key frame in the target picture group.
11. The device according to claim 9 or 10, wherein: The third determining unit is further configured to: According to the target picture group identifier, a target key frame corresponding to the target picture group is determined from the key frame sequence.
12. The device according to claim 8, wherein: The device also includes: The loading unit is configured to: during the initialization process, load the decoded key frames included in the encoding file to generate a key frame sequence.
13. The device according to claim 8, wherein: The decoding unit is further configured to: Determining, according to the target picture identifier, whether the target spatial picture is a key frame in the target picture group or a predicted frame in the target picture group; In response to determining that the target spatial picture is a predicted frame in the target picture group, the predicted frame corresponding to the target picture identifier is decoded according to the target key frame and the position information to obtain the target spatial picture.
14. The device according to claim 13, wherein: The decoding unit is further configured to: In response to determining that the target spatial picture is a key frame in the target picture group, the target key frame is used as the target spatial picture.
15. A non-transitory computer readable medium having a computer program stored thereon, wherein: When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
16. An electronic device, comprising: one or more processors; a storage device having one or more computer programs stored thereon, When the one or more computer programs are executed by the one or more processors, the One or more processors implement the method as claimed in any one of claims 1-7.
Citation Information
Patent Citations
A Panoramic Video Key Frame Coding Method and Device
CN106358033A
Virtual reality compression method based on positions
CN107197285A
Mthod and device for displaying image
CN111436005A
Virtual reality video transmission method and device
CN115529449A
Decoding method and device suitable for space image
CN116527914A
