WO2013000437A1 - Intra-frame prediction-based decoding method and decoding device - Google Patents

Intra-frame prediction-based decoding method and decoding device Download PDF

Info

Publication number
WO2013000437A1
WO2013000437A1 PCT/CN2012/078039 CN2012078039W WO2013000437A1 WO 2013000437 A1 WO2013000437 A1 WO 2013000437A1 CN 2012078039 W CN2012078039 W CN 2012078039W WO 2013000437 A1 WO2013000437 A1 WO 2013000437A1
Authority
WO
WIPO (PCT)
Prior art keywords
divided
current block
rectangular
square
blocks
Prior art date
Application number
PCT/CN2012/078039
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 WO2013000437A1 publication Critical patent/WO2013000437A1/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/46Embedding additional information in the video signal during the compression process
    • 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • Embodiments of the present invention relate to the field of image processing processing, and more particularly, to a decoding method and a decoding apparatus based on intra prediction. Background technique
  • the video image is usually compressed and encoded by the encoder at the transmitting end, and then transmitted to the receiving end through the network, and the receiving end decompresses the decoder to recover the video image.
  • the transmitting end or receiving end can be a mobile phone, a portable computer, a handheld computer, a video camera, a video monitoring device, and the like.
  • a prediction module and a transform module for the image block signal are usually included.
  • the prediction module predicts the current image block signal based on the decoded information to obtain a prediction signal.
  • the transform module performs an inverse transform operation on the received transform coefficients to obtain a reconstructed difference signal.
  • the decoding end adds the prediction signal to the reconstructed difference signal to obtain a reconstructed image block signal.
  • the prediction is divided into two types: inter prediction and intra prediction.
  • the inter prediction obtains a prediction signal based on temporal proximity of the current image block to the encoded information
  • the intra prediction obtains the prediction signal based on spatially adjacent encoded information of the current image block.
  • the coding unit is an image block that is operated when encoding or decoding is performed at the encoding end or the decoding end.
  • the prediction unit is an image block having an independent prediction mode in the coding unit.
  • the prediction block is an image block in which the coding unit performs a prediction operation, and one prediction unit may include a plurality of prediction blocks, and the prediction blocks may perform a prediction operation using a common prediction mode (ie, a prediction mode of a prediction unit in which the prediction unit is located).
  • the transform unit is an image block in which a transform operation is performed in the coding unit.
  • the prediction block size is generally the same as the transform unit size because the correlation of the prediction difference signals of the boundary portions of adjacent intra prediction blocks is weak, so the transform unit should not cross the prediction block boundary. At the same time, considering that the correlation of the difference signal inside the prediction block is strong, and the large block transformation has higher energy concentration performance than the small block transformation, it is usually selected and pre-selected. - - Measure the same size of the transform unit.
  • a quadtree partitioning flag of a current prediction unit may be obtained from a code stream, and the current prediction unit is iteratively divided into square transform units of different sizes according to the label.
  • a quadtree partitioning flag of 1 indicates that further segmentation is required, and a flag of 0 indicates that segmentation is stopped.
  • the prior art uses a split-transform-flag as a split flag to indicate whether the current block is further split.
  • the split-transform-flag can be encoded as a separate syntax element or jointly encoded with other syntax elements.
  • the decoding end needs to perform the following operations on each transform unit in sequence: performing an intra prediction operation on the intra prediction mode of the prediction unit corresponding to the transform unit to obtain a prediction signal; and performing inverse transform on the received transform coefficient to obtain a reconstructed prediction difference signal; The predicted signal is added to the reconstructed predicted difference signal to obtain a reconstructed image signal.
  • Embodiments of the present invention provide a decoding method and a decoding apparatus based on intra prediction, which can improve video image compression efficiency.
  • An embodiment of the present invention provides a decoding method based on intra prediction, which includes: acquiring, for a current prediction unit, one or more segmentation marks, a segmentation shape mark, and a segmentation direction from a compressed code stream of a video image.
  • a mark, a split mark corresponding to the current block among the one or more split marks is used to indicate whether to divide the current block into a plurality of blocks
  • the split shape mark indicates that the current block is divided into multiple square blocks or divided into multiple a rectangular block
  • the dividing direction mark indicating that the current block is divided into a plurality of rectangular blocks in the horizontal direction or divided into a plurality of rectangular blocks in the vertical direction
  • each of the plurality of square blocks has the same width and height, and a plurality of Each rectangular block in the rectangular block is not equal in width and height
  • the current prediction unit is finally divided into a plurality of square transformation units or a plurality according to the acquired one or more segmentation marks, the segmentation shape flag, and the segmentation direction flag.
  • an apparatus for decoding based on intra prediction comprising: a label acquisition module, configured to acquire one or more from a compressed code stream of a video image for a current prediction unit - a segmentation marker, a segmentation shape marker, and a segmentation direction marker, wherein the segmentation marker corresponding to the current block of the one or more segmentation markers is used to indicate whether to divide the current block into a plurality of blocks, the segmentation shape marker indication
  • the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks, and the division direction mark indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction or is divided into a plurality of rectangular blocks in the vertical direction, and the plurality of square blocks are Each square block has the same width and height, and each of the plurality of rectangular blocks has a width and height that are not equal;
  • the segmentation module is configured to: according to the acquired one or more segmentation marks, the segmentation shape mark, and the segmentation The direction
  • the embodiment of the present invention may process the strip by using an optional transform unit (ie, a rectangular transform unit) that adapts the strip texture of the image frame by selecting the prediction unit into a square transform unit or a rectangular transform unit in the same prediction unit.
  • an optional transform unit ie, a rectangular transform unit
  • Shaped texture which can improve the compression efficiency of video images.
  • FIGS. 1A to 1C are diagrams showing a coding unit, a prediction unit, and a transformation unit according to an embodiment of the present invention.
  • FIGS. 2A and 2B are diagrams showing a coding unit, a prediction unit, and a transformation unit according to another embodiment of the present invention.
  • FIG. 3 is a schematic flow chart showing a decoding method based on intra prediction according to an embodiment of the present invention.
  • FIG. 4 is a schematic flow chart showing a decoding method based on intra prediction according to another embodiment of the present invention.
  • FIG. 5 shows a schematic structural diagram of a decoding apparatus based on intra prediction according to an embodiment of the present invention. - - detailed description
  • Video encoders or decoders are widely used in a variety of electronic devices, such as mobile phones, laptops, MP3/MP4, handheld computers, video cameras, video surveillance devices.
  • the video encoder or decoder can be implemented by a digital processing circuit, such as a DSP chip, or by a software (such as a CPU) calling software code.
  • an intra prediction mode of rectangular block - short range intra prediction mode (SDIP) is proposed.
  • the prediction unit of SDIP is a rectangular block of M x N, where M and N are not equal.
  • SDIP_flag flag is first obtained to determine whether the prediction mode is employed. If the SDIP_flag is 1, then the 1-bit SDIP_direction flag is obtained to judge whether the prediction unit is strip-shaped in the horizontal direction or in the vertical direction.
  • the decoding end needs to perform the following operations on each transform unit in sequence: performing an intra prediction operation by using an intra prediction mode of a prediction unit corresponding to the transform unit to obtain a prediction signal; and performing inverse transformation by inversely transforming the received transform coefficients Predicting the difference signal; adding the predicted signal to the reconstructed predicted difference signal to obtain a reconstructed image signal.
  • each prediction unit needs to independently select its own prediction mode. Therefore, the coding end divides the prediction unit by multiple division methods, which greatly increases the coding complexity.
  • FIGS. 1A to 1C are schematic views of a coding unit, a prediction unit, and a transformation unit, according to an embodiment of the present invention.
  • the coding unit 100 may be the same size as the prediction unit 110, that is, the current coding unit may be used as one prediction unit.
  • the prediction unit 110 is first divided into four rectangular blocks of equal size, such as a rectangular block 130.
  • the rectangular block located at the top of FIG. 1B is further divided into four equal-sized rectangular blocks, such as rectangular block 120. Since the rectangular block 130 and the rectangular block 120 are not intermittently divided, they are two rectangular transform units among the plurality of rectangular transform units finally obtained by the segmentation prediction unit 110. Similarly, can The prediction unit 110 is divided into a plurality of levels by a rectangular division method to obtain a plurality of rectangular transformation units.
  • the prediction unit 110 is first divided into four equal-sized square blocks, such as a square block 140.
  • the square block located at the lower left of Fig. 1C is further divided into two to obtain a square block 150. Since the square block 140 and the square block 150 are not further divided, they are two square transform units among the plurality of square transform units finally obtained by the segmentation prediction unit 110.
  • the prediction unit 110 may be divided into a plurality of levels by a square division method to obtain a plurality of square transformation units.
  • rectangular block or the rectangular transform unit described herein may represent a quadrangular block or transform unit whose unequal horizontal and vertical directions are different, and the square or square transform unit described herein may represent horizontal direction and vertical direction.
  • a quadrilateral block or transform unit of equal size may represent a quadrangular block or transform unit whose unequal horizontal and vertical directions are different, and the square or square transform unit described herein may represent horizontal direction and vertical direction.
  • FIGS. 2A and 2B are diagrams showing a coding unit, a prediction unit, and a transformation unit according to another embodiment of the present invention.
  • the current coding unit 200 may be divided into four equal-sized prediction units 210, where the width and height of each prediction unit 210 are respectively obtained by the current coding unit 200. One-half the width.
  • Those skilled in the art will know how to divide a coding unit into four equal-sized prediction units, which will not be described in detail herein.
  • each prediction unit 210 may be further divided into a plurality of transform units.
  • the prediction unit 210 located at the upper left of FIG. 2B adopts a rectangular division manner. After two divisions, the rectangular transformation unit 220 is obtained.
  • the prediction unit 210 located at the upper right of FIG. 2B adopts a square division method, and after two divisions, The square transform unit 230 is located at the lower right of FIG. 2B and is divided by a rectangle. After one division, the transform unit 240 is obtained.
  • the prediction unit 210 located at the lower left of FIG. 2B is not divided and directly serves as the square transform unit 250. In other words, each prediction unit 210 is finally divided into a plurality of rectangular or square transformation units as shown in Fig. 2B.
  • the prediction unit division manner i.e., the prediction unit division manner without using a rectangle
  • the coding side computational complexity can be reduced.
  • FIG. 3 is a schematic flow chart showing a decoding method based on intra prediction according to an embodiment of the present invention.
  • one or more split marks, a split shape mark, and a split direction mark are acquired from the compressed code stream of the video image for the current prediction unit, and the one or more points are divided.
  • a split flag corresponding to the current block in the cut mark is used to indicate whether the current block is divided into a plurality of blocks
  • the split shape mark indicates that the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks
  • the split The direction mark indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction or is divided into a plurality of rectangular blocks in the vertical direction
  • each of the plurality of square blocks has the same width and height
  • each of the plurality of rectangular blocks The width of the rectangular block is not equal to the height.
  • the current prediction unit is finally divided into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation markers, the segmentation shape marker, and the segmentation direction marker.
  • a decoding process is performed on each of the plurality of square transform units obtained by the final split or each of the plurality of rectangular transform units obtained by the final split.
  • a coding unit may be divided into a plurality of prediction units (e.g., square prediction units) or a coding unit may be used as one prediction unit.
  • one or more segmentation markers can be acquired for each prediction unit from the code stream, wherein each segmentation marker is used to indicate whether to segment a certain image block corresponding to the segmentation marker.
  • a split shape mark and a split direction mark may be acquired from the code stream, and the prediction unit may be divided into a rectangular transform unit or a square transform unit according to the split shape mark.
  • the prediction unit is divided in the horizontal direction or in the vertical direction according to the division direction mark. After the prediction unit is subjected to one or more divisions to obtain the final transformation unit, the decoding process is performed for each transformation unit.
  • the embodiment according to the present invention is not limited thereto, and an instant decoding operation may be performed on a transform unit that is no longer divided. Since the same prediction unit uses a split shape mark and a split direction mark, the split direction and the split shape of the transform unit are identical in the same prediction unit.
  • a strip texture adapted to the image frame may be adopted.
  • Selecting a transform unit (ie, a rectangular transform unit) to process the strip texture can improve video image compression efficiency. Since the prediction unit division mode (i.e., the prediction unit division manner without using a rectangle) is reduced according to an embodiment of the present invention, the encoding side computational complexity can be further reduced.
  • FIG. 3 The following description of FIG. 3 will be described with reference to FIGS. 1A to 1C and FIGS. 2A and 2B and a specific implementation method. - - Decoding method.
  • one or more segmentation marks, a segmentation shape marker, and a segmentation direction marker are acquired from the compressed code stream of the video image for the current prediction unit, and the segmentation marker corresponding to the current block among the one or more segmentation markers
  • the split shape flag indicates that the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks
  • the split direction mark indicates that the current block is divided into multiples in the horizontal direction.
  • the rectangular block is divided into a plurality of rectangular blocks in the vertical direction, and each of the plurality of square blocks has the same width and height, and each of the plurality of rectangular blocks has a width and a height that are not equal.
  • the current block may be an image block of the same size as the current prediction unit.
  • one of the plurality of blocks obtained by the division is used as the current block of the next division.
  • the segmentation of the prediction unit may be a hierarchical iterative process until the segmentation flag corresponding to the current block indicates that the current block is no longer segmented, and the image block obtained at this time is a transformation unit, as shown in FIG. Figure 1 C and Figures 2A and 2C.
  • each of the plurality of rectangular blocks divided in the horizontal direction has a width greater than a height, and is divided into a plurality of segments obtained in the vertical direction.
  • the width of each rectangular block in the rectangular block is smaller than the height.
  • the compressed code stream is acquired.
  • a split shape mark indicates that the current block is divided into a plurality of rectangular blocks
  • one split direction mark is acquired from the compressed code stream.
  • a corresponding segmentation flag can be acquired for an image block at a different segmentation level of one prediction unit, and a prediction unit can acquire a segmentation shape marker and a segmentation direction marker.
  • syntax elements may be added to the structure of the compressed code stream: non-square-transform-flag and non-square-transform-direction.
  • the former indicates whether the current prediction unit is divided into multiple rectangular transformation units, and the latter indicates whether horizontal or vertical is used.
  • - - Strip division to obtain multiple rectangular transformation units.
  • non-square-transform-flag is 1 to divide the current prediction unit into several rectangular transformation units
  • non-square_transform_flag is 0 to indicate the current prediction unit.
  • Non-square-transform-direction is 1 to indicate that the rectangular transform unit is determined by the horizontal strip division method.
  • the so-called transform unit determined by the horizontal strip division method means that the transform unit has a width greater than a height.
  • Non-square-transform-direction is 0 to indicate that the rectangular transform unit is determined in a vertical stripe manner.
  • the rectangular transformation unit determined by the vertical strip division means that the width of the transformation unit is smaller than the height.
  • the decoding end may perform the following operations to obtain a non-square_transform_flag and a non-square_transform_direction: determining whether a non-square_transform-flag is obtained from the code stream, and if so, performing the corresponding coding according to a specified coding manner.
  • the parsing and decoding operations obtain non-square_transform_flag from the code stream, otherwise the non-square_transform_flag is set to the default value of 0; if non-square-transform-flag is 1, the shell 'J is encoded according to the specified
  • the mode performs a corresponding parsing and decoding operation to obtain a non-square-transform-direction from the code stream.
  • the non-square_transform_flag may be obtained from the code stream based on at least one of the following conditions: 1) The split-transform-flag obtained is the first split-transform-flag in the current prediction unit, 2) The obtained split_transform_flag is 1, which means that the current block is divided into multiple transform units, and 3) the current block size satisfies the given constraint condition.
  • the split-transform-flag obtained is the first split-transform-flag in the current prediction unit
  • the obtained split_transform_flag is 1, which means that the current block is divided into multiple transform units, and 3) the current block size satisfies the given constraint condition.
  • embodiments according to the invention are not limited thereto. In the embodiment of the present invention, it is assumed that only the above items 1) and 2) are considered as the judgment conditions.
  • the flag split-transform_flag indicates the first split_transform_flag in the current prediction unit.
  • the value of the flag split_transform_flag can be determined in accordance with conventional methods in the art.
  • u(l) indicates that the code is encoded as a 1-bit unsigned integer variable, that is, directly written to the code stream;
  • ae(v) represents a binary entropy coding mode based on the context model.
  • non-square-transform_flag 1 indicates that the current prediction unit is divided into a plurality of square transformation units
  • a non-square_transform_flag of 0 indicates that the current prediction unit is divided into a plurality of rectangular transformation units.
  • the non-square_transform_direction is 1 to determine the rectangular transform unit in a vertical strip division manner
  • the non-square_transform_direction 0 indicates that the rectangular transform unit is determined in a horizontal strip division manner.
  • the current prediction unit is finally divided into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation marks, the segmentation shape marker, and the segmentation direction marker.
  • the current block in a case where the split flag corresponding to the current block in the one or more split marks indicates that the current block is divided into a plurality of blocks, the current block is divided into the split direction corresponding to the split direction mark into A plurality of square blocks or rectangular blocks corresponding to the divided shape marks.
  • the split shape flag indicates that the current block is divided into a plurality of square blocks
  • - - The current block is divided into four equal-sized square blocks, and each of the four equal-sized square blocks has a width or height that is one-half of the width or height of the current block, respectively.
  • the current block is further divided into four equal-sized rectangular blocks according to the split direction mark.
  • the split direction flag indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction
  • the current block is divided into four equal-sized rectangular blocks in the horizontal direction, wherein each of the four equal-sized rectangular blocks
  • the width of the rectangular block is the same as the width of the current block, and the height of each of the four equally sized rectangular blocks is one quarter of the height of the current block.
  • the current block is divided into four equal-sized rectangular blocks in the vertical direction, wherein four equal-sized rectangular blocks are divided.
  • the height of each of the rectangular blocks is the same as the height of the current block, and the width of each of the four equally sized rectangular blocks is one quarter of the width of the current block.
  • all transform unit splitting flags in the current prediction unit are split-transform-flag, rectangular transform unit-labeled non-square-transform-flag, and rectangular transform
  • the unit split direction label non-square-transform-direction has been obtained from the code stream and can be used in the decoding process.
  • the current block is the current prediction unit before the current prediction unit is split. After segmenting the current prediction unit, the current block can be split to get any image block.
  • each input parameter may be first acquired: a brightness position (xB, yB) indicating the displacement of the pixel in the upper left corner of the current block relative to the pixel in the upper left corner of the current image; the logarithm of the current block width indicates log2TrafoWidth and height The logarithm represents log2TrafoHeight; the depth of the current block relative to the current coding unit trafoDepth; the intra prediction mode intraPredMode used by the current block; the color component index cldx of the current block, cldx is 0 for the luma component, cldx is 1 or 2 Chromatic component.
  • log2Trafo Width When non-square_transform_flag is 0, log2Trafo Width is equal to log2TrafoHeight, and these two variables are recorded as log2TrafoSize.
  • log2TrafoWidth represents the logarithm of the width from the base 2, for example, 4 of 4 blocks (the value of ⁇ 21 ⁇ 4& ⁇ 3 ⁇ 41 «1 is 2, and the log2TrafoWidth of 8 X 8 blocks is 3.
  • log2TrafoSize means base 2 Find the logarithm of the side length of the square block.
  • the following processing is performed. - - First, set the position information of the four blocks obtained by the division. Dividing the four positions of the upper left corner of the luminance position is divided into 'J' (xB, yB), (xBl, yBl), (xB2, yB2) and (xB3, yB3).
  • l «x refers to shifting the binary number 1 to the left by x bits.
  • 1 ⁇ 2 means binary 100
  • x>>2 means shifting the binary number X to the right by 2 bits.
  • 100>>2 means binary number. 1.
  • Brightness position (xB, yB) is (xB, yB) and block width logarithm indicates log2Trafo Width and height logarithm represent log2TrafoHeight.
  • the specific setting method is as follows: when non-square_transform_flag is 1 and non-square_transform_direction is 1, log2TrafoHeight is set to log2TrafoHeight-2, log2Trafo Width remains unchanged; in non-square-transform-flag is 1 and non-square-transform-direction is 0, log2Trafo Width is set to log2TrafoWidth-2, log2TrafoHeight remains unchanged; when non-square_transform_flag is 0, log2Trafo Width and log2TrafoHeight are set to log2TrafoWidth-l; Set the hierarchical depth trafoDepth of the current block to trafoDepth+1; set the intra prediction mode intraPredMode to intraPredMode (ie, keep the intra prediction mode unchanged); set the color component index cldx to cldx (ie, keep the color component index unchanged).
  • Processing the second of the four blocks is similar to the method of processing the first of the four blocks described above, except that the luminance position (xB, yB) is set to (xB1, yB1).
  • Processing the third of the four blocks is similar to the method of processing the first of the four blocks described above, except that the luminance position (xB, yB) is set to (xB2, yB2).
  • Process the fourth of the four blocks Method of processing the first of the four blocks with the above - - Similar, except that the brightness position (xB, yB) is set to (xB3, yB3).
  • the steps of setting the position information of the four blocks and the steps of processing the four blocks can be iteratively performed.
  • a decoding process is performed on each of the plurality of square transform units obtained by the final split or each of the plurality of rectangular transform units obtained by the final split.
  • the split flag corresponding to the current block among the one or more split marks indicates each square transform unit or rectangular transform unit obtained in the final split without further splitting the current block.
  • the prediction signals of each square transform unit or rectangular transform unit are acquired according to the position, width and height of each square transform unit or rectangular transform unit and the intra prediction mode determined by the prediction unit in which it is located, Obtaining a reconstructed prediction difference signal of each square transform unit or a rectangular transform unit according to the position of each square transform unit or rectangular transform unit, the width and height of each square transform unit or rectangular transform unit, and the depth of the partition hierarchy. And, based on the prediction signal and the reconstructed prediction difference signal, a reconstruction signal of each square transformation unit or rectangular transformation unit is obtained.
  • the current block is determined to be the final transform unit obtained by the split, and the following decoding process is performed.
  • the brightness is still taken as an example for description.
  • the current block can be a square transform unit or a rectangular transform unit.
  • the size of the current block can be expressed using (nW)x(nH), where nW represents the number of samples of the luminance component of the current block in the horizontal direction, and nH represents the number of samples of the luminance component of the current block along the vertical direction.
  • nW represents the number of samples of the luminance component of the current block in the horizontal direction
  • nH represents the number of samples of the luminance component of the current block along the vertical direction.
  • nW is equal to nH.
  • nW and nH are not equal.
  • nW and nH can be set by the following method: When non-square_transform_flag is 0, set nW and nH to (l «log2TrafoSize); otherwise, set nW to l «log2TrafoWidth, and set nH to l «log2TrafoHeight .
  • the prediction signal of the current block is taken as inputs, and the intra prediction module is called to acquire (nW)x. (nH) size prediction signal matrix.
  • the current block reconstruction prediction difference signal is obtained.
  • Current block brightness position (xB, yB), current - The block level depth trafoDepth, the current block color component cldx, the current block width nW and the height nH are taken as inputs, and the scaling and transform module is called to acquire a (nW)x(nH) size reconstructed difference signal matrix.
  • a (nW)x(nH)-sized prediction signal matrix is added to the (nW)x(nH)-sized reconstructed difference signal matrix to obtain a reconstructed signal matrix of (nW)x(nH) size.
  • the current block reconstruction signal is placed in the corresponding position in the reconstructed image.
  • the reconstructed signal matrix of (nW)x(nH) size is placed in the corresponding position marked by the luminance position (xB, yB) in the reconstructed image.
  • the embodiments of the present invention can be used to process image luminance components, and can also be used to process image chrominance components, and can also be used to process image luminance components and chrominance components simultaneously.
  • the syntax of the intra prediction based decoding method can be modified according to an embodiment of the present invention, that is, the code stream structure is modified: the syntax element non-square_transform_flag and non-square-transform are added. — direction , and JU' falsified the corresponding decoding side parsing operation.
  • the corresponding processing flow can be realized not only to realize the rectangular transform unit, but also compatible with the quad-tree transform segmentation mode, and can be regarded as a quadtree A change in the way the transformation is split. Therefore, it is much simpler in terms of grammar description methods and implementation.
  • an adaptive map is adopted by selecting a prediction unit into a square transform unit or a rectangular transform unit in the same prediction unit.
  • the prediction unit division method of the rectangle is not used, so the computational complexity of the encoding end can be further reduced.
  • a coding unit may be divided into a plurality of prediction units, and then a similar operation is performed for each prediction unit iteration.
  • the first segmentation flag is obtained from the compressed code stream of the view image for the current prediction unit.
  • the current block is divided into rectangular blocks in the horizontal direction, and execution continues to 450.
  • the current block is divided into rectangular blocks in the vertical direction, and execution continues with 455.
  • the current block is split into square blocks and execution continues with 445.
  • decoding is performed on the current block and execution continues at 475.
  • the divided square block is taken as the current block, and execution proceeds to 420.
  • the divided rectangular block is taken as the current block, and execution proceeds to 420.
  • next image block is taken as the front block, and execution continues with 420.
  • the next prediction unit is taken as the current prediction unit in 485, and step 405 is continued.
  • This decoding process can be performed on each prediction unit in turn.
  • the embodiment of the present invention is not limited thereto, and the foregoing decoding process may be performed on multiple prediction units at the same time. In this case, when the determination result of 475 is that the current block is the last one of the prediction units, the current prediction is ended. The decoding process of the unit.
  • the implementation according to the present invention is not limited to the above-described execution order.
  • the decoding operation may be performed simultaneously after all the transform units are obtained by dividing the prediction unit.
  • 485 can be omitted.
  • the prediction unit is segmented into two by selecting within the same prediction unit - A square transform unit or a rectangular transform unit, whereby an optional transform unit (ie, a rectangular transform unit) adapted to the strip texture of the image frame is used to process the strip texture, which can improve the video image compression efficiency. Since the prediction unit division manner (i.e., the prediction unit division manner without using a rectangle) is reduced according to an embodiment of the present invention, the coding side computational complexity can be further reduced.
  • FIG. 5 is a schematic configuration diagram showing a decoding apparatus 500 based on intra prediction according to an embodiment of the present invention.
  • the apparatus 500 of FIG. 5 includes a tag acquisition module, a segmentation module 520, and a decoding module 530.
  • the tag obtaining module 510 is configured to obtain, for the current prediction unit, one or more segmentation marks, a segmentation shape marker, and a segmentation direction marker from the compressed code stream of the video image, where the one or more segmentation markers correspond to the current block.
  • the split flag is used to indicate whether to divide the current block into a plurality of blocks
  • the split shape flag indicates that the current block is divided into a plurality of square blocks or is divided into a plurality of rectangular blocks
  • the split direction mark indicates that the current block is divided into horizontal blocks into
  • a plurality of rectangular blocks are divided into a plurality of rectangular blocks in a vertical direction, and each of the plurality of square blocks has a width equal to a height, and each of the plurality of rectangular blocks has a width and a height that are not equal.
  • the segmentation module 520 is configured to finally divide the current prediction unit into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation markers, the segmentation shape markers, and the segmentation direction markers.
  • the decoding module 530 is configured to perform a decoding process on each of the plurality of square transform units or the plurality of rectangular transform units that are finally divided.
  • the current block is an image block of the same size as the current prediction unit. According to an embodiment of the present invention, one of the plurality of divided blocks is taken as the current block to be divided next.
  • the mark obtaining module 510 after the first one of the one or more split marks indicates that the current block is divided into a plurality of blocks, after acquiring the first split mark, Obtaining a split shape mark in the compressed code stream; and in the case where the split shape mark indicates that the current block is divided into a plurality of rectangular blocks, after the split shape mark is acquired, one split direction mark is acquired from the compressed code stream.
  • the segmentation module 520 marks the segmentation direction according to the segmentation direction when the segmentation flag corresponding to the current block in the one or more segmentation marks indicates that the current block is divided into a plurality of blocks. - - The corresponding split direction divides the current block into a plurality of square blocks or rectangular blocks corresponding to the split shape marks.
  • the decoding module 530 in the case that the segmentation flag corresponding to the current block in the one or more segmentation marks indicates that the current block is not further segmented, each square transformation unit obtained by the final segmentation Or a rectangular transformation unit.
  • the decoding unit 530 acquires each square transform unit or rectangular transform unit according to the position, width and height of each square transform unit or rectangular transform unit and the intra prediction mode determined by the prediction unit in which it is located.
  • the prediction signal is obtained according to the position of each square transformation unit or rectangular transformation unit, the width and height of each square transformation unit or rectangular transformation unit, and the depth of the division level, and the reconstruction prediction of each square transformation unit or rectangular transformation unit is obtained.
  • a difference signal and obtaining a reconstructed signal of each square transform unit or rectangular transform unit according to the predicted signal and the reconstructed predicted difference signal.
  • the above and other operations and/or functions of the tag acquisition module 510, the segmentation module 520, and the decoding unit 530 of the acknowledgment device 500 provided by the embodiment of the present invention may refer to the methods 310, 320, and 330 of FIG. 3 above, in order to avoid duplication, This will not be repeated here.
  • the decoding apparatus based on the intra prediction provided by the embodiment of the present invention, by selecting the prediction unit into a square transformation unit or a rectangular transformation unit in the same prediction unit,
  • the disclosed systems, devices, and methods may be implemented in other ways.
  • the device embodiments described above are merely illustrative.
  • the segmentation of the cells is only a logical function segmentation.
  • there may be another segmentation manner for example, multiple cells or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed.
  • the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
  • the units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
  • each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit.
  • the above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
  • the integrated unit if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium.
  • the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium.
  • a number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention.
  • the foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .

Abstract

The embodiments of the present invention provide an intra-frame prediction-based decoding method and decoding device. The decoding method comprises: acquiring for a current prediction unit one or multiple split flags, a split shape flag, and a split direction flag from a compressed video image stream; splitting the current prediction unit ultimately into multiple square transform units or multiple rectangular transform units according to the acquired one or multiple split flags, split shape flag, and split direction flag; executing decoding process on each square transform unit of the ultimately split multiple square transform units or on each rectangular transform unit of the ultimately split multiple rectangular transform units.

Description

一 一  One by one
一种基于帧内预测的解码方法和解码装置  Decoding method and decoding device based on intra prediction
本申请要求于 2011 年 06 月 30 日提交中国专利局、 申请号为 201110182388.8、 发明名称为 "一种基于帧内预测的解码方法和解码装置" 的 中国专利申请的优先权, 其全部内容通过引用结合在本申请中。 技术领域  The present application claims priority to Chinese Patent Application No. 201110182388.8, entitled "Decoding Method and Decoding Device Based on Intra Prediction", filed on June 30, 2011, the entire disclosure of which is incorporated by reference. Combined in this application. Technical field
本发明实施例涉及图像处理处理领域, 更具体地, 涉及基于帧内预测的解 码方法和解码装置。 背景技术  Embodiments of the present invention relate to the field of image processing processing, and more particularly, to a decoding method and a decoding apparatus based on intra prediction. Background technique
为了节约网络传输的带宽,通常对于视频图像在发送端通过编码器进行压 缩编码后,通过网络传输给接收端,接收端通过解码器进行解压缩后恢复出视 频图像。 该发送端或者接收端可以为移动电话, 便携式电脑, 手持式电脑, 摄 像机, 视频监控设备等。  In order to save the bandwidth of the network transmission, the video image is usually compressed and encoded by the encoder at the transmitting end, and then transmitted to the receiving end through the network, and the receiving end decompresses the decoder to recover the video image. The transmitting end or receiving end can be a mobile phone, a portable computer, a handheld computer, a video camera, a video monitoring device, and the like.
在视频图像压缩码流的解码方案中,通常包含针对图像块信号的预测模块 与变换模块。预测模块根据已解码的信息对当前图像块信号进行预测得到预测 信号。 变换模块对接收得到的变换系数进行反变换操作得到重建差值信号。解 码端将预测信号与重建差值信号相加得到重建图像块信号。  In the decoding scheme of the video image compressed code stream, a prediction module and a transform module for the image block signal are usually included. The prediction module predicts the current image block signal based on the decoded information to obtain a prediction signal. The transform module performs an inverse transform operation on the received transform coefficients to obtain a reconstructed difference signal. The decoding end adds the prediction signal to the reconstructed difference signal to obtain a reconstructed image block signal.
预测分为帧间预测与帧内预测两种。帧间预测基于当前图像块的时间邻近 已编码信息来获取预测信号,帧内预测基于当前图像块的空间邻近已编码信息 来获取预测信号。  The prediction is divided into two types: inter prediction and intra prediction. The inter prediction obtains a prediction signal based on temporal proximity of the current image block to the encoded information, and the intra prediction obtains the prediction signal based on spatially adjacent encoded information of the current image block.
在帧内编解码技术方案中, 编码单元 是在编码端或解码端进行编码或 解码时操作的图像块。预测单元是编码单元中具有独立预测模式的图像块。预 测块是编码单元进行预测操作的图像块, 一个预测单元中可能包含多个预测 块, 这些预测块可使用共同的预测模式 (即所在预测单元的预测模式 )来进行 预测操作。 变换单元是编码单元中进行变换操作的图像块。预测块大小一般与 变换单元大小相同,这是因为相邻帧内预测块边界部分的预测差值信号的相关 性较弱, 所以变换单元不应跨越预测块边界。 同时考虑到预测块内部差值信号 的相关性较强, 而大块变换比小块变换能量集中性能更高, 所以通常选择与预 - - 测块相同大小的变换单元。 In the intraframe coding and decoding scheme, the coding unit is an image block that is operated when encoding or decoding is performed at the encoding end or the decoding end. The prediction unit is an image block having an independent prediction mode in the coding unit. The prediction block is an image block in which the coding unit performs a prediction operation, and one prediction unit may include a plurality of prediction blocks, and the prediction blocks may perform a prediction operation using a common prediction mode (ie, a prediction mode of a prediction unit in which the prediction unit is located). The transform unit is an image block in which a transform operation is performed in the coding unit. The prediction block size is generally the same as the transform unit size because the correlation of the prediction difference signals of the boundary portions of adjacent intra prediction blocks is weak, so the transform unit should not cross the prediction block boundary. At the same time, considering that the correlation of the difference signal inside the prediction block is strong, and the large block transformation has higher energy concentration performance than the small block transformation, it is usually selected and pre-selected. - - Measure the same size of the transform unit.
在一种基于方形块的帧内编解码技术方案中,可以从码流中获取当前预测 单元的四叉树分割标记,并按照标记将当前预测单元迭代地分割为大小不同的 方形变换单元。 四叉树分割标记为 1表示需要进一步分割, 标记为 0表示停止分 割。 现有技术使用 split— transform— flag作为分割标记, 指示当前块是否进行进 一步的分割。 split— transform— flag可作为独立的语法元素进行编码, 也可与其 它语法元素进行联合编码。解码端需依次对每一个变换单元进行下列操作: 使 用变换单元所对应的预测单元的帧内预测模式进行帧内预测操作获取预测信 号; 对接受到的变换系数进行反变换获取重建预测差值信号; 将预测信号与重 建预测差值信号相加, 得到重建图像信号。  In a square block-based intraframe codec solution, a quadtree partitioning flag of a current prediction unit may be obtained from a code stream, and the current prediction unit is iteratively divided into square transform units of different sizes according to the label. A quadtree partitioning flag of 1 indicates that further segmentation is required, and a flag of 0 indicates that segmentation is stopped. The prior art uses a split-transform-flag as a split flag to indicate whether the current block is further split. The split-transform-flag can be encoded as a separate syntax element or jointly encoded with other syntax elements. The decoding end needs to perform the following operations on each transform unit in sequence: performing an intra prediction operation on the intra prediction mode of the prediction unit corresponding to the transform unit to obtain a prediction signal; and performing inverse transform on the received transform coefficient to obtain a reconstructed prediction difference signal; The predicted signal is added to the reconstructed predicted difference signal to obtain a reconstructed image signal.
由于该技术方案仅采用方块分割方式得到方形变换单元,并没有考虑频繁 出现的条状纹理。 因此, 当存在条状纹理时, 该技术方案压缩效率较低。 发明内容  Since the technical solution only uses the square division method to obtain the square transformation unit, the strip texture which frequently appears is not considered. Therefore, this technique has a low compression efficiency when a strip texture is present. Summary of the invention
本发明实施例提供一种基于帧内预测的解码方法和解码装置,能够提高视 频图像压缩效率。  Embodiments of the present invention provide a decoding method and a decoding apparatus based on intra prediction, which can improve video image compression efficiency.
本发明实施例提供了一种基于帧内预测的解码方法, 其特征在于, 包括: 为当前预测单元从视频图像的压缩码流中获取一个或多个分割标记、一个分割 形状标记和一个分割方向标记,上述一个或多个分割标记中与当前块相对应的 分割标记用于指示是否将当前块分割为多个块,该分割形状标记指示将当前块 分割为多个方形块或者分割为多个矩形块,该分割方向标记指示将当前块沿水 平方向分割为多个矩形块或者沿竖直方向分割为多个矩形块,多个方形块中的 每个方形块的宽度与高度相等, 多个矩形块中的每个矩形块宽度与高度不相 等; 根据所获取的上述一个或多个分割标记、该分割形状标记和该分割方向标 记将当前预测单元最终分割为多个方形变换单元或多个矩形变换单元;对最终 分割得到的多个方形变换单元中的每个方形变换单元或最终分割得到的多个 矩形变换单元中的每个矩形变换单元执行解码流程。  An embodiment of the present invention provides a decoding method based on intra prediction, which includes: acquiring, for a current prediction unit, one or more segmentation marks, a segmentation shape mark, and a segmentation direction from a compressed code stream of a video image. a mark, a split mark corresponding to the current block among the one or more split marks is used to indicate whether to divide the current block into a plurality of blocks, the split shape mark indicates that the current block is divided into multiple square blocks or divided into multiple a rectangular block, the dividing direction mark indicating that the current block is divided into a plurality of rectangular blocks in the horizontal direction or divided into a plurality of rectangular blocks in the vertical direction, and each of the plurality of square blocks has the same width and height, and a plurality of Each rectangular block in the rectangular block is not equal in width and height; the current prediction unit is finally divided into a plurality of square transformation units or a plurality according to the acquired one or more segmentation marks, the segmentation shape flag, and the segmentation direction flag. a rectangular transform unit; each of the plurality of square transform units obtained by the final split or finally Each of the plurality of rectangular transform units obtained by the division performs a decoding process.
根据本发明的另一实施例, 提供了一种基于帧内预测的解码装置, 包括: 标记获取模块,用于为当前预测单元从视频图像的压缩码流中获取一个或多个 - - 分割标记、一个分割形状标记和一个分割方向标记, 上述一个或多个分割标记 中与当前块相对应的分割标记用于指示是否将当前块分割为多个块,该分割形 状标记指示将当前块分割为多个方形块或者分割为多个矩形块,该分割方向标 记指示将当前块沿水平方向分割为多个矩形块或者沿竖直方向分割为多个矩 形块, 多个方形块中的每个方形块的宽度与高度相等, 多个矩形块中的每个矩 形块宽度与高度不相等; 分割模块, 用于根据所获取的一个或多个分割标记、 该分割形状标记和该分割方向标记将当前预测单元最终分割为多个方形变换 单元或多个矩形变换单元; 解码模块, 用于对最终分割得到的多个方形变换单 元中的每个方形变换单元或最终分割得到的多个矩形变换单元中的每个矩形 变换单元执行解码流程。 According to another embodiment of the present invention, there is provided an apparatus for decoding based on intra prediction, comprising: a label acquisition module, configured to acquire one or more from a compressed code stream of a video image for a current prediction unit - a segmentation marker, a segmentation shape marker, and a segmentation direction marker, wherein the segmentation marker corresponding to the current block of the one or more segmentation markers is used to indicate whether to divide the current block into a plurality of blocks, the segmentation shape marker indication The current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks, and the division direction mark indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction or is divided into a plurality of rectangular blocks in the vertical direction, and the plurality of square blocks are Each square block has the same width and height, and each of the plurality of rectangular blocks has a width and height that are not equal; the segmentation module is configured to: according to the acquired one or more segmentation marks, the segmentation shape mark, and the segmentation The direction marker finally divides the current prediction unit into a plurality of square transformation units or a plurality of rectangular transformation units; and a decoding module, configured to use each of the plurality of square transformation units obtained by the final division or the final division Each rectangular transform unit in the rectangular transform unit performs a decoding process.
本发明实施例可以通过在同一预测单元内选择将预测单元分割为方形变 换单元或者是矩形变换单元,采用一种适应图像帧的条状纹理的可选变换单元 (即矩形变换单元) 来处理条状纹理, 能够提高视频图像压缩效率。 附图说明  The embodiment of the present invention may process the strip by using an optional transform unit (ie, a rectangular transform unit) that adapts the strip texture of the image frame by selecting the prediction unit into a square transform unit or a rectangular transform unit in the same prediction unit. Shaped texture, which can improve the compression efficiency of video images. DRAWINGS
为了更清楚地说明本发明实施例的技术方案,下面将对实施例或现有技术 描述中所需要使用的附图作简单地介绍,显而易见地, 下面描述中的附图仅仅 是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动 性的前提下, 还可以根据这些附图获得其他的附图。  In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only some of the present invention. For the embodiments, those skilled in the art can obtain other drawings according to the drawings without any creative labor.
图 1A至图 1C是示出根据本发明实施例的编码单元、 预测单元和变换单元 的示意图。  1A to 1C are diagrams showing a coding unit, a prediction unit, and a transformation unit according to an embodiment of the present invention.
图 2A和图 2B是示出根据本发明另一实施例的编码单元、 预测单元和变换 单元的示意图。  2A and 2B are diagrams showing a coding unit, a prediction unit, and a transformation unit according to another embodiment of the present invention.
图 3是示出根据本发明实施例的基于帧内预测的解码方法的示意性流程 图。  FIG. 3 is a schematic flow chart showing a decoding method based on intra prediction according to an embodiment of the present invention.
图 4是示出根据本发明另一实施例的基于帧内预测的解码方法的示意性流 程图。  4 is a schematic flow chart showing a decoding method based on intra prediction according to another embodiment of the present invention.
图 5示出根据本发明实施例的基于帧内预测的解码装置的示意性结构图。 - - 具体实施方式 FIG. 5 shows a schematic structural diagram of a decoding apparatus based on intra prediction 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 are clearly and completely described in the following 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 creative efforts are within the scope of the present invention.
视频编码器或者解码器广泛的应用于各种电子设备中, 例如, 移动电话, 便携式电脑, MP3/MP4, 手持式电脑, 摄像机, 视频监控设备。 视频编码器 或者解码器可以通过数字处理电路实现, 例如 DSP芯片实现, 也可以通过处理 器(例如 CPU )调用软件代码实现。  Video encoders or decoders are widely used in a variety of electronic devices, such as mobile phones, laptops, MP3/MP4, handheld computers, video cameras, video surveillance devices. The video encoder or decoder can be implemented by a digital processing circuit, such as a DSP chip, or by a software (such as a CPU) calling software code.
在新一代视频编解码技术中,提出了一种矩形块的帧内预测模式 -短距离 帧内预测模式(SDIP )。 与基于方形块的帧内预测方法不同, SDIP的预测单元 为 M x N的矩形块, 其中 M与 N不相等。 在解码每一个帧内编码单元时, 首先 获取 1比特的 SDIP— flag标记判断是否采用该预测模式。 若 SDIP— flag为 1 , 则再 获取 1比特的 SDIP— direction标记判断预测单元是沿水平方向或者沿竖直方向 进行条状分割。解码端需依次对每一个变换单元进行下列操作: 通过使用变换 单元所对应的预测单元的帧内预测模式进行帧内预测操作来获取预测信号;通 过对接收到的变换系数进行反变换来获取重建预测差值信号;将预测信号与重 建预测差值信号相加, 得到重建图像信号。  In the new generation video codec technology, an intra prediction mode of rectangular block - short range intra prediction mode (SDIP) is proposed. Unlike the square block-based intra prediction method, the prediction unit of SDIP is a rectangular block of M x N, where M and N are not equal. When decoding each intra-coded unit, a 1-bit SDIP_flag flag is first obtained to determine whether the prediction mode is employed. If the SDIP_flag is 1, then the 1-bit SDIP_direction flag is obtained to judge whether the prediction unit is strip-shaped in the horizontal direction or in the vertical direction. The decoding end needs to perform the following operations on each transform unit in sequence: performing an intra prediction operation by using an intra prediction mode of a prediction unit corresponding to the transform unit to obtain a prediction signal; and performing inverse transformation by inversely transforming the received transform coefficients Predicting the difference signal; adding the predicted signal to the reconstructed predicted difference signal to obtain a reconstructed image signal.
当前编码单元采用 SDIP预测编码模式时, 每个预测单元需要独立地选择 自己的预测模式, 因此编码端采用多种分割方式对预测单元进行分割, 这会大 大增加编码复杂度。  When the current coding unit adopts the SDIP predictive coding mode, each prediction unit needs to independently select its own prediction mode. Therefore, the coding end divides the prediction unit by multiple division methods, which greatly increases the coding complexity.
图 1A至 1C是根据本发明实施例的编码单元、 预测单元和变换单元的示意 图。  1A to 1C are schematic views of a coding unit, a prediction unit, and a transformation unit, according to an embodiment of the present invention.
如图 1A所示, 根据本发明的实施例的编码单元 100可以与预测单元 110的 大小相同, 即可以将当前编码单元作为一个预测单元。  As shown in FIG. 1A, the coding unit 100 according to an embodiment of the present invention may be the same size as the prediction unit 110, that is, the current coding unit may be used as one prediction unit.
如图 1B所示, 预测单元 110首先被分割为四个大小相等的矩形块, 如矩形 块 130。 位于图 1B顶部的矩形块被进一步分割为四个大小相等的矩形块, 如矩 形块 120。 由于矩形块 130和矩形块 120没有被断续分割, 所以它们是分割预测 单元 110最终得到的多个矩形变换单元中的两个矩形变换单元。 类似地, 可以 采用矩形分割方式对预测单元 110进行多个层级的分割得到多个矩形变换单 元。 As shown in FIG. 1B, the prediction unit 110 is first divided into four rectangular blocks of equal size, such as a rectangular block 130. The rectangular block located at the top of FIG. 1B is further divided into four equal-sized rectangular blocks, such as rectangular block 120. Since the rectangular block 130 and the rectangular block 120 are not intermittently divided, they are two rectangular transform units among the plurality of rectangular transform units finally obtained by the segmentation prediction unit 110. Similarly, can The prediction unit 110 is divided into a plurality of levels by a rectangular division method to obtain a plurality of rectangular transformation units.
如图 1C所示, 预测单元 110首先被分割为四个大小相等的方形块, 如方形 块 140。 位于图 1C左下方的方形块再经过两次分割得到方形块 150。 由于方形 块 140和方形块 150没有被继续分割, 所以它们是分割预测单元 110最终得到的 多个方形变换单元中的两个方形变换单元。类似地, 可以采用方形分割方式对 预测单元 110进行多个层级的分割得到多个方形变换单元。  As shown in Fig. 1C, the prediction unit 110 is first divided into four equal-sized square blocks, such as a square block 140. The square block located at the lower left of Fig. 1C is further divided into two to obtain a square block 150. Since the square block 140 and the square block 150 are not further divided, they are two square transform units among the plurality of square transform units finally obtained by the segmentation prediction unit 110. Similarly, the prediction unit 110 may be divided into a plurality of levels by a square division method to obtain a plurality of square transformation units.
需要说明的是,这里所描述的矩形块或矩形变换单元可以表示水平方向与 竖直方向大小不等的四边形的块或变换单元,这里所描述的方块或方形变换单 元可以表示水平方向与竖直方向大小相等的四边形的块或变换单元。  It should be noted that the rectangular block or the rectangular transform unit described herein may represent a quadrangular block or transform unit whose unequal horizontal and vertical directions are different, and the square or square transform unit described herein may represent horizontal direction and vertical direction. A quadrilateral block or transform unit of equal size.
图 2A和图 2B是示出根据本发明另一实施例的编码单元、 预测单元和变换 单元的示意图。  2A and 2B are diagrams showing a coding unit, a prediction unit, and a transformation unit according to another embodiment of the present invention.
如图 2A所示, 根据本发明另一实施例, 可以将当前编码单元 200分割为四 个等大小的预测单元 210,其中分割得到每个预测单元 210的宽度与高度分别为 当前编码单元 200的宽度的二分之一。 本领域技术人员知道如何将编码单元分 割为四个大小相等的预测单元的方法, 这里不再详述。  As shown in FIG. 2A, according to another embodiment of the present invention, the current coding unit 200 may be divided into four equal-sized prediction units 210, where the width and height of each prediction unit 210 are respectively obtained by the current coding unit 200. One-half the width. Those skilled in the art will know how to divide a coding unit into four equal-sized prediction units, which will not be described in detail herein.
如图 2B所示, 根据本发明另一实施例, 每一个预测单元 210可以进一步分 割为多个变换单元。例如,位于图 2B左上方的预测单元 210采用矩形分割方式, 经过两次分割后, 得到矩形变换单元 220; 位于图 2B右上方的预测单元 210, 采用方形分割方式, 经过两次分割后, 得到方形变换单元 230; 位于图 2B右下 方的预测单元 210, 采用矩形分割, 经过一次分割后, 得到变换单元 240; 位于 图 2B左下方的预测单元 210没有经过分割, 直接作为方形变换单元 250。 换句 话说, 每个预测单元 210最终分割为如图 2B所示的多个矩形或方形变换单元。  As shown in FIG. 2B, according to another embodiment of the present invention, each prediction unit 210 may be further divided into a plurality of transform units. For example, the prediction unit 210 located at the upper left of FIG. 2B adopts a rectangular division manner. After two divisions, the rectangular transformation unit 220 is obtained. The prediction unit 210 located at the upper right of FIG. 2B adopts a square division method, and after two divisions, The square transform unit 230 is located at the lower right of FIG. 2B and is divided by a rectangle. After one division, the transform unit 240 is obtained. The prediction unit 210 located at the lower left of FIG. 2B is not divided and directly serves as the square transform unit 250. In other words, each prediction unit 210 is finally divided into a plurality of rectangular or square transformation units as shown in Fig. 2B.
由于根据本发明的实施例减少了预测单元划分方式(即, 不使用矩形的预 测单元划分方式), 所以可以降低编码端计算复杂度。  Since the prediction unit division manner (i.e., the prediction unit division manner without using a rectangle) is reduced according to an embodiment of the present invention, the coding side computational complexity can be reduced.
图 3是示出根据本发明实施例的基于帧内预测的解码方法的示意性流程 图。  FIG. 3 is a schematic flow chart showing a decoding method based on intra prediction according to an embodiment of the present invention.
如图 3所示,在 310中, 为当前预测单元从视频图像的压缩码流中获取一个 或多个分割标记、一个分割形状标记和一个分割方向标记, 上述一个或多个分 - - 割标记中与当前块相对应的分割标记用于指示是否将当前块分割为多个块,该 分割形状标记指示将当前块分割为多个方形块或者分割为多个矩形块,该分割 方向标记指示将当前块沿水平方向分割为多个矩形块或者沿竖直方向分割为 多个矩形块, 多个方形块中的每个方形块的宽度与高度相等, 多个矩形块中的 每个矩形块宽度与高度不相等。 在 320中, 根据所获取的上述一个或多个分割 标记、该分割形状标记和该分割方向标记将当前预测单元最终分割为多个方形 变换单元或多个矩形变换单元。 在 330中, 对最终分割得到的多个方形变换单 元中的每个方形变换单元或最终分割得到的多个矩形变换单元中的每个矩形 变换单元执行解码流程。 As shown in FIG. 3, in 310, one or more split marks, a split shape mark, and a split direction mark are acquired from the compressed code stream of the video image for the current prediction unit, and the one or more points are divided. - a split flag corresponding to the current block in the cut mark is used to indicate whether the current block is divided into a plurality of blocks, the split shape mark indicates that the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks, the split The direction mark indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction or is divided into a plurality of rectangular blocks in the vertical direction, and each of the plurality of square blocks has the same width and height, and each of the plurality of rectangular blocks The width of the rectangular block is not equal to the height. In 320, the current prediction unit is finally divided into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation markers, the segmentation shape marker, and the segmentation direction marker. In 330, a decoding process is performed on each of the plurality of square transform units obtained by the final split or each of the plurality of rectangular transform units obtained by the final split.
在基于帧内预测的解码过程中, 为了得到重建差值信号,要将编码单元分 割为变换单元。 根据本发明的实施例, 例如, 可以将编码单元分割为多个预测 单元(例如, 方形的预测单元)或者将编码单元作为一个预测单元。 然后, 可 以从码流中为每个预测单元获取一个或多个分割标记 ,其中每个分割标记用于 表示是否对与该分割标记相对应的某个图像块进行分割。在确定对该预测单元 进行分割的情况下 ,则可以从码流中获取一个分割形状标记和一个分割方向标 记,并根据分割形状标记将该预测单元分割为矩形变换单元或者是方形变换单 元。在确定将预测单元分割为矩形变换单元的情况下,根据分割方向标记沿水 平方向或者沿竖直方向分割该预测单元。 在对该预测单元经过一次或多次分 割, 得到最终的变换单元后, 再对每个变换单元执行解码流程。 根据本发明的 实施例并不限于此,也可以对不再分割的变换单元进行即时解码操作。 由于同 一预测单元使用了一个分割形状标记和一个分割方向标记, 因此,在同一预测 单元内, 变换单元的分割方向和分割形状是一致的。  In the decoding process based on intra prediction, in order to obtain a reconstructed difference signal, the coding unit is divided into transform units. According to an embodiment of the present invention, for example, a coding unit may be divided into a plurality of prediction units (e.g., square prediction units) or a coding unit may be used as one prediction unit. Then, one or more segmentation markers can be acquired for each prediction unit from the code stream, wherein each segmentation marker is used to indicate whether to segment a certain image block corresponding to the segmentation marker. In the case where it is determined that the prediction unit is divided, a split shape mark and a split direction mark may be acquired from the code stream, and the prediction unit may be divided into a rectangular transform unit or a square transform unit according to the split shape mark. In the case where it is determined that the prediction unit is divided into rectangular transformation units, the prediction unit is divided in the horizontal direction or in the vertical direction according to the division direction mark. After the prediction unit is subjected to one or more divisions to obtain the final transformation unit, the decoding process is performed for each transformation unit. The embodiment according to the present invention is not limited thereto, and an instant decoding operation may be performed on a transform unit that is no longer divided. Since the same prediction unit uses a split shape mark and a split direction mark, the split direction and the split shape of the transform unit are identical in the same prediction unit.
根据本发明的实施例提供的基于帧内预测的解码方法,通过在同一预测单 元内选择将预测单元分割为方形变换单元或者是矩形变换单元,从而采用一种 适应图像帧的条状纹理的可选变换单元(即矩形变换单元)来处理条状纹理, 能够提高视频图像压缩效率。由于根据本发明的实施例减少了预测单元划分方 式(即, 不使用矩形的预测单元划分方式), 所以可以进一步降低编码端计算 复杂度。  According to the decoding method based on intra prediction provided by the embodiment of the present invention, by selecting the prediction unit into a square transformation unit or a rectangular transformation unit in the same prediction unit, a strip texture adapted to the image frame may be adopted. Selecting a transform unit (ie, a rectangular transform unit) to process the strip texture can improve video image compression efficiency. Since the prediction unit division mode (i.e., the prediction unit division manner without using a rectangle) is reduced according to an embodiment of the present invention, the encoding side computational complexity can be further reduced.
下面将结合图 1A至 1C以及图 2A和图 2B以及具体的实现方法来描述图 3的 - - 解码方法。 The following description of FIG. 3 will be described with reference to FIGS. 1A to 1C and FIGS. 2A and 2B and a specific implementation method. - - Decoding method.
在 310中, 为当前预测单元从视频图像的压缩码流中获取一个或多个分割 标记、一个分割形状标记和一个分割方向标记, 上述一个或多个分割标记中与 当前块相对应的分割标记用于指示是否将当前块分割为多个块,该分割形状标 记指示将当前块分割为多个方形块或者分割为多个矩形块,该分割方向标记指 示将当前块沿水平方向分割为多个矩形块或者沿竖直方向分割为多个矩形块 , 多个方形块中的每个方形块的宽度与高度相等,多个矩形块中的每个矩形块宽 度与高度不相等。  At 310, one or more segmentation marks, a segmentation shape marker, and a segmentation direction marker are acquired from the compressed code stream of the video image for the current prediction unit, and the segmentation marker corresponding to the current block among the one or more segmentation markers For indicating whether to divide the current block into a plurality of blocks, the split shape flag indicates that the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks, and the split direction mark indicates that the current block is divided into multiples in the horizontal direction. The rectangular block is divided into a plurality of rectangular blocks in the vertical direction, and each of the plurality of square blocks has the same width and height, and each of the plurality of rectangular blocks has a width and a height that are not equal.
根据本发明的实施例,当前块可以是与当前预测单元大小相同的图像块根 据本发明的另一实施例, 分割得到的所述多个块之一作为下一步分割的当前 块。 换句话说, 对预测单元的分割可以是一个分层级的迭代过程, 直到当前块 所对应的分割标记指示不再对当前块分割, 这时获得的图像块为变换单元, 如 图 1 A至图 1 C以及图 2A和图 2C所示。  According to an embodiment of the present invention, the current block may be an image block of the same size as the current prediction unit. According to another embodiment of the present invention, one of the plurality of blocks obtained by the division is used as the current block of the next division. In other words, the segmentation of the prediction unit may be a hierarchical iterative process until the segmentation flag corresponding to the current block indicates that the current block is no longer segmented, and the image block obtained at this time is a transformation unit, as shown in FIG. Figure 1 C and Figures 2A and 2C.
根据本发明的实施例,沿水平方向分割得到的多个矩形块中的每个矩形块 (例如, 图 2B中的矩形变换单元 220 ) 的宽度大于高度, 并且沿竖直方向分割 得到的多个矩形块中的每个矩形块(例如, 图 2B中的矩形变换单元 240 ) 的宽 度小于高度。  According to an embodiment of the present invention, each of the plurality of rectangular blocks divided in the horizontal direction (for example, the rectangular transformation unit 220 in FIG. 2B) has a width greater than a height, and is divided into a plurality of segments obtained in the vertical direction. The width of each rectangular block in the rectangular block (for example, the rectangular transformation unit 240 in Fig. 2B) is smaller than the height.
根据本发明的实施例 ,在上述一个或多个分割标记中的第一个分割标记指 示将当前块分割为多个块的情况下,在获取第一个分割标记之后,从压缩码流 中获取一个分割形状标记;并且在一个分割形状标记指示将当前块分割为多个 矩形块的情况下,在获取一个分割形状标记之后,从压缩码流中获取一个分割 方向标记。换句话说, 可以为处于一个预测单元的不同分割层级的图像块获取 对应的分割标记 ,而一个预测单元可以获取一个分割形状标记和一个分割方向 标记。 另外,在获取第一分割形状标记后再依次获取分割形状标记和分割方向 标记,可以提高获取这些标记的效率。 当然,根据本发明的实施例并不限于此, 可以按其它顺序为同一预测单元获取这些标记。  According to an embodiment of the present invention, in a case where the first one of the one or more segmentation marks indicates that the current block is divided into a plurality of blocks, after acquiring the first segmentation flag, the compressed code stream is acquired. A split shape mark; and in the case where one split shape mark indicates that the current block is divided into a plurality of rectangular blocks, after the split shape mark is acquired, one split direction mark is acquired from the compressed code stream. In other words, a corresponding segmentation flag can be acquired for an image block at a different segmentation level of one prediction unit, and a prediction unit can acquire a segmentation shape marker and a segmentation direction marker. In addition, after acquiring the first divided shape mark and then acquiring the split shape mark and the split direction mark in order, the efficiency of acquiring the mark can be improved. Of course, embodiments in accordance with the present invention are not limited thereto, and these indicia may be acquired for the same prediction unit in other orders.
根据本发明的实施例, 例如, 在具体实现时, 可以在压缩码流的结构中加 入语法元素: non— square— transform— flag与 non— square— transform— direction。前者 表示当前预测单元是否分割为多个矩形变换单元,后者表示采用水平还是竖直 - - 条状分割方式来获取多个矩形变换单元。两个语法元素的数值的语义可以按下 面方法解释: non— square— transform— flag为 1表示将当前预测单元分割为若干个 矩形变换单元, non— square— transform— flag为 0表示将当前预测单元分割为若干 个方形变换单元。 non— square— transform— direction为 1表示按水平条 分割方式 确定矩形变换单元, 所谓按水平条状分割方式确定的变换单元,是指变换单元 的宽度大于高度。 non— square— transform— direction为 0表示按竖直条状分割方式 确定矩形变换单元。所谓按竖直条状分割方式确定的矩形变换单元是指变换单 元的宽度小于高度。 根据本发明的实施例以亮度的帧内预测为例进行描述。 According to an embodiment of the present invention, for example, in a specific implementation, syntax elements may be added to the structure of the compressed code stream: non-square-transform-flag and non-square-transform-direction. The former indicates whether the current prediction unit is divided into multiple rectangular transformation units, and the latter indicates whether horizontal or vertical is used. - - Strip division to obtain multiple rectangular transformation units. The semantics of the values of the two syntax elements can be explained as follows: non-square-transform-flag is 1 to divide the current prediction unit into several rectangular transformation units, and non-square_transform_flag is 0 to indicate the current prediction unit. Divided into several square transform units. Non-square-transform-direction is 1 to indicate that the rectangular transform unit is determined by the horizontal strip division method. The so-called transform unit determined by the horizontal strip division method means that the transform unit has a width greater than a height. Non-square-transform-direction is 0 to indicate that the rectangular transform unit is determined in a vertical stripe manner. The rectangular transformation unit determined by the vertical strip division means that the width of the transformation unit is smaller than the height. The intra prediction of luminance is described as an example in accordance with an embodiment of the present invention.
解 码 端 可 执 行 下 面 操 作 获 取 non— square— transform— flag 与 non— square— transform— direction : 判 断 是 否 从 码 流 中 获 取 non— square— transform— flag,如果是, 则按照规定的编码方式执行对应的解析与 解 码 操 作 从 码 流 中 获 取 non— square— transform— flag , 否 则 将 non— square— transform— flag设置为默认值 0; 如果 non— square— transform— flag为 1 , 贝 'J按照规定的编码方式执行对应的解析与解码操作从码流中获取 non— square— transform— direction。  The decoding end may perform the following operations to obtain a non-square_transform_flag and a non-square_transform_direction: determining whether a non-square_transform-flag is obtained from the code stream, and if so, performing the corresponding coding according to a specified coding manner. The parsing and decoding operations obtain non-square_transform_flag from the code stream, otherwise the non-square_transform_flag is set to the default value of 0; if non-square-transform-flag is 1, the shell 'J is encoded according to the specified The mode performs a corresponding parsing and decoding operation to obtain a non-square-transform-direction from the code stream.
可以基于下列条件中的至少一项来判断是否从码流中获取 non— square— transform— flag: 1 )所获取 split— transform— flag为当前预测单元中第 一个 split— transform— flag , 2 ) 所获取 split— transform— flag为 1 , 即指示对当前块 分割为多个变换单元, 3 ) 当前块大小满足给定限制条件。 当然, 根据本发明 的实施例并不限于此。 在本发明的实施例中, 假设仅考虑上述第 1 )项与第 2 ) 项作为判断条件来进行描述。  The non-square_transform_flag may be obtained from the code stream based on at least one of the following conditions: 1) The split-transform-flag obtained is the first split-transform-flag in the current prediction unit, 2) The obtained split_transform_flag is 1, which means that the current block is divided into multiple transform units, and 3) the current block size satisfies the given constraint condition. Of course, embodiments according to the invention are not limited thereto. In the embodiment of the present invention, it is assumed that only the above items 1) and 2) are considered as the judgment conditions.
与上述解码端操作对应的伪代码语法表格如表 1所示: The pseudo code syntax table corresponding to the above decoding operation is shown in Table 1:
- - - -
Figure imgf000011_0001
其 中 标记 split— transform— flag表示 当 前预测单元 中 的第 一个 split_transform_flag。 标记 split_transform_flag取值可按照本领域中的常规方法 确定。表中 u(l)表示作为 1比特无符号整型变量进行编码,即直接写入码流; ae(v) 表示基于上下文模型的二进制熵编码方式。
Figure imgf000011_0001
The flag split-transform_flag indicates the first split_transform_flag in the current prediction unit. The value of the flag split_transform_flag can be determined in accordance with conventional methods in the art. In the table, u(l) indicates that the code is encoded as a 1-bit unsigned integer variable, that is, directly written to the code stream; ae(v) represents a binary entropy coding mode based on the context model.
需注意的是, 根据本发明实施例的语法元素 non— square— transform— flag与 non— square— transform— direction的语义也可以有用其它解释方法。 例如 , non— square— transform— flag为 1表示将当前预测单元分割为若干个方形变换单 元, non— square— transform— flag为 0表示将当前预测单元分割为若干个矩形变换 单元。 non— square— transform— direction为 1表示按竖直条状分割方式确定矩形变 换单元, non— square— transform— direction为 0表示按水平条状分割方式确定矩形 变换单元。 语义解释方法不同时, 解码流程需进行相应的改变。 本领域技术人 员根据本发明实施例知道如何进行这样的改变, 在此不再贅述。  It should be noted that the semantics of the syntax elements non-square-transform-flag and non-square-transform-direction according to embodiments of the present invention may also be used in other interpretation methods. For example, a non-square_transform_flag of 1 indicates that the current prediction unit is divided into a plurality of square transformation units, and a non-square_transform_flag of 0 indicates that the current prediction unit is divided into a plurality of rectangular transformation units. The non-square_transform_direction is 1 to determine the rectangular transform unit in a vertical strip division manner, and the non-square_transform_direction 0 indicates that the rectangular transform unit is determined in a horizontal strip division manner. When the semantic interpretation method is different, the decoding process needs to be changed accordingly. A person skilled in the art knows how to make such a change according to an embodiment of the present invention, and details are not described herein again.
在 320中, 根据所获取的上述一个或多个分割标记、 该分割形状标记和该 分割方向标记将当前预测单元最终分割为多个方形变换单元或多个矩形变换 单元。  In 320, the current prediction unit is finally divided into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation marks, the segmentation shape marker, and the segmentation direction marker.
根据本发明的实施例,在上述一个或多个分割标记中与当前块相对应的分 割标记指示将当前块分割为多个块的情况下,按照分割方向标记对应的分割方 向将当前块分割成多个与分割形状标记对应的方形块或矩形块。  According to an embodiment of the present invention, in a case where the split flag corresponding to the current block in the one or more split marks indicates that the current block is divided into a plurality of blocks, the current block is divided into the split direction corresponding to the split direction mark into A plurality of square blocks or rectangular blocks corresponding to the divided shape marks.
具体来说,在该分割形状标记指示将当前块分割为多个方形块情况下,将 - - 当前块分割为四个大小相等的方形块,其中四个大小相等的方形块中的每个方 形块的宽度或高度分别为当前块的宽度或高度的二分之一。 Specifically, in the case where the split shape flag indicates that the current block is divided into a plurality of square blocks, - - The current block is divided into four equal-sized square blocks, and each of the four equal-sized square blocks has a width or height that is one-half of the width or height of the current block, respectively.
在该分割形状标记指示将当前块分割为多个矩形块的情况下,根据该分割 方向标记将当前块进一步分割为四个大小相等的矩形块。在该分割方向标记指 示将当前块沿水平方向分割为多个矩形块的情况下 ,将当前块沿水平方向分割 为四个大小相等的矩形块,其中四个大小相等的矩形块中的每个矩形块的宽度 与当前块的宽度相同,并且四个大小相等的矩形块中的每个矩形块的高度为当 前块的高度的四分之一。  In the case where the split shape flag indicates that the current block is divided into a plurality of rectangular blocks, the current block is further divided into four equal-sized rectangular blocks according to the split direction mark. In the case where the split direction flag indicates that the current block is divided into a plurality of rectangular blocks in the horizontal direction, the current block is divided into four equal-sized rectangular blocks in the horizontal direction, wherein each of the four equal-sized rectangular blocks The width of the rectangular block is the same as the width of the current block, and the height of each of the four equally sized rectangular blocks is one quarter of the height of the current block.
进一步 ,在该分割方向标记指示将当前块沿竖直方向分割为多个矩形块的 情况下,将当前块沿竖直方向分割为四个大小相等的矩形块, 其中四个大小相 等的矩形块中的每个矩形块的高度与当前块的高度相同,并且四个大小相等的 矩形块中的每个矩形块的宽度为当前块的宽度的四分之一。  Further, in the case where the split direction flag indicates that the current block is divided into a plurality of rectangular blocks in the vertical direction, the current block is divided into four equal-sized rectangular blocks in the vertical direction, wherein four equal-sized rectangular blocks are divided. The height of each of the rectangular blocks is the same as the height of the current block, and the width of each of the four equally sized rectangular blocks is one quarter of the width of the current block.
根据本发明的实施例, 在具体实现时, 例如, 在执行该解码流程之前, 当 前预测单元中所有变换单元分割标记 split— transform— flag、 矩形变换单元标记 non— square— transform— flag 以 及 矩 形 变 换 单 元 分 割 方 向 标 己 non— square— transform— direction都已经从码流中获取 ,并可用于该解码流程。在 对当前预测单元进行分割之前, 当前块即是当前预测单元。对当前预测单元进 行分割之后, 当前块可以是分割得到任一图像块。  According to an embodiment of the present invention, in a specific implementation, for example, before performing the decoding process, all transform unit splitting flags in the current prediction unit are split-transform-flag, rectangular transform unit-labeled non-square-transform-flag, and rectangular transform The unit split direction label non-square-transform-direction has been obtained from the code stream and can be used in the decoding process. The current block is the current prediction unit before the current prediction unit is split. After segmenting the current prediction unit, the current block can be split to get any image block.
根据本发明的实施例, 可以首先获取各输入参数: 亮度位置 (xB,yB) , 该 位置表示当前块左上角像素相对于当前图像左上角像素的位移;当前块宽度的 对数表示 log2TrafoWidth与高度的对数表示 log2TrafoHeight;当前块相对于当前 编码单元的层级深度 trafoDepth; 当前块所使用的帧内预测模式 intraPredMode; 当前块的色彩分量索引 cldx, cldx为 0表示亮度分量, cldx为 1或 2表示色度分量。 在 non— square— transform— flag为 0时, log2Trafo Width与 log2TrafoHeight相等 , 此 时将这两个变量记作 log2TrafoSize。 这里, log2TrafoWidth表示以 2为底对宽度 求对数, 例如, 4 4块的1(^21¾&\\¾1«1的值为2, 而 8 X 8块的 log2TrafoWidth 为 3。 log2TrafoSize表示以 2为底对方形块的边长求对数。  According to an embodiment of the present invention, each input parameter may be first acquired: a brightness position (xB, yB) indicating the displacement of the pixel in the upper left corner of the current block relative to the pixel in the upper left corner of the current image; the logarithm of the current block width indicates log2TrafoWidth and height The logarithm represents log2TrafoHeight; the depth of the current block relative to the current coding unit trafoDepth; the intra prediction mode intraPredMode used by the current block; the color component index cldx of the current block, cldx is 0 for the luma component, cldx is 1 or 2 Chromatic component. When non-square_transform_flag is 0, log2Trafo Width is equal to log2TrafoHeight, and these two variables are recorded as log2TrafoSize. Here, log2TrafoWidth represents the logarithm of the width from the base 2, for example, 4 of 4 blocks (the value of ^21⁄4&\\3⁄41«1 is 2, and the log2TrafoWidth of 8 X 8 blocks is 3. log2TrafoSize means base 2 Find the logarithm of the side length of the square block.
根据本发明的实施例, 在当前块 split— transform— flag为 1时, 即在需要对当 前块进行分割时, 进行如下处理。 - - 首先,设置分割得到的四个块的位置信息。分割得到四个块的左上角亮度 位 置 分另' J 记做(xB,yB) 、 (xBl,yBl) 、 (xB2,yB2)和(xB3,yB3) 。 在 non— square— transform— flag为 1且 non— square— transform— direction为 1时, χΒ1, xB2, xB3都设置为 xB, 将 yBl设置为 yB+((l«log2TrafoHeight)»2), 将 yB2设 置 为 yBl+((l«log2TrafoHeight)»2), 将 yB3 设 置 为 yB2+(( 1 «log2TrafoHeight)»2) ; 在 non— square— transform— flag 为 1 且 non— square— transform— direction为 0时, yB 1 , yB2, yB3都设置为 yB; ^夺 xBl设 置 为 xB+((l«log2TrafoWidth)»2) , 将 χΒ2 设 置 为 xB 1 +(( 1 «log2TrafoWidth)»2) , χΒ3¾置为 χΒ2+(( 1 «log2TrafoWidth)»2); 在 non— square— transform— flag为 0时, xB2设置为 xB , ^夺 xB 1与 xB3设置为 xB+(( 1 «log2TrafoSize)» 1 ) , 将 yBl设置为 yB , 将 yB2与 yB3设置为 yB+((l«log2TrafoSize)»l)。 这里, l«x指把二进制数 1向左移 x位, 例如, 1<<2表示二进制 100, x>>2表示将二进制数 X向右移 2位, 例如, 100>>2表示二 进制数 1。 According to the embodiment of the present invention, when the current block split_transform_flag is 1, that is, when the current block needs to be split, the following processing is performed. - - First, set the position information of the four blocks obtained by the division. Dividing the four positions of the upper left corner of the luminance position is divided into 'J' (xB, yB), (xBl, yBl), (xB2, yB2) and (xB3, yB3). When non-square_transform_flag is 1 and non-square-transform-direction is 1, χΒ1, xB2, xB3 are both set to xB, yBl is set to yB+((l«log2TrafoHeight)»2), yB2 is set For yBl+((l«log2TrafoHeight)»2), set yB3 to yB2+(( 1 «log2TrafoHeight)»2); when non-square—transform—flag is 1 and non-square—transform—direction is 0, yB 1 , yB2, yB3 are set to yB; ^ xBl is set to xB+((l«log2TrafoWidth)»2), χΒ2 is set to xB 1 +(( 1 «log2TrafoWidth)»2) , χΒ33⁄4 is set to χΒ2+(( 1 «log2TrafoWidth)»2); When non-square-transform-flag is 0, xB2 is set to xB, ^xx1 and xB3 are set to xB+(( 1 «log2TrafoSize)» 1 ), yBl is set to yB, yB2 and yB3 are set to yB+((l«log2TrafoSize)»l). Here, l«x refers to shifting the binary number 1 to the left by x bits. For example, 1<<2 means binary 100, and x>>2 means shifting the binary number X to the right by 2 bits. For example, 100>>2 means binary number. 1.
其次, 对分割得到的四个块进行处理。 首先处理四个块中的第一个块, 需 要设置如下输入参数: 亮度位置(xB ,yB)为(xB ,yB)以及块宽度对数表示 log2Trafo Width和高度对数表示 log2TrafoHeight。 具体设置方法为: 在 non— square— transform— flag为 1且 non— square— transform— direction为 1时 , 将 log2TrafoHeight设置为 log2TrafoHeight-2 , log2Trafo Width保持不变; 在 non— square— transform— flag为 1且 non— square— transform— direction为 0时 , 将 log2Trafo Width设置为 log2TrafoWidth-2 , log2TrafoHeight保持不变; 在 non— square— transform— flag为 0时, 将 log2Trafo Width与 log2TrafoHeight设置为 log2TrafoWidth-l ; 设置当前块的层级深度 trafoDepth为 trafoDepth+1 ; 设置帧内 预测模式 intraPredMode为 intraPredMode (即保持帧内预测模式不变); 设置色 彩分量索引 cldx为 cldx (即保持色彩分量索引不变)。  Next, the four blocks obtained by the division are processed. To process the first of the four blocks first, you need to set the following input parameters: Brightness position (xB, yB) is (xB, yB) and block width logarithm indicates log2Trafo Width and height logarithm represent log2TrafoHeight. The specific setting method is as follows: when non-square_transform_flag is 1 and non-square_transform_direction is 1, log2TrafoHeight is set to log2TrafoHeight-2, log2Trafo Width remains unchanged; in non-square-transform-flag is 1 and non-square-transform-direction is 0, log2Trafo Width is set to log2TrafoWidth-2, log2TrafoHeight remains unchanged; when non-square_transform_flag is 0, log2Trafo Width and log2TrafoHeight are set to log2TrafoWidth-l; Set the hierarchical depth trafoDepth of the current block to trafoDepth+1; set the intra prediction mode intraPredMode to intraPredMode (ie, keep the intra prediction mode unchanged); set the color component index cldx to cldx (ie, keep the color component index unchanged).
处理四个块中第二个块与上述处理四个块中的第一个块的方法相似,不同 之处在于设置亮度位置 (xB,yB)为 (xBl,yBl)。 处理四个块中第三个块与上述处 理四个块中的第一个块的方法相似, 不同之处在于设置亮度位置 (xB,yB)为 (xB2,yB2)。 处理四个块中第四个块。 与上述处理四个块中的第一个块的方法 - - 相似, 不同之处在于设置亮度位置 (xB,yB)为 (xB3,yB3)。 Processing the second of the four blocks is similar to the method of processing the first of the four blocks described above, except that the luminance position (xB, yB) is set to (xB1, yB1). Processing the third of the four blocks is similar to the method of processing the first of the four blocks described above, except that the luminance position (xB, yB) is set to (xB2, yB2). Process the fourth of the four blocks. Method of processing the first of the four blocks with the above - - Similar, except that the brightness position (xB, yB) is set to (xB3, yB3).
使用上述输入参数,可以迭代执行上述设置分割得到四个块的位置信息的 步骤以及处理四个块的步骤。  Using the above input parameters, the steps of setting the position information of the four blocks and the steps of processing the four blocks can be iteratively performed.
在 330中, 对最终分割得到的多个方形变换单元中的每个方形变换单元或 最终分割得到的多个矩形变换单元中的每个矩形变换单元执行解码流程。  In 330, a decoding process is performed on each of the plurality of square transform units obtained by the final split or each of the plurality of rectangular transform units obtained by the final split.
根据本发明的实施例,在上述一个或多个分割标记中与当前块相对应的分 割标记指示不对当前块做进一步分割的情况下,对最终分割得到的每个方形变 换单元或者矩形变换单元。  According to an embodiment of the present invention, the split flag corresponding to the current block among the one or more split marks indicates each square transform unit or rectangular transform unit obtained in the final split without further splitting the current block.
根据本发明的实施例, 根据每个方形变换单元或者矩形变换单元的位置、 宽度和高度以及由所在的预测单元确定的帧内预测模式,获取每个方形变换单 元或者矩形变换单元的预测信号 ,根据每个方形变换单元或者矩形变换单元的 位置、每个方形变换单元或者矩形变换单元的宽度和高度以及所在的分割层级 深度, 获取每个方形变换单元或者矩形变换单元的重建预测差值信号, 并且根 据预测信号和重建预测差值信号,获得每个方形变换单元或者矩形变换单元的 重建信号。  According to an embodiment of the present invention, the prediction signals of each square transform unit or rectangular transform unit are acquired according to the position, width and height of each square transform unit or rectangular transform unit and the intra prediction mode determined by the prediction unit in which it is located, Obtaining a reconstructed prediction difference signal of each square transform unit or a rectangular transform unit according to the position of each square transform unit or rectangular transform unit, the width and height of each square transform unit or rectangular transform unit, and the depth of the partition hierarchy. And, based on the prediction signal and the reconstructed prediction difference signal, a reconstruction signal of each square transformation unit or rectangular transformation unit is obtained.
根据本发明的实施例, 例如, 可以在与当前块对应的 split— transform— flag 为 0时, 确定当前块为分割得到的最终变换单元, 并且进行如下解码过程。 这 里, 仍然以亮度为例进行描述。  According to an embodiment of the present invention, for example, when the split_transform_flag corresponding to the current block is 0, the current block is determined to be the final transform unit obtained by the split, and the following decoding process is performed. Here, the brightness is still taken as an example for description.
首先设置当前块的大小。这时, 当前块可以是方形变换单元或矩形变换单 元。可以使用(nW)x(nH)表示当前块的大小, 其中 nW表示当前块沿水平方向亮 度分量采样点数, nH表示当前块沿竖直方向亮度分量采样点数。 在当前块为 方形变换单元时, nW与 nH相等。 在当前块为矩形变换单元时, nW与 nH不等。 nW与 nH可以通过下面的方法来设置: 在 non— square— transform— flag为 0时, 设 置 nW与 nH为(l«log2TrafoSize); 否则, 设置 nW为 l«log2TrafoWidth, 并且 设置 nH为 l«log2TrafoHeight。  First set the size of the current block. At this time, the current block can be a square transform unit or a rectangular transform unit. The size of the current block can be expressed using (nW)x(nH), where nW represents the number of samples of the luminance component of the current block in the horizontal direction, and nH represents the number of samples of the luminance component of the current block along the vertical direction. When the current block is a square transform unit, nW is equal to nH. When the current block is a rectangular transform unit, nW and nH are not equal. nW and nH can be set by the following method: When non-square_transform_flag is 0, set nW and nH to (l«log2TrafoSize); otherwise, set nW to l«log2TrafoWidth, and set nH to l«log2TrafoHeight .
其次, 获取当前块的预测信号。 将当前块的亮度位置 (xB,yB)、 当前块的 帧内预测模式 intraPredMode、 当前块的宽度 nW与高度 nH、 当前块的色彩分量 cldx做为输入, 调用帧内预测模块获取 (nW)x(nH)大小的预测信号矩阵。  Second, get the prediction signal of the current block. The brightness position (xB, yB) of the current block, the intra prediction mode intraPredMode of the current block, the width nW and the height nH of the current block, and the color component cldx of the current block are taken as inputs, and the intra prediction module is called to acquire (nW)x. (nH) size prediction signal matrix.
然后, 获取当前块重建预测差值信号。 将当前块亮度位置 (xB,yB)、 当前 - - 块层级深度 trafoDepth、 当前块色彩分量 cldx、 当前块宽度 nW与高度 nH作为输 入, 调用缩放与变换模块获取 (nW)x(nH)大小的重建差值信号矩阵。 Then, the current block reconstruction prediction difference signal is obtained. Current block brightness position (xB, yB), current - The block level depth trafoDepth, the current block color component cldx, the current block width nW and the height nH are taken as inputs, and the scaling and transform module is called to acquire a (nW)x(nH) size reconstructed difference signal matrix.
接下来, 获取当前块重建信号。 将 (nW)x(nH)大小的预测信号矩阵与 (nW)x(nH)大小的重建差值信号矩阵相加, 获得 (nW)x(nH)大小的重建信号矩 阵。  Next, get the current block reconstruction signal. A (nW)x(nH)-sized prediction signal matrix is added to the (nW)x(nH)-sized reconstructed difference signal matrix to obtain a reconstructed signal matrix of (nW)x(nH) size.
最后, 将当前块重建信号放入重建图像中对应位置。 将 (nW)x(nH)大小的 重建信号矩阵放入重建图像中亮度位置 (xB,yB)所标记的对应位置。  Finally, the current block reconstruction signal is placed in the corresponding position in the reconstructed image. The reconstructed signal matrix of (nW)x(nH) size is placed in the corresponding position marked by the luminance position (xB, yB) in the reconstructed image.
需注意的是, 可以有多种方法达到与上述解码过程相同的执行结果, 这里 不一一列举。 另外, 本发明实施例可用于处理图像亮度分量, 也可用于处理图 像色度分量, 还可同时用于处理图像亮度分量与色度分量。  It should be noted that there are a number of ways to achieve the same execution results as the above decoding process, which are not enumerated here. In addition, the embodiments of the present invention can be used to process image luminance components, and can also be used to process image chrominance components, and can also be used to process image luminance components and chrominance components simultaneously.
可见,根据本发明的实施例可以对基于帧内预测的解码方法的语法进行改 动, 即对码流结构进行了修改: 添力口了语法元素 non— square— transform— flag与 non— square— transform— direction , 并 JU'爹改了相应的解码端解析操作。解码流程 中根据 non— square— transform— flag与 non— square— transform— direction取值选择处 理相应的处理流程,不仅能够实现矩形变换单元,与四叉树变换分割方式兼容, 可以看作四叉树变换分割方式的一种变化。因此无论在语法描述方法与还是实 现方面都更为简单。  It can be seen that the syntax of the intra prediction based decoding method can be modified according to an embodiment of the present invention, that is, the code stream structure is modified: the syntax element non-square_transform_flag and non-square-transform are added. — direction , and JU' falsified the corresponding decoding side parsing operation. In the decoding process, according to the non-square-transform-flag and non-square-transform-direction value selection processing, the corresponding processing flow can be realized not only to realize the rectangular transform unit, but also compatible with the quad-tree transform segmentation mode, and can be regarded as a quadtree A change in the way the transformation is split. Therefore, it is much simpler in terms of grammar description methods and implementation.
根据本发明实施例提供的基于帧内预测的方法,通过在同一预测单元内选 择将预测单元分割为方形变换单元或者是矩形变换单元,从而采用一种适应图  According to the intra prediction based method provided by the embodiment of the present invention, an adaptive map is adopted by selecting a prediction unit into a square transform unit or a rectangular transform unit in the same prediction unit.
不使用矩形的预测单元划分方式), 所以可以进一步降低编码端计算复杂度。 The prediction unit division method of the rectangle is not used, so the computational complexity of the encoding end can be further reduced.
图 4是示出根据本发明另一实施例的基于帧内预测的解码方法的示意性流 程图。 根据本发明的实施例, 可以将编码单元分割为多个预测单元, 然后对每 个预测单元迭代执行类似的操作。  4 is a schematic flow chart showing a decoding method based on intra prediction according to another embodiment of the present invention. According to an embodiment of the present invention, a coding unit may be divided into a plurality of prediction units, and then a similar operation is performed for each prediction unit iteration.
如图 4所示,在 405中, 为当前预测单元从视图像的压缩码流中获取第一个 分割标记。  As shown in FIG. 4, in 405, the first segmentation flag is obtained from the compressed code stream of the view image for the current prediction unit.
在 410中, 判断第一个分割标记是否为 1。 如果是, 则执行 415 , 否则, 执 行 460。 - - 在 415中, 为当前预测单元从视图像的压缩码流中获取一个分割形状标记 和一个分割方向标记。 At 410, it is determined whether the first split flag is one. If yes, execute 415, otherwise, execute 460. - In 415, a split shape marker and a split direction marker are obtained from the compressed code stream of the view image for the current prediction unit.
在 420中, 判断分割形状标记指示将当前块分割为矩形块还是方形块。 如 果分割为矩形, 则执行 425。 如果分割为方形块, 则执行 440。  In 420, it is determined whether the split shape flag indicates whether the current block is divided into a rectangular block or a square block. If it is split into rectangles, execute 425. If it is divided into square blocks, execute 440.
在 425中, 判断分割方向标记指示沿水平方向还是竖直方向分割当前块。 如果沿水平方向分割, 则执行 430。 如果沿竖直方向分割, 则执行 435。  In 425, it is judged whether the division direction flag indicates that the current block is divided in the horizontal direction or the vertical direction. If it is divided in the horizontal direction, 430 is performed. If it is divided in the vertical direction, 435 is performed.
在 430中, 沿水平方向将当前块分割为矩形块, 并继续执行 450。  In 430, the current block is divided into rectangular blocks in the horizontal direction, and execution continues to 450.
在 435中, 沿竖直方向将当前块分割为矩形块, 并继续执行 455。  In 435, the current block is divided into rectangular blocks in the vertical direction, and execution continues with 455.
在 440中, 将当前块分割为方形块, 并继续执行 445。  In 440, the current block is split into square blocks and execution continues with 445.
在 445中, 判断与分割的方形块对应的分割标记是否为 1。 如果是, 则执行 In 445, it is judged whether or not the division flag corresponding to the divided square block is 1. If yes, execute
465 , 否则执行 460。 465, otherwise execute 460.
在 450中 ,判断与沿水平方向分割的矩形块对应的分割标是否为 1。如果是, 则执行 470, 否则, 执行 460。  At 450, it is judged whether or not the division target corresponding to the rectangular block divided in the horizontal direction is 1. If yes, execute 470, otherwise, execute 460.
在 455中, 判断与沿竖直方向分割的矩形块对应的分割标记是否为 1。如果 是, 则执行 470, 否则, 执行 460。  In 455, it is judged whether or not the division flag corresponding to the rectangular block divided in the vertical direction is 1. If yes, execute 470, otherwise, execute 460.
在 460中, 对当前块执行解码, 并继续执行 475。  In 460, decoding is performed on the current block and execution continues at 475.
在 465中, 将分割后的方形块作为当前块, 并继续执行 420。  In 465, the divided square block is taken as the current block, and execution proceeds to 420.
在 470中, 将分割后的矩形块作为当前块, 并继续执行 420。  In 470, the divided rectangular block is taken as the current block, and execution proceeds to 420.
在 475中, 判断当前块是否为预测单元的最后一个。 如果是, 则执行 485 , 否则, 执行 480。  In 475, it is determined whether the current block is the last one of the prediction units. If yes, execute 485, otherwise, execute 480.
在 480中, 将下一图像块作为前块, 并继续执行 420。  In 480, the next image block is taken as the front block, and execution continues with 420.
在 485中将下一预测单元作为当前预测单元, 并继续执行步骤 405。可以依 次对每个预测单元执行该解码过程。 当然, 本发明的实施例并不限于此, 也可 以同时对多个预测单元执行上述解码过程, 在这种情况下, 在 475的判断结果 为当前块为预测单元的最后一个时, 结束当前预测单元的解码流程。  The next prediction unit is taken as the current prediction unit in 485, and step 405 is continued. This decoding process can be performed on each prediction unit in turn. Certainly, the embodiment of the present invention is not limited thereto, and the foregoing decoding process may be performed on multiple prediction units at the same time. In this case, when the determination result of 475 is that the current block is the last one of the prediction units, the current prediction is ended. The decoding process of the unit.
需要说明的是, 根据本发明的实施列并不限于上述执行顺序, 例如, 可以 在对预测单元分割得到所有变换单元之后再同时执行解码操作。 另外,在预测 单元的大小与编码单元的大小相同的情况下, 可以省略 485。  It should be noted that the implementation according to the present invention is not limited to the above-described execution order. For example, the decoding operation may be performed simultaneously after all the transform units are obtained by dividing the prediction unit. In addition, in the case where the size of the prediction unit is the same as the size of the coding unit, 485 can be omitted.
在根据本发明的实施例中 ,通过在同一预测单元内选择将预测单元分割为 - - 方形变换单元或者是矩形变换单元,从而采用一种适应图像帧的条状纹理的可 选变换单元(即矩形变换单元)来处理条状纹理,能够提高视频图像压缩效率。 由于根据本发明的实施例减少了预测单元划分方式(即, 不使用矩形的预测单 元划分方式), 所以可以进一步降低编码端计算复杂度。 In an embodiment in accordance with the invention, the prediction unit is segmented into two by selecting within the same prediction unit - A square transform unit or a rectangular transform unit, whereby an optional transform unit (ie, a rectangular transform unit) adapted to the strip texture of the image frame is used to process the strip texture, which can improve the video image compression efficiency. Since the prediction unit division manner (i.e., the prediction unit division manner without using a rectangle) is reduced according to an embodiment of the present invention, the coding side computational complexity can be further reduced.
图 5是示出根据本发明实施例的基于帧内预测的解码装置 500的示意性结 构图。 图 5的装置 500包括标记获取模块、 分割模块 520以及解码模块 530。  FIG. 5 is a schematic configuration diagram showing a decoding apparatus 500 based on intra prediction according to an embodiment of the present invention. The apparatus 500 of FIG. 5 includes a tag acquisition module, a segmentation module 520, and a decoding module 530.
标记获取模块 510用于为当前预测单元从视频图像的压缩码流中获取一个 或多个分割标记、一个分割形状标记和一个分割方向标记, 上述一个或多个分 割标记中与当前块相对应的分割标记用于指示是否将当前块分割为多个块,该 分割形状标记指示将当前块分割为多个方形块或者分割为多个矩形块 ,该分割 方向标记指示将当前块沿水平方向分割为多个矩形块或者沿竖直方向分割为 多个矩形块, 多个方形块中的每个方形块的宽度与高度相等, 多个矩形块中的 每个矩形块宽度与高度不相等。  The tag obtaining module 510 is configured to obtain, for the current prediction unit, one or more segmentation marks, a segmentation shape marker, and a segmentation direction marker from the compressed code stream of the video image, where the one or more segmentation markers correspond to the current block. The split flag is used to indicate whether to divide the current block into a plurality of blocks, the split shape flag indicates that the current block is divided into a plurality of square blocks or is divided into a plurality of rectangular blocks, and the split direction mark indicates that the current block is divided into horizontal blocks into A plurality of rectangular blocks are divided into a plurality of rectangular blocks in a vertical direction, and each of the plurality of square blocks has a width equal to a height, and each of the plurality of rectangular blocks has a width and a height that are not equal.
分割模块 520用于根据所获取的上述一个或多个分割标记、 上述分割形状 标记和上述分割方向标记将当前预测单元最终分割为多个方形变换单元或多 个矩形变换单元。  The segmentation module 520 is configured to finally divide the current prediction unit into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation markers, the segmentation shape markers, and the segmentation direction markers.
解码模块 530用于对最终分割得到的多个方形变换单元中的每个方形变换 单元或最终分割得到的多个矩形变换单元中的每个矩形变换单元执行解码流 程。  The decoding module 530 is configured to perform a decoding process on each of the plurality of square transform units or the plurality of rectangular transform units that are finally divided.
根据本发明的一个实施例, 当前块是与当前预测单元大小相同的图像块。 根据本发明的一个实施例 ,分割得到的多个块之一作为下一步分割的当前 块。  According to an embodiment of the invention, the current block is an image block of the same size as the current prediction unit. According to an embodiment of the present invention, one of the plurality of divided blocks is taken as the current block to be divided next.
根据本发明的一个实施例, 标记获取模块 510在上述一个或多个分割标记 中的第一个分割标记指示将当前块分割为多个块的情况下,在获取第一个分割 标记之后,从压缩码流中获取一个分割形状标记; 并且在该分割形状标记指示 将当前块分割为多个矩形块的情况下, 在获取该分割形状标记之后,从压缩码 流中获取一个分割方向标记。  According to an embodiment of the present invention, the mark obtaining module 510, after the first one of the one or more split marks indicates that the current block is divided into a plurality of blocks, after acquiring the first split mark, Obtaining a split shape mark in the compressed code stream; and in the case where the split shape mark indicates that the current block is divided into a plurality of rectangular blocks, after the split shape mark is acquired, one split direction mark is acquired from the compressed code stream.
根据本发明的一个实施例, 分割模块 520在一个或多个分割标记中与当前 块相对应的分割标记指示将当前块分割为多个块的情况下,按照分割方向标记 - - 对应的分割方向将当前块分割成多个与分割形状标记对应的方形块或矩形块。 According to an embodiment of the present invention, the segmentation module 520 marks the segmentation direction according to the segmentation direction when the segmentation flag corresponding to the current block in the one or more segmentation marks indicates that the current block is divided into a plurality of blocks. - - The corresponding split direction divides the current block into a plurality of square blocks or rectangular blocks corresponding to the split shape marks.
根据本发明的一个实施例, 解码模块 530在所述一个或多个分割标记中与 当前块相对应的分割标记指示不对当前块做进一步分割的情况下,对最终分割 得到的每个方形变换单元或者矩形变换单元。  According to an embodiment of the present invention, the decoding module 530, in the case that the segmentation flag corresponding to the current block in the one or more segmentation marks indicates that the current block is not further segmented, each square transformation unit obtained by the final segmentation Or a rectangular transformation unit.
根据本发明的一个实施例, 解码单元 530根据每个方形变换单元或者矩形 变换单元的位置、 宽度和高度以及由所在的预测单元确定的帧内预测模式, 获 取每个方形变换单元或者矩形变换单元的预测信号 ,根据每个方形变换单元或 者矩形变换单元的位置、每个方形变换单元或者矩形变换单元的宽度和高度以 及所在的分割层级深度,获取每个方形变换单元或者矩形变换单元的重建预测 差值信号, 并且根据预测信号和重建预测差值信号, 获得每个方形变换单元或 者矩形变换单元的重建信号。  According to an embodiment of the present invention, the decoding unit 530 acquires each square transform unit or rectangular transform unit according to the position, width and height of each square transform unit or rectangular transform unit and the intra prediction mode determined by the prediction unit in which it is located. The prediction signal is obtained according to the position of each square transformation unit or rectangular transformation unit, the width and height of each square transformation unit or rectangular transformation unit, and the depth of the division level, and the reconstruction prediction of each square transformation unit or rectangular transformation unit is obtained. And a difference signal, and obtaining a reconstructed signal of each square transform unit or rectangular transform unit according to the predicted signal and the reconstructed predicted difference signal.
本发明实施例提供的确码装置 500的标记获取模块 510、 分割模块 520和解 码单元 530的上述和其他操作和 /或功能可以参考上述图 3的方法的 310、 320和 330, 为了避免重复, 在此不再贅述。  The above and other operations and/or functions of the tag acquisition module 510, the segmentation module 520, and the decoding unit 530 of the acknowledgment device 500 provided by the embodiment of the present invention may refer to the methods 310, 320, and 330 of FIG. 3 above, in order to avoid duplication, This will not be repeated here.
根据本发明实施例提供的基于帧内预测的解码装置,通过在同一预测单元 内选择将预测单元分割为方形变换单元或者是矩形变换单元 ,从而采用一种适  According to the decoding apparatus based on the intra prediction provided by the embodiment of the present invention, by selecting the prediction unit into a square transformation unit or a rectangular transformation unit in the same prediction unit,
(即, 不使用矩形的预测单元划分方式), 所以可以进一步降低编码端计算复 杂度。 (That is, the prediction unit division method of the rectangle is not used), so the calculation end complexity can be further reduced.
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示 例的单元及算法步骤, 能够以电子硬件、 计算机软件或者二者的结合来实现, 为了清楚地说明硬件和软件的可互换性,在上述说明中已经按照功能一般性地 描述了各示例的组成及步骤。 这些功能究竟以硬件还是软件方式来执行,取决 于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用 来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范 围。  Those of ordinary skill in the art will appreciate that the elements and algorithm steps of the various examples described in connection with the embodiments disclosed herein can be implemented in electronic hardware, computer software, or a combination of both, for clarity of hardware and software. Interchangeability, the composition and steps of the various examples have been generally described in terms of function in the above description. Whether these functions are implemented in hardware or software depends on the specific application and design constraints of the solution. A person skilled in the art can use different methods for implementing the described functions for each particular application, but such implementation should not be considered to be beyond the scope of the present invention.
所属领域的技术人员可以清楚地了解到, 为描述的方便和简洁, 上述描述 的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程, - - 在此不再赘述。 A person skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the system, the device and the unit described above can refer to the corresponding process in the foregoing method embodiment. - - I won't go into details here.
在本申请所提供的几个实施例中, 应该理解到, 所揭露的系统、 装置和方 法, 可以通过其它的方式实现。 例如, 以上所描述的装置实施例仅仅是示意性 的, 例如, 所述单元的分割, 仅仅为一种逻辑功能分割, 实际实现时可以有另 外的分割方式, 例如多个单元或组件可以结合或者可以集成到另一个系统, 或 一些特征可以忽略, 或不执行。 另一点, 所显示或讨论的相互之间的耦合或直 接耦合或通信连接可以是通过一些接口, 装置或单元的间接耦合或通信连接, 可以是电性, 机械或其它的形式。  In the several embodiments provided herein, it should be understood that the disclosed systems, devices, and methods may be implemented in other ways. For example, the device embodiments described above are merely illustrative. For example, the segmentation of the cells is only a logical function segmentation. In actual implementation, there may be another segmentation manner, for example, multiple cells or components may be combined or Can be integrated into another system, or some features can be ignored, or not executed. In addition, the coupling or direct coupling or communication connection shown or discussed may be an indirect coupling or communication connection through some interface, device or unit, and may be electrical, mechanical or otherwise.
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为 单元显示的部件可以是或者也可以不是物理单元, 即可以位于一个地方, 或者 也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部 单元来实现本实施例方案的目的。  The units described as separate components may or may not be physically separate, and the components displayed as the units may or may not be physical units, that is, may be located in one place, or may be distributed to multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solution of the embodiment.
另外, 在本发明各个实施例中的各功能单元可以集成在一个处理单元中, 也可以是各个单元单独物理存在 ,也可以两个或两个以上单元集成在一个单元 中。上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的 形式实现。  In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above integrated unit can be implemented in the form of hardware or in the form of a software functional unit.
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售 或使用时, 可以存储在一个计算机可读取存储介质中。 基于这样的理解, 本发 明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的全 部或部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储 介质中, 包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器, 或者网络设备等 )执行本发明各个实施例所述方法的全部或部分步骤。 而前述 的存储介质包括: U盘、 移动硬盘、 只读存储器(ROM, Read-Only Memory )、 随机存取存储器(RAM, Random Access Memory ), 磁碟或者光盘等各种可以 存储程序代码的介质。  The integrated unit, if implemented in the form of a software functional unit and sold or used as a standalone product, may be stored in a computer readable storage medium. Based on such understanding, the technical solution of the present invention may contribute to the prior art or all or part of the technical solution may be embodied in the form of a software product stored in a storage medium. A number of instructions are included to cause a computer device (which may be a personal computer, server, or network device, etc.) to perform all or part of the steps of the methods described in various embodiments of the present invention. The foregoing storage medium includes: a U disk, a removable hard disk, a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, and the like, which can store program codes. .
以上所述,仅为本发明的具体实施方式,但本发明的保护范围并不局限于 此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内, 可轻易想到 变化或替换, 都应涵盖在本发明的保护范围之内。 因此, 本发明的保护范围应 所述以权利要求的保护范围为准。。  The above is only a specific embodiment of the present invention, but the scope of the present invention is not limited thereto, and any person skilled in the art can easily think of changes or substitutions within the technical scope of the present invention. It should be covered by the scope of the present invention. Therefore, the scope of the invention should be determined by the scope of the claims. .

