Image encoding apparatus, encoding method, image decoding apparatus, decoding method, and non-transitory memory medium

TWI944894BActive Publication Date: 2026-11-01PANASONIC INTELLECTUAL PROPERTY CORP OF AMERICA
View PDF 3 Cites 0 Cited by

Patent Information

Application Number
TW114139255
Authority / Receiving Office
TW · TW
Patent Type
Patents
Current Assignee / Owner
Priority Date
2017-11-16
Filing Date
2018-11-14
Publication Date
2026-11-01
Estimated Expiration
2038-11-13

AI Technical Summary

Technical Problem

Existing video coding standards like HEVC require improvements in encoding and decoding efficiency, particularly in handling non-square blocks and optimizing block divisions for better compression and quality.

Method used

An encoding device that divides images into fixed-size square blocks and non-square blocks, prohibiting quadtree division, and a decoding device that forms blocks based on a second segmentation from a bitstream, also avoiding quadtree segmentation of non-square blocks, to enhance encoding and decoding processes.

Benefits of technology

This approach improves encoding and decoding efficiency by optimizing block divisions, leading to better compression and quality in video coding.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure TWG2TB001919149_001
    Figure TWG2TB001919149_001
  • Figure TWG2TB001919149_002
    Figure TWG2TB001919149_002
  • Figure TWG2TB001919149_003
    Figure TWG2TB001919149_003
Patent Text Reader

Abstract

An encoding device that encodes an image in units of blocks includes circuitry and memory. The circuitry uses the memory to form a plurality of blocks by performing a first segmentation on the image, and performs a recursive second segmentation on the plurality of blocks, encoding the information of the second segmentation into a bitstream. In the second segmentation, quadtree segmentation of the first non-square blocks is prohibited. The aforementioned first segmentation is performed by dividing the image into square blocks of a fixed block size. The aforementioned plurality of blocks includes square blocks of a fixed block size and first non-square blocks that do not conform to the fixed block size.
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] Field of Invention This invention relates to an encoding device, a decoding device, an encoding method, and a decoding method. [Previous Technology]

[0002] Background of the Invention The video coding standard specification known as HEVC (High-Efficiency Video Coding) was standardized by JCT-VC (Joint Collaborative Team on Video Coding). Prior Art Documents

[0003] Non-patent literature [Non-patent literature 1] H.265 (ISO / IEC 23008-2 HEVC (High Efficiency Video Coding)) [Summary of the Invention]

[0004] Summary of the Invention The Problem to be Solved by the Invention Such encoding and decoding technologies seek further improvement. Therefore, the object of the present invention is to provide an encoding apparatus, a decoding apparatus, an encoding method, and a decoding method that can achieve further improvements.

[0005] Means for solving the problem: An encoding device of the present invention encodes an image in units of blocks and includes circuitry and memory. The circuitry uses the memory to divide the image into a plurality of blocks by performing a first division, and performs a second division on the plurality of blocks, appending the information of the second division to a bitstream. In the second division, quadtree division of the first non-square blocks is prohibited. The first division divides the image into square blocks of a fixed block size. The plurality of blocks include the square blocks of the fixed block size and the first non-square blocks that do not conform to the fixed block size. The decoding device of the present invention decodes images in blocks and includes circuitry and memory. The circuitry uses the memory to form a plurality of blocks for the image by performing a first segmentation. After forming the plurality of blocks, it obtains information of a second segmentation from a bitstream. Based on the information of the second segmentation, it performs a recursive second segmentation on the plurality of blocks. In the second segmentation, quadtree segmentation of the first non-square blocks is prohibited. The first segmentation is performed by dividing the image into square blocks of a fixed block size. The plurality of blocks include the square blocks of the fixed block size and the first non-square blocks that do not conform to the fixed block size.

[0006] Furthermore, such comprehensive or specific forms can also be implemented by systems, methods, integrated circuits, computer programs, or computer-readable CD-ROMs and other recording media, or by any combination of systems, methods, integrated circuits, computer programs, and recording media.

[0007] Effects of the Invention The present invention can provide an encoding device, decoding device, encoding method and decoding method that can achieve further improvements.

Implementation Method

[0009] The following figures illustrate the embodiments of the invention.

[0010] Furthermore, the embodiments described below are all general or specific examples. The values, shapes, materials, constituent elements, the arrangement and connection of constituent elements, steps, and the order of steps shown in the following embodiments are only examples and are not intended to limit the scope of the patent application. Also, regarding the constituent elements of the following embodiments, those constituent elements not described in the independent claim representing the highest-level concept are described as arbitrary constituent elements. (Embodiment 1)

[0011] First, an outline of Embodiment 1 will be described as an example of an encoding and decoding apparatus and its processing and / or configuration applicable to the various embodiments of the present invention described below. However, Embodiment 1 is only one example of an encoding and decoding apparatus and its processing and / or configuration applicable to the various embodiments of the present invention, and the processing and / or configuration described in the various embodiments of the present invention may also be implemented in encoding and decoding apparatuses different from Embodiment 1. When the processing and / or configuration described in the various embodiments of the present invention are applied to Embodiment 1, any of the following may also be performed, for example.

[0012] (1) For the encoding or decoding device of embodiment 1, the constituent elements of the plurality of constituent elements constituting the encoding or decoding device that correspond to the constituent elements described in each embodiment of the present invention are replaced with the constituent elements described in each embodiment of the present invention.

[0013] (2) For the encoding or decoding device of embodiment 1, after any changes such as addition, replacement, deletion or functional processing are applied to a portion of the constituent elements constituting the encoding or decoding device, the constituent elements corresponding to the constituent elements described in each embodiment of the present invention are replaced with the constituent elements described in each embodiment of the present invention.

[0014] (3) For the method implemented by the encoding or decoding device of embodiment 1, after any changes such as substitution or deletion are made to the addition of processing and / or a part of the processing contained in the method, the processing corresponding to the processing described in each embodiment of the present invention is replaced with the processing described in each embodiment of the present invention.

[0015] (4) A portion of the constituent elements of the encoding or decoding apparatus constituting Embodiment 1 are combined with the constituent elements described in the various embodiments of the present invention, the constituent elements having a portion of the functions of the constituent elements described in the various embodiments of the present invention, or the constituent elements implementing a portion of the processing performed by implementing the constituent elements described in the various embodiments of the present invention.

[0016] (5) The constituent elements having a portion of the functions of a portion of the constituent elements constituting the encoding or decoding device constituting Embodiment 1, or the constituent elements implementing a portion of the processing of a portion of the constituent elements constituting the encoding or decoding device constituting Embodiment 1, are combined with the constituent elements described in the various embodiments of the present invention, the constituent elements having a portion of the functions of the constituent elements described in the various embodiments of the present invention, or the constituent elements implementing a portion of the processing of the constituent elements described in the various embodiments of the present invention to implement the present invention.

[0017] (6) For the method implemented by the encoding or decoding apparatus of embodiment 1, the processing of the plurality of processing contained in the method that corresponds to the processing described in each embodiment of the present invention is replaced with the processing described in each embodiment of the present invention.

[0018] (7) A portion of the processing included in the method implemented by the encoding or decoding apparatus of Embodiment 1 is combined with the processing described in the various embodiments of the present invention.

[0019] Furthermore, the embodiments of the processing and / or configuration described in the various embodiments of the present invention are not limited to the examples described above. For example, they can be implemented as devices for different purposes than the motion picture / image encoding apparatus or motion picture / image decoding apparatus disclosed in Embodiment 1, or the processing and / or configuration described in each embodiment can be implemented alone. Also, they can be implemented by combining the processing and / or configuration described in different embodiments. [Summary of the Encoding Apparatus]

[0020] First, an overview of the encoding device in Embodiment 1 will be described. Figure 1 is a block diagram showing the functional configuration of the encoding device 100 in Embodiment 1. The encoding device 100 is a motion image / image encoding device that encodes motion images / images in blocks.

[0021] As shown in FIG1, the encoding device 100 is an image encoding device in blocks, comprising a segmentation unit 102, a subtraction unit 104, a conversion unit 106, a quantization unit 108, an entropy encoding unit 110, an inverse quantization unit 112, an inverse conversion unit 114, an addition unit 116, a block memory 118, a loop filter unit 120, a frame memory 122, an intra-frame prediction unit 124, an inter-frame prediction unit 126, and a prediction control unit 128.

[0022] The encoding device 100 is implemented using, for example, a general-purpose processor and memory. When the processor executes the software program stored in memory, the processor functions as the segmentation unit 102, subtraction unit 104, conversion unit 106, quantization unit 108, entropy encoding unit 110, inverse quantization unit 112, inverse conversion unit 114, addition unit 116, loop filter unit 120, intra-frame prediction unit 124, inter-frame prediction unit 126, and prediction control unit 128. Furthermore, the encoding device 100 can also be implemented as a dedicated electronic circuit of one or more units corresponding to the segmentation unit 102, subtraction unit 104, conversion unit 106, quantization unit 108, entropy encoding unit 110, inverse quantization unit 112, inverse conversion unit 114, addition unit 116, loop filter unit 120, intra-frame prediction unit 124, inter-frame prediction unit 126, and prediction control unit 128. The constituent elements of the encoding device 100 will be described below. [Divider]

[0023] The segmentation unit 102 divides each image contained in the input dynamic image into a plurality of blocks and outputs each block to the subtraction unit 104. For example, the segmentation unit 102 first divides the image into fixed-size (e.g., 128×128) blocks. This fixed-size block is sometimes called a coding tree unit (CTU). Then, the segmentation unit 102 divides each of the fixed-size blocks into variable-size (e.g., 64×64) blocks according to the recursive quadtree and / or binary tree block segmentation. This variable-size block is sometimes called a coding unit (CU), prediction unit (PU), or transformation unit (TU). Furthermore, in this embodiment, it is not necessary to distinguish between CU, PU, ​​and TU; a portion or all of the blocks within the image may be processed as CU, PU, ​​or TU units.

[0024] Figure 2 is a diagram illustrating an example of block partitioning in implementation form 1. In Figure 2, solid lines represent block boundaries of quaternion tree block partitioning, and dashed lines represent block boundaries of binary tree block partitioning.

[0025] Here, block 10 is a square block of 128×128 pixels (128×128 block). This 128×128 block 10 is first divided into 4 square blocks of 64×64 (quadtree block partitioning).

[0026] The top left 64×64 block is further vertically divided into two rectangular 32×64 blocks, and the left 32×64 block is further vertically divided into two rectangular 16×64 blocks (binary tree block division). As a result, the top left 64×64 block is divided into two 16×64 blocks 11 and 12 and a 32×64 block 13. The top right 64×64 block is horizontally divided into two rectangular 64×32 blocks 14 and 15 (binary tree block division).

[0027] The lower left 64×64 block is divided into four 32×32 square blocks (quaternion tree block division). Of the four 32×32 blocks, the upper left and lower right blocks are further divided. The upper left 32×32 block is vertically divided into two 16×32 rectangular blocks, and the right 16×32 block is further horizontally divided into two 16×16 blocks (binary tree block division). The lower right 32×32 block is horizontally divided into two 32×16 blocks (binary tree block division). As a result, the lower left 64×64 block is divided into 16×32 block 16, two 16×16 blocks 17 and 18, two 32×32 blocks 19 and 20, and two 32×16 blocks 21 and 22. The lower right 64×64 block 23 remains undivided.

[0028] As described above, in Figure 2, block 10 is divided into 13 variable-size blocks 11 to 23 according to the recursive quad-tree and binary tree block partitioning. This type of partitioning is sometimes called QTBT (quad-tree plus binary tree) partitioning.

[0029] Furthermore, as shown in Figure 2, one block is divided into four or two blocks (quaternion tree or binary tree block division), but the division is not limited to these. For example, one block can also be divided into three blocks (ternion tree block division). This type of division, including ternion tree block division, is sometimes called MBT (multi-type tree) division. [Reduction Department]

[0030] The subtraction unit 104 subtracts the prediction signal (prediction sample) from the original signal (original sample) in block units divided by the segmentation unit 102. In short, the subtraction unit 104 calculates the prediction error (also called residual) of the encoded target block (hereinafter referred to as the current block). Then, the subtraction unit 104 outputs the calculated prediction error to the conversion unit 106.

