Moving image decoder and moving image encoder

JP2023046435A5Active Publication Date: 2024-09-26SHARP KK
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
JP2021155022
Authority / Receiving Office
JP · JP
Patent Type
Applications
Current Assignee / Owner
Filing Date
2021-09-24
Publication Date
2024-09-26
Estimated Expiration
2041-09-24

AI Technical Summary

Technical Problem

The existing matrix intra prediction methods in video coding systems, such as those described in ITU-T Rec. H.266, suffer from increased data amount due to the need to select and encode the appropriate matrix for predicting images, leading to inefficiencies.

Method used

A video decoding device that reduces the data amount in matrix intra prediction by deriving a prediction mode candidate list with fewer elements than the total number of prediction modes, using a matrix reference pixel derivation unit, mode derivation unit, prediction processing parameter derivation unit, and matrix predicted image derivation unit to generate a predicted image.

Benefits of technology

This approach allows for efficient intra prediction with reduced data usage, improving coding efficiency by selecting a suitable matrix intra prediction mode with fewer data elements.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure 00000000_0000_ABST
    Figure 00000000_0000_ABST
Patent Text Reader

Abstract

To provide a moving image decoder and a moving image encoder which can perform suitable intra prediction while reducing a data amount of a matrix intra prediction mode.SOLUTION: In a moving image decoder, a matrix intra prediction technique (MIP) unit comprises: a matrix reference pixel derivation part which derives an image obtained by down-sampling images adjacent to the upper side and the left side of an object block as a reference image; a weighting matrix derivation part which derives a matrix of a weighting coefficient according to the intra prediction mode and the object block size; a matrix prediction image derivation part which derives a prediction image with a product of an element of the reference image and an element of the matrix of the weighting coefficient; and a matrix prediction image interpolation part which derives the prediction image or an image obtained by interpolating the prediction image as the prediction image. The weighting matrix derivation part derives the matrix in the size equal to or less than the width and equal to or less than the height of the object block size.SELECTED DRAWING: Figure 10
Need to check novelty before this filing date? Find Prior Art

Description

[Technical Field]

[0001] An embodiment of the present invention relates to a video decoding device and a video encoding device. [Background technology]

[0002] In order to efficiently transmit or record moving images, a moving image encoding device is used that generates encoded data by encoding moving images, and a moving image decoding device is used that generates decoded images by decoding the encoded data.

[0003] Specific video encoding methods include, for example, methods proposed in H.264 / AVC and HEVC (High-Efficiency Video Coding).

[0004] In such a video coding method, images (pictures) constituting a video are divided into slices obtained by dividing the image, coding tree units (CTUs) obtained by dividing the slices, and coding tree units (CTUs) obtained by dividing the coding tree units. The coding unit (sometimes called a coding unit (CU)) that is used for encoding, and The coding unit is divided into transform units (TUs) and managed in a hierarchical structure, and is coded / decoded for each CU.

[0005] In such video coding methods, a predicted image is usually generated based on a locally decoded image obtained by encoding / decoding an input image, and the predicted image is subtracted from the input image (original image) to obtain a prediction error (sometimes called a "difference image" or "residual image"), which is then coded. Methods for generating predicted images include inter-frame prediction (inter-prediction) and intra-frame prediction (intra-prediction).

[0006] Furthermore, Non-Patent Document 1 is an example of a recent video encoding and decoding technique. Non-Patent Document 1 discloses a matrix-based intra prediction technique (MIP) that derives a predicted image by multiplying and accumulating a reference image derived from an adjacent image and a weighting matrix. [Prior art documents] [Non-patent literature]

[0007] [Non-Patent Document 1] ITU-T Rec. H.266 Summary of the Invention [Problem to be solved by the invention]

[0008] In matrix intra prediction as in Non-Patent Document 1, an appropriate matrix is ​​selected from multiple predefined matrices to generate a predicted image, which poses a problem of increasing the amount of coded data for which a matrix is ​​selected, i.e., the amount of data in the matrix intra prediction mode.

[0009] An object of the present invention is to perform suitable matrix intra prediction while reducing the amount of data in the matrix intra prediction mode. [Means for solving the problem]

[0010] In order to solve the above problem, a video decoding device according to one aspect of the present invention includes: a matrix reference pixel derivation unit that derives, as a reference image, an image obtained by downsampling images adjacent to the upper and left of the target block; a mode derivation unit that derives a candidate list of prediction modes to be used in a current block according to the reference image and a current block size; a prediction processing parameter derivation unit that derives parameters used in a calculation to derive a predicted image according to the candidate list, a matrix intra-prediction mode indicator, and a current block size; a matrix predicted image derivation unit that derives a predicted image based on elements of the reference image and the prediction processing parameters; a matrix predicted image interpolation unit that derives the predicted image or an image obtained by interpolating the predicted image as a predicted image; wherein the mode derivation unit derives the candidate list having a number of elements less than the total number of prediction modes defined for a current block size. [Effects of the Invention]

[0011] According to one aspect of the present invention, it is possible to perform suitable intra prediction while reducing the amount of data in the matrix intra prediction mode. [Brief explanation of the drawings]

[0012] [Figure 1] 1 is a schematic diagram showing the configuration of an image transmission system according to an embodiment of the present invention. [Figure 2] 1 is a diagram showing the configuration of a transmitting device equipped with a video encoding device according to this embodiment, and a receiving device equipped with a video decoding device, in which PROD_A indicates the transmitting device equipped with the video encoding device, and PROD_B indicates the receiving device equipped with the video decoding device. [Figure 3] 1 is a diagram showing the configuration of a recording device equipped with a video encoding device according to this embodiment, and a playback device equipped with a video decoding device, in which PROD_C indicates a recording device equipped with a video encoding device, and PROD_D indicates a playback device equipped with a video decoding device. [Figure 4] FIG. 2 is a diagram showing a hierarchical structure of data in an encoded stream. [Figure 5] FIG. 10 is a diagram illustrating an example of division of a CTU. [Figure 6] FIG. 10 is a schematic diagram showing types of intra-prediction modes (mode numbers). [Figure 7] FIG. 1 is a schematic diagram illustrating a configuration of a video decoding device. [Figure 8] FIG. 10 is a diagram illustrating reference regions used for intra prediction. [Figure 9] FIG. 10 is a diagram illustrating a configuration of an intra-prediction image generation unit. [Figure 10] FIG. 2 is a diagram illustrating details of an MIP unit. [Figure 11] FIG. 10 is a diagram illustrating an example of MIP processing. [Figure 12] FIG. 10 is a diagram illustrating an example of MIP processing. [Figure 13] FIG. 1 is a block diagram showing a configuration of a video encoding device. DETAILED DESCRIPTION OF THE INVENTION

[0013] (First embodiment) Hereinafter, an embodiment of the present invention will be described with reference to the drawings.

[0014] FIG. 1 is a schematic diagram showing the configuration of an image transmission system 1 according to this embodiment.

[0015] The image transmission system 1 is a system that transmits an encoded stream obtained by encoding an image to be encoded, decodes the transmitted encoded stream, and displays an image. The image transmission system 1 includes a video encoding device (image encoding device) 11, a network 21, a video decoding device (image decoding device) 31, and a video display device (image display device) 41.

[0016] An image T is input to the video encoding device 11 .

[0017] The network 21 transmits the coded stream Te generated by the video coding device 11 to the video decoding device 31. The network 21 may be a network such as the Internet, a wide area network (WLAN), or the like. WAN (Wide Area Network), small network (LAN: Local Area Network) or It is a combination of them. The network 21 is not necessarily limited to a bidirectional communication network, and may be a unidirectional communication network that transmits broadcast waves such as terrestrial digital broadcasting and satellite broadcasting. Also, the network 21 may be replaced by a storage medium that records an encoded stream Te such as a DVD (Digital Versatile Disc: registered trademark) or a BD (Blue-ray Disc: registered trademark).

[0018] The moving image decoding device 31 decodes each of the encoded streams Te transmitted by the network 21 and generates one or more decoded images Td that have been decoded.

[0019] The moving image display device 41 displays all or a part of the one or more decoded images Td generated by the moving image decoding device 31. The moving image display device 41 includes, for example, a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display. Examples of the form of the display include a stationary type, a mobile type, and an HMD. Also, when the moving image decoding device 31 has high processing power, an image with high image quality is displayed, and when it has only low processing power, an image that does not require high processing power or display ability is displayed.

[0020] <Operator> The operators used in this specification are described below.

[0021] >> is a right bit shift, << is a left bit shift, & is a bitwise AND, and | is a bitwise OR |= is an OR assignment operator, && represents a logical product (AND), and || represents a logical sum (OR).

[0022] x?y:z is a ternary operator that takes y when x is true (non-zero) and z when x is false (0).

[0023] Clip3(a, b, c) is a function that clips c to a value between a and b (inclusive). When c < a, it returns a; when c > b, it returns b; and in other cases, it returns c (where a <= b).

[0024] Clip1Y(c) is an operator set with a = 0 and b = (1 << BitDepthY) - 1 in Clip3(a, b, c). BitDepthY is the bit depth of luminance.

[0025] abs(a) is a function that returns the absolute value of a.

[0026] Int(a) is a function that returns the integer value of a.

[0027] Floor(a) is a function that returns the largest integer less than or equal to a.

[0028] Ceil(a) is a function that returns the smallest integer greater than or equal to a.

[0029] a / d represents the division of a by d (truncating the decimal part).

[0030] Min(a, b) is a function that returns the smaller value of a and b.

[0031] <Structure of Encoded Stream Te>[[]]END]] Prior to the detailed description of the moving image encoding device 11 and the moving image decoding device 31 according to the present embodiment, the data structure of the encoded stream Te generated by the moving image encoding device 11 and decoded by the moving image decoding device 31 will be described.

