WO2013113217A1 - Decoding method and device - Google Patents

Decoding method and device Download PDF

Info

Publication number
WO2013113217A1
WO2013113217A1 PCT/CN2012/080343 CN2012080343W WO2013113217A1 WO 2013113217 A1 WO2013113217 A1 WO 2013113217A1 CN 2012080343 W CN2012080343 W CN 2012080343W WO 2013113217 A1 WO2013113217 A1 WO 2013113217A1
Authority
WO
WIPO (PCT)
Prior art keywords
mode
information
intra prediction
chroma component
code
Prior art date
Application number
PCT/CN2012/080343
Other languages
French (fr)
Chinese (zh)
Inventor
杨海涛
李斌
李厚强
Original Assignee
华为技术有限公司
中国科学技术大学
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 华为技术有限公司, 中国科学技术大学 filed Critical 华为技术有限公司
Publication of WO2013113217A1 publication Critical patent/WO2013113217A1/en

Links

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/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/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/103Selection of coding mode or of prediction mode
    • H04N19/11Selection of coding mode or of prediction mode among a plurality of spatial predictive coding modes
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/46Embedding additional information in the video signal during the compression process
    • H04N19/463Embedding additional information in the video signal during the compression process by compressing encoding parameters before transmission
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to the field of video image processing and, more particularly, to a decoding method and apparatus. Background technique
  • Intra coding refers to a technique of compressing and encoding image content using only spatial correlation in the current encoded image.
  • Inter-frame coding refers to a technique of compression-encoding a current picture using the temporal correlation of the current coded picture with the coded picture.
  • H.264/AVC Advanced Video Coding, Advanced Video Coding
  • H.264/AVC only needs to perform spatial transform and entropy coding on the prediction difference signal instead of the original image signal, thereby improving the intra coding efficiency.
  • a video image signal typically includes one luminance component and two chrominance components.
  • HEVC High Efficiency Video Coding
  • the Efficiency Video Coding is a new generation of video coding standardization scheme currently being studied by the International Organization for Standardization. It inherits the intra prediction coding technique in the H.264/AVC standard and introduces new features for chrominance components.
  • Intra prediction mode LM mode When the LM mode is used, the chrominance component prediction value of the image block is calculated by the linear model from the reconstructed value resampled by the luminance component of the corresponding block. Therefore, the LM mode is different from the conventional directional intra prediction mode in that it uses the correlation between the luminance component and the chrominance component of the image signal, and uses the luminance component value to predict the chrominance component value.
  • the HEVC scheme inherits and extends the intra prediction coding technique in the H.264/AVC standard.
  • the image block chrominance component includes all selectable intra prediction modes to form a prediction mode set, which is called a chrominance component intra prediction mode set, and includes the following six prediction modes:
  • DM mode using the intra prediction mode of the luminance component of the current block as a prediction mode of the chrominance component, and performing prediction;
  • LM mode The predicted value of the chroma component is calculated based on the value of the sampled point luminance component based on the linear model, and the linear model parameter is calculated from the luminance component value and the chroma component value of the sample point adjacent to the current block;
  • DC mode Use the average of the values of the chroma components of the sample points adjacent to the current block as the current a predicted value of the block chrominance component
  • Plane (Planar) mode Calculate the predicted value of the current block sample point based on the assumption that the value of the sample point changes linearly in space;
  • Horizontal mode use the value of the chrominance component of the adjacent sampling point on the left side as the predicted value of the chrominance components of all sampling points in the same row of the current block;
  • the DM mode is the same as the remaining prediction modes in the prediction mode set, the same chrominance prediction mode as the DM mode is replaced with the replacement mode to form a new prediction mode set.
  • the alternate mode may be a prediction mode that is different from all of the modes in the chroma component prediction mode set.
  • the RM mode chromaticity prediction mode
  • the DM mode a similar type of chroma prediction mode appears for the above LM mode, and the chroma prediction modes of this class are collectively referred to as the LM class mode hereinafter.
  • the TU (Truncated Unary) code scheme is used for encoding and decoding the above-mentioned chrominance prediction modes, which increases the codeword length of the chrominance prediction mode, and the long TU code causes the decoding efficiency to decrease.
  • Embodiments of the present invention provide a decoding method and apparatus, which can improve decoding efficiency.
  • a decoding method including: extracting chroma component mode information in a code stream, the chroma component mode information is used to determine a chroma component intra prediction mode; and determining a chroma component according to chroma component mode information.
  • An intra prediction mode when determining that the chroma component intra prediction mode is the DM mode, extracting residual prediction information in the code stream; performing a chroma component prediction operation according to the residual prediction information to obtain a chroma component intra prediction signal
  • the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode
  • the luma component intra prediction mode refers to a luminance acquired from a code stream in a luminance component decoding process.
  • the luminance component prediction mode determined by the component mode information.
  • a decoding apparatus including a first extracting unit, a first determining unit, a second extracting unit, and an operating unit, wherein the first extracting unit is configured to extract a chroma component in the code stream
  • the mode information, the chroma component mode information is used to determine a chroma component intra prediction mode;
  • the first determining unit is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit; a unit, configured to: when the first determining unit determines that the chroma component intra prediction mode is
  • the operation unit is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit to obtain a chroma component intra prediction signal
  • the DM mode refers to A mode of performing an intra prediction operation on a chroma component using a prediction method specified by a luma component intra prediction mode
  • a luma component intra prediction mode refers to determining, according to luma component mode information acquired from a code stream, in a luma component decoding process Luminance component prediction mode.
  • the above technical solution shortens the codeword length of the chrominance component prediction mode information by using different identification methods of the RM mode and the DM mode in the code stream, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode information and
  • the redundant information of the cbf information of the luminance component improves the compression efficiency of the video image.
  • FIG. 1 is a schematic flow chart of a method of decoding according to an embodiment of the present invention.
  • FIG. 2 is a schematic flow chart of a method of decoding according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart of a method of decoding according to still another embodiment of the present invention.
  • FIG. 4 is a schematic block diagram of a decoding apparatus according to an embodiment of the present invention.
  • FIG. 5 is a schematic block diagram of a decoding apparatus according to another embodiment of the present invention. detailed description
  • the chrominance component in the embodiment of the present invention may refer to any one of the two chrominance components.
  • the chrominance prediction mode set includes the DM mode, the LM mode, the DC mode, the vertical mode, the horizontal mode, and the planar mode
  • the chrominance coding scheme in the related art uses the TU code to perform binary value on the mode information of the current block. Then, the binarized binary symbols are entropy encoded using CABAC (Context Cased Binary Arithmetic Coding) technology.
  • CABAC Context Cased Binary Arithmetic Coding
  • the DM, LM, Vertical, Horizontal, DC, and Plane modes can be represented by the TU code words 0, 10, 110, 1110, 11110, 11111, respectively;
  • (Low Complexity, low complexity) configuration DM, vertical, horizontal, DC and plane modes can be represented by TU code words 0, 10, 110, 1110, 1111 respectively.
  • the decoding end determines the prediction mode of the current block chrominance component based on the parsed TU codeword.
  • the RM mode is the same as the DM mode in that the intra-prediction operation is performed on the chroma component by the prediction method specified by the luma component prediction mode to obtain the chroma component prediction signal.
  • the difference from the DM mode is that the RM mode further uses the luminance component residual signal to assist the chrominance component for prediction.
  • the RM mode determines a residual prediction factor according to the information obtained from the code stream, and calculates a residual prediction correction signal according to the luminance component residual signal and the residual prediction factor, and then uses the residual prediction correction signal pair according to the DM mode prediction method.
  • the acquired chroma component intra prediction signal is corrected.
  • the RM mode along with other selectable chroma modes, encodes the mode information using the TU code.
  • selectable modes include DM, LM, vertical, horizontal, DC, and planar modes
  • the TU code words 0, 10, 110, 1110, 11110, 111110, 111111 can be used to represent DM, LM, RM, horizontal, respectively. , vertical, DC and flat mode.
  • the mapping relationship between the set of codewords used and the set of patterns used can also be changed to obtain a new scheme.
  • the horizontal and vertical modes can be removed to obtain a new set of selectable chroma prediction modes, and a set of TU codes is used to represent the set of selectable chroma modes.
  • the LM class mode represents such a set of chrominance prediction modes, which are similar to the LM technique in the background art, and are based on the linear model to calculate the predicted values of the chrominance components using the values of the sampled point luminance components, which differ in that different ones are selected.
  • the linear model parameters are calculated adjacent to the sampling points.
  • the LM class mode can include one or more modes.
  • the LM mode refers specifically to the LM mode in the background art.
  • the LM mode is improved to obtain the LML mode and the LMA mode.
  • LML mode The model calculates the model parameters using only the reconstructed values of the adjacent sample points on the left side of the current block, while the LMA uses only the reconstructed values of the adjacent sample points above the current block to calculate the model parameters.
  • the LM class mode includes three modes of LM mode, LMA mode, and LML mode.
  • LM mode is also available depending on the selection of adjacent sampling points.
  • all adjacent sampling points can be divided into a first set of sampling points and a second set of sampling points that are not mutually exclusive.
  • the LM mode using the first set of sampling points can be recorded as LM1
  • the LM mode using the second set of sampling points can be recorded as LM2.
  • This can also be used to replace the original LM mode in the background art with LM1 mode and LM2 mode.
  • the LM class mode includes two modes, LM1 and LM2.
  • TU code Truncated Unary Code
  • the TU code words 0, 10 can be used when these three modes are used together with the existing DM, horizontal, vertical, DC and plane modes in the background art.
  • 110, 1110, 11110, 111110, 1111110, 1111111 represent DM, LM, LMA, LML, horizontal, vertical, DC, and planar modes, respectively.
  • the TU code words 0, 10, 110 can be used when the two modes are used together with the existing DM, horizontal, vertical, DC and plane modes in the background art.
  • 1110, 11110, 111110, 111111 represent DM, LM1, LM2, horizontal, vertical, DC, and planar modes, respectively.
  • the mapping relationship between the set of codewords used and the set of patterns used can also be changed to get a new scheme.
  • one or more modes can be removed from all of the above alternative modes to obtain a new solution.
  • the horizontal and vertical modes can be removed to obtain a new set of selectable chroma prediction modes, and a set of TU codes is used to represent the set of selectable chroma modes.
  • the efficiency of decoding using the TU code is low.
  • the RM mode information and the cbf (coded block flag) information of the luminance component are redundant.
  • the cbf information of the luminance component indicates whether a luminance component of the current block has a non-zero transform coefficient. Since the presence of a non-zero transform coefficient means that the residual signal is not all zero, the absence of a non-zero transform coefficient means that the residual signal is all zero.
  • the only difference between the RM mode and the DM mode is whether or not the luminance component residual signal is used to assist the chrominance component for intra prediction. Obviously, selecting to use the RM mode instead of the DM mode means that the luminance component residual signal is not all zero.
  • the RM mode information and the cbf information of the luminance component are redundant. For example, if the RM mode is selected, the cbf value of the luminance component can be inferred without obtaining the cbf information of the luminance component from the code stream.
  • the RM mode is very similar to the DM mode, the only difference being whether to use the luminance component residual signal to assist The chrominance component is intra predicted. Encoding two highly similar modes as separate two modes increases the codeword length of the remaining modes, while a long TU codeword reduces the efficiency of entropy decoding.
  • an embodiment of the present invention provides a decoding method and apparatus.
  • the context model when the binary symbol is entropy decoded, the context model may be omitted, or a context model may be used, and a context model may be selected from the plurality of context models according to the encoding information of the neighboring block.
  • the binary symbol includes each of the TU code or the FL code.
  • one TU codeword 110 includes three binary symbols having a value of 1, 1, 0, and one FL codeword 10 includes two binary symbols having a value of 1, 0.
  • entropy decoding of a binary symbol without using a context model is a prior art technique, namely the equal probability (in-pass) mode in CABAC technology. It is a prior art to entropy decode a binary symbol using a context model. For example, the first flag in the luminance intra-frame coding and decoding scheme of HEVC uses this entropy decoding method. It is a prior art to select a context model from a plurality of context models for entropy decoding according to the coding information of the neighboring block. For example, the skip mode flag in the HEVC scheme (the skip flag in English) adopts this entropy decoding method. Therefore, the details of the above three entropy decoding methods are not described again.
  • FIG. 1 is a schematic flow chart of a method 10 of decoding according to an embodiment of the present invention, including the following.
  • Chroma component mode information in the code stream.
  • the chroma component intra prediction mode is the DM mode
  • the residual prediction information in the code stream is extracted.
  • the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode
  • the luma component intra prediction mode refers to a process in which the luma component is decoded from the code stream.
  • the obtained luminance component prediction mode determined by the luminance component mode information.
  • the different identification methods in the code stream by the RM mode and the DM mode shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode.
  • the redundant information of the cbf information of the information and the luminance component improves the compression efficiency of the video image.
  • 2 is a schematic flow chart of a decoding method 200 according to another embodiment of the present invention, including the following.
  • the chrominance component mode information may include one or more pieces of information by classifying the patterns in the chrominance component intra prediction mode set.
  • the chroma component mode information may include only one information carried by the TU code, the information having a one-to-one correspondence with the patterns in the intra-prediction mode set of the chroma components.
  • TU code words 0, 10, 110, 1110, 11110, 111110, 1111110, 1111111 may be used to represent DM, LM, LMA, LML, horizontal, vertical, DC, and planar modes, respectively, in the context Also known as the fourth TU code.
  • the intra-frame prediction mode of the chroma component can be determined.
  • the chroma component mode information may include first information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode.
  • the chroma component mode information may further include second information for indicating the chroma component. a remaining mode of an intra prediction mode, the remaining mode being one of available for a chroma component intra prediction mode other than a mode that the first information may determine. For example, if the chroma component intra prediction mode set further includes vertical, horizontal, DC, and planar modes, the remaining mode is one of them.
  • this default specific mode is also referred to as the first default mode.
  • Both the first information and the second information may be carried by a fixed length (FL, fixed length) code or a TU code.
  • the first information may include a one-bit binary symbol.
  • the second fixed length code may use the binary symbols 1, 0 to respectively indicate that the chroma component intra prediction mode is DM.
  • the mode, the chroma component intra prediction mode is not the DM mode.
  • a binary symbol can be either 0 or 1, so it can represent two cases. Obviously, the new implementation method can be obtained by changing the correspondence between the binary symbol values and the represented cases.
  • the binary symbol values 0 and 1 may be used to indicate that the chroma component intra prediction mode is the DM mode and the chroma component intra prediction mode is not the DM mode.
  • the first information is carried by a maximum two-bit TU code, also referred to as a first TU code in the context.
  • the TU code words 0, 10, and 11 may be used to indicate that the chrominance component intra prediction mode is the DM mode, the chrominance component intra prediction mode is the LM class mode, and the chrominance component intra prediction mode is It is not the DM mode and the LM class mode.
  • a TU codeword consists of one or more binary symbols, for example TU codeword 10 consists of binary symbol 1 and binary symbol 0. If all binary symbol values in a set of TU codewords are inverted at the same time, the resulting set of codewords is still a TU codeword. For example, codewords 1, 01, 00 are still a set of TU codewords.
  • a new implementation method can be obtained by changing the mapping relationship between a set of TU code words and the represented situation.
  • the TU code words 0, 10, and 11 may also be used to indicate that the chrominance component intra prediction mode is the LM class mode, the chrominance component intra prediction mode is the DM mode, and the chrominance component intra prediction. The mode is neither the DM mode nor the LM class mode.
  • each of the possible correspondences will not be exhaustive.
  • an implementation method of step 210 is as follows: extracting a second fixed length code from the code stream. Determining, by the second fixed length code, whether the chroma component intra prediction mode is a DM mode; if determining, according to the second fixed length code, that the chroma component intra prediction mode is not a DM mode, further determining the The chroma component intra prediction mode, in which case the first information may further include another one bit binary symbol, a third fixed length code. This content can be explained later with reference to FIG. If the third fixed length code is not included in the first information at this time, it indicates that the chroma component prediction mode cannot be determined from the first information, and the second information needs to be further extracted and the chroma component prediction mode is determined according to the second information.
  • step 210 extracting the first from the code stream
  • a TU code determining, according to the first TU code, whether the chroma component intra prediction mode is a DM mode or an LM mode, or neither a DM mode nor an LM mode.
  • the chroma component mode information determines whether the chroma component intra prediction mode is a DM mode. According to the foregoing, it is determined that the chroma component intra prediction mode is the DM mode, that is, "YES" of 220 of Fig. 2, then the process proceeds to step 230. If it is determined that it is not the DM mode, that is, "No" of 220 of Fig. 2, refer to 310 of Fig. 3 and its subsequent contents.
  • the block prediction (cbf) information may be encoded in the extracted luma component, and the cbf information is determined to indicate that the current block luma component includes non-zero coefficients, and residual prediction information in the code stream is extracted. This removes the redundancy of residual prediction information and cbf information.
  • the residual prediction information may include a binary character indicating the residual prediction flag information.
  • the number that is, the first fixed length code in the context, the residual prediction flag information is used to indicate whether the luminance component residual signal is used to assist the chrominance component for the prediction operation.
  • step 230 is specifically configured to extract a first fixed length code from the code stream.
  • step 240 Determine, according to the first fixed length code, whether the residual prediction flag information indicates that the luma component residual signal is used to perform a prediction operation using the luma component residual signal.
  • the luminance component residual signal is not used, that is, "NO" of 240 of Fig. 2, it proceeds to step 250.
  • step 260 is reached. If the residual prediction factor is the default value, or the residual prediction factor is calculated by the decoding end, step 260 may be omitted, and step 270 is directly performed.
  • the component residual signal refers to the signal generated during the decoding of the luminance component.
  • each of the residual predictors may be assigned an index value, and the TU code or FL code or other coding scheme may be selected to represent the set of index values, where the residual predictor The information is carried by the code words in the selected coding scheme.
  • the correction method used may be to superimpose the chroma component intra prediction signal acquired in accordance with the DM mode prediction method and the residual prediction correction signal.
  • the residual prediction correction signal used may be obtained by appropriately scaling the product of the luminance component residual signal.
  • the luminance component residual signal may be obtained by an appropriate resampling operation by a difference signal between the luminance component sample point reconstruction signal and the luminance component sample point prediction signal, or may be inverse quantized and inversely performed by the luminance transform coefficient signal. Operations such as transformation and resampling are obtained.
  • the above resampling operation is required to obtain the luminance component of the chrominance component sampling point position. Sample value.
  • step 280 is also performed as a prior art, and subsequent image processing takes as input the chroma component intra prediction signal obtained by performing an intra prediction operation on the chroma component using the DM mode.
  • step 260 and step 270 combined with step 280, and finally by step 290, the intra-prediction operation is actually performed on the chroma component in the RM mode, and the subsequent image processing is performed on the corrected chroma component.
  • the intra prediction signal is used as an input.
  • the execution method of the RM mode is highlighted, and the connection between step 250 and step 280 is omitted in FIG.
  • different identification methods of the RM mode and the DM mode in the code stream shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode information.
  • Redundant information existing in the cbf information of the luminance component improves the compression efficiency of the video image.
  • FIG. 3 is a schematic flowchart of a decoding method 300 according to another embodiment of the present invention.
  • the embodiment of the present invention mainly describes how to decode all the optional chroma component intra prediction modes after performing block coding.
  • the chrominance component prediction mode information may include first information and/or second information. As shown in FIG. 3, the embodiment of the present invention does not exclude the case where the chroma component prediction mode information includes only one fourth TU code.
  • Method 300 includes the following.
  • step 320 is performed.
  • step 320 is performed.
  • the chrominance component intra prediction mode does not include the LM class mode
  • the chrominance component intra prediction mode is not the DM mode by using the second fixed length code in the first information, Go to step 350. It is usually known before encoding whether the LM class mode is included in the chroma component intra prediction selectable mode. When the LM class mode is not included, the following third fixed length code does not appear in the encoding. In another implementation manner, the codeword corresponding to the LM class mode will not be included in the TU code, and the decoding end will be omitted. Extraction step.
  • step 330 which is "yes" of step 320. Or, you can pass If the first TU code in a message directly determines that it is not the DM mode or the LM mode, step 350 is performed, or step 380, that is, "No" of step 320.
  • the LM class mode has only one default mode, or the mode in the LM class mode set is a fixed plurality of modes, so when the LM class mode includes only one default mode, optional, execution steps 370, the default mode context is referred to as a second default mode.
  • the LM class mode information can be omitted at the time of encoding, and accordingly, the LM class mode information is not extracted when decoding.
  • the second default mode is used as the chroma component intra prediction mode.
  • 330 when it is determined to be the LM class mode, extract LM class mode information from the code stream.
  • 340 Determine the chroma component intra prediction mode according to the LM class mode information.
  • the LM class mode information can also be carried by the FL code or TU code of the binary symbol.
  • a binary character representing the LM class mode information may be extracted from the code stream, that is, in the context.
  • the fourth fixed length code determines, according to the fourth fixed length code, that the chroma component intra prediction mode is the first LM class mode or the second LM class mode.
  • the LM class mode information includes a fifth fixed length code and a sixth fixed length code. Extracting, from the code stream, the fifth fixed length code in the LM class mode information, and determining, according to the fifth fixed length code, whether the chroma component intra prediction mode is a first LM class mode; And the chrominance component intra prediction mode is not the first LM class mode, further extracting a sixth fixed length code in the LM class mode information from the code stream, and determining the color according to the sixth fixed length code
  • the degree component intra prediction mode is a second LM class mode or a third LM class mode.
  • the LM class mode information is carried by the second TU code. Extracting, by the code stream, the second TU code, determining, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode, or the second LM class mode, or For the third LM class mode. For example, when the second TU is 0, 10, and 11, respectively, the intra chroma prediction mode corresponding to the chroma component is the first LM class mode, the second LM class mode, and the third LM class mode.
  • the first to sixth fixed length FL codes can maximize the efficiency of decoding if they are a binary symbol.
  • the seventh fixed length code is extracted from the code stream, and the chrominance component intra prediction is determined according to the seventh fixed length FL code. mode.
  • the seventh fixed length code herein may be a two-bit FL code, for example, the following correspondence may exist.
  • the seventh fixed length code is 00, 01, 10, and 11
  • the intra-prediction modes of the chroma component are respectively indicated as horizontal, vertical, DC, and planar modes. Thereby, the chroma component intra prediction mode can be determined.
  • the second information is carried by the third TU code
  • extracting the third TU code from the code stream and determining the chroma component intra prediction mode according to the third TU code.
  • the third TU code is 0, 10, 110, and 111
  • the intra-prediction modes of the chroma component are respectively indicated as horizontal, vertical, DC, and planar modes.
  • the chroma component intra prediction mode can be determined.
  • step 380 can replace steps 350 and 360.
  • the method for group identification of the chrominance component intra prediction mode in the code stream shortens the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and improving the compression of the video image. The purpose of efficiency.
  • Figure 4 is a schematic block diagram of a decoding device 40 in accordance with an embodiment of the present invention.
  • the apparatus 40 includes a first extraction unit 41, a first determination unit 42, a second extraction unit 43, and an operation unit 44.
  • the first extracting unit 41 is configured to extract chroma component mode information in the code stream, and the chroma component mode information is used to determine a chroma component intra prediction mode.
  • the first determining unit 42 is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit 41.
  • the second extracting unit 43 is configured to extract residual prediction information in the code stream when the first determining unit 42 determines that the chroma component intra prediction mode is the DM mode.
  • the operation unit 44 is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit 43 to acquire a chroma component intra prediction signal.
  • the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode
  • the luma component intra prediction mode refers to a luma subdivision
  • the luminance component prediction mode is determined based on the luminance component mode information acquired from the code stream.
  • the different identification methods in the code stream by the RM mode and the DM mode shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode.
  • the redundant information of the cbf information of the information and the luminance component improves the compression efficiency of the video image.
  • FIG. 5 is a schematic block diagram of a decoding device 50 in accordance with another embodiment of the present invention.
  • the first extraction unit 51, the first determination unit 52, the second extraction unit 53, and the operation unit 54 of the device 50 are the same as the first extraction unit 41, the first determination unit 42, the second extraction unit 43, and the operation unit 44 of the device 40. Or similar.
  • the difference is that the second extraction unit 53 specifically includes an extraction module 531 and a determination module 532.
  • the operation unit 54 specifically includes an operation module 541, a calculation module 542, and a correction module 543.
  • the first extracting unit 51 is configured to extract chroma component mode information in the code stream, and the chroma component mode information is used to determine a chroma component intra prediction mode.
  • the first determining unit 52 is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit 51.
  • the second extracting unit 53 is configured to extract residual prediction information in the code stream when the first determining unit 52 determines that the chroma component intra prediction mode is the DM mode.
  • the operation unit 54 is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit 53 to acquire a chroma component intra prediction signal.
  • the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode
  • the luma component intra prediction mode refers to a process in which the luma component is decoded, according to the The luminance component prediction mode determined by the luminance component mode information acquired in the code stream.
  • the extracting module 531 is configured to extract, from the code stream, a first fixed length code indicating residual prediction flag information, and the residual prediction flag information. Determining whether to use the luma component residual signal to assist the chroma component for performing a prediction operation.
  • the determining module 532 is configured to determine that the residual prediction flag information indicates that the luma component residual signal is used to perform a prediction operation using the luma component residual signal.
  • the extraction module 531 further extracts residual prediction factor information from the code stream, and the residual prediction factor determined by the residual prediction factor information is used to specify how to use the luminance component residual signal to assist the chrominance component for prediction operation, Wherein the luminance component residual signal refers to a signal calculated and generated during the decoding of the luminance component.
  • the operation module 541 is configured to perform an intra prediction operation on the chroma component by using a prediction method specified by the chroma component intra prediction mode to obtain a chroma component intra prediction signal;
  • the calculation module 542 is configured to calculate a residual prediction correction signal according to the residual prediction factor determined by the determining module 532 and the luminance component residual signal acquired by the operation module 541;
  • the correction module 543 is configured to modify the chroma component intra prediction signal by using the residual prediction correction signal obtained by the calculation module 542 to obtain a modified chroma component intra prediction signal.
  • the second extracting unit is specifically configured to: after the chroma component mode information in the extracted code stream, or after extracting the luma component coding block flag cbf information in the code stream, extract residual prediction in the code stream information.
  • the first extracting unit 51 is specifically configured to extract the first information included in the chroma component mode information in the code stream, where the first determining unit 52 is specifically configured to determine the chroma component according to the first information.
  • Intra prediction mode When the chrominance component intra prediction mode cannot be determined according to the first information, the first extracting unit 51 further extracts second information included in the chrominance component mode information in the code stream, where the first determining unit Determining, according to the second information, the chroma component intra prediction mode, where the first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode, The second information is used to indicate a remaining mode as the chroma component intra prediction mode, the remaining mode being one of available for the chroma component intra prediction mode except the mode that the first information may determine
  • the LM class mode includes one or more modes for calculating a chroma component prediction value using the luma component reconstruction value based on the correlation model.
  • the first extracting unit 51 is specifically configured to extract the second fixed length code from the code stream, where the first determining unit 52 Specifically, it is used to determine, according to the second fixed length code, whether the chroma component intra prediction mode is a DM mode.
  • the first determining unit 52 determines the chrominance component according to the second fixed length code extracted by the first extracting unit 51 If the intra prediction mode is not the DM mode, the first extracting unit 51 further extracts the third fixed length code from the code stream, and the first determining unit 52 determines the according to the third fixed length code. Whether the chroma component intra prediction mode is the LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined. If the first determining unit 52 determines that the chroma component intra prediction mode is not an LM class mode The equation indicates that the chroma component intra prediction mode cannot be determined according to the first information.
  • the first extracting unit 51 is specifically configured to extract the first TU code from the code stream, where the first determining unit is Determining, according to the first TU code, whether the chroma component intra prediction mode is a DM mode or an LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined. Alternatively, if the first determining unit 52 determines that the chroma component intra prediction mode is neither the DM mode nor the LM class mode, it indicates that the chroma component intra prediction mode cannot be determined according to the first information.
  • the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined, and the first extracting unit 51 further extracts the LM from the code stream. Based on the class mode information, the first determining unit 52 determines the chroma component intra prediction mode according to the LM class mode information.
  • the first extraction module is specifically configured to extract, from the code stream, a fourth LM-type mode information.
  • the first length determining unit 52 determines, according to the LM class mode information, that the chroma component intra prediction mode is the first LM class mode or the second LM class mode.
  • the LM class mode information includes a fifth fixed length code and a sixth fixed length
  • the first extracting unit 51 is specifically configured to extract the fifth fixed length code in the LM type mode information from a code stream, where the first determining unit 52 determines according to the fifth fixed length code. Whether the chroma component intra prediction mode is the first LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is not the first LM class mode, the first extracting unit 51 further extracts the sixth setting in the LM class mode information from the code stream. Long code, the first determining unit 52 determines, according to the sixth fixed length code, that the chroma component intra prediction mode is a second LM class mode or a third LM class mode.
  • the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode
  • the LM class mode information is carried by the second TU code
  • the An extracting unit 51 extracts the second TU code from the code stream
  • the first determining unit 52 determines, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode, Or for the second LM class mode, or for the third LM class mode.
  • the first extraction The unit 51 specifically extracts the seventh fixed length FL code from the code stream, and the first determining unit 52 determines the chroma component intra prediction mode according to the seventh fixed length FL code.
  • the first extracting unit 51 is specifically configured to extract the third TU code from the code stream, where the first determining unit 52 is configured according to The third TU code determines the chroma component intra prediction mode.
  • the first extracting unit 51 is specifically configured to extract the fourth TU code from the code stream, where the first determining unit The chrominance component intra prediction mode is determined according to the fourth TU code.
  • the method for group identification in the code stream by the chroma component intra prediction mode shortens the length of the codeword carrying the chroma component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing
  • the redundant information of the RM mode information and the cbf information of the luminance component improves the compression efficiency of the video image.
  • Video encoders, decoders are widely used in a variety of communication devices or electronic devices, such as: media gateways, mobile phones, wireless devices, personal data assistants (PDA, Personal Data Assistant), handheld or portable computers, GPS (Global Positioning) System, Global Positioning System) Receiver/Navigator, Camera, Video Player, Camcorder, VCR, Surveillance Equipment, etc.
  • Such devices include processors, memory, and interfaces for transmitting data.
  • the video codec can be implemented directly by a digital circuit or chip such as a DSP (Digital Signal Processor), or by software code to drive the processor to execute the flow in the software code.
  • DSP Digital Signal Processor
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative
  • the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be Ignore, or not execute.
  • the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
  • the units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium.
  • the technical solution of the present invention which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including
  • the instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

