WO2021196234A1 - 一种视频编码、解码方法、设备及存储介质 - Google Patents

一种视频编码、解码方法、设备及存储介质 Download PDF

Info

Publication number
WO2021196234A1
WO2021196234A1 PCT/CN2020/083371 CN2020083371W WO2021196234A1 WO 2021196234 A1 WO2021196234 A1 WO 2021196234A1 CN 2020083371 W CN2020083371 W CN 2020083371W WO 2021196234 A1 WO2021196234 A1 WO 2021196234A1
Authority
WO
WIPO (PCT)
Prior art keywords
alf
chrominance
code stream
filter
chrominance components
Prior art date
Application number
PCT/CN2020/083371
Other languages
English (en)
French (fr)
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 北京大学
Priority to EP20929001.4A priority Critical patent/EP4131970A4/en
Priority to JP2022555902A priority patent/JP7517780B2/ja
Priority to KR1020227032401A priority patent/KR20220137999A/ko
Priority to CN202080005555.9A priority patent/CN114097236A/zh
Priority to PCT/CN2020/083371 priority patent/WO2021196234A1/zh
Publication of WO2021196234A1 publication Critical patent/WO2021196234A1/zh
Priority to US17/937,139 priority patent/US12069252B2/en
Priority to JP2024106624A priority patent/JP2024138328A/ja

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/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/117Filters, e.g. for pre-processing or post-processing
    • 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/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • 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/136Incoming video signal characteristics or properties
    • H04N19/14Coding unit complexity, e.g. amount of activity or edge presence estimation
    • 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/174Methods 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 slice, e.g. a line of blocks or a group of blocks
    • 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
    • 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/186Methods 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 a colour or a chrominance component
    • 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/1883Methods 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 relating to sub-band structure, e.g. hierarchical level, directional tree, e.g. low-high [LH], high-low [HL], high-high [HH]
    • 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/189Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding
    • H04N19/196Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the adaptation method, adaptation tool or adaptation type used for the adaptive coding being specially adapted for the computation of encoding parameters, e.g. by averaging previously computed encoding parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop

Definitions

  • the present invention relates to the technical field of video coding, and in particular to a video coding and decoding method, equipment and storage medium.
  • Adaptive Loop Filter is one of the important technologies for video coding and decoding. This technology filters the reconstructed image at the decoding end by encoding filter coefficients, reduces compression distortion in the decoded image, and provides high-quality prediction reference images for subsequent codec images, thereby further improving compression efficiency.
  • each chromaticity component of the image corresponds to a filter control switch, and each chromaticity component of the image is controlled by a filter control switch.
  • This combines the filter control switches of each chromaticity component into one
  • the method affects the consistency and readability of each chrominance component during the encoding process, thereby affecting the efficiency and flexibility of video encoding. Therefore, how to better improve the efficiency and flexibility of video coding has become the focus of research.
  • the embodiments of the present invention provide a video encoding and decoding method, device and storage medium, which simplify the process of writing syntax elements of an encoder and reading syntax elements of a decoder, and improve the flexibility and efficiency of video encoding/decoding.
  • an embodiment of the present invention provides a video encoding method, including:
  • the color components including two chrominance components
  • an embodiment of the present invention provides a video decoding method, including:
  • an embodiment of the present invention provides another video encoding method, including:
  • the color components including two chrominance components
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate whether the chrominance component is ALF is used for filtering, and when the first identifier indicates that the chrominance component is filtered using ALF, the second identifier is used to indicate the ALF filter used by the chrominance component.
  • an embodiment of the present invention provides another video decoding method, including:
  • each chrominance component of the current image block determines whether to use ALF to filter the reconstruction block of the chrominance component according to the first identifier corresponding to the chrominance component, and when it is determined to be adopted, according to the second The identification determines that the corresponding ALF filter filters the reconstructed block of the chrominance component.
  • an embodiment of the present invention provides a video encoding device, including: a memory and a processor;
  • the memory is used to store programs
  • the processor is used to call the program, and when the program is executed, it is used to perform the following operations:
  • the color components including two chrominance components
  • an embodiment of the present invention provides a video decoding device, including: a memory and a processor;
  • the memory is used to store programs
  • the processor is used to call the program, and when the program is executed, it is used to perform the following operations:
  • an embodiment of the present invention provides another video encoding device, including: a memory and a processor;
  • the memory is used to store programs
  • the processor is used to call the program, and when the program is executed, it is used to perform the following operations:
  • the color components including two chrominance components
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate whether the chrominance component is ALF is used for filtering, and when the first identifier indicates that the chrominance component is filtered using ALF, the second identifier is used to indicate the ALF filter used by the chrominance component.
  • an embodiment of the present invention provides another video decoding device, including: a memory and a processor;
  • the memory is used to store programs
  • the processor is used to call the program, and when the program is executed, it is used to perform the following operations:
  • each chrominance component of the current image block determines whether to use ALF to filter the reconstruction block of the chrominance component according to the first identifier corresponding to the chrominance component, and when it is determined to be adopted, according to the second The identification determines that the corresponding ALF filter filters the reconstructed block of the chrominance component.
  • an embodiment of the present invention provides a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the above-mentioned first and third aspects are implemented.
  • the embodiment of the present invention obtains the color components of the image sequence, and filters the reconstruction blocks of at least part of the color components of the image sequence using adaptive loop filtering technology to generate a code stream of the image sequence, wherein the code stream For the two chrominance components of the color components, different identifiers are used in the image-level syntax elements to indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF respectively.
  • the process of writing syntax elements of the encoder and reading the syntax elements of the decoder can be simplified, and the flexibility and efficiency of video encoding/decoding can be improved.
  • Figure 1 is a schematic diagram of a Wiener filter principle
  • Figure 2 is a schematic diagram of an adaptive loop filter shape
  • Figure 3 is a schematic flow diagram of a cross-component adaptive loop filtering
  • Fig. 4 is a schematic diagram of a filter shape of cross-component adaptive loop filtering
  • FIG. 5 is a schematic flowchart of a video encoding method provided by an embodiment of the present invention.
  • FIG. 6 is a schematic flowchart of a video decoding method provided by an embodiment of the present invention.
  • FIG. 7 is a schematic flowchart of another video encoding method provided by an embodiment of the present invention.
  • FIG. 8 is a schematic flowchart of another video decoding method provided by an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of a video encoding device provided by an embodiment of the present invention.
  • Figure 10 is a schematic structural diagram of a video decoding device provided by an embodiment of the present invention.
  • Figure 11 is a schematic structural diagram of another video encoding device provided by an embodiment of the present invention.
  • Fig. 12 is a schematic structural diagram of another video decoding device provided by an embodiment of the present invention.
  • the video encoding method proposed in the embodiment of the present invention can be applied to a video encoding device, and the video encoding device can be set on a smart terminal (such as a mobile phone, a tablet computer, etc.).
  • a smart terminal such as a mobile phone, a tablet computer, etc.
  • the embodiments of the present invention can be applied to aircraft (such as drones).
  • the embodiments of the present invention can also be applied to other movable platforms (such as unmanned ships, unmanned vehicles). , Robots, etc.), the embodiment of the present invention does not make specific limitations.
  • the present invention is used in the adaptive loop filter technology ALF (Adaptive loop filter) of the in-loop filter (In-loop filter) in the Versatile Video Coding (VVC) of the video coding standard, and is mainly aimed at the adaptive loop filter.
  • ALF Adaptive loop filter
  • VVC Versatile Video Coding
  • Channel filtering technology and cross-component adaptive loop filtering technology are optimized to remove redundancy and make the design more reasonable.
  • the main application form is compliance with the international video coding standard H.264, high-efficiency video Encoding (High Efficiency Video Coding, HEVC) and China AVS2 standard and other codecs can be used to improve the quality of compressed video, which is of great significance for the compression processing of broadcast television, video conference, network video and other videos.
  • Loop filtering is a key part of the video coding and decoding framework. It is mainly used to reduce compression distortions such as blocking effects and ringing effects generated in the coding process.
  • there are three loop filtering techniques namely deblocking filtering, adaptive sample compensation filtering, and adaptive loop filtering.
  • Deblocking filtering and adaptive sample compensation filtering follow the method in HEVC.
  • the deblocking filter is used for the boundary between the prediction unit and the transform unit, and the low-pass filter obtained by training is used to perform nonlinear weighting of the boundary pixels, thereby reducing the blocking effect.
  • the adaptive sample compensation filter classifies the pixels in the image block, and then adds the same compensation value to each type of pixel to make the reconstructed image closer to the original image, thereby suppressing the ringing effect.
  • the adaptive loop filter is a Wiener filter, which is mainly used to minimize the mean square error between the original image and the reconstructed image.
  • the adaptive loop filter is an optimal filter in the mean square sense calculated based on the original signal and the encoded distortion signal. It is essentially a Wiener filter, as shown in Figure 1, which is a Wiener filter. Schematic diagram of filtering principle, as shown in Figure 1, X is the original signal, e is the noise or distortion, and Y is the distorted signal. Is the filtered signal.
  • the weighted average of surrounding pixels is used to obtain the result after filtering of the current point.
  • Figure 2 is a kind of Schematic diagram of adaptive loop filter shape. As shown in Figure 2, it includes a 5x5 diamond and a 7x7 diamond.
  • the filtering process is obtained by using the weighted average of all the position points in Figure 2, and the filter coefficient is the weight of each point.
  • the final filtering process is the cumulative sum of the product of each point in Figure 2 and its corresponding filter coefficient. Among them, the points used in this process are all points in the reconstructed frame obtained before ALF.
  • CCALF adjusts the chrominance component by using the value of the luminance component to improve the quality of the chrominance component.
  • CCALF is a linear ALF.
  • CCALF only processes the chrominance component and does not modify the value of the luminance component.
  • CCALF uses the luminance component before ALF to filter the chrominance component after ALF, and CCALF uses the luminance component and the chrominance component to jointly calculate the filter coefficient, and uses the calculated filter coefficient to filter the chrominance component.
  • the overall flow chart of CCALF filtering is shown in Figure 3.
  • Figure 3 is a schematic diagram of a cross-component adaptive loop filtering process. First, ALF is used to filter the luminance Luma, chrominance Cb and Cr of the image, and CCALF is further used to filter the image.
  • Filter the chroma Cb and Cr of the image and then determine the filtered chroma according to the result of filtering the chroma Cb and Cr of the image using CCALF and the result of filtering the chroma Cb and Cr of the image using ALF Cb and Cr.
  • the shape of the CCALF filter is shown in Fig. 4, which is a schematic diagram of the filter shape of cross-component adaptive loop filtering.
  • the shape of the CCALF filter can be a 3x4 diamond.
  • a total of 8 coefficients, assuming that the location of 2 is the current Cb or Cr component pixel, the weighted average of 7 points around 2 can be used to obtain the filtered result of the pixel at 2 location.
  • the same identifier is used for both chrominance components in the code stream of the generated image sequence to indicate whether the corresponding chrominance component is filtered by ALF.
  • the same identifier is used in the image-level syntax element for the two chrominance components in the code stream to indicate whether the two chrominance components are filtered by ALF.
  • the same identifier ph_alf_chroma_idc is used in the image-level syntax elements for the two chrominance components in the bitstream to indicate whether the two chrominance components are filtered by ALF, where ph_alf_chroma_idc is 0, indicating that Cb and The two chrominance components of Cr are not filtered by ALF; ph_alf_chroma_idc is 1 indicating that the Cb chrominance component is filtered by ALF, and the Cr chrominance component is not filtered by ALF; ph_alf_chroma_idc is 2 indicating that the Cb chrominance component is not filtered by ALF , And Cr chroma components are filtered by ALF; ph_alf_chroma_i
  • the same identifier is used in the image-level syntax element for the two chrominance components in the code stream to indicate whether the two chrominance components are filtered by ALF.
  • slice_alf_chroma_idc is used in the image-level syntax elements for the two chrominance components in the bitstream to indicate whether the two chrominance components are filtered by ALF, where slice_alf_chroma_idc is 0, indicating that Cb and The two chrominance components of Cr are not filtered by ALF; slice_alf_chroma_idc is 1 indicating that the Cb chrominance component is filtered by ALF, and the chrominance component of Cr is not filtered by ALF; slice_alf_chroma_idc is 2 indicating that the Cb chrominance component is not filtered by ALF , And Cr chroma components are filtered by ALF; slice_alf_chroma_idc is 3,
  • alf_ctb_cc_cb_idc is used to indicate whether the chrominance component Cb is filtered by CCALF
  • alf_ctb_cc_cr_idc is used to indicate the chrominance component Cr. Whether to use CCALF for filtering.
  • alf_ctb_cc_cb_idc if alf_ctb_cc_cb_idc is 0, it indicates that the Cb chrominance component is not filtered by CCALF, and if alf_ctb_cc_cb_idc is greater than 0, it indicates that the Cb chrominance component is filtered by CCALF.
  • the embodiment of the present invention deletes the unified logo used by each chroma component in traditional ALF, re-designs the syntax element, and sets a different logo for each chroma component in ALF to indicate whether the corresponding chroma component is
  • ALF for filtering is beneficial to simplify the process of writing syntax elements of the encoder and reading the syntax elements of the decoder, and improve the flexibility and efficiency of video encoding/decoding.
  • the embodiment of the present invention deletes ph_alf_chroma_idc, and uses ph_alf_cb_enabled_flag to indicate whether the Cb chrominance component is filtered by ALF, and ph_alf_cr_enabled_flag is used to indicate that the Cr chrominance component is filtered by ALF.
  • the embodiment of the present invention deletes slice_alf_chroma_idc, and uses slice_alf_cb_enabled_flag to indicate whether the Cb chrominance component is filtered by ALF, and slice_alf_cr_enabled_flag is used to indicate whether the Cr chrominance component is filtered by ALF. .
  • the embodiment of the present invention uses two flags alf_ctb_cc_cb_flag and alf_ctb_cc_cb_idx for the Cb chrominance component to indicate whether the Cb chrominance component is filtered by CCALF, where the alf_ctb_cc_cb_flag flag indicates Cb Whether the chrominance component adopts CCALF, if so, the alf_ctb_cc_cb_idx flag is further used to indicate the index of the CCALF filter used by the Cb chrominance component; similarly, the embodiment of the present invention uses two flags alf_ctb_cc_cr_flag and alf_ctb_cc_cr_idx for the Cr chrominance component.
  • the alf_ctb_cc_cr_flag flag indicates whether the Cr chrominance component uses CCALF, and if so, the alf_ctb_cc_cr_idx flag is further used to indicate the index of the CCALF filter used by the Cr chrominance component.
  • FIG. 5 is a schematic flowchart of a video encoding method according to an embodiment of the present invention.
  • the method can be applied to a video encoding device, wherein the video encoding device can be set on an intelligent terminal.
  • the method of the embodiment of the present invention includes the following steps.
  • S501 Acquire color components of an image sequence, where the color components include two chrominance components.
  • the video encoding device may obtain the color components of the image sequence, and the color components include two chrominance components.
  • the two chrominance components include two chrominance components, Cb and Cr.
  • S502 Filter the reconstructed blocks of the color components of at least part of the images of the image sequence using an adaptive loop filter technology.
  • the video encoding device may use adaptive loop filtering technology to filter the reconstruction blocks of the color components of at least part of the image sequence.
  • the video encoding device may obtain the reconstruction blocks of the color components of at least part of the image sequence. And determine the filter coefficient of each pixel in the reconstruction block, and use the filter coefficient of each pixel as a weight, and calculate the product of the pixel value of each pixel and its corresponding filter coefficient. Accumulate to get the filtered result.
  • the filter coefficients are determined by classifying pixels and determined according to the types of pixels, where pixels of the same category correspond to the same set of filter coefficients, taking the 5x5 diamond in Figure 2 as an example, There are a total of 7 filter coefficients C0 to C6 in the reconstruction block, and the pixels corresponding to the same filter coefficient belong to the same type.
  • the existing example classification method as an example, only the luminance Y component is classified in the prior art.
  • the chrominance U and V components are not classified.
  • the Y component can be divided into 25 categories, and the U and V components are only one category, which means that for a frame of image, the Y component can have up to 25
  • each 4x4 block is classified according to the Laplacian direction:
  • C represents the category of the pixel block
  • I the result of sub-classification after classification
  • D represents the direction
  • the calculation method of the direction D is as follows:
  • (i,j) represents the coordinate position of the current 4x4 block in the entire image
  • R(k,l) represents the pixel value at the (k,l) position in the 4x4 block
  • V k,l represents the 4x4 block located in ( i,j) the Laplacian gradient of the pixel in the vertical direction
  • H k,l represents the Laplacian gradient of the pixel in the (i,j) coordinate in the 4x4 block in the horizontal direction
  • D1 k,l Represents the Laplacian gradient of pixels located at (i,j) coordinates in the 4x4 block at 135 degrees
  • D2 k,l represents the Laplacian gradient of pixels located at (i,j) coordinates in the 4x4 block at 45 degrees
  • G v represents the Laplacian gradient of the 4x4 block in the vertical direction
  • g h represents the Laplacian gradient of the 4x4 block in the horizontal direction
  • g d1 represents the Laplacian gradient of the 4x
  • D is set to 0; if and Then D is set to 1; if and Then D is set to 2; if and D is set to 3; if and Then D is set to 4; t 1 and t 2 represent preset thresholds.
  • the calculation method is as follows:
  • S503 Generate a code stream of the image sequence, where different identifiers are used in the image-level syntax elements for the two chrominance components in the code stream to respectively indicate whether the corresponding chrominance components adopt an adaptive loop
  • the filter ALF performs filtering.
  • the video encoding device may generate the code stream of the image sequence, wherein the two chrominance components in the code stream use different identifiers in the image-level syntax elements to indicate the corresponding colors. Whether the degree component is filtered by the adaptive loop filter ALF.
  • ph_alf_cb_enabled_flag may be used as a flag in the image-level syntax element of the chrominance component Cb in the code stream, which is used to indicate whether the chrominance component Cb is filtered by the adaptive loop filter ALF.
  • ph_alf_cr_enabled_flag may be used as a flag in the image-level syntax element of the chrominance component Cr in the code stream, which is used to indicate whether the chrominance component Cr is filtered by the adaptive loop filter ALF.
  • the two chrominance components in the code stream adopt different identifiers in the syntax elements of the slice-level slice to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF. .
  • slice_alf_cb_enabled_flag may be used as a flag for the chrominance component Cb in the slice-level syntax element in the code stream to indicate whether the chrominance component Cb is filtered by the adaptive loop filter ALF.
  • slice_alf_cr_enabled_flag may be used as a flag for the chrominance component Cr in the slice-level syntax element in the code stream to indicate whether the chrominance component Cr is filtered by the adaptive loop filter ALF.
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate the chrominance component Whether to use ALF for filtering, and when the first indicator indicates that the chrominance component is used for filtering, the second indicator is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the image block level is a coding tree unit (coding tree unit, CTU) level, where one coding tree unit CTU includes one luminance Luma coding tree block (CTB), two Chroma coding tree block CTB and syntax elements.
  • alf_ctb_cc_cb_flag may be used as the first flag in the syntax element of the image block level for the chrominance component Cb in the code stream, which is used to indicate whether the chrominance component Cb is filtered by the adaptive loop filter CCALF. If the adaptive loop filter CCALF is used for filtering, alf_ctb_cc_cb__idx is further used as the second identifier to identify the index of the CCALF filter used by the chrominance component Cb.
  • alf_ctb_cc_cr_flag may be used as the first flag in the syntax element of the image block level for the chrominance component Cr in the bitstream, which is used to indicate whether the chrominance component Cr is filtered by the adaptive loop filter CCALF. If the adaptive loop filter CCALF is used for filtering, alf_ctb_cc_cr__idx is further used as the second identifier to identify the index of the CCALF filter used by the chrominance component Cr. In some embodiments, the second identifier is calculated based on the first identifier. In some embodiments, when it is determined that the chrominance component is filtered by using CCALF in the syntax element at the image block level, it can be filtered according to The difference between the first identification and 1 determines the second identification.
  • the video encoding device may obtain the color components of the image sequence including two chrominance components, and filter the reconstruction blocks of the color components of at least part of the image sequence of the image sequence using adaptive loop filtering technology, and Generate the code stream of the image sequence, wherein the two chrominance components in the code stream use different identifiers in the image-level syntax elements to respectively indicate whether the corresponding chrominance components use an adaptive loop filter ALF performs filtering.
  • different identifiers can be used when performing ALF filtering to simplify the process of writing syntax elements of the encoder, and improve the efficiency and flexibility of video encoding.
  • FIG. 6 is a schematic flowchart of a video decoding method according to an embodiment of the present invention.
  • the method can be applied to a video decoding device, where the video decoding device can be set on a smart terminal (such as a mobile phone, a tablet computer, etc.).
  • a smart terminal such as a mobile phone, a tablet computer, etc.
  • the method of the embodiment of the present invention includes the following steps.
  • S601 Obtain a code stream of an image sequence, where the images in the image sequence include two chrominance components, and the two chrominance components in the code stream use different identifiers in image-level syntax elements. Indicates whether the corresponding chrominance component is filtered using ALF.
  • the video decoding device can obtain a code stream of an image sequence, wherein the image in the image sequence includes two chrominance components, and the two chrominance components in the code stream are Different identifiers are used in the syntax elements to respectively indicate whether the corresponding chrominance components are filtered using ALF.
  • the two chrominance components in the stripe-level syntax elements in the codestream use different identifiers to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate the chrominance component Whether to use ALF for filtering, and when the first indicator indicates that the chrominance component is used for filtering, the second indicator is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the image block level is a coding tree unit CTU level.
  • S602 Analyze the identifiers corresponding to the two chrominance components of the current image from the code stream.
  • the video decoding device can parse the identifiers corresponding to the two chrominance components of the current image from the code stream.
  • the video decoding device may analyze the first identifiers corresponding to the two chrominance components of the current image from the code stream in a contextual manner; Analyze the second identifiers corresponding to the two chrominance components of the current image in the stream.
  • S603 Determine, according to the identifiers respectively corresponding to the two chrominance components, whether to use ALF to filter the reconstruction blocks of the two chrominance components of the current image.
  • the video decoding device may determine whether to use ALF to filter the reconstruction blocks of the two chrominance components of the current image according to the identifiers respectively corresponding to the two chrominance components.
  • the video decoding device can obtain a code stream of an image sequence, wherein the image in the image sequence includes two chrominance components, and the two chrominance components in the code stream are Different identifiers are used in the syntax elements to indicate whether the corresponding chrominance components are filtered by ALF, and the corresponding identifiers of the two chrominance components of the current image are parsed from the code stream, so that according to the two chrominance components The respective corresponding identifiers determine whether to use ALF to filter the reconstruction blocks of the two chrominance components of the current image.
  • different identifiers can be used when performing ALF filtering to simplify the process of reading syntax elements of the decoder, and improve the efficiency and flexibility of video decoding.
  • FIG. 7 is a schematic flowchart of another video encoding method according to an embodiment of the present invention.
  • the method can be applied to a video encoding device, where the video decoding device can be set on a smart terminal (such as a mobile phone, a tablet computer, etc.).
  • a smart terminal such as a mobile phone, a tablet computer, etc.
  • the method of the embodiment of the present invention includes the following steps.
  • S701 Acquire color components of an image sequence, where the color components include two chrominance components.
  • the video encoding device may obtain the color components of the image sequence, and the color components include two chrominance components.
  • S702 Use ALF to filter the reconstruction blocks of the color components of at least part of the images in the image sequence.
  • the video encoding device may use ALF to filter the reconstruction blocks of the color components of at least part of the images in the image sequence.
  • the implementation process of the video encoding device using ALF to filter the reconstruction blocks of the color components of at least part of the images in the image sequence is as described above, and will not be repeated here.
  • S703 Generate a code stream of the image sequence, where, for each chroma component of the two chroma components, a first identifier is used in the syntax element at the image block level in the code stream to indicate the chroma Whether the component is filtered by ALF, and when the first flag indicates that the chrominance component is filtered by ALF, the second flag is used to indicate the ALF filter used by the chrominance component.
  • the video encoding device may generate the code stream of the image sequence, wherein, for each chroma component of the two chroma components, the code stream adopts the syntax element at the image block level
  • the first indicator indicates whether the chrominance component is filtered by ALF, and when the first indicator indicates that the chrominance component is filtered by ALF, the second indicator is used to indicate the ALF filter used by the chrominance component .
  • the ALF filter includes a CCALF filter.
  • the image block level is a coding tree unit CTU level.
  • the first identifier is encoded in a contextual manner; and/or, the second identifier is encoded in a truncated unary code manner.
  • different identifiers are used in the image-level syntax elements for the two chrominance components in the bitstream to indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF respectively.
  • the two chrominance components in the stripe-level syntax elements in the codestream use different identifiers to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • the video encoding device can obtain the color components of the image sequence including two chrominance components, and use ALF to filter the reconstruction blocks of the color components of at least part of the images in the image sequence to generate the image sequence
  • a first identifier is used in the image block-level syntax element in the code stream to indicate whether the chrominance component is filtered by ALF
  • the second indicator is used to indicate the ALF filter used by the chrominance component.
  • FIG. 8 is a schematic flowchart of another video decoding method provided by an embodiment of the present invention.
  • the method can be applied to a video decoding device, where the video decoding device can be set on a smart terminal (such as a mobile phone, a tablet computer, etc.).
  • the method of the embodiment of the present invention includes the following steps.
  • S801 Obtain a code stream of an image sequence, where the image in the image sequence includes two chrominance components. For each chrominance component of the two chrominance components, the code stream is at the image block level.
  • the syntax element uses the first identifier to indicate whether the chrominance component is filtered by ALF, and uses the second identifier to indicate the ALF filter used by the chrominance component.
  • the video decoding device may obtain the code stream of the image sequence, wherein the image in the image sequence includes two chrominance components, and for each chrominance component of the two chrominance components, the In the code stream, the first identifier is used in the syntax element at the image block level to indicate whether the chrominance component is filtered by ALF, and the second identifier is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filtering CCALF filter
  • the image block level is a coding tree unit CTU level.
  • different identifiers are used in the image-level syntax elements for the two chrominance components in the bitstream to indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF respectively.
  • the two chrominance components in the stripe-level syntax elements in the codestream use different identifiers to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • S802 Analyze the first identifier and the second identifier corresponding to the two chrominance components of the current image from the code stream.
  • the video decoding device may parse the first identifier and the second identifier respectively corresponding to the two chrominance components of the current image from the code stream.
  • the video decoding device can analyze the first identifiers corresponding to the two chrominance components of the current image from the code stream in a contextual manner; Analyze the second identifiers respectively corresponding to the two chrominance components of the current image.
  • S803 For each chrominance component of the current image block, determine whether to use ALF to filter the reconstruction block of the chrominance component according to the first identifier corresponding to the chrominance component, and when it is determined to be adopted, according to the The second identifier determines that the corresponding ALF filter filters the reconstruction block of the chrominance component.
  • the video decoding device may determine whether to use ALF to filter the reconstructed block of the chrominance component according to the first identifier corresponding to the chrominance component for each chrominance component of the current image block, When it is determined to be adopted, a corresponding ALF filter is determined according to the second identifier to filter the reconstruction block of the chrominance component.
  • the video decoding device may obtain the code stream of the image sequence, wherein the image in the image sequence includes two chrominance components, and for each chrominance component of the two chrominance components, the In the code stream, the first identifier is used in the syntax elements at the image block level to indicate whether the chrominance component is filtered by ALF, and the second identifier is used to indicate the ALF filter used by the chrominance component, and the code
  • the first identifier and the second identifier corresponding to the two chrominance components of the current image are analyzed in the stream, and for each chrominance component of the current image block, according to the first chrominance component corresponding to the first identifier and the second identifier.
  • the identifier determines whether to use ALF to filter the reconstruction block of the chrominance component, and when it is determined to be adopted, a corresponding ALF filter is determined according to the second identifier to filter the reconstruction block of the chrominance component.
  • the first identifier and the second identifier can be used when performing CCALF filtering to simplify the process of reading syntax elements of the decoder, and improve the efficiency and flexibility of video decoding.
  • FIG. 9 is a schematic structural diagram of a video encoding device according to an embodiment of the present invention.
  • the video encoding device includes a memory 901, a processor 902, and a data interface 903.
  • the memory 901 may include a volatile memory (volatile memory); the memory 901 may also include a non-volatile memory (non-volatile memory); the memory 901 may also include a combination of the foregoing types of memories.
  • the processor 902 may be a central processing unit (CPU).
  • the processor 902 may further include a hardware video encoding device.
  • the foregoing hardware video encoding device may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Specifically, for example, it may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • FPGA field-programmable gate array
  • the memory 901 is used to store a program, and when the program is executed, the processor 902 can call the program stored in the memory 901 to perform the following steps:
  • the color components including two chrominance components
  • different identifiers are used in the syntax elements of the stripe level for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate whether the chrominance component adopts ALF Performing filtering, and when the first identifier indicates that the chrominance component is filtered using ALF, a second identifier is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the image block level is a coding tree unit CTU level.
  • the first identifier is encoded in a contextual manner; and/or,
  • the second identifier is encoded by truncating the unary code.
  • the video encoding device may obtain the color components of the image sequence including two chrominance components, and filter the reconstruction blocks of the color components of at least part of the image sequence of the image sequence using adaptive loop filtering technology, and Generate the code stream of the image sequence, wherein the two chrominance components in the code stream use different identifiers in the image-level syntax elements to respectively indicate whether the corresponding chrominance components use an adaptive loop filter ALF performs filtering.
  • different identifiers can be used when performing ALF filtering to simplify the process of writing syntax elements of the encoder, and improve the efficiency and flexibility of video encoding.
  • FIG. 10 is a schematic structural diagram of a video decoding device according to an embodiment of the present invention.
  • the video decoding device includes: a memory 1001, a processor 1002, and a data interface 1003.
  • the memory 1001 may include a volatile memory (volatile memory); the memory 1001 may also include a non-volatile memory (non-volatile memory); the memory 1001 may also include a combination of the foregoing types of memories.
  • the processor 1002 may be a central processing unit (CPU).
  • the processor 1002 may further include a hardware video decoding device.
  • the foregoing hardware video decoding device may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Specifically, for example, it may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • FPGA field-programmable gate array
  • the memory 1001 is used to store a program, and when the program is executed, the processor 1002 can call the program stored in the memory 1001 to perform the following steps:
  • different identifiers are used in the syntax elements of the stripe level for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate whether the chrominance component adopts ALF Performing filtering, and when the first identifier indicates that the chrominance component is filtered using ALF, a second identifier is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the processor 1002 parses the identifiers corresponding to the two chrominance components of the current image from the code stream, it is specifically configured to:
  • the second identifier corresponding to the two chrominance components of the current image is analyzed from the code stream in a truncated unary code manner.
  • the image block level is a coding tree unit CTU level.
  • the video decoding device can obtain a code stream of an image sequence, wherein the image in the image sequence includes two chrominance components, and the two chrominance components in the code stream are Different identifiers are used in the syntax elements to indicate whether the corresponding chrominance components are filtered by ALF, and the corresponding identifiers of the two chrominance components of the current image are parsed from the code stream, so that according to the two chrominance components The respective corresponding identifiers determine whether to use ALF to filter the reconstruction blocks of the two chrominance components of the current image.
  • different identifiers can be used when performing ALF filtering to simplify the process of reading syntax elements of the decoder, and improve the efficiency and flexibility of video decoding.
  • FIG. 11 is a schematic structural diagram of another video encoding device according to an embodiment of the present invention.
  • the video encoding device includes: a memory 1101, a processor 1102, and a data interface 1103.
  • the memory 1101 may include a volatile memory (volatile memory); the memory 1101 may also include a non-volatile memory (non-volatile memory); the memory 1101 may also include a combination of the foregoing types of memories.
  • the processor 1102 may be a central processing unit (CPU).
  • the processor 1102 may further include a hardware video encoding device.
  • the foregoing hardware video encoding device may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Specifically, for example, it may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • FPGA field-programmable gate array
  • the memory 1101 is used to store a program, and when the program is executed, the processor 1102 can call the program stored in the memory 1101 to perform the following steps:
  • the color components including two chrominance components
  • a first identifier is used in the syntax element at the image block level in the code stream to indicate whether the chrominance component is ALF is used for filtering, and when the first identifier indicates that the chrominance component is filtered using ALF, the second identifier is used to indicate the ALF filter used by the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the image block level is a coding tree unit CTU level.
  • the first identifier is encoded in a contextual manner; and/or,
  • the second identifier is encoded by truncating the unary code.
  • different identifiers are used in the image-level syntax elements for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered using an adaptive loop filter ALF.
  • different identifiers are used in the syntax elements of the stripe level for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • the video encoding device can obtain the color components of the image sequence including two chrominance components, and use ALF to filter the reconstruction blocks of the color components of at least part of the images in the image sequence to generate the image sequence
  • a first identifier is used in the image block-level syntax element in the code stream to indicate whether the chrominance component is filtered by ALF
  • the second indicator is used to indicate the ALF filter used by the chrominance component.
  • FIG. 12 is a schematic structural diagram of another video decoding device according to an embodiment of the present invention.
  • the video decoding device includes: a memory 1201, a processor 1202, and a data interface 1203.
  • the memory 1201 may include a volatile memory (volatile memory); the memory 1201 may also include a non-volatile memory (non-volatile memory); the memory 1201 may also include a combination of the foregoing types of memories.
  • the processor 1202 may be a central processing unit (CPU).
  • the processor 1202 may further include a hardware video decoding device.
  • the foregoing hardware video decoding device may be an application-specific integrated circuit (ASIC), a programmable logic device (PLD), or a combination thereof. Specifically, for example, it may be a complex programmable logic device (CPLD), a field-programmable gate array (FPGA), or any combination thereof.
  • ASIC application-specific integrated circuit
  • PLD programmable logic device
  • FPGA field-programmable gate array
  • the memory 1201 is used to store a program, and when the program is executed, the processor 1002 can call the program stored in the memory 1201 to perform the following steps:
  • each chrominance component of the current image block determines whether to use ALF to filter the reconstruction block of the chrominance component according to the first identifier corresponding to the chrominance component, and when it is determined to be adopted, according to the second The identification determines that the corresponding ALF filter filters the reconstructed block of the chrominance component.
  • the ALF filter is a cross-component adaptive loop filter CCALF filter.
  • the image block level is a coding tree unit CTU level.
  • the processor 1002 parses the first identifier and the second identifier respectively corresponding to the two chrominance components of the current image from the code stream, it is specifically configured to:
  • the second identifier corresponding to the two chrominance components of the current image is analyzed from the code stream in a truncated unary code manner.
  • different identifiers are used in the image-level syntax elements for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered using an adaptive loop filter ALF.
  • different identifiers are used in the syntax elements of the stripe level for the two chrominance components to respectively indicate whether the corresponding chrominance components are filtered by the adaptive loop filter ALF.
  • the video decoding device may determine whether to use ALF to filter the reconstructed block of the chrominance component according to the first identifier corresponding to the chrominance component for each chrominance component of the current image block, When it is determined to be adopted, a corresponding ALF filter is determined according to the second identifier to filter the reconstruction block of the chrominance component.
  • a computer-readable storage medium stores a computer program.
  • the embodiment of the present invention is The described video encoding method can also implement the video decoding method described in Figure 6 or Figure 8 of the embodiment of the present invention, and can also implement the video encoding device corresponding to the embodiment of the present invention described in Figure 9 or Figure 11, or The video decoding device that implements the corresponding embodiment of the present invention described in FIG. 10 or FIG. 12 will not be repeated here.
  • the computer-readable storage medium may be an internal storage unit of the device described in any of the foregoing embodiments, such as a hard disk or memory of the device.
  • the computer-readable storage medium may also be an external storage device of the device, such as a plug-in hard disk equipped on the device, a Smart Media Card (SMC), or a Secure Digital (SD) card. , Flash Card, etc.
  • the computer-readable storage medium may also include both an internal storage unit of the device and an external storage device.
  • the computer-readable storage medium is used to store the computer program and other programs and data required by the device.
  • the computer-readable storage medium can also be used to temporarily store data that has been output or will be output.
  • the program can be stored in a computer readable storage medium. During execution, it may include the procedures of the above-mentioned method embodiments.
  • the storage medium may be a magnetic disk, an optical disc, a read-only memory (Read-Only Memory, ROM), or a random access memory (Random Access Memory, RAM), etc.