[0032] FIG. 4 is a diagram showing the hierarchical structure of data in the encoded stream Te. The encoded stream Te illustratively includes a sequence and a plurality of pictures constituting the sequence. In FIG. 4, an encoded video sequence defining the sequence SEQ, an encoded picture defining the picture PICT, an encoded slice defining the slice S, encoded slice data defining the slice data, an encoded tree unit included in the encoded slice data, and an encoded unit included in the encoded tree unit are shown respectively. ームTeは、例示的に、シーケンス、およびシーケンスを構成する複数のピクチャを含む。図4には、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス、ピクチャPICTを 規定する符号化ピクチャ、スライスSを規定する符号化スライス、スライスデータを規定 する符号化スライスデータ、符号化スライスデータに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニットを示す図が示されている。

[0033] (Coded Video Sequence) In the case of a coded video sequence, a video decoder is used to decode the sequence SEQ to be processed. The sequence SEQ defines a set of data to be referenced by the device 31. As shown in the coded video sequence of FIG. 4, the sequence SEQ includes a Video Parameter Set, a Sequence The parameter set includes a sequence parameter set (SPS), a picture parameter set (PPS), a picture PICT, and supplemental enhancement information (SEI).

[0034] The video parameter set VPS is used to A set of coding parameters common to several video images and a set of coding parameters related to several layers included in the video image and each individual layer are defined.

[0035] The sequence parameter set SPS is used to decode the target sequence. A set of coding parameters to be referenced by the PPS is specified. For example, the width and height of a picture are specified. Note that there may be multiple SPSs. In that case, one of the multiple SPSs can be selected from the PPS. Select .

[0036] The picture parameter set PPS requires the following parameters to be used to decode each picture in the target sequence: The PPS defines a set of coding parameters to be referenced by the video decoding device 31. For example, the PPS includes a reference value of the quantization width used in decoding a picture (pic_init_qp_minus26) and a flag indicating the application of weighted prediction (weighted_pred_flag). Note that there may be multiple PPSs. In this case, one of the multiple PPSs is selected for each picture in the target sequence.

[0037] (encoded picture) The coded picture defines a set of data that the video decoding device 31 refers to in order to decode the picture PICT to be processed. The picture PICT is a coded picture as shown in FIG. This includes slices 0 to NS-1 (NS is the total number of slices included in the picture PICT). .

[0038] In the following, when there is no need to distinguish between slices 0 to NS-1, the symbols The subscripts may be omitted in the description, and the same applies to other data to which subscripts are added that are included in the coded stream Te described below.

[0039] (encoded slice) In the coded slice, the video decoding device 31 refers to the slice S to be processed in order to decode the slice S. A slice is a set of data that is encoded as shown in Figure 4. It contains a slice header and slice data.

[0040] The slice header includes a group of coding parameters that the video decoding device 31 refers to in order to determine a decoding method for the current slice. Slice type designation information (slice_type) that designates the slice type is an example of a coding parameter included in the slice header.

[0041] Slice types that can be specified by the slice type specification information include (1) an I-slice that uses only intra-prediction during encoding, (2) a P-slice that uses unidirectional prediction or intra-prediction during encoding, and (3) a B-slice that uses unidirectional prediction, bidirectional prediction, or intra-prediction during encoding. Note that inter-prediction can be uni-predictive, bi-predictive, or intra-predictive. The predicted image may be generated using more reference pictures than the conventional method. When called a B slice, it is a slice that contains blocks that can use inter prediction. Refers to the s.

[0042] Note that the slice header may include a reference to a picture parameter set PPS (pic_parameter_set_id).

[0043] (encoded slice data) The coded slice data defines a set of data that the video decoding device 31 refers to in order to decode the slice data to be processed. As shown in the slice header, the slice includes a CTU, which is a block of a fixed size (for example, 64x64) that constitutes a slice, and is also called a Largest Coding Unit (LCU).

[0044] (coding tree unit) 4 defines a set of data that the video decoding device 31 refers to in order to decode the CTU to be processed. The CTU is recursively divided into a quad tree (QT), a binary tree (BT), or a ternary tree (TT). ) division) into coding units CU, which are the basic units of the coding process. BT division and TT division are collectively called multi-tree division (MT (Multi Tree) division). The nodes of the tree structure obtained by recursive quad-tree division are called coding nodes. 4 The intermediate nodes of the quaternary, binary, and ternary trees are coding nodes, and the CTU itself is the highest coding node. It is defined as an encoding node.

[0045] CT includes, as CT information, a QT split flag (cu_split_flag) indicating whether or not to split the QT, MT MT split flag (split_mt_flag) indicating whether or not there is a split, and MT split direction indicating the split direction of the MT split. (split_mt_dir), and MT split type (split_mt_type) indicating the split type of MT split. cu_split_flag, split_mt_flag, split_mt_dir, and split_mt_type are transmitted for each encoding node.

[0046] If cu_split_flag is 1, the coding node is split into four coding nodes (QT in Figure 5).

[0047] When cu_split_flag is 0, and split_mt_flag is 0, the coding node is not split and has one CU as a node (no split in Figure 5). CU is the terminal node of the coding node, and this The CU is the basic unit of the encoding process.