[0031] The original signal is the input signal of the encoding device 100, which is a signal representing the images of each picture constituting the moving image (e.g., luminance signal and two chroma signals). Hereinafter, the signal representing the image is sometimes also referred to as a sample. [Conversion Unit]

[0032] The conversion unit 106 converts the prediction error in the spatial domain into conversion coefficients in the frequency domain and outputs the conversion coefficients to the quantization unit 108. Specifically, the conversion unit 106 performs a predetermined discrete cosine transform (DCT) or discrete sine transform (DST) on the prediction error in the spatial domain, for example.

[0033] Furthermore, the transformation unit 106 can also adaptively select a transformation type from a plurality of transformation types and use the transformation basis function corresponding to the selected transformation type to convert the prediction error into transformation coefficients. This type of transformation is sometimes called EMT (explicit multiple core transform) or AMT (adaptive multiple transform).

[0034] The multiple conversion types include, for example, DCT-II, DCT-V, DCT-VIII, DST-I, and DST-VII. Figure 3 is a table showing the conversion basis functions corresponding to each conversion type. In Figure 3, N represents the number of input pixels. When selecting a conversion type from these multiple conversion types, it may depend on, for example, the type of prediction (intra-frame prediction and inter-frame prediction), or on the intra-frame prediction mode.

[0035] This type of information indicating whether EMT or AMT is applicable (e.g., referred to as the AMT flag) and information indicating the selected conversion type is signaled at the CU level. Furthermore, the signaling of such information is not limited to the CU level, but can also be at other levels (e.g., sequence level, image level, slice level, block level, or CTU level).

[0036] Furthermore, the transformation unit 106 can also re-transform the transformation coefficients (transformation results). This type of re-transformation is sometimes called AST (adaptive secondary transform) or NSST (non-separable secondary transform). For example, the transformation unit 106 re-transforms each sub-block (e.g., 4×4 sub-block) contained in the block of transformation coefficients corresponding to the intra-frame prediction error. Information indicating whether NSST is applicable and related information about the transformation matrix used for NSST are signaled at the CU level. Moreover, the signaling of such information is not limited to the CU level and can also be at other levels (e.g., sequence level, image level, slice level, block level, or CTU level).

[0037] Hereinafter, Separable transformation refers to a method of performing multiple transformations in each direction by separating only the dimensions of the input, while Non-Separable transformation refers to a method of treating two or more dimensions as a single dimension and performing a unified transformation when the input is multidimensional.

[0038] For example, as a non-separable transformation, one can cite the case where the input is a 4×4 block, which is treated as an array with 16 elements, and the array is transformed using a 16×16 transformation matrix.

[0039] Similarly, the 4×4 input block is considered as an array with 16 elements. Performing a complex number of Givens rotations (Hypercube Givens Transform) on this array is also an example of a non-separable transformation. [Quantization Department]

[0040] The quantization unit 108 quantizes the conversion coefficients output from the conversion unit 106. Specifically, the quantization unit 108 scans the conversion coefficients of the current block in a predetermined scan order and quantizes the conversion coefficients according to the quantization parameters (QP) corresponding to the scanned conversion coefficients. Then, the quantization unit 108 outputs the quantized conversion coefficients (hereinafter referred to as quantization coefficients) of the current block to the entropy encoding unit 110 and the dequantization unit 112.

[0041] The predetermined order is the order used for quantization / dequantization of the conversion coefficients. For example, the predetermined scan order is defined by ascending frequency (from low frequency to high frequency) or descending frequency (from high frequency to low frequency).

[0042] The quantization parameter defines the quantization step size (quantization width). For example, increasing the quantization parameter value increases the quantization step size. In short, increasing the quantization parameter value increases the quantization error. [Entropy Coding Department]

[0043] The entropy encoding unit 110 encodes the quantization coefficients input from the quantization unit 108 using variable-length encoding, thereby generating an encoded signal (encoded bit stream). Specifically, the entropy encoding unit 110, for example, binarizes the quantization coefficients and performs arithmetic encoding on the binary signal. [Inverse quantization unit]

[0044] The dequantization unit 112 dequantizes the input, i.e., the quantization coefficients, from the quantization unit 108. Specifically, the dequantization unit 112 dequantizes the quantization coefficients of the current block according to a predetermined scan order. Then, the dequantization unit 112 outputs the dequantized conversion coefficients of the current block to the deconversion unit 114. [Deconversion unit]

[0045] The inverse conversion unit 114 performs an inverse conversion on the input, i.e., the conversion coefficients, from the inverse quantization unit 112, thereby restoring the prediction error. Specifically, the inverse conversion unit 114 restores the prediction error of the current block by performing an inverse conversion on the conversion coefficients corresponding to the conversion performed by the conversion unit 106. Then, the inverse conversion unit 114 outputs the restored prediction error to the addition unit 116.

[0046] Furthermore, since the prediction error of the restoration is due to the loss of information caused by quantization, it will not be consistent with the prediction error calculated by the subtraction unit 104. That is, the prediction error of the restoration includes quantization error. [Addition unit]

[0047] The addition unit 116 reconstructs the current block by adding the prediction error input from the inverse conversion unit 114 and the prediction sample input from the prediction control unit 128. Then, the addition unit 116 outputs the reconstructed block to the block memory 118 and the loop filter unit 120. The reconstructed block is sometimes also called a local decoding block. [Block Memory]

[0048] Block memory 118 is a memory unit used to store blocks within the encoded target image (hereinafter referred to as the current image) referenced for intra-frame prediction. Specifically, block memory 118 stores the reconstructed blocks output from the arithmetic unit 116. [Loop filtering unit]

[0049] The loop filtering unit 120 applies loop filtering to the blocks reconstructed by the addition unit 116 and outputs the filtered reconstructed blocks to the frame memory 122. The loop filter is a filter used within the coding loop (in-loop filter), including, for example, a deblocking filter (DF), a sample applicability offset (SAO), and an adaptive loop filter (ALF).

[0050] ALF is used to remove coding distortion by using a least square error filter, for example, for each of the 2×2 sub-blocks in the current block, one filter is selected from a plurality of filters based on the direction and activity of the local gradient.

[0051] Specifically, firstly, sub-blocks (e.g., 2×2 sub-blocks) are classified into multiple groups (e.g., 15 or 25 groups). The classification of sub-blocks is based on the direction and activity of the gradient. For example, the classification value C (e.g., C = 5D + A) is calculated using the gradient direction value D (e.g., 0–2 or 0–4) and the gradient activity value A (e.g., 0–4). Then, based on the classification value C, the sub-blocks are classified into multiple groups (e.g., 15 or 25 groups).

[0052] The gradient direction value D is derived, for example, by comparing the gradients in multiple directions (e.g., horizontal, vertical, and two diagonal directions). Furthermore, the gradient activity value A is derived, for example, by adding the gradients in multiple directions and quantizing the result of the addition. Based on the results of this classification, the filter used for the sub-block is determined from among the multiple filters.

[0053] The shape of the filter used in the ALF can be, for example, a circularly symmetrical shape. Figures 4A to 4C are diagrams showing multiple examples of the shape of the filter used in the ALF. Figure 4A shows a 5×5 diamond-shaped filter, Figure 4B shows a 7×7 diamond-shaped filter, and Figure 4C shows a 9×9 diamond-shaped filter. The information representing the filter shape is signaled at the image level. Furthermore, the signaling of the information representing the filter shape is not limited to the image level, but can also be at other levels (e.g., sequence level, slice level, block level, CTU level, or CU level).

[0054] The activation / deactivation of ALF is determined at, for example, the image level or the CU level. For example, in terms of luminance, the CU level determines whether ALF is applicable; in terms of chromatic aberration, the image level determines whether ALF is applicable. The information indicating whether ALF is activated / deactivated is signaled at the image level or the CU level. Furthermore, the signaling of the information indicating whether ALF is activated / deactivated is not limited to the CU level; it can also be at other levels (such as sequence level, slice level, block level, or CTU level).

[0055] The coefficient set of a selectable plurality of filters (e.g., filters from 15 to 25) is signaled at the picture level. Furthermore, the signaling of the coefficient set is not limited to the picture level; it can also be at other levels (e.g., sequence level, slice level, block level, CTU level, CU level, or sub-block level). [Frame Memory]

[0056] Frame memory 122 is a memory unit used to store reference images used for inter-frame prediction, sometimes also called a frame buffer. Specifically, frame memory 122 stores reconstructed blocks filtered by loop filter unit 120. [Intra-frame prediction unit]

[0057] The intra-frame prediction unit 124 references blocks within the current image stored in the block memory 118 to perform intra-frame prediction (also known as intra-frame prediction) of the current block, thereby generating a prediction signal (intra-frame prediction signal). Specifically, the intra-frame prediction unit 124 references samples (e.g., luminance values, chrominance values) of blocks adjacent to the current block to perform intra-frame prediction, thereby generating an intra-frame prediction signal, and outputs the intra-frame prediction signal to the prediction control unit 128.

[0058] For example, the intra-prediction unit 124 performs intra-prediction using one of a plurality of predefined intra-prediction modes. The plurality of intra-prediction modes includes one or more non-directional prediction modes and a plurality of directional prediction modes.

[0059] 1 The above non-directional prediction modes include, for example, the Planar prediction mode and DC prediction mode specified in the H.265 / HEVC (High-Efficiency Video Coding) specification (Non-Patent Document 1).

[0060] Multiple directional prediction modes include, for example, the 33-directional prediction modes specified in the H.265 / HEVC specification. Furthermore, in addition to the 33 directions, multiple directional prediction modes may further include 32-directional prediction modes (a total of 65 directional prediction modes). Figure 5A is a diagram showing the 67 intra-frame prediction modes (2 non-directional prediction modes and 65 directional prediction modes) for intra-frame prediction. Solid arrows represent the 33 directions specified in the H.265 / HEVC specification, and dashed arrows represent the additional 32 directions.

[0061] Furthermore, in the intra-frame prediction of chromatic aberration blocks, luminance blocks can also be referenced. In short, the chromatic aberration component of the current block can also be predicted based on the luminance component of the current block. This type of intra-frame prediction is sometimes called CCLM (cross-component linear model) prediction. This type of intra-frame prediction mode for chromatic aberration blocks that references luminance blocks (e.g., called CCLM mode) can also be added as one of the intra-frame prediction modes for chromatic aberration blocks.

[0062] The intra-prediction unit 124 can also correct the intra-predicted pixel values ​​based on the gradients of reference pixels in the horizontal / vertical directions. Intra-prediction accompanied by this type of correction is sometimes called PDPC (position-dependent intra-prediction combination). Information indicating the presence or absence of PDPC (called, for example, a PDPC flag) is signaled at the CU level. Furthermore, the signaling of this information is not limited to the CU level and can also be at other levels (e.g., sequence level, image level, slice level, block level, or CTU level). [Inter-prediction unit]

[0063] The inter-frame prediction unit 126 refers to a reference image stored in the frame memory 122, which is different from the current image, to perform inter-frame prediction (also called inter-picture prediction) of the current image, thereby generating a prediction signal (inter-frame prediction signal). Inter-frame prediction is performed on a unit of the current block or sub-blocks within the current block (e.g., 4×4 blocks). For example, the inter-frame prediction unit 126 performs motion estimation within the reference image for the current block or sub-block. Then, the inter-frame prediction unit 126 uses the motion information (e.g., motion vector) obtained by motion estimation to perform motion compensation, thereby generating an inter-frame prediction signal for the current block or sub-block. Then, the inter-frame prediction unit 126 outputs the generated inter-frame prediction signal to the prediction control unit 128.

[0064] Motion information used for motion compensation is signaled. The signaling of the motion vector can also be achieved using a motion vector predictor. In summary, the difference between the motion vector and the motion vector predictor can also be signaled.

[0065] Furthermore, not only can the motion information of the current block obtained through motion estimation be used, but also the motion information of adjacent blocks can be used to generate inter-frame prediction signals. Specifically, the prediction signal based on the motion information obtained through motion estimation and the prediction signal based on the motion information of adjacent blocks can be weighted together to generate inter-frame prediction signals on a per-sub-block basis within the current block. This type of inter-frame prediction (motion compensation) is sometimes called OBMC (overlapped block motion compensation).