Landscapes

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

Abstract

一种视频编码、解码方法、设备及存储介质,方法包括:获取图像序列的颜色分量,所述颜色分量包括两个色度分量;对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波;生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。通过这种实施方式,简化编码器语法元素写入,解码器语法元素读取的过程,提高视频编码/解码的灵活性和效率。

Description

一种视频编码、解码方法、设备及存储介质 技术领域
本发明涉及视频编码技术领域,尤其涉及一种视频编码、解码方法、设备及存储介质。
背景技术
自适应环路滤波技术(Adaptive Loop Filter,ALF)是视频编解码的重要技术之一。该技术通过编码滤波系数,在解码端对重构图像进行滤波,降低解码图像中的压缩失真,并为后续编解码图像提供高质量的预测参考图像,从而进一步提高压缩效率。
在现有的自适应环路滤波技术中,图像的各色度分量对应一个滤波控制开关,由一个滤波控制开关控制图像各个色度分量,这种将各个色度分量的滤波控制开关合为一体的方式,对编码过程中影响各色度分量的一致性、可读性,从而影响视频编码的效率和灵活性。因此,如何更好地提高视频编码的效率和灵活性成为研究的重点。
发明内容
本发明实施例提供了一种视频编码、解码方法、设备及存储介质,简化编码器语法元素写入,解码器语法元素读取的过程,提高视频编码/解码的灵活性和效率。
第一方面,本发明实施例提供了一种视频编码方法,包括:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波;
生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
第二方面,本发明实施例提供了一种视频解码方法,包括:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量, 所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波;
从所述码流中解析当前图像的两个色度分量分别对应的标识;
根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
第三方面,本发明实施例提供了另一种视频编码方法,包括:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波;
生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
第四方面,本发明实施例提供了另一种视频解码方法,包括:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器;
从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识;
对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
第五方面,本发明实施例提供了一种视频编码设备,包括:存储器和处理器;
所述存储器,用于存储程序;
所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波 技术进行滤波;
生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
第六方面,本发明实施例提供了一种视频解码设备,包括:存储器和处理器;
所述存储器,用于存储程序;
所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波;
从所述码流中解析当前图像的两个色度分量分别对应的标识;
根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
第七方面,本发明实施例提供了另一种视频编码设备,包括:存储器和处理器;
所述存储器,用于存储程序;
所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波;
生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
第八方面,本发明实施例提供了另一种视频解码设备,包括:存储器和处理器;
所述存储器,用于存储程序;
所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器;
从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识;
对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
第九方面,本发明实施例提供了一种计算机可读存储介质,该计算机可读存储介质存储有计算机程序,该计算机程序被处理器执行时实现如上述第一方面和第三方面所述的视频编码方法,以及如上述第二方面和第四方面所述的视频解码方法。
本发明实施例,通过获取图像序列的颜色分量,并对图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波,以生成图像序列的码流,其中,所述码流中对所述颜色分量中的两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。通过这种方式,可以简化编码器语法元素写入,解码器语法元素读取的过程,提高视频编码/解码的灵活性和效率。
附图说明
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是一种维纳滤波原理示意图;
图2是一种自适应环路滤波形状的示意图;
图3是一种跨分量自适应环路滤波的流程示意图;
图4是一种跨分量自适应环路滤波的滤波形状的示意图;
图5是本发明实施例提供的一种视频编码方法的流程示意图;
图6是本发明实施例提供的一种视频解码方法的流程示意图;
图7是本发明实施例提供的另一种视频编码方法的流程示意图;
图8是本发明实施例提供的另一种视频解码方法的流程示意图;
图9是本发明实施例提供的一种视频编码设备的结构示意图;
图10是本发明实施例提供的一种视频解码设备的结构示意图;
图11是本发明实施例提供的另一种视频编码设备的结构示意图;
图12是本发明实施例提供的另一种视频解码设备的结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
下面结合附图,对本发明的一些实施方式作详细说明。在不冲突的情况下,下述的实施例及实施例中的特征可以相互组合。
本发明实施例提出的视频编码方法可以应用于视频编码设备,所述视频编码设备可以设置在智能终端(如手机、平板电脑等)上。在某些实施例中,本发明实施例可应用于飞行器(如无人机)上,在其他实施例中,本发明实施例还可以应用于其他可移动平台(如无人船、无人汽车、机器人等)上,本发明实施例不做具体限定。
本发明用于视频编码标准中的多功能视频编码(Versatile Video Coding,VVC)中的环路滤波(In-loop filter)的自适应环路滤波技术ALF(Adaptive loop filter),主要针对自适应环路滤波技术以及跨分量自适应环路滤波技术(Cross-Component ALF,CCALF)进行优化,去除冗余,使其设计更为合理,主要应用形式为符合国际视频编码标准H.264,高效率视频编码(High Efficiency Video Coding,HEVC)和中国AVS2标准等的编解码器,可用于提升压缩视频质量,对广播电视、电视会议、网络视频等视频的压缩处理具有重要意义。
在介绍本发明实施例之前,先对自适应环路滤波技术ALF进行说明。
环路滤波是视频编解码框架中的关键部分,它主要用于减少编码过程中产生的块效应、振铃效应等压缩失真。在一个示例中,有三种环路滤波技术,即去块滤波、自适应样值补偿滤波和自适应环路滤波。去块滤波和自适应样值补偿滤波沿用了HEVC中的方法。去块滤波用于预测单元和变换单元的边界,利用训练得到的低通滤波器进行边界像素的非线性加权,从而减少块效应。自适应样值补偿滤波通过对图像块内像素进行分类,进而为每类像素加上相同补偿值的方式使得重构图像更接近原始图像,从而起到抑制振铃效应的作用。
在一个实施例中,自适应环路滤波是一种维纳滤波器,主要用于最小化原始图像和重构图像之间的均方误差。自适应环路滤波器是根据原始信号和编码后的失真信号来计算的均方意义下最优滤波器,本质是一种维纳滤波器,如图1所示,图1是一种维纳滤波原理示意图,如图1中X是原始信号,e是噪声或者说是失真,Y是失真信号,
Figure PCTCN2020083371-appb-000001
是滤波后的信号。
在一个实施例中,在在一个示例中的ALF中,使用周围像素点的加权平均来得到当前点滤波之后的结果,使用到的临近像素点的位置如图2所示,图2是一种自适应环路滤波形状的示意图。如图2所示,包括5x5的菱形和7x7的菱形,假设C12对应的点为当前待滤波的点,则滤波过程使用图2中所有位置点的加权平均获得,滤波系数就是各个点的权重,共有13个滤波系数C0~C12。最终滤波的过程即为图2中各个点与其对应滤波系数的乘积再累计求和。其中,此过程中使用到的点,都是ALF之前拿到的重建帧中的点。
在一个实施例中,CCALF通过使用亮度分量的数值来对色度分量进行调整,以用于对色度分量的质量进行提升,在某些实施例中,CCALF是线性的ALF,在某些实施例中,CCALF只对色度分量进行处理,不修改亮度分量的数值。
在一些实施例中,CCALF使用ALF前的亮度分量对ALF之后的色度分量进行滤波,CCALF使用亮度分量和色度分量联合计算滤波系数,并将计算得到的滤波系数用于色度分量的滤波。CCALF滤波的总体流程图如图3所示,图3是一种跨分量自适应环路滤波的流程示意图,首先采用ALF对图像的亮度Luma、色度Cb和Cr进行滤波,并进一步采用CCALF对图像的色度Cb和Cr进行滤波,然后根据采用CCALF对图像的色度Cb和Cr进行滤波得到 的结果和采用ALF对图像的色度Cb和Cr进行滤波得到的结果,确定滤波后的色度Cb和Cr。
在一个实施例中,CCALF滤波器的形状如图4所示,图4是一种跨分量自适应环路滤波的滤波形状的示意图,如图4所示,CCALF滤波器的形状可以采用3x4菱形,共8个系数,假设2所在位置为当前的Cb或者Cr分量像素点,则可以使用2周围的7个点的加权平均得到2所在位置像素点滤波之后的结果。
目前,在采用ALF对两个色度分量进行滤波时,生成的图像序列的码流中对两个色度分量均使用同一个标识来指示对应的色度分量是否采用ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在图像级的语法元素中采用同一个标识指示两个色度分量是否采用ALF进行滤波。示例性的,所述码流中对所述两个色度分量在图像级的语法元素中采用同一个标识ph_alf_chroma_idc指示两个色度分量是否采用ALF进行滤波,其中,ph_alf_chroma_idc为0时指示Cb和Cr两个色度分量都未采用ALF进行滤波;ph_alf_chroma_idc为1指示Cb色度分量采用ALF进行滤波,以及Cr色度分量未采用ALF进行滤波;ph_alf_chroma_idc为2指示Cb色度分量未采用ALF进行滤波,以及Cr色度分量采用ALF进行滤波;ph_alf_chroma_idc为3指示Cb、Cr色度分量都采用ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在图像级的语法元素中采用同一个标识指示两个色度分量是否采用ALF进行滤波。示例性的,所述码流中对所述两个色度分量在图像级的语法元素中采用同一个标识slice_alf_chroma_idc指示两个色度分量是否采用ALF进行滤波,其中,slice_alf_chroma_idc为0时指示Cb和Cr两个色度分量都未采用ALF进行滤波;slice_alf_chroma_idc为1指示Cb色度分量采用ALF进行滤波,以及Cr色度分量未采用ALF进行滤波;slice_alf_chroma_idc为2指示Cb色度分量未采用ALF进行滤波,以及Cr色度分量采用ALF进行滤波;slice_alf_chroma_idc为3指示Cb、Cr色度分量都采用ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在图像块级的语法元素中,采用alf_ctb_cc_cb_idc标识指示色度分量Cb是否采用CCALF进行滤波, 采用alf_ctb_cc_cr_idc标识指示色度分量Cr是否采用CCALF进行滤波。以alf_ctb_cc_cb_idc为例,如果alf_ctb_cc_cb_idc为0,则指示Cb色度分量未采用CCALF进行滤波,如果alf_ctb_cc_cb_idc大于0,则指示Cb色度分量采用CCALF进行滤波。
可见,这种使用同一个标识来指示是否采用自适应环路滤波器ALF进行滤波的,增加了冗余,影响了编码色度分量的一致性和可读性。
本发明实施例针对上述问题,删除了传统ALF中各色度分量采用的统一标识,重新进行语法元素设计,分别为ALF中各个色度分量对应设置一个各自不同的标识来指示对应的色度分量是否采用ALF进行滤波,有利于简化编码器语法元素写入,解码器语法元素读取的过程,提高视频编码/解码的灵活性和效率。
在一个实施例中,对于图像级ALF的色度分量,本发明实施例删除了ph_alf_chroma_idc,分别用ph_alf_cb_enabled_flag指示Cb色度分量是否采用ALF进行滤波,以及用ph_alf_cr_enabled_flag指示Cr色度分量采用ALF进行滤波。
在一个实施例中,对于slice级ALF的色度分量,本发明实施例删除了slice_alf_chroma_idc,分别用slice_alf_cb_enabled_flag指示Cb色度分量是否采用ALF进行滤波,以及用slice_alf_cr_enabled_flag指示Cr色度分量是否采用ALF进行滤波。
在一个实施例中,对于CTU级ALF的色度分量,本发明实施例对Cb色度分量使用了alf_ctb_cc_cb_flag和alf_ctb_cc_cb_idx两个标识来指示Cb色度分量是否采用CCALF进行滤波,其中,alf_ctb_cc_cb_flag标识指示Cb色度分量是否采用CCALF,如果采用,则进一步使用alf_ctb_cc_cb_idx标识来指示Cb色度分量采用的CCALF滤波器的索引;同理,本发明实施例对Cr色度分量使用了alf_ctb_cc_cr_flag和alf_ctb_cc_cr_idx两个标识来指示Cr色度分量是否采用CCALF进行滤波,其中,alf_ctb_cc_cr_flag标识指示Cr色度分量是否采用CCALF,如果采用,则进一步使用alf_ctb_cc_cr_idx标识来指示Cr色度分量采用的CCALF滤波器的索引。
可见,通过本发明实施例的这种实施方式,可以减少冗余,简化编码器语法元素写入,解码器语法元素读取的过程,提高视频编码/解码的灵活性和效 率。
下面结合附图5-8对本发明实施例提供的视频编码和视频解码的方法进行示意性说明。
具体请参见图5,图5是本发明实施例提供的一种视频编码方法的流程示意图。所述方法可以应用于视频编码设备,其中,所述所述视频编码设备可以设置在智能终端上。具体地,本发明实施例的所述方法包括如下步骤。
S501:获取图像序列的颜色分量,所述颜色分量包括两个色度分量。
本发明实施例中,视频编码设备可以获取图像序列的颜色分量,所述颜色分量包括两个色度分量。在某些实施例中,所述两个色度分量包括Cb和Cr两个色度分量。
S502:对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波。
本发明实施例中,视频编码设备可以对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波。
在一个实施例中,所述视频编码设备在对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波时,可以获取图像序列至少部分图像的颜色分量的重建块中各像素点的像素值,并确定所述重建块中各个像素点的滤波系数,以及将所述各个像素点的滤波系数作为权重,将各个像素点的像素值与其对应的滤波系数的乘积进行累加,以得到滤波后的结果。
在一个实施例中,所述滤波系数是通过对像素点进行分类,根据像素点的类别确定的,其中,同一个类别的像素点对应同一套滤波系数,以图2中5x5的菱形为例,重建块中共有7个滤波系数C0~C6,同一个滤波系数对应的像素点属于同一种类型。
在一些实施例中,对像素点进行分类的方式有多种,本发明实施例不做具体限定,以现有的一个示例的分类方式为例,现有技术中只对亮度Y分量进行分类,对色度U、V分量不进行分类,其中,Y分量可分为25类,U、V分量都是只有一类,这也就意味着,对于一帧图像来讲,Y分量最多可以有25套滤波器,U、V分量只有一套。
在一个实施例中,每一个4x4的块都根据拉普拉斯方向进行分类:
Figure PCTCN2020083371-appb-000002
其中,C代表像素块所属类别,
Figure PCTCN2020083371-appb-000003
是进行分类之后的细分类结果,
Figure PCTCN2020083371-appb-000004
的获取可以有多种方式,这里只是代表细分类的结果,D代表方向,方向D的计算方式如下:
Figure PCTCN2020083371-appb-000005
其中,(i,j)代表当前4x4块在整个图像中的坐标位置,R(k,l)代表4x4块中位于(k,l)位置的像素值;V k,l代表4x4块中位于(i,j)坐标的像素点在竖直方向的拉普拉斯梯度;H k,l代表4x4块中位于(i,j)坐标的像素点在水平方向拉普拉斯梯度;D1 k,l代表4x4块中位于(i,j)坐标的像素点在135度方向拉普拉斯梯度;D2 k,l代表4x4块中位于(i,j)坐标的像素点在45度拉普拉斯梯度;g v代表4x4块在竖直方向的拉普拉斯梯度;g h代表4x4块在水平方向的拉普拉斯梯度;g d1代表4x4块在135度方向的拉普拉斯梯度;g d2代表4x4块在45度方向的拉普拉斯梯度;i和j是4x4块的左上像素点的坐标,R(i,j)代表位于坐标(i,j)的重构像素值。其中,D的计算方式如下所示:
Figure PCTCN2020083371-appb-000006
其中,
Figure PCTCN2020083371-appb-000007
代表水平、竖直方向拉普拉斯梯度值的最大值;
Figure PCTCN2020083371-appb-000008
代表水平、竖直方向拉普拉斯梯度值的最小值;
Figure PCTCN2020083371-appb-000009
代表45、135方向拉普拉斯梯度值的最大值;
Figure PCTCN2020083371-appb-000010
代表45、135方向拉普拉斯梯度值的最小值;R h,v代表水平、竖直方向拉普拉斯梯度的比值;R d0,d1代表45、135方向拉普拉斯梯度的比值。
如果
Figure PCTCN2020083371-appb-000011
而且
Figure PCTCN2020083371-appb-000012
则D设置为0;如果
Figure PCTCN2020083371-appb-000013
而且
Figure PCTCN2020083371-appb-000014
则D设置为1;如果
Figure PCTCN2020083371-appb-000015
而且
Figure PCTCN2020083371-appb-000016
则D设置为2;如果
Figure PCTCN2020083371-appb-000017
而且
Figure PCTCN2020083371-appb-000018
D设置为3;如果
Figure PCTCN2020083371-appb-000019
而且
Figure PCTCN2020083371-appb-000020
则D设置为4;t 1和t 2代表预先设置的阈值。
Figure PCTCN2020083371-appb-000021
的计算方式如下所示:
Figure PCTCN2020083371-appb-000022
将A量化得到0~4之间的整数,从而得到
Figure PCTCN2020083371-appb-000023
S503:生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
本发明实施例中,视频编码设备可以生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对色度分量Cb在图像级的语法元素中可以采用ph_alf_cb_enabled_flag作为标识,用于指示色度分量Cb是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对色度分量Cr在图像级的语法元素中可以采用ph_alf_cr_enabled_flag作为标识,用于指示色度分量Cr是否采用自适应环路滤波器ALF进行滤波。
其中,色度分量Cb和Cr在图像级的语法元素的表示如下表1所示:
表1
Figure PCTCN2020083371-appb-000024
Figure PCTCN2020083371-appb-000025
在一个实施例中,所述码流中对所述两个色度分量在条带级slice的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对色度分量Cb在slice级的语法元素中可以采用slice_alf_cb_enabled_flag作为标识,用于指示色度分量Cb是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对色度分量Cr在slice级的语法元素中可以采用slice_alf_cr_enabled_flag作为标识,用于指示色度分量Cr是否采用自适应环路滤波器ALF进行滤波。
其中,色度分量Cb和Cr在slice级的语法元素的表示如下表2所示:
表2
Figure PCTCN2020083371-appb-000026
Figure PCTCN2020083371-appb-000027
在一个实施例中,所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。在某些实施例中,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。在某些实施例中,所述图像块级为编码树单元(coding tree unit,CTU)级,其中,一个编码树单元CTU包括一个亮度Luma编码树区块(Coding Tree Block,CTB)、两个色度Chroma编码树区块CTB以及语法元素。
在一个实施例中,所述码流中对色度分量Cb在图像块级的语法元素中可以采用alf_ctb_cc_cb_flag作为第一标识,用于指示色度分量Cb是否采用自适 应环路滤波器CCALF进行滤波,如果采用了自适应环路滤波器CCALF进行滤波,则进一步使用alf_ctb_cc_cb__idx作为第二标识,用于标识色度分量Cb所采用的CCALF滤波器的索引。
在一个实施例中,所述码流中对色度分量Cr在图像块级的语法元素中可以采用alf_ctb_cc_cr_flag作为第一标识,用于指示色度分量Cr是否采用自适应环路滤波器CCALF进行滤波,如果采用了自适应环路滤波器CCALF进行滤波,则进一步使用alf_ctb_cc_cr__idx作为第二标识,用于标识色度分量Cr所采用的CCALF滤波器的索引。在某些实施例中,所述第二标识是根据第一标识计算得到的,在某些实施例中,当确定色度分量在图像块级的语法元素中采用了CCALF进行滤波,则可以根据第一标识与1的差值确定第二标识。
其中,色度分量Cb和Cr在图像块级的语法元素的表示如下表3所示:
表3
Figure PCTCN2020083371-appb-000028
Figure PCTCN2020083371-appb-000029
本发明实施例中,视频编码设备可以获取图像序列的包括两个色度分量的颜色分量,并对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波,以及生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。通过这种实施方式,可以在进行ALF滤波时利用不同的标识简化编码器语法元素写入的过程,提高视频编码的效率和灵活性。
请参见图6,图6是本发明实施例提供的一种视频解码方法的流程示意图。所述方法可以应用于视频解码设备,其中,所述视频解码设备可以设置在智能 终端(如手机、平板电脑等)上。具体地,本发明实施例的所述方法包括如下步骤。
S601:获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波。
本发明实施例中,视频解码设备可以获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。在某些实施例中,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。在某些实施例中,所述图像块级为编码树单元CTU级。
S602:从所述码流中解析当前图像的两个色度分量分别对应的标识。
本发明实施例中,视频解码设备可以从所述码流中解析当前图像的两个色度分量分别对应的标识。
在一个实施例中,视频解码设备可以采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;和/或,采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
S603:根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
本发明实施例中,视频解码设备可以根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
本发明实施例中,视频解码设备可以获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级 的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波,并从所述码流中解析当前图像的两个色度分量分别对应的标识,从而根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。通过这种实施方式,可以在进行ALF滤波时利用不同的标识简化解码器语法元素读取的过程,提高视频解码的效率和灵活性。
请参见图7,图7是本发明实施例提供的另一种视频编码方法的流程示意图。所述方法可以应用于视频编码设备,其中,所述视频解码设备可以设置在智能终端(如手机、平板电脑等)上。具体地,本发明实施例的所述方法包括如下步骤。
S701:获取图像序列的颜色分量,所述颜色分量包括两个色度分量。
本发明实施例中,视频编码设备可以获取图像序列的颜色分量,所述颜色分量包括两个色度分量。
S702:对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波。
本发明实施例中,视频编码设备可以对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波。在某些实施例中,所述视频编码设备对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波的实施过程如前所述,此处不再赘述。
S703:生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
本发明实施例中,视频编码设备可以生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。在某些实施例中,所述ALF滤波器包括CCALF滤波器。在某些实施例中,所述图像块级为编码树单元CTU级。
在一个实施例中,所述第一标识是采用上下文的方式进行编码的;和/或,所述第二标识是采用截断一元码的方式进行编码的。
在一个实施例中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
本发明实施例中,视频编码设备可以获取图像序列的包括两个色度分量的颜色分量,并对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波,生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。通过这种实施方式,可以在进行CCALF滤波时利用第一标识和第二标识简化编码器语法元素写入的过程,提高了视频编码的效率和灵活性。
请参见图8,图8是本发明实施例提供的另一种视频解码方法的流程示意图。所述方法可以应用于视频解码设备,其中,所述视频解码设备可以设置在智能终端(如手机、平板电脑等)上。具体地,本发明实施例的所述方法包括如下步骤。
S801:获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器。
本发明实施例中,视频解码设备可以获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器。在某些实施例中,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器, 所述图像块级为编码树单元CTU级。
在一个实施例中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
在一个实施例中,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
S802:从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识。
本发明实施例中,视频解码设备可以从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识。
在一个实施例中,视频解码设备可以采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;以及,采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
S803:对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
本发明实施例中,视频解码设备可以对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
本发明实施例中,视频解码设备可以获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器,并从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识,以及对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块 进行滤波。通过这种实施方式,可以在进行CCALF滤波时利用第一标识和第二标识简化解码器语法元素读取的过程,提高了视频解码的效率和灵活性。
请参见图9,图9是本发明实施例提供的一种视频编码设备的结构示意图,具体的,所述视频编码设备包括:存储器901、处理器902以及数据接口903。
所述存储器901可以包括易失性存储器(volatile memory);存储器901也可以包括非易失性存储器(non-volatile memory);存储器901还可以包括上述种类的存储器的组合。所述处理器902可以是中央处理器(central processing unit,CPU)。所述处理器902还可以进一步包括硬件视频编码设备。上述硬件视频编码设备可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。具体例如可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。
进一步地,所述存储器901用于存储程序,当程序被执行时所述处理器902可以调用存储器901中存储的程序,用于执行如下步骤:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波;
生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
进一步地,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
进一步地,所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
进一步地,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
进一步地,所述图像块级为编码树单元CTU级。
进一步地,所述第一标识是采用上下文的方式进行编码的;和/或,
所述第二标识是采用截断一元码的方式进行编码的。
本发明实施例中,视频编码设备可以获取图像序列的包括两个色度分量的颜色分量,并对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波,以及生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。通过这种实施方式,可以在进行ALF滤波时利用不同的标识简化编码器语法元素写入的过程,提高视频编码的效率和灵活性。
请参见图10,图10是本发明实施例提供的一种视频解码设备的结构示意图,具体的,所述视频解码设备包括:存储器1001、处理器1002以及数据接口1003。
所述存储器1001可以包括易失性存储器(volatile memory);存储器1001也可以包括非易失性存储器(non-volatile memory);存储器1001还可以包括上述种类的存储器的组合。所述处理器1002可以是中央处理器(central processing unit,CPU)。所述处理器1002还可以进一步包括硬件视频解码设备。上述硬件视频解码设备可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。具体例如可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。
进一步地,所述存储器1001用于存储程序,当程序被执行时所述处理器1002可以调用存储器1001中存储的程序,用于执行如下步骤:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波;
从所述码流中解析当前图像的两个色度分量分别对应的标识;
根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
进一步地,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
进一步地,所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
进一步地,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
进一步地,所述处理器1002从所述码流中解析当前图像的两个色度分量分别对应的标识时,具体用于:
采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;和/或,
采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
进一步地,所述图像块级为编码树单元CTU级。
本发明实施例中,视频解码设备可以获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波,并从所述码流中解析当前图像的两个色度分量分别对应的标识,从而根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。通过这种实施方式,可以在进行ALF滤波时利用不同的标识简化解码器语法元素读取的过程,提高视频解码的效率和灵活性。
请参见图11,图11是本发明实施例提供的另一种视频编码设备的结构示意图,具体的,所述视频编码设备包括:存储器1101、处理器1102以及数据接口1103。
所述存储器1101可以包括易失性存储器(volatile memory);存储器1101也可以包括非易失性存储器(non-volatile memory);存储器1101还可以包括上述种类的存储器的组合。所述处理器1102可以是中央处理器(central  processing unit,CPU)。所述处理器1102还可以进一步包括硬件视频编码设备。上述硬件视频编码设备可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。具体例如可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。
进一步地,所述存储器1101用于存储程序,当程序被执行时所述处理器1102可以调用存储器1101中存储的程序,用于执行如下步骤:
获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波;
生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
进一步地,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
进一步地,所述图像块级为编码树单元CTU级。
进一步地,所述第一标识是采用上下文的方式进行编码的;和/或,
所述第二标识是采用截断一元码的方式进行编码的。
进一步地,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
进一步地,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
本发明实施例中,视频编码设备可以获取图像序列的包括两个色度分量的颜色分量,并对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波,生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进 行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。通过这种实施方式,可以在进行CCALF滤波时利用第一标识和第二标识简化编码器语法元素写入的过程,提高了视频编码的效率和灵活性。
请参见图12,图12是本发明实施例提供的另一种视频解码设备的结构示意图,具体的,所述视频解码设备包括:存储器1201、处理器1202以及数据接口1203。
所述存储器1201可以包括易失性存储器(volatile memory);存储器1201也可以包括非易失性存储器(non-volatile memory);存储器1201还可以包括上述种类的存储器的组合。所述处理器1202可以是中央处理器(central processing unit,CPU)。所述处理器1202还可以进一步包括硬件视频解码设备。上述硬件视频解码设备可以是专用集成电路(application-specific integrated circuit,ASIC),可编程逻辑器件(programmable logic device,PLD)或其组合。具体例如可以是复杂可编程逻辑器件(complex programmable logic device,CPLD),现场可编程逻辑门阵列(field-programmable gate array,FPGA)或其任意组合。
进一步地,所述存储器1201用于存储程序,当程序被执行时所述处理器1002可以调用存储器1201中存储的程序,用于执行如下步骤:
获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器;
从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识;
对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
进一步地,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
进一步地,所述图像块级为编码树单元CTU级。
进一步地,所述处理器1002从所述码流中解析当前图像的两个色度分量 分别对应的所述第一标识和所述第二标识时,具体用于:
采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;以及,
采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
进一步地,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
进一步地,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
本发明实施例中,视频解码设备可以对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
在本发明的实施例中还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现本发明实施例图5或图7中描述的视频编码方法方式,也可以实现本发明实施例图6或图8中描述的视频解码方法方式,也可实现图9或图11所述本发明所对应实施例的视频编码设备,也可实现图10或图12所述本发明所对应实施例的视频解码设备,在此不再赘述。
所述计算机可读存储介质可以是前述任一项实施例所述的设备的内部存储单元,例如设备的硬盘或内存。所述计算机可读存储介质也可以是所述设备的外部存储设备,例如所述设备上配备的插接式硬盘,智能存储卡(Smart Media Card,SMC),安全数字(Secure Digital,SD)卡,闪存卡(Flash Card)等。进一步地,所述计算机可读存储介质还可以既包括所述设备的内部存储单元也包括外部存储设备。所述计算机可读存储介质用于存储所述计算机程序以及所述设备所需的其他程序和数据。所述计算机可读存储介质还可以用于暂时地存储已经输出或者将要输出的数据。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程, 是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明部分实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。