[0048] When split_mt_flag is 1, the coding node is split into MT as follows: When split_mt_type is 0, if split_mt_dir is 1, the coding node is split horizontally into two coding nodes (BT (horizontal split) in Figure 5), and when split_mt_dir is 0, the coding node is split into two coding nodes. (BT (vertical split) in Figure 5). Also, when split_mt_type is 1, if split_mt_dir is 1, the coding node is split horizontally into three coding nodes (TT (horizontal split) in Figure 5). ,When split_mt_dir is 0, the coding node is vertically split into three coding nodes (Fig. 5 These are shown in the CT information in Figure 5.

[0049] Also, when the size of the CTU is 64x64 pixels, the size of the CU can be any of 64x64 pixels, 64x32 pixels, 32x64 pixels, 32x32 pixels, 64x16 pixels, 16x64 pixels, 32x16 pixels, 16x32 pixels, 16x16 pixels, 64x8 pixels, 8x64 pixels, 32x8 pixels, 8x32 pixels, 16x8 pixels, 8x16 pixels, 8x8 pixels, 64x4 pixels, 4x64 pixels, 32x4 pixels, 4x32 pixels, 16x4 pixels, 4x16 pixels, 8x4 pixels, 4x8 pixels, and 4x4 pixels.

[0050] (encoding unit) As shown in the coding unit of FIG. 4, a video is generated to decode the coding unit to be processed. The CU defines a set of data to be referenced by the image decoding device 31. Specifically, a CU is made up of a CU header CUH, prediction parameters, transformation parameters, quantized transformation coefficients, etc. The CU header defines a prediction mode, etc.

[0051] The prediction process may be performed in units of CUs, or in units of sub-CUs obtained by further dividing a CU. When the sizes of a CU and a sub-CU are the same, there is one sub-CU in the CU. When the size of a CU is larger than the size of a sub-CU, the CU is divided into sub-CUs. For example, when a CU is 8x8 and a sub-CU is 4x4, the CU is divided into 2 parts horizontally and 2 parts vertically, into 4 sub-CUs.

[0052] There are two types of prediction (prediction modes): intra prediction and inter prediction. Intra prediction is a prediction within the same picture, while inter prediction refers to a prediction process performed between different pictures (for example, between display times or between layer images).

[0053] The transformation and quantization process is performed in units of CU, but the quantized transformation coefficients are stored in units of sub-blocks such as 4x4. It may be entropy coded.

[0054] (Prediction parameters) The predicted image is derived from prediction parameters associated with the block, which include intra-prediction and inter-prediction parameters.

[0055] The prediction parameters of intra prediction are explained below. The intra prediction parameters consist of a luminance prediction mode IntraPredModeY and a color difference prediction mode IntraPredModeC. 1 is a schematic diagram showing types of intra prediction modes (mode numbers). As shown in the diagram, there are, for example, 67 types of intra prediction modes (0 to 66). For example, these are planar prediction (0), DC prediction (1), and angular prediction (2 to 66). Furthermore, an LM mode may be added for chrominance.

[0056] Syntax elements for deriving intra prediction parameters include, for example, intra_luma_mpm_flag, intra_luma_mpm_idx, and intra_luma_mpm_remainder.

[0057] (MPM) The intra_luma_mpm_flag is a flag indicating whether the IntraPredModeY of the target block matches the MPM (Most Probable Mode). The MPM is included in the MPM candidate list mpmCandList[]. The MPM candidate list is based on the intra prediction modes of neighboring blocks and the This is a list that stores candidates that are estimated to have a high probability of being applied to the current block from the intra prediction modes in

[0000] . When intra_luma_mpm_flag is 1, IntraPredModeY of the current block is derived using the MPM candidate list and the index intra_luma_mpm_idx.

[0058] IntraPredModeY = mpmCandList[intra_luma_mpm_idx] (REM) If intra_luma_mpm_flag is 0, the intra prediction mode is selected from the remaining modes RemIntraPredMode, excluding the intra prediction modes included in the MPM candidate list from all intra prediction modes. The intra prediction modes selectable as RemIntraPredMode are "non-MPM" or It is called "REM". RemIntraPredMode is derived using intra_luma_mpm_remainder. do.

[0059] (Configuration of video decoding device) The configuration of a video decoding device 31 (FIG. 7) according to this embodiment will be described.

[0060] The video decoding device 31 includes an entropy decoding unit 301, a parameter decoding unit (prediction image decoding device ) 302, a loop filter 305, a reference picture memory 306, a prediction parameter memory 307, a prediction image generation unit (prediction image generation device) 308, an inverse quantization and inverse transform unit 311, and an adder 312. In addition, the video decoding device 31 may also be configured without including the loop filter 305, in accordance with the video encoding device 11 described later.

[0061] The parameter decoding unit 302 includes an inter prediction parameter decoding unit 303 and an intra prediction parameter decoding unit 304 (not shown). The predicted image generating unit 308 includes an inter prediction image generating unit 309 and an intra prediction image generating unit 310.

[0062] In the following, an example will be described in which CTU and CU are used as processing units, but this is not limitative. Alternatively, the processing may be performed in units of sub-CUs. It may be read as block, and processing may be performed in units of blocks or sub-blocks.

[0063] The entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside. Entropy decoding is performed to separate and decode individual codes (syntax elements). There are two types of entropy coding: one is to use a context (probability model) that is adaptively selected according to the type of syntax element and the surrounding circumstances to variable-length code the syntax elements, and the other is to use a pre-defined table or formula to variable-length code the syntax elements. The former, CABAC (Context Adaptive Binary Arithmetic Coding), stores an updated probability model in memory for each coded or decoded picture (slice). Then, for P pictures, Alternatively, as the initial state of the B-picture context, the probability model stored in memory is From the above, a probability model for a picture using the same slice type and quantization parameter of the same slice level is set. This initial state is used for encoding and decoding processes. The separated code includes prediction information for generating a predicted image and a prediction error for generating a difference image.

[0064] The entropy decoding unit 301 outputs the separated codes to the parameter decoding unit 302. The control of which code to decode is performed based on an instruction from the parameter decoding unit 302.

[0065] (Configuration of the intra-prediction parameter decoding unit 304) The intra prediction parameter decoding unit 304 performs intra prediction based on the code input from the entropy decoding unit 301 by referring to the prediction parameters stored in the prediction parameter memory 307. Decode parameters, such as the intra prediction mode IntraPredMode. The meter decoding unit 304 outputs the decoded intra prediction parameters to the predicted image generation unit 308, and also stores them in the prediction parameter memory 307. The intra prediction parameter decoding unit 304 may derive different intra prediction modes for luma and chroma.

[0066] The intra-prediction parameter decoding unit 304 includes an MIP parameter decoding unit 3041 , a luma intra-prediction parameter decoding unit 3042 , and a chroma intra-prediction parameter decoding unit 3043 .

[0067] The MIP parameter decoding unit 3041 decodes intra_mip_flag from the coded data. If intra_mip_flag is 0 and intra_luma_mpm_flag is 1, it decodes intra_luma_mpm_idx. Furthermore, the intra_luma_mpm_remainder is decoded if intra_luma_mpm_flag is 0. Then, the intra_luma_mpm_remainder generator derives IntraPredModeY with reference to mpmCandList[ ], intra_luma_mpm_idx, and intra_luma_mpm_remainder, and outputs the IntraPredModeY to the intra-predicted image generator 310.

[0068] In addition, the MIP parameter decoding unit 3041 decodes the syntax elements of the chrominance intra-prediction parameters. The intraPredModeC is derived from the matrix and output to the intra-prediction image generation unit 310.

[0069] The loop filter 305 is a filter provided in the encoding loop, and is used to remove block distortion and ringing. The loop filter 305 is a filter that removes distortion and improves image quality. The loop filter 305 applies a deblocking filter, a sample adaptive offset (SAO), and an adaptive filter to the decoded image of the CU generated by the adder 312. Apply a filter such as an adaptive loop filter (ALF).

[0070] The reference picture memory 306 stores the decoded image of the CU generated by the adder 312 in a predetermined location for each current picture and current CU.

[0071] The prediction parameter memory 307 stores prediction parameters at a predetermined location for each CTU or CU to be decoded. Specifically, the prediction parameter memory 307 stores parameters decoded by the parameter decoding unit 302 and the prediction mode predMode separated by the entropy decoding unit 301. do.

[0072] The prediction image generation unit 308 receives the prediction mode predMode, prediction parameters, etc. The predicted image generation unit 308 reads the reference picture from the reference picture memory 306. The predicted image generation unit 308 uses the prediction parameters and the read reference picture in the prediction mode indicated by the prediction mode predMode. A predicted image of a block or sub-block is generated using a reference picture (reference picture block). Here, a reference picture block is a set of pixels (usually rectangular, hence called a block) on the reference picture, which is an area referenced to generate a predicted image.

[0073] (Intra-predicted image generation unit 310) When the prediction mode predMode indicates an intra prediction mode, the intra predicted image generation unit 310 , the intra prediction parameters and the reference picture input from the intra prediction parameter decoding unit 304. The intra prediction is performed using reference pixels read from the pixel memory 306.

[0074] Specifically, the intra-prediction image generation unit 310 generates a predicted image from a current block in a current picture. The adjacent blocks within the predetermined range are read from the reference picture memory 306. The surrounding area refers to adjacent blocks to the left, upper left, upper, and upper right of the current block, and the area to be referenced differs depending on the intra prediction mode.

[0075] The intra-prediction image generation unit 310 generates a prediction image of the current block by referring to the read decoded pixel values ​​and the prediction mode indicated by IntraPredMode. The predicted image of the block thus obtained is output to the adder 312.

[0076] The generation of predicted images based on intra prediction modes is explained below. Planar prediction, DC prediction, and angular prediction refer to the decoded surrounding area adjacent (close) to the block to be predicted. Then, a predicted image is generated by extrapolating pixels in the reference area R in a specific direction. For example, the reference area R is an L-shaped area including the left and top (or further, the top left, top right, and bottom left) of the block to be predicted (for example, the diagonally-lined circle in Example 1 of the reference area in Figure 8). The area indicated by the pixels may be set as the pixel area.

[0077] (Details of predicted image generation unit) Next, the configuration of the intra-prediction image generation unit 310 will be described in detail with reference to Fig. 9. The intra-prediction image generation unit 310 includes a reference sample filter unit 3103 (second reference image setting unit), a prediction unit 3104 , and a predicted image correction unit 3105 (predicted image correction unit, filter switching unit, weighting coefficient change unit).

[0078] The prediction unit 3104 predicts a reference pixel (reference image) based on each reference pixel (reference image) in the reference region R, a filtered reference image generated by applying a reference pixel filter (first filter), and an intra prediction mode. The prediction image correction unit 3105 generates a temporary predicted image (pre-correction predicted image) of the image block and outputs it to the predicted image correction unit 3105. The predicted image correction unit 3105 corrects the temporary predicted image according to the intra prediction mode, generates a predicted image (corrected predicted image), and outputs it.

[0079] Each unit included in the intra-predicted image generation unit 310 will be described below.

[0080] (Reference sample filter unit 3103) The reference sample filter unit 3103 refers to the reference image and calculates the reference image at each position (x, y) on the reference region R. The reference sample filter unit 3103 derives the reference sample s[x][y]. According to the mode, a reference pixel filter (first filter) is applied to the reference sample s[x][y]. , and updates the reference sample s[x][y] at each position (x, y) on the reference region R (derives a filtered reference image s[x][y]). Specifically, a low-pass filter is applied to the reference image at the position (x, y) and its surroundings to derive a filtered reference image (reference region example 2 in FIG. 8 ). Note that it is not necessarily necessary to apply a low-pass filter to all intra prediction modes, and a low-pass filter may be applied to some intra prediction modes. Note that the filter applied to the reference image on the reference region R in the reference sample filter unit 3103 is referred to as a "reference pixel filter (first filter)," while the filter that corrects the tentative predicted image in the predicted image correction unit 3105 (described later) is referred to as a "position-dependent filter (second filter)."

[0081] (Configuration of the intra prediction unit 3104) The intra prediction unit 3104 generates a temporary predicted image (temporary predicted pixel value, pre-correction predicted image) of the block to be predicted based on the intra prediction mode, the reference image, and the filtered reference pixel value, and outputs the temporary predicted image to the predicted image correction unit 3105. The prediction unit 3104 includes a planar prediction unit 31041, a DC prediction unit 31042, an angular prediction unit 31043, an LM prediction unit 31044, and an MIP unit 31045. A specific prediction unit is selected depending on the intra prediction mode, and a reference image and a filtered reference image are input. The relationship between the intra prediction mode and the corresponding prediction unit is as follows. ·Planar Prediction ···Planar Prediction Section 31041 DC prediction DC prediction section 31042 ·Angular Prediction ··Angular Prediction Part 31043 ·LM prediction ··LM prediction unit 31044 ·Matrix intra prediction··MIP section 31045 (Planar forecast) The planar prediction unit 31041 selects a reference sample according to the distance between the pixel position to be predicted and the reference pixel position. The coefficients s[x][y] are linearly added to generate a temporary predicted image, which is output to the predicted image correction unit 3105.

[0082] (DC forecast) The DC prediction unit 31042 derives a DC predicted value equivalent to the average value of the reference samples s[x][y], and outputs a temporary predicted image q[x][y] whose pixel values ​​are the DC predicted values.

[0083] (Angular prediction) The angular prediction unit 31043 generates a temporary predicted image q[x][y] using the reference sample s[x][y] in the prediction direction (reference direction) indicated by the intra prediction mode, and outputs the temporary predicted image q[x][y] to the predicted image correction unit 3105.

[0084] (LM forecast) The LM prediction unit 31044 predicts the pixel values ​​of the color differences based on the pixel values ​​of the luminance. This method uses a linear model to generate a predicted image of the color difference image (Cb, Cr) based on the decoded luminance image. One of the LM prediction methods is CCLM (Cross-Component Linear Model Prediction). CCLM prediction is a prediction method that uses a linear model to predict chrominance from luminance for one block.

[0085] (Configuration of predicted image correction unit 3105) The predicted image correction unit 3105 corrects the temporary predicted image output from the prediction unit 3104 according to the intra prediction mode. Specifically, the predicted image correction unit 3105 derives a position-dependent weighting coefficient for each pixel of the temporary predicted image according to the reference region R and the position of the target predicted pixel. Then, the temporary predicted image is obtained by performing weighted addition (weighted averaging) of the reference sample s[][] and the temporary predicted image. The prediction unit 3104 derives a corrected predicted image Pred[][] by correcting the image. Note that in some intra prediction modes, the predicted image correction unit 3105 may not correct the tentative predicted image, and the output of the prediction unit 3104 may be used as the predicted image as is.

[0086] (MIP Example 1) The MIP parameter decoding unit 3041 decodes intra_mip_flag from the coded data. When intra_mip_flag is 1, the MIP parameter decoding unit 3041 decodes intra_mip_transposed_flag and the matrix intra prediction mode indicator intra_mip_mode_idx. intra_mip_mode_idx is a value between 0 and NumMipModes-1, and may be decoded using a TB (Truncated Binary) code where cMax=NumMipModes-1. NumMipModes is the number of MIPs available for the current block. For example, cMax may be derived as follows, depending on the current block size (nTbW, nTnH):

[0087] cMax = (nTbW==4 && nTbH==4) ? NumMipModes_SizeId0-1 : (nTbW==4 || nTbH==4) || (nTbW==8 && nTbH==8) ? NumMipModes_SizeId1-1 : NumMipModes_SizeId2-1 For example, NumMipModes_SizeId0=16, NumMipModes_SizeId1=8, and NumMipModes_SizeId2=6, but this is not limiting.

[0088] (Example of TB code) The TB code may be derived as follows.

[0089] n = cMax + 1 k = Floor(Log2(n)) u = (1 << (k + 1)) - n When the value synVal (here, merge_gpm_partition_idx) of the syntax element is less than u, the parameter decoding unit 302 derives a TB code using Fixed Length Binary (hereinafter referred to as FL binary) with cMax = (1<<k)-1. Otherwise (when synVal is greater than or equal to u), cMax = (1<<(k+1))-1 is set.

[0090] Note that when deriving the FL binary, the parameter decoding unit 302 may derive the BIN length fixedLength of the syntax element and derive it by expressing synVal in binary with fixedLength bits.

[0091] fixedLength = Ceil(Log2(cMax + 1)) Also, the parameter decoding unit 302 uses a Truncated Rice (TR) code with cMax determined and the Rice parameter set to 0 for the binaryization of mpm_merge_gpm_partition_idx It may be performed. In an example where mpm_merge_gpm_partition_idx takes values from 0 to 5 and one is selected from six candidates In the selection, the value of mpm_merge_gpm_partition_idx is encoded as a bit string of up to 5 bits (binary values: 0, 10, 110, 1110, 11110, 11111).

[0092] Hereinafter, an example of the MIP process (Matrix-based intra prediction process) executed by the MIP unit 31045 will be described. MIP is a technique for deriving a predicted image by performing a sum-of-products operation on a reference image derived from an adjacent image and a weight matrix Figure 10 shows the configuration of the MIP unit 31045 in this embodiment. The MIP unit 31045 is composed of a matrix reference pixel derivation unit 4501, a matrix predicted image derivation unit 4502, a mode derivation unit 4503, a prediction process parameter derivation unit 4504, and a matrix predicted image interpolation unit 4505.

[0093] (1) Derivation of boundary reference pixels The MIP unit 31045 derives a variable sizeId relating to the size of the target block using the following formula.

[0094] sizeId = (nTbW==4 && nTbH==4) ? 0 : (nTbW==4 || nTbH==4) || (nTbW==8 && nTbH==8) ? 1 : 2 (MIP-1) Next, the MIP unit 31045 calculates the total number of MIP modes, numTotalMipModes, and the downsampled number using sizeId. The size of the reference region redT[], redL[] after pulling is boundarySize, and the intermediate predicted image predMip[][] Derive the width and height of the predSize, predSize.

[0095] numTotalMipModes = (sizeId==0) ? 32 : (sizeId==1) ? 16 : 12 (MIP-2) boundarySize = (sizeId==0) ? 2 : 4 predSize = (sizeId<=1) ? 4 : 8 The number of reference pixels used in prediction using the weighting matrix mWeight is calculated using the following formula.

[0096] inSize = 2*boundarySize - ( (sizeId==2) ? 1 : 0 ) The weight matrix mWeight is a matrix with size expressed as mWeight[predSize*predSize][inSize]. When sizeId=0 and sizeId=1, predSize*predSize=16, inSize=4, and when sizeId=2, predSize*predSize=64, inSize=7.

[0097] The matrix reference pixel derivation unit 4501 sets the pixel values ​​predSamples[x][-1] (x=0..nTbW-1) of the block adjacent to the upper side of the target block to the first reference area refT[x] (x=0..nTbW-1). Also, it sets the pixel values ​​predSamples[-1][y] (y=0..nTbH-1) of the block adjacent to the left side of the target block to the first reference area refL[y] (y=0..nTbH-1). Next, the matrix reference pixel derivation unit 4501 sets the pixel values ​​predSamples[-1][y] (y=0..nTbH-1) of the block adjacent to the left side of the target block to the first reference area refL[y] (y=0..nTbH-1). The reference regions refT[x] and refL[y] are downsampled to derive the second reference regions redT[x] (x=0..boundarySize-1) and redL[y] (y=0..boundarySize-1). The same downsampling process is performed on refT[] and refL[], so hereafter they will be referred to as refS[i] (i=0..nTbX-1) and redS[i] (i=0..boundarySize-1).

[0098] The matrix reference pixel derivation unit 4501 performs the following MIP boundary downsampling process with refT[] as refS[] and nTbs=bTbH to derive redT (=redS[]).

[0099] The matrix reference pixel derivation unit 4501 performs the following MIP boundary downsampling process with refL[] as refS[] and nTbs=bTbW to derive redL (=redS[]).

[0100] (MIP boundary downsampling processing) if (boundarySize <nTbS) { bDwn = nTbS / boundarySize (MIP-3) for (x=0; x <boundarySize; x++) redS[x] = (ΣrefS[x*bDwn+i]+(1<<(Log2(bDwn)-1)))>>Log2(bDwn) } else for (x=0; x <boundarySize; x++) redS[x] = refS[x] Here, Σ is the sum from i=0 to i=bDwn-1.

[0101] Next, the matrix reference pixel derivation unit 4501 combines the second reference regions redL[] and redT[] to derive p[i] (i=0..2*boundarySize-1). isTransposed sets the value of intra_mip_transposed_flag in the current block.

[0102] if (isTransposed==1) (MIP-4) for (i=0;i <boundarySize;i++) { pTemp[i] = redL[i] pTemp[i+boundarySize] = redT[i] } else for (i=0;i <boundarySize;i++) { pTemp[i] = redT[i] pTemp[i+boundarySize] = redL[i] } if (sizeId==2) for (i=0;i <inSize;i++) p[i] = pTemp[i+1]-pTemp[0] else { p[0] = pTemp[0] - (1<<(BitDepthY-1)) for (i=1;i <inSize;i++) p[i] = pTemp[i] - pTemp[0] } bitDepthY is the bit depth of the luminance, which may be, for example, 10 bits.

[0103] If the above reference pixels cannot be referenced, the values ​​of available reference pixels are used, as in conventional intra prediction. If all reference pixels cannot be referenced, 1<<(bitDepthY-1) is used as the pixel value. Since isTransposed indicates whether the prediction direction is close to vertical prediction, by switching between storing redL or redT in the first half of p[] using isTransposed, the number of mWeight[][] patterns can be reduced by half.

[0104] (2) Prediction mode derivation 4503 The MIP unit 31045 uses the mode derivation unit 4503 to derive the intra prediction mode used in matrix intra prediction (MIP). Derive the prediction mode modeId.

[0105] The mode derivation unit 4503 of the MIP unit 31045 derives a candidate list of prediction methods for the MIP mode used in the current block using information on neighboring blocks of the current block. For example, the mode derivation unit 4503 may derive a number mip_set_id indicating the candidate list. Here, if the number of candidate lists is NumMipSet, then mip_set_id = 0..NumMipSet-1. If the number of prediction modes in the candidate list is NumMipModes, then if different candidate lists do not contain the same prediction mode, the total number of MIP prediction modes for a certain sizeId, NumTotalMipModes, is NumMipSet * NumMipModes. Note that different candidate lists may contain the same prediction mode.

[0106] Here, all lists included in the MIP are referred to as the “entire MIP list.” It can also be said that the mode derivation unit 4503 derives a subset of the entire MIP list as a candidate list for the target block.

[0107] (Example of mip_set_id derivation) The following is an example of a process in which the mode derivation unit 4503 derives mip_set_id: The mode derivation unit 4503 derives the value of mip_set_id depending on whether the following conditions are met, for example. a) The size of specific elements in p[] and the relationship between elements b) Activity of the adjacent pixel region derived from p[] c) Features such as the mean value derived from the elements of p[] d) Absolute difference between adjacent pixel values ​​in p[] e) Quantization parameter QP of the target block It may be exemplified by the following formula: a) p[0] < p[3], b) p[0] + p[1] < p[2] + p[3] c)(p[0] + … + p[inSize-1])>>log2(insize) >= th_avg, d) abs(p[1]-p[0]) + … + abs(p[inSize-1] - p[inSize-2]) < th_sad e) QP < th_qp Here, th_avg, th_sad, and th_qp are predetermined constants. That's fine. a)mip_set_id=tbl_grad[p[0] - p[3])] b)mip_set_id=tbl_act_[(p[0] + p[1]) - (p[2] + p[3])] c)mip_set_id=tbl_avg[(p[0] + … + p[inSize-1])>>log2(insize)] d)mip_set_id=tbl_sad[abs(p[1]-p[0]) + … + abs(p[inSize-1] - p[inSize-2])] e)mip_set_id=tbl_qp[QP] Here, tbl_avg, th_act, tbl_avg, tbl_sad, and tbl_qp are tables.