[0066] In this type of OBMC mode, information indicating the size of the OBMC sub-block (e.g., referred to as the OBMC block size) is signaled at the sequence level. Furthermore, information indicating whether or not the OBMC mode is applied (e.g., referred to as the OBMC flag) is signaled at the CU level. Moreover, the signaling level of this information is not limited to the sequence level and CU level; it can also be other levels (e.g., image level, slice level, block level, CTU level, or sub-block level).

[0067] More specifically, the OBMC mode is explained. Figures 5B and 5C are flowcharts and conceptual diagrams illustrating the outline of the prediction image correction process in OBMC processing. First, a general motion-compensated prediction image (Pred) is obtained using the motion vector (MV) assigned to the coded object block.

[0068] Next, the movement vector (MV_L) of the encoded left adjacent block is applied to the encoded target block to obtain the prediction image (Pred_L). The aforementioned prediction image and Pred_L are weighted and overlapped to perform the first correction of the prediction image.

[0069] Similarly, the movement vector (MV_U) of the encoded upper adjacent block is applied to the encoded target block to obtain the prediction image (Pred_U). The prediction image that has undergone the first correction mentioned above is weighted and overlapped with Pred_U to perform the second correction of the prediction image and use it as the final prediction image.

[0070] Furthermore, while a two-stage correction method using the right adjacent block and the upper adjacent block has been described, a configuration using the right adjacent block or the lower adjacent block with more than two stages of correction can also be adopted. Furthermore, the overlapping area is not the entire pixel region of the block, but may only be a portion of the region near the block boundary.

[0071] Furthermore, while the prediction image correction process based on a single reference image has been described, the same applies to correcting prediction images from multiple reference images. After obtaining the prediction images corrected from each reference image, the resulting prediction images are further superimposed to form the final prediction image. Moreover, the aforementioned processing target block can be a prediction block or a sub-block formed by further dividing the prediction block.

[0072] As a method for determining whether OBMC processing is applicable, one method includes, for example, using a signal obmc_flag that indicates whether OBMC processing is applicable. Specifically, in an encoding device, it is determined whether the block to be encoded belongs to a motion-complex region. If it belongs to a motion-complex region, obmc_flag is set to 1, and OBMC processing is applied for encoding. If it does not belong to a motion-complex region, obmc_flag is set to 0, and OBMC processing is not applied for encoding. Furthermore, in a decoding device, the value of obmc_flag described in the decoding stream is used to switch whether OBMC processing is applied for decoding.

[0073] Furthermore, motion information can also be derived from the decoding device without being signaled. For example, the merging mode specified in the H.265 / HEVC standard can be used. Alternatively, motion information can be derived by performing motion estimation on the decoding device side. In this case, motion estimation is performed without using the pixel values ​​of the current block.

[0074] Hereinafter, the mode of motion estimation performed on the decoding device side will be explained. This mode of motion estimation performed on the decoding device side is sometimes referred to as PMMVD (pattern matched motion vector derivation) mode or FRUC (frame rate up-conversion) mode.

[0075] Figure 5D illustrates an example of FRUC processing. First, referencing the movement vectors of coded blocks spatially or temporally adjacent to the current block, a plurality of candidate lists (which can also be shared with the merge list) with movement vector predictors are generated. Next, the best candidate MV is selected from the plurality of candidate MVs registered in the candidate lists. For example, the evaluation value of each candidate in the candidate list is calculated, and one candidate is selected based on the evaluation value.

[0076] Then, based on the selected candidate movement vector, the movement vector used for the current block is derived. Specifically, for example, the selected candidate movement vector (best candidate MV) is directly derived as the movement vector used for the current block. Alternatively, for example, pattern matching can be performed in the surrounding area of ​​the position within the reference image corresponding to the selected candidate movement vector to derive the movement vector used for the current block. That is, the surrounding area of ​​the best candidate MV is estimated in the same way, and if there is an MV with a better evaluation value, the best candidate MV is updated to the aforementioned MV and used as the final MV for the current block. Furthermore, a configuration that does not perform this processing can also be adopted. When processing on a sub-block basis, the exact same processing can also be used.

[0077] Furthermore, the evaluation value is calculated by using the difference value of the reconstructed image obtained by pattern matching between the region within the reference image corresponding to the motion vector and the predetermined region. Furthermore, in addition to the difference value, other information can also be used to calculate the evaluation value.

[0078] Pattern matching utilizes pattern matching 1 and pattern matching 2. Pattern matching 1 and pattern matching 2 are sometimes referred to as bilateral matching and template matching, respectively.

[0079] In the first pattern matching, pattern matching is performed between two blocks in two different reference images, and between two blocks along the motion trajectory of the current block. Therefore, in the first pattern matching, the predetermined region used to calculate the above-mentioned candidate evaluation value is used by utilizing the regions in other reference images along the motion trajectory of the current block.

[0080] Figure 6 is a diagram illustrating pattern matching (bidirectional matching) between two blocks along a movement track. As shown in Figure 6, in the first pattern matching, two movement vectors (MV0, MV1) are derived by estimating the most matching pair among the two blocks in two different reference images (Ref0, Ref1) along the movement track of the current block. Specifically, for the current block, the difference between the reconstructed image at a specified position in the first encoded reference image (Ref0) specified by the candidate MV and the reconstructed image at a specified position in the second encoded reference image (Ref1) specified by the symmetric MV is derived. The obtained difference value is used to calculate the evaluation value. The aforementioned symmetric MV is the candidate MV scaled by the display time interval. The candidate MV with the best evaluation value among the plurality of candidate MVs is selected as the final MV.

[0081] Assuming a continuous movement track, the movement vectors (MV0, MV1) indicating two reference blocks are proportional to the temporal distance (TD0, TD1) between the current image (Cur Pic) and the two reference images (Ref0, Ref1). For example, if the current image is located between the two reference images in time, and the temporal distance from the current image to the two reference images is equal, then a first-mode match is performed, deriving a reflection-symmetric bidirectional movement vector.

[0082] In the second pattern matching, pattern matching is performed between the template in the current image (the block adjacent to the current block in the current image (e.g., the upper and / or left adjacent block)) and the block in the reference image. Therefore, in the second pattern matching, the block in the current image adjacent to the current block is used as the predetermined area for calculating the above-mentioned candidate evaluation value.

[0083] Figure 7 is a diagram illustrating an example of pattern matching (template matching) between a template in the current image and a block in the reference image. As shown in Figure 7, in the second pattern matching, the movement vector of the current block is derived by estimating the block in the reference image (Ref0) that best matches the block adjacent to the current block in the current image (Cur block). Specifically, for the current block, the difference between the reconstructed image of the encoded regions of the left and top adjacent regions or one of them and the reconstructed image at the same position in the encoded reference image (Ref0) specified by the candidate MV is derived. An evaluation value is calculated using the obtained difference value, and the candidate MV with the best evaluation value among the plurality of candidate MVs is selected as the best candidate MV.

[0084] Information indicating whether or not the FRUC mode is applicable (e.g., referred to as the FRUC flag) is signaled at the CU level. Furthermore, when the FRUC mode is applicable (e.g., when the FRUC flag is true), information indicating the pattern matching method (first pattern matching or second pattern matching) (e.g., referred to as the FRUC flag) is signaled at the CU level. Moreover, the signaling of this information is not limited to the CU level; it can also be at other levels (e.g., sequence level, image level, slice level, block level, CTU level, or sub-block level).

[0085] Here, we explain the mode for deriving the translation vector based on a model assuming constant linear motion. This mode is sometimes called the BIO (bi-directional optical flow) mode.

[0086] Figure 8 is a diagram used to illustrate the model assuming constant linear motion. In Figure 8, (vx, vy) represents the velocity vector, and τ0 and τ1 represent the time distance between the current image (Cur Pic) and the two reference images (Ref0, Ref1), respectively. (MVx0, MVy0) represents the movement vector corresponding to the reference image Ref0, and (MVx1, MVy1) represents the movement vector corresponding to the reference image Ref1.

[0087] At this time, under the assumption of uniform linear motion of velocity vector (vx,vy), (MVx0,MVy0) and (MVx1,MVy1) are expressed as (vxτ0,vyτ0) and (-vxτ1,-vyτ1) respectively, and the following optical flow equation (1) holds.

[0088] [Number 1]

[0089] Here, I(k) represents the brightness value of the reference image k (k=0,1) after motion compensation. The optical flow equation states that the sum of (i), (ii), and (iii) is zero, where (i) is the temporal derivative of the brightness value, (ii) is the product of the horizontal velocity and the horizontal component of the spatial gradient of the reference image, and (iii) is the product of the vertical velocity and the vertical component of the spatial gradient of the reference image. Based on this optical flow equation combined with Hermite interpolation, the movement vector of the block unit obtained from the merge list, etc., is corrected in pixels.

[0090] Furthermore, the movement vector can also be derived on the decoding device side using a different method than that used to derive the movement vector based on a model assuming constant linear motion. For example, the movement vector can be derived on a sub-block basis based on the movement vectors of a plurality of adjacent blocks.

[0091] Hereinafter, a pattern for deriving movement vectors on a sub-block basis is explained based on the movement vectors of a plurality of adjacent blocks. This pattern is sometimes called the affine motion compensation prediction pattern.

[0092] Figure 9A is used to illustrate the derivation of the movement vector of a sub-block unit based on the movement vectors of a plurality of adjacent blocks. In Figure 9A, the current block contains 16 4×4 sub-blocks. Here, based on the movement vectors of the adjacent blocks, the movement vector v0 of the upper left control point of the current block is derived, and based on the movement vectors of the adjacent sub-blocks, the movement vector v1 of the upper right control point of the current block is derived. Then, using the two movement vectors v0 and v1, the movement vectors (vx, vy) of each sub-block within the current block are derived by the following equation (2).

[0093] [Number 2] Here, x and y represent the horizontal and vertical positions of the sub-block, respectively, and w represents the pre-determined weighting coefficient.

[0094] This type of affine motion compensation prediction mode may also include several modes with different methods for deriving the motion vectors of the upper left and upper right control points. This indicates that the information of this type of affine motion compensation prediction mode (e.g., affine flags) is signaled at the CU level. Furthermore, this indicates that the signaling of the information of this affine motion compensation prediction mode is not limited to the CU level, and may also be at other levels (e.g., sequence level, image level, slice level, block level, CTU level, or sub-block level). [Prediction Control Unit] The prediction control unit 128 selects either the intra-frame prediction signal or the inter-frame prediction signal, and outputs the selected signal as the prediction signal to the subtraction unit 104 and the addition unit 116.

[0095] Here, an example of deriving the motion vector of an encoded object image using a merging mode is explained. Figure 9B is a diagram illustrating the outline of the motion vector deriving process using a merging mode.

[0096] First, a list of candidate predicted MVs registered in the prediction MV list is generated. The candidate predicted MVs include: spatially adjacent predicted MVs, which are the MVs of a plurality of coded blocks spatially surrounding the coded target block; temporally adjacent predicted MVs, which are the MVs of blocks near the location of a coded target block projected with a coded reference image; combined predicted MVs, which are MVs generated by combining the MV values ​​of spatially adjacent predicted MVs and temporally adjacent predicted MVs; and MVs with a value of zero, i.e., zero predicted MVs, etc. Next, one predicted MV is selected from the plurality of predicted MVs registered in the prediction MV list to determine the MV of the coded target block. Then, in the variable-length coding section, the signal indicating the selected predicted MV, i.e., merge_idx, is described in the stream and encoded.

[0097] Furthermore, the predicted MVs registered in the predicted MV list illustrated in Figure 9B are one example. The number of predicted MVs may differ from the number shown in the figure, or it may be a composition that does not include some of the predicted MV types shown in the figure, or it may include predicted MV types other than those shown in the figure. Furthermore, the final MV can also be determined by performing the DMVR processing described later on on the MVs of the encoded object blocks derived using the merging mode. Here, an example of determining the MV using DMVR processing is explained. Figure 9C is a conceptual diagram illustrating the outline of DMVR processing.

[0098] First, the best MVP set in the processing object block is taken as the candidate MV. According to the aforementioned candidate MV, the first reference image of the processed image from the L0 direction and the second reference image of the processed image from the L1 direction are obtained respectively, and the average of each reference pixel is taken to generate the template.