Claims (49)

  1. 一种视频编码方法,其特征在于,包括:
    获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
    对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波;
    生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  2. 根据权利要求1所述的方法,其特征在于,
    所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  3. 根据权利要求1所述的方法,其特征在于,
    所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  4. 根据权利要求3所述的方法,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  5. 根据权利要求3所述的方法,其特征在于,所述图像块级为编码树单元CTU级。
  6. 根据权利要求3所述的方法,其特征在于,
    所述第一标识是采用上下文的方式进行编码的;和/或,
    所述第二标识是采用截断一元码的方式进行编码的。
  7. 一种视频解码方法,其特征在于,包括:
    获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波;
    从所述码流中解析当前图像的两个色度分量分别对应的标识;
    根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
  8. 根据权利要求7所述的方法,其特征在于,
    所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  9. 根据权利要求7所述的方法,其特征在于,
    所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  10. 根据权利要求9所述的方法,其特征在于,
    所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  11. 根据权利要求9所述的方法,其特征在于,所述从所述码流中解析当前图像的两个色度分量分别对应的标识,包括:
    采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;和/或,
    采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
  12. 根据权利要求9所述的方法,其特征在于,所述图像块级为编码树单元CTU级。
  13. 一种视频编码方法,其特征在于,包括:
    获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
    对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波;
    生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  14. 根据权利要求13所述的方法,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  15. 根据权利要求13所述的方法,其特征在于,所述图像块级为编码树单元CTU级。
  16. 根据权利要求13所述的方法,其特征在于,
    所述第一标识是采用上下文的方式进行编码的;和/或,
    所述第二标识是采用截断一元码的方式进行编码的。
  17. 根据权利要求13所述的方法,其特征在于,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  18. 根据权利要求13所述的方法,其特征在于,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  19. 一种视频解码方法,其特征在于,包括:
    获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量, 对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器;
    从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识;
    对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
  20. 根据权利要求19所述的方法,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  21. 根据权利要求19所述的方法,其特征在于,所述图像块级为编码树单元CTU级。
  22. 根据权利要求19所述的方法,其特征在于,所述从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识,包括:
    采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;以及,
    采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
  23. 根据权利要求19所述的方法,其特征在于,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  24. 根据权利要求19所述的方法,其特征在于,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  25. 一种视频编码设备,其特征在于,包括存储器和处理器;
    所述存储器,用于存储程序;
    所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
    获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
    对所述图像序列至少部分图像的颜色分量的重建块采用自适应环路滤波技术进行滤波;
    生成所述图像序列的码流,其中,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  26. 根据权利要求25所述的设备,其特征在于,
    所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  27. 根据权利要求25所述的设备,其特征在于,
    所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  28. 根据权利要求27所述的设备,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  29. 根据权利要求27所述的设备,其特征在于,所述图像块级为编码树单元CTU级。
  30. 根据权利要求27所述的设备,其特征在于,
    所述第一标识是采用上下文的方式进行编码的;和/或,
    所述第二标识是采用截断一元码的方式进行编码的。
  31. 一种视频解码设备,其特征在于,包括存储器和处理器;
    所述存储器,用于存储程序;
    所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
    获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用ALF进行滤波;
    从所述码流中解析当前图像的两个色度分量分别对应的标识;
    根据所述两个色度分量分别对应的标识确定是否采用ALF对所述当前图像的两个色度分量的重建块进行滤波。
  32. 根据权利要求31所述的设备,其特征在于,
    所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  33. 根据权利要求31所述的设备,其特征在于,
    所述码流中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  34. 根据权利要求33所述的设备,其特征在于,
    所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  35. 根据权利要求33所述的设备,其特征在于,所述处理器从所述码流中解析当前图像的两个色度分量分别对应的标识时,具体用于:
    采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;和/或,
    采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别 对应的第二标识。
  36. 根据权利要求33所述的设备,其特征在于,所述图像块级为编码树单元CTU级。
  37. 一种视频编码设备,其特征在于,包括存储器和处理器;
    所述存储器,用于存储程序;
    所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
    获取图像序列的颜色分量,所述颜色分量包括两个色度分量;
    对所述图像序列中至少部分图像的颜色分量的重建块采用ALF进行滤波;
    生成所述图像序列的码流,其中,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及在所述第一标识指示所述色度分量采用ALF进行滤波时,采用第二标识指示所述色度分量所采用的ALF滤波器。
  38. 根据权利要求37所述的设备,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  39. 根据权利要求37所述的设备,其特征在于,所述图像块级为编码树单元CTU级。
  40. 根据权利要求37所述的设备,其特征在于,
    所述第一标识是采用上下文的方式进行编码的;和/或,
    所述第二标识是采用截断一元码的方式进行编码的。
  41. 根据权利要求37所述的设备,其特征在于,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  42. 根据权利要求37所述的设备,其特征在于,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  43. 一种视频解码设备,其特征在于,包括存储器和处理器;
    所述存储器,用于存储程序;
    所述处理器,用于调用所述程序,当所述程序被执行时,用于执行以下操作:
    获取图像序列的码流,其中,所述图像序列中的图像包括两个色度分量,对所述两个色度分量的每一个色度分量,所述码流中在图像块级的语法元素中采用第一标识指示所述色度分量是否采用ALF进行滤波,以及采用第二标识指示所述色度分量所采用的ALF滤波器;
    从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识;
    对当前图像块的每一个色度分量,根据所述色度分量对应的所述第一标识确定是否采用ALF对所述色度分量的重建块进行滤波,当确定采用时,根据所述第二标识确定对应的ALF滤波器对所述色度分量的重建块进行滤波。
  44. 根据权利要求43所述的设备,其特征在于,所述ALF滤波器为跨分量自适应环路滤波CCALF滤波器。
  45. 根据权利要求43所述的设备,其特征在于,所述图像块级为编码树单元CTU级。
  46. 根据权利要求43所述的设备,其特征在于,所述处理器从所述码流中解析当前图像的两个色度分量分别对应的所述第一标识和所述第二标识时,具体用于:
    采用上下文的方式从所述码流中解析当前图像的两个色度分量分别对应的第一标识;以及,
    采用截断一元码的方式从所述码流中解析当前图像的两个色度分量分别对应的第二标识。
  47. 根据权利要求43所述的设备,其特征在于,所述码流中对所述两个色度分量在图像级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  48. 根据权利要求43所述的设备,其特征在于,所述码流中对所述两个色度分量在条带级的语法元素中采用不同的标识分别指示对应的色度分量是否采用自适应环路滤波器ALF进行滤波。
  49. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至24任一项所述方法。
