WO2022078304A1 - Video decoding method and apparatus, computer readable medium, program, and electronic device - Google Patents

Video decoding method and apparatus, computer readable medium, program, and electronic device Download PDF

Info

Publication number
WO2022078304A1
WO2022078304A1 PCT/CN2021/123154 CN2021123154W WO2022078304A1 WO 2022078304 A1 WO2022078304 A1 WO 2022078304A1 CN 2021123154 W CN2021123154 W CN 2021123154W WO 2022078304 A1 WO2022078304 A1 WO 2022078304A1
Authority
WO
WIPO (PCT)
Prior art keywords
inverse quantization
coefficient matrix
replacement
inversion
block
Prior art date
Application number
PCT/CN2021/123154
Other languages
French (fr)
Chinese (zh)
Inventor
王力强
Original Assignee
腾讯科技(深圳)有限公司
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by 腾讯科技(深圳)有限公司 filed Critical 腾讯科技(深圳)有限公司
Publication of WO2022078304A1 publication Critical patent/WO2022078304A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/91Entropy coding, e.g. variable length coding [VLC] or arithmetic coding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods 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/124Quantisation
    • H04N19/126Details of normalisation or weighting functions, e.g. normalisation matrices or variable uniform quantisers
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock

Definitions

  • the present application relates to the field of computer and communication technologies, and in particular, to a video decoding method, apparatus, computer-readable medium, program, and electronic device.
  • the encoder In the video encoding process, the encoder usually needs to transform, quantize, and entropy the residual data between the original video data and the predicted video data before sending it to the decoder. And there are also some residuals with weak correlation, which may skip the transformation process. Since the coefficient coding module has higher coding efficiency for the coefficient matrix whose non-zero coefficients are concentrated in the upper left corner, the coefficients after transformation or skipping transformation may not all meet the requirements of the coefficient coding module, which affects the coding and decoding efficiency of the video.
  • Embodiments of the present application provide a video decoding method, an apparatus, a computer-readable medium, a program, and an electronic device, which can effectively improve video encoding and decoding efficiency at least to a certain extent.
  • an embodiment of the present application provides a video decoding method, including: performing entropy decoding processing on a coding block of a video image frame to obtain a quantized coefficient block of residual data corresponding to the coding block; The block is subjected to inverse quantization processing to obtain an inverse quantization coefficient matrix; the inverse quantization coefficient matrix is subjected to coefficient inversion and replacement processing to obtain a coefficient matrix after the inversion and replacement processing, and the inversion and replacement processing includes left and right inversion replacement, up and down inversion replacement and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantized coefficient matrix; and the residual data is generated according to the coefficient matrix after the inversion and replacement process.
  • an embodiment of the present application provides a video decoding apparatus, including: a decoding unit configured to perform entropy decoding processing on an encoded block of a video image frame, and obtain a quantized coefficient block of residual data corresponding to the encoded block; A first processing unit, configured to perform inverse quantization processing on the quantized coefficient block, to obtain an inverse quantized coefficient matrix; a second processing unit, configured to perform inversion and replacement processing of coefficients on the inverse quantization coefficient matrix, and obtain an inverse and replacement processed The coefficient matrix of The residual data is generated by replacing the processed coefficient matrix.
  • embodiments of the present application provide a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the video decoding method described in the foregoing embodiments.
  • embodiments of the present application provide an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs When executed by the multiple processors, the one or more processors are caused to implement the video decoding method described in the above embodiments.
  • embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium.
  • the processor of the computer reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer executes the video decoding methods provided in the above embodiments.
  • FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied;
  • FIG. 2 shows a schematic diagram of a placement manner of a video encoding device and a video decoding device in a streaming transmission system
  • Fig. 3 shows the basic flow chart of a video encoder
  • Fig. 4 shows the scanning area marked by SRCC technology
  • Fig. 5 shows the sequence schematic diagram of scanning the marked scanning area
  • FIG. 6 shows a flowchart of a video decoding method according to an embodiment of the present application
  • FIGS. 7A and 7B show schematic diagrams of flipping and replacing along the sub-diagonal line according to an embodiment of the present application
  • FIGS. 8A and 8B show schematic diagrams of left-right flipping replacement according to an embodiment of the present application.
  • FIGS. 9A and 9B show schematic diagrams of upside-down replacement according to an embodiment of the present application.
  • FIG. 10 shows a schematic diagram of prediction directions in an intra prediction mode
  • FIG. 11 shows a block diagram of a video decoding apparatus according to an embodiment of the present application.
  • FIG. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application.
  • Example embodiments will now be described more fully with reference to the accompanying drawings.
  • Example embodiments can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
  • FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
  • the system architecture 100 includes a plurality of end devices that can communicate with each other through, for example, a network 150 .
  • the system architecture 100 may include a first end device 110 and a second end device 120 interconnected by a network 150 .
  • the first terminal device 110 and the second terminal device 120 perform unidirectional data transmission.
  • the first terminal device 110 may encode video data (eg, a video picture stream captured by the terminal device 110 ) for transmission to the second terminal device 120 through the network 150, and the encoded video data may be encoded in one or more
  • the second terminal device 120 may receive the encoded video data from the network 150, decode the encoded video data to restore the video data, and display video pictures according to the restored video data.
  • the system architecture 100 may include a third end device 130 and a fourth end device 140 that perform bidirectional transmission of encoded video data, such as may occur during a video conference.
  • each of the third end device 130 and the fourth end device 140 may encode video data (eg, a stream of video pictures captured by the end device) for transmission to the third end device over the network 150 130 and the other terminal device of the fourth terminal device 140 .
  • Each of the third terminal device 130 and the fourth terminal device 140 may also receive encoded video data transmitted by the other one of the third terminal device 130 and the fourth terminal device 140, and may The video data is decoded to recover the video data, and a video picture can be displayed on an accessible display device based on the recovered video data.
  • the first terminal device 110 , the second terminal device 120 , the third terminal device 130 and the fourth terminal device 140 may be servers, personal computers and smart phones, but the principles disclosed in this application may not be limited thereto .
  • Embodiments disclosed herein are applicable to laptop computers, tablet computers, media players, and/or dedicated videoconferencing equipment.
  • Network 150 represents any number of networks, including, for example, wired and/or wireless communication networks, that communicate encoded video data between first end device 110, second end device 120, third end device 130, and fourth end device 140.
  • Communication network 150 may exchange data in circuit-switched and/or packet-switched channels.
  • the network may include a telecommunications network, a local area network, a wide area network, and/or the Internet.
  • the architecture and topology of network 150 may be immaterial to the operations disclosed herein.
  • FIG. 2 illustrates the placement of a video encoding device and a video decoding device in a streaming environment.
  • the subject matter disclosed herein is equally applicable to other video-enabled applications including, for example, videoconferencing, digital TV (television), storing compressed video on digital media including CDs, DVDs, memory sticks, and the like.
  • the streaming transmission system may include a capture subsystem 213 , and the capture subsystem 213 may include a video source 201 such as a digital camera, and the video source 201 creates an uncompressed video picture stream 202 .
  • the video picture stream 202 includes samples captured by a digital camera.
  • the video picture stream 202 is depicted as a thick line to emphasize the high data volume of the video picture stream, which can be processed by the electronic device 220, and the electronic Device 220 includes video encoding device 203 coupled to video source 201 .
  • Video encoding device 203 may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in greater detail below.
  • the encoded video data 204 (or encoded video code stream 204) is depicted as a thin line to emphasize the lower amount of encoded video data 204 (or encoded video code stream 204) 204), which can be stored on the streaming server 205 for future use.
  • One or more streaming client subsystems such as client subsystem 206 and client subsystem 208 in FIG. 2 , may access streaming server 205 to retrieve copies 207 and 209 of encoded video data 204 .
  • Client subsystem 206 may include, for example, video decoding device 210 in electronic device 230 .
  • the video decoding device 210 decodes the incoming copy 207 of the encoded video data and produces an output video picture stream 211 that can be presented on a display 212 (eg, a display screen) or another presentation device.
  • encoded video data 204, video data 207, and video data 209 may be encoded according to certain video encoding/compression standards. Examples of these standards include ITU-T H.265.
  • video coding standard under development is informally referred to as Versatile Video Coding (VVC), and this application may be used in the context of the VVC standard.
  • electronic device 220 and the electronic device 230 may include other components not shown in the figures.
  • electronic device 220 may include a video decoding device
  • electronic device 230 may also include a video encoding device.
  • the international video coding standard HEVC High Efficiency Video Coding, high efficiency video coding
  • VVC Very Video Coding, multifunctional video coding
  • AVS Chinese national video coding standard AVS (Audio Video coding) Standard, source coding standard
  • CTU Coding Tree Unit, coding tree unit
  • LCU Large Coding Unit, largest coding unit
  • the CTU can continue to be further divided into finer divisions to obtain one or more basic coding units CU, and CU is the most basic element in a coding link.
  • Predictive Coding includes intra-frame prediction and inter-frame prediction. After the original video signal is predicted by the selected reconstructed video signal, a residual video signal is obtained. The encoder needs to decide which predictive coding mode to select for the current CU and inform the decoder. Among them, intra-frame prediction means that the predicted signal comes from an area that has been coded and reconstructed in the same image; inter-frame prediction means that the predicted signal comes from another image (called a reference image) that has been coded and different from the current image. .
  • Transform & Quantization After the residual video signal undergoes transformation operations such as DFT (Discrete Fourier Transform, Discrete Fourier Transform), DCT (Discrete Cosine Transform, Discrete Cosine Transform), the signal is converted into the transform domain, called is the transformation coefficient.
  • the transform coefficient is further subjected to a lossy quantization operation, which loses a certain amount of information, so that the quantized signal is beneficial to the compressed expression.
  • a lossy quantization operation which loses a certain amount of information, so that the quantized signal is beneficial to the compressed expression.
  • there may be more than one transformation mode to choose from so the encoder also needs to select one of the transformation modes for the current CU and inform the decoder.
  • the fineness of quantization is usually determined by the Quantization Parameter (QP for short).
  • the coefficients representing a larger value range will be quantized into the same output, which usually brings greater distortion and distortion. A lower code rate; on the contrary, if the QP value is smaller, the coefficients representing a smaller value range will be quantized into the same output, so it usually brings less distortion and corresponds to a higher code rate.
  • Entropy Coding or Statistical Coding The quantized transform domain signal will undergo statistical compression coding according to the frequency of occurrence of each value, and finally output a binarized (0 or 1) compressed code stream. At the same time, other information generated by encoding, such as the selected encoding mode, motion vector data, etc., also needs to be entropy encoded to reduce the bit rate.
  • Statistical coding is a lossless coding method that can effectively reduce the code rate required to express the same signal. Common statistical coding methods include Variable Length Coding (VLC) or context-based binary arithmetic coding ( Content Adaptive Binary Arithmetic Coding, referred to as CABAC).
  • Loop Filtering The changed and quantized signal will obtain a reconstructed image through the operations of inverse quantization, inverse transformation and prediction compensation. Compared with the original image, the reconstructed image is different from the original image due to the influence of quantization, that is, the reconstructed image will produce distortion (Distortion). Therefore, filtering operations can be performed on the reconstructed image, such as deblocking filter (DB), SAO (Sample Adaptive Offset, adaptive pixel compensation) or ALF (Adaptive Loop Filter, adaptive loop filter) and other filters , which can effectively reduce the degree of distortion caused by quantization. Since these filtered reconstructed images will be used as references for subsequent encoded images to predict future image signals, the above filtering operation is also called in-loop filtering, ie, a filtering operation in an encoding loop.
  • DB deblocking filter
  • SAO Sample Adaptive Offset, adaptive pixel compensation
  • ALF Adaptive Loop Filter, adaptive loop filter
  • FIG. 3 shows a basic flowchart of a video encoder, and intra-frame prediction is used as an example in the flowchart for illustration.
  • the quantized coefficients are encoded by entropy coding to obtain the encoded bits
  • the reconstructed residual signal u' k [x, y] is obtained through inverse quantization and inverse transformation processing, and the predicted image signal It is superimposed with the reconstructed residual signal u' k [x, y] to generate an image signal image signal
  • it is input to the intra - frame mode decision module and the intra-frame prediction module for intra-frame prediction processing; ] can be used as a reference image for the next frame for motion estimation and motion compensation prediction.
  • the size of the upper left region of the non-zero coefficients included in each quantized coefficient block can be marked by SRCC technology SRx ⁇ SRy, where SRx is the abscissa of the rightmost non-zero coefficient in the quantized coefficient block, SRy is the ordinate of the lowest non-zero coefficient in the quantized coefficient block, and 1 ⁇ SRx ⁇ W, 1 ⁇ SRy ⁇ H, and the coefficients outside the upper left area are all 0.
  • the SRCC technology uses (SRx, SRy) to determine the quantized coefficient area that needs to be scanned in a quantized coefficient block. As shown in Figure 4, only the quantized coefficients in the scanning area marked by (SRx, SRy) need to be coded.
  • the scanning order of the coding is as follows As shown in Figure 5, it can be a reverse zigzag scan from the lower right corner to the upper left corner.
  • the decoding end Based on the above encoding process, for each CU, the decoding end performs entropy decoding to obtain various mode information and quantization coefficients after obtaining the compressed code stream (ie, the bit stream). Then, the quantized coefficients undergo inverse quantization and inverse transformation to obtain residual signals.
  • the predicted signal corresponding to the CU can be obtained, and then the reconstructed signal can be obtained by adding the residual signal and the predicted signal. The reconstructed signal is then subjected to loop filtering and other operations to generate the final output signal.
  • the transform processing of the residual signal makes the energy of the residual signal concentrate on less low-frequency coefficients, that is, most coefficients have smaller values. Then after the subsequent quantization module, the smaller coefficient value will become zero value, which greatly reduces the cost of coding the residual signal.
  • transformation kernels such as DST7 and DCT8 are introduced into the transformation process, and the horizontal transformation and vertical transformation of the residual signal are carried out. Direct transforms can use different transform kernels.
  • the possible transformation combinations for transform processing of a residual signal are as follows: (DCT2, DCT2), (DCT8, DCT8), (DCT8, DST7) ), (DST7, DCT8) and (DST7, DST7).
  • the embodiments of the present application propose to perform coefficient flipping and replacement processing on the inverse quantization coefficient matrix, so as to concentrate more non-zero coefficients in the coefficient matrix in the left, upper and upper left regions of the coefficient matrix, and further The area of the SRCC region can be reduced during encoding, thereby effectively improving video encoding and decoding efficiency.
  • FIG. 6 shows a flowchart of a video decoding method according to an embodiment of the present application.
  • the video decoding method may be executed by an electronic device with a computing processing function, such as a terminal device or a server.
  • the video decoding method at least includes steps S610 to S640, which are described in detail as follows:
  • step S610 entropy decoding processing is performed on the coded block of the video image frame to obtain a quantized coefficient block of residual data corresponding to the coded block.
  • the video image frame sequence includes a series of images, each image can be further divided into slices, and the slices can be further divided into a series of LCUs (or CTUs).
  • the LCUs include There are several CUs.
  • the video image frame is encoded in block units.
  • MB macroblock
  • MB macroblock
  • Prediction Prediction block
  • basic concepts such as coding unit CU, prediction unit (PU) and transform unit (TU) are used to functionally divide a variety of block units, and adopt a new tree-based structure for describe.
  • a CU can be divided into smaller CUs according to a quadtree, and the smaller CUs can be further divided to form a quadtree structure.
  • the coding block in this embodiment of the present application may be a CU, or a block smaller than the CU, such as a smaller block obtained by dividing the CU.
  • step S620 inverse quantization processing is performed on the quantized coefficient block to obtain an inverse quantized coefficient matrix.
  • the inverse quantization process is the inverse process of the quantization process of the video image frame during encoding to obtain inverse quantization coefficients. For example, based on or using the same quantization step size as in the quantization process, an inverse quantization scheme corresponding to the quantization processing scheme is applied. Perform inverse quantization processing.
  • step S630 the inverse quantization coefficient matrix is subjected to inversion and replacement of the coefficients to obtain a coefficient matrix after the inversion and substitution process.
  • the inversion and substitution processing includes left and right inversion, up and down inversion, and inversion along the sub-diagonal of the inverse quantization coefficient matrix. at least one of the substitutions.
  • this embodiment of the present application may also determine whether it is necessary to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to at least one of the following methods:
  • the coding mode used by the coding block is the coding mode used by the coding block
  • step S630 may be performed when it is determined that the inverse quantization coefficient matrix needs to be subjected to coefficient inversion and replacement processing. On the contrary, when it is determined that the inverse quantization coefficient matrix does not need to perform coefficient inversion and replacement processing, step S630 may not be performed in this embodiment of the present application.
  • index identifier contained in the sequence header of the video image frame sequence For example, if the index identifier contained in the sequence header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame sequence need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing .
  • index identifier contained in the image header of the video image frame. For example, if the index flag included in the image header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
  • the size of the coding block is smaller than the set value, it means that the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
  • the value of the index identifier contained in the coding block is 1 (the value is only an example), it means that the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
  • Implicit indication is made by quantizing coefficient statistics in the coefficient block. For example, the number of non-zero coefficients, even-numbered coefficients, non-zero even-numbered coefficients or odd-numbered coefficients in the quantization coefficient block can be counted, and then according to the parity of the number, it is implicitly indicated whether the encoding block needs to be obtained by entropy decoding and inverse quantization processing.
  • the inverse quantization coefficient matrix performs the inversion and replacement processing of the coefficients.
  • the number of parities is taken as the coefficient statistic result in the quantized coefficient block, so as to determine whether the coefficient inversion and replacement process needs to be performed according to the coefficient statistic result.
  • the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization; on the contrary, if the number is an even number, it means that the coding block does not require entropy decoding. And the inverse quantization coefficient matrix obtained by the inverse quantization process performs the inversion and replacement process of the coefficients.
  • the number is an odd number, it can also indicate that the coding block does not need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization; and when the number is even, it means that the coding block needs The inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing is subjected to inversion and replacement processing of the coefficients.
  • the whole area in the quantization coefficient block, or a part of the area in the quantization coefficient block, or the SRCC in the quantization coefficient block may be counted.
  • area (such as the entire SRCC area or part of the SRCC area).
  • one or more positions specified in the statistical quantization coefficient block, at least one row specified in the statistical quantization coefficient block, at least one column specified in the statistical quantization coefficient block, at least one row specified in the statistical quantization coefficient block, and at least one column specified in the statistical quantization coefficient block the position on at least one oblique line in the statistical quantization coefficient block, and the like.
  • the index identifier included in the sequence header of the video image frame sequence can be used. value to indicate together.
  • the coding block adopts the intra-frame coding method, and the size of the coding block is is smaller than the set size, then if the value of the index identifier contained in the coding block is 1 (the value is only an example), then it means that the coding block needs to perform coefficient calculation on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing. Flip replacement processing.
  • the encoding block adopts the intra-frame encoding method, and the encoding The size of the block is smaller than the set size, then if the value of the index identifier contained in the coding block is 0 (the value is only an example), it means that the coding block does not require the inverse quantization coefficient matrix to perform coefficient inversion and replacement processing, and can Inverse transform processing is performed on the inverse quantization coefficient matrix of the coding block by means of DCT transform.
  • the index identifier included in the sequence header of the video image frame sequence can be obtained. to jointly instruct.
  • the coding block adopts the intra-frame coding method, and the size of the coding block is is smaller than the set size, then if the statistical result of the quantization coefficient block corresponding to the coding block is the first value (for example, the first value can be an odd value, which is only an example), it means that the inverse quantization coefficient matrix needs to be calculated. Flip replacement processing.
  • the coding block adopts the intra-frame coding method, And the size of the coding block is smaller than the set size, then if the statistical result of the quantization coefficient block corresponding to the coding block is the second value (for example, the second value can be an even value, which is only an example), it is not necessary to contradict it.
  • the quantized coefficient matrix is subjected to inversion and replacement processing of the coefficients, and the inverse transformation processing of the inverse quantized coefficient matrix of the coding block can be performed by means of DCT transformation.
  • the inverse quantization coefficient matrix is flipped along the sub-diagonal of the inverse quantization coefficient matrix as shown in FIG. 7A , that is, the inverse quantization coefficient matrix is flipped along the sub-diagonal, and then the coefficients at the corresponding positions are inverted. Perform replacement processing.
  • the encoding end may also perform flipping and replacement processing on the coefficient matrix along the sub-diagonal, as shown in FIG. 7B .
  • the left and right inversion may be performed along the center line of the width of the inverse quantization coefficient matrix, and then the coefficients at the corresponding positions are replaced.
  • the encoding end may also perform the left-right inversion and replacement process on the coefficient matrix, as shown in FIG. 8B .
  • the left-right inversion shown in FIGS. 8A and 8B is a left-right symmetrical inversion, and in other embodiments of the present application, an asymmetrical inversion may also be adopted.
  • the upside-down replacement can be performed along the center line of the inverse quantization coefficient matrix in height, and then the coefficients at the corresponding positions are replaced.
  • the encoding end may also perform up-down inversion and replacement processing on the coefficient matrix, as shown in FIG. 9B .
  • the upside-down inversion method shown in FIG. 9A and FIG. 9B is up-down symmetrical inversion, and in other embodiments of the present application, an asymmetrical inversion manner may also be adopted.
  • the inverse quantization coefficient matrix when the inverse quantization coefficient matrix is subjected to coefficient inversion and replacement processing, the inverse quantization coefficient matrix may be determined according to the relationship between the width and height of the inverse quantization coefficient matrix.
  • the determined inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantized coefficient matrix.
  • the width and height of the inverse quantization coefficient matrix are equal, it is determined that the inverse quantization coefficient matrix is flipped and replaced along the sub-diagonal of the inverse quantization coefficient matrix, as shown in the embodiment shown in FIG. 7A .
  • the method of flipping up and down, or the method of flipping left and right can also be used. Flip at least two of the substitutions.
  • the width of the inverse quantization coefficient matrix is greater than the height, it is determined that the inverse quantization coefficient matrix is to be replaced by a left-right inversion, as shown in the embodiment shown in FIG. 8A .
  • the width of the inverse quantization coefficient matrix is smaller than the height, it is determined that the inverse quantization coefficient matrix is replaced by up and down, as shown in the embodiment shown in FIG. 9A .
  • the inversion and replacement method of the inverse quantization coefficient matrix may be determined according to the intra-frame prediction mode adopted by the coding block, and then based on the determined inversion and replacement The method performs the inversion and replacement processing of the coefficients on the inverse quantized coefficient matrix.
  • the inverse quantization coefficient matrix adopts the method of left and right flip replacement.
  • the intra prediction modes with the direction toward the lower left may be mode 3 to mode 11, and the mode 34 to mode 43; the intra prediction mode with the direction toward the upper right may be the mode 25 to Mode 32, Mode 58 to Mode 65.
  • the intra prediction mode of the coding block is another intra prediction mode except toward the lower left and toward the upper right
  • the intra prediction mode of the coding block is another intra prediction mode except toward the lower left and toward the upper right
  • other intra prediction modes in this embodiment may be mode 0 to mode 2, mode 12 to mode 24, and mode 44 to mode 57.
  • mode 0 represents a DC prediction mode
  • mode 1 represents a plane (Plane) prediction mode
  • mode 2 represents a bilinear (Bilinear) prediction mode.
  • the solution of determining the inversion and replacement mode of the inverse quantization coefficient matrix may refer to the technical solutions of the foregoing embodiments, and will not be repeated.
  • step S640 residual data is generated according to the coefficient matrix after the inversion and replacement process.
  • the coefficient matrix after the flipping and replacement processing may be used as the residual data obtained by reconstruction, or other processing may be performed on the coefficient matrix after the flipping and replacement processing to obtain the residual data.
  • a coefficient matrix after the inversion and replacement process is obtained by performing the inversion and replacement of the coefficients on the inverse quantization coefficient matrix, and the inversion and replacement process includes left-right inversion, up-down inversion and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantization coefficient matrix, and then residual data is generated according to the coefficient matrix after the inversion and substitution process, so that the inverse quantization coefficient matrix can be inverted and replaced by the coefficient matrix.
  • the non-zero coefficients are more concentrated in the left, upper and upper left regions of the coefficient matrix, so that the area of the SRCC region can be reduced during encoding and decoding, thereby effectively improving the video encoding and decoding efficiency.
  • the apparatus embodiments of the present application are described below, which can be used to execute the video decoding methods in the above-mentioned embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the above-mentioned embodiments of the video decoding method of the present application.
  • FIG. 11 shows a block diagram of a video decoding apparatus according to an embodiment of the present application.
  • the video decoding apparatus may be set in an electronic device with a computing processing function, such as a terminal device or a server.
  • a video decoding apparatus 1100 includes: a decoding unit 1102 , a first processing unit 1104 , a second processing unit 1106 and a third processing unit 1108 .
  • the decoding unit 1102 is configured to perform entropy decoding processing on the coding block of the video image frame to obtain a quantized coefficient block of residual data corresponding to the coding block; the first processing unit 1104 is configured to perform inverse quantization on the quantized coefficient block processing to obtain an inverse quantization coefficient matrix; the second processing unit 1106 is configured to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix to obtain a coefficient matrix after the inversion and replacement processing, and the inversion and replacement processing includes left-right inversion and up-down inversion. at least one of replacing and flipping and replacing along the sub-diagonal of the inverse quantized coefficient matrix; the third processing unit 1108 is configured to generate the residual data according to the coefficient matrix after flipping and replacing.
  • a coefficient matrix after the inversion and replacement processing is obtained by performing the inversion and replacement of the coefficients on the inverse quantization coefficient matrix, and the inversion and replacement processing includes left-right inversion, up-down inversion, and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantization coefficient matrix, and then residual data is generated according to the coefficient matrix after the inversion and substitution process, so that the inverse quantization coefficient matrix can be inverted and replaced by the coefficient matrix.
  • the non-zero coefficients are more concentrated in the left, upper and upper left regions of the coefficient matrix, so that the area of the SRCC region can be reduced during encoding and decoding, thereby effectively improving the video encoding and decoding efficiency.
  • the second processing unit 1106 is further configured to: determine whether to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to at least one of the following manners:
  • the coding mode used by the coding block is the coding mode used by the coding block
  • the value of the index identifier contained in the coding block or the implicit indication of the coefficient statistics result in the quantized coefficient block.
  • the second processing unit 1106 is configured to: if the index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both The specified value, the encoding mode adopted by the encoding block is the intra-frame encoding mode, and the size of the encoding block is smaller than the set size, then when the statistical result of the quantization coefficient block is the first value, it is determined that the coefficients of the inverse quantization coefficient matrix need to be calculated. Flip replacement processing.
  • the second processing unit 1106 is configured to: if the index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both specified values , the encoding mode adopted by the encoding block of the video image frame is the intra-frame encoding mode, and the size of the encoding block is smaller than the set size, then when the statistical result of the quantization coefficient block is the second value, it is determined that the discrete The inverse transform is performed on the inverse quantization coefficient matrix by means of cosine transform DCT.
  • the second process The unit 1106 is further configured to: count the number of non-zero coefficients, even-numbered coefficients, non-zero even-numbered coefficients or odd-numbered coefficients in the specified area in the quantized coefficient block, and use the parity of the number as the coefficients in the quantized coefficient block According to the statistical result, the designated area includes part or all of the area in the quantized coefficient block, or part or all of the SRCC area in the quantized coefficient block.
  • the second processing unit 1106 is configured to: determine a flipping replacement method of the inverse quantization coefficient matrix according to the relationship between the width and height of the inverse quantization coefficient matrix; based on The determined inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantization coefficient matrix.
  • the second processing unit 1106 is configured to: if the width and height of the inverse quantization coefficient matrix are equal, determine to use the inverse quantization coefficient matrix along the inverse quantization coefficient matrix. The method of flipping and replacing the sub-diagonal of the matrix; if the width of the inverse quantization coefficient matrix is greater than the height, it is determined that the inverse quantization coefficient matrix adopts the left and right flip replacement method; if the width of the inverse quantization coefficient matrix is less than height, it is determined to use the upside-down replacement method for the inverse quantization coefficient matrix.
  • the second processing unit 1106 is configured to: determine, according to the intra-frame prediction mode adopted by the coding block, an inversion and replacement manner of the inverse quantization coefficient matrix; The inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantized coefficient matrix.
  • the second processing unit 1106 is configured to: if the direction of the intra prediction mode of the coding block is toward the lower left, determine to use upside-down inversion for the inverse quantization coefficient matrix Replacement mode; if the direction of the intra prediction mode of the coding block is toward the upper right, it is determined to adopt a left-right inversion replacement mode for the inverse quantization coefficient matrix.
  • the second processing unit 1106 is configured to: if the intra prediction mode of the coding block is an intra prediction mode other than the lower left and the upper right, then According to the relationship between the width and the height of the inverse quantization coefficient matrix, a flip replacement mode of the inverse quantization coefficient matrix is determined.
  • the second processing unit 1106 is configured to: sequentially perform the left-right inversion and up-down inversion replacement processing of the coefficients on the inverse quantization coefficient matrix; or perform the inverse quantization coefficient matrix The up-down inversion and left-right inversion substitution processing of the coefficients are sequentially performed.
  • the left-right flipping and replacement includes performing left-right flipping and replacing along the center line of the inverse quantization coefficient matrix in width; Make a flip-up replacement on the centerline in height.
  • FIG. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application.
  • the computer system 1200 includes a central processing unit (Central Processing Unit, CPU) 1201, which can be loaded into a random device according to a program stored in a read-only memory (Read-Only Memory, ROM) 1202 or from a storage part 1208
  • CPU Central Processing Unit
  • ROM Read-Only Memory
  • RAM Random Access Memory
  • a program in a memory (Random Access Memory, RAM) 1203 is accessed to perform various appropriate actions and processes, such as performing the methods described in the above embodiments.
  • RAM 1203 Random Access Memory
  • various programs and data required for system operation are also stored.
  • the CPU 1201, the ROM 1202, and the RAM 1203 are connected to each other through a bus 1204.
  • An Input/Output (I/O) interface 1205 is also connected to the bus 1204 .
  • the following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc. ; a storage part 1208 including a hard disk and the like; and a communication part 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like.
  • the communication section 1209 performs communication processing via a network such as the Internet.
  • Drivers 1210 are also connected to I/O interface 1205 as needed.
  • a removable medium 1211 such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.
  • embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising a computer program for performing the method illustrated in the flowchart.
  • the computer program may be downloaded and installed from the network via the communication portion 1209, and/or installed from the removable medium 1211.
  • CPU central processing unit
  • the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two.
  • the computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above.
  • Computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Erasable Programmable Read Only Memory (EPROM), flash memory, optical fiber, portable Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable of the above The combination.
  • a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device.
  • a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program therein.
  • Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing.
  • a computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device .
  • a computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
  • each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the above-mentioned module, program segment, or part of code contains one or more executables for realizing the specified logical function instruction.
  • the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved.
  • the units involved in the embodiments of the present application may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
  • the present application also provides a computer-readable medium.
  • the computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle.
  • the above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by an electronic device, enables the electronic device to implement the methods described in the above-mentioned embodiments.
  • the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , which includes several instructions to cause a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
  • a computing device which may be a personal computer, a server, a touch terminal, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