[0099] Next, using the aforementioned template, the surrounding areas of the candidate MVs for the first reference image and the second reference image are estimated respectively, and the MV with the lowest cost is determined as the final MV. Furthermore, the cost value is calculated using the difference between each pixel value of the template and each pixel value of the estimated area, and the MV value. Furthermore, the general outline of the process described here is basically the same for both the encoding and decoding devices. Furthermore, other processes can be used that are not suitable for the process described here, as long as they can estimate the surrounding areas of the candidate MVs and derive the final MV. Here, the mode of generating a prediction image using LIC processing is described. Figure 9D is a diagram illustrating the general outline of the prediction image generation method using luminance correction processing of LIC processing. First, from the reference image of the encoded image, the MV of the reference image corresponding to the encoded object block is derived.

[0100] Next, for the encoded object block, using the brightness pixel values ​​of the left and top adjacent encoded surrounding reference areas, and the brightness pixel values ​​of the same position in the reference image specified by MV, information indicating how the brightness value changes in the reference image and the encoded object image is extracted, and the brightness correction parameters are calculated.

[0101] For the reference image within the reference image specified by MV, brightness correction processing is performed using the aforementioned brightness correction parameters, thereby generating a predicted image for the coded object block. Furthermore, the shape of the aforementioned surrounding reference region in FIG9D is an example; shapes other than this shape can also be used.

[0102] Furthermore, the process of generating a prediction image from a single reference image has been described here. However, the same applies to generating a prediction image from multiple reference images. The prediction image is generated after performing brightness correction processing on the reference images obtained from each reference image in the same way.

[0103] As a method for determining whether LIC processing is applicable, one method includes, for example, using a signal lic_flag that indicates whether LIC processing is applicable. Specifically, in an encoding device, it is determined whether the area to be encoded belongs to a region where brightness changes occur. If it belongs to a region where brightness changes occur, lic_flag is set to 1, and LIC processing is applied for encoding. If it does not belong to a region where brightness changes occur, lic_flag is set to 0, and LIC processing is not applied for encoding. Furthermore, in a decoding device, the value of lic_flag described in the decoding stream is used to switch whether LIC processing is applied for decoding.

[0104] Methods for determining whether LIC processing is applicable also include, for example, methods based on whether LIC processing is applicable to surrounding blocks. As a specific example, when the encoded target block is in merge mode, it is determined whether the surrounding encoded blocks selected during MV export in merge mode have been encoded using LIC processing, and the application of LIC processing is switched accordingly. Furthermore, in this case, the decoding process is exactly the same. [Overview of the Decoding Device]

[0105] Next, an outline of a decoding device capable of decoding the encoded signal (encoded bit stream) output from the encoding device 100 described above will be explained. Figure 10 is a block diagram showing the functional configuration of the decoding device 200 in Embodiment 1. The decoding device 200 is a motion picture / image decoding device that decodes motion pictures / images in blocks.

[0106] As shown in FIG10, the decoding device 200 includes an entropy decoding unit 202, an inverse quantization unit 204, an inverse conversion unit 206, an addition unit 208, a block memory 210, a loop filter unit 212, a frame memory 214, an intra-frame prediction unit 216, an inter-frame prediction unit 218, and a prediction control unit 220.

[0107] The decoding device 200 is implemented using, for example, a general-purpose processor and memory. When the processor executes the software program stored in memory, the processor functions as an entropy decoding unit 202, an inverse quantization unit 204, an inverse conversion unit 206, an adder 208, a loop filter 212, an intra-frame prediction unit 216, an inter-frame prediction unit 218, and a prediction control unit 220. Alternatively, the decoding device 200 can also be implemented as a dedicated electronic circuit of one or more units corresponding to the entropy decoding unit 202, the inverse quantization unit 204, the inverse conversion unit 206, the adder 208, the loop filter 212, the intra-frame prediction unit 216, the inter-frame prediction unit 218, and the prediction control unit 220. The constituent components of the decoding device 200 will be described below. [Entropy Decoding Unit]

[0108] The entropy decoding unit 202 performs entropy decoding on the encoded bitstream. Specifically, the entropy decoding unit 202, for example, arithmetically decodes the encoded bitstream into a binary signal. Then, the entropy decoding unit 202 debinarizes the binary signal. Thereby, the entropy decoding unit 202 outputs the quantization coefficients to the dequantization unit 204 in blocks. [Dequantization unit]

[0109] The dequantization unit 204 dequantizes the input from the entropy decoding unit 202, namely the quantization coefficients of the target block (hereinafter referred to as the current block). Specifically, the dequantization unit 204 dequantizes each quantization coefficient of the current block according to the quantization parameter corresponding to that quantization coefficient. Then, the dequantization unit 204 outputs the dequantized quantization coefficients (i.e., conversion coefficients) of the current block to the inverse conversion unit 206. [Inverse Conversion Unit] The inverse conversion unit 206 restores the prediction error by inverse conversion of the input, i.e., the conversion coefficients, from the dequantization unit 204.

[0110] For example, when it indicates that the information interpreted from the encoded bitstream is subject to EMT or AMT (e.g., the AMT flag is true), the inverse conversion unit 206 performs an inverse conversion on the conversion coefficients of the current block based on the information indicating the conversion type being interpreted. Also, for example, when it indicates that the information interpreted from the encoded bitstream is subject to NSST, the inverse conversion unit 206 performs an inverse reconversion on the conversion coefficients. [Addition Unit]

[0111] The arithmetic unit 208 reconstructs the current block by adding the prediction error input from the inverse conversion unit 206 and the prediction sample input from the prediction control unit 220. Then, the arithmetic unit 208 outputs the reconstructed block to the block memory 210 and the loop filter unit 212. [Block Memory]

[0112] Block memory 210 is a memory unit used to store blocks referenced for intra-frame prediction, and is a block within the decoded target image (hereinafter referred to as the current image). Specifically, block memory 210 stores the reconstructed blocks output from the arithmetic unit 208. [Loop filtering unit]

[0113] The loop filter unit 212 applies a loop filter to the block reconstructed by the arithmetic unit 208 and outputs the filtered reconstructed block to the frame memory 214 and the display device, etc.

[0114] Indicates the ALF on / off information interpreted from the coded bitstream. When ALF is on, it indicates that one filter is selected from a plurality of filters based on the direction and activity of the local gradient. The selected filter is suitable for the reconstructed block. [Frame Memory]

[0115] Frame memory 214 is a memory unit used to store reference images used for inter-frame prediction, sometimes also called a frame buffer. Specifically, frame memory 214 stores reconstructed blocks filtered by loop filter unit 212. [Intra-frame prediction unit]

[0116] The intra-prediction unit 216 performs intra-prediction based on the intra-prediction pattern interpreted from the coded bit stream, and references blocks within the current image stored in the block memory 210, thereby generating a prediction signal (intra-prediction signal). Specifically, the intra-prediction unit 216 references samples (e.g., luminance values, chrominance values) of blocks adjacent to the current block to perform intra-prediction, thereby generating an intra-prediction signal, and outputs the intra-prediction signal to the prediction control unit 220.

[0117] Furthermore, in the intra-frame prediction of the chromatic difference block, when the intra-frame prediction mode of the reference luminance block is selected, the intra-frame prediction unit 216 may also predict the chromatic difference component of the current block based on the luminance component of the current block.

[0118] Furthermore, when the information interpreted from the coded bitstream is used to represent PDPC, the intra-frame prediction unit 216 corrects the intra-frame predicted pixel values ​​based on the gradients of reference pixels in the horizontal / vertical directions. [Inter-frame prediction unit]

[0119] The inter-frame prediction unit 218 refers to the reference image stored in the frame memory 214 and predicts the current block. The prediction is performed in units of the current block or sub-blocks (e.g., 4×4 blocks) within the current block. For example, the inter-frame prediction unit 218 uses motion information (e.g., motion vector) interpreted from the coded bit stream to perform motion compensation, thereby generating an inter-frame prediction signal for the current block or sub-block, and outputs the inter-frame prediction signal to the prediction control unit 220.

[0120] Furthermore, when the information interpreted from the coded bit stream is applicable to the OBMC mode, the inter-frame prediction unit 218 can not only use the motion information of the current block obtained by motion estimation, but also use the motion information of the adjacent blocks to generate an inter-frame prediction signal.

[0121] Furthermore, when the information interpreted from the coded bitstream indicates that FRUC mode is applicable, the inter-frame prediction unit 218 performs motion estimation according to the pattern matching method (bidirectional matching or template matching) interpreted from the coded bitstream, thereby deriving motion information. Then, the inter-frame prediction unit 218 uses the derived motion information to perform motion compensation.

[0122] Furthermore, when applying BIO mode, the inter-frame prediction unit 218 derives the motion vector based on a model assuming constant-velocity linear motion. Also, when the information representation interpreted from the coded bitstream is applied to affine motion compensation prediction mode, the inter-frame prediction unit 218 derives the motion vector on a sub-block basis based on the motion vectors of a plurality of adjacent blocks. [Prediction Control Unit] The prediction control unit 220 selects either the intra-frame prediction signal or the inter-frame prediction signal, and outputs the selected signal as the prediction signal to the arithmetic unit 208. (Modification 1 of Embodiment 1)

[0123] Next, a variation of Embodiment 1 will be described. Block segmentation will be explained in detail in this variation. Furthermore, since the structure of the encoding device is the same as in Embodiment 1 described above, illustrations and explanations are omitted. [Processing of the Segmentation Section]

[0124] Hereinafter, with reference to FIG11, the processing of the segmentation section 102 of the encoding device 100 of this modified example will be described. FIG11 is a flowchart showing an example of the processing of the segmentation section 102 of the modified example 1 of embodiment 1.

[0125] First, the segmentation unit 102 performs a first segmentation on the image (S110). The first segmentation means block segmentation without utilizing segmentation information appended to the bitstream. For example, in the first segmentation, the image is segmented into square blocks of fixed block size. Furthermore, the first segmentation can also refer to the segmentation performed by the encoding and decoding devices, such as each sequence, slice, or block, by a predetermined segmentation method.

[0126] Subsequently, the segmentation unit 102 performs a second segmentation on the result of the first segmentation (S120). The information of the second segmentation is sent to the entropy encoding unit 110 and appended to the bit stream. Furthermore, it is not necessary to entropy encode the information of the second segmentation. For example, when the information of the second segmentation is flag information, the information of the second segmentation can also be directly included in the bit stream.

[0127] The second segmentation means segmenting blocks using segmentation information appended to the bitstream. For example, in the second segmentation, blocks are segmented recursively. The second segmentation may employ, for example, quadtree segmentation, ternary tree segmentation, binary tree segmentation, or any combination thereof.

[0128] The information for the second segmentation is information used to reconstruct the second segmentation in the decoding device. Therefore, the decoding device can reconstruct the image from multiple coded blocks. For example, the information for the second segmentation indicates how the CTU is recursively segmented. Furthermore, the information for the second segmentation may also include information indicating the segmentation method. Information indicating the segmentation method may include, for example, information indicating whether to segment the block, whether to perform a 4-segmentation, whether to perform a 3-segmentation, or whether to perform a 2-segmentation. Furthermore, the information for the second segmentation may also include information indicating the segmentation direction. Information indicating the segmentation direction may include, for example, information indicating whether to segment in the vertical direction or the horizontal direction. Here, the information indicating the segmentation method and the information indicating the segmentation direction can also be represented by the same flag.

[0129] In the first segmentation, firstly, the segmentation part 102 fills the image with square blocks of fixed block size (S111). These square blocks of fixed block size are called square coding tree units (CTUs).

[0130] At this point, depending on the image size, there will be cases where a square CTU of the same size can completely fill the image, and cases where it cannot. That is, there are cases where the entire image can be divided using only a CTU of the same size, and cases where it cannot be divided.

[0131] In this modified example, when a square CTU of the same size can completely fill the image (S112, YES), the segmentation unit 102 performs the second segmentation without further segmenting the first segmentation (S121). In summary, when the image is divided into a plurality of blocks containing only square CTUs of fixed block size by the first segmentation, the segmentation unit 102 ends the first segmentation and performs the second segmentation using the segmentation information for the plurality of blocks.

[0132] Furthermore, when a square CTU of the same size cannot completely fill the image (S112, NO), the segmentation unit 102 further divides the remaining area of ​​the image into rectangular blocks during the first segmentation (S113). The rectangular blocks formed in the remaining area are called rectangular CTUs. In summary, the segmentation unit 102 divides the image with square CTUs and rectangular CTUs. That is, the segmentation unit 102 deforms the CTUs into rectangles in the remaining area.

