WO2012097675A1 - Encoding/decoding method and codec based on intra-prediction mode of image block - Google Patents

Encoding/decoding method and codec based on intra-prediction mode of image block Download PDF

Info

Publication number
WO2012097675A1
WO2012097675A1 PCT/CN2011/085195 CN2011085195W WO2012097675A1 WO 2012097675 A1 WO2012097675 A1 WO 2012097675A1 CN 2011085195 W CN2011085195 W CN 2011085195W WO 2012097675 A1 WO2012097675 A1 WO 2012097675A1
Authority
WO
WIPO (PCT)
Prior art keywords
block
sub
prediction mode
probable
current image
Prior art date
Application number
PCT/CN2011/085195
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 WO2012097675A1 publication Critical patent/WO2012097675A1/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/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • 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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • the present invention relates to the field of image processing technologies, and in particular, to a codec method and a codec based on an intra block prediction mode of an image block. Background technique
  • Intra coding does not require a reference frame and does not involve interpolating the reference frame.
  • the prediction in the division mode may be performed according to a certain division manner, thereby obtaining a residual block corresponding to the division size, and transforming, quantizing, and entropy coding the residual block.
  • the division mode of the current coding object and the corresponding division size are first obtained, and then the coefficients in the code stream are decoded, and the prediction and reconstruction under the corresponding block division mode are performed to generate a decoded image.
  • the prediction direction of the current block also referred to as a prediction mode
  • the prediction direction of the current block also referred to as a prediction mode
  • Figure 1 is a schematic diagram of sub-block partitioning in a 16x16 image block.
  • a total of 16 4x4 blocks are included in the current 16x16 block, and each of the 16 4x4 blocks is a sub-block of the current 16x16 block.
  • a block and a sub-block are a relative concept.
  • a sub-block may also include other sub-blocks therein; the sub-blocks within a block may also be flexible, for example, sub-blocks may be It is a horizontal rectangle or a vertical rectangle, not just a square.
  • FIG. 2 is a schematic diagram of an intra prediction direction of an image block, in which an 8x8 block is identified by a thick line, and the arrow in the figure points to a possible prediction direction of one of the 8x8 blocks.
  • an optimal prediction direction is determined from a plurality of possible prediction directions as a prediction mode of the current sub-block, and the current sub-block is predictively coded according to the prediction mode, and The prediction mode is written in the code stream, and the residual is encoded.
  • the prior art introduces a most probable mode (MPM), also called the most probable prediction direction.
  • MPM most probable mode
  • the actual prediction mode of the sub-block is not directly written in the code stream, but the most probable prediction mode of the current sub-block is obtained first, and then the actual prediction mode of the sub-block is compared with the most probable prediction mode of the sub-block. And obtaining identification information that needs to be written into the code stream according to the obtained size relationship; if the actual prediction mode of the sub-block is the same as the most probable prediction mode of the sub-block, the identifier can be saved in the code stream. Occupied bits.
  • the most probable prediction mode of an image block as close as possible to the actual prediction mode of the image block becomes a problem.
  • the actual prediction mode of the neighboring block with the smallest prediction mode value in the upper neighboring block and the left neighboring block of the current block is used as The most probable prediction mode of the current block, so that the correlation between the current block and its left neighboring block and the upper neighboring block can be utilized to improve the accuracy of predicting the most probable prediction mode of the current block.
  • a sub-block of one block may not be a block, but a rectangular block or the like, so the left adjacent block and the upper adjacent block of the current block may have different divisions, if still in prediction mode.
  • the actual prediction mode of the neighboring block with the smallest value is the most probable prediction mode of the current block, and the most probable prediction mode obtained is not necessarily accurate. Therefore, how to effectively predict the most probable prediction mode of a block and make this prediction method applicable not only to block division but also to irregular block division becomes a problem.
  • Embodiments of the present invention provide a codec method and a codec based on an intra prediction mode of an image block to effectively predict a most probable prediction mode of an image block.
  • an encoding method based on an intra block prediction mode of an image block including:
  • a decoding method based on an intra block prediction mode of an image block including:
  • the first sub-block is adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction;
  • a prediction mode of the second sub-block is determined based on the identification and a most probable prediction mode of the second sub-block.
  • an encoder including:
  • An acquiring unit configured to acquire a prediction mode of a first sub-block in a current image block and a prediction mode of a second sub-block in the current image block, where the first sub-block is adjacent to the second sub-block and is horizontal Arranged in the direction or in the vertical direction;
  • a determining unit configured to use a prediction mode of the first sub-block as a most probable prediction mode of the second sub-block
  • a code stream writing unit configured to determine, according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and write the identifier into the code stream in.
  • a decoder including:
  • a code stream reading unit configured to acquire, from the code stream, an identifier for indicating a prediction mode of the second sub-block in the current image block
  • a determining unit configured to use a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and is horizontal or vertical Straight in the direction;
  • a decoding unit configured to determine, according to the identifier and a most probable prediction mode of the second sub-block The prediction mode of the two sub-blocks.
  • the embodiment of the present invention can better utilize the correlation between different neighboring blocks arranged in a certain direction to predict the most probable prediction direction of a block, so that the most probable prediction direction of the block is close.
  • the actual prediction direction is beneficial to save the number of bits occupied by the identifier for indicating the actual prediction direction of the block, thereby saving code stream overhead.
  • an encoding method based on an intra block prediction mode of an image block including:
  • the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
  • a decoding method based on an intra block prediction mode of an image block including:
  • the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
  • an encoder including:
  • An obtaining unit configured to acquire a prediction mode of a first sub-block in a current image block, where the first sub-block a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
  • a determining unit configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
  • a code stream writing unit configured to determine, according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code stream in.
  • a decoder including:
  • a code stream reading unit configured to acquire, from the code stream, an identifier for indicating a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction; a determining unit, configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
  • a decoding unit configured to determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
  • the embodiment of the present invention is used to determine the most probable prediction mode of two adjacent sub-blocks with similar sub-block division manner in an image block, so that the actual prediction mode of one sub-block is the most of all sub-blocks in another sub-block.
  • the possible prediction mode can effectively predict the most probable prediction mode, which is beneficial to save the number of bits occupied by the identifier for indicating the actual prediction direction of the block, thereby saving code stream overhead.
  • 1 is a schematic diagram of sub-block partitioning in a 16x16 image block
  • FIG. 2 is a schematic diagram of an intra prediction direction of an image block
  • FIG. 3 is a schematic diagram of an encoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention
  • FIG. 3b is a schematic diagram of a decoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention
  • FIG. 3c is a schematic flow chart of a method for encoding and decoding an image block prediction direction according to an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an image block division structure according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram of another image block division structure according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic diagram of another encoding method of an intra block based intra prediction mode according to an embodiment of the present invention.
  • FIG. 7 is a schematic diagram of an 8 ⁇ 8 intra-subblock partitioning according to an embodiment of the present invention
  • FIG. 8 is a schematic diagram of another image block-based intra prediction mode decoding method according to an embodiment of the present invention.
  • FIG. 9 is a schematic structural diagram of an encoder according to an embodiment of the present disclosure.
  • FIG. 10 is a schematic structural diagram of a decoder according to an embodiment of the present disclosure.
  • FIG. 11 is a schematic structural diagram of another encoder according to an embodiment of the present disclosure.
  • FIG. 12 is a schematic structural diagram of another decoder according to an embodiment of the present invention.
  • FIG. 3a is a schematic diagram of an encoding method of an image block-based intra prediction mode according to an embodiment of the present invention, where the method includes:
  • S3 la acquiring a prediction mode of the first sub-block in the current image block and a second sub-module in the current image block a prediction mode of the block, the first sub-block being adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction.
  • S32a The prediction mode of the first sub-block is taken as the most probable prediction mode of the second sub-block.
  • S33a Determine an identifier for indicating a prediction mode of the second sub-block according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, and write the identifier into the code stream.
  • the prediction mode is also referred to as the prediction direction, and the two expressions are different but represent the same meaning.
  • the method provided by the above embodiments can effectively predict the most probable prediction direction of an image block, thereby determining the value of the identifier of the write code stream.
  • This method is not only suitable for direction prediction of block division, but also for direction prediction of non-blocks such as horizontal rectangles or vertical rectangle blocks.
  • the present embodiment only uses one neighboring block of the current block to predict the most probable prediction direction of the current block.
  • the adjacent block for predicting the most probable prediction direction of the current block is arranged horizontally or vertically with the current block, and the correlation between different adjacent blocks arranged in a certain direction can be better utilized, so that the predicted result is obtained.
  • the most probable prediction direction of the current block is close to its actual prediction direction, and can be applied to the scene in which the sub-block division manner is irregular in the image block, which is advantageous for saving the number of bits for indicating the actual prediction direction of the current block, when the coding end
  • the code stream overhead can be saved as much as possible, and the overall coding performance is improved.
  • FIG. 3b is a schematic diagram of a decoding method of an intra block based intra prediction mode according to an embodiment of the present invention, where the method includes:
  • S31b Obtain an identifier for indicating a prediction mode of the second sub-block in the current image block from the code stream;
  • the prediction mode of the first sub-block in the current image block is regarded as the most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and is horizontal or vertical Arrange in direction
  • S33b Determine a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
  • the method provided in this embodiment can be applied to the decoding end, and can effectively predict the most probable prediction of the image block.
  • Direction in order to obtain an actual prediction direction of the image block, and predictively decode the image block according to the prediction direction, and accurately obtain the decoded image.
  • the present invention also provides an embodiment of a method for encoding and decoding an image block prediction direction, as shown in Figure 3c, the method includes:
  • S31c Dividing the current image block to obtain a plurality of sub-image blocks, and writing the division mode information of the current image block into the code stream.
  • the plurality of sub-image blocks are sequentially arranged in a horizontal or vertical direction, and the plurality of sub-image blocks include at least a first sub-image block at a boundary of the current image block, and the first sub-image block Adjacent second sub-image block.
  • FIG. 4 A schematic diagram of a specific image block partitioning structure provided by an embodiment of the present invention is shown in FIG. 4.
  • a specific image block partitioning structure provided by an embodiment of the present invention is shown in FIG. 4.
  • four 16x16 blocks can be divided, and each 16x16 block can be divided into four 8x8 blocks.
  • the 16x16 block in the lower left corner of the block is divided into four 4x16 blocks, and the same 8x8 block can be further divided into 4x4 blocks or 2x8 blocks, etc., and those skilled in the art can perform various kinds of image blocks according to actual needs.
  • a 4x16 block in Figure 4 is a vertically arranged rectangle, but in practice can also be divided into horizontal directions
  • Arranged rectangles, such as a 16x16 block can be divided into 4 vertical 16x4 blocks.
  • the rectangular block may include various forms, and it is understood that a linear block such as 1x16 or 16x1 is also a type of rectangular block.
  • S32c predicting the first sub-image block and the second sub-image block according to adjacent image blocks of the current image block from a plurality of predefined prediction directions, respectively obtaining the first sub-image block The prediction direction and the prediction direction of the second sub-image block.
  • S33c Determine a most probable prediction direction of the first sub-image block according to a prediction direction of a neighboring image block of the current image block.
  • the process may adopt a prior art method of selecting a block with the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block, and the prediction direction of the selected block is taken as the first in the current image block.
  • each prediction mode may correspond to a value, that is, each mode may correspond to a number, which is used to reflect the size of the mode value, and when the block is selected, the prediction mode may be selected according to the number.
  • the block with the smallest value when one image block has 2 neighboring blocks, the block with the smallest prediction mode value may be selected as a reference to predict the most probable prediction direction of the current block or the subblock in the current block.
  • the predicted direction of the available neighboring block is used as the most probable prediction direction. If the left neighboring block and the upper neighboring block are not available, a predefined default value is used as the most probable prediction mode.
  • S34c Determine a prediction direction of the first sub-image block as a most probable prediction direction of the second sub-image block.
  • S35c determining, according to a prediction direction of the first sub-image block and a most probable prediction direction of the first sub-image block, a value that is required to be written into the code stream to identify a prediction direction of the first sub-image block; Determining, according to a prediction direction of the second sub-image block and a most probable prediction direction of the second sub-image block, a value of a prediction direction of the second sub-image block that needs to be written into the code stream.
  • the prediction mode of the current sub-block is ilntraDirLuma
  • the most probable prediction mode of the current sub-block is iMostProbable.
  • ilntraDirLuma is equal to iMostProbable
  • a bit of the identifier is written in the code stream, for example, the identifier "1" can be used to indicate that the prediction mode of the current sub-block is the most probable prediction mode.
  • ilntraDirLuma is not equal to iMostProbable, the value of the above identifier is first identified as "0", that is, the prediction mode of the current sub-block is not equal to the most probable prediction mode, and further judgment is made. If the actual prediction direction of the current sub-block is smaller than the predicted most probable prediction direction, the actual prediction direction value ilntraDirLuma of the current sub-block is written in the code stream, if the actual prediction direction of the current sub-block is greater than the predicted most probable prediction direction. , then write ilntraDirLuma - 1 in the stream.
  • the method in this embodiment can be used for 4x16 blocks or 16x4 blocks in 16x16 block partitioning, or 2x8 blocks or 8x2 blocks in 8x8 block partitioning, and the like.
  • the 32x8 partition and the 1x16 partition in 4x16, or the 16x1 partition in 16x4 can also use the method in this embodiment.
  • the decoding end After receiving the code stream, the decoding end parses and obtains the division mode information of the current image, the identification information of the prediction direction of the first sub-image block, and the prediction direction of the second sub-image block from the code stream. Identification information.
  • S37c Divide the current image block according to the division mode information to obtain the plurality of sub image blocks.
  • S38c Determine a most probable prediction direction of the first sub-image block according to a prediction direction of a neighboring image block of the current image block. The execution process of this step can be seen in S33.
  • S39c obtaining, from the identification information of the prediction direction of the first sub-image block and the most likely prediction direction of the first sub-image block, a prediction direction of the first sub-image block.
  • S310c Use a prediction direction of the first sub-image block as a most probable prediction direction of the second sub-image block.
  • S311 c obtaining a prediction direction of the second sub-image block from the identification information of the prediction direction of the second sub-image block and the most probable prediction direction of the second sub-image block.
  • the process of determining the prediction direction of the image block based on the identifier in S39c and S311c is the inverse of S35c. Specifically, the most probable prediction direction of the current sub-block is obtained first, and an identifier that identifies whether the prediction direction of the current sub-block is the most likely prediction direction is parsed in the code stream. For example, if the identifier is indicated as "1", the prediction direction of the current sub-block is the most probable prediction direction of the current sub-block.
  • step S33c may be after step S34c.
  • the most probable prediction direction of a block can be effectively predicted, thereby determining an identifier of the write code stream for indicating the prediction direction of the image block, when the actual prediction direction of the image block is equal to its most likely
  • only one bit of the indication flag needs to be written in the code stream, so when the most probable prediction direction of a block is closer to the actual prediction direction of the block, it will be more advantageous to save the code stream.
  • only the actual prediction mode of the neighboring block may be utilized as the most probable prediction mode of the current image block, without having to compare the predictions of the two neighboring blocks of the current image block.
  • FIG. 5 is a schematic diagram of another image block division structure according to an embodiment of the present invention. It is assumed that the current image block 50 is an 8x8 block including four 8x2 sub-blocks arranged in the horizontal direction, which are sub-block 51, sub-block 52, sub-block 53, and sub-block 54, respectively.
  • the sub-block 51 is located at the boundary of the current image block 50, and its most probable prediction mode is obtained by the prior art, that is, from the left adjacent block of the current image block 50 and the upper adjacent block (for the left adjacent block and the upper adjacent
  • the prediction mode of the block with the smallest prediction mode value is selected as the most probable prediction mode of the sub-block 51 in the block diagram;
  • the most probable prediction mode of the sub-block 52 is the prediction mode of the sub-block 51;
  • the most probable prediction mode is the prediction mode of sub-block 52;
  • the most probable prediction mode of sub-block 54 is the prediction mode of sub-block 53. Since there is a certain correlation between the four sub-blocks, the prediction modes of the sub-blocks adjacent to each other may have the same prediction mode to some extent, so the prediction mode of the adjacent sub-block is taken as the current sub-block.
  • the most likely prediction mode is obtained by the prior art, that is, from the left adjacent block of the current image block 50 and the upper adjacent block (for the left adjacent block and the
  • FIG. 6 is a schematic diagram of another encoding method of an intra block based intra prediction mode according to an embodiment of the present invention, where the method includes:
  • S61 Obtain a prediction mode of a first sub-block in a current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
  • S62 determining a second sub-block, and using the prediction mode of the second sub-block as the most likely of the first sub-block a prediction mode, the second sub-block is adjacent to the first sub-block and includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
  • S63 Determine, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code stream.
  • the current image block includes a plurality of sub-blocks. If each sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, the prediction mode of one of the sub-blocks may be used as the adjacent sub-block.
  • the most probable prediction mode of the block, the most probable prediction mode of the adjacent sub-block is applicable to all sub-blocks in the adjacent sub-block, and it is not necessary to separately solve one most probable prediction mode for each sub-block in the adjacent sub-block. It can be understood that the order of S61 and S12 is not fixed and can be flexibly adjusted.
  • the prediction direction of one of the blocks can be regarded as the most probable prediction direction of the other block, and the most probable prediction direction is used as the The most probable prediction direction of all sub-blocks in another block may cause the most probable prediction direction of all sub-blocks in the other block to be close to the true prediction direction, thereby reducing the number of identification bits indicating the prediction direction transmitted in the code stream.
  • the division of the two blocks is similar, and the division manners may be identical, or the sub-blocks within one block may be the same size and shape as the sub-blocks in another block, but the sub-blocks are arranged in different directions.
  • two blocks include a plurality of sub-blocks arranged in the horizontal direction or the vertical direction
  • the two blocks can be considered to be arranged in a similar manner.
  • the two adjacent blocks may each be a square, and the sub-blocks in each block may be non-square rectangular blocks and may be arranged in a horizontal or vertical direction, as shown in FIG.
  • the second sub-block and the first sub-block may both be located in the current image block, and of course, the second sub-block is not located outside the current image block.
  • the second sub-block may be an upper neighboring block or a left neighboring block of the first sub-block, or the second sub-block may be the block of the upper neighboring block and the left neighboring block of the first sub-block having the smallest prediction mode value. That is, only one neighboring block of the first sub-block that is similar to the first sub-block partitioning manner may be used as a reference for determining the most probable prediction mode of the first sub-block.
  • the prediction may be selected.
  • the block with the smallest mode value is used to determine the first sub-block A reference to the possible prediction mode.
  • FIG. 7 is a schematic diagram of sub-block partitioning within 8 ⁇ 8 blocks according to an embodiment of the present invention.
  • the 8 ⁇ 8 block is divided into four 4 ⁇ 4 sub-blocks, which are identified by labels 1, 2, 3, and 4, respectively.
  • a plurality of 1x4 blocks or 4x1 blocks may be further divided in each 4x4 block, wherein the sub-blocks 1 and the sub-blocks 4 have the same arrangement, and the sub-block 2 and the sub-block 3 have the same arrangement.
  • Each of the 4x4 blocks needs to have a prediction direction, and each 1x4 block or 4x1 block in the 4x4 block does not have to separately encode the prediction direction, that is, the prediction direction is encoded in units of 4x4 sub-blocks. Before encoding the prediction direction of 4x4 blocks, it is necessary to obtain the most probable prediction direction for each 4x4 block.
  • the prediction direction in which the prediction direction value is the smallest in the left adjacent block and the upper adjacent block of the current image block in which it is located may be taken as the most probable prediction direction of the first sub-block 1;
  • the most likely prediction direction is the prediction direction of the first sub-block 1; optionally, if the upper adjacent block of the second sub-block 2 (not shown) is also 1x4 or 4x1
  • the block composition is taken as the prediction direction with the smallest prediction direction value in the left adjacent block and the upper adjacent block as the most probable prediction direction of the second sub-block 2;
  • the most likely prediction direction is the prediction direction of the first sub-block 1; optionally, if the left adjacent block of the third sub-block 3 (not shown) is also 1x4 or 4x1
  • the block composition is taken as the prediction direction with the smallest prediction direction value in the left adjacent block and the upper adjacent block as the most probable prediction direction of the third sub-block 3; the small prediction direction is the most the fourth sub-block 4 It is possible to predict the direction.
  • FIG. 8 is a schematic diagram of another decoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention, where the method includes:
  • S81 Obtain an identifier for indicating a prediction mode of the first sub-block in the current image block from the code stream, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction; S82: determining a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes horizontally or vertically Multiple sub-blocks arranged in a straight direction;
  • S83 Determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
  • the code stream can not only convey the identification of the prediction mode of the image block, but also the division mode information of the image block, so that the decoding end can know how the coding end divides the image block.
  • FIG. 9 is a schematic structural diagram of an encoder according to an embodiment of the present invention, including: an obtaining unit 91, And acquiring a prediction mode of the first sub-block in the current image block and a prediction mode of the second sub-block in the current image block, the first sub-block being adjacent to the second sub-block and horizontally or vertically Arrange in direction
  • a determining unit 92 configured to use a prediction mode of the first sub-block as a most probable prediction mode of the second sub-block;
  • a code stream writing unit 93 configured to determine, according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and write the identifier into the code In the stream.
  • the determining unit 92 is further configured to predict a block with the smallest prediction mode value among the upper adjacent block and the left adjacent block of the current image block.
  • the mode is used as the most probable prediction mode of the first sub-block
  • the code stream writing unit 93 is further configured to determine, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, for indicating the first sub-block. Another identifier of the prediction mode is written and written into the code stream.
  • the encoder may further include a block dividing unit 94, configured to divide the current image block to obtain a horizontal direction or a vertical direction including the first sub-block and the second sub-block. a plurality of sub-blocks arranged in a straight direction; the code stream writing unit 93 is further configured to divide a current image block The information is written into the code stream.
  • a block dividing unit 94 configured to divide the current image block to obtain a horizontal direction or a vertical direction including the first sub-block and the second sub-block. a plurality of sub-blocks arranged in a straight direction; the code stream writing unit 93 is further configured to divide a current image block The information is written into the code stream.
  • FIG. 10 is a schematic structural diagram of a decoder according to an embodiment of the present invention, including:
  • a code stream reading unit 101 configured to acquire, from the code stream, an identifier for indicating a prediction mode of the second sub-block in the current image block;
  • a determining unit 102 configured to use a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and in a horizontal direction or Arranged in the vertical direction;
  • the decoding unit 103 is configured to determine a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
  • the code stream readout unit 101 is further configured to acquire another identifier for indicating a prediction mode of the first sub-block from the code stream;
  • the determining unit 102 is further configured to use, as a most probable prediction mode of the first sub-block, a prediction mode of a block in which a prediction mode value is the smallest among the upper neighboring block and the left neighboring block of the current image block;
  • the decoding unit 103 is further configured to determine a prediction mode of the first sub-block according to the another identifier and a most probable prediction mode of the first sub-block.
  • the code stream readout unit 101 is further configured to acquire, by using the code stream, the split mode information of the current image block.
  • the decoder further includes a block partitioning unit 104, configured to perform the partitioning manner according to the partitioning manner.
  • the current image block is divided to obtain a plurality of sub-blocks arranged in the horizontal direction or the vertical direction including the first sub-block and the second sub-block.
  • FIG. 11 is a schematic structural diagram of another encoder according to an embodiment of the present disclosure, where the encoder includes:
  • the obtaining unit 111 is configured to acquire a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
  • a determining unit 112 configured to determine a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes an edge Horizontal or vertical Multiple sub-blocks arranged in a straight direction;
  • a code stream writing unit 113 configured to determine, according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code In the stream.
  • the determining unit 112 if the upper adjacent block of the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, determining the upper adjacent block as the second sub-block Block; or, the left neighboring block is determined to be the second sub-block; or if the upper neighboring block and the left neighboring block of the first sub-block both include a plurality of horizontally or vertically arranged a sub-block, the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block is determined as the second sub-block.
  • the determining unit 112 is further configured to: use a block that minimizes a prediction mode value among the upper adjacent block and the left adjacent block of the current image block.
  • the prediction mode is used as the most probable prediction mode of the second sub-block;
  • the code stream writing unit 113 is further configured to determine, according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block, Another identification of the prediction mode of the sub-block and writing the other identification into the code stream.
  • FIG. 12 is a schematic structural diagram of another decoder according to an embodiment of the present disclosure, where the decoder includes:
  • the code stream reading unit 121 is configured to acquire, from the code stream, an identifier for indicating a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction.
  • a determining unit 122 configured to determine a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
  • the decoding unit 123 is configured to determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
  • the upper adjacent block of the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction
  • the upper adjacent block is determined as the second sub-block
  • the left adjacent block is determined as the second sub-block; or, if the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, A block having the smallest prediction mode value among the upper neighboring block and the left neighboring block is determined as the second sub-block.
  • the code stream readout unit 121 is further configured to acquire another identifier for indicating a prediction mode of the second sub-block from the code stream;
  • the determining unit 122 is further configured to use, as a most probable prediction mode of the second sub-block, a prediction mode of a block that is the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block;
  • the unit 123 is further configured to determine a prediction mode of the second sub-block according to the another identifier and a most probable prediction mode of the second sub-block.
  • the codec provided by the embodiment of the present invention is respectively located at the encoding end and the decoding end for encoding and decoding the code stream, and by effectively predicting the most probable prediction mode of the image block, the most probable prediction mode of an image block is closer to its actual prediction.
  • the mode reduces the number of bits in the image block prediction mode reflected in the code stream, and improves the codec performance.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).

Abstract

Disclosed are an encoding/decoding method and a codec based on an intra-prediction mode of an image block. The method includes: obtaining a prediction mode of a first sub-block in a current image block and a prediction mode of a second sub-block in the current image block, wherein the first sub-block and the second sub-block are adjacent to each other and are arranged in the horizontal direction or the vertical direction; taking the prediction mode of the first sub-block as the most probable prediction mode of the second sub-block; and determining an identifier for indicating the prediction mode of the second sub-block, and writing the same into a code stream, according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block. By adopting the technical solution, the most probable prediction mode of the image block can be effectively predicted, so that the overhead of the code stream can be saved.

Description

基于图像块的帧内预测模式的编解码方法和编解码器 本申请要求于 2011 年 1 月 18 日提交中国专利局、 申请号为 201110020668.9、发明名称为"基于图像块的帧内预测模式的编解码方法和编解 码器"的中国专利申请的优先权, 其全部内容通过引用结合在本申请中。  Encoding and decoding method and codec based on image block-based intra prediction mode The present application claims to be filed on January 18, 2011, the Chinese Patent Office, application number 201110020668.9, and the invention name is "image block-based intra prediction mode. The priority of the Chinese Patent Application for the Decoding Method and the Codec, the entire contents of which are incorporated herein by reference.
技术领域 Technical field
本发明涉及图像处理技术领域,尤其涉及一种基于图像块的帧内预测模式 的编解码方法和编解码器。 背景技术  The present invention relates to the field of image processing technologies, and in particular, to a codec method and a codec based on an intra block prediction mode of an image block. Background technique
在视频编码压缩处理中, 一种帧内编码( Intra coding )的基本原理是利用 空域相关性, 比如使用帧内预测 (Intra prediction ), 来去除空域冗余。 帧内编 码无需参考帧, 不涉及对参考帧进行插值。 在进行帧内编码的时候, 可按照一 定的划分方式, 进行该划分方式下的预测, 从而得到对应划分大小的残差块, 并对残差块进行变换、 量化及熵编码。 在解码的时候, 首先得到当前编码对象 的划分方式及对应的划分大小, 然后解码码流中的系数, 进行对应块划分方式 的下的预测和重构, 生成解码图像。 在进行上^†图像块的预测时, 需要首先 获得当前块的预测方向 (也可称为预测模式), 然后按照所获得的预测方向从 相邻块的像素中获取参考像素, 作为在该预测方向下当前块的预测像素值。  In video coding compression processing, the basic principle of an intra coding is to use spatial correlation, such as using intra prediction, to remove spatial redundancy. Intra coding does not require a reference frame and does not involve interpolating the reference frame. When performing intra-frame coding, the prediction in the division mode may be performed according to a certain division manner, thereby obtaining a residual block corresponding to the division size, and transforming, quantizing, and entropy coding the residual block. At the time of decoding, the division mode of the current coding object and the corresponding division size are first obtained, and then the coefficients in the code stream are decoded, and the prediction and reconstruction under the corresponding block division mode are performed to generate a decoded image. When performing the prediction of the upper image block, it is necessary to first obtain the prediction direction of the current block (also referred to as a prediction mode), and then obtain reference pixels from the pixels of the adjacent blocks according to the obtained prediction direction, as in the prediction. The predicted pixel value of the current block in the direction.
图 1为一种 16x16图像块中子块划分的示意图。在当前 16x16块中总共包 括 16个 4x4块, 所述 16个 4x4块中的每个块都是当前 16x16块的一个子块。 可以理解, 块与子块是一个相对的概念, 一个子块作为一个单独的块而言, 其 内部也可包括其它子块; 一个块内子块的划分形式也可以是灵活的, 例如子块 可以是横向矩形或纵向矩形, 而不仅限于正方形。  Figure 1 is a schematic diagram of sub-block partitioning in a 16x16 image block. A total of 16 4x4 blocks are included in the current 16x16 block, and each of the 16 4x4 blocks is a sub-block of the current 16x16 block. It can be understood that a block and a sub-block are a relative concept. As a single block, a sub-block may also include other sub-blocks therein; the sub-blocks within a block may also be flexible, for example, sub-blocks may be It is a horizontal rectangle or a vertical rectangle, not just a square.
图 2为一种图像块的帧内预测方向的示意图,其中一个 8x8块用粗线标识, 图中箭头指向是该 8x8块的中一个子块可能的预测方向的示意图。 通常而言, 在对当前子块进行帧内预测时,会从多个可能的预测方向中确定一个最优的预 测方向作为当前子块的预测模式, 按照所述预测模式对当前子块进行预测编 码, 并在码流中写入所述预测模式, 以及编码残差等。 2 is a schematic diagram of an intra prediction direction of an image block, in which an 8x8 block is identified by a thick line, and the arrow in the figure points to a possible prediction direction of one of the 8x8 blocks. Generally speaking, When intra prediction is performed on the current sub-block, an optimal prediction direction is determined from a plurality of possible prediction directions as a prediction mode of the current sub-block, and the current sub-block is predictively coded according to the prediction mode, and The prediction mode is written in the code stream, and the residual is encoded.
为了减少预测模式在码流中所占用的比特,现有技术引入了一种最可能预 测模式(MPM, most probable mode , 也叫最可能预测方向)。 在码流中不直接 写入子块的实际预测模式, 而是先得到当前子块的最可能预测模式,再对所述 子块的实际预测模式与所述子块的最可能预测模式做比较,并根据比较得出的 大小关系得到需要写入码流的标识信息;如果所述子块的实际预测模式与所述 子块的最可能预测模式相同, 则能够节省所述标识在码流中占用的比特位。 因 此,如何确定图像块的最可能预测模式,使其尽可能接近该图像块的实际预测 模式, 就成为一个问题。 在传统的基于方块的编码结构中,在预测当前块的最可能预测模式时, 以当前 块的上相邻块及左相邻块中预测模式值最小的那个相邻块的实际预测模式做 为当前块的最可能预测模式,这样就能利用当前块与其左相邻块及上相邻块的 相关性,提高预测当前方块的最可能预测模式的精确度。 然而对于采用不规则 划分的块来说, 一个块的子块可能不是方块, 而是矩形块等, 因此当前块的左 相邻块及上相邻块可能有不同的划分,如果依然以预测模式值最小的那个相邻 块的实际预测模式作为当前块的最可能预测模式,得到的最可能预测模式未必 是准确的。 因此如何能有效预测一个块的最可能预测模式, 并使得这种预测方 法不仅适用于方块划分也能适用于不规则块的划分, 就成为一个问题。  In order to reduce the bits occupied by the prediction mode in the code stream, the prior art introduces a most probable mode (MPM), also called the most probable prediction direction. The actual prediction mode of the sub-block is not directly written in the code stream, but the most probable prediction mode of the current sub-block is obtained first, and then the actual prediction mode of the sub-block is compared with the most probable prediction mode of the sub-block. And obtaining identification information that needs to be written into the code stream according to the obtained size relationship; if the actual prediction mode of the sub-block is the same as the most probable prediction mode of the sub-block, the identifier can be saved in the code stream. Occupied bits. Therefore, how to determine the most probable prediction mode of an image block as close as possible to the actual prediction mode of the image block becomes a problem. In the conventional block-based coding structure, when predicting the most probable prediction mode of the current block, the actual prediction mode of the neighboring block with the smallest prediction mode value in the upper neighboring block and the left neighboring block of the current block is used as The most probable prediction mode of the current block, so that the correlation between the current block and its left neighboring block and the upper neighboring block can be utilized to improve the accuracy of predicting the most probable prediction mode of the current block. However, for a block that uses irregular division, a sub-block of one block may not be a block, but a rectangular block or the like, so the left adjacent block and the upper adjacent block of the current block may have different divisions, if still in prediction mode. The actual prediction mode of the neighboring block with the smallest value is the most probable prediction mode of the current block, and the most probable prediction mode obtained is not necessarily accurate. Therefore, how to effectively predict the most probable prediction mode of a block and make this prediction method applicable not only to block division but also to irregular block division becomes a problem.
发明内容 Summary of the invention
本发明实施例提供一种基于图像块的帧内预测模式的编解码方法和编解 码器, 以有效预测图像块的最可能预测模式。 根据本发明的一实施例, 提供一种基于图像块的帧内预测模式的编码方 法, 包括:  Embodiments of the present invention provide a codec method and a codec based on an intra prediction mode of an image block to effectively predict a most probable prediction mode of an image block. According to an embodiment of the present invention, an encoding method based on an intra block prediction mode of an image block is provided, including:
获取当前图像块中第一子块的预测模式与所述当前图像块中第二子块的 预测模式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排列; 将所述第一子块的预测模式做为第二子块的最可能预测模式; 根据第二子块的预测模式与第二子块的最可能预测模式,确定用于指示第 二子块的预测模式的标识, 并将所述标识写入码流中。 Obtaining a prediction mode of the first sub-block in the current image block and a prediction mode of the second sub-block in the current image block, the first sub-block being adjacent to the second sub-block and in a horizontal direction or a vertical direction arrangement; Determining, by the prediction mode of the first sub-block, a most probable prediction mode of the second sub-block; determining, according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block, for indicating the second sub-block The identifier of the prediction mode is written and written into the code stream.
根据本发明的另一实施例,提供一种基于图像块的帧内预测模式的解码方 法, 包括:  According to another embodiment of the present invention, a decoding method based on an intra block prediction mode of an image block is provided, including:
从码流中获取用于指示当前图像块中第二子块的预测模式的标识; 将所述当前图像块中第一子块的预测模式做为第二子块的最可能预测模 式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排列;  Obtaining an identifier for indicating a prediction mode of the second sub-block in the current image block from the code stream; using a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, The first sub-block is adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction;
根据所述标识与所述第二子块的最可能预测模式 ,确定第二子块的预测模 式。  A prediction mode of the second sub-block is determined based on the identification and a most probable prediction mode of the second sub-block.
根据本发明的另一实施例, 提供一种编码器, 包括:  According to another embodiment of the present invention, an encoder is provided, including:
获取单元,用于获取当前图像块中第一子块的预测模式与所述当前图像块 中第二子块的预测模式,所述第一子块与所述第二子块相邻且沿水平方向或竖 直方向排列;  An acquiring unit, configured to acquire a prediction mode of a first sub-block in a current image block and a prediction mode of a second sub-block in the current image block, where the first sub-block is adjacent to the second sub-block and is horizontal Arranged in the direction or in the vertical direction;
确定单元,用于将所述第一子块的预测模式做为第二子块的最可能预测模 式;  a determining unit, configured to use a prediction mode of the first sub-block as a most probable prediction mode of the second sub-block;
码流写入单元,用于根据第二子块的预测模式与第二子块的最可能预测模 式, 确定用于指示第二子块的预测模式的标识, 并将所述标识写入码流中。  a code stream writing unit, configured to determine, according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and write the identifier into the code stream in.
根据本发明的另一实施例, 提供一种解码器, 包括:  According to another embodiment of the present invention, a decoder is provided, including:
码流读出单元,用于从码流中获取用于指示当前图像块中第二子块的预测 模式的标识;  a code stream reading unit, configured to acquire, from the code stream, an identifier for indicating a prediction mode of the second sub-block in the current image block;
确定单元,用于将当前图像块中第一子块的预测模式做为第二子块的最可 能预测模式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排 歹ΐ ;  a determining unit, configured to use a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and is horizontal or vertical Straight in the direction;
解码单元, 用于根据所述标识与所述第二子块的最可能预测模式,确定第 二子块的预测模式。 a decoding unit, configured to determine, according to the identifier and a most probable prediction mode of the second sub-block The prediction mode of the two sub-blocks.
通过采用上述技术方案,本发明实施例可以较好的利用沿一定方向排列的 不同相邻块之间的相关性来预测得到的一个块的最可能预测方向,使得该块的 最可能预测方向接近其实际预测方向,有利于节省用于指示块的实际预测方向 的标识所占用的比特数, 从而节省码流开销。  By adopting the above technical solution, the embodiment of the present invention can better utilize the correlation between different neighboring blocks arranged in a certain direction to predict the most probable prediction direction of a block, so that the most probable prediction direction of the block is close. The actual prediction direction is beneficial to save the number of bits occupied by the identifier for indicating the actual prediction direction of the block, thereby saving code stream overhead.
根据本发明的另一实施例,提供一种基于图像块的帧内预测模式的编码方 法, 包括:  According to another embodiment of the present invention, an encoding method based on an intra block prediction mode of an image block is provided, including:
获取当前图像块中第一子块的预测模式 ,所述第一子块包括沿水平方向或 竖直方向排列的多个子块;  Obtaining a prediction mode of a first sub-block in a current image block, the first sub-block including a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定第二子块,将第二子块的预测模式做为所述第一子块的最可能预测模 式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的多个子 块;  Determining a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
根据第一子块的预测模式与第一子块的最可能预测模式,确定用于指示第 一子块的预测模式的标识, 并将所述标识写入码流中。  And determining, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and writing the identifier into the code stream.
根据本发明的另一实施例,提供一种基于图像块的帧内预测模式的解码方 法, 包括:  According to another embodiment of the present invention, a decoding method based on an intra block prediction mode of an image block is provided, including:
从码流中获取用于指示当前图像块中第一子块的预测模式的标识,所述第 一子块包括沿水平方向或竖直方向排列的多个子块;  Obtaining, from the code stream, an identifier indicating a prediction mode of the first sub-block in the current image block, the first sub-block including a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定第二子块,将第二子块的预测模式做为所述第一子块的最可能预测模 式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的多个子 块;  Determining a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
根据所述标识与所述第一子块的最可能预测模式,确定第一子块的预测模 式。  Determining a prediction mode of the first sub-block based on the identifier and a most probable prediction mode of the first sub-block.
根据本发明的另一实施例, 提供一种编码器, 包括:  According to another embodiment of the present invention, an encoder is provided, including:
获取单元, 用于获取当前图像块中第一子块的预测模式, 所述第一子块包 括沿水平方向或竖直方向排列的多个子块; An obtaining unit, configured to acquire a prediction mode of a first sub-block in a current image block, where the first sub-block a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定单元, 用于确定第二子块,将第二子块的预测模式做为所述第一子块 的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方 向排列的多个子块;  a determining unit, configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
码流写入单元,用于根据第一子块的预测模式与第一子块的最可能预测模 式, 确定用于指示第一子块的预测模式的标识, 并将所述标识写入码流中。  a code stream writing unit, configured to determine, according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code stream in.
根据本发明的另一实施例, 提供一种解码器, 包括:  According to another embodiment of the present invention, a decoder is provided, including:
码流读出单元,用于从码流中获取用于指示当前图像块中第一子块的预测 模式的标识, 所述第一子块包括沿水平方向或竖直方向排列的多个子块; 确定单元, 用于确定第二子块,将第二子块的预测模式做为所述第一子块 的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方 向排列的多个子块;  a code stream reading unit, configured to acquire, from the code stream, an identifier for indicating a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction; a determining unit, configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
解码单元, 用于根据所述标识与所述第一子块的最可能预测模式,确定第 一子块的预测模式。 本发明实施例用于确定图像块中 2 个相邻的且有着类似子块划分方式的 子块的最可能预测模式,使得一个子块的实际预测模式作为另一个子块内所有 子块的最可能预测模式, 能有效预测所述最可能预测模式,有利于节省用于指 示块的实际预测方向的标识所占用的比特数, 从而节省码流开销。 附图说明  And a decoding unit, configured to determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block. The embodiment of the present invention is used to determine the most probable prediction mode of two adjacent sub-blocks with similar sub-block division manner in an image block, so that the actual prediction mode of one sub-block is the most of all sub-blocks in another sub-block. The possible prediction mode can effectively predict the most probable prediction mode, which is beneficial to save the number of bits occupied by the identifier for indicating the actual prediction direction of the block, thereby saving code stream overhead. 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 will be briefly described below. It is obvious that the drawings in the following description are only some embodiments of the present invention, which are common in the art. For the skilled person, other drawings can be obtained from these drawings without any creative work.
图 1为一种 16x16图像块中子块划分的示意图;  1 is a schematic diagram of sub-block partitioning in a 16x16 image block;
图 2为一种图像块的帧内预测方向的示意图; 图 3a为本发明实施例提供的一种基于图像块的帧内预测模式的编码方法 的示意图; 2 is a schematic diagram of an intra prediction direction of an image block; FIG. 3 is a schematic diagram of an encoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention; FIG.
图 3b为本发明实施例提供的一种基于图像块的帧内预测模式的解码方法 的示意图;  FIG. 3b is a schematic diagram of a decoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention; FIG.
图 3c为本发明实施例提供一种编解码图像块预测方向的方法的流程示意 图;  FIG. 3c is a schematic flow chart of a method for encoding and decoding an image block prediction direction according to an embodiment of the present invention;
图 4为本发明实施例提供的一种图像块划分结构的示意图;  4 is a schematic diagram of an image block division structure according to an embodiment of the present invention;
图 5为本发明实施例提供的另一种图像块划分结构的示意图;  FIG. 5 is a schematic diagram of another image block division structure according to an embodiment of the present disclosure;
图 6 为本发明实施例提供的另一种基于图像块的帧内预测模式的编码方 法的示意图;  FIG. 6 is a schematic diagram of another encoding method of an intra block based intra prediction mode according to an embodiment of the present invention; FIG.
图 7为本发明实施例提供的一种 8x8方块内子块划分的示意图; 图 8 为本发明实施例提供的另一种基于图像块的帧内预测模式的解码方 法的示意图;  FIG. 7 is a schematic diagram of an 8×8 intra-subblock partitioning according to an embodiment of the present invention; FIG. 8 is a schematic diagram of another image block-based intra prediction mode decoding method according to an embodiment of the present invention;
图 9为本发明实施例提供的一种编码器的结构示意图;  FIG. 9 is a schematic structural diagram of an encoder according to an embodiment of the present disclosure;
图 10为本发明实施例提供的一种解码器的结构示意图;  FIG. 10 is a schematic structural diagram of a decoder according to an embodiment of the present disclosure;
图 11为本发明实施例提供的另一种编码器的结构示意图;  FIG. 11 is a schematic structural diagram of another encoder according to an embodiment of the present disclosure;
图 12为本发明实施例提供的另一种解码器的结构示意图。  FIG. 12 is a schematic structural diagram of another decoder according to an embodiment of the present invention.
具体实施方式 detailed description
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清 楚、 完整地描述, 显然, 所描述的实施例仅仅是本发明一部分实施例, 而不是 全部的实施例。基于本发明中的实施例, 本领域普通技术人员在没有做出创造 性劳动前提下所获得的所有其他实施例, 都属于本发明保护的范围。  BRIEF DESCRIPTION OF THE DRAWINGS The technical solutions in the embodiments of the present invention will be described in detail below with reference to the accompanying drawings. All other embodiments obtained by a person of ordinary skill in the art based on the embodiments of the present invention without the creative work are all within the scope of the present invention.
图 3a为本发明的实施例提供的一种基于图像块的帧内预测模式的编码方 法的示意图, 该方法包括:  FIG. 3a is a schematic diagram of an encoding method of an image block-based intra prediction mode according to an embodiment of the present invention, where the method includes:
S3 la:获取当前图像块中第一子块的预测模式与所述当前图像块中第二子 块的预测模式,所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排 列。 S3 la: acquiring a prediction mode of the first sub-block in the current image block and a second sub-module in the current image block a prediction mode of the block, the first sub-block being adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction.
S32a: 将所述第一子块的预测模式做为第二子块的最可能预测模式。  S32a: The prediction mode of the first sub-block is taken as the most probable prediction mode of the second sub-block.
S33a: 根据第二子块的预测模式与第二子块的最可能预测模式,确定用于 指示第二子块的预测模式的标识, 并将所述标识写入码流中。  S33a: Determine an identifier for indicating a prediction mode of the second sub-block according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, and write the identifier into the code stream.
在本实施例以及后续实施例中,预测模式也称为预测方向,二者表达不同 却代表同样的含义。上述实施例提供的方法能有效预测图像块的最可能预测方 向,从而确定写入码流的标识符的值。该方法不仅适用于方块划分的方向预测, 也适用于非方块如横向矩形或纵向矩形块的方向预测。与在左相邻块和上相邻 块中选择一个块作为参考块来预测当前块的最可能预测方向不同,本实施例仅 采用当前块的一个相邻块来预测当前块的最可能预测方向,用于预测当前块的 最可能预测方向的相邻块与当前块沿水平或竖直方向排列,可以较好的利用沿 一定方向排列的不同相邻块之间的相关性,使得预测得到的当前块的最可能预 测方向接近其实际预测方向, 并能适用于图像块中子块划分方式不规则的场 景,有利于节省用于指示当前块的实际预测方向的标识的比特数, 当编码端利 用本实施例提供的方法进行编码信息的传递时,可尽量节省码流开销,提高整 体编码性能。  In this embodiment and subsequent embodiments, the prediction mode is also referred to as the prediction direction, and the two expressions are different but represent the same meaning. The method provided by the above embodiments can effectively predict the most probable prediction direction of an image block, thereby determining the value of the identifier of the write code stream. This method is not only suitable for direction prediction of block division, but also for direction prediction of non-blocks such as horizontal rectangles or vertical rectangle blocks. In order to predict that the most probable prediction direction of the current block is different by selecting one block as the reference block in the left neighboring block and the upper neighboring block, the present embodiment only uses one neighboring block of the current block to predict the most probable prediction direction of the current block. The adjacent block for predicting the most probable prediction direction of the current block is arranged horizontally or vertically with the current block, and the correlation between different adjacent blocks arranged in a certain direction can be better utilized, so that the predicted result is obtained. The most probable prediction direction of the current block is close to its actual prediction direction, and can be applied to the scene in which the sub-block division manner is irregular in the image block, which is advantageous for saving the number of bits for indicating the actual prediction direction of the current block, when the coding end When the coding information is transmitted by using the method provided in this embodiment, the code stream overhead can be saved as much as possible, and the overall coding performance is improved.
图 3b为本发明的实施例提供的一种基于图像块的帧内预测模式的解码方 法的示意图, 该方法包括:  FIG. 3b is a schematic diagram of a decoding method of an intra block based intra prediction mode according to an embodiment of the present invention, where the method includes:
S31b: 从码流中获取用于指示当前图像块中第二子块的预测模式的标识; S31b: Obtain an identifier for indicating a prediction mode of the second sub-block in the current image block from the code stream;
S32b:将所述当前图像块中第一子块的预测模式做为第二子块的最可能预 测模式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排列;S32b: The prediction mode of the first sub-block in the current image block is regarded as the most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and is horizontal or vertical Arrange in direction
S33b:根据所述标识与所述第二子块的最可能预测模式,确定第二子块的 预测模式。 S33b: Determine a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
本实施例提供的方法可适用于解码端,可以有效预测图像块的最可能预测 方向, 以据此获取图像块的实际预测方向, 并根据所述预测方向对图像块进行 预测解码, 准确的得到解码图像。 The method provided in this embodiment can be applied to the decoding end, and can effectively predict the most probable prediction of the image block. Direction, in order to obtain an actual prediction direction of the image block, and predictively decode the image block according to the prediction direction, and accurately obtain the decoded image.
为便于理解, 本发明还提供了一种编解码图像块预测方向的方法的实施 例, :¾口图 3c所示, 该方法包括:  For ease of understanding, the present invention also provides an embodiment of a method for encoding and decoding an image block prediction direction, as shown in Figure 3c, the method includes:
S31c: 对当前图像块进行划分, 得到多个子图像块, 并将当前图像块的划 分方式信息写入码流中。其中,所述多个子图像块沿水平或竖直方向依次排列, 且所述多个子图像块中至少包括处于所述当前图像块边界的第一子图像块,以 及与所述第一子图像块相邻的第二子图像块。  S31c: Dividing the current image block to obtain a plurality of sub-image blocks, and writing the division mode information of the current image block into the code stream. Wherein the plurality of sub-image blocks are sequentially arranged in a horizontal or vertical direction, and the plurality of sub-image blocks include at least a first sub-image block at a boundary of the current image block, and the first sub-image block Adjacent second sub-image block.
本发明实施例提供的一种具体的图像块划分结构的示意图如图 4所示,对 于 32x32块而言, 可划分出 4个 16x16块, 每个 16x16块可划分出 4个 8x8 块, 当然也可以不划分成方块, 如图左下角方块的 16x16块被分为 4个 4x16 块, 同样 8x8块可进一步划分为 4x4块或 2x8块等, 本领域技术人员可以根据 实际需要对图像块进行各种灵活划分,得到大小和形状不同的各种块,这些块 可以是方形或者其它形状的矩形, 图 4中的一个 4x16块是竖向排列的矩形, 但在实际应用中也可以划分出沿水平方向排列的矩形,如一个 16x 16块可分为 4个竖向的 16x4块。 矩形块可包括多种形式, 可以理解, 诸如 1x16或 16x1 的线形块也是矩形块的一种。  A schematic diagram of a specific image block partitioning structure provided by an embodiment of the present invention is shown in FIG. 4. For a 32x32 block, four 16x16 blocks can be divided, and each 16x16 block can be divided into four 8x8 blocks. The 16x16 block in the lower left corner of the block is divided into four 4x16 blocks, and the same 8x8 block can be further divided into 4x4 blocks or 2x8 blocks, etc., and those skilled in the art can perform various kinds of image blocks according to actual needs. Flexible division, to get a variety of blocks of different sizes and shapes, these blocks can be square or other shape of the rectangle, a 4x16 block in Figure 4 is a vertically arranged rectangle, but in practice can also be divided into horizontal directions Arranged rectangles, such as a 16x16 block, can be divided into 4 vertical 16x4 blocks. The rectangular block may include various forms, and it is understood that a linear block such as 1x16 or 16x1 is also a type of rectangular block.
S32c: 从预先定义的多个预测方向中,根据所述当前图像块的相邻图像块 对所述第一子图像块和第二子图像块进行预测,分别得到所述第一子图像块的 预测方向和第二子图像块的预测方向。预测得到一个图像块的预测方向的具体 方法可参见现有技术, 本实施例对此不做具体描述。  S32c: predicting the first sub-image block and the second sub-image block according to adjacent image blocks of the current image block from a plurality of predefined prediction directions, respectively obtaining the first sub-image block The prediction direction and the prediction direction of the second sub-image block. For a specific method for predicting the prediction direction of an image block, refer to the prior art, which is not specifically described in this embodiment.
S33c: 根据所述当前图像块的相邻图像块的预测方向,确定所述第一子图 像块的最可能预测方向。  S33c: Determine a most probable prediction direction of the first sub-image block according to a prediction direction of a neighboring image block of the current image block.
本过程可采用现有技术的做法,即在当前图像块的上相邻块和左相邻块中 选择预测模式值最小的块,将该选择的块的预测方向作为当前图像块中所述第 一子图像块的最可能预测方向。 在实际应用中, 每个预测模式可对应一个值, 即每个模式可对应一个编号, 用于反映该模式值的大小,在进行所述块的选择 时, 可根据所述编号选择出预测模式值最小的块。 在这里, 当一个图像块有 2 个相邻块时,可选择预测模式值最小的块为基准来预测当前块或当前块中子块 的最可能预测方向。 当然,如果当前块的左相邻块与上相邻块中只有一个块可 用, 则使用该可用的相邻块的预测方向作为所述最可能预测方向。如果所述左 相邻块与上相邻块都不可用,则使用预先定义的默认值作为所述最可能预测模 式。 The process may adopt a prior art method of selecting a block with the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block, and the prediction direction of the selected block is taken as the first in the current image block. The most likely predicted direction of a sub-image block. In practical applications, each prediction mode may correspond to a value, that is, each mode may correspond to a number, which is used to reflect the size of the mode value, and when the block is selected, the prediction mode may be selected according to the number. The block with the smallest value. Here, when one image block has 2 neighboring blocks, the block with the smallest prediction mode value may be selected as a reference to predict the most probable prediction direction of the current block or the subblock in the current block. Of course, if only one of the left neighboring block and the upper neighboring block of the current block is available, the predicted direction of the available neighboring block is used as the most probable prediction direction. If the left neighboring block and the upper neighboring block are not available, a predefined default value is used as the most probable prediction mode.
S34c:将所述第一子图像块的预测方向确定为所述第二子图像块的最可能 预测方向。  S34c: Determine a prediction direction of the first sub-image block as a most probable prediction direction of the second sub-image block.
S35c:根据所述第一子图像块的预测方向以及所述第一子图像块的最可能 预测方向,确定需要写入码流中的标识所述第一子图像块的预测方向的值; 以 及,根据所述第二子图像块的预测方向以及所述第二子图像块的最可能预测方 向, 确定需要写入码流中的标识所述第二子图像块的预测方向的值。  S35c: determining, according to a prediction direction of the first sub-image block and a most probable prediction direction of the first sub-image block, a value that is required to be written into the code stream to identify a prediction direction of the first sub-image block; Determining, according to a prediction direction of the second sub-image block and a most probable prediction direction of the second sub-image block, a value of a prediction direction of the second sub-image block that needs to be written into the code stream.
下面对如何在码流中写入一个图像块的标识的过程做简要介绍。假定当前 子块的预测模式为 ilntraDirLuma , 当前子块的最可能预测模式为 iMostProbable。 则, 如果 ilntraDirLuma等于 iMostProbable, 则在码流中写入 一个比特的标识符号, 例如可用标识符 " 1" 来表示, 指示当前子块的预测模 式为最可能预测模式。 如果 ilntraDirLuma不等于 iMostProbable, 先将上述标 识符的值标识为 "0" , 即当前子块的预测模式不等于最可能预测模式, 并做进 一步判断。如果当前子块的实际预测方向小于预测得到的最可能预测方向, 则 在码流中写入当前子块的实际预测方向值 ilntraDirLuma,如果当前子块的实际 预测方向大于预测得到的最可能预测方向,则在码流中写入 ilntraDirLuma - 1。  The following is a brief introduction to the process of how to write the identity of an image block in the code stream. Assuming that the prediction mode of the current sub-block is ilntraDirLuma, the most probable prediction mode of the current sub-block is iMostProbable. Then, if ilntraDirLuma is equal to iMostProbable, a bit of the identifier is written in the code stream, for example, the identifier "1" can be used to indicate that the prediction mode of the current sub-block is the most probable prediction mode. If ilntraDirLuma is not equal to iMostProbable, the value of the above identifier is first identified as "0", that is, the prediction mode of the current sub-block is not equal to the most probable prediction mode, and further judgment is made. If the actual prediction direction of the current sub-block is smaller than the predicted most probable prediction direction, the actual prediction direction value ilntraDirLuma of the current sub-block is written in the code stream, if the actual prediction direction of the current sub-block is greater than the predicted most probable prediction direction. , then write ilntraDirLuma - 1 in the stream.
本实施例中的方法可用于 16x16方块划分中的 4x16块或 16x4块,或者应 用于 8x8方块划分中的 2x8块或 8x2块等。 当然, 对于 32x32方块中的 8x32 或 32x8划分, 以及 4x16中的 1x16划分, 或者 16x4中的 16x1划分也可以使 用本实施例中的方法。 The method in this embodiment can be used for 4x16 blocks or 16x4 blocks in 16x16 block partitioning, or 2x8 blocks or 8x2 blocks in 8x8 block partitioning, and the like. Of course, for 8x32 in 32x32 squares Or the 32x8 partition, and the 1x16 partition in 4x16, or the 16x1 partition in 16x4 can also use the method in this embodiment.
S36c: 解码端在接收到码流之后,从码流中解析获得所述当前图像的划分 方式信息、所述第一子图像块的预测方向的标识信息以及所述第二子图像块的 预测方向的标识信息。  S36c: After receiving the code stream, the decoding end parses and obtains the division mode information of the current image, the identification information of the prediction direction of the first sub-image block, and the prediction direction of the second sub-image block from the code stream. Identification information.
S37c: 根据所述划分方式信息, 对所述当前图像块进行划分, 得到所述多 个子图像块。  S37c: Divide the current image block according to the division mode information to obtain the plurality of sub image blocks.
S38c: 根据所述当前图像块的相邻图像块的预测方向,确定所述第一子图 像块的最可能预测方向。 本步骤的执行过程可参见 S33。  S38c: Determine a most probable prediction direction of the first sub-image block according to a prediction direction of a neighboring image block of the current image block. The execution process of this step can be seen in S33.
S39c:从所述第一子图像块的预测方向的所述标识信息以及所述第一子图 像块的最可能预测方向, 得到所述第一子图像块的预测方向。  S39c: obtaining, from the identification information of the prediction direction of the first sub-image block and the most likely prediction direction of the first sub-image block, a prediction direction of the first sub-image block.
S310c: 将所述第一子图像块的预测方向作为所述第二子图像块的最可能 预测方向。  S310c: Use a prediction direction of the first sub-image block as a most probable prediction direction of the second sub-image block.
S311 c: 从所述第二子图像块的预测方向的所述标识信息以及所述第二子 图像块的所述最可能预测方向, 得到所述第二子图像块的预测方向。  S311 c: obtaining a prediction direction of the second sub-image block from the identification information of the prediction direction of the second sub-image block and the most probable prediction direction of the second sub-image block.
S39c和 S311c中根据标识符确定图像块的预测方向的过程为 S35c的逆过 程。 具体地, 先得到当前子块的最可能预测方向, 解析码流中标识当前子块的 预测方向是否为最可能预测方向的标识符。比如,如果所述标识符指示为 " 1 " , 则当前子块的预测方向即为当前子块的最可能预测方向。如果所述标识符指示 为 "0" , 进一步解析码流, 得到当前子块的预测方向标识符的值, 比较所述预 测方向标识符的值与所述当前子块的最可能预测方向的值的关系,如果所述标 识符的值大于或等于所述最可能预测方向的值,则所述当前子块的实际的预测 方向为所述标识符的值加 1 , 如果所述标识符的值小于所述最可能预测方向的 可以理解, 本发明实施例的一些步骤间的先后顺序可以做出适应性调整, 例如,步骤 S33c的执行可以在步骤 S34c之后。通过采用本发明实施例的方法, 可以有效预测一个块的最可能预测方向,从而确定写入码流的用于指示该图像 块的预测方向的标识, 当图像块的实际预测方向等于其最可能预测方向时, 只 需要在码流中写入一比特的指示标识,因此当一个块的最可能预测方向越接近 该块的实际预测方向,将更有利于节省码流。 当一个当前图像块与其邻居块沿 水平方向或竖直方向排列时,可仅利用邻居块的实际预测模式作为当前图像块 的最可能预测模式, 而不必比较当前图像块的 2个邻居块的预测模式值,从而 实现简单有效的预测。特别是在图像块中子块存在多种形状划分时,一个子块 的左相邻块和上相邻块在划分方式上存在较大差异,利用划分方式接近或相同 的一个块内的不同子块来预测最可能预测模式能达到比现有技术更好的效果。 图 5为本发明实施例提供的另一种图像块划分结构的示意图。假定当前图像块 50为一个 8x8块, 其包括 4个沿横向排列的 8x2子块, 分别为子块 51、 子块 52、 子块 53和子块 54。 子块 51位于当前图像块 50边界, 其最可能预测模式 通过现有技术求出, 即从当前图像块 50 的左相邻块和上相邻块(对所述左相 邻块和上相邻块图中未示出)中选择预测模式值最小的块的预测模式来作为子 块 51的最可能预测模式;子块 52的最可能预测模式则为子块 51的预测模式; 子块 53的最可能预测模式则为子块 52的预测模式; 子块 54的最可能预测模 式则为子块 53的预测模式。 由于所述 4个子块之间有一定相关性, 因此彼此 相邻的子块的预测模式在一定程度上有可能有相同的预测模式,因此才将相邻 子块的预测模式作为当前子块的最可能预测模式。 The process of determining the prediction direction of the image block based on the identifier in S39c and S311c is the inverse of S35c. Specifically, the most probable prediction direction of the current sub-block is obtained first, and an identifier that identifies whether the prediction direction of the current sub-block is the most likely prediction direction is parsed in the code stream. For example, if the identifier is indicated as "1", the prediction direction of the current sub-block is the most probable prediction direction of the current sub-block. If the identifier indicates "0", further parsing the code stream, obtaining a value of the prediction direction identifier of the current sub-block, comparing the value of the prediction direction identifier with the value of the most probable prediction direction of the current sub-block Relationship, if the value of the identifier is greater than or equal to the value of the most probable prediction direction, the actual prediction direction of the current sub-block is incremented by 1 for the value of the identifier, if the value of the identifier It can be understood that the sequence of some steps of the embodiment of the present invention can be adaptively adjusted. For example, the execution of step S33c may be after step S34c. By adopting the method of the embodiment of the present invention, the most probable prediction direction of a block can be effectively predicted, thereby determining an identifier of the write code stream for indicating the prediction direction of the image block, when the actual prediction direction of the image block is equal to its most likely When predicting the direction, only one bit of the indication flag needs to be written in the code stream, so when the most probable prediction direction of a block is closer to the actual prediction direction of the block, it will be more advantageous to save the code stream. When a current image block and its neighboring blocks are arranged in a horizontal direction or a vertical direction, only the actual prediction mode of the neighboring block may be utilized as the most probable prediction mode of the current image block, without having to compare the predictions of the two neighboring blocks of the current image block. Mode values for simple and effective prediction. In particular, when there are multiple shape partitions in a sub-block in an image block, the left adjacent block and the upper adjacent block of one sub-block have a large difference in the division manner, and different sub-blocks in a block that are close or identical by the division manner are used. Blocks to predict the most probable prediction mode can achieve better results than the prior art. FIG. 5 is a schematic diagram of another image block division structure according to an embodiment of the present invention. It is assumed that the current image block 50 is an 8x8 block including four 8x2 sub-blocks arranged in the horizontal direction, which are sub-block 51, sub-block 52, sub-block 53, and sub-block 54, respectively. The sub-block 51 is located at the boundary of the current image block 50, and its most probable prediction mode is obtained by the prior art, that is, from the left adjacent block of the current image block 50 and the upper adjacent block (for the left adjacent block and the upper adjacent The prediction mode of the block with the smallest prediction mode value is selected as the most probable prediction mode of the sub-block 51 in the block diagram; the most probable prediction mode of the sub-block 52 is the prediction mode of the sub-block 51; The most probable prediction mode is the prediction mode of sub-block 52; the most probable prediction mode of sub-block 54 is the prediction mode of sub-block 53. Since there is a certain correlation between the four sub-blocks, the prediction modes of the sub-blocks adjacent to each other may have the same prediction mode to some extent, so the prediction mode of the adjacent sub-block is taken as the current sub-block. The most likely prediction mode.
图 6 为本发明实施例提供的另一种基于图像块的帧内预测模式的编码方 法的示意图, 所述方法包括:  FIG. 6 is a schematic diagram of another encoding method of an intra block based intra prediction mode according to an embodiment of the present invention, where the method includes:
S61 : 获取当前图像块中第一子块的预测模式, 所述第一子块包括沿水平 方向或竖直方向排列的多个子块;  S61: Obtain a prediction mode of a first sub-block in a current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
S62: 确定第二子块, 将第二子块的预测模式做为所述第一子块的最可能 预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的 多个子块; S62: determining a second sub-block, and using the prediction mode of the second sub-block as the most likely of the first sub-block a prediction mode, the second sub-block is adjacent to the first sub-block and includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
S63: 根据第一子块的预测模式与第一子块的最可能预测模式, 确定用于 指示第一子块的预测模式的标识, 并将所述标识写入码流中。  S63: Determine, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code stream.
在本发明实施例中, 当前图像块包括多个子块,如果每个子块都包括沿水 平方向或竖直方向排列的多个子块,则可利用其中一个子块的预测模式做为其 相邻子块的最可能预测模式,该相邻子块的最可能预测模式适用于该相邻子块 内所有子块,而不必针对该相邻子块内每个子块单独求解出一个最可能预测模 式。 可以理解, S61与 S12的顺序不是固定的, 可以灵活调整。  In the embodiment of the present invention, the current image block includes a plurality of sub-blocks. If each sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, the prediction mode of one of the sub-blocks may be used as the adjacent sub-block. The most probable prediction mode of the block, the most probable prediction mode of the adjacent sub-block is applicable to all sub-blocks in the adjacent sub-block, and it is not necessary to separately solve one most probable prediction mode for each sub-block in the adjacent sub-block. It can be understood that the order of S61 and S12 is not fixed and can be flexibly adjusted.
在通常情况下,如果 2个相邻块之间有着类似的子块划分方式, 则可将其 中一个块的预测方向作为另一个块的最可能预测方向,并将该最可能预测方向 作为所述另一个块内所有子块的最可能预测方向,可使所述另一个块内所有子 块的最可能预测方向接近真实的预测方向,从而减少码流中传输的指示预测方 向的标识位数。 2个块的划分方式类似, 可以是划分方式完全相同, 也可以是 一个块内的子块与另一块内的子块的大小和形状相同, 但子块排列方向不同。 通常, 只要 2个块都包括沿水平方向或竖直方向排列的多个子块, 则可认为该 2个块排列方式类似。 这 2个相邻块可以均为方块, 每个方块内的子块可以为 非方块形的矩形块, 并可沿水平或竖直方向排列, 参见附图 7所示。  In the normal case, if there is a similar sub-block division between two neighboring blocks, the prediction direction of one of the blocks can be regarded as the most probable prediction direction of the other block, and the most probable prediction direction is used as the The most probable prediction direction of all sub-blocks in another block may cause the most probable prediction direction of all sub-blocks in the other block to be close to the true prediction direction, thereby reducing the number of identification bits indicating the prediction direction transmitted in the code stream. The division of the two blocks is similar, and the division manners may be identical, or the sub-blocks within one block may be the same size and shape as the sub-blocks in another block, but the sub-blocks are arranged in different directions. Generally, as long as two blocks include a plurality of sub-blocks arranged in the horizontal direction or the vertical direction, the two blocks can be considered to be arranged in a similar manner. The two adjacent blocks may each be a square, and the sub-blocks in each block may be non-square rectangular blocks and may be arranged in a horizontal or vertical direction, as shown in FIG.
在本实施例中, 第二子块与第一子块可以都位于当前图像块内, 当然也不 排除第二子块位于当前图像块外的情况。第二子块可以为第一子块的上相邻块 或左相邻块,或者第二子块可以是第一子块的上相邻块和左相邻块中预测模式 值最小的块。也就是说, 可以仅将第一子块的一个与第一子块划分方式类似的 相邻块作为确定第一子块最可能预测模式的参考。 当然,如果第一子块的左相 邻块和上相邻块都有与第一子块类似的划分方式,即都包括沿水平方向或竖直 方向排列的多个子块,则可选择其中预测模式值最小的块作为确定第一子块最 可能预测模式的参考。 In this embodiment, the second sub-block and the first sub-block may both be located in the current image block, and of course, the second sub-block is not located outside the current image block. The second sub-block may be an upper neighboring block or a left neighboring block of the first sub-block, or the second sub-block may be the block of the upper neighboring block and the left neighboring block of the first sub-block having the smallest prediction mode value. That is, only one neighboring block of the first sub-block that is similar to the first sub-block partitioning manner may be used as a reference for determining the most probable prediction mode of the first sub-block. Of course, if the left adjacent block and the upper adjacent block of the first sub-block have a similar division manner as the first sub-block, that is, each includes a plurality of sub-blocks arranged in the horizontal direction or the vertical direction, the prediction may be selected. The block with the smallest mode value is used to determine the first sub-block A reference to the possible prediction mode.
为便于理解, 下面举例对本实施例提供的预测方法进行说明, 附图和说明 仅是为了便于理解, 不用于限定本发明。 图 7为本发明实施例提供的一种 8x8 方块内子块划分的示意图, 该 8x8块被划分为 4个 4x4子块, 分别用标号 1、 2、 3和 4标识。 每个 4x4块内可进一步划分出多个 1x4块或 4x1块, 其中子 块 1和子块 4内子块的排列相同, 子块 2和子块 3内子块的排列相同。其中每 个 4x4块需要有一个预测方向, 4x4块内的每个 1x4块或 4x1块不必单独编码 预测方向, 即预测方向以 4x4子块为单位进行编码。 而在编码 4x4块的预测方 向之前, 需要获得每个 4x4块的最可能预测方向。  For the sake of understanding, the prediction method provided by the present embodiment is exemplified below, and the drawings and the description are only for convenience of understanding and are not intended to limit the present invention. FIG. 7 is a schematic diagram of sub-block partitioning within 8×8 blocks according to an embodiment of the present invention. The 8×8 block is divided into four 4×4 sub-blocks, which are identified by labels 1, 2, 3, and 4, respectively. A plurality of 1x4 blocks or 4x1 blocks may be further divided in each 4x4 block, wherein the sub-blocks 1 and the sub-blocks 4 have the same arrangement, and the sub-block 2 and the sub-block 3 have the same arrangement. Each of the 4x4 blocks needs to have a prediction direction, and each 1x4 block or 4x1 block in the 4x4 block does not have to separately encode the prediction direction, that is, the prediction direction is encoded in units of 4x4 sub-blocks. Before encoding the prediction direction of 4x4 blocks, it is necessary to obtain the most probable prediction direction for each 4x4 block.
对于第一个子块 1 , 可取其所在的当前图像块的左相邻块以及上相邻块中 预测方向值为最小的预测方向, 作为第一个子块 1的最可能预测方向;  For the first sub-block 1 , the prediction direction in which the prediction direction value is the smallest in the left adjacent block and the upper adjacent block of the current image block in which it is located may be taken as the most probable prediction direction of the first sub-block 1;
对于第二个子块 2, 其最可能预测方向为第一个子块 1的预测方向; 可选 的, 如果第二个子块 2的上相邻块(图中未示出)也是由 1x4或 4x1块组成, 则取其左相邻块以及上相邻块中预测方向值为最小的预测方向,作为第二个子 块 2的最可能预测方向;  For the second sub-block 2, the most likely prediction direction is the prediction direction of the first sub-block 1; optionally, if the upper adjacent block of the second sub-block 2 (not shown) is also 1x4 or 4x1 The block composition is taken as the prediction direction with the smallest prediction direction value in the left adjacent block and the upper adjacent block as the most probable prediction direction of the second sub-block 2;
对于第三个子块 3 , 其最可能预测方向为第一个子块 1的预测方向; 可选 的, 如果第三个子块 3的左相邻块(图中未示出)也是由 1x4或 4x1块组成, 则取其左相邻块以及上相邻块中预测方向值为最小的预测方向,作为第三个子 块 3的最可能预测方向; 小的预测方向, 作为第四个子块 4的最可能预测方向。  For the third sub-block 3, the most likely prediction direction is the prediction direction of the first sub-block 1; optionally, if the left adjacent block of the third sub-block 3 (not shown) is also 1x4 or 4x1 The block composition is taken as the prediction direction with the smallest prediction direction value in the left adjacent block and the upper adjacent block as the most probable prediction direction of the third sub-block 3; the small prediction direction is the most the fourth sub-block 4 It is possible to predict the direction.
与图 6实施例对应的,图 8为本发明实施例提供的另一种基于图像块的帧 内预测模式的解码方法的示意图, 所述方法包括:  Corresponding to the embodiment of FIG. 6, FIG. 8 is a schematic diagram of another decoding method of an intra block prediction mode based on an image block according to an embodiment of the present invention, where the method includes:
S81 : 从码流中获取用于指示当前图像块中第一子块的预测模式的标识, 所述第一子块包括沿水平方向或竖直方向排列的多个子块; S82: 确定第二子块, 将第二子块的预测模式做为所述第一子块的最可能 预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的 多个子块; S81: Obtain an identifier for indicating a prediction mode of the first sub-block in the current image block from the code stream, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction; S82: determining a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes horizontally or vertically Multiple sub-blocks arranged in a straight direction;
S83: 根据所述标识与所述第一子块的最可能预测模式, 确定第一子块的 预测模式。  S83: Determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
与之前图 3所示实施例类似的,码流中可不仅传递图像块的预测模式的标 识,还可传递图像块的划分方式信息,使得解码端能够得知编码端如何划分所 述图像块。  Similar to the previous embodiment shown in FIG. 3, the code stream can not only convey the identification of the prediction mode of the image block, but also the division mode information of the image block, so that the decoding end can know how the coding end divides the image block.
本发明实施例还进一步提供了利用之前实施例的方法对码流进行编解码 的设备,具体地,图 9为本发明实施例提供的一种编码器的结构示意图, 包括: 获取单元 91 , 用于获取当前图像块中第一子块的预测模式与所述当前图 像块中第二子块的预测模式,所述第一子块与所述第二子块相邻且沿水平方向 或竖直方向排列;  The embodiment of the present invention further provides an apparatus for encoding and decoding a code stream by using the method of the previous embodiment. Specifically, FIG. 9 is a schematic structural diagram of an encoder according to an embodiment of the present invention, including: an obtaining unit 91, And acquiring a prediction mode of the first sub-block in the current image block and a prediction mode of the second sub-block in the current image block, the first sub-block being adjacent to the second sub-block and horizontally or vertically Arrange in direction
确定单元 92, 用于将所述第一子块的预测模式做为第二子块的最可能预 测模式;  a determining unit 92, configured to use a prediction mode of the first sub-block as a most probable prediction mode of the second sub-block;
码流写入单元 93 , 用于根据第二子块的预测模式与第二子块的最可能预 测模式,确定用于指示第二子块的预测模式的标识,并将所述标识写入码流中。  a code stream writing unit 93, configured to determine, according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and write the identifier into the code In the stream.
如果所述第一子块位于所述当前图像块边界, 则所述确定单元 92还用于 将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预测模 式作为第一子块的最可能预测模式, 所述码流写入单元 93还用于根据第一子 块的预测模式与第一子块的最可能预测模式确定用于指示第一子块的预测模 式的另一标识, 并将所述另一标识写入所述码流中。  If the first sub-block is located at the current image block boundary, the determining unit 92 is further configured to predict a block with the smallest prediction mode value among the upper adjacent block and the left adjacent block of the current image block. The mode is used as the most probable prediction mode of the first sub-block, and the code stream writing unit 93 is further configured to determine, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, for indicating the first sub-block. Another identifier of the prediction mode is written and written into the code stream.
进一步地, 所述编码器还可包括块划分单元 94, 用于对所述当前图像块 进行划分,得到包括所述第一子块与所述第二子块在内的、 沿水平方向或竖直 方向排列的多个子块; 所述码流写入单元 93 , 还用于将当前图像块的划分方 式信息写入所述码流中。 Further, the encoder may further include a block dividing unit 94, configured to divide the current image block to obtain a horizontal direction or a vertical direction including the first sub-block and the second sub-block. a plurality of sub-blocks arranged in a straight direction; the code stream writing unit 93 is further configured to divide a current image block The information is written into the code stream.
图 10为本发明实施例提供的一种解码器的结构示意图, 包括:  FIG. 10 is a schematic structural diagram of a decoder according to an embodiment of the present invention, including:
码流读出单元 101 , 用于从码流中获取用于指示当前图像块中第二子块的 预测模式的标识;  a code stream reading unit 101, configured to acquire, from the code stream, an identifier for indicating a prediction mode of the second sub-block in the current image block;
确定单元 102, 用于将当前图像块中第一子块的预测模式做为第二子块的 最可能预测模式,所述第一子块与所述第二子块相邻且沿水平方向或竖直方向 排列;  a determining unit 102, configured to use a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and in a horizontal direction or Arranged in the vertical direction;
解码单元 103 , 用于根据所述标识与所述第二子块的最可能预测模式, 确 定第二子块的预测模式。  The decoding unit 103 is configured to determine a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
如果所述第一子块位于所述当前图像块边界, 则所述码流读出单元 101 , 还用于从所述码流中获取用于指示第一子块的预测模式的另一标识;  If the first sub-block is located at the current image block boundary, the code stream readout unit 101 is further configured to acquire another identifier for indicating a prediction mode of the first sub-block from the code stream;
所述确定单元 102, 还用于将所述当前图像块的上相邻块和左相邻块之中 预测模式值最小的块的预测模式作为第一子块的最可能预测模式;  The determining unit 102 is further configured to use, as a most probable prediction mode of the first sub-block, a prediction mode of a block in which a prediction mode value is the smallest among the upper neighboring block and the left neighboring block of the current image block;
所述解码单元 103 , 还用于根据所述另一标识与所述第一子块的最可能预 测模式, 确定第一子块的预测模式。  The decoding unit 103 is further configured to determine a prediction mode of the first sub-block according to the another identifier and a most probable prediction mode of the first sub-block.
进一步地, 所述码流读出单元 101 , 还用于从所述码流中获取当前图像块 的划分方式信息; 所述解码器还包括块划分单元 104, 用于按照所述划分方式 对所述当前图像块进行划分, 得到包括所述第一子块与所述第二子块在内的、 沿水平方向或竖直方向排列的多个子块。  Further, the code stream readout unit 101 is further configured to acquire, by using the code stream, the split mode information of the current image block. The decoder further includes a block partitioning unit 104, configured to perform the partitioning manner according to the partitioning manner. The current image block is divided to obtain a plurality of sub-blocks arranged in the horizontal direction or the vertical direction including the first sub-block and the second sub-block.
图 11为本发明实施例提供的另一种编码器的结构示意图, 所述编码器包 括:  FIG. 11 is a schematic structural diagram of another encoder according to an embodiment of the present disclosure, where the encoder includes:
获取单元 111 , 用于获取当前图像块中第一子块的预测模式, 所述第一子 块包括沿水平方向或竖直方向排列的多个子块;  The obtaining unit 111 is configured to acquire a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定单元 112, 用于确定第二子块, 将第二子块的预测模式做为所述第一 子块的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖 直方向排列的多个子块; a determining unit 112, configured to determine a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes an edge Horizontal or vertical Multiple sub-blocks arranged in a straight direction;
码流写入单元 113 , 用于根据第一子块的预测模式与第一子块的最可能预 测模式,确定用于指示第一子块的预测模式的标识,并将所述标识写入码流中。  a code stream writing unit 113, configured to determine, according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code In the stream.
对于所述确定单元 112而言,如果所述第一子块的上相邻块包括沿水平方 向或竖直方向排列的多个子块,则将所述上相邻块确定为所述第二子块;或者, 所述左相邻块确定为所述第二子块; 或者,如果所述第一子块的上相邻块和左 相邻块均包括沿水平方向或竖直方向排列的多个子块,则将所述上相邻块和所 述左相邻块之中预测模式值最小的块确定为所述第二子块。  For the determining unit 112, if the upper adjacent block of the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, determining the upper adjacent block as the second sub-block Block; or, the left neighboring block is determined to be the second sub-block; or if the upper neighboring block and the left neighboring block of the first sub-block both include a plurality of horizontally or vertically arranged a sub-block, the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block is determined as the second sub-block.
如果所述第二子块位于所述当前图像块边界, 则所述确定单元 112, 还用 于将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预测 模式作为第二子块的最可能预测模式; 所述码流写入单元 113 , 还用于根据第 二子块的预测模式与第二子块的最可能预测模式,确定用于指示第二子块的预 测模式的另一标识, 并将所述另一标识写入所述码流中。  If the second sub-block is located at the current image block boundary, the determining unit 112 is further configured to: use a block that minimizes a prediction mode value among the upper adjacent block and the left adjacent block of the current image block. The prediction mode is used as the most probable prediction mode of the second sub-block; the code stream writing unit 113 is further configured to determine, according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block, Another identification of the prediction mode of the sub-block and writing the other identification into the code stream.
图 12为本发明实施例提供的另一种解码器的结构示意图, 所述解码器包 括:  FIG. 12 is a schematic structural diagram of another decoder according to an embodiment of the present disclosure, where the decoder includes:
码流读出单元 121 , 用于从码流中获取用于指示当前图像块中第一子块的 预测模式的标识, 所述第一子块包括沿水平方向或竖直方向排列的多个子块; 确定单元 122, 用于确定第二子块, 将第二子块的预测模式做为所述第一 子块的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖 直方向排列的多个子块;  The code stream reading unit 121 is configured to acquire, from the code stream, an identifier for indicating a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction. a determining unit 122, configured to determine a second sub-block, using a prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, where the second sub-block is adjacent to the first sub-block and includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
解码单元 123 , 用于根据所述标识与所述第一子块的最可能预测模式, 确 定第一子块的预测模式。  The decoding unit 123 is configured to determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
对于所述确定单元 122来说,如果所述第一子块的上相邻块包括沿水平方 向或竖直方向排列的多个子块, 将所述上相邻块确定为所述第二子块; 或者, 所述左相邻块确定为所述第二子块; 或者,如果所述第一子块的上相邻块和左 相邻块均包括沿水平方向或竖直方向排列的多个子块,则将所述上相邻块和所 述左相邻块之中预测模式值最小的块确定为所述第二子块。 For the determining unit 122, if the upper adjacent block of the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, the upper adjacent block is determined as the second sub-block Or, The left adjacent block is determined as the second sub-block; or, if the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, A block having the smallest prediction mode value among the upper neighboring block and the left neighboring block is determined as the second sub-block.
如果所述第二子块位于所述当前图像块边界, 则所述码流读出单元 121 , 还用于从所述码流中获取用于指示第二子块的预测模式的另一标识;所述确定 单元 122, 还用于将所述当前图像块的上相邻块和左相邻块之中预测模式值最 小的块的预测模式作为第二子块的最可能预测模式; 所述解码单元 123 , 还用 于根据所述另一标识与所述第二子块的最可能预测模式,确定第二子块的预测 模式。  If the second sub-block is located at the current image block boundary, the code stream readout unit 121 is further configured to acquire another identifier for indicating a prediction mode of the second sub-block from the code stream; The determining unit 122 is further configured to use, as a most probable prediction mode of the second sub-block, a prediction mode of a block that is the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block; The unit 123 is further configured to determine a prediction mode of the second sub-block according to the another identifier and a most probable prediction mode of the second sub-block.
本发明实施例提供的编解码器分别位于编码端和解码端用于对码流进行 编解码,通过有效预测图像块的最可能预测模式,使得一个图像块的最可能预 测模式更接近其实际预测模式,减少在码流传递的反映图像块预测模式的比特 数, 提高编解码性能。  The codec provided by the embodiment of the present invention is respectively located at the encoding end and the decoding end for encoding and decoding the code stream, and by effectively predicting the most probable prediction mode of the image block, the most probable prediction mode of an image block is closer to its actual prediction. The mode reduces the number of bits in the image block prediction mode reflected in the code stream, and improves the codec performance.
本领域普通技术人员可以理解上述方法实施例中的全部或部分流程,是可 以通过计算机程序来指令相关硬件完成的,所述的程序可存储于一计算机可读 取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中, 所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory, ROM ) 或随机存者 i己忆体 ( Random Access Memory, RAM )等。  A person skilled in the art can understand that all or part of the processes in the above method embodiments can be completed by a computer program to instruct related hardware, and the program can be stored in a computer readable storage medium, and the program is executed. At the time, the flow of the embodiment of each of the above methods may be included. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
以上所述仅为本发明的几个实施例,本领域的技术人员依据申请文件公开 的内容可以对本发明进行各种改动或变型而不脱离本发明的精神和范围。本领 的情况下可以互相结合形成新的实施例。  The above is only a few embodiments of the present invention, and various modifications and changes may be made thereto without departing from the spirit and scope of the invention. In the case of the skill, it is possible to combine with each other to form a new embodiment.

Claims

权 利 要 求 Rights request
1、 一种基于图像块的帧内预测模式的编码方法, 其特征在于, 包括: 获取当前图像块中第一子块的预测模式与所述当前图像块中第二子块的 预测模式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排列; 将所述第一子块的预测模式做为第二子块的最可能预测模式; An encoding method of an intra prediction mode based on an image block, comprising: acquiring a prediction mode of a first sub-block in a current image block and a prediction mode of a second sub-block in the current image block, where The first sub-block is adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction; using the prediction mode of the first sub-block as the most probable prediction mode of the second sub-block;
根据第二子块的预测模式与第二子块的最可能预测模式,确定用于指示第 二子块的预测模式的标识, 并将所述标识写入码流中。  And determining, according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and writing the identifier into the code stream.
2、 如权利要求 1所述的方法, 其特征在于, 所述第一子块位于所述当前 图像块边界, 所述方法还包括:  The method of claim 1, wherein the first sub-block is located at a boundary of the current image block, the method further comprising:
将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预 测模式作为第一子块的最可能预测模式;  The prediction mode of the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block is taken as the most probable prediction mode of the first sub-block;
根据第一子块的预测模式与第一子块的最可能预测模式,确定用于指示第 一子块的预测模式的另一标识, 并将所述另一标识写入所述码流中。  Another identifier for indicating a prediction mode of the first sub-block is determined according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, and the another identifier is written into the code stream.
3、 如权利要求 1或 2所述的方法, 其特征在于, 还包括:  3. The method according to claim 1 or 2, further comprising:
对所述当前图像块进行划分,得到包括所述第一子块与所述第二子块在内 的、 沿水平方向或竖直方向排列的多个子块;  Dividing the current image block to obtain a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, including the first sub-block and the second sub-block;
将当前图像块的划分方式信息写入所述码流中。  The division mode information of the current image block is written into the code stream.
4、 如权利要求 3所述的方法, 其特征在于, 所述第一子块与所述第二子 块均为非方块形的矩形块。  4. The method according to claim 3, wherein the first sub-block and the second sub-block are non-square rectangular blocks.
5、 一种基于图像块的帧内预测模式的解码方法, 其特征在于, 包括: 从码流中获取用于指示当前图像块中第二子块的预测模式的标识; 将所述当前图像块中第一子块的预测模式做为第二子块的最可能预测模 式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排列;  A decoding method of an intra prediction mode based on an image block, comprising: acquiring, from a code stream, an identifier for indicating a prediction mode of a second sub-block in a current image block; The prediction mode of the first sub-block is the most probable prediction mode of the second sub-block, and the first sub-block is adjacent to the second sub-block and arranged in a horizontal direction or a vertical direction;
根据所述标识与所述第二子块的最可能预测模式,确定第二子块的预测模 式。 Determining a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
6、 如权利要求 5所述的方法, 其特征在于, 所述第一子块位于所述当前 图像块边界, 所述方法还包括: The method of claim 5, wherein the first sub-block is located at the boundary of the current image block, the method further includes:
从所述码流中获取用于指示第一子块的预测模式的另一标识;  Obtaining another identifier for indicating a prediction mode of the first sub-block from the code stream;
将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预 测模式作为第一子块的最可能预测模式;  The prediction mode of the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block is taken as the most probable prediction mode of the first sub-block;
根据所述另一标识与所述第一子块的最可能预测模式,确定第一子块的预 测模式。  Determining a prediction mode of the first sub-block according to the another identifier and a most probable prediction mode of the first sub-block.
7、 如权利要求 5或 6所述的方法, 其特征在于, 还包括:  7. The method according to claim 5 or 6, further comprising:
从所述码流中获取当前图像块的划分方式信息;  Obtaining division mode information of the current image block from the code stream;
按照所述划分方式对所述当前图像块进行划分,得到包括所述第一子块与 所述第二子块在内的、 沿水平方向或竖直方向排列的多个子块。  The current image block is divided according to the division manner, and a plurality of sub-blocks arranged in a horizontal direction or a vertical direction including the first sub-block and the second sub-block are obtained.
8、 如权利要求 7所述的方法, 其特征在于, 所述第一子块与所述第二子 块均为非方块形的矩形块。  8. The method according to claim 7, wherein the first sub-block and the second sub-block are non-square rectangular blocks.
9、 一种基于图像块的帧内预测模式的编码方法, 其特征在于, 包括: 获取当前图像块中第一子块的预测模式,所述第一子块包括沿水平方向或 竖直方向排列的多个子块;  9. An encoding method of an intra prediction mode based on an image block, comprising: acquiring a prediction mode of a first sub-block in a current image block, the first sub-block comprising being arranged in a horizontal direction or a vertical direction Multiple sub-blocks;
确定第二子块,将第二子块的预测模式做为所述第一子块的最可能预测模 式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的多个子 块;  Determining a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
根据第一子块的预测模式与第一子块的最可能预测模式,确定用于指示第 一子块的预测模式的标识, 并将所述标识写入码流中。  And determining, according to the prediction mode of the first sub-block and the most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and writing the identifier into the code stream.
10、 如权利要求 9所述的方法, 其特征在于, 所述确定第二子块包括: 块, 将所述上相邻块确定为所述第二子块; 或者 块, 将所述左相邻块确定为所述第二子块; 或者 The method of claim 9, wherein the determining the second sub-block comprises: a block determining the upper neighboring block as the second sub-block; or Blocking, determining the left neighboring block as the second sub-block; or
如果所述第一子块的上相邻块和左相邻块均包括沿水平方向或竖直方向 排列的多个子块,则将所述上相邻块和所述左相邻块之中预测模式值最小的块 确定为所述第二子块。  If the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, prediction is performed among the upper adjacent block and the left adjacent block The block with the smallest mode value is determined as the second sub-block.
11、 如权利要求 9所述的方法, 其特征在于, 所述第一子块和第二子块均 为方块。  The method according to claim 9, wherein the first sub-block and the second sub-block are each a square.
12、 如权利要求 9所述的方法, 其特征在于, 所述第二子块内的多个子块 与所述第一子块内的多个子块均为非方块形的矩形块。  The method according to claim 9, wherein the plurality of sub-blocks in the second sub-block and the plurality of sub-blocks in the first sub-block are non-square rectangular blocks.
13、 如权利要求 9 - 12中任一项所述的方法, 其特征在于, 所述第二子块 位于所述当前图像块边界, 所述方法还包括:  The method according to any one of claims 9 to 12, wherein the second sub-block is located at a boundary of the current image block, the method further comprising:
将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预 测模式作为第二子块的最可能预测模式;  The prediction mode of the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block is taken as the most probable prediction mode of the second sub-block;
根据第二子块的预测模式与第二子块的最可能预测模式,确定用于指示第 二子块的预测模式的另一标识, 并将所述另一标识写入所述码流中。  Another identifier for indicating a prediction mode of the second sub-block is determined according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, and the another identifier is written into the code stream.
14、 一种基于图像块的帧内预测模式的解码方法, 其特征在于, 包括: 从码流中获取用于指示当前图像块中第一子块的预测模式的标识,所述第 一子块包括沿水平方向或竖直方向排列的多个子块;  A method for decoding an intra prediction mode based on an image block, comprising: acquiring, from a code stream, an identifier for indicating a prediction mode of a first sub-block in a current image block, the first sub-block Including a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定第二子块,将第二子块的预测模式做为所述第一子块的最可能预测模 式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方向排列的多个子 块;  Determining a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally or vertically Arranging multiple sub-blocks;
根据所述标识与所述第一子块的最可能预测模式,确定第一子块的预测模 式。  Determining a prediction mode of the first sub-block based on the identifier and a most probable prediction mode of the first sub-block.
15、 如权利要求 14所述的方法, 其特征在于, 所述确定第二子块包括: 块, 将所述上相邻块确定为所述第二子块; 或者 块, 将所述左相邻块确定为所述第二子块; 或者 The method according to claim 14, wherein the determining the second sub-block comprises: a block determining the upper neighboring block as the second sub-block; or Blocking, determining the left neighboring block as the second sub-block; or
如果所述第一子块的上相邻块和左相邻块均包括沿水平方向或竖直方向 排列的多个子块,则将所述上相邻块和所述左相邻块之中预测模式值最小的块 确定为所述第二子块。  If the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, prediction is performed among the upper adjacent block and the left adjacent block The block with the smallest mode value is determined as the second sub-block.
16、 如权利要求 14所述的方法, 其特征在于, 所述第一子块和第二子块 均为方块。  16. The method of claim 14, wherein the first sub-block and the second sub-block are all squares.
17、 如权利要求 14所述的方法, 其特征在于, 所述第二子块内的多个子 块与所述第一子块内的多个子块均为非方块形的矩形块。  The method according to claim 14, wherein the plurality of sub-blocks in the second sub-block and the plurality of sub-blocks in the first sub-block are non-square rectangular blocks.
18、 如权利要求 14 - 17中任一项所述的方法, 其特征在于, 所述第二子 块位于所述当前图像块边界, 所述方法还包括:  The method according to any one of claims 14 to 17, wherein the second sub-block is located at the boundary of the current image block, the method further comprising:
从所述码流中获取用于指示第二子块的预测模式的另一标识;  Obtaining another identifier for indicating a prediction mode of the second sub-block from the code stream;
将所述当前图像块的上相邻块和左相邻块之中预测模式值最小的块的预 测模式作为第二子块的最可能预测模式;  The prediction mode of the block having the smallest prediction mode value among the upper neighboring block and the left neighboring block of the current image block is taken as the most probable prediction mode of the second sub-block;
根据所述另一标识与第二子块的最可能预测模式,确定第二子块的预测模 式。  A prediction mode of the second sub-block is determined based on the another identifier and a most probable prediction mode of the second sub-block.
19、 一种编码器, 其特征在于, 包括:  19. An encoder, comprising:
获取单元,用于获取当前图像块中第一子块的预测模式与所述当前图像块 中第二子块的预测模式,所述第一子块与所述第二子块相邻且沿水平方向或竖 直方向排列;  An acquiring unit, configured to acquire a prediction mode of a first sub-block in a current image block and a prediction mode of a second sub-block in the current image block, where the first sub-block is adjacent to the second sub-block and is horizontal Arranged in the direction or in the vertical direction;
确定单元,用于将所述第一子块的预测模式做为第二子块的最可能预测模 式;  a determining unit, configured to use a prediction mode of the first sub-block as a most probable prediction mode of the second sub-block;
码流写入单元,用于根据第二子块的预测模式与第二子块的最可能预测模 式, 确定用于指示第二子块的预测模式的标识, 并将所述标识写入码流中。  a code stream writing unit, configured to determine, according to a prediction mode of the second sub-block and a most probable prediction mode of the second sub-block, an identifier for indicating a prediction mode of the second sub-block, and write the identifier into the code stream in.
20、 如权利要求 19所述的编码器, 其特征在于, 所述第一子块位于所述 当前图像块边界; The encoder according to claim 19, wherein the first sub-block is located in the Current image block boundary;
所述确定单元,还用于将所述当前图像块的上相邻块和左相邻块之中预测 模式值最小的块的预测模式作为第一子块的最可能预测模式;  The determining unit is further configured to use, as a most probable prediction mode of the first sub-block, a prediction mode of a block in which a prediction mode value among the upper neighboring block and the left neighboring block of the current image block is the smallest;
所述码流写入单元,还用于根据第一子块的预测模式与第一子块的最可能 预测模式,确定用于指示第一子块的预测模式的另一标识, 并将所述另一标识 写入所述码流中。  The code stream writing unit is further configured to determine another identifier for indicating a prediction mode of the first sub-block according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, and Another identifier is written into the code stream.
21、 如权利要求 19或 20所述的编码器, 其特征在于, 还包括: 块划分单元, 用于对所述当前图像块进行划分,得到包括所述第一子块与 所述第二子块在内的、 沿水平方向或竖直方向排列的多个子块;  The encoder according to claim 19 or 20, further comprising: a block dividing unit, configured to divide the current image block to obtain the first sub-block and the second sub- a plurality of sub-blocks arranged in a horizontal direction or a vertical direction inside the block;
所述码流写入单元, 还用于将当前图像块的划分方式信息写入所述码流 中。  The code stream writing unit is further configured to write the division mode information of the current image block into the code stream.
22、 一种解码器, 其特征在于, 包括:  22. A decoder, comprising:
码流读出单元,用于从码流中获取用于指示当前图像块中第二子块的预测 模式的标识;  a code stream reading unit, configured to acquire, from the code stream, an identifier for indicating a prediction mode of the second sub-block in the current image block;
确定单元,用于将当前图像块中第一子块的预测模式做为第二子块的最可 能预测模式, 所述第一子块与所述第二子块相邻且沿水平方向或竖直方向排 歹ΐ ;  a determining unit, configured to use a prediction mode of the first sub-block in the current image block as a most probable prediction mode of the second sub-block, where the first sub-block is adjacent to the second sub-block and is horizontal or vertical Straight in the direction;
解码单元, 用于根据所述标识与所述第二子块的最可能预测模式,确定第 二子块的预测模式。  And a decoding unit, configured to determine a prediction mode of the second sub-block according to the identifier and a most probable prediction mode of the second sub-block.
23、 如权利要求 22所述的解码器, 其特征在于, 所述第一子块位于所述 当前图像块边界;  The decoder according to claim 22, wherein the first sub-block is located at a boundary of the current image block;
所述码流读出单元,还用于从所述码流中获取用于指示第一子块的预测模 式的另一标识;  The code stream reading unit is further configured to acquire another identifier for indicating a prediction mode of the first sub-block from the code stream;
所述确定单元,还用于将所述当前图像块的上相邻块和左相邻块之中预测 模式值最小的块的预测模式作为第一子块的最可能预测模式; 所述解码单元,还用于根据所述另一标识与所述第一子块的最可能预测模 式, 确定第一子块的预测模式。 The determining unit is further configured to use, as a most probable prediction mode of the first sub-block, a prediction mode of a block that has a minimum prediction mode value among the upper neighboring block and the left neighboring block of the current image block; The decoding unit is further configured to determine a prediction mode of the first sub-block according to the another identifier and a most probable prediction mode of the first sub-block.
24、如权利要求 22或 23所述的解码器,其特征在于,所述码流读出单元, 还用于从所述码流中获取当前图像块的划分方式信息;  The decoder according to claim 22 or 23, wherein the code stream reading unit is further configured to acquire, according to the code stream, the division mode information of the current image block;
所述解码器还包括: 块划分单元, 用于按照所述划分方式对所述当前图像 块进行划分,得到包括所述第一子块与所述第二子块在内的、 沿水平方向或竖 直方向排列的多个子块。  The decoder further includes: a block dividing unit, configured to divide the current image block according to the dividing manner, to obtain a horizontal direction or the first sub-block and the second sub-block Multiple sub-blocks arranged in the vertical direction.
25、 一种编码器, 其特征在于, 包括:  25. An encoder, comprising:
获取单元, 用于获取当前图像块中第一子块的预测模式, 所述第一子块包 括沿水平方向或竖直方向排列的多个子块;  An obtaining unit, configured to acquire a prediction mode of a first sub-block in a current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定单元, 用于确定第二子块,将第二子块的预测模式做为所述第一子块 的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方 向排列的多个子块;  a determining unit, configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
码流写入单元,用于根据第一子块的预测模式与第一子块的最可能预测模 式, 确定用于指示第一子块的预测模式的标识, 并将所述标识写入码流中。  a code stream writing unit, configured to determine, according to a prediction mode of the first sub-block and a most probable prediction mode of the first sub-block, an identifier for indicating a prediction mode of the first sub-block, and write the identifier into the code stream in.
26、 如权利要求 25所述的解码器, 其特征在于, 所述确定单元具体用于: 块, 将所述上相邻块确定为所述第二子块; 或者 块, 将所述左相邻块确定为所述第二子块; 或者  The decoder according to claim 25, wherein the determining unit is specifically configured to: block, determine the upper neighboring block as the second sub-block; or block, the left phase a neighboring block is determined as the second sub-block; or
如果所述第一子块的上相邻块和左相邻块均包括沿水平方向或竖直方向 排列的多个子块,则将所述上相邻块和所述左相邻块之中预测模式值最小的块 确定为所述第二子块。  If the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, prediction is performed among the upper adjacent block and the left adjacent block The block with the smallest mode value is determined as the second sub-block.
27、 如权利要求 25或 26所述的解码器, 其特征在于, 所述第二子块位于 所述当前图像块边界; 所述确定单元,还用于将所述当前图像块的上相邻块和左相邻块之中预测 模式值最小的块的预测模式作为第二子块的最可能预测模式; The decoder according to claim 25 or 26, wherein the second sub-block is located at a boundary of the current image block; The determining unit is further configured to use, as a most probable prediction mode of the second sub-block, a prediction mode of a block in which a prediction mode value is the smallest among the upper neighboring block and the left neighboring block of the current image block;
所述码流写入单元,还用于根据第二子块的预测模式与第二子块的最可能 预测模式,确定用于指示第二子块的预测模式的另一标识, 并将所述另一标识 写入所述码流中。  The code stream writing unit is further configured to determine another identifier for indicating a prediction mode of the second sub-block according to the prediction mode of the second sub-block and the most probable prediction mode of the second sub-block, and Another identifier is written into the code stream.
28、 一种解码器, 其特征在于, 包括:  28. A decoder, comprising:
码流读出单元,用于从码流中获取用于指示当前图像块中第一子块的预测 模式的标识, 所述第一子块包括沿水平方向或竖直方向排列的多个子块;  a code stream reading unit, configured to acquire, from the code stream, an identifier for indicating a prediction mode of the first sub-block in the current image block, where the first sub-block includes a plurality of sub-blocks arranged in a horizontal direction or a vertical direction;
确定单元, 用于确定第二子块,将第二子块的预测模式做为所述第一子块 的最可能预测模式,所述第二子块与第一子块相邻并包括沿水平方向或竖直方 向排列的多个子块;  a determining unit, configured to determine a second sub-block, the prediction mode of the second sub-block as a most probable prediction mode of the first sub-block, the second sub-block being adjacent to the first sub-block and including horizontally a plurality of sub-blocks arranged in a direction or a vertical direction;
解码单元, 用于根据所述标识与所述第一子块的最可能预测模式,确定第 一子块的预测模式。  And a decoding unit, configured to determine a prediction mode of the first sub-block according to the identifier and a most probable prediction mode of the first sub-block.
29、 如权利要求 28所述的解码器, 其特征在于, 所述确定单元具体用于: 块, 将所述上相邻块确定为所述第二子块; 或者 块, 将所述左相邻块确定为所述第二子块; 或者  The decoder according to claim 28, wherein the determining unit is specifically configured to: block, determine the upper neighboring block as the second sub-block; or block, the left phase a neighboring block is determined as the second sub-block; or
如果所述第一子块的上相邻块和左相邻块均包括沿水平方向或竖直方向 排列的多个子块,则将所述上相邻块和所述左相邻块之中预测模式值最小的块 确定为所述第二子块。  If the upper adjacent block and the left adjacent block of the first sub-block each include a plurality of sub-blocks arranged in a horizontal direction or a vertical direction, prediction is performed among the upper adjacent block and the left adjacent block The block with the smallest mode value is determined as the second sub-block.
30、 如权利要求 28或 29所述的解码器, 其特征在于, 所述第二子块位于 所述当前图像块边界;  The decoder according to claim 28 or 29, wherein the second sub-block is located at a boundary of the current image block;
所述码流读出单元,还用于从所述码流中获取用于指示第二子块的预测模 式的另一标识; 所述确定单元,还用于将所述当前图像块的上相邻块和左相邻块之中预测 模式值最小的块的预测模式作为第二子块的最可能预测模式; The code stream reading unit is further configured to acquire another identifier for indicating a prediction mode of the second sub-block from the code stream; The determining unit is further configured to use, as a most probable prediction mode of the second sub-block, a prediction mode of a block in which a prediction mode value is the smallest among the upper neighboring block and the left neighboring block of the current image block;
所述解码单元,还用于根据所述另一标识与所述第二子块的最可能预测模 式, 确定第二子块的预测模式。  The decoding unit is further configured to determine a prediction mode of the second sub-block according to the another identifier and a most probable prediction mode of the second sub-block.
PCT/CN2011/085195 2011-01-18 2011-12-31 Encoding/decoding method and codec based on intra-prediction mode of image block WO2012097675A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110020668.9 2011-01-18
CN201110020668.9A CN102724493B (en) 2011-01-18 2011-01-18 Coding and decoding methods of intra-frame prediction modes based on image blocks and codec

Publications (1)

Publication Number Publication Date
WO2012097675A1 true WO2012097675A1 (en) 2012-07-26

Family

ID=46515139

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2011/085195 WO2012097675A1 (en) 2011-01-18 2011-12-31 Encoding/decoding method and codec based on intra-prediction mode of image block

Country Status (2)

Country Link
CN (1) CN102724493B (en)
WO (1) WO2012097675A1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581159B (en) * 2013-10-18 2019-04-05 华为技术有限公司 Block partitioning scheme in coding and decoding video determines method and relevant apparatus
CN105120292B (en) * 2015-09-09 2018-11-23 厦门大学 A kind of coding intra-frame prediction method based on image texture characteristic
CN112514384A (en) * 2019-01-28 2021-03-16 株式会社 Xris Video signal encoding/decoding method and apparatus thereof
CN110213581B (en) * 2019-05-20 2023-03-07 广州市数字视频编解码技术国家工程实验室研究开发与产业化中心 Encoding method, device and storage medium based on block division mode skipping
CN112019841A (en) * 2019-05-31 2020-12-01 富士通株式会社 Video coding method and device and electronic equipment
WO2021037053A1 (en) * 2019-08-27 2021-03-04 Huawei Technologies Co., Ltd. An encoder, a decoder and corresponding methods of cabac coding for the indices of geometric partition flag

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP1558039A1 (en) * 2004-01-21 2005-07-27 Deutsche Thomson-Brandt Gmbh Method and apparatus for generating/evaluating prediction information in picture signal encoding/decoding
CN1656818A (en) * 2002-05-28 2005-08-17 夏普株式会社 Methods and systems for image intra-prediction mode estimation, communication, and organization
US20090161757A1 (en) * 2007-12-21 2009-06-25 General Instrument Corporation Method and Apparatus for Selecting a Coding Mode for a Block
CN101668202A (en) * 2008-09-01 2010-03-10 中兴通讯股份有限公司 Method and device for selecting intra-frame prediction mode
CN101790096A (en) * 2009-01-24 2010-07-28 华为技术有限公司 Encoding and decoding method and device based on double prediction

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN100348051C (en) * 2005-03-31 2007-11-07 华中科技大学 An enhanced in-frame predictive mode coding method
CN101854551B (en) * 2010-06-08 2012-08-15 浙江大学 Intra-frame prediction mode coding and decoding method and device

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1656818A (en) * 2002-05-28 2005-08-17 夏普株式会社 Methods and systems for image intra-prediction mode estimation, communication, and organization
EP1558039A1 (en) * 2004-01-21 2005-07-27 Deutsche Thomson-Brandt Gmbh Method and apparatus for generating/evaluating prediction information in picture signal encoding/decoding
US20090161757A1 (en) * 2007-12-21 2009-06-25 General Instrument Corporation Method and Apparatus for Selecting a Coding Mode for a Block
CN101668202A (en) * 2008-09-01 2010-03-10 中兴通讯股份有限公司 Method and device for selecting intra-frame prediction mode
CN101790096A (en) * 2009-01-24 2010-07-28 华为技术有限公司 Encoding and decoding method and device based on double prediction

Also Published As

Publication number Publication date
CN102724493A (en) 2012-10-10
CN102724493B (en) 2014-06-25

Similar Documents

Publication Publication Date Title
US11750809B2 (en) Encoding and decoding methods and apparatuses with multiple image block division manners
US20220385920A1 (en) Intra-Frame Prediction and Decoding Methods and Apparatuses for Image Signal
TW202106004A (en) Interaction between core transform and secondary transform
JP5096561B2 (en) Mode uniformity signaling for intracoding
WO2018177300A1 (en) Multiple transform prediction
WO2020253828A1 (en) Coding and decoding method and device, and storage medium
US11778235B2 (en) Signaling coding of transform-skipped blocks
CN110546954A (en) Quadratic conversion kernel size selection
KR100587698B1 (en) Selective prediction encoding/decoding method and device
KR100624426B1 (en) Pipeline decoding apparatus and method, and computer-readable recording media for storing computer program for controlling the apparatus
WO2012097675A1 (en) Encoding/decoding method and codec based on intra-prediction mode of image block
WO2015124058A1 (en) Coding and decoding method and device
JP2010515310A (en) Method and apparatus for intraframe predictive encoding / decoding
JP2009545919A5 (en)
US11284077B2 (en) Signaling of subpicture structures
WO2007055158A1 (en) Dynamic image encoding method, dynamic image decoding method, and device
WO2010041856A2 (en) A method and an apparatus for processing a video signal
WO2012167539A1 (en) Method and device for intra-frame prediction mode processing
MX2012013263A (en) Methods and apparatus for intra coding a block having pixels assigned to groups.
JP2023090929A (en) Video decoding method, video decoding apparatus, and storage medium
TWI719612B (en) Method and apparatus of intra prediction with mpm generation in image and video processing
WO2012095037A1 (en) Encoding and decoding method and device
JP2017212554A (en) Encoder, decoder and program
WO2023193260A1 (en) Encoding/decoding method, code stream, encoder, decoder, and storage medium
US20230403392A1 (en) Intra prediction method and decoder

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

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

Country of ref document: EP

Kind code of ref document: A1