CN-116567233-B - Method, system, equipment and storage medium for adaptively dividing intra-frame coding blocks
Abstract
The embodiment of the application discloses an intra-frame coding block self-adaptive dividing method, a system, equipment and a storage medium. According to the technical scheme provided by the embodiment of the application, the optimal rate distortion cost of the current layer coding block is calculated, the division threshold value of the current layer coding block is calculated based on the set index model of the current layer, the set index model is fitted and constructed in advance according to the optimal rate distortion cost of different coding blocks and corresponding pixel information, the division of the current layer coding block is ended under the condition that the optimal rate distortion cost of the current layer coding block is smaller than the division threshold value, the current layer coding block is divided under the condition that the optimal rate distortion cost of the current layer coding block is larger than or equal to the division threshold value, and the next level coding block division decision is entered. By adopting the technical means, the calculation flow of the coding block division judgment can be simplified while the coding block division accuracy is ensured, the calculation complexity is reduced, the coding block division calculation efficiency is further improved, and the video intra-frame coding speed is improved.
Inventors
- DAI YUANYING
Assignees
- 上海洛塔信息技术有限公司
Dates
- Publication Date
- 20260508
- Application Date
- 20230512
Claims (10)
- 1. An intra-coded block adaptive partitioning method, comprising: Calculating the optimal rate distortion cost of a current layer coding block, calculating a division threshold value of the current layer coding block based on a set index model of the current layer, performing fitting construction based on a mapping relation between the division threshold value and corresponding pixel information and video characteristic parameters, inputting the optimal rate distortion cost of different coding blocks and the corresponding pixel information into a formula of the set index model by taking the optimal rate distortion cost of different coding blocks as the division threshold value in advance, and performing fitting to obtain a model influence coefficient, and obtaining the video characteristic parameters based on the model influence coefficient; And ending the division of the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is smaller than the division threshold value, dividing the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is larger than or equal to the division threshold value, and entering a coding block division decision of the next level.
- 2. The method according to claim 1, wherein the formula for setting the exponential model is expressed as: Wherein a, b are expressed as the video characteristic parameters, y is expressed as the dividing threshold, and x is expressed as pixel information of the current layer coding block.
- 3. The method of adaptive partitioning of intra-coded blocks according to claim 1, further comprising, after said partitioning of the current layer coded block: Detecting whether the current layer coding block is at a set lowest level, and ending coding block division under the condition that the current layer coding block is at the lowest level; judging whether an error exists in the division of the coding block in the current frame or not based on the optimal rate distortion cost of the coding blocks of each layer; Under the condition that the error exists in the division of the coding blocks in the current frame, the optimal rate distortion cost with the minimum value in each layer of coding blocks and the corresponding pixel information are selected as correction data to be used for iterative correction of the set index model.
- 4. The method according to claim 3, wherein the iterative modification of the set index model comprises: and calculating a data average value of the set number of correction data, and updating the video characteristic parameters of the set index model by using the data average value.
- 5. The adaptive partitioning method of an intra-coded block according to claim 4, wherein values of the video characteristic parameters corresponding to different coded blocks are different, a first coded block of a corresponding video frame uses the model influence coefficient as the video characteristic parameter, and the rest of coded blocks use the video characteristic parameter of the coded block referred to by itself as reference data, and update the video characteristic parameter of itself based on the reference data and the data average value of the corresponding hierarchy.
- 6. The method according to claim 5, wherein updating the video characteristic parameter of itself based on the reference data and the data mean of the corresponding hierarchy comprises: Determining prediction error information of the set index model based on the data mean value of the corresponding level; and updating the video characteristic parameters according to the prediction error information, the reference data and the set adjustment rate coefficient.
- 7. An intra-coded block adaptive partitioning system, comprising: the computing module is configured to compute the optimal rate distortion cost of the current layer coding block, and compute the division threshold of the current layer coding block based on a set index model of the current layer, wherein the set index model is constructed by fitting based on the mapping relation between the division threshold and corresponding pixel information and video characteristic parameters, the set index model inputs the optimal rate distortion cost of different coding blocks and corresponding pixel information into a formula of the set index model in advance by taking the optimal rate distortion cost of different coding blocks as the division threshold, and the model influence coefficient is obtained by fitting, and the video characteristic parameters are obtained based on the model influence coefficient; The dividing module is configured to divide the optimal rate distortion cost of the current layer coding block into the dividing threshold, finish dividing the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is smaller than the dividing threshold, divide the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is larger than or equal to the dividing threshold, and enter a coding block dividing decision of the next level.
- 8. An intra-coded block adaptive partitioning apparatus, comprising: a memory and one or more processors; the memory is configured to store one or more programs; the one or more programs, when executed by the one or more processors, cause the one or more processors to implement the intra-coded block adaptive partitioning method of any of claims 1-6.
- 9. A computer readable storage medium storing computer executable instructions which, when executed by a computer processor, are configured to perform the intra-coded block adaptive partitioning method according to any of claims 1-6.
- 10. A computer program product comprising instructions which, when executed on a computer or processor, cause the computer or processor to perform the intra-coded block adaptive partitioning method according to any one of claims 1-6.
Description
Method, system, equipment and storage medium for adaptively dividing intra-frame coding blocks Technical Field The embodiment of the application relates to the technical field of video coding, in particular to an adaptive partitioning method, an adaptive partitioning system, adaptive partitioning equipment and a storage medium for intra-frame coding blocks. Background Intra-frame coding is an important core technology in video coding, in the video coding process, as shown in fig. 1, each frame of video image in a video is divided into coding units with fixed sizes, and then coding blocks are divided layer by layer on the basis of the coding units according to the complexity of the image. The number of coding block division layers in different areas is different, and the sizes of the coding blocks obtained by division are also different. At present, when determining the number of coding block division layers, the optimal rate distortion cost of the coding blocks divided by each layer is calculated, and the layer with the minimum optimal rate distortion cost is selected, namely the optimal coding block division layer number, so that intra-frame coding block division is accurately performed. However, the optimal rate distortion cost needs to be calculated layer by layer in the related mode of deciding the optimal division layer number of the coding block, which can lead to longer time consumption of the intra-frame coding block division, further lead to longer time consumption of the whole intra-frame coding flow and influence on the intra-frame coding efficiency. Disclosure of Invention The embodiment of the application provides an adaptive dividing method, system, equipment and storage medium for an intra-frame coding block, which can improve the dividing speed of the intra-frame coding block and solve the technical problem that the dividing decision of the intra-frame coding block consumes a long time. In a first aspect, an embodiment of the present application provides an adaptive partitioning method for an intra-coded block, including: Calculating the optimal rate distortion cost of the current layer coding block, calculating the dividing threshold value of the current layer coding block based on a set index model of the current layer, and fitting and constructing the set index model in advance according to the optimal rate distortion cost of different coding blocks and corresponding pixel information; And under the condition that the optimal rate distortion cost of the current layer coding block is smaller than a division threshold value, ending the division of the current layer coding block, and under the condition that the optimal rate distortion cost of the current layer coding block is larger than or equal to the division threshold value, dividing the current layer coding block, and entering a coding block division decision of the next level. In a second aspect, an embodiment of the present application provides an intra-coded block adaptive partitioning system, including: The calculating module is configured to calculate the optimal rate distortion cost of the current layer coding block, calculate the dividing threshold value of the current layer coding block based on the setting index model of the current layer, and perform fitting construction on the setting index model in advance according to the optimal rate distortion cost of different coding blocks and corresponding pixel information; The dividing module is configured to finish dividing the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is smaller than a dividing threshold value, divide the current layer coding block under the condition that the optimal rate distortion cost of the current layer coding block is larger than or equal to the dividing threshold value, and enter a coding block dividing decision of the next level. In a third aspect, an embodiment of the present application provides an intra-coded block adaptive partitioning apparatus, including: a memory and one or more processors; the memory is configured to store one or more programs; The one or more programs, when executed by the one or more processors, cause the one or more processors to implement the intra-coded block adaptive partitioning method as described in the first aspect. In a fourth aspect, embodiments of the present application provide a computer-readable storage medium storing computer-executable instructions that, when executed by a computer processor, are configured to perform the intra-coded block adaptive partitioning method according to the first aspect. In a fifth aspect, embodiments of the present application provide a computer program product comprising instructions which, when run on a computer or processor, cause the computer or processor to perform the intra-coded block adaptive partitioning method according to the first aspect. According to the embodiment of the application, the optimal