[0133] Furthermore, here, a rectangle is a quadrilateral other than a square, meaning that all four angles are equal. In short, a rectangle means that it is not a square, meaning that the lengths of the two pairs of opposite sides are different.

[0134] Next, the segmentation unit 102 further segments the rectangular CTU without using segmentation information (S114). In summary, the segmentation unit 102 further segments the rectangular CTU in the first segmentation. Specifically, the segmentation unit 102 fills the rectangular CTU with square blocks and / or rectangular blocks with sides having a factorial length of 2. Afterward, the segmentation unit 102 ends the first segmentation and performs a second segmentation using segmentation information (S122). In summary, the segmentation unit 102 performs a second segmentation for the square CTU and the square blocks and / or rectangular blocks within the rectangular CTU. [Specific example 1 of the first segmentation]

[0135] Hereinafter, referring to FIG12, a specific example 1 of the first division will be described. FIG12 is a diagram showing a specific example of the first division of a variation 1 of Embodiment 1. In this specific example, the rectangular CTU that contacts the edge of the image is divided into a plurality of square CTUs in the first division. In FIG12, the image size is 160 pixels long × 128 pixels wide, and the fixed block size of the square CTU is 128 × 128 pixels.

[0136] At this time, as shown in Figure 12(a), if a square CTU1201 with a size of 128×128 pixels is used to fill the image, a rectangular CTU1202 with a length of 48×width of 128 pixels will appear at the bottom of the image.

[0137] The resulting rectangular CTU1202, as shown in Figure 12(b), is divided into square blocks with sides of length that are powers of 2. The blocks should be smaller the closer they are to the edges of the image.

