Method and apparatus for picture encoding and decoding
By checking the co-location of the dividing line and the image boundary and the size of the remaining part, the segmentation mode is dynamically adjusted, which solves the problem of low coding efficiency of image boundary blocks in HEVC and JEM, enables more flexible segmentation mode selection, and improves reconstruction quality.
Patent Information
- Application Number
- CN202410205791.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Priority Date
- 2017-03-27
- Filing Date
- 2018-03-13
- Publication Date
- 2024-09-20
AI Technical Summary
In HEVC and JEM, blocks located at the boundary of the picture have limited segmentation modes, resulting in low coding efficiency. Especially when the block extends to the outside of the picture, only quadtree segmentation is allowed, which limits the selection of segmentation modes and affects the reconstruction quality. .
Determine whether different splitting modes are allowed, including binary and ternary splitting modes, by checking whether the splitting line is co-located with the picture boundary or whether the size of the remaining part is a multiple of the minimum block size, and dynamically adjust the splitting mode to adapt to the position and size of the block , allowing both asymmetric and symmetric segmentation.
It improves the encoding and decoding efficiency of blocks at picture boundaries, increases the selectivity of segmentation modes, and improves reconstruction quality, especially when the block part extends outside the picture, avoiding the single mode limitation of quadtree segmentation.
Smart Images