[0108] (Example 1 of MIP prediction method derivation) The MIP unit 31045 may be configured such that a mode derivation unit 4503 derives mip_set_id from the surroundings, and a prediction processing parameter derivation unit 4504 derives mWeight using modeId and sizeId obtained from intra_mip_mode_idx of the coded data. modeId is derived using intra_mip_mode_idx decoded from the coded data. modeId = intra_mip_mode_idx The MIP unit 31045 derives mWeight from mip_set_id, modeId (intra_mip_mode_idx), and sizeId. Put out.

[0109] For example, the MIP unit 31045 may derive a matrix from mip_set_id, modeId, and sizeId by table reference as follows:

[0110] mWeight = mWeightTable[sizeId][mip_set_id][modeId] Alternatively, a specific table may be selected by branching as follows:

[0111] if (sizeId == 0 && mip_set_id == 0 && modeId==0) mWeight = mWeightTable[0][0][0] else if (sizeId == 0 && mip_set_id == 0 && modeId==1) mWeight = mWeightTable[0][0][1] else if (sizeId == 0 && mip_set_id == 1 && modeId==0) mWeight = mWeightTable[0][1][0] else if (sizeId == 0 && mip_set_id == 1 && modeId==1) mWeight = mWeightTable[0][1][1] else if (sizeId == 1 && mip_set_id == 0 && modeId==0) mWeight = mWeightTable[1][0][0] else if (sizeId == 1 && mip_set_id == 0 && modeId==1) mWeight = mWeightTable[1][0][1] … else if (sizeId == 2 && mip_set_id == NumMipSet-1 && modeId==0) mWeight = mWeightTable[2][NumMipSet-1][0] else if (sizeId == 2 && mip_set_id == NumMipSet-1 && modeId==1) mWeight = mWeightTable[2][NumMipSet-1][1] (Example 2 of MIP prediction method derivation) The mode derivation unit 4503 may be configured to derive a candidate list indicated by mip_set_id and derive a prediction mode from the candidate list and intra_mip_mode_idx. The candidate list (subset) of may be: List of MIP prediction mode numbers (Configuration 1) List of matrices used in MIP (Configuration 2) List of neural network parameters used in MIP (Configuration 3) (Specific example of configuration 1) The mode derivation unit 4503 derives a selectable modeId candidate list modeIdCandListSet from the set modeIdCandListSet of MIP modeId candidate lists based on sizeId and mip_set_id.

