A spatially scalable video encoding method and decoding method
Through the spatial scalable video coding method, image super-resolution technology and restoration technology are used to generate reference images, which reduces the encoding and decoding calculation amount and bit rate of ultra-high-definition video, and solves the problems of encoding and decoding complexity and high bit rate in the existing technology. , achieving network adaptability and efficient encoding and decoding.
Patent Information
- Application Number
- CN202111193953.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2021-10-13
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-10-13
AI Technical Summary
Existing video coding technologies, especially H.264 SVC and SHVC, have deficiencies in coding and decoding complexity and coding efficiency, resulting in a large amount of calculation and high code rate for encoding and decoding ultra-high-definition videos, and lack of adaptability in network transmission. sex.
The spatial scalable video coding method is used to obtain the base layer and enhancement layer images through down-sampling. Image super-resolution technology and restoration technology are used to generate reference images, which are encoded and decoded frame by frame, reducing the dependence on lower-layer data and reducing computational complexity. The motion estimation mode selection only uses traditional video coding standards in the base layer, and the enhancement layer performs super-resolution processing and coding based on deep learning.
It greatly reduces the encoding and decoding calculation amount and bit rate of ultra-high-definition video, improves the adaptability of network transmission, realizes efficient encoding and decoding of spatially scalable encoding, and is suitable for the rapid transmission of high-resolution video.
Smart Images