Figure CN118678073A
Abstract
Description
[0001] This divisional application is a divisional application with application date of March 13, 2018, application number 201880030128.9, and invention name “Method and device for image encoding and decoding”. Technical Field
[0002] The present principles relate generally to methods and apparatus for picture encoding and decoding and, more particularly, to methods and apparatus for picture block encoding and decoding at picture boundaries. Background Art
[0003] To achieve high compression efficiency, video coding schemes typically use prediction and transform to exploit spatial and temporal redundancy in video content. In general, intra prediction or inter prediction is used to exploit intra-frame or inter-frame correlation, and then the difference between the original image and the predicted image (often expressed as a residual) is transformed, quantized, and entropy encoded. To reconstruct the video, the compressed data is decoded through the inverse processes corresponding to prediction, transform, quantization, and entropy encoding.
[0004] In HEVC coding ("ITU-T H.265ITU Telecommunication Standardization Sector (10 / 2014), Series H: Audiovisual and Multimedia Systems, Infrastructure of Audiovisual Services - Coding of Motion Video, High Efficiency Video Coding, ITU-T H.265 Recommendation"), a picture is partitioned into coding tree units (CTUs) of square shape, typically with configurable sizes of 64×64, 128×128 or 256×256. The CTU is the root of a quadtree partitioned into coding units (CUs). For each CU, a prediction mode is signaled, which indicates whether the CU is encoded using intra or inter prediction. The coding unit is partitioned into one or more prediction units (PUs) and forms the root of a quadtree (called a transform tree) partitioned into transform units (TUs). A PU can have a square or rectangular shape, while a TU has a square shape. Each PU is assigned some prediction information, such as motion information, spatial intra prediction, etc.
[0005] The Quadtree plus Binary Tree (QTBT) coding tool ("Algorithm Description of Joint Exploration Test Model 3", document JVET-C1001_v3, ISO / IEC JTC1 / SC29 / WG11 Joint Video Exploration Group, 3rd Meeting, May 26 - June 1, 2015, Geneva, Switzerland) is a new video coding tool that provides a more flexible CTU representation compared to the CU / PU / TU arrangement of the HEVC standard. The coding tool is introduced in the Joint Exploration Model (JEM), which is the reference software for the ISO / IEC JTC1 / SC29 / WG11 Joint Video Exploration Group. The QTBT coding tool defines coding trees in which coding units can be partitioned in a quadtree and binarytree manner. This coding tree representation of coding tree units is described in Figure 1 As shown above, where the solid line indicates the quadtree partition and the dotted line indicates the binary partition of the CU, and further in Figure 2 As shown above. Figure 2 In the figure, the solid line represents the quadtree segmentation, and the dashed line represents the binary segmentation spatially embedded in the quadtree leaves. In the figure, the value 1 corresponds to the vertical binary segmentation, and the value 0 corresponds to the horizontal binary segmentation.
[0006] The partitioning of a CTU into coding units is decided at the encoder side, for example, by a rate-distortion optimization process, which includes determining a QTBT representation of the CTU with the minimum rate-distortion cost. In the QTBT representation, the CU has a square or rectangular shape. The size of a coding unit is always a power of 2 and typically ranges from 4 to 128. The QTBT decomposition of a CTU consists of two stages: the CTU is first partitioned into 4 CUs in a quadtree manner, and then each quadtree leaf can be further partitioned into two CUs in a binary manner or into 4 CUs in a quadtree manner, as shown in FIG. Figure 2 As shown above.
[0007] With the QTBT representation, the CU is not further partitioned into PUs or TUs. In other words, once the partitioning of the CTU is decided, each CU is considered to be a single prediction unit and a single transform unit. However, this QTBT representation only allows symmetric partitioning of the CU, such as Figure 3 shown. Figure 3 Depicts the four split modes allowed by QTBT. Mode NO_SPLIT indicates that the CU is not further split. Mode QT_SPLIT indicates that the CU is split into four quadrants separated by two split lines according to the quadtree. Mode HOR indicates that the CU is split horizontally into two CUs of equal size separated by a split line. Mode VER indicates that the CU is split vertically into two CUs of equal size separated by a split line. The split line is at Figure 3 Indicated by dotted line.
[0008] In "Asymmetric Coding Units in QTBT" (Document: JVET-D0064, ITU-T SG16 WP3 and ISO / IEC JTC1 / SC29 / WG11 Joint Video Exploration Team (JVET), 4th Meeting: Chengdu, China, October 15-21, 2016), a new asymmetric partitioning mode is introduced in QTBT. Therefore, a CU can be horizontally partitioned into two coding units with respective rectangular sizes (w, h / 4) and (w, 3h / 4), or vertically partitioned into two coding units with respective rectangular sizes (w / 4, h) and (3w / 4, h), such as Figure 4 In addition, a CU with a size that is a multiple of 3 in width or height can be further split horizontally or vertically in a binary manner, provided that the size is an even number. The two coding units are composed of Figure 4 The two components are separated by a dividing line represented by a dotted line.
[0009] In "Multi-Type-Tree" (Document: JVET-D0117-r1, ITU-T SG16WP3 and ISO / IEC JTC1 / SC29 / WG11 Joint Video Exploration Group (JVET), Fourth Meeting: Chengdu, China, October 15-21, 2016), a new ternary partitioning mode is introduced. Therefore, a CU can be horizontally partitioned into three coding units with respective rectangular sizes of (w, h / 4), (w, h / 2) and (w, h / 4), or vertically partitioned into three coding units with respective rectangular sizes of (w / 4, h), (w / 2, h) and (w / 4, h), such as Figure 5 As depicted above. These three coding units are composed of Figure 5 The two partitions are separated by two dotted lines.
[0010] In HEVC and JEM, most of these modes are not allowed for blocks located at picture boundaries, which are therefore not efficiently coded. Summary of the invention
[0011] Disclosed is a decoding method for decoding a current block, the current block including at least a portion of a picture, the decoding method comprising:
[0012] - Determine whether the current block extends beyond the boundaries of the picture;
[0013] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary (i.e., the remaining portion resulting from the partitioning) is a multiple of the minimum block size;
[0014] - in response to the allowed partitioning modes, decoding a current partitioning mode of the current block from the bitstream; and
[0015] -Decode the current block according to the current partitioning mode.
[0016] Disclosed is a decoding device configured to decode a current block, the current block including at least a portion of a picture, the decoding device comprising:
[0017] - means for determining whether the current block extends beyond the boundaries of the picture;
[0018] - means for determining, for each of a plurality of partitioning modes, whether said partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size;
[0019] - means for decoding a current partitioning mode of a current block from a bitstream in response to the allowed partitioning modes; and
[0020] - means for decoding the current block according to the current partitioning mode.
[0021] A decoding device is disclosed, comprising: a communication interface configured to access at least a bit stream and at least one processor, wherein the at least one processor is configured to:
[0022] - determining whether the current block extends beyond a boundary of a picture, wherein the current block includes at least a portion of the picture;
[0023] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size;
[0024] - in response to the allowed partitioning modes, decoding a current partitioning mode of the current block from the accessed bitstream; and
[0025] -Decode the current block according to the current partitioning mode.
[0026] The following embodiments are applicable to the decoding method and decoding device disclosed above.
[0027] According to a specific embodiment, the plurality of segmentation modes include at least two of the following segmentation modes, where h is the height of the current block and w is the width of the current block:
[0028] - Split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4;
[0029] - Split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4;
[0030] - Split the block vertically into a left sub-block of width w / 4 and a right sub-block of width 3w / 4;
[0031] - Split the block vertically into a right sub-block of width w / 4 and a left sub-block of width 3w / 4;
[0032] - Split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2, and a sub-block of height h / 4;
[0033] - Split the block vertically into a sub-block of width w / 4, a middle sub-block of width w / 2, and a sub-block of width w / 4;
[0034] - split the block horizontally into two sub-blocks of height h / 2; and
[0035] - Split the block vertically into two sub-blocks of width w / 2.
[0036] According to specific characteristics, the minimum block size in at least one of the height and the width is equal to 4.
[0037] Disclosed is a coding method for coding a current block, the current block including at least a portion of a picture, the coding method comprising:
[0038] - Determine whether the current block extends beyond the boundaries of the picture;
[0039] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size;
[0040] - encoding in the bitstream a current partitioning mode of the current block determined in response to the allowed partitioning modes; and
[0041] - Encode the current block in the bitstream according to the current partitioning mode.
[0042] Disclosed is an encoding device configured to encode a current block, the current block including at least a portion of a picture, the encoding device comprising:
[0043] - means for determining whether the current block extends beyond the boundaries of the picture;
[0044] - means for determining, for each of a plurality of partitioning modes, whether said partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size;
[0045] - means for encoding in a bitstream a current partitioning mode of a current block determined in response to the allowed partitioning modes; and
[0046] - means for encoding a current block in a bitstream according to a current partitioning mode.
[0047] Disclosed is a coding device comprising a communication interface configured to access at least a current block, the current block comprising at least a portion of a picture. The coding device also comprises at least one processor, the at least one processor being configured to:
[0048] - Determine whether the current block extends beyond the boundaries of the picture;
[0049] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size;
[0050] - encoding in the bitstream a current partitioning mode of the current block determined in response to the allowed partitioning modes; and
[0051] - Encode the current block being accessed in the bitstream according to the current partitioning mode.
[0052] A bitstream is disclosed, comprising:
[0053] - coded data representing a current partitioning mode of a current block determined in response to the allowed partitioning modes, the current block comprising at least a portion of a picture;
[0054] - represents the coded data of the current block coded according to the current partitioning mode;
[0055] The allowed split modes are determined by:
[0056] - Determine whether the current block extends beyond the boundaries of the picture;
[0057] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size.
[0058] A non-transitory processor-readable medium having stored thereon a bitstream, the bitstream comprising:
[0059] - coded data representing a current partitioning mode of a current block determined in response to the allowed partitioning modes, the current block comprising at least a portion of a picture;
[0060] - represents the coded data of the current block coded according to the current partitioning mode;
[0061] The allowed split modes are determined by:
[0062] - Determine whether the current block extends beyond the boundaries of the picture;
[0063] - for each of a plurality of partitioning modes, determining whether the partitioning mode is allowed for the current block by checking whether at least one of the partitioning lines is co-located with one of the picture boundaries or whether the size of the block portion inside the picture along the picture boundary is a multiple of the minimum block size.
[0064] Also disclosed are a sending method and device for sending the bit stream.
[0065] The following embodiments are applicable to the encoding method, encoding device, bit stream, processor-readable medium, sending method, and sending device disclosed above.
[0066] The plurality of segmentation modes include at least two of the following segmentation modes, where h is a height of the current block and w is a width of the current block:
[0067] - Split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4;
[0068] - Split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4;
[0069] - Split the block vertically into a left sub-block of width w / 4 and a right sub-block of width 3w / 4;
[0070] - Split the block vertically into a right sub-block of width w / 4 and a left sub-block of width 3w / 4;
[0071] - Split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2, and a sub-block of height h / 4;
[0072] - Split the block vertically into a sub-block of width w / 4, a middle sub-block of width w / 2, and a sub-block of width w / 4;
[0073] - split the block horizontally into two sub-blocks of height h / 2; and
[0074] - Split the block vertically into two sub-blocks of width w / 2.
[0075] According to specific characteristics, the minimum block size in at least one of the height and the width is equal to 4. BRIEF DESCRIPTION OF THE DRAWINGS
[0076] - Figure 1 represents a coding tree unit that is divided into smaller coding units according to various partitioning modes;
[0077] - Figure 2 Represented as a tree Figure 1 Splitting of coding tree units;
[0078] - Figure 3 A symmetric binary partitioning pattern is shown in addition to the quadtree and no partitioning patterns;
[0079] - Figure 4 An asymmetric segmentation pattern is shown;
[0080] - Figure 5 A symmetric three-way segmentation pattern is shown;
[0081] - Figure 6 Represents blocks partitioned by a quadtree that extends beyond the picture boundaries;
[0082] - Figure 7 represents an exemplary architecture of a transmitter configured to encode a picture in a bitstream according to a specific and non-limiting embodiment;
[0083] - Figure 8 An exemplary video encoder according to a specific and non-limiting embodiment is shown;
[0084] - Fig. 9 represents an exemplary architecture of a receiver configured to decode a picture in a bitstream according to a specific and non-limiting embodiment;
[0085] - Fig.10 An exemplary video decoder according to a specific and non-limiting embodiment is shown;
[0086] - Fig.11 A flowchart representing a method for decoding a picture block from a bitstream according to a specific and non-limiting embodiment;
[0087] - Fig.12 A flowchart representing a method for decoding a grammar according to a specific and non-limiting embodiment;
[0088] - Fig.13 Represents the partitioning of blocks that extend beyond the picture boundaries;
[0089] - Fig.14 and Fig.15 shows the pruning of the grammar;
[0090] - Fig.16 Represents partitions of blocks that extend beyond picture boundaries; and
[0091] - Fig.17 A flowchart representing a method for encoding a picture block in a bitstream according to a specific and non-limiting embodiment. DETAILED DESCRIPTION
[0092] It should be understood that the drawings and descriptions have been simplified to illustrate elements relevant to a clear understanding of the present principles, while many other elements present in typical encoding and / or decoding devices have been eliminated for clarity. It will be understood that, although the terms first and second may be used herein to describe various elements, these elements should not be limited by these terms. These terms are only used to distinguish one element from another element.
[0093] A picture is an array of luma samples in monochrome format, or an array of luma samples and two corresponding arrays of chroma samples in 4:2:0, 4:2:2, and 4:4:4 color formats. In general, a "block" addresses a specific area in the sample array (e.g., luma Y), and a "unit" contains a concatenated block of all color components (luma Y and possibly chroma Cb and chroma Cr). A slice is an integer number of basic coding units (such as HEVC coding tree units or H.264 macroblock units). A slice can consist of a complete picture or a portion of a complete picture. Each slice can contain one or more slice fragments.
[0094] In the following, the term "block" or "picture block" may be used to refer to any of CTU, CU, PU, TU, CB, PB and TB. In addition, the term "block" or "picture block" may be used to refer to macroblocks, partitions and sub-blocks as specified in H.264 / AVC or other video coding standards, and more generally to sample arrays of various sizes. JEM does not distinguish between CU, PU and TU because a CU is a block of samples on which the same transform and prediction information is applied. A CU can be partitioned into several coding units according to a partitioning mode. The lines that separate the coding units in a larger coding unit are called partitioning lines.
[0095] In the following, the words "reconstructed" and "decoded" may be used interchangeably. Typically, but not necessarily, "reconstructed" is used on the encoder side, while "decoded" is used on the decoder side. It should be noted that the term "decoded" or "reconstructed" may mean that the bitstream is partially "decoded" or "reconstructed", for example, a signal obtained after deblocking filtering but before SAO filtering, and the reconstructed samples may be different from the final decoded output for display. We may also use the terms "image", "picture" and "frame" interchangeably. We may use the terms "demarcation" and "boundary" interchangeably.
[0096] Various embodiments are described with respect to the HEVC standard. However, the present principles are not limited to HEVC and may be applied to other standards, recommendations and extensions thereof, including, for example, HEVC or HEVC extensions such as format range (RExt), scalability (SHVC), multi-view (MV-HEVC) extensions and H.266. Various embodiments are described with respect to encoding / decoding of slices. They may be applied to encoding / decoding an entire picture or an entire sequence of pictures.
[0097] Various methods are described above, and each method includes one or more steps or actions for implementing the described method. Unless a specific step or action sequence is required for the correct operation of the method, the order and / or use of specific steps and / or actions can be modified or combined.
[0098] allow Figure 3 , Figure 4 and Figure 5 The new partitioning modes depicted above may significantly increase the signaling cost. Therefore, there is a need to improve the syntax without reducing the quality of the reconstructed picture. Blocks that are completely inside a picture can use all types of partitioning modes. However, for blocks located on the borders / boundaries of a picture, especially at the right and bottom borders of a picture (in the case of classic raster scan order or Z-scan), some partitioning modes may not be allowed, especially if the block extends outside the picture. In HEVC and JEM, in the case where a block partially extends outside the picture, the block must be separated according to the following rules: Figure 6The quadtree depicted above is used for segmentation. In this case, since a single segmentation mode is allowed for these blocks that are partially outside the picture, there is no need to signal the segmentation mode. In fact, once it is determined that the block partially extends outside the picture, the segmentation mode of the block is inferred to be quadtree segmentation (e.g., QT_SPLIT). However, by inferring the segmentation mode as quadtree segmentation, the quality of the reconstructed blocks at the boundaries of the picture may be reduced because the number of segmentation modes for encoding the block is greatly limited. In addition, this method requires that the width and height of the picture are multiples of the minimum coding block size (typically 4 pixels) to ensure that the boundaries of the picture are reached by continuous quadtree segmentation. In the case of multiple tiles or slices in a frame, the same problem will occur at the boundaries of the tiles / slices. This may cause similar quality issues at the boundaries of tiles / slices, especially if used with certain layouts of 360° video.
[0099] Figure 7 1 shows an exemplary architecture of a transmitter 1000 configured to encode a picture in a bitstream according to a specific and non-limiting embodiment.
[0100] The transmitter 1000 includes: one or more processors 1005, which may include, for example, a CPU, a GPU and / or a DSP (English abbreviation for digital signal processor); and an internal memory 1030 (e.g., RAM, ROM, and / or EPROM). The transmitter 1000 includes: one or more communication interfaces 1010 (e.g., keyboard, mouse, touchpad, webcam), each of which is suitable for displaying output information and / or allowing a user to input commands and / or data; and a power supply 1020 that may be external to the transmitter 1000. The transmitter 1000 may also include one or more network interfaces (not shown). The encoder module 1040 represents a module that can be included in the device to perform encoding functions. In addition, the encoder module 1040 may be implemented as a separate element of the transmitter 1000, or may be incorporated into the (multiple) processors 1005 as a combination of hardware and software known to those skilled in the art.
[0101] The image can be obtained from a source. According to different embodiments, the source can be but is not limited to:
[0102] - local storage, e.g. video memory, RAM, flash memory, hard disk;
[0103] - storage interfaces, e.g. to mass storage, ROM, optical disk or magnetic support;
[0104] - a communication interface, for example, a wired interface (eg, a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as an IEEE 802.11 interface or a Bluetooth interface); and
[0105] - Picture capture circuitry (eg a sensor such as, for example, a CCD (or Charge Coupled Device) or a CMOS (or Complementary Metal Oxide Semiconductor)).
[0106] According to different embodiments, the bitstream can be transmitted to the destination. As an example, the bitstream is stored in a remote or local memory, such as a video memory or RAM, a hard disk. In a variant, the bitstream is transmitted to a storage interface (e.g., an interface with a mass storage, ROM, flash memory, optical disk or magnetic support) and / or sent through a communication interface (e.g., an interface to a point-to-point link, a communication bus, a point-to-multipoint link or a broadcast network).
[0107] According to an exemplary and non-limiting embodiment, the transmitter 1000 further comprises a computer program stored in the memory 1030. The computer program comprises instructions which, when executed by the transmitter 1000, in particular by the processor 1005, enable the transmitter 1000 to perform the reference Fig.17 According to a variant, the computer program is stored external to the transmitter 1000 on a non-transitory digital data support (e.g. on an external storage medium such as a HDD, a CD-ROM, a DVD, a read-only and / or DVD drive and / or a DVD read / write drive, all of which are known in the art). The transmitter 1000 thus comprises a mechanism for reading the computer program. In addition, the transmitter 1000 can access one or more storage devices of the Universal Serial Bus (USB) type (e.g. a "memory stick") via corresponding USB ports (not shown).
[0108] According to an exemplary and non-limiting embodiment, the transmitter 1000 may be, but is not limited to:
[0109] -mobile device;
[0110] -communication equipment;
[0111] -Gaming equipment;
[0112] - Tablet (or tablet computer);
[0113] - Laptop;
[0114] -Still picture camera;
[0115] - Camera;
[0116] - Coding chip or coding device / means;
[0117] -Still picture server; and
[0118] - Video server (eg, broadcast server, video-on-demand server, or web server).
[0119] Figure 8 shows a suitable Fig.17 The encoder 100 is an example of a transmitter 1000 or a part of such a transmitter 1000.
[0120] For encoding, pictures are typically partitioned into basic coding units, for example, into coding tree units (CTUs) in HEVC or into macroblock units in H.264. A set of possibly consecutive basic coding units is grouped into slices. A basic coding unit contains basic coding blocks for all color components. In HEVC, the minimum CTB size of 16×16 corresponds to the macroblock size used in previous video coding standards. It will be understood that although the terms CTU and CTB are used herein to describe encoding / decoding methods and encoding / decoding devices, these methods and devices should not be limited to these specific terms that may be worded differently (e.g., macroblocks) in other standards such as H.264.
[0121] In the exemplary encoder 100, a picture is encoded by encoder elements as described below. The picture to be encoded is processed in units of CUs, which can be square in HEVC or rectangular in JEM. Each CU is encoded using intra or inter mode. When a CU is encoded in intra mode, it performs intra prediction (160). In inter mode, motion estimation (175) and compensation (170) are performed. The encoder decides (105) which of intra mode or inter mode to use to encode the CU, and indicates the intra / inter decision through a prediction mode flag. The residual is calculated by subtracting (110) a predicted sample block (also called a predictor) from the original picture block.
[0122] A CU in intra mode can be predicted from reconstructed neighboring samples within the same slice. A set of 35 intra prediction modes are available in HEVC, including DC, planar, and 33 angular prediction modes. Intra prediction references are reconstructed from rows and columns adjacent to the current block.
[0123] For inter CU, as in HEVC, the corresponding coding block can be further partitioned into one or more prediction blocks. Inter prediction is performed at the PB level, and the corresponding PU contains information on how to perform inter prediction.
[0124] The residual is transformed (125) and quantized (130). The quantized transform coefficients as well as the motion vectors and other syntax elements are entropy encoded (145) to output a bitstream. The encoder can also skip the transform and apply quantization directly to the untransformed residual signal on a 4×4TU basis. The encoder can also bypass both the transform and quantization, i.e., encode the residual directly without applying the transform or quantization process. In direct PCM encoding, prediction is not applied, and the coding unit samples are encoded directly into the bitstream.
[0125] The encoder comprises a decoding loop and thus decodes the coded block to provide a reference for further prediction. The quantized transform coefficients are dequantized (140) and inverse transformed (150) to decode the residual. The picture block is reconstructed by combining (155) the decoded residual and the predicted sample block. An in-loop filter (165) is applied to the reconstructed picture to, for example, perform deblocking / SAO (sample adaptive offset) filtering to reduce coding artifacts. The filtered picture can be stored in a reference picture buffer (180) and used as a reference for other pictures.
[0126] Fig. 9 1 shows an exemplary architecture of a receiver 2000 according to a specific and non-limiting embodiment, the receiver 2000 being configured to decode a picture from a bitstream to obtain a decoded picture.
[0127] The receiver 2000 includes: one or more processors 2005, which may include, for example, a CPU, a GPU and / or a DSP (English abbreviation for a digital signal processor); and an internal memory 2030 (e.g., RAM, ROM and / or EPROM). The receiver 2000 includes: one or more communication interfaces 2010 (e.g., keyboard, mouse, touchpad, webcam), each of which is suitable for displaying output information and / or allowing a user to input commands and / or data (e.g., decoded pictures); and a power supply 2020 that may be external to the receiver 2000. The receiver 2000 may also include one or more network interfaces (not shown). The decoder module 2040 represents a module that may be included in the device to perform a decoding function. In addition, the decoder module 2040 may be implemented as a separate element of the receiver 2000, or may be incorporated into the processor(s) 2005 as a combination of hardware and software known to those skilled in the art.
[0128] The bitstream may be obtained from a source. According to different embodiments, the source may be, but is not limited to:
[0129] - local storage, e.g. video memory, RAM, flash memory, hard disk;
[0130] - storage interfaces, e.g. to mass storage, ROM, optical disk or magnetic support;
[0131] - a communication interface, for example, a wired interface (eg, a bus interface, a wide area network interface, a local area network interface) or a wireless interface (such as an IEEE 802.11 interface or a Bluetooth interface); and
[0132] - Image capture circuitry (eg, a sensor such as, for example, a CCD (or Charge Coupled Device) or a CMOS (or Complementary Metal Oxide Semiconductor)).
[0133] According to different embodiments, the decoded picture can be transmitted to a destination, such as a display device. As an example, the decoded picture is stored in a remote or local memory, such as a video memory or RAM, a hard disk. In a variant, the decoded picture is transmitted to a storage interface (e.g., an interface with a mass storage, ROM, flash memory, optical disk, or magnetic support) and / or sent via a communication interface (e.g., an interface to a point-to-point link, a communication bus, a point-to-multipoint link, or a broadcast network).
[0134] According to a particular and non-limiting embodiment, the receiver 2000 further comprises a computer program stored in the memory 2030. The computer program comprises instructions which, when executed by the receiver 2000, in particular by the processor 2005, enable the receiver to perform the reference Fig.11 According to a variant, the computer program is stored external to the receiver 2000 on a non-transitory digital data support (e.g. on an external storage medium such as a HDD, a CD-ROM, a DVD, a read-only and / or DVD drive and / or a DVD read / write drive, all of which are known in the art). The receiver 2000 thus comprises a mechanism for reading the computer program. In addition, the receiver 2000 can access one or more storage devices of the Universal Serial Bus (USB) type (e.g. a "memory stick") through corresponding USB ports (not shown).
[0135] According to an exemplary and non-limiting embodiment, the receiver 2000 may be, but is not limited to:
[0136] -mobile device;
[0137] -communication equipment;
[0138] -Gaming equipment;
[0139] - Set-top box;
[0140] -TV set;
[0141] - Tablet (or tablet computer);
[0142] - Laptop;
[0143] - Video players, such as Blu-ray players, DVD players;
[0144] - a display; and
[0145] -Decoding chip or decoding device / apparatus.
[0146] Fig.10 shows a suitable Fig.11 The exemplary video decoder 200 of the decoding method of the present invention is an example of a HEVC video decoder or a JEM type decoder. The video decoder 200 is an example of a receiver 2000 or a part of such a receiver 2000. In the exemplary decoder 200, the bitstream is decoded by a decoder element as described below. The video decoder 200 generally performs the same as Figure 8 The encoding channel described in contrast to the decoding channel, which performs video decoding as part of encoding the video data.
[0147] In particular, the input to the decoder comprises a video bitstream that may be generated by the video encoder 100. The bitstream is first entropy decoded (230) to obtain transform coefficients, motion vectors, and other encoding information. The transform coefficients are dequantized (240) and inverse transformed (250) to decode the residual. The decoded residual is then combined (255) with a predicted sample block (also referred to as a predictor) to obtain a decoded / reconstructed picture block. The predicted sample block may be obtained (270) from an intra-frame prediction (260) or a motion compensated prediction (i.e., inter-frame prediction) (275). An in-loop filter (265) is applied to the reconstructed picture. The in-loop filter may include a deblocking filter and a SAO filter. The filtered picture is stored in a reference picture buffer (280).
[0148] Fig.11 A flow chart representing a method for decoding a current block from a bitstream according to a specific and non-limiting embodiment, wherein the current block comprises at least a portion of a picture.
[0149] The method starts at step S200. At step S210, a receiver 2000, such as a decoder 200, accesses a bitstream.
[0150] In step S220, the receiver determines whether the current block to be decoded is partially outside the picture, that is, whether it extends beyond one boundary of the picture. This can be determined by calculating Diff_X and Diff_Y as follows:
[0151] Diff_X=blkPosX+width-frameWidth; and
[0152] Diff_Y=blkPosY+height-frameHeight
[0153] Wherein, blkPosX is the position of the current block in X, such as the coordinate of the upper left pixel of the block in X, and blkPosY is the position of the current block in Y, such as the coordinate of the upper left pixel of the block in Y, width is the block width, height is the block height, frameWidth is the picture width, and frameHeight is the picture height. If Diff_X<=0 and Diff_Y<=0, the block is completely inside the picture, if Diff_X>0&&Diff_Y<=0, the right part of the block is outside the picture, if Diff_X>0&&Diff_Y<=0, the bottom part of the block is outside the picture, otherwise the right part and the bottom part of the block are outside the picture.
[0154] In the case where the current block is partially outside the picture, the method continues at step S230, otherwise the method continues at step S240. In the latter case, the block is completely inside the picture and all segmentation modes may be allowed. In specific cases, certain segmentation modes may not be allowed for blocks that are completely inside the picture. For example, if the width of the block is equal to the minimum width authorized for the block (e.g. 4 pixels), the vertical segmentation mode is not allowed. Similarly, if the height of the block is equal to the minimum height authorized for the block (e.g. 4 pixels), the horizontal segmentation mode is not allowed. In addition, for example, for certain specific profiles, certain segmentation modes may be disabled via high-level syntax elements. In the latter case, the disabled segmentation modes are not allowed for all blocks of the image or possibly all blocks of the video. In the case where the current block is like, for example Figure 6 In the specific case where the lower-right block in the image is outside the picture both horizontally and vertically, no splitting mode except QT_SPLIT is allowed.
[0155] In step S230, for each of the plurality of segmentation modes, the receiver determines whether the current block is allowed to undergo segmentation according to the segmentation mode by checking whether at least one of the segmentation lines is co-located with one of the picture boundaries. In an exemplary embodiment, the plurality of segmentation modes include the following segmentation modes: HOR_UP, HOR_DOWN, HOR_TRIPLE, HOR, VER_TRIPLE, VER, VER_LEFT, VER_RIGHT. Typically, but not necessarily, segmentation modes other than the QT_SPLIT mode are only checked when deciding to segment according to the QT_SPLIT mode. In a variant, the plurality of segmentation modes include a subset of the previously listed segmentation modes. With the introduction of a ternary segmentation mode or an asymmetric binary segmentation mode, many different segmentations may be used to reach the picture boundary. In this embodiment, if the segmentation line is exactly on the picture boundary, the asymmetric binary segmentation mode is allowed at the boundary of the picture of the current block. If the first segmentation line or the second segmentation line is exactly on the frame boundary, the ternary segmentation mode is allowed at the boundary of the picture of the current block.
[0156] In a particular embodiment, the allowed split modes are specified as follows.
[0157] The mode NO_SPLIT is only allowed if the block is completely inside the picture, otherwise it is not allowed. The flag noSplitAllowed is set to 1 (or to true) to indicate that the NO_SPLIT mode is allowed.
[0158] The mode HOR is allowed if the block does not extend beyond the border of the picture on the right (or left, depending on the scanning order). In a variant, the mode HOR is allowed if the right part of the block does not extend beyond the border of the picture on the right, and in the case where the block extends beyond the border of the bottom of the picture, if the boundary of the picture and the horizontal dividing line generated by the HOR partition are co-located. In this case, the flag binaryHorAllowed is set to 1 to indicate that the corresponding partitioning mode is allowed for the current block.
[0159] VER mode is allowed if the block does not extend beyond the border at the bottom (or top, depending on the scan order) of the picture. In a variant, VER mode is allowed if the block does not extend beyond the border at the bottom of the picture, and in the case where the block extends beyond the border at the right side of the picture, if the picture boundary and the vertical dividing line resulting from the VER partition are co-located.
[0160] In this case, the flag binaryVerAllowed is set to 1 to indicate that the corresponding partitioning mode is allowed for the current block.
[0161] Mode HOR_TRIPLE is allowed if the block does not extend beyond the border on the right side of the picture, and in case the block extends beyond the border on the bottom side of the picture, if the picture boundary is co-located with one of the horizontal division lines resulting from HOR_TRIPLE segmentation, i.e., if blkPosY+height / 4 is equal to frameHeight, or if blkPosY+3*height / 4 is equal to frameHeight. The flag horizontalTripleAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0162] Mode VER_TRIPLE is allowed if the block does not extend beyond the bottom boundary of the picture, and if the picture boundary is co-located with one of the vertical division lines resulting from VER_TRIPLE division, i.e., if blkPosX+width / 4 is equal to frameWidth, or if blkPosX+3*width / 4 is equal to frameWidth. The flag verticalTripleAllowed is set to 1 to indicate that the corresponding division mode is allowed for the current block.
[0163] If the block does not extend beyond the border of the picture on the right, and in the case where the block extends beyond the border of the picture on the bottom, if the picture boundary is co-located with the horizontal dividing line generated by the HOR_UP segmentation, that is, if blkPosY+height / 4 is equal to frameHeight, then HOR_UP is allowed. The flag horUpAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0164] If the block does not extend beyond the border of the picture on the right, and in the case where the block extends beyond the border of the picture on the bottom, if the picture boundary is co-located with the horizontal dividing line generated by the HOR_DOWN segmentation, that is, if blkPosY+3*height / 4 is equal to frameHeight, then HOR_DOWN is allowed. The flag horDownAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0165] VER_LEFT is allowed if the block does not extend beyond the bottom boundary of the picture, and if the block extends beyond the right boundary of the picture, if the picture boundary is co-located with the vertical dividing line resulting from VER_LEFT splitting, that is, if blkPosX+width / 4 is equal to frameWidth. The flag verLeftAllowed is set to 1 to indicate that the corresponding splitting mode is allowed for the current block.
[0166] If the block does not extend beyond the bottom boundary of the picture, and in the case where the block extends beyond the right boundary of the picture, if the picture boundary is co-located with the vertical dividing line generated by the VER_RIGHT segmentation, that is, if blkPosX+3*width / 4 is equal to frameWidth, then VER_RIGHT is allowed. The flag verRightAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0167] In variations, additional partitioning constraints may be added to the above admissibility determination.
[0168] The horBinaryOrTripleAllowed flag is set to 1 if at least one of the HOR and HOR_TRIPLE segmentation modes is allowed.
[0169] If at least one of the VER and VER_TRIPLE segmentation modes is allowed, the verBinaryOrTripleAllowed flag is set to 1.
[0170] If at least one of the vertical split modes is allowed, the verticalSplitAllowed flag is set to 1. If at least one of the horizontal split modes is allowed, the horizontalSplitAllowed flag is set to 1.
[0171] If at least one of the asymmetric horizontal split modes is allowed, the horizontalAsymmetricAllowed flag is set to 1.
[0172] If at least one of the asymmetric vertical split modes is allowed, the verticalAsymmetricAllowed flag is set to 1.
[0173] In step S240, the receiver decodes the current partitioning mode of the current block from the accessed bitstream in response to the allowed partitioning mode determined in step S230. In practice, knowing the allowed modes of the current block makes it possible to simplify signaling and thus save bits. By combining the syntax in Table 1 Fig.12 To provide an example. In Table 1 and Fig.12 In , by convention, the value true is equal to 1, and the value false is equal to 0. Therefore, a syntax element being true is equivalent to the syntax element being equal to 1, and a syntax element being false is equivalent to the syntax element being equal to 0. In Table 1, syntax elements decoded from the bitstream are indicated in bold.
[0174]
[0175] exist Fig.12Above, only the steps related to the binary partitioning mode decoding of the current block are shown.
[0176] In step S1020, the receiver checks whether binary or ternary splitting and NO_SPLIT mode are allowed for the current block to be decoded. Checking whether binary / ternary splitting is allowed (btSplitAllowed()) typically includes checking whether the current block width (w) or the current block height (h) is above a threshold (minBTSize). A typical minimum rectangular block size in width or height is minBTSize=4.
[0177] If binary / ternary segmentation is not allowed, the block is not segmented (btSplitMode is set to NO_SPLIT at step S1045), and other syntax elements related to segmentation are not decoded. If both binary segmentation and NO_SPLIT mode are allowed, a flag btSplitFlag indicating whether the current block is segmented is decoded from the bitstream at step S1030.
[0178] Otherwise (if binary / ternary segmentation is allowed and NO_SPLIT mode is not allowed), btSplitFlag is not decoded and inferred to be equal to 1 (or true), and the method continues at step S1050. For a current block that partially extends beyond the boundary of the picture, NO_SPLIT mode is not allowed, so btSplitFlag is not decoded and inferred to be equal to 1.
[0179] In step S1040, the receiver checks whether the current block is split. If the current block is not split (eg, btSplitFlag is false in step S1040), other syntax elements related to the split are not decoded. In step S1045, btSplitMode is set to NO_SPLIT.
[0180] In the case that the current block is split (btSplitFlag is true at step S1040), the receiver determines at step S1050 whether both horizontal and vertical split modes are allowed for the current block. If both horizontal and vertical split modes are allowed, a syntax element (btSplitOrientation) is decoded at step S1060 to indicate the binary split direction (horizontal or vertical). If horizontal or vertical split is not allowed, the syntax element (btSplitOrientation) is not decoded. In the latter case, the binary split direction is inferred. If horizontal split is not allowed (horizontalSplitAllowed is equal to 0 or false), btSplitOrientation is inferred to be equal to OrientationVER. Otherwise, if vertical split is not allowed (verticalSplitAllowed is equal to 0 or false), btSplitOrientation is inferred to be equal to OrientationHOR.
[0181] The receiver then checks, in step S1070, whether the flags horizontalAsymmetricAllowed and horizontalBinOrTripleAllowed are both true. If both flags are true, the syntax element (asymmetricSplitFlag) is decoded in step S1090, and the method continues in step S1100. If horizontalAsymmetricAllowed is true and horizontalBinOrTripleAllowed is false, it is inferred that asymmetricSplitFlag is equal to true, and the method continues in step S1100. Otherwise (horizontalAsymmetricAllowed is false and horizontalBinOrTripleAllowed is true), it is inferred that asymmetricSplitFlag is equal to false, and the method continues in step S1100.
[0182] In step S1100, the receiver checks whether the flag asymmetricSplitFlag is true or false. If asymmetricSplitFlag is true, the method continues in step S1110, otherwise the method continues in step S1120.
[0183] In step S1110, the receiver checks whether the flags horUpAllowed and horDownAllowed are both true. If both flags are true, the syntax element horizontalAsymmetricType is decoded in step S1112, otherwise (if one of the flags is false), if horDownAllowed is false, the partitioning mode of the block is inferred to be HOR_UP, or if horUpAllowed is false, the partitioning mode of the block is inferred to be HOR_DOWN.
[0184] In step S1120, the receiver checks whether the flags binaryHorAllowed and horizontalTripleAllowed are both true. If both flags are true, the syntax element horizontalTripleFlag is decoded in step S1122, otherwise (if one of the flags is false), if binaryHorAllowed is false, the segmentation mode of the block is inferred to be HOR_TRIPLE, or if horizontalTripleAllowed is false, the segmentation mode of the block is inferred to be HOR.
[0185] For the vertical direction, the receiver proceeds in the same manner.
[0186] The receiver checks at step S1080 whether the flags verticalAsymmetricAllowed and verticalBinOrTripleAllowed are both true. If both flags are true, the syntax element (asymmetricSplitFlag) is decoded at step S1090, and the method continues at step S1200. If verticalAsymmetricAllowed is true and verticalBinOrTripleAllowed is false, it is inferred that asymmetricSplitFlag is equal to true, and the method continues at step S1200. Otherwise (verticalAsymmetricAllowed is false and verticalBinOrTripleAllowed is true), it is inferred that asymmetricSplitFlag is equal to false, and the method continues at step S1200.
[0187] In step S1200, the receiver checks whether the flag asymmetricSplitFlag is true or false. If asymmetricSplitFlag is true, the method continues in step S1210, otherwise the method continues in step S1220.
[0188] In step S1210, the receiver checks whether the flags verLeftAllowed and verRightAllowed are both true. If both flags are true, the syntax element verticalAsymmetricType is decoded in step S1212, otherwise (if one of the flags is false), if verRightAllowed is false, the block partition mode btSplitMode is inferred to be VER_LEFT, or if verLeftAllowed is false, the block partition mode btSplitMode is inferred to be VER_RIGHT.
[0189] In step S1220, the receiver checks whether the flags binaryVerAllowed and verticalTripleAllowed are both true. If both flags are true, the syntax element verticalTripleFlag is decoded in step S1222, otherwise (if one of the flags is false), if binaryVerAllowed is false, the block segmentation mode btSplitMode is inferred to be VER_TRIPLE, or if verticalTripleAllowed is false, the block segmentation mode btSplitMode is inferred to be VER.
[0190] As an example, for Fig.13 The upper right block can be Fig.14 The binary tree syntax is pruned as depicted above to remove unnecessary splits. In this example, only VER_TRIPLE and VER_RIGHT are allowed, so only one flag asymmetricSplitFlag is needed to decode the split. Fig.15 In the same way as described above, for Fig.13 For the lower left block of the block, the binary tree syntax can be pruned to remove unnecessary partitions. In this example, only HOR_TRIPLE and HOR_UP are available. These two partitioning modes give the same partitioning of the lower left block, so one of the two partitions can be removed. More generally, in the case where two different partitioning modes give the same partitioning of the block, only one is allowed. Fig.14 and Fig.15 is a graphical representation of the syntax defined in Table 1. Thus, the method according to the present principles implements competition between quadtree partitioning and binary / ternary partitioning at picture boundaries with improved rate-distortion performance.
[0191] In a first variant of step S230, the receiver determines whether to allow the current block to undergo segmentation according to at least one of the multiple segmentation modes by checking whether the size of the remaining part of the block after segmentation (i.e., the width in the case of vertical segmentation or the height in the case of horizontal segmentation) is a multiple of the minimum block size (typically 4 pixels). This embodiment can be combined with the previous embodiment. The remaining part is a part of the block, i.e., the sub-block resulting from the segmentation, which is located inside the picture along the picture boundary. As an example, in a first step, it is checked whether the boundary of the picture is co-located with one of the dividing lines, and if not, it is checked whether the size of the remaining part after segmentation (i.e., the width in the case of vertical segmentation or the height in the case of horizontal segmentation) is a multiple of the minimum block size. In this embodiment, the ternary segmentation mode can be used even when the boundary of the picture is not co-located with one of the dividing lines. Fig.16 , the 64×64 block is vertically split into a left portion with a size of 16×64, a middle portion of 32×64, and a remaining right portion of 8×64 size identified by the hatched blocks.
[0192] Equivalently, asymmetric binary partitioning is allowed if the dimensions of the remaining parts along the picture boundary (width in case of vertical partitioning or height in case of horizontal partitioning) are still multiples of the minimum block size (eg, 4).
[0193] This second embodiment can advantageously be combined with the first embodiment described below.
[0194] The mode NO_SPLIT is allowed only if the block is completely inside the picture, otherwise the mode is not allowed. The flag noSplitAllowed is set to 1 to indicate that the NO_SPLIT mode is allowed.
[0195] The mode HOR is allowed if the block does not extend beyond the right border of the picture. In a variant, the mode HOR is allowed if the right part of the block does not extend beyond the right border of the picture, and in the case where the block extends beyond the border of the bottom of the picture, if the picture boundary and the horizontal dividing line resulting from the HOR partition are co-located, or if the height of the remaining part of the block after the partition is a multiple of the minimum block size. In this case, the flag binaryHorAllowed is set to 1 to indicate that the corresponding partitioning mode is allowed for the current block.
[0196] If the block does not extend beyond the border at the bottom of the picture, the mode VER is allowed. In a variant, if the block does not extend beyond the border at the bottom of the picture, and in the case where the block extends beyond the border at the right of the picture, if the picture boundary and the vertical dividing line resulting from the VER partition are co-located, or if the width of the remaining part of the partitioned block is a multiple of the minimum block size, the mode VER is allowed. In this case, the flag binaryVerAllowed is set to 1 to indicate that the corresponding partitioning mode is allowed for the current block.
[0197] Mode HOR_TRIPLE is allowed if the block does not extend beyond the border on the right side of the picture, and in case the block extends beyond the border on the bottom side of the picture, if the picture boundary is co-located with one of the horizontal division lines resulting from the HOR_TRIPLE division, i.e., if blkPosY+height / 4 is equal to frameHeight, or if blkPosY+3*height / 4 is equal to frameHeight, or if the height of the remaining part of the block after the division is a multiple of the minimum block size. The flag horizontalTripleAllowed is set to 1 to indicate that the corresponding division mode is allowed for the current block.
[0198] Mode VER_TRIPLE is allowed if the block does not extend beyond the bottom border of the picture, and in case the block extends beyond the right border of the picture, if the picture boundary is co-located with one of the vertical division lines resulting from VER_TRIPLE division, i.e., if blkPosX+width / 4 is equal to frameWidth, or if blkPosX+3*width / 4 is equal to frameWidth, or if the width of the remaining part of the block after division is a multiple of the minimum block size. The flag verticalTripleAllowed is set to 1 to indicate that the corresponding division mode is allowed for the current block.
[0199] HOR_UP is allowed if the block does not extend beyond the right boundary of the picture, and in the case where the block extends beyond the bottom boundary of the picture, if the picture boundary is co-located with the horizontal dividing line resulting from the HOR_UP segmentation, that is, if blkPosY+height / 4 is equal to frameHeight, or if the height of the remaining part of the block after the segmentation is a multiple of the minimum block size. The flag horUpAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0200] HOR_DOWN is allowed if the block does not extend beyond the right boundary of the picture, and in the case where the block extends beyond the bottom boundary of the picture, if the picture boundary is co-located with the horizontal dividing line resulting from the HOR_DOWN segmentation, that is, if blkPosY+3*height / 4 is equal to frameHeight, or if the height of the remaining part of the block after the segmentation is a multiple of the minimum block size. The flag horDownAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0201] VER_LEFT is allowed if the block does not extend beyond the bottom boundary of the picture, and if the block extends beyond the right boundary of the picture, if the picture boundary is co-located with the vertical dividing line resulting from the VER_LEFT split, that is, if blkPosX+width / 4 is equal to frameWidth, or if the width of the remaining part of the block after the split is a multiple of the minimum block size. The flag verLeftAllowed is set to 1 to indicate that the corresponding split mode is allowed for the current block.
[0202] VER_RIGHT is allowed if the block does not extend beyond the bottom boundary of the picture, and in the case where the block extends beyond the right boundary of the picture, if the picture boundary is co-located with the vertical dividing line resulting from the VER_RIGHT segmentation, that is, if blkPosX+3*width / 4 is equal to frameWidth, or if the width of the remaining part of the block after the segmentation is a multiple of the minimum block size. The flag verRightAllowed is set to 1 to indicate that the corresponding segmentation mode is allowed for the current block.
[0203] In a second variation of S230, if the current block partially extends beyond the boundary of the picture, the size of the remaining portion of the current block is calculated. It is then checked whether a transform (e.g., DCT or DST) is available to transform the remaining portion into a coefficient block. If such a transform is available, the current block can be encoded without further segmentation. In this case, the segmentation mode NO_SPLIT is indicated as allowed by setting the flag noSplitAllowed to 1. In the latter case, the flag is decoded to indicate whether the block is effectively not segmented, or whether the block is further segmented according to a segmentation mode (e.g., such as a quadtree). In a specific embodiment, for such a block, other segmentation modes, either binary or ternary, are not allowed. In a variation, all of these segmentation modes are allowed except the quadtree segmentation mode.
[0204] As an example, for a current block of size 16×16 with a remainder of size 4×16, NO_SPLIT is allowed for the current block since the block of size 4×16 may be transformed using a 1D transform of sizes 4 and 16. In this second variant, the NO_SPLIT mode may therefore be allowed even for blocks extending outside the boundaries of the picture.
[0205] In another example, for a current block of size 16×16 with a remainder of size 12×16, NO_SPLIT is allowed for the current block only if asymmetric splitting is enabled. In fact, in this case, the size of the 3×2 N The transform is used to transform the 12×16 block. When asymmetric partitioning is enabled, the size is 3×2 N Such transforms are available. In case asymmetric splitting is disabled, only power-of-2 transforms are available. In the latter case, blocks 12×16 must be split, i.e., the NO_SLPIT mode is therefore not allowed. For example, for some profiles asymmetric splitting can be disabled via a high-level syntax element.
[0206] At step S250, the current block is decoded according to the current partitioning mode. To this end, each subblock of the block obtained by partitioning the current block according to the partitioning mode is decoded.
[0207] Decoding a block (e.g., one of the sub-blocks of the current block) typically, but not necessarily, includes entropy decoding a portion of a bitstream representing the block to obtain a transform coefficient block, dequantizing and inverse transforming the transform coefficient block to obtain a residual block, and adding a predictor to the residual block to obtain a decoded block.
[0208] Fig.17 A flowchart representing a method for encoding a picture block in a bitstream according to a specific and non-limiting embodiment.
[0209] The method starts at step S100. At step S110, a transmitter such as encoder 100 accesses a current block containing at least a portion of a picture. At step S120, the transmitter determines whether the current block is partially outside the picture, i.e., whether it extends beyond a boundary of the picture. This step is equivalent to step S220 of the decoding method.
[0210] In the case where the current block is partially outside the picture, the method continues at step S130, otherwise the method continues at step S140. In the latter case, the block is completely inside the picture and all segmentation modes can be allowed. In step S130, for each of the multiple segmentation modes, the transmitter determines whether the current block is allowed to undergo segmentation according to the segmentation mode by checking whether at least one of the segmentation lines is co-located with one of the picture boundaries. This step is equivalent to step S230 of the decoding method. All embodiments and variations disclosed about the decoding method are also applicable to the encoding method. In step S140, the transmitter determines the current segmentation mode of the accessed block in response to the allowed segmentation mode, and encodes the current segmentation mode in the bitstream for the current block. The segmentation mode can be selected among the allowed modes based on the rate-distortion criterion. Each allowed segmentation mode can be tested, and the mode that provides the best rate-distortion trade-off can be selected as the segmentation mode to encode the current block.
[0211] In step S150, the transmitter encodes the accessed block into a bitstream according to the current segmentation mode. For this purpose, the current block can be segmented into several sub-blocks according to the segmentation mode. Encoding a block (e.g., a sub-block) typically but not necessarily includes subtracting a predictor from the block to obtain a residual block, transforming the residual block into a transform coefficient block, quantizing the coefficient block with a quantization step size QP to obtain a quantized transform coefficient block, and entropy encoding the quantized transform coefficient block in the bitstream. Reconstructing the block at the encoder side typically but not necessarily includes dequantizing and inverse transforming the quantized transform coefficient block to obtain a residual block, and adding the predictor to the residual block to obtain a decoded block.
[0212] The method ends at step S180.
[0213] The implementation described herein may be implemented, for example, in a method or process, a device, a software program, a data stream, or a signal. Even if only discussed in the context of a single form of implementation (e.g., discussed only as a method or device), the implementation of the features discussed may also be implemented in other forms (e.g., programs). Devices may be implemented, for example, in appropriate hardware, software, and firmware. Methods may be implemented, for example, in devices such as, for example, processors (which typically involve processing devices, including, for example, computers, microprocessors, integrated circuits, or programmable logic devices). Processors also include communication devices, such as, for example, computers, cellular phones, portable / personal digital assistants ("PDAs"), and other devices that facilitate information communication between end users.
[0214] The implementation of various processing and features described herein can be embodied in various different equipment or applications, particularly for example equipment or applications. Examples of such equipment include encoders, decoders, postprocessors for processing outputs from decoders, preprocessors for providing inputs to encoders, video encoders, video decoders, video codecs, web servers, set-top boxes, laptop computers, personal computers, cellular phones, PDAs and other communication devices. It should be clear that equipment can be mobile and even installed in mobile vehicles.
[0215] In addition, the method may be implemented by instructions executed by a processor, and such instructions (and / or data values produced by the implementation) may be stored on a processor-readable medium, such as, for example, an integrated circuit, a software carrier, or other storage device such as, for example, a hard disk, a compact disk (CD), an optical disk (such as, for example, a DVD, often referred to as a digital versatile disk or digital video disk), a random access memory ("RAM"), or a read-only memory ("ROM"). The instructions may form an application tangibly embodied on a processor-readable medium. The instructions may, for example, be in hardware, firmware, software, or a combination. The instructions may exist, for example, in an operating system, a separate application, or a combination of both. Thus, for example, a processor may be characterized as both a device configured to perform a process and a device that includes a processor-readable medium (e.g., a storage device) having instructions for performing the process. Furthermore, in addition to or in lieu of the instructions, the processor-readable medium may store data values produced by the implementation.
[0216] As will be apparent to those skilled in the art, implementations may generate various signals formatted to carry information that may be stored or transmitted, for example. The information may include, for example, instructions for performing a method, or data generated by one of the described implementations. For example, a signal may be formatted to carry as data the rules for writing or reading the grammar of the described embodiments, or to carry as data the actual grammar values written by the described embodiments. For example, such a signal may be formatted as an electromagnetic wave (e.g., using the radio frequency portion of the spectrum) or a baseband signal. For example, formatting may include encoding a data stream and modulating a carrier with the encoded data stream. The information carried by the signal may be, for example, analog or digital information. As is known, the signal may be sent over a variety of different wired or wireless links. The signal may be stored on a processor-readable medium.
[0217] A plurality of implementations have been described. However, it will be appreciated that various modifications may be made. For example, elements of different implementations may be combined, supplemented, modified, or removed to produce other implementations. In addition, it will be appreciated by those of ordinary skill in the art that other structures and processes may replace the disclosed structures and processes, and that the resulting implementations will perform at least substantially the same (multiple) functions as the disclosed implementations in at least substantially the same (multiple) manners as the disclosed implementations, to achieve at least substantially the same results as the disclosed implementations. Therefore, the present application contemplates these and other implementations.
Claims
1. A decoding method, include: - obtaining a current block generated by applying at least one partitioning pattern to an initial block, each partitioning pattern being applied to said initial block to obtain said current block belonging to a set of partitioning patterns, each partitioning pattern of said set of partitioning patterns specifying a single decomposition of a first block of a plurality of second blocks, each second block having a width equal to a width of said first block or corresponding to a predefined subdivision of said width of said first block, and a height of each second block equal to a height of said first block or corresponding to a predefined subdivision of said height of said first block; - determining a current partitioning mode to be applied to the current block from the set of partitioning modes; as well as - decoding the current block using the determined current partitioning mode from the set of partitioning modes, wherein, in response to the current block extending beyond a single boundary of a picture, determining the current partitioning mode comprises decoding information allowing identification of the current partitioning mode from a plurality of partitioning modes included in the set of partitioning modes, wherein for the plurality of partitioning modes, a partitioning direction is parallel to a direction of the single boundary of the picture, The information includes a flag indicating the number of second blocks generated by decomposing the current block according to the current partition mode, and the group of partition modes includes the plurality of partition modes.
2. The decoding method according to claim 1, wherein h is the height of the current block, and w is the width of the current block, and the set of partitioning modes includes at least two of the following partitioning modes: - split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4; - split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4; - vertically split the block into a left sub-block of width w / 4 and a right sub-block of width 3w / 4; - vertically split the block into a right sub-block of width w / 4 and a left sub-block of width 3w / 4; - split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2 and a sub-block of height h / 4; - vertically split the block into a sub-block with a width of w / 4, a middle sub-block with a width of w / 2, and a sub-block with a width of w / 4; - split the block horizontally into two sub-blocks of height h / 2; and - Split the block vertically into two sub-blocks of width w / 2.
3. The decoding method according to claim 1, in, If the current block does not extend beyond the right or left boundary of the picture, the block is allowed to be horizontally split into two sub-blocks with a height of h / 2, and if the current block does not extend beyond the bottom or top boundary of the picture, the block is allowed to be vertically split into two sub-blocks with a width of w / 2, where h is the height of the current block and w is the width of the current block.
4. A coding method, include: - determining a current partitioning mode to be applied to a current block of the picture from a set of partitioning modes, each partitioning mode of the set of partitioning modes specifying a single decomposition of a first block of a plurality of second blocks, a width of each second block being equal to a width of the first block or corresponding to a predefined subdivision of the width of the first block, and a height of each second block being equal to a height of the first block or corresponding to a predefined subdivision of the height of the first block; as well as - encoding the current block using the determined current partitioning mode from the set of partitioning modes; and in response to the current block extending beyond a single boundary of the picture, encoding information that allows identification of a current partition mode among a plurality of partition modes included in the set of partition modes, wherein for the plurality of partition modes, a partition direction is parallel to a direction of the single boundary of the picture, wherein the information includes a flag indicating a number of second blocks resulting from decomposing the current block according to the current partition mode, and wherein the set of partition modes includes the plurality of partition modes.
5. The encoding method of claim 4, wherein h is the height of the current block and w is the width of the current block, and wherein the set of partitioning modes includes at least two of the following partitioning modes: - split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4; - split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4; - vertically split the block into a left sub-block of width w / 4 and a right sub-block of width 3w / 4; - vertically split the block into a right sub-block of width w / 4 and a left sub-block of width 3w / 4; - split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2 and a sub-block of height h / 4; - vertically split the block into a sub-block with a width of w / 4, a middle sub-block with a width of w / 2, and a sub-block with a width of w / 4; - split the block horizontally into two sub-blocks of height h / 2; and - Split the block vertically into two sub-blocks of width w / 2.
6. The encoding method according to claim 4, in, If the current block does not extend beyond the right or left boundary of the picture, the block is allowed to be horizontally split into two sub-blocks with a height of h / 2, and if the current block does not extend beyond the bottom or top boundary of the picture, the block is allowed to be vertically split into two sub-blocks with a width of w / 2, where h is the height of the current block and w is the width of the current block.
7. A decoding device comprising an electronic circuit, wherein the electronic circuit is adapted to: - obtaining a current block generated by applying at least one partitioning pattern to an initial block, each partitioning pattern being applied to said initial block to obtain said current block belonging to a set of partitioning patterns, each partitioning pattern of said set of partitioning patterns specifying a single decomposition of a first block of a plurality of second blocks, each second block having a width equal to a width of said first block or corresponding to a predefined subdivision of said width of said first block, and a height of each second block equal to a height of said first block or corresponding to a predefined subdivision of said height of said first block; - determining a current partitioning mode to be applied to the current block from the set of partitioning modes; as well as - decoding the current block using the determined current partitioning mode from the set of partitioning modes, wherein, in response to the current block extending beyond a single boundary of a picture, determining the current partitioning mode comprises decoding information allowing identification of the current partitioning mode from a plurality of partitioning modes included in the set of partitioning modes, wherein for the plurality of partitioning modes, a partitioning direction is parallel to a direction of the single boundary of the picture, The information includes a flag indicating the number of second blocks generated by decomposing the current block according to the current partition mode, and the group of partition modes includes the plurality of partition modes.
8. The decoding apparatus of claim 7, wherein h is a height of the current block, and w is a width of the current block, and wherein the set of partitioning modes comprises at least two of the following partitioning modes: - split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4; - split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4; - vertically split the block into a left sub-block of width w / 4 and a right sub-block of width 3w / 4; - vertically split the block into a right sub-block of width w / 4 and a left sub-block of width 3w / 4; - split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2 and a sub-block of height h / 4; - vertically split the block into a sub-block with a width of w / 4, a middle sub-block with a width of w / 2, and a sub-block with a width of w / 4; - split the block horizontally into two sub-blocks of height h / 2; and - Split the block vertically into two sub-blocks of width w / 2.
9. The decoding device according to claim 7, in, If the current block does not extend beyond the right or left boundary of the picture, the block is allowed to be horizontally split into two sub-blocks with a height of h / 2, and if the current block does not extend beyond the bottom or top boundary of the picture, the block is allowed to be vertically split into two sub-blocks with a width of w / 2, where h is the height of the current block and w is the width of the current block.
10. An encoding device comprising an electronic circuit, wherein the electronic circuit is adapted to: - determining a current partitioning mode to be applied to a current block of the picture from a set of partitioning modes, each partitioning mode of the set of partitioning modes specifying a single decomposition of a first block of a plurality of second blocks, a width of each second block being equal to a width of the first block or corresponding to a predefined subdivision of the width of the first block, and a height of each second block being equal to a height of the first block or corresponding to a predefined subdivision of the height of the first block; as well as - encoding the current block using the determined current partitioning mode from the set of partitioning modes; and in response to the current block extending beyond a single boundary of a picture, encoding information allowing identification of the current partitioning mode among a plurality of partitioning modes included in the set of partitioning modes, wherein for the plurality of partitioning modes a partitioning direction is parallel to a direction of the single boundary of the picture, in, The information includes a flag indicating the number of second blocks generated by decomposing the current block according to the current partition mode, and wherein the group of partition modes includes the plurality of partition modes.
11. The encoding apparatus of claim 10, wherein h is a height of the current block and w is a width of the current block, and wherein the set of partitioning modes comprises at least two of the following partitioning modes: - split the block horizontally into an upper sub-block of height h / 4 and a bottom sub-block of height 3h / 4; - split the block horizontally into a bottom sub-block of height h / 4 and an upper sub-block of height 3h / 4; - vertically split the block into a left sub-block of width w / 4 and a right sub-block of width 3w / 4; - vertically split the block into a right sub-block of width w / 4 and a left sub-block of width 3w / 4; - split the block horizontally into a sub-block of height h / 4, an intermediate sub-block of height h / 2 and a sub-block of height h / 4; - vertically split the block into a sub-block with a width of w / 4, a middle sub-block with a width of w / 2, and a sub-block with a width of w / 4; - split the block horizontally into two sub-blocks of height h / 2; and - Split the block vertically into two sub-blocks of width w / 2.
12. The encoding device according to claim 10, in, If the current block does not extend beyond the right or left boundary of the picture, the block is allowed to be horizontally split into two sub-blocks with a height of h / 2, and if the current block does not extend beyond the bottom or top boundary of the picture, the block is allowed to be vertically split into two sub-blocks with a width of w / 2, where h is the height of the current block and w is the width of the current block.
13. A non-transitory machine-readable medium having stored thereon machine-executable instructions, the machine-executable instructions when executed implementing a method for decoding, the method include: - obtaining a current block generated by applying at least one partitioning pattern to an initial block, each partitioning pattern being applied to said initial block to obtain said current block belonging to a set of partitioning patterns, each partitioning pattern of said set of partitioning patterns specifying a single decomposition of a first block of a plurality of second blocks, each second block having a width equal to a width of said first block or corresponding to a predefined subdivision of said width of said first block, and a height of each second block equal to a height of said first block or corresponding to a predefined subdivision of said height of said first block; - determining a current partitioning mode to be applied to the current block from the set of partitioning modes; as well as - decoding the current block using the determined current partitioning mode from the set of partitioning modes, wherein, in response to the current block extending beyond a single boundary of the picture, determining the current partitioning mode comprises decoding information allowing identification of the current partitioning mode from a plurality of partitioning modes included in the set of partitioning modes, wherein for the plurality of partitioning modes, a partitioning direction is parallel to a direction of the single boundary of the picture, The information includes a flag indicating the number of second blocks generated by decomposing the current block according to the current partition mode, and the group of partition modes includes the plurality of partition modes.
14. A non-transitory machine-readable medium having stored thereon machine-executable instructions, the machine-executable instructions when executed implementing a method for encoding a current block of a picture, the method include: - determining a current partitioning mode to be applied to the current block from a set of partitioning modes, each partitioning mode of the set of partitioning modes specifying a single decomposition of a first block from a plurality of second blocks, a width of each second block being equal to a width of the first block or corresponding to a predefined subdivision of the width of the first block, and a height of each second block being equal to a height of the first block or corresponding to a predefined subdivision of the height of the first block; as well as - encoding the current block using the determined current partitioning mode from the set of partitioning modes; and in response to the current block extending beyond the single boundary of the picture, encoding information allowing identification of a current partition mode among a plurality of partition modes included in the set of partition modes, wherein for the plurality of partition modes, a partition direction is parallel to the direction of the single boundary of the picture, wherein the information includes a flag indicating the number of second blocks generated by decomposing the current block according to the current partition mode, and wherein the set of partition modes includes the plurality of partition modes.