[0112] modeIdCandList = modeIdCandListSet[mip_set_id] Here, modeIdCandList[] is a list whose elements are modeId. For example, it may be the following:

[0113] modeIdCandListSet[0][] = {0, 1, 2, 3} modeIdCandListSet[1][] = {0, 1, 4, 5} modeIdCandListSet[2][] = {0, 1, 6, 7} … In this example, when mip_set_id=0, modeIdCandList[] = {0, 1, 2, 3}. The mode derivation unit 4503 derives modeId from modeIdCandList and intra_mip_mode_idx.

[0114] modeId = modeIdCandList[intra_mip_mode_idx] Also, as shown below, modeIdCandListSet may be a set of candidate lists for each sizeId.

[0115] modeIdCandList = modeIdCandListSet[sizeId][mip_set_id] modeIdCandListSet[sizeId][0][] = {0, 1, 2, 3} modeIdCandListSet[sizeId][1][] = {0, 1, 4, 5} modeIdCandListSet[sizeId][2][] = {0, 1, 6, 7} … That is, modeId = modeIdCandListSet[sizeId][mip_set_id][intra_mip_mode_idx].

[0116] The prediction process parameter derivation unit 4504 refers to sizeId and modeId and selects a weight matrix mWeight[predSize*predSize][inSize] from the set of matrices.

[0117] When sizeId=0, the prediction processing parameter derivation unit 4504 selects mWeight

[16] [4] from the array WeightS0

[16]

[16] [4] that stores the weight matrix, by referring to modeId. When sizeId=1, the weight From the array WeightS1[8]

[16] [8] that stores the matrix, select mWeight

[16] [8] by referencing modeId. When sizeId=2, from the array WeightS2[6]

[64] [7] that stores the weight matrix, select mWeight

[64] [7] by referencing modeId. These are expressed by the following formula.

[0118] if (sizeId==0) (MIP-5) mWeight[i][j] = WeightS0[modeId][i][j] (i=0..15, j=0..3) else if (sizeId==1) mWeight[i][j] = WeightS1[modeId][i][j] (i=0..15, j=0..7) else / / sizeId=2 mWeight[i][j] = WeightS2[modeId][i][j] (i=0..63, j=0..6) (Specific example of configuration 2) The mode derivation unit 4503 of the MIP unit 31045 determines the sizeId and mip_set_id of the selectable MIP matrix. From the entire candidate list matrixCandListSet, a candidate list matrixCandList of selectable matrices is derived as follows.

[0119] matrixCandList = matrixCandListSet[sizeId][mip_set_id] Here, matrixCandList[] is a list whose elements are weight matrices mWeightX corresponding to one prediction mode. Each mWeightX is a matrix with a size of (predSize*predSize, inSize). do. For example, it may be the following:

[0120] matrixCandListSet[sizeId][0][] = {mWeight0, mWeight1, mWeight2, mWeight3} matrixCandListSet[sizeId][1][] = {mWeight0, mWeight1, mWeight4, mWeight5} matrixCandListSet[sizeId][2][] = {mWeight0, mWeight1, mWeight6, mWeight7} … The prediction processing parameter derivation unit 4504 of the MIP unit 31045 derives mWeight from matrixCandList and intra_mip_mode_idx.

[0121] mWeight = matrixCandList[intra_mip_mode_idx] The whole picture is as follows.

[0122] mWeight = matrixCandListSet[sizeId][mip_set_id][intra_mip_mode_idx] The previously explained (Derivation example 1 of the MIP prediction method) performs the same formal operation as follows: do.

[0123] mWeight = mWeightTable[sizeId][mip_set_id][intra_mip_mode_idx] (Specific example of configuration 3) The mode derivation unit 4503 of the MIP unit 31045 uses mip_set_id and a selectable MIP neural network. From the complete list of neural network model candidates modelCandListSet, a list of selectable neural network models modelCandList is derived as follows:

[0124] modelCandList = modelCandListSet[sizeId][mip_set_id] Here, modelCandList[] is a list whose elements are neural networks NNX corresponding to one prediction mode. NNX is a parameter indicating a neural network model that inputs input data p[] of length inSize and outputs an intermediate predicted image of (predSize*predSize). For example, it may be the following:

[0125] modelCandListSet[0][] = {NN0, NN1, NN2, NN3} modelCandListSet[1][] = {NN0, NN1, NN4, NN5} modelCandListSet[2][] = {NN0, NN1, NN6, NN7} … The prediction processing parameter derivation unit 4504 of the MIP unit 31045 uses modelCandList and intra_mip_mode_idx The neural network NN used for prediction is derived from this.

[0126] NN = modelCandList[intra_mip_mode_idx] A neural network NN is expressed by its network structure and parameters (weights and bias values). Alternatively, it can be an index or parameter that indirectly specifies this information. For example, a neural network NN is a network in which inSize input layers and predSize*predSize output layers are fully connected. The neural network has inSize*predSize*predSize weight parameters.

[0127] In this way, by specifying a mode to be used from a candidate list smaller than the total number of modes, the amount of syntax data required for selection can be reduced, thereby improving coding efficiency. For example, consider a case where the total number of MIP modes for a certain sizeId is 2L and a candidate list containing L elements (modes) is derived for a current block. In this case, the matrix intra prediction mode indicator intra_mip_mode_idx can specify a mode with one bit less data than when selecting one mode from all matrix intra prediction modes. In other words, by making the size of one candidate list equal to or less than half the total number of modes, a prediction mode can be selected with a small amount of data. It is preferable to define the candidate modes so that each prediction mode belongs to one of the candidate modes. As another example, if the total number of modes is 4L and a candidate list with L elements is derived, a mode can be specified with two bits less data.

[0128] (Another example of candidate list derivation) The mode derivation unit 4503 of the MIP unit 31045 may derive a candidate list of prediction modes for the current block each time based on p[ ] or other values. For example, the process may be performed as follows.

[0129] Initialize the candidate list candList. In the following example, the initial state is empty, but it may contain one or more elements. As already explained, the elements of candList may be the intra prediction mode modeId, the weight matrix mWeight, or the neural network NN. The MIP unit 31045 adds an element to the candList if a predetermined condition is met.

[0130] The conditions used here are specifically based on the following evaluation formulas. a) The size of a specific element in p[] and the relationship between elements b) Features such as the mean value derived from the elements of p[] c) Absolute difference between adjacent pixel values ​​in p[] d) Activity of the neighboring pixel region derived from p[] e) Quantization parameter QP of the target block If exemplified by a formula, it can be expressed as follows: a) p[0] < p[3], b) p[0] + p[1] < p[2] + p[3] c) (p[0] + … + p[inSize-1]) / insize >= th_avg, d) abs(p[1]-p[0]) + … + abs(p[inSize-1] - p[inSize-2]) < th_sad e) QP < th_qp Alternatively, other information than p[] may be used to evaluate the condition, for example: a) Whether the quantization parameter (QP) of the target block or neighboring blocks satisfies a predetermined range or magnitude relationship b) The size of the neighboring blocks, and whether the intra prediction mode of the neighboring blocks is a specific type (planar prediction, angular prediction, matrix intra prediction, etc.) c) The magnitude relationship of mode numbers and whether they are equal to a specific mode Alternatively, a composite condition based on a logical operation of these conditions may be used.

[0131] In this way, the mode derivation unit 4503 of the MIP unit 31045 derives the final candidate list candList based on cond[sizeId][X] and addList[sizeId][X]. If candList is a list of mode IDs derived by the above configuration example 1, the MIP unit 31045 derives the mode modeId to be used for prediction from the candidate list candList and intra_mip_mode_idx.

[0132] modeId = candList[intra_mip_mode_idx] The method by which the prediction processing parameter derivation unit 4504 derives mWeight from this is the same as the specific example of configuration 1. As explained.

[0133] If candList is a list of weighting matrices derived according to configuration example 2, the prediction processing parameter derivation unit 4504 derives mWeight as follows using candList and intra_mip_mode_idx.

[0134] mWeight = candList[intra_mip_mode_idx] If candList is a list of neural networks derived by configuration example 3, the prediction processing parameter derivation unit 4504 derives a NN using candList and intra_mip_mode_idx as follows.

[0135] NN = candList[intra_mip_mode_idx] (3) Deriving predicted pixels (matrix operation) In the case of the configuration example 1 and the configuration example 2, the MIP unit 31045 performs STEP 3 of FIG. 11 (prediction pixel derivation (matrix operation)). Then, an intermediate predicted image predMip[][] of the size predSize*predSize is derived by a matrix operation on p[]. First, an example will be described in which the weight matrix mWeight[][] derived in the configuration examples 1 and 2 is used to derive the intermediate predicted image predMip[][].

[0136] The matrix predicted image derivation unit 4502 of the MIP unit 31045 performs a (MIP-7) multiply-and-accumulate operation on p[] to derive predMip[][] of size predSize*predSize. An intermediate predicted image is derived by referring to the elements of the weighting matrix mWeight[][] for each corresponding position.

[0137] oW = 32 - 32*Σp[i] for (x=0; x <predSize; x++) (MIP-7) for (y=0; y <predSize; y++) { predMip[x][y] = (((ΣmWeight[i][y*predSize+x]*p[i])+ oW)>>6) + pTemp[0] predMip[x][y] = Clip1Y(predMip[x][y]) } Σ is the sum from i=0 to i=inSize-1.

[0138] When isTransposed=1, the input p[] to the sum-of-products operation is the position of the upper reference pixel and the left reference pixel. The output of the multiplication and accumulation operation, predMip[][], is output to the processing in (4). Transpose forward.

[0139] if (isTransposed==1) { (MIP-8) for (x=0; x <predSize; x++) for (y=0; y <predSize; y++) tmpPred[x][y] = predMip[y][x] for (x=0; x <predSize; x++) for (y=0; y <predSize; y++) predMip[x][y] = tmpPred[x][y] } The matrix predicted image derivation unit 4502 uses the neural network NN derived in the configuration example 3 instead of the two-dimensional weight matrix mWeight[][] in the derivation process of the intermediate predicted image predMip[][]. The neural network NN receives one-dimensional data with the number of elements inSize as the input layer. The model (network structure) receives the input data p[] and outputs two-dimensional data of predSize x predSize. The transformation by this network is expressed as function func_NN, and input data p[] is input. The predicted image predMip of predSize x predSize is expressed as follows:

[0140] predMip = func_NN(p) (MIP-9) Here, the process of transposing the output when isTransposed=1 is as described above (MIP-8).

[0141] In addition, the neural network NN has parameters other than p[] derived from the neighboring pixel values. For example, the prediction modes IntraPredModeT and IntraPredModeL of the upper and left neighboring blocks, and the QP value of the current block or neighboring blocks. In addition, based on these additional parameters, a predicted image can be derived that takes into account coding information around the target block.

[0142] The number and structure of intermediate layers (hidden layers) of the neural network NN may be configured arbitrarily. However, since the amount of calculation increases depending on the complexity of the network, a simple configuration such as one or two layers is desirable. It is also undesirable for the amount of calculation of the network to differ significantly depending on the model. For this reason, it is desirable to keep the amount of calculation constant for prediction modes belonging to the same sizeId by using the same model but changing the parameters, for example.

[0143] (4) Derivation of predicted pixels (linear interpolation) When nTbW=predSize and nTbH=predSize, the matrix predicted image interpolation unit 4505 of the MIP unit 31045 copies predMip[][] to predsamples[][].

[0144] for (x=0; x <nTbW; x++) for (y=0; y <nTbH; y++) predSamples[x][y] = predMip[x][y] Otherwise (nTbW>predSize or nTbH>predSize), the matrix predicted image interpolation unit 4505 stores predMip[][] in the predicted image predSamples[][] of size nTbW*nTbH in 4-1 of STEP 4, Deriving Predicted Pixels (Linear Interpolation) in Fig. 11. If predSize is different from nTbW or nTbH, the predicted pixel value is interpolated in 4-2.

[0145] (4-1) The matrix predicted image interpolation unit 4505 stores predMip[][] in predSamples[][]. In the image before interpolation shown in FIG. 12, predMip[][] is stored at the shaded pixel position in the upper right, lower left direction. .

[0146] upHor = nTbW / predSize (MIP-10) upVer = nTbH / predSize for (x=0; x <predSize; x++) for (y=0; y <predSize; y++) predSamples[(x+1)*upHor-1][(y+1)*upVer-1] = predMip[x][y] (4-2) If nTbH>nTbW, the pixels not stored in (4-1) are interpolated using pixel values ​​of adjacent blocks in the horizontal and vertical directions to generate a predicted image.

[0147] Horizontal interpolation is performed, and pixel values ​​at positions indicated by "○" are derived using predSamples[xHor][yHor] and predSamples[xHor+upHor][yHor] (shaded pixels in the image after horizontal interpolation in the figure).

