CN111327894B - Block division method, video coding and decoding method and video coder and decoder - Google Patents
Block division method, video coding and decoding method and video coder and decoder Download PDFInfo
- Publication number
- CN111327894B CN111327894B CN201910246994.8A CN201910246994A CN111327894B CN 111327894 B CN111327894 B CN 111327894B CN 201910246994 A CN201910246994 A CN 201910246994A CN 111327894 B CN111327894 B CN 111327894B
- Authority
- CN
- China
- Prior art keywords
- component block
- component
- block
- current node
- mode
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000000034 method Methods 0.000 title claims abstract description 216
- 238000000638 solvent extraction Methods 0.000 claims abstract description 93
- 238000005192 partition Methods 0.000 claims description 424
- 230000004044 response Effects 0.000 claims description 20
- 108091026890 Coding region Proteins 0.000 claims description 3
- 238000012545 processing Methods 0.000 description 102
- 238000013139 quantization Methods 0.000 description 89
- 230000015654 memory Effects 0.000 description 54
- 239000000872 buffer Substances 0.000 description 35
- 239000013598 vector Substances 0.000 description 32
- 238000004891 communication Methods 0.000 description 29
- 230000008569 process Effects 0.000 description 26
- 230000005540 biological transmission Effects 0.000 description 24
- 238000010586 diagram Methods 0.000 description 23
- 208000037170 Delayed Emergence from Anesthesia Diseases 0.000 description 17
- 241000023320 Luma <angiosperm> Species 0.000 description 15
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 15
- 238000007906 compression Methods 0.000 description 11
- 230000006835 compression Effects 0.000 description 10
- 238000003491 array Methods 0.000 description 9
- 238000001914 filtration Methods 0.000 description 9
- 230000003044 adaptive effect Effects 0.000 description 6
- 238000004364 calculation method Methods 0.000 description 6
- 238000013500 data storage Methods 0.000 description 5
- 230000002123 temporal effect Effects 0.000 description 5
- 238000004458 analytical method Methods 0.000 description 4
- 238000005516 engineering process Methods 0.000 description 4
- 230000003287 optical effect Effects 0.000 description 4
- 238000005457 optimization Methods 0.000 description 4
- 238000006243 chemical reaction Methods 0.000 description 3
- 238000004590 computer program Methods 0.000 description 3
- 238000005070 sampling Methods 0.000 description 3
- 230000011664 signaling Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000007704 transition Effects 0.000 description 3
- 230000002146 bilateral effect Effects 0.000 description 2
- 230000000295 complement effect Effects 0.000 description 2
- 238000010276 construction Methods 0.000 description 2
- 238000011161 development Methods 0.000 description 2
- 230000018109 developmental process Effects 0.000 description 2
- 239000000835 fiber Substances 0.000 description 2
- 230000006870 function Effects 0.000 description 2
- 238000009499 grossing Methods 0.000 description 2
- 238000003384 imaging method Methods 0.000 description 2
- 239000004973 liquid crystal related substance Substances 0.000 description 2
- 239000011159 matrix material Substances 0.000 description 2
- 238000012805 post-processing Methods 0.000 description 2
- 238000007781 pre-processing Methods 0.000 description 2
- 230000003068 static effect Effects 0.000 description 2
- 230000009466 transformation Effects 0.000 description 2
- 238000009966 trimming Methods 0.000 description 2
- PXFBZOLANLWPMH-UHFFFAOYSA-N 16-Epiaffinine Natural products C1C(C2=CC=CC=C2N2)=C2C(=O)CC2C(=CC)CN(C)C1C2CO PXFBZOLANLWPMH-UHFFFAOYSA-N 0.000 description 1
- 238000012952 Resampling Methods 0.000 description 1
- XUIMIQQOPSSXEZ-UHFFFAOYSA-N Silicon Chemical compound [Si] XUIMIQQOPSSXEZ-UHFFFAOYSA-N 0.000 description 1
- 230000003190 augmentative effect Effects 0.000 description 1
- 238000004422 calculation algorithm Methods 0.000 description 1
- 230000001413 cellular effect Effects 0.000 description 1
- 239000002131 composite material Substances 0.000 description 1
- 238000009795 derivation Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 230000008030 elimination Effects 0.000 description 1
- 238000003379 elimination reaction Methods 0.000 description 1
- 230000008520 organization Effects 0.000 description 1
- 238000003672 processing method Methods 0.000 description 1
- 230000002441 reversible effect Effects 0.000 description 1
- 230000011218 segmentation Effects 0.000 description 1
- 229910052710 silicon Inorganic materials 0.000 description 1
- 239000010703 silicon Substances 0.000 description 1
- 239000007787 solid Substances 0.000 description 1
- 238000001228 spectrum Methods 0.000 description 1
- 230000001360 synchronised effect Effects 0.000 description 1
- 230000001131 transforming effect Effects 0.000 description 1
- 238000013519 translation Methods 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/124—Quantisation
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/60—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
- H04N19/61—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/91—Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/90—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
- H04N19/96—Tree coding, e.g. quad-tree coding
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
The application provides a block division method applied to video decoding, which comprises the following steps: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for partitioning a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, and if so, determining that the second component block of the current node is not divided or is not divided by adopting the division mode of the current node, wherein the size of the first component block is larger than that of the second component block. The application provides a block division method, a video decoding method, a video coding method, a video decoder and a video encoder applied to video coding so as to improve coding/decoding performance.
Description
The present application claims priority from the chinese patent application filed on 2018, 12, 15, under the application serial No. 201811537890.4 entitled "video encoder, video decoder and corresponding methods," which is incorporated herein by reference in its entirety.
Technical Field
The present application relates to the field of video coding and decoding technology, and more particularly, to a block division method, a video coding and decoding method, and a video codec.
Background
Digital video capabilities can be incorporated into a wide variety of devices, including digital televisions, digital direct broadcast systems, wireless broadcast systems, Personal Digital Assistants (PDAs), laptop or desktop computers, tablet computers, electronic book readers, digital cameras, digital recording devices, digital media players, video gaming devices, video gaming consoles, cellular or satellite radio telephones (so-called "smart phones"), video teleconferencing devices, video streaming devices, and the like. Digital video devices implement video compression techniques such as those described in the standards defined by 15MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264/MPEG-4 part 10 Advanced Video Coding (AVC), the video coding standard H.265/High Efficiency Video Coding (HEVC), and extensions of such standards.
Video devices may transmit, receive, encode, decode, and/or store digital video information more efficiently by implementing such video compression techniques. Video compression techniques perform spatial (intra-picture) prediction and/or temporal (inter-picture) prediction to reduce or remove redundancy inherent in the video 20 sequence. For block-based video coding, a video slice (i.e., a video frame or a portion of a video frame) may be partitioned into tiles, which may also be referred to as treeblocks, Coding Units (CUs), and/or coding nodes. An image block in a to-be-intra-coded (I) strip of an image is encoded using spatial prediction with respect to reference samples in neighboring blocks in the same image. An image block in a to-be-inter-coded (P or B) slice of an image may use spatial prediction with respect to reference samples in neighboring blocks in the same image or temporal prediction with respect to reference samples in other reference images. A picture may be referred to as a frame and a reference picture may be referred to as a reference frame.
The video compression processing technology mainly divides the whole image into small blocks, and then performs intra-frame prediction, inter-frame prediction, transform quantization, entropy coding, block elimination filtering processing and the like by taking the small blocks as units.
In the video compression process, the conventional scheme generally divides an image block in a quadtree manner (equally dividing the image block into four parts) or a binary tree manner (equally dividing the image block into two parts). This division pattern is relatively simple.
Disclosure of Invention
The application provides a block division method, a video coding and decoding method and a video coder and decoder, which are used for improving coding/decoding performance.
In a first aspect, a block partitioning method applied in video decoding is provided, and the method includes: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, if not, adopting the division mode of the current node to divide a second component block of the current node, wherein the size of the first component block is larger than that of the second component block.
In a second aspect, a block partitioning method applied in video decoding is provided, the method comprising: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, and if so, determining that the second component block of the current node is not divided or is not divided by adopting the division mode of the current node, wherein the size of the first component block is larger than that of the second component block.
Optionally, the method further includes: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the method further includes: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
In a third aspect, a block partitioning method applied in video decoding is provided, and the method includes: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; judging whether the first component block meets a preset condition corresponding to the division mode, and if the preset condition is met, only allowing the division mode of the current node to be adopted to divide the first component block of the current node, wherein the current node comprises the first component and the second component, and the size of the first component block is larger than that of the second component block.
Therefore, on one hand, a new dividing mode is provided, whether the second component block is divided or the dividing mode of the second component block is determined according to the first component block, and the block division is more flexible; on the other hand, when the resolution of the second component block is smaller than that of the first component block, the division cost of the second component block with a smaller size is higher than that of the first component block with a larger size, and the second component block with the smaller size is not continuously divided or is divided in a manner different from that of the first component block, so that the situation that the division cost is high can be avoided.
With reference to the first aspect, the second aspect, or the third aspect, in some implementations of the first aspect, the determining whether the first component block satisfies a preset condition corresponding to the partition mode includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
Therefore, the scheme for processing the second component block is refined, and the processing mode of the second component block can be more accurately judged according to the dividing mode of the first component block and the size of the first component block.
With reference to the first aspect, the second aspect, or the third aspect, in certain implementations of the first aspect, the second aspect, or the third aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a fourth aspect, a video decoding method is provided, the method comprising: acquiring a partitioning mode of a current node; dividing a first component block of the current node into N first component sub-blocks according to the division mode of the current node, wherein N is a positive integer greater than or equal to 2; in response to a first judgment result that the first component block meets a preset condition corresponding to the partition mode, acquiring a reconstructed block of the N1 first component sub-blocks and a reconstructed block of a second component block according to decoding information of N1 first component sub-blocks in the N first component sub-blocks and decoding information of the second component block of the current node, wherein N1 is a positive integer greater than or equal to 1; or, in response to a first determination result that the first component block meets a preset condition corresponding to the partition mode, the second component block of the current node is partitioned into M second component sub-blocks by adopting a partition mode different from the partition mode of the current node, where M is a positive integer greater than or equal to 2; and acquiring reconstructed blocks of the N2 first component sub-blocks and at least one second component sub-block according to decoding information of the N2 first component sub-blocks in the N first component sub-blocks and decoding information of at least one second component sub-block in the M second component sub-blocks, wherein N2 is a positive integer greater than or equal to 1.
Optionally, the method further includes: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the method further includes: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
Therefore, on one hand, decoding is carried out on the basis of a new partition mode, so that the decoding mode is more flexible; on the other hand, the situation that the decoding calculation amount is too high can be avoided.
With reference to the fourth aspect, in some implementations of the fourth aspect, the first component block satisfies a preset condition corresponding to the partition mode, and includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
Therefore, the scheme for processing the second component block is refined, and the processing mode of the second component block can be more accurately judged according to the dividing mode of the first component block and the size of the first component block.
With reference to the fourth aspect, in some implementations of the fourth aspect, the decoding information of the second component block includes a prediction mode of the second component block; the method further comprises the following steps: and acquiring the prediction mode of the second component block from the code stream.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the method further includes: and acquiring the decoding information of the second component block according to the decoding information of the N1 first component sub-blocks.
Therefore, the same information of different component blocks is associated, so that the data volume written in the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the fourth aspect, in some implementations of the fourth aspect, the decoding information of the second component block includes a prediction mode of the second component block; the obtaining, according to the decoding information of the N1 first component sub-blocks, the decoding information of the second component block includes: obtaining a prediction mode of the second component block according to a prediction mode of a target first component sub-block of the N1 first component sub-blocks, wherein decoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
Therefore, the prediction mode of the second component block is determined according to the prediction mode of the first component block, so that the calculation amount of analyzing information related to the prediction mode of the second component block in a code stream can be reduced, the transmission data amount is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the fourth aspect, in some implementations of the fourth aspect, the obtaining the prediction mode of the second component block includes: acquiring a prediction mode of the second component block from a code stream; or, acquiring a prediction mode of the target first component sub-block as a prediction mode of the second component block.
With reference to the fourth aspect, in certain implementations of the fourth aspect, in a case that the prediction mode of the second component block is a non-intra prediction mode, the decoding information of the second component block further includes motion information of the second component block, and the method further includes: and acquiring the motion information of the second component block according to the motion information of the target first component sub-block, wherein the decoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
Therefore, the motion information of the second component block is determined according to the motion information of the first component block, so that the information related to the motion information of the second component block in the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the fourth aspect, in some implementations of the fourth aspect, before the obtaining decoding information of the second component block, the method further includes: and determining the target first component sub-block according to the target position information.
Therefore, the target first component sub-block is determined according to the target position information, the analysis data volume is reduced, and the decoding efficiency is improved.
With reference to the fourth aspect, in some implementations of the fourth aspect, the target position information has coordinates of (x)0+W/2, y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
Therefore, the first component sub-block in which the center position of the first component block is located is determined as the target first component sub-block, and the decoding efficiency can be improved.
With reference to the fourth aspect, in some implementations of the fourth aspect, before the obtaining the decoding information of the second component block, the method further includes: and according to a decoding order or a scanning order, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
It can be seen that determining the first or last decoded or scanned first component sub-block as the target first component sub-block may improve decoding efficiency.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the prediction mode of each of the N first component sub-blocks is an intra prediction mode or a non-intra prediction mode.
As can be seen, the prediction modes of the N first component sub-blocks are intra-frame prediction modes or non-intra-frame prediction modes, which can reduce the data size of the decoding end analyzed from the code stream and improve the decoding efficiency.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the method further includes: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
Therefore, the prediction modes of other first component sub-blocks can be determined only according to the prediction mode of a certain first component sub-block, so that the analysis data amount in the decoding process can be reduced, and the coding efficiency is improved.
With reference to the fourth aspect, in certain implementations of the fourth aspect, the method further includes: in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks; and acquiring the reconstruction blocks of the N first component sub-blocks and the reconstruction blocks of the N second component sub-blocks according to the decoding information of the N first component sub-blocks and the decoding information of the N second component sub-blocks.
It can be seen that dividing the second component block using a different division pattern than the first component block can improve the flexibility of the block division pattern.
With reference to the fourth aspect, in some implementations of the fourth aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a fifth aspect, a block partitioning method applied in video coding is provided, the method including: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, if not, adopting the division mode of the current node to divide a second component block of the current node, wherein the size of the first component block is larger than that of the second component block.
In a sixth aspect, a block partitioning method applied in video coding is provided, the method comprising: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, and if so, determining that the second component block of the current node is not divided or is not divided by adopting the division mode of the current node, wherein the size of the first component block is larger than that of the second component block.
Optionally, the method further includes: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the method further includes: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
In a seventh aspect, a block partitioning method applied in video decoding is provided, the method including: acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node; and judging whether the first component block meets a preset condition corresponding to the division mode, if so, only allowing the division mode of the current node to be adopted to divide the first component block of the current node, wherein the current node comprises the first component and the second component, and the size of the first component block is larger than that of the second component block.
Therefore, on one hand, a new dividing mode is provided, whether the second component block is divided or the dividing mode of the second component block is determined according to the first component block, so that the block division is more flexible; on the other hand, when the resolution of the second component block is smaller than that of the first component block, the division cost of the second component block with a smaller size is higher than that of the first component block with a larger size, and the second component block with the smaller size is not divided continuously or in a different division mode from that of the first component block, so that the situation of high division cost can be avoided.
With reference to the fifth aspect, the sixth aspect, or the seventh aspect, in some implementations of the fifth aspect, the sixth aspect, or the seventh aspect, the determining whether the first component block satisfies a preset condition corresponding to the partition mode includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
Therefore, the scheme for processing the second component blocks is refined, and the processing mode of the second component blocks can be more accurately judged according to the dividing mode of the first component blocks and the size of the first component blocks.
With reference to the fifth aspect, the sixth aspect, or the seventh aspect, in some implementations of the fifth aspect, the sixth aspect, or the seventh aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In an eighth aspect, a video encoding method is provided, the method comprising: acquiring a partitioning mode of a current node; dividing a first component block of the current node into N first component sub-blocks according to the division mode of the current node, wherein N is a positive integer greater than or equal to 2; generating coding information of the N first component blocks and coding information of a second component block of the current node in response to a first judgment result that the first component block meets a preset condition corresponding to the division mode; or, in response to a first determination result that the first component block meets a preset condition corresponding to the partition mode, the second component block of the current node is partitioned into M second component sub-blocks by adopting a partition mode different from the partition mode of the current node, where M is a positive integer greater than or equal to 2; generating coding information for the N first component sub-blocks and coding information for the M second component sub-blocks.
Optionally, the method further includes: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the method further includes: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
Therefore, on one hand, the encoding is carried out on the basis of a new partition mode, so that the encoding mode is more flexible; on the other hand, the situation that the code calculation amount is too high can be avoided.
With reference to the eighth aspect, in some implementations of the eighth aspect, the first component block satisfies a preset condition corresponding to the division mode, and includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
Therefore, the scheme for processing the second component block is refined, and the processing mode of the second component block can be more accurately judged according to the dividing mode of the first component block and the size of the first component block.
With reference to the eighth aspect, in some implementations of the eighth aspect, the generating the coding information of the second component block includes: and generating the coding information of the second component block according to the coding information of N1 first component sub-blocks in the N first component sub-blocks, wherein N1 is a positive integer greater than or equal to 1.
Therefore, the same information of different component blocks is associated, so that the data volume written in the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the coding information of the second component block includes a prediction mode of the second component block; the generating the coding information of the second component block according to the coding information of the N1 first component sub-blocks includes: obtaining a prediction mode of a target first component sub-block of the N1 first component sub-blocks as a prediction mode of the second component block, wherein encoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
Therefore, the prediction mode of the second component block is determined according to the prediction mode of the first component block, so that the calculated amount of analyzing the information related to the prediction mode of the second component block in the code stream can be reduced, the data transmission amount is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the eighth aspect, in some implementations of the eighth aspect, in case that the prediction mode of the second component block is a non-intra prediction mode, the encoding information of the second component block further includes motion information of the second component block, the method further includes: generating motion information of the second component block according to the motion information of the target first component sub-block, wherein the encoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
Therefore, the motion information of the second component block is determined according to the motion information of the first component block, so that the information related to the motion information of the second component block in the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
With reference to the eighth aspect, in some implementations of the eighth aspect, before the generating the encoded information of the second component block, the method further includes: and determining the target first component sub-block according to the target position information.
Therefore, the target first component sub-block is determined according to the target position information, the analysis data volume is reduced, and the coding efficiency is improved.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the coordinates of the target location information are (x)0+W/2, y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
Therefore, the first component sub-block in which the center position of the first component block is located is determined as the target first component sub-block, so that the coding efficiency can be improved.
With reference to the eighth aspect, in some implementations of the eighth aspect, before the generating the encoded information of the second component block, the method further includes: and according to the coding sequence or the scanning sequence, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
It can be seen that determining the first or last encoded or scanned first component sub-block as the target first component sub-block may improve the encoding efficiency.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the prediction mode of each of the N first component sub-blocks is an intra prediction mode or a non-intra prediction mode.
As can be seen, the prediction modes of the N first component sub-blocks are intra-frame prediction modes or non-intra-frame prediction modes, which can reduce the data size analyzed from the code stream by the encoding end and improve the encoding efficiency.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the method further includes: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
Therefore, the prediction modes of other first component sub-blocks can be determined only according to the prediction mode of a certain first component sub-block, so that the analysis data amount in the encoding process can be reduced, and the encoding efficiency can be improved.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the method further includes: in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks; generating coding information for the N first component sub-blocks and coding information for the N second component sub-blocks.
It can be seen that dividing the second component block using a different division pattern than the first component block can improve the flexibility of the block division pattern.
With reference to the eighth aspect, in certain implementations of the eighth aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a ninth aspect, there is provided a video decoder comprising: the image decoding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node; and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode, and if the first component block does not meet the preset condition, dividing the second component block of the current node by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
In a tenth aspect, there is provided a video decoder comprising: the image decoding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node; and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, determining that the second component block of the current node is not divided or does not adopt the dividing mode of the current node for dividing, wherein the size of the first component block is larger than that of the second component block.
Optionally, the dividing unit is further configured to: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the dividing unit is further configured to: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
In an eleventh aspect, there is provided a video decoder comprising: the image decoding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node; the dividing unit is configured to determine whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, only allow the dividing mode of the current node to be used for dividing the first component block of the current node, where the current node includes the first component and the second component, and the size of the first component block is larger than that of the second component block.
With reference to the ninth, tenth or eleventh aspect, in certain implementations of the ninth, tenth or eleventh aspect, the dividing unit is specifically configured to at least one of: under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
With reference to the ninth, tenth, or eleventh aspect, in certain implementations of the ninth, tenth, or eleventh aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a twelfth aspect, there is provided a video decoder comprising: the image decoding unit is used for acquiring the partition mode of the current node; the dividing unit is used for dividing the first component block of the current node into N first component sub-blocks according to the dividing mode of the current node, wherein N is a positive integer greater than or equal to 2; in response to a first determination that the first component block satisfies a preset condition corresponding to the partition mode, the image decoding unit is further configured to: acquiring reconstructed blocks of the N1 first component sub-blocks and the second component block according to decoding information of N1 first component sub-blocks in the N first component sub-blocks and decoding information of a second component block of the current node, wherein N1 is a positive integer greater than or equal to 1; in response to a first determination that the first component block satisfies a preset condition corresponding to the partition mode, the partition unit is further configured to: dividing a second component block of the current node into M second component sub-blocks by adopting a division mode different from the division mode of the current node, wherein M is a positive integer greater than or equal to 2; the image decoding unit is further configured to: and acquiring reconstructed blocks of the N2 first component sub-blocks and at least one second component sub-block according to decoding information of the N2 first component sub-blocks in the N first component sub-blocks and decoding information of at least one second component sub-block in the M second component sub-blocks, wherein N2 is a positive integer greater than or equal to 1.
Optionally, the dividing unit is further configured to: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the dividing unit is further configured to: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the first component block meeting a preset condition corresponding to the partition mode includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the decoding information of the second component block includes a prediction mode of the second component block; the image decoding unit is further configured to: and acquiring the prediction mode of the second component block from the code stream.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the image decoding unit is further configured to: and acquiring the decoding information of the second component block according to the decoding information of the N1 first component sub-blocks.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the decoding information of the second component block includes a prediction mode of the second component block; the image decoding unit is specifically configured to: obtaining a prediction mode of the second component block according to a prediction mode of a target first component sub-block of the N1 first component sub-blocks, wherein decoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the image decoding unit is specifically configured to: acquiring a prediction mode of the second component block from a code stream; or acquiring the prediction mode of the target first component sub-block as the prediction mode of the second component block.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, in case that the prediction mode of the second component block is a non-intra prediction mode, the decoding information of the second component block further includes motion information of the second component block; the image decoding unit is further configured to: and acquiring the motion information of the second component block according to the motion information of the target first component sub-block, wherein the target decoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, before the obtaining the decoding information of the second component block, the image decoding unit is further configured to: and acquiring target position information, and determining the target first component sub-block according to the target position information.
With reference to the twelfth aspect, in certain implementations of the twelfth aspect, theThe coordinates of the target position information are (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, before the obtaining the decoding information of the second component block, the image decoding unit is further configured to: and according to a decoding order or a scanning order, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
With reference to the twelfth aspect, in certain implementations of the twelfth aspect, the prediction mode of each of the N first component sub-blocks is an intra prediction mode or a non-intra prediction mode.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the image decoding unit is configured to: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the dividing unit is further configured to: in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks; the image decoding unit is further configured to: and acquiring the reconstruction blocks of the N first component sub-blocks and the reconstruction blocks of the N second component sub-blocks according to the decoding information of the N first component sub-blocks and the decoding information of the N second component sub-blocks.
With reference to the twelfth aspect, in some implementations of the twelfth aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a thirteenth aspect, there is provided a video encoder comprising: the image coding unit is used for acquiring a division mode of a current node, and the division mode is used for dividing a first component block of the current node; and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode, and if the first component block does not meet the preset condition, dividing the second component block of the current node by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
In a fourteenth aspect, there is provided a video encoder comprising: the image coding unit is used for acquiring a division mode of a current node, and the division mode is used for dividing a first component block of the current node; and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, determining that the second component block of the current node is not divided or does not adopt the dividing mode of the current node for dividing, wherein the size of the first component block is larger than that of the second component block.
Optionally, the dividing unit is further configured to: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the dividing unit is further configured to: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
In a fifteenth aspect, there is provided a video encoder comprising: the image coding unit is used for acquiring a division mode of a current node, and the division mode is used for dividing a first component block of the current node; the dividing unit is configured to determine whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, only allow the dividing mode of the current node to be used for dividing the first component block of the current node, where the current node includes the first component and the second component, and the size of the first component block is larger than that of the second component block.
With reference to the thirteenth aspect, the fourteenth aspect or the fifteenth aspect, in certain implementations of the thirteenth aspect, the dividing unit is specifically configured to at least one of: under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
With reference to the thirteenth, fourteenth or fifteenth aspect, in certain implementations of the thirteenth, fourteenth or fifteenth aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a sixteenth aspect, there is provided a video encoder comprising: the image coding unit is used for acquiring the division mode of the current node; the dividing unit is used for dividing the first component block of the current node into N first component sub-blocks according to the dividing mode of the current node, wherein N is a positive integer greater than or equal to 2; in response to a first determination result that the first component block satisfies a preset condition corresponding to the partition mode, the image encoding unit is further configured to generate encoding information of the N first component blocks and encoding information of a second component block of the current node; or, in response to a first determination result that the first component block satisfies a preset condition corresponding to the partition mode, the partition unit is further configured to partition the second component block of the current node into M second component sub-blocks by using a partition mode different from the partition mode of the current node, where M is a positive integer greater than or equal to 2; the image encoding unit is further configured to generate encoding information of the N first component sub-blocks and encoding information of the M second component sub-blocks.
Optionally, the dividing unit is further configured to: and if the preset condition is met, allowing the first component block to be divided by adopting the dividing mode to obtain the first component block.
Optionally, the dividing unit is further configured to: and if the preset condition is not met, the first component block and the second component block are allowed to be divided by adopting the dividing mode.
With reference to the sixteenth aspect, in some implementations of the sixteenth aspect, the first component block satisfies a preset condition corresponding to the partition mode, and includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the image encoding unit is specifically configured to: and generating the coding information of the second component block according to the coding information of N1 first component sub-blocks in the N first component sub-blocks, wherein N1 is a positive integer greater than or equal to 1.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the coding information for the second component block includes a prediction mode for the second component block; the image encoding unit is specifically configured to: obtaining a prediction mode of a target first component sub-block of the N1 first component sub-blocks as a prediction mode of the second component block, wherein encoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, in a case that the prediction mode of the second component block is a non-intra prediction mode, the encoding information of the second component block further includes motion information of the second component block, and the image encoding unit is further configured to: generating motion information of the second component block according to the motion information of the target first component sub-block, wherein the target encoding information of the target first component sub-block further includes the motion information of the target first component sub-block.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, before the generating the coding information of the second component block, the image coding unit is further configured to: and acquiring target position information, and determining the target first component sub-block according to the target position information.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the target location information has coordinates of (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, before the generating the encoding information of the second component block, the image encoding unit is further configured to: and according to the coding sequence or the scanning sequence, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the prediction mode of each of the N first component sub-blocks is either an intra prediction mode or a non-intra prediction mode.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the image encoding unit is configured to: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
With reference to the sixteenth aspect, in some implementations of the sixteenth aspect, the dividing unit is further configured to, in response to a second determination that the first component block does not satisfy a preset condition corresponding to the division mode, divide the second component block into N second component sub-blocks by using the division mode of the current node; the image encoding unit is further configured to generate encoding information of the N first component sub-blocks and encoding information of the N second component sub-blocks.
With reference to the sixteenth aspect, in certain implementations of the sixteenth aspect, the first component block is a luma component block of the current node, and the second component block is a chroma component block of the current node; or, the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
In a seventeenth aspect, a video decoding apparatus is provided that comprises several functional units for implementing any one of the methods of the first to fourth aspects.
For example, the video decoding apparatus may include an image decoding unit and a dividing unit.
Wherein the image decoding unit may be composed of one or more units of an entropy decoding unit, a prediction unit, an inverse transform unit, and an inverse quantization unit.
In an eighteenth aspect, a video coding device is provided, comprising several functional units for implementing any one of the methods of the fifth to eighth aspects.
For example, the video encoding apparatus may include a dividing unit and an image encoding unit.
Wherein the image coding unit may be composed of one or more units of a prediction unit, a transform unit, a quantization unit, and an entropy coding unit.
In a nineteenth aspect, an embodiment of the present application provides an apparatus for decoding video data, the apparatus including: the memory is used for storing video data in a code stream form; a video decoder for implementing any one of the methods of the first to fourth aspects.
In a twentieth aspect, an embodiment of the present application provides an apparatus for encoding video data, the apparatus comprising: a memory for storing video data, the video data comprising one or more image blocks; a video encoder for implementing any one of the methods of the fifth to eighth aspects.
In a twenty-first aspect, an embodiment of the present application provides a decoding apparatus, including: a memory and a processor that invokes program code stored in the memory to perform some or all of the steps of any of the methods of the first through fourth aspects.
Optionally, the memory is a nonvolatile memory.
Optionally, the memory and the processor are coupled to each other.
In a twenty-second aspect, an embodiment of the present application provides an encoding apparatus, including: a memory and a processor that invokes program code stored in the memory to perform some or all of the steps of any of the methods of the fifth aspect to the eighth aspect.
Optionally, the memory is a non-volatile memory.
Optionally, the memory and the processor are coupled to each other.
In a twenty-third aspect, the present application provides a computer-readable storage medium storing program code, where the program code includes instructions for performing part or all of the steps of any one of the methods in the first to eighth aspects.
In a twenty-fourth aspect, embodiments of the present application provide a computer program product, which when run on a computer, causes the computer to perform some or all of the steps of any one of the methods in the first to eighth aspects.
It should be understood that the technical solutions in the ninth to fourteenth aspects of the present application are the same as the technical solutions in the first to eighth aspects of the present application, and the advantageous effects obtained by the aspects and the corresponding possible embodiments are similar and will not be described again.
Drawings
FIG. 1 is a block diagram of an example of a video encoding and decoding system 10 for implementing an embodiment of this disclosure.
Fig. 2 is a block diagram of an example structure of an encoder 20 for implementing an embodiment of the present invention.
Fig. 3 is a block diagram of an example structure of a decoder 30 for implementing an embodiment of the invention.
FIG. 4 is a block diagram of an example of a video coding system 40 for implementing an embodiment of this disclosure.
FIG. 5 is a block diagram of an example of a video coding apparatus 400 for implementing an embodiment of this disclosure.
FIG. 6 is a block diagram of another example of an encoding device or a decoding device for implementing embodiments of the present invention.
Fig. 7 is a schematic diagram of a block partition for implementing an embodiment of the present invention.
FIG. 8 is a schematic flow chart diagram of a block partitioning method for implementing an embodiment of the present invention.
Fig. 9 is a schematic flow chart of a video encoding and decoding method for implementing the embodiment of the present invention.
Fig. 10 is a schematic flow chart of a video encoding and decoding method for implementing the embodiment of the present invention.
Fig. 11 is a schematic block diagram of a video decoder for implementing an embodiment of the present invention.
Fig. 12 is a schematic block diagram of a video encoder for implementing an embodiment of the present invention.
Fig. 13 is a schematic block diagram of a video decoder for implementing an embodiment of the present invention.
Fig. 14 is a schematic block diagram of a video encoder for implementing an embodiment of the present invention.
Detailed Description
The embodiments of the present invention will be described below with reference to the drawings. In the following description, reference is made to the accompanying drawings which form a part hereof and which show by way of illustration specific aspects of embodiments of the invention or which may be used in the practice of the invention. It should be understood that embodiments of the invention may be used in other respects, and may include structural or logical changes not depicted in the drawings. The following detailed description is, therefore, not to be taken in a limiting sense, and the scope of the present invention is defined by the appended claims. For example, it should be understood that the disclosure in connection with the described methods may equally apply to the corresponding apparatus or system for performing the methods, and vice versa. For example, if one or more particular method steps are described, the corresponding apparatus may comprise one or more units, such as functional units, to perform the described one or more method steps (e.g., a unit performs one or more steps, or multiple units, each of which performs one or more of the multiple steps), even if such one or more units are not explicitly described or illustrated in the figures. On the other hand, for example, if a particular apparatus is described based on one or more units, such as functional units, the corresponding method may comprise one step to perform the functionality of the one or more units (e.g., one step performs the functionality of the one or more units, or multiple steps, each of which performs the functionality of one or more of the plurality of units), even if such one or more steps are not explicitly described or illustrated in the figures. Further, it is to be understood that features of the various exemplary embodiments and/or aspects described herein may be combined with each other, unless explicitly stated otherwise.
Video coding generally refers to processing a sequence of pictures that form a video or video sequence. In the field of video coding, the terms "picture", "frame" or "image" may be used as synonyms. Video encoding as used herein means video encoding or video decoding. Video encoding is performed on the source side, typically including processing (e.g., by compressing) the original video picture to reduce the amount of data required to represent the video picture for more efficient storage and/or transmission. Video decoding is performed at the destination side, typically involving inverse processing with respect to the encoder, to reconstruct the video pictures. Embodiments are directed to video picture "encoding" to be understood as referring to "encoding" or "decoding" of a video sequence. The combination of the encoding part and the decoding part is also called codec (coding and decoding).
A video sequence comprises a series of images (pictures) which are further divided into slices (slices) which are further divided into blocks (blocks). Video coding performs the coding process in units of blocks, and in some new video coding standards, the concept of blocks is further extended. For example, a macroblock may be further partitioned into a plurality of prediction blocks (partitions) that may be used for predictive coding. Alternatively, a basic concept such as a Coding Unit (CU), a Prediction Unit (PU), and a Transform Unit (TU) is used, and various block units are functionally divided, and a completely new tree-based structure is used for description. For example, a CU may be partitioned into smaller CUs according to a quadtree, and the smaller CUs may be further partitioned to form a quadtree structure, where the CU is a basic unit for partitioning and encoding an encoded image. There is also a similar tree structure for PU and TU, and PU may correspond to a prediction block, which is the basic unit of predictive coding. The CU is further partitioned into PUs according to a partitioning pattern. A TU may correspond to a transform block, which is a basic unit for transforming a prediction residual. However, CU, PU and TU are basically concepts of blocks (or image blocks).
The CTU is split into CUs by using a quadtree structure represented as a coding tree. A decision is made at the CU level whether to encode a picture region using inter-picture (temporal) or intra-picture (spatial) prediction. Each CU may be further split into one, two, or four PUs according to the PU split type. The same prediction process is applied within one PU and the relevant information is transmitted to the decoder on a PU basis. After obtaining the residual block by applying a prediction process based on the PU split type, the CU may be partitioned into Transform Units (TUs) according to other quadtree structures similar to the coding tree used for the CU. In recent developments of video compression techniques, the coding blocks are partitioned using Quad-tree and binary tree (QTBT) partition frames. In the QTBT block structure, a CU may be square or rectangular in shape.
Herein, for convenience of description and understanding, an image block to be encoded in a currently encoded image may be referred to as a current block, e.g., in encoding, referring to a block currently being encoded; in decoding, refers to the block currently being decoded. A decoded image block in a reference picture used for predicting the current block is referred to as a reference block, i.e. a reference block is a block that provides a reference signal for the current block, wherein the reference signal represents pixel values within the image block. A block in the reference picture that provides a prediction signal for the current block may be a prediction block, wherein the prediction signal represents pixel values or sample values or a sampled signal within the prediction block. For example, after traversing multiple reference blocks, a best reference block is found that will provide prediction for the current block, which is called a prediction block.
In the case of lossless video coding, the original video picture can be reconstructed, i.e., the reconstructed video picture has the same quality as the original video picture (assuming no transmission loss or other data loss during storage or transmission). In the case of lossy video coding, the amount of data needed to represent the video picture is reduced by performing further compression, e.g., by quantization, while the decoder side cannot fully reconstruct the video picture, i.e., the quality of the reconstructed video picture is lower or worse than the quality of the original video picture.
Several video coding standards of h.261 belong to "lossy hybrid video codec" (i.e., the spatial and temporal prediction in the sample domain is combined with 2D transform coding in the transform domain for applying quantization). Each picture of a video sequence is typically partitioned into non-overlapping sets of blocks, typically encoded at the block level. In other words, the encoder side typically processes, i.e., encodes, video at the block (video block) level, e.g., generates a prediction block by spatial (intra-picture) prediction and temporal (inter-picture) prediction, subtracts the prediction block from the current block (currently processed or block to be processed) to obtain a residual block, transforms the residual block and quantizes the residual block in the transform domain to reduce the amount of data to be transmitted (compressed), while the decoder side applies the inverse processing portion relative to the encoder to the encoded or compressed block to reconstruct the current block for representation. In addition, the encoder replicates the decoder processing loop such that the encoder and decoder generate the same prediction (e.g., intra-prediction and inter-prediction) and/or reconstruction for processing, i.e., encoding, subsequent blocks.
The following describes a system architecture to which embodiments of the present invention are applied. Referring to fig. 1, fig. 1 schematically shows a block diagram of a video encoding and decoding system 10 to which an embodiment of the present invention is applied. As shown in fig. 1, video encoding and decoding system 10 may include a source device 12 and a destination device 14, source device 12 generating encoded video data and, thus, source device 12 may be referred to as a video encoding apparatus. Destination device 14 may decode the encoded video data generated by source device 12, and thus destination device 14 may be referred to as a video decoding apparatus. Various implementations of source apparatus 12, destination apparatus 14, or both may include one or more processors and memory coupled to the one or more processors. The memory can include, but is not limited to, RAM, ROM, EEPROM, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures that can be accessed by a computer, as described herein. Source apparatus 12 and destination apparatus 14 may comprise a variety of devices, including desktop computers, mobile computing devices, notebook (e.g., laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, televisions, cameras, display devices, digital media players, video game consoles, on-board computers, wireless communication devices, or the like.
Although fig. 1 depicts source device 12 and destination device 14 as separate devices, device embodiments may also include the functionality of both source device 12 and destination device 14 or both, i.e., source device 12 or corresponding functionality and destination device 14 or corresponding functionality. In such embodiments, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and/or software, or using separate hardware and/or software, or any combination thereof.
A communication connection may be made between source device 12 and destination device 14 over link 13, and destination device 14 may receive encoded video data from source device 12 via link 13. Link 13 may comprise one or more media or devices capable of moving encoded video data from source apparatus 12 to destination apparatus 14. In one example, link 13 may include one or more communication media that enable source device 12 to transmit encoded video data directly to destination device 14 in real-time. In this example, source apparatus 12 may modulate the encoded video data according to a communication standard, such as a wireless communication protocol, and may transmit the modulated video data to destination apparatus 14. The one or more communication media may include wireless and/or wired communication media such as a Radio Frequency (RF) spectrum or one or more physical transmission lines. The one or more communication media may form part of a packet-based network, such as a local area network, a wide area network, or a global network (e.g., the internet). The one or more communication media may include routers, switches, base stations, or other apparatuses that facilitate communication from source apparatus 12 to destination apparatus 14.
Source device 12 includes an encoder 20 and, in the alternative, source device 12 may also include a picture source 16, a picture preprocessor 18, and a communication interface 22. In one implementation, the encoder 20, the picture source 16, the picture preprocessor 18, and the communication interface 22 may be hardware components of the source device 12 or may be software programs of the source device 12. Described below, respectively:
the picture source 16, which may include or be any type of picture capturing device, may be used, for example, to capture real-world pictures, and/or any type of picture or comment generating device (for screen content encoding, some text on the screen is also considered part of the picture or image to be encoded), such as a computer graphics processor for generating computer animated pictures, or any type of device for obtaining and/or providing real-world pictures, computer animated pictures (e.g., screen content, Virtual Reality (VR) pictures), and/or any combination thereof (e.g., Augmented Reality (AR) pictures). The picture source 16 may be a camera for capturing pictures or a memory for storing pictures, and the picture source 16 may also include any kind of (internal or external) interface for storing previously captured or generated pictures and/or for obtaining or receiving pictures. When picture source 16 is a camera, picture source 16 may be, for example, an integrated camera local or integrated in the source device; when the picture source 16 is a memory, the picture source 16 may be an integrated memory local or integrated, for example, in the source device. When the picture source 16 comprises an interface, the interface may for example be an external interface receiving pictures from an external video source, for example an external picture capturing device such as a camera, an external memory or an external picture generating device, for example an external computer graphics processor, a computer or a server. The interface may be any kind of interface according to any proprietary or standardized interface protocol, e.g. a wired or wireless interface, an optical interface.
The picture may be regarded as a two-dimensional array or matrix of pixel elements (picture elements). The pixels in the array may also be referred to as sampling points. The number of sampling points of the array or picture in the horizontal and vertical directions (or axes) defines the size and/or resolution of the picture. To represent color, three color components are typically employed, i.e., a picture may be represented as or contain three sample arrays. For example, in RBG format or color space, a picture includes corresponding arrays of red, green, and blue samples. However, in video coding, each pixel is typically represented in a luminance/chrominance format or color space, e.g. for pictures in YUV format, comprising a luminance component (sometimes also indicated with L) indicated by Y and two chrominance components indicated by U and V. The luminance (luma) component Y represents luminance or gray level intensity (e.g., both are the same in a gray scale picture), while the two chrominance (chroma) components U and V represent chrominance or color information components. Accordingly, a picture in YUV format includes a luma sample array of luma sample values (Y), and two chroma sample arrays of chroma values (U and V). Pictures in RGB format can be converted or transformed into YUV format and vice versa, a process also known as color transformation or conversion. If the picture is black and white, the picture may include only an array of luminance samples. In the embodiment of the present invention, the pictures transmitted from the picture source 16 to the picture processor may also be referred to as raw picture data 17.
Picture pre-processor 18 is configured to receive original picture data 17 and perform pre-processing on original picture data 17 to obtain pre-processed picture 19 or pre-processed picture data 19. For example, the pre-processing performed by picture pre-processor 18 may include trimming, color format conversion (e.g., from RGB format to YUV format), toning, or de-noising.
An encoder 20 (or video encoder 20) for receiving the pre-processed picture data 19, processing the pre-processed picture data 19 with a relevant prediction mode (such as the prediction mode in various embodiments herein), thereby providing encoded picture data 21 (structural details of the encoder 20 will be described further below based on fig. 2 or fig. 5 or fig. 6). In some embodiments, the encoder 20 may be configured to perform various embodiments described hereinafter to implement the application of the chroma block prediction method described in the present invention on the encoding side.
A communication interface 22, which may be used to receive encoded picture data 21 and may transmit encoded picture data 21 over link 13 to destination device 14 or any other device (e.g., memory) for storage or direct reconstruction, which may be any device for decoding or storage. Communication interface 22 may, for example, be used to encapsulate encoded picture data 21 into a suitable format, such as a data packet, for transmission over link 13.
Destination device 14 includes a decoder 30, and in addition, optionally, destination device 14 may also include a communication interface 28, a picture post-processor 32, and a display device 34. Described separately below:
Both communication interface 28 and communication interface 22 may be configured as a one-way communication interface or a two-way communication interface, and may be used, for example, to send and receive messages to establish a connection, acknowledge and exchange any other information related to a communication link and/or data transfer, such as an encoded picture data transfer.
A decoder 30 (otherwise referred to as decoder 30) for receiving the encoded picture data 21 and providing decoded picture data 31 or decoded pictures 31 (structural details of the decoder 30 will be described further below based on fig. 3 or fig. 5 or fig. 6). In some embodiments, the decoder 30 may be configured to perform various embodiments described hereinafter to implement the application of the chroma block prediction method described in the present invention on the decoding side.
A picture post-processor 32 for performing post-processing on the decoded picture data 31 (also referred to as reconstructed picture data) to obtain post-processed picture data 33. Post-processing performed by picture post-processor 32 may include: color format conversion (e.g., from YUV format to RGB format), toning, trimming or resampling, or any other process may also be used to transmit post-processed picture data 33 to display device 34.
A display device 34 for receiving the post-processed picture data 33 for displaying pictures to, for example, a user or viewer. Display device 34 may be or may include any type of display for presenting the reconstructed picture, such as an integrated or external display or monitor. For example, the display may include a Liquid Crystal Display (LCD), an Organic Light Emitting Diode (OLED) display, a plasma display, a projector, a micro LED display, a liquid crystal on silicon (LCoS), a Digital Light Processor (DLP), or any other display of any kind.
Although fig. 1 depicts source device 12 and destination device 14 as separate devices, device embodiments may also include the functionality of both source device 12 and destination device 14 or both, i.e., source device 12 or corresponding functionality and destination device 14 or corresponding functionality. In such embodiments, source device 12 or corresponding functionality and destination device 14 or corresponding functionality may be implemented using the same hardware and/or software, or using separate hardware and/or software, or any combination thereof.
It will be apparent to those skilled in the art from this description that the existence and (exact) division of the functionality of the different elements or source device 12 and/or destination device 14 shown in fig. 1 may vary depending on the actual device and application. Source device 12 and destination device 14 may comprise any of a variety of devices, including any type of handheld or stationary device, such as a notebook or laptop computer, a mobile phone, a smartphone, a tablet or tablet computer, a camcorder, a desktop computer, a set-top box, a television, a camera, an in-vehicle device, a display device, a digital media player, a video game console, a video streaming device (e.g., a content service server or a content distribution server), a broadcast receiver device, a broadcast transmitter device, etc., and may not use or use any type of operating system.
In some cases, the video encoding and decoding system 10 shown in fig. 1 is merely an example, and the techniques of this application may be applicable to video encoding settings (e.g., video encoding or video decoding) that do not necessarily involve any data communication between the encoding and decoding devices. In other examples, the data may be retrieved from local storage, streamed over a network, and so on. A video encoding device may encode and store data to a memory, and/or a video decoding device may retrieve and decode data from a memory. In some examples, the encoding and decoding are performed by devices that do not communicate with each other, but merely encode data to and/or retrieve data from memory and decode data.
Referring to fig. 2, fig. 2 shows a schematic/conceptual block diagram of an example of an encoder 20 for implementing an embodiment of the invention. In the example of fig. 2, encoder 20 includes a residual calculation unit 204, a transform processing unit 206, a quantization unit 208, an inverse quantization unit 210, an inverse transform processing unit 212, a reconstruction unit 214, a buffer 216, a loop filter unit 220, a Decoded Picture Buffer (DPB) 230, a prediction processing unit 260, and an entropy encoding unit 270. Prediction processing unit 260 may include inter prediction unit 244, intra prediction unit 254, and mode selection unit 262. Inter prediction unit 244 may include a motion estimation unit and a motion compensation unit (not shown). The encoder 20 shown in fig. 2 may also be referred to as a hybrid video encoder or a video encoder according to a hybrid video codec.
For example, the residual calculation unit 204, the transform processing unit 206, the quantization unit 208, the prediction processing unit 260, and the entropy encoding unit 270 form a forward signal path of the encoder 20, and, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the reconstruction unit 214, the buffer 216, the loop filter 220, the Decoded Picture Buffer (DPB) 230, the prediction processing unit 260 form a backward signal path of the encoder, wherein the backward signal path of the encoder corresponds to a signal path of a decoder (see the decoder 30 in fig. 3).
The encoder 20 receives, e.g., via an input 202, a picture 201 or an image block 203 of a picture 201, e.g., a picture in a sequence of pictures forming a video or a video sequence. Image block 203 may also be referred to as a current picture block or a picture block to be encoded, and picture 201 may be referred to as a current picture or a picture to be encoded (especially when the current picture is distinguished from other pictures in video encoding, such as previously encoded and/or decoded pictures in the same video sequence, i.e., a video sequence that also includes the current picture).
An embodiment of the encoder 20 may comprise a partitioning unit (not shown in fig. 2) for partitioning the picture 201 into a plurality of blocks, e.g. image blocks 203, typically into a plurality of non-overlapping blocks. The partitioning unit may be used to use the same block size for all pictures in a video sequence and a corresponding grid defining the block size, or to alter the block size between pictures or subsets or groups of pictures and partition each picture into corresponding blocks.
In one example, prediction processing unit 260 of encoder 20 may be used to perform any combination of the above-described segmentation techniques.
Like picture 201, image block 203 is also or can be considered as a two-dimensional array or matrix of sample points having sample values, although its size is smaller than picture 201. In other words, the image block 203 may comprise, for example, one sample array (e.g., a luma array in the case of a black and white picture 201) or three sample arrays (e.g., a luma array and two chroma arrays in the case of a color picture) or any other number and/or class of arrays depending on the color format applied. The number of sampling points in the horizontal and vertical directions (or axes) of the image block 203 defines the size of the image block 203.
The encoder 20 as shown in fig. 2 is used to encode the picture 201 block by block, e.g., performs encoding and prediction for each image block 203.
Residual calculation unit 204 is used to calculate residual block 205 based on picture image block 203 and prediction block 265 (other details of prediction block 265 are provided below), e.g., by subtracting sample values of prediction block 265 from sample values of picture image block 203 on a sample-by-sample (pixel-by-pixel) basis to obtain residual block 205 in the sample domain.
The transform processing unit 206 is configured to apply a transform, such as a Discrete Cosine Transform (DCT) or a Discrete Sine Transform (DST), on the sample values of the residual block 205 to obtain transform coefficients 207 in a transform domain. The transform coefficients 207 may also be referred to as transform residual coefficients and represent the residual block 205 in the transform domain.
The transform processing unit 206 may be configured to apply integer approximations of DCT/DST, such as transforms specified by AVS, AVS2, AVS 3. Such integer approximations are typically scaled by some factor compared to the orthogonal DCT transform. To maintain the norm of the residual block processed by the forward transform and the inverse transform, an additional scaling factor is applied as part of the transform process. The scaling factor is typically selected based on certain constraints, e.g., the scaling factor is a power of 2 for a shift operation, a trade-off between bit depth of transform coefficients, accuracy and implementation cost, etc. For example, a specific scaling factor may be specified on the decoder 30 side for the inverse transform by, for example, inverse transform processing unit 212 (and on the encoder 20 side for the corresponding inverse transform by, for example, inverse transform processing unit 212), and correspondingly, a corresponding scaling factor may be specified on the encoder 20 side for the forward transform by transform processing unit 206.
The inverse quantization unit 210 is configured to apply inverse quantization of the quantization unit 208 on the quantized coefficients to obtain inverse quantized coefficients 211, e.g., to apply an inverse quantization scheme of the quantization scheme applied by the quantization unit 208 based on or using the same quantization step as the quantization unit 208. The dequantized coefficients 211 may also be referred to as dequantized residual coefficients 211, corresponding to transform coefficients 207, although the loss due to quantization is typically not the same as the transform coefficients.
The inverse transform processing unit 212 is configured to apply an inverse transform of the transform applied by the transform processing unit 206, for example, an inverse Discrete Cosine Transform (DCT) or an inverse Discrete Sine Transform (DST), to obtain an inverse transform block 213 in the sample domain. The inverse transform block 213 may also be referred to as an inverse transform dequantized block 213 or an inverse transform residual block 213.
The reconstruction unit 214 (e.g., summer 214) is used to add the inverse transform block 213 (i.e., the reconstructed residual block 213) to the prediction block 265 to obtain the reconstructed block 215 in the sample domain, e.g., to add sample values of the reconstructed residual block 213 to sample values of the prediction block 265.
Optionally, a buffer unit 216 (or simply "buffer" 216), such as a line buffer 216, is used to buffer or store the reconstructed block 215 and corresponding sample values, for example, for intra prediction. In other embodiments, the encoder may be used to use the unfiltered reconstructed block and/or corresponding sample values stored in buffer unit 216 for any class of estimation and/or prediction, such as intra prediction.
For example, an embodiment of encoder 20 may be configured such that buffer unit 216 is used not only to store reconstructed blocks 215 for intra prediction 254, but also for loop filter unit 220 (not shown in fig. 2), and/or such that buffer unit 216 and decoded picture buffer unit 230 form one buffer, for example. Other embodiments may be used to use filtered block 221 and/or blocks or samples from decoded picture buffer 230 (neither shown in fig. 2) as input or basis for intra prediction 254.
Loop filter unit 220 (or simply "loop filter" 220) is used to filter reconstructed block 215 to obtain filtered block 221 to facilitate pixel transitions or to improve video quality. Loop filter unit 220 is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, such as a bilateral filter, an Adaptive Loop Filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. Although loop filter unit 220 is shown in fig. 2 as an in-loop filter, in other configurations, loop filter unit 220 may be implemented as a post-loop filter. The filtered block 221 may also be referred to as a filtered reconstructed block 221. The decoded picture buffer 230 may store the reconstructed encoded block after the loop filter unit 220 performs a filtering operation on the reconstructed encoded block.
Embodiments of encoder 20 (correspondingly, loop filter unit 220) may be configured to output loop filter parameters (e.g., sample adaptive offset information), e.g., directly or after entropy encoding by entropy encoding unit 270 or any other entropy encoding unit, e.g., such that decoder 30 may receive and apply the same loop filter parameters for decoding.
Decoded Picture Buffer (DPB) 230 may be a reference picture memory that stores reference picture data for use by encoder 20 in encoding video data. DPB 230 may be formed from any of a variety of memory devices, such as Dynamic Random Access Memory (DRAM) including Synchronous DRAM (SDRAM), Magnetoresistive RAM (MRAM), Resistive RAM (RRAM), or other types of memory devices. DPB 230 and buffer 216 may be provided by the same memory device or separate memory devices. In a certain example, a Decoded Picture Buffer (DPB) 230 is used to store filtered blocks 221. Decoded picture buffer 230 may further be used to store other previous filtered blocks, such as previous reconstructed and filtered blocks 221, of the same current picture or of a different picture, such as a previous reconstructed picture, and may provide the complete previous reconstructed, i.e., decoded picture (and corresponding reference blocks and samples) and/or the partially reconstructed current picture (and corresponding reference blocks and samples), e.g., for inter prediction. In a certain example, if reconstructed block 215 is reconstructed without in-loop filtering, Decoded Picture Buffer (DPB) 230 is used to store reconstructed block 215.
The mode selection unit 262 may be used to select a prediction mode (e.g., intra or inter prediction mode) and/or a corresponding prediction block 245 or 255 used as the prediction block 265 to calculate the residual block 205 and reconstruct the reconstructed block 215.
Embodiments of mode selection unit 262 may be used to select a prediction mode (e.g., selected from those supported by prediction processing unit 260) that provides the best match or minimum residual (minimum residual means better compression in transmission or storage), or that provides minimum signaling overhead (minimum signaling overhead means better compression in transmission or storage), or both. The mode selection unit 262 may be configured to determine a prediction mode based on Rate Distortion Optimization (RDO), i.e., select a prediction mode that provides the minimum rate distortion optimization, or select a prediction mode in which the associated rate distortion at least meets the prediction mode selection criteria.
The prediction processing performed by the instance of the encoder 20 (e.g., by the prediction processing unit 260) and the mode selection performed (e.g., by the mode selection unit 262) will be explained in detail below.
As described above, the encoder 20 is configured to determine or select the best or optimal prediction mode from a set of (predetermined) prediction modes. The prediction mode set may include, for example, intra prediction modes and/or inter prediction modes.
The intra prediction mode set may include 35 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in h.265, or may include 67 different intra prediction modes, for example, non-directional modes such as DC (or mean) mode and planar mode, or directional modes as defined in h.266 under development.
In possible implementations, the set of inter Prediction modes may include, for example, an Advanced Motion Vector Prediction (AMVP) mode and a merge (merge) mode depending on available reference pictures (i.e., at least partially decoded pictures stored in the DBP 230, for example, as described above) and other inter Prediction parameters, e.g., depending on whether the entire reference picture or only a portion of the reference picture, such as a search window region of a region surrounding the current block, is used to search for a best matching reference block, and/or depending on whether pixel interpolation, such as half-pixel and/or quarter-pixel interpolation, is applied, for example. In a specific implementation, the inter prediction mode set may include an improved control point-based AMVP mode and an improved control point-based merge mode according to an embodiment of the present invention. In one example, intra-prediction unit 254 may be used to perform any combination of the inter-prediction techniques described below.
In addition to the above prediction mode, embodiments of the present invention may also apply a skip mode and/or a direct mode.
The prediction processing unit 260 may further be used for partitioning the image block 203 into smaller block partitions or sub-blocks, for example, by iteratively using Quadtree (QT) partitioning, binary-Tree (BT) partitioning, or ternary-Tree (TT), or Extended Quadtree (EQT), or any combination thereof, and for performing prediction, for example, for each of the block partitions or sub-blocks, wherein the mode selection includes selecting a Tree structure of the partitioned image block 203 and selecting a prediction mode to apply to each of the block partitions or sub-blocks.
The inter prediction unit 244 may include a Motion Estimation (ME) unit (not shown in fig. 2) and a Motion Compensation (MC) unit (not shown in fig. 2). The motion estimation unit is used to receive or obtain picture image blocks 203 (current picture image blocks 203 of current picture 201) and decoded pictures 231, or at least one or more previously reconstructed blocks, e.g., reconstructed blocks of one or more other/different previously decoded pictures 231, for motion estimation. For example, the video sequence may comprise a current picture and a previously decoded picture 31, or in other words, the current picture and the previously decoded picture 31 may be part of, or form, a sequence of pictures forming the video sequence.
For example, the encoder 20 may be configured to select a reference block from a plurality of reference blocks of the same or different one of a plurality of other pictures and provide the reference picture and/or an offset (spatial offset) between the position (X, Y coordinates) of the reference block and the position of the current block to a motion estimation unit (not shown in fig. 2) as an inter prediction parameter. This offset is also called Motion Vector (MV).
The motion compensation unit is configured to obtain an inter prediction parameter and perform inter prediction based on or using the inter prediction parameter to obtain an inter prediction block 245. The motion compensation performed by the motion compensation unit (not shown in fig. 2) may involve taking or generating a prediction block based on a motion/block vector determined by motion estimation (possibly performing interpolation to sub-pixel precision). Interpolation filtering may generate additional pixel samples from known pixel samples, potentially increasing the number of candidate prediction blocks that may be used to encode a picture block. Upon receiving the motion vector for the PU of the current picture block, motion compensation unit 246 may locate the prediction block in one reference picture list to which the motion vector points. Motion compensation unit 246 may also generate syntax elements associated with the blocks and video slices for use by decoder 30 in decoding picture blocks of the video slices.
In particular, the inter prediction unit 244 may transmit a syntax element including inter prediction parameters (e.g., indication information for selecting an inter prediction mode for current block prediction after traversing a plurality of inter prediction modes) to the entropy encoding unit 270. In a possible application scenario, if there is only one inter prediction mode, the inter prediction parameters may not be carried in the syntax element, and the decoding end 30 can directly use the default prediction mode for decoding. It will be appreciated that the inter prediction unit 244 may be used to perform any combination of inter prediction techniques.
The intra prediction unit 254 is used to obtain, for example, a picture block 203 (current picture block) of the same picture and one or more previously reconstructed blocks, e.g., reconstructed neighboring blocks, to be received for intra estimation. For example, the encoder 20 may be configured to select an intra-prediction mode from a plurality of (predetermined) intra-prediction modes.
Embodiments of encoder 20 may be used to select an intra prediction mode based on optimization criteria, such as based on a minimum residual (e.g., an intra prediction mode that provides a prediction block 255 that is most similar to current picture block 203) or a minimum code rate distortion.
The intra-prediction unit 254 is further configured to determine the intra-prediction block 255 based on the intra-prediction parameters as the selected intra-prediction mode. In any case, after selecting the intra-prediction mode for the block, intra-prediction unit 254 is also used to provide intra-prediction parameters, i.e., information indicating the selected intra-prediction mode for the block, to entropy encoding unit 270. In one example, intra-prediction unit 254 may be used to perform any combination of intra-prediction techniques.
Specifically, the above-described intra prediction unit 254 may transmit a syntax element including an intra prediction parameter (such as indication information of selecting an intra prediction mode for current block prediction after traversing a plurality of intra prediction modes) to the entropy encoding unit 270. In a possible application scenario, if there is only one intra-prediction mode, the intra-prediction parameters may not be carried in the syntax element, and the decoding end 30 may directly use the default prediction mode for decoding.
Other structural variations of video encoder 20 may be used to encode the video stream. For example, the non-transform based encoder 20 may quantize the residual signal directly without the transform processing unit 206 for certain blocks or frames. In another embodiment, encoder 20 may have quantization unit 208 and inverse quantization unit 210 combined into a single unit.
Specifically, in the embodiment of the present invention, the encoder 20 may be used to implement the encoding method described in the following embodiments.
It should be understood that other structural variations of the video encoder 20 may be used to encode the video stream. For example, for some image blocks or image frames, video encoder 20 may quantize the residual signal directly without processing by transform processing unit 206 and, correspondingly, without processing by inverse transform processing unit 212; alternatively, for some image blocks or image frames, the video encoder 20 does not generate residual data and accordingly does not need to be processed by the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, and the inverse transform processing unit 212; alternatively, video encoder 20 may store the reconstructed image block directly as a reference block without processing by filter 220; alternatively, the quantization unit 208 and the inverse quantization unit 210 in the video encoder 20 may be merged together. The loop filter 220 is optional, and in the case of lossless compression coding, the transform processing unit 206, the quantization unit 208, the inverse quantization unit 210, and the inverse transform processing unit 212 are optional. It should be appreciated that the inter prediction unit 244 and the intra prediction unit 254 may be selectively enabled according to different application scenarios.
Referring to fig. 3, fig. 3 shows a schematic/conceptual block diagram of an example of a decoder 30 for implementing an embodiment of the invention. Video decoder 30 is operative to receive encoded picture data (e.g., an encoded bitstream) 21, e.g., encoded by encoder 20, to obtain a decoded picture 231. During the decoding process, video decoder 30 receives video data, such as an encoded video bitstream representing picture blocks of an encoded video slice and associated syntax elements, from video encoder 20.
In the example of fig. 3, decoder 30 includes entropy decoding unit 304, inverse quantization unit 310, inverse transform processing unit 312, reconstruction unit 314 (e.g., summer 314), buffer 316, loop filter 320, decoded picture buffer 330, and prediction processing unit 360. The prediction processing unit 360 may include an inter prediction unit 344, an intra prediction unit 354, and a mode selection unit 362. In some examples, video decoder 30 may perform a decoding pass that is substantially reciprocal to the encoding pass described with reference to video encoder 20 of fig. 2.
Prediction processing unit 360 may include inter prediction unit 344 and intra prediction unit 354, where inter prediction unit 344 may be functionally similar to inter prediction unit 244 and intra prediction unit 354 may be functionally similar to intra prediction unit 254. The prediction processing unit 360 is typically used to perform block prediction and/or to obtain a prediction block 365 from the encoded data 21, as well as to receive or obtain (explicitly or implicitly) prediction related parameters and/or information about the selected prediction mode from, for example, the entropy decoding unit 304.
When the video slice is encoded as an intra-coded (I) slice, intra-prediction unit 354 of prediction processing unit 360 is used to generate a prediction block 365 for the picture block of the current video slice based on the signaled intra-prediction mode and data from previously decoded blocks of the current frame or picture. When a video frame is encoded as an inter-coded (i.e., B or P) slice, inter prediction unit 344 (e.g., a motion compensation unit) of prediction processing unit 360 is used to generate a prediction block 365 for the video block of the current video slice based on the motion vectors and other syntax elements received from entropy decoding unit 304. For inter prediction, a prediction block may be generated from one reference picture within one reference picture list. Video decoder 30 may construct the reference frame list using default construction techniques based on the reference pictures stored in DPB 330: list 0 and list 1.
Prediction processing unit 360 is used to determine prediction information for the video blocks of the current video slice by parsing the motion vectors and other syntax elements, and to generate a prediction block for the current video block being decoded using the prediction information. In an example of this disclosure, prediction processing unit 360 uses some of the syntax elements received to determine a prediction mode (e.g., intra or inter prediction) for encoding video blocks of a video slice, an inter prediction slice type (e.g., B-slice, P-slice, or GPB-slice), construction information for one or more of the reference picture lists of the slice, a motion vector for each inter-coded video block of the slice, an inter prediction state for each inter-coded video block of the slice, and other information to decode video blocks of the current video slice. In another example of the present disclosure, the syntax elements received by video decoder 30 from the bitstream include syntax elements received in one or more of an Adaptive Parameter Set (APS), a Sequence Parameter Set (SPS), a Picture Parameter Set (PPS), or a slice header.
Inverse transform processing unit 312 is used to apply an inverse transform (e.g., an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process) to the transform coefficients in order to produce a residual block in the pixel domain.
The reconstruction unit 314 (e.g., summer 314) is used to add the inverse transform block 313 (i.e., reconstructed residual block 313) to the prediction block 365 to obtain the reconstructed block 315 in the sample domain, e.g., by adding sample values of the reconstructed residual block 313 to sample values of the prediction block 365.
Loop filter unit 320 (either during or after the encoding cycle) is used to filter reconstructed block 315 to obtain filtered block 321 to facilitate pixel transitions or improve video quality. In one example, loop filter unit 320 may be used to perform any combination of the filtering techniques described below. Loop filter unit 320 is intended to represent one or more loop filters, such as a deblocking filter, a sample-adaptive offset (SAO) filter, or other filters, such as a bilateral filter, an Adaptive Loop Filter (ALF), or a sharpening or smoothing filter, or a collaborative filter. Although loop filter unit 320 is shown in fig. 3 as an in-loop filter, in other configurations, loop filter unit 320 may be implemented as a post-loop filter.
Decoded video blocks 321 in a given frame or picture are then stored in decoded picture buffer 330, which stores reference pictures for subsequent motion compensation.
Other variations of video decoder 30 may be used to decode the compressed bitstream. For example, decoder 30 may generate an output video stream without loop filter unit 320. For example, the non-transform based decoder 30 may directly inverse quantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames. In another embodiment, video decoder 30 may have inverse quantization unit 310 and inverse transform processing unit 312 combined into a single unit.
Specifically, in the embodiment of the present invention, the decoder 30 is used to implement the decoding method described in the following embodiments.
It should be understood that other structural variations of the video decoder 30 may be used to decode the encoded video bitstream. For example, video decoder 30 may generate an output video stream without processing by filter 320; alternatively, for some image blocks or image frames, the quantized coefficients are not decoded by entropy decoding unit 304 of video decoder 30 and, accordingly, do not need to be processed by inverse quantization unit 310 and inverse transform processing unit 312. Loop filter 320 is optional; and the inverse quantization unit 310 and the inverse transform processing unit 312 are optional for the case of lossless compression. It should be understood that the inter prediction unit and the intra prediction unit may be selectively enabled according to different application scenarios.
It should be understood that, in the encoder 20 and the decoder 30 of the present application, the processing result of a certain link may be further processed and then output to the next link, for example, after the links such as interpolation filtering, motion vector derivation, or loop filtering, the processing result of the corresponding link is further subjected to operations such as Clip or shift.
For example, the motion vector of the control point of the current image block derived according to the motion vector of the adjacent affine coding block, or the derived motion vector of the sub-block of the current image block may be further processed, which is not limited in this application. For example, the value range of the motion vector is restricted to be within a certain bit width. Assuming that the allowed bit-width of the motion vector is bitDepth, the motion vector ranges from-2 ^ (bitDepth-1) to 2^ (bitDepth-1) -1, where the "^" symbol represents the power. If the bitDepth is 16, the value range is-32768-32767. And if the bitDepth is 18, the value range is-131072-131071. As another example, the value of the motion vector (e.g., the motion vector MV of four 4x4 sub-blocks within an 8x8 image block) is constrained such that the maximum difference between the integer parts of the four 4x4 sub-blocks MV does not exceed N pixels, e.g., does not exceed one pixel.
It can be constrained to be within a certain bit width in two ways:
mode 1, the high bits of the motion vector overflow are removed:
ux=(vx+2bitDepth)%2bitDepth
vx=(ux>=2bitDepth-1)?(ux-2bitDepth):ux
uy=(vy+2bitDepth)%2bitDepth
vy=(uy>=2bitDepth-1)?(uy-2bitDepth):uy
wherein vx is a horizontal component of a motion vector of the image block or the sub-block of the image block, vy is a vertical component of the motion vector of the image block or the sub-block of the image block, and ux and uy are median values; bitDepth represents the bit width.
For example, vx has a value of-32769, which is obtained by the above equation of 32767. Since in the computer the value is stored in binary's complement, -32769's complement is 1,0111,1111,1111,1111(17 bits), the computer processes the overflow to discard the high bits, the value of vx is 0111,1111,1111,1111, then 32767, consistent with the results obtained by the formula processing.
In the method 2, the motion vector is clipped, as shown in the following formula:
vx=Clip3(-2bitDepth-1,2bitDepth-1-1,vx)
vy=Clip3(-2bitDepth-1,2bitDepth-1-1,vy)
wherein vx is the horizontal component of the motion vector of the image block or a sub-block of the image block, vy is the vertical component of the motion vector of the image block or a sub-block of the image block; wherein x, y and z respectively correspond to three input values of the MV clamping process Clip3, and the Clip3 is defined to indicate that the value of z is clamped between the intervals [ x, y ]:
Referring to fig. 4, fig. 4 is an illustrative diagram of an example of a video coding system 40 including encoder 20 of fig. 2 and/or decoder 30 of fig. 3 according to an example embodiment. Video coding system 40 may implement a combination of the various techniques of this disclosure. In the illustrated embodiment, video coding system 40 may include an imaging device 41, an encoder 20, a decoder 30 (and/or a video codec implemented by logic 47 of a processing unit 46), an antenna 42, one or more processors 43, one or more memories 44, and/or a display device 45.
As shown in fig. 4, the imaging device 41, the antenna 42, the processing unit 46, the logic circuit 47, the encoder 20, the decoder 30, the processor 43, the memory 44, and/or the display device 45 are capable of communicating with each other. As discussed, although video coding system 40 is depicted with encoder 20 and decoder 30, in different examples video coding system 40 may include only encoder 20 or only decoder 30.
In some instances, antenna 42 may be used to transmit or receive an encoded bitstream of video data. Additionally, in some instances, display device 45 may be used to present video data. In some examples, logic 47 may be implemented by processing unit 46. The processing unit 46 may comprise application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, or the like. Video decoding system 40 may also include an optional processor 43, which optional processor 43 similarly may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, or the like. In some examples, the logic 47 may be implemented in hardware, such as video encoding specific hardware, and the processor 43 may be implemented in general purpose software, an operating system, and so on. In addition, the Memory 44 may be any type of Memory, such as a volatile Memory (e.g., Static Random Access Memory (SRAM), Dynamic Random Access Memory (DRAM), etc.) or a nonvolatile Memory (e.g., flash Memory, etc.), and the like. In a non-limiting example, storage 44 may be implemented by a speed cache memory. In some instances, logic circuitry 47 may access memory 44 (e.g., to implement an image buffer). In other examples, logic 47 and/or processing unit 46 may include memory (e.g., cache, etc.) for implementing image buffers, etc.
In some examples, encoder 20, implemented by logic circuitry, may include an image buffer (e.g., implemented by processing unit 46 or memory 44) and a graphics processing unit (e.g., implemented by processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include an encoder 20 implemented by logic circuitry 47 to implement the various modules discussed with reference to fig. 2 and/or any other encoder system or subsystem described herein. The logic circuitry may be used to perform various operations discussed herein.
In some examples, decoder 30 may be implemented by logic circuitry 47 in a similar manner to implement the various modules discussed with reference to decoder 30 of fig. 3 and/or any other decoder system or subsystem described herein. In some examples, logic circuit implemented decoder 30 may include an image buffer (implemented by processing unit 2820 or memory 44) and a graphics processing unit (e.g., implemented by processing unit 46). The graphics processing unit may be communicatively coupled to the image buffer. The graphics processing unit may include a decoder 30 implemented by logic circuitry 47 to implement the various modules discussed with reference to fig. 3 and/or any other decoder system or subsystem described herein.
In some examples, antenna 42 may be used to receive an encoded bitstream of video data. As discussed, the encoded bitstream may include data, indicators, index values, mode selection data, etc., discussed herein, related to the encoded video frame, such as data related to the encoding partition (e.g., transform coefficients or quantized transform coefficients, (as discussed) optional indicators, and/or data defining the encoding partition). Video coding system 40 may also include a decoder 30 coupled to antenna 42 and used to decode the encoded bitstream. The display device 45 is used to present video frames.
It should be understood that for the example described with reference to encoder 20 in the embodiments of the present invention, decoder 30 may be used to perform the reverse process. With respect to signaling syntax elements, decoder 30 may be configured to receive and parse such syntax elements and decode the associated video data accordingly. In some examples, encoder 20 may entropy encode the syntax elements into an encoded video bitstream. In such instances, decoder 30 may parse such syntax elements and decode the relevant video data accordingly.
It should be noted that the decoding method described in the embodiment of the present invention is mainly used in the decoding process, which exists in both the encoder 20 and the decoder 30.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a video coding apparatus 400 (e.g., the video encoding apparatus 400 or the video decoding apparatus 400) according to an embodiment of the present invention. Video coding apparatus 400 is suitable for implementing the embodiments described herein. In one embodiment, video coding device 400 may be a video decoder (e.g., decoder 30 of fig. 1) or a video encoder (e.g., encoder 20 of fig. 1). In another embodiment, the video coding device 400 may be one or more components of the decoder 30 of fig. 1 or the encoder 20 of fig. 1 described above.
The video coding apparatus 400 includes: an ingress port 410 and a reception unit (Rx)420 for receiving data, a processor, logic unit or Central Processing Unit (CPU)430 for processing data, a transmitter unit (Tx) 440 and an egress port 450 for transmitting data, and a memory 460 for storing data. Video coding device 400 may also include optical-to-Electrical (EO) components and optical-to-electrical (opto) components coupled with ingress port 410, receiver unit 420, transmitter unit 440, and egress port 450 for egress or ingress of optical or electrical signals.
The processor 430 is implemented by hardware and software. Processor 430 may be implemented as one or more CPU chips, cores (e.g., multi-core processors), FPGAs, ASICs, and DSPs. Processor 430 is in communication with inlet port 410, receiver unit 420, transmitter unit 440, outlet port 450, and memory 460. Processor 430 includes a coding module 470 (e.g., encoding module 470 or decoding module 470). The encoding/decoding module 470 implements the embodiments disclosed herein to implement the chroma block prediction method provided by the embodiments of the present invention. For example, the encoding/decoding module 470 implements, processes, or provides various encoding operations. Accordingly, substantial improvements are provided to the functionality of the video coding apparatus 400 by the encoding/decoding module 470 and affect the transition of the video coding apparatus 400 to different states. Alternatively, the encode/decode module 470 is implemented as instructions stored in the memory 460 and executed by the processor 430.
The memory 460, which may include one or more disks, tape drives, and solid state drives, may be used as an over-flow data storage device for storing programs when such programs are selectively executed, and for storing instructions and data that are read during program execution. The memory 460 may be volatile and/or nonvolatile, and may be Read Only Memory (ROM), Random Access Memory (RAM), random access memory (TCAM), and/or Static Random Access Memory (SRAM).
Referring to fig. 6, fig. 6 is a simplified block diagram of an apparatus 500 that may be used as either or both of source device 12 and destination device 14 in fig. 1 according to an example embodiment. Apparatus 500 may implement the techniques of this application. In other words, fig. 6 is a schematic block diagram of one implementation of an encoding apparatus or a decoding apparatus (simply referred to as a decoding apparatus 500) of the embodiment of the present application. Among other things, the decoding device 500 may include a processor 510, a memory 530, and a bus system 550. Wherein the processor is connected with the memory through the bus system, the memory is used for storing instructions, and the processor is used for executing the instructions stored by the memory. The memory of the coding device stores program code, and the processor may invoke the program code stored in the memory to perform the various video encoding or decoding methods described herein, and in particular, the various new decoding methods. To avoid repetition, it is not described in detail here.
In the embodiment of the present application, the processor 510 may be a Central Processing Unit (CPU), and the processor 510 may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field Programmable Gate Arrays (FPGAs) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, or the like. A general purpose processor may be a microprocessor or the processor may be any conventional processor or the like.
The memory 530 may include a Read Only Memory (ROM) device or a Random Access Memory (RAM) device. Any other suitable type of memory device may also be used for memory 530. Memory 530 may include code and data 531 to be accessed by processor 510 using bus 550. Memory 530 may further include an operating system 533 and application programs 535, the application programs 535 including at least one program that allows processor 510 to perform the video encoding or decoding methods described herein, and in particular the decoding methods described herein. For example, the application programs 535 may include applications 1 through N, which further include a video encoding or decoding application (simply a video coding application) that performs the video encoding or decoding methods described herein.
The bus system 550 may include a power bus, a control bus, a status signal bus, and the like, in addition to a data bus. For clarity of illustration, however, the various buses are illustrated in the figure as the bus system 550.
Optionally, the translator device 500 may also include one or more output devices, such as a display 570. In one example, the display 570 may be a touch-sensitive display that incorporates a display with a touch-sensing unit operable to sense touch input. A display 570 may be coupled to the processor 510 via the bus 550.
The scheme of the embodiment of the application is explained in detail as follows:
definition of key terms
And (3) CTU: a coding tree unit (coding tree unit), one image is composed of a plurality of CTUs, one CTU generally corresponds to a square image region, and includes luminance pixels and chrominance pixels (or may include only luminance pixels, or may include only chrominance pixels) in the image region; syntax elements are also included in the CTU that indicate how the CTU is divided into at least one Coding Unit (CU), and the method of decoding each coding unit resulting in a reconstructed picture.
CU: the coding unit, which generally corresponds to an a × B rectangular region, includes a × B luminance pixels and its corresponding chrominance pixels, a is the width of the rectangle, B is the height of the rectangle, a and B may be the same or different, and a and B generally take values to the power of 2, i.e. 256, 128, 64, 32, 16, 8, 4. An encoding unit can decode to obtain a reconstructed image of an A × B rectangular region through decoding processing, wherein the decoding processing generally comprises prediction, inverse quantization, inverse transformation and the like, predicted images and residual errors are generated, and the predicted images and the residual errors are superposed to obtain the reconstructed image.
Quadtree (QT), a Tree-like structure, a node can be divided into four sub-nodes. The video coding standard adopts a CTU partitioning mode based on a quadtree: the CTU serves as a root node, and each node corresponds to a square region, that is, the square region is divided into four square regions (the length and the width of each square region are half of the length and the width of the region before division) with the same size, and each region corresponds to a node, as shown in a block 701 in fig. 7. A node may not be divided any more (at this time, its corresponding area is a CU), or the node may be continuously divided into nodes of the next level in the manner of QT, BT, or EQT.
Binary Tree (BT, Binary Tree): a tree structure in which a node is divided into two sub-nodes. There are two ways to divide into two nodes: 1) dividing the region corresponding to the node into two upper and lower regions of the same size, each region corresponding to a node, as shown in block 702 in fig. 7; or 2) vertically divide the area corresponding to the node into two areas with the same size, left and right, each area corresponding to a node, as shown in block 703 in fig. 7. In the encoding method using the binary tree, a node on a binary tree structure may not be divided, or the node may be continuously divided into nodes of the next level in a BT or EQT manner.
An expanded Quad-Tree (EQT) is an I-shaped dividing structure, and one node can be divided into four sub-nodes. There are two ways to divide into three nodes: 1) dividing the region corresponding to the node into an upper region, a middle region and a lower region, wherein each region corresponds to a node, the heights of the upper region, the middle left region, the middle right region and the lower region are 1/4, 1/2, 1/2 and 1/4 of the node heights, and the widths of the middle left region and the middle right region are 1/2 and 1/2 of the node heights, as shown by a block 704 in fig. 7; or 2) vertically divide the region corresponding to the node into three regions, namely, a left region, a middle region, a top region, a middle region, a bottom region and a right region, wherein each region corresponds to one node, the widths of the three regions are 1/4, 1/2, 1/2 and 1/4 of the node height respectively, and the widths of the middle region, the middle region and the bottom region are 1/2 and 1/2 of the node height respectively, as shown in a block 705 in fig. 7. In the encoding method using the extended quadtree, a node in the extended quadtree structure may not be divided, or the node may be continuously divided into nodes of the next level in a BT or EQT manner.
Video decoding (video decoding): and restoring the video code stream into a reconstructed image according to a specific grammar rule and a specific processing method.
Video encoding (video encoding): compressing the image sequence into code stream;
video coding (video coding): the video encoding and decoding are commonly called, and the Chinese translation name and the video encoding are the same.
VTM: the jfet organization develops new codec reference software.
Video coding standards partition a frame of pictures into non-overlapping Coding Tree Units (CTUs), which may be sized to 64 × 64 (the CTUs may be sized to other values, such as increasing the CTU size to 128 × 128 or 256 × 256). A 64 x 64 CTU comprises a rectangular pixel lattice of 64 columns of 64 pixels each comprising a luminance component or/and a chrominance component.
The method comprises the steps of using a CTU partitioning method based on a quad-tree (QT for short), using the CTU as a root node (root) of the quad-tree, and recursively partitioning the CTU into a plurality of leaf nodes (leaf nodes) according to a partitioning mode of the quad-tree. One node corresponds to one image area, if the node is not divided, the node is called a leaf node, and the image area corresponding to the node forms a CU; if the nodes are divided continuously, the image area corresponding to the nodes is divided into four areas (the length and the width of each area are half of the divided area) with the same size, each area corresponds to one node, and whether the nodes are divided or not needs to be determined respectively. Whether one node is divided is indicated by a division flag bit split _ cu _ flag corresponding to the node in the code stream. The quadtree level (qtDepth) of the root node is 0, and the quadtree level of the child node is the quadtree level +1 of the parent node. For the sake of brevity, the size and shape of a node hereinafter refers to the size and shape of the image area corresponding to the node.
More specifically, for a 64 × 64 CTU node (0 in the quadtree level), according to its corresponding split _ CU _ flag, it is selected to be divided into 1 64 × 64 CU without division, or to be divided into 4 32 × 32 nodes (1 in the quadtree level). Each of the four 32 × 32 nodes may select continuous partitioning or non-partitioning according to its corresponding split _ cu _ flag; if one 32 × 32 node continues to divide, four 16 × 16 nodes (quad tree level 2) result. And so on until all nodes are no longer partitioned, such that a CTU is partitioned into a set of CUs. The minimum size (size) of a CU is identified in SPS, e.g., 8 × 8 is the minimum CU. In the above recursive partitioning process, if the size of a node is equal to the minimum CU size (minimum CU size), the node defaults to no longer being partitioned, and does not need to include its partition flag bit in the bitstream.
When a leaf node is analyzed, the leaf node is a CU, the coding information (including information such as prediction mode and transform coefficient of the CU, for example, coding _ unit () syntax structure) corresponding to the CU is further analyzed, and the CU is subjected to decoding processing such as prediction, inverse quantization, inverse transform, loop filter, and the like according to the coding information, thereby generating a reconstructed image corresponding to the CU. The quadtree structure enables the CTU to be partitioned into a set of CUs of suitable size according to image local features, e.g. smooth regions partitioned into larger CUs and texture rich regions partitioned into smaller CUs.
A partitioning of a CTU into a set of CUs corresponds to a coding tree (coding tree). What coding tree the CTU should adopt is generally determined by a Rate Distortion Optimization (RDO) technique of an encoder. The encoder tries a plurality of CTU partitioning modes, and each partitioning mode corresponds to a rate distortion cost (RD cost); and the encoder compares the RD cost of various tried partition modes, finds the partition mode with the minimum RD cost, and uses the partition mode as the optimal partition mode of the CTU for the actual coding of the CTU. The various CTU partitioning schemes attempted by the encoder need to comply with the partitioning rules specified by the decoder, so that they can be correctly identified by the decoder.
The AVS3 adds a binary Tree (BT for short) division mode and an Extended Quad Tree (EQT for short) division mode on the basis of Quad Tree division.
Binary tree division divides a node into 2 sub-nodes, and the specific two-tree division modes include two types:
1) horizontally dividing into two parts: dividing the region corresponding to the node into an upper region and a lower region with the same size (namely, the width is unchanged, and the height is changed into half of the region before division), wherein each region corresponds to one node; as shown at block 702 in fig. 7.
2) Dividing vertically into two parts: dividing the region corresponding to the node into a left region and a right region with the same size (namely, the height is unchanged, and the width is half of the region before division); as shown in block 703 of fig. 7.
The expanded quad tree division divides a node into 4 sub-nodes, and the specific expanded quad tree division modes include two types:
1) dividing the region corresponding to the node into an upper region, a middle region and a lower region, wherein each region corresponds to one node, the heights of the upper region, the middle left region, the middle right region and the lower region are 1/4, 1/2, 1/2 and 1/4 of the node height respectively, and the middle left width, the middle right width and the middle left width are 1/2 and 1/2 of the node height respectively, as shown in block 704 in fig. 7;
2) and vertically dividing the region corresponding to the node into three regions, namely a left region, a middle region, an upper region, a middle region, a lower region and a right region, wherein each region corresponds to one node, the widths of the left region, the middle region and the right region are 1/4, 1/2, 1/2 and 1/4 of the height of the node respectively, and the widths of the middle region, the middle region and the lower region are 1/2 and 1/2 of the height of the node respectively, as shown in a block 705 in fig. 7.
AVS3 uses a partition mode of QT cascade BT/EQT, that is, the nodes on the first level coding tree can only be divided into child nodes by using QT, and the leaf nodes of the first level coding tree are the root nodes of the second level coding tree; the nodes on the second-level coding tree can be divided into sub-nodes by using one of BT or EQT dividing modes; leaf nodes of the second level coding tree are coding units. It should be noted that, when a leaf node is BT or EQT partition, its leaf node can only use BT or EQT partition, but cannot use QT partition.
The application provides a video coding and decoding method, aiming at providing a new block division mode to improve the flexibility of video coding and decoding.
Fig. 8 is a schematic flowchart of a block division method applied in video encoding and decoding according to an embodiment of the present disclosure.
801, obtaining a partitioning mode of a current node, where the partitioning mode is used to indicate how to partition the current node to obtain a first component block of the current node.
In other words, the partition mode of the current node is applied to the first component block of the current node as the partition mode of the first component block of the current node. For example, if the partition mode of the current node is the quadtree partition, the partition mode of the first component block of the current node is the quadtree partition.
Alternatively, the current node may be an executed unit of the codec, and may also be referred to as, for example, a current block or the like.
Wherein, the partition mode of the nodes comprises: various modes such as Quadtree (QT) partition, binary-tree (BT) partition, triple-tree (TT) partition, or Extended Quadtree (EQT) partition, in which nodes can be further divided, are available. This is not a limitation of the present application.
For convenience of description, the term "obtaining" is used herein to mean performing one or more actions by a device such as parsing, decoding, determining, generating, obtaining, and the like, and is not limited in this application.
802a, determining whether the first component block meets a preset condition corresponding to the partitioning mode, and if the preset condition is met, determining that the second component block of the current node is not partitioned or is not partitioned by the partitioning mode of the current node, where the size of the first component block is greater than that of the second component block.
Or 802b, determining whether the first component block meets a preset condition corresponding to the partition mode, and if not, partitioning a second component block of the current node by using the partition mode of the current node, wherein the size of the first component block is larger than that of the second component block.
Or 802c, determining whether the first component block meets a preset condition corresponding to the partitioning mode, and if the preset condition is met, only allowing the partitioning mode of the current node to partition the first component block of the current node, where the size of the first component block is greater than the size of the second component block.
In other words, the current node includes a first component block and a second component block, the size of the first component block is larger than that of the second component block, and when the first component block is judged to meet the preset condition according to the partition mode of the current node, it is determined that the second component block is not further partitioned, or it is determined that the second component block is partitioned by adopting other partition modes except the partition mode of the current node. And in case that the first component block does not satisfy the preset condition, the second component block is further divided according to the division mode.
The preset condition may be preset, for example, the preset condition may be predefined by the video encoder and the video decoder. The preset condition may be a display configuration, for example, the video encoder acquires the preset condition and sends the preset condition to the video decoder through a code stream; correspondingly, the video decoder acquires the preset condition from the code stream.
Similarly, the determining whether the first component block meets the preset condition corresponding to the partition mode may also be determining whether the current node meets the preset condition corresponding to the partition mode; whether the current block meets a preset condition corresponding to the division mode can be judged; whether the second component block meets a preset condition corresponding to the division mode or not can be judged; whether a first component sub-block obtained by dividing the first component block meets a preset condition corresponding to the division mode or not can also be judged. The present application takes an example of determining whether the first component block satisfies the preset condition corresponding to the partition mode, and similar other cases are not described herein again.
In one example, the partitioning mode of the current node is a horizontal binary tree partitioning, then the partitioning mode of the first component block is a horizontal binary tree partitioning; and judging that the first component block meets a preset condition 1 corresponding to the horizontal binary tree division, and then the second component block is not divided or is divided according to the vertical binary tree.
In one example, the partition mode of the current node is vertical binary tree partition, and then the partition mode of the first component block is vertical binary tree partition; and judging that the first component block meets the preset condition 2 corresponding to the vertical binary tree division, and then the second component block is not divided or is divided according to the horizontal binary tree.
In one example, the partition mode of the current node is a horizontal extended quadtree partition, then the partition mode of the first component block is a horizontal extended quadtree partition; and judging that the first component block meets a preset condition 3 corresponding to the horizontal expansion quad-tree division, and then the second component block is not divided or is divided according to the vertical expansion quad-tree.
In one example, the partition mode of the current node is vertical extended quadtree partition, then the partition mode of the first component block is vertical extended quadtree partition; and judging that the first component block meets a preset condition 4 corresponding to the vertical expansion quadtree division, and then the second component block is not divided or is divided according to the horizontal expansion quadtree.
In one example, the partition mode of the current node is a quadtree partition, then the partition mode of the first component block is a quadtree partition; and judging that the first component block meets a preset condition 5 corresponding to the quadtree division, and then the second component block is not divided.
Optionally, the size of the current node is the same as the size of the first component block.
Optionally, the determining whether the first component block meets a preset condition corresponding to the partition mode includes at least one of: under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value; under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold; under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold; under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value; under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
Specifically, "less than or equal to" means "less than," equal to, "and" less than or equal to "may be possible.
For example, the division mode corresponding to the preset condition 1 is a quadtree division, and the preset condition 1 is that the width of the first component block is less than or equal to 8, or the height of the first component block is less than or equal to 8, that is, the first preset threshold is 8 and the second preset threshold is 8. The width of the first component block of the current node is 16, and the height of the first component block of the current node is 8; the width of the second component block of the current node is 8, and the height of the second component block of the current node is 4; the partition mode of the current node is the quadtree partition, and then the current node meets the preset condition 1. The second component block of the current node may not be further partitioned or partitioned in a quadtree partitioning, such as a vertical binary tree partitioning. The first preset threshold includes, but is not limited to, 8, and may be, for example, an N-squared integer of 2, where N is a positive integer greater than 2.
For another example, the partition mode corresponding to the preset condition 2 is vertical binary tree partition, and the preset condition 2 is that the width of the first component block is less than or equal to 8, that is, the third preset threshold is 8. The width of the first component block of the current node is 8, the height of the first component block of the current node is 16, and the partitioning mode of the current node is vertical binary tree partitioning, so that the current node meets the preset condition 2. The second component block of the current node may not be further partitioned or partitioned in a vertical binary tree partition, such as a horizontal binary tree partition.
For another example, the partition mode corresponding to the preset condition 3 is horizontal binary tree partition, and the preset condition 3 is that the height of the first component block is less than or equal to 8, that is, the fourth preset threshold is 8. The width of the first component block of the current node is 16, and the height of the first component block of the current node is 8; the partition mode of the current node is horizontal binary tree partition, and then the current node meets the preset condition 3. The second component block of the current node may not be further partitioned or partitioned in a manner other than horizontal binary tree partitioning, such as vertical binary tree partitioning.
For another example, the division mode corresponding to the preset condition 4 is a horizontal extended quadtree division, and the preset condition 4 is that the width of the first component block is less than or equal to 8, or the height of the first component block is less than or equal to 16, that is, the fifth preset threshold is 8, and the sixth preset threshold is 16. The width of the first component block of the current node is 32 and the height is 16; the partition mode of the current node is horizontal extended quadtree partition, and then the current node meets the preset condition 4. The second component block of the current node may not be further divided, or may not be divided in a manner of horizontally extending the quadtree division, for example, in a manner of vertically extending the quadtree, a vertical binary tree, or the like.
For another example, the division mode corresponding to the preset condition 5 is vertical extended quadtree division, and the preset condition 5 is that the width of the first component block is less than or equal to 16, or the width of the first component block is less than or equal to 8, that is, the seventh preset threshold is 16, and the eighth preset threshold is 8. The width of the first component block of the current node is 16, and the height is 32; the partition mode of the current node is vertical extended quadtree partition, and then the current node meets the preset condition 5. The second component block of the current node may not be further divided, or may not be divided in the manner of vertically expanding the quadtree division, for example, in the manner of dividing the horizontal binary tree, the horizontal expanding quadtree, or the like.
Optionally, the first preset threshold is 8.
Optionally, the second preset threshold is 8.
Optionally, the third preset threshold is 8.
Optionally, the fourth preset threshold is 8.
Optionally, the fifth preset threshold is 8.
Optionally, the sixth preset threshold is 16.
Optionally, the seventh preset threshold is 16.
Optionally, the eighth preset threshold is 8.
Optionally, if the preset condition is met, the determining that the second component block of the current node is not divided by using the division mode of the current node includes: determining that the second component block of the current node is divided by a vertical binary tree under the condition that a preset condition corresponding to horizontal binary tree division is met and a preset condition corresponding to vertical binary tree division is not met; determining that the second component block of the current node is divided by a horizontal binary tree under the condition that a preset condition corresponding to vertical binary tree division is met and a preset condition corresponding to horizontal binary tree division is not met; determining that a second component block of the current node is divided by a horizontal binary tree, a vertical binary tree or a vertical extended quadtree under the condition that a preset condition corresponding to the horizontal extended quadtree division is met and a preset condition corresponding to the vertical extended quadtree division is not met; and under the condition that the preset condition corresponding to the vertical expansion quad-tree partition is met and the preset condition corresponding to the horizontal expansion quad-tree partition is not met, determining that the second component block of the current node is divided by a horizontal binary tree, a vertical binary tree or a horizontal expansion quad-tree.
Optionally, the first component block is a luminance component block of the current node, and the second component block is a first chrominance component block of the current node. In other words, the luma component block of the current node is continuously divided into a plurality of luma component sub-blocks according to the division mode, and the first chroma component block of the current node is not further divided or is continuously divided using other division modes. The current node may further include a second chroma component block; the second chroma component block of the current node may be divided into a plurality of second chroma component sub-blocks according to a division mode, may not be further divided, or may be continuously divided by adopting another division mode.
Alternatively, the video encoder performs the methods 801, 802 shown in fig. 8 during encoding, and the video decoder performs the methods 801, 802 shown in fig. 8 during decoding.
In the case where the resolution of the second component block is smaller than that of the first component block, the division cost of the second component block of a smaller size is higher than that of the first component block of a larger size. The second component block with smaller size is not continuously divided, or a dividing mode different from the first component block is adopted, so that the condition of high dividing cost can be avoided, and the flexibility of the block dividing mode is increased.
Fig. 9 is a schematic flowchart of a video codec according to an embodiment of the present disclosure.
And 901, the video encoder acquires a partition mode of a current node, wherein the partition mode is used for partitioning a first component block of the current node.
Optionally, the method further includes writing the partition mode of the current node into a code stream.
902a, the video encoder determines whether the first component block satisfies a preset condition corresponding to the partition mode, and if the preset condition is satisfied, determines that the second component block of the current node is not partitioned, wherein the size of the first component block is larger than that of the second component block.
Or, 902b, the video encoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if not, the video encoder partitions the second component block of the current node by using the partition mode of the current node, wherein the size of the first component block is greater than the size of the second component block.
Or, 902c, the video encoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if the preset condition is met, only the partition mode of the current node is allowed to partition the first component block of the current node, where the size of the first component block is greater than the size of the second component block. The detailed description of the methods 901, 902a, 902b, and 902c shown in fig. 9 refers to the description of the methods 801, 802a, 802b, and 802c shown in fig. 8, and accordingly, the methods 901, 902a, 902b, and 902c are not repeated in detail.
And 903, the video encoder divides the first component block into N first component sub-blocks according to the division mode, wherein N is a positive integer greater than or equal to 2.
In other words, the first component block is divided into a plurality of first component subblocks according to a division mode of a current node. Wherein the value of N depends on the division mode of the first component block.
Optionally, the partition mode for partitioning the first component block may include: the method comprises the following division modes of quadtree division, binary tree division, expanded quadtree division and the like.
For example, the width of the first component block 1 is W1, the height is H1, the way of dividing the first component block 1 is quad-tree division, then N is 4, the first component block 1 is divided into 4 first component sub-blocks with the same size, each first component sub-block has a width of W1/2 and a height of H1/2.
For another example, the width of the first component 2 is W2, the height of the first component 2 is H2, the way of dividing the first component block 2 is horizontal binary tree division, so N is 2, the first component block 2 is divided into 2 first component sub-blocks with the same size, each first component sub-block has a width of W2, and a height of H2/2.
For another example, the width of the first component block 3 is W3, the height of the first component block 3 is H3, the manner of dividing the first component block 3 is vertical binary tree division, so N is 2, the first component block 3 is divided into 2 first component sub-blocks with the same size, the width of each first component sub-block is W3/2, and the height of each first component sub-block is H3.
For another example, the width of the first component block 4 is W4, the height of the first component block 4 is H4, the manner of dividing the first component block 4 is horizontal extended quadtree division, then N is 4, the first component block 4 is divided into 4 first component sub-blocks with the same size located in the upper, middle, left, middle, right and lower regions, the widths of the 4 first component sub-blocks are W4, W4/2, W4/2 and W4, and the heights of the 4 first component sub-blocks are H4/4, H4/2, H4/2 and H4/4, respectively.
For another example, the width of the first component block 5 is W5, the height of the first component block 5 is H5, the manner of dividing the first component block 5 is vertical extended quadtree division, then N is 4, the first component block 5 is divided into 4 first component sub-blocks with the same size located in left, middle, upper, middle, lower and right regions, the widths of the 4 first component sub-blocks are W5/4, W5/2, W5/2 and W5/4, and the heights of the 4 first component sub-blocks are H5, H5/2, H5/2 and H5.
904, in response to a first determination that the first component block satisfies a preset condition corresponding to the partition mode, the video encoder generates encoding information of the N first component blocks and encoding information of the second component block.
In other words, the first component block is divided into a plurality of first component sub-blocks while the second component block is not further divided; in order to encode a plurality of first component sub-blocks and a second component block, the plurality of first component sub-blocks are encoded to generate encoded information of the plurality of first component sub-blocks, and the second component block is encoded to generate encoded information of the second component block.
For example, N first component sub-blocks correspond to N leaf nodes of the current node one-to-one, the second component block is not further divided, and the N first component sub-blocks and the second component block are encoded as an encoding unit to generate encoding information of the N first component sub-blocks and encoding information of the second component block.
The manner of generating the coding information of the N first component sub-blocks may refer to an existing coding process. For example, the encoding information of the first component sub-block is generated from the residual of the first component sub-block, information of pixel blocks around the first component sub-block, and the like. Similarly, the manner of generating the coding information of the second component block may refer to an existing coding process, for example, the coding information of the second component block may be generated from the residual of the second component block and information of pixel blocks around the second component block.
Optionally, the generating the coding information of the N first component sub-blocks and the coding information of the second component block may be writing the coding information of the N first component sub-blocks and the coding information of the second component block into a code stream.
The coding information includes information such as a prediction mode and a transform coefficient, and is used for a video decoder to perform decoding processing such as prediction, inverse quantization, inverse transform, and loop filtering based on the coding (decoding) information. Wherein the prediction mode information includes: intra-prediction mode or non-intra-prediction mode; the intra prediction mode may be one of a planar mode (planar mode), a direct mode (direct mode), and an angular mode (angular mode); the non-intra prediction mode may be a direct mode (direct mode), a skip mode (skip), an inter prediction mode, etc.; the coding information in the non-intra prediction mode may further include motion information such as a prediction direction (forward, backward, or bi-directional), a reference frame index (reference index), a motion vector (motion vector), and the like.
It should be understood that the encoded information generated by the video encoder is the same as the decoded information required for decoding by the video decoder, and for convenience of description, the information generated by the encoding process is referred to as encoded information and the information generated by the decoding process is referred to as decoded information.
Optionally, the method further includes writing the coding information of the N first component sub-blocks and the coding information of the second component block into the code stream.
Optionally, the encoding information of the second component block is generated according to the encoding information of N1 first component sub-blocks in the N first component sub-blocks, where N1 is a positive integer greater than or equal to 1.
In other words, the encoding information of the second component block is generated from the encoding information of the N1 first component sub-blocks of the N1 leaf nodes of the current node. That is, the encoding information of the second component block is generated according to the encoding information of at least one first component sub-block of the N first component sub-blocks. The coding information of the second component block corresponds to the coding information of the N1 first component sub-blocks.
For example, the encoded information of the N1 first component sub-blocks is copied to the encoded information of the second component block. For another example, the identification information of the N1 first component sub-blocks corresponding to the second component is written in the code stream. For another example, the prediction modes of the N1 first component sub-blocks are taken as the prediction modes of the second component block. For another example, whether the content of the coding information of the N1 first component sub-blocks meets a preset condition is judged, and if yes, the coding information of the second component block is input into the code stream; if the number of the component blocks is not equal to the preset number, the coding information of the N1 first component sub-blocks is used as the coding information of the second component block.
The same information of different component blocks is associated, so that the data volume written in the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
Optionally, according to the encoding information of the N1 first component sub-blocks, it is determined to write the encoding information of the second component block into the code stream or use the encoding information of the N1 first component sub-blocks as the encoding information of the second component block.
In other words, the encoding information of the N1 first component sub-blocks may indicate a position where the encoding information of the second component block is obtained, the position including the codestream, the encoding information of the N1 first component sub-blocks, and the like.
For example, when the information a is included in the coding information of the N1 first component sub-blocks, the coding information of the second component block is determined to be written into the code stream according to the coding information of the N1 first component sub-blocks; when the information a is not included in the encoded information of the N1 first component sub-blocks, the encoded information of the N1 first component sub-blocks is determined as the encoded information of the second component block according to the encoded information of the N1 first component sub-blocks, and for example, the information B in the encoded information of the N1 first component sub-blocks is determined as the encoded information of the second component block.
Optionally, the coding information of the second component block includes a prediction mode of the second component block; generating the coding information of the second component block according to the coding information of the N1 first component sub-blocks, including: obtaining a prediction mode of a target first component sub-block of the N1 first component sub-blocks as a prediction mode of the second component block, wherein the coding information of the target first component sub-block comprises the prediction mode of the target first component sub-block.
In other words, the prediction mode of the second component block is the same as the prediction mode of the target first component sub-block. The coding information of the prediction mode of the second component block does not need to be written into the code stream, and the video decoding end can directly obtain the coding information of the target first component sub-block.
For example, the prediction mode of the target first component sub-block is an intra prediction mode, then the prediction mode of the second component block is also an intra prediction mode.
Optionally, when the prediction mode of the target first component sub-block is a non-intra prediction mode, the prediction mode of the target first component sub-block is obtained as the prediction mode of the second component block.
That is, in the case where the prediction mode of the target first component sub-block is the intra prediction mode, the encoding information of the prediction mode of the second component block is written in the code stream; under the condition that the prediction mode of the target first component sub-block is a non-intra-frame prediction mode, the coding information of the prediction mode of the second component block does not need to be written into a code stream, and a video decoding end can directly obtain the coding information of the target first component sub-block.
For example, if the prediction mode of the target first component sub-block is an inter prediction mode, then the prediction mode of the second component block is also an inter prediction mode.
Optionally, in a case that the prediction mode of the second component block is a non-intra prediction mode, the encoding information of the second component block further includes motion information of the second component block, and the method further includes: generating motion information of the second component block according to the motion information of the target first component sub-block, wherein the encoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
In other words, when the prediction mode of the second component block is the non-intra prediction mode, the motion information of the target first component block is used as the motion information of the second component block. That is to say, the motion information of the second component sub-block does not need to be written into the code stream, and the video decoding end can directly obtain the motion information of the target first component sub-block.
For example, information such as a prediction direction (forward, backward, or bi-directional), a reference frame index (reference index), and a motion vector (motion vector) in the coding information of the target first component subblock is used as the motion information of the second component block.
Alternatively, the target first component sub-block may be any one of the N1 first component blocks.
That is, the video encoder may take one first component sub-block as the target first component sub-block.
Optionally, the video encoder may write the identification information of the target first sub-block into the code stream.
Optionally, before the generating the coding information of the second component block, the method further includes: and determining the target first component sub-block according to the target position information.
In other words, one first component sub-block is determined as a target first component sub-block in the range of the current node based on the target position information.
The target position information may be pre-configured, for example, the video encoder and the video decoder pre-agree that the first component sub-block where the bottom-right corner position in the current node is located is the target first component sub-block. At this time, the video encoder may not write the target position information of the first component sub-block into the code stream. The target position information may also be configured for display, for example, the video encoder writes the target position information into the code stream, and the video decoder determines the target first component sub-block according to the target position information in the code stream.
The target position information may be "identification information of a target first component sub-block" appearing above, may also be position information of absolute coordinates, relative coordinates, pixel values, and the like within a certain first component sub-block, and may also be a coding order, a scanning order, and the like. The form of the target location information may be arbitrary, and the present application is not limited to this.
Optionally, the coordinates of the target position information are (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
In other words, the central position of the current node or the first component sub-block where the central pixel point is located is taken as the target first component sub-block.
In one example, the partition mode of the current node is a quadtree partition, and then the first component sub-block located at the lower right corner is the target first component sub-block.
In one example, the partitioning mode of the current node is a horizontal binary tree partitioning, and then the first component sub-block located below is the target first component sub-block.
In one example, the partition mode of the current node is a vertical binary tree partition, and then the first component sub-block located on the right side is the target first component sub-block.
In one example, the partitioning mode of the current node is a horizontal extended quadtree partitioning, and then the first component sub-block located to the right of the middle portion is the target first component sub-block.
In one example, the partition mode of the current node is a vertically extended quadtree partition, and then the first component sub-block located below the middle is the target first component sub-block.
Optionally, before the generating the coding information of the second component block, the method further includes: and taking the first or last first component sub-block in the N first component sub-blocks as the target first component sub-block according to the coding order or the scanning order.
In other words, the video encoder takes the first component sub-block of the first encoding, first scan, last encoding, or last scan as the target first component sub-block. The video encoder and the video decoder may pre-agree that the target first component sub-block is one of the 4 first component sub-blocks of the first encoding, the first scanning, the last encoding or the last scanning, or agree that one of the 4 first component sub-blocks of the first encoding, the first scanning, the last encoding or the last scanning is the target first component sub-block with bit values of 0,1 or (0,0), (1,0), (0,1), (1,1), etc.
In one example, the partition mode of the current node is a quadtree partition, and then the first component subblock located at the top left corner is the first component subblock of the first encoding or first scanning; the first component sub-block located in the lower right corner is the first component sub-block of the last encoding or the last scan.
In one example, the partition mode of the current node is horizontal binary tree partition, then the first component sub-block located on the left is the first component sub-block of the first encoding or first scanning; the first component sub-block located on the right is the first component sub-block of the last encoding or the last scan.
In one example, the partition mode of the current node is vertical binary tree partition, then the first component sub-block located above is the first component sub-block of the first encoding or first scanning; the first component sub-block located below is the first component sub-block of the last encoding or the last scan.
In one example, the partition mode of the current node is a horizontal extended quadtree partition, and then, the first component sub-block located at the top is the first component sub-block of the first encoding or first scanning; the first component sub-block located lowermost is the first component sub-block of the last encoding or last scan.
In one example, the partition mode of the current node is a vertical extended quadtree partition, and then, the first component subblock located at the leftmost side is a first component subblock of a first encoding or a first scanning; the first component sub-block located at the rightmost side is the first component sub-block of the last encoding or last scan.
Optionally, the prediction mode of each of the N first component sub-blocks is an intra prediction mode or a non-intra prediction mode.
In other words, the prediction mode of one of the N first component sub-blocks is an intra prediction mode, and then the prediction modes of the N first component sub-blocks are all intra prediction modes; the prediction mode of one of the N first component sub-blocks is a non-intra prediction mode, and then the prediction modes in the N first component sub-blocks are all non-intra prediction modes.
For example, N is equal to 4, and the prediction modes of the N first component sub-blocks are planar mode (planar mode), direct current mode (direct current mode), angular mode (angular mode), and planar mode, respectively. For another example, N is equal to 4, and the prediction modes of the N first component sub-blocks are direct mode (direct mode), skip mode (skip), inter prediction mode (interprediction mode), and inter prediction mode (interprediction mode).
Optionally, the prediction mode of any first component sub-block in the N first component sub-blocks is used as the prediction mode of the other first component sub-blocks except for any first component sub-block in the N first component sub-blocks.
In other words, the prediction modes of the N first component sub-blocks are the same. For example, N is equal to 4, and the prediction modes of the N first component sub-blocks are all planar modes (planar modes). For another example, N is equal to 4, and the prediction modes of the N first component sub-blocks are all inter prediction modes.
905, the video encoder sends the coding information of the N first component sub-blocks and the coding information of the second component block to a video decoder. Correspondingly, the video decoder acquires the coding information of the N first component sub-blocks and the coding information of the second component sub-block.
And 906, the video decoder acquires a partition mode of the current node, wherein the partition mode is used for indicating how to partition the current node to obtain a first component block of the current node.
907a, the video decoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if the preset condition is met, determines that the second component block of the current node is not partitioned, wherein the size of the first component block is larger than that of the second component block.
Or 907b, the video decoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if the preset condition is not met, the partition mode of the current node is adopted to partition a second component block of the current node, wherein the size of the first component block is larger than that of the second component block.
Or 907c, the video decoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if the preset condition is met, only the partition mode of the current node is allowed to partition the first component block of the current node, wherein the size of the first component block is larger than that of the second component block.
Methods 907a, 907b, 907c are optional steps. The video decoder may determine that the second component is not partitioned based on information in the codestream.
The detailed description of the methods 906, 907a, 907b, and 907c shown in fig. 9 refers to the description of the methods 801, 802a, 802b, and 802c shown in fig. 8, and accordingly, the methods 906, 907a, 907b, and 907c are not described again in detail.
And 908, the video decoder divides the first component block into N first component sub-blocks according to the division mode, wherein N is a positive integer greater than or equal to 2.
In other words, the first component block is divided into a plurality of first component subblocks according to a division mode of a current node. Wherein the value of N depends on the division mode of the first component block.
The video decoder may obtain decoding information carrying a partition mode of the current node, and partition the first component block according to the decoding information. For example, decoding information of a current node is obtained from a code stream, a partition mode of the current node is obtained by analyzing syntax elements of the decoding information, and the first component block is divided into N first component sub-blocks.
Optionally, the partition mode for partitioning the first component block may include: and the division modes comprise quadtree division, binary tree division, expanded quadtree division and the like.
For example, the width of the first component block 1 is W1, the height is H1, the way of dividing the first component block 1 is quad-tree division, then N is 4, the first component block 1 is divided into 4 first component sub-blocks with the same size, each first component sub-block has a width of W1/2 and a height of H1/2.
For another example, the width of the first component 2 is W2, the height of the first component 2 is H2, the way of dividing the first component block 2 is horizontal binary tree division, so N is 2, the first component block 2 is divided into 2 first component sub-blocks with the same size, each first component sub-block has a width of W2, and a height of H2/2.
For another example, the width of the first component block 3 is W3, the height of the first component block 3 is H3, the manner of dividing the first component block 3 is vertical binary tree division, then N is 2, the first component block 3 is divided into 2 first component sub-blocks with the same size, the width of each first component sub-block is W3/2, and the height of each first component sub-block is H3.
For another example, the width of the first component block 4 is W4, the height of the first component block 4 is H4, the manner of dividing the first component block 4 is horizontal extended quadtree division, so N is 4, the first component block 4 is divided into 4 first component sub-blocks with the same size located in the upper, middle, left, middle, right, and lower regions, the widths of the 4 first component sub-blocks are W4, W4/2, W4/2, and W4, and the heights of the 4 first component sub-blocks are H4/4, H4/2, H4/2, and H4/4, respectively.
For another example, the width of the first component block 5 is W5, the height of the first component block 5 is H5, the manner of dividing the first component block 5 is vertical extended quadtree division, then N is 4, the first component block 5 is divided into 4 first component sub-blocks with the same size located in left, middle, upper, middle, lower and right regions, the widths of the 4 first component sub-blocks are W5/4, W5/2, W5/2 and W5/4, and the heights of the 4 first component sub-blocks are H5, H5/2, H5/2 and H5.
And 909, the video decoder acquires decoding information of N1 first component sub-blocks among the N first component sub-blocks and decoding information of the second component block, wherein N1 is a positive integer greater than or equal to 1.
In other words, the first component block is divided into a plurality of first component sub-blocks while the second component block is not further divided; in order to decode the plurality of first component sub-blocks and the second component block, decoding at least one first component sub-block in the plurality of first component sub-blocks to obtain decoding information of the at least one first component sub-block; and decoding the second component block to obtain the decoding information of the second component block.
For example, the N first component sub-blocks correspond to the N leaf nodes of the current node one to one, the second component block is not further divided, and the N first component sub-blocks and the second component block are used as decoding units to be decoded, so as to obtain decoding information of the N first component sub-blocks and decoding information of the second component block.
The decoding information includes information such as a prediction mode and a transform coefficient, and is used for a video decoder to perform decoding processing such as prediction, inverse quantization, inverse transform, and loop filtering based on the coding (decoding) information. Wherein the prediction mode information includes: intra-prediction mode or non-intra-prediction mode; the intra prediction mode may be one of a planar mode (planar mode), a direct current mode (direct current mode), and an angular mode (angular mode); the non-intra prediction mode may be a direct mode (direct mode), a skip mode (skip), an inter prediction mode, etc.; the decoding information in the non-intra prediction mode may further include motion information, such as prediction direction (forward, backward, or bi-directional), reference frame index (reference index), motion vector (motion vector), and the like.
Optionally, the decoding information of the N first component sub-blocks and the decoding information of the second component block are obtained from the code stream.
Optionally, the method further includes: and acquiring the decoding information of the second component block according to the decoding information of the N1 first component sub-blocks.
In other words, decoding information of the second component block is acquired according to decoding information of the N1 first component sub-blocks of the N1 leaf nodes of the current node. That is, the decoding information of the second component block is acquired according to the decoding information of at least one first component sub-block of the N first component sub-blocks. The decoding information of the second component block corresponds to the decoding information of the N1 first component sub-blocks.
For example, the decoding information of the N1 first component sub-blocks is copied to the decoding information of the second component block. For another example, the identification information of the N1 first component sub-blocks corresponding to the second component is written in the code stream. For another example, the prediction modes of the N1 first component sub-blocks are taken as the prediction modes of the second component block. For another example, whether the content of the decoding information of the N1 first component sub-blocks meets a preset condition is judged, and if yes, the decoding information of the second component block is acquired from the code stream; if not, the decoding information of the N1 first component sub-blocks is used as the decoding information of the second component block.
The same information of different decoding units is associated, so that the data volume obtained from the code stream can be reduced, the transmission data volume is reduced, and the transmission efficiency and the coding and decoding efficiency are improved.
Optionally, according to the decoding information of the N1 first component sub-blocks, it is determined to obtain the decoding information of the second component block from the code stream or use the decoding information of the N1 first component sub-blocks as the decoding information of the second component block.
In other words, the decoding information of the N1 first component sub-blocks may indicate a position where the decoding information of the second component block is acquired, the position including the codestream, the decoding information of the N1 first component sub-blocks, and the like.
For example, when the decoding information of the N1 first component sub-blocks includes information a, determining to acquire the decoding information of the second component block from the code stream according to the decoding information of the N1 first component sub-blocks; in a case where the information a is not included in the decoding information of the N1 first component sub-blocks, it is determined that the decoding information of the N1 first component sub-blocks is used as the decoding information of the second component block, such as the information B in the decoding information of the N1 first component sub-blocks is used as the decoding information of the second component block, according to the decoding information of the N1 first component sub-blocks.
Optionally, the decoding information of the second component block includes a prediction mode of the second component block; the obtaining, according to the decoding information of the N1 first component sub-blocks, the decoding information of the second component block includes: obtaining a prediction mode of the second component block according to a prediction mode of a target first component sub-block of the N1 first component sub-blocks, wherein decoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
In other words, the prediction mode of the second component block is acquired according to the prediction mode of the target first component sub-block. That is, the prediction mode of the second component block corresponds to the prediction mode of the target first component block.
For example, the prediction modes of the N1 first component sub-blocks are copied to the prediction mode of the second component block. For another example, the identification information of the N1 first component sub-blocks corresponding to the second component is written in the code stream. For another example, the prediction modes of the N1 first component sub-blocks are taken as the prediction modes of the second component block. For another example, whether the prediction modes of the N1 first component subblocks meet a preset condition is judged, and if so, the prediction mode of the second component block is obtained from the code stream; if not, the prediction modes of the N1 first component sub-blocks are taken as the prediction modes of the second component block.
Optionally, the obtaining the prediction mode of the second component block includes: acquiring a prediction mode of the second component block from a code stream; or acquiring the prediction mode of the target first component sub-block as the prediction mode of the second component block.
In other words, it may be determined whether to acquire the prediction mode of the second component block from the code stream according to the prediction mode of the target first component block, or the prediction mode of the second component block may be the same as the prediction mode of the target first component sub-block.
For example, the prediction mode of the target first component sub-block is an intra prediction mode, then the prediction mode of the second component block is also an intra prediction mode. That is, the video decoder can determine the prediction mode that does not need to be parsed according to a first sub-subblock prediction mode, thereby reducing the complexity of parsing.
For another example, the prediction mode of the target first component sub-block is a non-intra prediction mode, and then the prediction mode of the second component block is also a non-intra prediction mode. That is, the video decoder can determine the prediction mode that does not need to be parsed according to a first sub-subblock prediction mode, thereby reducing the complexity of parsing.
For another example, in the case that the prediction mode of the target first component sub-block is the intra-frame prediction mode, the prediction mode of the second component block obtained from the code stream is determined.
For another example, in the case that the prediction mode of the target first component sub-block is a non-intra prediction mode, the prediction mode of acquiring the second component block from the code stream is determined.
Optionally, in a case that the prediction mode of the second component block is a non-intra prediction mode, the decoding information of the second component block further includes motion information of the second component block, and the method further includes: and acquiring the motion information of the second component block according to the motion information of the target first component sub-block, wherein the decoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
In other words, when the prediction mode of the second component block is the non-intra prediction mode, the motion information of the target first component block is used as the motion information of the second component block. That is, the motion information of the second component sub-block does not need to be acquired from the code stream, and can be directly acquired from the motion information of the target first component sub-block.
For example, information such as a prediction direction (forward, backward, or bi-directional), a reference frame index (reference index), and a motion vector (motion vector) in the decoding information of the target first component subblock is used as the motion information of the second component block.
Alternatively, the target first component sub-block may be any one of the N1 first component blocks.
That is, the target first component sub-block may not be a fixed first component sub-block of some type.
Optionally, the video decoder may obtain the identification information of the target first sub-block from the code stream.
Optionally, before the obtaining the decoding information of the second component block, the method further includes: and determining the target first component sub-block according to the target position information.
In other words, within the range of the current node, one first component sub-block is determined as the target first component sub-block according to the target position information.
The target position information may be pre-configured, for example, the video encoder and the video decoder pre-agree that the first component sub-block where the bottom-right corner position in the current node is located is the target first component sub-block. At this time, the video encoder may not write the target position information of the first component sub-block into the code stream. The target position information may also be configured for display, for example, the video encoder writes the target position information into the code stream, and the video decoder determines the target first component sub-block according to the target position information in the code stream.
The target position information may be "identification information of a target first component sub-block" appearing above, may also be position information in a certain first component sub-block such as absolute coordinates, relative coordinates, pixel values, and the like, and may also be a decoding order, a scanning order, and the like. The form of the target location information may be arbitrary, and the present application is not limited thereto.
Optionally, the coordinates of the target position information are (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
In other words, the central position of the current node or the first component sub-block where the central pixel point is located is taken as the target first component sub-block.
In one example, the partition mode of the current node is a quadtree partition, then the first component sub-block located at the bottom right corner is the target first component sub-block.
In one example, the partitioning mode of the current node is a horizontal binary tree partitioning, and then the first component sub-block located below is the target first component sub-block.
In one example, the partition mode of the current node is a vertical binary tree partition, and then the first component sub-block located on the right side is the target first component sub-block.
In one example, the partitioning mode of the current node is a horizontal extended quadtree partitioning, and then the first component sub-block located to the right of the middle portion is the target first component sub-block.
In one example, the partition mode of the current node is a vertically extended quadtree partition, and then the first component sub-block located below the middle is the target first component sub-block.
Optionally, before the obtaining the decoding information of the second component block, the method further includes: and taking the first or last first component sub-block in the N first component sub-blocks as the target first component sub-block according to a decoding order or a scanning order.
In other words, the video encoder takes the first decoded, first scanned, last decoded, or last scanned first component sub-block as the target first component sub-block. The video encoder and the video decoder may pre-agree that the target first component sub-block is one of the 4 first component sub-blocks of the first decoding, the first scanning, the last decoding, or the last scanning, or agree that one of the 4 first component sub-blocks of the first decoding, the first scanning, the last decoding, or the last scanning is the target first component sub-block in the form of bit values of 0,1 or (0,0), (1,0), (0,1), (1,1), etc.
In one example, the partition mode of the current node is a quadtree partition, then the first component subblock located at the top left corner is the first decoded or first scanned component subblock; the first component sub-block located at the bottom right corner is the first component sub-block of the last decoding or the last scan.
In one example, the partition mode of the current node is horizontal binary tree partition, then the first component sub-block located on the left is the first decoded or first scanned first component sub-block; the first component sub-block located on the right is the first component sub-block of the last decoding or the last scan.
In one example, the partition mode of the current node is vertical binary tree partition, then the first component sub-block located above is the first decoded or first scanned component sub-block; the first component sub-block located below is the first component sub-block of the last decoding or the last scan.
In one example, the partition mode of the current node is a horizontal extended quadtree partition, and then, the first component sub-block located at the top is the first component sub-block of the first decoding or first scanning; the first component sub-block located at the lowermost position is the first component sub-block of the last decoding or last scan.
In one example, the partition mode of the current node is a vertical extended quadtree partition, and then, the first component subblock located at the leftmost side is a first decoded or first scanned first component subblock; the first component sub-block located at the rightmost side is the first component sub-block of the last decoding or the last scan.
Optionally, the prediction mode of each of the N first component sub-blocks is an intra prediction mode or a non-intra prediction mode.
In other words, the prediction mode of one of the N first component sub-blocks is an intra prediction mode, and then the prediction modes of the N first component sub-blocks are all intra prediction modes; the prediction mode of one of the N first component sub-blocks is a non-intra prediction mode, and then the prediction modes in the N first component sub-blocks are all non-intra prediction modes.
For example, N is equal to 4, and the prediction modes of the N first component sub-blocks are planar mode (planar mode), direct current mode (direct current mode), angular mode (angular mode), and planar mode, respectively. For another example, N is equal to 4, and the prediction modes of the N first component sub-blocks are direct mode (direct mode), skip mode (skip), inter prediction mode (interprediction mode), and inter prediction mode (interprediction mode).
Optionally, the prediction mode of any first component sub-block in the N first component sub-blocks is used as the prediction mode of the other first component sub-blocks except for any first component sub-block in the N first component sub-blocks.
In other words, the prediction modes of the N first component sub-blocks are the same. For example, N is equal to 4, and the prediction modes of the N first component sub-blocks are all planar modes (planar modes). For another example, N is equal to 4, and the prediction modes of the N first component sub-blocks are all inter prediction modes.
And 910, the video decoder acquires the reconstructed blocks of the N1 first component sub-blocks and the second component block according to the decoding information of the N1 first component sub-blocks and the decoding information of the second component block.
The video decoder acquires reconstructed blocks of the N1 first component sub-blocks according to the decoding information of the N1 first component sub-blocks; and the video decoder acquires the reconstruction block of the second component block according to the decoding information of the second component block.
Fig. 10 is a schematic flowchart of a video codec according to an embodiment of the present disclosure.
1001, a video encoder obtains a partitioning mode of a current node, where the partitioning mode is used to indicate how to partition the current node to obtain a first component block of the current node.
Optionally, the method further includes writing the partition mode of the current node into a code stream.
And 1002, judging whether the first component block meets a preset condition corresponding to the division mode by a video encoder, and if so, determining that the second component block of the current node is not divided by the division mode of the current node, wherein the size of the first component block is larger than that of the second component block.
The detailed description of the methods 1001 and 1002 shown in fig. 10 refers to the description of the methods 801 and 802 shown in fig. 8, and accordingly, the methods 1001 and 1002 are not repeated in detail.
1003, the video encoder divides the first component block into N first component sub-blocks according to the division mode, where N is a positive integer greater than or equal to 2.
In other words, the first component block is divided into a plurality of first component subblocks according to a division mode of a current node. Wherein the value of N depends on the division mode of the first component block.
Optionally, the partition mode for partitioning the first component block may include: the method comprises the following division modes of quadtree division, binary tree division, expanded quadtree division and the like.
For example, the width of the first component block 1 is W1, the height is H1, the way of dividing the first component block 1 is quad-tree division, then N is 4, the first component block 1 is divided into 4 first component sub-blocks with the same size, each first component sub-block has a width of W1/2 and a height of H1/2.
For another example, the width of the first component 2 is W2, the height of the first component 2 is H2, the way of dividing the first component block 2 is horizontal binary tree division, so N is 2, the first component block 2 is divided into 2 first component sub-blocks with the same size, each first component sub-block has a width of W2, and a height of H2/2.
For another example, the width of the first component block 3 is W3, the height of the first component block 3 is H3, the manner of dividing the first component block 3 is vertical binary tree division, so N is 2, the first component block 3 is divided into 2 first component sub-blocks with the same size, the width of each first component sub-block is W3/2, and the height of each first component sub-block is H3.
For another example, the width of the first component block 4 is W4, the height of the first component block 4 is H4, the manner of dividing the first component block 4 is horizontal extended quadtree division, so N is 4, the first component block 4 is divided into 4 first component sub-blocks with the same size located in the upper, middle, left, middle, right, and lower regions, the widths of the 4 first component sub-blocks are W4, W4/2, W4/2, and W4, and the heights of the 4 first component sub-blocks are H4/4, H4/2, H4/2, and H4/4, respectively.
For another example, the width of the first component block 5 is W5, the height of the first component block is H5, the manner of dividing the first component block 5 is vertical extended quadtree division, then N is 4, the first component block 5 is divided into 4 first component sub-blocks of the same size located in the left, middle, upper, middle, lower and right regions, the width of the 4 first component sub-blocks is W5/4, W5/2, W5/2, W5/4, and the height of the 4 first component sub-blocks is H5, H5/2, H5/2, H5.
1004, the video encoder divides the second component block into M second component sub-blocks, M being a positive integer greater than or equal to 2.
In other words, the first component block is divided in a different manner from the second component block.
For example, in the case where the division manner of the first component block is the quad tree division, the division manner of the second component block is the horizontal binary tree division or the vertical binary tree division.
And 1005, the video encoder acquires the coding information of the N first component sub-blocks and the coding information of the M second component sub-blocks.
In other words, the first component block is divided into a plurality of first component sub-blocks and the second component block is divided into a plurality of second component sub-blocks; in order to encode a plurality of first component sub-blocks and a plurality of second component sub-blocks, the plurality of first component sub-blocks are encoded to obtain encoding information of the plurality of first component sub-blocks, and the plurality of second component sub-blocks are encoded to obtain encoding information of the plurality of second component sub-blocks.
For example, N first component sub-blocks and M second component sub-blocks are encoded as encoding units, and encoding information of the N first component sub-blocks and encoding information of the M second component sub-blocks are acquired.
The manner of obtaining the coding information of the N first component sub-blocks may refer to an existing coding process. For example, the encoding information of the first component sub-block is acquired from the residual of the first component sub-block, information of pixel blocks around the first component sub-block, and the like. Similarly, the manner of obtaining the coding information of the M second component sub-blocks may refer to an existing coding process, for example, obtaining the coding information of the second component sub-blocks may obtain the coding information of the second component sub-blocks according to the residual of the second component sub-blocks and the information of the pixel blocks around the second component sub-blocks.
And 1006, the video encoder sends the coding information of the N first component sub-blocks and the coding information of the M second component sub-blocks to a video decoder. Accordingly, the video decoder receives decoding information of the N first component sub-blocks and decoding information of the M second component sub-blocks.
1007, the video decoder acquires a partition mode of a current node, the partition mode being used to partition a first component block of the current node.
And 1008, the video decoder determines whether the first component block meets a preset condition corresponding to the partition mode, and if the preset condition is met, determines that the second component block of the current node is not partitioned by the partition mode of the current node, wherein the size of the first component block is larger than that of the second component block.
Method 1008 is an optional step. The video decoder may determine that the second component is not partitioned using the partitioning mode of the current node according to information in the code stream.
The detailed description of the methods 1007 and 1008 shown in fig. 10 refers to the description of the methods 801 and 802 shown in fig. 8, and accordingly, the methods 1007 and 1008 are not repeated in detail.
1009, the video decoder divides the first component block into N first component sub-blocks according to the division mode, where N is a positive integer greater than or equal to 2.
In other words, the first component block is divided into a plurality of first component sub-blocks according to the division mode of the current node. Wherein the value of N depends on the division mode of the first component block.
The video decoder may obtain decoding information carrying a partition mode of the current node, and partition the first component block according to the decoding information. For example, decoding information of a current node is obtained from a code stream, a partition mode of the current node is obtained by parsing syntax elements of the decoding information, and the first component block is divided into N first component sub-blocks.
Optionally, the partition mode for partitioning the first component block may include: the method comprises the following division modes of quadtree division, binary tree division, expanded quadtree division and the like.
For example, the width of the first component block 1 is W1, the height is H1, the way of dividing the first component block 1 is quad-tree division, then N is 4, the first component block 1 is divided into 4 first component sub-blocks with the same size, each first component sub-block has a width of W1/2 and a height of H1/2.
For another example, the width of the first component 2 is W2, the height of the first component 2 is H2, the way of dividing the first component block 2 is horizontal binary tree division, so N is 2, the first component block 2 is divided into 2 first component sub-blocks with the same size, each first component sub-block has a width of W2, and a height of H2/2.
For another example, the width of the first component block 3 is W3, the height of the first component block 3 is H3, the manner of dividing the first component block 3 is vertical binary tree division, so N is 2, the first component block 3 is divided into 2 first component sub-blocks with the same size, the width of each first component sub-block is W3/2, and the height of each first component sub-block is H3.
For another example, the width of the first component block 4 is W4, the height of the first component block 4 is H4, the manner of dividing the first component block 4 is horizontal extended quadtree division, so N is 4, the first component block 4 is divided into 4 first component sub-blocks with the same size located in the upper, middle, left, middle, right, and lower regions, the widths of the 4 first component sub-blocks are W4, W4/2, W4/2, and W4, and the heights of the 4 first component sub-blocks are H4/4, H4/2, H4/2, and H4/4, respectively.
For another example, the width of the first component block 5 is W5, the height of the first component block is H5, the manner of dividing the first component block 5 is vertical extended quadtree division, then N is 4, the first component block 5 is divided into 4 first component sub-blocks of the same size located in the left, middle, upper, middle, lower and right regions, the width of the 4 first component sub-blocks is W5/4, W5/2, W5/2, W5/4, and the height of the 4 first component sub-blocks is H5, H5/2, H5/2, H5.
1010, the video decoder divides the second component block into M second component sub-blocks, M being a positive integer greater than or equal to 2.
In other words, the first component block is divided in a different manner from the second component block.
For example, in the case where the division manner of the first component block is the quad tree division, the division manner of the second component block is the horizontal binary tree division or the vertical binary tree division.
1011, the video decoder obtains decoding information of N2 first component sub-blocks of the N first component sub-blocks and decoding information of at least one second component sub-block of the M second component sub-blocks, N2 being a positive integer greater than or equal to 1.
In other words, the first component block is divided into a plurality of first component sub-blocks and the second component block is divided into a plurality of second component sub-blocks; in order to decode the plurality of first component sub-blocks and the plurality of second component sub-blocks, decoding information of the plurality of first component sub-blocks and decoding information of the plurality of second component sub-blocks are acquired.
For example, the N first component sub-blocks and the M second component sub-blocks are decoded as a decoding unit to obtain decoding information of the N first component sub-blocks and decoding information of the M second component sub-blocks.
1012, the video decoder obtains reconstructed blocks of the N2 first component sub-blocks and the at least one second component sub-block according to the decoding information of the N2 first component sub-blocks and the decoding information of the at least one second component sub-block.
The video decoder acquires reconstructed blocks of the N2 first component sub-blocks according to the decoding information of the N2 first component sub-blocks; the video decoder acquires a reconstructed block of at least one second component sub-block of the M second component sub-blocks according to the decoding information of the at least one second component sub-block.
The block division method applied to video decoding, the block division method applied to video encoding, the video decoding method and the video encoding method of the embodiments of the present application are described in detail above with reference to the accompanying drawings, and the video decoder and the video encoder of the embodiments of the present application are described below with reference to fig. 11, 12, 13 and 14, respectively, it should be understood that, the video decoder shown in figure 11 is capable of performing the steps of the block partitioning method applied to video decoding of the embodiments of the present application, the video encoder shown in figure 12 is capable of performing the steps of the block division method applied in video encoding of the embodiments of the present application, the video decoder shown in figure 13 is capable of performing the various steps in the video decoding method of the embodiments of the present application, the video encoder shown in fig. 14 is capable of performing the steps in the video encoding method of the embodiments of the present application. In order to avoid unnecessary repetition, the following description will appropriately omit repeated description when introducing the video encoder and the video decoder of the embodiments of the present application.
Fig. 11 is a schematic block diagram of a video decoder of an embodiment of the present application. The video decoder 1100 shown in fig. 11 includes:
an image decoding unit 1101, configured to obtain a partition mode of a current node, where the partition mode is used to indicate how to partition the current node to obtain a first component block of the current node;
a dividing unit 1102, configured to determine whether the first component block meets a preset condition corresponding to the division mode, and if the preset condition is met, determine that the second component block of the current node is not divided or is not divided by using the division mode of the current node, where a size of the first component block is greater than a size of the second component block.
The above-described image decoding unit 1101 may be composed of one or more units of an entropy decoding unit, a prediction unit, an inverse transform unit, and an inverse quantization unit. For example, the above-described image decoding unit 1101 may be composed of a prediction processing unit, an inverse quantization unit, and an inverse transform processing unit and an entropy decoding unit in the decoder 30 in fig. 3.
Fig. 12 is a schematic block diagram of a video encoder of an embodiment of the present application. The video encoder 1200 shown in fig. 12 includes:
an image encoding unit 1201, configured to obtain a partition mode of a current node, where the partition mode is used to partition a first component block of the current node;
A dividing unit 1202, configured to determine whether the first component block meets a preset condition corresponding to the division mode, and if the preset condition is met, determine that the second component block of the current node is not divided or is not divided by using the division mode of the current node, where a size of the first component block is greater than a size of the second component block.
The above-described image encoding unit 1201 may be composed of one or more units of a prediction unit, a transform unit, a quantization unit, and an entropy encoding unit. For example, the above-described image encoding unit 1201 may be composed of a prediction processing unit, a transform processing unit, a quantization unit, and an entropy encoding unit in the encoder 12 in fig. 2.
Fig. 13 is a schematic block diagram of a video decoder of an embodiment of the present application. The video decoder 1300 shown in fig. 13 includes:
an image decoding unit 1301, configured to obtain a partition mode of a current node, where the partition mode is used to partition a first component block of the current node;
a dividing unit 1302, configured to determine whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, determine that a second component block of the current node is not divided or is not divided by using the dividing mode of the current node, where a size of the first component block is greater than a size of the second component block;
The dividing unit 1302 is further configured to divide the first component block into N first component sub-blocks according to the dividing mode, where N is a positive integer greater than or equal to 2;
in the case that the second component block is not divided, the image decoding unit 1301 is further configured to obtain decoding information of N1 first component sub-blocks of the N first component sub-blocks and decoding information of the second component block, where N1 is a positive integer greater than or equal to 1; the image decoding unit 1301 is further configured to obtain reconstructed blocks of the N1 first component sub-blocks and the second component block according to the decoding information of the N1 first component sub-blocks and the decoding information of the second component block;
in a case that the second component block is not divided by using the dividing mode of the current node, the dividing unit 1302 is further configured to divide the second component block into M second component sub-blocks, where M is a positive integer greater than or equal to 2; the image decoding unit 1301 is further configured to obtain decoding information of N2 first component sub-blocks of the N first component sub-blocks and decoding information of at least one second component sub-block of the M second component sub-blocks, where N2 is a positive integer greater than or equal to 1; the image decoding unit 1301 is further configured to obtain reconstructed blocks of the N2 first component sub-blocks and the at least one second component sub-block according to the decoding information of the N2 first component sub-blocks and the decoding information of the at least one second component sub-block.
The image decoding unit 1301 described above may be composed of one or more units of an entropy decoding unit, a prediction unit, an inverse transform unit, and an inverse quantization unit. For example, the above-described image decoding unit 1301 may be composed of a prediction processing unit, an inverse quantization unit, and an inverse transform processing unit and an entropy decoding unit in the decoder 30 in fig. 3.
Fig. 14 is a schematic block diagram of a video encoder of an embodiment of the present application. The video encoder 1400 shown in fig. 14 includes:
an image encoding unit 1401 configured to acquire a partition mode of a current node, where the partition mode is used to partition a first component block of the current node;
a dividing unit 1402, configured to determine whether the first component block meets a preset condition corresponding to the dividing mode, and if the preset condition is met, determine that a second component block of the current node is not divided or is not divided by using the dividing mode of the current node, where a size of the first component block is greater than a size of the second component block;
the dividing unit 1402 is further configured to divide the first component block into N first component sub-blocks according to the dividing mode, where N is a positive integer greater than or equal to 2;
in the case where the second component block is not divided, the image encoding unit 1401 is further configured to acquire encoding information of the N first component blocks and encoding information of the second component block;
In a case that the second component block is not divided by using the dividing mode of the current node, the dividing unit 1402 is further configured to divide the second component block into M second component sub-blocks, where M is a positive integer greater than or equal to 2; the image encoding unit 1401 is further configured to obtain encoding information of the N first component sub-blocks and encoding information of the M second component sub-blocks.
The image encoding unit 1401 described above may be composed of one or more units of a prediction unit, a transform unit, a quantization unit, and an entropy encoding unit. For example, the above-described image encoding unit 1401 may be composed of a prediction processing unit, a transform processing unit, a quantization unit, and an entropy encoding unit in the encoder 12 in fig. 2.
In one or more examples, the functions described may be implemented in hardware, software, firmware, or any combination thereof. If implemented in software, the functions may be stored on or transmitted over as one or more instructions or code on a computer-readable medium and executed by a hardware-based processing unit. Computer readable media may comprise computer readable storage media corresponding to tangible media, such as data storage media or communication media, including any medium that facilitates transfer of a computer program from one place to another, such as according to a communication protocol. In this manner, the computer-readable medium may generally correspond to (1) a non-transitory tangible computer-readable storage medium, or (2) a communication medium, e.g., a signal or carrier wave. A data storage medium may be any available medium that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementing the techniques described in this disclosure. The computer program product may include a computer-readable medium.
By way of example, and not limitation, such computer-readable storage media can comprise RAM, ROM, EEPROM, CD-ROM or other optical disk storage, magnetic disk storage or other magnetic storage devices, flash memory, or any other medium that can be used to store desired program code in the form of instructions or data structures and that can be accessed by a computer. Also, any connection is properly termed a computer-readable medium. For example, if instructions are transmitted from a website, server, or other remote source using a coaxial cable, fiber optic cable, twisted pair, Digital Subscriber Line (DSL), or wireless technologies such as infrared, radio, and microwave, then the coaxial cable, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of medium. It should be understood, however, that the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other transitory media, but are instead directed to non-transitory tangible storage media. Disk and disc, as used herein, includes Compact Disc (CD), laser disc, optical disc, Digital Versatile Disc (DVD), floppy disk and blu-ray disc where disks usually reproduce data magnetically, while discs reproduce data optically with lasers. Combinations of the above should also be included within the scope of computer-readable media.
The instructions may be executed by one or more processors, such as one or more Digital Signal Processors (DSPs), general purpose microprocessors, Application Specific Integrated Circuits (ASICs), field programmable logic arrays (FPGAs), or other equivalent integrated or discrete logic circuitry. Accordingly, the term "processor," as used herein may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein. In addition, in some aspects, the functionality described herein may be provided within dedicated hardware and/or software modules for encoding and decoding, or incorporated in a composite codec. Also, the techniques may be fully implemented in one or more circuits or logic elements.
The techniques of this application may be implemented in a variety of devices or apparatuses including a wireless handset, an Integrated Circuit (IC), or a collection of ICs (e.g., a chipset). This application describes various components, modules, or units to emphasize functional aspects of apparatus for performing the disclosed techniques, but does not necessarily require realization by different hardware units. Specifically, as described above, the various units may be combined in a codec hardware unit, or provided by a collection of interoperative hardware units, including one or more processors as described above, in conjunction with suitable software and/or firmware.
Claims (76)
1. A block partitioning method applied to video decoding, comprising:
acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node;
and judging whether the first component block meets a preset condition corresponding to the division mode or not according to the width and/or the height of the first component block, if not, adopting the division mode of the current node to divide the second component block of the current node, wherein the size of the first component block is larger than that of the second component block.
2. The method according to claim 1, wherein the determining whether the first component block satisfies a preset condition corresponding to the partition mode comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
And under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
3. The method according to claim 1 or 2,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
4. A block partitioning method applied in video decoding, comprising:
Acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node;
and judging whether the first component block meets a preset condition corresponding to the division mode or not according to the width and/or height of the first component block, and if so, determining that the second component block of the current node is not divided or is not divided by adopting the division mode of the current node, wherein the size of the first component block is larger than that of the second component block.
5. The method according to claim 4, wherein the determining whether the first component block satisfies a preset condition corresponding to the partition mode comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
And under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
6. The method according to claim 4 or 5,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
7. A method of decoding, comprising:
Acquiring a partitioning mode of a current node;
dividing a first component block of the current node into N first component sub-blocks according to the division mode of the current node, wherein N is a positive integer greater than or equal to 2;
according to the width and/or height of the first component blocks, in response to a first judgment result that the first component blocks meet preset conditions corresponding to the dividing modes, acquiring reconstructed blocks of the N1 first component blocks and the second component blocks according to decoding information of the N1 first component blocks in the N first component sub-blocks and decoding information of the second component block of the current node, wherein N1 is a positive integer greater than or equal to 1; or,
according to the width and/or height of the first component block, in response to a first judgment result that the first component block meets a preset condition corresponding to the division mode, dividing the second component block of the current node into M second component sub-blocks by adopting a division mode different from the division mode of the current node, wherein M is a positive integer greater than or equal to 2;
and acquiring reconstructed blocks of the N2 first component sub-blocks and at least one second component sub-block according to decoding information of the N2 first component sub-blocks in the N first component sub-blocks and decoding information of at least one second component sub-block in the M second component sub-blocks, wherein N2 is a positive integer greater than or equal to 1.
8. The method of claim 7, wherein the first component block satisfies a preset condition corresponding to the partition mode, and comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
9. The method according to claim 7 or 8, wherein the decoding information of the second component block comprises a prediction mode of the second component block; the method further comprises the following steps:
and acquiring the prediction mode of the second component block from the code stream.
10. The method according to claim 7 or 8, characterized in that the method further comprises:
and acquiring the decoding information of the second component block according to the decoding information of the N1 first component sub-blocks.
11. The method of claim 10, wherein the decoding information of the second component block comprises a prediction mode of the second component block;
the obtaining, according to the decoding information of the N1 first component sub-blocks, the decoding information of the second component block includes:
obtaining a prediction mode of the second component block according to a prediction mode of a target first component sub-block of the N1 first component sub-blocks, wherein decoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
12. The method of claim 11, wherein obtaining the prediction mode of the second component block comprises:
acquiring a prediction mode of the second component block from a code stream; or,
And acquiring the prediction mode of the target first component sub-block as the prediction mode of the second component block.
13. The method according to claim 11 or 12, wherein in case that the prediction mode of the second component block is a non-intra prediction mode, the decoding information of the second component block further comprises motion information of the second component block, the method further comprising:
and acquiring the motion information of the second component block according to the motion information of the target first component sub-block, wherein the decoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
14. The method according to claim 11 or 12, wherein prior to said obtaining decoding information for said second component block, the method further comprises:
and determining the target first component sub-block according to the target position information.
15. The method of claim 14, wherein the target location information has coordinates of (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
16. The method according to claim 11 or 12, wherein prior to said obtaining decoding information for said second component block, the method further comprises:
And taking the first or last first component sub-block in the N first component sub-blocks as the target first component sub-block according to a decoding order or a scanning order.
17. The method according to any one of claims 7, 8, 11, 12 and 15, wherein the prediction mode of each of the N first component sub-blocks is intra-prediction mode or non-intra-prediction mode.
18. The method of any one of claims 7, 8, 11, 12, 15, further comprising:
and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
19. The method of any one of claims 7, 8, 11, 12, 15, further comprising:
according to the width and/or height of the first component block, in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks;
And acquiring the reconstruction blocks of the N first component sub-blocks and the reconstruction blocks of the N second component sub-blocks according to the decoding information of the N first component sub-blocks and the decoding information of the N second component sub-blocks.
20. The method according to any one of claims 7, 8, 11, 12, 15,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
21. A block partitioning method applied in video coding, comprising:
acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node;
and judging whether the first component block meets a preset condition corresponding to the division mode or not according to the width and/or the height of the first component block, if not, adopting the division mode of the current node to divide the second component block of the current node, wherein the size of the first component block is larger than that of the second component block.
22. The method of claim 21, wherein the determining whether the first component block satisfies a predetermined condition corresponding to the partition mode comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
Under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
23. The method of claim 21 or 22,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
24. A block partitioning method applied in video coding, comprising:
acquiring a partitioning mode of a current node, wherein the partitioning mode is used for indicating how to partition the current node to obtain a first component block of the current node;
and judging whether the first component block meets a preset condition corresponding to the division mode or not according to the width and/or height of the first component block, and if so, determining that the second component block of the current node is not divided or is not divided by adopting the division mode of the current node, wherein the size of the first component block is larger than that of the second component block.
25. The method of claim 24, wherein the determining whether the first component block satisfies a predetermined condition corresponding to the partition mode comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
Under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
26. The method of claim 24 or 25,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
27. A method of encoding, comprising:
acquiring a partitioning mode of a current node;
dividing a first component block of the current node into N first component sub-blocks according to the division mode of the current node, wherein N is a positive integer greater than or equal to 2;
according to the width and/or height of the first component block, responding to a first judgment result that the first component block meets a preset condition corresponding to the dividing mode, and generating coding information of the N first component blocks and coding information of a second component block of the current node; or,
According to the width and/or height of the first component block, in response to a first judgment result that the first component block meets a preset condition corresponding to the division mode, dividing the second component block of the current node into M second component sub-blocks by adopting a division mode different from the division mode of the current node, wherein M is a positive integer greater than or equal to 2;
generating coding information for the N first component sub-blocks and coding information for the M second component sub-blocks.
28. The method of claim 27, wherein the first component block satisfies a preset condition corresponding to the partition mode, and comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
Under the condition that the partition mode of the current node is horizontal extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold and/or the height of the first component block is less than or equal to a sixth preset threshold;
under the condition that the partition mode of the current node is vertical extended quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold and/or the height of the first component block is less than or equal to an eighth preset threshold.
29. The method according to claim 27 or 28, wherein the generating the encoded information of the second component block comprises:
and generating the coding information of the second component block according to the coding information of N1 first component sub-blocks in the N first component sub-blocks, wherein N1 is a positive integer greater than or equal to 1.
30. The method of claim 29, wherein the coding information of the second component block comprises a prediction mode of the second component block;
the generating the coding information of the second component block according to the coding information of the N1 first component sub-blocks includes:
obtaining a prediction mode of a target first component sub-block of the N1 first component sub-blocks as a prediction mode of the second component block, wherein encoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
31. The method of claim 30, wherein in the case that the prediction mode of the second component block is a non-intra prediction mode, the coding information of the second component block further comprises motion information of the second component block, the method further comprising:
generating motion information of the second component block according to the motion information of the target first component sub-block, wherein the encoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
32. The method of claim 30 or 31, wherein prior to said generating the encoded information for the second component block, the method further comprises:
and determining the target first component sub-block according to the target position information.
33. The method of claim 32, wherein the target location information has coordinates of (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
34. The method of claim 30 or 31, wherein prior to said generating the encoded information for the second component block, the method further comprises:
And taking the first or last first component sub-block in the N first component sub-blocks as the target first component sub-block according to the coding order or the scanning order.
35. The method of any one of claims 27, 28, 30, 31 and 33, wherein the prediction mode of each of the N first component sub-blocks is intra-prediction mode or non-intra-prediction mode.
36. The method of any one of claims 27, 28, 30, 31, 33, further comprising:
and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
37. The method of any one of claims 27, 28, 30, 31, 33, further comprising:
according to the width and/or height of the first component block, in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks;
Generating coding information for the N first component sub-blocks and coding information for the N second component sub-blocks.
38. The method of any one of claims 27, 28, 30, 31, 33,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
39. A video decoder, comprising:
the image decoding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node;
and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode or not according to the width and/or the height of the first component block, and if the preset condition is not met, dividing the second component block of the current node by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
40. The video decoder of claim 39, wherein the partition unit is specifically configured to at least one of:
under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
and under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
41. The video decoder of claim 39 or 40,
the first component block is a brightness component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
42. A video decoder, comprising:
the image decoding unit is used for acquiring a division mode of a current node, wherein the division mode is used for indicating how to divide the current node to obtain a first component block of the current node;
and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode or not according to the width and/or the height of the first component block, and if the preset condition is met, determining that the second component block of the current node is not divided or is not divided by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
43. The video decoder of claim 42, wherein the partition unit is specifically configured to at least one of:
Under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
44. The video decoder of claim 42 or 43,
the first component block is a brightness component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
45. A video decoder, comprising:
the image decoding unit is used for acquiring the partition mode of the current node;
the dividing unit is used for dividing the first component block of the current node into N first component sub-blocks according to the dividing mode of the current node, wherein N is a positive integer greater than or equal to 2;
responding to a first judgment result that the first component block satisfies a preset condition corresponding to the division mode according to the width and/or height of the first component block,
the image decoding unit is further configured to: acquiring reconstructed blocks of the N1 first component sub-blocks and the second component block according to decoding information of N1 first component sub-blocks in the N first component sub-blocks and decoding information of a second component block of the current node, wherein N1 is a positive integer greater than or equal to 1;
Responding to a first judgment result that the first component block satisfies a preset condition corresponding to the division mode according to the width and/or height of the first component block,
the dividing unit is further configured to: dividing a second component block of the current node into M second component sub-blocks by adopting a division mode different from the division mode of the current node, wherein M is a positive integer greater than or equal to 2;
the image decoding unit is further configured to: and acquiring reconstructed blocks of the N2 first component sub-blocks and at least one second component sub-block according to decoding information of the N2 first component sub-blocks in the N first component sub-blocks and decoding information of at least one second component sub-block in the M second component sub-blocks, wherein N2 is a positive integer greater than or equal to 1.
46. The video decoder of claim 45, wherein the first component block satisfies a predetermined condition corresponding to the partition mode, and comprises at least one of:
under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
Under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
47. The video decoder of claim 45 or 46, wherein the decoding information of the second component block comprises a prediction mode of the second component block;
the image decoding unit is further configured to: and acquiring the prediction mode of the second component block from the code stream.
48. The video decoder according to claim 45 or 46, wherein the image decoding unit is further configured to: and acquiring the decoding information of the second component block according to the decoding information of the N1 first component sub-blocks.
49. The video decoder of claim 48, wherein the decoding information for the second component block comprises a prediction mode for the second component block;
the image decoding unit is specifically configured to: obtaining a prediction mode of the second component block according to a prediction mode of a target first component sub-block of the N1 first component sub-blocks, wherein decoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
50. The video decoder according to claim 49, wherein the image decoding unit is specifically configured to: acquiring a prediction mode of the second component block from a code stream; or, acquiring a prediction mode of the target first component sub-block as a prediction mode of the second component block.
51. The video decoder of claim 49 or 50, wherein in case the prediction mode of the second component block is a non-intra prediction mode, the decoding information of the second component block further comprises motion information of the second component block;
The image decoding unit is further configured to: and acquiring the motion information of the second component block according to the motion information of the target first component sub-block, wherein the decoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
52. The video decoder of claim 49 or 50, wherein before said obtaining the decoding information of the second component block, the image decoding unit is further configured to: and determining the target first component sub-block according to the target position information.
53. The video decoder of claim 52, wherein the target position information has coordinates of (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
54. The video decoder of claim 49 or 50, wherein before said obtaining the decoding information of the second component block, the image decoding unit is further configured to: and according to a decoding order or a scanning order, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
55. The video decoder of any of claims 45, 46, 49, 50 and 53, wherein the prediction mode of each of the N first component sub-blocks is either an intra-prediction mode or a non-intra-prediction mode.
56. The video decoder according to any of claims 45, 46, 49, 50 or 53, wherein the image decoding unit is further configured to: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
57. The video decoder of any of claims 45, 46, 49, 50, 53,
the dividing unit is further configured to: according to the width and/or height of the first component block, in response to a second judgment result that the first component block does not meet preset conditions corresponding to the partition mode, the partition mode of the current node is adopted to divide the second component block into N second component sub-blocks;
the image decoding unit is further configured to: and acquiring the reconstruction blocks of the N first component sub-blocks and the reconstruction blocks of the N second component sub-blocks according to the decoding information of the N first component sub-blocks and the decoding information of the N second component sub-blocks.
58. The video decoder of any of claims 45, 46, 49, 50, 53,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
59. A video encoder, comprising:
the image coding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node;
and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode or not according to the width and/or the height of the first component block, and if the preset condition is not met, dividing the second component block of the current node by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
60. The video encoder of claim 59, wherein the partition unit is specifically configured to at least one of:
Under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
61. The video encoder of claim 59 or 60,
the first component block is a brightness component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
62. A video encoder, comprising:
the image coding unit is used for acquiring a division mode of a current node, and the division mode is used for indicating how to divide the current node to obtain a first component block of the current node;
and the dividing unit is used for judging whether the first component block meets a preset condition corresponding to the dividing mode or not according to the width and/or the height of the first component block, and if the preset condition is met, determining that the second component block of the current node is not divided or is not divided by adopting the dividing mode of the current node, wherein the size of the first component block is larger than that of the second component block.
63. The video encoder of claim 62, wherein the partition unit is specifically configured to at least one of:
Under the condition that the partition mode of the current node is the quadtree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
and under the condition that the partition mode of the current node is vertical binary tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, judging whether the first component block meets the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
under the condition that the partition mode of the current node is horizontal expansion quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a fifth preset threshold value and/or the height of the first component block is less than or equal to a sixth preset threshold value;
under the condition that the partition mode of the current node is vertical extended quad-tree partition, judging whether the first component block meets the following conditions: the width of the first component block is less than or equal to a seventh preset threshold value and/or the height of the first component block is less than or equal to an eighth preset threshold value.
64. The video encoder of claim 62 or 63,
the first component block is a brightness component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
65. A video encoder, comprising:
the image coding unit is used for acquiring the division mode of the current node;
the dividing unit is used for dividing the first component block of the current node into N first component sub-blocks according to the dividing mode of the current node, wherein N is a positive integer greater than or equal to 2;
responding to a first judgment result that the first component block satisfies a preset condition corresponding to the division mode according to the width and/or height of the first component block,
the image encoding unit is further configured to generate encoding information of the N first component sub-blocks and encoding information of a second component block of the current node; or,
responding to a first judgment result that the first component block satisfies a preset condition corresponding to the division mode according to the width and/or height of the first component block,
The dividing unit is further configured to divide the second component block of the current node into M second component sub-blocks by using a dividing mode different from the dividing mode of the current node, where M is a positive integer greater than or equal to 2;
the image encoding unit is further configured to generate encoding information of the N first component sub-blocks and encoding information of the M second component sub-blocks.
66. The video encoder of claim 65, wherein the first component block satisfies a predetermined condition corresponding to the partition mode, comprising at least one of:
under the condition that the partition mode of the current node is the quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a first preset threshold value and/or the height of the first component block is less than or equal to a second preset threshold value;
under the condition that the partition mode of the current node is vertical binary tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a third preset threshold;
under the condition that the partition mode of the current node is horizontal binary tree partition, the first component block satisfies the following conditions: the height of the first component block is less than or equal to a fourth preset threshold;
Under the condition that the partition mode of the current node is horizontal extended quad-tree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a fifth preset threshold and/or the height of the first component block is less than or equal to a sixth preset threshold;
under the condition that the partition mode of the current node is vertical extended quadtree partition, the first component block satisfies the following conditions: the width of the first component block is less than or equal to a seventh preset threshold and/or the height of the first component block is less than or equal to an eighth preset threshold.
67. The video encoder according to claim 65 or 66, wherein the image encoding unit is specifically configured to: and generating the coding information of the second component block according to the coding information of N1 first component sub-blocks in the N first component sub-blocks, wherein N1 is a positive integer greater than or equal to 1.
68. The video encoder of claim 67, wherein the coding information for the second component block comprises a prediction mode for the second component block; the image encoding unit is specifically configured to: obtaining a prediction mode of a target first component sub-block of the N1 first component sub-blocks as a prediction mode of the second component block, wherein encoding information of the target first component sub-block includes the prediction mode of the target first component sub-block.
69. The video encoder of claim 68, wherein in the case that the prediction mode of the second component block is a non-intra prediction mode, the encoding information for the second component block further comprises motion information for the second component block; the image encoding unit is further configured to: generating motion information of the second component block according to the motion information of the target first component sub-block, wherein the encoding information of the target first component sub-block further comprises the motion information of the target first component sub-block.
70. The video encoder of claim 68 or 69, wherein prior to said generating the coding information for the second component block, the image encoding unit is further configured to: and determining the target first component sub-block according to the target position information.
71. The video encoder of claim 70, wherein the target position information has coordinates of (x)0+W/2,y0+ H/2), wherein the coordinate of the position of the uppermost left corner of the current node is (x)0,y0) The height of the current node is H, and the width of the current node is W.
72. The video encoder of claim 68 or 69, wherein prior to said generating the coding information for the second component block, the image encoding unit is further configured to: and according to the coding sequence or the scanning sequence, taking the first component sub-block of the first or the last of the N first component sub-blocks as the target first component sub-block.
73. The video encoder of any of claims 65, 66, 68, 69 and 71, wherein the prediction mode of each of the N first component sub-blocks is either an intra-prediction mode or a non-intra-prediction mode.
74. The video encoder according to any of claims 65, 66, 68, 69, 71, wherein the image encoding unit is configured to: and taking the prediction mode of any one of the N first component sub-blocks as the prediction mode of other first component sub-blocks except any one of the N first component sub-blocks.
75. The video encoder according to any of claims 65, 66, 68, 69, 71, wherein the dividing unit is further configured to divide the second component block into N second component sub-blocks using the division mode of the current node in response to a second determination that the first component block does not satisfy a preset condition corresponding to the division mode, according to the width and/or height of the first component block;
the image encoding unit is further configured to generate encoding information of the N first component sub-blocks and encoding information of the N second component sub-blocks.
76. The video encoder of any of claims 65, 66, 68, 69, 71,
the first component block is a luminance component block of the current node, and the second component block is a chrominance component block of the current node; or,
the first component block is a chrominance component block of the current node, and the second component block is a luminance component block of the current node.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
PCT/CN2019/124719 WO2020119742A1 (en) | 2018-12-15 | 2019-12-12 | Block division method, video encoding and decoding method, and video codec |
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201811537890 | 2018-12-15 | ||
CN2018115378904 | 2018-12-15 |
Publications (2)
Publication Number | Publication Date |
---|---|
CN111327894A CN111327894A (en) | 2020-06-23 |
CN111327894B true CN111327894B (en) | 2022-05-17 |
Family
ID=71170864
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201910246994.8A Active CN111327894B (en) | 2018-12-15 | 2019-03-29 | Block division method, video coding and decoding method and video coder and decoder |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN111327894B (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113489986A (en) * | 2021-05-28 | 2021-10-08 | 杭州博雅鸿图视频技术有限公司 | Integer pixel motion estimation method and device, electronic equipment and medium |
Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1747551A (en) * | 2005-08-24 | 2006-03-15 | 天津大学 | Fast frame-mode selection of video-frequency information |
US7266247B2 (en) * | 2002-09-30 | 2007-09-04 | Samsung Electronics Co., Ltd. | Image coding method and apparatus using spatial predictive coding of chrominance and image decoding method and apparatus |
CN103354613A (en) * | 2007-04-09 | 2013-10-16 | 株式会社Ntt都科摩 | Image prediction/encoding device, image prediction/encoding method, image prediction/encoding program, image prediction/decoding device, image prediction/decoding method, and image prediction decoding |
CN104284188A (en) * | 2014-10-11 | 2015-01-14 | 华为技术有限公司 | Partitioning method for prediction block, encoding device and decoding device |
CN104363450A (en) * | 2014-11-27 | 2015-02-18 | 北京奇艺世纪科技有限公司 | Intra-frame coding mode decision-making method and device |
CN104902276A (en) * | 2015-05-15 | 2015-09-09 | 腾讯科技(北京)有限公司 | Conversion unit diversion method and device |
CN106210722A (en) * | 2016-07-08 | 2016-12-07 | 上海大学 | The coded method of depth of seam division video residual error layer data based on HEVC |
CN107566848A (en) * | 2016-06-30 | 2018-01-09 | 华为技术有限公司 | The method and device of encoding and decoding |
CN108293109A (en) * | 2015-11-23 | 2018-07-17 | 联发科技(新加坡)私人有限公司 | Block dividing method with minimum block size in coding and decoding video and device |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102970526B (en) * | 2011-08-31 | 2016-12-14 | 华为技术有限公司 | A kind of method obtaining transform block size and module |
CN102761742B (en) * | 2012-07-03 | 2017-06-06 | 华为技术有限公司 | Transform block division methods, transform block divides coding method and the coding/decoding method of parameter |
JP6341426B2 (en) * | 2012-09-10 | 2018-06-13 | サン パテント トラスト | Image decoding method and image decoding apparatus |
-
2019
- 2019-03-29 CN CN201910246994.8A patent/CN111327894B/en active Active
Patent Citations (9)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7266247B2 (en) * | 2002-09-30 | 2007-09-04 | Samsung Electronics Co., Ltd. | Image coding method and apparatus using spatial predictive coding of chrominance and image decoding method and apparatus |
CN1747551A (en) * | 2005-08-24 | 2006-03-15 | 天津大学 | Fast frame-mode selection of video-frequency information |
CN103354613A (en) * | 2007-04-09 | 2013-10-16 | 株式会社Ntt都科摩 | Image prediction/encoding device, image prediction/encoding method, image prediction/encoding program, image prediction/decoding device, image prediction/decoding method, and image prediction decoding |
CN104284188A (en) * | 2014-10-11 | 2015-01-14 | 华为技术有限公司 | Partitioning method for prediction block, encoding device and decoding device |
CN104363450A (en) * | 2014-11-27 | 2015-02-18 | 北京奇艺世纪科技有限公司 | Intra-frame coding mode decision-making method and device |
CN104902276A (en) * | 2015-05-15 | 2015-09-09 | 腾讯科技(北京)有限公司 | Conversion unit diversion method and device |
CN108293109A (en) * | 2015-11-23 | 2018-07-17 | 联发科技(新加坡)私人有限公司 | Block dividing method with minimum block size in coding and decoding video and device |
CN107566848A (en) * | 2016-06-30 | 2018-01-09 | 华为技术有限公司 | The method and device of encoding and decoding |
CN106210722A (en) * | 2016-07-08 | 2016-12-07 | 上海大学 | The coded method of depth of seam division video residual error layer data based on HEVC |
Non-Patent Citations (1)
Title |
---|
基于纹理四叉树的快速HEVC帧内编码算法;李晓波,彭宗举,陈芬;《计算机工程》;20141231;全文 * |
Also Published As
Publication number | Publication date |
---|---|
CN111327894A (en) | 2020-06-23 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111327904B (en) | Image reconstruction method and device | |
CN111277828B (en) | Video encoding and decoding method, video encoder and video decoder | |
CN114173114B (en) | Image prediction method, device, equipment, system and storage medium | |
CN111788833B (en) | Inter-frame prediction method and device and corresponding encoder and decoder | |
CN112055200A (en) | MPM list construction method, and chroma block intra-frame prediction mode acquisition method and device | |
CN113491132A (en) | Video image decoding and encoding method and device | |
CN111355959B (en) | Image block dividing method and device | |
CN113366850B (en) | Video encoder, video decoder and corresponding methods | |
CN111263166B (en) | Video image prediction method and device | |
CN116684591A (en) | Video encoder, video decoder, and corresponding methods | |
CN111327899A (en) | Video decoder and corresponding method | |
CN111327894B (en) | Block division method, video coding and decoding method and video coder and decoder | |
CN111294603B (en) | Video encoding and decoding method and device | |
CN111277840B (en) | Transform method, inverse transform method, video encoder and video decoder | |
CN112135149B (en) | Entropy encoding/decoding method and device of syntax element and codec | |
CN113316939A (en) | Context modeling method and device for zone bit | |
CN111901593A (en) | Image dividing method, device and equipment | |
CN112135128A (en) | Image prediction method, coding tree node division method and device thereof | |
CN112135148B (en) | Non-separable transformation method and device | |
CN112135129B (en) | Inter-frame prediction method and device | |
WO2020119742A1 (en) | Block division method, video encoding and decoding method, and video codec | |
CN111669583A (en) | Image prediction method, device, equipment, system and storage medium |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
PB01 | Publication | ||
PB01 | Publication | ||
SE01 | Entry into force of request for substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |