WO2018216688A1 - 動画像符号化装置及び動画像復号装置、フィルタ装置 - Google Patents

動画像符号化装置及び動画像復号装置、フィルタ装置 Download PDF

Info

Publication number
WO2018216688A1
WO2018216688A1 PCT/JP2018/019654 JP2018019654W WO2018216688A1 WO 2018216688 A1 WO2018216688 A1 WO 2018216688A1 JP 2018019654 W JP2018019654 W JP 2018019654W WO 2018216688 A1 WO2018216688 A1 WO 2018216688A1
Authority
WO
WIPO (PCT)
Prior art keywords
pixel
prediction
block
pixels
image
Prior art date
Application number
PCT/JP2018/019654
Other languages
English (en)
French (fr)
Inventor
友子 青野
知宏 猪飼
Original Assignee
シャープ株式会社
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by シャープ株式会社 filed Critical シャープ株式会社
Priority to US16/614,810 priority Critical patent/US20200213619A1/en
Publication of WO2018216688A1 publication Critical patent/WO2018216688A1/ja

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/182Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being a pixel
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution

Definitions

  • the present invention relates to an image decoding device and an image encoding device.
  • an image encoding device that generates encoded data by encoding the moving image, and image decoding that generates a decoded image by decoding the encoded data The device is used.
  • the moving image encoding method include a method proposed in H.264 / AVC and HEVC (High-Efficiency Video Coding).
  • an image (picture) constituting a moving image is a slice obtained by dividing the image, a coding tree unit (CTU: Coding Tree Unit obtained by dividing the slice). ), A coding unit obtained by dividing a coding tree unit (sometimes called a coding unit (Coding Unit: CU)), and a prediction unit which is a block obtained by dividing a coding unit (PU) and a hierarchical structure composed of conversion units (TU), and encoded / decoded for each CU.
  • CTU Coding Tree Unit obtained by dividing the slice.
  • CU Coding Unit
  • a prediction unit which is a block obtained by dividing a coding unit (PU) and a hierarchical structure composed of conversion units (TU), and encoded / decoded for each CU.
  • a predicted image is usually generated based on a local decoded image obtained by encoding / decoding an input image, and the predicted image is generated from the input image (original image).
  • a prediction residual obtained by subtraction (sometimes referred to as “difference image” or “residual image”) is encoded. Examples of methods for generating a predicted image include inter-screen prediction (inter prediction) and intra-screen prediction (intra prediction) (Non-Patent Document 1).
  • FIG. 7 shows pixel positions in 4: 2: 0 and 4: 4: 4 formats.
  • the 4: 4: 4 format in FIG. 7A is a format in which the luminance component (Y) and the color difference components (Cb, Cr) are at the same pixel position in the horizontal and vertical directions and have the same resolution.
  • Non-Patent Document 2 is a format in which the pixel position where the color difference component exists is 1/2 in the horizontal and vertical directions, that is, the resolution is half that of the luminance component. For this reason, some tools used in image encoding or decoding processing require a larger memory than that required for the 4: 2: 0 format when dealing with the 4: 4: 4 format (Non-Patent Document 2). ).
  • Non-Patent Document 2 profile information is stored in the content (encoded data), and the image decoding apparatus is notified of whether the encoded data is in 4: 4: 4 format or 4: 2: 0 format.
  • a mechanism is described in which whether or not the image decoding apparatus can reproduce the encoded data in advance and only the encoded data that can be reproduced can be decoded.
  • the present invention has been made in view of the above problems, and its purpose is to share the line memory size necessary for the decoding process in the 4: 2: 0 format and the 4: 4: 4 format, This is to reduce the memory size required for reproducing encoded data in 4: 4 format.
  • An image encoding apparatus includes a unit that divides one screen of the input moving image into blocks each including a plurality of pixels, and a pixel (reference pixel) of an adjacent block of the target block in units of the block.
  • the prediction means for performing intra prediction and calculating a prediction pixel value the means for calculating the prediction error by subtracting the prediction pixel value from the input moving image, and converting, quantizing, and quantizing the prediction error Means for outputting a quantized transform coefficient, and means for variable-length coding the quantized transform coefficient, wherein the prediction means includes a pixel of a block on the left side of a target block on which intra prediction is performed, and a pixel of an upper block
  • the reference pixel of the upper block refers to one pixel (first reference pixel) for every two pixels of the target block, and the remaining one pixel (second reference pixel)
  • the prediction means calculates an intra prediction value of each pixel of the color difference component of the target block with reference to the first reference pixel and the second reference pixel, and is derived by interpolating from the first reference pixel. It is characterized by that.
  • An image decoding apparatus includes a unit that performs variable-length decoding of encoded data and outputs a quantized transform coefficient using a block including a plurality of pixels as a processing unit, and dequantizes the quantized transform coefficient
  • a means for inversely transforming and outputting a prediction error ; a prediction means for calculating a prediction pixel value by performing intra prediction with reference to a pixel (reference pixel) of an adjacent block of the target block in units of the block;
  • a prediction pixel value and a means for adding the prediction error wherein the prediction means refers to the pixel of the left block of the target block on which intra prediction is performed and the pixel of the upper block, and in the color difference component,
  • the reference pixel of the upper block refers to one pixel (first reference pixel) for every two pixels of the target block, and the remaining one pixel (second reference pixel) is interpolated from the first reference pixel.
  • said predicting means with reference first reference pixel and the second reference pixels,
  • encoded data in 4: 4: 4 format can be decoded by an image decoding device compliant with the 4: 2: 0 format.
  • FIG. 1 is a schematic diagram illustrating a configuration of an image transmission system according to an embodiment of the present invention. It is a figure which shows the hierarchical structure of the data of the encoding stream which concerns on one Embodiment of this invention. It is a figure which shows the pattern of PU division
  • FIG. 1 It is a figure which shows the storage method of the image to the reference memory of one Embodiment of this invention. It is a figure explaining the filtering method of the loop filter of one Embodiment of this invention. It is a figure explaining another filtering method of the loop filter of one embodiment of the present invention. It is another figure explaining the filtering method of ALF of one Embodiment of this invention. It is a figure which shows the filter shape of ALF. It is a figure explaining the relationship between CTU and CU. It is a flowchart explaining a part of operation
  • FIG. 1 is a schematic diagram showing a configuration of an image transmission system 1 according to the present embodiment.
  • the image transmission system 1 is a system that transmits a code obtained by encoding an encoding target image, decodes the transmitted code, and displays an image.
  • the image transmission system 1 includes an image encoding device 11, a network 21, an image decoding device 31, and an image display device 41.
  • the image encoding device 11 receives an image T indicating a single layer image or a plurality of layers.
  • a layer is a concept used to distinguish a plurality of pictures when there are one or more pictures constituting a certain time. For example, when the same picture is encoded with a plurality of layers having different image quality and resolution, scalable encoding is performed, and when a picture of a different viewpoint is encoded with a plurality of layers, view scalable encoding is performed.
  • inter-layer prediction, inter-view prediction When prediction is performed between pictures of a plurality of layers (inter-layer prediction, inter-view prediction), encoding efficiency is greatly improved. Further, even when prediction is not performed (simultaneous casting), encoded data can be collected.
  • the network 21 transmits the encoded stream Te generated by the image encoding device 11 to the image decoding device 31.
  • the network 21 is the Internet, a wide area network (WAN: Wide Area Network), a small network (LAN: Local Area Network), or a combination thereof.
  • 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.
  • the network 21 may be replaced with a storage medium that records an encoded stream Te such as a DVD (Digital Versatile Disc) or a BD (Blu-ray Disc: registered trademark).
  • the image decoding device 31 decodes each of the encoded streams Te transmitted by the network 21, and generates one or a plurality of decoded images Td decoded.
  • the image display device 41 displays all or part of one or more decoded images Td generated by the image decoding device 31.
  • the image display device 41 includes, for example, a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display.
  • a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display.
  • a high-quality enhancement layer image is displayed and only a lower processing capability is provided. Displays a base layer image that does not require higher processing capability and display capability as an extension layer.
  • X? Y: z is a ternary operator that takes y when x is true (non-zero) and takes z when x is false (0).
  • FIG. 2 is a diagram showing a 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.
  • (A) to (f) of FIG. 2 respectively show an encoded video sequence defining a sequence SEQ, an encoded picture defining a picture PICT, an encoded slice defining a slice S, and an encoded slice defining a slice data
  • the encoded video sequence In the encoded video sequence, a set of data referred to by the image decoding device 31 for decoding the sequence SEQ to be processed is defined. As shown in FIG. 2A, the sequence SEQ includes a video parameter set (Video Parameter Set), a sequence parameter set SPS (Sequence Parameter Set), a picture parameter set PPS (Picture Parameter Set), a picture PICT, and an addition. Includes SEI (Supplemental Enhancement Information). Here, the value indicated after # indicates the layer ID.
  • FIG. 2 shows an example in which encoded data of # 0 and # 1, that is, layer 0 and layer 1, exists, but the type of layer and the number of layers are not dependent on this.
  • the video parameter set VPS is a set of coding parameters common to a plurality of moving images, a plurality of layers included in the moving image, and coding parameters related to individual layers in a moving image composed of a plurality of layers.
  • a set is defined.
  • the sequence parameter set SPS defines a set of encoding parameters that the image decoding device 31 refers to in order to decode the target sequence. For example, the width and height of the picture are defined. A plurality of SPSs may exist. In that case, one of a plurality of SPSs is selected from the PPS.
  • a set of encoding parameters referred to by the image decoding device 31 in order to decode each picture in the target sequence is defined.
  • a quantization width reference value (pic_init_qp_minus26) used for picture decoding and a flag (weighted_pred_flag) indicating application of weighted prediction are included.
  • the picture PICT includes slices S0 to S NS-1 (NS is the total number of slices included in the picture PICT).
  • the coded slice In the coded slice, a set of data referred to by the image decoding device 31 for decoding the slice S to be processed is defined. As shown in FIG. 2C, the slice S includes a slice header SH and slice data SDATA.
  • the slice header SH includes an encoding parameter group that is referred to by the image decoding device 31 in order to determine a decoding method of the target slice.
  • Slice type designation information (slice_type) for designating a slice type is an example of an encoding parameter included in the slice header SH.
  • I slice using only intra prediction at the time of encoding (2) P slice using unidirectional prediction or intra prediction at the time of encoding, (3) B-slice using unidirectional prediction, bidirectional prediction, or intra prediction at the time of encoding may be used.
  • inter prediction is not limited to single prediction and bi-prediction, and a predicted image may be generated using more reference pictures.
  • the P and B slices refer to slices including blocks that can use inter prediction.
  • the slice header SH may include a reference (pic_parameter_set_id) to the picture parameter set PPS included in the encoded video sequence.
  • the slice data SDATA includes a coding tree unit (CTU: Coding Tree Unit, CTU block).
  • CTU Coding Tree Unit
  • a CTU is a block of a fixed size (for example, 64x64) that constitutes a slice, and is sometimes called a maximum coding unit (LCU: Large Coding Unit).
  • Encoding tree unit As shown in (e) of FIG. 2, a set of data referred to by the image decoding device 31 in order to decode the processing target coding tree unit is defined.
  • the coding tree unit is divided into coding units (CU: Coding Unit) which is a basic unit of coding processing by recursive quadtree division (QT division) or binary tree division (BT division). .
  • a tree structure obtained by recursive quadtree partitioning or binary tree partitioning is called a coding tree (CT), and a node of the tree structure is called a coding node (CN).
  • CT coding tree
  • CN coding node
  • the intermediate nodes of the quadtree and the binary tree are coding nodes, and the coding tree unit itself is defined as the highest coding node.
  • CT includes, as CT information, a QT split flag (cu_split_flag) indicating whether or not to perform QT split, and a BT split mode (split_bt_mode) indicating a split method of BT split.
  • cu_split_flag and / or split_bt_mode are transmitted for each coding node CN.
  • cu_split_flag is 1, the encoding node CN is divided into four encoding nodes CN.
  • split_bt_mode is 1, the encoding node CN is horizontally divided into two encoding nodes CN.
  • split_bt_mode When split_bt_mode is 2, the encoding node CN is vertically divided into two encoding nodes CN. When split_bt_mode is 0, the encoding node CN is not divided and has one encoding unit CU as a node.
  • the encoding unit CU is a terminal node (leaf node) of the encoding node and is not further divided.
  • the size of the coding unit is 64x64 pixels, 64x32 pixels, 32x64 pixels, 32x32 pixels, 64x16 pixels, 16x64 pixels, 32x16 pixels, 16x32 pixels, 16x16 pixels.
  • the encoding unit As shown in (f) of FIG. 2, a set of data referred to by the image decoding device 31 in order to decode the encoding unit to be processed is defined.
  • the encoding unit includes a prediction tree, a conversion tree, and a CU header CUH.
  • the CU header defines a prediction mode, a division method (PU division mode), and the like.
  • the prediction parameters (reference picture index, motion vector, etc.) of each prediction unit (PU) obtained by dividing the coding unit into one or a plurality are defined.
  • the prediction unit is one or a plurality of non-overlapping areas constituting the encoding unit.
  • the prediction tree includes one or a plurality of prediction units obtained by the above-described division.
  • a prediction unit obtained by further dividing the prediction unit is referred to as a “sub-block”.
  • the sub block is composed of a plurality of pixels.
  • the number of sub-blocks in the prediction unit is one.
  • the prediction unit is larger than the size of the sub-block, the prediction unit is divided into sub-blocks. For example, when the prediction unit is 8 ⁇ 8 and the sub-block is 4 ⁇ 4, the prediction unit is divided into four sub-blocks that are divided into two horizontally and two vertically.
  • the prediction process may be performed for each prediction unit (sub block).
  • Intra prediction is prediction within the same picture
  • inter prediction refers to prediction processing performed between different pictures (for example, between display times and between layer images).
  • the division method is encoded by the PU division mode (part_mode) of encoded data, 2Nx2N (the same size as the encoding unit), 2NxN, 2NxnU, 2NxnD, Nx2N, nLx2N, nRx2N, and NxN etc.
  • 2NxN and Nx2N indicate 1: 1 symmetrical division
  • nRx2N indicate 1: 3, 3: 1 asymmetric partitioning.
  • the PUs included in the CU are expressed as PU0, PU1, PU2, and PU3 in this order.
  • FIG. 3 specifically show the partition shape (the position of the boundary of the PU partition) in each PU partition mode.
  • 3A shows a 2Nx2N partition
  • FIGS. 3B, 3C, and 2D show 2NxN, 2NxnU, and 2NxnD partitions (horizontal partitions), respectively.
  • E), (f), and (g) show partitions (vertical partitions) in the case of Nx2N, nLx2N, and nRx2N, respectively, and (h) shows an NxN partition.
  • the horizontal partition and the vertical partition are collectively referred to as a rectangular partition
  • 2Nx2N and NxN are collectively referred to as a square partition.
  • the encoding unit is divided into one or a plurality of conversion units, and the position and size of each conversion unit are defined.
  • a transform unit is one or more non-overlapping areas that make up a coding unit.
  • the conversion tree includes one or a plurality of conversion units obtained by the above division.
  • the division in the conversion tree includes a case where an area having the same size as that of the encoding unit is assigned as a conversion unit, and a case where recursive quadtree division is used, as in the case of the CU division described above.
  • Conversion processing is performed for each conversion unit.
  • Prediction parameter A prediction image of a prediction unit (PU: Prediction Unit) is derived from a prediction parameter associated with the PU.
  • the prediction parameters include a prediction parameter for intra prediction or a prediction parameter for inter prediction.
  • the reference picture list is a list including reference pictures stored in the reference picture memory 306.
  • FIG. 4 is a conceptual diagram illustrating an example of a reference picture and a reference picture list.
  • a rectangle is a picture
  • an arrow is a reference relationship of the picture
  • a horizontal axis is time
  • I, P, and B in the rectangle are an intra picture
  • a single prediction picture a bi-prediction picture
  • numbers in the rectangle are Indicates the decoding order.
  • the decoding order of pictures is I0, P1, B2, B3, and B4
  • the display order is I0, B3, B2, B4, and P1.
  • FIG. 4B shows an example of the reference picture list.
  • the reference picture list is a list representing candidate reference pictures, and one picture (slice) may have one or more reference picture lists.
  • the prediction parameter decoding (encoding) method includes a merge prediction (merge) mode and an AMVP (Adaptive Motion Vector Prediction) mode.
  • the merge flag merge_flag is a flag for identifying these.
  • the merge mode is a mode in which the prediction list use flag predFlagLX (or inter prediction identifier inter_pred_idc), the reference picture index refIdxLX, and the motion vector mvLX are not included in the encoded data and are derived from the prediction parameters of already processed neighboring PUs.
  • the AMVP mode is a mode in which the inter prediction identifier inter_pred_idc, the reference picture index refIdxLX, and the motion vector mvLX are included in the encoded data.
  • the motion vector mvLX is encoded as a prediction vector index mvp_LX_idx for identifying the prediction vector mvpLX and a difference vector mvdLX.
  • the motion vector mvLX indicates a shift amount between blocks on two different pictures.
  • a prediction vector and a difference vector related to the motion vector mvLX are referred to as a prediction vector mvpLX and a difference vector mvdLX, respectively.
  • Inter prediction identifier inter_pred_idc and prediction list use flag predFlagLX The relationship between the inter prediction identifier inter_pred_idc and the prediction list use flags predFlagL0 and predFlagL1 is as follows and can be converted into each other.
  • the luminance intra prediction mode IntraPredModeY is 67 mode and corresponds to planar prediction (0), DC prediction (1), and direction prediction (2 to 66).
  • the color difference intra prediction mode IntraPredModeC is a 68 mode obtained by adding a Color Component Linear Mode (CCLM) to the above 67 mode.
  • CCLM Color Component Linear Mode
  • FIG. 10 (a) is a diagram showing the target block X (the blocks may be CU, PU, and TU) and the upper left, upper, upper right, and left adjacent blocks AL, A, AR, and L thereof.
  • the luminance target block is the size of the outer solid line block
  • the block size (M / 2, N / 2) of the color difference component is expressed as (M2, N2).
  • the predicted pixel value for planar prediction is calculated using the following formula.
  • predSamples [m, n] (w * r [m + d, -1] + (Ww) * r [m + d + 1, -1] + W / 2) >> log2 (W) (Formula 3)
  • d is the displacement of the pixel position according to the prediction direction
  • w is a weighting factor.
  • W is, for example, the sum of weights, and is, for example, 32, 64, or 128.
  • the deblocking filter is a pixel for luminance and color difference components with respect to a block boundary when a difference between pre-deblock pixel values of pixels of luminance components adjacent to each other via the block boundary is smaller than a predetermined threshold. Is subjected to a deblocking process to smooth the image near the block boundary.
  • FIG. 12 (a) shows two color difference component blocks P (pixel values are p [m, n]) and Q (pixel values are q [m, n]) that are bordered in the horizontal direction.
  • the deblocking filter refers to pixels that are T pixels or less from the block boundary, and the pixel values of the filter target pixels p [m, 0] and q [m, 0] indicated by diagonal lines Is corrected by the following equation to eliminate block distortion.
  • Clip3 (-tc, tc, (((q [m, 0] -p [m, 0]) ⁇ 2) + p [m, 1] -q [m, 1] +4) >> 3 )
  • p [m, 0] Clip1 (p [m, 0] + ⁇ )
  • q [m, 0] Clip1 (q [m, 0] - ⁇ )
  • tc represents a predetermined threshold
  • SAO is a filter mainly applied after the deblocking filter, and has the effect of removing ringing distortion and quantization distortion.
  • SAO is CTU-unit processing, and is a filter that classifies pixel values into several categories and adds or subtracts offsets in pixel units for each category.
  • EO edge offset
  • an offset value to be added to the pixel value is determined according to the magnitude relationship between the target pixel and the adjacent pixel (reference pixel).
  • FIG. 12 (b) shows two color difference component blocks P (pixel values are p [m, n]) and Q (pixel values are q [m, n]) that are bordered in the horizontal direction.
  • EO processing touches the EO target pixel p [m, 0] indicated by diagonal lines in the vertical direction, the horizontal direction, the upper left lower right diagonal direction, and the upper right lower left diagonal direction (p [m, 1], q [m , 0]), (p [m-1,0], p [m + 1,0]), (p [m-1,1], q [m + 1,0]), (p [m + 1,1], q [m-1,0]) by referring to the pixel notified by the encoded data, selecting the offset offsetP, and adding / subtracting the offset to / from p [m, 0] Remove ringing and quantization distortion.
  • FIG. 12 (c) touches the EO processing target pixel q [m, 0] indicated by diagonal lines in the vertical direction, the horizontal direction, the upper left lower right diagonal direction, and the upper right lower left diagonal direction (p [m, 0], q [m, 1]), (q [m-1,0], q [m + 1,0]), (p [m-1,0], q [m + 1,1]) , (P [m + 1,0], q [m-1,1]), refer to the pixel notified by the encoded data, select offset offsetQ, and offset to q [m, 0] By adding and subtracting, ringing and quantization distortion are removed.
  • the ALF generates an ALF-completed decoded image by performing an adaptive filter process using the ALF parameter ALFP decoded from the encoded data Te on the ALF pre-decoded image.
  • Figures 12 (d) to 12 (g) show the ALF in the block P (pixel value is p [m, n]) and Q (pixel value is q [m, n]) of two chrominance components that border the horizontal direction. It is a figure which shows a process.
  • ALF is applied to the ALF target pixels p [m, 1], p [m, 0], q [m, 0], and q [m, 1] indicated by diagonal lines by applying a diamond-shaped SxS tap filter. Improve image quality.
  • FIG. 13 is a diagram illustrating a memory that stores reference pixels to be referred to by the loop filter.
  • FIG. 13 (a) is a memory for storing reference pixels for the color difference component of the deblocking filter and SAO (EO)
  • FIG. 13 (b) is a memory for storing the reference pixels for the color difference component when ALF is added.
  • SAO SAO
  • FIG. 13 (b) is a memory for storing the reference pixels for the color difference component when ALF is added.
  • These are line memories in which the decoded pixels of the block decoded one block before the target block are stored. In the case of the 4: 2: 0 format, this memory stores reference pixels of color difference components corresponding to the number of width pixels / 2 * number of lines of an image of width * height size.
  • the reference pixels for the deblocking filter and the chrominance component of SAO are stored as two-line reference pixels as shown in FIG. Each component is 1920 pixels * 2. Further, when ALF is processed, reference pixels for four lines are stored as shown in FIG. 13B, so that each of the Cb and Cr components is 1920 pixels * 4.
  • FIG. 5 is a schematic diagram illustrating a configuration of the image decoding device 31 according to the present embodiment.
  • the image decoding device 31 includes an entropy decoding unit 301, a prediction 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, and inversely.
  • a quantization / inverse transform unit 311 and an adder 312 are included. Note that there is a configuration in which the image decoding device 31 does not include the loop filter 305 in accordance with the image encoding device 11.
  • the prediction parameter decoding unit 302 includes an inter prediction parameter decoding unit 303 and an intra prediction parameter decoding unit 304.
  • the predicted image generation unit 308 includes an inter predicted image generation unit 309 and an intra predicted image generation unit 310.
  • the entropy decoding unit 301 performs entropy decoding on the coded stream Te input from the outside, and separates and decodes individual codes (syntax elements).
  • the separated code includes a prediction parameter for generating a prediction image and residual information for generating a difference image.
  • the entropy decoding unit 301 outputs a part of the separated code to the prediction parameter decoding unit 302.
  • Some of the separated codes are, for example, the prediction mode predMode, the PU partition mode part_mode, the merge flag merge_flag, the merge index merge_idx, the inter prediction identifier inter_pred_idc, the reference picture index ref_Idx_lX, the prediction vector index mvp_LX_idx, and the difference vector mvdLX. Control of which code is decoded is performed based on an instruction from the prediction parameter decoding unit 302.
  • the entropy decoding unit 301 outputs the quantized coefficient to the inverse quantization / inverse transform unit 311.
  • this quantized coefficient is converted into DCT (DiscreteDisCosine Transform), DST (Discrete Sine ⁇ Transform), KLT (Karyhnen ⁇ Loeve Transform) in the encoding process. It is a coefficient obtained by performing frequency conversion such as
  • the inter prediction parameter decoding unit 303 decodes the inter prediction parameter with reference to the prediction parameter stored in the prediction parameter memory 307 based on the code input from the entropy decoding unit 301.
  • the inter prediction parameter decoding unit 303 outputs the decoded inter prediction parameter to the prediction image generation unit 308 and stores it in the prediction parameter memory 307.
  • the intra prediction parameter decoding unit 304 refers to the prediction parameter stored in the prediction parameter memory 307 on the basis of the code input from the entropy decoding unit 301 and decodes the intra prediction parameter.
  • the intra prediction parameter is a parameter used in a process of predicting a CU within one picture, for example, an intra prediction mode IntraPredMode.
  • the intra prediction parameter decoding unit 304 outputs the decoded intra prediction parameter to the prediction image generation unit 308 and stores it in the prediction parameter memory 307.
  • the loop filter 305 applies filters such as a deblocking filter 313, a sample adaptive offset (SAO) 314, and an adaptive loop filter (ALF) 315 to the decoded image of the CU generated by the adding unit 312.
  • filters such as a deblocking filter 313, a sample adaptive offset (SAO) 314, and an adaptive loop filter (ALF) 315 to the decoded image of the CU generated by the adding unit 312.
  • SAO sample adaptive offset
  • ALF adaptive loop filter
  • the reference picture memory 306 stores the decoded image of the CU generated by the adding unit 312 at a predetermined position for each decoding target picture and CU.
  • the prediction parameter memory 307 stores the prediction parameter in a predetermined position for each decoding target picture and prediction unit (or sub-block, fixed-size block, pixel). Specifically, the prediction parameter memory 307 stores the inter prediction parameter decoded by the inter prediction parameter decoding unit 303, the intra prediction parameter decoded by the intra prediction parameter decoding unit 304, and the prediction mode predMode separated by the entropy decoding unit 301. .
  • the stored inter prediction parameters include, for example, a prediction list utilization flag predFlagLX (inter prediction identifier inter_pred_idc), a reference picture index refIdxLX, and a motion vector mvLX.
  • the prediction image generation unit 308 receives the prediction mode predMode input from the entropy decoding unit 301 and the prediction parameter from the prediction parameter decoding unit 302. Further, the predicted image generation unit 308 reads a reference picture from the reference picture memory 306. The prediction image generation unit 308 generates a prediction image of a PU or sub-block using the input prediction parameter and the read reference picture (reference picture block) in the prediction mode indicated by the prediction mode predMode.
  • the inter prediction image generation unit 309 uses the inter prediction parameter input from the inter prediction parameter decoding unit 303 and the read reference picture (reference picture block). To generate a prediction image of a PU or sub-block.
  • the inter prediction image generation unit 309 performs a motion vector on the basis of the decoding target PU from the reference picture indicated by the reference picture index refIdxLX for a reference picture list (L0 list or L1 list) having a prediction list use flag predFlagLX of 1.
  • the reference picture block at the position indicated by mvLX is read from the reference picture memory 306.
  • the inter prediction image generation unit 309 performs prediction based on the read reference picture block to generate a prediction image of the PU.
  • the inter prediction image generation unit 309 outputs the generated prediction image of the PU to the addition unit 312.
  • a reference picture block is a set of pixels on a reference picture (usually called a block because it is a rectangle), and is an area that is referred to in order to generate a predicted image of a PU or sub-block.
  • the intra predicted image generation unit 310 When the prediction mode predMode indicates the intra prediction mode, the intra predicted image generation unit 310 performs intra prediction using the intra prediction parameter input from the intra prediction parameter decoding unit 304 and the read reference picture. Specifically, the intra-predicted image generation unit 310 selects a neighboring block that is a picture to be decoded and is within a predetermined range from the block to be decoded among the blocks (PU) that have already been decoded (PU). Read from frame memory and reference memory to internal memory (internal reference memory).
  • the reference picture memory 306 includes a frame memory for holding a decoded image, a memory for holding only a partial image for intra prediction and loop filter (column memory, line memory), and a memory for holding a partial image inside a CTU block. It may be divided.
  • the reference memory mainly refers to a memory that holds only partial images for intra prediction and loop filter.
  • FIG. 11 is a diagram illustrating a reference memory (column memory, line memory) that stores reference pixels to be referred to in intra prediction for prediction of subsequent blocks.
  • FIG. 11A shows a reference memory for storing reference pixels for luminance components in an image decoding apparatus compliant with the 4: 2: 0 format
  • FIG. 11B shows a reference memory for storing reference pixels for color difference components.
  • (a) is a memory storing reference pixels r [-1, -1] to r [-1,2N-1] on the left side of the luminance target block
  • (a-2) is This is a memory for storing the upper reference pixels r [0, -1] to r [M-1, -1].
  • (b-1) is a memory storing reference pixels r [-1, -1] to r [-1, N-1] on the left side of the color difference target block
  • (b-2) is an upper reference pixel r [0 , -1] to r [M2-1, -1].
  • the memories (a-1) and (b-1) for storing the reference pixels on the left side of the target block store the decoded pixels of the block decoded immediately before, and are updated every time the block processing is completed. It is memory.
  • the memories (a-2) and (b-2) for storing the reference pixels on the upper side of the target block are line memories in which the decoded pixels of the block decoded before one block row are stored.
  • the column memory may hold a plurality of columns
  • the line memory may hold a plurality of lines.
  • the luminance component is stored in the width memory number * number of lines
  • the chrominance component is stored in the reference memory in the line memory of width / 2 pixels * line number.
  • the luminance component is 3840 pixels
  • the color difference component is 1920 pixels each for Cb and Cr components.
  • the reference memory includes a CTU internal reference memory including the target block and a CTU external reference memory for reference across the CTU boundary.
  • the reference is made from the CTU internal memory
  • the reference is made from the CTU external reference memory.
  • the CTU external reference memory stores the decoded pixel of the CTU block decoded one time before, stores the column memory updated every time the block processing is completed, and stores the decoded pixel of the block decoded before one CTU block row Line memory is used.
  • the internal memory is preferably a memory that can be accessed at high speed, and the contents of the reference picture memory are copied and used.
  • the predetermined range is, for example, any of the left, upper left, upper, and upper right adjacent blocks when the decoding target block sequentially moves in a so-called raster scan order, and varies depending on the intra prediction mode.
  • the raster scan order is an order in which each row is sequentially moved from the left end to the right end in each picture from the upper end to the lower end.
  • the intra-predicted image generation unit 310 performs prediction in the prediction mode indicated by the intra-prediction mode IntraPredMode for the read adjacent block, and generates a predicted image of the block.
  • the intra predicted image generation unit 310 outputs the generated predicted image of the block to the addition unit 312.
  • FIG. 14 (a) is a flowchart for explaining access to reference pixels stored in a reference memory associated with intra prediction.
  • the intra predicted image generation unit 310 reads reference pixels necessary for prediction of the target block from the reference memory, and stores them in an internal memory (not shown) of the intra predicted image generation unit 310 (S1402).
  • the intra predicted image generation unit 310 performs intra prediction using reference pixels stored in the internal memory (S1404).
  • the image decoding apparatus 31 stores the bottom line of the target block in the reference memory (S1408).
  • the image decoding device 31 checks whether or not the target block is the last block on the screen (S1410).
  • the processing proceeds to the next block (S1412), and the processing from S1402 is performed. repeat. If it is the last block (Y in S1410), the process ends.
  • the access to the reference memory is a process common to both the image encoding device 11 and the image decoding device 31, and in the description of the image encoding device 11 described later, the above image decoding device 31 is replaced with the image encoding device 11, Since the reconstruction process is simply replaced with the reconstruction process at the time of local decoding, the description is omitted.
  • the inverse quantization / inverse transform unit 311 inverse quantizes the quantized transform coefficient input from the entropy decoding unit 301, performs inverse frequency transform such as inverse DST and inverse KLT, and calculates a prediction residual signal.
  • the inverse quantization / inverse transform unit 311 outputs the calculated residual signal to the adder 312.
  • the addition unit 312 adds the prediction image of the block input from the inter prediction image generation unit 309 or the intra prediction image generation unit 310 and the residual signal input from the inverse quantization / inverse conversion unit 311 for each pixel, A decoded image of the block is generated.
  • the adding unit 312 outputs the generated decoded image of the block to at least one of the deblocking filter 313, the SAO (sample adaptive offset) unit 314, or the ALF 315.
  • the deblocking filter 313 performs deblocking processing on the decoded image of the block that is the output of the addition unit, and outputs the result as a deblocked decoded image.
  • the SAO unit 314 performs an offset filter process using the offset decoded from the encoded data Te on the output image of the adder 312 or the deblocked decoded image output from the deblocking filter 313, and the SAO Output as decoded image.
  • the ALF 315 performs an adaptive filter process using the ALF parameter ALFP decoded from the encoded data Te on the output image of the adding unit 312, the deblocked decoded image, or the SAO decoded image, and the ALF decoded image Is generated.
  • the ALF-decoded decoded image is output to the outside as a decoded image Td, and is stored in the reference picture memory 306 in association with the POC information decoded from the encoded data Te by the entropy decoding unit 301.
  • FIG. 14 (b) is a flowchart for explaining access to reference pixels stored in a reference memory associated with a loop filter.
  • the loop filter 305 reads reference pixels necessary for prediction of the target block from the reference memory, and stores them in an internal memory (not shown) of the loop filter 305 (S1414).
  • the loop filter 305 performs loop filter processing such as deblocking filter, SAO, and ALF using the reference pixel stored in the internal memory (S1416).
  • the image decoding device 31 (or the loop filter 305) stores a predetermined number of lines from the first line of the target block in the reference memory (S1420).
  • the image decoding device 31 checks whether the target block is the last block on the screen (S1422).
  • the process proceeds to the next block (S1424), and the processing from S1414 is performed. repeat. If it is the last block (Y in S1422), the process ends.
  • the access to the reference memory is a process common to both the image encoding device 11 and the image decoding device 31, and in the description of the image encoding device 11 described later, the above image decoding device 31 is replaced with the image encoding device 11, Since only the loop filter 305 is replaced with the loop filter 107, the description is omitted.
  • FIG. 6 is a block diagram illustrating a configuration of the image encoding device 11 according to the present embodiment.
  • the image encoding device 11 includes a predicted image generation unit 101, a subtraction unit 102, a transform / quantization unit 103, an entropy encoding unit 104, an inverse quantization / inverse transform unit 105, an addition unit 106, a loop filter 107, and a prediction parameter memory.
  • the prediction parameter encoding unit 111 includes an inter prediction parameter encoding unit 112 and an intra prediction parameter encoding unit 113. Note that the image encoding device 11 may be configured not to include the loop filter 107.
  • the predicted image generation unit 101 generates, for each picture of the image T, a predicted image P of the prediction unit PU for each encoding unit CU that is an area obtained by dividing the picture.
  • the predicted image generation unit 101 reads a decoded block from the reference picture memory 109 based on the prediction parameter input from the prediction parameter encoding unit 111.
  • the prediction parameter input from the prediction parameter encoding unit 111 is, for example, a motion vector in the case of inter prediction.
  • the predicted image generation unit 101 reads a block at a position on the reference image indicated by the motion vector with the target PU as a starting point.
  • the prediction parameter is, for example, an intra prediction mode.
  • a pixel value of an adjacent block (PU) used in the intra prediction mode is read from the reference picture memory 109, and a predicted image P of the block is generated.
  • the prediction image generation unit 101 generates a prediction image P of a block using one prediction method among a plurality of prediction methods for the read reference picture block.
  • the predicted image generation unit 101 outputs the generated predicted image P of the block to the subtraction unit 102.
  • the predicted image generation unit 101 includes an inter predicted image generation unit 309 and an intra predicted image generation unit 310 as in the case of the predicted image generation unit 308 described above, and the description thereof is omitted here because it performs the same operation.
  • the predicted image generation unit 101 generates a predicted image P of PU (block) based on the pixel value of the reference block read from the reference picture memory, using the parameter input from the prediction parameter encoding unit.
  • the predicted image generated by the predicted image generation unit 101 is output to the subtraction unit 102 and the addition unit 106.
  • the subtraction unit 102 subtracts the signal value of the predicted image P of the PU input from the predicted image generation unit 101 from the pixel value of the corresponding PU of the image T, and generates a residual signal.
  • the subtraction unit 102 outputs the generated residual signal to the transform / quantization unit 103.
  • the transform / quantization unit 103 performs frequency transform on the prediction residual signal input from the subtraction unit 102, quantizes the calculated transform coefficient, and obtains a quantized coefficient.
  • the transform / quantization unit 103 outputs the obtained quantization coefficient to the entropy coding unit 104 and the inverse quantization / inverse transform unit 105.
  • the entropy encoding unit 104 receives a quantization coefficient from the transform / quantization unit 103 and receives a prediction parameter from the prediction parameter encoding unit 111.
  • the input prediction parameters include, for example, codes such as a reference picture index ref_Idx_lX, a prediction vector index mvp_LX_idx, a difference vector mvdLX, a prediction mode pred_mode_flag, and a merge index merge_idx.
  • the entropy encoding unit 104 entropy-encodes the input division information, prediction parameters, quantization transform coefficients, and the like to generate an encoded stream Te, and outputs the generated encoded stream Te to the outside.
  • the inverse quantization / inverse transform unit 105 is the same as the inverse quantization / inverse transform unit 311 (FIG. 5) in the image decoding device, and inversely quantizes the quantization coefficient input from the transform / quantization unit 103. Find the conversion factor.
  • the inverse quantization / inverse transform unit 105 performs inverse transform on the obtained transform coefficient to calculate a residual signal.
  • the inverse quantization / inverse transform unit 105 outputs the calculated residual signal to the addition unit 106.
  • the addition unit 106 adds the signal value of the prediction image P of the PU (block) input from the prediction image generation unit 101 and the signal value of the residual signal input from the inverse quantization / inverse conversion unit 105 for each pixel. Thus, a decoded image is generated.
  • the adding unit 106 stores the generated decoded image in the reference picture memory 109.
  • the loop filter 107 performs a deblocking filter 114, a sample adaptive offset (SAO) 115, and an adaptive loop filter (ALF) 116 on the decoded image generated by the adding unit 106.
  • the loop filter 107 does not necessarily include the above three types of filters, and may have a configuration including only the deblocking filter 114, for example.
  • the prediction parameter memory 108 stores the prediction parameter generated by the encoding parameter determination unit 110 at a predetermined position for each encoding target picture and CU.
  • the reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined position for each picture to be encoded and each CU.
  • the encoding parameter determination unit 110 selects one set from among a plurality of sets of encoding parameters.
  • the encoding parameter is a parameter to be encoded that is generated in association with the above-described QTBT division parameter and prediction parameter.
  • the predicted image generation unit 101 generates a predicted image P of the PU using each of these encoding parameter sets.
  • the encoding parameter determination unit 110 calculates an RD cost value indicating the amount of information and the encoding error for each of a plurality of sets.
  • the RD cost value is, for example, the sum of a code amount and a square error multiplied by a coefficient ⁇ .
  • the code amount is the information amount of the encoded stream Te obtained by entropy encoding the quantization residual and the encoding parameter.
  • the square error is the sum between pixels regarding the square value of the residual value of the residual signal calculated by the subtracting unit 102.
  • the coefficient ⁇ is a real number larger than a preset zero.
  • the encoding parameter determination unit 110 selects a set of encoding parameters that minimizes the calculated RD cost value.
  • the entropy encoding unit 104 outputs the selected set of encoding parameters to the outside as the encoded stream Te, and does not output the set of unselected encoding parameters.
  • the encoding parameter determination unit 110 stores the determined encoding parameter in the prediction parameter memory 108.
  • the prediction parameter encoding unit 111 derives a format for encoding from the parameters input from the encoding parameter determination unit 110 and outputs the format to the entropy encoding unit 104. Deriving the format for encoding is, for example, deriving a difference vector from a motion vector and a prediction vector. Also, the prediction parameter encoding unit 111 derives parameters necessary for generating a prediction image from the parameters input from the encoding parameter determination unit 110 and outputs the parameters to the prediction image generation unit 101.
  • the parameter necessary for generating the predicted image is, for example, a motion vector in units of sub-blocks.
  • the inter prediction parameter encoding unit 112 derives an inter prediction parameter such as a difference vector based on the prediction parameter input from the encoding parameter determination unit 110.
  • the inter prediction parameter encoding unit 112 is partially the same as the configuration in which the inter prediction parameter decoding unit 303 derives the inter prediction parameters as a configuration for deriving parameters necessary for generating the prediction image to be output to the prediction image generating unit 101. Includes configuration.
  • the intra prediction parameter encoding unit 113 has a configuration in which the intra prediction parameter decoding unit 304 derives an intra prediction parameter as a configuration for deriving a prediction parameter necessary for generating a prediction image to be output to the prediction image generating unit 101. Some parts have the same configuration.
  • the intra prediction parameter encoding unit 113 derives a format (for example, MPM_idx, rem_intra_luma_pred_mode) for encoding from the intra prediction mode IntraPredMode input from the encoding parameter determination unit 110.
  • a format for example, MPM_idx, rem_intra_luma_pred_mode
  • the memory required for the 4: 4: 4 format and the 4: 2: 0 format has the same luminance component, but the chrominance component is 4: 4: 4 compared to the 4: 2: 0 format.
  • the four formats require twice as much memory vertically and horizontally.
  • the memory (column) for storing the reference pixel on the left side of the target block only needs to be held for the height of 1 CTU. Double the height is not a big problem.
  • the line memory for storing the reference pixels on the upper side of the target block needs to be a size proportional to the width of the image, so that the cost is greatly affected.
  • the decoded pixel value x [m, N ⁇ 1 ] Is stored in the reference memory
  • only the odd-numbered decoded pixel x [2m + 1, N-1] is stored in the bottom line of the target block.
  • the odd-numbered position [2m + 1] is referred to.
  • the read-out reference pixel r [2m + 1, -1] at the odd-numbered position is used to interpolate the reference pixel r [2m, -1] at the even-numbered position.
  • the reference pixel r [2m + 1, -1] read from the reference memory, the interpolated r [2m, -1], and the reference pixel r [-1, n] on the left side of the target block are expressed by (Expression 1) to ( An intra prediction value is calculated by substituting into equation (3).
  • the following description will be made using two types of reference memories, a two-dimensional array refImg [,] and a one-dimensional array z [].
  • the image encoding device stores only odd-numbered pixels, interpolates even-numbered pixels from odd-numbered pixels, and performs intra prediction using both. There is no mismatch between the decoding devices.
  • FIG. 17 (a) is a flowchart illustrating the above operation.
  • S1404, S1406, S1410, and S1412 are the same operations as in FIG.
  • xBlk and yBlk are the upper left coordinates of the target block.
  • the reference memory refImg is an array having memories only at odd positions.
  • the intra-predicted image generation unit 310 interpolates even-numbered reference pixels using odd-numbered reference pixels in the internal memory (S1603). For example, an average value can be used as an interpolation method.
  • r [2m, -1] (r [2m + 1, -1] + r [2m-1, -1] +1) >> 1 Intra prediction is performed using the reference pixel read from the reference memory and the reference pixel generated by interpolation (S1404). After the target block reconstruction process (S1406) is completed, the image encoding device 11 or the image decoding device 31 reads odd-numbered decoded pixels (x [2m in FIG. 16 (a)) on the bottom line of the target block. + 1, N-1]) is stored in the reference memory refImg or Z (S1608).
  • 4: 2: 0 format encoding is performed by storing pixels with 1/2 the number of pixels in the horizontal direction as reference pixels for intra prediction, and generating the remaining 1/2 by interpolation.
  • the 4: 4: 4 format encoded data can be reproduced by an image decoding apparatus having a reference memory for decoding data as a line memory.
  • there is no effect of reducing the column memory or the frame memory among the reference memories but there is no particular problem because the size of the column memory is small and the frame memory is inexpensive.
  • Modification 1 In the first embodiment, after (local) decoding, pixels at odd positions or even positions in the bottom line of the color difference component block are stored in the reference memory. In Modification 1, an example will be described in which color difference components at positions different from those in Embodiment 1 are stored in the reference memory.
  • the decoded pixel value x [m, N-1] of the internal memory is stored in the reference memory
  • the decoded pixel x at the position shown in FIG. Store only [4m, N-1] and x [4m + 3, N-1].
  • r [4m, -1] z [xBlk / 2 + m]
  • r [4m + 3, -1] z [xBlk / 2 + m + 1]
  • the pixels r [4m + 1, -1] and r [4m + 2, -1] are interpolated using the reference pixels r [4m, -1] and r [4m + 3, -1].
  • Modification 2 In the first embodiment, an example in which an average value is used as an interpolation method for pixels not stored in the reference memory has been described. In Modification 2, other interpolation methods will be described.
  • Fig. 19 (a) is an example of copying the even-numbered pixel value r [2m, -1] from the odd-numbered pixel.
  • ref [2N + 2m + 1] ref [2N + 2m] This corresponds to the following of a two-dimensional memory.
  • FIG. 19B is a configuration example in which the pixel value ref [2N + 2m] that is not referred to from the reference memory is interpolated with the average value of adjacent pixels, as in the first embodiment.
  • interpolation (average) is as follows.
  • L / 2 r [2m, -1] ⁇ w (i + L / 2) * r [2 (m + i) -1, -1] +0.5 (even-numbered pixels are not stored)
  • w (i) is a weighting coefficient.
  • ref [2N + 2m-1] z [xBlk / 2 + m]
  • ref [2N + 4m] refImg [xBlk + 4m, yBlk-1]
  • ref [2N + 4m + 3] refImg [xBlk + 4m + 3, yBlk-1]
  • Modification 3 is an example in which the image processing apparatus and the image decoding apparatus have a loop filter configuration, and the reference memory for the loop filter and the reference memory for the intra prediction are used in common. As described with reference to FIG. 12 and the loop filter, at least two lines of reference memory are required to implement the loop filter. As shown in Fig. 20, if the reference memory for two lines for 4: 2: 0 format (Fig. 20 (a)) is used, even for color difference components, one line for 4: 4: 4 format is used. Reference pixels can be stored (FIG. 20 (b)). In this case, it is not necessary to change the intra prediction process. However, since the loop filter and the reference memory are used in common, it is necessary to change the reference pixels used in the loop filter to one line.
  • FIG. 26 is a diagram showing a CTU and its internal CU.
  • the solid rectangle is CTU
  • the dashed rectangle is CU.
  • CU301 can access a pixel of CU300 that is a CU of the same CTU3 as an upper reference pixel.
  • the CU 300 cannot access the pixel of the CU 12 that is a CU of a different CTU 1 as the upper pixel.
  • intra prediction that refers to the pixels of the upper CU is turned off at the CTU boundary, and intra prediction that refers to the pixels of the upper CU is turned on at the CU boundary inside the CTU. That is, at the CTU boundary, intra prediction refers only to the pixel of the left CU.
  • FIG. 27 is a flowchart showing the operation of the fourth modification.
  • the image encoding device 11 or the image decoding device 31 determines whether or not the CU boundary is a CTU boundary (S2702).
  • the image encoding device 11 or the image decoding device 31 proceeds to S2706 if it is a CTU boundary (Y in S2702), and proceeds to S2704 if it is not a CTU boundary (N in S2702). If it is not a CTU boundary, the image encoding device 11 or the image decoding device 31 turns on intra prediction referring to the pixels of the normal upper CU and left CU (S2704). If it is a CTU boundary, the image encoding device 11 or the image decoding device 31 uses a prediction mode that refers to only the left reference pixel for intra prediction (S2706).
  • the 4: 4: 4 format encoded data can be decoded by the image decoding apparatus having the reference memory for decoding the 4: 2: 0 format encoded data.
  • the fifth modification is another example of the first embodiment and the first and second modifications, in which the reference pixel to be referred to in the intra prediction of the color difference component is defined regardless of the size of the reference memory and the storage method.
  • the pixel position in the horizontal direction is expressed in the same coordinate system as the luminance component (the luminance coordinate system in FIG. 10B). Therefore, in the 4: 2: 0 format, the pixel position of the color difference component is represented as [2m, 2n], and in the 4: 4: 4 format, the pixel position of the color difference component is represented as [m, n].
  • r [2m ⁇ 1, ⁇ 1] at odd positions shown in FIG. 10B is referred to as the horizontal reference pixel located above the block. Then, r [2m, -1] is interpolated by any one of the method of the first embodiment, the first modification, and the second modification.
  • the reference pixel in the horizontal direction may be calculated by referring to the even-numbered position r [2m, -1] and interpolation of the odd-numbered position r [2m + 1, -1].
  • r [4m + 1, -1] and r [4m + 2, -1] may be calculated by interpolation with reference to r [4m, -1] and r [4m + 3, -1]. .
  • the reference pixel of the color difference component from the reference memory is stored in the internal memory in order to apply a loop filter to the CTU block boundary of the encoded data in 4: 4: 4 format.
  • the pixel p [2m, 0] contacting the block boundary is not only referred to when filtering, but also filters p [2m, 0] itself to change the pixel value.
  • the CTU block has a memory of a size necessary for storing color difference components.
  • the upper two lines of the block boundary are used.
  • the upper one line of the block boundary refers to the upper one line of the block boundary.
  • FIG. 22 (a) is the same as the situation where the pixel p [m, 0] on the bottom line of the block P is read from the reference memory and stored in FIG. 21 (c).
  • the pixel p [m, 1] in the second line from the bottom of the block P indicated by the broken line is not referred from the reference memory.
  • the second horizontal boundary line of the block P is derived by copying the value of the reference pixel p [m, 0] of the bottom line of the same block.
  • the deblocking filter and the SAO EO can filter the pixels on the two lines of the block P and Q boundaries as shown in FIG. 22 (b).
  • FIG. 17 (b) is a flowchart for explaining the above operation.
  • S1416, S1422, and S1424 are the same operations as in FIG.
  • the loop filter 107 or 305 reads out a reference pixel (for example, z [xBlk + m] in FIG. 21B) necessary for prediction of the target block from the reference memory, and stores the internal memory (not shown) of the loop filter 107 or 305.
  • p [m, 0]) S1714).
  • This method is the same as the conventional process except that the process of copying one line of the block P read from the reference memory and stored in the internal memory to the internal memory is increased, and can be easily changed.
  • Modification 6 In the deblocking filter of the second exemplary embodiment, the example in which filtering is performed on the pixels p [m, 0] and q [m, 0] at the block boundary as illustrated in FIG. In Modification 6, an example in which filtering is performed on a pixel q [m, 0] at a block boundary will be described.
  • q [m, 0] is calculated by the following formula.
  • q [m, 0] (a1 * q [m, 0] + a2 * p [m, 0] + a3 * q [m, 1] +4)
  • 3 a1 + a2 + a3 8
  • Modification 7 In the second embodiment, the deblocking filter and the SAO EO processing in the case where all pixels in the lowermost line of the upper block P of the target block Q are referred from the reference memory have been described.
  • the pixel q [2m, 0] at the even position is corrected using the deblocked pixel at the odd position.
  • ⁇ q Clip3 (-tc, tc, (q [2m-1,0]-2 * q [2m, 0] + q [2m + 1,0] +4) >> 3)
  • q [2m, 0] Clip1 (q [2m, 0] + ⁇ q)
  • the correction value derived in the deblocking process at the odd-numbered position may be used for the correction process at the even-numbered position.
  • Clip3 (-tc, tc, (((q [2m-1,0] -p [2m-1,0]) ⁇ 2) + p [2m-1,1] -q [2m-1, 1] +4) >> 3)
  • q [2m, 0] Clip1 (q [2m, 0] - ⁇ )
  • the odd positions may be 2m + 1 instead of 2m-1. Further, the following formula using both 2m + 1 and 2m-1 as odd positions may be used.
  • the reference pixel of the color difference component from the reference memory is stored in the internal memory in order to apply ALF to the CTU block boundary in the 4: 4: 4 format encoded data.
  • the pixels p [2m, 0] and p [2m, 1] that touch the block boundary are not only referenced when filtering, but also filter p [2m, 0] and p [2m, 1] themselves. Multiply and change the pixel value.
  • the CTU block has a memory of a size necessary for storing color difference components.
  • the image encoding device and the image decoding device internally store the upper four lines of the block boundary.
  • the upper two lines of the block boundary are referenced. That is, for example, as shown in FIG. 28 (b), when the decoded pixels of the internal memory are stored in the reference memory, the pixels in the bottom two lines of the block P in the 4: 4: 4 format are stored in the horizontal direction.
  • Store in 4 lines of reference memory for color difference components for 4: 2: 0 format which has only half the resolution.
  • four lines of line memory are held for the color difference loop filter, so this processing is possible.
  • the reference memory Z (element z [] of the array) stores the pixels of the bottom two lines of the kth block P.
  • width is the horizontal size of the image.
  • This process is equivalent to the following when described in a two-dimensional memory.
  • xBlk and yBlk are the upper left coordinates of the block Q.
  • xBlk and yBlk are the upper left coordinates of the block Q.
  • the color difference component when ALF is performed, the color difference component requires a reference memory for 4 lines.
  • P [m, 2] indicated by diagonal lines in FIG. 24 (a) is a pixel on the bottom line in the block P in which the conventional ALF can be performed using only the pixels inside the block P. Pixels indicated by diagonal lines are filtering target pixels, and white pixels are reference pixels. In addition, the boundaries between the blocks P and Q in the figure indicated by bold lines are the boundaries of the CTU block. Normally, p [m, 1] should refer to the pixel of block Q as shown in FIG. Then, up to q [m, 1] shown in FIG. 12 (g), ALF cannot be performed only with the pixels of the own block. However, as shown in FIGS.
  • the memory to be referenced can be reduced to two lines by changing the ALF filter shape from 5 ⁇ 5 to 5 ⁇ 3 at the CTU block boundary.
  • ALF can be performed only on pixels in the block P for p [m, 1] as shown in FIG.
  • FIG. 24 (e) ALF can be performed on q [m, 1] using only the pixels in the block P.
  • only p [m, 0] in FIG. 24 (c) and q [m, 0] in (d) cannot perform ALF with only pixels in the own block.
  • the reference memory required at this time is two lines as shown in FIGS. 24 (c) and (d).
  • the ALF can be expressed as follows.
  • p [m, n] f0 * p [m, n + 2] + f1 * p [m-1, n + 1] + f2 * p [m, n + 1] + f3 * p [m + 1, n + 1] + f4 * p [m-2, n] + f5 * p [m-1, n] + f6 * p [m, n] + f7 * p [m + 1, n] + f8 * p [m + 2, n] + f9 * p [m-1, n-1] + f10 * p [m, n-1] + f11 * p [m + 1, n-1] + f12 * p [m , n-2]
  • q [x, y] is calculated by replacing p [x, y] with q [x, y].
  • p [m, n] g0 * p [m-1, n + 1] + g1 * p [m, n + 1] + g2 * p [m + 1, n + 1] + g3 * p [m- 2, n] + g4 * p [m-1, n] + g5 * p [m, n] + g6 * p [m + 1, n] + g7 * p [m + 2, n] + g8 * q [m-1, n] + g9 * q [m, n] + g10 * q [m + 1, n] q [x, y] is calculated by replacing p [x, y] with q [x, y].
  • the 4: 4: 0 format-compliant image decoding device can decode the encoded data in the 4: 4: 4 format.
  • the reference memory for four lines in 4: 2: 0 format is the same size as the memory for two lines in 4: 4: 4 format. Therefore, when the ALF and the reference memory are shared, the intra prediction, deblocking filter, and SAO EO can perform normal processing.
  • Modification 8 describes a technique for turning off a loop filter that refers to a pixel of an upper CU at a CTU boundary and turning on a loop filter at a CU boundary inside the CTU.
  • FIG. 27 is a flowchart showing the operation of the modification 8.
  • the image encoding device 11 or the image decoding device 31 determines whether or not the CU boundary is a CTU boundary (S2702).
  • the image encoding device 11 or the image decoding device 31 proceeds to S2706 if it is a CTU boundary (Y in S2702), and proceeds to S2704 if it is not a CTU boundary (N in S2702). If it is not a CTU boundary, the image encoding device 11 or the image decoding device 31 turns on the loop filter (S2704). If it is a CTU boundary, the image encoding device 11 or the image decoding device 31 turns off the loop filter (S2706).
  • the loop filter can be implemented without using the pixels stored in the reference memory. Therefore, the encoded data having the 4: 4: 4 format can be decoded by the image decoding apparatus having the line memory for decoding the encoded data having the 4: 2: 0 format.
  • An image encoding apparatus includes a unit that divides one screen of the input moving image into blocks each including a plurality of pixels, and a pixel (reference pixel) of an adjacent block of the target block in units of the block.
  • the reference pixel of the upper block refers to one pixel (first reference pixel) for every two pixels of the target block, and the remaining one pixel (second reference)
  • the original is derived by interpolating from the first reference pixel
  • the prediction means refers to the first reference pixel and the second reference pixel, and the intra predicted value of each pixel of the color difference component of the target block Is calculated.
  • the first reference pixel is a pixel at an odd-numbered pixel position
  • the second reference pixel is a pixel at an even-numbered pixel position
  • the first reference pixel is a pixel at an even pixel position
  • the second reference pixel is a pixel at an odd pixel position
  • An image decoding apparatus includes a unit that performs variable-length decoding of encoded data and outputs a quantized transform coefficient using a block including a plurality of pixels as a processing unit, and dequantizes the quantized transform coefficient Means for inversely transforming and outputting a second prediction error; and prediction means for calculating a prediction pixel value by performing intra prediction with reference to a pixel (reference pixel) of an adjacent block of the target block in units of the block And a means for adding the prediction pixel value and the prediction error, wherein the prediction means refers to a pixel of a left block of a target block on which intra prediction is performed and a pixel of an upper block, and a color difference component
  • the reference pixel of the upper block refers to one pixel (first reference pixel) for every two pixels of the target block, and the remaining one pixel (second reference pixel) is derived from the first reference pixel.
  • the prediction means calculates an intra prediction value of each pixel of the color difference component of the target block with reference to the first reference pixel and the second reference pixel.
  • the first reference pixel is a pixel at an odd-numbered pixel position
  • the second reference pixel is a pixel at an even-numbered pixel position.
  • the first reference pixel is a pixel at an even-numbered pixel position
  • the second reference pixel is a pixel at an odd-numbered pixel position
  • a deblocking filter device includes a memory that stores a pixel to be referred to in filtering, and a filter unit that performs a filtering process with reference to a T pixel including a reference pixel read from the memory and a filtering target pixel.
  • the color difference component reads the target pixel (first target pixel) of the T / 4 line of the upper block from the memory, and refers to the T / 4 line of the upper block that is not read from the memory
  • the pixel (third reference pixel) is derived by copying the first target pixel, and the filter means refers to the first target pixel, the third reference pixel, and the pixel of the target block, and the color difference component
  • the target pixel for filtering is calculated.
  • a rhombus filter is used as a color difference component with reference to a memory that stores a pixel to be referred to in filtering, a reference pixel that is read from the memory, and a pixel that is a filtering target pixel.
  • the filter means and the horizontal boundary between the two blocks, the color difference component reads out the pixel (first target pixel) of the S-3 line on the block boundary side from the memory among the pixels of the upper block, and the filter means Of the pixels in the block that touch the horizontal boundary, the SxS rhombus filter is applied from the block boundary to the (S / 2 + 1) line, and the Sx (S-2) rhombus from the block boundary to the S / 2 line. Filtering the color difference component by applying a shape filter is characterized.
  • the block when the block is a coding unit (CU), the above process is not performed, and when the block is a coding tree unit (CTU), The above processing is performed.
  • CU coding unit
  • CTU coding tree unit
  • An image decoding apparatus includes a unit that performs variable-length decoding of encoded data and outputs a quantized transform coefficient using a block including a plurality of pixels as a processing unit, and dequantizes the quantized transform coefficient Means for inversely transforming and outputting a second prediction error; and prediction means for calculating a prediction pixel value by performing intra prediction with reference to a pixel (reference pixel) of an adjacent block of the target block in units of the block And a means for deriving a decoded image by adding the prediction pixel value and the prediction error, and a means for filtering the decoded image, and in the prediction means or filtering means, the block boundary is a CU boundary It is characterized in that different processing is performed depending on the CTU boundary.
  • An image encoding apparatus includes a unit that divides one screen of the input moving image into blocks each including a plurality of pixels, and a pixel (reference pixel) of an adjacent block of the target block in units of the block
  • the prediction means for performing the intra prediction and calculating the prediction pixel value, the means for subtracting the prediction pixel value from the input moving image to calculate the first prediction error, the conversion of the prediction error, and the quantum Means for outputting a quantized transform coefficient, means for variable-length encoding the quantized transform coefficient, means for dequantizing and inversely transforming the quantized transform coefficient, and outputting a second prediction error;
  • the block boundary is a CU boundary. Which comprises carrying out different processing in the case that the CTU boundary.
  • a part of the image encoding device 11 and the image decoding device 31 in the above-described embodiment for example, the entropy decoding unit 301, the prediction parameter decoding unit 302, the loop filter 305, the predicted image generation unit 308, the inverse quantization / inverse transformation.
  • the prediction parameter encoding unit 111 may be realized by a computer.
  • the program for realizing the control function may be recorded on a computer-readable recording medium, and the program recorded on the recording medium may be read by a computer system and executed.
  • the “computer system” is a computer system built in either the image encoding device 11 or the image decoding device 31 and includes hardware such as an OS and peripheral devices.
  • the “computer-readable recording medium” refers to a storage device such as a portable medium such as a flexible disk, a magneto-optical disk, a ROM, a CD-ROM, or a hard disk built in a computer system.
  • the “computer-readable recording medium” is a medium that dynamically holds a program for a short time, such as a communication line when transmitting a program via a network such as the Internet or a communication line such as a telephone line,
  • a volatile memory inside a computer system serving as a server or a client may be included and a program that holds a program for a certain period of time.
  • the program may be a program for realizing a part of the functions described above, and may be a program capable of realizing the functions described above in combination with a program already recorded in a computer system.
  • part or all of the image encoding device 11 and the image decoding device 31 in the above-described embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration).
  • LSI Large Scale Integration
  • Each functional block of the image encoding device 11 and the image decoding device 31 may be individually made into a processor, or a part or all of them may be integrated into a processor.
  • the method of circuit integration is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Further, in the case where an integrated circuit technology that replaces LSI appears due to progress in semiconductor technology, an integrated circuit based on the technology may be used.
  • the image encoding device 11 and the image decoding device 31 described above can be used by being mounted on various devices that perform transmission, reception, recording, and reproduction of moving images.
  • the moving image may be a natural moving image captured by a camera or the like, or may be an artificial moving image (including CG and GUI) generated by a computer or the like.
  • FIG. 8 is a block diagram showing a configuration of a transmission device PROD_A in which the image encoding device 11 is mounted.
  • the transmission apparatus PROD_A modulates a carrier wave with an encoding unit PROD_A1 that obtains encoded data by encoding a moving image, and with the encoded data obtained by the encoding unit PROD_A1.
  • a modulation unit PROD_A2 that obtains a modulation signal and a transmission unit PROD_A3 that transmits the modulation signal obtained by the modulation unit PROD_A2 are provided.
  • the above-described image encoding device 11 is used as the encoding unit PROD_A1.
  • Transmission device PROD_A as a source of moving images to be input to the encoding unit PROD_A1, a camera PROD_A4 that captures moving images, a recording medium PROD_A5 that records moving images, an input terminal PROD_A6 for inputting moving images from the outside, and An image processing unit A7 that generates or processes an image may be further provided.
  • FIG. 8A illustrates a configuration in which the transmission apparatus PROD_A includes all of these, but some of them may be omitted.
  • the recording medium PROD_A5 may be a recording of a non-encoded moving image, or a recording of a moving image encoded by a recording encoding scheme different from the transmission encoding scheme. It may be a thing. In the latter case, a decoding unit (not shown) for decoding the encoded data read from the recording medium PROD_A5 in accordance with the recording encoding method may be interposed between the recording medium PROD_A5 and the encoding unit PROD_A1.
  • FIG. 8 is a block diagram showing a configuration of a receiving device PROD_B in which the image decoding device 31 is mounted.
  • the receiving device PROD_B includes a receiving unit PROD_B1 that receives the modulated signal, a demodulating unit PROD_B2 that obtains encoded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a demodulator.
  • a decoding unit PROD_B3 that obtains a moving image by decoding the encoded data obtained by the unit PROD_B2.
  • the above-described image decoding device 31 is used as the decoding unit PROD_B3.
  • the receiving device PROD_B is a display destination PROD_B4 for displaying a moving image, a recording medium PROD_B5 for recording a moving image, and an output terminal for outputting the moving image to the outside as a supply destination of the moving image output by the decoding unit PROD_B3 PROD_B6 may be further provided.
  • FIG. 8B illustrates a configuration in which all of these are provided in the receiving device PROD_B, but some of them may be omitted.
  • the recording medium PROD_B5 may be used for recording a non-encoded moving image, or is encoded using a recording encoding method different from the transmission encoding method. May be. In the latter case, an encoding unit (not shown) for encoding the moving image acquired from the decoding unit PROD_B3 according to the recording encoding method may be interposed between the decoding unit PROD_B3 and the recording medium PROD_B5.
  • the transmission medium for transmitting the modulation signal may be wireless or wired.
  • the transmission mode for transmitting the modulated signal may be broadcasting (here, a transmission mode in which the transmission destination is not specified in advance) or communication (here, transmission in which the transmission destination is specified in advance). Refers to the embodiment). That is, the transmission of the modulation signal may be realized by any of wireless broadcasting, wired broadcasting, wireless communication, and wired communication.
  • a terrestrial digital broadcast broadcasting station (broadcasting equipment, etc.) / Receiving station (such as a television receiver) is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by wireless broadcasting.
  • a broadcasting station (such as broadcasting equipment) / receiving station (such as a television receiver) of cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives a modulated signal by cable broadcasting.
  • a server workstation, etc.
  • Client television receiver, personal computer, smartphone, etc.
  • VOD Video On Demand
  • video sharing service using the Internet is a transmission device that transmits and receives modulated signals via communication.
  • PROD_A / receiving device PROD_B normally, either a wireless or wired transmission medium is used in a LAN, and a wired transmission medium is used in a WAN.
  • the personal computer includes a desktop PC, a laptop PC, and a tablet PC.
  • the smartphone also includes a multi-function mobile phone terminal.
  • the video sharing service client has a function of encoding a moving image captured by the camera and uploading it to the server. That is, the client of the video sharing service functions as both the transmission device PROD_A and the reception device PROD_B.
  • FIG. 9A is a block diagram showing a configuration of a recording apparatus PROD_C equipped with the image encoding device 11 described above.
  • the recording apparatus PROD_C includes an encoding unit PROD_C1 that obtains encoded data by encoding a moving image, and the encoded data obtained by the encoding unit PROD_C1 on a recording medium PROD_M.
  • the above-described image encoding device 11 is used as the encoding unit PROD_C1.
  • the recording medium PROD_M may be of a type built into the recording device PROD_C, such as (1) HDD (Hard Disk Drive) or SSD (Solid State Drive), or (2) SD memory. It may be of the type connected to the recording device PROD_C, such as a card or USB (Universal Serial Bus) flash memory, or (3) DVD (Digital Versatile Disc) or BD (Blu-ray Disc: registration) Or a drive device (not shown) built in the recording device PROD_C.
  • HDD Hard Disk Drive
  • SSD Solid State Drive
  • SD memory such as a card or USB (Universal Serial Bus) flash memory, or (3) DVD (Digital Versatile Disc) or BD (Blu-ray Disc: registration) Or a drive device (not shown) built in the recording device PROD_C.
  • the recording device PROD_C is a camera PROD_C3 that captures moving images as a source of moving images to be input to the encoding unit PROD_C1, an input terminal PROD_C4 for inputting moving images from the outside, and a reception for receiving moving images
  • a unit PROD_C5 and an image processing unit PROD_C6 for generating or processing an image may be further provided.
  • FIG. 9A illustrates a configuration in which the recording apparatus PROD_C includes all of these, but some of them may be omitted.
  • the receiving unit PROD_C5 may receive a non-encoded moving image, or may receive encoded data encoded by a transmission encoding scheme different from the recording encoding scheme. You may do. In the latter case, a transmission decoding unit (not shown) that decodes encoded data encoded by the transmission encoding method may be interposed between the reception unit PROD_C5 and the encoding unit PROD_C1.
  • Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, an HDD (Hard Disk Drive) recorder, and the like (in this case, the input terminal PROD_C4 or the receiver PROD_C5 is a main source of moving images). .
  • a camcorder in this case, the camera PROD_C3 is a main source of moving images
  • a personal computer in this case, the receiving unit PROD_C5 or the image processing unit C6 is a main source of moving images
  • a smartphone this In this case, the camera PROD_C3 or the reception unit PROD_C5 is a main source of moving images
  • the like is also an example of such a recording apparatus PROD_C.
  • FIG. 9 is a block showing a configuration of a playback device PROD_D in which the above-described image decoding device 31 is mounted.
  • the playback device PROD_D reads a moving image by decoding a read unit PROD_D1 that reads encoded data written to the recording medium PROD_M and a read unit PROD_D1 that reads the encoded data. And a decoding unit PROD_D2 to obtain.
  • the above-described image decoding device 31 is used as the decoding unit PROD_D2.
  • the recording medium PROD_M may be of the type built into the playback device PROD_D, such as (1) HDD or SSD, or (2) such as an SD memory card or USB flash memory. It may be of the type connected to the playback device PROD_D, or (3) may be loaded into a drive device (not shown) built in the playback device PROD_D, such as a DVD or BD. Good.
  • the playback device PROD_D has a display unit PROD_D3 that displays a moving image as a supply destination of the moving image output by the decoding unit PROD_D2, an output terminal PROD_D4 that outputs the moving image to the outside, and a transmission unit that transmits the moving image.
  • PROD_D5 may be further provided.
  • FIG. 9B illustrates a configuration in which the playback apparatus PROD_D includes all of these, but some of them may be omitted.
  • the transmission unit PROD_D5 may transmit a non-encoded moving image, or transmits encoded data encoded by a transmission encoding scheme different from the recording encoding scheme. You may do. In the latter case, it is preferable to interpose an encoding unit (not shown) that encodes a moving image using a transmission encoding method between the decoding unit PROD_D2 and the transmission unit PROD_D5.
  • Examples of such a playback device PROD_D include a DVD player, a BD player, and an HDD player (in this case, an output terminal PROD_D4 to which a television receiver or the like is connected is a main moving image supply destination). .
  • a television receiver in this case, the display PROD_D3 is a main supply destination of moving images
  • a digital signage also referred to as an electronic signboard or an electronic bulletin board
  • the display PROD_D3 or the transmission unit PROD_D5 is the main supply of moving images
  • Desktop PC in this case, output terminal PROD_D4 or transmission unit PROD_D5 is the main video source
  • laptop or tablet PC in this case, display PROD_D3 or transmission unit PROD_D5 is video
  • a smartphone which is a main image supply destination
  • a smartphone in this case, the display PROD_D3 or the transmission unit PROD_D5 is a main moving image supply destination
  • the like are also examples of such a playback device PROD_D.
  • Each block of the image decoding device 31 and the image encoding device 11 described above may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip), or may be a CPU (Central Processing Unit). You may implement
  • IC chip integrated circuit
  • CPU Central Processing Unit
  • each of the above devices includes a CPU that executes instructions of a program that realizes each function, a ROM (Read Memory ⁇ ⁇ ) that stores the program, a RAM (Random Access Memory) that expands the program, the program, and various types
  • a storage device (recording medium) such as a memory for storing data is provided.
  • the object of the embodiment of the present invention is a record in which the program code (execution format program, intermediate code program, source program) of the control program for each of the above devices, which is software that realizes the above-described functions, is recorded in a computer-readable manner
  • Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks / hard disks, CD-ROMs (Compact Disc Read-Only Memory) / MO discs (Magneto-Optical discs).
  • tapes such as magnetic tapes and cassette tapes
  • magnetic disks such as floppy (registered trademark) disks / hard disks
  • CD-ROMs Compact Disc Read-Only Memory
  • MO discs Magnetic-Optical discs
  • IC cards including memory cards) ) / Cards such as optical cards, Mask ROM / EPROM (Erasable Programmable Read-Only Memory) / EEPROM (Electrically-Erasable and Programmable Read-Only Memory) / Semiconductor memories such as flash ROM, or PLD (Programmable) Logic circuits such as logic (device) and FPGA (Field Programmable Gate Array) can be used.
  • each of the above devices may be configured to be connectable to a communication network, and the program code may be supplied via the communication network.
  • the communication network is not particularly limited as long as it can transmit the program code.
  • Internet intranet, extranet, LAN (Local Area Network), ISDN (Integrated Services Digital Network), VAN (Value-Added Network), CATV (Community Area Antenna / television / Cable Television), Virtual Private Network (Virtual Private Network) Network), telephone line network, mobile communication network, satellite communication network, and the like.
  • the transmission medium constituting the communication network may be any medium that can transmit the program code, and is not limited to a specific configuration or type.
  • IEEE Institute of Electrical and Electronic Engineers 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, etc. wired such as IrDA (Infrared Data Association) or remote control , BlueTooth (registered trademark), IEEE802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (registered trademark) (Digital Living Network Alliance), mobile phone network, satellite line, digital terrestrial broadcasting network, etc. It can also be used with other radios.
  • the embodiment of 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.
  • Embodiments of the present invention are preferably applied to an image decoding apparatus that decodes encoded data in which image data is encoded, and an image encoding apparatus that generates encoded data in which image data is encoded. it can. Further, the present invention can be suitably applied to the data structure of encoded data generated by an image encoding device and referenced by the image decoding device.
  • CT information decoding unit 11 Image encoding device 20
  • CU decoding unit 31 Image decoding device 41

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)

Abstract

対象ブロックの上側ブロックの参照画素は、色差成分において対象ブロックの2画素毎に1画素(第1の参照画素)をメモリに格納し、メモリに格納しない画素(第2の参照画素)は、第1の参照画素から補間することで導出し、予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出する。

Description

動画像符号化装置及び動画像復号装置、フィルタ装置
 本発明は、画像復号装置、及び画像符号化装置に関する。
 動画像を効率的に伝送または記録するために、動画像を符号化することによって符号化データを生成する画像符号化装置、及び、当該符号化データを復号することによって復号画像を生成する画像復号装置が用いられている。
 具体的な動画像符号化方式としては、例えば、H.264/AVCやHEVC(High-Efficiency Video Coding)にて提案されている方式などが挙げられる。
 このような動画像符号化方式においては、動画像を構成する画像(ピクチャ)は、画像を分割することにより得られるスライス、スライスを分割することにより得られる符号化ツリーユニット(CTU:Coding Tree Unit)、符号化ツリーユニットを分割することで得られる符号化単位(符号化ユニット(Coding Unit:CU)と呼ばれることもある)、及び、符号化単位を分割することより得られるブロックである予測ユニット(PU)、変換ユニット(TU)からなる階層構造により管理され、CUごとに符号化/復号される。
 また、このような動画像符号化方式においては、通常、入力画像を符号化/復号することによって得られる局所復号画像に基づいて予測画像が生成され、当該予測画像を入力画像(原画像)から減算して得られる予測残差(「差分画像」または「残差画像」と呼ぶこともある)が符号化される。予測画像の生成方法としては、画面間予測(インター予測)、及び、画面内予測(イントラ予測)が挙げられる(非特許文献1)。
 また、入出力画像のフォーマットは、輝度成分に対し色差成分の解像度を1/4に落とした4:2:0フォーマットが一般的に使用されている。しかし、近年、特に業務用機器を中心として、高画質化が要求され、輝度成分と色差成分の解像度が等しい4:4:4フォーマットの使用が増えてきている。図7に4:2:0および4:4:4フォーマットの画素位置を示す。図7(a)の4:4:4フォーマットは、輝度成分(Y)、および色差成分(Cb、Cr)が、水平・垂直方向とも同じ画素位置にあり、同じ解像度を持つフォーマットである。図7(b)の4:2:0フォーマットは、色差成分の存在する画素位置が輝度成分に比べ、水平・垂直方向とも1/2、つまり解像度が半分のフォーマットである。そのため、画像の符号化あるいは復号処理で使用するツールのいくつかは、4:4:4フォーマットを扱う場合、4:2:0フォーマットで必要なメモリより大きなメモリを必要とする(非特許文献2)。
 今後、通信の伝送容量や記録メディアの蓄積容量の向上に伴い、4:4:4フォーマットの使用は業務用機器から民生用機器へ拡大すると予想される。
"Algorithm Description of Joint Exploration Test Model 5", JVET-E1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO/IEC JTC 1/SC 29/WG 11, 12-20 January 2017 ITU-T H.265(04/2015) SERIES H:AUDIOVISUAL AND MULTIMEDIA SYSTEMS Infrastructure of audiovisual services - Coding of moving video High efficiency video coding
 上記で説明したように、画像の符号化あるいは復号処理で使用するツールのいくつかは、4:4:4フォーマットを扱う場合、4:2:0フォーマットで必要なメモリより大きなメモリを必要とする。そのため、4:2:0フォーマットのみに準拠した機器では4:4:4フォーマットのコンテンツを復号することはできない。非特許文献2では、コンテンツ(符号化データ)にプロファイル情報を格納し、符号化データが4:4:4フォーマットであるか、4:2:0フォーマットであるかを画像復号装置に通知することで、あらかじめ画像復号装置が符号化データを再生できるかどうかを判断し、再生できる符号化データのみ復号することができるしくみを記載している。
 しかしながら、4:4:4フォーマットのコンテンツの普及が進むに伴い、4:2:0フォーマット準拠の機器でも4:4:4フォーマットのコンテンツを復号する要求が高まっている。4:2:0フォーマット準拠の画像復号装置で4:4:4フォーマットの符号化データを復号できない最大の原因は、参照画像を格納するラインメモリのサイズである。民生用機器は必要最小限のメモリしか持っていない場合が多いため、4:2:0フォーマット準拠の画像復号装置は4:4:4フォーマットの符号化データを復号する場合、必要量の半分しか色差成分のラインメモリを持ち合わせていない。
 そこで、本発明は、上記の課題に鑑みてなされたものであり、その目的は、4:2:0フォーマットおよび4:4:4フォーマットで復号処理に必要なラインメモリサイズを共通化し、4:4:4フォーマットの符号化データを再生する場合に必要なメモリサイズを削減することである。
 本発明の一態様に係る画像符号化装置は、前記入力動画像の1画面を複数の画素からなるブロックに分割する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記入力動画像から前記予測画素値を減算し、予測誤差を算出する手段と、前記予測誤差を変換、量子化し、量子化変換係数を出力する手段と、前記量子化変換係数を可変長符号化する手段とを備え、前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする。
 本発明の一態様に係る画像復号装置は、複数の画素からなるブロックを処理単位として、符号化データを可変長復号して量子化変換係数を出力する手段と、量子化変換係数を逆量子化、逆変換して予測誤差を出力する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記予測画素値と前記予測誤差を加算する手段とを備え、前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする。
 本発明の一態様によれば、4:2:0フォーマット準拠の画像復号装置で4:4:4フォーマットの符号化データを復号することができる。
本発明の一実施形態に係る画像伝送システムの構成を示す概略図である。 本発明の一実施形態に係る符号化ストリームのデータの階層構造を示す図である。 PU分割モードのパターンを示す図である。(a)~(h)は、それぞれ、PU分割モードが、2Nx2N、2NxN、2NxnU、2NxnD、Nx2N、nLx2N、nRx2N、及び、NxNの場合のパーティション形状について示している。 参照ピクチャ及び参照ピクチャリストの一例を示す概念図である。 本発明の一実施形態に係る画像復号装置の構成を示すブロック図である。 本発明の一実施形態に係る画像符号化装置の構成を示すブロック図である。 4:2:0および4:4:4フォーマットを説明する図である。 本発明の一実施形態に係る画像符号化装置を搭載した送信装置、及び、画像復号装置を搭載した受信装置の構成について示した図である。(a)は、画像符号化装置を搭載した送信装置を示しており、(b)は、画像復号装置を搭載した受信装置を示している。 本発明の一実施形態に係る画像符号化装置を搭載した記録装置、及び、画像復号装置を搭載した再生装置の構成について示した図である。(a)は、画像符号化装置を搭載した記録装置を示しており、(b)は、画像復号装置を搭載した再生装置を示している。 イントラ予測の対象画素と参照画素を説明する図である。 イントラ予測の参照メモリを説明する図である。 ループフィルタの対象画素と参照画素を説明する図である。 ループフィルタの対象画素と参照画素を説明する図である。 ループフィルタの参照メモリを説明する図である。 参照メモリへのアクセスを説明するフローチャートである。 4:2:0フォーマットの画像を格納する参照メモリの課題を示す図である。 イントラ予測における内部メモリと参照メモリの関係を示す図である。 イントラ予測における内部メモリと参照メモリの関係を示す図である。 本発明の一実施形態の参照メモリへのアクセスを説明するフローチャートである。 本発明の一実施形態の参照メモリに格納する画素を説明する図である。 本発明の一実施形態の参照メモリに格納されていない画素の補間方法を説明する図である。 ループフィルタの参照メモリの一例を示す図である。 本発明の一実施形態の参照メモリへの画像の格納方法を示す図である。 本発明の一実施形態のループフィルタのフィルタリング方法を説明する図である。 本発明の一実施形態のループフィルタの別のフィルタリング方法を説明する図である。 本発明の一実施形態のALFのフィルタリング方法を説明する別の図である。 ALFのフィルタ形状を示す図である。 CTUとCUの関係を説明する図である。 本発明の一実施形態の動作の一部を説明するフローチャートである。 本発明の一実施形態のALFの参照メモリを説明する図である。
  (実施形態1)
 以下、図面を参照しながら本発明の実施形態について説明する。
 図1は、本実施形態に係る画像伝送システム1の構成を示す概略図である。
 画像伝送システム1は、符号化対象画像を符号化した符号を伝送し、伝送された符号を復号し画像を表示するシステムである。画像伝送システム1は、画像符号化装置11、ネットワーク21、画像復号装置31及び画像表示装置41を含んで構成される。
 画像符号化装置11には、単一レイヤもしくは複数レイヤの画像を示す画像Tが入力される。レイヤとは、ある時間を構成するピクチャが1つ以上ある場合に、複数のピクチャを区別するために用いられる概念である。たとえば、同一ピクチャを、画質や解像度の異なる複数のレイヤで符号化するとスケーラブル符号化になり、異なる視点のピクチャを複数のレイヤで符号化するとビュースケーラブル符号化となる。複数のレイヤのピクチャ間で予測(インターレイヤ予測、インタービュー予測)を行う場合には、符号化効率が大きく向上する。また予測を行わない場合(サイマルキャスト)の場合にも、符号化データをまとめることができる。
 ネットワーク21は、画像符号化装置11が生成した符号化ストリームTeを画像復号装置31に伝送する。ネットワーク21は、インターネット(internet)、広域ネットワーク(WAN:Wide Area Network)、小規模ネットワーク(LAN:Local Area Network)またはこれらの組み合わせである。ネットワーク21は、必ずしも双方向の通信網に限らず、地上デジタル放送、衛星放送等の放送波を伝送する一方向の通信網であっても良い。また、ネットワーク21は、DVD(Digital Versatile Disc)、BD(Blu-ray Disc:登録商標)等の符号化ストリームTeを記録した記憶媒体で代替されても良い。
 画像復号装置31は、ネットワーク21が伝送した符号化ストリームTeのそれぞれを復号し、それぞれ復号した1または複数の復号画像Tdを生成する。
 画像表示装置41は、画像復号装置31が生成した1または複数の復号画像Tdの全部または一部を表示する。画像表示装置41は、例えば、液晶ディスプレイ、有機EL(Electro-luminescence)ディスプレイ等の表示デバイスを備える。また、空間スケーラブル符号化、SNRスケーラブル符号化では、画像復号装置31、画像表示装置41が高い処理能力を有する場合には、画質の高い拡張レイヤ画像を表示し、より低い処理能力しか有しない場合には、拡張レイヤほど高い処理能力、表示能力を必要としないベースレイヤ画像を表示する。
  <演算子>
 本明細書で用いる演算子を以下に記載する。
 >>は右ビットシフト、<<は左ビットシフト、&はビットワイズAND、|はビットワイズOR、|=はOR代入演算子である。
 x ? y : zは、xが真(0以外)の場合にy、xが偽(0)の場合にzをとる3項演算子である。
 Clip3(a, b, c) は、cをa以上b以下の値にクリップする関数であり、c<aの場合にはaを返し、c>bの場合にはbを返し、その他の場合にはcを返す関数である(ただし、a<=b)。
  <符号化ストリームTeの構造>
 本実施形態に係る画像符号化装置11及び画像復号装置31の詳細な説明に先立って、画像符号化装置11によって生成され、画像復号装置31によって復号される符号化ストリームTeのデータ構造について説明する。
 図2は、符号化ストリームTeにおけるデータの階層構造を示す図である。符号化ストリームTeは、例示的に、シーケンス、及びシーケンスを構成する複数のピクチャを含む。図2の(a)~(f)は、それぞれ、シーケンスSEQを既定する符号化ビデオシーケンス、ピクチャPICTを規定する符号化ピクチャ、スライスSを規定する符号化スライス、スライスデータを規定する符号化スライスデータ、符号化スライスデータに含まれる符号化ツリーユニット、符号化ツリーユニットに含まれる符号化ユニット(Coding Unit;CU)を示す図である。
  (符号化ビデオシーケンス)
 符号化ビデオシーケンスでは、処理対象のシーケンスSEQを復号するために画像復号装置31が参照するデータの集合が規定されている。シーケンスSEQは、図2の(a)に示すように、ビデオパラメータセット(Video Parameter Set)、シーケンスパラメータセットSPS(Sequence Parameter Set)、ピクチャパラメータセットPPS(Picture Parameter Set)、ピクチャPICT、及び、付加拡張情報SEI(Supplemental Enhancement Information)を含んでいる。ここで#の後に示される値はレイヤIDを示す。図2では、#0と#1すなわちレイヤ0とレイヤ1の符号化データが存在する例を示すが、レイヤの種類及びレイヤの数はこれによらない。
 ビデオパラメータセットVPSは、複数のレイヤから構成されている動画像において、複数の動画像に共通する符号化パラメータの集合及び動画像に含まれる複数のレイヤ及び個々のレイヤに関連する符号化パラメータの集合が規定されている。
 シーケンスパラメータセットSPSでは、対象シーケンスを復号するために画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの幅や高さが規定される。なお、SPSは複数存在してもよい。その場合、PPSから複数のSPSの何れかを選択する。
 ピクチャパラメータセットPPSでは、対象シーケンス内の各ピクチャを復号するために画像復号装置31が参照する符号化パラメータの集合が規定されている。例えば、ピクチャの復号に用いられる量子化幅の基準値(pic_init_qp_minus26)や重み付き予測の適用を示すフラグ(weighted_pred_flag)が含まれる。なお、PPSは複数存在してもよい。その場合、対象シーケンス内の各ピクチャから複数のPPSの何れかを選択する。
  (符号化ピクチャ)
 符号化ピクチャでは、処理対象のピクチャPICTを復号するために画像復号装置31が参照するデータの集合が規定されている。ピクチャPICTは、図2の(b)に示すように、スライスS0~SNS-1を含んでいる(NSはピクチャPICTに含まれるスライスの総数)。
 なお、以下、スライスS0~SNS-1のそれぞれを区別する必要が無い場合、符号の添え字を省略して記述することがある。また、以下に説明する符号化ストリームTeに含まれるデータであって、添え字を付している他のデータについても同様である。
  (符号化スライス)
 符号化スライスでは、処理対象のスライスSを復号するために画像復号装置31が参照するデータの集合が規定されている。スライスSは、図2の(c)に示すように、スライスヘッダSH、及び、スライスデータSDATAを含んでいる。
 スライスヘッダSHには、対象スライスの復号方法を決定するために画像復号装置31が参照する符号化パラメータ群が含まれる。スライスタイプを指定するスライスタイプ指定情報(slice_type)は、スライスヘッダSHに含まれる符号化パラメータの一例である。
 スライスタイプ指定情報により指定可能なスライスタイプとしては、(1)符号化の際にイントラ予測のみを用いるIスライス、(2)符号化の際に単方向予測、または、イントラ予測を用いるPスライス、(3)符号化の際に単方向予測、双方向予測、または、イントラ予測を用いるBスライスなどが挙げられる。なお、インター予測は、単予測、双予測に限定されず、より多くの参照ピクチャを用いて予測画像を生成してもよい。以下、P、Bスライスと呼ぶ場合には、インター予測を用いることができるブロックを含むスライスを指す。
 なお、スライスヘッダSHには、上記符号化ビデオシーケンスに含まれる、ピクチャパラメータセットPPSへの参照(pic_parameter_set_id)を含んでいても良い。
  (符号化スライスデータ)
 符号化スライスデータでは、処理対象のスライスデータSDATAを復号するために画像復号装置31が参照するデータの集合が規定されている。スライスデータSDATAは、図2の(d)に示すように、符号化ツリーユニット(CTU:Coding Tree Unit、CTUブロック)を含んでいる。CTUは、スライスを構成する固定サイズ(例えば64x64)のブロックであり、最大符号化単位(LCU:Largest Coding Unit)と呼ぶこともある。
  (符号化ツリーユニット)
 図2の(e)に示すように、処理対象の符号化ツリーユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。符号化ツリーユニットは、再帰的な4分木分割(QT分割)または2分木分割(BT分割)により符号化処理の基本的な単位である符号化ユニット(CU:Coding Unit)に分割される。再帰的な4分木分割または2分木分割により得られる木構造を符号化ツリー(CT:Coding Tree)、木構造のノードのことを符号化ノード(CN:Coding Node)と称する。4分木及び2分木の中間ノードは、符号化ノードであり、符号化ツリーユニット自身も最上位の符号化ノードとして規定される。
 CTは、CT情報として、QT分割を行うか否かを示すQT分割フラグ(cu_split_flag)、及びBT分割の分割方法を示すBT分割モード(split_bt_mode)を含む。cu_split_flag及び/又はsplit_bt_modeは符号化ノードCNごとに伝送される。cu_split_flagが1の場合には、符号化ノードCNは4つの符号化ノードCNに分割される。cu_split_flagが0の場合、split_bt_modeが1の場合には、符号化ノードCNは2つの符号化ノードCNに水平分割される。split_bt_modeが2の場合には、符号化ノードCNは2つの符号化ノードCNに垂直分割される。split_bt_modeが0の場合には、符号化ノードCNは分割されず、1つの符号化ユニットCUをノードとして持つ。符号化ユニットCUは符号化ノードの末端ノード(リーフノード)であり、これ以上分割されない。
 また、符号化ツリーユニットCTUのサイズが64x64画素の場合には、符号化ユニットのサイズは、64x64画素、64x32画素、32x64画素、32x32画素、64x16画素、16x64画素、32x16画素、16x32画素、16x16画素、64x8画素、8x64画素、32x8画素、8x32画素、16x8画素、8x16画素、8x8画素、64x4画素、4x64画素、32x4画素、4x32画素、16x4画素、4x16画素、8x4画素、4x8画素、及び、4x4画素の何れかをとり得る。
  (符号化ユニット)
 図2の(f)に示すように、処理対象の符号化ユニットを復号するために画像復号装置31が参照するデータの集合が規定されている。具体的には、符号化ユニットは、予測ツリー、変換ツリー、CUヘッダCUHから構成される。CUヘッダでは予測モード、分割方法(PU分割モード)等が規定される。
 予測ツリーでは、符号化ユニットを1または複数に分割した各予測ユニット(PU)の予測パラメータ(参照ピクチャインデックス、動きベクトル等)が規定される。別の表現でいえば、予測ユニットは、符号化ユニットを構成する1または複数の重複しない領域である。また、予測ツリーは、上述の分割により得られた1または複数の予測ユニットを含む。なお、以下では、予測ユニットをさらに分割した予測単位を「サブブロック」と呼ぶ。サブブロックは、複数の画素によって構成されている。予測ユニットとサブブロックのサイズが等しい場合には、予測ユニット中のサブブロックは1つである。予測ユニットがサブブロックのサイズよりも大きい場合には、予測ユニットは、サブブロックに分割される。たとえば予測ユニットが8x8、サブブロックが4x4の場合には、予測ユニットは水平に2分割、垂直に2分割からなる、4つのサブブロックに分割される。
 予測処理は、この予測ユニット(サブブロック)ごとに行ってもよい。
 予測ツリーにおける分割の種類は、大まかにいえば、イントラ予測の場合と、インター予測の場合との2つがある。イントラ予測とは、同一ピクチャ内の予測であり、インター予測とは、互いに異なるピクチャ間(例えば、表示時刻間、レイヤ画像間)で行われる予測処理を指す。
 イントラ予測の場合、分割方法は、2Nx2N(符号化ユニットと同一サイズ)と、NxNとがある。
 また、インター予測の場合、分割方法は、符号化データのPU分割モード(part_mode)により符号化され、2Nx2N(符号化ユニットと同一サイズ)、2NxN、2NxnU、2NxnD、Nx2N、nLx2N、nRx2N、及び、NxNなどがある。なお、2NxN、Nx2Nは1:1の対称分割を示し、
2NxnU、2NxnD及びnLx2N、nRx2Nは、1:3、3:1の非対称分割を示す。CUに含まれるPUを順にPU0、PU1、PU2、PU3と表現する。
 図3の(a)~(h)に、それぞれのPU分割モードにおけるパーティションの形状(PU分割の境界の位置)を具体的に図示している。図3の(a)は、2Nx2Nのパーティションを示し、(b)、(c)、(d)は、それぞれ、2NxN、2NxnU、及び、2NxnDのパーティション(横長パーティション)を示す。(e)、(f)、(g)は、それぞれ、Nx2N、nLx2N、nRx2Nである場合のパーティション(縦長パーティション)を示し、(h)は、NxNのパーティションを示す。なお、横長パーティションと縦長パーティションを総称して長方形パーティション、2Nx2N、NxNを総称して正方形パーティションと呼ぶ。
 また、変換ツリーにおいては、符号化ユニットが1または複数の変換ユニットに分割され、各変換ユニットの位置とサイズとが規定される。別の表現でいえば、変換ユニットは、符号化ユニットを構成する1または複数の重複しない領域のことである。また、変換ツリーは、上述の分割より得られた1または複数の変換ユニットを含む。
 変換ツリーにおける分割には、符号化ユニットと同一のサイズの領域を変換ユニットとして割り付けるものと、上述したCUの分割と同様、再帰的な4分木分割によるものがある。
 変換処理は、この変換ユニットごとに行われる。
  (予測パラメータ)
 予測ユニット(PU:Prediction Unit)の予測画像は、PUに付随する予測パラメータによって導出される。予測パラメータには、イントラ予測の予測パラメータもしくはインター予測の予測パラメータがある。
  (参照ピクチャリスト)
 参照ピクチャリストは、参照ピクチャメモリ306に記憶された参照ピクチャからなるリストである。図4は、参照ピクチャ及び参照ピクチャリストの一例を示す概念図である。図4の(a)において、矩形はピクチャ、矢印はピクチャの参照関係、横軸は時間、矩形中のI、P、Bは各々イントラピクチャ、単予測ピクチャ、双予測ピクチャ、矩形中の数字は復号順を示す。図に示すように、ピクチャの復号順は、I0、P1、B2、B3、B4であり、表示順は、I0、B3、B2、B4、P1である。図4の(b)に、参照ピクチャリストの例を示す。参照ピクチャリストは、参照ピクチャの候補を表すリストであり、1つのピクチャ(スライス)が1つ以上の参照ピクチャリストを有してもよい。
  (マージ予測とAMVP予測)
 予測パラメータの復号(符号化)方法には、マージ予測(merge)モードとAMVP(Adaptive Motion Vector Prediction、適応動きベクトル予測)モードがある、マージフラグmerge_flagは、これらを識別するためのフラグである。マージモードは、予測リスト利用フラグpredFlagLX(またはインター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めずに、既に処理した近傍PUの予測パラメータから導出する用いるモードである。AMVPモードは、インター予測識別子inter_pred_idc、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXを符号化データに含めるモードである。なお、動きベクトルmvLXは、予測ベクトルmvpLXを識別する予測ベクトルインデックスmvp_LX_idxと差分ベクトルmvdLXとして符号化される。
  (動きベクトル)
 動きベクトルmvLXは、異なる2つのピクチャ上のブロック間のずれ量を示す。動きベクトルmvLXに関する予測ベクトル、差分ベクトルを、それぞれ予測ベクトルmvpLX、差分ベクトルmvdLXと呼ぶ。
  (インター予測識別子inter_pred_idcと予測リスト利用フラグpredFlagLX)
 インター予測識別子inter_pred_idcと、予測リスト利用フラグpredFlagL0、predFlagL1の関係は以下のとおりであり、相互に変換可能である。
 inter_pred_idc = (predFlagL1<<1) + predFlagL0
 predFlagL0 = inter_pred_idc & 1
 predFlagL1 = inter_pred_idc >> 1
  (イントラ予測モード)
 輝度イントラ予測モードIntraPredModeYは67モードであり、プレーナ予測(0)、DC予測(1)、方向予測(2~66)に対応する。色差イントラ予測モードIntraPredModeCは上記の67モードにCCLM(Colour Component Linear Mode)を加えた68モードである。
 図10(a)は、対象ブロックX(ブロックはCU、PU、TUであってもよい)とその左上、上、右上、左の隣接ブロックAL、A、AR、Lを示す図である。図10(b)は、4:2:0フォーマットにおける、M*Nサイズの対象ブロックXの各画素x[m,n](m=0..M-1、n=0..N-1)、およびその隣接ブロック中の、イントラ予測時に参照する参照画素r[-1,n]、r[m,-1](m=0..2M-1、n=-1..2N-1)を示す図である。4:2:0フォーマットの場合、輝度対象ブロックは外側の実線のブロック、色差対象ブロックは内側の破線のブロックのサイズである。従って、色差対象ブロックの場合、各画素x[m,n](m=0..M/2-1、n=0..N/2-1)、および参照画素r[-1,n]、r[m,-1](m=0..M-1、n=-1..N-1)である。なお、以降では色差成分のブロックサイズ(M/2,N/2)を(M2,N2)と表現する。
 プレーナ予測の予測画素値は下式で算出する。
  predSamples[m,n]=((M-1-m)*r[-1,n]+(m+1)*r[M,-1]+M/2)>>log2(M)+((N-1-n)*r[m,-1]+(n+1)*r[-1,N]+N/2)>>log2(N) (式1)
 DC予測の予測画素値は下式で算出する。
           M-1           N-1
  predSamples[m,n]=(Σr[m,-1]+M/2)>>log2(M)+(Σr[-1,n]+N/2)>>log2(N) (式2)
           m=0           n=0
 方向予測の予測画素値は下式で算出する。
  predSamples[m,n]=(w*r[m+d,-1]+(W-w)*r[m+d+1,-1]+W/2)>>log2(W) (式3)
ここで、dは予測方向に応じた画素位置の変位であり、wは重み係数である。Wは例えば重みの和であり例えば32、64、128である。
 デブロッキングフィルタは、ブロック境界を介して互いに隣接する輝度成分の画素のデブロック前画素値の差が予め定められた閾値よりも小さい場合に、当該ブロック境界に対して、輝度および色差成分の画素にデブロッキング処理を施すことによって、当該ブロック境界付近の画像の平滑化を行う。
 図12(a)は水平方向に境界を接する2つの色差成分のブロックP(画素値はp[m,n])、Q(画素値はq[m,n])を示す。デブロッキングフィルタを施すと判定された場合、デブロッキングフィルタは、ブロック境界からT画素以下の画素を参照し、斜線で示すフィルタ対象画素p[m,0]、q[m,0]の画素値を下式で補正することによって、ブロック歪を除去する。以下ではT=4、参照画素はp[m,1],p[m,0],q[m,0],q[m,1]の例を説明する。
  Δ= Clip3(-tc,tc,(((q[m,0]-p[m,0])<<2)+p[m,1]-q[m,1]+4)>>3)
  p[m,0] = Clip1(p[m,0]+Δ)                  (式4)
  q[m,0] = Clip1(q[m,0]-Δ)
ここでtcはあらかじめ定められた閾値、Clip1(x)は0<=x<=色差の最大値、を表す。
 SAOは主にデブロッキングフィルタ後に適用するフィルタであり、リンギング歪や量子化歪を除去する効果がある。SAOはCTU単位の処理であり、画素値をいくつかのカテゴリに分類して、カテゴリ毎に画素単位にオフセットを加減算するフィルタである。SAOのエッジオフセット(EO)処理は、対象画素と隣接画素(参照画素)との大小関係に応じて画素値に加算するオフセット値を決定する。
 図12(b)は水平方向に境界を接する2つの色差成分のブロックP(画素値はp[m,n])、Q(画素値はq[m,n])を示す。EO処理は、斜線で示すEO対象画素p[m,0]に対し、縦方向、横方向、左上右下の斜め方向、右上左下の斜め方向に接する(p[m,1],q[m,0])、(p[m-1,0],p[m+1,0])、(p[m-1,1],q[m+1,0])、(p[m+1,1],q[m-1,0])の中から符号化データで通知される画素を参照して、オフセットoffsetPを選択し、p[m,0]にオフセットを加減算することによって、リンギング、量子化歪を除去する。同様に、図12(c)は斜線で示すEO処理対象画素q[m,0]に対し、縦方向、横方向、左上右下の斜め方向、右上左下の斜め方向に接する(p[m,0],q[m,1])、(q[m-1,0],q[m+1,0])、(p[m-1,0],q[m+1,1])、(p[m+1,0],q[m-1,1])の中から符号化データで通知される画素を参照して、オフセットoffsetQを選択し、q[m,0]にオフセットを加減算することによって、リンギング、量子化歪を除去する。
  p[m,0] = p[m,0]+offsetP (式5)
  q[m,0] = q[m,0]+offsetQ
 ALFは、ALF前復号画像に対して、符号化データTeから復号されたALFパラメータALFPを用いた適応的フィルタ処理を施すことによって、ALF済復号画像を生成する。
 図12(d)~(g)は水平方向に境界を接する2つの色差成分のブロックP(画素値はp[m,n])、Q(画素値はq[m,n])でのALF処理を示す図である。ALFは、斜線で示すALF対象画素p[m,1]、p[m,0]、q[m,0]、q[m,1]に対し、菱形形状のSxSタップのフィルタをかけることで画質を向上させる。以下ではS=5の場合について説明する。つまり、図12(d)~(g)に示す5ライン分の隣接画素を参照する。
 図13は、ループフィルタで参照する参照画素を格納するメモリを説明する図である。図13(a)はデブロッキングフィルタおよびSAO(EO)の色差成分の参照画素を格納するメモリ、図13(b)はALFが加わった場合の色差成分の参照画素を格納するメモリである。これらは対象ブロックの1ブロック行前に復号したブロックの復号画素が格納されたラインメモリである。4:2:0フォーマットの場合、このメモリには、width*heightサイズの画像のwidth画素数/2*ライン数分の色差成分の参照画素が格納される。例えば4K(3840*2160)画像では、デブロッキングフィルタおよびSAO(EO)の色差成分の参照画素は、図13(a)に示すように2ライン分の参照画素が格納されるので、Cb、Cr成分各々1920画素*2である。さらにALFが処理される場合は、図13(b)に示すように4ライン分の参照画素が格納されるので、Cb、Cr成分各々1920画素*4である。
  (画像復号装置の構成)
 次に、本実施形態に係る画像復号装置31の構成について説明する。図5は、本実施形態に係る画像復号装置31の構成を示す概略図である。画像復号装置31は、エントロピー復号部301、予測パラメータ復号部(予測画像復号装置)302、ループフィルタ305、参照ピクチャメモリ306、予測パラメータメモリ307、予測画像生成部(予測画像生成装置)308、逆量子化・逆変換部311、及び加算部312を含んで構成される。なお、画像符号化装置11に合わせ、画像復号装置31にループフィルタ305が含まれない構成もある。
 また、予測パラメータ復号部302は、インター予測パラメータ復号部303及びイントラ予測パラメータ復号部304を含んで構成される。予測画像生成部308は、インター予測画像生成部309及びイントラ予測画像生成部310を含んで構成される。
 エントロピー復号部301は、外部から入力された符号化ストリームTeに対してエントロピー復号を行って、個々の符号(シンタックス要素)を分離し復号する。分離された符号には、予測画像を生成するための予測パラメータ及び、差分画像を生成するための残差情報などがある。
 エントロピー復号部301は、分離した符号の一部を予測パラメータ復号部302に出力する。分離した符号の一部とは、例えば、予測モードpredMode、PU分割モードpart_mode、マージフラグmerge_flag、マージインデックスmerge_idx、インター予測識別子inter_pred_idc、参照ピクチャインデックスref_Idx_lX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLXである。どの符号を復号するかの制御は、予測パラメータ復号部302の指示に基づいて行われる。エントロピー復号部301は、量子化係数を逆量子化・逆変換部311に出力する。この量子化係数は、符号化処理において、残差信号に対してDCT(Discrete Cosine Transform、離散コサイン変換)、DST(Discrete Sine Transform、離散サイン変換)、KLT(Karyhnen Loeve Transform、カルーネンレーベ変換)等の周波数変換を行い量子化して得られる係数である。
 インター予測パラメータ復号部303は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してインター予測パラメータを復号する。
 インター予測パラメータ復号部303は、復号したインター予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。
 イントラ予測パラメータ復号部304は、エントロピー復号部301から入力された符号に基づいて、予測パラメータメモリ307に記憶された予測パラメータを参照してイントラ予測パラメータを復号する。イントラ予測パラメータとは、CUを1つのピクチャ内で予測する処理で用いるパラメータ、例えば、イントラ予測モードIntraPredModeである。イントラ予測パラメータ復号部304は、復号したイントラ予測パラメータを予測画像生成部308に出力し、また予測パラメータメモリ307に記憶する。
 ループフィルタ305は、加算部312が生成したCUの復号画像に対し、デブロッキングフィルタ313、サンプル適応オフセット(SAO)314、適応ループフィルタ(ALF)315等のフィルタを施す。なお、ループフィルタ305は画像符号化装置と対になっていれば、必ずしも上記3種類のフィルタを含まなくてもよく、例えばデブロッキングフィルタ313のみの構成であってもよい。
 参照ピクチャメモリ306は、加算部312が生成したCUの復号画像を、復号対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 予測パラメータメモリ307は、予測パラメータを、復号対象のピクチャ及び予測ユニット(もしくはサブブロック、固定サイズブロック、ピクセル)毎に予め定めた位置に記憶する。具体的には、予測パラメータメモリ307は、インター予測パラメータ復号部303が復号したインター予測パラメータ、イントラ予測パラメータ復号部304が復号したイントラ予測パラメータ及びエントロピー復号部301が分離した予測モードpredModeを記憶する。記憶されるインター予測パラメータには、例えば、予測リスト利用フラグpredFlagLX(インター予測識別子inter_pred_idc)、参照ピクチャインデックスrefIdxLX、動きベクトルmvLXがある。
 予測画像生成部308には、エントロピー復号部301から入力された予測モードpredModeが入力され、また予測パラメータ復号部302から予測パラメータが入力される。また、予測画像生成部308は、参照ピクチャメモリ306から参照ピクチャを読み出す。予測画像生成部308は、予測モードpredModeが示す予測モードで、入力された予測パラメータと読み出した参照ピクチャ(参照ピクチャブロック)を用いてPUもしくはサブブロックの予測画像を生成する。
 ここで、予測モードpredModeがインター予測モードを示す場合、インター予測画像生成部309は、インター予測パラメータ復号部303から入力されたインター予測パラメータと読み出した参照ピクチャ(参照ピクチャブロック)を用いてインター予測によりPUもしくはサブブロックの予測画像を生成する。
 インター予測画像生成部309は、予測リスト利用フラグpredFlagLXが1である参照ピクチャリスト(L0リスト、もしくはL1リスト)に対し、参照ピクチャインデックスrefIdxLXで示される参照ピクチャから、復号対象PUを基準として動きベクトルmvLXが示す位置にある参照ピクチャブロックを参照ピクチャメモリ306から読み出す。インター予測画像生成部309は、読み出した参照ピクチャブロックをもとに予測を行ってPUの予測画像を生成する。インター予測画像生成部309は、生成したPUの予測画像を加算部312に出力する。ここで、参照ピクチャブロックとは、参照ピクチャ上の画素の集合(通常矩形であるのでブロックと呼ぶ)であり、PUもしくはサブブロックの予測画像を生成するために参照する領域である。
 予測モードpredModeがイントラ予測モードを示す場合、イントラ予測画像生成部310は、イントラ予測パラメータ復号部304から入力されたイントラ予測パラメータと読み出した参照ピクチャを用いてイントラ予測を行う。具体的には、イントラ予測画像生成部310は、復号対象のピクチャであって、既に復号されたブロック(PU)のうち、復号対象ブロックから予め定めた範囲にある隣接ブロックを参照ピクチャメモリ306(フレームメモリ、参照メモリ)から内部メモリ(内部参照メモリ)に読み出す。
 参照ピクチャメモリ306は、復号画像を保持するためのフレームメモリと、イントラ予測やループフィルタ用に部分画像のみを保持するメモリ(コラムメモリ、ラインメモリ)、CTUブロック内部の部分画像を保持するメモリに分かれても良い。以下、参照メモリと記載する場合には、主に、イントラ予測やループフィルタ用に部分画像のみを保持するメモリのことを指す。
 図11は、イントラ予測で参照する参照画素を後続のブロックの予測のために格納する参照メモリ(コラムメモリ、ラインメモリ)を説明する図である。図11(a)は、4:2:0フォーマット準拠の画像復号装置において、輝度成分の参照画素を格納する参照メモリ、図11(b)は色差成分の参照画素を格納する参照メモリである。図11(a)において、(a-1)は輝度対象ブロックの左側の参照画素r[-1,-1]~r[-1,2N-1]を格納するメモリ、(a-2)は上側の参照画素r[0,-1]~r[M-1,-1]を格納するメモリである。(b-1)は色差対象ブロックの左側の参照画素r[-1,-1]~r[-1,N-1]を格納するメモリ、(b-2)は上側の参照画素r[0,-1]~r[M2-1,-1]を格納するメモリである。対象ブロックの左側の参照画素を格納するメモリ(a-1)、(b-1)は、1つ前に復号したブロックの復号画素が格納され、ブロックの処理が終了する毎に更新されるコラムメモリである。対象ブロックの上側の参照画素を格納するメモリ(a-2)、(b-2)は、1ブロック行前に復号したブロックの復号画素が格納されたラインメモリである。コラムメモリは複数の列、ラインメモリは複数のラインを保持してもよい。例えば、width*heightサイズの画像において、輝度成分はwidth画素数*ライン数分、色差成分はwidth/2画素数*ライン数分の参照画素が参照メモリのラインメモリに格納される。例えば4K(3840*2160)画像で1ライン分の参照画素が格納される4:2:0フォーマットの場合、輝度成分は3840画素、色差成分はCb、Cr成分各々1920画素である。
 なお、図の例では、処理するブロックサイズが固定の場合を説明したが、可変ブロックサイズであったり、再帰的なツリー分割(四分木ツリーや二分木ツリー)によるものであってもよい。例えば、CTUブロックを再帰的に分割する場合、参照メモリとしては、対象ブロックが含まれるCTU内部用参照メモリと、CTU境界をまたいで参照するためのCTU外部用参照メモリから構成する。対象ブロックが参照する隣接画像がCTUブロック内にある場合、CTU内部用メモリから参照し、対象ブロックが参照する隣接画像がCTUブロック内にない場合、CTU外部用参照メモリから参照する。CTU外部用参照メモリは、1つ前に復号したCTUブロックの復号画素が格納され、ブロックの処理が終了する毎に更新されるコラムメモリと、1CTUブロック行前に復号したブロックの復号画素が格納されたラインメモリを用いる。
 内部メモリは、好適には、高速にアクセスできるメモリであり、参照ピクチャメモリの内容をコピーして用いる。予め定めた範囲とは、復号対象ブロックがいわゆるラスタースキャンの順序で順次移動する場合、例えば、左、左上、上、右上の隣接ブロックのうちのいずれかであり、イントラ予測モードによって異なる。ラスタースキャンの順序とは、各ピクチャにおいて、上端から下端まで各行について、順次左端から右端まで移動させる順序である。
 イントラ予測画像生成部310は、読み出した隣接ブロックについてイントラ予測モードIntraPredModeが示す予測モードで予測を行ってブロックの予測画像を生成する。イントラ予測画像生成部310は、生成したブロックの予測画像を加算部312に出力する。
 図14(a)は、イントラ予測に伴う参照メモリに格納された参照画素へのアクセスを説明するフローチャートである。イントラ予測画像生成部310は、参照メモリから対象ブロックの予測に必要な参照画素を読み出し、イントラ予測画像生成部310の(図示されない)内部メモリに格納する(S1402)。イントラ予測画像生成部310は、内部メモリに格納された参照画素を用いてイントラ予測を実施する(S1404)。対象ブロックの再構成処理(S1406)が終了した後、画像復号装置31は、対象ブロックの一番下のラインを参照メモリに格納する(S1408)。画像復号装置31は、対象ブロックが画面の最後のブロックかどうかをチェックし(S1410)、最後のブロックでない場合(S1410でN)、次のブロックの処理に移り(S1412)、S1402からの処理を繰り返す。最後のブロックの場合(S1410でY)、処理を終了する。参照メモリへのアクセスに関しては画像符号化装置11、画像復号装置31とも共通の処理であり、後述の画像符号化装置11の説明では、上記の画像復号装置31を画像符号化装置11に読み替え、再構成処理を局部復号時の再構成処理と読み替えるだけであるので、説明を省略する。
 逆量子化・逆変換部311は、エントロピー復号部301から入力された量子化変換係数を逆量子化し、逆DST、逆KLT等の逆周波数変換を行い、予測残差信号を算出する。逆量子化・逆変換部311は、算出した残差信号を加算部312に出力する。
 加算部312は、インター予測画像生成部309またはイントラ予測画像生成部310から入力されたブロックの予測画像と逆量子化・逆変換部311から入力された残差信号を画素毎に加算して、ブロックの復号画像を生成する。加算部312は、生成したブロックの復号画像をデブロッキングフィルタ313、SAO(サンプル適応オフセット)部314、またはALF315の少なくとも何れかに出力する。
 デブロッキングフィルタ313は、加算部の出力であるブロックの復号画像に対し、デブロッキング処理を施し、デブロック済復号画像として出力する。
 SAO部314は、加算部312の出力画像、またはデブロッキングフィルタ313より出力されたデブロック済復号画像に対して、符号化データTeから復号されたオフセットを用いたオフセットフィルタ処理を施し、SAO済復号画像として出力する。
 ALF315は、加算部312の出力画像、デブロック済復号画像、またはSAO済復号画像に対して、符号化データTeから復号されたALFパラメータALFPを用いた適応的フィルタ処理を施し、ALF済復号画像を生成する。ALF済復号画像は、復号画像Tdとして外部に出力されると共に、エントロピー復号部301によって符号化データTeから復号されたPOC情報と関連付けて参照ピクチャメモリ306に格納される。
 図14(b)は、ループフィルタに伴う参照メモリに格納された参照画素へのアクセスを説明するフローチャートである。ループフィルタ305は、参照メモリから対象ブロックの予測に必要な参照画素を読み出し、ループフィルタ305の(図示されない)内部メモリに格納する(S1414)。ループフィルタ305は、内部メモリに格納された参照画素を用いてデブロッキングフィルタ、SAO、ALF等のループフィルタ処理を実施する(S1416)。ループフィルタ処理が終了した後、画像復号装置31(あるいはループフィルタ305)は、対象ブロックの一番のラインから所定数のラインを参照メモリに格納する(S1420)。画像復号装置31は、対象ブロックが画面の最後のブロックかどうかをチェックし(S1422)、最後のブロックでない場合(S1422でN)、次のブロックの処理に移り(S1424)、S1414からの処理を繰り返す。最後のブロックの場合(S1422でY)、処理を終了する。参照メモリへのアクセスに関しては画像符号化装置11、画像復号装置31とも共通の処理であり、後述の画像符号化装置11の説明では、上記の画像復号装置31を画像符号化装置11に読み替え、ループフィルタ305をループフィルタ107と読み替えるだけであるので、説明を省略する。
  (画像符号化装置の構成)
 次に、本実施形態に係る画像符号化装置11の構成について説明する。図6は、本実施形態に係る画像符号化装置11の構成を示すブロック図である。画像符号化装置11は、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、加算部106、ループフィルタ107、予測パラメータメモリ(予測パラメータ記憶部、フレームメモリ)108、参照ピクチャメモリ(参照画像記憶部、フレームメモリ)109、符号化パラメータ決定部110、予測パラメータ符号化部111を含んで構成される。予測パラメータ符号化部111は、インター予測パラメータ符号化部112及びイントラ予測パラメータ符号化部113を含んで構成される。なお、画像符号化装置11はループフィルタ107が含まれない構成であってもよい。
 予測画像生成部101は画像Tの各ピクチャについて、そのピクチャを分割した領域である符号化ユニットCU毎に予測ユニットPUの予測画像Pを生成する。ここで、予測画像生成部101は、予測パラメータ符号化部111から入力された予測パラメータに基づいて参照ピクチャメモリ109から復号済のブロックを読み出す。予測パラメータ符号化部111から入力された予測パラメータとは、例えばインター予測の場合、動きベクトルである。予測画像生成部101は、対象PUを起点として動きベクトルが示す参照画像上の位置にあるブロックを読み出す。またイントラ予測の場合、予測パラメータとは例えばイントラ予測モードである。イントラ予測モードで使用する隣接ブロック(PU)の画素値を参照ピクチャメモリ109から読み出し、ブロックの予測画像Pを生成する。予測画像生成部101は、読み出した参照ピクチャブロックについて複数の予測方式のうちの1つの予測方式を用いてブロックの予測画像Pを生成する。予測画像生成部101は、生成したブロックの予測画像Pを減算部102に出力する。
 なお、予測画像生成部101は、既に説明した予測画像生成部308と同じく、インター予測画像生成部309およびイントラ予測画像生成部310を備え、同じ動作をするためここでの説明を省略する。
 予測画像生成部101は、予測パラメータ符号化部から入力されたパラメータを用いて、参照ピクチャメモリから読み出した参照ブロックの画素値をもとにPU(ブロック)の予測画像Pを生成する。予測画像生成部101で生成した予測画像は減算部102、加算部106に出力される。
 減算部102は、予測画像生成部101から入力されたPUの予測画像Pの信号値を、画像Tの対応するPUの画素値から減算して、残差信号を生成する。減算部102は、生成した残差信号を変換・量子化部103に出力する。
 変換・量子化部103は、減算部102から入力された予測残差信号に対し周波数変換を行い、算出した変換係数を量子化して量子化係数を求める。変換・量子化部103は、求めた量子化係数をエントロピー符号化部104及び逆量子化・逆変換部105に出力する。
 エントロピー符号化部104には、変換・量子化部103から量子化係数が入力され、予測パラメータ符号化部111から予測パラメータが入力される。入力される予測パラメータには、例えば、参照ピクチャインデックスref_Idx_lX、予測ベクトルインデックスmvp_LX_idx、差分ベクトルmvdLX、予測モードpred_mode_flag、及びマージインデックスmerge_idx等の符号がある。
 エントロピー符号化部104は、入力された分割情報、予測パラメータ、量子化変換係数等をエントロピー符号化して符号化ストリームTeを生成し、生成した符号化ストリームTeを外部に出力する。
 逆量子化・逆変換部105は、画像復号装置における、逆量子化・逆変換部311(図5)と同じであり、変換・量子化部103から入力された量子化係数を逆量子化して変換係数を求める。逆量子化・逆変換部105は、求めた変換係数について逆変換を行い、残差信号を算出する。逆量子化・逆変換部105は、算出した残差信号を加算部106に出力する。
 加算部106は、予測画像生成部101から入力されたPU(ブロック)の予測画像Pの信号値と逆量子化・逆変換部105から入力された残差信号の信号値を画素毎に加算して、復号画像を生成する。加算部106は、生成した復号画像を参照ピクチャメモリ109に記憶する。
 ループフィルタ107は加算部106が生成した復号画像に対し、デブロッキングフィルタ114、サンプル適応オフセット(SAO)115、適応ループフィルタ(ALF)116を施す。なお、ループフィルタ107は、必ずしも上記3種類のフィルタを含まなくてもよく、例えばデブロッキングフィルタ114のみの構成であってもよい。
 予測パラメータメモリ108は、符号化パラメータ決定部110が生成した予測パラメータを、符号化対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 参照ピクチャメモリ109は、ループフィルタ107が生成した復号画像を、符号化対象のピクチャ及びCU毎に予め定めた位置に記憶する。
 符号化パラメータ決定部110は、符号化パラメータの複数のセットのうち、1つのセットを選択する。符号化パラメータとは、上述したQTBT分割パラメータや予測パラメータやこれらに関連して生成される符号化の対象となるパラメータである。予測画像生成部101は、これらの符号化パラメータのセットの各々を用いてPUの予測画像Pを生成する。
 符号化パラメータ決定部110は、複数のセットの各々について情報量の大きさと符号化誤差を示すRDコスト値を算出する。RDコスト値は、例えば、符号量と二乗誤差に係数λを乗じた値との和である。符号量は、量子化残差と符号化パラメータをエントロピー符号化して得られる符号化ストリームTeの情報量である。二乗誤差は、減算部102において算出された残差信号の残差値の二乗値についての画素間の総和である。係数λは、予め設定されたゼロよりも大きい実数である。符号化パラメータ決定部110は、算出したRDコスト値が最小となる符号化パラメータのセットを選択する。これにより、エントロピー符号化部104は、選択した符号化パラメータのセットを符号化ストリームTeとして外部に出力し、選択されなかった符号化パラメータのセットを出力しない。符号化パラメータ決定部110は決定した符号化パラメータを予測パラメータメモリ108に記憶する。
 予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから、符号化するための形式を導出し、エントロピー符号化部104に出力する。符号化するための形式の導出とは、例えば動きベクトルと予測ベクトルから差分ベクトルを導出することである。また予測パラメータ符号化部111は、符号化パラメータ決定部110から入力されたパラメータから予測画像を生成するために必要なパラメータを導出し、予測画像生成部101に出力する。予測画像を生成するために必要なパラメータとは、例えばサブブロック単位の動きベクトルである。
 インター予測パラメータ符号化部112は、符号化パラメータ決定部110から入力された予測パラメータに基づいて、差分ベクトルのようなインター予測パラメータを導出する。インター予測パラメータ符号化部112は、予測画像生成部101に出力する予測画像の生成に必要なパラメータを導出する構成として、インター予測パラメータ復号部303がインター予測パラメータを導出する構成と一部同一の構成を含む。また、イントラ予測パラメータ符号化部113は、予測画像生成部101に出力する予測画像の生成に必要な予測パラメータを導出する構成として、イントラ予測パラメータ復号部304がイントラ予測パラメータを導出する構成と、一部同一の構成を含む。
 イントラ予測パラメータ符号化部113は、符号化パラメータ決定部110から入力されたイントラ予測モードIntraPredModeから、符号化するための形式(例えばMPM_idx、rem_intra_luma_pred_mode等)を導出する。
 上記で説明したように、4:4:4フォーマットと4:2:0フォーマットで必要なメモリは、輝度成分は同じであるが、色差成分は4:2:0フォーマットに比べ、4:4:4フォーマットは縦横に各々2倍のメモリが必要である。特に図11で説明したように、対象ブロックの左側の参照画素を格納するメモリ(コラム)は1CTUの高さ分だけ保持すればよいので、4:4:4フォーマットとなることで色差画素のCTUの高さが2倍になっても、大きな問題ではない。しかし、対象ブロックの上側の参照画素を格納するラインメモリは、画像の幅に比例したサイズが必要であるため、コストへの影響が大きい。例えば4K画像で、1ライン格納する場合は4:2:0フォーマットではCb、Crとも1920画素必要であったが、4:4:4フォーマットでは3840画素必要である。2ライン格納する場合は4:2:0フォーマットではCb、Crとも3840画素必要であったが、4:4:4フォーマットでは7680画素必要である。4ライン格納する場合は4:2:0フォーマットではCb、Crとも7680画素必要であったが、4:4:4フォーマットでは15360画素必要である。画像サイズが8Kになると、各々この2倍のメモリが必要である。このラインメモリサイズの増加は画像復号装置の設計に大きな影響を及ぼす。
 以下では、4:2:0フォーマットで必要なサイズのラインメモリで、4:4:4フォーマットの処理を可能にする技術を説明する。
 (イントラ予測)
 4:4:4フォーマットの符号化データをイントラ予測する場合に、本明細書の画像復号装置において、色差成分の参照画素を参照メモリから参照する場合の一例を図15(a)に示す。符号化データが4:4:4フォーマットであるので、色差成分の対象ブロックX(画素x[m,n]、m=0..M-1,n=0..N-1)は輝度成分と同じサイズ(M*N)の画素を持つ。対象ブロックの左側の参照画素はr[-1,n]、上側の参照画素はr[m,-1]である(m=0..2M-1,n=-1..2N-1)。4:2:0フォーマット用のラインメモリで復号可能とする本明細書の画像復号装置の一つの構成例では、対象ブロックの上側の参照画素を格納する参照メモリ(ラインメモリ)から半分の画素のみを参照する。すなわち、図15(a)のように、対象ブロックの上側では偶数位置r[2m,-1]の参照画素はラインメモリから参照しない。これらの参照画素は、(式1)~(式3)を用いたイントラ予測値の算出に不可欠であるため、後述の方法により参照画素から導出する。
 実施形態1の画像符号化装置および画像復号装置の一例では、4:4:4フォーマットの画像の色差成分の場合、図16(a)に示すように、復号画素値x[m,N-1]を参照メモリに格納する時に、対象ブロックの1番下のラインのうち、奇数番目の復号画素x[2m+1,N-1]のみを格納する。そして、1ブロックライン下の対象ブロックを復号するために参照メモリを読み出す時は、奇数番目の位置[2m+1]を参照する。読み出した奇数番目の位置の参照画素r[2m+1,-1]を用いて偶数番目の位置の参照画素r[2m,-1]を補間する。参照メモリから読み出した参照画素r[2m+1,-1]と、補間したr[2m,-1]、および対象ブロックの左側の参照画素r[-1,n]を(式1)~(式3)に代入してイントラ予測値を算出する。以下では、2種類の参照メモリ、2次元配列refImg[,]と1次元配列z[]を用いて説明する。画像符号化装置は画像復号装置と同じく、奇数位置の画素のみを格納し、奇数位置の画素から偶数位置の画素を補間し、両者を用いてイントラ予測を実施するため、画像符号化装置と画像復号装置の間でミスマッチは発生しない。
 図17(a)は上記の動作を説明するフローチャートである。図中S1404、S1406、S1410、S1412は図14(a)と同じ動作であり、説明を省略する。イントラ予測画像生成部310は、参照メモリから対象ブロックの予測に必要な参照画素を読み出し、イントラ予測画像生成部310の(図示されない)内部メモリの奇数位置r[2m+1,-1](m=0..M2-1))に格納する(S1602)。
  r[2m+1,-1] = refImg[xBlk+2m-1,yBlk-1] (m=0..M2-1)
ここで、xBlk, yBlkは、対象ブロックの左上座標である。なお、参照メモリrefImgは、奇数位置のみメモリを有するような配列である。連続した配列z[]を用いる場合には、図16(b)に示すように、以下のように参照する。
  r[2m+1,-1] = z[xBlk/2+m] (m=0..M2-1)
ここでブロックが固定ブロックサイズMの場合には、ブロックのアドレスkを用いて、xBlk=M2*k*2として導出できる。
 イントラ予測画像生成部310は、内部メモリの奇数位置の参照画素を用いて偶数位置の参照画素を補間する(S1603)。例えば補間方法として平均値を用いることができる。
  r[2m,-1] = (r[2m+1,-1]+r[2m-1,-1]+1)>>1
参照メモリから読み出した参照画素と、補間して生成した参照画素を用いてイントラ予測を実施する(S1404)。対象ブロックの再構成処理(S1406)が終了した後、画像符号化装置11あるいは画像復号装置31は、対象ブロックの一番下のラインの奇数番目の復号画素(図16(a)のx[2m+1,N-1])を参照メモリrefImg、または、Zに格納する(S1608)。
  refImg[xBlk+2m-1,yBlk+N-1] = x[2m+1,N-1]
 連続した配列z[]を用いる場合には、図16(b)に示すように、以下のように格納する。
  z[xBlk/2+m] = x[2m+1,N-1] 
 また、図16(d)~(f)に示すように、内部メモリの復号画素値x[m,N-1]を参照メモリに格納する時に、対象ブロックの1番下のラインのうち、偶数番目の復号画素のみを格納してもよい。そして、1ブロックライン下のブロックを復号するために参照メモリrefImg、または、Zから参照画素を読み出す時は、偶数番目の位置[2m,-1]を参照し、奇数番目の位置の参照画素r[2m+1,-1]を補間してもよい。この場合、上記フローチャートの説明は奇数画素と偶数画素を入れ替えればよい。
 以上説明したように、イントラ予測の参照画素として、水平方向に1/2の画素数の画素を格納し、残りの1/2は補間により生成することで、4:2:0フォーマットの符号化データを復号するための参照メモリを、ラインメモリとして有する画像復号装置で4:4:4フォーマットの符号化データを再生することができる。なお、本実施形態では、参照メモリのうちコラムメモリやフレームメモリを低減させる効果はないが、コラムメモリのサイズは小さく、フレームメモリは安価であるため、特に問題ではない。
  (変形例1)
 実施形態1では(局所)復号後、色差成分のブロックの一番下のラインの奇数位置、あるいは偶数位置の画素を参照メモリに格納した。変形例1では、実施形態1とは異なる位置の色差成分を参照メモリに格納する例を説明する。
 変形例1では、内部メモリの復号画素値x[m,N-1]を参照メモリに格納する時に、対象ブロックの1番下のラインのうち、図18(a)に示す位置の復号画素x[4m,N-1]とx[4m+3,N-1]のみを格納する。
  refImg[xBlk+4m,yBlk+N-1] = x[4m,N-1]
  refImg[xBlk+4m+3,yBlk+N-1] = x[4m+3,N-1]
 連続した配列z[]を用いる場合には、図18(b)に示すように、以下のように格納する。
  z[xBlk/2+m] = x[4m,N-1] 
  z[xBlk/2+m+1] = x[4m+3,N-1]
そして、1ブロックライン下のブロックを復号するために参照メモリrefImgから参照画素を読み出す時は、内部メモリの位置[4m,-1]と[4m+3,-1]に格納する。
  r[4m,-1] = refImg[xBlk+4m,yBlk-1] (m=0..M2/2-1)
  r[4m+3,-1] = refImg[xBlk+4m+3,yBlk-1] (m=0..M2/2-1)
 連続した配列z[]を用いる場合には、図18(c)に示すように、以下のように格納する。
  r[4m,-1] = z[xBlk/2+m]
  r[4m+3,-1] = z[xBlk/2+m+1]
次に、参照画素r[4m,-1]とr[4m+3,-1]を用いて、画素r[4m+1,-1]とr[4m+2,-1]を補間する。
  r[4m+1,-1] = r[4m,-1]
  r[4m+2,-1] = r[4m+3,-1]
 このように格納する画素位置を選んだ場合、左側ブロックの参照画素r[-1,-1]とのつながりが規則的でよいというメリットがある。また4画素幅のブロックの場合において、ブロックの境界画素を有することから、ブロックの性質をもっとも代表する画素値情報を得ることができる。
  (変形例2)
 実施形態1では参照メモリに格納していない画素の補間方法として平均値を用いる例を明した。変形例2では、それ以外の補間方法を説明する。
 図19(a)~(c)は参照画素を格納する内部メモリを1次元配列ref[]として表現している。図中、ref[k] (k=0..2N+1) (図10(b)の2次元配列の内部メモリr[-1,2N-1]~r[-1,-1]に相当)までは対象ブロックの左側の参照画素であり、ref[k](k=2N+2..2N+2M-1) (図10(b)のr[0,-1]~r[2M-1,-1]に相当)は対象ブロックの上側の参照画素である。対象ブロックの上側の参照画素は、図19(a)、(b)では奇数位置を参照し偶数位置を参照しない、図19(c)では[4m,-1]、[4m+3,-1]を参照し、[4m+1,-1]、[4m+2,-1]を参照しない。参照しない画素は、参照メモリとして保持する必要はない。
 図19(a)は、偶数位置の画素値r[2m,-1]を奇数位置の画素からコピーする例である。
  ref[2N+2m] = ref[2N+2m-1] (m=0..M2-1)
これは、2次元メモリの以下に相当する。
  r[2m,-1] = r[2m-1,-1] (m=0..M2-1)
参照メモリの奇数位置の画素を、偶数位置の画素から補間(コピー)する例では下記となる。
  ref[2N+2m+1] = ref[2N+2m]
これは、2次元メモリの以下に相当する。
  r[2m+1,-1] = r[2m,-1] (m=0..M2-1)
 図19(b)は実施形態1と同様、参照メモリから参照しない画素値ref[2N+2m]を隣接画素の平均値で補間する構成例である。
  ref[2N+2m] = (ref[2N+2m-1]+ref[2N+2m+1]+1)>>1 (m=0..M2-1)
これは、2次元メモリの以下に相当する。
  r[2m,-1] = (r[2m-1,-1]+r[2m+1,-1]+1)>>1 (m=0..M2-1)
参照メモリに奇数位置の画素を参照しない構成では、補間(平均)は下記となる。
  ref[2N+2m+1] = (ref[2N+2m]+ref[2N+2m+2]+1)>>1 (m=0..M2-1)
  r[2m+1,-1] = (r[2m,-1]+r[2m+2,-1]+1)>>1 (m=0..M2-1)
また補間は近傍のL+1個の画素の重み付き平均でもよい。
       L/2
  r[2m,-1] = Σw(i+L/2)*r[2(m+i)-1,-1]+0.5 (偶数位置の画素が未格納)
      i=-L/2
  Σw(i)=1
        L/2
  r[2m+1,-1] = Σw(i+L/2)*r[2(m+i),-1]+0.5 (奇数位置の画素が未格納)
       i=-L/2
  Σw(i)=1
ここでw(i)は重み係数である。
 図19(c)は変形例1と同様、[4m,N-1]と[4m+3,N-1]の位置の画素を参照メモリから参照し、[4m+1,N-1]と[4m+2,N-1]の画素は参照メモリから参照しない場合に、画素値r[4m+1,-1]、r[4m+2,-1]を隣接画素からコピーする例である。
  ref[2N+4m+1] = ref[2N+4m] (m=0..M2/2-1)
  ref[2N+4m+2] = ref[2N+4m+3] (m=0..M2/2-1)
これは、2次元メモリの以下に相当する。
  r[4m+1,-1] = r[4m,-1] (m=0..M2/2-1)
  r[4m+2,-1] = r[4m+3,-1] (m=0..M2/2-1)
 なお、参照する画素を、参照メモリから読み出す処理は以下で示すことができる。図19(a)(b)の例には、
  ref[2N+2m-1] = refImg[xBlk+2m-1,yBlk-1]
連続した1次元配列の場合は下記である。
  ref[2N+2m-1]= z[xBlk/2+m]
図19(c)の例には、
  ref[2N+4m ] = refImg[xBlk+4m,yBlk-1]
  ref[2N+4m+3] = refImg[xBlk+4m+3,yBlk-1]
連続した1次元配列の場合は下記である。
  ref[2N+4m ] = z[xBlk/2+m]
  ref[2N+4m+3] = z[xBlk/2+m+1]
 補間画素をコピーや平均で生成する方法は処理が簡略であるというメリットがある。補間に必要な画素数を増やし、重み係数を利用する方法は、処理はやや複雑だが、参照画素間の変化が滑らかになるので、画質が劣化しないというメリットがある。また後段で実施する参照画素フィルタと処理を共通化することで、処理量を増やさないこともできる。
  (変形例3)
 変形例3は画像処理装置と画像復号装置がループフィルタの構成を有し、ループフィルタ用の参照メモリとイントラ予測用の参照メモリを共通に使用する例である。図12およびループフィルタで説明したように、ループフィルタを実施するためには少なくとも2ライン分の参照メモリが必要である。図20に示すように、4:2:0フォーマット用の2ライン分の参照メモリ(図20(a))を使用すれば、色差成分においても、4:4:4フォーマット用の1ライン分の参照画素を格納することができる(図20(b))。この場合、イントラ予測の処理の変更は不要である。ただし、ループフィルタと参照メモリを共通に使用するので、ループフィルタで使用する参照画素を1ライン分に変更する必要がある。
  (変形例4)
 画像復号装置の復号処理をCTU単位で実施する場合、内部メモリにCTUの全情報を格納することができる。従って、イントラ予測の参照画素が同じCTUであれば、CTUの内部メモリから読み出すことができる。図26はCTUとその内部のCUを示す図である。図中、実線の矩形はCTU、破線の矩形はCUである。例えばCTU3を処理している場合、CU301は、上側の参照画素として、同じCTU3のCUであるCU300の画素にアクセスすることができる。しかしCU300は、上側の画素として、異なるCTU1のCUであるCU12の画素にアクセスすることはできない。異なるCTU1の画素は内部メモリには存在しないからである。このように、図26において太線をまたいで参照する処理は参照メモリに格納された画素を読み出す必要があり、実施形態1で説明した参照画素の制約を用いることができる。
 変形例4では、CTU境界では、上側CUの画素を参照するイントラ予測をオフにし、CTU内部のCU境界では上側CUの画素を参照するイントラ予測をオンにする。つまりCTU境界では、イントラ予測は左側CUの画素のみ参照する。
 図27は変形例4の動作を示すフローチャートである。画像符号化装置11あるいは画像復号装置31はCU境界がCTU境界か否かを判定する(S2702)。画像符号化装置11あるいは画像復号装置31は、CTU境界であれば(S2702でY)S2706に進み、CTU境界でなければ(S2702でN)S2704に進む。CTU境界でなければ、画像符号化装置11あるいは画像復号装置31は通常の上側CUおよび左側CUの画素を参照するイントラ予測をオンにする(S2704)。CTU境界ならば、画像符号化装置11あるいは画像復号装置31は、イントラ予測は左側の参照画素のみを参照する予測モードを使用する(S2706)。
 以上説明したように、CTU境界では、上側の参照画素を参照するイントラ予測をオフにすることによって、参照メモリに格納した画素を使用せず、イントラ予測を実施することができる。そのため、4:2:0フォーマットの符号化データを復号するための参照メモリを有する画像復号装置で4:4:4フォーマットの符号化データを復号することができる。
  (変形例5)
 変形例5では参照メモリのサイズや格納方法に関わらず、色差成分のイントラ予測で参照する参照画素を規定する、実施形態1、変形例1~2の別の一例である。変形例5では水平方向の画素位置を輝度成分と同じ座標系(図10の(b)の輝度の座標系)で表す。そのため、4:2:0フォーマットでは、色差成分の画素位置は[2m,2n]と表され、4:4:4フォーマットでは、色差成分の画素位置は[m,n]と表される。
 イントラ予測では、ブロックの上側に位置する水平方向の参照画素として、図10(b)に示す奇数位置のr[2m-1,-1]のみを参照する。そして、r[2m,-1]を実施形態1、変形例1、変形例2のいずれかの方法で補間する。偶数位置の画素の算出に平均値を用いる場合は、
  r[2m,-1] = (r[2m-1,-1]+r[2m+1,-1]+1)>>1
偶数位置の画素を奇数位置の参照画素からコピーする場合は
  r[2m,-1] = r[2m-1,-1]
偶数位置の画素を重み付平均で算出する場合は
       L/2
  r[2m,-1] = Σw(i+L/2)*r[2(m+i)-1,-1]+0.5
      i=-L/2
  Σw(i)=1
である。
 イントラ予測は、r[2m-1,-1]と補間したr[2m,-1]を(式1)~(式3)に代入してイントラ予測値を算出する。
 なお、水平方向の参照画素は、偶数位置r[2m,-1]を参照し、奇数位置r[2m+1,-1]を補間により算出してもよい。
奇数位置の画素の算出に平均値を用いる場合は、
  r[2m+1,-1] = (r[2m,-1]+r[2m+2,-1]+1)>>1
奇数位置の画素を奇数位置の参照画素からコピーする場合は
  r[2m+1,-1] = r[2m,-1]
偶数位置の画素を重み付平均で算出する場合は
        L/2
  r[2m+1,-1] = Σw(i+L/2)*r[2(m+i),-1]+0.5
       i=-L/2
  Σw(i)=1
 また、r[4m,-1]、r[4m+3,-1]を参照し、r[4m+1,-1]、r[4m+2,-1]を補間により算出してもよい。
  r[4m+1,-1] = r[4m,-1]
  r[4m+2,-1] = r[4m+3,-1]
 このように参照画素に関する制約を導入することで、参照メモリのサイズや格納方法に関係なく、イントラ予測を実施することができる。また、参照画素に関する制約のみを規定するので、高速にアクセス可能な小サイズのメモリに参照する画素のみを格納してコストを削減する等の、実装の工夫が容易になる。
  (実施形態2)
 (ループフィルタ)
 4:2:0フォーマット準拠の画像復号装置において、4:4:4フォーマットの符号化データのCTUブロック境界にループフィルタをかけるために、参照メモリから色差成分の参照画素を内部メモリに格納した状態の一例を図15(b)に示す。符号化データが4:4:4フォーマットであるので、色差成分の対象ブロックQ(画素q[m,n]、m=0..M-1,n=0..N-1)は輝度成分と同じサイズ(M*N)の画素を持つ。しかし、ループフィルタに必要な対象ブロックの1ブロックライン上のブロックP(画素p[m,n]、m=0..M-1,n=0..N-1)はブロックQに隣接する2ラインが参照メモリに格納されており、4:2:0フォーマットの色差成分は4:4:4フォーマットの色差成分の半分であるので、必要な画素の半分しか格納することができない。そのため、図15(b)では、ブロックPには偶数位置p[2m,0]、p[2m,1]の参照画素がないが、これらの参照画素は、ブロック境界の画素へのループフィルタ(デブロッキングフィルタ、SAOのEO、ALF)に不可欠である。さらに、ブロック境界に接する画素p[2m,0]は、フィルタをかける時に参照されるだけではなく、p[2m,0]自体にフィルタをかけ、画素値を変更する。一方、CTUブロック内部では、色差成分を格納するために必要なサイズのメモリを有している。
 そのため、実施形態2の画像符号化装置および画像復号装置では、4:2:0フォーマットの場合、または、4:4:4フォーマットでCTUブロック境界に隣接しない場合は、ブロック境界の上側2ラインを内部メモリから参照し、4:4:4フォーマットでCTUブロックに隣接する場合には、ブロック境界の上側1ラインを参照する。これにより、例えば、図21(a)~(c)に示すように、内部メモリの復号画素値p[m,N-1]、p[m,N-2]を参照メモリに格納する時に、4:4:4フォーマットのブロックPの1番下のラインの全画素を、水平方向の解像度が半分しかない4:2:0フォーマット用の色差成分の参照メモリ2ライン分を用いて格納することができる。4:2:0フォーマットでは、色差のループフィルタ用に2ライン分のラインメモリを保持しているので処理が可能である。つまり図21(b)の参照メモリZ(配列の要素z[])には、k番目のブロックPの一番下のラインの画素を格納する。
  z[xBlk +m] = p[m,0]  (m=0..M-1)
 この処理は、2次元メモリで記載すると以下と等価である。
  refImg [xBlk+m,yBlk+N-1] = p[m,0]  (m=0..M-1)
そしてフィルタリングで参照するため、内部メモリに読み出す時は、図21(c)のように、参照メモリZの画素値を参照する。
  p[m,0] = z[xBlk +m] (m=0..M-1)
 この処理は、2次元メモリで記載すると以下と等価である。
  p[m,0] = refImg[xBlk+m,yBlk-1] (m=0..M-1)
内部メモリにおいて、ブロックPの下から2ライン目を参照しない構成では、CTUブロックの境界を越える場合に、ループフィルタの対象画素の算出方法、および参照画素を変更する。以下に詳細に説明する。
 (デブロッキングフィルタ、SAOのEO)
 図22(a)は、図21(c)で参照メモリからブロックPの一番下のラインの画素p[m,0]を読み出して格納した状況と同じである。破線で示すブロックPの下から2番目のラインの画素p[m,1]は参照メモリから参照しない。つまりループフィルタ107または305は、色差成分、かつ、4:4:4フォーマット、かつ、CTUブロックの境界(yBlk=yBlk/CTUサイズ*CTUサイズ)を越える場合に、ブロックPの水平境界1ライン目は参照メモリrefImgの一番下のラインを参照し、ブロックPの水平境界2ライン目は、同じブロックの1番下のラインの参照画素p[m,0]の値をコピーして導出する。
  p[m,0] = refImg[xBlk+m,yBlk-1] (m=0..M-1)
  p[m,1] = p[m,0]         (m=0..M-1)
 それ以外 (輝度成分、もしくは、4:2:0フォーマット、もしくは、yBlk!=yBlk/CTUサイズ*CTUサイズ) の場合、
  p[m,0] = refImg[xBlk+m,yBlk-1] (m=0..M-1)
  p[m,1] = refImg[xBlk+m,yBlk-2] (m=0..M-1)
 デブロッキングフィルタでは、デブロッキングフィルタを実施すると判定された場合、q[m,1]、q[m,0]、p[m,0]、およびコピーして生成したp[m,1]を(式4)に代入して、フィルタリング後の画素値q[m,0]、p[m,0]を算出する。
 SAOのEOでは、p[m-1,0]、p[m+1,0]、q[m-1,0]、q[m,0]、q[m+1,0]、およびコピーして生成したp[m-1,1]、p[m,1]、p[m+1,1]を参照して選択したoffsetPを(式5)に代入し、フィルタリング後のp[m,0]を算出する。また、p[m-1,0]、p[m,0]、p[m+1,0]、q[m-1,0]、q[m+1,0]、q[m-1,1]、q[m,1]、q[m+1,1]を参照して選択したoffsetQを(式5)に代入し、フィルタリング後のq[m,0]を算出する。
 以上により、デブロッキングフィルタとSAOのEOでは、図22(b)に示すようにブロックP、Q境界の2ラインの画素をフィルタリングすることができる。
 図17(b)は上記の動作を説明するフローチャートである。図中S1416、S1422、S1424は図14(b)と同じ動作であり、説明を省略する。ループフィルタ107または305は、参照メモリから対象ブロックの予測に必要な参照画素(例えば、図21(b)のz[xBlk+m])を読み出し、ループフィルタ107または305の(図示されない)内部メモリp[m,0])に格納する(S1714)。
  p[m,0] = z[xBlk+m] (m=0..M-1)
 この処理は、2次元メモリで記載すると以下と等価である。
  p[m,0] = refImg[xBlk+m,yBlk-1] (m=0..M-1)
ループフィルタ107または305は、内部メモリのM個の参照画素p[m,0]を参照画素p[m,1]にコピーする(S1715)。
  p[m,1] = p[m,0] (m=0..M-1)
参照メモリから読み出した参照画素、それをコピーした参照画素、および内部メモリの参照画素を用いてフィルタリングを実施する(S1416)。ループフィルタ107または305は、ブロックQの一番下のラインを参照メモリに格納する(S1720)。
 この方法は、参照メモリから読み出して内部メモリに格納したブロックPの1ラインを内部メモリにコピーする処理が増える以外は従来と同じ処理であり、変更が容易である。
  (変形例6)
 実施形態2のデブロッキングフィルタでは、図22(b)に示すようにブロック境界の画素p[m,0]およびq[m,0]に対しフィルタリングを実施する例を説明した。変形例6では、ブロック境界の画素q[m,0]に対しフィルタリングを実施する例を説明する。
 図22(c)に示すように、変形例4では、色差成分、かつ、4:4:4フォーマット、かつ、CTUブロックの境界(yBlk=yBlk/CTUサイズ*CTUサイズ)を越える場合に、ブロック境界の画素q[m,0]に対しフィルタリングを実施するが、p[m,0]にはフィルタをかけない。1つの方法は実施形態2で実施した(式5)のフィルタリングをq[m,0]に対してのみ実施する。この場合、その他の処理は実施形態2と全く同じである。
 別の方法として、下式でq[m,0]を算出する。
  q[m,0] = (a1*q[m,0]+a2*p[m,0]+a3*q[m,1]+4)>>3
  a1+a2+a3=8
例えば、a1=4、a2=3、a3=1である。
 この方法では、p[m,1]を参照しないので、実施形態2とは異なり、p[m,0]からp[m,1]へのコピーが発生しない。
 なお、上記以外(輝度成分、もしくは、4:2:0フォーマット、もしくは、yBlk!=yBlk/CTUサイズ*CTUサイズ)の場合には、通常通り、全てのp[m,0]、p[m,1]、q[m,0]、q[m,1]を参照してフィルタ処理をすればよい。
  (変形例7)
 実施形態2では、対象ブロックQの上側ブロックPの一番下のラインの全画素を参照メモリから参照する場合のデブロッキングフィルタおよびSAOのEOの処理を説明した。変形例7では、図23(a)に示すように、参照メモリ上に格納した、ブロックPの奇数位置の画素を2ライン分を参照し、偶数位置の画素は参照しない場合のデブロッキングフィルタの処理を説明する。以下は、色差成分、かつ、4:4:4フォーマット、かつ、CTUブロックの境界(yBlk=yBlk/CTUサイズ*CTUサイズ)を越える場合であり、それ以外の場合には、既に説明した通りの処理で良い。
 図23(a)に示すように、奇数位置ではデブロッキングフィルタに必要な全ての画素(p[2m+1,1]、p[2m+1,0]、q[2m+1,0]、q[2m+1,1]、m=0..M2-1)がそろっており、(式4)に代入することでq[2m+1,0]のデブロッキング処理を実施する。p[m,0]はフィルタリングしない。
 次に偶数位置の画素q[2m,0]を、奇数位置のデブロッキング済みの画素を用いて補正する。
  q[2m,0] = (q[2m-1,0]+ 6*q[2m,0]+ q[2m+1,0]+4)>>3
また、以下のように補正範囲にクリップ処理を追加しても好適である。
  Δq = Clip3(-tc,tc, (q[2m-1,0]- 2*q[2m,0]+ q[2m+1,0]+4)>>3 )
  q[2m,0] = Clip1(q[2m,0]+Δq)
また、以下のように、奇数位置([2m-1,0]の位置)のデブロッキング処理において導出した補正値を、偶数位置の補正処理に利用しても良い。
  Δ= Clip3(-tc,tc,(((q[2m-1,0]-p[2m-1,0])<<2)+p[2m-1,1]-q[2m-1,1]+4)>>3)
  q[2m,0] = Clip1(q[2m,0]-Δ)
奇数位置は、2m-1の代わりに2m+1でもよい。
また、奇数位置として2m+1と2m-1の両方を利用する、以下の式でもよい。
  Δp = (q[2m-1,0]-p[2m-1,0])<<2)+p[2m-1,1]-q[2m-1,1]
  Δm = (q[2m+1,0]-p[2m+1,0])<<2)+p[2m+1,1]-q[2m+1,1]
  Δ= Clip3(-tc,tc,(Δp+Δm+8)>>4)
  q[2m,0] = Clip1(q[2m,0]-Δ)
 以上のように、奇数位置の画素のみ参照メモリに格納し、奇数位置では4画素を参照してデブロッキングフィルタを実施し、偶数位置の画素は奇数位置のデブロッキングフィルタ後の画素から補間して算出することで、4:2:0フォーマット用サイズの参照メモリでも、4:4:4フォーマットの符号化データを復号することができる。
 なお、変形例5では、ブロックPの奇数位置の画素を参照メモリに参照する例を説明したが、ブロックPの偶数位置の画素を参照メモリに参照する構成でもよい。この場合、上記2mを2m+1(もしくは2m-1)に置き換える。
 (ALF)
 4:2:0フォーマット準拠の画像復号装置において、4:4:4フォーマットの符号化データにCTUブロック境界にALFをかけるために、参照メモリから色差成分の参照画素を内部メモリに格納した状態の一例を図28(a)に示す。実線で示した画素は参照メモリに格納される画素であり、破線で示す画素は参照メモリに格納されない画素である。符号化データが4:4:4フォーマットであるので、色差成分の対象ブロックQ(画素q[m,n]、m=0..M-1,n=0..N-1)は輝度成分と同じサイズ(M*N)の画素を持つ。しかし、ALFに必要な対象ブロックの1ブロックライン上のブロックP(画素p[m,n]、m=0..M-1,n=0..N-1)はブロックQに隣接する4ラインが参照メモリに格納されており、4:2:0フォーマットの色差成分は4:4:4フォーマットの色差成分の半分であるので、必要な画素の半分しか格納することができない。そのため、図28(a)では、ブロックPには偶数位置p[2m,0]、p[2m,1]、p[2m,2]、p[2m,3]の参照画素がないが、これらの参照画素は、ブロック境界の画素へのALFに不可欠である。さらに、ブロック境界に接する画素p[2m,0]、p[2m,1]は、フィルタをかける時に参照されるだけではなく、p[2m,0]、p[2m,1]自体にフィルタをかけ、画素値を変更する。一方、CTUブロック内部では、色差成分を格納するために必要なサイズのメモリを有している。
 そのため、実施形態2の画像符号化装置および画像復号装置では、4:2:0フォーマットの場合、または、4:4:4フォーマットでCTUブロックに隣接しない場合は、ブロック境界の上側4ラインを内部メモリから参照し、4:4:4フォーマットでCTUブロックに隣接する場合には、ブロック境界の上側2ラインを参照する。つまり、例えば、図28(b)に示すように、内部メモリの復号画素を参照メモリに格納する時に、4:4:4フォーマットのブロックPの1番下の2ラインの画素を、水平方向の解像度が半分しかない4:2:0フォーマット用の色差成分の参照メモリ4ライン分に格納する。4:2:0フォーマットでは、色差のループフィルタ用に4ライン分のラインメモリを保持しているのでこの処理が可能である。参照メモリZ(配列の要素z[])には、k番目のブロックPの一番下の2ラインの画素を格納する。
  z[xBlk+m] = p[m,0]  (m=0..M-1)
  z[xBlk+width+m] = p[m,1]  (m=0..M-1)
ここでwidthは画像の水平方向のサイズである。
 この処理は、2次元メモリで記載すると以下と等価である。
  refImg [xBlk+m,yBlk+N-1] = p[m,0]  (m=0..M-1)
  refImg [xBlk+m,yBlk+N-2] = p[m,1]  (m=0..M-1)
そしてフィルタリングで参照するため、内部メモリに読み出す時は、下記のように参照メモリZの画素値を参照する。
  p[m,0] = z[xBlk+m] (m=0..M-1)
  p[m,1] = z[xBlk+width+m] (m=0..M-1)
 この処理は、2次元メモリで記載すると以下と等価である。
  p[m,0] = refImg[xBlk+m,yBlk-1] (m=0..M-1)
  p[m,1] = refImg[xBlk+m,yBlk-2] (m=0..M-1)
ここで、xBlk、yBlkはブロックQの左上座標である。
内部メモリにおいて、ブロックPの下から2ラインのみを参照する構成では、CTUブロックの境界を越える場合に、ALFの対象画素の算出方法、および参照画素を変更する。以下に詳細に説明する。
 図12(d)~(g)に示すように、通常、ALFを実施する場合、色差成分は4ライン分の参照メモリが必要である。本願では図24に示すように、CTUブロック境界では色差成分のALFフィルタの形状を変化させることで、2ライン分の参照メモリでALFを実施する技術を説明する。イントラ予測やデブロッキングフィルタ、SAO(EO)と同様、以下についても、色差成分、かつ、4:4:4フォーマット、かつ、CTUブロックの境界(yBlk=yBlk/CTUサイズ*CTUサイズ)を越える場合に実施し、それ以外の場合には、通常通りの処理で良い。
 図24(a)の斜線に示すp[m,2]は、ブロックPの内部の画素だけで従来のALFを実施できる、ブロックP内の一番下のライン上の画素である。斜線で示した画素はフィルタリングの対象画素であり、白画素は参照画素である。また、太線で示す図中のブロックP、Qの境界はCTUブロックの境界である。通常、p[m,1]は、図12(d)に示すようにブロックQの画素を参照しなければならない。そして、図12(g)に示すq[m,1]までは自ブロックの画素だけではALFを実施することはできない。しかし、図24(b)~(e)に示すように、CTUブロック境界ではALFフィルタ形状を5x5から5x3に変更することで、参照するメモリを2ラインに削減することができる。フィルタ形状を5x3に変更すると、図24(b)に示すようにp[m,1]もブロックP内の画素だけでALFを実施することができる。また、図24(e)に示すように、q[m,1]もブロックP内の画素だけでALFを実施することができる。一方、図24(c)のp[m,0]、(d)のq[m,0]のみは自ブロック内の画素だけでALFを実施できない。この時に必要な参照メモリは図24(c)、(d)に示すように2ラインである。5x5のALFのフィルタ係数を図25(a)、5x3のALFのフィルタ係数を図25(b)とすると、ALFは以下のように表すことができる。
 n>=2の場合、
  p[m,n] = f0*p[m,n+2]+ f1*p[m-1,n+1]+ f2*p[m,n+1]+ f3*p[m+1,n+1]+ f4*p[m-2,n]+ f5*p[m-1,n]+ f6*p[m,n]+ f7*p[m+1,n]+ f8*p[m+2,n]+ f9*p[m-1,n-1]+ f10*p[m,n-1]+ f11*p[m+1,n-1]+ f12*p[m,n-2]
q[x,y]の算出は、 p[x,y]をq[x,y]と置き換えた式となる。
 n=1の場合、
  p[m,n] = g0*p[m-1,n+1]+ g1*p[m,n+1]+ g2*p[m+1,n+1]+ g3*p[m-2,n]+ g4*p[m-1,n]+ g5*p[m,n]+ g6*p[m+1,n]+ g7*p[m+2,n]+ g8*p[m-1,n-1]+ g9*p[m,n-1]+ g10*p[m+1,n-1]
q[x,y]の算出は、 p[x,y]をq[x,y]と置き換えた式となる。
 n=0の場合、
  p[m,n] = g0*p[m-1,n+1]+ g1*p[m,n+1]+ g2*p[m+1,n+1]+ g3*p[m-2,n]+ g4*p[m-1,n]+ g5*p[m,n]+ g6*p[m+1,n]+ g7*p[m+2,n]+ g8*q[m-1,n]+ g9*q[m,n]+ g10*q[m+1,n]
q[x,y]の算出は、 p[x,y]をq[x,y]と置き換えた式となる。
 なお、上記ではフィルタ形状をSxS=5x5から5x3に変更する例を説明したが、Sx(S-2)タップフィルタであれば、上記の例に限らず(S-3)ライン分のメモリを準備すればよい。
 以上説明したように、ALFは、色差成分にフィルタをかける時に、4:4:4フォーマット、かつ、CTUブロックの境界(yBlk=yBlk/CTUサイズ*CTUサイズ)では、菱形形状の5x3フィルタを使用し、それ以外では菱形形状の5x5フィルタを使用する。このように、フィルタ形状を変更することにより、4:2:0フォーマット準拠の画像復号装置で4:4:4フォーマットの符号化データを復号することができる。
 なお、4:2:0フォーマットの4ライン分の参照メモリは、4:4:4フォーマットの2ライン分のメモリと同じサイズである。そのため、ALFと参照メモリを共有する場合、イントラ予測やデブロッキングフィルタ、SAOのEOは通常の処理を実施することができる。
  (変形例8)
 さらに別の例として、変形例8は、CTU境界では上側CUの画素を参照するループフィルタをオフにし、CTU内部のCU境界ではループフィルタをオンにする技術を説明する。
 図27は変形例8の動作を示すフローチャートである。画像符号化装置11あるいは画像復号装置31はCU境界がCTU境界か否かを判定する(S2702)。画像符号化装置11あるいは画像復号装置31は、CTU境界であれば(S2702でY)S2706に進み、CTU境界でなければ(S2702でN)S2704に進む。CTU境界でなければ、画像符号化装置11あるいは画像復号装置31はループフィルタをオンにする(S2704)。CTU境界ならば、画像符号化装置11あるいは画像復号装置31は、ループフィルタをオフにする(S2706)。
 以上説明したように、CTU境界ではループフィルタをオフにすることによって、参照メモリに格納した画素を使用せず、ループフィルタを実施することができる。そのため、4:2:0フォーマットの符号化データを復号するラインメモリを有する画像復号装置で、4:4:4フォーマットの符号化データを復号することができる。
 本発明の一態様に係る画像符号化装置は、前記入力動画像の1画面を複数の画素からなるブロックに分割する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記入力動画像から前記予測画素値を減算し、第1の予測誤差を算出する手段と、前記予測誤差を変換、量子化し、量子化変換係数を出力する手段と、前記量子化変換係数を可変長符号化する手段とを備え、前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする。
 本発明の一態様に係る画像符号化装置では、さらに、前記第1の参照画素は奇数画素位置の画素であり、前記第2の参照画素は偶数画素位置の画素であることを特徴とする。
 本発明の一態様に係る画像符号化装置では、さらに、前記第1の参照画素は偶数画素位置の画素であり、前記第2の参照画素は奇数画素位置の画素であることを特徴とする。
 本発明の一態様に係る画像復号装置は、複数の画素からなるブロックを処理単位として、符号化データを可変長復号して量子化変換係数を出力する手段と、量子化変換係数を逆量子化、逆変換して第2の予測誤差を出力する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記予測画素値と前記予測誤差を加算する手段とを備え、前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする
 本発明の一態様に係る画像復号装置では、さらに、前記第1の参照画素は奇数画素位置の画素であり、前記第2の参照画素は偶数画素位置の画素であることを特徴とする。
 本発明の一態様に係る画像復号装置では、さらに、前記第1の参照画素は偶数画素位置の画素であり、前記第2の参照画素は奇数画素位置の画素であることを特徴とする。
 本発明の一態様に係るデブロッキングフィルタ装置は、フィルタリングで参照する画素を格納するメモリと、メモリから読み出した参照画素とフィルタリングの対象画素からなるT画素を参照してフィルタ処理を実施するフィルタ手段と、2つのブロックの水平境界において、色差成分は上側のブロックのT/4ラインの対象画素(第1の対象画素)をメモリから読み出し、メモリから読み出さない上側のブロックのT/4ラインの参照画素(第3の参照画素)は第1の対象画素をコピーすることで導出し、前記フィルタ手段は、第1の対象画素と第3の参照画素と対象ブロックの画素を参照して、色差成分のフィルタリングの対象画素を算出することを特徴とする。
 本発明の一態様に係るループフィルタ装置では、フィルタリングで参照する画素を格納するメモリと、メモリから読み出した参照画素とフィルタリングの対象画素からなる画素を参照して、色差成分に菱形形状のフィルタをかけるフィルタ手段と、2つのブロックの水平境界において、色差成分は上側のブロックの画素のうち、ブロック境界側のS-3ラインの画素(第1の対象画素)をメモリから読み出し、前記フィルタ手段は、水平境界を接するブロックの画素のうち、ブロック境界から(S/2+1)ラインまでは、SxS菱形形状のフィルタをかけ、ブロック境界からS/2ラインまでは、Sx(S-2)菱形形状のフィルタをかけることで、色差成分のフィルタリングを実施することを特徴とする。
 本発明の一態様に係るループフィルタ装置では、さらに、前記ブロックが符号化ユニット(CU)である場合は、上記処理を実施せず、前記ブロックが符号化ツリーユニット(CTU)である場合は、上記処理を実施することを特徴とする。
 本発明の一態様に係る画像復号装置は、複数の画素からなるブロックを処理単位として、符号化データを可変長復号して量子化変換係数を出力する手段と、量子化変換係数を逆量子化、逆変換して第2の予測誤差を出力する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記予測画素値と前記予測誤差を加算し、復号画像を導出する手段と、復号画像をフィルタリングする手段とを備え、前記予測手段またはフィルタリング手段では、記ブロック境界がCU境界である場合とCTU境界である場合とで異なる処理を実施することを特徴とする。
 本発明の一態様に係る画像符号化装置は、前記入力動画像の1画面を複数の画素からなるブロックに分割する手段と、前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、前記入力動画像から前記予測画素値を減算し、第1の予測誤差を算出する手段と、前記予測誤差を変換、量子化し、量子化変換係数を出力する手段と、前記量子化変換係数を可変長符号化する手段と、量子化変換係数を逆量子化、逆変換して第2の予測誤差を出力する手段と、前記予測画素値と前記予測誤差を加算し、復号画像を導出する手段と、復号画像をフィルタリングする手段とを備え、前記予測手段またはフィルタリング手段では、記ブロック境界がCU境界である場合とCTU境界である場合とで異なる処理を実施することを特徴とする。
  (ソフトウェアによる実現例)
 なお、上述した実施形態における画像符号化装置11、画像復号装置31の一部、例えば、エントロピー復号部301、予測パラメータ復号部302、ループフィルタ305、予測画像生成部308、逆量子化・逆変換部311、加算部312、予測画像生成部101、減算部102、変換・量子化部103、エントロピー符号化部104、逆量子化・逆変換部105、ループフィルタ107、符号化パラメータ決定部110、予測パラメータ符号化部111をコンピュータで実現するようにしても良い。その場合、この制御機能を実現するためのプログラムをコンピュータ読み取り可能な記録媒体に記録して、この記録媒体に記録されたプログラムをコンピュータシステムに読み込ませ、実行することによって実現しても良い。なお、ここでいう「コンピュータシステム」とは、画像符号化装置11、画像復号装置31のいずれかに内蔵されたコンピュータシステムであって、OSや周辺機器等のハードウェアを含むものとする。また、「コンピュータ読み取り可能な記録媒体」とは、フレキシブルディスク、光磁気ディスク、ROM、CD-ROM等の可搬媒体、コンピュータシステムに内蔵されるハードディスク等の記憶装置のことをいう。さらに「コンピュータ読み取り可能な記録媒体」とは、インターネット等のネットワークや電話回線等の通信回線を介してプログラムを送信する場合の通信線のように、短時間、動的にプログラムを保持するもの、その場合のサーバやクライアントとなるコンピュータシステム内部の揮発性メモリのように、一定時間プログラムを保持しているものも含んでも良い。また上記プログラムは、前述した機能の一部を実現するためのものであっても良く、さらに前述した機能をコンピュータシステムにすでに記録されているプログラムとの組み合わせで実現できるものであっても良い。
 また、上述した実施形態における画像符号化装置11、画像復号装置31の一部、または全部を、LSI(Large Scale Integration)等の集積回路として実現しても良い。画像符号化装置11、画像復号装置31の各機能ブロックは個別にプロセッサ化しても良いし、一部、または全部を集積してプロセッサ化しても良い。また、集積回路化の手法はLSIに限らず専用回路、または汎用プロセッサで実現しても良い。また、半導体技術の進歩によりLSIに代替する集積回路化の技術が出現した場合、当該技術による集積回路を用いても良い。
  (応用例)
 上述した画像符号化装置11及び画像復号装置31は、動画像の送信、受信、記録、再生を行う各種装置に搭載して利用することができる。なお、動画像は、カメラ等により撮像された自然動画像であってもよいし、コンピュータ等により生成された人工動画像(CG及びGUIを含む)であってもよい。
 まず、上述した画像符号化装置11及び画像復号装置31を、動画像の送信及び受信に利用できることを、図8を参照して説明する。
 図8の(a)は、画像符号化装置11を搭載した送信装置PROD_Aの構成を示したブロック図である。図8の(a)に示すように、送信装置PROD_Aは、動画像を符号化することによって符号化データを得る符号化部PROD_A1と、符号化部PROD_A1が得た符号化データで搬送波を変調することによって変調信号を得る変調部PROD_A2と、変調部PROD_A2が得た変調信号を送信する送信部PROD_A3と、を備えている。上述した画像符号化装置11は、この符号化部PROD_A1として利用される。
 送信装置PROD_Aは、符号化部PROD_A1に入力する動画像の供給源として、動画像を撮像するカメラPROD_A4、動画像を記録した記録媒体PROD_A5、動画像を外部から入力するための入力端子PROD_A6、及び、画像を生成または加工する画像処理部A7を更に備えていてもよい。図8の(a)においては、これら全てを送信装置PROD_Aが備えた構成を例示しているが、一部を省略しても構わない。
 なお、記録媒体PROD_A5は、符号化されていない動画像を記録したものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化された動画像を記録したものであってもよい。後者の場合、記録媒体PROD_A5と符号化部PROD_A1との間に、記録媒体PROD_A5から読み出した符号化データを記録用の符号化方式に従って復号する復号部(不図示)を介在させるとよい。
 図8の(b)は、画像復号装置31を搭載した受信装置PROD_Bの構成を示したブロック図である。図8の(b)に示すように、受信装置PROD_Bは、変調信号を受信する受信部PROD_B1と、受信部PROD_B1が受信した変調信号を復調することによって符号化データを得る復調部PROD_B2と、復調部PROD_B2が得た符号化データを復号することによって動画像を得る復号部PROD_B3と、を備えている。上述した画像復号装置31は、この復号部PROD_B3として利用される。
 受信装置PROD_Bは、復号部PROD_B3が出力する動画像の供給先として、動画像を表示するディスプレイPROD_B4、動画像を記録するための記録媒体PROD_B5、及び、動画像を外部に出力するための出力端子PROD_B6を更に備えていてもよい。図8の(b)においては、これら全てを受信装置PROD_Bが備えた構成を例示しているが、一部を省略しても構わない。
 なお、記録媒体PROD_B5は、符号化されていない動画像を記録するためのものであってもよいし、伝送用の符号化方式とは異なる記録用の符号化方式で符号化されたものであってもよい。後者の場合、復号部PROD_B3と記録媒体PROD_B5との間に、復号部PROD_B3から取得した動画像を記録用の符号化方式に従って符号化する符号化部(不図示)を介在させるとよい。
 なお、変調信号を伝送する伝送媒体は、無線であってもよいし、有線であってもよい。また、変調信号を伝送する伝送態様は、放送(ここでは、送信先が予め特定されていない送信態様を指す)であってもよいし、通信(ここでは、送信先が予め特定されている送信態様を指す)であってもよい。すなわち、変調信号の伝送は、無線放送、有線放送、無線通信、及び有線通信の何れによって実現してもよい。
 例えば、地上デジタル放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を無線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。また、ケーブルテレビ放送の放送局(放送設備など)/受信局(テレビジョン受像機など)は、変調信号を有線放送で送受信する送信装置PROD_A/受信装置PROD_Bの一例である。
 また、インターネットを用いたVOD(Video On Demand)サービスや動画共有サービスなどのサーバ(ワークステーションなど)/クライアント(テレビジョン受像機、パーソナルコンピュータ、スマートフォンなど)は、変調信号を通信で送受信する送信装置PROD_A/受信装置PROD_Bの一例である(通常、LANにおいては伝送媒体として無線または有線の何れかが用いられ、WANにおいては伝送媒体として有線が用いられる)。ここで、パーソナルコンピュータには、デスクトップ型PC、ラップトップ型PC、及びタブレット型PCが含まれる。また、スマートフォンには、多機能携帯電話端末も含まれる。
 なお、動画共有サービスのクライアントは、サーバからダウンロードした符号化データを復号してディスプレイに表示する機能に加え、カメラで撮像した動画像を符号化してサーバにアップロードする機能を有している。すなわち、動画共有サービスのクライアントは、送信装置PROD_A及び受信装置PROD_Bの双方として機能する。
 次に、上述した画像符号化装置11及び画像復号装置31を、動画像の記録及び再生に利用できることを、図9を参照して説明する。
 図9の(a)は、上述した画像符号化装置11を搭載した記録装置PROD_Cの構成を示したブロック図である。図9の(a)に示すように、記録装置PROD_Cは、動画像を符号化することによって符号化データを得る符号化部PROD_C1と、符号化部PROD_C1が得た符号化データを記録媒体PROD_Mに書き込む書込部PROD_C2と、を備えている。上述した画像符号化装置11は、この符号化部PROD_C1として利用される。
 なお、記録媒体PROD_Mは、(1)HDD(Hard Disk Drive)やSSD(Solid State Drive)などのように、記録装置PROD_Cに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSB(Universal Serial Bus)フラッシュメモリなどのように、記録装置PROD_Cに接続されるタイプのものであってもよいし、(3)DVD(Digital Versatile Disc)やBD(Blu-ray Disc:登録商標)などのように、記録装置PROD_Cに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。
 また、記録装置PROD_Cは、符号化部PROD_C1に入力する動画像の供給源として、動画像を撮像するカメラPROD_C3、動画像を外部から入力するための入力端子PROD_C4、動画像を受信するための受信部PROD_C5、及び、画像を生成または加工する画像処理部PROD_C6を更に備えていてもよい。図9の(a)においては、これら全てを記録装置PROD_Cが備えた構成を例示しているが、一部を省略しても構わない。
 なお、受信部PROD_C5は、符号化されていない動画像を受信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを受信するものであってもよい。後者の場合、受信部PROD_C5と符号化部PROD_C1との間に、伝送用の符号化方式で符号化された符号化データを復号する伝送用復号部(不図示)を介在させるとよい。
 このような記録装置PROD_Cとしては、例えば、DVDレコーダ、BDレコーダ、HDD(Hard Disk Drive)レコーダなどが挙げられる(この場合、入力端子PROD_C4または受信部PROD_C5が動画像の主な供給源となる)。また、カムコーダ(この場合、カメラPROD_C3が動画像の主な供給源となる)、パーソナルコンピュータ(この場合、受信部PROD_C5または画像処理部C6が動画像の主な供給源となる)、スマートフォン(この場合、カメラPROD_C3または受信部PROD_C5が動画像の主な供給源となる)なども、このような記録装置PROD_Cの一例である。
 図9の(b)は、上述した画像復号装置31を搭載した再生装置PROD_Dの構成を示したブロックである。図9の(b)に示すように、再生装置PROD_Dは、記録媒体PROD_Mに書き込まれた符号化データを読み出す読出部PROD_D1と、読出部PROD_D1が読み出した符号化データを復号することによって動画像を得る復号部PROD_D2と、を備えている。上述した画像復号装置31は、この復号部PROD_D2として利用される。
 なお、記録媒体PROD_Mは、(1)HDDやSSDなどのように、再生装置PROD_Dに内蔵されるタイプのものであってもよいし、(2)SDメモリカードやUSBフラッシュメモリなどのように、再生装置PROD_Dに接続されるタイプのものであってもよいし、(3)DVDやBDなどのように、再生装置PROD_Dに内蔵されたドライブ装置(不図示)に装填されるものであってもよい。
 また、再生装置PROD_Dは、復号部PROD_D2が出力する動画像の供給先として、動画像を表示するディスプレイPROD_D3、動画像を外部に出力するための出力端子PROD_D4、及び、動画像を送信する送信部PROD_D5を更に備えていてもよい。図9の(b)においては、これら全てを再生装置PROD_Dが備えた構成を例示しているが、一部を省略しても構わない。
 なお、送信部PROD_D5は、符号化されていない動画像を送信するものであってもよいし、記録用の符号化方式とは異なる伝送用の符号化方式で符号化された符号化データを送信するものであってもよい。後者の場合、復号部PROD_D2と送信部PROD_D5との間に、動画像を伝送用の符号化方式で符号化する符号化部(不図示)を介在させるとよい。
 このような再生装置PROD_Dとしては、例えば、DVDプレイヤ、BDプレイヤ、HDDプレイヤなどが挙げられる(この場合、テレビジョン受像機等が接続される出力端子PROD_D4が動画像の主な供給先となる)。また、テレビジョン受像機(この場合、ディスプレイPROD_D3が動画像の主な供給先となる)、デジタルサイネージ(電子看板や電子掲示板等とも称され、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、デスクトップ型PC(この場合、出力端子PROD_D4または送信部PROD_D5が動画像の主な供給先となる)、ラップトップ型またはタブレット型PC(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)、スマートフォン(この場合、ディスプレイPROD_D3または送信部PROD_D5が動画像の主な供給先となる)なども、このような再生装置PROD_Dの一例である。
  (ハードウェア的実現及びソフトウェア的実現)
 また、上述した画像復号装置31及び画像符号化装置11の各ブロックは、集積回路(ICチップ)上に形成された論理回路によってハードウェア的に実現してもよいし、CPU(Central Processing Unit)を用いてソフトウェア的に実現してもよい。
 後者の場合、上記各装置は、各機能を実現するプログラムの命令を実行するCPU、上記プログラムを格納したROM(Read Only Memory)、上記プログラムを展開するRAM(Random Access Memory)、上記プログラム及び各種データを格納するメモリ等の記憶装置(記録媒体)などを備えている。そして、本発明の実施形態の目的は、上述した機能を実現するソフトウェアである上記各装置の制御プログラムのプログラムコード(実行形式プログラム、中間コードプログラム、ソースプログラム)をコンピュータで読み取り可能に記録した記録媒体を、上記各装置に供給し、そのコンピュータ(またはCPUやMPU)が記録媒体に記録されているプログラムコードを読み出し実行することによっても、達成可能である。
 上記記録媒体としては、例えば、磁気テープやカセットテープ等のテープ類、フロッピー(登録商標)ディスク/ハードディスク等の磁気ディスクやCD-ROM(Compact Disc Read-Only Memory)/MOディスク(Magneto-Optical disc)/MD(Mini Disc)/DVD(Digital Versatile Disc)/CD-R(CD Recordable)/ブルーレイディスク(Blu-ray Disc(登録商標))等の光ディスクを含むディスク類、ICカード(メモリカードを含む)/光カード等のカード類、マスクROM/EPROM(Erasable Programmable Read-Only Memory)/EEPROM(登録商標)(Electrically Erasable and Programmable Read-Only Memory)/フラッシュROM等の半導体メモリ類、あるいはPLD(Programmable logic device)やFPGA(Field Programmable Gate Array)等の論理回路類などを用いることができる。
 また、上記各装置を通信ネットワークと接続可能に構成し、上記プログラムコードを通信ネットワークを介して供給してもよい。この通信ネットワークは、プログラムコードを伝送可能であればよく、特に限定されない。例えば、インターネット、イントラネット、エキストラネット、LAN(Local Area Network)、ISDN(Integrated Services Digital Network)、VAN(Value-Added Network)、CATV(Community Antenna television/Cable Television)通信網、仮想専用網(Virtual Private Network)、電話回線網、移動体通信網、衛星通信網等が利用可能である。また、この通信ネットワークを構成する伝送媒体も、プログラムコードを伝送可能な媒体であればよく、特定の構成または種類のものに限定されない。例えば、IEEE(Institute of Electrical and Electronic Engineers)1394、USB、電力線搬送、ケーブルTV回線、電話線、ADSL(Asymmetric Digital Subscriber Line)回線等の有線でも、IrDA(Infrared Data Association)やリモコンのような赤外線、BlueTooth(登録商標)、IEEE802.11無線、HDR(High Data Rate)、NFC(Near Field Communication)、DLNA(登録商標)(Digital Living Network Alliance)、携帯電話網、衛星回線、地上デジタル放送網等の無線でも利用可能である。なお、本発明の実施形態は、上記プログラムコードが電子的な伝送で具現化された、搬送波に埋め込まれたコンピュータデータ信号の形態でも実現され得る。
 本発明の実施形態は上述した実施形態に限定されるものではなく、請求項に示した範囲で種々の変更が可能である。すなわち、請求項に示した範囲で適宜変更した技術的手段を組み合わせて得られる実施形態についても本発明の技術的範囲に含まれる。
 (関連出願の相互参照)
 本出願は、2017年5月26日に出願された日本国特許出願:特願2017-104368に対して優先権の利益を主張するものであり、それを参照することにより、その内容の全てが本書に含まれる。
 本発明の実施形態は、画像データが符号化された符号化データを復号する画像復号装置、及び、画像データが符号化された符号化データを生成する画像符号化装置に好適に適用することができる。また、画像符号化装置によって生成され、画像復号装置によって参照される符号化データのデータ構造に好適に適用することができる。
10 CT情報復号部
11 画像符号化装置
20 CU復号部
31 画像復号装置
41 画像表示装置

Claims (8)

  1.  入力動画像を符号化する動画像符号化装置において、
     前記入力動画像の1画面を複数の画素からなるブロックに分割する手段と、
     前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、
     前記入力動画像から前記予測画素値を減算し、予測誤差を算出する手段と、
     前記予測誤差を変換、量子化し、量子化変換係数を出力する手段と、
     前記量子化変換係数を可変長符号化する手段とを備え、
     前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、
     色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、
     残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、
     前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする動画像符号化装置。
  2.  前記第1の参照画素は奇数画素位置の画素であり、前記第2の参照画素は偶数画素位置の画素であることを特徴とする請求項1に記載の動画像符号化装置。
  3.  前記第1の参照画素は偶数画素位置の画素であり、前記第2の参照画素は奇数画素位置の画素であることを特徴とする請求項1に記載の動画像符号化装置。
  4.  動画像を復号する動画像復号装置において、
     複数の画素からなるブロックを処理単位として、符号化データを可変長復号して量子化変換係数を出力する手段と、
     量子化変換係数を逆量子化、逆変換して予測誤差を出力する手段と、
     前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、
     前記予測画素値と前記予測誤差を加算する手段とを備え、
     前記予測手段は、イントラ予測を実施する対象ブロックの左側のブロックの画素と、上側のブロックの画素とを参照し、
     色差成分において、前記上側のブロックの参照画素は、対象ブロックの2画素毎に1画素(第1の参照画素)を参照し、
     残りの1画素(第2の参照画素)は、第1の参照画素から補間することで導出し、
     前記予測手段は、第1の参照画素と第2の参照画素を参照して、対象ブロックの色差成分の各画素のイントラ予測値を算出することを特徴とする動画像復号装置。
  5.  前記第1の参照画素は奇数画素位置の画素であり、前記第2の参照画素は偶数画素位置の画素であることを特徴とする請求項4に記載の動画像復号装置。
  6.  前記第1の参照画素は偶数画素位置の画素であり、前記第2の参照画素は奇数画素位置の画素であることを特徴とする請求項4に記載の動画像復号装置。
  7.  動画像を復号する動画像復号装置において、
     複数の画素からなるブロックを処理単位として、符号化データを可変長復号して量子化変換係数を出力する手段と、
     量子化変換係数を逆量子化、逆変換して第2の予測誤差を出力する手段と、
     前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、
     前記予測画素値と前記予測誤差を加算し、復号画像を導出する手段と、
     復号画像をフィルタリングする手段とを備え、
     前記予測手段またはフィルタリング手段では、記ブロック境界がCU境界である場合とCTU境界である場合とで異なる処理を実施することを特徴とする動画像復号装置。
  8.  入力動画像を符号化する動画像符号化装置において、
     前記入力動画像の1画面を複数の画素からなるブロックに分割する手段と、
     前記ブロックを単位として、対象ブロックの隣接ブロックの画素(参照画素)を参照し、イントラ予測を行い、予測画素値を算出する予測手段と、
     前記入力動画像から前記予測画素値を減算し、第1の予測誤差を算出する手段と、
     前記予測誤差を変換、量子化し、量子化変換係数を出力する手段と、
     前記量子化変換係数を可変長符号化する手段と、
     量子化変換係数を逆量子化、逆変換して第2の予測誤差を出力する手段と、
     前記予測画素値と前記予測誤差を加算し、復号画像を導出する手段と、
     復号画像をフィルタリングする手段とを備え、
     前記予測手段またはフィルタリング手段では、記ブロック境界がCU境界である場合とCTU境界である場合とで異なる処理を実施することを特徴とする動画像符号化装置。
PCT/JP2018/019654 2017-05-26 2018-05-22 動画像符号化装置及び動画像復号装置、フィルタ装置 WO2018216688A1 (ja)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US16/614,810 US20200213619A1 (en) 2017-05-26 2018-05-22 Video coding apparatus and video decoding apparatus, filter device

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
JP2017-104368 2017-05-26
JP2017104368A JP2020120141A (ja) 2017-05-26 2017-05-26 動画像符号化装置及び動画像復号装置、フィルタ装置

Publications (1)

Publication Number Publication Date
WO2018216688A1 true WO2018216688A1 (ja) 2018-11-29

Family

ID=64395637

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2018/019654 WO2018216688A1 (ja) 2017-05-26 2018-05-22 動画像符号化装置及び動画像復号装置、フィルタ装置

Country Status (3)

Country Link
US (1) US20200213619A1 (ja)
JP (1) JP2020120141A (ja)
WO (1) WO2018216688A1 (ja)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021055222A1 (en) 2019-09-16 2021-03-25 Tencent America LLC Method and apparatus for cross-component filtering

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11284075B2 (en) * 2018-09-12 2022-03-22 Qualcomm Incorporated Prediction of adaptive loop filter parameters with reduced memory consumption for video coding
US11051017B2 (en) 2018-12-20 2021-06-29 Qualcomm Incorporated Adaptive loop filter (ALF) index signaling
EP4340360A2 (en) 2019-03-18 2024-03-20 Guangdong Oppo Mobile Telecommunications Corp., Ltd. Image component prediction method, encoder, decoder and storage medium
CN115606177A (zh) * 2020-03-21 2023-01-13 抖音视界有限公司(Cn) 在跨分量视频编解码中使用相邻样点
EP4122204A4 (en) 2020-04-18 2024-02-14 Beijing Bytedance Network Tech Co Ltd SYNTAX FOR SIGNALING CROSS-COMPONENT VIDEO CODING

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010251953A (ja) * 2009-04-14 2010-11-04 Sony Corp 画像符号化装置と画像符号化方法およびコンピュータ・プログラム
JP2011223356A (ja) * 2010-04-09 2011-11-04 Sony Corp 画像処理装置および方法
JP2013141187A (ja) * 2012-01-06 2013-07-18 Sony Corp 画像処理装置及び画像処理方法
WO2015005418A1 (ja) * 2013-07-10 2015-01-15 Kddi株式会社 動画像符号化装置、動画像復号装置、動画像システム、動画像符号化方法、動画像復号方法、およびプログラム

Family Cites Families (11)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101403343B1 (ko) * 2007-10-04 2014-06-09 삼성전자주식회사 부화소 움직임 추정을 이용한 인터 예측 부호화, 복호화방법 및 장치
WO2011145862A2 (en) * 2010-05-17 2011-11-24 Lg Electronics Inc. New intra prediction modes
DK3457689T3 (da) * 2010-05-25 2020-10-12 Lg Electronics Inc Ny planar forudsigelsestilstand
CN103262542A (zh) * 2010-10-26 2013-08-21 数码士有限公司 自适应帧内预测编码和解码方法
CN102595120A (zh) * 2011-01-14 2012-07-18 华为技术有限公司 一种空域预测编码方法、解码方法、装置和系统
US9420294B2 (en) * 2011-02-23 2016-08-16 Lg Electronics Inc. Intra-prediction method using filtering, and apparatus using the method
JP5798539B2 (ja) * 2012-09-24 2015-10-21 株式会社Nttドコモ 動画像予測符号化装置、動画像予測符号化方法、動画像予測復号装置及び動画像予測復号方法
WO2017073362A1 (ja) * 2015-10-30 2017-05-04 ソニー株式会社 画像処理装置および方法
WO2017188565A1 (ko) * 2016-04-25 2017-11-02 엘지전자 주식회사 영상 코딩 시스템에서 영상 디코딩 방법 및 장치
US10721479B2 (en) * 2016-09-30 2020-07-21 Lg Electronics Inc. Intra prediction method and apparatus in image coding system
CA3142170C (en) * 2017-05-31 2023-07-04 Lg Electronics Inc. Method and device for performing image decoding on basis of intra prediction in image coding system

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2010251953A (ja) * 2009-04-14 2010-11-04 Sony Corp 画像符号化装置と画像符号化方法およびコンピュータ・プログラム
JP2011223356A (ja) * 2010-04-09 2011-11-04 Sony Corp 画像処理装置および方法
JP2013141187A (ja) * 2012-01-06 2013-07-18 Sony Corp 画像処理装置及び画像処理方法
WO2015005418A1 (ja) * 2013-07-10 2015-01-15 Kddi株式会社 動画像符号化装置、動画像復号装置、動画像システム、動画像符号化方法、動画像復号方法、およびプログラム

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2021055222A1 (en) 2019-09-16 2021-03-25 Tencent America LLC Method and apparatus for cross-component filtering
EP4032268A4 (en) * 2019-09-16 2023-09-20 Tencent America LLC METHOD AND DEVICE FOR COMPONENT FILTRATION
US11895339B2 (en) 2019-09-16 2024-02-06 Tencent America LLC Generation of chroma components using cross-component adaptive loop filters

Also Published As

Publication number Publication date
US20200213619A1 (en) 2020-07-02
JP2020120141A (ja) 2020-08-06

Similar Documents

Publication Publication Date Title
JP7223886B2 (ja) 画像復号方法
JP7260472B2 (ja) 画像フィルタ装置
WO2018221368A1 (ja) 動画像復号装置、及び動画像符号化装置
WO2018116802A1 (ja) 画像復号装置、画像符号化装置、及び画像予測装置
WO2018216688A1 (ja) 動画像符号化装置及び動画像復号装置、フィルタ装置
WO2019069950A1 (ja) 画像符号化装置及び画像復号装置
WO2019221072A1 (ja) 画像符号化装置、符号化ストリーム抽出装置及び画像復号装置
WO2018110203A1 (ja) 動画像復号装置、および動画像符号化装置
WO2019182159A1 (ja) 画像フィルタ装置、画像復号装置、及び画像符号化装置
WO2017195532A1 (ja) 画像復号装置及び画像符号化装置
CN114521330A (zh) 低频不可分离变换(lfnst)简化
WO2018199002A1 (ja) 動画像符号化装置及び動画像復号装置
JP7241153B2 (ja) 画像復号装置
CN113545051A (zh) 使用块大小限制的视频数据块的重构
WO2020045248A1 (ja) 動画像復号装置および動画像符号化装置
JP7139144B2 (ja) 画像フィルタ装置
WO2021015195A1 (ja) 画像復号装置、画像符号化装置、および画像復号方法
CN112532976A (zh) 运动图像解码装置以及运动图像编码装置
WO2018159526A1 (ja) 動画像符号化装置及び動画像復号装置
WO2019230904A1 (ja) 画像復号装置、および画像符号化装置
JPWO2020241858A5 (ja)
WO2020184366A1 (ja) 画像復号装置
CN115428462A (zh) 用于视频译码中的变换跳过块的高级约束
WO2020067440A1 (ja) 動画像符号化装置および動画像復号装置
WO2018173862A1 (ja) 画像復号装置及び画像符号化装置

Legal Events

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

Ref document number: 18805207

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18805207

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: JP