[0148] for (m=0; m <predSize; m++) (MIP-11) for (n=1; n<=predSize; n++) for (dX=1; dX <upHor; dX++) { xHor = m*upHor-1 yHor = n*upVer-1 sum = (upHor-dX)*predSamples[xHor][yHor]+dX*predSamples[xHor+upHor][yHor] predSamples[xHor+dX][yHor] = (sum+upHor / 2) / upHor } After horizontal interpolation, predSamples[xVer][yVer] and predSamples[xVer][yVer+upVer] (Fig. The pixel values ​​at the positions indicated by "○" are derived using the shaded pixels of the image after vertical interpolation.

[0149] for (m=0; m <nTbW; m++) (MIP-12) for (n=0; n <predSize; n++) for (dY=1; dY <upVer; dY++) { xVer = m yVer = n*upVer-1 sum = (upVer-dY)*predSamples[xVer][yVer]+dY*predSamples[xVer][yVer+upVer] predSamples[xVer][yVer+dY] = (sum+upVer / 2) / upVer } If nTbH<=nTbW, a predicted image is generated by interpolating using pixel values ​​of adjacent blocks in the vertical and horizontal directions. The vertical and horizontal interpolation processes are the same as when nTbH>nTbW.

[0150] The inverse quantization and inverse transform unit 311 inverse quantizes the quantized transform coefficients input from the entropy decoding unit 301 to obtain transform coefficients. These quantized transform coefficients are coefficients obtained in the encoding process by performing frequency transform such as DCT (Discrete Cosine Transform) or DST (Discrete Sine Transform) on prediction errors and then quantizing them. The inverse quantization and inverse transform unit 311 performs inverse frequency transform such as inverse DCT or inverse DST on the obtained transform coefficients to calculate prediction errors. The inverse quantization and inverse transform unit 311 outputs the prediction errors to the adder 312.

[0151] The adder 312 adds, for each pixel, the predicted image of the block input from the predicted image generator 308 and the prediction error input from the inverse quantization and inverse transformer 311 to generate a decoded image of the block. The adder 312 stores the decoded image of the block in the reference picture memory 306 and also outputs it to the loop filter 305 .

[0152] (Configuration of a video encoding device) Next, the configuration of the video encoding device 11 according to this embodiment will be described. Fig. 13 is a block diagram showing the configuration of the video encoding device 11 according to this embodiment. The video encoding device 11 includes a prediction image generation unit 101, a subtraction unit 102, a transformation and quantization unit 103, an inverse quantization and inverse transformation unit 105, an addition unit 106, a loop filter 107, a prediction parameter memory (prediction parameter storage unit, frame memory) 108, a reference picture memory (reference image storage unit, frame memory) 109, a coding parameter determination unit 110, a parameter coding unit 111, and an entropy coding unit 104.

[0153] The predicted image generation unit 101 generates a predicted image for each CU, which is an area obtained by dividing each picture of the image T. The predicted image generating unit 101 operates in the same manner as the predicted image generating unit 308 already described, and so a description thereof will be omitted.

[0154] The subtraction unit 102 generates a prediction error by subtracting pixel values ​​of the predicted image of the block input from the predicted image generation unit 101 from pixel values ​​of the image T. The subtraction unit 102 outputs the prediction error to the transformation and quantization unit 103.

[0155] The transform / quantization unit 103 calculates transform coefficients by frequency transforming the prediction errors input from the subtraction unit 102, and derives quantized transform coefficients by quantizing the prediction errors. The quantized transform coefficients are output to the entropy coding unit 104 and the inverse quantization and inverse transform unit 105 .

[0156] The inverse quantization and inverse transform unit 105 is the same as the inverse quantization and inverse transform unit 311 (FIG. 7) in the video decoding device 31. The calculated prediction error is output to the adder 106.

[0157] The entropy coding unit 104 receives the quantized transform coefficients from the transform / quantization unit 103 and the coding parameters from the parameter coding unit 111. The entropy coding unit 104 entropy codes the division information, prediction parameters, quantized transform coefficients, etc. to generate and output a coded stream Te.

[0158] The parameter encoding unit 111 includes a header encoding unit 1110, a CT information encoding unit 1111, and a CU The encoding unit 1112 (prediction mode encoding unit), and the inter-prediction parameter encoding unit 112 and the inter The CU encoding unit 1112 further includes a TU encoding unit 1114.

[0159] (Configuration of the intra-prediction parameter encoding unit 113) The intra prediction parameter coding unit 113 derives a coding format (for example, intra_luma_mpm_idx, intra_luma_mpm_remmainder, etc.) from the IntraPredMode input from the coding parameter determination unit 110. The intra prediction parameter coding unit 113 includes a configuration that is partially the same as the configuration used by the intra prediction parameter decoding unit 304 to derive intra prediction parameters.

[0160] The adder 106 adds, for each pixel, the pixel values ​​of the predicted image of the block input from the predicted image generator 101 and the prediction error input from the inverse quantization and inverse transformer 105 to generate a decoded image. The unit 106 stores the generated decoded image in the reference picture memory 109 .

[0161] The loop filter 107 performs deblocking filtering, SAO, and ALF on the decoded image generated by the adder 106. Note that the loop filter 107 does not necessarily include the above three types of filters. For example, the filter may be configured with only a deblocking filter.

[0162] The prediction parameter memory 108 stores the prediction parameters generated by the coding parameter determination unit 110 in a predetermined location for each current picture and CU.

[0163] The reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined location for each current picture and CU.

[0164] The encoding parameter determination unit 110 determines one set of encoding parameters from among a plurality of sets of encoding parameters. The coding parameters are the above-mentioned QT, BT or TT division information, prediction parameters, or parameters to be coded that are generated in relation to these. The predicted image generation unit 101 generates a predicted image using these coding parameters.

[0165] The encoding parameter determination unit 110 determines the size of the information amount and the encoding parameter for each of the plurality of sets. The coding parameter determination unit 110 calculates an RD cost value indicating an error. The encoding parameter determination unit 110 selects the set of encoding parameters that minimizes the coding parameter set. The entropy encoding unit 104 then outputs the selected set of encoding parameters as the encoded stream Te. The encoding parameter determination unit 110 stores the determined encoding parameters in the prediction parameter memory 108.

[0166] Note that, in the above-described embodiment, the video encoding device 11 and a part of the video decoding device 31, for example, the entropy decoding unit 301, the parameter decoding unit 302, the loop filter 305, the predicted image generation unit 306, 308, an inverse quantization and inverse transform unit 311, an addition unit 312, a predicted image generation unit 101, a subtraction unit 102, a transform and quantization The quantization unit 103, the entropy coding unit 104, the inverse quantization / inverse transform unit 105, the loop filter 107, the coding parameter determination unit 110, and the parameter coding unit 111 may be implemented by a computer. In this case, a program for implementing these control functions may be recorded on a computer-readable recording medium, and the program may be read and executed by a computer system. Note that the term "computer system" as used herein refers to a computer system built into either the video encoding device 11 or the video decoding device 31, and includes hardware such as an OS and peripheral devices. Furthermore, the term "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, as well as storage devices such as hard disks built into a computer system. Furthermore, the term "computer-readable recording medium" may also include devices that dynamically store programs for a short period of time, such as communication lines used when transmitting programs via networks such as the Internet or communication lines such as telephone lines, and devices that store programs for a fixed period of time, such as volatile memory within the computer systems that serve as the server or client in such cases. Furthermore, the above program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system.

[0167] Furthermore, part or all of the video encoding device 11 and video decoding device 31 in the above-described embodiments may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the video encoding device 11 and video decoding device 31 may be individually implemented as a processor, or part or all of them may be integrated into a processor. Furthermore, the integrated circuit implementation method is not limited to LSI, and may be implemented using a dedicated circuit or a general-purpose processor. Furthermore, if an integrated circuit implementation technology that can replace LSI emerges due to advances in semiconductor technology, an integrated circuit based on that technology may be used.

[0168] One embodiment of the present invention has been described in detail above with reference to the drawings, but the specific configuration is not limited to that described above, and various design changes and the like are possible within the scope that does not deviate from the gist of the present invention.

[0169] [Application example] The above-described video encoding device 11 and video decoding device 31 can be mounted on various devices that transmit, receive, record, and play back video. The video may be a natural video captured by a camera or the like, or an artificial video (including CG and GUI) generated by a computer or the like.

[0170] First, it will be explained with reference to FIG. 2 that the above-described video encoding device 11 and video decoding device 31 can be used for transmitting and receiving video.

[0171] FIG. 2 is a block diagram showing the configuration of a transmitting device PROD_A equipped with a video encoding device 11. As shown in the figure, the transmitting device PROD_A includes an encoding unit PROD_A1 that encodes a video image to obtain encoded data, a modulation unit PROD_A2 that modulates a carrier wave with the encoded data obtained by the encoding unit PROD_A1 to obtain a modulated signal, and a transmitting unit PROD_A3 that transmits the modulated signal obtained by the modulation unit PROD_A2. The above-described video encoding device 11 is used as this encoding unit PROD_A1.

[0172] The transmitting device PROD_A captures moving images as a supply source of moving images to be input to the encoding unit PROD_A1. a recording medium PROD_A5 on which moving images are recorded; an input terminal PROD_A6 for inputting moving images from the outside; and an image processing unit A7 for generating or processing images. In the figure, the transmitting device PROD_A is shown as having all of these components, but some of them may be omitted.

[0173] The recording medium PROD_A5 may also be one that records unencoded moving images. Alternatively, the recording medium PROD_A5 may be a recording medium that has been coded using a coding method for recording that is different from the coding method for transmission. In the latter case, a decoding unit ( It is advisable to use a device (not shown) between the two.

[0174] FIG. 2 is a block diagram showing the configuration of a receiving device PROD_B equipped with a video decoding device 31. As shown in the figure, the receiving device PROD_B includes a receiving unit PROD_B1 that receives a modulated signal, a demodulating unit PROD_B2 that obtains coded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a decoding unit PROD_B3 that obtains a video by decoding the coded data obtained by the demodulating unit PROD_B2. The above-mentioned video decoding device 31 is used as this decoding unit PROD_B3.

[0175] The receiving device PROD_B is a supply destination of the video output from the decoding unit PROD_B3, and displays the video. The device may further include a display PROD_B4 for recording moving images, a recording medium PROD_B5 for recording moving images, and an output terminal PROD_B6 for outputting moving images to the outside. Although the receiving device PROD_B is illustrated as having the above components, some of these may be omitted.

[0176] The recording medium PROD_B5 is for recording unencoded moving images. In the latter case, a signal from the decoder PROD_B3 to the recording medium PROD_B5 is inserted between the decoder PROD_B3 and the recording medium PROD_B5. It is preferable to interpose an encoding unit (not shown) that encodes the acquired moving images according to an encoding method for recording.

[0177] The transmission medium for transmitting the modulated signal may be wireless or wired. The transmission mode for transmitting the modulated signal may be broadcast (here, this refers to a transmission mode in which the destination is not specified in advance) or communication (here, this refers to a transmission mode in which the destination is specified in advance). In other words, the transmission of the modulated signal may be realized by any of wireless broadcasting, wired broadcasting, wireless communication, and wired communication.

[0178] For example, a broadcasting station (such as a broadcasting facility) / receiving station (such as a television receiver) for terrestrial digital broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals via wireless broadcasting. Also, a broadcasting station (such as a broadcasting facility) / receiving station (such as a television receiver) for cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals via cable broadcasting.

[0179] Furthermore, a server (such as a workstation) / client (such as a television receiver, personal computer, or smartphone) of an Internet-based VOD (Video On Demand) service or video sharing service is an example of a transmitter PROD_A / receiver PROD_B that transmits and receives modulated signals via communication (usually, a LAN uses either a wireless or wired transmission medium, while a WAN uses a wired transmission medium). Here, personal computers include desktop PCs, laptop PCs, and tablet PCs. Smartphones also include multi-function mobile phone terminals.

[0180] The client of the video hosting service has the function of decoding the encoded data downloaded from the server and displaying it on a display, as well as the function of encoding the video images captured by a camera and uploading them to the server. In other words, the client of the video hosting service functions as both the transmitting device PROD_A and the receiving device PROD_B.

[0181] Next, it will be explained with reference to FIG. 3 that the above-described video encoding device 11 and video decoding device 31 can be used for recording and reproducing video.

[0182] FIG. 3 is a block diagram showing the configuration of a recording device PROD_C equipped with the above-described video encoding device 11. As shown in the figure, the recording device PROD_C includes an encoding unit PROD_C1 that encodes a moving image to obtain encoded data, and a writing unit PROD_C2 that writes the encoded data obtained by the encoding unit PROD_C1 onto a recording medium PROD_M. is used as this encoding unit PROD_C1.

[0183] The recording medium PROD_M may be (1) a type built into the recording device PROD_C, such as an HDD (Hard Disk Drive) or an SSD (Solid State Drive), or (2) a type that is external to the recording device PROD_C, such as an SD memory card or a USB (Universal Serial Bus) flash memory. (3) DVD (Digital Versatile Disc: registered) (registered trademark) or BD (Blu-ray Disc: registered trademark), It may also be loaded into a live device (not shown).

[0184] The recording device PROD_C also receives the video as a video source to be input to the encoding unit PROD_C1. The recording device PROD_C may further include a camera PROD_C3 for capturing images, an input terminal PROD_C4 for inputting moving images from the outside, a receiving unit PROD_C5 for receiving moving images, and an image processing unit PROD_C6 for generating or processing images. In the figure, the recording device PROD_C is shown as having all of these components, but some of them may be omitted.

[0185] The receiving unit PROD_C5 may receive unencoded video. Alternatively, the receiving unit PROD_C5 may receive coded data coded by a coding method for transmission that is different from the coding method for recording. In the latter case, it is preferable to interpose a decoding unit for transmission (not shown) between the receiving unit PROD_C5 and the coding unit PROD_C1, which decodes the coded data coded by the coding method for transmission.

[0186] Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, and an HDD (Hard Disk Drive) recorder (in this case, the input terminal PROD_C4 or the receiving unit PROD_C5 is the main source of moving images).Other examples of such a recording device PROD_C include a camcorder (in this case, the camera PROD_C3 is the main source of moving images), a personal computer (in this case, the receiving unit PROD_C5 or the image processing unit C6 is the main source of moving images), and a smartphone (in this case, the camera PROD_C3 or the receiving unit PROD_C5 is the main source of moving images).

[0187] FIG. 3 shows the configuration of a playback device PROD_D equipped with the above-described video decoding device 31. A block diagram is shown. As shown in the figure, the playback device PROD_D includes a reading unit PROD_D1 that reads coded data written on a recording medium PROD_M, and a decoding unit PROD_D2 that obtains video by decoding the coded data read by the reading unit PROD_D1. The above-mentioned video decoding device 31 is used as this decoding unit PROD_D2.

[0188] The recording medium PROD_M may be (1) a type that is built into the playback device PROD_D, such as an HDD or SSD, or (2) a type that is not built into the playback device PROD_D, such as an SD memory card or a USB flash memory. (3) DVD, BD, etc. As shown in the figure, the disc may be loaded into a drive device (not shown) built into the playback device PROD_D.

[0189] Furthermore, the playback device PROD_D receives the video output from the decoding unit PROD_D2 and sends the video to The image processing device may further include a display PROD_D3 for displaying the moving image, an output terminal PROD_D4 for outputting the moving image to the outside, and a transmission unit PROD_D5 for transmitting the moving image. Although the configuration of the playback device PROD_D is illustrated, some of the components may be omitted.

[0190] The transmission unit PROD_D5 may transmit unencoded video. Alternatively, the decoder PROD_D2 may transmit coded data coded by a coding method for transmission that is different from the coding method for recording. In the latter case, it is preferable to interpose a coding unit (not shown) between the decoder PROD_D2 and the transmitter PROD_D5, which codes the video by the coding method for transmission.

[0191] Examples of such a playback device PROD_D include a DVD player, a BD player, and an HDD player (in this case, the output terminal PROD_D4 to which a television receiver or the like is connected operates). Other examples of such a playback device PROD_D include a television receiver (in this case, the display PROD_D3 is the main destination of the moving images), a digital signage (also called an electronic billboard or electronic bulletin board, and the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the moving images), a desktop PC (in this case, the output terminal PROD_D4 or the transmission unit PROD_D5 is the main destination of the moving images), a laptop or tablet PC (in this case, the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the moving images), and a smartphone (in this case, the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the moving images).

[0192] (hardware and software implementations) Furthermore, each block of the video decoding device 31 and the video encoding device 11 may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip), or may be realized by a CPU. This may be realized in software using a Central Processing Unit (Central Processing Unit).

[0193] In the latter case, each of the above devices includes a CPU that executes instructions from a program to realize each function, ROM (Read Only Memory) stores the program, and RAM (Random Access Memory) expands the program. The device may include a storage device (recording medium) such as an access memory (access memory) for storing the above programs and various data. The object of the embodiment of the present invention can also be achieved by supplying each of the devices with a recording medium on which program code (executable program, intermediate code program, source program) of the control program for each of the devices, which is software for realizing the above functions, is recorded in a computer-readable manner, and having the computer (or CPU or MPU) read and execute the program code recorded on the recording medium.

[0194] Examples of the recording medium that can be used include tapes such as magnetic tape and cassette tape, magnetic disks such as floppy disks (registered trademark) and hard disks, disks including optical disks such as CD-ROMs (Compact Disc Read-Only Memory), MO disks (Magneto-Optical discs), MDs (Mini Discs), DVDs (Digital Versatile Discs: registered trademark), CD-Rs (CD Recordable), and Blu-ray Discs (registered trademark), cards such as IC cards (including memory cards) and optical cards, semiconductor memories such as mask ROMs, EPROMs (Erasable Programmable Read-Only Memory), EEPROMs (Electrically Erasable and Programmable Read-Only Memory: registered trademark), and flash ROMs, and logic circuits such as PLDs (Programmable logic devices) and FPGAs (Field Programmable Gate Arrays).

[0195] Furthermore, each of the above devices may be configured to be connectable to a communications network, and the program code may be supplied via the communications network. This communications network may be any network capable of transmitting the program code. For example, the Internet, an intranet, an extranet, a local area network (LAN), an integrated services digital network (ISDN), a value-added network (VAN), a community antenna television / cable television (CATV) communications network, a virtual private network, a telephone line network, a mobile communications network, a satellite communications network, etc. Furthermore, the transmission media constituting this communications network may be any medium capable of transmitting the program code, and are not limited to any particular configuration or type. For example, the present invention can be used in wired communication such as IEEE (Institute of Electrical and Electronic Engineers) 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, etc., or in wireless communication such as IrDA (Infrared Data Association), infrared such as that used in remote controls, Bluetooth (registered trademark), IEEE802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (Digital Living Network Alliance: registered trademark), mobile phone networks, satellite lines, terrestrial digital broadcasting networks, etc. Note that the present invention can also be realized in the form of a computer data signal embedded in a carrier wave in which the program code is embodied by electronic transmission.

[0196] The present invention is not limited to the above-described embodiments, and is not limited to the scope of the claims. In other words, embodiments obtained by combining technical means that are appropriately modified within the scope of the claims are also included in the technical scope of the present invention. [Industrial Applicability]

[0197] The embodiments of the present invention can be suitably applied to a video decoding device that decodes coded data obtained by coding image data, and a video coding device that generates coded data obtained by coding image data, and can also be suitably applied to the data structure of coded data generated by a video coding device and referenced by the video decoding device. [Explanation of symbols]

[0198] 31 Image decoding device 301 Entropy Decoding Unit 302 Parameter Decoding Unit 303 Inter-prediction parameter decoding unit 304 Intra prediction parameter decoding unit 308 Prediction Image Generation Unit 309 Inter-prediction image generation unit 310 Intra-prediction image generation unit 311 Inverse quantization and inverse transform unit 312 Addition section 31045 MIP section 4501 Matrix reference pixel derivation unit 4502 Matrix prediction image derivation unit 4503 Mode extraction section 4504 Prediction processing parameter derivation part 4505 Matrix prediction image interpolation unit 11 Image encoding device 101 Prediction image generation unit 102 Subtraction section 103 Transformation and Quantization Unit 104 Entropy coding unit 105 Inverse quantization and inverse transformation unit 107 Loop Filter 110 Encoding parameter determination unit 111 Parameter Encoding Unit 112 Inter-prediction parameter coding unit 113 Intra prediction parameter coding unit 1110 Header encoding part 1111 CT information encoder 1112 CU encoding unit (prediction mode encoding unit) 1114 TU encoder

Claims

1. a matrix reference pixel derivation unit that derives images adjacent to the top and left of the target block as reference images; a matrix predicted image derivation unit that derives a predicted image based on elements of the reference image and a first parameter; a matrix predicted image interpolation unit that derives the predicted image or an image obtained by interpolating the predicted image as a predicted image; A video decoding device comprising: The video decoding device is characterized in that it derives the first parameter using information on the current block and information on adjacent blocks.

2. A prediction processing parameter derivation unit that derives the first parameters used to derive a predicted image according to a size of the target block, an arrangement of weight matrices, a second parameter, and a prediction mode; 2. The video decoding device according to claim 1, further comprising a mode derivation unit that derives the second parameter using information on the neighboring blocks.

3. The video decoding device described in Claim 2, characterized in that the mode derivation unit derives a second candidate list which is a subset of the first candidate list from a first candidate list of prediction modes using the second parameters, and derives the prediction mode using the second candidate list.

4. A video decoding device as described in Claim 2 or 3, characterized in that the information of the adjacent block is a pixel value contained in the reference image, and the mode derivation unit derives the second parameter based on a plurality of pixel values ​​or the relationship between a pixel value and a threshold value.

5. A video decoding device as described in Claim 2 or 3, characterized in that the information of the adjacent block is a pixel value contained in the reference image, and the mode derivation unit derives the second parameter based on a plurality of feature quantities derived by calculating either the average, difference, or absolute value of a plurality of pixel values, or on the relationship between the feature quantities and a threshold value.

6. A moving image decoding device as described in any one of claims 2 to 5, characterized in that the information of the target block is a quantization parameter of the target block, and the mode derivation unit derives the second parameter based on the relationship between the quantization parameter and a threshold value.

7. a matrix reference pixel derivation unit that derives images adjacent to the top and left of the target block as reference images; a matrix predicted image derivation unit that derives a predicted image based on elements of the reference image and a first parameter; a matrix predicted image interpolation unit that derives the predicted image or an image obtained by interpolating the predicted image as a predicted image; A video encoding device comprising: The video encoding device is characterized in that it derives the first parameter using information on the current block and information on adjacent blocks.

8. A prediction processing parameter derivation unit that derives the first parameters used to derive a predicted image according to a size of the target block, an arrangement of weight matrices, second parameters, and a prediction mode; 8. The video encoding device according to claim 7, further comprising a mode derivation unit for deriving the second parameter using information on the neighboring blocks.