WO2020252726A1 - Image encoding and decoding method and device and video encoding and decoding device - Google Patents
Image encoding and decoding method and device and video encoding and decoding device Download PDFInfo
- Publication number
- WO2020252726A1 WO2020252726A1 PCT/CN2019/092005 CN2019092005W WO2020252726A1 WO 2020252726 A1 WO2020252726 A1 WO 2020252726A1 CN 2019092005 W CN2019092005 W CN 2019092005W WO 2020252726 A1 WO2020252726 A1 WO 2020252726A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- size
- unit
- coding unit
- transformation
- coding
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Ceased
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
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/12—Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
- H04N19/122—Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/50—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
- H04N19/503—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
Definitions
- the embodiments of the present application relate to the technical field of video coding.
- each CTU contains a luminance component (which can be called a luminance CTU) And chrominance component (can be called chrominance CTU).
- a dual-tree partition structure or a single-tree partition structure can be used to divide the luminance CTU and chrominance CTU into coding units (CU, Coding Unit, or also called coding block CB). ).
- CU Coding Unit
- the luminance CTU and the chrominance CTU share one division indication information; for the two tree division structures, the luminance CTU and the chrominance CTU each use independent division indication information.
- the CU obtained after division includes a luminance component (may be called a luminance CU) and a chrominance component (may be called a chrominance CU).
- transform is applied to residual coefficients generated by inter-frame prediction or intra-frame prediction, that is, the residuals remaining between the original block and its prediction block are transformed into transform coefficients, and the transform coefficients are quantized and encoded into the bitstream .
- the size of the current CU or called the size
- TU Transform Unit
- the transform block TB the size of the largest transform unit
- embodiments of the present application provide an image encoding and decoding method, device, and video encoding and decoding device.
- an image encoding method including:
- the luminance component coding unit and the chrominance component coding unit of the CU are respectively divided according to the size of the largest TU;
- Encoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
- an image encoding device including:
- a determining part which determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image coding
- a dividing unit which divides the luma component coding unit and the chroma component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU;
- the encoding unit performs encoding according to the divided luminance component coding unit and chrominance component coding unit.
- an image decoding method including:
- the luminance component coding unit and the chrominance component coding unit of the CU are respectively divided according to the size of the largest TU;
- Decoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
- an image decoding device including:
- the determining part which determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding
- a dividing unit which divides the luma component coding unit and the chroma component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU;
- the decoding unit performs decoding according to the divided luminance component coding unit and chrominance component coding unit.
- a video encoding and decoding device including:
- the encoder determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image encoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is encoded according to the size of the largest TU.
- chrominance component coding unit for division and coding according to the divided luminance component coding unit and chrominance component coding unit;
- the decoder determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is calculated according to the size of the largest TU.
- the coding unit and the chrominance component coding unit are divided; and the decoding is performed according to the divided luminance component coding unit and the chrominance component coding unit.
- One of the beneficial effects of the embodiments of the present application is: when the size of the CU exceeds the size of the largest TU, the luminance CU and the chrominance CU are divided according to the size of the largest TU; thus, the chrominance CU can be divided into The chrominance TU with the same size as the maximum TU can not only improve the compression efficiency, but also improve the coding performance of the chrominance component.
- Figure 1 is a schematic diagram of the division structure of two trees and the division structure of a single tree
- Fig. 2 is a diagram showing an example in which some transform coefficients of a 64 ⁇ 64 TU are cleared
- Fig. 3 is a schematic diagram of an image coding method according to an embodiment of the present application.
- FIG. 4 is an example diagram of dividing a 128 ⁇ 128 CU into TUs according to an embodiment of the present application
- FIG. 5 is an example diagram of dividing a 256 ⁇ 256 CU into TUs according to an embodiment of the present application
- Fig. 6 is a schematic diagram of an image decoding method according to an embodiment of the present application.
- Fig. 7 is a schematic diagram of an image coding device according to an embodiment of the present application.
- Fig. 8 is a schematic diagram of an image decoding device according to an embodiment of the present application.
- Fig. 9 is a schematic diagram of an encoder/decoder according to an embodiment of the present application.
- the terms “first”, “second”, etc. are used to distinguish different elements from the terms, but they do not indicate the spatial arrangement or temporal order of these elements. These elements should not be used by these terms. Limited.
- the term “and/or” includes any and all combinations of one or more of the associated listed terms.
- the terms “comprising”, “including”, “having” and the like refer to the existence of the stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
- Figure 1 is a schematic diagram of the division structure of two trees and the division structure of a single tree. As shown on the left side of Figure 1, for the division of two trees, the luminance CTU and the chrominance CTU have their own division flags.
- the CTU can be divided into a quaternary tree first; After the tree is divided, each node is independently divided into a multi-type tree (MTT, Multi-Type Tree).
- MTT Multi-Type Tree
- the luminance CTU and the chrominance CTU share the division flag, and the CTU can be divided into a quadtree first; then, the same for each node after the quadtree division MTT division is performed locally.
- MTT division includes vertical binary tree (BT, binary tree) division (SPLIT_BT_VER), horizontal binary tree division (SPLIT_BT_HOR), vertical ternary tree (TT, ternary tree) division (SPLIT_TT_VER), and horizontal ternary tree division (SPLIT_TT_VER).
- BT binary tree
- SPLIT_BT_VER horizontal binary tree division
- SPLIT_TT_VER vertical ternary tree division
- SPLIT_TT_VER horizontal ternary tree division
- SPLIT_TT_VER horizontal ternary tree division
- Split SPLIT_TT_HOR
- the root of the quadtree is associated with the CTU, and the quadtree blocks are divided until the MTT is determined. MTT is divided recursively until reaching the leaf node, which means that CTU has been divided into CU.
- the larger-size CU needs to be divided into several TUs during the transformation and quantization process. For example, for inter slices, if the size of the largest TU of the Y component is equal to 64 ⁇ 64, then a 128 ⁇ 128 CU with three components in the 4:2:0 format will be divided into four A single tree partition structure of 64 ⁇ 64 luminance TU and eight 32 ⁇ 32 chrominance TUs. However, the 32 ⁇ 32 chroma TU is not conducive to further improving the compression efficiency.
- Fig. 2 is an example diagram in which some transform coefficients of a 64 ⁇ 64 TU are cleared. As shown in Fig. 2, Residual_Coeff[] represents residual coefficients, and transformed_Coeff[] represents transform coefficients.
- FIG. 3 is a schematic diagram of an image coding method according to an embodiment of the present application, and a CU is explained from the coding end. As shown in Figure 3, the method includes:
- Figure 3 above only schematically illustrates part of the relevant content of the embodiments of the present application, but the present application is not limited thereto.
- the order of execution among various operations can be appropriately adjusted, and some other operations can be added or some operations can be reduced.
- Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description of FIG. 3 above.
- the image coding uses inter-frame prediction, but the application is not limited thereto.
- P and B frames use a single tree division structure, and coding blocks can use intra-frame prediction or inter-frame prediction.
- a CU is subjected to processing such as prediction to obtain residual coefficients.
- the CU may be divided into multiple TBs, and operations such as transformation and quantization are performed for each TB.
- operations such as transformation and quantization are performed for each TB.
- For specific content such as residual coefficients and DCT and how to transform, quantize, and encode, you can refer to related technologies.
- the size of the CU does not exceed the size of the largest TU, the existing technology can be used for subsequent processing, which will not be repeated here.
- the size of the largest TU may be predetermined.
- the size of the largest TU may be specified as 64 ⁇ 64, but the embodiment of the present application is not limited thereto.
- the luminance component coding unit of the CU (may be called a luminance CU) is divided into a plurality of luminance component transformation units (may be called a luminance TU), and the size of the luminance TU is equal to the size of the largest TU; and in the CU If the size of the chroma component coding unit (can be called chroma CU) does not exceed the size of the largest TU, the size of the chroma CU remains unchanged; when the size of the chroma CU exceeds the size of the largest TU, the chroma The degree CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to the size of the largest TU.
- FIG. 4 is an example diagram of dividing a 128 ⁇ 128 CU into TUs according to an embodiment of the present application, taking the encoding of an inter-frame slice in a 4:2:0 format as an example.
- the CU includes a 128 ⁇ 128 luma CU (Y component), a 64 ⁇ 64 chroma CU (U component), and a 64 ⁇ 64 chroma CU (V component).
- the Y component is divided into four 64 ⁇ 64 luma TUs, correspondingly, the U component is divided into four 32 ⁇ 32 chroma TUs , The V component is divided into four 32 ⁇ 32 chroma TUs, so the size of the chroma TU is smaller.
- the Y component is divided into four 64 ⁇ 64 luminance TUs, and the size of the U component and the V component are both 64 ⁇ 64, which is equal to the size of the largest TU, then the U component The dimensions of the and V components remain unchanged. That is, as shown in FIG. 4, the U component is divided into a 64 ⁇ 64 chroma TU, and the V component is divided into a 64 ⁇ 64 chroma TU, so the size of the chroma TU is larger.
- Fig. 5 is an example diagram of dividing a 256 ⁇ 256 CU into TUs according to an embodiment of the present application, taking the coding of an inter-frame slice in a 4:2:0 format as an example.
- the CU includes a 256 ⁇ 256 luma CU (Y component), a 128 ⁇ 128 chroma CU (U component), and a 128 ⁇ 128 chroma CU (V component).
- the Y component is divided into sixteen 64 ⁇ 64 luminance TUs, and accordingly, the U component is divided into sixteen 32 ⁇ 32 colors.
- the degree TU, V component is divided into sixteen 32 ⁇ 32 chroma TUs, so the size of the chroma TU is smaller.
- the Y component is divided into sixteen 64 ⁇ 64 luminance TUs, and the size of the U component and the V component are both 128 ⁇ 128. If the size of the largest TU is exceeded, U The size of the component and the V component still needs to be further divided.
- the embodiment of the application separately divides the luminance CU and the chrominance CU; that is, as shown in FIG. 5, the U component is divided into four 64 ⁇ 64 chrominance TUs, and the V component is divided into four 64 ⁇ 64 The size of the chromaticity TU is larger.
- the chroma CU can be divided into chroma TUs with the same size as the maximum TU, which not only improves the compression efficiency, but also improves the coding performance of the chroma components.
- the above description only uses the 4:2:0 format as an example, but the embodiment of the present application is not limited to this.
- the 4:2:2 format or the 4:4:4 format is also applicable to the embodiments of the present application.
- the residuals in each TU will be input into a two-dimensional N ⁇ N matrix, where N is equal to the size of the largest TU.
- the obtained N ⁇ N transform coefficients can be quantized to obtain quantized transform coefficients.
- the relevant information is encoded into the bit stream and sent to the decoding end.
- bitstream encoding of image information such as prediction information and residual coefficients in the image area to be encoded can be implemented using solutions in related technologies, which are not limited in this application.
- the decoder can receive the bit stream accordingly and decode it accordingly. For example, at the decoder, if the CU satisfies the maximum TB division condition, it is divided in the same way as the encoder. Then the quantized transform coefficients are dequantized, and the two-dimensional N ⁇ N inverse transform is applied to the dequantized transform coefficients to obtain the residual block of the quantized sample, which is then added to the inter-frame prediction sample to obtain the reconstructed block.
- the indication information for indicating the division of the CU may be encoded; the indication information indicates the division according to the size of the largest TU when the size of the CU exceeds the size of the largest TU. Therefore, it is possible to flexibly choose whether to implement this method.
- 1 bit can be set to indicate, 1 represents the method of implementing the embodiment of this application, that is, when the size of the CU exceeds the size of the largest TU, it is divided according to the size of the largest TU, and 0 represents that the structure is still divided according to a single tree. Way; the value of this bit can be compiled into the bitstream.
- the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
- the embodiment of the present application also provides an image decoding method, and the same content as in the embodiment of the first aspect will not be repeated.
- the area of the image to be processed is still referred to as a coding unit (CU), but the present application is not limited to this, for example, it may also be referred to as a decoding unit.
- CU coding unit
- Fig. 6 is a schematic diagram of an image decoding method according to an embodiment of the present application, and a CU is explained from the decoding end. As shown in Figure 6, the method includes:
- 601 In the process of inverse transformation and dequantization of image decoding, determine whether the size of the CU exceeds the size of the largest TU;
- 603 Perform decoding according to the divided luminance component coding unit and chrominance component coding unit.
- Figure 6 above only schematically illustrates part of the relevant content of the embodiments of the present application, but the present application is not limited thereto.
- the order of execution among various operations can be appropriately adjusted, and some other operations can be added or some operations can be reduced.
- Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description of FIG. 6 above.
- the luma CU is divided into a plurality of luma TUs, the size of the luma TU is equal to the size of the largest TU, and the size of the chroma CU does not exceed the size of the largest TU. Change; In the case where the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to the size of the largest TU.
- the indication information for indicating the division of the CU is also decoded; the indication information indicates that the division is performed according to the size of the largest TU when the size of the CU exceeds the size of the largest TU.
- the image decoding uses inter-frame prediction, but the application is not limited thereto.
- the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
- the embodiment of the present application also provides an image encoding device, and the same content as in the embodiment of the first aspect will not be repeated.
- FIG. 7 is a schematic diagram of an image encoding device according to an embodiment of the present application. As shown in FIG. 7, the image encoding device 700 includes:
- the determining unit 701 which determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image coding;
- a dividing unit 702 which divides the luma component coding unit and the chroma component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU;
- the encoding unit 703 performs encoding according to the divided luminance component coding unit and chrominance component coding unit.
- the luminance component coding unit (luminance CU) of the CU is divided into a plurality of luminance component transformation units (luminance TU), the size of the luminance TU is equal to the size of the largest TU; and the size of the chrominance CU does not exceed In the case of the size of the largest TU, the size of the chroma CU remains unchanged; in the case that the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to The size of the largest TU.
- the encoding unit 703 also encodes indication information for indicating the division of the CU; the indication information indicates that the division is carried out according to the size of the largest TU when the size of the CU exceeds the size of the largest TU.
- the image coding uses inter-frame prediction, but the application is not limited thereto.
- the image encoding device 700 may also include other components or modules, and for the specific content of these components or modules, reference may be made to related technologies.
- FIG. 7 only exemplarily shows the connection relationship or signal direction between various components or modules, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used.
- the foregoing components or modules may be implemented by hardware facilities such as processors and memories; the implementation of this application does not limit this.
- the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size.
- TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
- the embodiment of the present application also provides an image decoding device, and the same content as in the embodiment of the second aspect will not be repeated.
- FIG. 8 is a schematic diagram of an image decoding device according to an embodiment of the present application. As shown in FIG. 8, the image decoding device 800 includes:
- the determining unit 801 which determines whether the size of the CU exceeds the size of the largest TU during the inverse transform and dequantization process of image decoding;
- a dividing unit 802 which divides the luminance component coding unit and the chrominance component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU;
- the decoding unit 803 performs decoding according to the divided luminance component coding unit and chrominance component coding unit.
- the luminance component coding unit (luminance CU) of the CU is divided into a plurality of luminance component transformation units (luminance TU), the size of the luminance TU is equal to the size of the largest TU; and the size of the chrominance CU does not exceed In the case of the size of the largest TU, the size of the chroma CU remains unchanged; in the case that the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to The size of the largest TU.
- the decoding unit 803 also decodes indication information used to indicate the division of the CU; the indication information indicates the division according to the size of the maximum TU when the size of the CU exceeds the size of the maximum TU.
- the image decoding uses inter-frame prediction, but the application is not limited thereto.
- the image decoding device 800 may also include other components or modules, and for the specific content of these components or modules, reference may be made to related technologies.
- FIG. 8 only exemplarily shows the connection relationship or signal direction between various components or modules, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used.
- the foregoing components or modules may be implemented by hardware facilities such as processors and memories; the implementation of this application does not limit this.
- the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
- An embodiment of the present application also provides a video codec device, where the video codec device performs image processing or video processing, including:
- the encoder determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image encoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is encoded according to the size of the largest TU.
- chrominance component coding unit and coding according to the divided luminance component coding unit and chrominance component coding unit;
- the decoder determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is calculated according to the size of the largest TU.
- the coding unit and the chrominance component coding unit are divided; and the decoding is performed according to the divided luminance component coding unit and the chrominance component coding unit.
- Fig. 9 is a schematic diagram of an encoder/decoder according to an embodiment of the present application.
- the encoder/decoder 900 may include: a processor 901 and a memory 902; the memory 902 is coupled to the processor 901.
- the memory 902 can store various data; in addition, it also stores an information processing program 903, and the program 903 is executed under the control of the processor 901.
- the functions of the image encoding device 700 may be integrated into the processor 901.
- the processor 901 may be configured to implement the image encoding method described in the embodiment of the first aspect.
- the processor 901 may be configured to perform the following control: in the process of image coding transformation and quantization, determine whether the size of the CU exceeds the size of the largest TU; in the case that the size of the CU exceeds the size of the largest TU, according to the maximum
- the size of the TU divides the luminance component coding unit and the chrominance component coding unit of the CU respectively; and performs coding according to the divided luminance component coding unit and the chrominance component coding unit.
- the functions of the image decoding device 800 may be integrated into the processor 901.
- the processor 901 may be configured to implement the image decoding method described in the embodiment of the second aspect.
- the processor 901 may be configured to perform the following control: in the inverse transform and dequantization process of image decoding, determine whether the size of the CU exceeds the size of the largest TU; in the case where the size of the CU exceeds the size of the largest TU, The luminance component coding unit and the chrominance component coding unit of the CU are respectively divided according to the size of the largest TU; and the decoding is performed according to the divided luminance component coding unit and the chrominance component coding unit.
- the encoder/decoder 900 may further include: an input/output (I/O) device 904 and a display 905, etc.; wherein the functions of the above-mentioned components are similar to those of the prior art, and will not be repeated here. It is worth noting that the encoder/decoder 900 does not necessarily include all the components shown in FIG. 9; in addition, the encoder/decoder 900 may also include components not shown in FIG. 9, and you can refer to related technologies. .
- An embodiment of the present application provides a computer-readable program, wherein when the program is executed in an electronic device, the program causes the electronic device to execute the image encoding method as described in the embodiment of the first aspect.
- An embodiment of the present application provides a storage medium storing a computer-readable program, wherein the computer-readable program enables an electronic device to execute the image encoding method described in the embodiment of the first aspect.
- An embodiment of the present application provides a computer-readable program, wherein when the program is executed in an electronic device, the program causes the electronic device to execute the image decoding method described in the embodiment of the second aspect.
- An embodiment of the present application provides a storage medium storing a computer-readable program, wherein the computer-readable program enables an electronic device to execute the image decoding method described in the embodiment of the second aspect.
- the above devices and methods of this application can be implemented by hardware, or by hardware combined with software.
- This application relates to such a computer-readable program, when the program is executed by a logic component, the logic component can realize the above-mentioned device or constituent component, or the logic component can realize the above-mentioned various methods Or steps.
- This application also relates to storage media for storing the above programs, such as hard disks, magnetic disks, optical disks, DVDs, flash memory, etc.
- the method/device described in combination with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two.
- one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams shown in the figure may correspond to each software module of the computer program flow or each hardware module.
- These software modules can respectively correspond to the steps shown in the figure.
- These hardware modules can be implemented by solidifying these software modules using a field programmable gate array (FPGA), for example.
- FPGA field programmable gate array
- the software module can be located in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art.
- a storage medium may be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor.
- the processor and the storage medium may be located in the ASIC.
- the software module can be stored in the memory of the mobile terminal, or can be stored in a memory card that can be inserted into the mobile terminal.
- the software module can be stored in the MEGA-SIM card or a large-capacity flash memory device.
- One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can be implemented as general-purpose processors, digital signal processors (DSPs) for performing the functions described in this application. ), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof.
- DSPs digital signal processors
- ASIC Application Specific Integrated Circuit
- FPGA Field Programmable Gate Array
- One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, or multiple micro-processing Processor, one or more microprocessors in communication with the DSP, or any other such configuration.
- An image coding method includes:
- the luminance component coding unit and the chrominance component coding unit of the coding unit CU are divided according to the size of the maximum transformation unit TU. ;as well as
- Encoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
- Supplement 2 The method according to Supplement 1, wherein the luminance component coding unit of the coding unit CU is divided into a plurality of luminance component transformation units, and the size of the luminance component transformation unit is equal to the maximum transformation unit TU Size, and
- the size of the chroma component coding unit of the coding unit CU does not exceed the size of the maximum transformation unit TU
- the size of the chroma component coding unit of the coding unit CU remains unchanged; in the coding unit CU
- the chrominance component unit of the coding unit CU is divided into a plurality of luminance component transformation units. The size is equal to the size of the largest transformation unit TU.
- Appendix 3 The method according to Appendix 1 or 2, wherein the method further includes:
- Encoding indication information for indicating coding unit division the indication information indicating division according to the size of the maximum transformation unit TU when the size of the coding unit CU exceeds the size of the maximum transformation unit TU.
- Supplement 4 The method according to any one of Supplements 1 to 3, wherein the image coding uses inter-frame prediction.
- An image decoding method comprising:
- the luminance component coding unit and the chrominance component coding unit of the coding unit CU are divided according to the size of the maximum transformation unit TU. ;as well as
- Decoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
- Appendix 6 The method according to Appendix 5, wherein the luminance component coding unit of the coding unit CU is divided into a plurality of luminance component transformation units, and the size of the luminance component transformation unit is equal to the maximum transformation unit TU Size, and
- the size of the chroma component coding unit of the coding unit CU does not exceed the size of the maximum transformation unit TU
- the size of the chroma component coding unit of the coding unit CU remains unchanged; in the coding unit CU
- the chrominance component unit of the coding unit CU is divided into a plurality of luminance component transformation units. The size is equal to the size of the largest transformation unit TU.
- Appendix 7 The method according to Appendix 5 or 6, wherein the method further includes:
- Decoding indication information for indicating coding unit division the indication information indicating division according to the size of the maximum transformation unit TU when the size of the coding unit CU exceeds the size of the maximum transformation unit TU.
- Supplement 8 The method according to any one of Supplements 5 to 7, wherein the image decoding uses inter-frame prediction.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Physics & Mathematics (AREA)
- Discrete Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
Description
本申请实施例涉及视频编码技术领域。The embodiments of the present application relate to the technical field of video coding.
在新一代视频编码标准(VVC,Versatile Video Coding)草案中,图像将被划分(partition)成一系列编码树单元(CTU,Coding Tree Unit),每一个CTU包含了亮度分量(可称为亮度CTU)和色度分量(可称为色度CTU)。In the draft of the new generation video coding standard (VVC, Versatile Video Coding), the image will be partitioned into a series of coding tree units (CTU, Coding Tree Unit), and each CTU contains a luminance component (which can be called a luminance CTU) And chrominance component (can be called chrominance CTU).
可以使用两棵树划分(Dual-tree partition)结构或单棵树划分(Single-tree partition)结构将亮度CTU和色度CTU划分成编码单元(CU,Coding Unit,或者也可称为编码块CB)。针对单棵树划分结构,亮度CTU与色度CTU共用一个划分指示信息;针对两棵树划分结构,亮度CTU和色度CTU各自使用独立的划分指示信息。划分后得到的CU包含亮度分量(可称为亮度CU)和色度分量(可称为色度CU)。A dual-tree partition structure or a single-tree partition structure can be used to divide the luminance CTU and chrominance CTU into coding units (CU, Coding Unit, or also called coding block CB). ). For the single tree division structure, the luminance CTU and the chrominance CTU share one division indication information; for the two tree division structures, the luminance CTU and the chrominance CTU each use independent division indication information. The CU obtained after division includes a luminance component (may be called a luminance CU) and a chrominance component (may be called a chrominance CU).
目前,变换被应用于由帧间预测或帧内预测产生的残差系数,即保留在原始块与其预测块之间的残差被变换成变换系数,并且变换系数被量化并编码到比特流中。在针对VVC草图设计的当前测试模型中,如果当前CU的尺寸(或称为大小)超过最大变换单元(TU,Transform Unit,或者也可称为变换块TB)的尺寸,则需要在变换和量化过程中将较大尺寸的CU划分成若干TU。Currently, transform is applied to residual coefficients generated by inter-frame prediction or intra-frame prediction, that is, the residuals remaining between the original block and its prediction block are transformed into transform coefficients, and the transform coefficients are quantized and encoded into the bitstream . In the current test model designed for the VVC sketch, if the size of the current CU (or called the size) exceeds the size of the largest transform unit (TU, Transform Unit, or also called the transform block TB), it needs to be transformed and quantized In the process, the larger CU is divided into several TUs.
应该注意,上面对技术背景的介绍只是为了方便对本申请的技术方案进行清楚、完整的说明,并方便本领域技术人员的理解而阐述的。不能仅仅因为这些方案在本申请的背景技术部分进行了阐述而认为上述技术方案为本领域技术人员所公知。It should be noted that the above introduction to the technical background is only for the convenience of a clear and complete description of the technical solution of the present application, and to facilitate the understanding of those skilled in the art. It should not be considered that the above technical solutions are well-known to those skilled in the art just because these solutions are described in the background art part of this application.
发明内容Summary of the invention
但是,发明人发现,在图像编码的变换和量化过程中,目前将较大尺寸的CU划分成若干TU,导致某些场景下色度CU被划分为尺寸较小的色度TU,既不利于压缩效率的提高,也降低了色度分量的编码性能。However, the inventor found that in the process of image coding transformation and quantization, currently a larger-size CU is divided into several TUs, resulting in chrominance CU being divided into smaller chrominance TUs in certain scenarios, which is not conducive to The increase in compression efficiency also reduces the coding performance of the chrominance component.
针对上述问题的至少之一,本申请实施例提供一种图像编码和解码方法、装置以及视频编解码设备。In view of at least one of the foregoing problems, embodiments of the present application provide an image encoding and decoding method, device, and video encoding and decoding device.
根据本申请实施例的第一个方面,提供一种图像编码方法,包括:According to a first aspect of the embodiments of the present application, an image encoding method is provided, including:
在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;During the transformation and quantization process of image coding, determine whether the size of the CU exceeds the size of the largest TU;
在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及In the case where the size of the CU exceeds the size of the largest TU, the luminance component coding unit and the chrominance component coding unit of the CU are respectively divided according to the size of the largest TU; and
根据划分后的亮度分量编码单元和色度分量编码单元进行编码。Encoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
根据本申请实施例的第二个方面,提供一种图像编码装置,包括:According to a second aspect of the embodiments of the present application, there is provided an image encoding device, including:
确定部,其在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;A determining part, which determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image coding;
划分部,其在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及A dividing unit, which divides the luma component coding unit and the chroma component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU; and
编码部,其根据划分后的亮度分量编码单元和色度分量编码单元进行编码。The encoding unit performs encoding according to the divided luminance component coding unit and chrominance component coding unit.
根据本申请实施例的第三个方面,提供一种图像解码方法,包括:According to a third aspect of the embodiments of the present application, an image decoding method is provided, including:
在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;In the inverse transformation and dequantization process of image decoding, determine whether the size of the CU exceeds the size of the largest TU;
在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及In the case where the size of the CU exceeds the size of the largest TU, the luminance component coding unit and the chrominance component coding unit of the CU are respectively divided according to the size of the largest TU; and
根据划分后的亮度分量编码单元和色度分量编码单元进行解码。Decoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
根据本申请实施例的第四个方面,提供一种图像解码装置,包括:According to a fourth aspect of the embodiments of the present application, there is provided an image decoding device, including:
确定部,其在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;The determining part, which determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding;
划分部,其在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及A dividing unit, which divides the luma component coding unit and the chroma component coding unit of the CU according to the size of the largest TU when the size of the CU exceeds the size of the largest TU; and
解码部,其根据划分后的亮度分量编码单元和色度分量编码单元进行解码。The decoding unit performs decoding according to the divided luminance component coding unit and chrominance component coding unit.
根据本申请实施例的第五个方面,提供一种视频编解码设备,包括:According to a fifth aspect of the embodiments of the present application, a video encoding and decoding device is provided, including:
编码器,在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行编码;The encoder determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image encoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is encoded according to the size of the largest TU. And chrominance component coding unit for division; and coding according to the divided luminance component coding unit and chrominance component coding unit;
解码器,在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对 CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行解码。The decoder determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is calculated according to the size of the largest TU. The coding unit and the chrominance component coding unit are divided; and the decoding is performed according to the divided luminance component coding unit and the chrominance component coding unit.
本申请实施例的有益效果之一在于:在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对亮度CU和色度CU进行划分;由此,色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。One of the beneficial effects of the embodiments of the present application is: when the size of the CU exceeds the size of the largest TU, the luminance CU and the chrominance CU are divided according to the size of the largest TU; thus, the chrominance CU can be divided into The chrominance TU with the same size as the maximum TU can not only improve the compression efficiency, but also improve the coding performance of the chrominance component.
参照后文的说明和附图,详细公开了本申请的特定实施方式,指明了本申请的原理可以被采用的方式。应该理解,本申请的实施方式在范围上并不因而受到限制。在所附权利要求的精神和条款的范围内,本申请的实施方式包括许多改变、修改和等同。With reference to the following description and drawings, specific implementations of the application are disclosed in detail, and the manner in which the principles of the application can be adopted is indicated. It should be understood that the scope of the implementation of the present application is not limited thereby. Within the scope of the spirit and terms of the appended claims, the implementation of the present application includes many changes, modifications and equivalents.
针对一种实施方式描述和/或示出的特征可以以相同或类似的方式在一个或更多个其它实施方式中使用,与其它实施方式中的特征相组合,或替代其它实施方式中的特征。Features described and/or shown for one embodiment can be used in one or more other embodiments in the same or similar manner, combined with features in other embodiments, or substituted for features in other embodiments .
应该强调,术语“包括/包含”在本文使用时指特征、整件、步骤或组件的存在,但并不排除一个或更多个其它特征、整件、步骤或组件的存在或附加。It should be emphasized that the term "comprising/comprising" when used herein refers to the existence of features, components, steps or components, but does not exclude the existence or addition of one or more other features, components, steps or components.
在本申请实施例的一个附图或一种实施方式中描述的元素和特征可以与一个或更多个其它附图或实施方式中示出的元素和特征相结合。此外,在附图中,类似的标号表示几个附图中对应的部件,并可用于指示多于一种实施方式中使用的对应部件。The elements and features described in one drawing or one embodiment of the embodiment of the present application may be combined with the elements and features shown in one or more other drawings or embodiments. In addition, in the drawings, similar reference numerals indicate corresponding parts in several drawings, and may be used to indicate corresponding parts used in more than one embodiment.
图1是两棵树划分结构和单棵树划分结构的示意图;Figure 1 is a schematic diagram of the division structure of two trees and the division structure of a single tree;
图2是64×64的TU的部分变换系数被清零的示例图;Fig. 2 is a diagram showing an example in which some transform coefficients of a 64×64 TU are cleared;
图3是本申请实施例的图像编码方法的示意图;Fig. 3 is a schematic diagram of an image coding method according to an embodiment of the present application;
图4是本申请实施例的将128×128的CU划分为TU的示例图;4 is an example diagram of dividing a 128×128 CU into TUs according to an embodiment of the present application;
图5是本申请实施例的将256×256的CU划分为TU的示例图;FIG. 5 is an example diagram of dividing a 256×256 CU into TUs according to an embodiment of the present application;
图6是本申请实施例的图像解码方法的示意图;Fig. 6 is a schematic diagram of an image decoding method according to an embodiment of the present application;
图7是本申请实施例的图像编码装置的示意图;Fig. 7 is a schematic diagram of an image coding device according to an embodiment of the present application;
图8是本申请实施例的图像解码装置的示意图;Fig. 8 is a schematic diagram of an image decoding device according to an embodiment of the present application;
图9是本申请实施例的编码器/解码器的示意图。Fig. 9 is a schematic diagram of an encoder/decoder according to an embodiment of the present application.
参照附图,通过下面的说明书,本申请的前述以及其它特征将变得明显。在说明书和附图中,具体公开了本申请的特定实施方式,其表明了其中可以采用本申请的原则的部分实施方式,应了解的是,本申请不限于所描述的实施方式,相反,本申请包括落入所附权利要求的范围内的全部修改、变型以及等同物。With reference to the drawings, the foregoing and other features of this application will become apparent through the following description. In the specification and drawings, specific implementations of the application are specifically disclosed, which indicate some implementations in which the principles of the application can be adopted. It should be understood that the application is not limited to the described implementations, on the contrary, the The application includes all modifications, variations and equivalents falling within the scope of the appended claims.
在本申请实施例中,术语“第一”、“第二”等用于对不同元素从称谓上进行区分,但并不表示这些元素的空间排列或时间顺序等,这些元素不应被这些术语所限制。术语“和/或”包括相关联列出的术语的一种或多个中的任何一个和所有组合。术语“包含”、“包括”、“具有”等是指所陈述的特征、元素、元件或组件的存在,但并不排除存在或添加一个或多个其他特征、元素、元件或组件。In the embodiments of this application, the terms "first", "second", etc. are used to distinguish different elements from the terms, but they do not indicate the spatial arrangement or temporal order of these elements. These elements should not be used by these terms. Limited. The term "and/or" includes any and all combinations of one or more of the associated listed terms. The terms "comprising", "including", "having" and the like refer to the existence of the stated features, elements, elements or components, but do not exclude the presence or addition of one or more other features, elements, elements or components.
在本申请实施例中,单数形式“一”、“该”等包括复数形式,应广义地理解为“一种”或“一类”而并不是限定为“一个”的含义;此外术语“所述”应理解为既包括单数形式也包括复数形式,除非上下文另外明确指出。此外术语“根据”应理解为“至少部分根据……”,术语“基于”应理解为“至少部分基于……”,除非上下文另外明确指出。In the embodiments of the present application, the singular forms "a", "the", etc. include plural forms, which should be broadly understood as "a" or "a type" rather than being limited to the meaning of "a"; in addition, the term "so" "Said" should be understood to include both singular and plural forms, unless the context clearly indicates otherwise. In addition, the term "based on" should be understood as "based at least in part on..." and the term "based on" should be understood as "based at least in part on..." unless the context clearly dictates otherwise.
图1是两棵树划分结构和单棵树划分结构的示意图。如图1的左边所示,对于两棵树划分而言,亮度CTU和色度CTU分别有自己的划分标志,可以首先对该CTU进行四叉树(quaternary tree)划分;接着,对经过四叉树划分后的各个节点独立地进行多类型树(MTT,Multi-Type Tree)划分。Figure 1 is a schematic diagram of the division structure of two trees and the division structure of a single tree. As shown on the left side of Figure 1, for the division of two trees, the luminance CTU and the chrominance CTU have their own division flags. The CTU can be divided into a quaternary tree first; After the tree is divided, each node is independently divided into a multi-type tree (MTT, Multi-Type Tree).
如图1的右边所示,对于单棵树划分而言,亮度CTU和色度CTU共享划分标志,可以首先对该CTU进行四叉树划分;接着,对经过四叉树划分后的各个节点相同地进行MTT划分。As shown on the right side of Figure 1, for a single tree division, the luminance CTU and the chrominance CTU share the division flag, and the CTU can be divided into a quadtree first; then, the same for each node after the quadtree division MTT division is performed locally.
例如,MTT划分包括垂直方向的二叉树(BT,binary tree)划分(SPLIT_BT_VER)、水平方向的二叉树划分(SPLIT_BT_HOR)、垂直方向的三叉树(TT,ternary tree)划分(SPLIT_TT_VER)以及水平方向的三叉树划分(SPLIT_TT_HOR)。For example, MTT division includes vertical binary tree (BT, binary tree) division (SPLIT_BT_VER), horizontal binary tree division (SPLIT_BT_HOR), vertical ternary tree (TT, ternary tree) division (SPLIT_TT_VER), and horizontal ternary tree division (SPLIT_TT_VER). Split (SPLIT_TT_HOR).
如图1所示,四叉树的根与CTU相关联,四叉树块被划分直到MTT被确定。MTT被递归地划分直到到达叶子节点,这意味着CTU已被划分成CU。As shown in Figure 1, the root of the quadtree is associated with the CTU, and the quadtree blocks are divided until the MTT is determined. MTT is divided recursively until reaching the leaf node, which means that CTU has been divided into CU.
在针对VVC草图设计的当前测试模型中,如果当前CU的尺寸(或称为大小)超过最大TU的尺寸,则需要在变换和量化过程中将较大尺寸的CU划分成若干TU。例如,对于帧间切片(inter slice)来说,如果Y分量的最大TU的尺寸等于64×64, 则具有4:2:0格式的三个分量的128×128的CU将被划分为四个64×64的亮度TU和八个32×32的色度TU的单树分区结构。但是,32×32的色度TU不利于进一步提高压缩效率。In the current test model designed for the VVC sketch, if the size (or called the size) of the current CU exceeds the size of the largest TU, the larger-size CU needs to be divided into several TUs during the transformation and quantization process. For example, for inter slices, if the size of the largest TU of the Y component is equal to 64×64, then a 128×128 CU with three components in the 4:2:0 format will be divided into four A single tree partition structure of 64×64 luminance TU and eight 32×32 chrominance TUs. However, the 32×32 chroma TU is not conducive to further improving the compression efficiency.
再例如,在变换过程之后,超出左上角32×32区域的变换系数将被清零(zero out)。图2是64×64的TU的部分变换系数被清零的示例图,如图2所示,Residual_Coeff[]表示残差系数,transformed_Coeff[]表示变换系数。For another example, after the transformation process, the transformation coefficients beyond the 32×32 area in the upper left corner will be zeroed out. Fig. 2 is an example diagram in which some transform coefficients of a 64×64 TU are cleared. As shown in Fig. 2, Residual_Coeff[] represents residual coefficients, and transformed_Coeff[] represents transform coefficients.
也就是说,对于64×64TU,仅需要对左上32×32系数进行编码,因为离散余弦变换(DCT,Discrete Cosine Transform)被用于64×64TU,这使得二维残差系数的能量集中在左上角。然而人眼对于亮度比对于色度更加敏感;因此,期望色度TU能够具有较大尺寸。That is to say, for 64×64TU, only the upper left 32×32 coefficients need to be coded, because the discrete cosine transform (DCT, Discrete Cosine Transform) is used for 64×64TU, which makes the energy of the two-dimensional residual coefficients concentrate on the upper left angle. However, the human eye is more sensitive to brightness than to chroma; therefore, it is expected that the chroma TU can have a larger size.
第一方面的实施例Embodiments of the first aspect
本申请实施例提供一种图像编码方法。图3是本申请实施例的图像编码方法的示意图,从编码端对一个CU进行说明。如图3所示,该方法包括:The embodiment of the present application provides an image encoding method. Fig. 3 is a schematic diagram of an image coding method according to an embodiment of the present application, and a CU is explained from the coding end. As shown in Figure 3, the method includes:
301,在图像编码的变换和量化过程中确定CU的尺寸是否超过最大TU的尺寸;301. Determine whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of the image coding;
302,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及302: When the size of the CU exceeds the size of the largest TU, divide the luminance component coding unit and the chrominance component coding unit of the CU according to the size of the largest TU respectively; and
303,根据划分后的亮度分量编码单元和色度分量编码单元进行编码。303. Perform coding according to the divided luminance component coding unit and chrominance component coding unit.
值得注意的是,以上附图3仅对本申请实施例的部分相关内容进行了示意性说明,但本申请不限于此。例如可以适当地调整各个操作之间的执行顺序,此外还可以增加其他的一些操作或者减少其中的某些操作。本领域的技术人员可以根据上述内容进行适当地变型,而不仅限于上述附图3的记载。It is worth noting that Figure 3 above only schematically illustrates part of the relevant content of the embodiments of the present application, but the present application is not limited thereto. For example, the order of execution among various operations can be appropriately adjusted, and some other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description of FIG. 3 above.
在一些实施例中,所述图像编码使用帧间预测,但本申请不限于此。例如,P、B帧使用单棵树划分结构,编码块既可以使用帧内预测也可以使用帧间预测。In some embodiments, the image coding uses inter-frame prediction, but the application is not limited thereto. For example, P and B frames use a single tree division structure, and coding blocks can use intra-frame prediction or inter-frame prediction.
在一些实施例中,对一个CU进行预测等处理获得残差系数,此外可以将CU划分为多个TB,针对各TB进行变换和量化等运算。关于残差系数和DCT以及如何变换、量化、编码等具体内容,可以参考相关技术。此外,如果CU的尺寸不超过最大TU的尺寸,则可以使用现有技术进行后续处理,在此不再赘述。In some embodiments, a CU is subjected to processing such as prediction to obtain residual coefficients. In addition, the CU may be divided into multiple TBs, and operations such as transformation and quantization are performed for each TB. For specific content such as residual coefficients and DCT and how to transform, quantize, and encode, you can refer to related technologies. In addition, if the size of the CU does not exceed the size of the largest TU, the existing technology can be used for subsequent processing, which will not be repeated here.
在一些实施例中,最大TU的尺寸可以被预先确定,例如可以规定最大TU的尺 寸为64×64,但本申请实施例不限于此。In some embodiments, the size of the largest TU may be predetermined. For example, the size of the largest TU may be specified as 64×64, but the embodiment of the present application is not limited thereto.
在一些实施例中,CU的亮度分量编码单元(可称为亮度CU)被划分成多个亮度分量变换单元(可称为亮度TU),该亮度TU的尺寸等于最大TU的尺寸;并且在CU的色度分量编码单元(可称为色度CU)的尺寸不超过最大TU的尺寸的情况下,色度CU的尺寸不变;在色度CU的尺寸超过最大TU的尺寸的情况下,色度CU被划分成多个色度TU,该色度TU的尺寸等于最大TU的尺寸。In some embodiments, the luminance component coding unit of the CU (may be called a luminance CU) is divided into a plurality of luminance component transformation units (may be called a luminance TU), and the size of the luminance TU is equal to the size of the largest TU; and in the CU If the size of the chroma component coding unit (can be called chroma CU) does not exceed the size of the largest TU, the size of the chroma CU remains unchanged; when the size of the chroma CU exceeds the size of the largest TU, the chroma The degree CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to the size of the largest TU.
图4是本申请实施例的将128×128的CU划分为TU的示例图,以4:2:0格式的帧间切片的编码为例。如图4所示,该CU包括一个128×128的亮度CU(Y分量)、一个64×64的色度CU(U分量)和一个64×64的色度CU(V分量)。FIG. 4 is an example diagram of dividing a 128×128 CU into TUs according to an embodiment of the present application, taking the encoding of an inter-frame slice in a 4:2:0 format as an example. As shown in FIG. 4, the CU includes a 128×128 luma CU (Y component), a 64×64 chroma CU (U component), and a 64×64 chroma CU (V component).
假设最大TU的尺寸为64×64,如果采用单棵树划分结构,则Y分量被划分为四个64×64的亮度TU,相应地,U分量被划分为四个32×32的色度TU,V分量被划分为四个32×32的色度TU,从而色度TU的尺寸较小。Assuming that the size of the largest TU is 64×64, if a single tree division structure is used, the Y component is divided into four 64×64 luma TUs, correspondingly, the U component is divided into four 32×32 chroma TUs , The V component is divided into four 32×32 chroma TUs, so the size of the chroma TU is smaller.
如图4所示,在本申请实施例中,Y分量被划分为四个64×64的亮度TU,而U分量和V分量的尺寸均为64×64,等于最大TU的尺寸,则U分量和V分量的尺寸不变。即,如图4所示,U分量被划分为一个64×64的色度TU,V分量被划分为一个64×64的色度TU,从而色度TU的尺寸较大。As shown in Figure 4, in the embodiment of this application, the Y component is divided into four 64×64 luminance TUs, and the size of the U component and the V component are both 64×64, which is equal to the size of the largest TU, then the U component The dimensions of the and V components remain unchanged. That is, as shown in FIG. 4, the U component is divided into a 64×64 chroma TU, and the V component is divided into a 64×64 chroma TU, so the size of the chroma TU is larger.
图5是本申请实施例的将256×256的CU划分为TU的示例图,以4:2:0格式的帧间切片的编码为例。如图5所示,该CU包括一个256×256的亮度CU(Y分量)、一个128×128的色度CU(U分量)和一个128×128的色度CU(V分量)。Fig. 5 is an example diagram of dividing a 256×256 CU into TUs according to an embodiment of the present application, taking the coding of an inter-frame slice in a 4:2:0 format as an example. As shown in FIG. 5, the CU includes a 256×256 luma CU (Y component), a 128×128 chroma CU (U component), and a 128×128 chroma CU (V component).
假设最大TU的尺寸为64×64,如果采用单棵树划分结构,则Y分量被划分为十六个64×64的亮度TU,相应地,U分量被划分为十六个32×32的色度TU,V分量被划分为十六个32×32的色度TU,从而色度TU的尺寸较小。Assuming that the size of the largest TU is 64×64, if a single tree division structure is adopted, the Y component is divided into sixteen 64×64 luminance TUs, and accordingly, the U component is divided into sixteen 32×32 colors. The degree TU, V component is divided into sixteen 32×32 chroma TUs, so the size of the chroma TU is smaller.
如图5所示,在本申请实施例中,Y分量被划分为十六个64×64的亮度TU,而U分量和V分量的尺寸均为128×128,超过最大TU的尺寸,则U分量和V分量的尺寸仍需要进一步划分。本申请实施例分别独立地对亮度CU和色度CU进行划分;即,如图5所示,U分量被划分为四个64×64的色度TU,V分量被划分为四个64×64的色度TU,从而色度TU的尺寸较大。As shown in Figure 5, in this embodiment of the application, the Y component is divided into sixteen 64×64 luminance TUs, and the size of the U component and the V component are both 128×128. If the size of the largest TU is exceeded, U The size of the component and the V component still needs to be further divided. The embodiment of the application separately divides the luminance CU and the chrominance CU; that is, as shown in FIG. 5, the U component is divided into four 64×64 chrominance TUs, and the V component is divided into four 64×64 The size of the chromaticity TU is larger.
由此,色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。此外,以上仅以4:2:0格式为例进行 说明,但本申请实施例不限于此,例如4:2:2格式或4:4:4格式也同样适用本申请实施例。In this way, the chroma CU can be divided into chroma TUs with the same size as the maximum TU, which not only improves the compression efficiency, but also improves the coding performance of the chroma components. In addition, the above description only uses the 4:2:0 format as an example, but the embodiment of the present application is not limited to this. For example, the 4:2:2 format or the 4:4:4 format is also applicable to the embodiments of the present application.
在一些实施例中,每个TU中的残差将被输入到二维N×N矩阵,其中N等于最大TU的尺寸。可以对得到的N×N变换系数进行量化以获得量化的变换系数。然后,将相关信息编入比特流中,从而发送至解码端。此外,对于待编码图像区域中的预测信息、残差系数等图像信息的比特流编码,可以采用相关技术中的方案实现,本申请并不对此进行限制。In some embodiments, the residuals in each TU will be input into a two-dimensional N×N matrix, where N is equal to the size of the largest TU. The obtained N×N transform coefficients can be quantized to obtain quantized transform coefficients. Then, the relevant information is encoded into the bit stream and sent to the decoding end. In addition, bitstream encoding of image information such as prediction information and residual coefficients in the image area to be encoded can be implemented using solutions in related technologies, which are not limited in this application.
值得注意的是,以上仅以一个CU为例对本申请实施例进行了示意性说明,对于多个CU可以分别使用上述操作进行编码。以上仅对与本申请的相关内容进行了说明,但本申请不限于此。图像编码方法还可以包括其他操作或者过程,关于这些操作或者过程的具体内容,可以参考相关技术。It is worth noting that the foregoing description of the embodiment of the present application is performed schematically using only one CU as an example, and the foregoing operations may be used for encoding for multiple CUs respectively. The above only describes the content related to the application, but the application is not limited to this. The image coding method may also include other operations or processes. For the specific content of these operations or processes, reference may be made to related technologies.
此外,解码端可以相应地接收比特流并且相应地进行解码。例如,在解码器处,如果CU满足最大TB划分的条件,则以与编码器相同的方式进行划分。然后对量化的变换系数进行去量化,将二维N×N逆变换应用于去量化的变换系数,得到量化样本的残差块,然后添加到帧间预测样本以获得重构块。In addition, the decoder can receive the bit stream accordingly and decode it accordingly. For example, at the decoder, if the CU satisfies the maximum TB division condition, it is divided in the same way as the encoder. Then the quantized transform coefficients are dequantized, and the two-dimensional N×N inverse transform is applied to the dequantized transform coefficients to obtain the residual block of the quantized sample, which is then added to the inter-frame prediction sample to obtain the reconstructed block.
在一些实施例中,可以将用于指示CU划分的指示信息进行编码;所述指示信息指示在CU的尺寸超过最大TU的尺寸的情况下按照最大TU的尺寸进行划分。由此可以灵活地选择是否实现该方法。In some embodiments, the indication information for indicating the division of the CU may be encoded; the indication information indicates the division according to the size of the largest TU when the size of the CU exceeds the size of the largest TU. Therefore, it is possible to flexibly choose whether to implement this method.
例如,可以设置1比特进行指示,1表示执行本申请实施例的方式,即在CU的尺寸超过最大TU的尺寸的情况下按照最大TU的尺寸进行划分,0表示仍然按照单棵树划分结构的方式;可以将该比特的取值编入比特流中。For example, 1 bit can be set to indicate, 1 represents the method of implementing the embodiment of this application, that is, when the size of the CU exceeds the size of the largest TU, it is divided according to the size of the largest TU, and 0 represents that the structure is still divided according to a single tree. Way; the value of this bit can be compiled into the bitstream.
以上各个实施例仅对本申请实施例进行了示例性说明,但本申请不限于此,还可以在以上各个实施例的基础上进行适当的变型。例如,可以单独使用上述各个实施例,也可以将以上各个实施例中的一种或多种结合起来。The above embodiments only exemplify the embodiments of the present application, but the present application is not limited to this, and appropriate modifications may also be made on the basis of the above various embodiments. For example, each of the above embodiments may be used alone, or one or more of the above embodiments may be combined.
由上述实施例可知,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对亮度CU和色度CU进行划分;色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。It can be seen from the above embodiment that when the size of the CU exceeds the size of the largest TU, the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
第二方面的实施例Embodiments of the second aspect
本申请实施例还提供一种图像解码方法,与第一方面的实施例中相同的内容不再赘述。在解码端,为方便起见,仍然将待处理图像的区域称为编码单元(CU),但本申请不限于此,例如也可以称为解码单元。The embodiment of the present application also provides an image decoding method, and the same content as in the embodiment of the first aspect will not be repeated. At the decoding end, for convenience, the area of the image to be processed is still referred to as a coding unit (CU), but the present application is not limited to this, for example, it may also be referred to as a decoding unit.
图6是本申请实施例的图像解码方法的示意图,从解码端对一个CU进行说明。如图6所示,该方法包括:Fig. 6 is a schematic diagram of an image decoding method according to an embodiment of the present application, and a CU is explained from the decoding end. As shown in Figure 6, the method includes:
601,在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;601: In the process of inverse transformation and dequantization of image decoding, determine whether the size of the CU exceeds the size of the largest TU;
602,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及602. In a case where the size of the CU exceeds the size of the largest TU, divide the luminance component coding unit and the chrominance component coding unit of the CU according to the size of the largest TU respectively; and
603,根据划分后的亮度分量编码单元和色度分量编码单元进行解码。603: Perform decoding according to the divided luminance component coding unit and chrominance component coding unit.
值得注意的是,以上附图6仅对本申请实施例的部分相关内容进行了示意性说明,但本申请不限于此。例如可以适当地调整各个操作之间的执行顺序,此外还可以增加其他的一些操作或者减少其中的某些操作。本领域的技术人员可以根据上述内容进行适当地变型,而不仅限于上述附图6的记载。It is worth noting that Figure 6 above only schematically illustrates part of the relevant content of the embodiments of the present application, but the present application is not limited thereto. For example, the order of execution among various operations can be appropriately adjusted, and some other operations can be added or some operations can be reduced. Those skilled in the art can make appropriate modifications based on the above content, and are not limited to the description of FIG. 6 above.
在一些实施例中,亮度CU被划分成多个亮度TU,该亮度TU的尺寸等于最大TU的尺寸,并且在色度CU的尺寸不超过最大TU的尺寸的情况下,色度CU的尺寸不变;在色度CU的尺寸超过最大TU的尺寸的情况下,色度CU被划分成多个色度TU,该色度TU的尺寸等于最大TU的尺寸。In some embodiments, the luma CU is divided into a plurality of luma TUs, the size of the luma TU is equal to the size of the largest TU, and the size of the chroma CU does not exceed the size of the largest TU. Change; In the case where the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to the size of the largest TU.
在一些实施例中,还对用于指示CU划分的指示信息进行解码;所述指示信息指示在CU的尺寸超过最大TU的尺寸的情况下按照最大TU的尺寸进行划分。In some embodiments, the indication information for indicating the division of the CU is also decoded; the indication information indicates that the division is performed according to the size of the largest TU when the size of the CU exceeds the size of the largest TU.
在一些实施例中,所述图像解码使用帧间预测,但本申请不限于此。In some embodiments, the image decoding uses inter-frame prediction, but the application is not limited thereto.
以上各个实施例仅对本申请实施例进行了示例性说明,但本申请不限于此,还可以在以上各个实施例的基础上进行适当的变型。例如,可以单独使用上述各个实施例,也可以将以上各个实施例中的一种或多种结合起来。The above embodiments only exemplify the embodiments of the present application, but the present application is not limited to this, and appropriate modifications may also be made on the basis of the above various embodiments. For example, each of the above embodiments may be used alone, or one or more of the above embodiments may be combined.
由上述实施例可知,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对亮度CU和色度CU进行划分;色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。It can be seen from the above embodiment that when the size of the CU exceeds the size of the largest TU, the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
第三方面的实施例Embodiments of the third aspect
本申请实施例还提供一种图像编码装置,与第一方面的实施例中相同的内容不再赘述。The embodiment of the present application also provides an image encoding device, and the same content as in the embodiment of the first aspect will not be repeated.
图7是本申请实施例的图像编码装置的示意图,如图7所示,图像编码装置700包括:FIG. 7 is a schematic diagram of an image encoding device according to an embodiment of the present application. As shown in FIG. 7, the
确定部701,其在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;The determining
划分部702,其在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及A dividing
编码部703,其根据划分后的亮度分量编码单元和色度分量编码单元进行编码。The
在一些实施例中,CU的亮度分量编码单元(亮度CU)被划分成多个亮度分量变换单元(亮度TU),该亮度TU的尺寸等于最大TU的尺寸;并且在色度CU的尺寸不超过最大TU的尺寸的情况下,色度CU的尺寸不变;在色度CU的尺寸超过最大TU的尺寸的情况下,色度CU被划分成多个色度TU,该色度TU的尺寸等于最大TU的尺寸。In some embodiments, the luminance component coding unit (luminance CU) of the CU is divided into a plurality of luminance component transformation units (luminance TU), the size of the luminance TU is equal to the size of the largest TU; and the size of the chrominance CU does not exceed In the case of the size of the largest TU, the size of the chroma CU remains unchanged; in the case that the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to The size of the largest TU.
在一些实施例中,编码部703还将用于指示CU划分的指示信息进行编码;所述指示信息指示在CU的尺寸超过最大TU的尺寸的情况下按照最大TU的尺寸进行划分。In some embodiments, the
在一些实施例中,所述图像编码使用帧间预测,但本申请不限于此。In some embodiments, the image coding uses inter-frame prediction, but the application is not limited thereto.
值得注意的是,以上仅对与本申请相关的各部件或模块进行了说明,但本申请不限于此。图像编码装置700还可以包括其他部件或者模块,关于这些部件或者模块的具体内容,可以参考相关技术。It is worth noting that the above only describes the components or modules related to the application, but the application is not limited thereto. The
此外,为了简单起见,图7中仅示例性示出了各个部件或模块之间的连接关系或信号走向,但是本领域技术人员应该清楚的是,可以采用总线连接等各种相关技术。上述各个部件或模块可以通过例如处理器、存储器等硬件设施来实现;本申请实施并不对此进行限制。In addition, for the sake of simplicity, FIG. 7 only exemplarily shows the connection relationship or signal direction between various components or modules, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used. The foregoing components or modules may be implemented by hardware facilities such as processors and memories; the implementation of this application does not limit this.
以上各实施例仅对本申请实施例进行了示例性说明,但本申请不限于此,还可以在以上各实施例的基础上进行适当的变型。例如,可以单独使用上述各个实施例,也可以将以上各个实施例中的一种或多种结合起来。The above embodiments only exemplify the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may also be made on the basis of the above embodiments. For example, each of the above embodiments may be used alone, or one or more of the above embodiments may be combined.
由上述实施例可知,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU 的尺寸分别对亮度CU和色度CU进行划分;色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。It can be seen from the above embodiment that when the size of the CU exceeds the size of the largest TU, the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size. TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
第四方面的实施例Embodiment of the fourth aspect
本申请实施例还提供一种图像解码装置,与第二方面的实施例中相同的内容不再赘述。The embodiment of the present application also provides an image decoding device, and the same content as in the embodiment of the second aspect will not be repeated.
图8是本申请实施例的图像解码装置的示意图,如图8所示,图像解码装置800包括:FIG. 8 is a schematic diagram of an image decoding device according to an embodiment of the present application. As shown in FIG. 8, the
确定部801,其在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;The determining
划分部802,其在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及A dividing
解码部803,其根据划分后的亮度分量编码单元和色度分量编码单元进行解码。The
在一些实施例中,CU的亮度分量编码单元(亮度CU)被划分成多个亮度分量变换单元(亮度TU),该亮度TU的尺寸等于最大TU的尺寸;并且在色度CU的尺寸不超过最大TU的尺寸的情况下,色度CU的尺寸不变;在色度CU的尺寸超过最大TU的尺寸的情况下,色度CU被划分成多个色度TU,该色度TU的尺寸等于最大TU的尺寸。In some embodiments, the luminance component coding unit (luminance CU) of the CU is divided into a plurality of luminance component transformation units (luminance TU), the size of the luminance TU is equal to the size of the largest TU; and the size of the chrominance CU does not exceed In the case of the size of the largest TU, the size of the chroma CU remains unchanged; in the case that the size of the chroma CU exceeds the size of the largest TU, the chroma CU is divided into multiple chroma TUs, and the size of the chroma TU is equal to The size of the largest TU.
在一些实施例中,解码部803还将用于指示CU划分的指示信息进行解码;所述指示信息指示在CU的尺寸超过最大TU的尺寸的情况下按照最大TU的尺寸进行划分。In some embodiments, the
在一些实施例中,所述图像解码使用帧间预测,但本申请不限于此。In some embodiments, the image decoding uses inter-frame prediction, but the application is not limited thereto.
值得注意的是,以上仅对与本申请相关的各部件或模块进行了说明,但本申请不限于此。图像解码装置800还可以包括其他部件或者模块,关于这些部件或者模块的具体内容,可以参考相关技术。It is worth noting that the above only describes the components or modules related to the application, but the application is not limited thereto. The
此外,为了简单起见,图8中仅示例性示出了各个部件或模块之间的连接关系或信号走向,但是本领域技术人员应该清楚的是,可以采用总线连接等各种相关技术。上述各个部件或模块可以通过例如处理器、存储器等硬件设施来实现;本申请实施并不对此进行限制。In addition, for the sake of simplicity, FIG. 8 only exemplarily shows the connection relationship or signal direction between various components or modules, but it should be clear to those skilled in the art that various related technologies such as bus connection can be used. The foregoing components or modules may be implemented by hardware facilities such as processors and memories; the implementation of this application does not limit this.
以上各实施例仅对本申请实施例进行了示例性说明,但本申请不限于此,还可以在以上各实施例的基础上进行适当的变型。例如,可以单独使用上述各个实施例,也可以将以上各个实施例中的一种或多种结合起来。The above embodiments only exemplify the embodiments of the present application, but the present application is not limited thereto, and appropriate modifications may also be made on the basis of the above embodiments. For example, each of the above embodiments may be used alone, or one or more of the above embodiments may be combined.
由上述实施例可知,在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对亮度CU和色度CU进行划分;色度CU能够被划分为与最大TU尺寸相同的色度TU,不但能够提高压缩效率,而且能够提高色度分量的编码性能。It can be seen from the above embodiment that when the size of the CU exceeds the size of the largest TU, the luma CU and the chroma CU are divided according to the size of the largest TU; the chroma CU can be divided into the same chroma as the largest TU size TU can not only improve compression efficiency, but also improve the coding performance of chrominance components.
第五方面的实施例Embodiment of the fifth aspect
本申请实施例还提供一种视频编解码设备,该视频编解码设备进行图像处理或视频处理,包括:An embodiment of the present application also provides a video codec device, where the video codec device performs image processing or video processing, including:
编码器,在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行编码;The encoder determines whether the size of the CU exceeds the size of the largest TU during the transformation and quantization process of image encoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is encoded according to the size of the largest TU. And chrominance component coding unit; and coding according to the divided luminance component coding unit and chrominance component coding unit;
解码器,在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行解码。The decoder determines whether the size of the CU exceeds the size of the largest TU during the inverse transformation and dequantization process of image decoding; in the case that the size of the CU exceeds the size of the largest TU, the luminance component of the CU is calculated according to the size of the largest TU. The coding unit and the chrominance component coding unit are divided; and the decoding is performed according to the divided luminance component coding unit and the chrominance component coding unit.
图9是本申请实施例的编码器/解码器的示意图。如图9所示,编码器/解码器900可以包括:处理器901和存储器902;存储器902耦合到处理器901。其中该存储器902可存储各种数据;此外还存储信息处理的程序903,并且在处理器901的控制下执行该程序903。Fig. 9 is a schematic diagram of an encoder/decoder according to an embodiment of the present application. As shown in FIG. 9, the encoder/
在一些实施例中,图像编码装置700的功能可以被集成到处理器901中。其中,处理器901可以被配置为实现如第一方面的实施例所述的图像编码方法。In some embodiments, the functions of the
例如,处理器901可以被配置为进行如下的控制:在图像编码的变换和量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行编码。For example, the
在一些实施例中,图像解码装置800的功能可以被集成到处理器901中。其中, 处理器901可以被配置为实现如第二方面的实施例所述的图像解码方法。In some embodiments, the functions of the
例如,处理器901可以被配置为进行如下的控制:在图像解码的逆变换和去量化过程中,确定CU的尺寸是否超过最大TU的尺寸;在CU的尺寸超过最大TU的尺寸的情况下,按照最大TU的尺寸分别对CU的亮度分量编码单元和色度分量编码单元进行划分;以及根据划分后的亮度分量编码单元和色度分量编码单元进行解码。For example, the
此外,如图9所示,编码器/解码器900还可以包括:输入输出(I/O)设备904和显示器905等;其中,上述部件的功能与现有技术类似,此处不再赘述。值得注意的是,编码器/解码器900也并不是必须要包括图9中所示的所有部件;此外,编码器/解码器900还可以包括图9中没有示出的部件,可以参考相关技术。In addition, as shown in FIG. 9, the encoder/
本申请实施例提供一种计算机可读程序,其中当在电子设备中执行所述程序时,所述程序使得该电子设备执行如第一方面的实施例所述的图像编码方法。An embodiment of the present application provides a computer-readable program, wherein when the program is executed in an electronic device, the program causes the electronic device to execute the image encoding method as described in the embodiment of the first aspect.
本申请实施例提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得电子设备执行如第一方面的实施例所述的图像编码方法。An embodiment of the present application provides a storage medium storing a computer-readable program, wherein the computer-readable program enables an electronic device to execute the image encoding method described in the embodiment of the first aspect.
本申请实施例提供一种计算机可读程序,其中当在电子设备中执行所述程序时,所述程序使得该电子设备执行如第二方面的实施例所述的图像解码方法。An embodiment of the present application provides a computer-readable program, wherein when the program is executed in an electronic device, the program causes the electronic device to execute the image decoding method described in the embodiment of the second aspect.
本申请实施例提供一种存储有计算机可读程序的存储介质,其中所述计算机可读程序使得电子设备执行如第二方面的实施例所述的图像解码方法。An embodiment of the present application provides a storage medium storing a computer-readable program, wherein the computer-readable program enables an electronic device to execute the image decoding method described in the embodiment of the second aspect.
本申请以上的装置和方法可以由硬件实现,也可以由硬件结合软件实现。本申请涉及这样的计算机可读程序,当该程序被逻辑部件所执行时,能够使该逻辑部件实现上文所述的装置或构成部件,或使该逻辑部件实现上文所述的各种方法或步骤。本申请还涉及用于存储以上程序的存储介质,如硬盘、磁盘、光盘、DVD、flash存储器等。The above devices and methods of this application can be implemented by hardware, or by hardware combined with software. This application relates to such a computer-readable program, when the program is executed by a logic component, the logic component can realize the above-mentioned device or constituent component, or the logic component can realize the above-mentioned various methods Or steps. This application also relates to storage media for storing the above programs, such as hard disks, magnetic disks, optical disks, DVDs, flash memory, etc.
结合本申请实施例描述的方法/装置可直接体现为硬件、由处理器执行的软件模块或二者组合。例如,图中所示的功能框图中的一个或多个和/或功能框图的一个或多个组合,既可以对应于计算机程序流程的各个软件模块,亦可以对应于各个硬件模块。这些软件模块,可以分别对应于图中所示的各个步骤。这些硬件模块例如可利用现场可编程门阵列(FPGA)将这些软件模块固化而实现。The method/device described in combination with the embodiments of the present application may be directly embodied as hardware, a software module executed by a processor, or a combination of the two. For example, one or more of the functional block diagrams and/or one or more combinations of the functional block diagrams shown in the figure may correspond to each software module of the computer program flow or each hardware module. These software modules can respectively correspond to the steps shown in the figure. These hardware modules can be implemented by solidifying these software modules using a field programmable gate array (FPGA), for example.
软件模块可以位于RAM存储器、闪存、ROM存储器、EPROM存储器、EEPROM存储器、寄存器、硬盘、移动磁盘、CD-ROM或者本领域已知的任何其它形式的存储介质。可以将一种存储介质耦接至处理器,从而使处理器能够从该存储介质读取信 息,且可向该存储介质写入信息;或者该存储介质可以是处理器的组成部分。处理器和存储介质可以位于ASIC中。该软件模块可以存储在移动终端的存储器中,也可以存储在可插入移动终端的存储卡中。例如,若设备(如移动终端)采用的是较大容量的MEGA-SIM卡或者大容量的闪存装置,则该软件模块可存储在该MEGA-SIM卡或者大容量的闪存装置中。The software module can be located in RAM memory, flash memory, ROM memory, EPROM memory, EEPROM memory, registers, hard disk, removable disk, CD-ROM or any other form of storage medium known in the art. A storage medium may be coupled to the processor, so that the processor can read information from the storage medium and write information to the storage medium; or the storage medium may be an integral part of the processor. The processor and the storage medium may be located in the ASIC. The software module can be stored in the memory of the mobile terminal, or can be stored in a memory card that can be inserted into the mobile terminal. For example, if the device (such as a mobile terminal) uses a larger-capacity MEGA-SIM card or a large-capacity flash memory device, the software module can be stored in the MEGA-SIM card or a large-capacity flash memory device.
针对附图中描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,可以实现为用于执行本申请所描述功能的通用处理器、数字信号处理器(DSP)、专用集成电路(ASIC)、现场可编程门阵列(FPGA)或者其它可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件或者其任意适当组合。针对附图描述的功能方框中的一个或多个和/或功能方框的一个或多个组合,还可以实现为计算设备的组合,例如,DSP和微处理器的组合、多个微处理器、与DSP通信结合的一个或多个微处理器或者任何其它这种配置。One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can be implemented as general-purpose processors, digital signal processors (DSPs) for performing the functions described in this application. ), Application Specific Integrated Circuit (ASIC), Field Programmable Gate Array (FPGA) or other programmable logic device, discrete gate or transistor logic device, discrete hardware component or any appropriate combination thereof. One or more of the functional blocks described in the drawings and/or one or more combinations of the functional blocks can also be implemented as a combination of computing devices, for example, a combination of a DSP and a microprocessor, or multiple micro-processing Processor, one or more microprocessors in communication with the DSP, or any other such configuration.
以上结合具体的实施方式对本申请进行了描述,但本领域技术人员应该清楚,这些描述都是示例性的,并不是对本申请保护范围的限制。本领域技术人员可以根据本申请的精神和原理对本申请做出各种变型和修改,这些变型和修改也在本申请的范围内。The application is described above in conjunction with specific implementations, but it should be clear to those skilled in the art that these descriptions are all exemplary and do not limit the scope of protection of the application. Those skilled in the art can make various variations and modifications to the application according to the spirit and principle of the application, and these variations and modifications are also within the scope of the application.
关于包括以上实施例的实施方式,还公开下述的附记:Regarding the implementation including the above examples, the following supplementary notes are also disclosed:
附记1、一种图像编码方法,所述方法包括:Supplement 1. An image coding method, the method includes:
在图像编码的变换和量化过程中,确定编码单元CU的尺寸是否超过最大变换单元TU的尺寸;During the transformation and quantization process of image coding, determine whether the size of the coding unit CU exceeds the size of the maximum transformation unit TU;
在所述编码单元CU的尺寸超过所述最大变换单元TU的尺寸的情况下,按照所述最大变换单元TU的尺寸分别对所述编码单元CU的亮度分量编码单元和色度分量编码单元进行划分;以及In the case where the size of the coding unit CU exceeds the size of the maximum transformation unit TU, the luminance component coding unit and the chrominance component coding unit of the coding unit CU are divided according to the size of the maximum transformation unit TU. ;as well as
根据划分后的亮度分量编码单元和色度分量编码单元进行编码。Encoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
附记2、根据附记1所述的方法,其中,所述编码单元CU的亮度分量编码单元被划分成多个亮度分量变换单元,所述亮度分量变换单元的尺寸等于所述最大变换单元TU的尺寸,并且Supplement 2. The method according to Supplement 1, wherein the luminance component coding unit of the coding unit CU is divided into a plurality of luminance component transformation units, and the size of the luminance component transformation unit is equal to the maximum transformation unit TU Size, and
在所述编码单元CU的色度分量编码单元的尺寸不超过所述最大变换单元TU的尺寸的情况下,所述编码单元CU的色度分量编码单元的尺寸不变;在所述编码单元 CU的色度分量编码单元的尺寸超过所述最大变换单元TU的尺寸的情况下,所述编码单元CU的所述色度分量单元被划分成多个亮度分量变换单元,所述亮度分量变换单元的尺寸等于所述最大变换单元TU的尺寸。In the case that the size of the chroma component coding unit of the coding unit CU does not exceed the size of the maximum transformation unit TU, the size of the chroma component coding unit of the coding unit CU remains unchanged; in the coding unit CU In the case where the size of the chrominance component coding unit exceeds the size of the maximum transformation unit TU, the chrominance component unit of the coding unit CU is divided into a plurality of luminance component transformation units. The size is equal to the size of the largest transformation unit TU.
附记3、根据附记1或2所述的方法,其中,所述方法还包括:Appendix 3. The method according to Appendix 1 or 2, wherein the method further includes:
将用于指示编码单元划分的指示信息进行编码;所述指示信息指示在所述编码单元CU的尺寸超过所述最大变换单元TU的尺寸的情况下按照所述最大变换单元TU的尺寸进行划分。Encoding indication information for indicating coding unit division; the indication information indicating division according to the size of the maximum transformation unit TU when the size of the coding unit CU exceeds the size of the maximum transformation unit TU.
附记4、根据附记1至3任一项所述的方法,其中,所述图像编码使用帧间预测。Supplement 4. The method according to any one of Supplements 1 to 3, wherein the image coding uses inter-frame prediction.
附记5、一种图像解码方法,所述方法包括:Appendix 5. An image decoding method, the method comprising:
在图像解码的逆变换和去量化过程中,确定编码单元CU的尺寸是否超过最大变换单元TU的尺寸;In the process of inverse transformation and dequantization of image decoding, it is determined whether the size of the coding unit CU exceeds the size of the maximum transformation unit TU;
在所述编码单元CU的尺寸超过所述最大变换单元TU的尺寸的情况下,按照所述最大变换单元TU的尺寸分别对所述编码单元CU的亮度分量编码单元和色度分量编码单元进行划分;以及In the case where the size of the coding unit CU exceeds the size of the maximum transformation unit TU, the luminance component coding unit and the chrominance component coding unit of the coding unit CU are divided according to the size of the maximum transformation unit TU. ;as well as
根据划分后的亮度分量编码单元和色度分量编码单元进行解码。Decoding is performed according to the divided luminance component coding unit and chrominance component coding unit.
附记6、根据附记5所述的方法,其中,所述编码单元CU的亮度分量编码单元被划分成多个亮度分量变换单元,所述亮度分量变换单元的尺寸等于所述最大变换单元TU的尺寸,并且Appendix 6. The method according to Appendix 5, wherein the luminance component coding unit of the coding unit CU is divided into a plurality of luminance component transformation units, and the size of the luminance component transformation unit is equal to the maximum transformation unit TU Size, and
在所述编码单元CU的色度分量编码单元的尺寸不超过所述最大变换单元TU的尺寸的情况下,所述编码单元CU的色度分量编码单元的尺寸不变;在所述编码单元CU的色度分量编码单元的尺寸超过所述最大变换单元TU的尺寸的情况下,所述编码单元CU的所述色度分量单元被划分成多个亮度分量变换单元,所述亮度分量变换单元的尺寸等于所述最大变换单元TU的尺寸。In the case that the size of the chroma component coding unit of the coding unit CU does not exceed the size of the maximum transformation unit TU, the size of the chroma component coding unit of the coding unit CU remains unchanged; in the coding unit CU In the case where the size of the chrominance component coding unit exceeds the size of the maximum transformation unit TU, the chrominance component unit of the coding unit CU is divided into a plurality of luminance component transformation units. The size is equal to the size of the largest transformation unit TU.
附记7、根据附记5或6所述的方法,其中,所述方法还包括:Appendix 7. The method according to Appendix 5 or 6, wherein the method further includes:
对用于指示编码单元划分的指示信息进行解码;所述指示信息指示在所述编码单元CU的尺寸超过所述最大变换单元TU的尺寸的情况下按照所述最大变换单元TU的尺寸进行划分。Decoding indication information for indicating coding unit division; the indication information indicating division according to the size of the maximum transformation unit TU when the size of the coding unit CU exceeds the size of the maximum transformation unit TU.
附记8、根据附记5至7任一项所述的方法,其中,所述图像解码使用帧间预测。Supplement 8. The method according to any one of Supplements 5 to 7, wherein the image decoding uses inter-frame prediction.
Claims (9)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2019/092005 WO2020252726A1 (en) | 2019-06-20 | 2019-06-20 | Image encoding and decoding method and device and video encoding and decoding device |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| PCT/CN2019/092005 WO2020252726A1 (en) | 2019-06-20 | 2019-06-20 | Image encoding and decoding method and device and video encoding and decoding device |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2020252726A1 true WO2020252726A1 (en) | 2020-12-24 |
Family
ID=74037190
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2019/092005 Ceased WO2020252726A1 (en) | 2019-06-20 | 2019-06-20 | Image encoding and decoding method and device and video encoding and decoding device |
Country Status (1)
| Country | Link |
|---|---|
| WO (1) | WO2020252726A1 (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN104247424A (en) * | 2012-04-05 | 2014-12-24 | 高通股份有限公司 | Coded block flag coding |
| US20170310978A1 (en) * | 2012-06-22 | 2017-10-26 | Microsoft Technology Licensing, Llc | Coded-Block-Flag Coding and Derivation |
| CN108713320A (en) * | 2016-03-16 | 2018-10-26 | 联发科技股份有限公司 | Method and apparatus for processing video data with block size limitation in video coding |
| US20190124362A1 (en) * | 2011-01-13 | 2019-04-25 | Texas Instruments Incorporated | Method and apparatus for a low complexity transform unit partitioning structure for hevc |
-
2019
- 2019-06-20 WO PCT/CN2019/092005 patent/WO2020252726A1/en not_active Ceased
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20190124362A1 (en) * | 2011-01-13 | 2019-04-25 | Texas Instruments Incorporated | Method and apparatus for a low complexity transform unit partitioning structure for hevc |
| CN104247424A (en) * | 2012-04-05 | 2014-12-24 | 高通股份有限公司 | Coded block flag coding |
| US20170310978A1 (en) * | 2012-06-22 | 2017-10-26 | Microsoft Technology Licensing, Llc | Coded-Block-Flag Coding and Derivation |
| CN108713320A (en) * | 2016-03-16 | 2018-10-26 | 联发科技股份有限公司 | Method and apparatus for processing video data with block size limitation in video coding |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| CN104853196B (en) | Decoding method and device | |
| WO2020259631A1 (en) | Signaling coding of transform-skipped blocks | |
| CN110603809B (en) | Apparatus and method for video encoding or decoding | |
| CN113365053B (en) | Encoding and decoding method, decoding end, encoding end and system | |
| CN110392256A (en) | Encoding and decoding method, encoding end, decoding end and system | |
| WO2022052533A1 (en) | Encoding method, decoding method, encoder, decoder, and encoding system | |
| CN114827609B (en) | Video image encoding and decoding method, apparatus and medium | |
| CN116193146A (en) | Image dividing method and device | |
| WO2022217442A1 (en) | Coefficient encoding/decoding method, encoder, decoder, and computer storage medium | |
| CN113660496A (en) | Multi-core parallel-based video stream decoding method and device | |
| WO2020252726A1 (en) | Image encoding and decoding method and device and video encoding and decoding device | |
| WO2023193260A1 (en) | Encoding/decoding method, code stream, encoder, decoder, and storage medium | |
| WO2020215226A1 (en) | Image decoding method, decoder and storage medium | |
| CN112449183B (en) | Video encoder, video decoder and video system | |
| CN111699681B (en) | A video image processing method, equipment and storage medium | |
| WO2020191575A1 (en) | Image coding and decoding method, image coding and decoding apparatus, and electronic device | |
| US20250220184A1 (en) | Encoding method, decoding method, and bitstream | |
| WO2024216413A1 (en) | Coding method and apparatus, decoding method and apparatus, coder, decoder, device, code stream and storage medium | |
| WO2024152352A1 (en) | Encoding method, decoding method, code stream, encoder, decoder, and storage medium | |
| KR20240033618A (en) | Video decoding device, operation method thereof, display device, and video system | |
| CN118339829A (en) | Encoding and decoding method, code stream, device, equipment and readable storage medium | |
| WO2024212190A1 (en) | Encoding and decoding methods and apparatuses, codec, bitstream, device, and storage medium | |
| WO2020087324A1 (en) | Image coding method and apparatus, and electronic device | |
| CN116546211A (en) | Video encoding method, video encoding device, computer equipment and storage medium | |
| JPWO2021050166A5 (en) |
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: 19934120 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 19934120 Country of ref document: EP Kind code of ref document: A1 |