PCT/CN2020/083371 2020-04-03 2020-04-03 一种视频编码、解码方法、设备及存储介质 WO2021196234A1 (zh)

Priority Applications (7)

Application Number Priority Date Filing Date Title
EP20929001.4A EP4131970A4 (en) 2020-04-03 2020-04-03 VIDEO CODING AND DECODING METHOD AND DEVICE, AND STORAGE MEDIA
JP2022555902A JP7517780B2 (ja) 2020-04-03 2020-04-03 映像符号化・復号の方法、記録媒体及びプログラム
KR1020227032401A KR20220137999A (ko) 2020-04-03 2020-04-03 비디오 인코딩, 디코딩 방법, 장치 및 저장 매체
CN202080005555.9A CN114097236A (zh) 2020-04-03 2020-04-03 一种视频编码、解码方法、设备及存储介质
PCT/CN2020/083371 WO2021196234A1 (zh) 2020-04-03 2020-04-03 一种视频编码、解码方法、设备及存储介质
US17/937,139 US12069252B2 (en) 2020-04-03 2022-09-30 Method and device for video encoding and decoding and storage medium
JP2024106624A JP2024138328A (ja) 2020-04-03 2024-07-02 映像符号化・復号の方法、及びビットストリーム生成方法

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
PCT/CN2020/083371 WO2021196234A1 (zh) 2020-04-03 2020-04-03 一种视频编码、解码方法、设备及存储介质

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/937,139 Continuation US12069252B2 (en) 2020-04-03 2022-09-30 Method and device for video encoding and decoding and storage medium