Provided in the embodiments of the present application are a video decoding method and apparatus, a computer readable medium, a program, and an electronic device. The video decoding method comprises: performing entropy decoding processing on a coding block of a video image frame to acquire a quantisation coefficient block of residual data corresponding to the coding block; performing inverse quantisation processing on the quantisation coefficient block to obtain an inverse quantisation coefficient matrix; performing coefficient flip replacement processing on the inverse quantisation coefficient matrix to obtain a quantisation matrix after flip replacement processing, the flip replacement processing comprising at least one of left-right flip replacement, up-down flip replacement, and flip replacement performed along the sub-diagonal of the inverse quantisation coefficient matrix; and, on the basis of the coefficient matrix after flip replacement processing, generating the residual data. The technical solutions in the embodiments of the present application can effectively increase the efficiency of video encoding and decoding.

Description

视频解码方法、装置、计算机可读介质、程序及电子设备Video decoding method, apparatus, computer readable medium, program and electronic device
本申请要求于2020年10月16日提交中国专利局、申请号为202011114676.5、申请名称为“视频解码方法、装置、计算机可读介质及电子设备”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on October 16, 2020 with the application number 202011114676.5 and the application title is "video decoding method, device, computer readable medium and electronic equipment", the entire content of which is provided by Reference is incorporated in this application.
技术领域technical field
本申请涉及计算机及通信技术领域,具体而言,涉及视频解码方法、装置、计算机可读介质、程序及电子设备。The present application relates to the field of computer and communication technologies, and in particular, to a video decoding method, apparatus, computer-readable medium, program, and electronic device.
背景技术Background technique
在视频编码过程中,编码端通常需要对原始视频数据与预测视频数据之间的残差数据进行变换、量化及熵编码处理之后发送给解码端。并且也有部分残差的相关性较弱,进而可能会跳过变换过程。由于系数编码模块对非零系数集中在左上角的系数矩阵编码效率更高,但是变换或者跳过变换之后的系数并不是都能满足系数编码模块的需求,影响了视频的编解码效率。In the video encoding process, the encoder usually needs to transform, quantize, and entropy the residual data between the original video data and the predicted video data before sending it to the decoder. And there are also some residuals with weak correlation, which may skip the transformation process. Since the coefficient coding module has higher coding efficiency for the coefficient matrix whose non-zero coefficients are concentrated in the upper left corner, the coefficients after transformation or skipping transformation may not all meet the requirements of the coefficient coding module, which affects the coding and decoding efficiency of the video.
发明内容SUMMARY OF THE INVENTION
本申请的实施例提供了视频解码方法、装置、计算机可读介质、程序及电子设备,进而至少在一定程度上可以有效提高视频编解码效率。Embodiments of the present application provide a video decoding method, an apparatus, a computer-readable medium, a program, and an electronic device, which can effectively improve video encoding and decoding efficiency at least to a certain extent.
本申请的其他特性和优点将通过下面的详细描述变得显然,或部分地通过本申请的实践而习得。Other features and advantages of the present application will become apparent from the following detailed description, or be learned in part by practice of the present application.
第一方面,本申请实施例提供了一种视频解码方法,包括:对视频图像帧的编码块进行熵解码处理,获得所述编码块对应的残差数据的量化系数块;对所述量化系数块进行反量化处理,得到反量化系数矩阵;对所述反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,所述翻转替换处理包括左右翻转替换、上下翻转替换和沿所述反量化系数矩阵的副对角线进行翻转替换中的至少一种;根据所述翻转替换处理后的系数矩阵生成所述残差数据。In a first aspect, an embodiment of the present application provides a video decoding method, including: performing entropy decoding processing on a coding block of a video image frame to obtain a quantized coefficient block of residual data corresponding to the coding block; The block is subjected to inverse quantization processing to obtain an inverse quantization coefficient matrix; the inverse quantization coefficient matrix is subjected to coefficient inversion and replacement processing to obtain a coefficient matrix after the inversion and replacement processing, and the inversion and replacement processing includes left and right inversion replacement, up and down inversion replacement and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantized coefficient matrix; and the residual data is generated according to the coefficient matrix after the inversion and replacement process.
第二方面,本申请实施例提供了一种视频解码装置,包括:解码单元,配置为对视频图像帧的编码块进行熵解码处理,获得所述编码块对应的残差数据的量化系数块;第一处理单元,配置为对所述量化系数块进行反量化处理,得到反量化系数矩阵;第二处理单元,配置为对所述反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,所述翻转替换处理包括左右翻转替换、上下翻转替换和沿所述反量化系数矩阵的副对角线进行翻转替换中的至少一种;第三处理单元,配置为根据所述翻转替换处理后的系数矩阵生成所述残差数据。In a second aspect, an embodiment of the present application provides a video decoding apparatus, including: a decoding unit configured to perform entropy decoding processing on an encoded block of a video image frame, and obtain a quantized coefficient block of residual data corresponding to the encoded block; A first processing unit, configured to perform inverse quantization processing on the quantized coefficient block, to obtain an inverse quantized coefficient matrix; a second processing unit, configured to perform inversion and replacement processing of coefficients on the inverse quantization coefficient matrix, and obtain an inverse and replacement processed The coefficient matrix of The residual data is generated by replacing the processed coefficient matrix.
第三方面,本申请实施例提供了一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如上述实施例中所述的视频解码方法。In a third aspect, embodiments of the present application provide a computer-readable medium on which a computer program is stored, and when the computer program is executed by a processor, implements the video decoding method described in the foregoing embodiments.
第四方面,本申请实施例提供了一种电子设备,包括:一个或多个处理器;存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得 所述一个或多个处理器实现如上述实施例中所述的视频解码方法。In a fourth aspect, embodiments of the present application provide an electronic device, including: one or more processors; a storage device for storing one or more programs, when the one or more programs are stored by the one or more programs When executed by the multiple processors, the one or more processors are caused to implement the video decoding method described in the above embodiments.
第五方面,本申请实施例提供了一种计算机程序产品或计算机程序,该计算机程序产品或计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中。计算机的处理器从计算机可读存储介质读取该计算机指令,处理器执行该计算机指令,使得该计算机执行上述实施例中提供的视频解码方法。In a fifth aspect, embodiments of the present application provide a computer program product or computer program, where the computer program product or computer program includes computer instructions, and the computer instructions are stored in a computer-readable storage medium. The processor of the computer reads the computer instructions from the computer-readable storage medium, and the processor executes the computer instructions, so that the computer executes the video decoding methods provided in the above embodiments.
附图说明Description of drawings
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图;FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied;
图2示出视频编码装置和视频解码装置在流式传输系统中的放置方式示意图;FIG. 2 shows a schematic diagram of a placement manner of a video encoding device and a video decoding device in a streaming transmission system;
图3示出了一个视频编码器的基本流程图;Fig. 3 shows the basic flow chart of a video encoder;
图4示出了通过SRCC技术标记出的扫描区域;Fig. 4 shows the scanning area marked by SRCC technology;
图5示出了对标记出的扫描区域进行扫描的顺序示意图;Fig. 5 shows the sequence schematic diagram of scanning the marked scanning area;
图6示出了根据本申请的一个实施例的视频解码方法的流程图;6 shows a flowchart of a video decoding method according to an embodiment of the present application;
图7A和图7B示出了根据本申请的一个实施例的沿副对角线进行翻转替换的示意图;7A and 7B show schematic diagrams of flipping and replacing along the sub-diagonal line according to an embodiment of the present application;
图8A和图8B示出了根据本申请的一个实施例的左右翻转替换的示意图;8A and 8B show schematic diagrams of left-right flipping replacement according to an embodiment of the present application;
图9A和图9B示出了根据本申请的一个实施例的上下翻转替换的示意图;9A and 9B show schematic diagrams of upside-down replacement according to an embodiment of the present application;
图10示出了帧内预测模式中的预测方向示意图;FIG. 10 shows a schematic diagram of prediction directions in an intra prediction mode;
图11示出了根据本申请的一个实施例的视频解码装置的框图;11 shows a block diagram of a video decoding apparatus according to an embodiment of the present application;
图12示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。FIG. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application.
具体实施方式Detailed ways
下面将参照附图更详细地描述本申请的若干个实施例以便使得本领域技术人员能够理解和实现本申请。Several embodiments of the present application will be described in more detail below with reference to the accompanying drawings in order to enable those skilled in the art to understand and implement the present application.
现在将参考附图更全面地描述示例实施方式。然而,示例实施方式能够以多种形式实施,且不应被理解为限于在此阐述的范例;相反,提供这些实施方式使得本申请将更加全面和完整,并将示例实施方式的构思全面地传达给本领域的技术人员。Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments, however, can be embodied in various forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this application will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art.
此外,所描述的特征、结构或特性可以以任何合适的方式结合在一个或更多实施例中。在下面的描述中,提供许多具体细节从而给出对本申请的实施例的充分理解。然而,本领域技术人员将意识到,可以实践本申请的技术方案而没有特定细节中的一个或更多,或者可以采用其它的方法、组元、装置、步骤等。在其它情况下,不详细示出或描述公知方法、装置、实现或者操作以避免模糊本申请的各方面。Furthermore, the described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided in order to give a thorough understanding of the embodiments of the present application. However, those skilled in the art will appreciate that the technical solutions of the present application may be practiced without one or more of the specific details, or other methods, components, devices, steps, etc. may be employed. In other instances, well-known methods, devices, implementations, or operations have not been shown or described in detail to avoid obscuring aspects of the present application.
附图中所示的方框图仅仅是功能实体,不一定必须与物理上独立的实体相对应。即,可以采用软件形式来实现这些功能实体,或在一个或多个硬件模块或集成电路中实现这些功能实体,或在不同网络和/或处理器装置和/或微控制器装置中实现这些功能实体。The block diagrams shown in the figures are merely functional entities and do not necessarily necessarily correspond to physically separate entities. That is, these functional entities may be implemented in software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices entity.
附图中所示的流程图仅是示例性说明,不是必须包括所有的内容和操作/步骤,也不是必须按所描述的顺序执行。例如,有的操作/步骤还可以分解,而有的操作/步骤可以合并或部分合并,因此实际执行的顺序有可能根据实际情况改变。The flowcharts shown in the figures are only exemplary illustrations and do not necessarily include all contents and operations/steps, nor do they have to be performed in the order described. For example, some operations/steps can be decomposed, and some operations/steps can be combined or partially combined, so the actual execution order may be changed according to the actual situation.
需要说明的是:在本文中提及的“多个”是指两个或两个以上。“和/或”描述关联对象的关联关系,表示可以存在三种关系,例如,A和/或B可以表示:单独存在A,同时存在A和B,单独存在B这三种情况。字符“/”一般表示前后关联对象是一种“或”的关 系。It should be noted that the "plurality" mentioned in this document refers to two or more. "And/or" describes the association relationship between associated objects, indicating that there can be three kinds of relationships, for example, A and/or B can indicate that A exists alone, A and B exist at the same time, and B exists alone. The character "/" generally indicates that the related objects are an "or" relationship.
图1示出了可以应用本申请实施例的技术方案的示例性系统架构的示意图。FIG. 1 shows a schematic diagram of an exemplary system architecture to which the technical solutions of the embodiments of the present application can be applied.
如图1所示,系统架构100包括多个终端装置,所述终端装置可通过例如网络150彼此通信。举例来说,系统架构100可以包括通过网络150互连的第一终端装置110和第二终端装置120。在图1的实施例中,第一终端装置110和第二终端装置120执行单向数据传输。As shown in FIG. 1 , the system architecture 100 includes a plurality of end devices that can communicate with each other through, for example, a network 150 . For example, the system architecture 100 may include a first end device 110 and a second end device 120 interconnected by a network 150 . In the embodiment of FIG. 1, the first terminal device 110 and the second terminal device 120 perform unidirectional data transmission.
举例来说,第一终端装置110可对视频数据(例如由终端装置110采集的视频图片流)进行编码以通过网络150传输到第二终端装置120,已编码的视频数据以一个或多个已编码视频码流形式传输,第二终端装置120可从网络150接收已编码视频数据,对已编码视频数据进行解码以恢复视频数据,并根据恢复的视频数据显示视频图片。For example, the first terminal device 110 may encode video data (eg, a video picture stream captured by the terminal device 110 ) for transmission to the second terminal device 120 through the network 150, and the encoded video data may be encoded in one or more The second terminal device 120 may receive the encoded video data from the network 150, decode the encoded video data to restore the video data, and display video pictures according to the restored video data.
在本申请的一个实施例中,系统架构100可以包括执行已编码视频数据的双向传输的第三终端装置130和第四终端装置140,所述双向传输比如可以发生在视频会议期间。对于双向数据传输,第三终端装置130和第四终端装置140中的每个终端装置可对视频数据(例如由终端装置采集的视频图片流)进行编码,以通过网络150传输到第三终端装置130和第四终端装置140中的另一终端装置。第三终端装置130和第四终端装置140中的每个终端装置还可接收由第三终端装置130和第四终端装置140中的另一终端装置传输的已编码视频数据,且可对已编码视频数据进行解码以恢复视频数据,并可根据恢复的视频数据在可访问的显示装置上显示视频图片。In one embodiment of the present application, the system architecture 100 may include a third end device 130 and a fourth end device 140 that perform bidirectional transmission of encoded video data, such as may occur during a video conference. For bidirectional data transmission, each of the third end device 130 and the fourth end device 140 may encode video data (eg, a stream of video pictures captured by the end device) for transmission to the third end device over the network 150 130 and the other terminal device of the fourth terminal device 140 . Each of the third terminal device 130 and the fourth terminal device 140 may also receive encoded video data transmitted by the other one of the third terminal device 130 and the fourth terminal device 140, and may The video data is decoded to recover the video data, and a video picture can be displayed on an accessible display device based on the recovered video data.
在图1的实施例中,第一终端装置110、第二终端装置120、第三终端装置130和第四终端装置140可为服务器、个人计算机和智能电话,但本申请公开的原理可不限于此。本申请公开的实施例适用于膝上型计算机、平板电脑、媒体播放器和/或专用视频会议设备。网络150表示在第一终端装置110、第二终端装置120、第三终端装置130和第四终端装置140之间传送已编码视频数据的任何数目的网络,包括例如有线和/或无线通信网络。通信网络150可在电路交换和/或分组交换信道中交换数据。该网络可包括电信网络、局域网、广域网和/或互联网。出于本申请的目的,除非在下文中有所解释,否则网络150的架构和拓扑对于本申请公开的操作来说可能是无关紧要的。In the embodiment of FIG. 1 , the first terminal device 110 , the second terminal device 120 , the third terminal device 130 and the fourth terminal device 140 may be servers, personal computers and smart phones, but the principles disclosed in this application may not be limited thereto . Embodiments disclosed herein are applicable to laptop computers, tablet computers, media players, and/or dedicated videoconferencing equipment. Network 150 represents any number of networks, including, for example, wired and/or wireless communication networks, that communicate encoded video data between first end device 110, second end device 120, third end device 130, and fourth end device 140. Communication network 150 may exchange data in circuit-switched and/or packet-switched channels. The network may include a telecommunications network, a local area network, a wide area network, and/or the Internet. For the purposes of this application, unless explained below, the architecture and topology of network 150 may be immaterial to the operations disclosed herein.
在本申请的一个实施例中,图2示出视频编码装置和视频解码装置在流式传输环境中的放置方式。本申请所公开主题可同等地适用于其它支持视频的应用,包括例如视频会议、数字TV(television,电视机)、在包括CD、DVD、存储棒等的数字介质上存储压缩视频等等。In one embodiment of the present application, FIG. 2 illustrates the placement of a video encoding device and a video decoding device in a streaming environment. The subject matter disclosed herein is equally applicable to other video-enabled applications including, for example, videoconferencing, digital TV (television), storing compressed video on digital media including CDs, DVDs, memory sticks, and the like.
流式传输系统可包括采集子系统213,采集子系统213可包括数码相机等视频源201,视频源201创建未压缩的视频图片流202。在实施例中,视频图片流202包括由数码相机拍摄的样本。相较于已编码的视频数据204(或已编码的视频码流204),视频图片流202被描绘为粗线以强调高数据量的视频图片流,视频图片流202可由电子装置220处理,电子装置220包括耦接到视频源201的视频编码装置203。视频编码装置203可包括硬件、软件或软硬件组合以实现或实施如下文更详细地描述的所公开主题的各方面。相较于视频图片流202,已编码的视频数据204(或已编码的视频码流204)被描绘为细线以强调较低数据量的已编码的视频数据204(或已编码的视频码流204),其可存储在流式传输服务器205上以供将来使用。一个或多个流式传输客户端子系统,例如图2中的客户端子系统206和客户端子系统208,可访问流式传输服务器205以检索已编码的视频数据204的副本207和副本209。客户端子系统206可包括例如电子装置230中的视频解码装置210。视频解码 装置210对已编码的视频数据的传入副本207进行解码,且产生可在显示器212(例如显示屏)或另一呈现装置上呈现的输出视频图片流211。在一些流式传输系统中,可根据某些视频编码/压缩标准对已编码的视频数据204、视频数据207和视频数据209(例如视频码流)进行编码。该些标准的实施例包括ITU-T H.265。在实施例中,正在开发的视频编码标准非正式地称为下一代视频编码(Versatile Video Coding,VVC),本申请可用于VVC标准的上下文中。The streaming transmission system may include a capture subsystem 213 , and the capture subsystem 213 may include a video source 201 such as a digital camera, and the video source 201 creates an uncompressed video picture stream 202 . In an embodiment, the video picture stream 202 includes samples captured by a digital camera. Compared to the encoded video data 204 (or the encoded video code stream 204), the video picture stream 202 is depicted as a thick line to emphasize the high data volume of the video picture stream, which can be processed by the electronic device 220, and the electronic Device 220 includes video encoding device 203 coupled to video source 201 . Video encoding device 203 may include hardware, software, or a combination of hardware and software to implement or implement various aspects of the disclosed subject matter as described in greater detail below. Compared to the video picture stream 202, the encoded video data 204 (or encoded video code stream 204) is depicted as a thin line to emphasize the lower amount of encoded video data 204 (or encoded video code stream 204) 204), which can be stored on the streaming server 205 for future use. One or more streaming client subsystems, such as client subsystem 206 and client subsystem 208 in FIG. 2 , may access streaming server 205 to retrieve copies 207 and 209 of encoded video data 204 . Client subsystem 206 may include, for example, video decoding device 210 in electronic device 230 . The video decoding device 210 decodes the incoming copy 207 of the encoded video data and produces an output video picture stream 211 that can be presented on a display 212 (eg, a display screen) or another presentation device. In some streaming systems, encoded video data 204, video data 207, and video data 209 (eg, video bitstreams) may be encoded according to certain video encoding/compression standards. Examples of these standards include ITU-T H.265. In an embodiment, the video coding standard under development is informally referred to as Versatile Video Coding (VVC), and this application may be used in the context of the VVC standard.
应注意,电子装置220和电子装置230可包括图中未示出的其它组件。举例来说,电子装置220可包括视频解码装置,且电子装置230还可包括视频编码装置。It should be noted that the electronic device 220 and the electronic device 230 may include other components not shown in the figures. For example, electronic device 220 may include a video decoding device, and electronic device 230 may also include a video encoding device.
在本申请的一个实施例中,以国际视频编码标准HEVC(High Efficiency Video Coding,高效率视频编码)、VVC(Versatile Video Coding,多功能视频编码),以及中国国家视频编码标准AVS(Audio Video coding Standard,信源编码标准)为例,当输入一个视频帧图像之后,会根据一个块大小,将视频帧图像划分成若干个不重叠的处理单元,每个处理单元将进行类似的压缩操作。这个处理单元被称作CTU(Coding Tree Unit,编码树单元),或者称之为LCU(Largest Coding Unit,最大编码单元)。CTU再往下可以继续进行更加精细的划分,得到一个或多个基本的编码单元CU,CU是一个编码环节中最基本的元素。以下介绍对CU进行编码时的一些概念:In an embodiment of the present application, the international video coding standard HEVC (High Efficiency Video Coding, high efficiency video coding), VVC (Versatile Video Coding, multifunctional video coding), and the Chinese national video coding standard AVS (Audio Video coding) Standard, source coding standard) as an example, when a video frame image is input, the video frame image will be divided into several non-overlapping processing units according to a block size, and each processing unit will perform similar compression operations. This processing unit is called CTU (Coding Tree Unit, coding tree unit), or LCU (Largest Coding Unit, largest coding unit). The CTU can continue to be further divided into finer divisions to obtain one or more basic coding units CU, and CU is the most basic element in a coding link. The following introduces some concepts when encoding CUs:
预测编码(Predictive Coding):预测编码包括了帧内预测和帧间预测等方式,原始视频信号经过选定的已重建视频信号的预测后,得到残差视频信号。编码端需要为当前CU决定选择哪一种预测编码模式,并告知解码端。其中,帧内预测是指预测的信号来自于同一图像内已经编码重建过的区域;帧间预测是指预测的信号来自已经编码过的、不同于当前图像的其它图像(称之为参考图像)。Predictive Coding: Predictive coding includes intra-frame prediction and inter-frame prediction. After the original video signal is predicted by the selected reconstructed video signal, a residual video signal is obtained. The encoder needs to decide which predictive coding mode to select for the current CU and inform the decoder. Among them, intra-frame prediction means that the predicted signal comes from an area that has been coded and reconstructed in the same image; inter-frame prediction means that the predicted signal comes from another image (called a reference image) that has been coded and different from the current image. .
变换及量化(Transform&Quantization):残差视频信号经过DFT(Discrete Fourier Transform,离散傅里叶变换)、DCT(Discrete Cosine Transform,离散余弦变换)等变换操作后,将信号转换到变换域中,称之为变换系数。变换系数进一步进行有损的量化操作,丢失掉一定的信息,使得量化后的信号有利于压缩表达。在一些视频编码标准中,可能有多于一种变换方式可以选择,因此编码端也需要为当前CU选择其中的一种变换方式,并告知解码端。量化的精细程度通常由量化参数(Quantization Parameter,简称QP)来决定,QP取值较大,表示更大取值范围的系数将被量化为同一个输出,因此通常会带来更大的失真及较低的码率;相反,QP取值较小,表示较小取值范围的系数将被量化为同一个输出,因此通常会带来较小的失真,同时对应较高的码率。Transform & Quantization: After the residual video signal undergoes transformation operations such as DFT (Discrete Fourier Transform, Discrete Fourier Transform), DCT (Discrete Cosine Transform, Discrete Cosine Transform), the signal is converted into the transform domain, called is the transformation coefficient. The transform coefficient is further subjected to a lossy quantization operation, which loses a certain amount of information, so that the quantized signal is beneficial to the compressed expression. In some video coding standards, there may be more than one transformation mode to choose from, so the encoder also needs to select one of the transformation modes for the current CU and inform the decoder. The fineness of quantization is usually determined by the Quantization Parameter (QP for short). If the value of QP is larger, the coefficients representing a larger value range will be quantized into the same output, which usually brings greater distortion and distortion. A lower code rate; on the contrary, if the QP value is smaller, the coefficients representing a smaller value range will be quantized into the same output, so it usually brings less distortion and corresponds to a higher code rate.
熵编码(Entropy Coding)或统计编码:量化后的变换域信号将根据各个值出现的频率进行统计压缩编码,最后输出二值化(0或者1)的压缩码流。同时,编码产生其他信息,例如选择的编码模式、运动矢量数据等,也需要进行熵编码以降低码率。统计编码是一种无损的编码方式,可以有效的降低表达同样信号所需要的码率,常见的统计编码方式有变长编码(Variable Length Coding,简称VLC)或者基于上下文的二值化算术编码(Content Adaptive Binary Arithmetic Coding,简称CABAC)。Entropy Coding or Statistical Coding: The quantized transform domain signal will undergo statistical compression coding according to the frequency of occurrence of each value, and finally output a binarized (0 or 1) compressed code stream. At the same time, other information generated by encoding, such as the selected encoding mode, motion vector data, etc., also needs to be entropy encoded to reduce the bit rate. Statistical coding is a lossless coding method that can effectively reduce the code rate required to express the same signal. Common statistical coding methods include Variable Length Coding (VLC) or context-based binary arithmetic coding ( Content Adaptive Binary Arithmetic Coding, referred to as CABAC).
环路滤波(Loop Filtering):经过变化及量化的信号会通过反量化、反变换及预测补偿的操作获得重建图像。重建图像与原始图像相比由于存在量化的影响,部分信息与原始图像有所不同,即重建图像会产生失真(Distortion)。因此,可以对重建图像进行滤波操作,例如去块效应滤波(Deblocking filter,简称DB)、SAO(Sample Adaptive Offset,自适应像素补偿)或者ALF(Adaptive Loop Filter,自适应环路滤波)等滤波器,可以有效降低量化 所产生的失真程度。由于这些经过滤波后的重建图像将作为后续编码图像的参考来对将来的图像信号进行预测,因此上述的滤波操作也被称为环路滤波,即在编码环路内的滤波操作。Loop Filtering: The changed and quantized signal will obtain a reconstructed image through the operations of inverse quantization, inverse transformation and prediction compensation. Compared with the original image, the reconstructed image is different from the original image due to the influence of quantization, that is, the reconstructed image will produce distortion (Distortion). Therefore, filtering operations can be performed on the reconstructed image, such as deblocking filter (DB), SAO (Sample Adaptive Offset, adaptive pixel compensation) or ALF (Adaptive Loop Filter, adaptive loop filter) and other filters , which can effectively reduce the degree of distortion caused by quantization. Since these filtered reconstructed images will be used as references for subsequent encoded images to predict future image signals, the above filtering operation is also called in-loop filtering, ie, a filtering operation in an encoding loop.
在本申请的一个实施例中,图3示出了一个视频编码器的基本流程图,在该流程中以帧内预测为例进行说明。其中,原始图像信号s k[x,y]与预测图像信号
Figure PCTCN2021123154-appb-000001
做差值运算,得到残差信号u k[x,y],残差信号u k[x,y]经过变换及量化处理之后得到量化系数,量化系数一方面通过熵编码得到编码后的比特流,另一方面通过反量化及反变换处理得到重构残差信号u' k[x,y],预测图像信号
Figure PCTCN2021123154-appb-000002
与重构残差信号u' k[x,y]叠加生成图像信号
Figure PCTCN2021123154-appb-000003
图像信号
Figure PCTCN2021123154-appb-000004
一方面输入至帧内模式决策模块和帧内预测模块进行帧内预测处理,另一方面通过环路滤波输出重建图像信号s' k[x,y],重建图像信号s' k[x,y]可以作为下一帧的参考图像进行运动估计及运动补偿预测。然后基于运动补偿预测的结果s' r[x+m x,y+m y]和帧内预测结果
Figure PCTCN2021123154-appb-000005
得到下一帧的预测图像信号
Figure PCTCN2021123154-appb-000006
并继续重复上述过程,直至编码完成。
In an embodiment of the present application, FIG. 3 shows a basic flowchart of a video encoder, and intra-frame prediction is used as an example in the flowchart for illustration. Among them, the original image signal sk [x,y] and the predicted image signal
Figure PCTCN2021123154-appb-000001
Do the difference operation to obtain the residual signal u k [x, y], and the residual signal u k [x, y] is transformed and quantized to obtain quantized coefficients. On the one hand, the quantized coefficients are encoded by entropy coding to obtain the encoded bits On the other hand, the reconstructed residual signal u' k [x, y] is obtained through inverse quantization and inverse transformation processing, and the predicted image signal
Figure PCTCN2021123154-appb-000002
It is superimposed with the reconstructed residual signal u' k [x, y] to generate an image signal
Figure PCTCN2021123154-appb-000003
image signal
Figure PCTCN2021123154-appb-000004
On the one hand, it is input to the intra - frame mode decision module and the intra-frame prediction module for intra-frame prediction processing; ] can be used as a reference image for the next frame for motion estimation and motion compensation prediction. Then based on the motion compensation prediction result s' r [x+m x ,y+m y ] and the intra prediction result
Figure PCTCN2021123154-appb-000005
Get the predicted image signal of the next frame
Figure PCTCN2021123154-appb-000006
And continue to repeat the above process until the encoding is complete.
此外,由于残差信号在经过变换和量化处理后的量化系数块中非零系数较大概率会集中在块的左边和上方区域,而块的右边和下方区域往往为0,因此引入了SRCC(Scan Region Coefficient Coding,扫描区域系数编码)技术。通过SRCC技术可以标记出每个量化系数块(尺寸为W×H)中包含的非零系数的左上区域的大小SRx×SRy,其中SRx是量化系数块中最右面的非零系数的横坐标,SRy是量化系数块中最下面的非零系数的纵坐标,且1≤SRx≤W,1≤SRy≤H,而该左上区域外的系数均为0。SRCC技术利用(SRx,SRy)来确定一个量化系数块中需要扫描的量化系数区域,如图4所示,只有(SRx,SRy)标记的扫描区域内的量化系数需要编码,编码的扫描顺序如图5所示,可以是从右下角到左上角的反向Z字型扫描。In addition, since the residual signal in the transformed and quantized quantized coefficient block has a high probability that the non-zero coefficients will be concentrated in the left and upper regions of the block, while the right and lower regions of the block are often 0, so the introduction of SRCC ( Scan Region Coefficient Coding, scanning region coefficient coding) technology. The size of the upper left region of the non-zero coefficients included in each quantized coefficient block (size W×H) can be marked by SRCC technology SRx×SRy, where SRx is the abscissa of the rightmost non-zero coefficient in the quantized coefficient block, SRy is the ordinate of the lowest non-zero coefficient in the quantized coefficient block, and 1≤SRx≤W, 1≤SRy≤H, and the coefficients outside the upper left area are all 0. The SRCC technology uses (SRx, SRy) to determine the quantized coefficient area that needs to be scanned in a quantized coefficient block. As shown in Figure 4, only the quantized coefficients in the scanning area marked by (SRx, SRy) need to be coded. The scanning order of the coding is as follows As shown in Figure 5, it can be a reverse zigzag scan from the lower right corner to the upper left corner.
基于上述的编码过程,在解码端针对每一个CU,在获取到压缩码流(即比特流)之后,进行熵解码获得各种模式信息及量化系数。然后量化系数经过反量化及反变换处理得到残差信号。另一方面,根据已知的编码模式信息,可获得该CU对应的预测信号,然后将残差信号与预测信号相加之后即可得到重建信号,重建信号再经过环路滤波等操作,产生最终的输出信号。Based on the above encoding process, for each CU, the decoding end performs entropy decoding to obtain various mode information and quantization coefficients after obtaining the compressed code stream (ie, the bit stream). Then, the quantized coefficients undergo inverse quantization and inverse transformation to obtain residual signals. On the other hand, according to the known coding mode information, the predicted signal corresponding to the CU can be obtained, and then the reconstructed signal can be obtained by adding the residual signal and the predicted signal. The reconstructed signal is then subjected to loop filtering and other operations to generate the final output signal.
在上述的编解码过程中,对残差信号的变换处理使得残差信号的能量集中在较少的低频系数,也就是多数系数值较小。然后经过后续的量化模块后,较小系数值将变为零值,极大降低了编码残差信号的代价。但是,由于残差分布的多样性,单一的DCT变换无法适应所有的残差特性,因此,DST7和DCT8这样的变换核被引入到变换处理过程中,并且对残差信号进行的水平变换和竖直变换可以采用不同的变换核。以AMT(Adaptive multiple core transform,自适应多核变换)技术为例,对于一个残差信号进行变换处理可能选择的变换组合如下所示:(DCT2,DCT2)、(DCT8,DCT8)、(DCT8,DST7)、(DST7,DCT8)和(DST7,DST7)。In the above encoding and decoding process, the transform processing of the residual signal makes the energy of the residual signal concentrate on less low-frequency coefficients, that is, most coefficients have smaller values. Then after the subsequent quantization module, the smaller coefficient value will become zero value, which greatly reduces the cost of coding the residual signal. However, due to the diversity of residual distribution, a single DCT transformation cannot adapt to all residual characteristics. Therefore, transformation kernels such as DST7 and DCT8 are introduced into the transformation process, and the horizontal transformation and vertical transformation of the residual signal are carried out. Direct transforms can use different transform kernels. Taking AMT (Adaptive multiple core transform) technology as an example, the possible transformation combinations for transform processing of a residual signal are as follows: (DCT2, DCT2), (DCT8, DCT8), (DCT8, DST7) ), (DST7, DCT8) and (DST7, DST7).
对于残差信号具体选择哪种变换组合,需要在编码端使用RDO(Rate–Distortion Optimization,率失真优化)进行决策。并且也有部分残差的相关性较弱,进而可能会跳过变换过程。以变换跳过的残差为例,AVS3标准中目前的变换跳过方法直接跳过了残差的 变换过程,然而由于帧内预测的特性,残差块的右下角残差能量更高,直接进行系数编码,很难缩小SRCC区域的大小,降低了SRCC的效率,因此也影响了视频的编码效率。For the specific choice of transformation combination for the residual signal, it is necessary to use RDO (Rate-Distortion Optimization, rate-distortion optimization) at the encoding end to make a decision. And there are also some residuals with weak correlation, which may skip the transformation process. Taking the residual of transform skipping as an example, the current transform skipping method in the AVS3 standard directly skips the transform process of the residual. However, due to the characteristics of intra-frame prediction, the residual energy in the lower right corner of the residual block is higher, and the direct When coefficient coding is performed, it is difficult to reduce the size of the SRCC region, which reduces the efficiency of the SRCC, and thus also affects the coding efficiency of the video.
针对上述问题,本申请的实施例提出了对反量化系数矩阵进行系数的翻转替换处理,以将系数矩阵中的非零系数更多地集中在系数矩阵的左方、上方和左上方区域,进而可以在编码时缩小SRCC区域的面积,从而可以有效提高视频编解码效率。In view of the above problems, the embodiments of the present application propose to perform coefficient flipping and replacement processing on the inverse quantization coefficient matrix, so as to concentrate more non-zero coefficients in the coefficient matrix in the left, upper and upper left regions of the coefficient matrix, and further The area of the SRCC region can be reduced during encoding, thereby effectively improving video encoding and decoding efficiency.
以下对本申请实施例的技术方案的实现细节进行详细阐述:The implementation details of the technical solutions of the embodiments of the present application are described in detail below:
图6示出了根据本申请的一个实施例的视频解码方法的流程图,该视频解码方法可以由具有计算处理功能的电子设备来执行,比如可以由终端设备或服务器来执行。参照图6所示,该视频解码方法至少包括步骤S610至步骤S640,详细介绍如下:FIG. 6 shows a flowchart of a video decoding method according to an embodiment of the present application. The video decoding method may be executed by an electronic device with a computing processing function, such as a terminal device or a server. Referring to FIG. 6 , the video decoding method at least includes steps S610 to S640, which are described in detail as follows:
在步骤S610中,对视频图像帧的编码块进行熵解码处理,获得编码块对应的残差数据的量化系数块。In step S610, entropy decoding processing is performed on the coded block of the video image frame to obtain a quantized coefficient block of residual data corresponding to the coded block.
在本申请的一个实施例中,视频图像帧序列包括了一系列图像,每张图像可以被进一步划分为条带(Slice),条带又可以划分为一系列的LCU(或CTU),LCU包含有若干CU。视频图像帧在编码时是以块为单位进行编码处理,在一些新的视频编码标准中,比如在H.264标准中有宏块(macroblock,MB),宏块可进一步划分成多个可用于预测编码的预测块(prediction)。在HEVC标准中,采用编码单元CU、预测单元(prediction unit,PU)和变换单元(transform unit,TU)等基本概念,从功能上划分了多种块单元,并采用全新的基于树的结构进行描述。比如CU可以按照四叉树划分为更小的CU,而更小的CU还可以继续划分,从而形成一种四叉树结构。本申请实施例中的编码块可以是CU,或者是比CU更小的块,如对CU进行划分得到的更小的块。In one embodiment of the present application, the video image frame sequence includes a series of images, each image can be further divided into slices, and the slices can be further divided into a series of LCUs (or CTUs). The LCUs include There are several CUs. The video image frame is encoded in block units. In some new video encoding standards, such as the H.264 standard, there is a macroblock (MB), which can be further divided into multiple blocks that can be used for Prediction block (prediction) for predictive coding. In the HEVC standard, basic concepts such as coding unit CU, prediction unit (PU) and transform unit (TU) are used to functionally divide a variety of block units, and adopt a new tree-based structure for describe. For example, a CU can be divided into smaller CUs according to a quadtree, and the smaller CUs can be further divided to form a quadtree structure. The coding block in this embodiment of the present application may be a CU, or a block smaller than the CU, such as a smaller block obtained by dividing the CU.
在步骤S620中,对量化系数块进行反量化处理,得到反量化系数矩阵。其中,反量化处理是视频图像帧在编码时的量化处理过程的逆过程,以获取反量化系数,例如,基于或使用与量化处理时相同的量化步长,应用量化处理方案对应的逆量化方案进行反量化处理。In step S620, inverse quantization processing is performed on the quantized coefficient block to obtain an inverse quantized coefficient matrix. The inverse quantization process is the inverse process of the quantization process of the video image frame during encoding to obtain inverse quantization coefficients. For example, based on or using the same quantization step size as in the quantization process, an inverse quantization scheme corresponding to the quantization processing scheme is applied. Perform inverse quantization processing.
在步骤S630中,对反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,翻转替换处理包括左右翻转替换、上下翻转替换和沿反量化系数矩阵的副对角线进行翻转替换中的至少一种。In step S630, the inverse quantization coefficient matrix is subjected to inversion and replacement of the coefficients to obtain a coefficient matrix after the inversion and substitution process. The inversion and substitution processing includes left and right inversion, up and down inversion, and inversion along the sub-diagonal of the inverse quantization coefficient matrix. at least one of the substitutions.
在本申请的一个实施例中,在执行步骤S630之前,本申请实施例还可以根据以下方式中的至少一种确定是否需要对反量化系数矩阵进行系数的翻转替换处理:In an embodiment of the present application, before step S630 is performed, this embodiment of the present application may also determine whether it is necessary to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to at least one of the following methods:
视频图像帧序列对应的编码块的序列头中包含的索引标识的取值;The value of the index identifier included in the sequence header of the coding block corresponding to the video image frame sequence;
视频图像帧对应的编码块的图像头中包含的索引标识的取值;The value of the index identifier included in the image header of the coding block corresponding to the video image frame;
编码块所采用的编码模式;The coding mode used by the coding block;
编码块的尺寸大小;The size of the coding block;
编码块中包含的索引标识的取值或者量化系数块中系数统计结果的隐含指示。The value of the index identification contained in the coding block or the implicit indication of the coefficient statistics in the quantized coefficient block.
这样,本申请实施例可以在确定需要对反量化系数矩阵进行系数的翻转替换处理时,执行步骤S630。反之,在确定不需要对反量化系数矩阵进行系数的翻转替换处理时,本申请实施例可以不执行步骤S630。In this way, in this embodiment of the present application, step S630 may be performed when it is determined that the inverse quantization coefficient matrix needs to be subjected to coefficient inversion and replacement processing. On the contrary, when it is determined that the inverse quantization coefficient matrix does not need to perform coefficient inversion and replacement processing, step S630 may not be performed in this embodiment of the present application.
具体而言,在确定对应的编码块是否需要对反量化系数矩阵进行系数的翻转替换处理时,可以有如下方式:Specifically, when determining whether the corresponding coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix, the following methods may be used:
1、通过视频图像帧序列的序列头中包含的索引标识来指示。比如,若序列头中包含的索引标识为1(数值仅为示例),就说明视频图像帧序列对应的所有编码块需要对熵解码及 反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。1. It is indicated by the index identifier contained in the sequence header of the video image frame sequence. For example, if the index identifier contained in the sequence header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame sequence need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing .
2、通过视频图像帧的图像头中包含的索引标识来指示。比如,若图像头中包含的索引标识为1(数值仅为示例),就说明视频图像帧对应的所有编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。2. It is indicated by the index identifier contained in the image header of the video image frame. For example, if the index flag included in the image header is 1 (the value is only an example), it means that all coding blocks corresponding to the video image frame need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
3、通过编码块所采用的编码模式来指示。比如,若一个编码块采用帧内编码方式,就说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。3. Indicated by the coding mode adopted by the coding block. For example, if an encoding block adopts the intra-frame encoding mode, it means that the encoding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
4、通过编码块的尺寸大小来指示。比如,若一个编码块的尺寸小于设定值,就说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。4. Indicated by the size of the coding block. For example, if the size of a coding block is smaller than the set value, it means that the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
5、通过编码块中包含的索引标识的取值来指示。比如,若一个编码块中包含的索引标识为1(数值仅为示例),就说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。5. It is indicated by the value of the index identifier contained in the coding block. For example, if the index identifier included in a coding block is 1 (the value is only an example), it means that the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing.
6、通过量化系数块中系数统计结果来进行隐含指示。比如,可以统计量化系数块中的非零系数、偶数系数、非零偶数系数或者奇数系数的数量,然后根据该数量的奇偶性来隐含指示编码块是否需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。简言之,将该数量的奇偶性作为量化系数块中的系数统计结果,以根据系数统计结果确定是否需要进行系数的翻转替换处理。如该数量为奇数,则说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理;反之,如果该数量为偶数,则说明该编码块不需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。当然,也可以在该数量为奇数时,指示该编码块不需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理;而在该数量为偶数,则说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。6. Implicit indication is made by quantizing coefficient statistics in the coefficient block. For example, the number of non-zero coefficients, even-numbered coefficients, non-zero even-numbered coefficients or odd-numbered coefficients in the quantization coefficient block can be counted, and then according to the parity of the number, it is implicitly indicated whether the encoding block needs to be obtained by entropy decoding and inverse quantization processing. The inverse quantization coefficient matrix performs the inversion and replacement processing of the coefficients. In short, the number of parities is taken as the coefficient statistic result in the quantized coefficient block, so as to determine whether the coefficient inversion and replacement process needs to be performed according to the coefficient statistic result. If the number is an odd number, it means that the coding block needs to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization; on the contrary, if the number is an even number, it means that the coding block does not require entropy decoding. And the inverse quantization coefficient matrix obtained by the inverse quantization process performs the inversion and replacement process of the coefficients. Of course, when the number is an odd number, it can also indicate that the coding block does not need to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization; and when the number is even, it means that the coding block needs The inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing is subjected to inversion and replacement processing of the coefficients.
在本申请的一个实施例中,在对量化系数块中的系数进行统计时,可以统计量化系数块中的全部区域,或者统计量化系数块中的部分区域,也可以统计量化系数块中的SRCC区域(如全部的SRCC区域或者部分SRCC区域)。比如,统计量化系数块中指定的一个位置或多个位置、统计量化系数块中指定的至少一行、统计量化系数块中指定的至少一列、统计量化系数块中指定的至少一行和指定的至少一列、统计量化系数块中处于至少一条斜线上的位置等。In an embodiment of the present application, when the coefficients in the quantization coefficient block are counted, the whole area in the quantization coefficient block, or a part of the area in the quantization coefficient block, or the SRCC in the quantization coefficient block may be counted. area (such as the entire SRCC area or part of the SRCC area). For example, one or more positions specified in the statistical quantization coefficient block, at least one row specified in the statistical quantization coefficient block, at least one column specified in the statistical quantization coefficient block, at least one row specified in the statistical quantization coefficient block, and at least one column specified in the statistical quantization coefficient block , the position on at least one oblique line in the statistical quantization coefficient block, and the like.
7、通过上述方式1至方式5中的两种或两种以上方式来进行指示。7. Use two or more of the above methods 1 to 5 to give instructions.
比如,可以通过视频图像帧序列的序列头中包含的索引标识、视频图像帧的图像头中包含的索引标识、编码块所采用的编码模式、编码块的尺寸大小和编码块中包含的索引标识的取值来共同指示。For example, the index identifier included in the sequence header of the video image frame sequence, the index identifier included in the image header of the video image frame, the encoding mode adopted by the encoding block, the size of the encoding block, and the index identifier included in the encoding block can be used. value to indicate together.
具体地,若序列头中包含的索引标识为1(数值仅为示例)、图像头中包含的索引标识为1(数值仅为示例)、编码块采用帧内编码方式、且该编码块的尺寸小于设定尺寸,那么若该编码块中包含的索引标识的取值为1(数值仅为示例),那么就说明该编码块需要对熵解码及反量化处理得到的反量化系数矩阵进行系数的翻转替换处理。Specifically, if the index flag contained in the sequence header is 1 (the value is only an example), the index flag contained in the image header is 1 (the value is only an example), the coding block adopts the intra-frame coding method, and the size of the coding block is is smaller than the set size, then if the value of the index identifier contained in the coding block is 1 (the value is only an example), then it means that the coding block needs to perform coefficient calculation on the inverse quantization coefficient matrix obtained by entropy decoding and inverse quantization processing. Flip replacement processing.
在一个实施例中,若序列头中包含的索引标识为1(数值仅为示例)、图像头中包含的索引标识为1(数值仅为示例)、编码块采用帧内编码方式、且该编码块的尺寸小于设定尺寸,那么若该编码块中包含的索引标识的取值为0(数值仅为示例),则说明该编码块不需要反量化系数矩阵进行系数的翻转替换处理,并且可以通过DCT变换的方式对该编码块的反量化系数矩阵进行反变换处理。In one embodiment, if the index identifier included in the sequence header is 1 (the value is only an example), the index identifier included in the image header is 1 (the value is only an example), the encoding block adopts the intra-frame encoding method, and the encoding The size of the block is smaller than the set size, then if the value of the index identifier contained in the coding block is 0 (the value is only an example), it means that the coding block does not require the inverse quantization coefficient matrix to perform coefficient inversion and replacement processing, and can Inverse transform processing is performed on the inverse quantization coefficient matrix of the coding block by means of DCT transform.
8、通过上述方式1至方式4,以及方式6中的两种或两种以上方式来进行指示。8. Use two or more of the above methods 1 to 4 and method 6 to give instructions.
比如,可以通过视频图像帧序列的序列头中包含的索引标识、视频图像帧的图像头中包含的索引标识、编码块所采用的编码模式、编码块的尺寸大小、量化系数块中系数统计结果来共同指示。具体地,若序列头中包含的索引标识为1(数值仅为示例)、图像头中包含的索引标识为1(数值仅为示例)、编码块采用帧内编码方式、且该编码块的尺寸小于设定尺寸,那么若该编码块对应的量化系数块的统计结果为第一值(该第一值比如可以是奇数值,仅为示例)时,就说明需要对反量化系数矩阵进行系数的翻转替换处理。For example, the index identifier included in the sequence header of the video image frame sequence, the index identifier included in the image header of the video image frame, the encoding mode adopted by the encoding block, the size of the encoding block, and the coefficient statistics in the quantization coefficient block can be obtained. to jointly instruct. Specifically, if the index flag contained in the sequence header is 1 (the value is only an example), the index flag contained in the image header is 1 (the value is only an example), the coding block adopts the intra-frame coding method, and the size of the coding block is is smaller than the set size, then if the statistical result of the quantization coefficient block corresponding to the coding block is the first value (for example, the first value can be an odd value, which is only an example), it means that the inverse quantization coefficient matrix needs to be calculated. Flip replacement processing.
在本申请的一个实施例中,如果序列头中包含的索引标识为1(数值仅为示例)、图像头中包含的索引标识为1(数值仅为示例)、编码块采用帧内编码方式、且该编码块的尺寸小于设定尺寸,那么若该编码块对应的量化系数块的统计结果为第二值(该第二值比如可以是偶数值,仅为示例)时,说明不需要对反量化系数矩阵进行系数的翻转替换处理,并且可以通过DCT变换的方式对该编码块的反量化系数矩阵进行反变换处理。In an embodiment of the present application, if the index identifier included in the sequence header is 1 (the value is only an example), the index identifier included in the image header is 1 (the value is only an example), the coding block adopts the intra-frame coding method, And the size of the coding block is smaller than the set size, then if the statistical result of the quantization coefficient block corresponding to the coding block is the second value (for example, the second value can be an even value, which is only an example), it is not necessary to contradict it. The quantized coefficient matrix is subjected to inversion and replacement processing of the coefficients, and the inverse transformation processing of the inverse quantized coefficient matrix of the coding block can be performed by means of DCT transformation.
在本申请的一个实施例中,沿反量化系数矩阵的副对角线进行翻转替换可以如图7A所示,即沿副对角线将反量化系数矩阵进行翻转,然后将相应位置处的系数进行替换处理。在这种情况下,编码端在对系数矩阵进行量化处理之前,也可以对系数矩阵沿副对角线进行翻转替换处理,具体如图7B所示。In one embodiment of the present application, the inverse quantization coefficient matrix is flipped along the sub-diagonal of the inverse quantization coefficient matrix as shown in FIG. 7A , that is, the inverse quantization coefficient matrix is flipped along the sub-diagonal, and then the coefficients at the corresponding positions are inverted. Perform replacement processing. In this case, before performing quantization processing on the coefficient matrix, the encoding end may also perform flipping and replacement processing on the coefficient matrix along the sub-diagonal, as shown in FIG. 7B .
在本申请的一个实施例中,左右翻转替换可以如图8A所示,沿反量化系数矩阵在宽度上的中心线进行左右翻转,然后将相应位置处的系数进行替换处理。在这种情况下,编码端在对系数矩阵进行量化处理之前,也可以对系数矩阵进行左右翻转替换处理,具体如图8B所示。需要说明的是,图8A和8B所示的左右翻转替换的方式为左右对称翻转,在本申请的其它实施例中,也可以采用非对称的翻转方式。In an embodiment of the present application, as shown in FIG. 8A , the left and right inversion may be performed along the center line of the width of the inverse quantization coefficient matrix, and then the coefficients at the corresponding positions are replaced. In this case, before performing the quantization process on the coefficient matrix, the encoding end may also perform the left-right inversion and replacement process on the coefficient matrix, as shown in FIG. 8B . It should be noted that the left-right inversion shown in FIGS. 8A and 8B is a left-right symmetrical inversion, and in other embodiments of the present application, an asymmetrical inversion may also be adopted.
在本申请的一个实施例中,上下翻转替换可以如图9A所示,沿反量化系数矩阵在高度上的中心线进行上下翻转,然后将相应位置处的系数进行替换处理。在这种情况下,编码端在对系数矩阵进行量化处理之前,也可以对系数矩阵进行上下翻转替换处理,具体如图9B所示。需要说明的是,图9A和图9B所示的上下翻转替换的方式为上下对称翻转,在本申请的其它实施例中,也可以采用非对称的翻转方式。In an embodiment of the present application, as shown in FIG. 9A , the upside-down replacement can be performed along the center line of the inverse quantization coefficient matrix in height, and then the coefficients at the corresponding positions are replaced. In this case, before performing quantization processing on the coefficient matrix, the encoding end may also perform up-down inversion and replacement processing on the coefficient matrix, as shown in FIG. 9B . It should be noted that the upside-down inversion method shown in FIG. 9A and FIG. 9B is up-down symmetrical inversion, and in other embodiments of the present application, an asymmetrical inversion manner may also be adopted.
在本申请的一个实施例中,在对反量化系数矩阵进行系数的翻转替换处理时,可以根据反量化系数矩阵的宽度与高度之间的关系,确定反量化系数矩阵的翻转替换方式,然后基于确定的翻转替换方式对反量化系数矩阵进行系数的翻转替换处理。In an embodiment of the present application, when the inverse quantization coefficient matrix is subjected to coefficient inversion and replacement processing, the inverse quantization coefficient matrix may be determined according to the relationship between the width and height of the inverse quantization coefficient matrix. The determined inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantized coefficient matrix.
比如,若反量化系数矩阵的宽度和高度相等,则确定对反量化系数矩阵采用沿反量化系数矩阵的副对角线进行翻转替换的方式,具体如图7A所示的实施例。当然若反量化系数矩阵的宽度和高度相等,也可以采用上下翻转替换的方式,或者左右翻转替换的方式,还可以采用左右翻转替换、上下翻转替换和沿反量化系数矩阵的副对角线进行翻转替换中的至少两种。For example, if the width and height of the inverse quantization coefficient matrix are equal, it is determined that the inverse quantization coefficient matrix is flipped and replaced along the sub-diagonal of the inverse quantization coefficient matrix, as shown in the embodiment shown in FIG. 7A . Of course, if the width and height of the inverse quantization coefficient matrix are equal, the method of flipping up and down, or the method of flipping left and right, can also be used. Flip at least two of the substitutions.
若反量化系数矩阵的宽度大于高度,则确定对反量化系数矩阵采用左右翻转替换的方式,具体如图8A所示的实施例。If the width of the inverse quantization coefficient matrix is greater than the height, it is determined that the inverse quantization coefficient matrix is to be replaced by a left-right inversion, as shown in the embodiment shown in FIG. 8A .
若反量化系数矩阵的宽度小于高度,则确定对反量化系数矩阵采用上下翻转替换的方式,具体如图9A所示的实施例。If the width of the inverse quantization coefficient matrix is smaller than the height, it is determined that the inverse quantization coefficient matrix is replaced by up and down, as shown in the embodiment shown in FIG. 9A .
在本申请的一个实施例中,在对反量化系数矩阵进行系数的翻转替换处理时,可以根据编码块采用的帧内预测模式,确定反量化系数矩阵的翻转替换方式,然后基于确定的翻转替换方式对反量化系数矩阵进行系数的翻转替换处理。In an embodiment of the present application, when performing coefficient inversion and replacement processing on the inverse quantization coefficient matrix, the inversion and replacement method of the inverse quantization coefficient matrix may be determined according to the intra-frame prediction mode adopted by the coding block, and then based on the determined inversion and replacement The method performs the inversion and replacement processing of the coefficients on the inverse quantized coefficient matrix.
具体地,若编码块的帧内预测模式的方向是朝向左下方,则确定对反量化系数矩阵采用上下翻转替换的方式;若编码块的帧内预测模式的方向是朝向右上方,则确定对反量化系数矩阵采用左右翻转替换的方式。Specifically, if the direction of the intra-frame prediction mode of the coding block is towards the lower left, it is determined that the inverse quantization coefficient matrix is replaced by up and down; if the direction of the intra-frame prediction mode of the coding block is towards the upper right, it is determined that the The inverse quantization coefficient matrix adopts the method of left and right flip replacement.
在本申请的一个实施例中,如图10所示,方向朝向左下方的帧内预测模式可以是模式3至模式11,模式34至模式43;方向朝向右上方的帧内预测模式可以是模式25至模式32,模式58至模式65。In an embodiment of the present application, as shown in FIG. 10 , the intra prediction modes with the direction toward the lower left may be mode 3 to mode 11, and the mode 34 to mode 43; the intra prediction mode with the direction toward the upper right may be the mode 25 to Mode 32, Mode 58 to Mode 65.
在本申请的一个实施例中,若编码块的帧内预测模式是除朝向左下方和朝向右上方之外的其它帧内预测模式,则根据反量化系数矩阵的宽度与高度之间的关系,确定反量化系数矩阵的翻转替换方式。具体如图10所示,该实施例中的其它帧内预测模式可以是模式0至模式2,模式12至模式24,模式44至模式57。其中,模式0代表DC预测模式,模式1代表平面(Plane)预测模式,模式2代表双线性(Bilinear)预测模式。该实施例中根据反量化系数矩阵的宽度与高度之间的关系,确定反量化系数矩阵的翻转替换方式的方案可参照前述实施例的技术方案,不再赘述。In an embodiment of the present application, if the intra prediction mode of the coding block is another intra prediction mode except toward the lower left and toward the upper right, then according to the relationship between the width and height of the inverse quantization coefficient matrix, Determines the flip replacement for the inverse quantized coefficient matrix. Specifically, as shown in FIG. 10 , other intra prediction modes in this embodiment may be mode 0 to mode 2, mode 12 to mode 24, and mode 44 to mode 57. Among them, mode 0 represents a DC prediction mode, mode 1 represents a plane (Plane) prediction mode, and mode 2 represents a bilinear (Bilinear) prediction mode. In this embodiment, according to the relationship between the width and the height of the inverse quantization coefficient matrix, the solution of determining the inversion and replacement mode of the inverse quantization coefficient matrix may refer to the technical solutions of the foregoing embodiments, and will not be repeated.
继续参照图6所示,在步骤S640中,根据翻转替换处理后的系数矩阵生成残差数据。Continuing to refer to FIG. 6 , in step S640, residual data is generated according to the coefficient matrix after the inversion and replacement process.
在本申请的一个实施例中,可以将翻转替换处理后的系数矩阵作为重建得到的残差数据,或者也可以对翻转替换处理后的系数矩阵进行其它的处理来得到残差数据。In an embodiment of the present application, the coefficient matrix after the flipping and replacement processing may be used as the residual data obtained by reconstruction, or other processing may be performed on the coefficient matrix after the flipping and replacement processing to obtain the residual data.
本申请上述实施例的技术方案使得能够通过对反量化系数矩阵的翻转替换处理来将系数矩阵中的非零系数更多地集中在系数矩阵的左方、上方和左上方区域,进而可以在编码时缩小SRCC区域的面积,从而可以有效提高视频编解码效率。The technical solutions of the above embodiments of the present application enable more non-zero coefficients in the coefficient matrix to be concentrated in the left, upper and upper left regions of the coefficient matrix by inverting and replacing the inverse quantization coefficient matrix. When reducing the area of the SRCC region, the video coding and decoding efficiency can be effectively improved.
综上,根据本申请实施例的视频解码方法,通过对反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,且该翻转替换处理包括左右翻转替换、上下翻转替换和沿反量化系数矩阵的副对角线进行翻转替换中的至少一种,然后根据翻转替换处理后的系数矩阵生成残差数据,使得能够通过对反量化系数矩阵的翻转替换处理来将系数矩阵中的非零系数更多地集中在系数矩阵的左方、上方和左上方区域,进而可以在编解码时缩小SRCC区域的面积,从而可以有效提高视频编解码效率。以下介绍本申请的装置实施例,可以用于执行本申请上述实施例中的视频解码方法。对于本申请装置实施例中未披露的细节,请参照本申请上述的视频解码方法的实施例。To sum up, according to the video decoding method of the embodiment of the present application, a coefficient matrix after the inversion and replacement process is obtained by performing the inversion and replacement of the coefficients on the inverse quantization coefficient matrix, and the inversion and replacement process includes left-right inversion, up-down inversion and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantization coefficient matrix, and then residual data is generated according to the coefficient matrix after the inversion and substitution process, so that the inverse quantization coefficient matrix can be inverted and replaced by the coefficient matrix. The non-zero coefficients are more concentrated in the left, upper and upper left regions of the coefficient matrix, so that the area of the SRCC region can be reduced during encoding and decoding, thereby effectively improving the video encoding and decoding efficiency. The apparatus embodiments of the present application are described below, which can be used to execute the video decoding methods in the above-mentioned embodiments of the present application. For details not disclosed in the device embodiments of the present application, please refer to the above-mentioned embodiments of the video decoding method of the present application.
图11示出了根据本申请的一个实施例的视频解码装置的框图,该视频解码装置可以设置在具有计算处理功能的电子设备内,比如可以设置在终端设备或服务器内。FIG. 11 shows a block diagram of a video decoding apparatus according to an embodiment of the present application. The video decoding apparatus may be set in an electronic device with a computing processing function, such as a terminal device or a server.
参照图11所示,根据本申请的一个实施例的视频解码装置1100,包括:解码单元1102、第一处理单元1104、第二处理单元1106和第三处理单元1108。Referring to FIG. 11 , a video decoding apparatus 1100 according to an embodiment of the present application includes: a decoding unit 1102 , a first processing unit 1104 , a second processing unit 1106 and a third processing unit 1108 .
其中,解码单元1102配置为对视频图像帧的编码块进行熵解码处理,获得所述编码块对应的残差数据的量化系数块;第一处理单元1104配置为对所述量化系数块进行反量化处理,得到反量化系数矩阵;第二处理单元1106配置为对所述反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,所述翻转替换处理包括左右翻转替换、上下翻转替换和沿所述反量化系数矩阵的副对角线进行翻转替换中的至少一种;第三处理单元1108配置为根据所述翻转替换处理后的系数矩阵生成所述残差数据。The decoding unit 1102 is configured to perform entropy decoding processing on the coding block of the video image frame to obtain a quantized coefficient block of residual data corresponding to the coding block; the first processing unit 1104 is configured to perform inverse quantization on the quantized coefficient block processing to obtain an inverse quantization coefficient matrix; the second processing unit 1106 is configured to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix to obtain a coefficient matrix after the inversion and replacement processing, and the inversion and replacement processing includes left-right inversion and up-down inversion. at least one of replacing and flipping and replacing along the sub-diagonal of the inverse quantized coefficient matrix; the third processing unit 1108 is configured to generate the residual data according to the coefficient matrix after flipping and replacing.
综上,根据本申请实施例的视频解码装置,通过对反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,且该翻转替换处理包括左右翻转替换、上下翻转替换和沿反量化系数矩阵的副对角线进行翻转替换中的至少一种,然后根据翻转替换处理后的系数矩阵生成残差数据,使得能够通过对反量化系数矩阵的翻转替换处理来将系数 矩阵中的非零系数更多地集中在系数矩阵的左方、上方和左上方区域,进而可以在编解码时缩小SRCC区域的面积,从而可以有效提高视频编解码效率。To sum up, according to the video decoding apparatus according to the embodiment of the present application, a coefficient matrix after the inversion and replacement processing is obtained by performing the inversion and replacement of the coefficients on the inverse quantization coefficient matrix, and the inversion and replacement processing includes left-right inversion, up-down inversion, and edge At least one of inversion and replacement is performed on the sub-diagonal of the inverse quantization coefficient matrix, and then residual data is generated according to the coefficient matrix after the inversion and substitution process, so that the inverse quantization coefficient matrix can be inverted and replaced by the coefficient matrix. The non-zero coefficients are more concentrated in the left, upper and upper left regions of the coefficient matrix, so that the area of the SRCC region can be reduced during encoding and decoding, thereby effectively improving the video encoding and decoding efficiency.
在本申请的一些实施例中,基于前述方案,第二处理单元1106还配置为:根据以下方式中的至少一种确定是否需要对反量化系数矩阵进行系数的翻转替换处理:In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is further configured to: determine whether to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to at least one of the following manners:
视频图像帧序列的序列头中包含的索引标识的取值;The value of the index identifier contained in the sequence header of the video image frame sequence;
视频图像帧的图像头中包含的索引标识的取值;The value of the index identifier contained in the image header of the video image frame;
编码块所采用的编码模式;The coding mode used by the coding block;
编码块的尺寸大小;The size of the coding block;
编码块中包含的索引标识的取值或者所述量化系数块中系数统计结果的隐含指示。The value of the index identifier contained in the coding block or the implicit indication of the coefficient statistics result in the quantized coefficient block.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:若视频图像帧序列的序列头中包含的索引标识与所述视频图像帧的图像头中包含的索引标识均为指定值、编码块所采用的编码模式为帧内编码模式、且编码块的尺寸小于设定尺寸,则在量化系数块的统计结果为第一值时,确定需要对反量化系数矩阵进行系数的翻转替换处理。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: if the index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both The specified value, the encoding mode adopted by the encoding block is the intra-frame encoding mode, and the size of the encoding block is smaller than the set size, then when the statistical result of the quantization coefficient block is the first value, it is determined that the coefficients of the inverse quantization coefficient matrix need to be calculated. Flip replacement processing.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:若视频图像帧序列的序列头中包含的索引标识与视频图像帧的图像头中包含的索引标识均为指定值、所述视频图像帧的编码块所采用的编码模式为帧内编码模式、且编码块的尺寸小于设定尺寸,则在所述量化系数块的统计结果为第二值时,确定需要通过离散余弦变换DCT的方式对反量化系数矩阵进行反变换处理。In some embodiments of the present application, based on the aforementioned solution, the second processing unit 1106 is configured to: if the index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both specified values , the encoding mode adopted by the encoding block of the video image frame is the intra-frame encoding mode, and the size of the encoding block is smaller than the set size, then when the statistical result of the quantization coefficient block is the second value, it is determined that the discrete The inverse transform is performed on the inverse quantization coefficient matrix by means of cosine transform DCT.
在本申请的一些实施例中,基于前述方案,若至少需要根据所述量化系数块中系数统计结果的隐含指示来确定是否需要对反量化系数矩阵进行系数的翻转替换处理,则第二处理单元1106还配置为:统计所述量化系数块中指定区域内的非零系数、偶数系数、非零偶数系数或者奇数系数的数量,将所述数量的奇偶性作为所述量化系数块中的系数统计结果,所述指定区域包括所述量化系数块中的部分区域或者全部区域,或者所述量化系数块中的SRCC区域的部分或者全部。In some embodiments of the present application, based on the foregoing solution, if it is at least necessary to determine whether it is necessary to perform the inverse quantization coefficient matrix inversion and replacement of coefficients according to the implicit indication of the coefficient statistics in the quantization coefficient block, the second process The unit 1106 is further configured to: count the number of non-zero coefficients, even-numbered coefficients, non-zero even-numbered coefficients or odd-numbered coefficients in the specified area in the quantized coefficient block, and use the parity of the number as the coefficients in the quantized coefficient block According to the statistical result, the designated area includes part or all of the area in the quantized coefficient block, or part or all of the SRCC area in the quantized coefficient block.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:根据所述反量化系数矩阵的宽度与高度之间的关系,确定所述反量化系数矩阵的翻转替换方式;基于确定的所述翻转替换方式对所述反量化系数矩阵进行系数的翻转替换处理。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: determine a flipping replacement method of the inverse quantization coefficient matrix according to the relationship between the width and height of the inverse quantization coefficient matrix; based on The determined inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantization coefficient matrix.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:若所述反量化系数矩阵的宽度和高度相等,则确定对所述反量化系数矩阵采用沿所述反量化系数矩阵的副对角线进行翻转替换的方式;若所述反量化系数矩阵的宽度大于高度,则确定对所述反量化系数矩阵采用左右翻转替换的方式;若所述反量化系数矩阵的宽度小于高度,则确定对所述反量化系数矩阵采用上下翻转替换的方式。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: if the width and height of the inverse quantization coefficient matrix are equal, determine to use the inverse quantization coefficient matrix along the inverse quantization coefficient matrix. The method of flipping and replacing the sub-diagonal of the matrix; if the width of the inverse quantization coefficient matrix is greater than the height, it is determined that the inverse quantization coefficient matrix adopts the left and right flip replacement method; if the width of the inverse quantization coefficient matrix is less than height, it is determined to use the upside-down replacement method for the inverse quantization coefficient matrix.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:根据所述编码块采用的帧内预测模式,确定所述反量化系数矩阵的翻转替换方式;基于确定的所述翻转替换方式对所述反量化系数矩阵进行系数的翻转替换处理。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: determine, according to the intra-frame prediction mode adopted by the coding block, an inversion and replacement manner of the inverse quantization coefficient matrix; The inversion and replacement mode performs coefficient inversion and replacement processing on the inverse quantized coefficient matrix.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:若所述编码块的帧内预测模式的方向是朝向左下方,则确定对所述反量化系数矩阵采用上下翻转替换的方式;若所述编码块的帧内预测模式的方向是朝向右上方,则确定对所述反量化系数矩阵采用左右翻转替换的方式。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: if the direction of the intra prediction mode of the coding block is toward the lower left, determine to use upside-down inversion for the inverse quantization coefficient matrix Replacement mode; if the direction of the intra prediction mode of the coding block is toward the upper right, it is determined to adopt a left-right inversion replacement mode for the inverse quantization coefficient matrix.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:若所述编码块的帧内预测模式是除朝向左下方和朝向右上方之外的其它帧内预测模式,则根据所述反量 化系数矩阵的宽度与高度之间的关系,确定所述反量化系数矩阵的翻转替换方式。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: if the intra prediction mode of the coding block is an intra prediction mode other than the lower left and the upper right, then According to the relationship between the width and the height of the inverse quantization coefficient matrix, a flip replacement mode of the inverse quantization coefficient matrix is determined.
在本申请的一些实施例中,基于前述方案,第二处理单元1106配置为:对所述反量化系数矩阵依次进行系数的左右翻转替换处理和上下翻转替换处理;或者对所述反量化系数矩阵依次进行系数的上下翻转替换处理和左右翻转替换处理。In some embodiments of the present application, based on the foregoing solution, the second processing unit 1106 is configured to: sequentially perform the left-right inversion and up-down inversion replacement processing of the coefficients on the inverse quantization coefficient matrix; or perform the inverse quantization coefficient matrix The up-down inversion and left-right inversion substitution processing of the coefficients are sequentially performed.
在本申请的一些实施例中,基于前述方案,所述左右翻转替换包括沿所述反量化系数矩阵在宽度上的中心线进行左右翻转替换;所述上下翻转替换包括沿所述反量化系数矩阵在高度上的中心线进行上下翻转替换。图12示出了适于用来实现本申请实施例的电子设备的计算机系统的结构示意图。In some embodiments of the present application, based on the foregoing solution, the left-right flipping and replacement includes performing left-right flipping and replacing along the center line of the inverse quantization coefficient matrix in width; Make a flip-up replacement on the centerline in height. FIG. 12 shows a schematic structural diagram of a computer system suitable for implementing the electronic device according to the embodiment of the present application.
需要说明的是,图12示出的电子设备的计算机系统1200仅是一个示例,不应对本申请实施例的功能和使用范围带来任何限制。It should be noted that the computer system 1200 of the electronic device shown in FIG. 12 is only an example, and should not impose any limitations on the functions and scope of use of the embodiments of the present application.
如图12所示,计算机系统1200包括中央处理单元(Central Processing Unit,CPU)1201,其可以根据存储在只读存储器(Read-Only Memory,ROM)1202中的程序或者从存储部分1208加载到随机访问存储器(Random Access Memory,RAM)1203中的程序而执行各种适当的动作和处理,例如执行上述实施例中所述的方法。在RAM 1203中,还存储有系统操作所需的各种程序和数据。CPU 1201、ROM 1202以及RAM 1203通过总线1204彼此相连。输入/输出(Input/Output,I/O)接口1205也连接至总线1204。As shown in FIG. 12 , the computer system 1200 includes a central processing unit (Central Processing Unit, CPU) 1201, which can be loaded into a random device according to a program stored in a read-only memory (Read-Only Memory, ROM) 1202 or from a storage part 1208 A program in a memory (Random Access Memory, RAM) 1203 is accessed to perform various appropriate actions and processes, such as performing the methods described in the above embodiments. In the RAM 1203, various programs and data required for system operation are also stored. The CPU 1201, the ROM 1202, and the RAM 1203 are connected to each other through a bus 1204. An Input/Output (I/O) interface 1205 is also connected to the bus 1204 .
以下部件连接至I/O接口1205:包括键盘、鼠标等的输入部分1206;包括诸如阴极射线管(Cathode Ray Tube,CRT)、液晶显示器(Liquid Crystal Display,LCD)等以及扬声器等的输出部分1207;包括硬盘等的存储部分1208;以及包括诸如LAN(Local Area Network,局域网)卡、调制解调器等的网络接口卡的通信部分1209。通信部分1209经由诸如因特网的网络执行通信处理。驱动器1210也根据需要连接至I/O接口1205。可拆卸介质1211,诸如磁盘、光盘、磁光盘、半导体存储器等等,根据需要安装在驱动器1210上,以便于从其上读出的计算机程序根据需要被安装入存储部分1208。The following components are connected to the I/O interface 1205: an input section 1206 including a keyboard, a mouse, etc.; an output section 1207 including a cathode ray tube (CRT), a liquid crystal display (LCD), etc., and a speaker, etc. ; a storage part 1208 including a hard disk and the like; and a communication part 1209 including a network interface card such as a LAN (Local Area Network) card, a modem, and the like. The communication section 1209 performs communication processing via a network such as the Internet. Drivers 1210 are also connected to I/O interface 1205 as needed. A removable medium 1211, such as a magnetic disk, an optical disk, a magneto-optical disk, a semiconductor memory, etc., is mounted on the drive 1210 as needed so that a computer program read therefrom is installed into the storage section 1208 as needed.
特别地,根据本申请的实施例,上文参考流程图描述的过程可以被实现为计算机软件程序。例如,本申请的实施例包括一种计算机程序产品,其包括承载在计算机可读介质上的计算机程序,该计算机程序包含用于执行流程图所示的方法的计算机程序。在这样的实施例中,该计算机程序可以通过通信部分1209从网络上被下载和安装,和/或从可拆卸介质1211被安装。在该计算机程序被中央处理单元(CPU)1201执行时,执行本申请的系统中限定的各种功能。In particular, according to embodiments of the present application, the processes described above with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the present application include a computer program product comprising a computer program carried on a computer-readable medium, the computer program comprising a computer program for performing the method illustrated in the flowchart. In such an embodiment, the computer program may be downloaded and installed from the network via the communication portion 1209, and/or installed from the removable medium 1211. When the computer program is executed by the central processing unit (CPU) 1201, various functions defined in the system of the present application are executed.
需要说明的是,本申请实施例所示的计算机可读介质可以是计算机可读信号介质或者计算机可读存储介质或者是上述两者的任意组合。计算机可读存储介质例如可以是——但不限于——电、磁、光、电磁、红外线、或半导体的系统、装置或器件,或者任意以上的组合。计算机可读存储介质的更具体的例子可以包括但不限于:具有一个或多个导线的电连接、便携式计算机磁盘、硬盘、随机访问存储器(RAM)、只读存储器(ROM)、可擦式可编程只读存储器(Erasable Programmable Read Only Memory,EPROM)、闪存、光纤、便携式紧凑磁盘只读存储器(Compact Disc Read-Only Memory,CD-ROM)、光存储器件、磁存储器件、或者上述的任意合适的组合。在本申请中,计算机可读存储介质可以是任何包含或存储程序的有形介质,该程序可以被指令执行系统、装置或者器件使用或者与其结合使用。而在本申请中,计算机可读的信号介质可以包括在基带中或者作为载波一部分传播的数据信号,其中承载了计算机可读的计算机程序。这种传播的数据信号可以采用多种形式,包括但不限于电磁信号、光信号或上述的任意合适的组合。计算机可读的信号介质还 可以是计算机可读存储介质以外的任何计算机可读介质,该计算机可读介质可以发送、传播或者传输用于由指令执行系统、装置或者器件使用或者与其结合使用的程序。计算机可读介质上包含的计算机程序可以用任何适当的介质传输,包括但不限于:无线、有线等等,或者上述的任意合适的组合。It should be noted that the computer-readable medium shown in the embodiments of the present application may be a computer-readable signal medium or a computer-readable storage medium, or any combination of the above two. The computer-readable storage medium can be, for example, but not limited to, an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus or device, or a combination of any of the above. More specific examples of computer readable storage media may include, but are not limited to, electrical connections with one or more wires, portable computer disks, hard disks, random access memory (RAM), read only memory (ROM), erasable Erasable Programmable Read Only Memory (EPROM), flash memory, optical fiber, portable Compact Disc Read-Only Memory (CD-ROM), optical storage device, magnetic storage device, or any suitable of the above The combination. In this application, a computer-readable storage medium can be any tangible medium that contains or stores a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In this application, however, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying a computer-readable computer program therein. Such propagated data signals may take a variety of forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination of the foregoing. A computer-readable signal medium can also be any computer-readable medium other than a computer-readable storage medium that can transmit, propagate, or transport the program for use by or in connection with the instruction execution system, apparatus, or device . A computer program embodied on a computer-readable medium may be transmitted using any suitable medium, including but not limited to: wireless, wired, etc., or any suitable combination of the foregoing.
附图中的流程图和框图,图示了按照本申请各种实施例的系统、方法和计算机程序产品的可能实现的体系架构、功能和操作。其中,流程图或框图中的每个方框可以代表一个模块、程序段、或代码的一部分,上述模块、程序段、或代码的一部分包含一个或多个用于实现规定的逻辑功能的可执行指令。也应当注意,在有些作为替换的实现中,方框中所标注的功能也可以以不同于附图中所标注的顺序发生。例如,两个接连地表示的方框实际上可以基本并行地执行,它们有时也可以按相反的顺序执行,这依所涉及的功能而定。也要注意的是,框图或流程图中的每个方框、以及框图或流程图中的方框的组合,可以用执行规定的功能或操作的专用的基于硬件的系统来实现,或者可以用专用硬件与计算机指令的组合来实现。The flowchart and block diagrams in the Figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present application. Wherein, each block in the flowchart or block diagram may represent a module, program segment, or part of code, and the above-mentioned module, program segment, or part of code contains one or more executables for realizing the specified logical function instruction. It should also be noted that, in some alternative implementations, the functions noted in the blocks may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It is also noted that each block of the block diagrams or flowchart illustrations, and combinations of blocks in the block diagrams or flowchart illustrations, can be implemented in special purpose hardware-based systems that perform the specified functions or operations, or can be implemented using A combination of dedicated hardware and computer instructions is implemented.
描述于本申请实施例中所涉及到的单元可以通过软件的方式实现,也可以通过硬件的方式来实现,所描述的单元也可以设置在处理器中。其中,这些单元的名称在某种情况下并不构成对该单元本身的限定。The units involved in the embodiments of the present application may be implemented in software or hardware, and the described units may also be provided in a processor. Among them, the names of these units do not constitute a limitation on the unit itself under certain circumstances.
作为另一方面,本申请还提供了一种计算机可读介质,该计算机可读介质可以是上述实施例中描述的电子设备中所包含的;也可以是单独存在,而未装配入该电子设备中。上述计算机可读介质承载有一个或者多个程序,当上述一个或者多个程序被一个该电子设备执行时,使得该电子设备实现上述实施例中所述的方法。As another aspect, the present application also provides a computer-readable medium. The computer-readable medium may be included in the electronic device described in the above embodiments; it may also exist alone without being assembled into the electronic device. middle. The above-mentioned computer-readable medium carries one or more programs, and when the above-mentioned one or more programs are executed by an electronic device, enables the electronic device to implement the methods described in the above-mentioned embodiments.
应当注意,尽管在上文详细描述中提及了用于动作执行的设备的若干模块或者单元,但是这种划分并非强制性的。实际上,根据本申请的实施方式,上文描述的两个或更多模块或者单元的特征和功能可以在一个模块或者单元中具体化。反之,上文描述的一个模块或者单元的特征和功能可以进一步划分为由多个模块或者单元来具体化。It should be noted that although several modules or units of the apparatus for action performance are mentioned in the above detailed description, this division is not mandatory. Indeed, according to embodiments of the present application, the features and functions of two or more modules or units described above may be embodied in one module or unit. Conversely, the features and functions of one module or unit described above may be further divided into multiple modules or units to be embodied.
通过以上的实施方式的描述,本领域的技术人员易于理解,这里描述的示例实施方式可以通过软件实现,也可以通过软件结合必要的硬件的方式来实现。因此,根据本申请实施方式的技术方案可以以软件产品的形式体现出来,该软件产品可以存储在一个非易失性存储介质(可以是CD-ROM,U盘,移动硬盘等)中或网络上,包括若干指令以使得一台计算设备(可以是个人计算机、服务器、触控终端、或者网络设备等)执行根据本申请实施方式的方法。From the description of the above embodiments, those skilled in the art can easily understand that the exemplary embodiments described herein may be implemented by software, or may be implemented by software combined with necessary hardware. Therefore, the technical solutions according to the embodiments of the present application may be embodied in the form of software products, and the software products may be stored in a non-volatile storage medium (which may be CD-ROM, U disk, mobile hard disk, etc.) or on the network , which includes several instructions to cause a computing device (which may be a personal computer, a server, a touch terminal, or a network device, etc.) to execute the method according to the embodiments of the present application.
本领域技术人员在考虑说明书及实践这里公开的实施方式后,将容易想到本申请的其它实施方案。本申请旨在涵盖本申请的任何变型、用途或者适应性变化,这些变型、用途或者适应性变化遵循本申请的一般性原理并包括本申请未公开的本技术领域中的公知常识或惯用技术手段。Other embodiments of the present application will readily occur to those skilled in the art upon consideration of the specification and practice of the embodiments disclosed herein. This application is intended to cover any variations, uses or adaptations of this application that follow the general principles of this application and include common knowledge or conventional techniques in the technical field not disclosed in this application .
应当理解的是,本申请并不局限于上面已经描述并在附图中示出的精确结构,并且可以在不脱离其范围进行各种修改和改变。本申请的范围仅由所附的权利要求来限制。It is to be understood that the present application is not limited to the precise structures described above and illustrated in the accompanying drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the application is limited only by the appended claims.

