Multimedia data processing method and apparatus, computer device, computer-readable storage medium, and computer program product
By using a combination of global and local reference data block sets, the method addresses the limited reference block issue in existing predictive coding, enhancing the coding performance of multimedia data frames through adaptive selection.
Patent Information
- Application Number
- JP2023560063
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2021-10-20
- Filing Date
- 2022-09-13
- Publication Date
- 2024-10-04
AI Technical Summary
Existing intra (picture) predictive coding modes for multimedia data frames have low coding performance due to the limited number of reference data blocks available for predictive coding.
The method involves obtaining a global reference data block set and a local reference data block set, where the global set includes data blocks with no adjacency to the data block to be coded, and the local set includes data blocks with contiguous relationships, allowing for adaptive selection of reference data blocks to expand the selection range and improve coding performance.
This approach enhances the coding performance of multimedia data frames by expanding the range of available reference data blocks for predictive coding, thereby improving compression efficiency.
Smart Images

Figure 2024535963000001_ABST
Abstract
Description
[Technical field]
[0001] This application relates to the field of Internet technology, and in particular to a multimedia data processing method and apparatus, a computer device, a computer-readable storage medium, and a computer program product.
[0002] Related Applications This application is proposed based on Chinese Patent Application No. 202111221892.4, filed on October 20, 2021, and claims priority to the above-mentioned Chinese patent application, the entire contents of which are incorporated by reference. [Background technology]
[0003] During multimedia data processing, intra (picture) predictive coding mode is mostly used for predictive coding of multimedia data frames, which can improve the coding performance of multimedia data frames. Therefore, intra (picture) predictive coding mode is widely used in multimedia data processing. However, in practice, it is found that existing intra (picture) predictive coding mode has low coding performance of multimedia data frames due to limited reference data blocks for predictive coding. Summary of the Invention
[0004] SUMMARY OF THE DISCLOSURE The embodiments of this application provide a multimedia data processing method and apparatus, a computer device, a computer-readable storage medium, and a computer program product, which can improve the coding performance of multimedia data frames.
[0005] One embodiment of the present application provides a multimedia data processing method, the method including:
[0006] obtaining a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set being associated with a data block to be coded in a multimedia data frame, the global reference data block set including coded data blocks that do not have an adjacent relationship with the data block to be coded in the multimedia data frame, and the local reference data block set including coded data blocks that have an adjacent relationship with the data block to be coded in the multimedia data frame;
[0007] Determining a reference data block for predictive coding of the data block to be coded from said global reference data block set and said local reference data block set.
[0008] One embodiment of the present application provides a multimedia data processing method, the method including:
[0009] obtaining a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set being associated with a data block to be decoded in a multimedia data frame, the global reference data block set including decoded data blocks that do not have an adjacent relationship with the data block to be decoded in the multimedia data frame, and the local reference data block set including decoded data blocks that have an adjacent relationship with the data block to be decoded in the multimedia data frame;
[0010] determining a reference data block for decoding the data block to be decoded from said global reference data block set and said local reference data block set;
[0011] One embodiment of the present application provides a multimedia data processing apparatus, the apparatus including:
[0012] an acquisition module configured to acquire a global reference data block set and a local reference data block set associated with a data block to be coded in a multimedia data frame, the global reference data block set including coded data blocks that do not have an adjacent relationship with the data block to be coded in the multimedia data frame, and the local reference data block set including coded data blocks that have an adjacent relationship with the data block to be coded in the multimedia data frame;
[0013] A selection module configured to determine, from said global reference data block set and said local reference data block set, a reference data block for predictive coding of said data block to be coded.
[0014] One embodiment of the present application provides a multimedia data processing apparatus, the apparatus including:
[0015] an acquisition module configured to acquire a global reference data block set and a local reference data block set associated with a data block to be decoded in a multimedia data frame, the global reference data block set including decoded data blocks that do not have an adjacent relationship with the data block to be decoded in the multimedia data frame, and the local reference data block set including decoded data blocks that have an adjacent relationship with the data block to be decoded in the multimedia data frame;
[0016] A selection module configured to determine, from the global reference data block set and the local reference data block set, a reference data block for decoding the data block to be decoded.
[0017] One embodiment of the present application provides a computing device comprising a processor and a memory.
[0018] Here, the memory is configured to store a computer program, and the processor is configured to invoke the computer program to perform the steps of the aforementioned method.
[0019] One embodiment of this application provides a computer-readable storage medium having a computer program stored thereon, the computer program including program instructions that, when executed by a processor, perform the steps of the aforementioned method.
[0020] One embodiment of this application provides a computer program product including a computer program or program instructions, which when executed by a processor are capable of performing the steps of the above-mentioned methods.
[0021] Through the embodiment of this application, a global reference data block set and a local reference data block set can be obtained, which is beneficial for a terminal that executes a coding process to adaptively select reference data blocks from the global reference data block set and the local reference data block set according to application scenes or user requirements, so as to perform predictive coding of a data block to be coded in a multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the coding performance of the multimedia data frame can be improved. [Brief description of the drawings]
[0022] In order to more clearly describe the technical solutions in the embodiments of this application or related technologies, the following briefly introduces the accompanying drawings for describing the embodiments or related technologies. Obviously, the accompanying drawings in the following description only show some embodiments of this application, and those skilled in the art can still obtain other accompanying drawings according to these accompanying drawings without creative efforts. [Figure 1] FIG. 1 is a flow diagram of a video processing method provided in one embodiment of this application. [Diagram 2] FIG. 2 is a schematic flow diagram of a processing method for multimedia data provided in one embodiment of this application. [Diagram 3] FIG. 3 is a schematic diagram of a coded data block provided in one embodiment of this application. [Figure 4]FIG. 4 is a schematic scene diagram of inter-frame coding of multimedia data frames provided in one embodiment of this application. [Diagram 5] FIG. 5 is a schematic scene diagram of intra block copy (IBC) of a multimedia data frame provided in one embodiment of this application. [Figure 6] FIG. 6 is a schematic scene diagram of memory reuse of reference data blocks of a multimedia data frame provided in one embodiment of this application. [Figure 7] FIG. 7 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 8] FIG. 8 is a schematic diagram illustrating the positional relationship between a global reference data block set, a local reference data block set, and a data block to be coded, provided in one embodiment of this application. [Figure 9] FIG. 9 is a schematic diagram illustrating the positional relationship between a global reference data block set, a local reference data block set, and a coded data block provided in one embodiment of this application. [Figure 10] FIG. 10 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 11] FIG. 11 is a schematic structural diagram of a multimedia data processing device provided in one embodiment of this application. [Figure 12] FIG. 12 is a schematic structural diagram of a multimedia data processing device provided in one embodiment of this application. [Figure 13] FIG. 13 is a schematic structural diagram of a computer device provided in one embodiment of this application. [Figure 14]FIG. 14 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 15] FIG. 15 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 16] FIG. 16 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 17] FIG. 17 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 18] FIG. 18 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. [Figure 19] FIG. 19 is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0023] The technical solutions in the embodiments of this application are clearly and completely described below with reference to the accompanying drawings in the embodiments of this application. Obviously, the described embodiments are only a part, not all, of the embodiments of this application. All other embodiments obtained by those skilled in the art based on the embodiments of this application without creative efforts shall fall within the protection scope of this application.
[0024] The embodiment of this application relates to a multimedia data processing technology. Multimedia data (or called media data) refers to composite data composed of media data, such as text, graphics, images, audio, animation, and video, which are interrelated in content. The multimedia data referred to in the embodiment of this application mainly includes image data consisting of images, or video data consisting of images, audio, etc. In the embodiment of this application, the data processing procedure of multimedia data is mainly described in detail by taking the multimedia data as video data. If the multimedia data is image data, please refer to the embodiment of this application. The processing procedure of multimedia data included in the embodiment of this application mainly includes media data acquisition, media data coding, media data file encapsulation, media data file transmission, media data decoding, and final data presentation. If the multimedia data is video data, the complete processing procedure of video data can be shown in Figure 1, specifically including video acquisition, video coding, video file encapsulation, video transmission, video file de-encapsulation, video decoding, and final video presentation.
[0025] Video acquisition is used to convert analog video into digital video and store the digital video in the format of a digital video file. In other words, video acquisition can convert a video signal into binary digital information, where the binary information converted from the video signal is a binary data stream, and the binary information may also be called the code stream or bit stream of the video signal. Video coding refers to converting an original video format file into another video format file through compression technology. The video media content referred to in the embodiment of this application includes actual scenes generated by video camera acquisition and screen content scenes generated by a computer. In terms of the mode of obtaining a video signal, the video signal may be shot by a video camera or generated by a computer. Due to different statistical characteristics, the corresponding compression coding mode may also be different. In the embodiment of this application, a hybrid coding framework is used to perform a series of the following operations and processes on the input original video signal, as shown in FIG. 2.
[0026] (1) Block partition structure: A multimedia data frame (such as a video frame in video data) is input, and the multimedia data frame is divided into multiple non-overlapping processing units according to the size of a block, and each processing unit performs a similar compression operation. In some embodiments, the processing unit is called a coding tree unit (CTU) or a largest coding unit (LCU). The CTU can be partitioned to obtain at least one basic coding unit, which is called a coding unit (CU). Each CU is the most basic element in the coding process. In some embodiments, the processing unit may also be called a tile (a rectangular region of a multimedia data frame for independent decoding and coding). The tile can be partitioned to obtain at least one superblock (SB). The SB is the starting point of block partitioning, and can be further divided into multiple subblocks. Then, the SB is partitioned to obtain at least one data block (B). Each data block is the most basic element in the coding process. The following describes various coding modes that may be used for each data block, where the relationship between SB and B may be shown in FIG.
[0027] (2) Predictive coding: predictive coding includes intra(picture) prediction mode and inter(picture) prediction mode. After the original video signal is predicted by the selected reconstructed video signal, a residual video signal is obtained. In many possible predictive coding modes, the coding side needs to determine the most appropriate predictive coding mode for the current coded data block (i.e., the data block to be coded) and then inform the decoding side.
[0028] a. (Intra-picture prediction): The predicted signal comes from a region coded and reconstructed in the same image.
[0029] b. (Inter (picture) prediction): The predicted signal comes from other pictures (called reference images) that are being coded and that are different from the current picture.
[0030] (3) (Transform and Quantization): After Discrete Fourier Transform (DFT), Discrete Cosine Transform (DCT) (a subset of DFT), and other transform operations, the residual video signal is transformed into a transform domain, called transform coefficients. A lossy quantization operation is performed on the signal in the transform domain, and certain information is lost, so that the quantized signal is useful for compressed representation.
[0031] In some video coding standards, there may be many transform modes for selection. Therefore, the coding side also needs to select the transform mode for the current coded data block and inform the decoding side. The granularity of quantization is usually determined by the quantization parameter (QP). When the value of QP is larger, it indicates that coefficients with a larger value range are quantized to the same output, which usually results in larger distortion and lower code rate. Conversely, when the value of QP is smaller, it indicates that coefficients with a smaller value range are quantized to the same output, which usually results in smaller distortion and higher code rate.
[0032] (4) Entropy coding or statistical coding: The quantized transform domain signal is statistically compressed and coded according to the frequency of occurrence of each value, and finally a binary (0 or 1) compressed code stream is output. In addition, other information generated by the coding, such as the selected mode and motion vectors, also requires entropy coding to reduce the amount of code rate.
[0033] Statistical coding is a lossless coding mode that can effectively reduce the code rate required to represent the same signal. Common statistical coding modes include variable length coding (VLC) or content-adaptive binary arithmetic coding (CABAC).
[0034] (5) Loop Filtering: After the operations of inverse quantization, inverse transformation, and predictive compensation (the inverse operations of (2) to (4) above) on the coded image (i.e., multimedia data frame), a reconstructed and decoded image can be obtained. Compared with the original image, some information of the restored image is different from that of the original image due to the effect of quantization, resulting in distortion. The restored image is subjected to filtering operations such as deblocking, Sample Adaptive Offset (SAO), or Adaptive Loop Filter (ALF), so that the degree of distortion caused by quantization can be effectively reduced. These filtered and reconstructed images are used as references for subsequent coded images to predict future signals, so the aforementioned filtering operations are also called loop filtering, i.e., filtering operations in a coded loop.
[0035] FIG. 2 shows the basic flow of a video coder. In FIG. 2, the k-th CU (S k Here, k is a positive integer greater than or equal to 1 and less than or equal to the number of CUs, which is the number of CUs in the current image. k [x,y] represents a pixel point having coordinates [x,y] in the kth CU, where x represents the horizontal coordinate of the pixel point and y represents the vertical coordinate of the pixel point. k [x,y] is subjected to motion compensation or intra (picture) prediction, and the predicted signal
number
number
number
[0036] According to the above coding process, it can be seen that, for each data block, after the decoder obtains the compressed code stream, entropy decoding is first performed to obtain various mode information and quantized transform coefficients. Each coefficient is inverse quantized and inverse transformed to obtain a residual signal. Meanwhile, according to the known coding mode information, a prediction signal corresponding to the data block can be obtained. After the two are added, a coded data block can be obtained. Finally, the coded data block needs to undergo loop filtering to generate a final coded data block.
[0037] Currently, mainstream video coding standards, such as HEVC, VVC, AVS3, AV1, and AV2, all use a block-based hybrid coding framework. They divide an original multimedia data frame into a series of coded data blocks, and then combine video coding methods, such as prediction, transformation, and entropy coding, to achieve video data compression. Motion compensation is a predictive coding method commonly used in video coding. Motion compensation is used to derive a predicted value of a current coded data block from a coding domain (i.e., a reference data block) based on the redundancy characteristics of video content in the time domain or spatial domain. Such predictive coding methods include inter (picture) prediction, intra block copy (IBC) prediction, intra string copy (ISC) prediction, etc. In a specific implementation of predictive coding, these predictive coding methods may be used alone or in combination. For coded data blocks using these predictive coding methods, it is often necessary to explicitly or implicitly code at least one two-dimensional displacement vector into the codestream to indicate the displacement of the current coded data block (or its parity block) relative to at least one reference data block.
[0038] It should be understood that in different predictive coding modes, the displacement vector may have different names. The embodiments of this application are uniformly described as follows: 1) The displacement vector in inter (picture) prediction is called motion vector (MV); 2) The displacement vector in IBC (i.e., intra (picture) predictive coding) is called block vector (BV); 3) The displacement vector in ISC is called string vector (SV). Related techniques in inter (picture) prediction and IBC prediction are introduced below.
[0039] 1.1. Inter (Picture) Prediction: As shown in Figure 4, inter (picture) prediction uses the time domain correlation of multimedia data frames to predict pixels of a current image using pixels of adjacent coded images, achieving the purpose of effectively removing the time domain redundancy of multimedia data frames. As a result, the bits of coding residual data can be effectively saved. P represents the current frame, Pr represents the reference frame, B represents the current data block to be coded, and Br represents the reference data block of B. B' and B have the same coordinate position in the image, and the coordinate of Br is (x r ,y r ), and the coordinates of B' are (x,y). The displacement between the current coded data block and its reference data block is called MV and can be expressed by the following mathematical equation (1):
[0040] MV = (x r -x,y r -y) (1)
[0041] Considering the relatively strong correlation of neighboring blocks in the time domain or the spatial domain, MV prediction techniques can be used to further reduce the bits required for coding MV. In H.265 / HEVC, inter-picture prediction includes two MV prediction techniques: Merge and AMVP.
[0042] 2.1. IBC Forecast: IBC is an intra-frame coding tool adopted in the extension of HEVC Screen Content Coding (SCC), which significantly improves the coding efficiency of screen content. In AVS3, VVC, and AV1, IBC technology is also adopted to improve the performance of SCC. IBC uses the correlation of screen content video in space to predict pixels of a coded data block using pixels of the coded data block in a multimedia data frame, so that the bits required for coding a pixel can be effectively saved. Figure 5 is a schematic diagram of the IBC technology. As shown in Figure 5, a coded data block (i.e., a current block 504) and a reference data block (i.e., a reference block 501) are located in the same multimedia data frame, the reference data block is located in a coding region 502, and the coded data block is located in an uncoded region. The displacement between a coded data block and its reference data block is called BV 503.
[0043] In the extension of the HEVC SCC, the IBC mode uses an implementation method similar to inter (picture) prediction. When the IBC mode is allowed for a multimedia data frame, the currently decoded but unfiltered picture is used as a special reference frame, and a mode of motion compensation with inter (picture) prediction is used to derive a prediction value of a coded data block from the reference frame. This implementation method has the following characteristics:
[0044] 1) BV uses integer precision only.
[0045] 2) A global reference data block set (i.e., global reference scope) is used, i.e., it is used in all reconstructed parts of the current multimedia data frame, except for some regions that are prohibited from being used as reference data blocks based on parallel processing and chromaticity interpolation considerations. Other regions may be used as reference data blocks for coded data blocks.
[0046] 3) In the decoded image cache, the image currently being decoded but not filtered occupies an image-sized cache.
[0047] 4) The picture currently being decoded but not filtered is placed at the end of the reference picture list.
[0048] In hardware implementation, a computing core can read and write data from an on-chip memory or an off-chip memory. The on-chip memory is usually a static memory with fast read and write speeds. However, due to the relatively high price of the on-chip memory, usually only a smaller on-chip memory is used. The off-chip memory is usually much larger. However, some rules need to be followed for efficient access. When a recent coded data block is written back to an off-chip picture memory, there is usually a write-back delay. In a typical hardware implementation of motion compensation, a currently decoded image is written to an off-chip memory after a loop filtering operation is completed for future reference. When the motion compensation of a subsequent coded data block needs to refer to a coded data block located in the off-chip memory, the related data of the reference data block needs to be read from the off-chip memory. This process involves consuming memory bandwidth for writing and reading. Although the IBC solution in HEVC-SCC has a smaller impact on existing software designs in software implementation, there are two problems in hardware implementation.
[0049] a. The reference image of IBC is a version without loop filtering, which is different from the final output coded image. Outputting the image to off-chip memory increases memory bandwidth.
[0050] b. The currently decoded or just reconstructed adjacent data block can be used as a reference for the next coded data block. This requires completing the decoding of the reconstructed data block within a limited clock period, outputting the data block to an off-chip memory, and then reading the data block into an on-chip memory. This poses a significant challenge to the hardware implementation.
[0051] Considering the hardware implementation problem of IBC, some IBC-related optimization solutions are used in subsequent standards, such as VVC, AVS3, and AV1. The IBC solution in VVC and AVS3 standards uses a local reference data block set, that is, the coded data block adjacent to the current coded data block is used as the reference data block of the current coded data block. In a specific hardware implementation, a reference data block in the local reference data block set stored in the on-chip memory can be used to solve the above problem. Based on the consideration of hardware implementation cost and coding performance, IBC uses only one CTU-sized reference data block in the local reference data block set stored in the memory, and uses a reference memory reconstruction strategy as shown in FIG. 6. In addition to the 64×64 CU that stores the current data block to be reconstructed, there are three 64×64 CUs that can be used to store the reconstructed data block. Therefore, IBC can search only these three 64×64 CUs and the reconstructed part of the current 64×64 CU.
[0052] In conclusion, the IBC solution in the AV1 standard uses a global reference data block set. That is, the current coded data block is allowed to refer to the coded data block in the current multimedia data frame. However, this solution has two drawbacks: a. To meet the requirements of the write-back restriction condition, the coded data block adjacent to the current coded data block is not allowed to be used as a reference data block. b. If the current multimedia data frame is allowed to use IBC, the loop filter is prohibited. However, screen content sequences often have relatively strong spatial correlation, and the adjacent data blocks have relatively high reference values. Allowing the adjacent coded data blocks to be referenced helps to improve the coding performance. In some sequence contents, prohibiting the loop filter also causes the degradation of the multimedia data quality and affects the coding performance. Although the IBC solution based on the local reference data block set does not have the aforementioned drawbacks, using only the local reference data block set may degrade the coding performance of the multimedia data frame due to the limited number of reference data blocks available in the local reference data block set. According to the characteristics of sequence content, coding parameters such as global reference data block set, local reference data block set, loop filtering, etc. have different proportions in coding performance. Therefore, based on the deficiencies in the IBC solution of global reference data block set and the IBC solution of local reference data block set, through the embodiment of this application, a suitable predictive coding mode is selected according to the attribute information of the multimedia data frame, which is desirable to improve coding performance. In other words, the embodiment of this application provides a global reference data block set and a local reference data block set, which is beneficial for the coding terminal to adaptively select a reference data block from the global reference data block set and the local reference data block set according to the attribute information of the current coded data block, so that the selection range of the reference data block is extended, and the problem of the limited number of reference data blocks can be solved. Moreover, the current coded data block is predictively coded according to the selected reference data block, which can improve the coding performance of the multimedia data frame.
[0053] As an example, the method provided in the embodiments of this application may be performed by a terminal, by a server, or by a terminal and a server together. The devices for performing the methods in the embodiments of this application may be collectively referred to as a computer device. The server may be an independent physical server, a server cluster or a distributed system consisting of at least two physical servers, or a cloud server providing basic cloud computing services, such as cloud services, cloud databases, cloud computing, cloud functions, cloud storage, network services, cloud communications, middleware services, domain name services, security services, content delivery network (CDN), big data and artificial intelligence platforms. The terminal may be, but is not limited to, a smart in-vehicle terminal, a smart video camera, a smartphone, a tablet computer, a notebook computer, a desktop computer, a smart speaker, a speaker with a screen, a smart watch, a smart TV, etc. The terminal and the server may be directly or indirectly connected in a wired or wireless communication mode, and further, one or at least two terminals and servers may be provided, which is not limited in this application.
[0054] As an example, the embodiments of this application may be applied to various scenes, including, but not limited to, cloud technology, artificial intelligence, intelligent road traffic, assisted driving, etc. For example, in an intelligent road traffic scene, the multimedia data frame is a video frame or an image frame acquired by photographing the road through a camera head, where the camera head may be an in-vehicle terminal or a road-side camera head. According to this application, the multimedia data frame is predictively coded, which is advantageous to improve the coding performance of the multimedia data frame. And the road situation can be observed in real time through the coded multimedia data frame to improve the driving safety of the vehicle.
[0055] Referring to Figure 7, Figure 7 is a schematic flow diagram of a multimedia data processing method provided in an embodiment of this application. As shown in Figure 7, the method may include at least S101 to S102.
[0056] S101: Obtain a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set being associated with coded data blocks in a multimedia data frame, the global reference data block set including coded data blocks that have no adjacent relationship with the data block to be coded in the multimedia data frame, and the local reference data block set including coded data blocks that have adjacent relationship with the data block to be coded in the multimedia data frame.
[0057] According to an embodiment of this application, a computer device can acquire a multimedia data frame. The multimedia data frame may be shot by the computer device, or the multimedia data frame may be downloaded from a network by the computer device. The multimedia data frame refers to a video frame coded in the video data, or one frame of an image coded in the image data. The video data may refer to live video data, movie and television video data, daily life video data, road surveillance video data, etc. The image data is person image data, building image data, object image data, etc. Furthermore, the computer device can acquire a global reference data block set associated with the multimedia data frame according to at least one of the following information: coding mode, write-back delay, and correlation between the coded data block and the data block to be coded, and can acquire a global reference data block set and a local reference data block set according to at least one of the following information: size of a storage space for storing the local reference data block set, and correlation between the coded data block and the data block to be coded.
[0058] As an example, the global reference data block set and the local reference data block set are stored in a first storage space and a second storage space, respectively. The first storage space and the second storage space may be located in the same computer device or in different computer devices. The first storage space and the second storage space may specifically refer to a magnetic disk, a storage medium array, etc., which are not limited in the embodiment of this application. When the first storage space and the second storage space are located in the same computer device, the first storage space may refer to an off-chip memory of the computer device, and the second storage space may refer to an on-chip memory of the computer device. Alternatively, the first storage space may refer to an on-chip memory of the computer device, and the second storage space may refer to an off-chip memory of the computer device. This is not limited in the embodiment of this application.
[0059] S102: Determine a reference data block for predictive coding of the data block to be coded from the local reference data block set and the global reference data block set.
[0060] Through the embodiment of this application, a computer device can obtain a global reference data block set and a local reference data block set, which is useful for adaptively selecting a reference data block from the global reference data block set and the local reference data block set according to application scene or user requirement, so as to perform predictive coding of a data block to be coded in a multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the coding performance of the multimedia data frame can be improved.
[0061] For example, the computer device may obtain attribute information of a data block to be coded, and determine a reference data block for predictive coding of the data block to be coded from a local reference data block set and a global reference data block set according to the attribute information of the data block to be coded. The attribute information of the data block to be coded includes at least one of the following: a media type of a multimedia data frame to which the data block to be coded belongs, a reference mark of the multimedia data frame, and a definition of the multimedia data frame to which the data block to be coded belongs. The media type includes an intra-frame type and an inter-frame type. The intra-frame type can refer to a representative multimedia data frame. The intra-frame type is a full intra-coding frame, such as an intra-frame, an I-frame, and a key frame. This type of frame only allows the use of intra-frame coding technology. The intra-frame coding technology includes an IBC mode or an ISC mode, and does not need to depend on other frames for coding. For example, the intra-frame type can refer to a multimedia data frame, which can reflect the main meaning of video data or image data. An inter-frame type can refer to a multimedia data frame in the video or image data other than an intra-frame type. An inter-frame type may be referred to as an inter-coding frame, such as a P-frame, a B-frame, or a non-key frame. This type of frame allows the use of inter-frame coding techniques and intra-frame coding techniques. In general, when an inter-frame coding technique is used, coding may be performed after the reference frame coding is completed.Reference marks in a multimedia data frame are used to reflect the selection of reference data blocks (ie, which set of reference data blocks is selected) for a data block to be coded.
[0062] Through the embodiment of this application, the computer device can obtain a global reference data block set and a local reference data block set. Then, the coding terminal can adaptively select reference data blocks from the global reference data block set and the local reference data block set according to application scenarios or user requirements, so as to perform predictive coding of the data block to be coded in the multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the coding performance of the multimedia data frame can be improved.
[0063] In some embodiments, the computing device may select one of the following two modes according to the coding mode of the multimedia data frame to obtain the global reference data block set:
[0064] Mode 1: the global reference data block set includes at least one first reference data block, and when the coding mode of the multimedia data frame is a serial coding mode, the first reference data block in the global reference data block set is a coded data block that has a parameter association relationship that satisfies the write-back restriction condition in the multimedia data frame and belongs to the same tile as the data block to be coded. The parameter association relationship is used to reflect the association relationship between the first position information and the second position information, and the association relationship between the first position information and the size information of the SB. The first position information refers to the position information of the data block to be coded in the multimedia data frame, and the second position information refers to the position information of the data block to be coded in the multimedia data frame. And the write-back restriction condition is used to reflect the limited delay of writing the coded data block to the global reference data block set. In other words, the serial coding mode means that only one data block in the multimedia data frame is predictively coded at the same time. When the coding mode of the multimedia data frame is a serial coding mode, this coding mode does not affect the determination process of the reference data block. However, writing the coded data block to the global reference data block set causes a larger write-back delay, i.e., writing the coded data block to the global reference data block set takes longer. Thus, the coded data block can only be used as a reference data block after waiting at least a preset time. The preset time is determined according to a bounded delay of writing the coded data block to the global reference data block set. The bounded delay may refer to one of an average delay, a maximum delay, and a minimum delay of writing the coded data block to the global reference data block set.Therefore, when the coding mode of the multimedia data frame is a serial coding mode, the first reference data block in the global reference data block set needs to satisfy the following two conditions: a) it belongs to the same tile as the data block to be coded, and b) it has a parameter association relationship that satisfies the write-back restriction condition.
[0065] Referring to FIG. 14, the computing device may perform steps s11 to s14 shown in FIG. 14 to obtain a global reference data block set.
[0066] s11: When the coding mode of the multimedia data frame is a serial coding mode, obtain first position information, size information of SB, and second position information, respectively, where the first position information refers to position information of a coded data block in the multimedia data frame, and the second position information refers to position information of a data block to be coded in the multimedia data frame.
[0067] s12: Obtain a write-back limit condition. The write-back limit condition is used to reflect a limited delay of writing the coded data block to the global reference data block set.
[0068] s13: Select a coded data block from the multimedia data frame as a first reference data block, which has a parameter association relationship that satisfies a write-back restriction condition and belongs to the same tile as the data block to be coded, where the parameter association relationship is used to reflect the association relationship between the first position information and the second position information, and the association relationship between the first position information and the size information of the SB.
[0069] s14: Add the first reference data block to the global reference data block set.
[0070] In steps s11 to s14, when the coding mode of the multimedia data frame is a serial coding mode, the computer device may respectively acquire first position information, size information of SB, and second position information. The first position information refers to the position information of the coded data block in the multimedia data frame, the second position information refers to the position information of the coded data block in the multimedia data frame, the first position information may refer to the coordinates of pixels of the coded data block in the multimedia data frame, the second position information may refer to the coordinates of pixels of the coded data block in the multimedia data frame, and the size information of SB may refer to the width and height of SB. The computer device may acquire a write-back restriction condition, select a coded data block from the multimedia data frame that has a parameter association relationship that satisfies the write-back restriction condition and belongs to the same tile as the data block to be coded as a first reference data block, and add the first reference data block to the global reference data block set. The first reference data block is selected according to the write-back restriction condition, the first position information, the second position information, and the size information of the SB, thereby ensuring that the first reference data block has a relatively strong spatial correlation with the coded data block and ensuring the availability of the first reference data block.
[0071] In some embodiments, referring to FIG. 15, step s13 may be performed by steps s21 to s24 shown in FIG.
[0072] s21: Select a coded data block belonging to the same tile from the multimedia data frame as a first candidate reference data block according to the first position information and the second position information.
[0073] s22: Under a write-back restriction condition, determine a restricted number of spaced data blocks between the coded data block and the data block to be coded in the multimedia data frame.
[0074] s23: Count the number of distance data blocks between the first candidate reference data block and the data block to be coded according to the first position information, the size information of the SB, and the second position information.
[0075] s24: Determine, as a first reference data block, a first candidate reference data block having a number of distant data blocks greater than the limited number of distant data blocks.
[0076] In steps s21 to s24, it is assumed that the first position information is the coordinates of a pixel of a coded data block in a multimedia data frame, the second position information is the coordinates of a pixel of a coded data block in a multimedia data frame, the position information of the coded data block is (ref_x, ref_y), and the position information of the data block to be coded is (cur_x, cur_y). The computer device selects a coded data block belonging to the same tile as the data block to be coded from the multimedia data frame as a first candidate reference data block, and determines a limit number of spaced data blocks between the coded data block and the data block to be coded in the multimedia data frame under a write-back limit condition, where the limit number of spaced data blocks refers to the minimum number of data blocks that need to be spaced between the coded data block and the data block to be coded when the write-back limit condition is satisfied. Then, count the number of spaced data blocks between the first candidate reference data block and the data block to be coded according to the first position information, the size information of the SB, and the second position information, where the number of spaced data blocks is the number of data blocks that are actually spaced between the first candidate reference data block and the data block to be coded. Then, determine the first candidate reference data block whose number of spaced data blocks is greater than the limit number of spaced data blocks as the first reference data block. The global reference data block set is obtained according to the position information of the coded data block, the position information of the data block to be coded, and the write-back delay limit condition, so as to ensure that the first reference data block has a relatively strong spatial correlation with the data block to be coded, and ensure the availability of the first reference data block. Moreover, no additional hardware cost is required, thereby saving costs.
[0077] For example, the computer device may use a first candidate reference data block that satisfies the following equation (2) as the first reference data block.
[0078]
number
[0079] In equation (2), cur_num-src_num represents the number of distant data blocks between the first candidate reference data block and the data block to be coded, where cur_num refers to the serial number of the first candidate reference data block, src_num refers to the serial number of the data block to be coded, and D refers to the limited number of distant data blocks when the write-back restriction condition is met, and cur_num and src_num can be calculated by the following equations (3) and (4).
[0080] In some embodiments, with reference to FIG. 16, step s23 may include steps s31 to s34 shown in FIG.
[0081] s31: Determine a row identifier and a column identifier of a first candidate reference data block according to the first position information and the size information of SB.
[0082] s32: Determine the row identifier and column identifier of the data block to be coded according to the second position information and the size information of SB.
[0083] s33: Determine the number of data blocks in each row in the multimedia data frame based on the size information of the data blocks to be coded.
[0084] s34: Count the number of distance data blocks between the first candidate reference data block and the data block to be coded according to the number of data blocks in each row, the row identifier and column identifier of the first candidate reference data block, and the row identifier and column identifier of the data block to be coded.
[0085] In steps s31 to s34, the row identifier of the first candidate reference data block is ref_y_num, the column identifier of the first candidate reference data block is ref_x_num, the row identifier of the data block to be coded is cur_x_num, and the column identifier of the data block to be coded is cur_y_num. The computer device can obtain the row identifier and column identifier of the first candidate reference data block and the row identifier and column identifier of the coded data block, respectively, by the following equation (3):
[0086]
number
[0087] Where, in equation (3), Floor() represents truncation, and W and H may be determined in any of the following four modes: 1. W and H may be determined according to the size information of SB. 2. W and H may be determined according to the size information of the basic unit of on-chip memory (VPDU, Virtual Pipeline Data Unit). 3. H may be determined according to the size information of SB, for example, if SB is 128×128, H is 128, and if SB is 64×64, H is 64. W may be a default value such as 64. 4. W and H may be preset values such as 4, 64, and 128. One SB may include at least one data block, and the size of SB and the size of data block are specifically determined according to the partitioning mode of multimedia data frame.
[0088] Then, the computer device can determine the number of data blocks in each row in the multimedia data frame according to the size information of the data block to be coded, determine the serial number of the first candidate reference data block according to the number of data blocks in each row and the row identifier and column identifier of the first candidate reference data block, and determine the serial number of the data block to be coded according to the number of data blocks in each row and the row identifier and column identifier of the data block to be coded, and determine the difference between the serial number of the first candidate reference data block and the serial number of the data block to be coded as the number of the distance data blocks between the first candidate reference data block and the data block to be coded. For example, the computer device can determine the number of data blocks in each row in the multimedia data frame, the serial number of the first candidate reference data block, and the serial number of the data block to be coded by the following equation (4):
[0089]
number
[0090] Wherein, in equation (4), stride refers to the number of data blocks in each row in the multimedia data frame, cur_num refers to the serial number of the first candidate reference data block, src_num refers to the serial number of the data block to be coded, Ceil() represents rounding up, and tile_w represents the width of the tile. A tile includes at least one SB, and thus the width of the tile can be determined according to the size information of the SB. For example, if the size of the SB is 128×128, the size of the tile can be 1024×720.
[0091] For example, the first position information refers to the coordinates of the coded data block in the multimedia data frame, and the second position information refers to the coordinates of the data block to be coded in the multimedia data frame, and when the coding mode of the multimedia data frame is a serial coding mode, the size of SB is 128×128, the width and height of the tile are 1024 and 720, respectively, and the values of W and H are equal to 64. Furthermore, under the write-back restriction condition, when the restriction number of the distanced data blocks between the coded data block and the data block to be coded is 4, the first reference data block in the global reference data block set is the coded data block that belongs to the same tile as the data block to be coded and has coordinates that satisfy the following equation (5). And the restriction number of the distanced data blocks may refer to the minimum number of data blocks that need to be distanced between the coded data block and the data block to be coded in the multimedia data frame when the write-back restriction condition is met.
[0092]
number
[0093] Here, in equation (5), (ref_x, ref_y) represent the coordinates of the coded data block in the multimedia data frame, (cur_x, cur_y) represent the coordinates of the data block to be coded in the multimedia data frame, and Floor() represents rounding down.
[0094] In another example, the first position information and the second position information respectively refer to the coordinates of the coded data block in the multimedia data frame and the coordinates of the data block to be coded in the multimedia data frame. When the coding mode of the multimedia data frame is a serial coding mode, the size of SB is 64×64, the width and height of the tile are 1024 and 720, respectively, and the values of W and H are equal to 64. And further, under the write-back restriction condition, when the restricted number of the distance data blocks between the coded data block and the data block to be coded is 4, the first reference data block in the global reference data block set is the coded data block that belongs to the same tile as the data block to be coded and has coordinates that satisfy the following equation (6):
[0095]
number
[0096] Here, (ref_x, ref_y) represent the coordinates of the coded data block in the multimedia data frame, (cur_x, cur_y) represent the coordinates of the data block to be coded in the multimedia data frame, and Floor() represents the rounding down.
[0097] It should be understood that when the coding mode of the multimedia data frame is a serial coding mode, the computer device can also acquire a global reference data block set by: determining a spacing distance between the coded data block and the data block to be coded according to the first position information, the second position information, and the size information of SB, and determining a spacing restriction distance between the coded data block and the data block to be coded, where the spacing restriction distance refers to the minimum spacing restriction distance between the coded data block and the data block to be coded under a write-back delay condition, using a coded data block that belongs to the same tile as the data block to be coded in the multimedia data frame and has a spacing distance greater than the spacing restriction distance as a first reference data block, and adding the first reference data block to the global reference data block set.
[0098] In some embodiments, a contiguous relationship between a data block to be coded and a coded data block may mean that the coding order of the data block to be coded is contiguous to the coding order of the coded data block, and a non-contiguous relationship between a data block to be coded and a coded data block may mean that the coding order of the data block to be coded is not contiguous to the coding order of the coded data block.
[0099] Mode 2: The global reference data block set includes at least one second reference data block. When the coding mode of the multimedia data frame is a parallel coding mode or a serial coding mode, the second reference data block in the global reference data block set is a coded data block that belongs to the same tile as the data block to be coded, and has a parameter association relationship that satisfies the write-back restriction condition in the multimedia data frame and satisfies the coding process condition. The parameter association relationship is used to reflect the association relationship between the position information of the coded data block in the multimedia data frame, the position information of the data block to be coded in the multimedia data frame, and the size information of the SB. And the write-back restriction condition is used to reflect the limited delay of writing the coded data block to the global reference data block set. In other words, the parallel coding mode means that multiple data blocks in the multimedia data frame are predictively coded at the same time. When the coding mode of the multimedia data frame is a parallel coding mode, this coding mode affects the determination process of the reference data block. In addition, writing the coded data block to the global reference data block set causes a larger write-back delay. Therefore, when the coding mode of the multimedia data frame is a parallel coding mode, the second reference data block in the global reference data block set needs to satisfy the following three conditions: a: it belongs to the same tile as the data block to be coded, b: it has a parameter association relationship that satisfies the write-back restriction condition, and c: it has a parameter association relationship that satisfies the coding process condition. When the coding mode of the multimedia data frame is a serial coding mode, the global reference data block set can also be obtained in mode 2, where the coding process condition may refer to the parallel coding process condition.
[0100] Referring to FIG. 17, to obtain a global reference data block set, a computing device may perform steps s41 to s44 shown in FIG.
[0101] s41: Obtain first position information, size information of SB, and second position information, respectively, where the first position information refers to position information of a coded data block in a multimedia data frame, and the second position information refers to position information of a data block to be coded in a multimedia data frame.
[0102] s42: Obtain a write-back limit condition and a coding process condition. The write-back limit condition is used to reflect a limited delay of writing the coded data block to the global reference data block set.
[0103] s43: Select a coded data block from the multimedia data frame as a second reference data block, the coded data block having a parameter association relationship that satisfies the write-back restriction condition and the coding process condition and that belongs to the same tile as the data block to be coded, where the parameter association relationship is used to reflect the association relationship between the first position information and the size information of the data block to be coded, and the association relationship between the first position information and the second position information.
[0104] s44: Add a second reference data block to the global reference data block set.
[0105] In steps s41 to s44, the first position information may refer to the coordinates of the pixel of the coded data block in the multimedia data frame, the second position information may refer to the coordinates of the pixel of the data block to be coded in the multimedia data frame, and the size information of SB may refer to the width and height of SB. The write-back restriction condition is used to reflect a limited delay of writing the coded data block to the global reference data block set, and the coding process condition is used to reflect a limited distance between the reference data block and the data block to be coded when the multimedia data frame is coded in parallel. Alternatively, the coding process condition is used to reflect a limited number of distance data blocks between the reference data block and the data block to be coded when the multimedia data frame is coded in parallel. A coded data block having a parameter association relationship that satisfies the write-back restriction condition and the coding process condition and belonging to the same tile as the data block to be coded is selected from the multimedia data frame as the second reference data block. Then, the second reference data block is added to the global reference data block set to ensure that the second reference data block has a relatively strong spatial correlation with the data block to be coded and to ensure the availability of the second reference data block.
[0106] In some embodiments, referring to FIG. 18, step s43 may include steps s51 to s55 shown in FIG.
[0107] s51: Select, according to the first position information and the second position information, a coded data block belonging to the same tile as the data block to be coded from the multimedia data frame as a second candidate reference data block.
[0108] s52: Select, as a second candidate reference data block, from the multimedia data frame, a first candidate reference data block having a parameter association relationship that satisfies the write-back restriction condition.
[0109] s53: Under a write-back restriction condition, determine a first data block restriction distance between the coded data block and the data block to be coded in the multimedia data frame.
[0110] s54: Under a coding process condition, a second data block limit distance between the coded data block and the data block to be coded in the multimedia data frame is determined.
[0111] s55: According to the first position information, the size information of SB, the second position information, the first data block limit distance, and the second data block limit distance, determine, as the second reference data block, a second candidate reference data block that satisfies the coding processing condition from the second candidate reference data blocks.
[0112] In steps s51 to s55, it is assumed that the first position information refers to the coordinates of the pixel of the coded data block in the multimedia data frame, the second position information refers to the coordinates of the pixel of the coded data block in the multimedia data frame, the position information of the coded data block is (ref_x, ref_y), and the position information of the data block to be coded is (cur_x, cur_y). The computer device may select a coded data block belonging to the same tile as the data block to be coded from the multimedia data frame as a first candidate reference data block. The computer device selects a first candidate reference data block having coordinates satisfying the above equation (4) from the multimedia data frame as a second candidate reference data block, and determines a first data block limit distance between the coded data block and the data block to be coded in the multimedia data frame under a write-back limit condition. Here, the first data block limit distance may refer to a minimum distance that needs to be kept between the coded data block and the data block to be coded in the multimedia data frame when the coding process condition is satisfied. Under a coding process condition, determine a second data block limit distance between the coded data block and the data block to be coded in the multimedia data frame, where the second data block limit distance may refer to a minimum distance that needs to be kept between the coded data block and the data block to be coded in the multimedia data frame when the coding process condition is satisfied.Then, determine a second candidate reference data block that satisfies the coding process condition from the second candidate reference data blocks according to the first position information, the size information of SB, the second position information, the first data block limit distance, and the second data block limit distance as a second reference data block.
[0113] In some embodiments, with reference to FIG. 19, step s55 may include steps s61 to s66 shown in FIG.
[0114] s61: Determine the row identifier and column identifier of the second candidate reference data block according to the first position information and the size information of SB.
[0115] s62: Determine a row identifier and a column identifier of the data block to be coded according to the second position information and the size information of SB.
[0116] s63: Select, as a third candidate reference data block, from the second candidate reference data blocks, a second candidate reference data block having a row identifier not greater than the row identifier of the data block to be coded.
[0117] s64: Determine a row distance between the third candidate reference data block and the data block to be coded according to the row identifier of the third candidate reference data block and the row identifier of the data block to be coded.
[0118] s65: Determine a column distance between the third candidate reference data block and the data block to be coded according to the column identifier of the third candidate reference data block and the column identifier of the data block to be coded.
[0119] s66: Determine a third candidate reference data block having a column distance less than the first distance threshold in the third candidate reference data block as a second reference data block, where the first distance threshold is determined according to the first data block limit distance, the second data block limit distance, and the row distance between the third candidate reference data block and the data block to be coded.
[0120] In steps s61 to s66, the computer device obtains row identifiers and column identifiers of the second candidate reference data block and row identifiers and column identifiers of the data block to be coded, respectively, according to the above equation (5). Then, select a second candidate reference data block having a row identifier not larger than the row identifier of the data block to be coded from the second candidate reference data block as a third candidate reference data block, determine the difference between the row identifier of the third candidate reference data block and the row identifier of the data block to be coded as the row distance between the third candidate reference data block and the data block to be coded, determine the difference between the column identifier of the third candidate reference data block and the column identifier of the data block to be coded as the column distance between the third candidate reference data block and the data block to be coded, and determine the third candidate reference data block having a column distance less than the first distance threshold in the third candidate reference data block as the second reference data block. For example, the computer device can determine the second candidate reference data block having coordinates that satisfy the following equation (7) as the second reference data block.
[0121]
number
[0122] Wherein, in equation (7), ref_y_num refers to the row identifier of the second candidate reference data block, ref_x_num refers to the column identifier of the second candidate reference data block, cur_y_num refers to the row identifier of the data block to be coded, cur_x_num refers to the column identifier of the data block to be coded, P refers to the first data block limit distance between the coded data block and the data block to be coded in the multimedia data frame under the write-back limit condition, and E refers to the second data block limit distance between the coded data block and the data block to be coded in the multimedia data frame under the coding process condition. The first data block limit distance may be determined according to the limited number of distance data blocks between the coded data block and the data block to be coded in the multimedia data frame under the write-back limit condition, for example, P and the aforementioned D may be the same value. The second data block limit distance may be determined according to the limited number of distance data blocks between the coded data block and the data block to be coded in the multimedia data frame under the coding process condition. ref_x_num-cur_x_num represents the column distance between the third candidate reference data block and the data block to be coded, and cure_y_num-ref_y_num represents the row distance between the third candidate reference data block and the data block to be coded.
[0123] For example, the first position information refers to the coordinates of the coded data block in the multimedia data frame, and the second position information refers to the coordinates of the coded data block in the multimedia data frame. When the coding mode of the multimedia data frame is a parallel coding mode or a serial coding mode, the size of SB is 128×128, the width and height of the tile are 1024 and 720, respectively, and the values of W and H are equal to 64. And, under the write-back restriction condition, when the restriction distance of the separated data block between the coded data block and the data block to be coded is 4, and under the coding process condition, when the restriction distance of the separated data block between the coded data block and the data block to be coded is 2, the second reference data block in the global reference data block set is the coded data block that belongs to the same tile as the data block to be coded and has coordinates that satisfy the following equation (8):
[0124]
number
[0125] where (ref_x, ref_y) represent the coordinates of the coded data block within the multimedia data frame, (cur_x, cur_y) represent the coordinates of the coded data block within the multimedia data frame, and Floor() represents the rounding down.
[0126] The first position information refers to the position information of the coded data block in the multimedia data frame, and the second position information refers to the position information of the data block to be coded in the multimedia data frame. When the coding mode in the multimedia data frame is a parallel coding mode or a serial coding mode, the size of SB is 64×64, the width and height of the tile are 1024 and 720, respectively, and the values of W and H are equal to 64. And when the limit distance of the separated data block between the coded data block and the data block to be coded under the write-back limit condition is 4, and the limit distance of the separated data block between the coded data block and the data block to be coded under the coding process condition is 1, the second reference data block in the global reference data block set is the coded data block that belongs to the same tile as the data block to be coded and has coordinates that satisfy the following equation (9):
[0127]
number
[0128] Here, (ref_x, ref_y) represent the coordinates of the coded data block in the multimedia data frame, (cur_x, cur_y) represent the coordinates of the data block to be coded in the multimedia data frame, and Floor() represents the rounding down.
[0129] As an example, when the coding mode of the multimedia data frame is a parallel coding mode or a serial coding mode, the computer device can also obtain a global reference data block set by: determining a number of distant data blocks between the coded data block and the data block to be coded according to the first position information, the second position information and the size information of the SB, and determining a target limit number of distant data blocks between the coded data block and the data block to be coded under a write-back delay condition and a coding process condition, where the target limit number of distant data blocks refers to a minimum number of distant data blocks between the coded data block and the data block to be coded when the write-back delay condition and the coding process condition are satisfied, using a coded data block that belongs to the same tile as the data block to be coded in the multimedia data frame and has a number of distant data blocks that is greater than the target limit number of distant data blocks as a second reference data block, and adding the second reference data block to the global reference data block set.
[0130] In some embodiments, the computing device can select one of the following two modes or a combination mode to acquire the local reference data block set:
[0131] Mode 1: the local reference data block set includes at least one third reference data block, and the third reference data block in the local reference data block set is a coded data block located in the same coding processing unit as the data block to be coded in the multimedia data frame. The coding processing unit may also be called a basic unit of on-chip memory (VPDU, Virtual Pipeline Data Unit), and the size information of the VPDU may be determined according to the coding processing capability of the coder. For example, the size of the VPDU is VPDU_W×VPDU_H, and the values of VPDU_W and VPDU_H may be 4, 8, 16, 32, 64, 128, etc. In other words, the coded data block having coordinates that satisfy ref_x / VPDU_W=cur_x / VPDU_W and ref_y / VPDU_H=cur_y / VPDU_H in the multimedia data frame is used as the second reference data block. For another example, when the size of the VPDU is 64×64, a coded data block in the VPDU 64×64 to which the data block to be coded belongs may be used as a reference data block of the data block to be coded. Alternatively, when the size of the VPDU is 64×64, a coded data block having coordinates that satisfy Floor(ref_x / 64)=Floor(cur_x / 64) and Floor(ref_y / 64)=Floor(cur_y / 64) in the multimedia data frame is used as a second reference data block.
[0132] Mode 2: The local reference data block set includes at least one fourth reference data block, and the fourth reference data block in the local reference data block set is a coded data block that has an adjacent relationship with the data block to be coded in the multimedia data frame and belongs to the same tile as the data block to be coded. The adjacent relationship between the fourth reference data block and the data block to be coded may include at least one of the following three cases:
[0133] a: The neighbor relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block and the data block to be coded belong to the same SB.
[0134] b: The adjacent relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block is located in N SBs adjacent to the data block to be coded, and the size of the SB is less than a size threshold, and N is determined according to the size information of the SB. For example, the coding direction of the multimedia data frame is from left to right, and the size threshold can be dynamically set according to the application scene or user requirements. If the size threshold is 128×128, the adjacent relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block is located in N SBs to the left of the data block to be coded, and the size of the SB is less than 128×128. N can be determined according to the following equation (10).
[0135]
number
[0136] Here, log2_sb_size refers to an intermediate variable, and sb_size refers to the size of SB.
[0137] c: The neighboring relationship between the fourth reference data block and the data block to be coded means that: the fourth reference data block is located in N SBs adjacent to the data block to be coded, and the size of the SB is equal to or larger than the size threshold; the data block in the upper left corner of the target area is a data block that is not reconstructed, and the target area is an area in the multimedia data frame where the fourth reference data block moves right by one SB; when the fourth reference data block moves by a distance of one SB (the moving direction is the same as the coding direction), the position information is different from the position information of the data block to be coded, and N is determined according to the size information of the SB. When the size of the SB is equal to or larger than the size threshold, for example, when the size of the SB is 128×128, the fourth reference data block needs to satisfy the following three conditions: 1. The fourth reference data block is a coded data block that belongs to the same tile as the data block to be coded. 2. The coordinates of the fourth reference data block after moving right by 128 pixels are (ref_x+128, ref_y), and then the data block having coordinates (ref_x+128, ref_y) in the multimedia data frame is the data block that is not reconstructed. 3. The position information when the fourth reference data block moves right by a distance of 1SB is different from the position information of the data block to be coded. This condition can be expressed in equation (11).
[0138]
number
[0139] In equation (11), != means no equal to.
[0140] In some embodiments, the distance between the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block and the data block to be coded is less than a second distance threshold. The second distance threshold may be dynamically set according to application scenes or user requirements. For example, the second distance threshold may be 214, and the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block are located at complete pixel positions of the multimedia data frame. This represents that the pixels included in these data blocks are complete pixels, and there is no case where one pixel is located in multiple data blocks.
[0141] For example, when the coding mode of the multimedia data frame is a parallel coding mode, the size of SB is 128×128, the limit number of the distance data blocks between the coded data block and the data block to be coded under the write-back delay limit condition is 4, the limit number of the distance data blocks between the coded data block and the data block to be coded under the coding process condition is 2, the mode of obtaining the local reference data block set is one of the above modes, and the size of the VPDU is 64×64, the relationship between the global reference data block set, the local reference data block set, and the data block to be coded is shown in FIG. 8. The size of the smallest square (i.e., the small square drawn with dotted lines) in FIG. 8 is 64×64, the size of the small square drawn with solid lines is 128×128, and the size of the data block is 32×32. Therefore, the coded data block in the 19th square of the first row in the multimedia data frame of FIG. 8 belongs to the local reference data block set 801, and the local reference data block set is used to code the data block to be coded in the 19th square of the first row. The coded data blocks in the first and second rows in the multimedia data frame that are eight data blocks away from the data block to be coded belong to a global reference data block set 802, and the global reference data block set is used to code the data block to be coded in the 19th square in the first row. As can be seen from Figure 8, the number of reference data blocks in the global reference data block set is greater than the number of reference data blocks in the local reference data block set, the reference data blocks in the global reference data block set and the data block to be coded do not have an adjacent relationship, and the data blocks in the local reference data block set and the data block to be coded do have an adjacent relationship.
[0142] For example, when the coding mode of the multimedia data frame is the parallel coding mode, the size of the SB is 128×128, the limit number of the distance data blocks between the coded data block and the data block to be coded under the write-back delay limit condition is 4, the limit number of the distance data blocks between the coded data block and the data block to be coded under the coding process condition is 2, the mode of obtaining the local reference data block set is the above-mentioned mode 2, and the size of the VPDU is 64×64, the relationship between the global reference data block set, the local reference data block set, and the data block to be coded is shown in Figure 9. In Figure 9, the size of the smallest square (i.e., the small square drawn with a dotted line) is 64×64, the size of the small square drawn with a solid line is 128×128, and the size of the data block is 32×32. Therefore, the coded data block in the 19th square of the first row in the multimedia data frame of Fig. 9 and the coded data block in the SB to the left of the coded data block belong to the local reference data block set 901, and the local reference data block set is used to code the data block to be coded in the 19th square of the first row. The coded data blocks in the first and second rows in the multimedia data frame, which are 8 data blocks away from the data block to be coded, belong to the global reference data block set 902, and the global reference data block set is used to code the data block to be coded in the 19th square of the first row. As can be seen from Fig. 9, the number of reference data blocks in the global reference data block set is greater than the number of reference data blocks in the local reference data block set, the reference data blocks in the global reference data block set and the data block to be coded do not have an adjacent relationship, and the data blocks in the local reference data block set and the data block to be coded have an adjacent relationship.
[0143] In some embodiments, for any multimedia data frame, the computer device may determine a reference data block for coding the data block to be coded from the global reference data block set and the local reference data block set. Alternatively, the computer device may adaptively select a reference data block set according to a coding mode of the data block to be coded, and determine a reference data block for coding the data block to be coded from the selected reference data block set. Specifically, the computer device may obtain a coding mode of the data block to be coded, and determine a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set when the coding mode of the data block to be coded is an IBC mode or an ISC mode. The coding mode of the data block to be coded may be determined according to a media type of the multimedia data frame, or the coding mode of the data block to be coded may be determined according to a coding mark (or a reference mark) of the multimedia data frame. The coding mode of the data block to be coded may refer to a predictive mode of the data block to be coded.
[0144] When the coding mode of the data block to be coded is IBC mode or ISC mode, the step of determining the reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set includes: When the coding mode of the data block to be coded is IBC mode or ISC mode, the local reference data block and the data block to be coded have an adjacent relationship, and the correlation between the second reference data block in the local reference data block set and the data block to be coded is relatively strong, so the computer device may preferentially search the local reference data block set. When the reference data block that satisfies the condition is searched in the local reference data block set, there is no need to search the global reference data block set, and when the reference data block that satisfies the condition is not searched in the local reference data block set, the global reference data block set is searched, thereby improving the efficiency of searching the reference data block and avoiding unnecessary resource waste. For example, the computer device may first obtain a pixel difference between the second reference data block in the local reference data block set and the data block to be coded. The pixel difference may refer to the sum of the mean squared error or absolute difference between the pixels of the second reference data block and the pixels of the data block to be coded. If there is a target data block in the local reference data block set that has a pixel difference less than the pixel difference threshold, it indicates that the target data block and the data block to be coded have a relatively strong correlation, and thus the target data block is used as a reference data block for predictive coding of the data block to be coded.If there is no target data block in the local reference data block set that has a pixel difference less than the pixel difference threshold, it indicates that the correlation between the second reference data block in the local reference data block set and the data block to be coded is relatively weak, and thus the reference data block for predictive coding of the data block to be coded is determined from the global reference data block set.
[0145] When the coding mode of the data block to be coded is IBC mode or ISC mode, the step of determining the reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set includes: When the coding mode of the data block to be coded is IBC mode or ISC mode, the computer device may determine the reference data block according to the target coded data block having a spatial adjacent relationship with the data block to be coded. Here, the target coded data block having a spatial adjacent relationship may refer to all coded data blocks having a positional adjacent relationship with the data block to be coded, and the target coded data block having a spatial adjacent relationship may refer to the coded data block having a positional adjacent relationship with the data block to be coded and having a strong correlation with the pixel of the data block to be coded. Specifically, the computer device obtains a target coded data block having a spatial adjacent relationship with the data block to be coded, and when the reference data block of the target coded data block belongs to a global reference data block set and a local reference data block set, the computer device can finely search the regions corresponding to the global reference data block set and the local reference data block set according to the motion parameters to obtain the reference data block for predictive coding of the data block to be coded. At this time, the reference data block of the data block to be coded belongs to the global reference data block set or the local reference data block set. Alternatively, the first region of the reference data block of the data block to be coded belongs to the global reference data block set, the second region of the reference data block of the data block to be coded belongs to the local reference data block set, and the data block in which the first region is located has a positional adjacent relationship with the data block in which the second region is located.The reference data blocks are searched according to the motion parameters, which are advantageous to search for optimal reference data blocks to improve coding performance. If the reference data blocks of the target coded data block all belong to the global reference data block set, the local reference data block set is omitted, and the area corresponding to the global reference data block set is searched finely according to the motion parameters to obtain the reference data blocks for predictive coding of the data block to be coded. If the reference data blocks of the target coded data block all belong to the local reference data block set, the global reference data block set is omitted, and the area corresponding to the local reference data block set is searched finely according to the motion parameters to obtain the reference data blocks for predictive coding of the data block to be coded.
[0146] The motion parameters include a moving window and a moving step length, where the size of the moving window is the same as the size of the data block to be coded, and the moving step length is smaller than the width of the moving window.
[0147] Please refer to Fig. 10, which is a schematic flow diagram of a multimedia data processing method provided in one embodiment of this application. As shown in Fig. 10, the method may include at least S201 to S202.
[0148] S201: Obtain a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set are associated with a data block to be decoded in a multimedia data frame, the global reference data block set includes a decoded data block that does not have an adjacent relationship with the data block to be decoded in the multimedia data frame, and the local reference data block set includes a decoded data block that has an adjacent relationship with the data block to be decoded in the multimedia data frame.
[0149] Through the embodiment of this application, a computer device can obtain a multimedia data frame. The multimedia data frame can be shot by a computer device, or the multimedia data frame can be downloaded from a network by a computer device. The multimedia data frame refers to a video frame to be decoded in the video data, or one frame of an image to be decoded in the image data. The video data can refer to live video data, movie and television video data, daily life video data, road surveillance video data, etc. The image data is person image data, building image data, object image data, etc. The computer device can obtain a global reference data block set associated with the multimedia data frame according to at least one of the following information: a decoding mode, a write-back delay, and a correlation between a decoded data block and a data block to be decoded, and can obtain a global reference data block set and a local reference data block set associated with the multimedia data frame according to at least one of the following information: a size of a storage space for storing the local reference data block set, and a correlation between a decoded data block and a data block to be decoded.
[0150] The global reference data block set and the local reference data block set are stored in a first storage space and a second storage space, respectively. The first storage space and the second storage space may be located in the same computer device or in different computer devices. The first storage space and the second storage space may specifically refer to a magnetic disk, a storage medium array, etc., which are not limited in the embodiment of this application. When the first storage space and the second storage space are located in the same computer device, the first storage space may refer to an off-chip memory of the computer device, and the second storage space may refer to an on-chip memory of the computer device. Alternatively, the first storage space may refer to an on-chip memory of the computer device, and the second storage space may refer to an off-chip memory of the computer device. This is not limited in the embodiment of this application.
[0151] S202: Determine a reference data block for decoding the data block to be decoded from the local reference data block set and the global reference data block set.
[0152] Through the embodiment of this application, the computer device can adaptively select reference data blocks from the global reference data block set and the local reference data block set according to application scenarios or user requirements, so as to perform decoding of the data block to be decoded in the multimedia data frame according to the reference data block.As a result, the selection range of the reference data block is expanded, and the decoding performance of the multimedia data frame can be improved.
[0153] For example, the computer device may obtain attribute information of the data block to be decoded, and determine a reference data block for decoding the data block to be decoded from the local reference data block set and the global reference data block set according to the attribute information of the data block to be decoded. The attribute information of the data block to be decoded includes at least one of a media type of the multimedia data frame to which the data block to be decoded belongs, a reference mark of the multimedia data frame, and a definition of the multimedia data frame to which the data block to be decoded belongs. The media type includes an intra-frame type and an inter-frame type. The intra-frame type may refer to a representative multimedia data frame. The intra-frame type is a full intra-decoded frame, such as an intra-frame, an I-frame, and a key frame. This type of frame only enables the use of an intra-frame decoding technique, and does not need to depend on other frames for decoding. For example, the intra-frame type may mean a multimedia data frame, which may reflect the main meaning of video data or image data. An inter-frame type may refer to a multimedia data frame in the video or image data other than an intra-frame type. An inter-frame type may be called an inter-decoded frame, such as a P-frame, a B-frame, or a non-key frame. This type of frame allows the use of intra-frame and inter-frame decoding techniques. In general, when an intra-frame decoding technique is used, decoding may be performed after the reference frame decoding is completed. The reference marks of the multimedia data frame are used to reflect the selection range of the reference data blocks (i.e., which reference data block set is selected) of the data block to be decoded.
[0154] Through the embodiment of this application, a computer device can obtain a global reference data block set and a local reference data block set. This is beneficial to adaptively select reference data blocks from the global reference data block set and the local reference data block set according to application scenarios or user requirements, so as to perform decoding of the data block to be decoded in the multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the decoding performance of the multimedia data frame can be improved.
[0155] In some embodiments, the computing device may select one of the following two modes according to the decoding mode of the multimedia data frame to obtain the global reference data block set:
[0156] Mode 1: the global data block set includes at least one first reference data block. When the decoding mode of the multimedia data frame is a serial decoding mode, the first reference data block in the global reference data block set is a decoded data block that has a parameter association relationship that satisfies the write-back limit condition in the multimedia data frame and belongs to the same decoding chip as the data block to be decoded. The parameter association relationship is used to reflect the association relationship between the first position information and the second position information and the association relationship between the first position information and the size information of the maximum decoding block, where the first position information refers to the position information of the decoded data block in the multimedia data frame, and the second position information refers to the position information of the data block to be decoded in the multimedia data frame, and the write-back limit condition is used to reflect the limit delay of writing the decoded data block to the global reference data block set. In other words, the serial decoding mode means that only one data block in the multimedia data frame is decoded at the same time. When the decoding mode of the multimedia data frame is a serial decoding mode, the decoding mode does not affect the determination process of the reference data block. However, writing the decoded data block to the global reference data block set will cause a larger write-back delay, that is, writing the decoded data block to the global reference data block set will take a longer time. Therefore, the decoded data block may only be used as a reference data block after waiting at least a preset time. The preset time is determined according to a bounded delay of writing the decoded data block to the global reference data block set. The bounded delay may refer to one of an average delay, a maximum delay, and a minimum delay of writing the decoded data block to the global reference data block set.Therefore, when the decoding mode of the multimedia data frame is a serial decoding mode, the first reference data block in the global reference data block set needs to satisfy the following two conditions: a) it belongs to the same decoding chip as the data block to be decoded, and b) it has a parameter association relationship that satisfies the write-back restriction condition.
[0157] Mode 2: the global data block set includes at least one second reference data block. When the decoding mode of the multimedia data frame is a parallel decoding mode or a serial decoding mode, the second reference data block in the global reference data block set is a decoded data block that belongs to the same decoding chip as the data block to be decoded, and has a parameter association relationship that satisfies the write-back limiting condition in the multimedia data frame and satisfies the decoding process condition. The parameter association relationship is used to reflect the association relationship between the position information of the decoded data block in the multimedia data frame, the position information of the data block to be decoded in the multimedia data frame, and the size information of the maximum decoding block. And the write-back limiting condition is used to reflect the limited delay of writing the decoded data block to the global reference data block set. The parallel decoding mode means that multiple data blocks in the multimedia data frame are predictively decoded at the same time. When the decoding mode of the multimedia data frame is a parallel decoding mode, this decoding mode affects the determination process of the reference data block. Moreover, writing the decoded data block into the global reference data block set will cause a larger write-back delay. Therefore, when the decoding mode of the multimedia data frame is a parallel decoding mode, the second reference data block in the global reference data block set needs to satisfy the following three conditions: a) it belongs to the same decoding chip as the data block to be decoded, b) it has a parameter association relationship that satisfies the write-back restriction condition, and c) it has a parameter association relationship that satisfies the decoding process condition. In particular, when the decoding mode of the multimedia data frame is a serial decoding mode, the global reference data block set may also be obtained in mode 2.Here, the decoding process conditions may refer to parallel decoding process conditions.
[0158] The specific mode of acquiring the global reference data block set may refer to the mode of acquiring the global reference data block set at the coding side, and will not be repeated here.
[0159] In some embodiments, a contiguous relationship between a data block to be coded and a coded data block may mean that the coding order of the data block to be coded is contiguous to the coding order of the coded data block, and a non-contiguous relationship between a coded data block and a data block to be coded may mean that the coding order of the data block to be coded is not contiguous to the coding order of the coded data block.
[0160] In some embodiments, the computing device may select one of the following two modes or a combination mode to acquire the local reference data block set:
[0161] Mode 1: The local data block set includes at least one third reference data block. And the third reference data block in the local reference data block set is a decoded data block located in the same decoding processing unit as the data block to be decoded in the multimedia data frame. The decoding processing unit may be called a basic unit of on-chip memory (VPDU, Virtual Pipeline Data Unit), and the size information of the VPDU may be determined according to the decoding processing capability of the decoder. For example, the size of the VPDU is VPDU_W×VPDU_H, and the values of VPDU_W and VPDU_H may be 4, 8, 16, 32, 64, 128, etc. In other words, the decoded data block having coordinates that satisfy ref_x / VPDU_W=cur_x / VPDU_W and ref_y / VPDU_H=cur_y / VPDU_H in the multimedia data frame is used as the third reference data block. For another example, if the size of the VPDU is 64×64, the decoded data block in the VPDU 64×64 to which the data block to be decoded belongs may be used as the reference data block of the data block to be decoded. Alternatively, if the size of the VPDU is 64×64, the decoded data block having coordinates that satisfy Floor(ref_x / 64)=Floor(cur_x / 64) and Floor(ref_y / 64)=Floor(cur_y / 64) in the multimedia data frame is used as the third reference data block.
[0162] Mode 2: The local data block set includes at least one fourth reference data block, and the fourth reference data block in the local reference data block set is a decoded data block that has an adjacent relationship with the data block to be decoded in the multimedia data frame and belongs to the same decoding chip as the data block to be decoded. The adjacent relationship between the fourth reference data block and the data block to be decoded may include one or a combination of the following three cases:
[0163] a: The adjacent relationship between the fourth reference data block and the data block to be decoded means that the fourth reference data block and the data block to be decoded belong to the same maximum decoding block.
[0164] b: The adjacent relationship between the fourth reference data block and the data block to be decoded means that the fourth reference data block is located within N maximum decoding blocks adjacent to the data block to be decoded, and the size of the maximum decoding block is less than a size threshold, and N is determined according to the size information of the maximum decoding block.
[0165] The size of SB is the same as the size of the largest decoding block, the size of the data block to be coded is the same as the size of the data block to be decoded, and the size of the tile is the same as the size of the decoding chip.
[0166] In some embodiments, the distance between the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block and the data block to be decoded is less than a second distance threshold. The second distance threshold can be dynamically set according to application scene or user requirements. For example, the second distance threshold can be 214, and the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block are located at the full pixel position of the multimedia data frame.
[0167] In some embodiments, for any multimedia data frame, the computer device may determine a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set. Alternatively, the computer device may adaptively select a reference data block set according to a decoding mode of the data block to be decoded to determine a reference data block for decoding the data block to be decoded from the selected reference data block set. Specifically, the computer device obtains a decoding mode of the data block to be decoded, and determines and obtains a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set when the decoding mode of the data block to be decoded is an IBC mode or an ISC mode. The decoding mode of the data block to be decoded may be determined according to a media type of the multimedia data frame, or the decoding mode of the data block to be decoded may be determined according to a decoding mark (or a reference mark) of the multimedia data frame. In particular, the decoding mode of the data block to be decoded may refer to a prediction mode of the data block to be decoded.
[0168] Referring to Figure 11, Figure 11 is a schematic structural diagram of a multimedia data processing device provided in one embodiment of this application. The multimedia data processing device may be a computer program (including program code) executed on a computer device. For example, the multimedia data processing device is application software. The device may be configured to execute corresponding steps in the method provided in the embodiment of this application.
[0169] As shown in Fig. 11, the multimedia data processing device may include an acquisition module 111 and a selection module 112. The acquisition module is configured to acquire a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set being associated with a data block to be coded in a multimedia data frame. The global reference data block set includes coded data blocks that do not have an adjacent relationship with the data block to be coded in the multimedia data frame, and the local reference data block set includes coded data blocks that have an adjacent relationship with the data block to be coded in the multimedia data frame. The selection module is configured to determine a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set.
[0170] In some embodiments, the selection module is further configured to obtain a coding mode of the data block to be coded, and, when the coding mode of the data block to be coded is an IBC mode or an ISC mode, determine reference data blocks for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set.
[0171] In some embodiments, the selection module is further configured to, when a coding mode of the data block to be coded is an IBC mode or an ISC mode, obtain a pixel difference between a second reference data block in the local reference data block set and the data block to be coded, and, when a target data block having a pixel difference less than the pixel difference threshold exists in the local reference data block set, set the target data block as the reference data block for predictive coding of the coded data block, and, when a target data block having a pixel difference less than the pixel difference threshold exists in the local reference data block set, determine a reference data block for predictive coding of the data block to be coded from the global reference data block set.
[0172] In some embodiments, the selection module is further configured to obtain a target coded data block having a spatial neighboring relationship with the data block to be coded when the coding mode of the data block to be coded is an IBC mode or an ISC mode, and to search an area corresponding to the global reference data block set and the local reference data block set according to the motion parameters to obtain a reference data block for predictive coding of the data block to be coded when the reference data block of the target coded data block belongs to the global reference data block set and the local reference data block set, the motion parameters including a moving window and a moving step length, the size of the moving window being the same as the size of the data block to be coded, and the moving step length being smaller than the width of the moving window.
[0173] In some embodiments, the global reference data block set includes at least one first reference data block. When the coding mode of the multimedia data frame is a serial coding mode, the first reference data block in the global reference data block set is a coded data block that has a parameter association relationship that satisfies a write-back restriction condition in the multimedia data frame and belongs to the same tile as the data block to be coded. The parameter association relationship is used to reflect an association relationship between the first position information and the size information of the SB and an association relationship between the first position information and the second position information, and the first position information and the second position information refer to the position information of the data block to be coded and the coded data block in the multimedia data frame, respectively. And the write-back restriction condition is used to reflect a limited delay of writing the coded data block to the global reference data block set.
[0174] In some embodiments, the acquisition module is further configured to acquire first position information, second position information, and size information of SB, respectively, when the coding mode of the multimedia data frame is a serial coding mode, the first position information refers to the position information of the coded data block in the multimedia data frame, and the second position information refers to the position information of the data block to be coded in the multimedia data frame. The acquisition module is configured to acquire a write-back restriction condition, the write-back restriction condition is used to reflect a limited delay of writing the coded data block to the global reference data block set. The acquisition module is configured to select, as the first reference data block, a coded data block having a parameter association relationship that satisfies the write-back restriction condition and belonging to the same tile as the data block to be coded from the multimedia data frame, the write-back restriction condition is used to reflect the parameter association relationship to reflect the association relationship between the first position information and the second position information and the association relationship between the first position information and the size information of the SB. And the acquisition module is configured to add the first reference data block to the global reference data block set.
[0175] In some embodiments, the acquisition module is further configured to: select, as a first candidate reference data block, a coded data block belonging to the same tile as the data block to be coded from the multimedia data frame according to the first position information and the second position information; determine, under a write-back restriction condition, a limit number of distant data blocks between the coded data block and the data block to be coded in the multimedia data frame; count the number of distant data blocks between the first candidate reference data block and the data block to be coded according to the first position information, the size information of the SB, and the second position information; and determine, as the first reference data block, a first candidate reference data block whose number of distant data blocks is greater than the limit number of distant data blocks.
[0176] In some embodiments, the acquisition module is further configured to determine a row identifier and a column identifier of the first candidate reference data block according to the first position information and the size information of SB, determine a row identifier and a column identifier of the data block to be coded according to the second position information and the size information of SB, determine the number of data blocks of each row in the multimedia data frame based on the size information of the data block to be coded, and count the number of spaced data blocks between the first candidate reference data block and the data block to be coded according to the number of data blocks in each row, the row identifier and the column identifier of the first candidate reference data block, and the row identifier and the column identifier of the data block to be coded.
[0177] In some embodiments, the global reference data block set includes at least one second reference data block, and the second reference data block in the global reference data block set is a coded data block that belongs to the same tile as the data block to be coded and has a parameter association relationship that satisfies the write-back restriction condition in the multimedia data frame and satisfies the coding process condition, where the parameter association relationship is used to reflect the association relationship between the position information of the coded data block in the multimedia data frame, the position information of the data block to be coded in the multimedia data frame, and the size information of the SB, and the write-back restriction condition is used to reflect the limited delay of writing the coded data block to the global reference data block set.
[0178] In some embodiments, the acquisition module is further configured to acquire first position information, size information of SB, and second position information, respectively, where the first position information refers to the position information of the coded data block in the multimedia data frame, and the second position information refers to the position information of the data block to be coded in the multimedia data frame; acquire a write-back restriction condition and a coding process condition, where the write-back restriction condition is used to reflect a limited delay of writing the coded data block to the global reference data block set; select, as the second reference data block, a coded data block having a parameter association relationship that satisfies the write-back restriction condition and the coding process condition and that belongs to the same tile as the data block to be coded from the multimedia data frame, where the parameter association relationship is used to reflect the association relationship between the first position information and the second position information and the association relationship between the first position information and the size information of the data block to be coded; and add the second reference data block to the global reference data block set.
[0179] In some embodiments, the acquisition module is further configured to: select, as a first candidate reference data block, a coded data block belonging to a same tile as the data block to be coded from the multimedia data frame according to the first position information and the second position information; select, as a second candidate reference data block, a first candidate reference data block having a parameter association relationship satisfying a write-back restriction condition from the first candidate reference data block; determine, under the write-back restriction condition, a first data block restriction distance between the coded data block and the data block to be coded in the multimedia data frame; determine, under a coding process condition, a second data block restriction distance between the coded data block and the data block to be coded in the multimedia data frame; and determine, as a second reference data block, a second candidate reference data block satisfying the coding process condition from the second candidate reference data block according to the first position information, the size information of the SB, the second position information, the first data block restriction distance and the second data block restriction distance.
[0180] In some embodiments, the acquisition module is further configured to: determine a row identifier and a column identifier of a second candidate reference data block according to the first position information and the size information of SB; determine a row identifier and a column identifier of a data block to be coded according to the second position information and the size information of SB; select a second candidate reference data block having a row identifier not larger than the row identifier of the data block to be coded from the second candidate reference data block as a third candidate reference data block; determine a row distance between the third candidate reference data block and the data block to be coded according to the row identifier of the third candidate reference data block and the row identifier of the data block to be coded; determine a column distance between the third candidate reference data block and the data block to be coded according to the column identifier of the third candidate reference data block and the column identifier of the data block to be coded; and determine a third candidate reference data block having a column distance less than the first distance threshold in the third candidate reference data block as the second candidate reference data block. The first distance threshold is determined according to the first data block limit distance, the second data block limit distance, and the row distance between the third candidate reference data block and the data block to be coded.
[0181] In some embodiments, the local reference data block set includes at least one third reference data block, and the third reference data block is a coded data block located in the same coding processing unit as the data block to be coded in the multimedia data frame.
[0182] In some embodiments, the local reference data block set includes at least one fourth reference data block, and the fourth reference data block is a coded data block that has an adjacent relationship with the data block to be coded in the multimedia data frame and belongs to the same tile as the data block to be coded.
[0183] In some embodiments, the neighbor relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block and the data block to be coded belong to the same SB.
[0184] In some embodiments, the adjacent relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block is located within N SBs adjacent to the data block to be coded, and the size of the SBs is not greater than a size threshold, and N is determined according to the size information of the SBs.
[0185] In some embodiments, the adjacent relationship between the fourth reference data block and the data block to be coded means that the fourth reference data block is located within N SBs adjacent to the data block to be coded, and the size of the SB is equal to or greater than a size threshold; the data block in the upper left corner of the target area is a non-reconstructed data block, and the target area is an area in the multimedia data frame where the fourth reference data block moves right by 1 SB; the position information when the fourth reference data block moves by a distance of 1 SB is different from the position information of the data block to be coded; and N is determined according to the size information of the SBs.
[0186] In some embodiments, the distance between the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block and the data block to be coded is less than a second distance threshold, and the first reference data block, the second reference data block, the third reference data block, and the fourth reference data block are located at perfect pixel positions in the multimedia data frame.
[0187] In some embodiments, the steps in the data processing method shown in Figure 7 may be performed by modules in the data processing apparatus shown in Figure 11. For example, step S101 shown in Figure 7 may be performed by the acquisition module 111 shown in Figure 11, and step S102 shown in Figure 7 may be performed by the selection module 112 shown in Figure 11.
[0188] In some embodiments, the modules in the multimedia data processing device shown in FIG. 11 may be combined separately or in whole into at least one unit, or one (or more) of the units herein may be further divided into at least two sub-units having smaller functions. In this way, the same operations may be implemented, and the implementation of the technical effects of the embodiments of this application is not affected. The aforementioned modules are divided based on logical functions. In actual applications, the functions of one module may be implemented by at least two units, or the functions of at least two modules may be implemented by one unit. In other embodiments of this application, the data processing device may also include other units. In actual applications, these functions may also be cooperatively implemented by other units, and may be cooperatively implemented by at least two units.
[0189] In some embodiments, a multimedia data processing device shown in FIG. 11 can be constructed and the data processing method in the embodiment of this application can be implemented by executing a computer program (including program code) capable of executing the steps of the corresponding method as shown in FIG. 10 and FIG. 11 in a general computing device. The general computing device is a computer including processing elements and storage elements such as a central processing unit (CPU), a random access memory (RAM), and a read-only memory (ROM). The aforementioned computer program may be recorded in a computer-readable recording medium, and may be loaded into the aforementioned computing device via the computer-readable recording medium and executed in the computing device.
[0190] Through the embodiment of this application, a computer device can obtain a global reference data block set and a local reference data block set. This is beneficial for a coding terminal to adaptively select a reference data block from the global reference data block set and the local reference data block set according to application scene or user requirement, so as to perform predictive coding of a data block to be coded in a multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the coding performance of the multimedia data frame can be improved.
[0191] Referring to FIG. 12, FIG. 12 is a schematic structural diagram of a multimedia data processing device provided in one embodiment of this application. The multimedia data processing device may be a computer program (including program code) executed on a computer device. For example, the multimedia data processing device is application software. The device may be configured to perform corresponding steps in the method provided in the embodiment of this application. As shown in FIG. 12, the multimedia data processing device may include an acquisition module 121 and a selection module 122. The acquisition module is configured to acquire a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set are associated with a data block to be decoded in a multimedia data frame, the global reference data block set includes a decoded data block that does not have an adjacent relationship with the data block to be decoded in the multimedia data frame, and the local reference data block set includes a decoded data block that has an adjacent relationship with the data block to be decoded in the multimedia data frame. The selection module is configured to determine a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set.
[0192] In some embodiments, the selection module is further configured to obtain a decoding mode of the data block to be decoded, and, when the decoding mode of the data block to be decoded is an IBC mode or an ISC mode, determine a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set.
[0193] In some embodiments, the global reference data block set includes at least one first reference data block, and when the decoding mode of the multimedia data frame is a serial decoding mode, the first reference data block in the global reference data block set is a decoded data block that has a parameter association relationship that satisfies a write-back limiting condition in the multimedia data frame and belongs to the same decoding chip as the data block to be decoded. The parameter association relationship is used to reflect the association relationship between the first position information and the second position information, and the association relationship between the first position information and the size information of the maximum decoding block. The first position information refers to the position information of the decoded data block in the multimedia data frame, and the second position information refers to the position information of the data block to be decoded in the multimedia data frame. And the write-back limiting condition is used to reflect the limited delay of writing the decoded data block to the global reference data block set.
[0194] In some embodiments, the global reference data block set includes at least one second reference data block, the second reference data block in the global reference data block set being a decoded data block that belongs to the same decoding chip as the data block to be decoded, and has a parameter association relationship that satisfies the write-back limiting condition in the multimedia data frame and satisfies the decoding process condition, the parameter association relationship is used to reflect an association relationship between the position information of the decoded data block in the multimedia data frame, the position information of the data block to be decoded in the multimedia data frame, and the size information of the maximum decoding block, and the write-back limiting condition is used to reflect a limited delay of writing the decoded data block to the global reference data block set.
[0195] In some embodiments, the local reference data block set includes at least one third reference data block, and the third reference data block in the local reference data block set is a decoded data block located in the same decoding processing unit as the data block to be decoded in the multimedia data frame.
[0196] In some embodiments, the local reference data block set includes at least one fourth reference data block, the fourth reference data block in the local reference data block set being a decoded data block that has an adjacent relationship with the data block to be decoded in the multimedia data frame and belongs to the same decoding chip as the data block to be decoded.
[0197] In some embodiments, the steps in the data processing method shown in Figure 10 may be performed by modules in the data processing apparatus shown in Figure 12. For example, step S201 shown in Figure 10 may be performed by the acquisition module 121 shown in Figure 12, and step S202 shown in Figure 10 may be performed by the selection module 122 shown in Figure 12.
[0198] In some embodiments, the modules in the multimedia data processing device shown in FIG. 12 may be combined separately or in whole into at least one unit, or one (or more) of the units herein may be further divided into at least two sub-units having smaller functions. In this way, the same operations may be implemented, and the implementation of the technical effects of the embodiments of this application is not affected. The aforementioned modules are divided based on logical functions. In actual applications, the functions of one module may be implemented by at least two units, or the functions of at least two modules may be implemented by one unit. In other embodiments of this application, the data processing device may also include other units. In actual applications, these functions may also be cooperatively implemented by other units, and may be cooperatively implemented by at least two units.
[0199] In some embodiments, a multimedia data processing device shown in FIG. 12 can be constructed and the data processing method in the embodiment of this application can be implemented by executing a computer program (including program code) capable of executing the steps of the corresponding method as shown in FIG. 10 and FIG. 11 in a general computing device. The general computing device is a computer including processing elements and storage elements such as a central processing unit (CPU), a random access memory (RAM), and a read-only memory (ROM). The aforementioned computer program may be recorded in a computer-readable recording medium, and may be loaded into the aforementioned computing device via the computer-readable recording medium and executed in the computing device.
[0200] Through the embodiment of this application, a computer device can obtain a global reference data block set and a local reference data block set. This is beneficial for a coding terminal to adaptively select a reference data block from the global reference data block set and the local reference data block set according to application scene or user requirement, so as to perform predictive coding of a data block to be decoded in a multimedia data frame according to the reference data block. As a result, the selection range of the reference data block is expanded, and the coding performance of the multimedia data frame can be improved.
[0201] Referring to FIG. 13, FIG. 13 is a schematic structural diagram of a computer device provided in one embodiment of this application. As shown in FIG. 13, the computer device 1000 may include a processor 1001, a network interface 1004, and a memory 1005. In addition, the computer device 1000 may further include a media content interface 1003 and at least one communication bus 1002. The communication bus 1002 is configured to implement the connection and communication between these components. The media content interface 1003 may include a display and a keyboard. Optionally, the media content interface 1003 may further include a standard wired interface and a standard wireless interface. In some embodiments, the network interface 1004 may include a standard wired interface and a standard wireless interface (e.g., a WiFi interface). The memory 1005 may be a high-speed random access memory (RAM), or may be a non-volatile memory, for example, at least one magnetic disk storage. In some embodiments, the memory 1005 may further be at least one storage device located remotely from the processor 1001. As shown in Figure 13, the memory 1005 used as a computer-readable storage medium may include an operating system, a network communication module, a media content interface module, and a device control application program.
[0202] 13, the network interface 1004 may provide a network communication function, and the media content interface 1003 is configured to mainly provide an input interface for media content.
[0203] It should be understood that the computer device 1000 described in the embodiment of this application can execute the description of the multimedia data processing method in the embodiment corresponding to Figures 7 to 10, and can also execute the description of the multimedia data processing device in the embodiment corresponding to Figures 11 and 12, which will not be repeated here. In addition, the description of the beneficial effects of the same method will not be described again here.
[0204] In addition, the embodiment of this application further provides a computer-readable storage medium, which stores a computer program executed by the aforementioned multimedia data processing device, and it should be understood that the computer program includes program instructions. After executing the program instructions, the aforementioned processor can execute the description of the multimedia data processing method in the embodiment corresponding to Figure 7 and Figure 10, which will not be described again here. In addition, the description of the beneficial effects of the same method will not be described again here. For technical details not disclosed in the embodiment of the computer-readable storage medium of this application, please refer to the description of the embodiment of the method of this application.
[0205] As one example, the program instructions may be executed on a computing device, on at least two computing devices at the same location, or on at least two computing devices distributed across at least two locations and interconnected via a communication network. At least two computing devices distributed across at least two locations and interconnected via a communication network may form a blockchain network.
[0206] The aforementioned computer-readable storage medium may be the data processing device provided in any of the aforementioned embodiments, or an internal storage unit of the aforementioned computer device, such as a hard disk or memory of the computer device. The computer-readable storage medium may also be an external storage device of the computer device, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc., mounted on the computer device. In addition, the computer-readable storage medium may also include both the internal storage unit and the external storage device of the computer device. The computer-readable storage medium is configured to store computer programs and other programs and data required by the computer device. The computer-readable storage medium may also be configured to temporarily store data that is output or to be output.
[0207] An embodiment of this application further provides a computer program product, including a computer program / instruction. After executing the computer program / instruction, the processor performs the description of the data processing method in the embodiment corresponding to FIG. 7 and FIG. 10, which will not be described again here. In addition, the description of the beneficial effects of the same method will not be described again here. For technical details not disclosed in the embodiment of the computer program product of this application, please refer to the description of the embodiment of the method of this application.
[0208] What has been disclosed above is merely an exemplary embodiment of this application, and certainly is not intended to limit the scope of the claims of this application. Therefore, equivalent variations made according to the claims of this application are intended to be included within the scope of this application.
Claims
1. A multimedia data processing method, comprising: obtaining a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set are associated with a data block to be coded in a multimedia data frame; the global reference data block set includes coded data blocks that have no adjacent relationship with the data block to be coded in the multimedia data frame; and the local reference data block set includes coded data blocks having an adjacent relationship with the data block to be coded in the multimedia data frame; Steps and determining a reference data block for predictive coding of the data block to be coded from said global reference data block set and said local reference data block set; A method comprising:
2. The step of determining a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set comprises: obtaining a coding mode for the data block to be coded; determining a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set if the coding mode of the data block to be coded is an intra block copy (IBC) mode or an intra string copy (ISC) mode; The method of claim 1 , comprising:
3. When the coding mode of the data block to be coded is an IBC mode or an ISC mode, the step of determining a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set comprises: obtaining pixel differences between a data block in the local reference data block set and the data block to be coded, when the coding mode of the data block to be coded is an IBC mode or an ISC mode; taking a target data block as a reference data block for predictive coding of the data block to be coded if there is a target data block in the set of local reference data blocks with a pixel difference less than a pixel difference threshold; determining a reference data block for predictive coding of the data block to be coded from the global reference data block set if there is no target data block with a pixel difference less than a pixel difference threshold in the local reference data block set; The method of claim 2 , comprising:
4. When the coding mode of the data block to be coded is an IBC mode or an ISC mode, the step of determining a reference data block for predictive coding of the data block to be coded from the global reference data block set and the local reference data block set comprises: obtaining a target coded data block having a spatial adjacent relationship with the data block to be coded, when the coding mode of the data block to be coded is an IBC mode or an ISC mode; searching areas corresponding to the global reference data block set and the local reference data block set according to motion parameters to obtain reference data blocks for predictive coding of the data block to be coded, when the reference data blocks of the target coded data block belong to the global reference data block set and the local reference data block set; The motion parameters include a moving window and a moving step length; the size of the motion window is the same as the size of the data block to be coded, and the motion step length is smaller than the width of the moving window; Steps and The method of claim 2 , comprising:
5. the global reference data block set includes at least one first reference data block; if the coding mode of the multimedia data frame is a serial coding mode, The first reference data block has a parameter association relationship in the multimedia data frame that satisfies a write-back restriction condition, and a coded data block belonging to the same tile as the data block to be coded, The parameter association relationship is used to reflect an association relationship between first position information and size information of a superblock (SB) and an association relationship between the first position information and second position information; the first position information indicates a position information of the coded data block within the multimedia data frame; and the second position information indicates a position information of the coded data block within the multimedia data frame; the write-back limit condition is used to reflect a limited delay in writing the coded data block to the global reference data block set; 5. The method according to any one of claims 1 to 4.
6. the set of global reference data blocks includes at least one second reference data block; The second reference data block is a coded data block that belongs to the same tile as the data block to be coded and has a parameter association relationship that satisfies a write-back restriction condition in the multimedia data frame and a coding process condition; The parameter association relationship is used to reflect the association relationship between the position information of the coded data block in the multimedia data frame, the position information of the data block to be coded in the multimedia data frame, and the size information of the SB; and the write-back limit condition is used to reflect a limited delay in writing the coded data block to the global reference data block set; The method according to claim 5.
7. The step of obtaining a global reference data block set includes: When the coding mode of the multimedia data frame is a serial coding mode, respectively obtaining the first position information, the size information of the SB, and the second position information; the first position information refers to position information of a coded data block in the multimedia data frame; and the second position information refers to position information of a coded data block in the multimedia data frame; Steps and obtaining a write-back restriction condition; the write-back limit condition is used to reflect the bounded delay of writing the coded data block to the global reference data block set. Steps and selecting, as a first reference data block, from the multimedia data frame, a coded data block having a parameter association relationship that satisfies the write-back restriction condition and that belongs to the same tile as the data block to be coded; The parameter association relationship is used to reflect an association relationship between the first position information and size information of the SB, and an association relationship between the first position information and the second position information. Steps and adding the first reference data block to the global reference data block set; The method of claim 5 , comprising:
8. The step of selecting, as a first reference data block, from the multimedia data frame, a coded data block having a parameter association relationship that satisfies the write-back restriction condition and that belongs to the same tile as the data block to be coded, comprises: selecting, as a first candidate reference data block, a coded data block from the multimedia data frame that belongs to the same tile as the data block to be coded, according to the first position information and the second position information; determining a limited number of spaced data blocks between the data block to be coded and the coded data block in the multimedia data frame under the write-back limit condition; counting a number of distance data blocks between the first candidate reference data block and the data block to be coded according to the first position information, the size information of the SB, and the second position information; determining, as a first reference data block, the first candidate reference data block having a number of the distant data blocks greater than the limited number of the distant data blocks; The method of claim 7, comprising:
9. The step of counting the number of distant data blocks between the first candidate reference data block and the data block to be coded according to the first position information, the size information of the SB, and the second position information, comprises: determining a row identifier and a column identifier of the first candidate reference data block according to the first location information and size information of the SB; determining row and column identifiers of the data block to be coded according to the second position information and size information of the SB; determining a number of data blocks in each row in the multimedia data frame based on size information of the data blocks to be coded; counting the number of distant data blocks between the first candidate reference data block and the data block to be coded according to the number of the data blocks in each row, the row identifier and the column identifier of the first candidate reference data block, and the row identifier and the column identifier of the data block to be coded; The method of claim 8 , comprising:
10. The step of obtaining a global reference data block set includes: respectively obtaining the first position information, the size information of the SB, and the second position information; the first position information refers to position information of the coded data block in the multimedia data frame; and the second position information refers to position information of the data block to be coded in the multimedia data frame. Steps and obtaining write-back restriction conditions and coding process conditions; the write-back limit condition is used to reflect the limited delay of writing the coded data block to the global reference data block set; selecting, as a second reference data block, from the multimedia data frame, a coded data block having a parameter association relationship that satisfies a write-back restriction condition and the coding process condition and that belongs to the same tile as the data block to be coded; the parameter association relationship is used to reflect an association relationship between the first position information and the data block to be coded, and an association relationship between the first position information and the second position information; adding the second reference data block to the global reference data block set; The method of claim 5 , comprising:
11. The step of selecting, as a second reference data block, from the multimedia data frame, a coded data block having a parameter association relationship that satisfies a write-back restriction condition and the coding process condition and that belongs to the same tile as the data block to be coded, comprises: selecting, according to the first position information and the second position information, a coded data block belonging to the same tile from the multimedia data frame as a first candidate reference data block; selecting, as a second candidate reference data block, a first candidate reference data block having a parameter association relationship that satisfies the write-back restriction condition from the first candidate reference data blocks; determining a first data block limit distance between the coded data block and the data block to be coded in the multimedia data frame under the write-back limit condition; determining a second data block limit distance between the coded data block and the data block to be coded within the multimedia data frame under the coding process condition; determining, as the second reference data block, a second candidate reference data block that satisfies the coding processing condition from the second candidate reference data blocks according to the first position information, the size information of the SB, the second position information, the first data block limit distance, and the second data block limit distance; The method of claim 10, comprising:
12. determining, as the second reference data block, a second candidate reference data block that satisfies the coding processing condition from the second candidate reference data blocks according to the first position information, the size information of the SB, the second position information, the first data block limit distance, and the second data block limit distance; determining a row identifier and a column identifier of the second candidate reference data block according to the first location information and the size information of the SB; determining row and column identifiers of the data block to be coded according to the second position information and size information of the SB; selecting, as a third candidate reference data block, from the second candidate reference data blocks, a second candidate reference data block having a row identifier not greater than the row identifier of the data block to be coded; determining a row distance between the third candidate reference data block and the data block to be coded according to the row identifier of the third candidate reference data block and the row identifier of the data block to be coded; determining a column distance between the third candidate reference data block and the data block to be coded according to the column identifier of the third candidate reference data block and the column identifier of the data block to be coded; determining a third candidate reference data block as a second reference data block, the third candidate reference data block having a column distance less than a first distance threshold, the first distance threshold being determined according to the first data block limit distance, the second data block limit distance, and the row distance between the third candidate reference data block and the data block to be coded; The method of claim 11 , comprising:
13. the local reference data block set includes at least one third reference data block; and the third reference data block is a coded data block located in the same coding processing unit as the data block to be coded in the multimedia data frame; 5. The method according to any one of claims 1 to 4.
14. the local reference data block set includes at least one fourth reference data block; and the fourth reference data block is a coded data block that has an adjacent relationship with the data block to be coded in the multimedia data frame and that belongs to the same tile as the data block to be coded; 5. The method according to any one of claims 1 to 4.
15. The neighboring relationship between the fourth reference data block and the data block to be coded is: means that the fourth reference data block and the data block to be coded belong to the same SB; The method of claim 14.
16. The neighboring relationship between the fourth reference data block and the data block to be coded is: The fourth reference data block is disposed in N SBs adjacent to the data block to be coded, and the size of the SBs is not greater than a size threshold; N is determined according to the size information of the SB; The method of claim 14.
17. The neighboring relationship between the fourth reference data block and the data block to be coded is: The fourth reference data block is disposed in N SBs adjacent to the data block to be coded; The size of the SB is equal to or greater than a size threshold, and The data block in the upper left corner of the target area is the data block that has not been reconstructed. the target area is an area in the multimedia data frame to which the fourth reference data block is shifted by 1SB to the right; The position information of the fourth reference data block when it is moved by a distance of 1SB is different from the position information of the data block to be coded; N is determined by the size information of the SB. The method of claim 14.
18. A multimedia data processing method, comprising: obtaining a global reference data block set and a local reference data block set, the global reference data block set and the local reference data block set are associated with a data block to be decoded in a multimedia data frame; the global reference data block set includes decoded data blocks that have no adjacent relationship with the data block to be decoded in the multimedia data frame; and the local reference data block set includes decoded data blocks having an adjacent relationship with the data block to be decoded in the multimedia data frame; Steps and determining a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set; A method comprising:
19. The step of determining a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set comprises: obtaining a decoding mode for the data block to be decoded; determining a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set when the decoding mode of the data block to be decoded is an IBC mode or an ISC mode; 20. The method of claim 18, comprising:
20. the global reference data block set includes at least one first reference data block; When the decoding mode of the multimedia data frame is a serial decoding mode, the first reference data block is a decoded data block that has a parameter association relationship in the multimedia data frame that satisfies a write-back restriction condition and belongs to the same decoding chip as the data block to be decoded; The parameter association relationship is used to reflect the association relationship between first position information and size information of a maximum decoding block, and the association relationship between the first position information and second position information; The first position information indicates a position information of the decoded data block in the multimedia data frame, and the second position information indicates a position information of the data block to be decoded in the multimedia data frame; the write-back limit condition is used to reflect a bounded delay in writing the decoded data block to the global reference data block set.
20. The method of claim 18 or 19.
21. The set of global reference data blocks includes at least one second reference data block. The second reference data block is a decoded data block that belongs to the same decoding chip as the data block to be decoded, and has a parameter association relationship that satisfies a write-back restriction condition in the multimedia data frame and satisfies a decoding process condition; The parameter association relationship is used to reflect an association relationship between the position information of the decoded data block in the multimedia data frame, the position information of the data block to be decoded in the multimedia data frame, and the size information of the largest decoding block; and the write-back limit condition is used to reflect the limited delay of writing the decoded data block to the global reference data block set.
21. The method of claim 20.
22. the local reference data block set includes at least one third reference data block; the third reference data block is a decoded data block located in the same decoding processing unit as the data block to be decoded in the multimedia data frame; 21. The method of claim 20.
23. the local reference data block set includes at least one fourth reference data block; the fourth reference data block is a decoded data block that has an adjacent relationship with the data block to be decoded in the multimedia data frame and belongs to the same decoding chip as the data block to be decoded; 21. The method of claim 20.
24. A multimedia data processing device, comprising: an acquisition module configured to acquire a global set of reference data blocks and a local set of reference data blocks; the global reference data block set and the local reference data block set are associated with a data block to be coded in a multimedia data frame; the global reference data block set includes coded data blocks that have no adjacent relationship with the data block to be coded in the multimedia data frame; and the local reference data block set includes coded data blocks having an adjacent relationship with the data block to be coded in the multimedia data frame; An acquisition module; a selection module configured to determine, from said global reference data block set and said local reference data block set, a reference data block for predictive coding of said data block to be coded; 13. An apparatus comprising:
25. A multimedia data processing device, comprising: an acquisition module configured to acquire a global set of reference data blocks and a local set of reference data blocks; the global reference data block set and the local reference data block set are associated with a data block to be decoded in a multimedia data frame; the global reference data block set includes decoded data blocks that have no adjacent relationship with the data block to be decoded in the multimedia data frame; and an acquisition module, the local reference data block set including decoded data blocks having an adjacent relationship with the data block to be decoded in the multimedia data frame; a selection module configured to determine a reference data block for decoding the data block to be decoded from the global reference data block set and the local reference data block set; 13. An apparatus comprising:
26. A computing device comprising a processor and a memory, the processor is coupled to the memory; the memory is configured to store program code; and The processor is configured to call the program code to perform the method according to any one of claims 1 to 23. Computer device.
27. A computer-readable storage medium having a computer program stored thereon, The computer program includes a plurality of program instructions; and The program instructions, when executed by a processor, cause a computer to carry out the method of any one of claims 1 to 23. A computer-readable storage medium.
28. 1. A computer program comprising a plurality of program instructions, The program instructions, when executed by a processor, cause a computer to carry out the method of any one of claims 1 to 23. Computer program.
Citation Information
Patent Citations
Search region determination for intra-block duplication in video coding
JP2017513361A
Method and apparatus for intra-block copy mode coding with search range switching
JP2023553921A
Intra-prediction with far neighboring pixels
US20190174145A1
Constraints on locations of reference blocks for intra block copy prediction
US20190208217A1
Method and apparatus for video coding
US20200029072A1