Publications (1)

Publication Number Publication Date
WO2021196234A1 true WO2021196234A1 (zh) 2021-10-07

Family

ID=77927557

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/083371 WO2021196234A1 (zh) 2020-04-03 2020-04-03 一种视频编码、解码方法、设备及存储介质

Country Status (6)

Country Link
US (1) US12069252B2 (zh)
EP (1) EP4131970A4 (zh)
JP (2) JP7517780B2 (zh)
KR (1) KR20220137999A (zh)
CN (1) CN114097236A (zh)
WO (1) WO2021196234A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709504A (zh) * 2021-10-27 2021-11-26 深圳传音控股股份有限公司 图像处理方法、智能终端及可读存储介质

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20140010278A1 (en) * 2012-07-09 2014-01-09 Motorola Mobility Llc Method and apparatus for coding adaptive-loop filter coefficients
CN103891293A (zh) * 2011-10-21 2014-06-25 高通股份有限公司 用于色度分量的自适应环路滤波
CN104735450A (zh) * 2015-02-26 2015-06-24 北京大学 一种在视频编解码中进行自适应环路滤波的方法及装置
CN105120271A (zh) * 2011-04-21 2015-12-02 联发科技股份有限公司 视频编解码方法与装置
WO2019194647A1 (ko) * 2018-04-06 2019-10-10 가온미디어 주식회사 필터 정보 기반의 적응적 루프 필터링 방법, 그를 이용한 영상 부호화 및 복호화 방법

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4064702A4 (en) * 2019-11-22 2023-12-27 Electronics and Telecommunications Research Institute METHOD AND DEVICE FOR ADAPTIVE LOOP FILTERING
JP2023510535A (ja) 2020-01-10 2023-03-14 サムスン エレクトロニクス カンパニー リミテッド 量子化パラメータを獲得するためのビデオ復号方法及びその装置、量子化パラメータを伝送するためのビデオ符号化方法及びその装置
GB2592957A (en) * 2020-03-11 2021-09-15 Canon Kk High level syntax for video coding and decoding
WO2021185733A1 (en) * 2020-03-20 2021-09-23 Interdigital Vc Holdings France Method and device for image encoding and decoding

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105120271A (zh) * 2011-04-21 2015-12-02 联发科技股份有限公司 视频编解码方法与装置
CN103891293A (zh) * 2011-10-21 2014-06-25 高通股份有限公司 用于色度分量的自适应环路滤波
US20140010278A1 (en) * 2012-07-09 2014-01-09 Motorola Mobility Llc Method and apparatus for coding adaptive-loop filter coefficients
CN104735450A (zh) * 2015-02-26 2015-06-24 北京大学 一种在视频编解码中进行自适应环路滤波的方法及装置
WO2019194647A1 (ko) * 2018-04-06 2019-10-10 가온미디어 주식회사 필터 정보 기반의 적응적 루프 필터링 방법, 그를 이용한 영상 부호화 및 복호화 방법

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
F. CHEN (HIKVISION), L. XU, L. WANG (HIKVISION): "CE5-related: On high level syntax of CC-ALF", 17. JVET MEETING; 20200107 - 20200117; BRUSSELS; (THE JOINT VIDEO EXPLORATION TEAM OF ISO/IEC JTC1/SC29/WG11 AND ITU-T SG.16 ), no. JVET-Q0382 ; m51977, 1 January 2020 (2020-01-01), XP030223376 *
See also references of EP4131970A4 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113709504A (zh) * 2021-10-27 2021-11-26 深圳传音控股股份有限公司 图像处理方法、智能终端及可读存储介质
CN113709504B (zh) * 2021-10-27 2022-02-15 深圳传音控股股份有限公司 图像处理方法、智能终端及可读存储介质