Claims (17)

  1. 一种视频解码方法,应用于电子设备,所述视频解码方法包括:A video decoding method, applied to electronic equipment, the video decoding method comprising:
    对视频图像帧的编码块进行熵解码处理,获得所述编码块对应的残差数据的量化系数块;Entropy decoding processing is performed on the coding block of the video image frame to obtain a quantized coefficient block of residual data corresponding to the coding block;
    对所述量化系数块进行反量化处理,得到反量化系数矩阵;performing inverse quantization processing on the quantization coefficient block to obtain an inverse quantization coefficient matrix;
    对所述反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,所述翻转替换处理包括左右翻转替换、上下翻转替换和沿所述反量化系数矩阵的副对角线进行翻转替换中的至少一种;Perform inversion and replacement processing of coefficients on the inverse quantization coefficient matrix to obtain a coefficient matrix after the inversion and replacement processing, and the inversion and replacement processing includes left and right inversion replacement, up and down inversion replacement, and performing along the sub-diagonal of the inverse quantization coefficient matrix. at least one of flip replacement;
    根据所述翻转替换处理后的系数矩阵生成所述残差数据。The residual data is generated according to the coefficient matrix after the flip replacement process.
  2. 根据权利要求1所述的视频解码方法,还包括:根据以下方式中的至少一种确定是否需要对所述反量化系数矩阵进行系数的翻转替换处理:The video decoding method according to claim 1, further comprising: determining whether it is necessary to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to at least one of the following methods:
    视频图像帧序列的序列头中包含的索引标识的取值;The value of the index identifier contained in the sequence header of the video image frame sequence;
    所述视频图像帧的图像头中包含的索引标识的取值;the value of the index mark contained in the image header of the video image frame;
    所述编码块所采用的编码模式;the coding mode adopted by the coding block;
    所述编码块的尺寸大小;the size of the coding block;
    所述编码块中包含的索引标识的取值或者所述量化系数块中系数统计结果的隐含指示。The value of the index identifier contained in the coding block or an implicit indication of the coefficient statistics result in the quantized coefficient block.
  3. 根据权利要求2所述的视频解码方法,在根据所述视频图像帧序列的序列头中包含的索引标识的取值、所述视频图像帧的图像头中包含的索引标识的取值、所述编码块所采用的编码模式、所述编码块的尺寸大小,以及所述量化系数块中系数统计结果的隐含指示来确定是否需要进行翻转替换处理时,所述视频解码方法还包括:The video decoding method according to claim 2, wherein according to the value of the index identifier included in the sequence header of the video image frame sequence, the value of the index identifier included in the image header of the video image frame, the When the encoding mode adopted by the encoding block, the size of the encoding block, and the implicit indication of the coefficient statistics in the quantized coefficient block are used to determine whether the flipping and replacement processing is required, the video decoding method further includes:
    在所述视频图像帧序列的序列头中包含的索引标识与所述视频图像帧的图像头中包含的索引标识均为指定值、所述编码块所采用的编码模式为帧内编码模式、所述编码块的尺寸小于设定尺寸,且所述量化系数块的统计结果为第一值时,确定需要对所述反量化系数矩阵进行系数的翻转替换处理。The index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both specified values, the encoding mode adopted by the encoding block is the intra-frame encoding mode, and the When the size of the coding block is smaller than the set size, and the statistical result of the quantization coefficient block is the first value, it is determined that the inverse quantization coefficient matrix needs to be subjected to coefficient inversion and replacement processing.
  4. 根据权利要求3所述的视频解码方法,所述视频解码方法还包括:The video decoding method according to claim 3, further comprising:
    在所述视频图像帧序列的序列头中包含的索引标识与所述视频图像帧的图像头中包含的索引标识均为指定值、所述编码块所采用的编码模式为帧内编码模式、所述编码块的尺寸小于设定尺寸,且所述量化系数块的统计结果为第二值时,确定需要通过离散余弦变换DCT的方式对所述反量化系数矩阵进行反变换处理。The index identifier included in the sequence header of the video image frame sequence and the index identifier included in the image header of the video image frame are both specified values, the encoding mode adopted by the encoding block is the intra-frame encoding mode, and the When the size of the coding block is smaller than the set size, and the statistical result of the quantization coefficient block is the second value, it is determined that the inverse quantization coefficient matrix needs to be inversely transformed by means of discrete cosine transform DCT.
  5. 根据权利要求2所述的视频解码方法,在至少需要根据所述量化系数块中系数统计结果的隐含指示来确定是否需要对所述反量化系数矩阵进行系数的翻转替换处理时,所述视频解码方法还包括:The video decoding method according to claim 2, when it is at least necessary to determine whether it is necessary to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix according to an implicit indication of coefficient statistics in the quantization coefficient block, the video Decoding methods also include:
    统计所述量化系数块中指定区域内的非零系数、偶数系数、非零偶数系数或者奇数系数的数量,将所述数量的奇偶性作为所述量化系数块中的系数统计结果,所述指定区域包括所述量化系数块中的部分区域或者全部区域,或者所述量化系数块中的扫描区域系数编码SRCC区域的部分或全部。Counting the number of non-zero coefficients, even-numbered coefficients, non-zero even-numbered coefficients or odd-numbered coefficients in the specified area in the quantized coefficient block, and using the parity of the number as the coefficient statistics result in the quantized coefficient block, the specified The region includes part or all of the region in the quantized coefficient block, or part or all of the scanning region coefficient coding SRCC region in the quantized coefficient block.
  6. 根据权利要求1所述的视频解码方法,对所述反量化系数矩阵进行系数的翻转替换处理,包括:The video decoding method according to claim 1, performing coefficient inversion and replacement processing on the inverse quantization coefficient matrix, comprising:
    根据所述反量化系数矩阵的宽度与高度之间的关系,确定所述反量化系数矩阵的翻转 替换方式;According to the relationship between the width and the height of the inverse quantization coefficient matrix, determine the flip replacement mode of the inverse quantization coefficient matrix;
    基于确定的所述翻转替换方式对所述反量化系数矩阵进行系数的翻转替换处理。The inverse quantization coefficient matrix is subjected to coefficient inversion and substitution processing based on the determined inversion and substitution manner.
  7. 根据权利要求6所述的视频解码方法,根据所述反量化系数矩阵的宽度与高度之间的关系,确定所述反量化系数矩阵的翻转替换方式,包括:The video decoding method according to claim 6, wherein according to the relationship between the width and the height of the inverse quantization coefficient matrix, determining the inversion and replacement mode of the inverse quantization coefficient matrix, comprising:
    在所述反量化系数矩阵的宽度和高度相等时,确定对所述反量化系数矩阵采用沿所述反量化系数矩阵的副对角线进行翻转替换的方式;When the width and height of the inverse quantization coefficient matrix are equal, it is determined that the inverse quantization coefficient matrix is performed by flipping and replacing along the sub-diagonal of the inverse quantization coefficient matrix;
    在所述反量化系数矩阵的宽度大于高度时,确定对所述反量化系数矩阵采用左右翻转替换的方式;When the width of the inverse quantization coefficient matrix is greater than the height, it is determined to adopt a left-right flipping replacement method for the inverse quantization coefficient matrix;
    在所述反量化系数矩阵的宽度小于高度时,确定对所述反量化系数矩阵采用上下翻转替换的方式。When the width of the inverse quantization coefficient matrix is smaller than the height, it is determined to use the upside-down replacement method for the inverse quantization coefficient matrix.
  8. 根据权利要求1所述的视频解码方法,对所述反量化系数矩阵进行系数的翻转替换处理,包括:The video decoding method according to claim 1, performing coefficient inversion and replacement processing on the inverse quantization coefficient matrix, comprising:
    根据所述编码块采用的帧内预测模式,确定所述反量化系数矩阵的翻转替换方式;According to the intra-frame prediction mode adopted by the coding block, determine the inversion and replacement mode of the inverse quantization coefficient matrix;
    基于确定的所述翻转替换方式对所述反量化系数矩阵进行系数的翻转替换处理。The inverse quantization coefficient matrix is subjected to coefficient inversion and substitution processing based on the determined inversion and substitution manner.
  9. 根据权利要求8所述的视频解码方法,根据所述编码块采用的帧内预测模式,确定所述反量化系数矩阵的翻转替换方式,包括:The video decoding method according to claim 8, wherein determining a flipping and replacement mode of the inverse quantization coefficient matrix according to an intra-frame prediction mode adopted by the coding block, comprising:
    在所述编码块的帧内预测模式的方向是朝向左下方时,确定对所述反量化系数矩阵采用上下翻转替换的方式;When the direction of the intra prediction mode of the coding block is toward the lower left, it is determined that the inverse quantization coefficient matrix is replaced by upside-down replacement;
    在所述编码块的帧内预测模式的方向是朝向右上方时,确定对所述反量化系数矩阵采用左右翻转替换的方式。When the direction of the intra-frame prediction mode of the coding block is toward the upper right, it is determined to adopt a left-right inversion replacement manner for the inverse quantization coefficient matrix.
  10. 根据权利要求9所述的视频解码方法,所述视频解码方法还包括:The video decoding method according to claim 9, further comprising:
    在所述编码块的帧内预测模式是除朝向左下方和朝向右上方之外的其它帧内预测模式时,根据所述反量化系数矩阵的宽度与高度之间的关系,确定所述反量化系数矩阵的翻转替换方式。When the intra prediction mode of the coding block is another intra prediction mode except toward the lower left and toward the upper right, the inverse quantization is determined according to the relationship between the width and the height of the inverse quantization coefficient matrix Flip replacement for the coefficient matrix.
  11. 根据权利要求1所述的视频解码方法,对所述反量化系数矩阵进行系数的翻转替换处理,包括:The video decoding method according to claim 1, performing coefficient inversion and replacement processing on the inverse quantization coefficient matrix, comprising:
    对所述反量化系数矩阵依次进行系数的左右翻转替换处理和上下翻转替换处理。The inverse quantization coefficient matrix is sequentially subjected to a left-right inversion replacement process and an up-down inversion replacement process of the coefficients.
  12. 根据权利要求1所述的视频解码方法,对所述反量化系数矩阵进行系数的翻转替换处理,包括:对所述反量化系数矩阵依次进行系数的上下翻转替换处理和左右翻转替换处理。The video decoding method according to claim 1, performing coefficient inversion and replacement processing on the inverse quantization coefficient matrix, comprising: sequentially performing up-down inversion and left-right inversion replacement processing of coefficients on the inverse quantization coefficient matrix.
  13. 根据权利要求1至12中任一项所述的视频解码方法,所述左右翻转替换包括沿所述反量化系数矩阵在宽度上的中心线进行左右翻转替换;The video decoding method according to any one of claims 1 to 12, wherein the left-right flipping replacement comprises performing left-right flipping replacement along a center line of the inverse quantization coefficient matrix in width;
    所述上下翻转替换包括沿所述反量化系数矩阵在高度上的中心线进行上下翻转替换。The upside-down replacement includes upside-down replacement along a height-wise center line of the inverse quantization coefficient matrix.
  14. 一种视频解码装置,应用于电子设备,所述视频解码装置包括:A video decoding device, applied to electronic equipment, the video decoding device comprising:
    解码单元,配置为对视频图像帧的编码块进行熵解码处理,获得所述编码块对应的残差数据的量化系数块;a decoding unit, configured to perform entropy decoding processing on an encoded block of a video image frame to obtain a quantized coefficient block of residual data corresponding to the encoded block;
    第一处理单元,配置为对所述量化系数块进行反量化处理,得到反量化系数矩阵;a first processing unit, configured to perform inverse quantization processing on the quantized coefficient block to obtain an inverse quantized coefficient matrix;
    第二处理单元,配置为对所述反量化系数矩阵进行系数的翻转替换处理,得到翻转替换处理后的系数矩阵,所述翻转替换处理包括左右翻转替换、上下翻转替换和沿所述反量化系数矩阵的副对角线进行翻转替换中的至少一种;The second processing unit is configured to perform coefficient inversion and replacement processing on the inverse quantization coefficient matrix to obtain a coefficient matrix after inversion and replacement processing, where the inversion and replacement processing includes left and right inversion replacement, up and down inversion replacement, and along the inverse quantized coefficients at least one of flipping and replacing the sub-diagonal of the matrix;
    第三处理单元,配置为根据所述翻转替换处理后的系数矩阵生成所述残差数据。The third processing unit is configured to generate the residual data according to the coefficient matrix after the inversion and replacement processing.
  15. 一种计算机可读介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至13中任一项所述的视频解码方法。A computer-readable medium having a computer program stored thereon, the computer program implementing the video decoding method according to any one of claims 1 to 13 when executed by a processor.
  16. 一种电子设备,包括:An electronic device comprising:
    一个或多个处理器;one or more processors;
    存储装置,用于存储一个或多个程序,当所述一个或多个程序被所述一个或多个处理器执行时,使得所述一个或多个处理器实现如权利要求1至13中任一项所述的视频解码方法。A storage device for storing one or more programs that, when executed by the one or more processors, cause the one or more processors to implement any one of claims 1 to 13 A video decoding method as described.
  17. 一种计算机程序,该计算机程序包括计算机指令,该计算机指令存储在计算机可读存储介质中,所述处理器执行该计算机指令,使得计算机执行如权利要求1至13中任一项所述的视频解码方法。A computer program comprising computer instructions stored in a computer readable storage medium, the computer instructions being executed by the processor to cause a computer to perform the video as claimed in any one of claims 1 to 13 decoding method.