Embodiments of the present invention provide a decoding method and device. The method comprises: extracting chrominance component mode information in a code stream, the chrominance component mode information being used for determining a chrominance component intra-frame prediction mode; determining a chrominance component intra-frame prediction mode according to the chrominance component mode information; when it is determined that the chrominance component intra-frame prediction mode is a DM mode, extracting residual prediction information in the code stream; and performing a chrominance component prediction operation according to the residual prediction information, so as to obtain a chrominance component intra-frame prediction signal. The technical solution, by means of different identification methods of the RM mode and DM mode in a code stream, shortens the length of a code word carrying the chrominance component prediction mode information, thereby reducing the complexity of decoding on mode information, and achieving the purposes of removing redundant information in RM mode information and in cbf information of a brightness component, and improving the compression efficiency of a video image.

Description

解码方法和装置 技术领域  Decoding method and device
本发明涉及视频图像处理领域, 并且更具体地, 涉及解码方法和装置。 背景技术  The present invention relates to the field of video image processing and, more particularly, to a decoding method and apparatus. Background technique
现有视频图像编解码技术中包括帧内编码技术与帧间编码技术。 帧内编 码指仅利用当前编码图像中的空间相关性对图像内容进行压缩编码的技术。 帧间编码指利用当前编码图像与已编码图像的时间相关性对当前图像进行 压缩编码的技术。 为提高图像的帧内编码效率, H.264/AVC ( Advanced Video Coding, 先进的视频编码)标准首次引入帧内预测技术来去除当前编码图像 块与邻近已编码图像块的空间信息冗余。因此,与之前的帧内编码技术不同, H.264/AVC仅需要对预测差值信号而非原始图像信号, 进行空间变换与熵编 码, 从而提高帧内编码效率。  Existing video image coding and decoding technologies include intra coding techniques and interframe coding techniques. Intra coding refers to a technique of compressing and encoding image content using only spatial correlation in the current encoded image. Inter-frame coding refers to a technique of compression-encoding a current picture using the temporal correlation of the current coded picture with the coded picture. To improve the intraframe coding efficiency of images, the H.264/AVC (Advanced Video Coding, Advanced Video Coding) standard introduces intra prediction techniques for the first time to remove spatial information redundancy between currently coded image blocks and adjacent coded image blocks. Therefore, unlike the previous intraframe coding technique, H.264/AVC only needs to perform spatial transform and entropy coding on the prediction difference signal instead of the original image signal, thereby improving the intra coding efficiency.
视频图像信号通常包括一个亮度分量与两个色度分量。 HEVC ( High A video image signal typically includes one luminance component and two chrominance components. HEVC ( High
Efficiency Video Coding, 高效视频编码 )方案为当前国际标准化组织正在研 究的新一代视频编码标准化方案,它继承了 H.264/AVC标准中的帧内预测编 码技术, 并针对色度分量引入了新的帧内预测模式 LM模式。 当使用 LM模 式时, 图像块的色度分量预测值, 将由对应块的亮度分量重采样的重建值通 过线性模型计算得到。 因此, LM模式与传统的方向性帧内预测模式不同, 它利用图像信号亮度分量与色度分量的相关性,使用亮度分量值预测色度分 量值的方法。 The Efficiency Video Coding, a highly efficient video coding scheme, is a new generation of video coding standardization scheme currently being studied by the International Organization for Standardization. It inherits the intra prediction coding technique in the H.264/AVC standard and introduces new features for chrominance components. Intra prediction mode LM mode. When the LM mode is used, the chrominance component prediction value of the image block is calculated by the linear model from the reconstructed value resampled by the luminance component of the corresponding block. Therefore, the LM mode is different from the conventional directional intra prediction mode in that it uses the correlation between the luminance component and the chrominance component of the image signal, and uses the luminance component value to predict the chrominance component value.
HEVC方案继承了 H.264/AVC标准中的帧内预测编码技术并进行扩展。 其中图像块色度分量所有可选帧内预测模式组成预测模式集合,全称为色度 分量帧内预测模式集合, 包括下述 6种预测模式:  The HEVC scheme inherits and extends the intra prediction coding technique in the H.264/AVC standard. The image block chrominance component includes all selectable intra prediction modes to form a prediction mode set, which is called a chrominance component intra prediction mode set, and includes the following six prediction modes:
DM模式: 使用当前块的亮度分量的帧内预测模式作为色度分量的预测 模式, 进行预测;  DM mode: using the intra prediction mode of the luminance component of the current block as a prediction mode of the chrominance component, and performing prediction;
LM模式: 基于线性模型用采样点点亮度分量的值计算色度分量的预测 值, 线性模型参数由当前块邻近的采样点的亮度分量值与色度分量值计算得 到;  LM mode: The predicted value of the chroma component is calculated based on the value of the sampled point luminance component based on the linear model, and the linear model parameter is calculated from the luminance component value and the chroma component value of the sample point adjacent to the current block;
DC模式: 使用当前块邻近的采样点的色度分量的值的平均值作为当前 块色度分量的预测值; DC mode: Use the average of the values of the chroma components of the sample points adjacent to the current block as the current a predicted value of the block chrominance component;
平面 (英文为 Planar)模式: 基于采样点的值在空间线性平滑变化的假设 计算当前块采样点的预测值;  Plane (Planar) mode: Calculate the predicted value of the current block sample point based on the assumption that the value of the sample point changes linearly in space;
水平模式: 使用正左侧邻近采样点色度分量的值作为当前块同一行内所 有采样点色度分量的预测值;  Horizontal mode: use the value of the chrominance component of the adjacent sampling point on the left side as the predicted value of the chrominance components of all sampling points in the same row of the current block;
竖直模式: 使用正上方邻近采样点色度分量的值作为当前块同一列内所 有采样点色度分量的预测值。  Vertical mode: Use the value of the chroma component adjacent to the sample point directly above as the predicted value of the chroma component of all samples in the same column of the current block.
除上述预测模式外, 还有一个替补模式。 若 DM模式与预测模式集合中 其余预测模式相同时, 则使用替补模式替换与 DM模式相同的色度预测模 式, 从而构成新的预测模式集合。 替补模式可以是与色度分量预测模式集合 中所有模式均不相同的预测模式。  In addition to the above prediction mode, there is also a substitute mode. If the DM mode is the same as the remaining prediction modes in the prediction mode set, the same chrominance prediction mode as the DM mode is replaced with the replacement mode to form a new prediction mode set. The alternate mode may be a prediction mode that is different from all of the modes in the chroma component prediction mode set.
随着技术的发展, 针对上述的 DM模式出现了一种改进的色度预测模 式, 也就是 RM模式。 RM模式与 DM模式的区别在于是否使用亮度分量残 差信号辅助色度分量进行帧内预测。 此外, 针对上述的 LM模式出现了一类 相似的色度预测模式, 下文中将此类的色度预测模式统称为 LM类模式。 相 关技术中对上述诸多的色度预测模式使用 TU ( Truncated Unary, 截断一元 ) 码方案进行编解码, 会增加色度预测模式的码字长度, 而长的 TU码会导致 解码效率降低。 发明内容  With the development of technology, an improved chromaticity prediction mode, that is, the RM mode, has appeared for the above DM mode. The difference between the RM mode and the DM mode is whether or not the luminance component residual signal is used to assist the chrominance component for intra prediction. In addition, a similar type of chroma prediction mode appears for the above LM mode, and the chroma prediction modes of this class are collectively referred to as the LM class mode hereinafter. In the related art, the TU (Truncated Unary) code scheme is used for encoding and decoding the above-mentioned chrominance prediction modes, which increases the codeword length of the chrominance prediction mode, and the long TU code causes the decoding efficiency to decrease. Summary of the invention
本发明实施例提供一种解码的方法和装置, 能够提高解码效率。  Embodiments of the present invention provide a decoding method and apparatus, which can improve decoding efficiency.
一方面, 提供了一种解码的方法, 包括: 提取码流中的色度分量模式信 息, 色度分量模式信息用于确定色度分量帧内预测模式; 根据色度分量模式 信息确定色度分量帧内预测模式; 当确定色度分量帧内预测模式为 DM模式 时, 提取码流中的残差预测信息; 根据残差预测信息进行色度分量预测操作 以获取色度分量帧内预测信号,其中 DM模式指使用亮度分量帧内预测模式 所规定预测方法对色度分量进行帧内预测操作的模式,且亮度分量帧内预测 模式指在亮度分量解码过程中,根据从码流中获取的亮度分量模式信息确定 的亮度分量预测模式。  In one aspect, a decoding method is provided, including: extracting chroma component mode information in a code stream, the chroma component mode information is used to determine a chroma component intra prediction mode; and determining a chroma component according to chroma component mode information. An intra prediction mode; when determining that the chroma component intra prediction mode is the DM mode, extracting residual prediction information in the code stream; performing a chroma component prediction operation according to the residual prediction information to obtain a chroma component intra prediction signal, The DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode, and the luma component intra prediction mode refers to a luminance acquired from a code stream in a luminance component decoding process. The luminance component prediction mode determined by the component mode information.
另一方面,提供了一种解码的装置, 包括第一提取单元、第一确定单元、 第二提取单元和操作单元, 其中第一提取单元, 用于提取码流中的色度分量 模式信息, 色度分量模式信息用于确定色度分量帧内预测模式; 第一确定单 元, 用于根据第一提取单元提取的色度分量模式信息确定色度分量帧内预测 模式; 第二提取单元, 用于当第一确定单元确定色度分量帧内预测模式为In another aspect, a decoding apparatus is provided, including a first extracting unit, a first determining unit, a second extracting unit, and an operating unit, wherein the first extracting unit is configured to extract a chroma component in the code stream The mode information, the chroma component mode information is used to determine a chroma component intra prediction mode; the first determining unit is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit; a unit, configured to: when the first determining unit determines that the chroma component intra prediction mode is
DM模式时, 提取码流中的残差预测信息; 操作单元, 用于根据第二提取单 元提取的残差预测信息进行色度分量预测操作以获取色度分量帧内预测信 号,其中 DM模式指使用亮度分量帧内预测模式所规定预测方法对色度分量 进行帧内预测操作的模式,且亮度分量帧内预测模式指在亮度分量解码过程 中, 根据从码流中获取的亮度分量模式信息确定的亮度分量预测模式。 In the DM mode, the residual prediction information in the code stream is extracted; the operation unit is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit to obtain a chroma component intra prediction signal, where the DM mode refers to A mode of performing an intra prediction operation on a chroma component using a prediction method specified by a luma component intra prediction mode, and a luma component intra prediction mode refers to determining, according to luma component mode information acquired from a code stream, in a luma component decoding process Luminance component prediction mode.
上述技术方案通过 RM模式和 DM模式在码流中的不同标识方法,缩短 了携带色度分量预测模式信息的码字长度,从而降低模式信息上解码的复杂 度, 且从而达到去除 RM模式信息与亮度分量的 cbf信息存在的冗余信息, 提高视频图像的压缩效率的目的。 附图说明  The above technical solution shortens the codeword length of the chrominance component prediction mode information by using different identification methods of the RM mode and the DM mode in the code stream, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode information and The redundant information of the cbf information of the luminance component improves the compression efficiency of the video image. DRAWINGS
为了更清楚地说明本发明实施例的技术方案, 下面将对本发明实施例中 所需要使用的附图作筒单地介绍, 显而易见地, 下面所描述的附图仅仅是本 发明的一些实施例, 对于本领域普通技术人员来讲, 在不付出创造性劳动的 前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings to be used in the embodiments of the present invention will be briefly described below. Obviously, the drawings described below are only some embodiments of the present invention. Other drawings may also be obtained from those of ordinary skill in the art in view of the drawings.
图 1是本发明实施例的解码的方法的示意流程图。  FIG. 1 is a schematic flow chart of a method of decoding according to an embodiment of the present invention.
图 2是本发明另一实施例的解码的方法的示意流程图。  2 is a schematic flow chart of a method of decoding according to another embodiment of the present invention.
图 3是本发明又一实施例的解码的方法的示意流程图。  3 is a schematic flow chart of a method of decoding according to still another embodiment of the present invention.
图 4是本发明实施例的解码装置的示意框图。  4 is a schematic block diagram of a decoding apparatus according to an embodiment of the present invention.
图 5是本发明另一实施例的解码装置的示意框图。 具体实施方式  Figure 5 is a schematic block diagram of a decoding apparatus according to another embodiment of the present invention. detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行 清楚、 完整地描述, 显然, 所描述的实施例是本发明的一部分实施例, 而不 是全部实施例。 基于本发明中的实施例, 本领域普通技术人员在没有做出创 造性劳动的前提下所获得的所有其他实施例, 都应属于本发明保护的范围。  The technical solutions in the embodiments of the present invention are clearly and completely described in the following with reference to the accompanying drawings in the embodiments of the present invention. It is obvious that the described embodiments are a part of the embodiments of the present invention, and not all embodiments. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without making creative labor are within the scope of the present invention.
本文中术语"和 /或",仅仅是一种描述关联对象的关联关系,表示可以存 在三种关系, 例如, A和 /或 B, 可以表示: 单独存在 A, 同时存在 A和 B, 单独存在 B这三种情况。 另外, 本文中字符 "/" , 一般表示前后关联对象是 一种 "或" 的关系。 The term "and/or" in this context is merely an association describing the associated object, indicating that there may be three relationships, for example, A and / or B, which may mean: A exists separately, and A and B exist simultaneously. There are three cases of B alone. In addition, the character "/" in this article generally indicates that the contextual object is an "or" relationship.
本发明实施例中的色度分量可以指两个色度分量中的任意一个色度分 量。 举例来说, 当色度预测模式集合包括 DM模式、 LM模式, DC模式、 竖直模式、 水平模式以及平面模式时, 相关技术中色度编码方案使用 TU码 对当前块的模式信息进行二值化, 再对二值化后的二进制符号使用 CABAC (Context Cased Binary Arithmetic Coding,基于上下文二进制算数编码)技术进 行熵编码。 例如, 在 HE ( High Efficiency, 高效) 配置条件下, DM、 LM、 竖直、 水平、 DC与平面 6种模式可分别使用 TU码字 0, 10, 110, 1110, 11110, 11111表示; 在 LC ( Low Complexity, 低复杂度)配置条件下, DM、 竖直、 水平、 DC与平面 5种模式可分别使用 TU码字 0, 10, 110, 1110, 1111表示。 解码端则根据解析得到的 TU码字确定当前块色度分量的预测模 式。  The chrominance component in the embodiment of the present invention may refer to any one of the two chrominance components. For example, when the chrominance prediction mode set includes the DM mode, the LM mode, the DC mode, the vertical mode, the horizontal mode, and the planar mode, the chrominance coding scheme in the related art uses the TU code to perform binary value on the mode information of the current block. Then, the binarized binary symbols are entropy encoded using CABAC (Context Cased Binary Arithmetic Coding) technology. For example, in the HE (High Efficiency) configuration, the DM, LM, Vertical, Horizontal, DC, and Plane modes can be represented by the TU code words 0, 10, 110, 1110, 11110, 11111, respectively; (Low Complexity, low complexity) configuration, DM, vertical, horizontal, DC and plane modes can be represented by TU code words 0, 10, 110, 1110, 1111 respectively. The decoding end determines the prediction mode of the current block chrominance component based on the parsed TU codeword.
RM模式与 DM模式相同之处在于,同样采用亮度分量预测模式所规定的 预测方法对色度分量进行帧内预测操作以获取色度分量预测信号。 与 DM模 式不同之处在于, RM模式进一步使用亮度分量残差信号辅助色度分量进行 预测。 RM模式根据从码流中获取的信息确定残差预测因子, 并根据亮度分 量残差信号与残差预测因子计算得到残差预测修正信号,再使用该残差预测 修正信号对按照 DM模式预测方法获取的色度分量帧内预测信号进行修正。  The RM mode is the same as the DM mode in that the intra-prediction operation is performed on the chroma component by the prediction method specified by the luma component prediction mode to obtain the chroma component prediction signal. The difference from the DM mode is that the RM mode further uses the luminance component residual signal to assist the chrominance component for prediction. The RM mode determines a residual prediction factor according to the information obtained from the code stream, and calculates a residual prediction correction signal according to the luminance component residual signal and the residual prediction factor, and then uses the residual prediction correction signal pair according to the DM mode prediction method. The acquired chroma component intra prediction signal is corrected.
RM模式与其它可选色度模式一起, 使用 TU码对模式信息进行编码。 例 如, 若其它可选模式包括 DM、 LM、 竖直、 水平、 DC与平面模式, 则可使 用 TU码字 0、 10、 110、 1110、 11110、 111110、 111111分别表示 DM、 LM、 RM、 水平、 竖直、 DC与平面模式。 显然, 所使用的一组码字与所使用的一 组模式的映射关系也可以改变而得到新的方案。 此外, 也可以减少可选模式 的数量而得到新的方案。 例如, 可以去除水平与竖直模式, 得到新的一组可 选色度预测模式, 并对应的使用一组 TU码来表示这组可选色度模式。  The RM mode, along with other selectable chroma modes, encodes the mode information using the TU code. For example, if other selectable modes include DM, LM, vertical, horizontal, DC, and planar modes, the TU code words 0, 10, 110, 1110, 11110, 111110, 111111 can be used to represent DM, LM, RM, horizontal, respectively. , vertical, DC and flat mode. Obviously, the mapping relationship between the set of codewords used and the set of patterns used can also be changed to obtain a new scheme. In addition, you can also reduce the number of optional modes to get a new solution. For example, the horizontal and vertical modes can be removed to obtain a new set of selectable chroma prediction modes, and a set of TU codes is used to represent the set of selectable chroma modes.
LM类模式表示这样一组色度预测模式, 它们与背景技术中 LM技术相 似, 都是基于线性模型用采样点亮度分量的值计算色度分量的预测值, 它们 的不同之处在于选取不同的邻近采样点来计算线性模型参数。 LM类模式可 以包括一个或多个模式。 LM模式特指背景技术中的 LM模式。  The LM class mode represents such a set of chrominance prediction modes, which are similar to the LM technique in the background art, and are based on the linear model to calculate the predicted values of the chrominance components using the values of the sampled point luminance components, which differ in that different ones are selected. The linear model parameters are calculated adjacent to the sampling points. The LM class mode can include one or more modes. The LM mode refers specifically to the LM mode in the background art.
例如, 对 LM模式进行改进, 得到 LML模式与 LMA模式。 其中, LML模 式仅使用当前块左侧邻近采样点的重建值来计算模型参数,而 LMA仅使用当 前块上方邻近采样点的重建值来计算模型参数。 此时 LM类模式包括 LM模 式、 LMA模式与 LML模式三种模式。 For example, the LM mode is improved to obtain the LML mode and the LMA mode. Among them, LML mode The model calculates the model parameters using only the reconstructed values of the adjacent sample points on the left side of the current block, while the LMA uses only the reconstructed values of the adjacent sample points above the current block to calculate the model parameters. At this time, the LM class mode includes three modes of LM mode, LMA mode, and LML mode.
根据邻近采样点的选取不同, 还可以得到其它的 LM模式的改进模式。 例如, 可以将所有邻近采样点划分为互不重复的第一组采样点与第二组采样 点。 使用第一组采样点的 LM模式可记作 LM1 , 使用第二组采样点的 LM模式 可记作 LM2。 这样也可以使用 LM1模式和 LM2模式替代背景技术中的原 LM 模式。 此时 LM类模式包括 LM1与 LM2两种模式。  Other improved modes of the LM mode are also available depending on the selection of adjacent sampling points. For example, all adjacent sampling points can be divided into a first set of sampling points and a second set of sampling points that are not mutually exclusive. The LM mode using the first set of sampling points can be recorded as LM1, and the LM mode using the second set of sampling points can be recorded as LM2. This can also be used to replace the original LM mode in the background art with LM1 mode and LM2 mode. At this time, the LM class mode includes two modes, LM1 and LM2.
所有 LM类模式与其它色度预测模式一起, 使用 TU码 ( Truncated Unary Code,截断一元码)对模式信息进行编码。例如,若 LM类模式包括 LM, LML 与 LMA, 将这三种模式与背景技术中已有的 DM、 水平、 竖直、 DC与平面模 式一起使用时,则可使用 TU码字 0、 10、 110、 1110、 11110、 111110、 1111110、 1111111分别表示 DM、 LM、 LMA、 LML、 水平、 竖直、 DC与平面模式。 再例如, 若 LM类模式包括 LM1与 LM2, 将这两种模式与背景技术中已有的 DM、 水平、 竖直、 DC与平面模式一起使用时, 则可使用 TU码字 0、 10、 110、 1110、 11110、 111110、 111111分别表示 DM、 LM1、 LM2、 水平、 竖直、 DC与平面模式。 显然, 所使用的一组码字与所使用的一组模式的映射关系 也可以改变而得到新的方案。 此外, 也可以从上述所有可选模式中去除一个 或多个模式而得到新的方案。 例如, 可以去除水平与竖直模式, 得到新的一 组可选色度预测模式, 并对应的使用一组 TU码来表示这组可选色度模式。  All LM class modes, along with other chroma prediction modes, encode the mode information using a TU code (Truncated Unary Code). For example, if the LM class mode includes LM, LML and LMA, the TU code words 0, 10 can be used when these three modes are used together with the existing DM, horizontal, vertical, DC and plane modes in the background art. 110, 1110, 11110, 111110, 1111110, 1111111 represent DM, LM, LMA, LML, horizontal, vertical, DC, and planar modes, respectively. For another example, if the LM class mode includes LM1 and LM2, the TU code words 0, 10, 110 can be used when the two modes are used together with the existing DM, horizontal, vertical, DC and plane modes in the background art. , 1110, 11110, 111110, 111111 represent DM, LM1, LM2, horizontal, vertical, DC, and planar modes, respectively. Obviously, the mapping relationship between the set of codewords used and the set of patterns used can also be changed to get a new scheme. In addition, one or more modes can be removed from all of the above alternative modes to obtain a new solution. For example, the horizontal and vertical modes can be removed to obtain a new set of selectable chroma prediction modes, and a set of TU codes is used to represent the set of selectable chroma modes.
当色度预测模式集合包括 DM、 RM、 LM类、 水平、 竖直、 DC与平面模 式时, 使用 TU码进行解码的效率偏低。  When the set of chroma prediction modes includes DM, RM, LM class, horizontal, vertical, DC, and planar modes, the efficiency of decoding using the TU code is low.
此外, RM模式信息与亮度分量的 cbf ( coded block flag, 编码块标记) 信息存在冗余。 所述亮度分量的 cbf信息表示当前块的亮度分量是否存在非 0 变换系数。 因为存在非 0变换系数意味着残差信号不全为 0, 而不存在非 0变 换系数意味着残差信号全为 0。 一方面, RM模式与 DM模式的唯一区别在于 是否使用亮度分量残差信号辅助色度分量进行帧内预测,显然,选择使用 RM 模式而非 DM模式意味着亮度分量残差信号不全为 0。 所以, RM模式信息与 亮度分量的 cbf信息存在冗余。 例如, 如果选择 RM模式, 那么可以推理获知 亮度分量的 cbf数值, 而无需从码流中获取亮度分量的 cbf信息。 另一方面, RM模式与 DM模式非常相似,唯一区别在于是否使用亮度分量残差信号辅助 色度分量进行帧内预测。将两种高度相似的模式作为独立的两个模式进行编 码会增加其余模式的码字长度, 而长的 TU码字会降低熵解码的效率。 In addition, the RM mode information and the cbf (coded block flag) information of the luminance component are redundant. The cbf information of the luminance component indicates whether a luminance component of the current block has a non-zero transform coefficient. Since the presence of a non-zero transform coefficient means that the residual signal is not all zero, the absence of a non-zero transform coefficient means that the residual signal is all zero. On the one hand, the only difference between the RM mode and the DM mode is whether or not the luminance component residual signal is used to assist the chrominance component for intra prediction. Obviously, selecting to use the RM mode instead of the DM mode means that the luminance component residual signal is not all zero. Therefore, the RM mode information and the cbf information of the luminance component are redundant. For example, if the RM mode is selected, the cbf value of the luminance component can be inferred without obtaining the cbf information of the luminance component from the code stream. On the other hand, the RM mode is very similar to the DM mode, the only difference being whether to use the luminance component residual signal to assist The chrominance component is intra predicted. Encoding two highly similar modes as separate two modes increases the codeword length of the remaining modes, while a long TU codeword reduces the efficiency of entropy decoding.
作为针对上述技术方案的改进, 本发明实施例提供了一种解码的方法和 装置。  As an improvement to the above technical solution, an embodiment of the present invention provides a decoding method and apparatus.
本发明实施例中, 在对二进制符号进行熵解码时, 可以不使用上下文模 型, 也可以使用一个上下文模型, 还可以根据邻近块的编码信息从多个上下 文模型中选择一个上下文模型。 所述二进制符号包括 TU码或 FL码中的每 一个二进制符号。 例如, 一个 TU码字 110包括取值为 1、 1、 0的三个二进 制符号, 一个 FL码字 10包括取值为 1、 0的两个二进制符号。  In the embodiment of the present invention, when the binary symbol is entropy decoded, the context model may be omitted, or a context model may be used, and a context model may be selected from the plurality of context models according to the encoding information of the neighboring block. The binary symbol includes each of the TU code or the FL code. For example, one TU codeword 110 includes three binary symbols having a value of 1, 1, 0, and one FL codeword 10 includes two binary symbols having a value of 1, 0.
需注意的是, 不使用上下文模型对一个二进制符号进行熵解码是已有技 术, 即 CABAC技术中的等概率(英文为 by-pass )模式。 使用一个上下文模 型对一个二进制符号进行熵解码是已有技术,例如 HEVC的亮度帧内模式编 解码方案中的第一个 flag就是采用这种熵解码方法。根据邻近块的编码信息 从多个上下文模型中选择一个上下文模型进行熵解码是已有技术, 例如 HEVC方案中的跳过模式标记(英文为 skip flag )就是采用这种熵解码方法。 因此对上述三种熵解码方法的细节不再赘述。  It should be noted that entropy decoding of a binary symbol without using a context model is a prior art technique, namely the equal probability (in-pass) mode in CABAC technology. It is a prior art to entropy decode a binary symbol using a context model. For example, the first flag in the luminance intra-frame coding and decoding scheme of HEVC uses this entropy decoding method. It is a prior art to select a context model from a plurality of context models for entropy decoding according to the coding information of the neighboring block. For example, the skip mode flag in the HEVC scheme (the skip flag in English) adopts this entropy decoding method. Therefore, the details of the above three entropy decoding methods are not described again.
图 1是本发明实施例的解码的方法 10的示意流程图, 包括以下内容。 FIG. 1 is a schematic flow chart of a method 10 of decoding according to an embodiment of the present invention, including the following.
11 , 提取码流中的色度分量模式信息。 所述色度分量模式信息 11 . Extract chroma component mode information in the code stream. Chroma component mode information
12, 根据所述色度分量模式信息确定色度分量帧内预测模式。  12. Determine a chroma component intra prediction mode according to the chroma component mode information.
13, 当所述色度分量帧内预测模式为 DM模式时, 提取所述码流中的残 差预测信息。  13. When the chroma component intra prediction mode is the DM mode, the residual prediction information in the code stream is extracted.
14,根据所述残差预测信息进行色度分量预测操作以获取色度分量帧内 预测信号。  14. Perform a chroma component prediction operation based on the residual prediction information to obtain a chroma component intra prediction signal.
其中, DM模式指使用亮度分量帧内预测模式所规定预测方法对色度分 量进行帧内预测操作的模式,且亮度分量帧内预测模式指在亮度分量解码过 程中, 根据从所述码流中获取的亮度分量模式信息确定的亮度分量预测模 式。  Wherein, the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode, and the luma component intra prediction mode refers to a process in which the luma component is decoded from the code stream. The obtained luminance component prediction mode determined by the luminance component mode information.
本发明实施例中通过 RM模式和 DM模式在码流中的不同标识方法,缩 短了携带色度分量预测模式信息的码字长度,从而降低模式信息上解码的复 杂度,且从而达到去除 RM模式信息与亮度分量的 cbf信息存在的冗余信息, 提高视频图像的压缩效率的目的。 图 2是本发明另一实施例的解码方法 200的示意流程图,包括以下内容。In the embodiment of the present invention, the different identification methods in the code stream by the RM mode and the DM mode shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode. The redundant information of the cbf information of the information and the luminance component improves the compression efficiency of the video image. 2 is a schematic flow chart of a decoding method 200 according to another embodiment of the present invention, including the following.
210, 提取码流中的色度分量模式信息, 所述色度分量模式信息用于确 定色度分量帧内预测模式。 210. Extract chroma component mode information in the code stream, where the chroma component mode information is used to determine a chroma component intra prediction mode.
通过对色度分量帧内预测模式集合中的模式进行分类, 色度分量模式信 息可以包括一个或多个信息。  The chrominance component mode information may include one or more pieces of information by classifying the patterns in the chrominance component intra prediction mode set.
例如, 色度分量模式信息可以只包括一个由 TU码携带的信息, 该信息 与色度分量帧内预测模式集合中的模式有一一对应的关系。 举例来说, 可使 用 TU码字 0、 10、 110、 1110、 11110、 111110、 1111110、 1111111分别表示 DM、 LM、 LMA、 LML、 水平、 竖直、 DC与平面模式, 该 TU码在上下文 中也称为第四 TU码。 通过提取该第四 TU码, 即可以确定色度分量帧内预 测模式。  For example, the chroma component mode information may include only one information carried by the TU code, the information having a one-to-one correspondence with the patterns in the intra-prediction mode set of the chroma components. For example, TU code words 0, 10, 110, 1110, 11110, 111110, 1111110, 1111111 may be used to represent DM, LM, LMA, LML, horizontal, vertical, DC, and planar modes, respectively, in the context Also known as the fourth TU code. By extracting the fourth TU code, the intra-frame prediction mode of the chroma component can be determined.
可选的, 色度分量模式信息可以包括用于指示所述色度分量帧内预测模 式是否为 DM模式或 LM类模式的第一信息。 此外, 当根据第一信息确定所 述色度分量帧内预测模式既不是 DM模式, 也不是 LM类模式时, 色度分量 模式信息还可以包括第二信息, 用于指示作为所述色度分量帧内预测模式的 剩余模式, 所述剩余模式为除所述第一信息可能确定的模式外的可用于色度 分量帧内预测模式的其中之一。 例如, 色度分量帧内预测模式集合如果还包 括竖直、 水平、 DC与平面模式, 则剩余模式为其中的一个。 如果确定当色 度分量帧内预测模式既不是 DM模式,也不是 LM类模式而是缺省的特定模 式时, 编码时则不会包括第二信息, 相应地, 解码时也不用提取第二信息。 出于说明的方便, 该缺省的特定模式也称为第一缺省模式。  Optionally, the chroma component mode information may include first information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode. In addition, when it is determined that the chroma component intra prediction mode is neither the DM mode nor the LM class mode according to the first information, the chroma component mode information may further include second information for indicating the chroma component. a remaining mode of an intra prediction mode, the remaining mode being one of available for a chroma component intra prediction mode other than a mode that the first information may determine. For example, if the chroma component intra prediction mode set further includes vertical, horizontal, DC, and planar modes, the remaining mode is one of them. If it is determined that when the chroma component intra prediction mode is neither the DM mode nor the LM class mode but the default specific mode, the second information is not included in the encoding, and accordingly, the second information is not extracted during decoding. . For convenience of explanation, this default specific mode is also referred to as the first default mode.
第一信息和第二信息均可以由定长(FL, fixed Length )码或 TU码携带。 第一信息可以包括一个一位的二进制符号, 上下文中也称为第二定长码 时, 该第二定长码可以使用二进制符号 1、 0分别表示所述色度分量帧内预 测模式为 DM模式、 所述色度分量帧内预测模式不是 DM模式这两种情况。 一个二进制符号可以为 0也可以为 1 , 因此可以表示两种情况。 显而易见, 可以改变二进制符号取值与所表示情况的对应关系而得到新的实施方法。例 如, 还可以使用二进制符号取值 0、 1分别表示所述色度分量帧内预测模式 为 DM模式、所述色度分量帧内预测模式不是 DM模式这两种情况。 下面在 描述使用一位二进制符号来确定两种情况其中之一时,将不再给出具体的对 应关系。 或者,第一信息由一个最大两位的 TU码携带,上下文中也称为第一 TU 码。 例如可以使用 TU码字 0、 10、 11分别表示所述色度分量帧内预测模式 为 DM模式、 所述色度分量帧内预测模式为 LM类模式、 所述色度分量帧内 预测模式既不是 DM模式也不时 LM类模式这三种情况。 一个 TU码字由一 个或多个二进制符号组成,例如 TU码字 10由二进制符号 1与二进制符号 0 组成。 若同时反转一组 TU码字中所有二进制符号值, 则得到的一组码字仍 为 TU码字。 例如, 码字 1、 01、 00仍然为一组 TU码字。 此外, 显而易见, 可以改变一组 TU码字与所表示情况的映射关系而得到新的实施方法。例如, 也可以使用 TU码字 0、 10、 11分别表示所述色度分量帧内预测模式为 LM 类模式、 所述色度分量帧内预测模式为 DM模式、 所述色度分量帧内预测模 式既不是 DM模式也不时 LM类模式这三种情况。 下面在描述使用一组 TU 码字来确定多种情况其中之一时, 将不再穷举每一中可能的对应关系。 Both the first information and the second information may be carried by a fixed length (FL, fixed length) code or a TU code. The first information may include a one-bit binary symbol. When the context is also referred to as a second fixed length code, the second fixed length code may use the binary symbols 1, 0 to respectively indicate that the chroma component intra prediction mode is DM. The mode, the chroma component intra prediction mode is not the DM mode. A binary symbol can be either 0 or 1, so it can represent two cases. Obviously, the new implementation method can be obtained by changing the correspondence between the binary symbol values and the represented cases. For example, the binary symbol values 0 and 1 may be used to indicate that the chroma component intra prediction mode is the DM mode and the chroma component intra prediction mode is not the DM mode. In the following description, when one bit binary symbol is used to determine one of the two cases, the specific correspondence will not be given. Alternatively, the first information is carried by a maximum two-bit TU code, also referred to as a first TU code in the context. For example, the TU code words 0, 10, and 11 may be used to indicate that the chrominance component intra prediction mode is the DM mode, the chrominance component intra prediction mode is the LM class mode, and the chrominance component intra prediction mode is It is not the DM mode and the LM class mode. A TU codeword consists of one or more binary symbols, for example TU codeword 10 consists of binary symbol 1 and binary symbol 0. If all binary symbol values in a set of TU codewords are inverted at the same time, the resulting set of codewords is still a TU codeword. For example, codewords 1, 01, 00 are still a set of TU codewords. In addition, it is obvious that a new implementation method can be obtained by changing the mapping relationship between a set of TU code words and the represented situation. For example, the TU code words 0, 10, and 11 may also be used to indicate that the chrominance component intra prediction mode is the LM class mode, the chrominance component intra prediction mode is the DM mode, and the chrominance component intra prediction. The mode is neither the DM mode nor the LM class mode. In the following description, when a set of TU code words is used to determine one of a plurality of cases, each of the possible correspondences will not be exhaustive.
可选的, 步骤 210的一种实施方法描述如下: 从所述码流中提取第二定 长码。 该第二定长码确定所述色度分量帧内预测模式是否为 DM模式; 若根 据该第二定长码确定所述色度分量帧内预测模式不是 DM模式,则还需进一 步确定所述色度分量帧内预测模式,此时第一信息中还可以包括另一个一位 的二进制符号, 第三定长码。 该内容可以稍后参考图 3说明。 若此时第一信 息中不包含第三定长码, 则表明无法从第一信息确定色度分量预测模式, 而 需要进一步提取第二信息并根据第二信息确定色度分量预测模式。  Optionally, an implementation method of step 210 is as follows: extracting a second fixed length code from the code stream. Determining, by the second fixed length code, whether the chroma component intra prediction mode is a DM mode; if determining, according to the second fixed length code, that the chroma component intra prediction mode is not a DM mode, further determining the The chroma component intra prediction mode, in which case the first information may further include another one bit binary symbol, a third fixed length code. This content can be explained later with reference to FIG. If the third fixed length code is not included in the first information at this time, it indicates that the chroma component prediction mode cannot be determined from the first information, and the second information needs to be further extracted and the chroma component prediction mode is determined according to the second information.
可选的, 步骤 210的另一种实施方法描述如下, 从所述码流中提取第一 Optionally, another implementation manner of step 210 is described as follows: extracting the first from the code stream
TU码, 根据所述第一 TU码确定所述色度分量帧内预测模式是否为 DM模 式或 LM模式, 或者既不是 DM模式也不是 LM模式。 And a TU code, determining, according to the first TU code, whether the chroma component intra prediction mode is a DM mode or an LM mode, or neither a DM mode nor an LM mode.
220, 所述色度分量模式信息确定色度分量帧内预测模式是否为 DM模 式。 根据前述内容, 确定色度分量帧内预测模式为 DM模式, 也就是图 2的 220的 "是", 则进行到步骤 230。 若确定不是 DM模式, 也就是图 2的 220 的 "否", 则参考图 3的 310及其后续的内容。  220. The chroma component mode information determines whether the chroma component intra prediction mode is a DM mode. According to the foregoing, it is determined that the chroma component intra prediction mode is the DM mode, that is, "YES" of 220 of Fig. 2, then the process proceeds to step 230. If it is determined that it is not the DM mode, that is, "No" of 220 of Fig. 2, refer to 310 of Fig. 3 and its subsequent contents.
230, 提取码流中的残差预测信息。  230. Extract residual prediction information in the code stream.
可以在提取码流中的亮度分量编码块标记(cbf )信息, 并确定所述 cbf 信息指示当前块亮度分量包括非零系数后, 提取所述码流中的残差预测信 息。 这样可以去除残差预测信息与 cbf信息的冗余。  The block prediction (cbf) information may be encoded in the extracted luma component, and the cbf information is determined to indicate that the current block luma component includes non-zero coefficients, and residual prediction information in the code stream is extracted. This removes the redundancy of residual prediction information and cbf information.
残差预测信息中可以包括一个表示残差预测标记信息的一个二进制符 号, 也就是上下文中的第一定长码, 所述残差预测标记信息用于指示是否使 用亮度分量残差信号辅助色度分量进行预测操作。 此时, 步骤 230具体用于 从所述码流中提取第一定长码。 The residual prediction information may include a binary character indicating the residual prediction flag information. The number, that is, the first fixed length code in the context, the residual prediction flag information is used to indicate whether the luminance component residual signal is used to assist the chrominance component for the prediction operation. At this time, step 230 is specifically configured to extract a first fixed length code from the code stream.
240, 根据第一定长码确定残差预测标记信息是否指示使用亮度分量残 差信号辅助色度分量进行预测操作。 当确定指示不使用亮度分量残差信号, 也就是图 2的 240的 "否", 则进行到步骤 250。  240. Determine, according to the first fixed length code, whether the residual prediction flag information indicates that the luma component residual signal is used to perform a prediction operation using the luma component residual signal. When it is determined that the luminance component residual signal is not used, that is, "NO" of 240 of Fig. 2, it proceeds to step 250.
250, 确定 DM模式作为色度分量帧内预测模式。  250. Determine a DM mode as a chroma component intra prediction mode.
当确定指示使用亮度分量残差信号, 也就是图 2的 240的 "是", 则进 行到步骤 260。 如果残差预测因子为缺省值, 或者经解码端计算得到残差预 测因子则可以省略步骤 260, 直接执行步骤 270。  When it is determined that the indication uses the luminance component residual signal, that is, "YES" of 240 of Fig. 2, then step 260 is reached. If the residual prediction factor is the default value, or the residual prediction factor is calculated by the decoding end, step 260 may be omitted, and step 270 is directly performed.
260, 从码流中还提取残差预测因子信息, 由所述残差预测因子信息确 定的残差预测因子用于规定如何使用亮度分量残差信号辅助色度分量进行 预测操作, 其中所述亮度分量残差信号指在亮度分量解码过程中计算产生的 信号  260. Extract residual residual prediction factor information from the code stream, where the residual prediction factor determined by the residual prediction factor information is used to specify how to use a luminance component residual signal to assist a chrominance component for performing a prediction operation, where the brightness The component residual signal refers to the signal generated during the decoding of the luminance component.
对于一组残差预测因子, 可以为其中每一个残差预测因子分配一个索引 值, 并可选择 TU码或 FL码或其它编码方案来表示这一组索引值, 此时所 述残差预测因子信息则由所选择的编码方案中的码字携带。  For a set of residual predictors, each of the residual predictors may be assigned an index value, and the TU code or FL code or other coding scheme may be selected to represent the set of index values, where the residual predictor The information is carried by the code words in the selected coding scheme.
270, 根据所述残差预测因子与所述亮度分量残差信号计算得到残差预 测修正信号。  270. Calculate a residual prediction correction signal according to the residual prediction factor and the luminance component residual signal.
280, 使用所述色度分量帧内预测模式所规定的预测方法对色度分量进 行帧内预测操作以获取色度分量帧内预测信号。  280. Perform an intra prediction operation on the chroma component by using a prediction method specified by the chroma component intra prediction mode to obtain a chroma component intra prediction signal.
步骤 270和步骤 280的执行次序可以互换, 本发明对此不做限定。 290, 使用所述残差预测修正信号对所述色度分量帧内预测信号进行修 正以获得修正后的色度分量帧内预测信号。  The order of execution of the steps 270 and 280 is interchangeable, and the present invention does not limit this. 290. Correct the chrominance component intra prediction signal by using the residual prediction correction signal to obtain a modified chrominance component intra prediction signal.
所使用的修正方法可以是将按照 DM模式预测方法获取的色度分量帧 内预测信号与残差预测修正信号叠加。 可选的, 所使用的残差预测修正信号 可以由亮度分量残差信号的乘积经适当缩放获得。 可选的, 所述亮度分量残 差信号可以由亮度分量采样点重建信号与亮度分量采样点预测信号的差值 信号经适当的重采样操作获得, 也可以由亮度变换系数信号经反量化、 反变 换以及重采样等操作获得。 当亮度分量采样点位置与色度分量采样点位置不 同时, 需要进行上述重采样操作, 以获取色度分量采样点位置的亮度分量采 样值。 The correction method used may be to superimpose the chroma component intra prediction signal acquired in accordance with the DM mode prediction method and the residual prediction correction signal. Alternatively, the residual prediction correction signal used may be obtained by appropriately scaling the product of the luminance component residual signal. Optionally, the luminance component residual signal may be obtained by an appropriate resampling operation by a difference signal between the luminance component sample point reconstruction signal and the luminance component sample point prediction signal, or may be inverse quantized and inversely performed by the luminance transform coefficient signal. Operations such as transformation and resampling are obtained. When the position of the luminance component sampling point is different from the sampling position of the chrominance component, the above resampling operation is required to obtain the luminance component of the chrominance component sampling point position. Sample value.
步骤 250后, 作为现有技术也会执行步骤 280, 随后的图像处理以使用 DM模式对色度分量进行帧内预测操作而获取的色度分量帧内预测信号作为 输入。  After step 250, step 280 is also performed as a prior art, and subsequent image processing takes as input the chroma component intra prediction signal obtained by performing an intra prediction operation on the chroma component using the DM mode.
在本发明实施例中, 经过步骤 260和步骤 270, 再结合步骤 280, 最后 通过步骤 290, 实际上是以 RM模式对色度分量进行帧内预测操作, 随后的 图像处理以修正的色度分量帧内预测信号作为输入。本发明实施例为避免混 淆,突出 RM模式的执行方法,图 2中省略步骤 250和步骤 280之间的连线。  In the embodiment of the present invention, after step 260 and step 270, combined with step 280, and finally by step 290, the intra-prediction operation is actually performed on the chroma component in the RM mode, and the subsequent image processing is performed on the corrected chroma component. The intra prediction signal is used as an input. In the embodiment of the present invention, in order to avoid confusion, the execution method of the RM mode is highlighted, and the connection between step 250 and step 280 is omitted in FIG.
本发明实施例中 RM模式和 DM模式在码流中的不同标识方法,缩短了 携带色度分量预测模式信息的码字长度, 从而降低模式信息上解码的复杂 度, 且从而达到去除 RM模式信息与亮度分量的 cbf信息存在的冗余信息, 提高视频图像的压缩效率的目的。  In the embodiment of the present invention, different identification methods of the RM mode and the DM mode in the code stream shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode information. Redundant information existing in the cbf information of the luminance component improves the compression efficiency of the video image.
图 3是本发明另一实施例的解码方法 300的示意性流程图。  FIG. 3 is a schematic flowchart of a decoding method 300 according to another embodiment of the present invention.
与图 2的实施例不同的是, 本发明实施例主要说明对所有可选的色度分 量帧内预测模式进行分组编码后, 如何解码。  Different from the embodiment of FIG. 2, the embodiment of the present invention mainly describes how to decode all the optional chroma component intra prediction modes after performing block coding.
图 2中已说明色度分量预测模式信息可以包括第一信息和 /或第二信息。 图 3以此为例进行说明, 本发明实施例并不排除色度分量预测模式信息只包 括一个第四 TU码的情形。 方法 300包括以下内容。  It has been explained in Fig. 2 that the chrominance component prediction mode information may include first information and/or second information. As shown in FIG. 3, the embodiment of the present invention does not exclude the case where the chroma component prediction mode information includes only one fourth TU code. Method 300 includes the following.
305, 提取码流中的第一信息。  305. Extract the first information in the code stream.
310, 确定色度分量帧内预测模式不是 DM模式。  310. Determine that the chroma component intra prediction mode is not the DM mode.
如果通过第一信息中的第二定长码确定色度分量帧内预测模式不是 DM 模式, 则执行步骤 320。 或者, 可选的, 当色度分量帧内预测模式不包括 LM 类模式时, 若通过第一信息中的第二定长码确定所述色度分量帧内预测模式 不是 DM模式, 则可以直接执行步骤 350。 通常在编码前会得知色度分量帧 内预测可选模式中是否包括 LM类模式。 当不包括 LM类模式时, 编码中不 会出现下述的第三定长码,另一可实现方式中, TU码中将不会包括对应 LM 类模式的码字, 解码端将适应性省略提取步骤。  If it is determined by the second fixed length code in the first information that the chroma component intra prediction mode is not the DM mode, step 320 is performed. Alternatively, optionally, when the chrominance component intra prediction mode does not include the LM class mode, if the chrominance component intra prediction mode is not the DM mode by using the second fixed length code in the first information, Go to step 350. It is usually known before encoding whether the LM class mode is included in the chroma component intra prediction selectable mode. When the LM class mode is not included, the following third fixed length code does not appear in the encoding. In another implementation manner, the codeword corresponding to the LM class mode will not be included in the TU code, and the decoding end will be omitted. Extraction step.
320, 提取第一信息中的第三定长码, 通过所述第三定长码确定是否是 LM类模式。  320. Extract a third fixed length code in the first information, and determine, by the third fixed length code, whether it is an LM class mode.
也可以通过第一信息中的第一 TU码直接确定不是 DM模式, 如果是 It is also possible to directly determine that the DM mode is not through the first TU code in the first information, if
LM类模式则执行步骤 330, 也就是步骤 320的 "是"。 或者, 也可以通过第 一信息中的第一 TU码直接确定即不是 DM模式, 也不是 LM类模式, 则执 行步骤 350, 或步骤 380, 也就是步骤 320的 "否"。 The LM class mode then proceeds to step 330, which is "yes" of step 320. Or, you can pass If the first TU code in a message directly determines that it is not the DM mode or the LM mode, step 350 is performed, or step 380, that is, "No" of step 320.
通常在编码前会得知 LM类模式只有一个缺省模式, 或者 LM类模式集 合中的模式为固定的多个模式, 因此当 LM类模式只包括一个缺省模式时, 可选的, 执行步骤 370, 该缺省模式上下文中称为第二缺省模式。 可以在编 码时省略 LM类模式信息, 相应地, 解码时也不用提取该 LM类模式信息。  Usually, before encoding, it is known that the LM class mode has only one default mode, or the mode in the LM class mode set is a fixed plurality of modes, so when the LM class mode includes only one default mode, optional, execution steps 370, the default mode context is referred to as a second default mode. The LM class mode information can be omitted at the time of encoding, and accordingly, the LM class mode information is not extracted when decoding.
370, 当确定是 LM类模式, 且 LM类模式只包括第二缺省模式,使用第 二缺省模式作为色度分量帧内预测模式。  370. When it is determined to be the LM class mode, and the LM class mode includes only the second default mode, the second default mode is used as the chroma component intra prediction mode.
或者, 330, 当确定是 LM类模式, 从码流中提取 LM类模式信息。 340, 根据所述 LM类模式信息确定所述色度分量帧内预测模式。  Or, 330, when it is determined to be the LM class mode, extract LM class mode information from the code stream. 340. Determine the chroma component intra prediction mode according to the LM class mode information.
与第一信息或第二信息相似之处在于, 同样可以使用二进制符号的 FL 码或 TU码携带 LM类模式信息。如前所述,当所述 LM类模式包括第一 LM 类模式与第二 LM类模式两个模式时, 可以从码流中提取一个表示 LM类模 式信息的一位二进制符号, 也就是上下文中的第四定长码, 根据第四定长码 确定所述色度分量帧内预测模式为第一 LM类模式或第二 LM类模式。  Similar to the first information or the second information, the LM class mode information can also be carried by the FL code or TU code of the binary symbol. As described above, when the LM class mode includes the first LM class mode and the second LM class mode, a binary character representing the LM class mode information may be extracted from the code stream, that is, in the context. The fourth fixed length code determines, according to the fourth fixed length code, that the chroma component intra prediction mode is the first LM class mode or the second LM class mode.
当所述 LM类模式包括第一 LM类模式、第二 LM类模式与第三 LM类 模式三个模式时, 所述 LM类模式信息包括第五定长码和第六定长码。 从码 流中提取所述 LM类模式信息中的所述第五定长码, 并根据所述第五定长码 确定所述色度分量帧内预测模式是否为第一 LM类模式; 若确定所述色度分 量帧内预测模式不是第一 LM类模式, 则进一步从码流中提取所述 LM类模 式信息中的第六定长码, 并根据所述第六定长码确定所述色度分量帧内预测 模式为第二 LM类模式或第三 LM类模式。  When the LM class mode includes three modes of a first LM class mode, a second LM class mode, and a third LM class mode, the LM class mode information includes a fifth fixed length code and a sixth fixed length code. Extracting, from the code stream, the fifth fixed length code in the LM class mode information, and determining, according to the fifth fixed length code, whether the chroma component intra prediction mode is a first LM class mode; And the chrominance component intra prediction mode is not the first LM class mode, further extracting a sixth fixed length code in the LM class mode information from the code stream, and determining the color according to the sixth fixed length code The degree component intra prediction mode is a second LM class mode or a third LM class mode.
可选的, 当所述 LM类模式包括第一 LM类模式、 第二 LM类模式与第 三 LM类模式三个模式时, 所述 LM类模式信息由第二 TU码携带。 从码流 中提取所述第二 TU码, 根据所述第二 TU码确定所述色度分量帧内预测模 式是否为所述第一 LM类模式, 或为所述第二 LM类模式, 或为所述第三 LM类模式。 例如第二 TU为 0、 10和 11时分别对应指示色度分量帧内预测 模式为第一 LM类模式、 第二 LM类模式和第三 LM类模式。  Optionally, when the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, the LM class mode information is carried by the second TU code. Extracting, by the code stream, the second TU code, determining, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode, or the second LM class mode, or For the third LM class mode. For example, when the second TU is 0, 10, and 11, respectively, the intra chroma prediction mode corresponding to the chroma component is the first LM class mode, the second LM class mode, and the third LM class mode.
本发明实施例中的第一、 第二等序列号仅是出于说明的方便, 对相同事 物加以区别, 对事物本身的内容不做限定。  The first and second serial numbers in the embodiments of the present invention are only for the convenience of explanation, and the same things are distinguished, and the content of the things themselves is not limited.
350, 当确定既不是 DM模式, 也不是 LM类模式时, 提取第二信息。 360, 通过第二信息确定色度分量帧内预测模式。 350: Extract the second information when it is determined that neither the DM mode nor the LM mode is determined. 360: Determine a chroma component intra prediction mode by using the second information.
第一至第六定长 FL码如果是一位二进制符号时, 可以最大提高解码的 效率。 当由一个第七定长 FL码携带所述第二信息时, 从所述码流中提取所 述第七定长码, 根据所述第七定长 FL码确定所述色度分量帧内预测模式。 当第二信息指示剩余模式中四个中的一个时,此处第七定长码可以是两位的 FL码, 举例来说可以存在如下的对应关系。 第七定长码为 00、 01、 10和 11 时, 分别指示色度分量帧内预测模式为水平、 竖直、 DC与平面模式。 由此 可以确定色度分量帧内预测模式。  The first to sixth fixed length FL codes can maximize the efficiency of decoding if they are a binary symbol. When the second information is carried by a seventh fixed length FL code, the seventh fixed length code is extracted from the code stream, and the chrominance component intra prediction is determined according to the seventh fixed length FL code. mode. When the second information indicates one of the four remaining modes, the seventh fixed length code herein may be a two-bit FL code, for example, the following correspondence may exist. When the seventh fixed length code is 00, 01, 10, and 11, the intra-prediction modes of the chroma component are respectively indicated as horizontal, vertical, DC, and planar modes. Thereby, the chroma component intra prediction mode can be determined.
可选的, 当由第三 TU码携带所述第二信息时, 从所述码流中提取所述 第三 TU码, 根据所述第三 TU码确定所述色度分量帧内预测模式。 举例来 说, 第三 TU码为 0、 10、 110、 111时, 分别指示色度分量帧内预测模式为 水平、 竖直、 DC与平面模式。 由此可以确定色度分量帧内预测模式。  Optionally, when the second information is carried by the third TU code, extracting the third TU code from the code stream, and determining the chroma component intra prediction mode according to the third TU code. For example, when the third TU code is 0, 10, 110, and 111, the intra-prediction modes of the chroma component are respectively indicated as horizontal, vertical, DC, and planar modes. Thereby, the chroma component intra prediction mode can be determined.
可选的, 步骤 380可以取代步骤 350和 360。  Alternatively, step 380 can replace steps 350 and 360.
380, 当色度分量帧内预测模式既不是 DM模式, 也不是 LM类模式, 而是第一缺省模式时, 使用第一缺省模式作为色度分量帧内预测模式。 本发 明实施例中色度分量帧内预测模式在码流中的分组标识方法, 缩短了携带色 度分量预测模式信息的码字长度, 从而降低模式信息上解码的复杂度, 提高 视频图像的压缩效率的目的。  380. When the chroma component intra prediction mode is neither the DM mode nor the LM class mode, but the first default mode, the first default mode is used as the chroma component intra prediction mode. In the embodiment of the present invention, the method for group identification of the chrominance component intra prediction mode in the code stream shortens the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and improving the compression of the video image. The purpose of efficiency.
图 4是本发明实施例的解码装置 40的示意框图。  Figure 4 is a schematic block diagram of a decoding device 40 in accordance with an embodiment of the present invention.
装置 40包括第一提取单元 41、 第一确定单元 42、 第二提取单元 43和 操作单元 44。  The apparatus 40 includes a first extraction unit 41, a first determination unit 42, a second extraction unit 43, and an operation unit 44.
第一提取单元 41用于提取码流中的色度分量模式信息, 所述色度分量 模式信息用于确定色度分量帧内预测模式。  The first extracting unit 41 is configured to extract chroma component mode information in the code stream, and the chroma component mode information is used to determine a chroma component intra prediction mode.
第一确定单元 42用于根据所述第一提取单元 41提取的所述色度分量模 式信息确定色度分量帧内预测模式。  The first determining unit 42 is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit 41.
第二提取单元 43用于当所述第一确定单元 42确定所述色度分量帧内预 测模式为 DM模式时, 提取所述码流中的残差预测信息。  The second extracting unit 43 is configured to extract residual prediction information in the code stream when the first determining unit 42 determines that the chroma component intra prediction mode is the DM mode.
操作单元 44用于根据所述第二提取单元 43提取的所述残差预测信息进 行色度分量预测操作以获取色度分量帧内预测信号。  The operation unit 44 is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit 43 to acquire a chroma component intra prediction signal.
其中所述 DM模式指使用亮度分量帧内预测模式所规定预测方法对色 度分量进行帧内预测操作的模式,且所述亮度分量帧内预测模式指在亮度分 量解码过程中,根据从所述码流中获取的亮度分量模式信息确定的亮度分量 预测模式。 Wherein the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode, and the luma component intra prediction mode refers to a luma subdivision In the amount decoding process, the luminance component prediction mode is determined based on the luminance component mode information acquired from the code stream.
本发明实施例中通过 RM模式和 DM模式在码流中的不同标识方法,缩 短了携带色度分量预测模式信息的码字长度,从而降低模式信息上解码的复 杂度,且从而达到去除 RM模式信息与亮度分量的 cbf信息存在的冗余信息, 提高视频图像的压缩效率的目的。  In the embodiment of the present invention, the different identification methods in the code stream by the RM mode and the DM mode shorten the codeword length of the chrominance component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing the RM mode. The redundant information of the cbf information of the information and the luminance component improves the compression efficiency of the video image.
图 5是本发明另一实施例的解码装置 50的示意框图。装置 50的第一提 取单元 51、 第一确定单元 52、 第二提取单元 53和操作单元 54与装置 40的 第一提取单元 41、 第一确定单元 42、 第二提取单元 43和操作单元 44相同 或相似。 不同之处在于第二提取单元 53具体包括提取模块 531和确定模块 532; 操作单元 54具体包括操作模块 541、 计算模块 542和修正模块 543。  Figure 5 is a schematic block diagram of a decoding device 50 in accordance with another embodiment of the present invention. The first extraction unit 51, the first determination unit 52, the second extraction unit 53, and the operation unit 54 of the device 50 are the same as the first extraction unit 41, the first determination unit 42, the second extraction unit 43, and the operation unit 44 of the device 40. Or similar. The difference is that the second extraction unit 53 specifically includes an extraction module 531 and a determination module 532. The operation unit 54 specifically includes an operation module 541, a calculation module 542, and a correction module 543.
第一提取单元 51用于提取码流中的色度分量模式信息, 所述色度分量 模式信息用于确定色度分量帧内预测模式。  The first extracting unit 51 is configured to extract chroma component mode information in the code stream, and the chroma component mode information is used to determine a chroma component intra prediction mode.
第一确定单元 52用于根据所述第一提取单元 51提取的所述色度分量模 式信息确定色度分量帧内预测模式。  The first determining unit 52 is configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit 51.
第二提取单元 53用于当所述第一确定单元 52确定所述色度分量帧内预 测模式为 DM模式时, 提取所述码流中的残差预测信息。  The second extracting unit 53 is configured to extract residual prediction information in the code stream when the first determining unit 52 determines that the chroma component intra prediction mode is the DM mode.
操作单元 54用于根据所述第二提取单元 53提取的所述残差预测信息进 行色度分量预测操作以获取色度分量帧内预测信号。  The operation unit 54 is configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit 53 to acquire a chroma component intra prediction signal.
其中所述 DM模式指使用亮度分量帧内预测模式所规定预测方法对色 度分量进行帧内预测操作的模式,且所述亮度分量帧内预测模式指在亮度分 量解码过程中,根据从所述码流中获取的亮度分量模式信息确定的亮度分量 预测模式。  Wherein the DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode, and the luma component intra prediction mode refers to a process in which the luma component is decoded, according to the The luminance component prediction mode determined by the luminance component mode information acquired in the code stream.
当所述残差预测信息包括残差预测标记信息时, 所述提取模块 531用于 从所述码流中提取一个表示残差预测标记信息的第一定长码, 所述残差预测 标记信息用于指示是否使用亮度分量残差信号辅助色度分量进行预测操作. 所述确定模块 532用于确定所述残差预测标记信息指示使用亮度分量残 差信号辅助色度分量进行预测操作, 则所述提取模块 531从所述码流中还提 取残差预测因子信息, 由所述残差预测因子信息确定的残差预测因子用于规 定如何使用亮度分量残差信号辅助色度分量进行预测操作, 其中所述亮度分 量残差信号指在亮度分量解码过程中计算产生的信号。 所述操作模块 541用于使用所述色度分量帧内预测模式所规定的预测方 法对色度分量进行帧内预测操作以获取色度分量帧内预测信号; When the residual prediction information includes residual prediction flag information, the extracting module 531 is configured to extract, from the code stream, a first fixed length code indicating residual prediction flag information, and the residual prediction flag information. Determining whether to use the luma component residual signal to assist the chroma component for performing a prediction operation. The determining module 532 is configured to determine that the residual prediction flag information indicates that the luma component residual signal is used to perform a prediction operation using the luma component residual signal. The extraction module 531 further extracts residual prediction factor information from the code stream, and the residual prediction factor determined by the residual prediction factor information is used to specify how to use the luminance component residual signal to assist the chrominance component for prediction operation, Wherein the luminance component residual signal refers to a signal calculated and generated during the decoding of the luminance component. The operation module 541 is configured to perform an intra prediction operation on the chroma component by using a prediction method specified by the chroma component intra prediction mode to obtain a chroma component intra prediction signal;
所述计算模块 542用于根据所述确定模块 532确定的所述残差预测因子 与所述操作模块 541获取的所述亮度分量残差信号计算得到残差预测修正信 号;  The calculation module 542 is configured to calculate a residual prediction correction signal according to the residual prediction factor determined by the determining module 532 and the luminance component residual signal acquired by the operation module 541;
所述修正模块 543用于使用所述计算模块 542获得的所述残差预测修正 信号对所述色度分量帧内预测信号进行修正以获得修正后的色度分量帧内 预测信号。  The correction module 543 is configured to modify the chroma component intra prediction signal by using the residual prediction correction signal obtained by the calculation module 542 to obtain a modified chroma component intra prediction signal.
所述第二提取单元具体用于在所述提取码流中的色度分量模式信息后, 或者在提取码流中的亮度分量编码块标记 cbf信息后, 提取所述码流中的残 差预测信息。  The second extracting unit is specifically configured to: after the chroma component mode information in the extracted code stream, or after extracting the luma component coding block flag cbf information in the code stream, extract residual prediction in the code stream information.
可选的, 所述第一提取单元 51具体用于提取码流中的色度分量模式信 息包括的第一信息, 所述第一确定单元 52具体用于根据所述第一信息确定 色度分量帧内预测模式。 当根据所述第一信息不能确定色度分量帧内预测模 式时, 所述第一提取单元 51还提取所述码流中的色度分量模式信息包括的 第二信息, 所述第一确定单元 52根据所述第二信息确定所述色度分量帧内 预测模式, 其中所述第一信息包括用于指示所述色度分量帧内预测模式是否 为 DM模式或 LM类模式的信息,所述第二信息用于指示作为所述色度分量 帧内预测模式的剩余模式, 所述剩余模式为除所述第一信息可能确定的模式 外的可用于色度分量帧内预测模式的其中之一,且所述 LM类模式包括一个 或多个基于相关性模型使用亮度分量重建值计算色度分量预测值的模式。  Optionally, the first extracting unit 51 is specifically configured to extract the first information included in the chroma component mode information in the code stream, where the first determining unit 52 is specifically configured to determine the chroma component according to the first information. Intra prediction mode. When the chrominance component intra prediction mode cannot be determined according to the first information, the first extracting unit 51 further extracts second information included in the chrominance component mode information in the code stream, where the first determining unit Determining, according to the second information, the chroma component intra prediction mode, where the first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode, The second information is used to indicate a remaining mode as the chroma component intra prediction mode, the remaining mode being one of available for the chroma component intra prediction mode except the mode that the first information may determine And the LM class mode includes one or more modes for calculating a chroma component prediction value using the luma component reconstruction value based on the correlation model.
可选的, 当所述第一信息包括第二定长码时, 所述第一提取单元 51具 体用于从所述码流中提取所述第二定长码, 所述第一确定单元 52具体用于 根据所述第二定长码确定所述色度分量帧内预测模式是否为 DM模式。  Optionally, when the first information includes the second fixed length code, the first extracting unit 51 is specifically configured to extract the second fixed length code from the code stream, where the first determining unit 52 Specifically, it is used to determine, according to the second fixed length code, whether the chroma component intra prediction mode is a DM mode.
可选的, 当所述第一信息还包括第三定长码时,若所述第一确定单元 52 根据所述第一提取单元 51提取的所述第二定长码确定所述色度分量帧内预 测模式不是 DM模式, 则所述第一提取单元 51进一步从所述码流中提取所 述第三定长码, 所述第一确定单元 52根据所述第三定长码确定所述色度分 量帧内预测模式是否为 LM类模式。 若所述第一确定单元 52确定所述色度 分量帧内预测模式是 LM类模式, 需要进一步确定所述色度分量帧内预测模 式。 若所述第一确定单元 52确定所述色度分量帧内预测模式不是 LM类模 式, 则表示根据所述第一信息不能确定所述色度分量帧内预测模式。 Optionally, when the first information further includes a third fixed length code, if the first determining unit 52 determines the chrominance component according to the second fixed length code extracted by the first extracting unit 51 If the intra prediction mode is not the DM mode, the first extracting unit 51 further extracts the third fixed length code from the code stream, and the first determining unit 52 determines the according to the third fixed length code. Whether the chroma component intra prediction mode is the LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined. If the first determining unit 52 determines that the chroma component intra prediction mode is not an LM class mode The equation indicates that the chroma component intra prediction mode cannot be determined according to the first information.
可选的, 当由第一截断一元 TU码携带所述第一信息时, 所述第一提取 单元 51具体用于从所述码流中提取所述第一 TU码, 所述第一确定单元 52 根据所述第一 TU码确定所述色度分量帧内预测模式是否为 DM模式或 LM 类模式。 若所述第一确定单元 52确定所述色度分量帧内预测模式是 LM类 模式, 需要进一步确定所述色度分量帧内预测模式。 或者, 若所述第一确定 单元 52确定所述色度分量帧内预测模式既不是 DM模式也不是 LM类模式, 则表示根据所述第一信息不能确定所述色度分量帧内预测模式。  Optionally, when the first information is carried by the first truncated one-dimensional TU code, the first extracting unit 51 is specifically configured to extract the first TU code from the code stream, where the first determining unit is Determining, according to the first TU code, whether the chroma component intra prediction mode is a DM mode or an LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined. Alternatively, if the first determining unit 52 determines that the chroma component intra prediction mode is neither the DM mode nor the LM class mode, it indicates that the chroma component intra prediction mode cannot be determined according to the first information.
所述第一确定单元 52若确定所述色度分量帧内预测模式是 LM类模式, 需要进一步确定所述色度分量帧内预测模式, 所述第一提取单元 51还从码 流中提取 LM类模式信息, 所述第一确定单元 52根据所述 LM类模式信息 确定所述色度分量帧内预测模式。  If the first determining unit 52 determines that the chroma component intra prediction mode is the LM class mode, the chroma component intra prediction mode needs to be further determined, and the first extracting unit 51 further extracts the LM from the code stream. Based on the class mode information, the first determining unit 52 determines the chroma component intra prediction mode according to the LM class mode information.
可选的, 当所述 LM类模式包括第一 LM类模式与第二 LM类模式两个 模式时,所述第一提取模块具体用于从码流中提取一个表示 LM类模式信息 的第四定长码, 所述第一确定单元 52根据所述 LM类模式信息确定所述色 度分量帧内预测模式为第一 LM类模式或第二 LM类模式。  Optionally, when the LM-type mode includes the first LM-type mode and the second LM-type mode, the first extraction module is specifically configured to extract, from the code stream, a fourth LM-type mode information. The first length determining unit 52 determines, according to the LM class mode information, that the chroma component intra prediction mode is the first LM class mode or the second LM class mode.
可选的, 当所述 LM类模式包括第一 LM类模式、 第二 LM类模式与第 三 LM类模式三个模式,且所述 LM类模式信息包括第五定长码和第六定长 码时, 所述第一提取单元 51具体用于从码流中提取所述 LM类模式信息中 的所述第五定长码, 所述第一确定单元 52根据所述第五定长码确定所述色 度分量帧内预测模式是否为第一 LM类模式。 所述第一确定单元 52若确定 所述色度分量帧内预测模式不是第一 LM类模式, 则所述第一提取单元 51 进一步从码流中提取所述 LM类模式信息中的第六定长码,所述第一确定单 元 52根据所述第六定长码确定所述色度分量帧内预测模式为第二 LM类模 式或第三 LM类模式。  Optionally, when the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, and the LM class mode information includes a fifth fixed length code and a sixth fixed length The first extracting unit 51 is specifically configured to extract the fifth fixed length code in the LM type mode information from a code stream, where the first determining unit 52 determines according to the fifth fixed length code. Whether the chroma component intra prediction mode is the first LM class mode. If the first determining unit 52 determines that the chroma component intra prediction mode is not the first LM class mode, the first extracting unit 51 further extracts the sixth setting in the LM class mode information from the code stream. Long code, the first determining unit 52 determines, according to the sixth fixed length code, that the chroma component intra prediction mode is a second LM class mode or a third LM class mode.
可选的, 当所述 LM类模式包括第一 LM类模式、 第二 LM类模式与第 三 LM类模式三个模式, 且所述 LM类模式信息由第二 TU码携带时, 所述 第一提取单元 51从码流中提取所述第二 TU码, 所述第一确定单元 52根据 所述第二 TU码确定所述色度分量帧内预测模式是否为所述第一 LM类模 式, 或为所述第二 LM类模式, 或为所述第三 LM类模式。  Optionally, when the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, and the LM class mode information is carried by the second TU code, the An extracting unit 51 extracts the second TU code from the code stream, and the first determining unit 52 determines, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode, Or for the second LM class mode, or for the third LM class mode.
可选的, 当由一个第七定长 FL码携带所述第二信息时, 所述第一提取 单元 51具体用从所述码流中提取所述第七定长 FL码, 所述第一确定单元 52根据所述第七定长 FL码确定所述色度分量帧内预测模式。 Optionally, when the second information is carried by a seventh fixed length FL code, the first extraction The unit 51 specifically extracts the seventh fixed length FL code from the code stream, and the first determining unit 52 determines the chroma component intra prediction mode according to the seventh fixed length FL code.
可选的, 当由第三 TU码携带所述第二信息时, 所述第一提取单元 51 具体用于从所述码流中提取所述第三 TU码, 所述第一确定单元 52根据所 述第三 TU码确定所述色度分量帧内预测模式。  Optionally, when the second information is carried by the third TU code, the first extracting unit 51 is specifically configured to extract the third TU code from the code stream, where the first determining unit 52 is configured according to The third TU code determines the chroma component intra prediction mode.
可选的, 当由第四 TU码携带所述色度分量模式信息时, 所述第一提取 单元 51具体用于从所述码流中提取所述第四 TU码, 所述第一确定单元 52 根据所述第四 TU码确定所述色度分量帧内预测模式。  Optionally, when the chrominance component mode information is carried by the fourth TU code, the first extracting unit 51 is specifically configured to extract the fourth TU code from the code stream, where the first determining unit The chrominance component intra prediction mode is determined according to the fourth TU code.
本发明实施例中通过色度分量帧内预测模式在码流中的分组标识方法, 缩短了携带色度分量预测模式信息的码字长度,从而降低模式信息上解码的 复杂度, 且从而达到去除 RM模式信息与亮度分量的 cbf信息存在的冗余信 息, 提高视频图像的压缩效率的目的。  In the embodiment of the present invention, the method for group identification in the code stream by the chroma component intra prediction mode shortens the length of the codeword carrying the chroma component prediction mode information, thereby reducing the complexity of decoding on the mode information, and thereby removing The redundant information of the RM mode information and the cbf information of the luminance component improves the compression efficiency of the video image.
本发明实施例提供的技术方案可以应用在数字信号处理领域中,通过视 频编码器, 解码器实现。 视频编码器, 解码器广泛应用于各种通讯设备或电 子设备中, 例如: 媒体网关, 移动电话, 无线装置, 个人数据助理(PDA, Personal Data Assistant ), 手持式或便携式计算机, GPS ( Global Positioning System, 全球定位系统)接收机 /导航器, 照相机, 视频播放器, 摄像机, 录 像机, 监控设备等等。 这类设备中包括处理器, 存储器, 以及传输数据的接 口 。 视频编解码器可以直接由数字电路或芯片例如 DSP ( Digital Signal Processor, 数字信号处理器) 实现, 或者由软件代码驱动处理器执行软件代 码中的流程而实现。  The technical solution provided by the embodiment of the present invention can be applied to the field of digital signal processing, and is implemented by a video encoder and a decoder. Video encoders, decoders are widely used in a variety of communication devices or electronic devices, such as: media gateways, mobile phones, wireless devices, personal data assistants (PDA, Personal Data Assistant), handheld or portable computers, GPS (Global Positioning) System, Global Positioning System) Receiver/Navigator, Camera, Video Player, Camcorder, VCR, Surveillance Equipment, etc. Such devices include processors, memory, and interfaces for transmitting data. The video codec can be implemented directly by a digital circuit or chip such as a DSP (Digital Signal Processor), or by software code to drive the processor to execute the flow in the software code.
本领域普通技术人员可以意识到, 结合本文中所公开的实施例描述的各 示例的单元及算法步骤, 能够以电子硬件、 或者计算机软件和电子硬件的结 合来实现。 这些功能究竟以硬件还是软件方式来执行, 取决于技术方案的特 定应用和设计约束条件。 专业技术人员可以对每个特定的应用来使用不同方 法来实现所描述的功能, 但是这种实现不应认为超出本发明的范围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in a combination of electronic hardware or computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和筒洁, 上述描 述的系统、 装置和单元的具体工作过程, 可以参考前述方法实施例中的对应 过程, 在此不再赘述。  It will be apparent to those skilled in the art that, for the convenience of the description and the cleaning process, the specific operation of the system, the device and the unit described above may be referred to the corresponding processes in the foregoing method embodiments, and details are not described herein again.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和 方法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示 意性的, 例如, 所述单元的划分, 仅仅为一种逻辑功能划分, 实际实现时可 以有另外的划分方式, 例如多个单元或组件可以结合或者可以集成到另一个 系统, 或一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间 的耦合或直接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合 或通信连接, 可以是电性, 机械或其它的形式。 In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative For example, the division of the unit is only a logical function division, and the actual implementation may have another division manner, for example, multiple units or components may be combined or may be integrated into another system, or some features may be Ignore, or not execute. In addition, the mutual coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be in an electrical, mechanical or other form.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作 为单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或 者全部单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元 中, 也可以是各个单元单独物理存在, 也可以两个或两个以上单元集成在一 个单元中。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
所述功能如果以软件功能单元的形式实现并作为独立的产品销售或使 用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发明 的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部 分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质 中, 包括若干指令用以使得一台计算机设备(可以是个人计算机, 服务器, 或者网络设备等)执行本发明各个实施例所述方法的全部或部分步骤。 而前 述的存储介质包括: U盘、移动硬盘、只读存储器( ROM , Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可 以存储程序代码的介质。  The functions, if implemented in the form of software functional units and sold or used as separate products, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention, which is essential to the prior art or part of the technical solution, may be embodied in the form of a software product stored in a storage medium, including The instructions are used to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述, 仅为本发明的具体实施方式, 但本发明的保护范围并不局限 于此, 任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易 想到变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护 范围应所述以权利要求的保护范围为准。  The above is only the specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims.

Claims

权利要求 Rights request
1、 一种解码方法, 其特征在于, 包括:  A decoding method, comprising:
提取码流中的色度分量模式信息, 所述色度分量模式信息用于确定色度 分量帧内预测模式;  Extracting chroma component mode information in the code stream, the chroma component mode information being used to determine a chroma component intra prediction mode;
根据所述色度分量模式信息确定色度分量帧内预测模式;  Determining a chroma component intra prediction mode according to the chroma component mode information;
当确定所述色度分量帧内预测模式为 DM模式时,提取所述码流中的残 差预测信息;  When it is determined that the chroma component intra prediction mode is the DM mode, extracting residual prediction information in the code stream;
根据所述残差预测信息进行色度分量预测操作以获取色度分量帧内预 测信号, 其中  Performing a chroma component prediction operation according to the residual prediction information to obtain a chroma component intra frame prediction signal, where
所述 DM模式指使用亮度分量帧内预测模式所规定预测方法对色度分 量进行帧内预测操作的模式, 且  The DM mode refers to a mode in which an intra prediction operation is performed on a chroma component using a prediction method specified by a luma component intra prediction mode, and
所述亮度分量帧内预测模式指在亮度分量解码过程中,根据从所述码流 中获取的亮度分量模式信息确定的亮度分量预测模式。  The luminance component intra prediction mode refers to a luminance component prediction mode determined based on luminance component mode information acquired from the code stream in the luminance component decoding process.
2、 根据权利要求 1所述的方法, 当所述残差预测信息包括残差预测标 记信息时, 其特征在于, 所述方法还包括:  The method according to claim 1, wherein when the residual prediction information includes residual prediction flag information, the method further includes:
从所述码流中提取一个表示所述残差预测标记信息的第一定长码, 所述 残差预测标记信息用于指示是否使用亮度分量残差信号辅助色度分量进行 预测操作;  And extracting, from the code stream, a first fixed length code indicating the residual prediction flag information, where the residual prediction flag information is used to indicate whether the luminance component residual signal is used to assist the chrominance component for performing a prediction operation;
若所述残差预测标记信息指示使用亮度分量残差信号辅助色度分量进 行预测操作, 则从所述码流中还提取残差预测因子信息, 由所述残差预测因 子信息确定的残差预测因子用于规定如何使用亮度分量残差信号辅助色度 分量进行预测操作, 其中  If the residual prediction flag information indicates that the luma component residual signal is used to perform the prediction operation, the residual prediction factor information is further extracted from the code stream, and the residual determined by the residual prediction factor information The prediction factor is used to specify how to use the luminance component residual signal to assist the chrominance component for prediction operations, where
所述亮度分量残差信号指在亮度分量解码过程中计算产生的信号。 The luminance component residual signal refers to a signal calculated to be generated during the decoding of the luminance component.
3、 根据权利要求 1所述的方法, 当所述残差预测信息包括残差预测标 记信息时, 其特征在于, 所述方法还包括: The method according to claim 1, wherein when the residual prediction information includes the residual prediction flag information, the method further includes:
从所述码流中提取一个表示残差预测标记信息的第一定长码, 所述残差 预测标记信息用于指示是否使用亮度分量残差信号辅助色度分量进行预测 操作;  Extracting, from the code stream, a first fixed length code indicating residual prediction flag information, where the residual prediction flag information is used to indicate whether to use a luminance component residual signal to assist a chrominance component for performing a prediction operation;
若所述残差预测标记信息指示使用亮度分量残差信号辅助色度分量进 行预测操作, 当残差预测因子为缺省值或经解码端计算获知时, 所述残差预 测因子用于规定如何使用亮度分量残差信号辅助色度分量进行预测操作, 其 中 If the residual prediction flag information indicates that the luma component residual signal is used to perform the prediction operation using the luma component residual signal, when the residual prediction factor is the default value or is learned by the decoding end, the residual prediction factor is used to specify how Using a luminance component residual signal to assist the chrominance component for prediction operations, Medium
所述亮度分量残差信号指在亮度分量解码过程中计算产生的信号。  The luminance component residual signal refers to a signal calculated to be generated during the decoding of the luminance component.
4、 根据权利要求 2 或 3所述的方法, 其特征在于, 所述根据所述残差 预测信息进行色度分量预测操作以获取色度分量帧内预测信号包括:  The method according to claim 2 or 3, wherein the performing a chroma component prediction operation according to the residual prediction information to obtain a chroma component intra prediction signal comprises:
使用所述色度分量帧内预测模式所规定的预测方法对色度分量进行帧 内预测操作以获取色度分量帧内预测信号;  Performing an intra prediction operation on the chroma component using a prediction method specified by the chroma component intra prediction mode to obtain a chroma component intra prediction signal;
根据所述残差预测因子与所述亮度分量残差信号计算得到残差预测修 正信号;  Calculating a residual prediction correction signal according to the residual prediction factor and the luminance component residual signal;
使用所述残差预测修正信号对所述色度分量帧内预测信号进行修正以 获得修正后的色度分量帧内预测信号。  The chrominance component intra prediction signal is corrected using the residual prediction correction signal to obtain a corrected chrominance component intra prediction signal.
5、 根据权利要求 1所述的方法, 其特征在于, 所述提取所述码流中的 残差预测信息包括:  The method according to claim 1, wherein the extracting the residual prediction information in the code stream comprises:
在提取码流中的亮度分量编码块标记 cbf信息, 并确定所述 cbf信息指 示当前块亮度分量包括非零系数后, 提取所述码流中的残差预测信息。  The luma component in the extracted code stream encodes the block flag cbf information, and determines that the cbf information indicates that the current block luma component includes a non-zero coefficient, and extracts residual prediction information in the code stream.
6、 根据权利要求 1所述的方法, 所述提取码流中的色度分量模式信息, 根据所述色度分量模式信息确定色度分量帧内预测模式,其特征在于,包括: 提取码流中的色度分量模式信息包括的第一信息,根据所述第一信息确 定色度分量帧内预测模式;  The method according to claim 1, wherein the chroma component mode information in the code stream is extracted, and the chroma component intra prediction mode is determined according to the chroma component mode information, and the method includes: extracting a code stream The first information included in the chroma component mode information is determined, and the chroma component intra prediction mode is determined according to the first information;
当根据所述第一信息不能确定色度分量帧内预测模式时,确定第一缺省 模式作为色度分量帧内预测模式, 其中  When the chroma component intra prediction mode cannot be determined according to the first information, determining the first default mode as the chroma component intra prediction mode, where
所述第一信息包括用于指示所述色度分量帧内预测模式是否为 DM模 式或 LM类模式的信息。  The first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode.
7、 根据权利要求 1所述的方法, 所述提取码流中的色度分量模式信息, 根据所述色度分量模式信息确定色度分量帧内预测模式,其特征在于,包括: 提取码流中的色度分量模式信息包括的第一信息,根据所述第一信息确 定色度分量帧内预测模式;  The method according to claim 1, wherein the chroma component mode information in the code stream is extracted, and the chroma component intra prediction mode is determined according to the chroma component mode information, and the method includes: extracting a code stream The first information included in the chroma component mode information is determined, and the chroma component intra prediction mode is determined according to the first information;
当根据所述第一信息不能确定色度分量帧内预测模式时,提取所述码流 中的色度分量模式信息包括的第二信息,根据所述第二信息确定所述色度分 量帧内预测模式, 其中  When the chrominance component intra prediction mode cannot be determined according to the first information, extracting second information included in the chrominance component mode information in the code stream, determining the chrominance component frame according to the second information Prediction mode, where
所述第一信息包括用于指示所述色度分量帧内预测模式是否为 DM模 式或 LM类模式的信息, 所述第二信息用于指示作为所述色度分量帧内预测模式的剩余模式, 所 述剩余模式为除所述第一信息可能确定的模式外的可用于色度分量帧内预 测模式的其中之一, 且 The first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode, The second information is used to indicate a remaining mode that is an intra prediction mode of the chroma component, where the remaining mode is a chroma component intra prediction mode other than a mode that may be determined by the first information. One, and
所述 LM类模式包括一个或多个基于相关性模型使用亮度分量重建值计 算色度分量预测值的模式。  The LM class mode includes one or more modes for calculating a chrominance component predictor using a luminance component reconstruction value based on a correlation model.
8、 根据权利要求 7所述的方法, 当所述第一信息包括第二定长码时, 所述提取码流中的第一信息, 根据所述第一信息确定色度分量帧内预测模 式, 其特征在于, 包括:  8. The method according to claim 7, when the first information includes a second fixed length code, the first information in the extracted code stream, determining a chroma component intra prediction mode according to the first information , which is characterized by:
从所述码流中提取所述第二定长码,根据所述第二定长码确定所述色度 分量帧内预测模式是否为 DM模式;  And extracting, by the code stream, the second fixed length code, and determining, according to the second fixed length code, whether the chrominance component intra prediction mode is a DM mode;
当色度分量帧内预测模式不包括 LM类模式时, 若确定所述色度分量帧 内预测模式不是 DM模式,则表示根据所述第一信息不能确定所述色度分量  When the chroma component intra prediction mode does not include the LM class mode, if it is determined that the chroma component intra prediction mode is not the DM mode, it indicates that the chroma component cannot be determined according to the first information.
9、 根据权利要求 8所述的方法, 当所述第一信息还包括第三定长码时, 所述提取码流中的第一信息, 根据所述第一信息确定色度分量帧内预测模 式, 其特征在于, 还包括: 9. The method according to claim 8, when the first information further includes a third fixed length code, the first information in the extracted code stream, determining a chroma component intra prediction according to the first information The mode is characterized in that it further includes:
若根据提取的所述第二定长码确定所述色度分量帧内预测模式不是 DM 模式, 则进一步从所述码流中提取所述第三定长码, 并根据所述第三定长码 确定所述色度分量帧内预测模式是否为 LM类模式;  And if it is determined that the chroma component intra prediction mode is not the DM mode according to the extracted second fixed length code, further extracting the third fixed length code from the code stream, and according to the third fixed length Determining, by the code, whether the chroma component intra prediction mode is an LM class mode;
若确定所述色度分量帧内预测模式是 LM类模式, 需要进一步确定所述 色度分量帧内预测模式; 或者  If it is determined that the chroma component intra prediction mode is an LM class mode, the chroma component intra prediction mode needs to be further determined; or
若确定所述色度分量帧内预测模式不是 LM类模式, 则表示根据所述第 一信息不能确定所述色度分量帧内预测模式。  If it is determined that the chroma component intra prediction mode is not the LM class mode, it indicates that the chroma component intra prediction mode cannot be determined according to the first information.
10、 根据权利要求 7所述的方法, 当由第一截断一元 TU码携带所述第 一信息时, 所述提取码流中的第一信息, 根据所述第一信息确定色度分量帧 内预测模式, 其特征在于, 包括:  10. The method according to claim 7, when the first information is carried by the first truncated one-element TU code, the first information in the extracted code stream is determined according to the first information, and the chrominance component frame is determined. The prediction mode is characterized by including:
从所述码流中提取所述第一 TU码, 根据所述第一 TU码确定所述色度 分量帧内预测模式是否为 DM模式或 LM类模式;  Extracting, by the code stream, the first TU code, and determining, according to the first TU code, whether the chrominance component intra prediction mode is a DM mode or an LM class mode;
若确定所述色度分量帧内预测模式是 LM类模式, 需要进一步确定所述 色度分量帧内预测模式; 或者  If it is determined that the chroma component intra prediction mode is an LM class mode, the chroma component intra prediction mode needs to be further determined; or
若确定所述色度分量帧内预测模式既不是 DM模式也不是 LM类模式, 则表示根据所述第一信息不能确定所述色度分量帧内预测模式。 If it is determined that the chroma component intra prediction mode is neither a DM mode nor an LM class mode, Then, it is indicated that the chroma component intra prediction mode cannot be determined according to the first information.
11、 根据权利要求 9或 10所述的方法, 所述若确定所述色度分量帧内 预测模式是 LM类模式, 需要进一步确定所述色度分量帧内预测模式, 其特 征在于, 包括:  The method according to claim 9 or 10, if it is determined that the chrominance component intra prediction mode is an LM class mode, the chrominance component intra prediction mode needs to be further determined, and the method includes:
当 LM类模式仅包括第二缺省模式时, 则确定所述色度分量帧内预测模 式为所述第二缺省模式。  When the LM class mode includes only the second default mode, it is determined that the chroma component intra prediction mode is the second default mode.
12、 根据权利要求 9或 10所述的方法, 所述若确定所述色度分量帧内 预测模式是 LM类模式, 需要进一步确定所述色度分量帧内预测模式, 其特 征在于, 包括:  The method according to claim 9 or 10, if it is determined that the chrominance component intra prediction mode is an LM class mode, the chrominance component intra prediction mode needs to be further determined, and the method includes:
从码流中提取 LM类模式信息,根据所述 LM类模式信息确定所述色度 分量帧内预测模式。  The LM class mode information is extracted from the code stream, and the chrominance component intra prediction mode is determined based on the LM class mode information.
13、 根据权利要求 12所述的方法, 当所述 LM类模式包括第一 LM类 模式与第二 LM类模式两个模式时, 所述从码流中提取 LM类模式信息, 根 据所述 LM类模式信息确定所述色度分量帧内预测模式,其特征在于,包括: 从码流中提取一个表示 LM类模式信息的第四定长码,根据所述 LM类 模式信息确定所述色度分量帧内预测模式为第一 LM类模式或第二 LM类模 式。  13. The method according to claim 12, when the LM class mode includes two modes, a first LM class mode and a second LM class mode, extracting LM class mode information from a code stream, according to the LM Determining, by the class mode information, the chroma component intra prediction mode, comprising: extracting a fourth fixed length code indicating LM class mode information from the code stream, and determining the chroma according to the LM class mode information The component intra prediction mode is a first LM class mode or a second LM class mode.
14、 根据权利要求 12所述的方法, 当所述 LM类模式包括第一 LM类 模式、 第二 LM类模式与第三 LM类模式三个模式时, 所述从码流中提取 LM类模式信息, 根据所述 LM类模式信息确定所述色度分量帧内预测模式 为所述多个模式其中之一, 其特征在于, 包括:  14. The method according to claim 12, when the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, the extracting the LM class mode from the code stream And determining, according to the LM class mode information, the chrominance component intra prediction mode is one of the multiple modes, and the method includes:
所述 LM类模式信息包括第五定长码和第六定长码,  The LM class mode information includes a fifth fixed length code and a sixth fixed length code.
从码流中提取所述 LM类模式信息中的所述第五定长码, 并根据所述第 五定长码确定所述色度分量帧内预测模式是否为第一 LM类模式;  And extracting, by the code stream, the fifth fixed length code in the LM class mode information, and determining, according to the fifth fixed length code, whether the chroma component intra prediction mode is a first LM class mode;
若确定所述色度分量帧内预测模式不是第一 LM类模式, 则进一步从码 流中提取所述 LM类模式信息中的第六定长码, 并根据所述第六定长码确定 所述色度分量帧内预测模式为第二 LM类模式或第三 LM类模式。  If it is determined that the chroma component intra prediction mode is not the first LM class mode, further extracting a sixth fixed length code in the LM class mode information from the code stream, and determining, according to the sixth fixed length code, The chrominance component intra prediction mode is the second LM class mode or the third LM class mode.
15、 根据权利要求 12所述的方法, 当所述 LM类模式包括第一 LM类 模式、 第二 LM类模式与第三 LM类模式三个模式时, 所述从码流中提取 LM类模式信息, 根据所述 LM类模式信息确定所述色度分量帧内预测模式 为所述多个模式其中之一, 其特征在于, 还包括: 所述 LM类模式信息由第二 TU码携带, 15. The method according to claim 12, when the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, the extracting the LM class mode from the code stream And determining, according to the LM-type mode information, the chrominance component intra prediction mode is one of the multiple modes, and the method further includes: The LM class mode information is carried by the second TU code,
从码流中提取所述第二 TU码, 根据所述第二 TU码确定所述色度分量 帧内预测模式是否为所述第一 LM类模式, 或为所述第二 LM类模式, 或为 所述第三 LM类模式。  Extracting, by the code stream, the second TU code, determining, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode, or the second LM class mode, or For the third LM class mode.
16、 根据权利要求 7所述的方法, 当由一个第七定长 FL码携带所述第 二信息时, 所述当根据所述第一信息不能确定色度分量帧内预测模式时, 提 取所述码流中的第二信息,根据所述第二信息确定所述色度分量帧内预测模 式, 其特征在于, 包括:  16. The method according to claim 7, when the second information is carried by a seventh fixed length FL code, when the chrominance component intra prediction mode cannot be determined according to the first information, the extraction The second information in the code stream is determined according to the second information, and the chrominance component intra prediction mode is determined, and the method includes:
从所述码流中提取所述第七定长 FL码, 根据所述第七定长 FL码确定 所述色度分量帧内预测模式。  Extracting the seventh fixed length FL code from the code stream, and determining the chroma component intra prediction mode according to the seventh fixed length FL code.
17、根据权利要求 7所述的方法, 当由第三 TU码携带所述第二信息时, 所述当根据所述第一信息不能确定色度分量帧内预测模式时,提取所述码流 中的第二信息, 根据所述第二信息确定所述色度分量帧内预测模式, 其特征 在于, 包括:  The method according to claim 7, when the second information is carried by the third TU code, when the chrominance component intra prediction mode cannot be determined according to the first information, extracting the code stream Determining the chrominance component intra prediction mode according to the second information, where the method includes:
从所述码流中提取所述第三 TU码, 根据所述第三 TU码确定所述色度 分量帧内预测模式。  Extracting the third TU code from the code stream, and determining the chrominance component intra prediction mode according to the third TU code.
18、 根据权利要求 5所述的方法, 当由第四 TU码携带所述色度分量模 式信息时, 所述提取码流中的色度分量模式信息, 根据所述色度分量模式信 息确定色度分量帧内预测模式, 其特征在于, 包括:  18. The method according to claim 5, when the chrominance component mode information is carried by the fourth TU code, the chrominance component mode information in the extracted code stream is determined according to the chrominance component mode information. The component component intra prediction mode is characterized by comprising:
从所述码流中提取所述第四 TU码, 根据所述第四 TU码确定所述色度 分量帧内预测模式。  Extracting the fourth TU code from the code stream, and determining the chrominance component intra prediction mode according to the fourth TU code.
19、 一种解码装置, 其特征在于, 包括:  19. A decoding device, comprising:
第一提取单元, 用于提取码流中的色度分量模式信息, 所述色度分量模 式信息用于确定色度分量帧内预测模式;  a first extracting unit, configured to extract chroma component mode information in the code stream, where the chroma component mode information is used to determine a chroma component intra prediction mode;
第一确定单元, 用于根据所述第一提取单元提取的所述色度分量模式信 息确定色度分量帧内预测模式;  a first determining unit, configured to determine a chroma component intra prediction mode according to the chroma component mode information extracted by the first extracting unit;
第二提取单元, 用于当所述第一确定单元确定所述色度分量帧内预测模 式为 DM模式时, 提取所述码流中的残差预测信息;  a second extracting unit, configured to: when the first determining unit determines that the chroma component intra prediction mode is a DM mode, extract residual prediction information in the code stream;
操作单元, 用于根据所述第二提取单元提取的所述残差预测信息进行色 度分量预测操作以获取色度分量帧内预测信号, 其中  An operation unit, configured to perform a chroma component prediction operation according to the residual prediction information extracted by the second extraction unit to obtain a chroma component intra prediction signal, where
所述 DM模式指使用亮度分量帧内预测模式所规定预测方法对色度分 量进行帧内预测操作的模式, 且 The DM mode refers to a chromaticity score determined by using a prediction method specified by a luminance component intra prediction mode The mode in which the intra prediction operation is performed, and
所述亮度分量帧内预测模式指在亮度分量解码过程中,根据从所述码流 中获取的亮度分量模式信息确定的亮度分量预测模式。  The luminance component intra prediction mode refers to a luminance component prediction mode determined based on luminance component mode information acquired from the code stream in the luminance component decoding process.
20、 根据权利要求 19所述的装置, 其特征在于, 所述第二提取单元包 括提取模块和确定模块:  20. The apparatus according to claim 19, wherein the second extracting unit comprises an extracting module and a determining module:
当所述残差预测信息包括残差预测标记信息时, 所述提取模块用于从所 述码流中提取一个表示所述残差预测标记信息的第一定长码, 所述残差预测 标记信息用于指示是否使用亮度分量残差信号辅助色度分量进行预测操作; 所述确定模块用于确定所述残差预测标记信息指示使用亮度分量残差 信号辅助色度分量进行预测操作, 则所述提取模块从所述码流中还提取残差 预测因子信息, 由所述残差预测因子信息确定的残差预测因子用于规定如何 使用亮度分量残差信号辅助色度分量进行预测操作, 其中  When the residual prediction information includes residual prediction flag information, the extracting module is configured to extract, from the code stream, a first fixed length code indicating the residual prediction flag information, the residual prediction flag The information is used to indicate whether the luma component residual signal is used to perform the prediction operation using the luma component residual signal; the determining module is configured to determine that the residual prediction flag information indicates that the luma component residual signal is used to perform the prediction operation by using the luma component residual signal, The extraction module further extracts residual prediction factor information from the code stream, and the residual prediction factor determined by the residual prediction factor information is used to specify how to use the luminance component residual signal to assist the chrominance component for prediction operation, where
所述亮度分量残差信号指在亮度分量解码过程中计算产生的信号。 The luminance component residual signal refers to a signal calculated to be generated during the decoding of the luminance component.
21、 根据权利要求 19所述的装置, 其特征在于, 所述第二提取单元包 括提取模块和确定模块: 21. The apparatus according to claim 19, wherein the second extracting unit comprises an extracting module and a determining module:
当所述残差预测信息包括残差预测标记信息时, 所述提取模块用于从所 述码流中提取一个表示残差预测标记信息的第一定长码, 所述残差预测标记 信息用于指示是否使用亮度分量残差信号辅助色度分量进行预测操作; 所述确定模块用于若所述残差预测标记信息指示使用亮度分量残差信 号辅助色度分量进行预测操作, 当残差预测因子为缺省值或经解码端计算获 知时, 所述残差预测因子用于规定如何使用亮度分量残差信号辅助色度分量 进行预测操作, 其中  When the residual prediction information includes residual prediction flag information, the extraction module is configured to extract, from the code stream, a first fixed length code indicating residual prediction flag information, where the residual prediction flag information is used. Determining whether to use the luma component residual signal to assist the chroma component for performing a prediction operation; the determining module is configured to: when the residual prediction flag information indicates that the luma component residual signal is used to perform a prediction operation, when the residual prediction is performed When the factor is the default value or is known by the decoding end, the residual prediction factor is used to specify how to use the luminance component residual signal to assist the chrominance component for prediction operation, where
所述亮度分量残差信号指在亮度分量解码过程中计算产生的信号。 The luminance component residual signal refers to a signal calculated to be generated during the decoding of the luminance component.
22、 根据权利要求 20所述的装置, 其特征在于, 所述操作单元包括操 作模块、 计算模块和修正模块: 22. The apparatus according to claim 20, wherein the operation unit comprises an operation module, a calculation module, and a correction module:
所述操作模块用于使用所述色度分量帧内预测模式所规定的预测方法 对色度分量进行帧内预测操作以获取色度分量帧内预测信号;  The operation module is configured to perform an intra prediction operation on the chroma component by using a prediction method specified by the chroma component intra prediction mode to obtain a chroma component intra prediction signal;
所述计算模块用于根据所述确定模块确定的所述残差预测因子与所述 操作模块获取的所述亮度分量残差信号计算得到残差预测修正信号;  The calculation module is configured to calculate a residual prediction correction signal according to the residual prediction factor determined by the determining module and the luminance component residual signal acquired by the operation module;
所述修正模块用于使用所述计算模块获取的所述残差预测修正信号对 所述色度分量帧内预测信号进行修正以获得修正后的色度分量帧内预测信 号。 The correction module is configured to correct the chroma component intra prediction signal by using the residual prediction correction signal acquired by the calculation module to obtain a modified chroma component intra prediction signal. number.
23、 根据权利要求 19所述的装置, 其特征在于:  23. Apparatus according to claim 19 wherein:
所述第二提取单元具体用于在提取码流中的亮度分量编码块标记 cbf信 息, 并确定所述 cbf信息指示当前块亮度分量包括非零系数后, 提取所述码 流中的残差预测信息。  The second extracting unit is specifically configured to: in the extracted code stream, the luma component encoding block flag cbf information, and determine that the cbf information indicates that the current block luma component includes a non-zero coefficient, and extract the residual prediction in the code stream. information.
24、 根据权利要求 19所述的装置, 其特征在于:  24. Apparatus according to claim 19 wherein:
所述第一提取单元具体用于提取码流中的色度分量模式信息包括的第 一信息, 所述第一确定单元根据所述第一信息确定色度分量帧内预测模式; 当所述第一确定单元根据所述第一信息不能确定色度分量帧内预测模 式时, 确定第一缺省模式作为色度分量帧内预测模式, 其中  The first extracting unit is specifically configured to extract first information included in the chroma component mode information in the code stream, where the first determining unit determines a chroma component intra prediction mode according to the first information; When the determining unit cannot determine the chroma component intra prediction mode according to the first information, determining the first default mode as the chroma component intra prediction mode, where
所述第一信息包括用于指示所述色度分量帧内预测模式是否为 DM模 式或 LM类模式的信息。  The first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode.
25、 根据权利要求 19所述的装置, 其特征在于:  25. Apparatus according to claim 19 wherein:
所述第一提取单元具体用于提取码流中的色度分量模式信息包括的第 一信息,所述第一确定单元具体用于根据所述第一信息确定色度分量帧内预 测模式;  The first extracting unit is specifically configured to extract the first information included in the chroma component mode information in the code stream, where the first determining unit is specifically configured to determine a chroma component intra prediction mode according to the first information;
当根据所述第一信息不能确定色度分量帧内预测模式时, 所述第一提取 单元还提取所述码流中的色度分量模式信息包括的第二信息, 所述第一确定 单元根据所述第二信息确定所述色度分量帧内预测模式, 其中  When the chrominance component intra prediction mode cannot be determined according to the first information, the first extracting unit further extracts second information included in the chrominance component mode information in the code stream, where the first determining unit is configured according to The second information determines the chroma component intra prediction mode, where
所述第一信息包括用于指示所述色度分量帧内预测模式是否为 DM模 式或 LM类模式的信息,  The first information includes information indicating whether the chroma component intra prediction mode is a DM mode or an LM class mode,
所述第二信息用于指示作为所述色度分量帧内预测模式的剩余模式, 所 述剩余模式为除所述第一信息可能确定的模式外的可用于色度分量帧内预 测模式的其中之一, 且  The second information is used to indicate a remaining mode that is an intra prediction mode of the chroma component, where the remaining mode is a chroma component intra prediction mode other than a mode that may be determined by the first information. One, and
所述 LM类模式包括一个或多个基于相关性模型使用亮度分量重建值计 算色度分量预测值的模式。  The LM class mode includes one or more modes for calculating a chrominance component predictor using a luminance component reconstruction value based on a correlation model.
26、 根据权利要求 25所述的装置, 其特征在于:  26. Apparatus according to claim 25 wherein:
当所述第一信息包括第二定长码时, 所述第一提取单元具体用于从所述 码流中提取所述第二定长码, 所述第一确定单元具体用于根据所述第二定长 码确定所述色度分量帧内预测模式是否为 DM模式;  When the first information includes the second fixed length code, the first extracting unit is specifically configured to extract the second fixed length code from the code stream, where the first determining unit is specifically configured to be used according to the Determining, by the second fixed length code, whether the chroma component intra prediction mode is a DM mode;
当色度分量帧内预测模式不包括 LM类模式时, 若所述第一确定单元确 定所述色度分量帧内预测模式不是 DM模式,则表示根据所述第一信息不能 确定所述色度分量帧内预测模式。。 When the chroma component intra prediction mode does not include the LM class mode, if the first determining unit is Determining that the chroma component intra prediction mode is not the DM mode indicates that the chroma component intra prediction mode cannot be determined according to the first information. .
27、 根据权利要求 26所述的装置, 其特征在于:  27. Apparatus according to claim 26 wherein:
当所述第一信息还包括第三定长码时, 若所述第一确定单元根据所述第 一提取单元提取的所述第二定长码确定所述色度分量帧内预测模式不是 DM 模式, 则所述第一提取单元进一步从所述码流中提取所述第三定长码, 所述 第一确定单元根据所述第三定长码确定所述色度分量帧内预测模式是否为 LM类模式;  When the first information further includes a third fixed length code, if the first determining unit determines, according to the second fixed length code extracted by the first extracting unit, the chroma component intra prediction mode is not DM a mode, the first extracting unit further extracts the third fixed length code from the code stream, and the first determining unit determines, according to the third fixed length code, whether the chroma component intra prediction mode is For the LM class mode;
若所述第一确定单元确定所述色度分量帧内预测模式是 LM类模式, 需 要进一步确定所述色度分量帧内预测模式; 或者  If the first determining unit determines that the chroma component intra prediction mode is an LM class mode, it is required to further determine the chroma component intra prediction mode; or
若所述第一确定单元确定所述色度分量帧内预测模式不是 LM类模式, 则表示根据所述第一信息不能确定所述色度分量帧内预测模式。  And if the first determining unit determines that the chroma component intra prediction mode is not the LM class mode, indicating that the chroma component intra prediction mode cannot be determined according to the first information.
28、 根据权利要求 25所述的装置, 其特征在于:  28. Apparatus according to claim 25 wherein:
当由第一截断一元 TU码携带所述第一信息时, 所述第一提取单元具体 用于从所述码流中提取所述第一 TU码,所述第一确定单元根据所述第一 TU 码确定所述色度分量帧内预测模式是否为 DM模式或 LM类模式;  When the first information is carried by the first truncated one-dimensional TU code, the first extracting unit is specifically configured to extract the first TU code from the code stream, and the first determining unit is configured according to the first Determining, by the TU code, whether the chroma component intra prediction mode is a DM mode or an LM class mode;
若所述第一确定单元确定所述色度分量帧内预测模式是 LM类模式, 需 要进一步确定所述色度分量帧内预测模式; 或者  If the first determining unit determines that the chroma component intra prediction mode is an LM class mode, it is required to further determine the chroma component intra prediction mode; or
若所述第一确定单元确定所述色度分量帧内预测模式既不是 DM模式 也不是 LM类模式, 则表示根据所述第一信息不能确定所述色度分量帧内预 测模式。  And if the first determining unit determines that the chroma component intra prediction mode is neither a DM mode nor an LM class mode, indicating that the chroma component intra prediction mode cannot be determined according to the first information.
29、 根据权利要求 27或 28所述的装置, 其特征在于:  29. Apparatus according to claim 27 or claim 28 wherein:
所述第一确定单元具体用于当 LM类模式仅包括第二缺省模式时, 则确 定所述色度分量帧内预测模式为所述第二缺省模式。  The first determining unit is specifically configured to: when the LM class mode includes only the second default mode, determine that the chroma component intra prediction mode is the second default mode.
30、 根据权利要求 27或 28所述的装置, 其特征在于:  30. Apparatus according to claim 27 or claim 28 wherein:
所述第一确定单元若确定所述色度分量帧内预测模式是 LM类模式, 需 要进一步确定所述色度分量帧内预测模式, 所述第一提取单元还从码流中提 取 LM类模式信息, 所述第一确定单元根据所述 LM类模式信息确定所述色 度分量帧内预测模式。  If the first determining unit determines that the chroma component intra prediction mode is an LM class mode, the chroma component intra prediction mode needs to be further determined, and the first extracting unit further extracts the LM class mode from the code stream. Information, the first determining unit determines the chroma component intra prediction mode according to the LM class mode information.
31、 根据权利要求 30所述的装置, 其特征在于:  31. Apparatus according to claim 30 wherein:
当所述 LM类模式包括第一 LM类模式与第二 LM类模式两个模式时, 所述第一提取模块具体用于从码流中提取一个表示 LM类模式信息的第四定 长码, 所述第一确定单元根据所述 LM类模式信息确定所述色度分量帧内预 测模式为第一 LM类模式或第二 LM类模式。 When the LM class mode includes two modes, a first LM class mode and a second LM class mode, The first extraction module is specifically configured to extract a fourth fixed length code indicating LM type mode information from the code stream, where the first determining unit determines the chrominance component intra prediction mode according to the LM type mode information. It is the first LM class mode or the second LM class mode.
32、 根据权利要求 30所述的装置, 其特征在于:  32. Apparatus according to claim 30 wherein:
当所述 LM类模式包括第一 LM类模式、第二 LM类模式与第三 LM类 模式三个模式, 且所述 LM类模式信息包括第五定长码和第六定长码时, 所 述第一提取单元具体用于从码流中提取所述 LM类模式信息中的所述第五定 长码, 所述第一确定单元根据所述第五定长码确定所述色度分量帧内预测模 式是否为第一 LM类模式;  When the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, and the LM class mode information includes a fifth fixed length code and a sixth fixed length code, The first extracting unit is specifically configured to extract the fifth fixed length code in the LM type mode information from a code stream, where the first determining unit determines the chrominance component frame according to the fifth fixed length code Whether the intra prediction mode is the first LM class mode;
所述第一确定单元若确定所述色度分量帧内预测模式不是第一 LM类模 式, 则所述第一提取单元进一步从码流中提取所述 LM类模式信息中的第六 定长码,所述第一确定单元根据所述第六定长码确定所述色度分量帧内预测 模式为第二 LM类模式或第三 LM类模式。  If the first determining unit determines that the chroma component intra prediction mode is not the first LM class mode, the first extracting unit further extracts a sixth fixed length code in the LM class mode information from the code stream. The first determining unit determines, according to the sixth fixed length code, that the chroma component intra prediction mode is a second LM class mode or a third LM class mode.
33、 根据权利要求 30所述的装置, 其特征在于:  33. Apparatus according to claim 30 wherein:
当所述 LM类模式包括第一 LM类模式、第二 LM类模式与第三 LM类 模式三个模式, 且所述 LM类模式信息由第二 TU码携带时,  When the LM class mode includes three modes: a first LM class mode, a second LM class mode, and a third LM class mode, and the LM class mode information is carried by the second TU code,
所述第一提取单元从码流中提取所述第二 TU码, 所述第一确定单元根 据所述第二 TU码确定所述色度分量帧内预测模式是否为所述第一 LM类模 式, 或为所述第二 LM类模式, 或为所述第三 LM类模式。  The first extracting unit extracts the second TU code from the code stream, and the first determining unit determines, according to the second TU code, whether the chroma component intra prediction mode is the first LM class mode. , or the second LM class mode, or the third LM class mode.
34、 根据权利要求 25所述的装置, 其特征在于:  34. Apparatus according to claim 25 wherein:
当由一个第七定长 FL码携带所述第二信息时, 所述第一提取单元具体 用从所述码流中提取所述第七定长 FL码, 所述第一确定单元根据所述第七 定长 FL码确定所述色度分量帧内预测模式。  When the second information is carried by the seventh fixed length FL code, the first extracting unit specifically extracts the seventh fixed length FL code from the code stream, and the first determining unit is configured according to the The seventh fixed length FL code determines the chrominance component intra prediction mode.
35、 根据权利要求 25所述的装置, 其特征在于:  35. Apparatus according to claim 25 wherein:
当由第三 TU码携带所述第二信息时, 所述第一提取单元具体用于从所 述码流中提取所述第三 TU码, 所述第一确定单元根据所述第三 TU码确定 所述色度分量帧内预测模式。  When the second information is carried by the third TU code, the first extracting unit is specifically configured to extract the third TU code from the code stream, where the first determining unit is configured according to the third TU code. The chroma component intra prediction mode is determined.
36、 根据权利要求 23所述的装置, 其特征在于:  36. Apparatus according to claim 23 wherein:
当由第四 TU码携带所述色度分量模式信息时, 所述第一提取单元具体 用于从所述码流中提取所述第四 TU码,所述第一确定单元根据所述第四 TU 码确定所述色度分量帧内预测模式。  When the chrominance component mode information is carried by the fourth TU code, the first extracting unit is specifically configured to extract the fourth TU code from the code stream, where the first determining unit is according to the fourth The TU code determines the chroma component intra prediction mode.
PCT/CN2012/080343 2012-01-31 2012-08-20 Decoding method and device WO2013113217A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201210021491.9A CN103227917B (en) 2012-01-31 2012-01-31 Coding/decoding method and device
CN201210021491.9 2012-01-31

Publications (1)

Publication Number Publication Date
WO2013113217A1 true WO2013113217A1 (en) 2013-08-08

Family

ID=48838155

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/080343 WO2013113217A1 (en) 2012-01-31 2012-08-20 Decoding method and device

Country Status (2)

Country Link
CN (1) CN103227917B (en)
WO (1) WO2013113217A1 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065538A1 (en) * 2014-10-28 2016-05-06 Mediatek Singapore Pte. Ltd. Guided cross-component prediction

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
FR3011408A1 (en) * 2013-09-30 2015-04-03 Orange RE-SAMPLING AN AUDIO SIGNAL FOR LOW DELAY CODING / DECODING
WO2016115736A1 (en) * 2015-01-23 2016-07-28 Mediatek Singapore Pte. Ltd. Additional intra prediction modes using cross-chroma-component prediction
CN107211121B (en) 2015-01-22 2020-10-23 联发科技(新加坡)私人有限公司 Video encoding method and video decoding method
WO2016183814A1 (en) * 2015-05-20 2016-11-24 Mediatek Singapore Pte. Ltd. Coded block flag coding using cross-component correlation
CN106412579B (en) * 2015-07-30 2019-07-16 浙江大华技术股份有限公司 A kind of coding of image, coding/decoding method and device
WO2017016526A1 (en) 2015-07-30 2017-02-02 Zhejiang Dahua Technology Co., Ltd. Methods and systems for image compression
CN110546957A (en) * 2017-06-22 2019-12-06 华为技术有限公司 Intra-frame prediction method and device
CN110278435B (en) * 2018-03-16 2021-11-19 华为技术有限公司 Intra-frame prediction method and device for image block
CN110858903B (en) * 2018-08-22 2022-07-12 华为技术有限公司 Chroma block prediction method and device
CN110876061B (en) * 2018-09-03 2022-10-11 华为技术有限公司 Chroma block prediction method and device
CN113545049B (en) 2019-03-08 2024-04-19 北京字节跳动网络技术有限公司 Constraints on model-based shaping in video processing
WO2020211862A1 (en) 2019-04-18 2020-10-22 Beijing Bytedance Network Technology Co., Ltd. Restriction on applicability of cross component mode
AU2020263199B2 (en) 2019-04-23 2023-10-19 Beijing Bytedance Network Technology Co., Ltd. Methods for cross component dependency reduction
CN113994697A (en) 2019-06-22 2022-01-28 北京字节跳动网络技术有限公司 Syntax element for chroma residual scaling
WO2021004445A1 (en) 2019-07-07 2021-01-14 Beijing Bytedance Network Technology Co., Ltd. Signaling of chroma residual scaling
US20230029431A1 (en) * 2020-01-31 2023-01-26 Qualcomm Incorporated Dynamic gamma curve use for display

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589028A (en) * 2004-07-29 2005-03-02 联合信源数字音视频技术(北京)有限公司 Predicting device and method based on pixel flowing frame
CN101820546A (en) * 2009-02-27 2010-09-01 源见科技(苏州)有限公司 Intra-frame prediction method
CN102006481A (en) * 2010-12-17 2011-04-06 武汉大学 Fast intra prediction mode selection method based on block features
CN102215390A (en) * 2010-04-09 2011-10-12 华为技术有限公司 Processing method and device for image coding and decoding

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101064849A (en) * 2006-04-29 2007-10-31 鲁海宁 Dynamic image coding method, apparatus and computer readable record medium
US8265152B2 (en) * 2008-10-10 2012-09-11 Arecont Vision, Llc. System and method for low-latency processing of intra-frame video pixel block prediction
CN101394565B (en) * 2008-10-20 2011-08-17 成都九洲电子信息系统有限责任公司 Intra-frame prediction method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1589028A (en) * 2004-07-29 2005-03-02 联合信源数字音视频技术(北京)有限公司 Predicting device and method based on pixel flowing frame
CN101820546A (en) * 2009-02-27 2010-09-01 源见科技(苏州)有限公司 Intra-frame prediction method
CN102215390A (en) * 2010-04-09 2011-10-12 华为技术有限公司 Processing method and device for image coding and decoding
CN102006481A (en) * 2010-12-17 2011-04-06 武汉大学 Fast intra prediction mode selection method based on block features

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2016065538A1 (en) * 2014-10-28 2016-05-06 Mediatek Singapore Pte. Ltd. Guided cross-component prediction

Also Published As

Publication number Publication date
CN103227917A (en) 2013-07-31
CN103227917B (en) 2016-12-14

Similar Documents

Publication Publication Date Title
WO2013113217A1 (en) Decoding method and device
US9906789B2 (en) Encoding or decoding method and apparatus
RU2608682C2 (en) Image encoding and decoding method, device for encoding and decoding and corresponding software
WO2013000324A1 (en) Method and apparatus of intra mode coding
WO2013064114A1 (en) Intra-frame decoding method and device for image block signal component sampling point
CN104093024A (en) Coding and decoding method and device
AU2014277750B2 (en) Encoding or decoding method and apparatus

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 12867072

Country of ref document: EP

Kind code of ref document: A1