WO2020143684A1 - 图像预测方法、装置、设备、系统及存储介质 - Google Patents
图像预测方法、装置、设备、系统及存储介质 Download PDFInfo
- Publication number
- WO2020143684A1 WO2020143684A1 PCT/CN2020/070976 CN2020070976W WO2020143684A1 WO 2020143684 A1 WO2020143684 A1 WO 2020143684A1 CN 2020070976 W CN2020070976 W CN 2020070976W WO 2020143684 A1 WO2020143684 A1 WO 2020143684A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- current node
- prediction
- block
- division
- node
- Prior art date
Links
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
Definitions
- Embodiments of the present application relate to the technical field of video encoding and decoding, and in particular, to an image prediction method, device, device, system, and storage medium.
- Digital video capabilities can be incorporated into a variety of devices, including digital TVs, digital live broadcast systems, wireless broadcast systems, personal digital assistants (PDAs), laptop or desktop computers, tablet computers, e-book readers, Digital cameras, digital recording devices, digital media players, video game devices, video game consoles, cellular or satellite radio phones (so-called "smart phones"), video teleconferencing devices, video streaming devices, and the like .
- Digital video devices implement video compression technology, for example, in the standards defined by MPEG-2, MPEG-4, ITU-T H.263, ITU-T H.264/MPEG-4 Part 10 Advanced Video Coding (AVC), The video compression technology described in the video coding standard H.265/High Efficiency Video Coding (HEVC) standard and extensions to such standards.
- Video devices can more efficiently transmit, receive, encode, decode, and/or store digital video information by implementing such video compression techniques.
- Video signals have become the most important way for people to obtain information in their daily lives due to their intuitive and efficient advantages. Due to the large amount of data contained in the video signal, a large amount of transmission bandwidth and storage space are required. In order to effectively transmit and store video signals, it is necessary to compress and encode the video signals. Video compression technology is increasingly becoming an indispensable key technology in the field of video applications.
- the encoding process mainly includes intra prediction (Intra Prediction), inter prediction (Inter Prediction), transform (Transform), quantization (Quantization), entropy encoding (Entropy encoding), in-loop filtering (in-loop filtering) (mainly De-blocking filtering and other links.
- intra prediction or inter prediction is performed, and after the residual is obtained, transform and quantization are performed, and finally entropy coding is performed and the code stream is output.
- the coding block here is an array of pixels of size (M ⁇ N, M may be equal to N or may not be equal to N), and the pixel value of each pixel position is known.
- Video decoding is equivalent to the reverse process of video encoding.
- entropy decoding, inverse quantization, and inverse transformation are used to obtain residual information, and whether the current block uses intra prediction or inter prediction is determined according to the decoded code stream. If it is intra-coded, the pixel values of pixels in the reconstructed area around the current image are used to construct a prediction block according to the intra-prediction method used. If it is inter-frame coding, you need to parse out the motion information, and use the parsed motion information to determine the reference block in the reconstructed image, and use the pixel values of the pixels in the reference block as the prediction block (this process is called motion Compensation (motion compensation, MC)), using the prediction block plus residual information to obtain reconstruction information after filtering operation.
- motion compensation motion compensation
- a node of 8xM (or Mx8) size is divided into two nodes of 4xM (or Mx4) size using vertical bisection (or horizontal bisection).
- a 16xM (or Mx16) size node is divided by a vertical three-point (or horizontal three-point)
- two 4xM (or Mx4) child nodes and an 8xM (or Nx8) child node will be generated.
- the resolution of the chroma component is 1/2 of the luma component, that is, a 4xM node contains a 4xM luma block and two 2x (M/2) chroma blocks.
- dividing the current node according to the preset division method may generate 2x2, 2x4, 4x2 and other chroma blocks.
- the processing complexity of the small chroma block is relatively high, and specifically includes the following three aspects.
- Intra prediction problem In order to improve the processing speed in hardware design, intra prediction usually processes 16 pixels at a time, while 2x2, 2x4, 4x2 and other chroma blocks contain less than 16 pixels, which reduces the intra prediction Processing performance.
- Inter-frame prediction of small chroma blocks requires high data bandwidth and also affects the processing speed of decoding.
- the present application provides an image prediction method, device, equipment, system, and storage medium, which improves the processing performance of image prediction and improves the processing speed of codec.
- a first aspect of the present application provides an image prediction method.
- the method includes:
- the current node division method determine whether dividing the current node based on the division method will result in an image block with a preset size; the image block includes a luma block or a chroma block; When dividing the current node results in an image block having the preset size, use intra prediction for all coding blocks covered by the current node, or use frames for all coding blocks covered by the current node Forecast.
- the image block of the preset size may be a luminance block with a size smaller than a threshold, and the threshold may be 128, 64, or 32 luma sampling points, or 32, 16, or 8 chroma sampling points.
- the size of the current node may be greater than or equal to the threshold.
- the intra prediction can be performed using a normal intra prediction mode (intra mode) for prediction, or an IBC (intra block copy) mode for prediction.
- intra mode normal intra prediction mode
- IBC intra block copy
- all code blocks covered by the current node refer to all code blocks located in the current node area.
- the coding block may also be a coding unit (coding unit).
- intra prediction is used for all coding blocks covered by the current node instead of inter prediction.
- the beneficial effect of the embodiment of the present application is that the present application considers the situation that the image block corresponding to the current node will be divided to obtain a luma block or a chroma block with a preset size.
- the encoding end or the decoding end uses the current All coding blocks whose nodes are divided or not divided by the root node use intra prediction or inter prediction, which can realize the parallel processing of the luma block or the chroma block of a preset size, and improve the processing performance of image prediction, thereby Improve codec performance.
- the following two cases belong to the image block with a preset size: a luma block with a first preset size and a chroma block with a second preset size
- the Using intra prediction for all coding blocks, or using inter prediction for all coding blocks covered by the current node includes: judging whether dividing the current node based on the division mode will result in the first preset size Luma block; when it is determined that dividing the current node based on the dividing method will result in a luma block having the first preset size, intra prediction is used for all coding blocks covered by the current node; In the case where the current node is not divided by the division method and the luminance block with the first preset size is not obtained, intra prediction is used for all coding blocks covered by the current node, or for all coding blocks covered by the current node Inter prediction.
- intra prediction is used for all coding blocks covered by the current node, or
- the use of inter prediction for all coding blocks covered by the current node may include: when it is determined that dividing the current node based on the division mode will not result in a luminance block having a first preset size, parsing the current The prediction mode state identifier of the node; when the value of the prediction mode state identifier is the first value, use inter prediction for all coding blocks covered by the current node; or, the value of the prediction mode state identifier is the first In binary value, intra prediction is used for all coding blocks covered by the current node.
- the image block with a preset size includes a luminance block with a first preset size
- the judgment is based on the current node Whether the division will result in an image block with a preset size includes: according to the size of the current node and the division mode, determining whether to divide the current node based on the division mode will result in a brightness with a first preset size Piece.
- the brightness block of the first preset size may be a brightness block with a pixel size of 4 ⁇ 4, or 8 ⁇ 8, or a brightness block with an area of 16 or 32.
- the brightness block of the first preset size is a pixel size of 4 ⁇ 4 or an area of 16
- the current Whether the node is divided will result in a brightness block with a first preset size, which may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is quadtree division; or,
- the number of sampling points of the brightness block of the current node is 64, and the division method is a tri-tree division; or,
- the number of sampling points of the luminance block of the current node is 32, and the division method is binary tree division.
- the intra prediction is used for all coding blocks covered by the current node.
- the method further includes: Judging whether dividing the current node based on the division mode will result in a chroma block of a second preset size; when determining that dividing the current node based on the division mode will obtain a color having the second preset size
- intra prediction is used for all coding blocks covered by the current node, or inter prediction is used for all coding blocks covered by the current node.
- the brightness block with the first preset size may be a 4 ⁇ 4 brightness block or an area 16 brightness block, where the first preset size of the brightness block is a 4 ⁇ 4 brightness block
- the chroma block of the second preset size may be a chroma block with a pixel size of 2 ⁇ 4, or 4 ⁇ 2, or a chroma block with an area of 8, excluding a pixel size of 2 ⁇ 2 or an area Chroma block of 4.
- the brightness block with the first preset size may be a 4 ⁇ 4 brightness block or an area 16 brightness block, where the first preset size of the brightness block is a 4 ⁇ 4 brightness block
- the chroma block of the second preset size may be a brightness block with a pixel size of 4 ⁇ 8 or 8 ⁇ 4, or a brightness block with an area of 32, excluding a pixel size of 4 ⁇ 4 or an area of 16 Brightness block.
- the chroma block in the second preset size is a chroma block with a pixel size of 2 ⁇ 4, or 4 ⁇ 2, or an area of 8, or a pixel size of 4 ⁇ 8, or 8 ⁇ 4, or
- determining whether dividing the current node based on the dividing method will result in a chroma block of a second preset size may include:
- the number of sampling points of the brightness block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- the image block with a preset size includes a chroma block with a second preset size, and the judgment is based on the current Whether the node is divided will result in an image block with a preset size, including: according to the size and division mode of the current node, determining whether to divide the current node based on the division mode will obtain a chroma with a second preset size Piece.
- the chroma block of the second preset size may be a chroma block with a pixel size of 2 ⁇ 2, 2 ⁇ 4, or 4 ⁇ 2, or an area of 4 or 8.
- the determining whether the current node is divided based on the division mode to obtain a chroma block with a second preset size according to the current node size and division mode may include: according to the current node The size and the division mode determine whether dividing the current node based on the division mode will result in a brightness block with a third preset size.
- the brightness block with the third preset size may be 4 ⁇ 4, 4 ⁇ 8, or 8 ⁇ 4, or a brightness block with an area of 32 or 16.
- judging whether dividing the current node based on the dividing mode will result in a chroma block of a second preset size may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is quadtree division; or,
- the number of sampling points of the brightness block of the current node is 64, and the division method is a tri-tree division; or,
- the number of sampling points of the luminance block of the current node is 32, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- the chroma block of the second preset size may be a chroma block with a pixel size of 2 ⁇ 4, or 4 ⁇ 2, or an area of 8, excluding a pixel size of 2 ⁇ 2, or an area of 4. Chroma block.
- the brightness block with the third preset size may be a brightness block with a pixel size of 4 ⁇ 8, or 8 ⁇ 4, or an area of 32, excluding brightness with a pixel size of 4 ⁇ 4 or an area of 16. Piece.
- judging whether dividing the current node based on the dividing mode will result in a chroma block of the second preset size may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- the covering of the current node Use intra prediction for all coding blocks of, or use inter prediction for all coding blocks covered by the current node, including: parsing the prediction mode status flag of the current node; the value of the prediction mode status flag is first Value, use inter prediction for all coding blocks covered by the current node; or, when the value of the prediction mode state identifier is the second value, use intra prediction for all coding blocks covered by the current node.
- This implementation is applied to a video decoder, and the prediction mode of all coding blocks obtained by dividing or not dividing the current node as the root node is determined by parsing the prediction mode status flag from the code stream, which only needs to be parsed once compared with the prior art , Improve the processing speed of video decoding.
- the slice type where the current node is located is not an Intra type.
- the covering of the current node Use intra prediction for all coding blocks of, or use inter prediction for all coding blocks covered by the current node, including: when the prediction mode of any coding block covered by the current node is inter prediction, Use inter prediction for all coding blocks covered by the current node; or, when the prediction mode of any coding block covered by the current node is intra prediction, use intra prediction for all coding blocks covered by the current node.
- the any coding block is the first coding block in the decoding order among all coding blocks covered by the current node.
- This implementation is applied to a video decoder.
- all codes covered by the current node uses intra prediction, or uses inter prediction on all coding blocks covered by the current node, including: determining whether dividing the current node based on the division method will result in a luminance block of the first preset size; In the case where the current node is divided in the manner of dividing the current node to obtain a luminance block of a first preset size, intra prediction is used for all coding blocks covered by the current node.
- the intra prediction is used for all coding blocks covered by the current node, or
- the use of inter prediction for all coding blocks covered by the current node includes: parsing the prediction mode state identifier of the current node; when the value of the prediction mode state identifier is the first value, all the coverage of the current node The coding block uses inter prediction; or, when the value of the prediction mode state identifier is the second value, intra prediction is used for all coding blocks covered by the current node.
- This implementation is applied to a video decoder, and the prediction mode of all coding blocks obtained by dividing or not dividing the current node as the root node is determined by parsing the prediction mode status flag from the code stream, which only needs to be parsed once compared with the prior art , Improve the processing speed of video decoding.
- the intra prediction is used for all coding blocks covered by the current node, or
- the use of inter prediction for all coding blocks covered by the current node includes: when the prediction mode of any coding block covered by the current node is inter prediction, the use of inter prediction for all coding blocks covered by the current node Or, when the prediction mode of any coding block covered by the current node is intra prediction, intra prediction is used for all coding blocks covered by the current node. This implementation is applied to a video decoder.
- the any coding block is the first coding block in the decoding order among all coding blocks covered by the current node.
- the intra prediction is used for all coding blocks covered by the current node, or the The use of inter prediction for all coding blocks covered by the current node includes: dividing the luminance blocks included in the current node according to the division manner to obtain divided luminance blocks, and using intra frames for the divided luminance blocks Prediction, using the chroma block included in the current node as a chroma code block, and using intra prediction on the chroma code block; or, dividing the luma block included in the current node according to the division method to obtain Divided luma blocks, using inter prediction on the divided luma blocks, dividing the chroma blocks included in the current node according to the dividing mode, to obtain the divided chroma blocks, and dividing the divided luma blocks Of chroma blocks use inter prediction.
- the luma block of the current node is always divided, and the chroma block of the current node can be divided in the inter prediction mode.
- the chroma block of the current node is not divided in intra prediction mode.
- the intra prediction is used for all coding blocks covered by the current node, or the The use of inter prediction for all coding blocks covered by the current node includes: dividing the luminance blocks included in the current node according to the division manner to obtain divided luminance blocks, and using intra frames for the divided luminance blocks Prediction, using the chroma block included in the current node as a chroma code block, and using intra prediction on the chroma code block; or, dividing the luma block included in the current node according to the division method to obtain For the divided luma block, inter prediction is used for the divided luma block, the chroma block included in the current node is used as a chroma coding block, and inter prediction is used for the chroma coding block.
- the chroma block of the current node is always not divided, and the luma block is divided according to the luma block division method.
- This implementation manner does not generate a chroma block of a second preset size that uses intra prediction, thereby solving the problem of intra prediction of a small chroma block, thereby improving the processing speed of video encoding.
- all The use of inter prediction for all coding blocks covered by the current node includes:
- the child node may be obtained by dividing the current node once, or may be obtained by dividing N times.
- N is an integer greater than 1.
- the division strategy may include no division, one division, or N divisions.
- N is an integer greater than 1.
- a second aspect of the present application provides an image prediction device, including:
- the acquisition module is used to obtain the current node division method
- the judging module is used for judging whether dividing the current node based on the dividing mode will obtain an image block with a preset size; the image block includes a luma block or a chroma block;
- the execution module is configured to use intra prediction on all the coding blocks covered by the current node if it is determined that the current node will be divided based on the division mode to obtain an image block having the preset size, or Inter prediction is used for all coding blocks covered by the current node.
- a third aspect of the present application provides a video encoding device, including a processor and a memory for storing executable instructions of the processor; wherein the processor executes the method as described in the first aspect of the present application.
- a fourth aspect of the present application provides a video decoding device, including a processor and a memory for storing executable instructions of the processor; wherein the processor executes the method as described in the first aspect of the present application.
- a fifth aspect of the present application provides an image prediction system, including: a video acquisition device, a video encoding device according to the third aspect of the present application, a video decoding device according to the fourth aspect of the present application, and a display device, the video The encoding device is respectively connected to the video acquisition device and the video decoding device, and the video decoding device is connected to the display device.
- a sixth aspect of the present application provides a computer-readable storage medium on which a computer program is stored, which is executed by a processor to implement the method according to any one of the first aspect of the present application.
- a seventh aspect of the present application provides an image prediction method.
- the method includes:
- the current node division method where the current node is an image block in a coding tree unit (coding tree unit) in the current image; determine the current node according to the current node division method and the size of the current node Whether the first condition is satisfied; when it is determined that the current node satisfies the first condition, intra prediction is performed on all code blocks belonging to the current node, thereby obtaining predictions of all code blocks belonging to the current node value.
- the size of the current node is determined according to the size of the coding tree node corresponding to the current node and the division method used to obtain the current node.
- the type of the slice where the current node is located is B or P. It should be understood that, in the case where the slice type where the current node is located is I, intra prediction should be used by default for all coding blocks covered by the current node.
- the judging whether the current node meets the first condition according to the division mode of the current node and the size of the current node may occur when the current node is less than or equal to a preset upper limit of size
- the preset upper limit of the size may be 256, 128 or 64.
- the first condition may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is quadtree division; or,
- the number of sampling points of the brightness block of the current node is 64, and the division method is a tri-tree division; or,
- the number of sampling points of the luminance block of the current node is 32, and the division method is binary tree division.
- the method further includes: according to a division manner of the current node And the size of the current node to determine whether the current node satisfies the second condition; when it is determined that the current node satisfies the second condition, use the same prediction method to predict all code blocks belonging to the current node , So as to obtain prediction values of all coded blocks belonging to the current node, and the prediction method is intra prediction or inter prediction.
- judging whether the current node meets the second condition according to the current node division mode and the current node size may include: according to the current node division mode, the current node size and The current sampling format (Chroma format) determines whether the current node satisfies the second condition.
- the current sampling format Chroma format
- the second condition may include:
- the number of sampling points of the brightness block of the current node is 64, and the division method is binary tree division;
- the number of sampling points of the brightness block of the current node is 128, and the division method is a tri-tree division;
- the number of sampling points of the current node's luminance block is 64, and the division method is binary tree division, and the sampling format is 4:2:0;
- the number of sampling points of the brightness block of the current node is 128, and the division method is a tri-tree division, and the sampling format is 4:2:0; or,
- the width of the chroma block of the child node of the current node is 2.
- the prediction using the same prediction method for all coding blocks belonging to the current node includes: parsing the current The prediction mode state identifier of the node; in the case where the value of the prediction mode state identifier is the first value, inter prediction is performed on all coded blocks belonging to the current node; or, the When the value is the second value, intra-prediction is performed on all coded blocks belonging to the current node.
- the prediction mode status identifier may be a syntax element parsed during the block division process, that is, a syntax element parsed during the coding tree (coding tree).
- a syntax element parsed during the coding tree coding tree
- the coding unit prediction mode flag (cu_pred_mode) can no longer be parsed, and its value is a default value corresponding to the value of the prediction mode state identifier.
- the inter prediction of all coded blocks belonging to the current node includes: Divide the current node according to the current node division method to obtain the child nodes of the current node; determine the unallowed division of the child nodes of the current node according to the size of the child nodes of the current node Way; determine the fast division strategy of the child nodes of the current node according to the disallowed division method of the child nodes of the current node; according to the block division strategy of the child nodes of the current node, obtain the current node’s The coding block corresponding to the child node, and using inter prediction on the corresponding coding block.
- the child node is restricted to only use inter prediction and the number of brightness sampling points of the child node is 32 (or the product of the node's width and height is 32), the child node is not allowed to use binary tree division (including horizontal binary tree or vertical Binary tree division). If the child node is restricted to only use inter prediction, and the number of brightness sampling points of the child node is 64 (or the product of the node's width and height is 64), then the child node is not allowed to use the tri-tree division (including horizontal tri-tree and vertical Tri-tree division). This judgment method is applicable to the video data formats of YUV4:2:0 and YUV4:2:2.
- the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, 8x4 (or 4x8) nodes cannot use vertical binary tree division (or horizontal binary tree division), or cannot continue division.
- the number of sampling points of the luminance block of the current node is 128, and the division method is horizontal tri-tree division or vertical tri-tree division, the number of sampling points of the luminance block may be 64, and the number of sampling points If the brightness node is 64, if a child node is used to divide the horizontal tri-tree or vertical tri-tree, you will get a 4x4 brightness block. Therefore, when it has been restricted to only use inter prediction, the node with 64 sampling points cannot Use the horizontal trigeminal tree or vertical trigeminal tree to divide, or can't continue to be divided.
- the intra prediction is performed on all coded blocks belonging to the current node.
- the method includes: dividing the luminance block included in the current node according to the division manner to obtain a divided luminance block, using intra prediction on the divided luminance block, and using the chroma block included in the current node as Chroma-coded block, intra prediction is used for the chroma-coded block.
- An eighth aspect of the present application provides an image prediction method.
- the method includes: obtaining a division mode of a current node, the current node being an image block in a coding tree unit (coding tree unit) in a current image; according to the current The division of nodes and the size of the current node determine whether the current node satisfies the preset condition; when it is determined that the current node satisfies the preset condition, use the same for all coding blocks belonging to the current node
- the prediction method performs prediction to obtain prediction values of all coded blocks belonging to the current node.
- the prediction method is intra prediction or inter prediction.
- the size of the current node may be determined according to the size of the coding tree node corresponding to the current node and the division method used to obtain the current node.
- judging whether the current node meets the preset condition according to the division mode of the current node and the size of the current node may include: according to the division mode of the current node, the size of the current node and the current A sampling format (Chroma format) to determine whether the current node meets a preset condition.
- the preset conditions may include:
- the number of sampling points of the brightness block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- the prediction by using the same prediction method for all coding blocks belonging to the current node includes: parsing the prediction mode state identifier of the current node; When the value of the prediction mode state identifier is the first value, perform inter prediction on all coded blocks belonging to the current node; or, when the value of the prediction mode state identifier is the second value, Perform intra prediction on all coded blocks belonging to the current node.
- the inter prediction of all coded blocks belonging to the current node includes: Dividing the current node into the current node to obtain a child node of the current node; according to the size of the child node of the current node, determining the unallowed division mode of the child node of the current node ; Determine the fast division strategy of the child nodes of the current node according to the disallowed division method of the child nodes of the current node; obtain the child of the current node according to the block division strategy of the child nodes of the current node A coding block corresponding to the node, and using inter prediction for the corresponding coding block.
- the child node is restricted to only use inter prediction and the number of brightness sampling points of the child node is 32 (or the product of the node's width and height is 32), the child node is not allowed to use binary tree division (including horizontal binary tree or vertical Binary tree division). If the child node is restricted to only use inter prediction, and the number of brightness sampling points of the child node is 64 (or the product of the node's width and height is 64), then the child node is not allowed to use the tri-tree division (including horizontal tri-tree and vertical Tri-tree division). This judgment method is applicable to the video data formats of YUV4:2:0 and YUV4:2:2.
- the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, 8x4 (or 4x8) nodes cannot use vertical binary tree division (or horizontal binary tree division), or cannot continue division.
- the number of sampling points of the luminance block of the current node is 128, and the division method is horizontal tri-tree division or vertical tri-tree division, the number of sampling points of the luminance block may be 64, and the number of sampling points If the brightness node is 64, if a child node is used to divide the horizontal tri-tree or vertical tri-tree, you will get a 4x4 brightness block. Therefore, when it has been restricted to only use inter prediction, the node with 64 sampling points cannot Use the horizontal trigeminal tree or vertical trigeminal tree to divide, or can't continue to be divided.
- a ninth aspect of the present application provides an image prediction method.
- the method includes: determining a division mode in which the current node is not allowed according to the size of the current node and the prediction mode of the current node, and the current node is the current image
- the image block in the coding tree unit in coding the fast division strategy of the current node is determined according to the disallowed division method of the current node; the block division strategy of the current node is used to obtain Said coding block corresponding to the current node, and using inter prediction for the corresponding coding block.
- the size of the current node may be determined according to the size of the coding tree node corresponding to the current node and the division method used to obtain the current node.
- the determining, according to the size of the current node and the prediction mode of the current node, that the current node is not allowed to be divided includes: determining whether All coding blocks belonging to the current node are only predicted using the inter mode, and it is determined whether the number of sampling points of the luminance block of the current node is 32; when it is determined that all coding blocks belonging to the current node are only predicted using the inter mode, and When it is determined that the number of sampling points of the luminance block of the current node is 32, it is determined that the binary tree is divided into division modes that are not allowed by the current node.
- the current node is determined according to the size of the current node and the prediction mode of the current node
- the division methods that are not allowed include: determining whether all coding blocks belonging to the current node use only inter mode for prediction, and determining whether the number of sampling points of the current node's luminance block is 64; When the coding block uses only the inter mode for prediction, and when it is determined that the number of sampling points of the current node's luminance block is 64, it is determined that the tri-tree is divided into division modes that are not allowed by the current node.
- a tenth aspect of the present application provides an image prediction device.
- the device includes:
- An obtaining module used to obtain the division mode of the current node, which is an image block in a coding tree unit (coding tree unit) in the current image;
- the judging module is used to judge whether the current node satisfies the first condition according to the current node division method and the size of the current node;
- the execution module is configured to perform intra prediction on all code blocks belonging to the current node under the condition that the current node meets the first condition, so as to obtain prediction values of all code blocks belonging to the current node .
- the judgment module is further configured to: when it is determined that the current node does not satisfy the first condition, the division of the current node Manner and the size of the current node to determine whether the current node meets the second condition;
- the execution module is further configured to: when it is determined that the current node meets the second condition, use the same prediction method to predict all coding blocks belonging to the current node, so as to obtain all The prediction value of the coding block.
- the prediction method is intra prediction or inter prediction.
- the judging module may be used to judge whether the current node meets the second condition according to the division mode of the current node, the size of the current node and the current sampling format (Chroma format).
- the execution module is used to:
- inter prediction is performed on all coded blocks belonging to the current node; or, in the case where the value of the prediction mode state identifier is the second value Next, perform intra prediction on all coded blocks belonging to the current node.
- the execution module is used to:
- the execution module is configured to:
- the coding block uses intra prediction for the chroma coding block.
- An eleventh aspect of the present application provides an image prediction apparatus.
- the apparatus includes: an acquisition module for acquiring a division mode of a current node, the current node being an image in a coding tree unit (coding tree unit) in the current image Block; a judgment module, used to judge whether the current node meets a preset condition according to the current node division method and the size of the current node; an execution module, used to determine that the current node satisfies the preset Under the condition, all the coding blocks belonging to the current node are predicted using the same prediction method, so as to obtain the prediction values of all the coding blocks belonging to the current node.
- the prediction method is intra prediction or inter prediction.
- the judging module may be used to judge whether the current node meets the preset condition according to the division mode of the current node, the size of the current node and the current sampling format (Chroma format).
- the execution module is used to:
- inter prediction is performed on all coded blocks belonging to the current node; or, in the case where the value of the prediction mode state identifier is the second value Next, perform intra prediction on all coded blocks belonging to the current node.
- the execution module is used to: Divide the current node to obtain the child nodes of the current node; determine the unallowed division method of the child nodes of the current node according to the size of the child nodes of the current node; according to the child nodes of the current node Is not allowed to divide, determine the fast division strategy of the child nodes of the current node; according to the block division strategy of the child nodes of the current node, obtain the coding block corresponding to the child nodes of the current node, and The corresponding coding block uses inter prediction.
- a twelfth aspect of the present application provides an image prediction apparatus.
- the apparatus includes: a determining unit configured to determine, based on a size of a current node and a prediction mode of the current node, a division manner in which the current node is not allowed, so The current node is an image block in a coding tree unit (coding tree unit) in the current image; the determining unit is also used to determine the fast division of the current node according to an unallowed division method of the current node Strategy; prediction unit, for obtaining the coding block corresponding to the current node according to the block division strategy of the current node, and using inter prediction for the corresponding coding block.
- a determining unit configured to determine, based on a size of a current node and a prediction mode of the current node, a division manner in which the current node is not allowed, so The current node is an image block in a coding tree unit (coding tree unit) in the current image; the determining unit is also used to determine the fast division
- the determination unit is configured to:
- the determination unit is configured to:
- the method of the seventh aspect of the present application may be performed by the apparatus of the tenth aspect of the present application.
- the apparatus of the tenth aspect of the present application For the functionality of the apparatus of the tenth aspect of the present application and its different implementations, reference may be made to the features and implementation of the method of the seventh aspect of the present application.
- the method of the eighth aspect of the present application can be performed by the apparatus of the eleventh aspect of the present application.
- the functionality of the apparatus of the eleventh aspect of the present application and its different implementations reference may be made to the features and implementation of the method of the eighth aspect of the present application.
- the method of the ninth aspect of the present application can be performed by the apparatus of the twelfth aspect of the present application.
- the apparatus of the twelfth aspect of the present application For the functionality and different implementations of the device of the twelfth aspect of the present application, reference may be made to the features and implementation of the method of the ninth aspect of the present application
- a thirteenth aspect of the present application provides an apparatus for decoding a video stream, including a processor and a memory.
- the memory stores instructions that cause the processor to perform the method according to the seventh aspect or the eighth aspect or the ninth aspect.
- a fourteenth aspect of the present application provides an apparatus for encoding a video stream, which includes a processor and a memory.
- the memory stores instructions that cause the processor to perform the method according to the seventh aspect or the eighth aspect or the ninth aspect.
- a fifteenth aspect of the present application provides a computer-readable storage medium on which instructions are stored, which, when executed, cause one or more processors to encode video data.
- the instructions cause the one or more processors to perform any possible implementation according to the seventh aspect or the eighth aspect or the ninth aspect, or the seventh aspect or the eighth aspect or the ninth aspect.
- a sixteenth aspect of the present application provides a computer program including a program code that when executed on a computer performs according to the seventh aspect or the eighth aspect or the ninth aspect, or the seventh aspect or the eighth aspect or the ninth aspect Any possible implementation.
- a seventeenth aspect of the present application provides a computer-readable storage medium on which a code stream is stored, the code stream carrying a prediction mode state identifier of a current node of a current coding tree; the value of the prediction mode state identifier is first The value is used to indicate that the prediction mode of all coded blocks belonging to the current node is inter prediction; or, the value of the prediction mode state identifier is a second value used to indicate all coded blocks belonging to the current node The prediction mode is intra prediction.
- This application provides an image prediction method, device, equipment, system, and storage medium.
- the method includes: obtaining a division mode of the current node, and judging whether dividing the current node based on the division mode of the current node will obtain an image block having a preset size, where the image block includes a luma block or a chroma block.
- intra prediction is used for all coding blocks covered by the current node
- inter coding is used for all coding blocks covered by the current node prediction.
- the above method uses intra-frame or inter-frame prediction for all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction, and thus increase the processing speed of coding and decoding.
- FIG. 1A is a block diagram of an example of a video encoding and decoding system 10 for implementing embodiments of the present application;
- FIG. 1B is a block diagram of an example of a video decoding system 40 for implementing an embodiment of the present application
- FIG. 2 is a block diagram of an example structure of an encoder 20 for implementing an embodiment of the present application
- FIG. 3 is a block diagram of an example structure of a decoder 30 for implementing an embodiment of the present application
- FIG. 4 is a block diagram of an example of a video decoding device 400 for implementing an embodiment of the present application
- FIG. 5 is a block diagram of another example of an encoding device or a decoding device used to implement an embodiment of the present application
- FIG. 6 is a schematic block diagram of a block division method for implementing embodiments of the present application.
- FIG. 7 is a schematic block diagram of an intra prediction used to implement an embodiment of the present application.
- FIG. 8 is a schematic block diagram of a video communication system for implementing embodiments of the present application.
- FIG. 9 is a schematic flowchart of a first image prediction method provided by an embodiment of the present application.
- FIG. 10 is a schematic flowchart of a second image prediction method provided by an embodiment of the present application.
- FIG. 11 is a schematic flowchart of a third image prediction method provided by an embodiment of the present application.
- FIG. 12 is a schematic flowchart of a fourth image prediction method provided by an embodiment of the present application.
- FIG. 13 is a schematic flowchart of a fifth image prediction method provided by an embodiment of the present application.
- FIG. 14 is a schematic flowchart of a sixth image prediction method provided by an embodiment of the present application.
- 15 is a schematic diagram of a functional structure of an image prediction device provided by an embodiment of the present application.
- 16 is a schematic diagram of a hardware structure of a video encoding device provided by an embodiment of the present application.
- FIG. 17 is a schematic diagram of a hardware structure of a video decoding device provided by an embodiment of the present application.
- FIG. 18 is a schematic structural diagram of an image prediction system provided by an embodiment of the present application.
- the corresponding device may include one or more units such as functional units to perform the one or more method steps described (eg, one unit performs one or more steps , Or multiple units, each of which performs one or more of multiple steps), even if such one or more units are not explicitly described or illustrated in the drawings.
- the corresponding method may include a step to perform the functionality of one or more units (eg, one step executes one or more units Functionality, or multiple steps, each of which performs the functionality of one or more of the multiple units), even if such one or more steps are not explicitly described or illustrated in the drawings.
- the features of the exemplary embodiments and/or aspects described herein may be combined with each other.
- Video coding generally refers to processing a sequence of pictures that form a video or video sequence.
- picture In the field of video coding, the terms “picture”, “frame” or “image” may be used as synonyms.
- Video coding as used herein means video coding or video decoding.
- Video encoding is performed on the source side and usually includes processing (eg, by compressing) the original video picture to reduce the amount of data required to represent the video picture, thereby storing and/or transmitting more efficiently.
- Video decoding is performed on the destination side and usually involves inverse processing relative to the encoder to reconstruct the video picture.
- the “encoding” of video pictures involved in the embodiments should be understood as referring to the “encoding” or “decoding” of video sequences.
- the combination of the encoding part and the decoding part is also called codec (encoding and decoding).
- the video sequence includes a series of pictures, the picture is further divided into slices, and the slices are further divided into blocks.
- Video coding is performed in units of blocks.
- a macroblock can be further divided into multiple prediction blocks that can be used for predictive coding.
- basic concepts such as coding unit (CU), prediction unit (PU), and transform unit (TU) are used to divide a variety of block units functionally and adopt a new tree-based structure Describe it.
- the CU can be divided into smaller CUs according to the quadtree, and the smaller CUs can be further divided to form a quadtree structure.
- the CU is the basic unit for dividing and coding the encoded image.
- PU can correspond to the prediction block and is the basic unit of predictive coding.
- the CU is further divided into multiple PUs according to the division mode.
- the TU can correspond to the transform block and is the basic unit for transforming the prediction residual.
- CU regardless of CU, PU or TU, they all belong to the concept of block (or image block) in essence.
- the CTU is split into multiple CUs by using a quadtree structure represented as a coding tree.
- a decision is made at the CU level whether to use inter-picture (temporal) or intra-picture (spatial) prediction to encode picture regions.
- Each CU can be further split into one, two, or four PUs according to the PU split type.
- the same prediction process is applied within a PU, and related information is transmitted to the decoder on the basis of the PU.
- the CU may be divided into transform units (TU) according to other quadtree structures similar to the coding tree used for the CU.
- quad-tree and binary-tree Quad-tree and binary-tree (Quad-tree and binary tree, QTBT) split frames are used to split code blocks.
- the CU may have a square or rectangular shape.
- the image block to be encoded in the current encoded image may be referred to as the current block.
- the reference block is a block that provides a reference signal for the current block, where the reference signal represents a pixel value within the image block.
- the block in the reference image that provides the prediction signal for the current block may be a prediction block, where the prediction signal represents a pixel value or a sample value or a sample signal within the prediction block. For example, after traversing multiple reference blocks, the best reference block is found. This best reference block will provide a prediction for the current block. This block is called a prediction block.
- the original video picture can be reconstructed, that is, 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).
- further compression is performed by, for example, quantization to reduce the amount of data required to represent the video picture, but the decoder side cannot fully reconstruct the video picture, that is, the quality of the reconstructed video picture is better than the original video picture. The quality is lower or worse.
- Several video coding standards of H.261 belong to "lossy hybrid video codec” (ie, combining spatial and temporal prediction in the sample domain with 2D transform coding for applying quantization in the transform domain).
- Each picture of a video sequence is usually divided into non-overlapping block sets, which are usually encoded at the block level.
- the encoder side usually processes the encoded video at the block (video block) level.
- the prediction block is generated by spatial (intra-picture) prediction and temporal (inter-picture) prediction.
- the encoder duplicates the decoder processing loop so that the encoder and decoder generate the same prediction (eg, intra-frame prediction and inter-frame prediction) and/or reconstruction for processing, ie encoding subsequent blocks.
- FIG. 1A exemplarily shows a schematic block diagram of a video encoding and decoding system 10 applied in an embodiment of the present application.
- the video encoding and decoding system 10 may include a source device 12 and a destination device 14, the source device 12 generates encoded video data, and therefore, the source device 12 may be referred to as a video encoding device.
- the destination device 14 may decode the encoded video data generated by the source device 12, and therefore, the destination device 14 may be referred to as a video decoding device.
- Various implementations of source device 12, destination device 14, or both may include one or more processors and a memory coupled to the one or more processors.
- Source device 12 and destination device 14 may include various devices, including desktop computers, mobile computing devices, notebook (eg, laptop) computers, tablet computers, set-top boxes, telephone handsets such as so-called "smart" phones, etc. Devices, televisions, cameras, display devices, digital media players, video game consoles, in-vehicle computers, wireless communication devices, or the like.
- FIG. 1A depicts the source device 12 and the destination device 14 as separate devices
- device embodiments may also include both the source device 12 and the destination device 14 or the functionality of both, ie the source device 12 or the corresponding And the destination device 14 or the corresponding functionality.
- the same hardware and/or software may be used, or separate hardware and/or software, or any combination thereof may be used to implement the source device 12 or corresponding functionality and the destination device 14 or corresponding functionality .
- a communication connection can be made between the source device 12 and the destination device 14 via the link 13, and the destination device 14 can receive the encoded video data from the source device 12 via the link 13.
- Link 13 may include one or more media or devices capable of moving the encoded video data from source device 12 to destination device 14.
- 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.
- the source device 12 may modulate the encoded video data according to a communication standard (eg, a wireless communication protocol), and may transmit the modulated video data to the destination device 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.
- RF radio frequency
- 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 (eg, the Internet).
- the one or more communication media may include routers, switches, base stations, or other devices that facilitate communication from source device 12 to destination device 14.
- the source device 12 includes an encoder 20.
- the source device 12 may further include a picture source 16, a picture pre-processor 18, and a communication interface 22.
- the encoder 20, the picture source 16, the picture pre-processor 18, and the communication interface 22 may be hardware components in the source device 12, or may be software programs in the source device 12. They are described as follows:
- Picture source 16 which can include or can be any kind of picture capture device, for example to capture real-world pictures, and/or any kind of pictures or comments (for screen content encoding, some text on the screen is also considered to be encoded Part of the picture or image) generation device, for example, a computer graphics processor for generating computer animation pictures, or for acquiring and/or providing real-world pictures, computer animation pictures (for example, screen content, virtual reality, VR) pictures) in any category of equipment, and/or any combination thereof (eg, augmented reality (AR) pictures).
- the picture source 16 may be a camera for capturing pictures or a memory for storing pictures.
- the picture source 16 may also include any type of (internal or external) interface that stores previously captured or generated pictures and/or acquires or receives pictures.
- the picture source 16 When the picture source 16 is a camera, the picture source 16 may be, for example, a local or integrated camera integrated in the source device; when the picture source 16 is a memory, the picture source 16 may be a local or integrated, for example, integrated in the source device Memory.
- the interface When the picture source 16 includes an interface, the interface may be, for example, an external interface that receives pictures from an external video source.
- the external video source is, for example, an external picture capture device, such as a camera, an external memory, or an external picture generation device.
- the external picture generation device for example It is an external computer graphics processor, computer or server.
- the interface may be any type of interface according to any proprietary or standardized interface protocol, such as a wired or wireless interface, an optical interface.
- the picture can be regarded as a two-dimensional array or matrix of pixels.
- the pixels in the array can also be called sampling points.
- the number of sampling points in the horizontal and vertical directions (or axes) of the array or picture defines the size and/or resolution of the picture.
- three color components are usually used, that is, a picture can be represented or contain three sampling arrays.
- the picture includes corresponding red, green, and blue sampling arrays.
- each pixel is usually expressed in a luminance/chrominance format or color space.
- YUV format picture it includes the luminance component indicated by Y (sometimes also indicated by L) and the two indicated by U and V.
- the luma component Y represents luminance or gray-scale horizontal intensity (for example, both are the same in gray-scale pictures), and the two chroma components U and V represent chroma or color information components.
- the picture in the YUV format includes a luminance sampling array of luminance sampling values (Y), and two chrominance sampling arrays of chrominance values (U and V). RGB format pictures can be converted or transformed into YUV format and vice versa, this process is also called color transformation or conversion. If the picture is black and white, the picture may include only the brightness sampling array.
- the picture transmitted from the picture source 16 to the picture processor may also be referred to as original picture data 17.
- the picture pre-processor 18 is configured to receive the original picture data 17 and perform pre-processing on the original picture data 17 to obtain the pre-processed picture 19 or the pre-processed picture data 19.
- the pre-processing performed by the picture pre-processor 18 may include trimming, color format conversion (eg, conversion from RGB format to YUV format), color toning, or denoising.
- the encoder 20 (or video encoder 20) is used to receive the pre-processed picture data 19, and process the pre-processed picture data 19 using a related prediction mode (such as the prediction mode in various embodiments herein), thereby
- the encoded picture data 21 is provided (the structural details of the encoder 20 will be further described below based on FIG. 2 or FIG. 4 or FIG. 5).
- the encoder 20 may be used to execute various embodiments described below to implement the application of the chroma block prediction method described in the present application on the encoding side.
- the communication interface 22 can be used to receive the encoded picture data 21, and can transmit the encoded picture data 21 to the destination device 14 or any other device (such as a memory) through the link 13 for storage or direct reconstruction.
- the other device may be any device used for decoding or storage.
- the communication interface 22 may be used, for example, to encapsulate the encoded picture data 21 into a suitable format, such as a data packet, for transmission on the link 13.
- the destination device 14 includes a decoder 30, and optionally, the destination device 14 may further include a communication interface 28, a picture post-processor 32, and a display device 34. They are described as follows:
- the communication interface 28 may be used to receive the encoded picture data 21 from the source device 12 or any other source, such as a storage device, such as an encoded picture data storage device.
- the communication interface 28 can be used to transmit or receive the encoded picture data 21 via the link 13 between the source device 12 and the destination device 14 or through any type of network.
- the link 13 is, for example, a direct wired or wireless connection.
- the category of network is, for example, a wired or wireless network or any combination thereof, or any category of private network and public network, or any combination thereof.
- the communication interface 28 may be used, for example, to decapsulate the data packet transmitted by the communication interface 22 to obtain the encoded picture data 21.
- Both the communication interface 28 and the communication interface 22 can be configured as a one-way communication interface or a two-way communication interface, and can be used, for example, to send and receive messages to establish a connection, confirm and exchange any other communication link and/or for example encoded picture data Information about data transmission.
- the decoder 30 (or referred to as the decoder 30) is used to receive the encoded picture data 21 and provide the decoded picture data 31 or the decoded picture 31 (hereinafter, the decoder 30 will be further described based on FIG. 3 or FIG. 4 or FIG. 5 Structural details).
- the decoder 30 may be used to implement various embodiments described below to implement the application of the chroma block prediction method described in the present application on the decoding side.
- the post-picture processor 32 is configured to perform post-processing on the decoded picture data 31 (also referred to as reconstructed picture data) to obtain post-processed picture data 33.
- the post-processing performed by the image post-processor 32 may include: color format conversion (for example, conversion from YUV format to RGB format), color adjustment, retouching or resampling, or any other processing, and may also be used to convert the post-processed image data 33transmitted to the display device 34.
- the display device 34 is used to receive post-processed picture data 33 to display pictures to a user or viewer, for example.
- the display device 34 may be or may include any type of display for presenting reconstructed pictures, for example, an integrated or external display or monitor.
- the display may include a liquid crystal display (liquid crystal display (LCD), organic light emitting diode (OLED) display, plasma display, projector, micro LED display, liquid crystal on silicon (LCoS), Digital light processor (digital light processor, DLP) or any other type of display.
- FIG. 1A illustrates the source device 12 and the destination device 14 as separate devices
- device embodiments may also include the functionality of the source device 12 and the destination device 14 or both, ie, the source device 12 or The corresponding functionality and the destination device 14 or corresponding functionality.
- the same hardware and/or software may be used, or separate hardware and/or software, or any combination thereof may be used to implement the source device 12 or corresponding functionality and the destination device 14 or corresponding functionality .
- Source device 12 and destination device 14 may include any of a variety of devices, including any type of handheld or stationary devices, such as notebook or laptop computers, mobile phones, smartphones, tablets or tablet computers, cameras, desktops Computers, set-top boxes, televisions, cameras, in-vehicle devices, display devices, digital media players, video game consoles, video streaming devices (such as content service servers or content distribution servers), broadcast receiver devices, broadcast transmitter devices And so on, and can not use or use any kind of operating system.
- handheld or stationary devices such as notebook or laptop computers, mobile phones, smartphones, tablets or tablet computers, cameras, desktops Computers, set-top boxes, televisions, cameras, in-vehicle devices, display devices, digital media players, video game consoles, video streaming devices (such as content service servers or content distribution servers), broadcast receiver devices, broadcast transmitter devices And so on, and can not use or use any kind of operating system.
- Both the encoder 20 and the decoder 30 may be implemented as any of various suitable circuits, for example, one or more microprocessors, digital signal processors (DSPs), application-specific integrated circuits (application-specific integrated circuits) circuit, ASIC), field-programmable gate array (FPGA), discrete logic, hardware, or any combination thereof.
- DSPs digital signal processors
- ASIC application-specific integrated circuits
- FPGA field-programmable gate array
- the device may store the instructions of the software in a suitable non-transitory computer-readable storage medium, and may use one or more processors to execute the instructions in hardware to perform the techniques of the present disclosure . Any one of the foregoing (including hardware, software, a combination of hardware and software, etc.) may be regarded as one or more processors.
- the video encoding and decoding system 10 shown in FIG. 1A is only an example, and the technology of the present application may be applied to video encoding settings that do not necessarily include any data communication between encoding and decoding devices (for example, video encoding or video decoding).
- data may be retrieved from local storage, streamed on the network, and so on.
- the video encoding device may encode the data and store the data to the memory, and/or the video decoding device may retrieve the data from the memory and decode the data.
- encoding and decoding are performed by devices that do not communicate with each other but only encode data to and/or retrieve data from memory and decode the data.
- FIG. 1B is an explanatory diagram of an example of a video coding system 40 including the encoder 20 of FIG. 2 and/or the decoder 30 of FIG. 3 according to an exemplary embodiment.
- the video decoding system 40 can implement a combination of various technologies in the embodiments of the present application.
- the video decoding system 40 may include an imaging device 41, an encoder 20, a decoder 30 (and/or a video encoder/decoder implemented by the logic circuit 47 of the processing unit 46), an antenna 42 , One or more processors 43, one or more memories 44, and/or display devices 45.
- 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 can communicate with each other.
- the video coding system 40 is shown with the encoder 20 and the decoder 30, in different examples, the video coding system 40 may include only the encoder 20 or only the decoder 30.
- antenna 42 may be used to transmit or receive an encoded bitstream of video data.
- the display device 45 may be used to present video data.
- the logic circuit 47 may be implemented by the processing unit 46.
- the processing unit 46 may include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like.
- the video decoding system 40 may also include an optional processor 43, which may similarly include application-specific integrated circuit (ASIC) logic, a graphics processor, a general-purpose processor, and the like.
- the logic circuit 47 may be implemented by hardware, such as dedicated hardware for video encoding, and the processor 43 may be implemented by general-purpose software, an operating system, and so on.
- the memory 44 may be any type of memory, such as volatile memory (for example, static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.) or non-volatile Memory (for example, flash memory, etc.), etc.
- volatile memory for example, static random access memory (Static Random Access Memory, SRAM), dynamic random access memory (Dynamic Random Access Memory, DRAM), etc.
- non-volatile Memory for example, flash memory, etc.
- the memory 44 may be implemented by cache memory.
- the logic circuit 47 can access the memory 44 (eg, to implement an image buffer).
- the logic circuit 47 and/or the processing unit 46 may include memory (eg, cache, etc.) for implementing image buffers and the like.
- the encoder 20 implemented by logic circuits may include an image buffer (eg, implemented by the processing unit 46 or the memory 44) and a graphics processing unit (eg, implemented by the processing unit 46).
- the graphics processing unit may be communicatively coupled to the image buffer.
- the graphics processing unit may include the encoder 20 implemented by a logic circuit 47 to implement the various modules discussed with reference to FIG. 2 and/or any other encoder system or subsystem described herein.
- Logic circuits can be used to perform the various operations discussed herein.
- decoder 30 may be implemented by logic circuit 47 in a similar manner to implement the various modules discussed with reference to decoder 30 of FIG. 3 and/or any other decoder systems or subsystems described herein.
- the decoder 30 implemented by the logic circuit may include an image buffer (implemented by the processing unit 2820 or the memory 44) and a graphics processing unit (for example, implemented by the 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 a logic circuit 47 to implement various modules discussed with reference to FIG. 3 and/or any other decoder system or subsystem described herein.
- antenna 42 may be used to receive an encoded bitstream of video data.
- the encoded bitstream may include data related to encoded video frames, indicators, index values, mode selection data, etc. discussed herein, such as data related to encoded partitions (eg, transform coefficients or quantized transform coefficients , (As discussed) optional indicators, and/or data defining the code segmentation).
- the video coding system 40 may also include a decoder 30 coupled to the antenna 42 and used to decode the encoded bitstream.
- the display device 45 is used to present video frames.
- the decoder 30 may be used to perform the reverse process.
- the decoder 30 may be used to receive and parse such syntax elements and decode the relevant video data accordingly.
- encoder 20 may entropy encode syntax elements into an encoded video bitstream. In such instances, decoder 30 may parse such syntax elements and decode the relevant video data accordingly.
- the decoding method described in the embodiment of the present application is mainly used in a decoding process, and this process exists in both the encoder 20 and the decoder 30.
- FIG. 2 shows a schematic/conceptual block diagram of an example of an encoder 20 for implementing an embodiment of the present application.
- the 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, decoded picture buffer (DPB) 230, prediction processing unit 260, and entropy encoding unit 270.
- the prediction processing unit 260 may include an inter prediction unit 244, an intra prediction unit 254, and a mode selection unit 262.
- the 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 based on a hybrid video codec.
- 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 the forward signal path of the encoder 20, while, for example, the inverse quantization unit 210, the inverse transform processing unit 212, the heavy
- the structural unit 214, the buffer 216, the loop filter 220, the decoded picture buffer (DPB) 230, and the prediction processing unit 260 form a backward signal path of the encoder, where the backward signal path of the encoder corresponds The signal path for the decoder (see decoder 30 in FIG. 3).
- the encoder 20 receives a picture 201 or an image block 203 of the picture 201 through, for example, an input 202, for example, a picture in a picture sequence forming a video or a video sequence.
- the image block 203 may also be referred to as a current picture block or a picture block to be coded
- the picture 201 may be referred to as a current picture or a picture to be coded (especially when the current picture is distinguished from other pictures in video coding, other pictures such as the same video sequence That is, the previously encoded and/or decoded pictures in the video sequence of the current picture are also included).
- An embodiment of the encoder 20 may include a segmentation unit (not shown in FIG. 2) for segmenting the picture 201 into a plurality of blocks such as image blocks 203, usually into a plurality of non-overlapping blocks.
- the segmentation unit can be used to use the same block size and corresponding grids that define the block size for all pictures in the video sequence, or to change the block size between pictures or subsets or picture groups, and divide each picture into The corresponding block.
- the prediction processing unit 260 of the encoder 20 may be used to perform any combination of the above-mentioned segmentation techniques.
- image block 203 is also or can be regarded as a two-dimensional array or matrix of sampling points with sample values, although its size is smaller than picture 201.
- the image block 203 may include, for example, one sampling array (for example, the brightness array in the case of black and white pictures 201) or three sampling arrays (for example, one brightness array and two chromaticity arrays in the case of color pictures) or An array of any other number and/or category 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 shown in FIG. 2 is used to encode the picture 201 block by block, for example, to perform encoding and prediction on each image block 203.
- the residual calculation unit 204 is used to calculate the residual block 205 based on the picture image block 203 and the prediction block 265 (other details of the prediction block 265 are provided below), for example, by subtracting the sample value of the picture image block 203 sample by sample (pixel by pixel) The sample values of the block 265 are depredicted to obtain the residual block 205 in the sample domain.
- the transform processing unit 206 is used to apply a transform such as discrete cosine transform (DCT) or discrete sine transform (DST) to the sample values of the residual block 205 to obtain transform coefficients 207 in the transform domain .
- the transform coefficient 207 may also be called a transform residual coefficient, and represents a residual block 205 in the transform domain.
- the transform processing unit 206 may be used to apply integer approximations of DCT/DST, such as the transform specified by AVS, AVS2, and AVS3. Compared with the orthogonal DCT transform, this integer approximation is usually scaled by a factor. In order to maintain the norm of the residual block processed by the forward and inverse transform, an additional scaling factor is applied as part of the transform process.
- the scaling factor is usually selected based on certain constraints, for example, the scaling factor is a power of two used for the shift operation, the bit depth of the transform coefficient, the accuracy, and the trade-off between implementation cost, and so on.
- a specific scaling factor can be specified for the inverse transform by the inverse transform processing unit 212 on the decoder 30 side (and a corresponding inverse transform by the inverse transform processing unit 212 on the encoder 20 side), and accordingly, The 20 side specifies the corresponding scaling factor for the positive transform by the transform processing unit 206.
- the quantization unit 208 is used to quantize the transform coefficient 207 by, for example, applying scalar quantization or vector quantization to obtain the quantized transform coefficient 209.
- the quantized transform coefficient 209 may also be referred to as the quantized residual coefficient 209.
- the quantization process can reduce the bit depth associated with some or all of the transform coefficients 207. For example, n-bit transform coefficients can be rounded down to m-bit transform coefficients during quantization, where n is greater than m.
- the degree of quantization can be modified by adjusting quantization parameters (QP). For example, for scalar quantization, different scales can be applied to achieve thinner or coarser quantization.
- QP quantization parameters
- a smaller quantization step size corresponds to a finer quantization
- a larger quantization step size corresponds to a coarser quantization.
- a suitable quantization step size can be indicated by a quantization parameter (QP).
- the quantization parameter may be an index of a predefined set of suitable quantization steps.
- smaller quantization parameters may correspond to fine quantization (smaller quantization step size)
- larger quantization parameters may correspond to coarse quantization (larger quantization step size)
- the quantization may include dividing by the quantization step size and the corresponding quantization or inverse quantization performed by, for example, inverse quantization 210, or may include multiplying the quantization step size.
- quantization parameters may be used to determine the quantization step size.
- the quantization step size can be calculated based on the quantization parameter using a fixed-point approximation including an equation of division. Additional scaling factors can be introduced for quantization and inverse quantization to restore the norm of the residual block that may be modified due to the scale used in fixed-point approximation of the equations for quantization step size and quantization parameter.
- the scale of inverse transform and inverse quantization may be combined.
- a custom quantization table can be used and signaled from the encoder to the decoder in a bitstream, for example. Quantization is a lossy operation, where the larger the quantization step, the greater the loss.
- the inverse quantization unit 210 is used to apply the inverse quantization of the quantization unit 208 on the quantized coefficients to obtain the inverse quantized coefficients 211, for example, based on or using the same quantization step size as the quantization unit 208, apply the quantization scheme applied by the quantization unit 208 Inverse quantization scheme.
- the inverse quantized coefficient 211 may also be referred to as an inverse quantized residual coefficient 211, which corresponds to the transform coefficient 207, although the loss due to quantization is usually not the same as the transform coefficient.
- the inverse transform processing unit 212 is used to apply the 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), in the sample domain
- the inverse transform block 213 is obtained.
- 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 (eg, summer 214) is used to add the inverse transform block 213 (ie, the reconstructed residual block 213) to the prediction block 265 to obtain the reconstructed block 215 in the sample domain, for example, The sample values of the reconstructed residual block 213 and the sample values of the prediction block 265 are added.
- 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, for example, intra prediction.
- the encoder may be used to use the unfiltered reconstructed blocks and/or corresponding sample values stored in the buffer unit 216 for any type of estimation and/or prediction, such as intra prediction.
- an embodiment of the encoder 20 may be configured such that the buffer unit 216 is used not only to store the reconstructed block 215 for intra prediction 254, but also for the loop filter unit 220 (not shown in FIG. 2) Out), and/or, for example, causing the buffer unit 216 and the decoded picture buffer unit 230 to form a buffer.
- Other embodiments may be used to use the filtered block 221 and/or blocks or samples from the decoded picture buffer 230 (neither shown in FIG. 2) as an input or basis for intra prediction 254.
- the loop filter unit 220 (or simply “loop filter” 220) is used to filter the reconstructed block 215 to obtain the filtered block 221, so as to smoothly perform pixel conversion or improve video quality.
- the loop filter unit 220 is intended to represent one or more loop filters, such as deblocking filters, sample-adaptive offset (SAO) filters, or other filters, such as bilateral filters, self-adaptive filters Adaptive loop filter (adaptive loop filter, ALF), or sharpening or smoothing filter, or collaborative filter.
- the loop filter unit 220 is shown as an in-loop filter in FIG. 2, in other configurations, the loop filter unit 220 may be implemented as a post-loop filter.
- the filtered block 221 may also be referred to as the filtered reconstructed block 221.
- the decoded picture buffer 230 may store the reconstructed coding block after the loop filter unit 220 performs a filtering operation on the reconstructed coding block.
- Embodiments of the encoder 20 may be used to output loop filter parameters (eg, sample adaptive offset information), for example, directly output or by the entropy encoding unit 270 or any other
- the entropy coding unit outputs after entropy coding, for example, so that the decoder 30 can receive and apply the same loop filter parameters for decoding.
- the decoded picture buffer (DPB) 230 may be a reference picture memory for storing reference picture data for the encoder 20 to encode video data.
- DPB 230 can be formed by any of a variety of memory devices, such as dynamic random access memory (dynamic random access (DRAM) (including synchronous DRAM (synchronous DRAM, SDRAM), magnetoresistive RAM (magnetoresistive RAM, MRAM), resistive RAM (resistive RAM, RRAM)) or other types of memory devices.
- DRAM dynamic random access
- the DPB 230 and the buffer 216 may be provided by the same memory device or separate memory devices.
- a decoded picture buffer (DPB) 230 is used to store the filtered block 221.
- the decoded picture buffer 230 may be further used to store other previous filtered blocks of the same current picture or different pictures such as previous reconstructed pictures, such as the previously reconstructed and filtered block 221, and may provide the complete previous The reconstructed ie decoded pictures (and corresponding reference blocks and samples) and/or partially reconstructed current pictures (and corresponding reference blocks and samples), for example for inter prediction.
- a decoded picture buffer (DPB) 230 is used to store the reconstructed block 215.
- the prediction processing unit 260 also known as the block prediction processing unit 260, is used to receive or acquire the image block 203 (current image block 203 of the current picture 201) and reconstructed picture data, such as the same (current) picture from the buffer 216 Reference samples and/or reference picture data 231 of one or more previously decoded pictures from the decoded picture buffer 230, and used to process such data for prediction, that is, to provide an inter prediction block 245 or The prediction block 265 of the intra prediction block 255.
- the mode selection unit 262 may be used to select a prediction mode (eg, intra or inter prediction mode) and/or the corresponding prediction block 245 or 255 used as the prediction block 265 to calculate the residual block 205 and reconstruct the reconstructed block 215.
- a prediction mode eg, intra or inter prediction mode
- the corresponding prediction block 245 or 255 used as the prediction block 265 to calculate the residual block 205 and reconstruct the reconstructed block 215.
- An embodiment of the mode selection unit 262 may be used to select a prediction mode (for example, from those prediction modes supported by the prediction processing unit 260), which provides the best match or the minimum residual (the minimum residual means Better compression in transmission or storage), or provide minimum signaling overhead (minimum signaling overhead means better compression in transmission or storage), or consider or balance both at the same time.
- the mode selection unit 262 may be used to determine a prediction mode based on rate distortion optimization (RDO), that is, to select a prediction mode that provides minimum bit rate distortion optimization, or to select a prediction mode in which the related rate distortion at least meets the prediction mode selection criteria .
- RDO rate distortion optimization
- the encoder 20 is used to determine or select the best or optimal prediction mode from the (predetermined) prediction mode set.
- the set of prediction modes 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 the developing H.266.
- non-directional modes such as DC (or mean) mode and planar mode
- directional modes as defined in the developing H.266.
- the set of inter prediction modes depends on the available reference pictures (ie, for example, the aforementioned at least partially decoded pictures stored in DBP 230) and other inter prediction parameters, for example, depending on whether the entire reference picture is used or only Use a part of the reference picture, for example the search window area surrounding the area of the current block, to search for the best matching reference block, and/or for example depending on whether pixel interpolation such as half-pixel and/or quarter-pixel interpolation is applied
- the set of inter prediction modes may include advanced motion vector (Advanced Motion Vector Prediction, AMVP) mode and merge mode.
- AMVP Advanced Motion Vector Prediction
- the set of inter prediction modes may include the control point-based AMVP mode improved in the embodiment of the present application, and the improved control point-based merge mode.
- the intra prediction unit 254 may be used to perform any combination of inter prediction techniques described below.
- the embodiments of the present application may also apply skip mode and/or direct mode.
- the prediction processing unit 260 may be further used to split the image block 203 into smaller block partitions or sub-blocks, for example, iteratively using quad-tree (QT) segmentation, binary-tree (BT) segmentation Or triple-tree (TT) or extended quad-tree (EQT, Extended Quad-Tree) segmentation, or any combination thereof, and for performing predictions for each of block partitions or sub-blocks, for example, where mode selection This includes selecting the tree structure of the divided image block 203 and selecting the prediction mode applied to each of the block partitions or sub-blocks.
- QT quad-tree
- BT binary-tree
- TT triple-tree
- EQT Extended Quad-Tree
- 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 acquire a picture image block 203 (current picture image block 203 of the current picture 201) and a decoded picture 231, or at least one or more previously reconstructed blocks, for example, one or more other/different
- the reconstructed block of the previously decoded picture 231 is used for motion estimation.
- the video sequence may include the current picture and the 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 that form the video sequence.
- the encoder 20 may be used to select a reference block from multiple reference blocks of the same or different pictures in multiple other pictures, and provide a reference picture and/or provide a reference to a motion estimation unit (not shown in FIG. 2)
- the offset (spatial offset) between the position of the block (X, Y coordinates) and the position of the current block is used as an inter prediction parameter. This offset is also called motion vector (MV).
- the motion compensation unit is used to acquire inter prediction parameters and perform inter prediction based on or using inter prediction parameters to obtain inter prediction blocks 245.
- the motion compensation performed by the motion compensation unit may include extracting or generating a prediction block based on a motion/block vector determined by motion estimation (possibly performing interpolation of sub-pixel accuracy). Interpolation filtering can generate additional pixel samples from known pixel samples, potentially increasing the number of candidate prediction blocks that can be used to encode picture blocks.
- the motion compensation unit 246 may locate the prediction block pointed to by the motion vector in a reference picture list. Motion compensation unit 246 may also generate syntax elements associated with blocks and video slices for use by decoder 30 when decoding picture blocks of video slices.
- the above inter prediction unit 244 may transmit a syntax element to the entropy encoding unit 270, where the syntax element includes inter prediction parameters (such as an inter prediction mode selected for the current block prediction after traversing multiple inter prediction modes Instructions).
- inter prediction parameters such as an inter prediction mode selected for the current block prediction after traversing multiple inter prediction modes Instructions.
- the decoding terminal 30 may directly use the default prediction mode for decoding. It can be understood 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 acquire, for example, a picture block 203 (current picture block) that receives the same picture and one or more previously reconstructed blocks, such as reconstructed neighboring blocks, for intra estimation.
- the encoder 20 may be used to select an intra prediction mode from a plurality of (predetermined) intra prediction modes.
- Embodiments of the encoder 20 may be used to select an intra prediction mode based on optimization criteria, for example, based on a minimum residual (eg, an intra prediction mode that provides the prediction block 255 most similar to the current picture block 203) or minimum rate distortion.
- a minimum residual eg, an intra prediction mode that provides the prediction block 255 most similar to the current picture block 203
- minimum rate distortion e.g., a minimum rate distortion
- the intra prediction unit 254 is further used to determine the intra prediction block 255 based on the intra prediction parameters of the intra prediction mode as selected. In any case, after selecting the intra-prediction mode for the block, the intra-prediction unit 254 is also used to provide the intra-prediction parameters to the entropy encoding unit 270, that is, to provide an indication of the selected intra-prediction mode for the block Information. In one example, the intra prediction unit 254 may be used to perform any combination of intra prediction techniques.
- the above-mentioned intra-prediction unit 254 may transmit a syntax element to the entropy encoding unit 270, where the syntax element includes intra-prediction parameters (such as the intra-prediction mode selected for the current block prediction after traversing multiple intra-prediction modes) Instructions).
- the intra prediction parameters may not be carried in the syntax element.
- the decoding terminal 30 may directly use the default prediction mode for decoding.
- the entropy coding unit 270 is used to convert the entropy coding algorithm or scheme (for example, variable length coding (VLC) scheme, context adaptive VLC (context adaptive VLC, CAVLC) scheme, arithmetic coding scheme, context adaptive binary arithmetic) Encoding (context adaptive) binary arithmetic coding (CABAC), syntax-based context-adaptive binary arithmetic coding (SBAC), probability interval entropy (probability interval interpartitioning entropy, PIPE) encoding or other entropy Coding method or technique) applied to a single or all of the quantized residual coefficients 209, inter prediction parameters, intra prediction parameters, and/or loop filter parameters (or not applied) to obtain the output 272 to For example, the encoded picture data 21 output in the form of an encoded bit stream 21.
- VLC variable length coding
- CABAC context adaptive binary arithmetic
- SBAC syntax-based context-adaptive binary arithmetic coding
- the encoded bitstream can be transmitted to the video decoder 30 or archived for later transmission or retrieval by the video decoder 30.
- the entropy encoding unit 270 may also be used to entropy encode other syntax elements of the current video slice being encoded.
- video encoder 20 may be used to encode video streams.
- the non-transform based encoder 20 may directly quantize the residual signal without the transform processing unit 206 for certain blocks or frames.
- the encoder 20 may have a quantization unit 208 and an inverse quantization unit 210 combined into a single unit.
- the encoder 20 may be used to implement the encoding method described in the following embodiments.
- the video encoder 20 can directly quantize the residual signal without processing by the transform processing unit 206, and accordingly, without processing by the inverse transform processing unit 212; or, for some For 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, quantization unit 208, inverse quantization unit 210, and inverse transform processing unit 212; or, the video encoder 20 may convert The reconstructed image block is directly stored as a reference block without being processed by the 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 encoding, the transform processing unit 206, quantization unit 208, inverse quantization unit 210, and inverse transform processing unit 212 are optional. It should be understood that the inter prediction unit 244 and the intra prediction unit 254 may be selectively enabled according to different application scenarios.
- FIG. 3 shows a schematic/conceptual block diagram of an example of a decoder 30 for implementing an embodiment of the present application.
- the video decoder 30 is used to receive encoded picture data (eg, encoded bitstream) 21, for example, encoded by the encoder 20, to obtain the decoded picture 231.
- encoded picture data eg, encoded bitstream
- video decoder 30 receives video data from video encoder 20, such as an encoded video bitstream and associated syntax elements representing picture blocks of the encoded video slice.
- the decoder 30 includes an entropy decoding unit 304, an inverse quantization unit 310, an inverse transform processing unit 312, a reconstruction unit 314 (such as a summer 314), a buffer 316, a loop filter 320, a The decoded picture buffer 330 and the 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.
- video decoder 30 may perform a decoding pass that is generally inverse to the encoding pass described with reference to video encoder 20 of FIG. 2.
- the entropy decoding unit 304 is used to perform entropy decoding on the encoded picture data 21 to obtain, for example, quantized coefficients 309 and/or decoded encoding parameters (not shown in FIG. 3), for example, inter prediction, intra prediction parameters , Any or all of the loop filter parameters and/or other syntax elements (decoded).
- the entropy decoding unit 304 is further used to forward inter prediction parameters, intra prediction parameters, and/or other syntax elements to the prediction processing unit 360.
- Video decoder 30 may receive syntax elements at the video slice level and/or the video block level.
- the inverse quantization unit 310 may be functionally the same as the inverse quantization unit 110
- the inverse transform processing unit 312 may be functionally the same as the inverse transform processing unit 212
- the reconstruction unit 314 may be functionally the same as the reconstruction unit 214
- the buffer 316 may be functionally
- the loop filter 320 may be functionally the same as the loop filter 220
- the decoded picture buffer 330 may be functionally the same as the decoded picture buffer 230.
- the prediction processing unit 360 may include an inter prediction unit 344 and an intra prediction unit 354, where the inter prediction unit 344 may be similar in function to the inter prediction unit 244, and the intra prediction unit 354 may be similar in function to the intra prediction unit 254 .
- the prediction processing unit 360 is generally used to perform block prediction and/or obtain the prediction block 365 from the encoded data 21, and to receive or obtain prediction-related parameters and/or information about the entropy decoding unit 304 (explicitly or implicitly). Information about the selected prediction mode.
- the intra prediction unit 354 of the prediction processing unit 360 is used to signal-based the intra prediction mode and the previous decoded block from the current frame or picture Data to generate a prediction block 365 for the picture block of the current video slice.
- the inter prediction unit 344 eg, motion compensation unit
- Other syntax elements generate a prediction block 365 for the video block of the current video slice.
- a prediction block may be generated from a reference picture in a reference picture list.
- the video decoder 30 may construct the reference frame lists: list 0 and list 1 based on the reference pictures stored in the DPB 330 using default construction techniques.
- the prediction processing unit 360 is used to determine the prediction block for the video block of the current video slice by parsing the motion vector and other syntax elements, and use the prediction block to generate the prediction block for the current video block being decoded.
- the prediction processing unit 360 uses some received syntax elements to determine the prediction mode (eg, intra or inter prediction) of the video block used to encode the video slice, and the inter prediction slice type ( For example, B slice, P slice, or GPB slice), construction information for one or more of the reference picture lists for slices, motion vectors for each inter-coded video block for slices, The inter prediction status and other information of each inter-coded video block of the slice to decode the video block of the current video slice.
- the prediction mode eg, intra or inter prediction
- the inter prediction slice type For example, B slice, P slice, or GPB slice
- the syntax elements received by the video decoder 30 from the bitstream include an adaptive parameter set (adaptive parameter set, APS), a sequence parameter set (SPS), and a picture parameter set (picture parameter (set, PPS) or the syntax element in one or more of the stripe headers.
- an adaptive parameter set adaptive parameter set
- SPS sequence parameter set
- PPS picture parameter set
- the inverse quantization unit 310 may be used to inverse quantize (ie, inverse quantize) the quantized transform coefficients provided in the bitstream and decoded by the entropy decoding unit 304.
- the inverse quantization process may include using the quantization parameters calculated by the video encoder 20 for each video block in the video slice to determine the degree of quantization that should be applied and also determine the degree of inverse quantization that should be applied.
- the inverse transform processing unit 312 is used to apply an inverse transform (eg, inverse DCT, inverse integer transform, or conceptually similar inverse transform process) to the transform coefficients to generate a residual block in the pixel domain.
- an inverse transform eg, inverse DCT, inverse integer transform, or conceptually similar inverse transform process
- the reconstruction unit 314 (eg, summer 314) is used to add the inverse transform block 313 (ie, the reconstructed residual block 313) to the prediction block 365 to obtain the reconstructed block 315 in the sample domain, for example by The sample values of the reconstructed residual block 313 and the sample values of the prediction block 365 are added.
- the loop filter unit 320 (during the encoding cycle or after the encoding cycle) is used to filter the reconstructed block 315 to obtain the filtered block 321 to smoothly perform pixel conversion or improve video quality.
- the loop filter unit 320 may be used to perform any combination of filtering techniques described below.
- the loop filter unit 320 is intended to represent one or more loop filters, such as deblocking filters, sample-adaptive offset (SAO) filters, or other filters, such as bilateral filters, Adaptive loop filter (adaptive loop filter, ALF), or sharpening or smoothing filter, or collaborative filter.
- the loop filter unit 320 is shown as an in-loop filter in FIG. 3, in other configurations, the loop filter unit 320 may be implemented as a post-loop filter.
- the decoded video block 321 in a given frame or picture is then stored in a decoded picture buffer 330 that stores reference pictures for subsequent motion compensation.
- the decoder 30 is used, for example, to output the decoded picture 31 through the output 332 for presentation to the user or for the user to view.
- video decoder 30 may be used to decode the compressed bitstream.
- the decoder 30 may generate the output video stream without the loop filter unit 320.
- the non-transform based decoder 30 may directly inversely quantize the residual signal without the inverse transform processing unit 312 for certain blocks or frames.
- the video decoder 30 may have an inverse quantization unit 310 and an inverse transform processing unit 312 combined into a single unit.
- the decoder 30 is used to implement the decoding method described in the embodiments below.
- the block division operation may be performed by the prediction processing unit 360 or by an independent unit (not shown in the figure).
- the prediction processing unit 360 may be used to split the image block 203 into smaller block partitions or sub-blocks, for example, by iteratively using quad-tree (QT) segmentation, binary-tree (BT) segmentation or Triple-tree (TT) or extended quad-tree (EQT, Extended-Quad-Tree) segmentation, or any combination thereof, the partitioning method can be determined based on preset rules or based on parsed syntax for indicating the partitioning method Element determination, and for performing prediction, for example, for each of the block partitions or sub-blocks, where mode selection includes selecting a tree structure of the divided image block 203 and selecting a prediction mode applied to each of the block partitions or sub-blocks.
- QT quad-tree
- BT binary-tree
- TT Triple-tree
- EQT Extended-Quad-Tree
- video decoder 30 may be used to decode the encoded video bitstream.
- the video decoder 30 may generate an output video stream without processing by the filter 320; or, for some image blocks or image frames, the entropy decoding unit 304 of the video decoder 30 does not decode the quantized coefficients, and accordingly does not It needs to be processed by the inverse quantization unit 310 and the inverse transform processing unit 312.
- the loop filter 320 is optional; and for lossless compression, the inverse quantization unit 310 and the inverse transform processing unit 312 are optional.
- the inter prediction unit and the intra prediction unit may be selectively enabled.
- the processing results for a certain link can be further processed and output to the next link, for example, in interpolation filtering, motion vector derivation or loop filtering, etc. After the link, the results of the corresponding link are further clipped or shift shifted.
- the motion vectors of the control points of the current image block derived from the motion vectors of adjacent affine coding blocks, or the motion vectors of the sub-blocks of the current image block derived may be further processed, and this application does not do this limited.
- the value range of the motion vector is constrained to be within a certain bit width. Assuming that the allowed bit width of the motion vector is bitDepth, the range of the motion vector is -2 ⁇ (bitDepth-1) ⁇ 2 ⁇ (bitDepth-1)-1, where the " ⁇ " symbol indicates a power. If bitDepth is 16, the value ranges from -32768 to 32767. If bitDepth is 18, the value ranges from -131072 to 131071.
- the values of the motion vectors are constrained so that the maximum difference between the integer parts of the four 4x4 sub-blocks MV does not exceed N pixels, for example no more than one pixel.
- ux (vx+2 bitDepth )%2 bitDepth
- vx is the horizontal component of the motion vector of the image block or the sub-block of the image block
- vy is the vertical component of the motion vector of the image block or the sub-block of the image block
- ux and uy are intermediate values
- bitDepth represents the bit width
- the value of vx is -32769, and 32767 is obtained by the above formula. Because in the computer, the value is stored in the form of two's complement, the complement of -32769 is 1,0111,1111,1111,1111 (17 bits), the computer handles the overflow as discarding the high bit, then the value of vx If it is 0111,1111,1111,1111, it is 32767, which is consistent with the result obtained by formula processing.
- vx Clip3(-2bitDepth-1,2bitDepth-1-1,vx)
- vx is the horizontal component of the motion vector of the image block or the sub-block of the image block
- vy is the vertical component of the motion vector of the image block or the sub-block of the image block
- x, y, and z respectively correspond to the MV clamp
- FIG. 4 is a schematic structural diagram of a video decoding device 400 (for example, a video encoding device 400 or a video decoding device 400) provided by an embodiment of the present application.
- the video coding device 400 is suitable for implementing the embodiments described herein.
- the video coding device 400 may be a video decoder (eg, decoder 30 of FIG. 1A) or a video encoder (eg, encoder 20 of FIG. 1A).
- the video decoding device 400 may be one or more components in the decoder 30 of FIG. 1A or the encoder 20 of FIG. 1A described above.
- the video decoding apparatus 400 includes: an inlet port 410 for receiving data and a receiving unit (Rx) 420, a processor for processing data, a logic unit or a central processing unit (CPU) 430, and a transmitter unit for transmitting data (Tx) 440 and exit port 450, and a memory 460 for storing data.
- the video decoding device 400 may further include a photoelectric conversion component and an electro-optical (EO) component coupled to the inlet port 410, the receiver unit 420, the transmitter unit 440, and the outlet port 450 for the outlet or inlet of the optical signal or the electrical signal.
- EO electro-optical
- the processor 430 is implemented by hardware and software.
- the processor 430 may be implemented as one or more CPU chips, cores (eg, multi-core processors), FPGA, ASIC, and DSP.
- the processor 430 communicates with the inlet port 410, the receiver unit 420, the transmitter unit 440, the outlet port 450, and the memory 460.
- the processor 430 includes a decoding module 470 (for example, an encoding module 470 or a 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 application. For example, the encoding/decoding module 470 implements, processes, or provides various encoding operations.
- the encoding/decoding module 470 provides a substantial improvement in the function of the video decoding device 400 and affects the conversion of the video decoding device 400 to different states.
- the encoding/decoding module 470 is implemented with instructions stored in the memory 460 and executed by the processor 430.
- the memory 460 includes one or more magnetic disks, tape drives, and solid-state drives, and can be used as an overflow data storage device for storing programs when these programs are selectively executed, as well as instructions and data read during program execution.
- the memory 460 may be volatile and/or non-volatile, and may be read only memory (ROM), random access memory (RAM), random access memory (ternary content-addressable memory (TCAM), and/or static Random Access Memory (SRAM).
- FIG. 5 is a simplified block diagram of an apparatus 500 that can be used as either or both of the source device 12 and the destination device 14 in FIG. 1A according to an exemplary embodiment.
- the device 500 can implement the technology of the present application.
- FIG. 5 is a schematic block diagram of an implementation manner of an encoding device or a decoding device (referred to simply as a decoding device 500) according to an embodiment of the present application.
- the decoding device 500 may include a processor 510, a memory 530, and a bus system 550.
- the processor and the memory are connected through a bus system, the memory is used to store instructions, and the processor is used to execute the instructions stored in the memory.
- the memory of the decoding device stores the program code, and the processor can call the program code stored in the memory to perform various video encoding or decoding methods described in this application, especially various new decoding methods. In order to avoid repetition, they are not described in detail here.
- the processor 510 may be a central processing unit (Central Processing Unit, referred to as "CPU"), and the processor 510 may also be other general-purpose processors, digital signal processors (DSPs), dedicated integrated Circuit (ASIC), ready-made programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
- the 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 storage device may also be used as the memory 530.
- the memory 530 may include code and data 531 accessed by the processor 510 using the bus 550.
- the memory 530 may further include an operating system 533 and an application program 535 including at least one program that allows the processor 510 to perform the video encoding or decoding method described in the present application (in particular, the decoding method described in the present application).
- the application program 535 may include applications 1 to N, which further include a video encoding or decoding application (referred to as a video decoding application) that performs the video encoding or decoding method described in this application.
- the bus system 550 may also include a power bus, a control bus, and a status signal bus. However, for clarity, various buses are marked as the bus system 550 in the figure.
- the decoding device 500 may also include one or more output devices, such as a display 570.
- the display 570 may be a tactile display that merges the display with a tactile unit that operably senses touch input.
- the display 570 may be connected to the processor 510 via the bus 550.
- the video coding standard divides a frame of images into non-overlapping coding tree units (CTU).
- the size of the CTU can be set to 64 ⁇ 64 (the size of the CTU can also be set to other values, such as the CTU size increased to 128 ⁇ 128 or 256 ⁇ 256, etc.).
- a 64 ⁇ 64 CTU contains a rectangular pixel lattice of 64 columns with 64 pixels in each column, and each pixel contains a luminance component or/and a chrominance component.
- CTU coding tree unit (coding tree unit), an image is composed of multiple CTUs, a CTU usually corresponds to a square image area, including the brightness pixels and chrominance pixels in the image area (or may only contain brightness pixels , Or it may only contain chroma pixels); CTU also contains syntax elements that indicate how to divide the CTU into at least one coding unit (CU), and a method of decoding each coding unit to obtain a reconstructed image.
- CU coding unit
- CU coding unit, usually corresponding to an A ⁇ B rectangular area, containing 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
- the values of A and B are usually integer powers of 2, such as 256, 128, 64, 32, 16, 8, and 4.
- An encoding unit can decode to obtain a reconstructed image of an A ⁇ B rectangular area through decoding.
- the decoding process usually includes prediction, inverse quantization, and inverse transform to generate a predicted image and a residual. The predicted image and the residual are superimposed and reconstructed. image.
- Quad-tree A tree-like structure in which a node can be divided into four child nodes.
- the video coding standard adopts the CTU division method based on the quadtree: CTU is used as the root node, each node corresponds to a square area, that is, the square area is divided into four square areas of the same size (the length and width are divided respectively) Half of the front area length and width), each area corresponds to a node, as shown in Figure 6 (a).
- a node can no longer be divided (at this time its corresponding area is a CU), or it can be divided into the next level of nodes in the manner of QT, BT, TT or EQT.
- Binary tree (BT, Binary Tree): A tree structure, a node can be divided into two child nodes. There are two ways to divide into two nodes: 1) Horizontal dichotomy, divide the area corresponding to the node into two areas of the same size, the top and the bottom, each area corresponds to a node, as shown in Figure 6(b); Or 2) Vertical dichotomy, divide the area corresponding to the node into two areas of the same size on the left and right, each area corresponds to a node, as shown in Figure 6(c).
- a node on a binary tree structure may not be divided (in this case, the corresponding area is a CU), or the node may be further divided into nodes at the next level according to BT, TT, or EQT.
- Ternary tree a tree structure
- a node can be divided into three child nodes.
- a node on a tri-tree structure may not be divided, or the node may be divided into three nodes at the next level.
- a node on a trigeminal tree structure may not be divided (in this case, the corresponding area is a CU), or the node may be further divided into the next level according to BT, TT, or EQT. node.
- Extended quad-tree A structure of I-shaped division, a node can be divided into four sub-nodes. There are two ways to divide into three nodes: 1) Horizontal quartering, divide the area corresponding to the node into three areas: upper, middle, and lower, each area corresponds to a node, of which upper, middle left, middle right, The heights of the next three areas are 1/4, 1/2, 1/2, 1/4 of the node height, and the widths of the middle left and right are 1/2, 1/2 of the height of the node, as shown in Figure 6(f ) As shown; or 2) vertical quartering, the area corresponding to the node is divided into three areas of left, middle upper, middle lower, and right, each area corresponds to a node, and the three areas of left, middle and right The widths are 1/4, 1/2, 1/2, and 1/4 of the node height, respectively, and the upper, middle, and lower widths are 1/2 and 1/2 of the node height, as shown in Figure 6(g). In the following ways to divide into three nodes: 1) Horizontal
- Video decoding (video decoding): the process of restoring the video stream to a reconstructed image according to specific grammar rules and processing methods.
- Video encoding The process of compressing an image sequence into a code stream
- Video encoding The general term for video encoding and video decoding.
- the Chinese translation is the same as video encoding.
- VTM New codec reference software developed by JVET.
- the video coding standard divides a frame of images into non-overlapping coding tree units (CTU).
- the size of the CTU can be set to 64 ⁇ 64 (the size of the CTU can also be set to other values, such as the CTU size increased to 128 ⁇ 128 or 256 ⁇ 256, etc.).
- a 64 ⁇ 64 CTU contains a rectangular pixel lattice of 64 columns with 64 pixels in each column, and each pixel contains a luminance component or/and a chrominance component.
- the CTU is used as the root node of the quad-tree, and the CTU is recursively divided into several leaf nodes (leaf) according to the quad-tree division method node).
- a node corresponds to an image area. If the node is not divided, the node is called a leaf node, and the corresponding image area forms a CU; if the node continues to be divided, the image area corresponding to the node is divided into four areas of the same size (which The length and width are each half of the divided area), each area corresponds to a node, you need to determine whether these nodes will be divided.
- Whether a node is divided is indicated by the split flag bit split_cu_flag corresponding to this node in the code stream.
- the quad-tree level (qtDepth) of the root node is 0, and the quad-tree level of the child node is +1 of the quad-tree level of the parent node.
- the size and shape of the node in the following refers to the size and shape of the image area corresponding to the node.
- the leaf node When a node is parsed as a leaf node, the leaf node is a CU, and further parses the coding information corresponding to the CU (including CU prediction mode, transform coefficients and other information, such as coding_unit () syntax structure), and then according to these coding information Perform decoding processing such as prediction, inverse quantization, inverse transform, and loop filtering on the CU to generate a reconstructed image corresponding to the CU.
- the quadtree structure allows the CTU to be divided into a group of CUs of appropriate size according to the local characteristics of the image, for example, smooth regions are divided into larger CUs, and texture-rich regions are divided into smaller CUs.
- a CTU divided into a group of CUs corresponds to a coding tree (coding tree).
- the coding tree that the CTU should use is usually determined by the rate-distortion optimization (RDO) technology of the encoder.
- RDO rate-distortion optimization
- the encoder tries a variety of CTU division methods, each of which corresponds to a rate-distortion cost (RD cost); the encoder compares the RD costs of various tried division methods and finds the division method with the smallest RD cost as the CTU
- the optimal division method is used for the actual coding of the CTU.
- the various CTU division methods tried by the encoder need to comply with the division rules specified by the decoder, so that these can be correctly recognized by the decoder.
- Intra Block Copy is an intra prediction technique that looks for the same block in the current screen content.
- the syntax element pred_mode_ibc_flag described in Table 2 may be used to indicate whether the current coding unit uses the IBC prediction mode.
- BT binary tree
- EQT extended quad-tree
- Binary tree division divides a node into two child nodes. There are two specific ways to divide a binary tree:
- Extended quadtree division divides a node into four sub-nodes. There are two specific ways to expand a quadtree:
- the area corresponding to the node is divided into three areas: left, middle upper, middle lower, and right, each area corresponds to a node, and the width of the left, middle, and right areas is the height of the node. 1/4, 1/2, 1/2, 1/4, the upper middle and lower width are 1/2, 1/2 of the node height, as shown in Figure 6(g).
- the QT cascade BT/EQT division method that is, the nodes on the first-level coding tree can only be divided into child nodes using QT, the leaf nodes of the first-level coding tree are the root nodes of the second-level coding tree; the second-level coding tree The nodes on can be divided into child nodes using one of the BT or EQT division methods; the leaf nodes of the second-level coding tree are coding units. It should be noted that when the leaf node is BT or EQT, the leaf node can only use BT or EQT, but not QT.
- Binary tree division divides a node into two child nodes. There are two specific ways to divide a binary tree:
- the trigeminal tree division divides a node into two sub-nodes. There are two specific ways to divide the bifurcation tree:
- Horizontal three-point divide the area corresponding to the node into three areas: upper, middle, and lower, each area corresponds to a node, and the heights of the upper, middle, and lower areas are 1/4, 1/ 1 of the height of the node, respectively 2, 1/4, as shown in Figure 6(d);
- the area corresponding to the node is divided into left, center and right areas, each area corresponds to a node, and the width of the left, center and right areas is 1/4 and 1 of the node height respectively /2, 1/4, as shown in Figure 6(e)
- QT cascade BT/TT division method referred to as QT-BTT
- the nodes on the first level coding tree can only be divided into child nodes using QT
- 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 child nodes using one of the four division methods: horizontal dichotomy, vertical dichotomy, horizontal trisection, and vertical trisection; the leaf nodes of the second-level coding tree are encoding unit.
- Part of the CU-level syntax structure can be shown in Table 1. If the current node is no longer divided into child nodes, the current node is the coding unit, and the prediction block of the coding unit is parsed according to the following syntax structure.
- skip_flag is a flag of skip mode
- a value of 1 indicates that the current CU uses the skip mode
- a value of 0 indicates that the current CU does not use the skip mode.
- merge_flag is a direct mode flag. A value of 1 indicates that the current CU uses the merge mode; a value of 0 indicates that the merge mode is not used.
- cu_pred_mode is the coding unit prediction mode flag. A value of 1 indicates that the current prediction unit uses the intra prediction mode; a value of 0 indicates that the current prediction unit uses the normal inter prediction mode.
- Table 2 is just an example, in which the meaning of skip_flag in Table 1 is the same, and the meaning of pred_mode_flag is the same as the meaning of cu_pred_mode in Table 1.
- cu_skip_flag is a flag of skip mode, a value of 1 indicates that the current CU uses the skip mode, and a value of 0 indicates that the current CU does not use the skip mode.
- general_merge_flag is the fusion mode flag. A value of 1 indicates that the current CU uses the fusion mode; a value of 0 indicates that the fusion mode is not used.
- pred_mode_flag is a coding unit prediction mode flag. A value of 1 indicates that the current coding unit uses the intra prediction mode; a value of 0 indicates that the current coding unit uses the normal inter prediction mode. If pred_mode_flag is 1, CuPredMode[x0][y0] is CuPredMode[x0][y0] is MODE_INTRA; if pred_mode_flag is 0, CuPredMode[x0][y0] is MODE_INTER.
- pred_mode_ibc_flag When pred_mode_ibc_flag is 1, it indicates that the current coding unit uses the IBC prediction mode, and a value of 0 indicates that the current coding unit does not use the IBC prediction mode. If pred_mode_ibc_flag is 1, then CuPredMode[x0][y0] is MODE_IBC.
- CuPredMode[x0][y0] represents the prediction mode of the current coding unit
- (x0, y0) represents the position of the current coding unit in the current image.
- An 8xM (or Mx8) size node is divided into two nodes of 4xM (or Mx4) size using vertical bisection (or horizontal dichotomy); similarly, a 16xM (or Mx16) size node uses vertical expansion of four After dividing (or horizontally expanding by four points), four 4xM (or Mx4) child nodes and one 8xN (or Nx8) child node will be generated. Similarly, when a 16xM (or Mx16) size node is divided by a vertical three-point (or horizontal three-point), two 4xM (or Mx4) child nodes and an 8xM (or Nx8) child node will be generated.
- the resolution of the chroma component is 1/2 of the luma component, that is, a 4xM node contains a 4xM luma block and two 2x (M/2) chroma blocks.
- the processing cost of small blocks is relatively high.
- this division method will produce 2x2, 2x4 and other small blocks, which is not conducive to the implementation of hardware decoders.
- the processing complexity of the small block is relatively high, specifically including the following three aspects.
- Intra prediction problem In order to improve the processing speed in hardware design, intra prediction usually processes 16 pixels at a time, while 2x2, 2x4, 4x2 and other small blocks contain less than 16 pixels, which reduces the processing performance of intra prediction .
- Coefficient coding problem The transform coefficient coding in HEVC is based on a coefficient group (CG) containing 16 coefficients, and the small blocks of 2x2, 2x4, and 4x2 contain 4 or 8 transform coefficients, which leads to the need to increase the inclusion
- the coefficient groups of 4 coefficients and 8 coefficients support the coding of these small blocks, thus increasing the complexity of implementation.
- Inter-frame prediction of small blocks requires high data bandwidth and also affects the processing speed of decoding.
- a node uses a division method to continue division and one of the child nodes contains a chroma block with a side length of 2, then the brightness block contained in the child node continues to be divided using this division.
- the included chroma blocks are no longer divided. In this way, it is possible to avoid the generation of chroma blocks with a side length of 2, reducing the maximum throughput of the decoder, which is beneficial to the decoder.
- a method for determining the chroma block prediction mode according to the luma block prediction mode is proposed, which effectively improves the coding efficiency.
- the image prediction method provided by the present application can be applied to the video encoder 18 or the video decoder 24 shown in FIG. 8. It should be noted that the individual steps in the following embodiments are only performed in the video decoder 24, and the corresponding positions in the following will be specifically described.
- FIG. 9 is a schematic flowchart of a first image prediction method provided by an embodiment of the present application.
- the image prediction method provided by this embodiment includes the following steps:
- Step 101 Obtain the division mode of the current node.
- the division information of the current node is analyzed, and the division information is used to indicate whether to divide the current node or not. If the division information indicates to divide the current node, obtain the division mode of the current node.
- the current node division method includes at least one of quadtree division, vertical bisection, horizontal bisection, vertical trisection, and horizontal trisection. Of course, it may be other division modes, which is not specifically limited in this embodiment. .
- the division information of the current node can be transmitted in the code stream. By parsing the corresponding syntax element in the code stream, the division information of the current node can be parsed and the specific division method can be determined.
- the current node division method can also be determined based on other preset rules, which is not specifically limited in this embodiment.
- the split information specifically includes the way to split the luminance block included in the current node, and/or the chroma included in the current node How the blocks are divided.
- the manner of dividing the luminance block included in the current node and the manner of dividing the chrominance block included in the current node may be the same or different, and this embodiment is not specifically limited.
- the division information is used to indicate that a quadtree division is used for both the luma block and the chroma block of the current node.
- the division information is used to indicate that a quadtree division is used for the luma block of the current node, and vertical dichotomy is used for the chroma block of the current node.
- Step 102 Determine whether dividing the current node based on the dividing mode will obtain an image block with a preset size.
- the image block with a preset size may be a brightness block with a size smaller than a threshold, and the threshold may be 128, 64, or 32 luma sampling points, or 32, 16, or 8 chroma sampling points.
- the size of the current node may be greater than or equal to the threshold.
- step 103 is performed; in the case where it is determined that dividing the current node based on the division mode will not result in an image block with a preset size ,Go to step 104.
- Step 103 Use intra prediction for all coding blocks covered by the current node, or use inter prediction for all coding blocks covered by the current node.
- the current node in this embodiment may be understood as an image area or image block corresponding to the node to be processed or divided. All code blocks covered by the current node can be understood as all code blocks located in the current node area. All coding blocks in this embodiment include a luma coding block and a chroma coding block that are divided or not divided for the current node. Among them, the coding block may also be a coding unit (coding unit).
- the intra prediction can be performed using a normal intra prediction mode (intra mode) for prediction, or an IBC (intra block copy) mode for prediction.
- intra mode normal intra prediction mode
- IBC intra block copy
- intra prediction is used for all coding blocks covered by the current node instead of inter prediction.
- using intra prediction on all coding blocks covered by the current node may include:
- the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; the chroma block of the current node is not Divide and get a chroma coding block (referred to as chroma CB)
- the N luminance coding tree nodes can be restricted to not continue to be divided, or do not make this restriction. If the luminance coding tree node continues to be divided, then the division method is analyzed to recursively divide. When the luminance coding tree node is no longer divided, it corresponds to a luminance coding block (abbreviated as luminance CB).
- luminance CB a luminance coding block
- the luma CB uses intra prediction to obtain a luma prediction block corresponding to the luma CB.
- the chroma CB uses intra prediction to obtain a chroma prediction block corresponding to the chroma CB, and the size of the chroma prediction block and the chroma CB are the same.
- using inter prediction on all coding blocks covered by the current node may include:
- the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; the chroma block of the current node is not Divide and get a chroma coding block (referred to as chroma CB)
- the luminance block included in the current node is divided according to the division mode of the current node,
- the chroma block of the current node is no longer divided.
- using inter prediction on all coding blocks covered by the current node may include:
- the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes;
- the chroma block is divided into ways to obtain M chroma coding tree nodes.
- N and M are positive integers, and N and M may be the same or different.
- the division may not be continued, or the restriction is not made.
- N luma coding tree nodes correspond to N luma CBs of the current node
- M chroma coding tree nodes correspond to M chroma CBs of the current node.
- N luma CBs use inter prediction to obtain corresponding luma prediction blocks
- M chroma CBs use inter prediction to obtain corresponding chroma prediction blocks.
- using inter prediction for all coding blocks covered by the current node may include:
- the subnodes include the luma block and the chroma block. Determine whether to divide the subnodes of the current node based on the subdivision mode to obtain the luma block with the first preset size; In the case where the sub-nodes of the current node are divided by the sub-division method to obtain a brightness block having the first preset size, the sub-nodes of the current node are divided by a division method other than the sub-division method to obtain the corresponding coding block , And use inter prediction for the corresponding coding block, or use the inter prediction of the child node of the current node as the coding block.
- the child node is divided according to the child node division method of the current node, a luminance block with a first preset size (4x4) is generated, then the child node division method is not allowed, or, the The child nodes cannot continue to be divided, or the child nodes can be divided using a division method other than the sub division method. For example, if the size of the current node is 8x8 and the horizontal binary tree (or vertical binary tree) division is used to produce two 8x4 (or two 4x8) nodes, the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, At this time, the 8x4 (or 4x8) nodes cannot continue to be divided.
- Step 104 Divide the current node by using the current node division mode, without limiting the prediction modes of all coding blocks covered by the current node.
- the luminance block of the current node is divided by the division method of the luminance block of the current node
- the chroma block of the current node is divided by the division method of the chroma block of the current node.
- the prediction mode that does not limit all the coding blocks covered by the current node in step 104 can be understood as: all the coding blocks covered by the current node may not be predicted according to the same prediction mode, that is, the prediction mode of each coding block is parsed, Each coded block is predicted according to the parsed prediction mode.
- step 103 or step 104 the method further includes:
- Step 105 Analyze the prediction blocks and residual information of all coding blocks covered by the current node.
- Step 106 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- the prediction block includes: prediction mode (indicating intra prediction or non-intra prediction mode), intra prediction mode, inter prediction mode, motion information, and the like.
- the motion information may include prediction direction (forward, backward or bidirectional), reference frame index (reference index), motion vector (motion vector) and other information.
- Residual information includes: coded block flags (coded, block, flag, cbf), transform coefficients, transform types (eg, DCT-2, DST-7, DCT-8), etc.
- the transform type can default to DCT-2 transform.
- the prediction block analysis of the luminance CB divided by the current node includes skip_flag, merge_flag, cu_pred_mode to default to 0, 0, and 1 (ie skip_flag, merge_flag, cu_pred_mode None of them appear in the code stream), or skip_flag and cu_pred_mode default to 0 and 1 respectively (that is, skip_flag and cu_pred_mode do not appear in the code stream).
- the intra prediction mode information of the brightness CB will be resolved; the chroma obtained by the current node division
- the prediction block parsing of CB includes parsing the intra prediction mode of chroma CB.
- the analysis method of the intra prediction mode of the chroma CB may be: 1) obtained by parsing the syntax elements from the code stream; 2) directly set to one of the set of chroma intra prediction modes, such as the linear model mode and the DM mode (chroma derived mode, DM) and IBC mode.
- the prediction mode analysis of the CU divided by the current node includes resolution of skip_flag or/and merge_flag, cu_pred_mode is set to 0 by default, and inter prediction blocks are resolved, such as fusion index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector predictor index (motion vector predictor index) and motion vector difference component (motion vector difference).
- skip_flag is a flag of skip mode, a value of 1 indicates that the current CU uses the skip mode, and a value of 0 indicates that the current CU does not use the skip mode.
- merge_flag is the fusion mode flag.
- a value of 1 indicates that the current CU uses the fusion mode; a value of 0 indicates that the fusion mode is not used.
- cu_pred_mode is the coding unit prediction mode flag.
- a value of 1 indicates that the current prediction unit uses intra prediction; a value of 0 indicates that the current prediction unit uses ordinary inter prediction (identifies the inter prediction direction, reference frame index, motion vector prediction in the code stream Value index, motion vector difference, etc.).
- the prediction block analysis of the luminance CB divided by the current node includes parsing skip_flag or/and merge_flag, and cu_pred_mode is set to 0 by default, parsing inter prediction Blocks, such as merge index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector predictor index (motion vector predictor index) and motion vector difference (motion vector difference).
- merge index merge index
- inter prediction direction inter dir
- reference frame index reference frame index
- motion vector predictor index motion vector predictor index
- motion vector difference motion vector difference
- the prediction block of the chroma CB obtained by the current node does not need to be analyzed, and the chroma CB is divided into 2x2 chroma sub-blocks (this division method may be a division method S), the motion information of each 2x2 chroma sub-block is the motion information of the 4x4 luminance region corresponding to each 2x2 chroma sub-block.
- this division method no chroma small block using intra prediction will be generated, nor will a transform block smaller than 16 pixels be generated, so the above intra prediction problem and coefficient coding problem are solved.
- the prediction block of the chroma CB divided by the current node does not need to be parsed, the chroma prediction block and the chroma coding block have the same size, and the chroma CB
- the motion information of is the motion information of a preset position in the brightness area corresponding to the chroma CB (such as the center, lower right corner, or upper left corner of the brightness area, etc.).
- the intra prediction mode in this embodiment is a prediction mode that uses the spatial reference pixels of the image where the coding block is located to generate the prediction value of the coding block, such as direct current mode (DC mode), plane mode (Planar mode) ), angular mode (angular mode), may also include template matching mode (template matching mode), IBC mode.
- the inter prediction mode is a prediction mode that uses the time-domain reference pixels in the reference image of the coding block to generate the prediction value of the coding block, such as skip mode (Skip mode), fusion mode (Merge mode), AMVP (advanced motion vector prediction) Mode or ordinary Inter mode.
- the prediction block of each coding block performs inter prediction or intra prediction on each coding block to obtain an inter prediction image or an intra prediction image of each coding block. Then, according to the residual information of each coding block, the transform coefficient is subjected to inverse quantization and inverse transform processing to obtain a residual image, which is superimposed on the predicted image of the corresponding region to generate a reconstructed image.
- the image block with a preset size includes a brightness block with a first preset size
- step 102 includes:
- the brightness block of the first preset size refers to a brightness block with a pixel size of 4 ⁇ 4.
- step 103 includes: using all the encoding blocks covered by the current node Intra prediction.
- step 104 includes: dividing the luminance block of the current node In this way, the luminance block of the current node is divided, and the chroma block of the current node is used to divide the chroma block of the current node, without limiting the prediction mode of all coding blocks covered by the current node.
- the image block with a preset size includes a chroma block with a second preset size
- step 102 includes:
- the chroma block of the second preset size refers to a chroma block with a pixel size of 2 ⁇ 2, 2 ⁇ 4, or 4 ⁇ 2.
- step 103 includes: covering all Use intra prediction for coding blocks, or use inter prediction for all coding blocks covered by the current node.
- step 104 includes: using the color of the current node
- the division method of the degree block divides the chrominance block of the current node, and the brightness block of the current node is used to divide the brightness block of the current node, which does not limit the prediction mode of all coding blocks covered by the current node.
- the image prediction method provided in this embodiment determines whether an image block having a preset size is obtained by dividing the current node based on the current node division method by obtaining the current node division method, where the image block includes a luma block or a chroma block .
- intra prediction is used for all coding blocks covered by the current node
- inter coding is used for all coding blocks covered by the current node prediction.
- the above method uses intra-frame or inter-frame prediction for all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction, and thus increase the processing speed of coding and decoding.
- the image prediction method determines whether the current node is divided based on the division method of the brightness block of the current node to obtain a brightness block with a first preset size Detailed description is made, and the judgment set of the luminance block with the first preset size is specifically disclosed.
- FIG. 10 is a schematic flowchart of a second image prediction method provided by an embodiment of the present application. As shown in FIG. 10, the image prediction method provided in this embodiment includes:
- Step 201 Obtain the division mode of the current node.
- the division information of the current node is analyzed, and if the division information indicates that the brightness block of the current node is divided, the manner of dividing the brightness block of the current node is further determined.
- the division method of the brightness block includes at least one of quadtree division, vertical bisection, horizontal bisection, vertical trisection, and horizontal trisection. Of course, it may be other division modes, which is not specifically limited in this embodiment. .
- Step 202 According to the size and division mode of the current node, determine whether dividing the current node based on the division mode will result in a brightness block having a first preset size.
- the brightness block with the first preset size may be a brightness block with a pixel size of 4 ⁇ 4 or 8 ⁇ 8.
- step 203 is performed; when it is determined that dividing the current node based on the division mode will not result in brightness having the first preset size In the case of a block, step 204 is performed.
- the size of the current node and the division method of the brightness block of the current node it is determined whether division of the current node based on the division method of the brightness block will result in a brightness block having a first preset size.
- the size of the current node may be understood as the pixel size of the image block corresponding to the current node.
- the size of the current node can be determined according to the width and height of the image block corresponding to the current node, the area of the image block corresponding to the current node, or the number of brightness pixels of the image block corresponding to the current node.
- the current node includes 128 brightness pixels.
- the area of the current node can be described as 128, and the product of the width and height of the current node can be described as 128.
- determining to divide the current node based on the division method of the brightness block will obtain a brightness block of the first preset size, including one or more of the following first set.
- the current node contains M1 pixels and the current node is divided into quadtrees, for example, M1 is 64;
- the current node contains M2 pixels and the current node is divided into a trigeminal tree, for example, M2 is 64;
- the current node contains M3 pixels and the current node is divided into binary trees, for example, M3 is 32;
- the current node contains 64 luminance pixels and the current node uses a tri-tree division (vertical three-point or horizontal three) or quad-tree division, or the current node contains 32 luminance pixels and uses a binary tree division (vertical two-point or horizontal two-point );
- the width of the current node is equal to 4 times the second threshold, the height is equal to the second threshold, and the division mode of the current node is vertical trigeminal tree division;
- the width of the current node is equal to the second threshold, and the height is equal to 4 times the second threshold, and the current node is divided into horizontal tritrees;
- the width of the current node is equal to 2 times the second threshold, the height is equal to the second threshold, and the division mode of the current node is vertical dichotomy;
- the height of the current node is equal to 2 times the second threshold, the width is equal to the second threshold and the current node is divided into two levels;
- the width or/and height of the current node is twice the second threshold and the current node is divided into quadtrees.
- the width of the current node is the width of the brightness block corresponding to the current node
- the height of the current node is the height of the brightness block corresponding to the current node.
- the second threshold may be 4.
- the above-mentioned first set applies to video data formats of YUV4:2:0 or YUV4:2:2.
- the brightness block of the first preset size is a pixel size of 4 ⁇ 4
- determine whether to divide the current node based on the division mode The brightness block with the first preset size will be obtained, which may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is quadtree division; or,
- the number of sampling points of the brightness block of the current node is 64, and the division method is a tri-tree division; or,
- the number of sampling points of the luminance block of the current node is 32, and the division method is binary tree division.
- the number of sampling points of the brightness block of the current node is the number of brightness pixels (pixel size) of the image block corresponding to the current node.
- Step 203 Use intra prediction on all coding blocks covered by the current node.
- step 203 it may be that intra-prediction is only performed on the coding block having the luminance block with the first preset size, without limiting the prediction mode of other coding blocks covered by the current node.
- Intra prediction is used for all coding blocks covered by the current node, which may include:
- the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; the chroma block of the current node is not Divide and get a chroma coding block (referred to as chroma CB)
- the N luminance coding tree nodes can be restricted to not continue to be divided, or do not make this restriction. If the luminance coding tree node continues to be divided, then the division method is analyzed to recursively divide. When the luminance coding tree node is no longer divided, it corresponds to a luminance coding block (abbreviated as luminance CB).
- luminance CB a luminance coding block
- the luma CB uses intra prediction to obtain a luma prediction block corresponding to the luma CB.
- the chroma CB uses intra prediction to obtain a chroma prediction block corresponding to the chroma CB, and the size of the chroma prediction block and the chroma CB are the same.
- using intra prediction on all coding blocks covered by the current node may include:
- the luma block included in the current node is used as the luma code block, and intra prediction is used for the luma code block;
- the chroma block included in the current node is used as the chroma code block, and intra prediction is used for the chroma code block. That is to say, neither the luma block nor the chroma block of the current node may be divided.
- Step 204 The current node is divided by the current node division mode, and the prediction modes of all coding blocks covered by the current node are not limited.
- Step 204 in this embodiment is the same as step 104 in the embodiment shown in FIG. 9.
- Step 204 in this embodiment is the same as step 104 in the embodiment shown in FIG. 9.
- the method further includes:
- Step 205 Analyze the prediction blocks and residual information of all coding blocks covered by the current node.
- Step 206 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- step 205 and step 206 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- step 205 and step 206 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- steps 105 and step 106 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- the image prediction method provided in this embodiment determines whether the first preset size is obtained by dividing the current node based on the division method of the luminance block by obtaining the division method of the current node, and according to the size of the current node and the division method of the luminance block
- intra prediction is used for all coding blocks covered by the current node.
- the above method uses intra prediction on all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction, and thus increase the processing speed of coding and decoding.
- step 204 may include:
- Step 2041 Determine whether dividing the current node based on the dividing mode will result in a chroma block having a second preset size.
- step 2042 is performed; when it is determined that dividing the current node based on the division mode will not result in a second preset size In the case of chroma blocks, step 2043 is executed.
- step 2041 includes: according to the size of the current node and the division method of the chroma block, determining whether dividing the current node based on the division method of the chroma block will result in a chroma block having a second preset size.
- the chroma block of the second preset size may be a chroma block with a pixel size of 2 ⁇ 2, 2 ⁇ 4, or 4 ⁇ 2.
- determining to divide the current node based on the division method of the chroma block will obtain a chroma block with a second preset size, including one or more of the following second set .
- the second set includes:
- the size of the chroma block of at least one child node of the current node is 2x2, 2x4, or 4x2;
- the width or height of the chroma block of at least one child node of the current node is 2;
- the current node contains 64 luminance pixels and the division mode of the current node is tri-tree division or quad-tree division;
- the current node contains 32 luminance pixels and the current node is divided into binary tree division or trigeminal tree division;
- the area of the current node (or the product of width and height) is S, S/2 ⁇ th1, and the current node is divided into vertical bisection or horizontal bisection; or the area of the current node (or product of width and height) S, S/4 ⁇ th1, and the current node is divided into vertical three-point, horizontal three-point, or quadtree division.
- the threshold th1 is 32.
- the second set includes:
- the size of the chroma block of at least one child node of the current node is 2x2, 2x4, or 4x2;
- N1 is 64, 128, or 256.
- N2 is 64 or 256.
- N3 is 64, 128, or 256.
- the area of the current node (or the product of width and height) is S, S/2 ⁇ th1, and the division of the current node is vertical bisection or horizontal bisection; or the area of the current node (or the product of width and height) S, S/4 ⁇ th1, and the current node is divided into vertical three-point, horizontal three-point, or quadtree division.
- the threshold th1 is 64.
- the brightness block with the first preset size may be a 4 ⁇ 4 brightness block.
- the chroma of the second preset size The block may be a chroma block with a pixel size of 2 ⁇ 4 or 4 ⁇ 2, excluding a chroma block with a pixel size of 2 ⁇ 2.
- the brightness block with the first preset size may be a 4 ⁇ 4 brightness block.
- the chroma of the second preset size The block may be a luminance block with a pixel size of 4 ⁇ 8 or 8 ⁇ 4, excluding a luminance block with a pixel size of 4 ⁇ 4.
- the chroma block of the second preset size is a chroma block with a pixel size of 2 ⁇ 4, or 4 ⁇ 2, or a luma block with a pixel size of 4 ⁇ 8, or 8 ⁇ 4,
- Judging whether dividing the current node based on the dividing mode will result in a chroma block of a second preset size may include:
- the number of sampling points of the brightness block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- Step 2042 Use intra prediction for all coding blocks covered by the current node, or use inter prediction for all coding blocks covered by the current node.
- Intra-frame prediction or inter-frame prediction is used for all coding blocks covered by the current node, which can be determined by the following method.
- Method 1 Analyze the prediction mode status indicator of the current node, and when the value of the prediction mode status indicator is the first value, use inter prediction for all coding blocks covered by the current node; or, the value of the prediction mode status indicator is the second Value, use intra prediction for all code blocks covered by the current node.
- This method actually determines the prediction mode for all coding blocks covered by the current node according to the flag bits in the syntax table.
- the prediction mode state identifier cons_pred_mode_flag is parsed from the code stream. Among them, the first value of cons_pred_mode_flag is set to 0, indicating that all coding blocks obtained by dividing or not dividing the current node use inter prediction, and the second value of cons_pred_mode_flag is set to 1, indicating that the current node is divided or not divided Intra-prediction is used for all coding blocks of.
- cons_pred_mode_flag is set to 1, indicating that all coding blocks obtained by dividing or not dividing the current node use inter prediction
- the second value of cons_pred_mode_flag is set to 0, indicating that the current node is divided or not All the divided coding blocks use intra prediction.
- cons_pred_mode_flag can also be expressed using other identifiers (such as mode_cons_flag), which is not limited in this embodiment.
- cons_pred_mode_flag can be a syntax element that needs to be parsed during the block division process.
- the syntax element is parsed, the coding unit prediction mode flag cu_pred_mode of the coding unit of the current node coverage area can no longer be parsed, and its value is the default corresponding to the value of cons_pred_mode_flag value.
- cons_pred_mode_flag is 0, which means that only the inter-frame prediction is used for the coding units covered by the current node of the current node
- cons_pred_mode_flag is 1, which means that only the intra-frame prediction is used for the coding blocks covered by the current node.
- the cu_pred_mode value is deduced to 1, without parsing from the code stream Obtained; if the current node is in the intra-image area and IBC mode is not allowed, then cu_pred_mode is deduced to 1 and cu_skip_flag is 0, and there is no need to parse it from the code stream.
- the cu_pred_mode value is deduced to 0, and there is no need to parse it from the code stream.
- the IBC prediction can be attributed to the intra prediction mode, because the reference pixels of the IBC prediction come from the reconstructed pixels in the current image. Therefore, in the embodiment of the present application, the intra prediction may include the IBC mode. That is to say, in the embodiment of the present application, the intra prediction may use the IBC mode, or may use the ordinary intra prediction mode intra, or may use the IBC mode+ordinary intra prediction mode intra. Therefore, in summary of the embodiments of the present application, intra prediction can also be understood as non-inter prediction.
- the slice type where the current node is located is not an Intra type.
- Method 2 When the prediction mode of any coding block covered by the current node is inter prediction, use inter prediction for all coding blocks covered by the current node; or, the prediction mode of any coding block covered by the current node is frame In intra prediction, intra prediction is used for all coding blocks covered by the current node.
- This method actually determines the prediction mode for all the coding blocks covered by the current node according to the prediction mode of any coding block in the current node.
- any coding block is the first coding block in the decoding order among all coding blocks covered by the current node.
- this embodiment does not limit the prediction mode of the first coding block B0.
- the prediction mode of parsing B0 is intra prediction, all coding blocks covered by the current node use intra prediction; when the prediction mode of parsing B0 is inter prediction, all coding blocks covered by the current node use inter prediction.
- Step 2043 The current node is divided by the current node division mode, and the prediction modes of all coding blocks covered by the current node are not limited.
- step 203 or step 2042 or step 2043 the method further includes:
- Step 205 Analyze the prediction blocks and residual information of all coding blocks covered by the current node.
- Step 206 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- step 205 and step 206 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- step 205 and step 206 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- steps 105 and step 106 are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- the image prediction method provided in this embodiment determines whether the first preset size is obtained by dividing the current node based on the division method of the luminance block by obtaining the division method of the current node, and according to the size of the current node and the division method of the luminance block Luminance block, when it is determined that the current node will be divided based on the division method of the luminance block to obtain the luminance block of the first preset size, it is further determined whether the current node will be divided based on the division method of the chroma block Set the size of the chroma block, in the case of determining that the current node will be divided based on the chroma block division method to obtain the chroma block of the second preset size, use intra prediction for all coding blocks covered by the current node, Or both use inter prediction.
- the above method uses intra-frame or inter-frame prediction for all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction,
- the first example applies to the video data format YUV of 4:2:0 or 4:2:2, or only to the video data format YUV of 4:2:0.
- the image prediction method in this example includes:
- Step 1 Obtain the current node division method.
- Step 2 Determine whether the current node area and division method meet at least one of the following condition A:
- the area of the current node is equal to 32 and the current node is divided into vertical dichotomy or horizontal dichotomy;
- the area of the current node is equal to 64 and the division mode of the current node is vertical three-point division, horizontal three-point division, or quadtree division.
- step 3 is performed.
- Step 3 Restrict all coding blocks covered by the current node to use intra prediction.
- Step 4 Determine whether the area and division of the current node meet at least one of the following condition B:
- the area S of the current node satisfies S/2 ⁇ th1 and the division mode of the current node is vertical dichotomy or horizontal dichotomy;
- the threshold th1 is related to the video data format. For example, when the video data format is YUV 4:2:0, th1 is 64, and when the video data format is YUV 4:2:2, th1 is 32.
- step 5 is performed.
- Step 5 Parsing the flag bit cons_pred_mode_flag from the code stream, and determining, according to the value of cons_pred_mode_flag, that the coding units in the coverage area of the current node all use inter prediction or intra prediction.
- Step 6 The current node is divided using the current node division mode, and the prediction modes of all coding blocks covered by the current node are not limited.
- step 6 it also includes:
- Step 7 Analyze the prediction block and residual information of all coding blocks covered by the current node.
- Step 8 Decode each coded block to obtain the reconstructed signal of the image block corresponding to the current node.
- the second example applies to the video data format YUV of 4:2:0.
- the image prediction method in this example includes:
- Step 1 Obtain the current node division method.
- Step 2 Determine whether the area and division of the current node meet the condition C:
- the area of the current node is equal to 64 and the current node is divided using a horizontal three-point, vertical three-point, or quadtree.
- Step 3 The coding units of the current node coverage area all use intra prediction.
- cons_pred_mode_flag is set to 1.
- Step 4. Determine whether the area and division of the current node meet at least one of condition D:
- the area of the current node is equal to 64 and the current node uses horizontal dichotomy or vertical dichotomy;
- the area of the current node is equal to 128 and the current node uses a horizontal third or a vertical third.
- step 5 is performed.
- Step 5 Parsing the flag bit cons_pred_mode_flag from the code stream, and determining, according to the value of cons_pred_mode_flag, that the coding units in the coverage area of the current node all use inter prediction or intra prediction.
- step 6 is performed.
- Step 6 The current node is divided using the current node division mode, and the prediction modes of all coding blocks covered by the current node are not limited.
- step 6 it also includes:
- Step 7 Analyze the prediction block and residual information of all coding blocks covered by the current node.
- Step 8 Decode each coded block to obtain the reconstructed signal of the image block corresponding to the current node.
- FIG. 12 is a schematic flowchart of a fourth image prediction method provided by an embodiment of the present application. As shown in FIG. 12, the image prediction method provided in this embodiment includes:
- Step 301 Obtain the division mode of the current node.
- the division information of the current node is analyzed, and if the division information indicates that the chroma block of the current node is divided, the division method of the chroma block of the current node is further determined.
- the division method of the chroma block includes at least one of quadtree division, vertical bisection, horizontal bisection, vertical trisection, and horizontal trisection.
- quadtree division vertical bisection, horizontal bisection, vertical trisection, and horizontal trisection.
- Step 302 Determine, according to the size and division mode of the current node, whether to divide the current node based on the division mode to obtain a chroma block with a second preset size.
- step 303 is performed; when it is determined that dividing the current node based on the division mode will not result in a second preset size
- step 304 is executed.
- Step 302 in this embodiment is the same as step 2041 in the embodiment shown in FIG. 11.
- Step 302 in this embodiment is the same as step 2041 in the embodiment shown in FIG. 11.
- step 302 may include: according to the size and division manner of the current node, determining whether dividing the current node based on the division manner will result in a brightness block having a third preset size.
- the brightness block with the third preset size may be a 4 ⁇ 4, 4 ⁇ 8, or 8 ⁇ 4 brightness block.
- judging whether dividing the current node based on the dividing mode will result in a chroma block of a second preset size may include:
- the number of sampling points of the current node's luminance block is 64, and the division method is quadtree division; or,
- the number of sampling points of the brightness block of the current node is 64, and the division method is a tri-tree division; or,
- the number of sampling points of the luminance block of the current node is 32, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- the chroma block of the second preset size may be a chroma block with a pixel size of 2 ⁇ 4 or 4 ⁇ 2, excluding a chroma block with a pixel size of 2 ⁇ 2.
- the brightness block with the third preset size may be a brightness block with a pixel size of 4 ⁇ 8 or 8 ⁇ 4, excluding a brightness block with a pixel size of 4 ⁇ 4.
- judging whether dividing the current node based on the dividing mode will result in a chroma block of the second preset size may include:
- the number of sampling points of the brightness block of the current node is 64, and the division method is binary tree division; or,
- the number of sampling points of the luminance block of the current node is 128, and the division method is tri-tree division.
- Step 303 Use intra prediction for all coding blocks covered by the current node, or use inter prediction for all coding blocks covered by the current node.
- Whether to use intra prediction for all coding blocks covered by the current node, or to use inter prediction for all coding blocks covered by the current node, can be determined by step 2042 of the embodiment shown in FIG. 11. For details, see the above embodiment. Repeat again.
- Step 304 Divide the current node by using the current node division mode, without limiting the prediction modes of all coding blocks covered by the current node.
- Step 304 in this embodiment is the same as step 104 in the embodiment shown in FIG. 9.
- Step 304 in this embodiment is the same as step 104 in the embodiment shown in FIG. 9.
- step 303 or step 304 the method further includes:
- Step 305 Analyze the prediction blocks and residual information of all coding blocks covered by the current node.
- Step 306 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- Step 305 and step 306 in this embodiment are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- Step 305 and step 306 in this embodiment are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- steps 105 and step 106 in the embodiment shown in FIG. 9. For details, refer to the foregoing embodiment, and details are not described here.
- the image prediction method provided in this embodiment determines whether to divide the current node based on the division mode by obtaining the division mode of the current node according to the size and division mode of the current node. When it is determined that dividing the current node based on the division method will result in a chroma block of the second preset size, use intra prediction for all coding blocks covered by the current node, or use inter prediction for all coding blocks covered by the current node .
- the above method uses intra-frame or inter-frame prediction for all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction, and thus increase the processing speed of coding and decoding.
- step 304 may include:
- Step 3041 It is judged whether dividing the current node based on the dividing mode will result in a luminance block of the first preset size.
- step 3042 is performed; when it is determined that dividing the current node based on the division mode will result in the first preset-size brightness block In case, go to step 3043.
- the brightness block of the first preset size refers to a brightness block with a pixel size of 4 ⁇ 4.
- the specific determination process is the same as the step 202 of the embodiment shown in FIG.
- Step 3042 Use intra prediction on all coding blocks covered by the current node.
- Step 3043 The current node is divided using the current node division mode, and the prediction modes of all coding blocks covered by the current node are not limited.
- step 303 or step 3042 or step 3043 the method further includes:
- Step 305 Analyze the prediction blocks and residual information of all coding blocks covered by the current node.
- Step 306 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- Step 305 and step 306 in this embodiment are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- Step 305 and step 306 in this embodiment are the same as step 105 and step 106 in the embodiment shown in FIG. 9.
- steps 105 and step 106 in the embodiment shown in FIG. 9. For details, refer to the foregoing embodiment, and details are not described here.
- the image prediction method provided in this embodiment determines whether to divide the current node based on the division mode by obtaining the division mode of the current node according to the size and division mode of the current node. If it is determined that dividing the current node based on the division method does not result in a chroma block of the second preset size, it is further determined whether dividing the current node based on the division mode will result in a luminance block of the first preset size. In the case where the current node is divided in a division manner to obtain a luminance block of the first preset size, intra prediction is used for all coding blocks covered by the current node.
- the above method uses intra-frame or inter-frame prediction for all coding blocks of the current node, which can realize parallel processing of all coding blocks of the current node, improve the processing performance of image prediction, and thus increase the processing speed of coding and decoding.
- FIG. 14 is a schematic flowchart of a sixth image prediction method provided by an embodiment of the present application.
- the image prediction method provided by this embodiment is applied to the video encoder 18 shown in FIG. 8. As shown in FIG. 14, the method provided in this embodiment includes:
- Step 401 Obtain the division mode of the current node.
- the type of the slice where the current node is located is B or P. It should be understood that, in the case where the slice type where the current node is located is I, intra prediction should be used by default for all coding blocks covered by the current node.
- the division mode of the current node can be obtained by parsing the code stream or by the obtained parameters.
- the current division method of the current node is generally judged, and then the rate-distortion optimization (RDO) method is used to determine the optimal division method as the current node division method.
- RDO rate-distortion optimization
- Step 402 Determine whether the size and division mode of the current node satisfy one of the first preset conditions.
- the first preset condition may include:
- the number of sampling points of the luminance block of the current node is 64, and the division mode of the current node is quadtree division; or,
- the number of sampling points of the current node's luminance block is 64, and the current node is divided into a trigeminal tree; or,
- the number of sampling points of the current node's luminance block is 32, and the current node is divided into a binary tree.
- the number of sampling points of the brightness block of the current node that is, the number of brightness pixels (pixel size) of the image block corresponding to the current node, can be obtained according to the product of the width and height of the current node.
- the preset condition 1 further includes the following condition 4):
- the current node is divided according to the division method to obtain a brightness block of a preset size, and the preset size is 4x4 or 8x8.
- meeting one of the first preset conditions may result in a luma block of a first preset size (4x4 or 8x8), and may obtain a chroma block of a second preset size (2x4 or 4x2).
- step 403 if the size and division of the current node satisfy one of the first preset conditions, step 403 is performed; otherwise, the size and division of the current node do not satisfy all the conditions in the first preset condition, Then step 404 is executed.
- Step 403 Use intra prediction on all coding blocks covered by the current node.
- mode_constraint_flag when it is determined that all coding blocks covered by the current node use intra prediction, it is not necessary to write the value of mode_constraint_flag to the code stream, and the value of mode_constraint_flag can be set to 1, correspondingly, the decoding end can also use the same The method deduces that the value of mode_constraint_flag is 1.
- Step 404 Determine whether the size and division mode of the current node satisfy one of the second preset conditions.
- the second preset condition includes:
- the number of sampling points of the luminance block of the current node is 64, and the current node is divided into a vertical binary tree or a horizontal binary tree. or,
- the number of sampling points of the luminance block of the current node is 128, and the division mode of the current node is a vertical trigeminal tree or a horizontal trigeminal tree.
- the preset condition two further includes condition 3)
- the current node is divided according to the dividing manner to obtain a chroma block of a preset size, and the preset size is 2x4 or 4x2.
- step 405 if the size and division mode of the current node satisfy one of the second preset conditions, step 405 is performed; and the size and division mode of the current node do not satisfy all the conditions in the second preset condition, then Go to step 406.
- Step 405 Use intra prediction for all coding blocks covered by the current node, or use inter prediction for all coding blocks covered by the current node.
- the prediction mode used by all coding blocks of the current node may be determined in the following ways:
- the encoder or encoder in one implementation, if the image type or slice type of the current node is type I, it is determined that all encoding blocks in the current node are only applicable to intra prediction (non-inter prediction) ).
- the value of mode_constraint_flag can be set to 1.
- the rate-distortion optimization (RDO) method or other methods are used to determine the value of mode_constraint_flag.
- the RDO method is that the encoder calculates the rate distortion cost (RD cost) when all the coding blocks covered by the current node use inter prediction and intra prediction, and compares the value of the rate distortion cost under the two prediction modes, The prediction mode with the lowest rate distortion value is determined as the final prediction mode. If the prediction mode with the smallest rate distortion value is intra prediction, set mode_constraint_flag to 1; if the prediction mode with the smallest rate distortion value is inter prediction, set the value of mode_constraint_flag to 0, and write the value of mode_constraint_flag to the code stream.
- RD cost rate distortion cost
- the encoder first calculates the RD cost when all prediction blocks covered by the current node use inter prediction, and then calculates the RD cost when uses intra prediction, if all code blocks covered by the current node use inter prediction If there is no residual error (for example, in skip mode), it is determined that all the coding blocks covered by the current node use inter prediction, and the value of mode_constraint_flag is set to 0, so there is no need to calculate the RD cost during intra prediction.
- the encoder can also first calculate the RD cost when all prediction blocks covered by the current node use intra prediction, and then calculate the RD cost when inter prediction is used, and determine the prediction mode with the smallest RD cost as the final prediction mode.
- the pred_mode_flag value defaults to 1. If the current node is in the intra-image area and IBC mode is not allowed, pred_mode_flag defaults to 1 and cu_skip_flag defaults to 0 (indicating that the current block does not use skip mode). If the current node is in the intra-image area (that is, the image type or slice type (slice_type) of the current node is intra type or I type), mode_constraint_flag defaults to 1.
- the decoding end or decoder may be to parse the prediction mode status flag (mode_constraint_flag) of the current node; in the case where the value of the prediction mode status flag is the first value, for all Perform inter prediction on the coding blocks belonging to the current node; or, in the case where the value of the prediction mode state identifier is the second value, perform intra prediction on all coding blocks belonging to the current node.
- mode_constraint_flag the prediction mode status flag of the current node
- Step 406 Divide the current node by using the current node division mode, without limiting the prediction modes of all coding blocks covered by the current node.
- the method may further include:
- Step 407 Determine whether to continue dividing the brightness block and the chroma block of the current node according to the prediction mode of the current node.
- chroma block is used as the chroma coding block
- intra prediction is used for the chroma coding block. That is to say, if it is determined that all coding blocks in the current node use intra prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; the chroma block of the current node is not Divide and get a chroma coding block (abbreviated as chroma CB).
- the N luminance coding tree nodes can be restricted to not continue to be divided, or do not make this restriction. If the luminance coding tree node continues to be divided, then the division method is analyzed to recursively divide. When the luminance coding tree node is no longer divided, it corresponds to a luminance coding block (abbreviated as luminance CB).
- luminance CB uses intra prediction to obtain a luma prediction block corresponding to the luma CB.
- the chroma CB uses intra prediction to obtain a chroma prediction block corresponding to the chroma CB, and the size of the chroma prediction block and the chroma CB are the same.
- the luminance block and the chrominance block included in the current node are divided according to the division method to obtain the divided node, when the coding tree node When it is no longer divided, it corresponds to a coding unit, including a luminance coding unit and a chroma coding unit, and intra prediction is used for the divided luminance coding unit and chroma coding unit.
- the luminance blocks included in the current node are divided according to the division method to obtain the divided luminance blocks, and the inter frame is used for the divided luminance blocks Prediction; divide the chroma blocks included in the current node according to the division method to obtain the divided chroma blocks, and use inter prediction on the divided chroma blocks. That is to say, if it is determined that all the coding blocks of the current node use inter prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; The chroma block is divided into ways to obtain M chroma coding tree nodes.
- N and M are positive integers, and N and M may be the same or different.
- the division may not be continued, or the restriction is not made.
- N luma coding tree nodes correspond to N luma CBs of the current node
- M chroma coding tree nodes correspond to M chroma CBs of the current node.
- N luma CBs use inter prediction to obtain corresponding luma prediction blocks
- M chroma CBs use inter prediction to obtain corresponding chroma prediction blocks.
- the luminance blocks included in the current node are divided according to the division method to obtain the divided luminance blocks, and the inter frame is used for the divided luminance blocks Prediction; divide the chroma blocks included in the current node according to the division method to obtain the divided chroma blocks, and use inter prediction on the divided chroma blocks. That is to say, if it is determined that all the coding blocks of the current node use inter prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; The chroma block is divided into ways to obtain M chroma coding tree nodes.
- N and M are positive integers, and N and M may be the same or different.
- the division may not be continued, or the restriction is not made.
- N luma coding tree nodes correspond to N luma CBs of the current node
- M chroma coding tree nodes correspond to M chroma CBs of the current node.
- N luma CBs use inter prediction to obtain corresponding luma prediction blocks
- M chroma CBs use inter prediction to obtain corresponding chroma prediction blocks.
- the division method is 4x4 (that is, both the width and the height are 4), the division method of the child node is not allowed, or the child node cannot be further divided.
- a node is restricted to use only inter prediction and the number of brightness sampling points of the node is 32 (or the product of the node's width and height is 32), the node is not allowed to use binary tree division (including horizontal binary tree division and vertical binary tree division ). If the node is restricted to only use inter prediction and the node has 64 brightness sampling points (or the product of the node's width and height is 64), the node is not allowed to use trigeminal tree division (including horizontal trigeminal tree and vertical trigeminal tree division) ). This judgment method is applicable to the video data formats of YUV4:2:0 and YUV4:2:2.
- the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, 8x4 (or 4x8) nodes cannot use vertical binary tree division (or horizontal binary tree division), or cannot continue division.
- the number of sampling points of the luminance block of the current node is 128, and the division method is horizontal tri-tree division or vertical tri-tree division
- the number of sampling points of the luminance block may be 64
- the number of sampling points For a 64-luminance node if you use a horizontal tritree or a vertical tritree to divide the child nodes, you will get a 4x4 luma block. Therefore, when it is restricted to only use inter prediction, the node with 64 sampling points cannot Use the horizontal trigeminal tree or vertical trigeminal tree to divide, or can't continue to be divided.
- Step 408 Predict the coding block of the CU obtained by dividing the current node to obtain the prediction value of the coding block.
- the encoding end uses the rate-distortion optimization (RDO) method or other methods to determine the optimal use of the current encoding block
- RDO rate-distortion optimization
- the current coding block uses the corresponding intra prediction mode for prediction to obtain the prediction value of the current block.
- the encoding end uses the rate distortion optimization method or other methods to determine the optimal inter prediction mode used by the current encoding block.
- the block is predicted using the corresponding inter prediction mode to obtain the prediction value of the current block.
- the encoding end assigns the values of the relevant CU-level syntax elements, and writes the values of each syntax element into the code stream according to the CU-level syntax definition criteria. For example, if all encoding blocks in the current node only use intra prediction, the value of pred_mode_flag is set to 1 and the code stream is not written and does not appear in the code stream. If all the coding blocks in the current node only use intra prediction, and it is determined that the IBC mode is not used, the value of cu_skip_flag (or skip_flag) is 0, and the code stream is not written. Stream to the decoder.
- pred_mode_flag is set to 0, and the code stream is not written and does not appear in the code stream.
- pred_mode_ibc_flag is set to 0, the code stream is not written and does not appear in the code stream.
- the decoder or the decoding end if all the coding blocks in the current node only use intra prediction, you can determine the optimal intra prediction mode used by the current coding block by parsing the code stream or by using the obtained parameters.
- the coding block uses the corresponding intra prediction mode for prediction to obtain the prediction value of the current block.
- the decoder or the decoding end if all the coding blocks in the current node only use inter prediction, you can determine the optimal inter prediction mode used by the current coding block by parsing the code stream or by using the obtained parameters. The block is predicted using the corresponding inter prediction mode to obtain the prediction value of the current block.
- Step 409 Acquire the reconstruction signal of the image block in the current node.
- the encoder or encoding end After obtaining prediction information using intra prediction or inter prediction, the pixel value of the pixel in the current coding block minus the corresponding prediction information (or prediction value) to obtain the residual information, and then use Discrete Cosine Transform (Discrete Cosine Transformation, DCT) and other methods transform the residual information, and then use quantization entropy coding to obtain the code stream.
- the encoding end transmits the residual information to the decoding end.
- the prediction signal is added to the reconstructed residual signal, a further filtering operation is required to obtain a reconstructed signal, which is used as a reference signal for subsequent encoding.
- the coding block uses the skip mode, there is no residual information and no transformation is required, and the predicted value is the final reconstruction value.
- the decoder or the decoding end after the prediction signal plus the reconstructed residual signal, a further filtering operation is required to obtain the reconstructed signal. Further, the obtained reconstructed signal is used as a reference signal for subsequent encoding. In particular, if the coding block uses the skip mode, there is no residual information and no transformation is required, and the predicted value is the final reconstruction value.
- the prediction block of each CU performs inter prediction processing or intra prediction processing on each CU to obtain an inter prediction image or an intra prediction image of each CU.
- the transform coefficient is subjected to inverse quantization and inverse transform processing to obtain a residual image, which is superimposed on the predicted image of the corresponding area to generate a reconstructed image.
- This embodiment describes the image prediction method from the perspective of the video decoding end.
- the video decoder determines whether to use intra-frame or inter-frame prediction for all coding blocks of the current node according to the size and division mode of the current node.
- the parallel processing of all encoding blocks of the node improves the processing performance of image prediction, thereby increasing the processing speed of decoding.
- the image prediction method provided in this embodiment is applied to the video encoder 18 and/or the video decoder 24 shown in FIG. 8.
- This embodiment includes:
- Step 501 Obtain the division mode of the current node.
- Step 501 in this embodiment is the same as step 101 in the embodiment shown in FIG. 9 and will not be repeated here.
- Step 502 Derive the value of the variable modeTypeCondition according to the following method
- the value of modeTypeCondition is the first value, for example, 0.
- the prediction mode of the current node is to use only intra prediction or inter prediction, that is, it has been restricted to use only inter prediction or intra prediction (non-inter prediction).
- the chroma sampling structure is a monochromatic sampling structure (Monochrome) or a 4:4:4 structure.
- chroma_format_idc the value of chroma_format_idc is 0 or 3.
- the preset condition 1 further includes the following condition 4):
- the chroma sampling structure is a monochromatic sampling structure (Monochrome) or a 4:4:4 or 4:2:2 structure.
- chroma_format_idc is 0 or 3 or 2.
- modeTypeCondition is the second value, such as 1.
- the product of the width and height of the luminance block of the current node is 64, and the current node is divided into a horizontal trigeminal tree or a vertical trigeminal tree;
- the product of the width and height of the luminance block of the current node is 32, and the current node is divided into a horizontal binary tree or a vertical binary tree.
- the product of the width and height of the brightness block of the current node is 64, and the current node is divided into a horizontal binary tree or a vertical binary tree;
- the product of the width and height of the brightness block of the current node is 128, and the current node is divided into a horizontal trigeminal tree or a vertical trigeminal tree.
- the width of the two chroma components is half the width of the corresponding luma component, and the height of the chroma component is half the height of the luma component.
- the height of the two chroma components is the same as the corresponding luminance component, and the width of the chroma component is half of the width of the corresponding luminance component.
- separate_colour_plane_flag if separate_colour_plane_flag is equal to 0, the width and height of the two chroma components are the same as the brightness height and width, respectively. Otherwise (separate_colour_plane_flag is equal to 1), the three components are coded with monochrome sample images.
- separate_colour_plane_flag 1 specifies that that three colour components are of the 4:4:4 chroma format coded separately separated.
- separate_colour_plane_flag equal to to 0 specified specifies that that the colour components are not coded separately.
- qtbtt_dual_tree_intra_flag 1 specifies that for I slices, each CTU is split into coding units with 64x64 luma samples using an implicit quadtree split and that these coding units are the root of two separate coding_tree syntax structure for luma and chroma.
- qtbtt_dual_tree_intra_flag 0 specifies separate coding_tree syntax structure is not used for slices. When qtbtt_dual_tree_intra_flag is not present, it is inferred to be equal to 0.
- Step 503 Determine the prediction mode types of all coding units in the current node according to the value of modeTypeCondition.
- modeTypeCondition if the value of modeTypeCondition is 1, it is restricted that all coding units in the current node use intra prediction (MODE_INTRA). Otherwise, if the value of modeTypeCondition is 2, the value of the syntax element mode_constraint_flag is parsed from the code stream. If the value of mode_constraint_flag is 0, then all coding units in the current node use inter prediction (MODE_INTER). If the value is 1, the current All coding units in the node use intra prediction (non-inter prediction/MODE_INTRA).
- the prediction mode types of all coding units in the current node are not limited, and are the same as the prediction mode types of the current node.
- Step 504 Determine whether the chroma block and the luma block corresponding to the current node continue to be divided to obtain a chroma coding unit and a luma coding unit.
- chroma block is used as the chroma coding block
- intra prediction is used for the chroma coding block. That is to say, if it is determined that all coding blocks in the current node use intra prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; the chroma block of the current node is not Divide and get a chroma coding block (abbreviated as chroma CB).
- the N luminance coding tree nodes can be restricted to not continue to be divided, or do not make this restriction. If the luminance coding tree node continues to be divided, then the division method is analyzed to recursively divide. When the luminance coding tree node is no longer divided, it corresponds to a luminance coding block (abbreviated as luminance CB).
- luminance CB uses intra prediction to obtain a luma prediction block corresponding to the luma CB.
- the chroma CB uses intra prediction to obtain a chroma prediction block corresponding to the chroma CB, and the size of the chroma prediction block and the chroma CB are the same.
- the luminance block and the chrominance block included in the current node are divided according to the division method to obtain the divided node, when the coding tree node When it is no longer divided, it corresponds to a coding unit, including a luminance coding unit and a chroma coding unit, and intra prediction is used for the divided luminance coding unit and chroma coding unit.
- the luminance blocks included in the current node are divided according to the division method to obtain the divided luminance blocks, and the inter frame is used for the divided luminance blocks Prediction; divide the chroma blocks included in the current node according to the division method to obtain the divided chroma blocks, and use inter prediction on the divided chroma blocks. That is to say, if it is determined that all the coding blocks of the current node use inter prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; The chroma block is divided into ways to obtain M chroma coding tree nodes.
- N and M are positive integers, and N and M may be the same or different.
- the division may not be continued, or the restriction is not made.
- N luma coding tree nodes correspond to N luma CBs of the current node
- M chroma coding tree nodes correspond to M chroma CBs of the current node.
- N luma CBs use inter prediction to obtain corresponding luma prediction blocks
- M chroma CBs use inter prediction to obtain corresponding chroma prediction blocks.
- the luminance blocks included in the current node are divided according to the division method to obtain the divided luminance blocks, and the inter frame is used for the divided luminance blocks Prediction; divide the chroma blocks included in the current node according to the division method to obtain the divided chroma blocks, and use inter prediction on the divided chroma blocks. That is to say, if it is determined that all the coding blocks of the current node use inter prediction, the luminance block of the current node is divided according to the division method of the luminance block to obtain N luminance coding tree nodes; The chroma block is divided into ways to obtain M chroma coding tree nodes.
- N and M are positive integers, and N and M may be the same or different.
- the division may not be continued, or the restriction is not made.
- N luma coding tree nodes correspond to N luma CBs of the current node
- M chroma coding tree nodes correspond to M chroma CBs of the current node.
- N luma CBs use inter prediction to obtain corresponding luma prediction blocks
- M chroma CBs use inter prediction to obtain corresponding chroma prediction blocks.
- the division method is 4x4 (that is, both the width and the height are 4), the division method of the child node is not allowed, or the child node cannot be further divided.
- a node is restricted to use only inter prediction and the number of brightness sampling points of the node is 32 (or the product of the node's width and height is 32), the node is not allowed to use binary tree division (including horizontal binary tree division and vertical binary tree division ). If the node is restricted to only use inter prediction and the node has 64 brightness sampling points (or the product of the node's width and height is 64), the node is not allowed to use trigeminal tree division (including horizontal trigeminal tree and vertical trigeminal tree division) ). This judgment method is applicable to the video data formats of YUV4:2:0 and YUV4:2:2.
- the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, 8x4 (or 4x8) nodes cannot use vertical binary tree division (or horizontal binary tree division), or cannot continue division.
- the number of sampling points of the luminance block of the current node is 128, and the division method is horizontal tri-tree division or vertical tri-tree division, the number of sampling points of the luminance block may be 64, and the number of sampling points If the brightness node is 64, if a child node is used to divide the horizontal tri-tree or vertical tri-tree, you will get a 4x4 brightness block. Therefore, when it has been restricted to only use inter prediction, the node with 64 sampling points cannot Use the horizontal trigeminal tree or vertical trigeminal tree to divide, or can't continue to be divided.
- Step 505 Analyze the coding unit to obtain prediction mode information
- the syntax elements related to intra or inter prediction are parsed to obtain the final prediction mode of the coding unit. Use the corresponding prediction mode to make predictions to get the predicted value.
- the cu_pred_mode value is deduced to 1, without parsing from the code stream Obtained; if the current node is in the intra-image area and IBC mode is not allowed, then cu_pred_mode is deduced to 1 and cu_skip_flag is 0, and there is no need to parse it from the code stream.
- the cu_pred_mode value is deduced to 0, and there is no need to parse it from the code stream.
- Step 506 Decode each coded block to obtain a reconstructed signal of the image block corresponding to the current node.
- the prediction block of each CU performs inter prediction processing or intra prediction processing on each CU to obtain an inter prediction image or an intra prediction image of each CU.
- the transform coefficient is subjected to inverse quantization and inverse transform processing to obtain a residual image, which is superimposed on the predicted image of the corresponding area to generate a reconstructed image.
- the image prediction method provided by this embodiment is applied to the video encoder 18 shown in FIG. 8.
- This embodiment includes:
- Step 601 Obtain the division mode of the current node.
- Step 601 in this embodiment is the same as step 501, and will not be repeated here.
- Step 602 Derive the value of the variable modeTypeCondition according to the following method
- the value of modeTypeCondition is the first value, for example, 0.
- the prediction mode of the current node is to use only intra prediction or inter prediction, that is, it has been restricted to use only inter prediction or intra prediction (non-inter prediction).
- the chroma sampling structure is a monochromatic sampling structure (Monochrome) or a 4:4:4 structure.
- chroma_format_idc the value of chroma_format_idc is 0 or 3.
- the preset condition 1 further includes the following condition 4):
- the chroma sampling structure is a monochromatic sampling structure (Monochrome) or a 4:4:4 or 4:2:2 structure.
- chroma_format_idc is 0 or 3 or 2.
- modeTypeCondition is the second value, such as 1.
- the product of the width and height of the luminance block of the current node is 64, and the current node is divided into a horizontal trigeminal tree or a vertical trigeminal tree;
- the product of the width and height of the luminance block of the current node is 32, and the current node is divided into a horizontal binary tree or a vertical binary tree.
- the product of the width and height of the brightness block of the current node is 64, and the current node is divided into a horizontal binary tree or a vertical binary tree;
- the product of the width and height of the brightness block of the current node is 128, and the current node is divided into a horizontal trigeminal tree or a vertical trigeminal tree.
- Step 603 Determine the prediction mode types of all coding units in the current node according to the value of modeTypeCondition.
- modeTypeCondition if the value of modeTypeCondition is 1, it is restricted that all coding units in the current node use intra prediction (MODE_INTRA).
- the optional mode_constraint_flag is set to 1.
- the value of the syntax element mode_constraint_flag is determined using the RDO method. For example, first calculate the RD cost when all coding units in the current node use inter prediction, and then calculate the RD cost when using intra prediction, where if all coding units in the current node use inter prediction, there is no residual ( (For example, skip mode), it is determined that all coding units in the current node use inter prediction, and the value of mode_constraint_flag is set to 0, so there is no need to calculate the RD cost during intra prediction. It is also possible to first calculate the RD cost when all the coding units in the current node use intra prediction, then calculate the RD cost when using inter prediction, and then obtain the prediction mode with the smallest RD cost to determine the final prediction.
- the value of modeTypeCondition is 2
- the value of the syntax element mode_constraint_flag is determined using the RDO method. For example, first calculate the RD cost when all coding units in the current node use inter prediction, and then calculate the RD cost
- the prediction mode types of all coding units in the current node are not limited, and are the same as the prediction mode types of the current node.
- the pred_mode_flag value defaults to 1; if the current node In the intra-image area, and IBC mode is not allowed, pred_mode_flag defaults to 1, and cu_skip_flag is 0.
- Step 604 Determine the division method of the chroma block and the luma block corresponding to the current node, and obtain a chroma coding unit and a luma coding unit.
- Step 605 Predict the coding block of the CU divided by the current node to obtain the prediction value of the coding block.
- the coding end uses the Rate-distortion Optimization (RDO) method or other methods to determine the optimal intra prediction mode used by the current coding block.
- RDO Rate-distortion Optimization
- the current coding block The corresponding intra prediction mode is used for prediction to obtain the prediction value of the current block.
- the coding end uses the rate distortion optimization method or other methods to determine the optimal inter prediction mode used by the current coding block, and the current coding block uses the corresponding inter prediction mode. Prediction to get the predicted value of the current block.
- the encoding end assigns the values of the relevant CU-level syntax elements, and writes the values of each syntax element into the code stream according to the CU-level syntax definition criteria. For example, if all encoding blocks in the current node only use intra prediction, the value of pred_mode_flag is set to 1 and the code stream is not written and does not appear in the code stream. If all the coding blocks in the current node only use intra prediction, and it is determined that the IBC mode is not used, the value of cu_skip_flag (or skip_flag) is 0, and the code stream is not written. Stream to the decoder.
- pred_mode_flag is set to 0, and the code stream is not written and does not appear in the code stream.
- pred_mode_ibc_flag is set to 0, the code stream is not written and does not appear in the code stream.
- Step 606 Obtain the reconstruction signal of the image block in the current node
- the pixel value of the pixel in the current coding block is subtracted from the corresponding prediction information (or prediction value) to obtain residual information, and then using discrete cosine transform (Discrete Cosine Transformation, DCT ) And other methods to transform the residual information, and then use quantization entropy coding to get the code stream.
- the encoding end transmits the residual information to the decoding end.
- the prediction signal is added to the reconstructed residual signal, a further filtering operation is required to obtain a reconstructed signal, which is used as a reference signal for subsequent encoding.
- the coding block uses the skip mode, there is no residual information and no transformation is required, and the predicted value is the final reconstruction value.
- the image prediction device 40 provided by this embodiment includes:
- the obtaining module 41 is used to obtain the division mode of the current node
- the judging module 42 is used to judge whether dividing the current node based on the dividing method will obtain an image block with a preset size; the image block includes a luma block or a chroma block;
- the execution module 43 is configured to use intra prediction on all coding blocks covered by the current node when it is determined that the current node will be divided based on the division mode to obtain an image block having the preset size, Or, inter prediction is used for all coding blocks covered by the current node.
- the image block with a preset size includes a brightness block with a first preset size
- the judgment module 42 is specifically configured to: determine based on the size of the current node and the division method Whether the current node is obtained by dividing the current node in the division manner described above will result in a brightness block having a first preset size.
- the execution module 43 is specifically configured to:
- Intra prediction is used for all coding blocks covered by the current node.
- the judgment module 42 is further configured to judge the current node based on the division mode Whether the division will result in a chroma block of the second preset size;
- the execution module 43 is specifically configured to encode all the coverage of the current node
- the block uses intra prediction, or uses inter prediction for all coding blocks covered by the current node.
- the image block with a preset size includes a chroma block with a second preset size
- the judgment module 42 is specifically configured to: based on the size and division mode of the current node, determine Whether the current node is obtained by dividing the current node in the dividing manner will result in a chroma block with a second preset size.
- the execution module 43 is specifically configured to:
- inter prediction is used for all coding blocks covered by the current node; or, when the value of the prediction mode state identifier is the second value, the All coding blocks covered by the current node use intra prediction.
- the execution module 43 is specifically configured to: When the prediction mode of a coding block is inter prediction, inter prediction is used for all coding blocks covered by the current node; or, when the prediction mode of any coding block covered by the current node is intra prediction, All coding blocks covered by the current node use intra prediction.
- the any coding block is the first coding block in the decoding order among all coding blocks covered by the current node.
- the execution module 43 is specifically configured to:
- intra prediction is used for all coding blocks covered by the current node.
- the execution module 43 is specifically configured to:
- inter prediction is used for all coding blocks covered by the current node; or, when the value of the prediction mode state identifier is the second value, the All coding blocks covered by the current node use intra prediction.
- the execution module 43 is specifically configured to: When the prediction mode of the coding block is inter prediction, inter prediction is used for all coding blocks covered by the current node; or, when the prediction mode of any coding block covered by the current node is intra prediction, Intra prediction is used for all coding blocks covered by the current node.
- execution module 43 is specifically used to:
- the chroma blocks are divided to obtain the divided chroma blocks, and inter prediction is used for the divided chroma blocks.
- execution module 43 is specifically used to:
- the coding block uses inter prediction for the chroma coding block.
- the obtaining module 41 is further used to obtain the subdivision manner of the child nodes of the current node, the child nodes include Luma and chroma blocks;
- the judging module 42 is further configured to judge whether dividing the child nodes of the current node based on the sub-division mode will result in a brightness block having a first preset size
- the execution module 43 is specifically configured to divide the child nodes of the current node The node is divided by a division method other than the sub-division method to obtain the corresponding coding block, and the inter prediction is used for the corresponding coding block, or the sub node of the current node is used as the coding block to use the inter frame prediction.
- the image prediction apparatus provided by the embodiments of the present application may execute the technical solutions of the foregoing method embodiments, and the implementation principles and technical effects are similar, and are not described herein again.
- the video encoding device 50 provided in this embodiment includes a processor 51 and a memory 52 for storing executable instructions of the processor 51; wherein the processor 51 may perform the above method embodiment
- the image prediction method corresponding to the video encoding device has similar implementation principles and technical effects, and will not be repeated here.
- the memory 52 may be independent or integrated with the processor 51.
- the video encoding device 50 further includes a bus 53 for connecting the memory 52 and the processor 51.
- the video decoding device 60 provided by this embodiment includes a processor 61 and a memory 62 for storing executable instructions of the processor 61; wherein the processor 61 may perform the above method embodiment
- the image prediction method corresponding to the video decoding device has similar implementation principles and technical effects, which will not be repeated here.
- the memory 62 may be independent or integrated with the processor 61.
- the video decoding device 60 further includes a bus 63 for connecting the memory 62 and the processor 61.
- the image prediction system provided by this embodiment includes a video acquisition device 70, a video encoding device 50 of the embodiment shown in FIG. 16, a video decoding device 60 of the embodiment shown in FIG. 17, and a display device 80.
- the video encoding device 50 is respectively connected to the video acquisition device 70 and the video decoding device 60, and the video decoding device 60 is connected to the display device 80.
- the video encoding device 50 receives the video or image information sent by the video capturing device 70.
- the video encoding device 50 may execute the image prediction method corresponding to the video encoding device 50 in the above method embodiment.
- the video encoding device 50 converts the encoded video or The image information is sent to the video decoding device 60, and the video decoding device 60 can execute the image prediction method corresponding to the video decoding device 60 in the above method embodiment, and the video decoding device 60 sends the decoded video or image information to the display device 80 for display.
- the image prediction system provided by the embodiments of the present application includes a video encoding device that can perform the above method embodiments and a video decoding device that can perform the above method embodiments.
- the implementation principles and technical effects are similar, and are not repeated here.
- Embodiments of the present application also provide a computer-readable storage medium on which a computer program is stored, and the computer program is executed by a processor to implement various steps of the foregoing method embodiments.
- An embodiment of the present application also provides a video decoding method.
- the method includes:
- the current node includes a luma block and a chroma block
- the chroma block is a chroma block less than or equal to a first preset value or the chroma block A chroma block whose number of pixels in the block is less than or equal to the second preset value;
- the current node is further divided based on the current node division method, a small chroma block will be obtained, and inter prediction is performed on the coding block obtained by dividing the current node as the root node, or on The current node performs intra prediction on a coding block (coding block) obtained by dividing the root node, thereby obtaining prediction information of the divided coding block.
- performing inter prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: dividing all coding blocks (coding block) obtained by dividing the current node as a root node ) Perform inter prediction; or,
- the performing intra prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: performing intra frame on all coding blocks (coding block) obtained by dividing the current node as a root node prediction.
- the performing inter prediction on the coding block (block) obtained by dividing the current node as the root node includes: executing all the chroma blocks obtained by dividing the current node as the root node Inter prediction; or,
- the performing intra prediction on a coding block obtained by dividing the current node as a root node includes performing intra prediction on all chroma small blocks obtained by dividing the current node as a root node .
- the performing inter prediction on the coding block (block) obtained by dividing the current node as the root node includes: coding unit (coding unit) obtained by dividing the current node as the root node Perform inter prediction; or,
- the performing intra prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: performing intra prediction on a coding unit (coding unit) obtained by dividing the current node as a root node .
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- intra prediction is performed on a coding block (coding block) obtained by dividing the current node as the root node.
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- intra prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node.
- the first preset value is 2 or 4, or the second preset value is 16, 8, or 32.
- performing intra prediction on a coding block obtained by dividing the current node as a root node includes:
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- chroma block included in the current node as a chroma coding block to perform inter prediction or intra prediction.
- the inter prediction or intra prediction using the chroma block included in the current node as a chroma coding block includes:
- chroma encoding block as a chroma prediction block for intra prediction
- An embodiment of the present application also provides a video decoding method.
- the method includes:
- the current node includes a luma block and a chroma block
- a brightness block having the preset size will be obtained, and all coding blocks (coding blocks) obtained by dividing the current node as the root node are executed. Intra prediction, thereby obtaining the prediction block of the divided coding block.
- the method further includes:
- the small chroma block is a chroma block that is less than or equal to a first preset value or the small chroma block is a chroma block whose number of pixels in the block is less than or equal to a second preset value;
- the current node is further divided based on the current node division method, a small chroma block will be obtained, and inter prediction is performed on the coding block obtained by dividing the current node as the root node, or on The current node performs intra prediction on a coding block (coding block) obtained by dividing the root node, thereby obtaining a prediction block of the divided coding block.
- performing inter prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: dividing all coding blocks (coding block) obtained by dividing the current node as a root node ) Perform inter prediction; or,
- the performing intra prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: performing intra frame on all coding blocks (coding block) obtained by dividing the current node as a root node prediction.
- the performing inter prediction on the coding block (coding) block obtained by dividing the current node as a root node includes: executing all small chroma blocks obtained by dividing the current node as a root node Inter prediction; or,
- the performing intra prediction on a coding block obtained by dividing the current node as a root node includes performing intra prediction on all chroma small blocks obtained by dividing the current node as a root node .
- the performing inter prediction on the coding block (block) obtained by dividing the current node as the root node includes: coding unit (coding unit) obtained by dividing the current node as the root node Perform inter prediction; or,
- the performing intra prediction on a coding block (coding block) obtained by dividing the current node as a root node includes: performing intra prediction on a coding unit (coding unit) obtained by dividing the current node as a root node .
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- intra prediction is performed on a coding block (coding block) obtained by dividing the current node as the root node.
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- intra prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node.
- the first preset value is 2 or 4, or the second preset value is 16, 8, or 32.
- performing intra prediction on a coding block obtained by dividing the current node as a root node includes:
- the inter prediction is performed on a coding block (coding block) obtained by dividing the current node as a root node, or a coding block (coding block) obtained by dividing the current node as a root node
- intra prediction includes:
- chroma block included in the current node as a chroma coding block to perform inter prediction or intra prediction.
- the inter prediction or intra prediction using the chroma block included in the current node as a chroma coding block includes:
- chroma encoding block as a chroma prediction block for intra prediction
- the performing inter prediction on a coding block (block) obtained by dividing the current node as a root node includes:
- the sub-nodes of the current node are further divided based on the sub-divided manner, a brightness block with a preset size will be obtained, and the sub-nodes of the current node are divided by a division method other than the sub-divided manner, To obtain a corresponding coding unit and perform inter prediction on the corresponding coding unit, or perform inter prediction using a child node of the current node as a coding unit.
- the preset size includes 4 ⁇ 4, 4 ⁇ 8, 8 ⁇ 4, 2 ⁇ 4, or 4 ⁇ 2.
- An embodiment of the present application also provides a video decoding method.
- the method includes:
- the current node includes a luma block and a chroma block
- the current node is divided according to the current node division method To obtain the child nodes of the current node;
- the sub-nodes of the current node are further divided based on the sub-divided manner, a brightness block with a preset size will be obtained, and the sub-nodes of the current node are divided by a division method other than the sub-divided manner, To obtain a corresponding coding unit and perform inter prediction on the corresponding coding unit, or perform inter prediction using a child node of the current node as a coding unit.
- the first video decoding method provided by an embodiment of the present application relates to a block division method in video decoding.
- the video data format in this embodiment is YUV4:2:0 format.
- a similar method can be used for YUV4:2:2 data.
- Step 1 Analyze the division mode S of node A. If node A continues to divide, proceed to step 2; if the current node is no longer divided into child nodes, the current node corresponds to a coding unit, and the coding unit information is resolved;
- the division mode of the node A may be at least one of quadtree division, vertical bisection, horizontal bisection, vertical trisection, and horizontal trisection, or other division modes, which are not limited in this application.
- the information about the division mode of the current node can be transmitted in the code stream, and the division mode of the current node can be obtained by parsing the corresponding syntax element in the code stream.
- the current node division method can also be determined based on preset rules, which is not limited in this application.
- Step 2 Determine whether the chroma block of at least one child node B is a small block among the child nodes obtained by the node A according to the division method S (determine the width, height, and/or division method of the node A, and/or Or whether the width and height of node B satisfy at least one of the conditions). If the chroma block of at least one child node B among the child nodes divided by node A is a small block, perform steps 3 to 6
- one of the following methods may be used to determine whether the chroma block of at least one child node B of the node A is a small block.
- the chroma block of at least one child node B of node A is 2x2, 2x4, or 4x2, the chroma block of at least one child node B of node A is a small block.
- the chroma block of at least one child node B of node A is 2 If the width or height of the chroma block of at least one child node B of node A is 2, the chroma block of at least one child node B of node A is a small block.
- node A contains 128 luminance pixels and node A uses a tri-tree division, or if node A contains 64 luminance pixels and node A uses a binary-tree division or quad-tree division or tri-tree division, then at least one child of node A
- the chroma block of node B is a small block.
- node A contains 256 luminance pixels and the node uses a tri-tree or quad-tree division, or if node A contains 128 luminance pixels and the node uses a binary-tree division, then at least one of the child node B’s chroma blocks For small pieces.
- N1 is 64, 128, or 256.
- N2 is 64 or 256.
- N3 is 64, 128, or 256.
- node A contains 128 luminance pixels, which can also be described as the area of the current node is 128, or the product of the width and height of node A is 128, which will not be repeated here.
- Step 3 Restrict all coding units in the coverage area of node A to use intra prediction or all inter prediction.
- the intra-frame or inter-frame prediction is used, which can realize the parallel processing of small blocks by the hardware and improve the performance of codec.
- Whether all coding units in the coverage area of the node A use intra prediction or all inter prediction can be determined by one of the following methods.
- Method 1 Determine according to the flag bit in the grammar table.
- cons_pred_mode_flag can be a syntax element that needs to be parsed during the block division process. When the syntax element is parsed, the cu_pred_mode of the coding unit of the coverage area of the node A can no longer be parsed, and its value is the default value corresponding to the value of cons_pred_mode_flag.
- node A can only use the intra prediction mode, for example, node A is in the intra image (that is, the image type of node A is Intra or I), or node A is in the intra image Medium and the sequence does not use IBC technology, then cons_pred_mode_flag defaults to 1, and does not appear in the code stream.
- the IBC technology can belong to inter prediction or intra prediction.
- Method 2 Determined by the prediction mode of the first node in the node A area.
- the prediction mode of the first coding unit B0 is not limited
- the prediction mode of B0 is intra prediction, all coding units in the coverage area of node A use the frame Intra prediction; if the prediction mode of B0 is inter prediction, then all coding units in the area covered by node A use inter prediction.
- Step 4 According to the prediction mode used by the coding unit of the coverage area of the node A, determine the division method of the chroma block and the luma block of the node A.
- the brightness block of node A is divided according to the division mode S described, to obtain N brightness coding tree nodes; the chroma block of node A is not divided, Corresponding to a chroma coding block (abbreviated as chroma CB).
- the N luminance coding tree nodes can be restricted to not continue to be divided, or do not make this restriction.
- the division method is analyzed to recursively divide. When the brightness coding tree node is no longer divided, it corresponds to a brightness coding block (abbreviated as brightness CB).
- the chroma transform block corresponding to the chroma CB is the same size as the chroma coding block, and the chroma prediction block and the chroma coding block are the same size.
- the luma block and the chroma block of node A are further divided into N coding tree nodes including the luma block and the chroma block according to the division mode S.
- the coding tree node may continue to be divided or not divided, and when not divided, it corresponds to a coding unit including a luma block and a chroma block.
- Step 5 Analyze the prediction information and residual information of the CU divided by the node A.
- the prediction information includes: prediction mode (indicating intra prediction or non-intra prediction mode), intra prediction mode, inter prediction mode, motion information, and the like.
- the motion information may include prediction direction (forward, backward or bidirectional), reference frame index (reference index), motion vector (motion vector) and other information.
- the residual information includes: coded block flags (coded block flags, cbf), transform coefficients, transform types (such as DCT-2, DST-7, DCT-8), and so on.
- coded block flags coded block flags, cbf
- transform coefficients transform types (such as DCT-2, DST-7, DCT-8), and so on.
- the transform type can default to DCT-2 transform.
- the prediction information analysis of the luminance CB divided by Node A includes skip_flag, merge_flag, cu_pred_mode default to 0, 0, and 1 (ie skip_flag, merge_flag, cu_pred_mode None of them appear in the code stream), or skip_flag and cu_pred_mode default to 0 and 1 respectively (that is, skip_flag and cu_pred_mode do not appear in the code stream).
- the intra prediction mode information of the brightness CB will be resolved; the chroma obtained by the node A division
- the analysis of the prediction information of the CB includes analyzing the intra prediction mode of the chroma CB.
- the analysis method of the intra prediction mode of the chroma CB may be: 1) obtained by parsing the syntax elements from the code stream; 2) directly set to one of the set of chroma intra prediction modes, such as the linear model mode and the DM mode (chroma derived mode, DM) and IBC mode.
- the analysis of the prediction mode of the CU divided by Node A includes parsing skip_flag or/and merge_flag, and cu_pred_mode is set to 0 by default, parsing inter prediction information, such as fusion index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector prediction value index (motion vector predictor index) and motion vector difference component (motion vector difference)
- inter prediction information such as fusion index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector prediction value index (motion vector predictor index) and motion vector difference component (motion vector difference)
- skip_flag is a flag of skip mode
- a value of 1 indicates that the current CU uses the skip mode
- a value of 0 indicates that the current CU does not use the skip mode
- merge_flag is the fusion mode flag.
- a value of 1 indicates that the current CU uses the fusion mode; a value of 0 indicates that the fusion mode is not used.
- cu_pred_mode is the coding unit prediction mode flag.
- a value of 1 indicates that the current prediction unit uses intra prediction; a value of 0 indicates that the current prediction unit uses ordinary inter prediction (identifies the inter prediction direction, reference frame index, motion vector prediction in the code stream Value index, motion vector difference, etc.).
- the intra prediction mode in this embodiment is a prediction mode that uses the spatial reference pixels of the image where the coding block is located to generate the prediction value of the coding block, such as direct current mode (DC mode), planar mode ( Planar mode, angular mode, may also include template matching mode (template matching mode), IBC mode.
- DC mode direct current mode
- Planar mode Planar mode, angular mode
- template matching mode template matching mode
- IBC mode IBC mode
- the inter prediction mode is a prediction mode that uses the time-domain reference pixels in the reference image of the coding block to generate the prediction value of the coding block, such as skip mode (Skip mode), fusion mode (Merge mode), and AMVP (advanced motion vector) prediction) mode or ordinary Inter mode, IBC mode, etc.
- skip mode Skip mode
- fusion mode Merge mode
- AMVP advanced motion vector
- Step 6 Decode each CU to obtain the reconstruction signal of the image block corresponding to node A
- inter prediction processing or intra prediction processing is performed on each CU from the prediction information of each CU to obtain an inter prediction image or an intra prediction image of each CU.
- the transform coefficient is subjected to inverse quantization and inverse transform processing to obtain a residual image, which is superimposed on the predicted image of the corresponding area to generate a reconstructed image.
- the chroma small block using intra prediction will not be generated, thereby solving the problem of intra prediction of small blocks.
- steps 1, 2, 3, and 6 are the same as the first decoding method. The difference is that:
- Step 4 Decide how to divide the chroma block and luma block of node A.
- the brightness block of node A is further divided according to the division mode S, and N brightness coding tree nodes are generated.
- the chroma block of node A is no longer divided, and corresponds to a chroma coding block (chroma CB).
- the chroma transform block corresponding to the chroma CB is the same size as the chroma coding block.
- Step 5 Analyze the prediction information and residual information of the CU divided by the node A.
- each CU divided by the node A restricts that only intra prediction can be used, the processing is the same as in the first embodiment.
- the prediction information analysis of the luminance CB divided by node A includes parsing skip_flag or/and merge_flag, and cu_pred_mode is set to 0 by default, parsing inter prediction information, such as fusion Index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector predictor index (motion vector predictor index) and motion vector difference (motion vector difference).
- inter prediction information such as fusion Index (merge index), inter prediction direction (inter dir), reference frame index (reference index), motion vector predictor index (motion vector predictor index) and motion vector difference (motion vector difference).
- each CU divided by node A can only use inter prediction, the prediction information of chroma CB divided by node A does not need to be analyzed, and the chroma CB is divided into 2x2 chroma sub-blocks (this division can be divided S), the motion information of each 2x2 chroma sub-block is the motion information of the 4x4 luminance region corresponding to each 2x2 chroma sub-block.
- Step 1, Step 2, Step 3, Step 4, and Step 6 are the same as the second decoding method. The difference is that:
- Step 5 Analyze the prediction information and residual information of the CU divided by the node A.
- each CU divided by the node A restricts that only inter prediction can be used, the analysis of the prediction information of the luminance CB divided by the node A is the same as the second embodiment.
- the prediction information of chroma CB divided by node A does not need to be analyzed, the size of the chroma prediction block and the chroma coding block are the same, and the motion information of chroma CB is Motion information at a preset position in the brightness area corresponding to the chroma CB (such as the center, lower right corner, or upper left corner of the brightness area, etc.).
- no chroma small block using intra prediction, a small block transform block, or a chroma small block using inter prediction will be generated.
- Step 1 Same as Step 1 of the first video decoding method above
- Step 2 Determine whether there are at least one sub-node B whose brightness block is 4x4 in the sub-nodes obtained by the node A according to the division method S (determine the width, height, and/or division mode of the node A, and /Or whether the width and height of the node B satisfy at least one of the conditions in the first case).
- a method for determining whether the chroma block of at least one child node B of the node A is a small block is divided into the following two cases.
- the node A is divided according to the division mode S to obtain a 4x4 brightness block:
- Node A contains M1 pixels and node A is divided into quadtrees, for example, M1 is 64;
- Node A contains M2 pixels and node A is divided into a trigeminal tree, for example, M2 is 64;
- Node A contains M3 pixels and node A is divided into binary trees, for example, M3 is 32;
- the width of node A is equal to 4 times the second threshold, the height is equal to the second threshold, and the division mode of node A is vertical trigeminal tree division;
- node A is equal to the second threshold, and the height is equal to 4 times the second threshold, and the division of node A is a horizontal trigeminal tree division;
- the height of node A is equal to twice the second threshold, the width is equal to the second threshold, and the current node is divided into two levels;
- the size may be the width and height of the image area corresponding to node A, or the number of luminance pixels included in the image area corresponding to node A, or the area of the image area corresponding to node A.
- the width of the current node is the width of the current node corresponding to the brightness block
- the height of the current node is the height of the current node corresponding to the brightness block.
- the second threshold may be 4.
- node A contains 128 luminance pixels and node A uses a tri-tree division, or if node A contains 64 luminance pixels and node A uses a binary-tree division or quad-tree division or tri-tree division;
- node A contains 256 brightness pixels and the node uses a tri-tree or quad-tree division, or if node A contains 128 brightness pixels and the node uses a binary-tree division;
- N1 is 64, 128, or 256.
- N2 is 64 or 256.
- N3 is 64, 128, or 256.
- node A contains 128 luminance pixels, which can also be described as the area of the current node is 128, or the product of the width and height of node A is 128, which will not be repeated here.
- Step 3 Same as Step 3 of the first video decoding method above.
- Step 4 According to the prediction mode used by the coding unit of the coverage area of the node A, determine the division method of the chroma block and the luma block of the node A.
- the luma block and the chroma block of the node A are divided according to the division mode S to obtain the node A or/and the child nodes in the area covered by the node A.
- the division mode of the child nodes in the area covered by the node A or/and the node A generates a 4 ⁇ 4 brightness block, the division mode of the child node is not allowed or the child node cannot continue to be divided.
- node A For example, if the size of node A is 8x8 and the horizontal binary tree (or vertical binary tree) division is used to generate two 8x4 (or two 4x8) nodes, the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, At this time, the 8x4 (or 4x8) nodes cannot continue to be divided.
- the implementation method may use the first, second, and third video decoding methods described above, which will not be repeated here. For example, the brightness block of node A is divided, and the chroma block is not divided.
- Step 5 Analyze the prediction block and residual information of the CU divided by node A.
- step 5 of the first video decoding method described above It is the same as step 5 of the first video decoding method described above, and will not be repeated here.
- Step 6 Decode each CU to obtain the reconstruction signal of the image block corresponding to node A
- Step 1 Same as Step 1 of the first video decoding method above.
- Step 2 Determine whether there are at least one sub-node B whose brightness block is 4x4 in the sub-nodes obtained by the node A according to the division method S (determine the width, height, and/or division mode of the node A, and /Or whether the width and height of the node B satisfy at least one of the conditions in the first case). If the size (width, height) of node A, and/or the division mode S satisfy at least one of the conditions in case 1, then all intra-coding units in the coverage area of node A are restricted to use intra prediction.
- Step 3 determine whether the chroma block of at least one child node B is a small block among the child nodes obtained by the node A according to the division method S (determine the size of the node A, and/or the division method S, and/or the node If the width and height of B meet at least one of the conditions in Case 2, perform Step 3 to Step 6.
- a method for determining whether the chroma block of at least one child node B of the node A is a small block is divided into the following two cases.
- the node A is divided according to the division mode S to obtain a 4x4 brightness block:
- Node A contains M1 pixels and node A is divided into quadtrees, for example, M1 is 64;
- Node A contains M2 pixels and node A is divided into a trigeminal tree, for example, M2 is 64;
- Node A contains M3 pixels and node A is divided into binary trees, for example, M3 is 32;
- the width of node A is equal to 4 times the second threshold, the height is equal to the second threshold, and the division mode of node A is vertical trigeminal tree division;
- node A is equal to the second threshold, and the height is equal to 4 times the second threshold, and the division of node A is a horizontal trigeminal tree division;
- the height of node A is equal to twice the second threshold, the width is equal to the second threshold, and the current node is divided into two levels;
- the size may be the width and height of the image area corresponding to node A, or the number of luminance pixels included in the image area corresponding to node A, or the area of the image area corresponding to node A.
- the width of the current node is the width of the current node corresponding to the brightness block
- the height of the current node is the height of the current node corresponding to the brightness block.
- the second threshold may be 4.
- node A contains 128 luminance pixels and node A uses a tri-tree division, or if node A contains 64 luminance pixels and node A uses a binary-tree division or quad-tree division or tri-tree division;
- node A contains 256 brightness pixels and the node uses a tri-tree or quad-tree division, or if node A contains 128 brightness pixels and the node uses a binary-tree division;
- N1 is 64, 128, or 256.
- N2 is 64 or 256.
- N3 is 64, 128, or 256.
- node A contains 128 luminance pixels, which can also be described as the area of the current node is 128, or the product of the width and height of node A is 128, which will not be repeated here.
- Step 3 Same as Step 3 of the first video decoding method above.
- Step 4 According to the prediction mode used by the coding unit of the coverage area of the node A, determine the division method of the chroma block and the luma block of the node A.
- the luma block and the chroma block of the node A are divided according to the division mode S to obtain the node A or/and the child nodes in the area covered by the node A.
- the division mode of the child nodes in the area covered by the node A or/and the node A generates a 4 ⁇ 4 brightness block, the division mode of the child node is not allowed or the child node cannot continue to be divided.
- node A For example, if the size of node A is 8x8 and the horizontal binary tree (or vertical binary tree) division is used to generate two 8x4 (or two 4x8) nodes, the 8x4 (or 4x8) node division will continue to produce 4x4 blocks, therefore, At this time, the 8x4 (or 4x8) nodes cannot continue to be divided.
- the implementation method may use the first, second, and third video decoding methods described above, which will not be repeated here. For example, the brightness block of node A is divided, and the chroma block is not divided.
- Step 5 Analyze the prediction block and residual information of the CU divided by node A.
- step 5 of the first video decoding method described above It is the same as step 5 of the first video decoding method described above, and will not be repeated here.
- Step 6 Decode each CU to obtain the reconstruction signal of the image block corresponding to node A
- the current region if the current region is divided once to generate 4x4 luminance blocks (for example, 64 luminance pixels use QT division, or 128 luminance pixels use TT division), then the current region defaults to restricting the use of Intra mode.
- 4x4 luminance blocks for example, 64 luminance pixels use QT division, or 128 luminance pixels use TT division
- the brightness and chroma are divided together, where if the node division in the current area produces a 4x4 brightness block, this division is not allowed. For example, if the current node is 8x8 and HBT (or VBT) is used to generate two 8x4 nodes, these nodes will continue to be divided to produce 4x4CU, so these 8x4 nodes cannot continue to be divided.
- the area limitation can only use the Intra mode, it is the same as the implementation in the first embodiment (that is, the brightness is divided, and the chroma is not divided).
- An embodiment of the present application proposes a block division method to avoid the use of intra prediction mode for chroma blocks with a small area, which is convenient for hardware pipeline processing and decoder implementation.
- intra prediction mode for chroma blocks with a small area
- inter prediction you can skip some The parsing process of the syntax elements of the prediction mode, thereby reducing the coding complexity.
- the block division method can be as follows:
- all the coding units in the coverage area of the node A are restricted to the intra prediction mode or the inter prediction mode.
- the luma block of node A continues to be divided according to the division mode S, and the chroma block of node A is no longer divided. If all coding units in the coverage area of node A use inter prediction, the luma block and the chroma block of node A are further divided into N coding tree nodes including the luma block and the chroma block according to the division mode S.
- the brightness block of node A continues to be divided according to the division mode S, and the chroma block of node A is no longer divided.
- the chroma transformation block and the chroma coding block are the same size.
- the chroma prediction block and the chroma coding block are the same size; when all coding units in the coverage area of node A use inter prediction, the chroma prediction block is divided into Sub-blocks (sub-blocks are smaller than chroma-coded blocks), and the motion vector of each sub-block is the motion vector in the luminance region corresponding to the sub-block.
- the brightness block of node A continues to be divided according to the division mode S; the chroma block of node A is no longer divided.
- the chroma transform block corresponding to the chroma encoding block is the same size as the chroma encoding block
- the chroma prediction block is the same size as the chroma encoding block
- the motion information of the chroma CB is a preset position in the luminance area corresponding to the chroma CB Sports information.
- Computer readable media may include computer readable storage media, which corresponds 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 (eg, according to a communication protocol).
- computer-readable media may generally correspond to (1) non-transitory tangible computer-readable storage media, or (2) communication media, such as signals or carrier waves.
- Data storage media may be any available media that can be accessed by one or more computers or one or more processors to retrieve instructions, code and/or data structures for implementation of the techniques described in this application.
- the computer program product may include a computer-readable medium.
- Such computer-readable storage media may include RAM, ROM, EEPROM, CD-ROM or other optical disk storage devices, magnetic disk storage devices or other magnetic storage devices, flash memory, or may be used to store instructions or data structures
- the desired program code in the form of and any other medium that can be accessed by the computer. And, any connection is properly called a computer-readable medium.
- coaxial cable, fiber optic cable, twisted pair, digital subscriber line (DSL), or wireless technology such as infrared, radio, and microwave are used to transmit instructions from a website, server, or other remote source
- coaxial cable Wire, fiber optic cable, twisted pair, DSL, or wireless technologies such as infrared, radio, and microwave are included in the definition of media.
- the computer-readable storage media and data storage media do not include connections, carrier waves, signals, or other temporary media, but are actually directed to non-transitory tangible storage media.
- magnetic disks and optical discs include compact discs (CDs), laser discs, optical discs, digital versatile discs (DVDs), and Blu-ray discs, where magnetic discs usually reproduce data magnetically, while optical discs reproduce optically using lasers data. Combinations of the above should also be included within the scope of computer-readable media.
- DSPs digital signal processors
- ASICs application specific integrated circuits
- FPGAs field programmable logic arrays
- processors may refer to any of the foregoing structure or any other structure suitable for implementation of the techniques described herein.
- the functions described in the various illustrative logical blocks, modules, and steps described herein may be provided within dedicated hardware and/or software modules configured for encoding and decoding, or in combination Into the combined codec.
- the techniques can be fully implemented in one or more circuits or logic elements.
- the technology of the present application may be implemented in a variety of devices or equipment, including wireless handsets, integrated circuits (ICs), or a set of ICs (eg, chipsets).
- ICs integrated circuits
- a set of ICs eg, chipsets
- Various components, modules or units are described in this application to emphasize the functional aspects of the device for performing the disclosed technology, but do not necessarily need to be implemented by different hardware units.
- various units may be combined in a codec hardware unit in combination with suitable software and/or firmware, or by interoperating hardware units (including one or more processors as described above) provide.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
Claims (33)
- 一种图像预测方法,其特征在于,所述方法包括:获取当前节点的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足第一条件;在确定所述当前节点满足所述第一条件的情况下,对所有属于当前节点的编码块使用进行帧内预测,从而得到所有属于所述当前节点的编码块的预测值。
- 根据权利要求1所述的方法,其特征在于,在确定所述当前节点不满足所述第一条件的情况下,所述方法还包括:根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足第二条件;在确定所述当前节点满足所述第二条件的情况下,对所有属于当前节点的编码块使用相同的预测方式进行预测,从而得到所有属于所述当前节点的编码块的预测值,所述预测方式为帧内预测或者帧间预测。
- 根据权利要求2所述的方法,其特征在于,所述根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足第二条件,包括:根据所述当前节点的划分方式,所述当前节点的尺寸和当前的采样格式(Chroma format),判断所述当前节点是否满足第二条件。
- 根据权利要求2或3所述的方法,其特征在于,所述对所有属于当前节点的编码块使用相同的预测方式进行预测包括:解析所述当前节点的预测模式状态标识;在所述预测模式状态标识的值为第一值的情况下,对所有属于所述当前节点的编码块进行帧间预测;或者,在所述预测模式状态标识的值为第二值的情况下,对所有属于所述当前节点的的编码块进行帧内预测。
- 根据权利要求2至4任一项所述的方法,其特征在于,所述对所有属于所述当前节点的编码块进行帧间预测,包括:按照所述当前节点的划分方式对所述当前节点进行划分,得到所述当前节点的子节点;根据所述当前节点的子节点的尺寸,确定所述当前节点的子节点的不被允许的划分方式;根据所述当前节点的子节点的不被允许的划分方式,确定所述当前节点的子节点的快划分策略;根据所述当前节点的子节点的块划分策略,得到所述当前节点的子节点对应的编码块,并对所述对应的编码块使用帧间预测。
- 根据权利要求1至4任一项所述的方法,其特征在于,所述对所有属于所述当前节点的的编码块进行帧内预测,包括:按照所述划分方式对所述当前节点包括的亮度块进行划分,得到划分后的亮度块,对所述划分后的亮度块使用帧内预测,将所述当前节点包括的色度块作为色度编码块,对所述色度编码块使用帧内预测。
- 根据权利要求1至6任一项所述的方法,其特征在于,所述当前节点的尺寸根据所述当前节点对应的编码树节点的尺寸和用于得到所述当前节点的划分方式确定得到。
- 一种图像预测方法,其特征在于,所述方法包括:获取当前节点的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足预设条件;在确定所述当前节点满足所述预设条件的情况下,对所有属于当前节点的编码块使用相同的预测方式进行预测,从而得到所有属于所述当前节点的编码块的预测值,所述预测方式为帧内预测或者帧间预测。
- 根据权利要求8所述的方法,其特征在于,所述根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足预设条件,包括:根据所述当前节点的划分方式,所述当前节点的尺寸和当前的采样格式(Chroma format),判断所述当前节点是否满足预设条件。
- 根据权利要求8或9所述的方法,其特征在于,所述对所有属于当前节点的编码块使用相同的预测方式进行预测包括:解析所述当前节点的预测模式状态标识;在所述预测模式状态标识的值为第一值的情况下,对所有属于所述当前节点的编码块进行帧间预测;或者,在所述预测模式状态标识的值为第二值的情况下,对所有属于所述当前节点的的编码块进行帧内预测。
- 根据权利要求8至10任一项所述的方法,其特征在于,所述对所有属于所述当前节点的编码块进行帧间预测,包括:按照所述当前节点的划分方式对所述当前节点进行划分,得到所述当前节点的子节点;根据所述当前节点的子节点的尺寸,确定所述当前节点的子节点的不被允许的划分方式;根据所述当前节点的子节点的不被允许的划分方式,确定所述当前节点的子节点的快划分策略;根据所述当前节点的子节点的块划分策略,得到所述当前节点的子节点对应的编码块,并对所述对应的编码块使用帧间预测。
- 根据权利要求8至11任一项所述的方法,其特征在于,所述当前节点的尺寸根据所述当前节点对应的编码树节点的尺寸和用于得到所述当前节点的划分方式确定得到。
- 一种图像预测方法,其特征在于,所述方法包括:根据当前节点的尺寸和所述当前节点的预测模式,确定所述当前节点不被允许的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;根据所述当前节点的不被允许的划分方式,确定所述当前节点的快划分策略;根据所述当前节点的块划分策略,得到所述当前节点对应的编码块,并对所述对应的编码块使用帧间预测。
- 根据权利要求13所述的方法,其特征在于,所述根据当前节点的尺寸和所述当前节点的预测模式,确定所述当前节点不被允许的划分方式,包括:确定是否所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量是否为32;在确定所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量为32的情况下,确定二叉树划分为所述当前节点不被允许的划分方式。
- 根据权利要求13或14所述的方法,其特征在于,所述根据当前节点的尺寸和所述当前节点的预测模式,确定所述当前节点不被允许的划分方式,包括:确定是否所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量是否为64;在确定所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量为64的情况下,确定三叉树划分为所述当前节点不被允许的划分方式。
- 根据权利要求13至15任一项所述的方法,其特征在于,所述当前节点的尺寸根据所述当前节点对应的编码树节点的尺寸和用于得到所述当前节点的划分方式确定得到。
- 一种图像预测装置,其特征在于,包括:获取模块,用于获取当前节点的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;判断模块,用于根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足第一条件;执行模块,用于在确定所述当前节点满足所述第一条件的情况下,对所有属于当前节点的编码块使用进行帧内预测,从而得到所有属于所述当前节点的编码块的预测值。
- 根据权利要求17所述的装置,其特征在于,所述判断模块还用于:在确定所述当前节点不满足所述第一条件的情况下,所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足第二条件;所述执行模块还用于:在确定所述当前节点满足所述第二条件的情况下,对所有属于当前节点的编码块使用相同的预测方式进行预测,从而得到所有属于所述当前节点的编码块的预测值,所述预测方式为帧内预测或者帧间预测。
- 根据权利要求18所述的装置,其特征在于,所述判断模块用于:根据所述当前节点的划分方式,所述当前节点的尺寸和当前的采样格式(Chroma format),判断所述当前节点是否满足第二条件。
- 根据权利要求18或者19所述的装置,其特征在于,所述执行模块用于:解析所述当前节点的预测模式状态标识;在所述预测模式状态标识的值为第一值的情况下,对所有属于所述当前节点的编码块进行帧间预测;或者,在所述预测模式状态标识的值为第二值的情况下,对所有属于所述当前节点的编码块进行帧内预测。
- 根据权利要求18至20任一项所述的装置,其特征在于,所述执行模块用于:按照所述当前节点的划分方式对所述当前节点进行划分,得到所述当前节点的子节点;根据所述当前节点的子节点的尺寸,确定所述当前节点的子节点的不被允许的划分方式;根据所述当前节点的子节点的不被允许的划分方式,确定所述当前节点的子节点的快划分策略;根据所述当前节点的子节点的块划分策略,得到所述当前节点的子节点对应的编码块,并对所述对应的编码块使用帧间预测。
- 根据权利要求17至21任一项所述的装置,其特征在于,所述执行模块用于:按照所述划分方式对所述当前节点包括的亮度块进行划分,得到划分后的亮度块,对所述划分后的亮度块使用帧内预测,将所述当前节点包括的色度块作为色度编码块, 对所述色度编码块使用帧内预测。
- 一种图像预测装置,其特征在于,所述装置包括:获取模块,用于获取当前节点的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;判断模块,用于根据所述当前节点的划分方式和所述当前节点的尺寸,判断所述当前节点是否满足预设条件;执行模块,用于在确定所述当前节点满足所述预设条件的情况下,对所有属于当前节点的编码块使用相同的预测方式进行预测,从而得到所有属于所述当前节点的的编码块的预测值,所述预测方式为帧内预测或者帧间预测。
- 根据权利要求23所述的装置,其特征在于,所述判断模块,用于:根据所述当前节点的划分方式,所述当前节点的尺寸和当前的采样格式(Chroma format),判断所述当前节点是否满足预设条件。
- 根据权利要求23或24所述的装置,其特征在于,所述执行模块用于:解析所述当前节点的预测模式状态标识;在所述预测模式状态标识的值为第一值的情况下,对所有属于所述当前节点的的编码块进行帧间预测;或者,在所述预测模式状态标识的值为第二值的情况下,对所有属于所述当前节点的编码块进行帧内预测。
- 根据权利要求23至25任一项所述的装置,其特征在于,所述执行模块用于:按照所述当前节点的划分方式对所述当前节点进行划分,得到所述当前节点的子节点;根据所述当前节点的子节点的尺寸,确定所述当前节点的子节点的不被允许的划分方式;根据所述当前节点的子节点的不被允许的划分方式,确定所述当前节点的子节点的快划分策略;根据所述当前节点的子节点的块划分策略,得到所述当前节点的子节点对应的编码块,并对所述对应的编码块使用帧间预测。
- 一种图像预测装置,其特征在于,所述装置包括:确定单元,用于根据当前节点的尺寸和所述当前节点的预测模式,确定所述当前节点不被允许的划分方式,所述当前节点为当前图像中的编码树单元(coding tree unit)中的图像块;所述确定单元,还用于根据所述当前节点的不被允许的划分方式,确定所述当前节点的快划分策略;预测单元,用于根据所述当前节点的块划分策略,得到所述当前节点对应的编码 块,并对所述对应的编码块使用帧间预测。
- 根据权利要求27所述的装置,其特征在于,所述确定单元,用于:确定是否所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量是否为32;在确定所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量为32的情况下,确定二叉树划分为所述当前节点不被允许的划分方式。
- 根据权利要求27或28所述的装置,其特征在于,所述确定单元,用于:确定是否所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量是否为64;在确定所有属于当前节点的编码块仅使用帧间模式进行预测,并且确定所述当前节点的亮度块的采样点数量为64的情况下,确定三叉树划分为所述当前节点不被允许的划分方式。
- 一种视频编码设备,其特征在于,包括处理器和用于存储所述处理器的可执行指令的存储器;其中所述处理器执行如权利要求1-16任一项所述的方法。
- 一种视频解码设备,其特征在于,包括处理器和用于存储所述处理器的可执行指令的存储器;其中所述处理器执行如权利要求1-16任一项所述的方法。
- 一种图像预测系统,其特征在于,包括:视频采集设备、如权利要求30所述的视频编码设备、如权利要求31所述的视频解码设备以及显示设备,所述视频编码设备分别与所述视频采集设备和所述视频解码设备连接,所述视频解码设备与所述显示设备连接。
- 一种计算机可读存储介质,其特征在于,其上存储有计算机程序,所述计算机程序被处理器执行以实现如权利要求1-16任一项所述的方法。
Priority Applications (17)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
AU2020205376A AU2020205376B2 (en) | 2019-01-08 | 2020-01-08 | Image prediction method, device, apparatus and system and storage medium |
JP2021539883A JP7317973B2 (ja) | 2019-01-08 | 2020-01-08 | 画像予測方法、機器、及びシステム、装置、及び記憶媒体 |
KR1020237043658A KR20240005108A (ko) | 2019-01-08 | 2020-01-08 | 이미지 예측 방법, 장치 및 시스템, 디바이스 및 저장 매체 |
CN202111475069.6A CN114173114B (zh) | 2019-01-08 | 2020-01-08 | 图像预测方法、装置、设备、系统及存储介质 |
EP20738949.5A EP3907988A4 (en) | 2019-01-08 | 2020-01-08 | Image prediction method, device, apparatus and system and storage medium |
BR112021013444-1A BR112021013444A2 (pt) | 2019-01-08 | 2020-01-08 | Método, aparelho e sistema de predição de imagem, dispositivo, e mídia de armazernamento |
MX2021008340A MX2021008340A (es) | 2019-01-08 | 2020-01-08 | Método, aparato y sistema de prediccion de imagenes, dispositivo y medio de almacenamiento. |
CN202111468095.6A CN114245113B (zh) | 2019-01-08 | 2020-01-08 | 图像预测方法、装置、设备、系统及存储介质 |
CN202080001551.3A CN112075077B (zh) | 2019-01-08 | 2020-01-08 | 图像预测方法、装置、设备、系统及存储介质 |
CN202111467815.7A CN114157864B (zh) | 2019-01-08 | 2020-01-08 | 图像预测方法、装置、设备、系统及存储介质 |
CA3125904A CA3125904A1 (en) | 2019-01-08 | 2020-01-08 | Image prediction method, apparatus, system, device, and storage medium for processing performance and speed |
KR1020217025090A KR102616713B1 (ko) | 2019-01-08 | 2020-01-08 | 이미지 예측 방법, 장치 및 시스템, 디바이스 및 저장 매체 |
US17/369,350 US11388399B2 (en) | 2019-01-08 | 2021-07-07 | Image prediction method, apparatus, and system, device, and storage medium |
US17/843,798 US11849109B2 (en) | 2019-01-08 | 2022-06-17 | Image prediction method, apparatus, and system, device, and storage medium |
JP2023117695A JP7540051B2 (ja) | 2019-01-08 | 2023-07-19 | 画像予測方法、機器、及びシステム、装置、及び記憶媒体 |
US18/503,304 US20240146909A1 (en) | 2019-01-08 | 2023-11-07 | Image prediction method, apparatus, and system, device, and storage medium |
AU2024219474A AU2024219474A1 (en) | 2019-01-08 | 2024-09-06 | Image prediction method, apparatus, and system, device, and storage medium |
Applications Claiming Priority (8)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201910016466.3 | 2019-01-08 | ||
CN201910016466 | 2019-01-08 | ||
CN201910173454.1 | 2019-03-07 | ||
CN201910173454 | 2019-03-07 | ||
CN201910219440 | 2019-03-21 | ||
CN201910219440.9 | 2019-03-21 | ||
CN201910696741.0A CN111669583A (zh) | 2019-03-07 | 2019-07-30 | 图像预测方法、装置、设备、系统及存储介质 |
CN201910696741.0 | 2019-07-30 |
Related Child Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US17/369,350 Continuation US11388399B2 (en) | 2019-01-08 | 2021-07-07 | Image prediction method, apparatus, and system, device, and storage medium |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2020143684A1 true WO2020143684A1 (zh) | 2020-07-16 |
Family
ID=71521448
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/CN2020/070976 WO2020143684A1 (zh) | 2019-01-08 | 2020-01-08 | 图像预测方法、装置、设备、系统及存储介质 |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2020143684A1 (zh) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12063375B2 (en) | 2019-08-15 | 2024-08-13 | Beijing Dajia Internet Information Technology Co., Ltd. | Small chroma block size restriction in video coding |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1750658A (zh) * | 2004-09-14 | 2006-03-22 | 华为技术有限公司 | 帧间预测模式的选择方法 |
CN101394565A (zh) * | 2008-10-20 | 2009-03-25 | 成都九洲电子信息系统有限责任公司 | 一种帧内预测方法 |
JP4921239B2 (ja) * | 2007-05-09 | 2012-04-25 | キヤノン株式会社 | 画像処理装置およびその方法 |
CN103237216A (zh) * | 2013-04-12 | 2013-08-07 | 华为技术有限公司 | 深度图像的编解码方法和编解码装置 |
CN104202602A (zh) * | 2014-08-18 | 2014-12-10 | 三星电子(中国)研发中心 | 执行视频编码的装置及方法 |
WO2018047952A1 (ja) * | 2016-09-12 | 2018-03-15 | 日本電気株式会社 | イントラ予測モード決定方法、イントラ予測モード決定装置およびイントラ予測モード決定プログラムを記憶する記憶媒体 |
-
2020
- 2020-01-08 WO PCT/CN2020/070976 patent/WO2020143684A1/zh unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN1750658A (zh) * | 2004-09-14 | 2006-03-22 | 华为技术有限公司 | 帧间预测模式的选择方法 |
JP4921239B2 (ja) * | 2007-05-09 | 2012-04-25 | キヤノン株式会社 | 画像処理装置およびその方法 |
CN101394565A (zh) * | 2008-10-20 | 2009-03-25 | 成都九洲电子信息系统有限责任公司 | 一种帧内预测方法 |
CN103237216A (zh) * | 2013-04-12 | 2013-08-07 | 华为技术有限公司 | 深度图像的编解码方法和编解码装置 |
CN104202602A (zh) * | 2014-08-18 | 2014-12-10 | 三星电子(中国)研发中心 | 执行视频编码的装置及方法 |
WO2018047952A1 (ja) * | 2016-09-12 | 2018-03-15 | 日本電気株式会社 | イントラ予測モード決定方法、イントラ予測モード決定装置およびイントラ予測モード決定プログラムを記憶する記憶媒体 |
Non-Patent Citations (1)
Title |
---|
See also references of EP3907988A4 |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US12063375B2 (en) | 2019-08-15 | 2024-08-13 | Beijing Dajia Internet Information Technology Co., Ltd. | Small chroma block size restriction in video coding |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN111327904B (zh) | 图像重建方法和装置 | |
CN112075077B (zh) | 图像预测方法、装置、设备、系统及存储介质 | |
US20230370597A1 (en) | Picture partitioning method and apparatus | |
WO2020224476A1 (zh) | 一种图像划分方法、装置及设备 | |
WO2020147514A1 (zh) | 视频编码器、视频解码器及相应方法 | |
WO2020143684A1 (zh) | 图像预测方法、装置、设备、系统及存储介质 | |
WO2020114508A1 (zh) | 视频编解码方法及装置 | |
WO2020135371A1 (zh) | 一种标志位的上下文建模方法及装置 | |
WO2020134817A1 (zh) | 预测模式确定方法、装置及编码设备和解码设备 | |
WO2020114509A1 (zh) | 视频图像解码、编码方法及装置 | |
CN111669583A (zh) | 图像预测方法、装置、设备、系统及存储介质 | |
WO2020119742A1 (zh) | 块划分方法、视频编解码方法、视频编解码器 | |
WO2020135409A1 (zh) | 视频解码方法、装置及解码设备 | |
WO2020043136A1 (zh) | 图像划分方法及装置 | |
WO2020143292A1 (zh) | 一种帧间预测方法及装置 |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 20738949 Country of ref document: EP Kind code of ref document: A1 |
|
ENP | Entry into the national phase |
Ref document number: 2021539883 Country of ref document: JP Kind code of ref document: A Ref document number: 3125904 Country of ref document: CA |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
REG | Reference to national code |
Ref country code: BR Ref legal event code: B01A Ref document number: 112021013444 Country of ref document: BR |
|
ENP | Entry into the national phase |
Ref document number: 20217025090 Country of ref document: KR Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2020205376 Country of ref document: AU Date of ref document: 20200108 Kind code of ref document: A |
|
ENP | Entry into the national phase |
Ref document number: 2020738949 Country of ref document: EP Effective date: 20210805 |
|
ENP | Entry into the national phase |
Ref document number: 112021013444 Country of ref document: BR Kind code of ref document: A2 Effective date: 20210707 |