Also Published As

Publication number Publication date
JP7517780B2 (ja) 2024-07-17
US20230120657A1 (en) 2023-04-20
US12069252B2 (en) 2024-08-20
JP2024138328A (ja) 2024-10-08
EP4131970A4 (en) 2023-03-29
JP2023528124A (ja) 2023-07-04
EP4131970A1 (en) 2023-02-08
CN114097236A (zh) 2022-02-25
KR20220137999A (ko) 2022-10-12

Similar Documents

Publication Publication Date Title
CN114339221B (zh) 用于视频编解码的基于卷积神经网络的滤波器
JP7291846B2 (ja) 適応ループフィルタリングのためのサンプル決定
JP7549081B2 (ja) 適応ループフィルタリングにおけるサンプルパディング
CN109842799B (zh) 颜色分量的帧内预测方法、装置及计算机设备
CN115767107A (zh) 视频处理中的非线性自适应环路滤波
CN113678462A (zh) 自适应环路滤波器中的裁剪参数推导
CN114390288A (zh) 在视频编解码中使用神经网络滤波
CN113785576B (zh) 编解码视频中的二次变换的使用
CN104303506A (zh) 自适应采样点偏移信息的编解码装置及方法
JP2017508415A (ja) 画像符号化/復号方法及び装置
CN111327904B (zh) 图像重建方法和装置
CN113228686B (zh) 用于视频译码中去块效应滤波器的装置和方法
JP2024138328A (ja) 映像符号化・復号の方法、及びビットストリーム生成方法
CN112400323B (zh) 图像编码器、图像解码器、以及对应方法
CN117596414A (zh) 视频处理方法及装置
WO2023065891A1 (zh) 多媒体数据处理方法、装置、设备、计算机可读存储介质及计算机程序产品
CN115836527A (zh) 编码器、解码器及用于自适应环路滤波的对应方法
CN115695787A (zh) 基于神经网络的视频编解码中的分割信息
WO2022218385A1 (en) Unified neural network filter model
WO2022166462A1 (zh) 编码、解码方法和相关设备
CN116456083A (zh) 解码预测方法、装置及计算机存储介质
CN114846789A (zh) 用于指示条带的图像分割信息的解码器及对应方法
CN108989820B (zh) 各阶段采用各自相应色度采样格式的数据压缩方法和装置
KR100406535B1 (ko) 영상 압축 방법 및 그 장치
RU2812618C2 (ru) Нелинейная адаптивная контурная фильтрация при обработке видеоданных

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

Country of ref document: EP

Kind code of ref document: A1

ENP Entry into the national phase

Ref document number: 2022555902

Country of ref document: JP

Kind code of ref document: A

ENP Entry into the national phase

Ref document number: 20227032401

Country of ref document: KR

Kind code of ref document: A

WWE Wipo information: entry into national phase

Ref document number: 2020929001

Country of ref document: EP

NENP Non-entry into the national phase

Ref country code: DE