Claims

权 利 要 求 Rights request
1、 一种基于帧内预测的解码方法, 其特征在于, 包括:  A decoding method based on intra prediction, comprising:
为当前预测单元从视频图像的压缩码流中获取一个或多个分割标记、一个 分割形状标记和一个分割方向标记,所述一个或多个分割标记中与当前块相对 应的分割标记用于指示是否将所述当前块分割为多个块,所述一个分割形状标 记指示将所述当前块分割为多个方形块或者分割为多个矩形块 ,所述一个分割 方向标记指示将所述当前块沿水平方向分割为所述多个矩形块或者沿竖直方 向分割为所述多个矩形块, 所述多个方形块中的每个方形块的宽度与高度相 等, 所述多个矩形块中的每个矩形块宽度与高度不相等;  Obtaining, for the current prediction unit, one or more segmentation marks, a segmentation shape marker, and a segmentation direction marker from the compressed code stream of the video image, wherein the segmentation marker corresponding to the current block of the one or more segmentation markers is used to indicate Whether to divide the current block into a plurality of blocks, the one split shape mark indicates dividing the current block into a plurality of square blocks or dividing into a plurality of rectangular blocks, the one split direction mark indicating that the current block is to be Dividing into the plurality of rectangular blocks in a horizontal direction or dividing into a plurality of rectangular blocks in a vertical direction, each of the plurality of square blocks having a width equal to a height, wherein the plurality of rectangular blocks are Each rectangular block is not equal in width and height;
根据所获取的所述一个或多个分割标记、所述一个分割形状标记和所述一 个分割方向标记将所述当前预测单元最终分割为多个方形变换单元或多个矩 形变换单元;  And dividing the current prediction unit into a plurality of square transformation units or a plurality of rectangular transformation units according to the acquired one or more segmentation marks, the one segmentation shape marker, and the one segmentation direction marker;
对最终分割得到的多个方形变换单元中的每个方形变换单元或最终分割 得到的多个矩形变换单元中的每个矩形变换单元执行解码流程。  A decoding process is performed on each of the plurality of square transform units obtained in the final split or each of the plurality of rectangular transform units finally divided.
2、 根据权利要求 1所述的基于帧内预测的解码方法, 其特征在于, 所述 当前块是与所述当前预测单元大小相同的图像块。  2. The intra prediction based decoding method according to claim 1, wherein the current block is an image block of the same size as the current prediction unit.
3、 根据权利要求 1所述的基于帧内预测的解码方法, 其特征在于, 分割 得到的所述多个块之一作为下一步分割的当前块。  3. The intra prediction based decoding method according to claim 1, wherein one of the plurality of blocks obtained by the segmentation is used as a current block to be divided next.
4、 根据权利要求 1所述的基于帧内预测的解码方法, 其特征在于, 所述 沿水平方向分割得到的所述多个矩形块中的每个矩形块的宽度大于高度,并且 所述沿竖直方向分割得到的所述多个矩形块中的每个矩形块的宽度小于高度。  The intra prediction-based decoding method according to claim 1, wherein each of the plurality of rectangular blocks obtained by dividing in a horizontal direction has a width greater than a height, and the edge The width of each of the plurality of rectangular blocks obtained by dividing in the vertical direction is smaller than the height.
5、 根据权利要求 1所述基于帧内预测的解码方法, 其特征在于, 在所述一个或多个分割标记中的第一个分割标记指示将所述当前块分割 为多个块的情况下,在获取所述第一个分割标记之后,从所述压缩码流中获取 所述一个分割形状标记;  5. The intra prediction based decoding method according to claim 1, wherein: in a case where the first one of the one or more divided marks indicates that the current block is divided into a plurality of blocks After obtaining the first segmentation flag, acquiring the one segmentation shape marker from the compressed code stream;
在所述一个分割形状标记指示将所述当前块分割为多个矩形块的情况下, 在获取所述一个分割形状标记之后,从所述压缩码流中获取所述一个分割方向 标记。  In a case where the one divided shape flag indicates that the current block is divided into a plurality of rectangular blocks, the one divided direction mark is acquired from the compressed code stream after acquiring the one divided shape mark.
6、 根据权利要求 1所述的基于帧内预测的解码方法, 其特征在于, 所述 根据所获取的所述一个或多个分割标记、所述一个分割形状标记和所述一个分 割方向标记将所述当前预测单元分割为多个方形变换单元或多个矩形变换单 元包括: The intra prediction based decoding method according to claim 1, wherein the one or more segmentation marks, the one segmentation shape flag, and the one segment are obtained according to the acquired Cutting the direction mark to divide the current prediction unit into a plurality of square transformation units or a plurality of rectangular transformation units includes:
在所述一个或多个分割标记中与所述当前块相对应的分割标记指示将所 述当前块分割为多个块的情况下,按照所述分割方向标记对应的分割方向将所 述当前块分割成多个与分割形状标记对应的方形块或矩形块。  And in a case where the split flag corresponding to the current block in the one or more split marks indicates that the current block is divided into multiple blocks, the current block is performed according to a split direction corresponding to the split direction mark It is divided into a plurality of square blocks or rectangular blocks corresponding to the divided shape marks.
7、 根据权利要求 6所述的基于帧内预测的解码方法, 其特征在于, 所述 按照所述分割方向标记对应的分割方向将所述当前块分割成多个与分割形状 标记对应的方形块或矩形块包括:  The intra prediction based decoding method according to claim 6, wherein the current block is divided into a plurality of square blocks corresponding to the split shape mark according to the split direction corresponding to the split direction mark Or rectangular blocks include:
在所述一个分割形状标记指示将所述当前块分割为所述多个方形块情况 下,将所述当前块分割为四个大小相等的方形块, 其中所述四个大小相等的方 形块中的每个方形块的宽度或高度分别为所述当前块的宽度或高度的二分之 在所述一个分割形状标记指示将所述当前块分割为所述多个矩形块的情 况下,根据所述一个分割方向标记将所述当前块进一步分割为四个大小相等的 矩形块。  In a case where the one split shape flag indicates that the current block is divided into the plurality of square blocks, the current block is divided into four equal-sized square blocks, wherein the four equal-sized square blocks are The width or height of each square block is respectively two-half of the width or height of the current block, in the case where the one split shape mark indicates that the current block is divided into the plurality of rectangular blocks, according to the A split direction mark further divides the current block into four equal-sized rectangular blocks.
8、 根据权利要求 7中所述的基于帧内预测的解码方法, 其特征在于, 在 所述一个分割形状标记指示将所述当前块分割为多个矩形块的情况下,根据所 述一个分割方向标记将当前块分割为四个大小相等的矩形块包括:  The intra prediction-based decoding method according to claim 7, wherein, in a case where the one divided shape flag indicates that the current block is divided into a plurality of rectangular blocks, according to the one segmentation The direction marker divides the current block into four equal-sized rectangular blocks including:
在所述一个分割方向标记指示将所述当前块沿水平方向分割为所述多个 矩形块的情况下,将所述当前块沿水平方向分割为四个大小相等的矩形块, 其 中所述四个大小相等的矩形块中的每个矩形块的宽度与所述当前块的宽度相 同,并且所述四个大小相等的矩形块中的每个矩形块的高度为所述当前块的高 度的四分之一;  In a case where the one partitioning direction flag indicates that the current block is divided into the plurality of rectangular blocks in the horizontal direction, the current block is divided into four equal-sized rectangular blocks in a horizontal direction, wherein the four The width of each of the equal-sized rectangular blocks is the same as the width of the current block, and the height of each of the four equally-sized rectangular blocks is the height of the current block. One of the points;
在所述一个分割方向标记指示将所述当前块沿竖直方向分割为所述多个 矩形块的情况下,将所述当前块沿竖直方向分割为四个大小相等的矩形块, 其 中所述四个大小相等的矩形块中的每个矩形块的高度与所述当前块的高度相 同,并且所述四个大小相等的矩形块中的每个矩形块的宽度为所述当前块的宽 度的四分之一。  In a case where the one split direction flag indicates that the current block is divided into the plurality of rectangular blocks in the vertical direction, the current block is divided into four equal-sized rectangular blocks in the vertical direction, where The height of each of the four equal-sized rectangular blocks is the same as the height of the current block, and the width of each of the four equally-sized rectangular blocks is the width of the current block One quarter of the.
9、 根据权利要求 1所述的基于帧内预测的解码方法, 其特征在于, 所述 对最终分割得到的多个方形变换单元中的每个方形变换单元或最终分割得到 的多个矩形变换单元中的每个矩形变换单元执行解码流程: The intra prediction-based decoding method according to claim 1, wherein each of the plurality of square transform units obtained by the final splitting or the final splitting is obtained. Each of the plurality of rectangular transform units performs a decoding process:
在所述一个或多个分割标记中与所述当前块相对应的分割标记指示不对 所述当前块做进一步分割的情况下 ,对最终分割得到的每个方形变换单元或者 矩形变换单元执行解码流程。  And performing, in the case where the segmentation flag corresponding to the current block in the one or more segmentation marks indicates that the current block is not further segmented, performing a decoding process on each of the square transformation units or the rectangular transformation unit obtained by the final segmentation .
10、 根据权利要求 9所述的基于帧内预测的解码方法, 其特征在于, 根据 所述每个方形变换单元或者矩形变换单元的位置、宽度和高度以及由所在的预 测单元确定的帧内预测模式 ,获取所述每个方形变换单元或者矩形变换单元的 预测信号,根据所述每个方形变换单元或者矩形变换单元的位置、 宽度和高度 以及所在的分割层级深度,获取所述每个方形变换单元或者矩形变换单元的重 建预测差值信号, 并且根据所述预测信号和所述重建预测差值信号, 获得所述 每个方形变换单元或者矩形变换单元的重建信号。  10. The intra prediction-based decoding method according to claim 9, wherein the frame is determined according to the position, the width and the height of each of the square transform units or the rectangular transform unit, and the prediction unit determined by the prediction unit in which it is located. a mode, obtaining a prediction signal of each of the square transformation units or the rectangular transformation unit, and acquiring each of the square transformations according to a position, a width, and a height of each of the square transformation units or the rectangular transformation units and a depth of the division level Reconstructing the difference signal of the unit or the rectangular transform unit, and obtaining a reconstructed signal of each of the square transform units or the rectangular transform unit according to the prediction signal and the reconstructed prediction difference signal.
11、 一种基于帧内预测的解码装置, 包括:  11. A decoding apparatus based on intra prediction, comprising:
标记获取模块,用于为当前预测单元从视频图像的压缩码流中获取一个或 多个分割标记、一个分割形状标记和一个分割方向标记, 所述一个或多个分割 标记中与当前块相对应的分割标记用于指示是否将所述当前块分割为多个块, 所述一个分割形状标记指示将所述当前块分割为多个方形块或者分割为多个 矩形块 ,所述一个分割方向标记指示将所述当前块沿水平方向分割为所述多个 矩形块或者沿竖直方向分割为所述多个矩形块,所述多个方形块中的每个方形 块的宽度与高度相等, 所述多个矩形块中的每个矩形块宽度与高度不相等; 分割模块, 用于根据所获取的所述一个或多个分割标记、所述一个分割形 状标记和所述一个分割方向标记将所述当前预测单元最终分割为多个方形变 换单元或多个矩形变换单元;  a mark obtaining module, configured to acquire one or more segmentation marks, a segmentation shape mark, and a segmentation direction mark from the compressed code stream of the video image for the current prediction unit, where the one or more segmentation marks correspond to the current block The segmentation flag is used to indicate whether the current block is divided into a plurality of blocks, and the one segmentation shape flag indicates that the current block is divided into a plurality of square blocks or divided into a plurality of rectangular blocks, and the one segmentation direction flag is Instructing to divide the current block into the plurality of rectangular blocks in a horizontal direction or to divide the plurality of rectangular blocks in a vertical direction, and each of the plurality of square blocks has a width equal to a height, Each of the plurality of rectangular blocks is unequal in width and height; the dividing module is configured to: according to the acquired one or more divided marks, the one divided shape mark, and the one divided direction mark The current prediction unit is finally divided into a plurality of square transformation units or a plurality of rectangular transformation units;
解码模块,用于对最终分割得到的多个方形变换单元中的每个方形变换单 元或最终分割得到的多个矩形变换单元中的每个矩形变换单元执行解码流程。  And a decoding module, configured to perform a decoding process on each of the plurality of square transform units obtained by the final splitting or each of the plurality of rectangular transform units obtained by the final splitting.
12、 根据权利要求 11所述的基于帧内预测的解码装置, 其特征在于, 所 述当前块是与所述当前预测单元大小相同的图像块。  12. The intra prediction based decoding apparatus according to claim 11, wherein the current block is an image block of the same size as the current prediction unit.
13、 根据权利要求 11所述的基于帧内预测的解码装置, 其特征在于, 分 割得到的所述多个块之一作为下一步分割的当前块。  The intra prediction-based decoding apparatus according to claim 11, wherein one of the plurality of blocks obtained by the division is used as a current block to be divided next.
14、 根据权利要求 11所述的基于帧内预测的解码装置, 其特征在于, 所 述标记获取模块在所述一个或多个分割标记中的第一个分割标记指示将所述 当前块分割为多个块的情况下,在获取所述第一个分割标记之后,从所述压缩 码流中获取所述一个分割形状标记;并且在所述一个分割形状标记指示将所述 当前块分割为多个矩形块的情况下,在获取所述一个分割形状标记之后,从所 述压缩码流中获取所述一个分割方向标记。 The intra prediction-based decoding apparatus according to claim 11, wherein the first acquisition flag of the one or more segmentation marks by the mark acquisition module indicates that the In a case where the current block is divided into a plurality of blocks, after the first segmentation flag is acquired, the one segmentation shape flag is acquired from the compressed code stream; and the one segmentation shape flag indicates that the current In the case where the block is divided into a plurality of rectangular blocks, the one divided direction mark is acquired from the compressed code stream after the one divided shape mark is acquired.
15、 根据权利要求 14所述的基于帧内预测的解码装置, 其特征在于, 所 述分割模块在所述一个或多个分割标记中与所述当前块相对应的分割标记指 示将所述当前块分割为多个块的情况下 ,按照所述分割方向标记对应的分割方 向将所述当前块分割成多个与分割形状标记对应的方形块或矩形块。  The intra prediction-based decoding apparatus according to claim 14, wherein the segmentation module indicates, in the one or more segmentation marks, a segmentation mark corresponding to the current block to indicate the current When the block is divided into a plurality of blocks, the current block is divided into a plurality of square blocks or rectangular blocks corresponding to the divided shape marks in accordance with the division direction corresponding to the division direction marks.
16、 根据权利要求 11所述的基于帧内预测的解码装置, 其特征在于, 所 述解码模块在所述一个或多个分割标记中与所述当前块相对应的分割标记指 示不对所述当前块做进一步分割的情况下,对最终分割得到的每个方形变换单 元或者矩形变换单元执行解码流程。  The intra prediction-based decoding apparatus according to claim 11, wherein the decoding module indicates, in the one or more split marks, a split flag corresponding to the current block, that the current In the case where the block is further divided, the decoding process is performed for each square transform unit or rectangular transform unit finally obtained.
17、 根据权利要求 16所述的基于帧内预测的解码装置, 其特征在于, 根 据所述每个方形变换单元或者矩形变换单元的位置、宽度和高度以及由所在的 预测单元确定的帧内预测模式,获取所述每个方形变换单元或者矩形变换单元 的预测信号,根据所述每个方形变换单元或者矩形变换单元的位置、 宽度和高 度以及所在的分割层级深度,获取所述每个方形变换单元或者矩形变换单元的 重建预测差值信号, 并且根据所述预测信号和所述重建预测差值信号, 获得所 述每个方形变换单元或者矩形变换单元的重建信号。  The intra prediction-based decoding apparatus according to claim 16, wherein the position, the width and the height of each of the square transform units or the rectangular transform units and the intra prediction determined by the prediction unit in which the unit is located are a mode, obtaining a prediction signal of each of the square transformation units or the rectangular transformation unit, and acquiring each of the square transformations according to a position, a width, and a height of each of the square transformation units or the rectangular transformation units and a depth of the division level Reconstructing the difference signal of the unit or the rectangular transform unit, and obtaining a reconstructed signal of each of the square transform units or the rectangular transform unit according to the prediction signal and the reconstructed prediction difference signal.
PCT/CN2012/078039 2011-06-30 2012-07-02 Intra-frame prediction-based decoding method and decoding device WO2013000437A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201110182388.8 2011-06-30
CN201110182388.8A CN102857763B (en) 2011-06-30 2011-06-30 A kind of coding/decoding method based on infra-frame prediction and decoding device