[0138] Since the shorter side length of the rectangular CTU1202 is 48 pixels (32 (2 to the power of 5) + 16 (2 to the power of 4), the rectangular CTU1202 is divided into four 32×32 pixel square blocks 1203 and eight 16×16 pixel square blocks 1204 as shown in (b). [Specific Example 2 of the First Division] Next, a specific example 2 of the first division will be described with reference to FIG13. FIG13 is a diagram showing a specific example of the first division of the modified example 1 of embodiment 1.

[0139] As shown in Figure 13(a), similar to Figure 12, a rectangular CTU1202 with dimensions of 48 x 128 pixels is generated at the bottom of the image. In this modified example, the rectangular CTU1202, as shown in Figure 13(b), is divided into rectangular blocks with sides having lengths that are powers of 2. At that time, it is sufficient to divide it into rectangular blocks with shorter sides that are closer to the edge of the image.

[0140] Since the shorter side length of the rectangular CTU1202 is 48 pixels (32 (2 to the power of 5) + 16 (2 to the power of 4)), the rectangular CTU1202 is divided into rectangular blocks 1301 of 32×128 pixels and rectangular blocks 1302 of 16×128 pixels, as shown in (b). Furthermore, Figure 13 shows an example where the rectangular CTU is filled only with rectangular blocks, but rectangular blocks and square blocks can also be mixed. [Specific Example 3 of the First Division] Next, a specific example 3 of the first division will be described with reference to Figure 14. Figure 14 is a diagram showing a specific example of the first division of the modified example 1 of embodiment 1.

[0141] In the specific example 2 above, the length of the long side of the rectangular block within the rectangular CTU is the same as the length of the side of the square CTU, but it is not limited to this. The length of the side of the rectangular block only needs to be an integer power of 2, and it can also be a different length than the side of the square CTU.

[0142] For example, as shown in Figure 14(b), the rectangular CTU1202 can also be divided into two rectangular blocks 1401 of 32×64 pixels and four rectangular blocks 1402 of 16×32 pixels. Here, the length of the longer side is an integer power of 2 of the length of the shorter side, and the case of shorter side:longer side = 1:2 is specifically illustrated.

[0143] Furthermore, when a rectangular block is used to fill a rectangular CTU, the aspect ratio of the rectangular block can be set to a specific value or lower. In short, an upper limit can also be set for the length of the longer side relative to the length of the shorter side.

[0144] Furthermore, in the above specific examples 1 to 3, the rectangular CTU1202 is located at the bottom of the image, but it can exist anywhere within the image, such as at the right end, the top end, or the center of the image. [Effects, etc.] As described above, based on this modified example, since the degree of freedom of the block segmentation shape of the first segmentation is increased, the coding efficiency may be improved.

[0145] Furthermore, according to this variant example, extremely long and thin block shapes can be automatically eliminated in the first segmentation, the flag representing the block composition can be simplified, and the amount of code can be reduced.

[0146] This modified example can also be implemented in combination with at least a portion of other embodiments of the present invention. Furthermore, a portion of the processing described in the flowchart of this modified example, a portion of the device configuration, a portion of the syntax, etc., can also be implemented in combination with other embodiments. (Modification 2 of Embodiment 1)

[0147] Next, a variation of Embodiment 1, Example 2, will be described. The difference between this variation and Embodiment 1 and its variation 1 is that, in the second segmentation, quadtree segmentation is prohibited in the rectangular CTU or rectangular block. Hereinafter, this variation will be specifically described with reference to Figures 15 and 16, focusing on the differences from Embodiment 1 and its variation 1. Furthermore, since the structure of the encoding device is the same as in Embodiment 1, illustrations and descriptions are omitted. [Processing of the Segmentation Unit]

[0148] FIG15 is a flowchart showing an example of the processing of the segment 102 in modified example 2 of embodiment 1. Specifically, FIG15 shows the details of the second segmentation in FIG11. FIG15 explains the case where step S114 of FIG11 is not performed. In summary, the second segmentation of the square CTU and the rectangular CTU resulting from the first segmentation is explained.

[0149] First, the segmentation unit 102 determines whether the CTU (hereinafter referred to as the object CTU) of the object to be segmented in the second segmentation is a square (S201). If the object CTU is a square (S201, YES), the segmentation unit 102 permits quadtree segmentation (QT) for the second segmentation of the object CTU (S202). If the object CTU is not a square (S201, NO), the segmentation unit 102 prohibits QT for the second segmentation of the object CTU (S203). [Specific example of the second segmentation]

[0150] Hereinafter, with reference to FIG16, a specific example of the second division will be described. FIG16 is a diagram showing a specific example of the first and second divisions of picture 1601 of modified example 2 of embodiment 1.

[0151] Figure 16(a) shows the result of the first segmentation of image 1601. Image 1601 is segmented into a plurality of CTUs, including square CTU1602 and rectangular CTU1603. Figure 16(b) shows the result of the second segmentation of square CTU1602. Figure 16(c) shows the result of the second segmentation of rectangular CTU1603.

[0152] In this specific example, for rectangular CTUs (shadow blocks) that are in contact with the edge of image 1601, segmentation in the second segmentation quadtree is prohibited. Conversely, for rectangular CTUs (not shown) that are not in contact with the edge of image 1601, segmentation in the second segmentation quadtree is permitted.

[0153] In the square CTU1602 of Figure 16(b), QT is performed recursively first, followed by binary tree splitting (BT) or ternary tree splitting (TT). In general, QT is permitted in the square CTU1602. Alternatively, it can be stipulated that a node that has undergone a split other than QT (in this case, BT or TT) is prohibited from subsequent use of QT. In the rectangular CTU1603 of Figure 16(c), QT is prohibited, and only BT and TT are permitted. [Effects, etc.]

[0154] According to this variation, since the second segmentation does not require support for quadtree segmentation of rectangular CTUs or rectangular blocks, the processing may be simplified. Furthermore, since quadtree segmentation is prohibited for rectangular CTUs or rectangular blocks, the number of segmentation candidates is reduced, and the amount of information in the second segmentation may also be reduced.

[0155] This modified example can also be implemented in combination with at least a portion of other embodiments of the present invention. Furthermore, a portion of the processing described in the flowchart of this modified example, a portion of the apparatus configuration, a portion of the syntax, etc., can also be implemented in combination with other embodiments. (Other modifications of Embodiment 1)

[0156] Furthermore, it is also possible to enable / disable the segmentation of the rectangular CTU in the first segment (Variation 1) and the QT of the rectangular CTU in the second segment (Variation 2) on a per-image, slice, block, or CTU basis. In this case, enabling / disabling can also be determined based on the image type (e.g., I, P, B images), brightness, color difference, or any combination thereof.

[0157] Furthermore, when a rectangular segmentation encoding method is not possible, the second segmentation of a rectangular CTU or rectangular block obtained by the first segmentation can also be prohibited. For example, when BT and TT are prohibited, the second segmentation of a rectangular CTU or rectangular block can also be prohibited. The prohibition of BT and TT can also be set in the flag information of the header layer.

[0158] Also, the second segmentation of the rectangular CTU or rectangular block formed by the first segmentation may be permitted only on at least one side of the right and bottom edges of the image. Also, flag information indicating whether the second segmentation of the rectangular CTU or rectangular block formed by the first segmentation is permitted may be attached to the bitstream.

[0159] Also, when a rectangular segmentation encoding method is not possible, the segmentation of the first rectangular CTU can also prohibit rectangular blocks and only allow squares.

[0160] Furthermore, the upper limit of the number of levels of the subdivision permitted in the recursive second subdivision may also vary depending on the block shape at the beginning of the second subdivision. The upper limit of the number of subdivision levels may also be defined independently in both the vertical and horizontal directions.

[0161] Furthermore, the prohibition of quadtree segmentation of the rectangular block in the second segmentation applies not only to the block at the beginning of the second segmentation, but also to the blocks within the second segmentation. For example, when a rectangular block is formed in the second segmentation, (i) quadtree segmentation of the rectangular block is prohibited when the rectangular block touches the edge of the image, and (ii) quadtree segmentation of the rectangular block is permitted when the rectangular block does not touch the edge of the image.

[0162] Referring to Figures 17 and 18, the prohibition of quadtree segmentation of the rectangular blocks formed in the second segmentation will be specifically explained. Figure 17 is a diagram showing a specific example of the second segmentation of a square CTU in another variation of Embodiment 1. Figure 18 is a diagram showing a specific example of the second segmentation of a rectangular CTU in another variation of Embodiment 1. Furthermore, the blocks marked with shaded lines in Figures 17 and 18 represent rectangular blocks where quadtree segmentation is prohibited. In Figure 17(a), the square CTU 1602 is segmented by a quadtree into four square blocks 1701 to 1704.

[0163] As shown in Figure 17(b), each of the four square blocks 1701 to 1704 is divided. Specifically, square block 1701 is divided horizontally by a binary tree into two rectangular blocks 17011 and 17012. Square block 1702 is divided vertically by a binary tree into two rectangular blocks 17021 and 17022. Square block 1703 is divided by a quadtree into four rectangular blocks 17031 to 17034. Square block 1704 is divided vertically by a ternary tree into three rectangular blocks 17041 to 17043.

[0164] Furthermore, in Figure 17(b), rectangular blocks 17011, 17012, 17021, and 17022 are in contact with the edge of the image, therefore quadtree segmentation is prohibited in subsequent segmentation. On the other hand, rectangular blocks 17041 to 17043 are not in contact with the edge of the image, therefore quadtree segmentation is permitted in subsequent segmentation.

[0165] In Figure 17(c), square blocks 17032 and 17033 and rectangular block 17043 are divided, while other blocks are not divided. Square block 17032 is divided by a quadtree into four square blocks. Square block 17033 is divided vertically by a binary tree into rectangular blocks 170331 and 170332. Rectangular block 17043 is divided horizontally by a binary tree into two rectangular blocks 170431 and 170432.

[0166] Furthermore, in Figure 17(c), since rectangular block 170331 touches the edge of the image, quadtree segmentation is prohibited in subsequent segmentation. Conversely, since rectangular blocks 170332, 170431, and 170432 do not touch the edge of the image, quadtree segmentation is permitted in subsequent segmentation. Thus, according to Figures 17(a) to (c), square CTU1602 is recursively segmented into a plurality of blocks. In Figure 18(a), rectangular CTU1603 is horizontally segmented by a binary tree into two rectangular blocks 1801 and 1802.

[0167] As shown in Figure 18(b), the two rectangular blocks 1801 and 1802 are divided. Rectangular block 1801 is divided vertically by a binary tree into two rectangular blocks 18011 and 18012. Rectangular block 1802 is divided vertically by a ternary tree into two square blocks 18021 and 18022 and a rectangular block 18023.

[0168] Furthermore, in Figure 18(b), since rectangular blocks 18011 and 18023 are in contact with the edge of the image, quadtree segmentation is prohibited in subsequent segmentation. Conversely, since rectangular block 18012 is not in contact with the edge of the image, quadtree segmentation is permitted in subsequent segmentation. Also, since square blocks 18021 and 18022 are not rectangular blocks, quadtree segmentation is permitted in subsequent segmentation.

[0169] In Figure 18(c), only the rectangular block 18011 within the blocks formed by the segmentation in (b) is segmented; the other blocks are not segmented. The rectangular block 18011 is segmented horizontally by a ternary tree into three rectangular blocks 180111 to 180113. Since the three rectangular blocks 180111 to 180113 touch the edge of the image, quadruple tree segmentation is prohibited in subsequent segmentations.

[0170] As above, for example, when a rectangular block is formed in the second segmentation, (i) when the rectangular block touches the edge of the image, quadtree segmentation of the rectangular block is prohibited, and (ii) when the rectangular block does not touch the edge of the image, quadtree segmentation of the rectangular block is permitted. Therefore, since the number of candidates for segmentation of the rectangular block can be reduced in the second segmentation, the processing load can be reduced, and the amount of information in the second segmentation can be decreased.

[0171] Furthermore, in the above-described modifications, the block segmentation process of the segmentation unit 102 of the encoding device 100 has been explained, but the decoding device 200 may also have such a segmentation unit. In summary, the segmentation unit of the decoding device 200 may also perform block segmentation in the same manner as the segmentation unit 102 of the encoding device 100.

[0172] This modified example can also be implemented in combination with at least a portion of other embodiments of the present invention. Furthermore, a portion of the processing described in the flowchart of this modified example, a portion of the device configuration, a portion of the syntax, etc., can also be implemented in combination with other embodiments. (Embodiment 2)

[0173] In the above embodiments, each functional block can generally be implemented by an MPU and memory. Furthermore, the processing of each functional block is generally achieved by a program execution unit such as a processor reading and executing software (programs) recorded on a recording medium such as ROM. This software can be distributed by downloading or by recording on a recording medium such as semiconductor memory. Alternatively, each functional block can of course be implemented by hardware (dedicated circuitry).

[0174] Furthermore, the processing described in each embodiment can be implemented by centralized processing using a single device (system) or distributed processing using multiple devices. Also, the processors executing the above program can be a single number or multiple. That is, centralized processing or distributed processing is possible. The embodiments of the present invention are not limited to the above embodiments and various modifications can be made, and such modifications are also included within the scope of the present invention.

[0175] Further examples of application of the motion image encoding method (image encoding method) or motion image decoding method (image decoding method) shown in the above embodiments, and systems utilizing them, will be described herein. The system is characterized by having an image encoding device utilizing the image encoding method, an image decoding device utilizing the image decoding method, and an image encoding / decoding device possessing both. Other configurations of the system may be appropriately modified depending on the circumstances. [Application Examples]

[0176] Figure 19 is a diagram showing the overall structure of the content delivery system ex100 that implements the content publishing service. The communication service provision area is divided into the required size, and fixed wireless stations, namely base stations ex106, ex107, ex108, ex109, and ex110, are set up in each cell.

[0177] In the content delivery system ex100, various devices such as computer ex111, game console ex112, camera ex113, home appliance ex114, and smartphone ex115 are connected to the Internet ex101 via Internet service provider ex102 or communication network ex104, and base stations ex106 to ex110. The content delivery system ex100 can also be connected by combining any of the above-mentioned components. The devices can also be directly or indirectly connected to each other via telephone network or short-range wireless without using fixed wireless stations, i.e., base stations ex106 to ex110. Furthermore, the streaming server ex103 connects to the various devices such as computer ex111, game console ex112, camera ex113, home appliance ex114, and smartphone ex115 via the Internet ex101, etc. Furthermore, the streaming server ex103 connects to terminal devices and the like within a hotspot inside the aircraft ex117 via satellite ex116.

[0178] Furthermore, wireless access points or hotspots can be used to replace base stations ex106 to ex110. Also, the streaming server ex103 can be connected directly to the communication network ex104 without going through the Internet ex101 or the Internet service provider ex102, or directly to the aircraft ex117 without going through the satellite ex116.

[0179] The camera ex113 is a digital camera or similar device capable of capturing still images and videos. Also, the smartphone ex115 is a smartphone, mobile phone, or PHS (Personal Handyphone System) that generally supports 2G, 3G, 3.9G, 4G, and future 5G mobile communication systems. The home appliance ex118 includes refrigerators or devices included in a home fuel cell cogeneration system.

[0180] In the content supply system ex100, a terminal device with photography capabilities is connected to the streaming server ex103 via a base station ex106, etc., to achieve live broadcasting, etc. For live broadcasting, the terminal device (computer ex111, game console ex112, camera ex113, home appliance ex114, smartphone ex115, and terminal device in an airplane ex117, etc.) performs the encoding processing described in the above embodiments on still images or animations captured by the user using the terminal device. It then multiplexes the image data obtained through encoding and the corresponding encoded audio data, and sends the obtained data to the streaming server ex103. That is, each terminal device functions as an image encoding device according to this invention.

[0181] Furthermore, the streaming server ex103 will stream and publish content data sent by customers who require it. Customers can be terminal devices such as computers ex111, game consoles ex112, cameras ex113, home appliances ex114, smartphones ex115, and airplanes ex117 that can decode the encoded data. Each machine receiving the published data will decode and play it. That is, each machine functions as an image decoding device according to this invention. [Distributed Processing]

[0182] Furthermore, the streaming server ex103 can also be multiple servers or multiple computers, distributing the processing, recording, or distribution of data. For example, the streaming server ex103 can also be implemented using a CDN (Contents Delivery Network), which connects many edge servers distributed around the world to achieve content distribution. In a CDN, physically close edge servers are dynamically allocated according to the customer. Then, by caching and distributing content to that edge server, latency can be reduced. Furthermore, since processing can be distributed across multiple edge servers or the distribution subject can be switched to other edge servers when an error occurs or the communication status changes due to increased traffic, the distribution can bypass the network portion where the problem occurred to continue distributing the data, thus achieving high-speed and stable distribution.

[0183] Furthermore, the encoding processing of captured data can be performed not only on the distributed processing of the release itself, but also on each terminal device or on the server side, or the workload can be shared among them. As an example, the encoding processing generally involves two processing loops. In the first loop, the image complexity or bit amount of a frame or scene unit is detected. In the second loop, processing is performed to maintain image quality or improve encoding efficiency. For example, the terminal device performs the first encoding processing, and the server side receiving the content performs the second encoding processing, thereby reducing the processing load on each terminal device and improving the quality and efficiency of the content. At this time, if near-instantaneous reception and decoding are required, the data completed by the first encoding on the terminal device can be received and played on other terminal devices, thus enabling more flexible real-time communication.

[0184] As another example, cameras such as the ex113 extract features from images, compress the relevant feature data as metadata, and send it to a server. The server compresses the image according to its meaning, for example, by judging the importance of objects based on the features and switching the quantum precision accordingly. Feature data is particularly effective in improving the accuracy and efficiency of motion vector prediction when the server compresses it again. Furthermore, simple encoding such as VLC (Variable Length Coding) can be performed on the terminal device, while heavy-duty encoding such as CABAC (Context-Adaptive Binary Arithmetic Coding) can be performed on the server.

[0185] Furthermore, as another example, in stadiums, shopping malls, or factories, multiple images of roughly the same scene are sometimes captured by multiple terminal devices. In this case, the multiple terminal devices that take the photos, along with other terminal devices and servers that do not take photos as needed, are used to distribute the encoding and processing in units such as GOP (Group of Pictures), image units, or square units of images. This reduces latency and achieves real-time processing.

[0186] Furthermore, since the multiple image data are roughly the same scene, it is also possible to manage and / or instruct the image data captured by each terminal device to reference each other via a server. Alternatively, the server can receive the encoded data from each terminal device, change the reference relationship between the multiple data, or modify or replace the image itself, and re-encode it. In this way, a stream with improved quality and efficiency for each data can be generated.

[0187] Furthermore, the server can also transcode the image data by changing its encoding method before publishing the image data. For example, the server can convert the MPEG system encoding method to the VP system, or convert H.264 to H.265.

[0188] Thus, encoding processing can be performed by a terminal device or a server of 1 or more. Therefore, although the term "server" or "terminal" is used to describe the main body performing the processing below, some or all of the processing performed by the server can also be performed by the terminal device, or some or all of the processing performed by the terminal device can also be performed by the server. Furthermore, the same applies to decoding processing. [3D, Multi-angle]

[0189] In recent years, there has been an increasing trend of integrating and utilizing images or videos of different scenes captured by multiple cameras such as ex113 and / or smartphones such as ex115, which are roughly synchronized with each other, or of the same scene captured from different angles. The images captured by each terminal device are integrated based on the relative positional relationship between the terminal devices or the regions containing consistent feature points in the images.

[0190] The server not only encodes two-dimensional dynamic images, but can also automatically or at a user-specified time encode still images based on scene analysis of the dynamic images, and send them to the receiving terminal device. Furthermore, when the relative positional relationship between the camera terminal devices is available, the server can generate the three-dimensional shape of the scene not only based on two-dimensional dynamic images, but also based on images of the same scene captured from different angles. Moreover, the server can also encode three-dimensional data generated from point clouds, etc., or use the three-dimensional data to identify people or objects, or select or reconstruct images to be sent to the receiving terminal device based on tracking results from images captured from multiple terminal devices.

[0191] Thus, users can freely select images corresponding to each photography terminal device to appreciate the scene, and can also appreciate the content of images cut out from any viewpoint using three-dimensional data reconstructed from multiple images or videos. Furthermore, similar to images, sound can also be picked up from multiple different angles, and the server, in conjunction with the images, multiplexes and sends sound from specific angles or spaces with the images.

[0192] Furthermore, in recent years, content that aligns the real world with the virtual world, such as Virtual Reality (VR) and Augmented Reality (AR), has become increasingly popular. When creating VR images, the server creates separate viewpoint images for the right and left eyes. Multi-View Coding (MVC) and other methods are used to encode the images from different viewpoints, allowing for reference between them, or they can be encoded as separate streams without mutual reference. During decoding of these different streams, they are synchronized with each other according to the user's viewpoint to recreate the virtual three-dimensional space.

[0193] In AR image generation, the server overlays virtual object information in the virtual space onto the camera information in the real space based on the 3D position or the user's viewpoint movement. The decoding device can also acquire or retain virtual object information and 3D data, and generate a 2D image in response to the user's viewpoint movement, smoothly combining them to create overlay data. Furthermore, in addition to sending requests for virtual object information, the decoding device also sends the user's viewpoint movement to the server. The server, in conjunction with the viewpoint movement received from the 3D data held on the server, can create overlay data, encode the overlay data, and publish it to the decoding device. Moreover, in addition to RGB, the overlay data also has an α value representing penetration. The server can also set the α value to 0 for parts outside the object created from the 3D data, encoding the data in a state where that part will penetrate. Alternatively, the server can, like a chroma key, set a predetermined RGB value for the background and set the parts outside the object to the background color to generate data.

[0194] Similarly, the decoding processing of published data can be performed on the client's terminal devices or on the server side, or it can be shared among them. For example, a terminal device can temporarily send a receiving request to the server, allowing other terminal devices to receive the content in response, perform decoding processing, and send a signal indicating completion of decoding to a device with a display. By distributing the processing regardless of the performance of the communicating terminal devices themselves, and selecting appropriate content, high-quality data can be played. Furthermore, as another example, large-size image data can be received on a TV, etc., and the image can be decoded into segments such as squares and displayed on the viewer's personal terminal device. This allows for sharing of the entire image while simultaneously allowing the viewer to simultaneously check their own area of ​​responsibility or areas requiring more detailed information.

[0195] Furthermore, it is anticipated that in the future, under conditions where multiple short-range, medium-range, or long-range wireless communication methods can be used regardless of indoor or outdoor environments, MPEG-DASH and other publishing system standards will be utilized to seamlessly receive content while switching appropriate data during the connection. This will allow users to switch between decoding and display devices, such as monitors installed indoors or outdoors, without being limited to their own terminal devices. Additionally, decoding can be performed while switching between decoding and display terminal devices based on location information. This also allows for the display of map information on the walls or floors of adjacent buildings with embedded display devices while moving towards a destination. Furthermore, the bit rate of the received data can be switched based on the ease of access to encoded data on the network, such as caching the encoded data on a server that can be accessed briefly from the receiving terminal device, or copying it to an edge server of the content publishing service. [Adaptive Coding]

[0196] Regarding content switching, the characteristics of the adaptable stream compressed and encoded by the dynamic image coding method shown in the above embodiments will be explained using Figure 20. It is acceptable for the server to have multiple streams with the same content but different qualities as individual streams, but it is also possible to utilize the temporal / spatial adaptability of the stream achieved through layered encoding, as shown in the figure, to switch content. In summary, the decoding side determines the layer to be decoded based on internal performance factors and external factors such as communication band status. The decoding side can thus freely switch between low-resolution and high-resolution content during decoding. For example, if a video viewed on a smartphone (ex115) while on the go is to be viewed on an internet TV or similar device at home, the device only needs to decode the same stream to a different layer, thus reducing the burden on the server side.

[0197] Furthermore, in addition to the aforementioned configuration where an enhancement layer exists at a higher level than the base layer for each encoded image, the enhancement layer contains metadata such as image statistical information. The decoder can then use this metadata to perform super-resolution on the base layer image, thereby generating high-quality content. Super-resolution can also refer to either an increase in the S / N ratio and an increase in resolution at the same resolution. The metadata includes information used to specify the coefficients of linear or nonlinear filters used in super-resolution processing, or information specifying the parameter values ​​for filtering, machine learning, or least squares operations used in super-resolution processing.

[0198] Furthermore, it is also possible to construct, for example, by dividing the image into blocks according to the semantics of objects within the image, and the decoding side selects the blocks to be decoded, thereby decoding only a portion of the area. Also, object attributes (people, cars, balls, etc.) and their positions within the image (coordinate positions within the same image, etc.) are stored as metadata, so that the decoding side can determine the block containing the desired object based on the metadata and the position of that specific object. For example, as shown in Figure 21, the metadata is stored using a data storage structure different from pixel data, such as HEVC's SEI information. This metadata represents, for example, the position, size, or color of the main object.

[0199] Also, metadata can be stored in units consisting of multiple images, such as streaming, sequences, or random access units. This allows the decoder to obtain information such as the time a specific person appears in the image, and by combining this image unit information, it can determine the image containing a specific object and the position of objects within that image. [Webpage Optimization]

[0200] Figure 22 is a diagram showing an example of a webpage display on a computer such as ex111. Figure 23 is a diagram showing an example of a webpage display on a smartphone such as ex115. As shown in Figures 22 and 23, webpages sometimes contain multiple link images that link to image content. Depending on the browsing device, the viewing method will be different. When multiple link images can be seen on the screen, the display device (decoding device) displays still images or I-images of each content as link images, or displays multiple still images or I-images such as GIF animations, or only receives the base layer, decodes and displays the images, until the user explicitly selects a link image, or the link image is near the center of the image, or the entire link image enters the screen.

[0201] When a user selects an image, the display device decodes the base layer with the highest priority. Furthermore, if the HTML constituting the webpage contains information representing adaptability content, the display device may decode up to the enhancement layer. Also, to ensure real-time performance, before selection or when communication bandwidth is very limited, the display device only decodes and displays images referenced from the front (I images, P images, and B images referenced only from the front), thereby reducing the delay between the decoding and display of the initial image (the delay from the start of content decoding to the start of display). Alternatively, the display device may intentionally ignore image reference relationships, perform front-reference, and roughly decode all B and P images, then perform normal decoding as time passes and more images are received. [Autonomous Driving]

[0202] Furthermore, when receiving still images or image data such as two-dimensional or three-dimensional map information for the purpose of vehicle autonomous driving or driving support, the receiving terminal device may also receive, in addition to receiving image data belonging to layer 1 or above, weather or construction information as metadata, and decode them accordingly. Moreover, the metadata may belong to a layer, or it may simply be multiplexed with the image data.

[0203] At this time, since the vehicle, drone, or aircraft containing the receiving terminal device is moving, the receiving terminal device sends its location information when a receiving request is received. This allows for seamless reception and decoding while switching between base stations ex106 to ex110. Furthermore, the receiving terminal device can dynamically switch the level of metadata reception or map information update level according to the user's selection, the user's situation, or the status of the communication frequency band.

[0204] As described above, in the content delivery system ex100, customers can instantly receive encoded information sent by users, decode it, and play it. [Personal Content Publishing]

[0205] Furthermore, the content delivery system ex100 can not only publish high-quality, long-duration content from video publishers, but also low-quality, short-duration unicast or multicast content from individuals. Moreover, this type of personal content is expected to increase in the future. To make personal content of higher quality, it can also be edited by the server before encoding. This can be achieved, for example, by the following configuration.

[0206] During photography, the server performs real-time or cumulative processing, and after photography, it identifies and processes the original image or encoded data, including photography error detection, scene estimation, semantic analysis, and object detection. Then, based on the identification results, the server performs the following editing: manually or automatically correcting out-of-focus or camera shake, deleting scenes of low importance such as those with lower brightness or out-of-focus areas, emphasizing object edges, or changing color tones. The server encodes the edited data based on the editing results. Furthermore, given that longer shooting times lead to lower viewership, the server can also automatically edit not only low-importance scenes as mentioned above, but also scenes with minimal movement, based on image processing results and shooting time, to maintain content within a specific time frame. Additionally, the server can generate and encode summaries based on the results of scene semantic analysis.

[0207] Furthermore, there are cases where personal content directly infringes on copyright, moral rights, or portrait rights, and the scope of shared content exceeds the intended scope, causing inconvenience to individuals. Therefore, for example, users can intentionally change the focus of an image to avoid focusing on people's faces or homes at the periphery of the screen during encoding. Additionally, the server can identify whether the encoded image contains faces of individuals different from those pre-registered. If so, it can add mosaic or other processing to the faces. Alternatively, as pre-processing or post-processing before encoding, based on copyright considerations, the server can specify the people or background areas the user wishes to process, replacing the specified areas with other images or blurring the focus. If it involves people, the server can track the person in the dynamic image while replacing the face.

[0208] Furthermore, for personal content with limited data, real-time performance is crucial. Therefore, although bandwidth varies, the decoding device prioritizes receiving the base layer for decoding and playback. During this period, the decoding device receives the enhancement layer. In loop playback or when playback occurs more than twice, high-definition video, including the enhancement layer, can be played. Thus, with adaptively encoded streaming, the following experience can be provided: while the animation is coarse when not selected or at the beginning of viewing, the image improves as the streaming becomes more intelligent. Besides adaptive encoding, the same experience can also be provided by combining the first coarse stream and the second stream encoded with reference to the first animation into a single stream. [Other Use Cases]

[0209] Furthermore, such encoding or decoding processing is generally performed by the LSIex500 present in each terminal device. The LSIex500 can be a single chip or composed of multiple chips. Alternatively, software for encoding or decoding motion images can be integrated into a recording medium (CD-ROM, floppy disk, or hard disk, etc.) readable by a computer such as ex111, and the encoding or decoding processing can be performed using this software. Furthermore, when the smartphone ex115 is equipped with a camera, the motion data acquired by the camera can also be sent. In this case, the motion data is data encoded by the LSIex500 present in the smartphone ex115.

[0210] Furthermore, the LSIex500 can also be configured to download and enable application software. In this case, the terminal device first determines whether it supports the content encoding method or whether it has the ability to execute a specific service. If the terminal device does not support the content encoding method or does not have the ability to execute a specific service, the terminal device downloads the content or application software, and then obtains and plays the content.

[0211] Furthermore, not limited to the content delivery system ex100 via the Internet ex101, at least one of the motion graphics encoding devices (image encoding devices) or motion graphics decoding devices (image decoding devices) of the above embodiments can also be incorporated into the digital playback system. Since the playback radio waves carrying images and sound are transmitted and received using multiplexed data via satellite, etc., it is easier to configure for unicast compared to the content delivery system ex100. The difference lies in its suitability for multicast, but the same applications can be performed regarding encoding and decoding processing. [Hardware Configuration]

[0212] Figure 24 is a diagram showing an example of a smartphone ex115. Figure 25 is a diagram showing an example of the configuration of the smartphone ex115. The smartphone ex115 includes: an antenna ex450 for transmitting and receiving radio waves with a base station ex110; a camera unit ex465 for capturing images and still images; and a display unit ex458 for displaying decoded data such as images captured by the camera unit ex465 and images received by the antenna ex450. The smartphone ex115 further includes: an operation unit ex466, which is a touch panel, etc.; a sound output unit ex457, a speaker for outputting sound or audio; a sound input unit ex456, a microphone for sound input, etc.; a memory unit ex467, used to store encoded or decoded data such as captured images or still images, recorded audio, received images or still images, and emails; and a slot unit ex464, which is the interface with the SIM ex468, which is used to identify the user and authenticate access to various data, primarily the internet. Furthermore, external memory can be used to replace the memory unit ex467.

[0213] Furthermore, the main control unit ex460, which coordinates and controls the display unit ex458 and the operation unit ex466, is connected to the power circuit unit ex461, the operation input control unit ex462, the image signal processing unit ex455, the camera interface unit ex463, the display control unit ex459, the modulation / demodulation unit ex452, the multiplexing / splitting unit ex453, the audio signal processing unit ex454, the slot unit ex464, and the memory unit ex467 via the bus ex470.

[0214] When the power button is turned on by the user, the power circuit section ex461 supplies power from the battery pack to each part, and turns the smartphone ex115 into an operable state.

[0215] The smartphone ex115 performs call and data communication processing under the control of the main control unit ex460, which consists of a CPU, ROM, and RAM. During a call, the voice signal processing unit ex454 converts the voice signal received by the voice input unit ex456 into a digital voice signal, and the modulation / demodulation unit ex452 performs spectrum spreading processing on it. The transmitting / receiving unit ex451 performs digital-to-analog conversion processing and frequency conversion processing before transmitting it through the antenna ex450. Furthermore, the received data is amplified, undergoes frequency conversion processing and analog-to-digital conversion processing, and the modulation / demodulation unit ex452 performs spectrum despreading processing. The voice signal processing unit ex454 converts it into analog voice data, which is then output from the voice output unit ex457. In data communication mode, text, still images, or video data are sent to the main control unit ex460 via the operation input control unit ex462 through the operation unit operation unit ex466, and the same sending and receiving processing is performed. When sending images, still images, or images and sound in data communication mode, the image signal processing unit ex455 compresses and encodes the image signal stored in the memory unit ex467 or the image signal input from the camera unit ex465 using the motion image encoding method shown in the above embodiments, and sends the encoded image data to the multiplexing / splitting unit ex453. Furthermore, the sound signal processing unit ex454 encodes the sound signal and sends the encoded sound data to the multiplexing / splitting unit ex453, wherein the sound signal is the signal received by the sound input unit ex456 during the process of the camera unit ex465 capturing images or still images. The multiplexing / demultiplexing unit ex453 multiplexes the encoded image data and encoded audio data in a predetermined manner, and performs modulation and conversion processing on the modulation / demodulation unit (modulation / demodulation circuit unit) ex452 and the transmitting / receiving unit ex451, and transmits them through the antenna ex450.

[0216] When receiving images attached to emails or chats, or images linked to web pages, in order to decode the multiplexing data received via antenna ex450, the multiplexing / demultiplexing unit ex453 separates the multiplexing data into bitstreams of image data and bitstreams of audio data by demultiplexing the multiplexing data. The encoded image data is then supplied to the image signal processing unit ex455 via the synchronization bus ex470, and the encoded audio data is supplied to the audio signal processing unit ex454. The image signal processing unit ex455 decodes the image signal using a motion picture decoding method corresponding to the motion picture encoding method described in the above embodiments, and displays the image or still image contained in the linked motion picture file on the display unit ex458 via the display control unit ex459. Furthermore, the audio signal processing unit ex454 decodes the audio signal and outputs audio from the audio output unit ex457. Furthermore, given the widespread adoption of real-time streaming, depending on the user's situation, there may be instances where sound playback is deemed inappropriate from a social perspective. Therefore, as an initial approach, it is advisable to use a configuration that does not reproduce sound signals and only plays video signals. Sound can also be played synchronously only when the user performs actions such as clicking on video data.

[0217] Furthermore, the smartphone ex115 is used as an example here. However, in addition to being a transceiver terminal device with both an encoder and a decoder, three implementation forms can also be considered: a transmitting terminal device with only an encoder and a receiving terminal device with only a decoder. In other words, in a digital playback system, multiplexed data such as audio data and video data can be received or transmitted. However, in addition to audio data, text data related to the video can also be multiplexed, or the video data itself can be received or transmitted without receiving or transmitting multiplexed data.

[0218] Furthermore, while the main control unit of the CPU, ex460, controls encoding or decoding processing, terminal devices often also have GPUs. Therefore, it is possible to utilize GPU performance to uniformly process large areas by using memory shared between the CPU and GPU, or by managing the addresses of memory for shared use. This shortens encoding time, ensures real-time performance, and achieves low latency. Specifically, using a GPU instead of a CPU, and performing motion estimation, deblocking filtering, SAO (Sample Adaptive Offset), and conversion / quantization processing uniformly on an image-by-image basis, is highly efficient.

[0219] Industrial Applicability: This invention can be used in, for example, television receivers, digital video recorders, car navigation systems, mobile phones, digital cameras or digital video cameras.

[0220] From the above discussion, it will be understood that the present invention can be embodied in various embodiments, including but not limited to the following:

[0221] Item 1: An encoding apparatus for encoding an image in units of blocks, and comprising: a circuit; and a memory, wherein the circuit uses the memory to divide the image into a plurality of blocks by performing a first segmentation, wherein the first segmentation is to divide the image into square blocks of a fixed block size, the plurality of blocks including the square blocks of the fixed block size and a first non-square block that does not conform to the fixed block size, performing a second segmentation on the plurality of blocks, appending the information of the second segmentation to a bitstream, and prohibiting quadtree segmentation of the first non-square block in the second segmentation.

[0222] Item 2: The encoding device of Item 1, wherein in the aforementioned second segmentation, (i) when the aforementioned first non-square block is in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned first non-square block is prohibited, and (ii) when the aforementioned first non-square block is not in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned first non-square block is permitted.

[0223] Item 3: The encoding device of item 1 or 2, wherein when a second non-square block is formed in the aforementioned second segmentation, (i) when the aforementioned second non-square block is in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned second non-square block is prohibited, and (ii) when the aforementioned second non-square block is not in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned second non-square block is permitted.

[0224] Item 4: An encoding method for encoding an image in units of blocks, wherein the image is divided into a plurality of blocks by performing a first segmentation, wherein the first segmentation is performed on the image by dividing it into square blocks of a fixed block size, wherein the plurality of blocks include the square blocks of the fixed block size and a first non-square block that does not conform to the fixed block size, wherein a recursive second segmentation is performed on the plurality of blocks, wherein the information of the second segmentation is appended to a bitstream, and wherein quadtree segmentation of the first non-square block is prohibited in the second segmentation.

[0225] Item 5: A decoding apparatus for decoding an image in blocks, comprising: a circuit; and a memory, wherein the circuit utilizes the memory to form a plurality of blocks for the image by performing a first segmentation, wherein the first segmentation is performed by dividing the image into square blocks of a fixed block size, wherein the plurality of blocks include the square blocks of the fixed block size and a first non-square block that does not conform to the fixed block size, obtaining information of a second segmentation from a bitstream, performing a recursive second segmentation on the plurality of blocks based on the information of the second segmentation, and prohibiting quadtree segmentation of the first non-square block in the second segmentation.

[0226] Item 6: The decoding device of Item 5, wherein in the aforementioned second segmentation, (i) when the aforementioned first non-square block is in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned first non-square block is prohibited, and (ii) when the aforementioned first non-square block is not in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned first non-square block is permitted.

[0227] Item 7: The decoding device of item 5 or 6, wherein when a second non-square block is formed in the aforementioned second segmentation, (i) when the aforementioned second non-square block is in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned second non-square block is prohibited, and (ii) when the aforementioned second non-square block is not in contact with the edge of the aforementioned image, the quadtree segmentation of the aforementioned second non-square block is permitted.

[0228] Item 8: A decoding method, wherein an encoded image is decoded in blocks, and the image is divided into a plurality of blocks by performing a first segmentation, wherein the first segmentation is performed by dividing the image into square blocks of a fixed block size, and the plurality of blocks include the square blocks of the fixed block size and a first non-square block that does not conform to the fixed block size. A second segmentation is performed on the plurality of blocks, and the information of the second segmentation is appended to a bitstream, wherein quadtree segmentation of the first non-square block is prohibited in the second segmentation. [Simplified Explanation of the Diagram]

[0008] Figure 1 is a block diagram showing the functional configuration of the encoding device in Embodiment 1. Figure 2 is a diagram showing an example of block segmentation in Embodiment 1. Figure 3 is a table showing the transformation basis functions corresponding to each transformation type. Figure 4A is a diagram showing an example of the shape of the filter used in ALF. Figure 4B is a diagram showing another example of the shape of the filter used in ALF. Figure 4C is a diagram showing another example of the shape of the filter used in ALF. Figure 5A is a diagram showing the 67 intra-frame prediction modes for intra-frame prediction. Figure 5B is a flowchart illustrating the outline of the prediction image correction process for OBMC processing. Figure 5C is a conceptual diagram illustrating the outline of the prediction image correction process for OBMC processing. Figure 5D is a diagram showing an example of FRUC. Figure 6 is a diagram illustrating pattern matching (bidirectional matching) between two blocks along the movement track. Figure 7 is a diagram illustrating pattern matching (template matching) between a template in the current image and a block in the reference image. Figure 8 is a diagram illustrating a model assuming constant velocity linear motion. Figure 9A is a diagram illustrating the derivation of the movement vector of a sub-block unit based on the movement vectors of a plurality of adjacent blocks. Figure 9B is a diagram illustrating the outline of the movement vector derivation process using a merging mode. Figure 9C is a conceptual diagram illustrating the outline of the DMVR process. Figure 9D is a diagram illustrating the outline of the predictive image generation method using the brightness correction process of the LIC process. Figure 10 is a block diagram showing the functional configuration of the decoding device in Embodiment 1. Figure 11 is a flowchart showing an example of the processing of the segmentation unit in Modification 1 of Embodiment 1. Figure 12 is a diagram showing a specific example of the first segmentation in Modification 1 of Embodiment 1. Figure 13 is a diagram showing a specific example of the first segmentation in Modification 1 of Embodiment 1. Figure 14 is a diagram showing a specific example of the first segmentation in Modification 1 of Embodiment 1. Figure 15 is a flowchart showing an example of the processing of the segmentation unit in Modification 2 of Embodiment 1. Figure 16 is a diagram showing specific examples of the first and second segments of the image in Modification 2 of Embodiment 1. Figure 17 is a diagram showing a specific example of the second division of a square CTU, representing another variation of Embodiment 1. Figure 18 is a diagram showing a specific example of the second division of a rectangular CTU, representing another variation of Embodiment 1. Figure 19 is an overall structural diagram of a content supply system that implements content publishing services. Figure 20 is a diagram showing an example of the encoding structure during adaptive encoding. Figure 21 is a diagram showing an example of the encoding structure during adaptive encoding. Figure 22 is a diagram showing an example of a webpage display screen. Figure 23 is a diagram showing an example of a webpage display screen. Figure 24 is a diagram showing an example of a smartphone. Figure 25 is a block diagram showing an example of the structure of a smartphone.

Claims

1. An image encoding apparatus comprising: a circuit; and a memory connected to the circuit, wherein, during operation, the circuit performs a first segmentation when a first block formed by a plurality of coding tree units is adjacent to an edge of an image and the size of the first block meets a first condition; the first segmentation includes not writing first segmentation information indicating a first segmentation mode to a bitstream, and using the first segmentation mode to segment the first block into a plurality of second blocks; performing a second segmentation, wherein the second segmentation includes writing second segmentation information indicating a second segmentation mode to the bitstream, and using the second segmentation mode to segment at least one of the plurality of second blocks into a plurality of coding units; the second segmentation mode allows at least one of quadtree segmentation and binary tree segmentation, and encodes the plurality of coding units. When the aforementioned second block being segmented is adjacent to the edge of the aforementioned image, and the size of the aforementioned second block being segmented meets the second condition, the aforementioned second segmentation mode does not include quadtree segmentation, indicating that the flag of the aforementioned quadtree segmentation is not included in the aforementioned second segmentation information.

2. An encoding method, wherein when a first block formed by a plurality of coding tree units is adjacent to the edge of an image and the size of the first block is suitable for a first condition, a first segmentation is performed, wherein the first segmentation includes not writing first segmentation information that will display the first segmentation mode into a bitstream, and using the first segmentation mode to segment the first block into a plurality of second blocks, and a second segmentation is performed, wherein the second segmentation includes writing second segmentation information that will display the second segmentation mode into the bitstream, and using the second segmentation mode to segment at least one of the plurality of second blocks into a plurality of coding units, wherein the second segmentation mode allows at least one of quadtree segmentation and binary tree segmentation, and the plurality of coding units are encoded, wherein when the segmented second block is adjacent to the edge of the image and the size of the segmented second block is suitable for a second condition, the second segmentation mode does not include quadtree segmentation, indicating that the flag of the quadtree segmentation is not included in the second segmentation information.

3. An image decoding apparatus comprising: a circuit; and a memory connected to the circuit, wherein, during operation, the circuit performs a first segmentation when a first block formed by a plurality of coding tree units is adjacent to an edge of an image and the size of the first block meets a first condition; the first segmentation includes not interpreting first segmentation information displaying a first segmentation mode and using the first segmentation mode to segment the first block into a plurality of second blocks; and performs a second segmentation, wherein the second segmentation includes interpreting second segmentation information displaying a second segmentation mode and using the second segmentation mode to segment at least one of the plurality of second blocks into a plurality of coding units; the second segmentation mode allows at least one of quadtree segmentation and binary tree segmentation, and decodes the plurality of coding units; and when the segmented second block is adjacent to an edge of the image and the size of the segmented second block meets a second condition, the second segmentation mode does not include quadtree segmentation. This indicates that the flag for the aforementioned quadtree segmentation is not included in the aforementioned second segmentation information.

4. A decoding method, wherein when a first block formed by a plurality of coding tree units is adjacent to the edge of an image and the size of the first block meets the first condition, a first segmentation is performed, wherein the first segmentation includes not interpreting the first segmentation information displaying the first segmentation mode, and using the first segmentation mode to segment the first block into a plurality of second blocks, and a second segmentation is performed, wherein the second segmentation includes interpreting the second segmentation information displaying the second segmentation mode, and using the second segmentation mode to segment at least one of the plurality of second blocks into a plurality of coding units, wherein the second segmentation mode allows at least one of quadtree segmentation and binary tree segmentation, and the plurality of coding units are decoded, wherein when the segmented second block is adjacent to the edge of the image and the size of the segmented second block meets the second condition, the second segmentation mode does not include quadtree segmentation, indicating that the flag of the quadtree segmentation is not included in the second segmentation information.

5. A non-transitory memory medium storing a bitstream readable by a computer, the bitstream containing information used by the computer for decoding, the decoding comprising: performing a first segmentation when a first block formed by a plurality of coding tree units is adjacent to an edge of an image and the size of the first block meets a first condition, the first segmentation comprising not interpreting first segmentation information displaying a first segmentation pattern, and using the first segmentation pattern to segment the first block into a plurality of second blocks; performing a second segmentation comprising interpreting second segmentation information displaying a second segmentation pattern, and using the second segmentation pattern to segment at least one of the plurality of second blocks into a plurality of coding units, the second segmentation pattern allowing at least one of quadtree segmentation and binary tree segmentation; and decoding the plurality of coding units. When the aforementioned second block being segmented is adjacent to the edge of the aforementioned image, and the size of the aforementioned second block being segmented meets the second condition, the aforementioned second segmentation mode does not include quadtree segmentation, indicating that the flag of the aforementioned quadtree segmentation is not included in the aforementioned second segmentation information.

Citation Information

Patent Citations

  • Methods and apparatus for video encoding and decoding geometrically partitioned super blocks

    CN101822064A

  • Method and Apparatus for Intra Prediction Coding with Boundary Filtering Control

    US20160330481A1

  • Constrained depth intra mode coding for 3D video coding

    US20170006309A1