PCT/CN2021/123154 2020-10-16 2021-10-12 Video decoding method and apparatus, computer readable medium, program, and electronic device WO2022078304A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202011114676.5A CN112543338B (en) 2020-10-16 2020-10-16 Video decoding method and device, computer readable medium and electronic equipment
CN202011114676.5 2020-10-16

Publications (1)

Publication Number Publication Date
WO2022078304A1 true WO2022078304A1 (en) 2022-04-21

Family

ID=75013553

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/123154 WO2022078304A1 (en) 2020-10-16 2021-10-12 Video decoding method and apparatus, computer readable medium, program, and electronic device

Country Status (2)

Country Link
CN (1) CN112543338B (en)
WO (1) WO2022078304A1 (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112543338B (en) * 2020-10-16 2022-03-04 腾讯科技(深圳)有限公司 Video decoding method and device, computer readable medium and electronic equipment
WO2023272517A1 (en) * 2021-06-29 2023-01-05 Oppo广东移动通信有限公司 Encoding and decoding method, bitstream, encoder, decoder, and computer storage medium
WO2023193723A1 (en) * 2022-04-05 2023-10-12 Beijing Bytedance Network Technology Co., Ltd. Method, apparatus, and medium for video processing

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103636205A (en) * 2011-07-01 2014-03-12 三星电子株式会社 Mode-dependent transforms for residual coding with low latency
CN105791867A (en) * 2016-03-23 2016-07-20 北京大学 Optimized video data coding method based on boundary adaptive transform
US20170237981A1 (en) * 2016-02-15 2017-08-17 Qualcomm Incorporated Predicting filter coefficients from fixed filters for video coding
CN111225206A (en) * 2018-11-23 2020-06-02 华为技术有限公司 Video decoding method and video decoder
WO2020135346A1 (en) * 2018-12-23 2020-07-02 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods using an adaptive loop filter
WO2020180162A1 (en) * 2019-03-06 2020-09-10 한국전자통신연구원 Image encoding/decoding method and apparatus, and recording medium storing bitstream
CN112543338A (en) * 2020-10-16 2021-03-23 腾讯科技(深圳)有限公司 Video decoding method and device, computer readable medium and electronic equipment

Family Cites Families (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7778327B2 (en) * 2005-02-08 2010-08-17 Texas Instruments Incorporated H.264 quantization
US9503750B2 (en) * 2011-11-04 2016-11-22 Futurewei Technologies, Inc. Binarization of prediction residuals for lossless video coding
GB2496197A (en) * 2011-11-07 2013-05-08 Sony Corp Frequency Domain Video Data Reordering for Encoding
AU2014202921B2 (en) * 2014-05-29 2017-02-02 Canon Kabushiki Kaisha Method, apparatus and system for de-blocking a block of video samples
CN107787582A (en) * 2015-06-10 2018-03-09 三星电子株式会社 The method and apparatus for being encoded or being decoded to image using the grammer signaling for adaptive weighted prediction
KR20190013611A (en) * 2017-07-28 2019-02-11 한국전자통신연구원 A method of video processing, a method and appratus for encoding/decoding video using the processing
EP3484151A1 (en) * 2017-11-13 2019-05-15 Thomson Licensing Method and apparatus for generating quantization matrices in video encoding and decoding
CN109874012B (en) * 2017-12-04 2020-09-11 北京金山云网络技术有限公司 Video coding method, encoder, electronic device and medium
KR102524628B1 (en) * 2018-01-05 2023-04-21 에스케이텔레콤 주식회사 Method and Apparatus for Video Encoding or Decoding

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103636205A (en) * 2011-07-01 2014-03-12 三星电子株式会社 Mode-dependent transforms for residual coding with low latency
US20170237981A1 (en) * 2016-02-15 2017-08-17 Qualcomm Incorporated Predicting filter coefficients from fixed filters for video coding
CN105791867A (en) * 2016-03-23 2016-07-20 北京大学 Optimized video data coding method based on boundary adaptive transform
CN111225206A (en) * 2018-11-23 2020-06-02 华为技术有限公司 Video decoding method and video decoder
WO2020135346A1 (en) * 2018-12-23 2020-07-02 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods using an adaptive loop filter
WO2020180162A1 (en) * 2019-03-06 2020-09-10 한국전자통신연구원 Image encoding/decoding method and apparatus, and recording medium storing bitstream
CN112543338A (en) * 2020-10-16 2021-03-23 腾讯科技(深圳)有限公司 Video decoding method and device, computer readable medium and electronic equipment

Also Published As

Publication number Publication date
CN112543338A (en) 2021-03-23
CN112543338B (en) 2022-03-04

Similar Documents

Publication Publication Date Title
WO2022078163A1 (en) Video decoding method, video encoding method, and related device
WO2022078304A1 (en) Video decoding method and apparatus, computer readable medium, program, and electronic device
WO2022062880A1 (en) Video decoding method and apparatus, computer readable medium, and electronic device
WO2022063033A1 (en) Video decoding method and apparatus, video coding method and apparatus, computer-readable medium, and electronic device
WO2022174660A1 (en) Video coding and decoding method, video coding and decoding apparatus, computer-readable medium, and electronic device
WO2022105678A1 (en) Video decoding method, video encoding method, and related apparatus
CN113207002B (en) Video encoding and decoding method and device, computer readable medium and electronic equipment
WO2022037478A1 (en) Video decoding method, video encoding method, apparatus, medium, and electronic device
WO2022037477A1 (en) Video decoding method and apparatus, computer readable medium, and electronic device
WO2022174637A1 (en) Video encoding and decoding method, video encoding and decoding apparatus, computer-readable medium and electronic device
WO2022174701A1 (en) Video coding method and apparatus, video decoding method and apparatus, and computer-readable medium and electronic device
WO2022116854A1 (en) Video decoding method and apparatus, readable medium, electronic device, and program product
WO2022174638A1 (en) Video coding method and apparatus, video decoding method and apparatus, computer readable medium, and electronic device
US20230077935A1 (en) Video Encoding Method and Apparatus, Video Decoding Method and Apparatus, Computer-Readable Medium, and Electronic Device
WO2023130899A1 (en) Loop filtering method, video encoding/decoding method and apparatus, medium, and electronic device
CN115209146A (en) Video encoding and decoding method and device, computer readable medium and electronic equipment
CN115209141A (en) Video encoding and decoding method and device, computer readable medium and electronic equipment

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: 21879348

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 31-08-2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21879348

Country of ref document: EP

Kind code of ref document: A1