Publications (1)

Publication Number Publication Date
WO2013000437A1 true WO2013000437A1 (en) 2013-01-03

Family

ID=47403904

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2012/078039 WO2013000437A1 (en) 2011-06-30 2012-07-02 Intra-frame prediction-based decoding method and decoding device

Country Status (2)

Country Link
CN (1) CN102857763B (en)
WO (1) WO2013000437A1 (en)

Families Citing this family (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US9544601B2 (en) * 2013-10-15 2017-01-10 Qualcomm Incorporated Wedgelet pattern extension for depth intra coding
KR20170023000A (en) 2014-06-20 2017-03-02 삼성전자주식회사 Method and device for transmitting prediction mode of depth image for interlayer video encoding and decoding
CN113810699A (en) * 2016-04-29 2021-12-17 世宗大学校产学协力团 Method and apparatus for encoding and decoding image signal
WO2018037896A1 (en) 2016-08-26 2018-03-01 シャープ株式会社 Image decoding apparatus, image encoding apparatus, image decoding method, and image encoding method
WO2018142823A1 (en) * 2017-01-31 2018-08-09 Sharp Kabushiki Kaisha Systems and methods for scaling transform coefficient level values
ES2963982T3 (en) 2017-02-06 2024-04-03 Huawei Tech Co Ltd Image decoding method and device that uses the division information of a coding tree unit
WO2019212230A1 (en) * 2018-05-03 2019-11-07 엘지전자 주식회사 Method and apparatus for decoding image by using transform according to block size in image coding system
CN110267036B (en) * 2019-03-11 2020-07-10 杭州海康威视数字技术股份有限公司 Filtering method and device
CN112118448B (en) * 2019-06-21 2022-09-16 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and storage medium

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854554A (en) * 2010-06-13 2010-10-06 上海交通大学 Video encoding and decoding system based on image inpainting predication
CN101924938A (en) * 2010-08-11 2010-12-22 上海交通大学 Method for processing adjacent block information in video decoding macro-block prediction and boundary filtering

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101042623B1 (en) * 2004-11-17 2011-06-20 삼성전자주식회사 Method for deinterlacing in use of field variable partition type and apparatus thereof
KR101365570B1 (en) * 2007-01-18 2014-02-21 삼성전자주식회사 Method and apparatus for encoding and decoding based on intra prediction
JP2010183305A (en) * 2009-02-05 2010-08-19 Sony Corp System and method for signal processing
CN102595116B (en) * 2011-01-14 2014-03-12 华为技术有限公司 Encoding and decoding methods and devices for multiple image block division ways

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101854554A (en) * 2010-06-13 2010-10-06 上海交通大学 Video encoding and decoding system based on image inpainting predication
CN101924938A (en) * 2010-08-11 2010-12-22 上海交通大学 Method for processing adjacent block information in video decoding macro-block prediction and boundary filtering

Also Published As

Publication number Publication date
CN102857763B (en) 2016-02-17
CN102857763A (en) 2013-01-02

Similar Documents

Publication Publication Date Title
WO2013000437A1 (en) Intra-frame prediction-based decoding method and decoding device
RU2586639C2 (en) Method and apparatus encoding or decoding
CN106797464B (en) Method and apparatus for vector coding in video encoding and decoding
KR102166335B1 (en) Method and apparatus for video encoding with transmitting SAO parameters, method and apparatus for video decoding with receiving SAO parameters
WO2016050051A1 (en) Image prediction method and relevant device
WO2015180428A1 (en) Video coding method and video coding device for intra-frame prediction coding
CN103748875A (en) Method and device for video coding applying parition-based filters, and storage medium
WO2020125595A1 (en) Video coder-decoder and corresponding method
CN105430417B (en) Encoding method, decoding method, device and electronic equipment
CN111327904B (en) Image reconstruction method and device
CN111316642B (en) Method and apparatus for signaling image coding and decoding partition information
WO2017063404A1 (en) Encoding processing method and device, decoding processing method and device, encoder, and decoder
US20240015310A1 (en) Multimedia data processing method, apparatus, device, computer-readable storage medium, and computer program product
KR20140122192A (en) Method and apparatus for encoding and decoding depth map
CN113597757A (en) Shape adaptive discrete cosine transform with region number adaptive geometric partitioning
WO2020143589A1 (en) Video image decoding method and apparatus, and video image encoding method and apparatus
KR102227660B1 (en) Method and device for transforming signal
WO2020253681A1 (en) Method and device for constructing merge candidate motion information list, and codec
CN111263166B (en) Video image prediction method and device
CN114846789B (en) Decoder for indicating image segmentation information of a slice and corresponding method
WO2020224476A1 (en) Image division method, apparatus and device
WO2023065890A1 (en) Multimedia data processing method and apparatus, computer device, computer readable storage medium, and computer program product
CN111327894A (en) Block division method, video encoding and decoding method and video encoder and decoder
RU2797723C2 (en) Image prediction method, equipment, system, image prediction device and information storage medium
WO2023216445A1 (en) Coding method and apparatus, and decoding method and apparatus

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 12804303

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

Country of ref document: EP

Kind code of ref document: A1