Figure CN114051137B_ABST
Abstract
Description
Technical Field
[0001] The present invention belongs to the technical field of video encoding and decoding, and in particular relates to a spatially scalable video encoding method and a decoding method. Background Art
[0002] Scalable coding is an important technical approach to achieve progressive coding. The code stream generated by the encoder contains one or more sub-code streams that can be decoded separately. The sub-code streams can have different bit rates, frame rates and spatial resolutions. The code stream can generally be divided into a basic layer and several enhancement layers. The transmission priority of the basic layer is the highest and should be ensured to be received. When channel conditions permit, as the code words of each enhancement layer are received and decoded, the image quality will continue to improve. There are spatial domain, time domain, signal-to-noise ratio scalability methods:
[0003] Temporal scalability: Bitstreams with different frame rates can be extracted from the bitstream.
[0004] Spatial scalability: Code streams with different image sizes can be extracted from the code stream.
[0005] Quality scalability: Code streams with different image qualities can be extracted from the code stream.
[0006] H.264SVC (Scalable Video Coding) is based on H.264, with extensions in syntax and toolset to support code streams with hierarchical characteristics. H.264SVC is Appendix G of the H.264 standard. As a new profile of H.264, H.264SVC became an official standard in October 2007. SHVC (SVC for HEVC) was also included in Appendix H of the H.265 standard in October 2014.
[0007] SVC has several design deficiencies. First, the SVC EL macroblock syntax and decoding process are completely different from AVC. SVC cannot be decoded directly without changing the AVC decoder, and even BL cannot be decoded. Second, in order to balance the computational load and memory usage, the SVC decoder has a single-loop decoding constraint. constraint), the advantage is that the highest layer image can be decoded without decoding all layers or reconstructing all RLs. The problem is that it can contain coded macroblocks of intra-frame prediction of all layers, but cannot contain coded macroblocks of inter-frame prediction of all layers. Therefore, once a macroblock of EL uses IntraBL, inter-layer prediction must also be performed from the intra-frame prediction coded macroblock corresponding to RL. Constrained intra-frame prediction is used for all frames of RL. The spatial intra-frame prediction of RL can only be found in the adjacent blocks of the intra-frame prediction coding space, and cannot be found in the macroblocks at the relevant position of the inter-frame prediction coding space. Finally, downward conversion cannot be performed at any time during the transmission process. If the decoder has been decoding in EL, then decoding in BL is insufficient. If the network adaptive optimization strategy discards EL when the bandwidth is insufficient, then BL cannot be decoded because the time domain reference of BL is gone.
[0008] In response to the shortcomings of SVC, SHVC proposed a new idea with two guiding principles: first, BL should be made as universal as possible, and modifications and adjustments should be made at the high-level syntax rather than the underlying implementation; second, ILP should continue to be efficiently explored to improve EL coding efficiency.
[0009] SHVC's BL has two transmission methods: in-band and out-band. The former requires decoder demultiplexing, but the decoding itself is a standard HEVC decoder; the difference between the EL layer decoder and the standard HEVC decoder is only the difference in the syntax of the slice header level or higher layers, and the block-level logic is the same, which meets the first principle. The main focus of inter-layer processing is how to use the DPB of BL to generate the DPB of EL, which decouples the inter-layer processing from the encoding of each layer. In addition, unlike the one-loop decoding of SVC, SHVC uses multi-loop decoding, which allows inter-layer prediction to use all pixels in the RL reference area, laying a good architectural foundation for the second principle. SHVC is obviously better than SVC in coding efficiency and versatility, but the complexity of encoding and decoding has increased significantly, which brings great challenges to future practical applications. For example, for an 8K video, to achieve spatial scalability, it is necessary to encode and decode 1K, 2K, 4K, and 8K separately, which brings a lot of calculation to practical applications. Summary of the invention
[0010] The present invention provides a spatially scalable video encoding method and decoding method, which greatly reduce the computational complexity of ultra-high-definition encoding and decoding, greatly reduce the bit rate of ultra-high-definition video, and at the same time have the network adaptability of scalable coding in transmission applications.
[0011] The present invention can be achieved through the following technical solutions:
[0012] A spatial scalable video coding method uses each frame image in a video image as the original image, and uses a downsampling method to obtain enhanced layer images and basic layer images at various levels, wherein the basic layer image is the lowest layer and the other layers are enhanced layer images; the basic layer image is encoded using an existing video coding standard, and a basic layer encoded data stream is output; then, image super-resolution technology and image restoration technology are used to calculate two reference images required for encoding the current enhanced layer image, and the enhanced layer images at various levels are encoded one by one from bottom to top, and the enhanced layer encoded data streams at various levels are output, and the encoding of the video image is completed frame by frame.
[0013] Further, the two reference images are defined as a first reference image and a second reference image, respectively, and a super-resolution image having the same resolution as the current enhancement layer image is obtained by performing video image super-resolution processing based on deep learning on the next-level coded reconstructed image, namely, the first reference image;
[0014] An image generated by using an image restoration technique to restore the coded reconstructed image of the enhancement layer corresponding to one or more frames before the frame where the current enhancement layer image is located and the first reference image is the second reference image.
[0015] Further, the current enhancement layer image to be encoded is divided into coding blocks containing N*N pixels, and encoding is performed in units of coding blocks. According to the current coding block image, a reference block image is selected from the corresponding positions of the two reference images as a prediction block image, and the current coding block image is subtracted from the prediction block image to obtain a residual block image; a plurality of transform blocks of different shapes are selected in the residual block image according to the rate-distortion optimization cost; finally, all transform blocks in the current coding block are transformed, quantized and entropy encoded in sequence, and the current coding block image encoding data stream is output, and finally the current enhancement layer encoding data stream is output.
[0016] Further, the absolute error and SAD, or the peak signal-to-noise ratio PSNR or the structural similarity SSIM between the two reference block images and the current coding block image are calculated respectively, and the calculation results are compared to select a reference block image as the prediction block image.
[0017] Furthermore, the ratio of image resolution between every two adjacent layers from bottom to top is set to an even multiple.
[0018] A spatially scalable video image decoding method based on the spatially scalable video coding method described above, wherein the base layer coded data stream is decoded using an existing video decoding standard to obtain a base layer image;
[0019] Then, two reference images of the enhancement layer are calculated from bottom to top, and the coded data streams of each level of the enhancement layer are entropy decoded, inversely quantized, and inversely transformed in units of coding blocks to obtain the corresponding residual block images in the corresponding levels of the enhancement layer images. Then, according to the reference block image index information recorded in the coding block during encoding, the prediction block image is determined from the corresponding positions of the two reference images. Finally, the prediction block image and the residual block image are added to output the current coding block reconstructed image, which is the decoded block image. The decoding of the entire frame image is completed by decoding the coding blocks one by one, and then the decoding of the video image is completed frame by frame.
[0020] Furthermore, the next level of decoded image is subjected to deep learning-based video image super-resolution processing to obtain a super-resolution image with the same resolution as the current decoded image, which is the first reference image. At the same time, an image is generated by using one or more frames of corresponding decoded images before the frame where the current decoded image is located and the first reference image through image restoration technology to generate an image, which is the second reference image.
[0021] Furthermore, information of each coding block, types of all transform blocks and reference block image index information in each coding block, as well as residual coefficients and quantization step size QP are obtained from the coded data streams of each level of enhancement layer; then, entropy decoding is performed according to the residual coefficients of all transform blocks in the coding block, and then the entropy decoded data is inversely quantized according to the quantization step size QP, and the inversely quantized data of all transform blocks are inversely transformed to obtain residual block images corresponding to each decoded block in the image of each level of enhancement layer.
[0022] The beneficial technical effects of the present invention are:
[0023] 1. It can realize spatial scalability coding and has strong network adaptability in network transmission applications.
[0024] 2. Only the existing video coding standard method is used in the basic layer, and only transform quantization entropy coding is required in the enhancement layer. There is no computationally complex motion estimation mode selection, which greatly reduces the computational complexity of ultra-high-definition encoding and decoding.
[0025] 3. Only the basic layer uses the video coding standard method to generate the basic layer bitstream, and only a small amount of residual images are used to generate the bitstream in the enhancement layer, which greatly reduces the bitrate of ultra-high-definition video. BRIEF DESCRIPTION OF THE DRAWINGS
[0026] Figure 1 It is a schematic block diagram of the encoding process of the present invention;
[0027] Figure 2It is a schematic block diagram of the decoding process of the present invention. DETAILED DESCRIPTION
[0028] The specific implementation of the present invention is described in detail below with reference to the accompanying drawings and preferred embodiments.
[0029] Scalable coding has good network adaptability in transmission applications, but SHVC and SVC have greatly improved the complexity of coding and decoding, and have also significantly reduced the coding efficiency, which brings great challenges to future practical applications. In order to solve this problem, the present invention proposes a spatial scalable coding method and decoding method, which greatly reduces the calculation amount of ultra-high-definition coding and decoding, and greatly reduces the bit rate of ultra-high-definition video, thereby accelerating the application of scalable coding of ultra-high-definition video.
[0030] 1. Coding method:
[0031] Take each frame of the video image as the original image, and use the downsampling method to obtain the enhanced layer images and the base layer images at all levels, where the base layer image is the lowest layer and the other layers are enhanced layer images; encode the base layer image using the existing video coding standard, output the base layer coded data stream, then use the image super-resolution technology and image restoration technology to calculate the two reference images corresponding to the current enhanced layer image, encode the enhanced layer images at all levels one by one from bottom to top, output the enhanced layer coded data stream at all levels, and complete the encoding of the video image frame by frame. The details are as follows:
[0032] 1. The space of the present invention can be classified into 6 levels at most. The resolution of the basic layer BL cannot be less than 176x144, that is, the width of the basic layer is not less than 176, and the height is not less than 144. The maximum supported resolution is 16K. Supports video encoding of various resolutions, and each resolution format also adopts a different classification method;
[0033] 2. The relationship between each layer is defined as follows: the original input image is the top layer, and the enhanced layer images and the base layer images of each layer are obtained by downsampling the original input image, and the base layer image is the bottom layer; from bottom to top, the ratio of image resolution between each adjacent layer is set to an even multiple, such as 2 times, or 4 times, or 8 times, or 16 times, or 32 times;
[0034] 3. Such as Figure 1 As shown, first, the base layer video image is encoded by the existing encoding method, and the base layer encoded data stream is output. Various existing video encoding standard methods such as H.264 and H265 can be used, and the inter-frame coding structure is IPPPP; then the enhancement layer image is encoded, and the enhancement layer encoded data stream is output. The enhancement layer encoding only requires the encoding of the next layer (base layer image or enhancement layer image) to reconstruct the image, thereby effectively reducing the dependence on the data of the lower layer.
[0035] For enhancement layer coding, first, the coded reconstructed image of the next level (basic layer image or enhancement layer image) is subjected to deep learning-based video image super-resolution processing to obtain a super-resolution image with the same resolution as the current enhancement layer image, which is the first reference image. The video and image super-resolution technology based on deep learning can select multiple deep learning networks such as EDVR, EDSR, etc. for implementation. Then, the absolute error and SAD, peak signal-to-noise ratio PSNR or structural similarity SSIM between the super-resolution image and the enhancement layer image are calculated, and the optimal super-resolution image is selected as the first reference image by comparing the calculation results. At the same time, the coded reconstructed image of the enhancement layer corresponding to one or more frames before the frame where the current enhancement layer image is located and the first reference image are subjected to the deep learning-based video and image restoration technology (deep learning-based image restoration technology such as EDVR, etc.) to generate an image as the second reference image. The number of frame images before the frame where the current enhancement layer image is located is determined by the maximum number of coded reference frames.
[0036] Then, the current enhancement layer image to be encoded is divided into coding blocks containing N*N (N=16, 32, 64, 128) pixels, and the current enhancement layer image is encoded in units of coding blocks. According to the current coding block image, a reference block image is selected from the corresponding positions of the two reference images as a prediction block image. The absolute error and SAD, or the peak signal-to-noise ratio PSNR or the structural similarity SSIM between the first and second reference block images and the current enhancement layer coding block image are calculated, and the optimal reference block image is selected as the prediction block image by comparing the calculation results. The current coding block image is subtracted from the prediction block image to obtain a residual block image; in the residual image block, transform blocks TU of different shapes are selected according to the rate-distortion optimization cost; finally, all transform blocks TU in the coding block are transformed, quantized and entropy encoded, and an enhancement layer coding data stream is output. The transformation, quantization and entropy encoding can be implemented by using existing technical methods such as H.264 and H265, and can be implemented by using related technologies in basic layer coding, or by using technologies different from related technologies in basic layer coding.
[0037] Each coding block CU is composed of prediction blocks PU of different sizes and shapes. Each prediction block PU can select a different reference block image. Each prediction block PU is composed of transform blocks TU of different shapes. The optimal transform block TU size type is selected according to the rate-distortion optimization cost of transform blocks of different sizes. When all transform blocks TU in the coding block are transformed and quantized, each transform block TU can select a different quantization step size QP to achieve better coding effect.
[0038] 2. Decoding Method
[0039] The present invention also provides a spatially scalable video image decoding method based on the spatially scalable video coding method described above, which uses the existing video decoding standard to decode the base layer coded data stream to obtain the base layer image; then, two reference images of the enhancement layer are calculated from bottom to top, and the coded data streams of each level of the enhancement layer are entropy decoded, inversely quantized, and inversely transformed in units of coding blocks to obtain the corresponding residual block images in the corresponding enhancement layer images at each level; then, according to the reference block index information recorded in the coding block during coding, the prediction block image is determined from the corresponding positions of the two reference images; finally, the prediction block image and the residual block image are added to output the current coding block reconstructed image, which is the decoded block image; decoding is performed one coding block at a time to complete the decoding of the entire frame image, and then the decoding of the video image is completed frame by frame. The details are as follows:
[0040] like Figure 2 As shown, first, the base layer code stream is decoded by the existing decoding method, and the base layer decoded reconstructed image is output, such as various existing decoding methods such as H.264 and H265, and the inter-frame coding structure is IPPPP; then the enhancement layer code stream is decoded, and the enhanced decoded reconstructed image is output. The enhancement layer decoding only requires the reconstructed image after decoding of the next level (base layer or enhancement layer), thereby effectively reducing the dependence on the data of the lower layer.
[0041] When decoding the enhanced layer coded data stream, first, the decoded image of the next-level enhanced layer or basic layer image is subjected to deep learning-based video image super-resolution processing to obtain a super-resolution image with the same resolution as the decoded image of the current enhanced layer image, which is the first reference image. At the same time, the image generated by the image restoration technology of one or more frames corresponding to the decoded image before the frame where the decoded image of the current enhanced layer image is located and the first reference image is used to generate an image, which is the second reference image.
[0042] Secondly, entropy decoding, inverse quantization, and inverse transformation are performed on all transform blocks TU in each decoding block CU to obtain residual block images corresponding to each level of enhancement layer. Specifically, each coding block information, all prediction block PU types and reference block image index information in each coding block, and residual coefficients and quantization step size QP of all transform block TUs of each coding block are obtained from the enhancement layer coding data stream. Then, entropy decoding is performed according to the residual coefficients of all transform block TUs in the decoding block, and then the entropy decoding data is inversely quantized according to the quantization step size QP. Finally, the inverse quantized data of all transform block TUs are inversely transformed to obtain the residual block images corresponding to each decoding block in the enhancement layer images at each level.
[0043] Then, according to the index information of the reference block image in the prediction block PU, the prediction block image corresponding to the prediction block PU is found from the corresponding positions of the first reference image and the second reference image, and the prediction block image and the residual block image are added to output the current coding block reconstructed image, which is the decoding block image. The decoding of the entire frame image is completed by decoding the coding blocks one by one, and then the decoding of the video image is completed frame by frame.
[0044] Note: When decoding the transform block TU, inverse transform, inverse quantization, and entropy decoding use existing technical methods such as H.264 and H265.
[0045] The following takes an 8K video image as an example to explain in detail the implementation process of the spatial scalable encoding and decoding method proposed in the present invention.
[0046] Implementation Example 1:
[0047] The encoding process is implemented as follows:
[0048] 1. Adopt 5-layer spatial decomposition, and the corresponding resolutions of each layer are: basic layer (BL0): 480x270, enhancement layer (EL1): 960x540, enhancement layer (EL2): 1920x1080 (2K), enhancement layer (EL3): 3840x2160 (4K), enhancement layer (EL4): 7680x4320 (8K); the resolution ratio between each layer is 2;
[0049] 2. The basic layer adopts H.264 encoding method, and the inter-frame coding structure is IPPPP;
[0050] 3. Enhancement layer coding first performs 2 times deep learning-based video image super-resolution processing on the next level (base layer or enhancement layer) coded and reconstructed image to obtain a reference image with the same resolution as the enhancement layer of this level; at the same time, another reference image is generated through the image restoration technology EDVR through the super-resolution image of the previous coded and reconstructed image of the current enhancement layer and the coded and reconstructed image of the next level (base layer or enhancement layer);
[0051] Then, the current enhancement layer image to be encoded is divided into coding blocks containing N*N (N=16, 32, 64, 128) pixels, and the current enhancement layer image is encoded in units of coding blocks. According to the current coding block image, a reference block image is selected from the corresponding positions of the two reference images as a prediction block image, and the current coding block image is subtracted from the prediction block image to obtain a residual block image; in the residual image block, transform blocks TU of different shapes are selected according to the rate-distortion optimization cost; finally, all transform block TUs in the coding block are transformed, quantized and entropy encoded, and the enhancement layer code stream is output;
[0052] 4. The reference image of the enhancement layer is obtained by super-resolution technology on the lower layer coded reconstructed image. The PSNR between the super-resolution image generated by the EDVR and EDSR deep learning network and the input image of the enhancement layer is calculated, and the optimal super-resolution image is obtained as the reference image by comparing the calculation results;
[0053] 5. Another reference image is obtained by using the image restoration technology EDVR of the coded reconstructed image before the current enhancement layer and the super-resolution image of the coded reconstructed image of the next level (base layer or enhancement layer), such as the image restoration technology EDVR based on deep learning;
[0054] 6. Each coding block is composed of PUs of different sizes and shapes, and each PU can select a different reference image;
[0055] 7. Divide the residual image into TU blocks. Each PU block is composed of TU blocks of different shapes. The optimal transform block size type is selected according to the rate-distortion optimization cost of transform blocks of different sizes.
[0056] 8. When all transform blocks in the coding block are transformed and quantized, each transform block can select a different quantization step size QP to achieve better coding effect;
[0057] 9. When the enhancement layer encodes TU, the H265 transformation, quantization, and entropy coding methods are used.
[0058] The decoding process is implemented as follows:
[0059] 1. The basic layer adopts the H.264 decoding method, and the inter-frame coding structure is IPPPP;
[0060] 2. When decoding the enhancement layer, firstly perform video image super-resolution processing based on deep learning on the decoded image of the next enhancement layer or the base layer image, and obtain a super-resolution image with the same resolution as the decoded image of the current enhancement layer image, which is the first reference image. At the same time, the image generated by the image restoration technology using the corresponding decoded image of one or more frames before the frame where the decoded image of the current enhancement layer image is located and the first reference image is the second reference image;
[0061] Taking coding blocks as units, entropy decoding, inverse quantization, and inverse transformation are performed on the coded data streams of each level of enhancement layer to obtain the corresponding residual block images in the corresponding levels of enhancement layer images, and then the prediction block image is determined from the corresponding positions of the two reference images according to the reference block index information recorded in the coding block during encoding. Finally, the prediction block image and the residual block image are added to output the reconstructed image of the current coding block, which is the decoding block image. The decoding of the entire frame image is completed by decoding the coding blocks one by one, and then the decoding of the video image is completed frame by frame.
[0062] 3. Obtain information about each coding block, all prediction block PU types and reference block image index information in each coding block, all transform block residual coefficients and quantization step size QP of each coding block from the enhanced layer coding data stream;
[0063] 4. Perform entropy decoding on the residual coefficients of all transform blocks in the coding block, then dequantize the entropy decoded data according to the quantization step size QP, and finally de-transform the dequantized data of all transform blocks to obtain the residual block image;
[0064] 5. The reference image is obtained by super-resolution technology on the lower layer image, and the super-resolution image is generated by the deep learning network type specified in the enhancement layer decoding data stream;
[0065] 6. Another reference image is obtained by using the super-resolution image of the previous decoded reconstructed image of the current enhancement layer and the decoded reconstructed image of the next level (base layer or enhancement layer) through the video image restoration technology EDVR based on deep learning;
[0066] 7. When the enhancement layer decodes TU, inverse transformation, inverse quantization, and entropy decoding are implemented using the H265 technical method.
[0067] Implementation Example 2:
[0068] The encoding process is implemented as follows:
[0069] 1. Using 3-layer spatial decomposition, the corresponding resolutions of each layer are: basic layer (BL0 level): 480x270, enhancement layer (EL1 level): 1920x1080 (2K), enhancement layer (EL2 level): 7680x4320 (8K); the resolution magnification ratio between each layer is 4;
[0070] 2. The basic layer adopts the H.265 encoding method, and the inter-frame coding structure is IPPPP;
[0071] 3. Enhancement layer coding first performs 2 times deep learning-based video image super-resolution processing on the next level (base layer or enhancement layer) coded and reconstructed image to obtain a reference image with the same resolution as the enhancement layer of this level; at the same time, another reference image is generated through the image restoration technology EDVR through the super-resolution image of the previous coded and reconstructed image of the current enhancement layer and the coded and reconstructed image of the next level (base layer or enhancement layer);
[0072] Then, the current enhancement layer image to be encoded is divided into coding blocks containing N*N (N=16, 32, 64, 128) pixels, and the current enhancement layer image is encoded in units of coding blocks. According to the current coding block image, a reference block image is selected from the corresponding positions of the two reference images as a prediction block image, and the current coding block image is subtracted from the prediction block image to obtain a residual block image; in the residual image block, transform blocks TU of different shapes are selected according to the rate-distortion optimization cost; finally, all transform block TUs in the coding block are transformed, quantized and entropy encoded, and the enhancement layer code stream is output;
[0073] 4. The reference image of the enhancement layer is obtained by super-resolution technology on the lower layer image. The SSIM between the super-resolution image generated by the EDVR and EDSR deep learning network and the input image of the enhancement layer is calculated, and the calculation results are compared to obtain the optimal super-resolution image as the reference image;
[0074] 5. Another reference image is obtained by using the image restoration technology EDVR to obtain the super-resolution image of the previous coded reconstructed image of the current enhancement layer and the coded reconstructed image of the next level (base layer or enhancement layer);
[0075] 6. Each coding block is composed of PUs of different sizes and shapes, and each PU can select a different reference image;
[0076] 7. Divide the residual image into TU blocks. Each PU block is composed of TU blocks of different shapes. The optimal transform block size type is selected according to the rate-distortion optimization cost of transform blocks of different sizes.
[0077] 8. When all transform blocks in the coding block are transformed and quantized, each transform block can select a different quantization step size QP to achieve better coding effect;
[0078] 9. When the enhancement layer encodes TU, the H265 transformation, quantization, and entropy coding methods are used.
[0079] Spatial scalable decoding is implemented as follows:
[0080] 1. The basic layer adopts the H.265 decoding method, and the inter-frame coding structure is IPPPP;
[0081] 2. When decoding the enhancement layer, firstly perform video image super-resolution processing based on deep learning on the decoded image of the next enhancement layer or the base layer image, and obtain a super-resolution image with the same resolution as the decoded image of the current enhancement layer image, which is the first reference image. At the same time, the image generated by the image restoration technology using the corresponding decoded image of one or more frames before the frame where the decoded image of the current enhancement layer image is located and the first reference image is the second reference image;
[0082] Taking coding blocks as units, entropy decoding, inverse quantization, and inverse transformation are performed on the coded data streams of each level of enhancement layer to obtain the corresponding residual block images in the corresponding levels of enhancement layer images, and then the prediction block image is determined from the corresponding positions of the two reference images according to the reference block index information recorded in the coding block during encoding. Finally, the prediction block image and the residual block image are added to output the reconstructed image of the current coding block, which is the decoding block image. The decoding of the entire frame image is completed by decoding the coding blocks one by one, and then the decoding of the video image is completed frame by frame.
[0083] 3. Obtain information about each coding block, all PU block types and reference image index information in each coding block, all transform block residual coefficients and quantization step size QP of each coding block from the enhanced layer decoded data stream;
[0084] 4. Perform entropy decoding on the residual coefficients of all transform blocks in the coding block, then dequantize the entropy decoded data according to the quantization step size QP, and finally perform inverse transformation on the dequantized data of all transform blocks to obtain the enhanced layer residual image;
[0085] 5. The reference image is obtained by super-resolution technology on the lower layer image, and the super-resolution image is generated by the deep learning network type specified in the enhancement layer decoding data stream;
[0086] 6. Another reference image is obtained by using the image restoration technology EDVR to obtain the super-resolution image of the previous decoded reconstructed image of the current enhancement layer and the decoded reconstructed image of the next level (base layer or enhancement layer);
[0087] 7. When the enhancement layer decodes TU, inverse transformation, inverse quantization, and entropy decoding are implemented using the H265 technical method.
[0088] The present invention uses video image super-resolution technology and restoration technology based on deep learning, combines the next-level enhancement layer image and one or more frames before the current enhancement layer image to obtain two reference images, selects an optimal reference image as the prediction image, and then obtains the residual image corresponding to the current enhancement layer image. The encoding and decoding of the entire video image is completed by encoding and decoding the residual image. There is no computationally complex motion estimation mode selection, which greatly reduces the calculation amount of ultra-high-definition encoding and decoding. Only a small amount of residual images produce bit streams in the enhancement layer, which greatly reduces the bit rate of ultra-high-definition video and accelerates the application of ultra-high-definition video scalable coding.
[0089] Although specific embodiments of the present invention are described above, those skilled in the art should understand that these are merely examples and that various changes or modifications may be made to these embodiments without departing from the present invention and its essence. Therefore, the scope of protection of the present invention is limited by the appended claims.
Claims
1. A spatial scalable video coding method, characterized in that: Taking each frame image in the video image as the original image, the original image is down-sampled to obtain enhanced layer images and base layer images at various levels, wherein the base layer image is the lowest layer and the other layers are enhanced layer images; the base layer image is encoded using the existing video coding standard, and the base layer coding data stream is output; then, the image super-resolution technology and image restoration technology are used to calculate the two reference images required for the current enhanced layer image coding, and the enhanced layer images at various levels are encoded one by one from bottom to top, and the enhanced layer coding data streams at various levels are output, and the encoding of the video image is completed frame by frame; The two reference images are defined as a first reference image and a second reference image, respectively. By performing a video image super-resolution process based on deep learning on the encoded reconstructed image of the next level, a super-resolution image having the same resolution as the current enhancement layer image is obtained, which is the first reference image. An image generated by using an image restoration technique to restore the coded reconstructed image of the enhancement layer corresponding to one or more frames before the frame where the current enhancement layer image is located and the first reference image is the second reference image; The current enhancement layer image to be encoded is divided into coding blocks containing N*N pixels, and the coding is performed in units of coding blocks. According to the current coding block image, a reference block image is selected from the corresponding positions of the two reference images as a prediction block image, and the current coding block image is subtracted from the prediction block image to obtain a residual block image; a plurality of transform blocks of different shapes are selected in the residual block image according to the rate-distortion optimization cost; finally, all transform blocks in the current coding block are transformed, quantized and entropy encoded in sequence, and the current coding block image encoding data stream is output, and finally the current enhancement layer encoding data stream is output.
2. The spatial scalable video coding method according to claim 1, characterized in that: The absolute error and SAD or peak signal-to-noise ratio PSNR or structural similarity SSIM between the two reference block images and the current coding block image are calculated respectively, and the calculation results are compared to select a reference block image as the prediction block image.
3. The spatial scalable video coding method according to claim 1, characterized in that: From bottom to top, the ratio of image resolution between every two adjacent layers is set to an even multiple.
4. A spatially scalable video image decoding method based on the spatially scalable video encoding method of claim 1, characterized in that: Decoding the base layer coded data stream using an existing video decoding standard to obtain a base layer image; Then, two reference images of the enhancement layer are calculated from bottom to top, and the coded data streams of each level of the enhancement layer are entropy decoded, inversely quantized, and inversely transformed in units of coding blocks to obtain the corresponding residual block images in the corresponding levels of the enhancement layer images. Then, according to the reference block image index information recorded in the coding block during encoding, the prediction block image is determined from the corresponding positions of the two reference images. Finally, the prediction block image and the residual block image are added to output the current coding block reconstructed image, which is the decoded block image. The decoding of the entire frame image is completed by decoding the coding blocks one by one, and then the decoding of the video image is completed frame by frame.
5. The spatial scalable video image decoding method according to claim 4, characterized in that: The next level of decoded image is subjected to deep learning-based video image super-resolution processing to obtain a super-resolution image with the same resolution as the current decoded image, which is the first reference image. At the same time, the image generated by the image restoration technology of one or more frames corresponding to the decoded image before the frame where the current decoded image is located and the first reference image is the second reference image.
6. The spatial scalable video image decoding method according to claim 4, characterized in that: The information of each coding block, the types of all transform blocks and the reference block image index information in each coding block, as well as the residual coefficient and the quantization step size QP are obtained from the coded data streams of each level of enhancement layer; then, entropy decoding is performed according to the residual coefficients of all transform blocks in the coding block, and then the entropy decoded data is inversely quantized according to the quantization step size QP, and the inversely quantized data of all transform blocks are inversely transformed to obtain the residual block image corresponding to each decoded block in the image of each level of enhancement layer.
Citation Information
Patent Citations
Frame for demixing and encoding stereo video
CN101355698A
Coding and decoding methods and coding and decoding devices
CN101895748A
Upsampling filter generation method and device
CN103716630A
Method for improving reconstruction quality of space hierarchical coded video in packet loss network
CN111726623A
Encoding method and decoding method for static background video
CN111901603A
