Video decoding apparatus and video coding apparatus
The video decoding device addresses the challenge of independently decoding partial image areas by restricting intra and inter prediction to specific screen parts, enhancing encoding efficiency and ensuring correct decoding.
Patent Information
- Application Number
- JP2024106025
- Authority / Receiving Office
- JP · JP
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2018-08-29
- Filing Date
- 2024-07-01
- Publication Date
- 2024-09-26
- Estimated Expiration
- 2039-08-22
AI Technical Summary
Existing video encoding methods, such as HEVC, face challenges in independently decoding specific partial image areas within a screen due to unrestricted inter prediction, leading to reduced encoding efficiency and difficulty in limiting motion vectors.
A video decoding device sets partial image areas within a picture for intra and inter prediction, loop filter processing, restricting these operations to within the partial image area, allowing independent decoding of specific screen parts without referring to other areas.
Enables partial image decoding within a picture by restricting prediction and filter processing, ensuring correct decoding of specific screen parts and improving encoding efficiency.
Smart Images

Figure 2024129102000001
Abstract
Description
[Technical field]
[0001] An embodiment of the present invention relates to a video decoding device and a video encoding device. [Background technology]
[0002] In order to efficiently transmit or record moving images, a moving image encoding device is used that generates encoded data by encoding moving images, and a moving image decoding device is used that generates a decoded image by decoding the encoded data.
[0003] Specific examples of video coding methods include methods proposed in H.264 / AVC (Advanced Video Coding) and H.265 / HEVC (High-Efficiency Video Coding).
[0004] HEVC introduces a technique for dividing a picture into rectangles called tiles. The purpose of tiles is mainly to divide the screen and perform encoding and decoding in parallel, and intra prediction, motion vector prediction, and entropy coding are performed independently for each tile.
[0005] Moreover, Non-Patent Document 1 can be cited as a recent example of a video encoding and decoding technique. [Prior art documents] [Non-patent literature]
[0006] [Non-Patent Document 1] "Algorithm Description of Joint Exploration Test Model 7", JVET-G1001, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 2017-08-19 [Non-Patent Document 2] "Improved Cyclic Intra Refresh", JVET-K0212, Joint Video Exploration Team (JVET) of ITU-T SG 16 WP 3 and ISO / IEC JTC 1 / SC 29 / WG 11, 2018-07-10 Summary of the Invention [Problem to be solved by the invention]
[0007] In tiles, intra prediction and motion vectors within the same screen are restricted, but inter prediction is not restricted.
[0008] In order to independently decode only a specific partial image area within the same screen, if there is an inter-prediction process that refers to an area other than the partial image area, the image cannot be decoded correctly. For this reason, there has been a method of restricting the direction of a motion vector on the encoding side. However, recent methods such as HEVC use a merge mode or other method that uses motion vectors encoded in the past, making it difficult to explicitly restrict the motion vector, and there is a problem that the encoding efficiency is significantly reduced.
[0009] Therefore, the present invention has been made in consideration of the above problems, and its object is to provide a mechanism for realizing video encoding and decoding that enables independent decoding of only a specific portion of the same screen. [Means for solving the problem]
[0010] A video decoding device according to one embodiment of the present invention is characterized in that it sets a partial image area within a picture for intra prediction, inter prediction, loop filter processing, etc., treats the area outside the partial image area in the same way as the area outside the picture, and does not impose such restrictions on areas within the picture other than the partial image area. Effect of the Invention
[0011] According to one aspect of the present invention, partial decoding within a picture can be realized by setting a partial image area within a picture in which prediction processing and loop filter processing are restricted. [Brief description of the drawings]
[0012] [Figure 1] FIG. 2 is a diagram showing a hierarchical structure of data in an encoded stream. [Diagram 2] FIG. 13 is a diagram illustrating an example of division of a CTU. [Diagram 3] FIG. 2 is a conceptual diagram showing an example of a reference picture and a reference picture list. [Figure 4] FIG. 13 is a schematic diagram showing types of intra-prediction modes (mode numbers). [Diagram 5] 3A and 3B are diagrams illustrating a partial image region and a non-partial image region of the present invention. [Figure 6] FIG. 13 is a diagram for explaining a range in which a target block can be referenced according to the present invention; [Figure 7] 13 is a flowchart showing the flow of a decoding process in a parameter decoding unit. [Figure 8] FIG. 13 is a diagram showing an example of syntax notified for setting a partial image region. [Figure 9] FIG. 13 is a diagram showing an example of syntax notified for setting a partial image region. [Figure 10] 13 is a flowchart showing a procedure for setting a partial image area. [Figure 11] FIG. 13 is a diagram illustrating the setting of a partial image region map. [Figure 12] FIG. 1 is a diagram illustrating gradual refresh. [Figure 13] FIG. 13 is a diagram for explaining syntax required for gradual refresh. [Figure 14] FIG. 1 is a schematic diagram showing a configuration of a video decoding device. [Figure 15] FIG. 1 is a block diagram showing a configuration of a video encoding device. [Figure 16]1 is a diagram showing the configuration of a transmitting device equipped with a video encoding device according to the present embodiment, and a receiving device equipped with a video decoding device, where (a) shows the transmitting device equipped with the video encoding device, and (b) shows the receiving device equipped with the video decoding device. [Figure 17] 1 is a diagram showing the configuration of a recording device equipped with a video encoding device according to the present embodiment, and a playback device equipped with a video decoding device, where (a) shows the configuration of a recording device equipped with a video encoding device, and (b) shows the configuration of a playback device equipped with a video decoding device. [Figure 18] 1 is a schematic diagram showing a configuration of an image transmission system according to an embodiment of the present invention. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0013] (First embodiment) Hereinafter, an embodiment of the present invention will be described with reference to the drawings.
[0014] FIG. 18 is a schematic diagram showing the configuration of an image transmission system 1 according to this embodiment.
[0015] The image transmission system 1 is a system that transmits an encoded stream obtained by encoding an image to be encoded, decodes the transmitted encoded stream, and displays an image. The image transmission system 1 includes a video encoding device (image encoding device) 11, a network 21, a video decoding device (image decoding device) 31, and a video display device (image display device) 41.
[0016] An image T is input to the video encoding device 11 .
[0017] The network 21 transmits the encoded stream Te generated by the video encoding device 11 to the video decoding device 31. The network 21 is the Internet, a wide area network (WAN), a local area network (LAN), or a combination of these. 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 also be replaced by a storage medium on which the encoded stream Te is recorded, such as a digital versatile disc (DVD) or a blue-ray disc (BD).
[0018] The video decoding device 31 decodes each of the coded streams Te transmitted by the network 21, and generates one or more decoded images Td.
[0019] The video display device 41 displays all or part of one or more decoded images Td generated by the video decoding device 31. The video display device 41 includes a display device such as a liquid crystal display or an organic EL (Electro-luminescence) display. The display may be in the form of a stationary display, a mobile display, an HMD, or the like. When the video decoding device 31 has high processing power, it displays high quality images, and when it has only low processing power, it displays images that do not require high processing power or display power.
[0020] <operator> The operators used in this specification are listed below.
[0021] >> is a right bit shift, << is a left bit shift, & is a bitwise AND, | is a bitwise OR, |= is the OR assignment operator, and || indicates logical OR.
[0022] x?y:z is a ternary operator that takes y if x is true (non-zero), and z if x is false (0).
[0023] Clip3(a, b, c) is a function that clips c to a value between a and b (inclusive). If c < a, it returns a; if c > b, it returns b; otherwise, it returns c (where a <= b).
[0024] abs(a) is a function that returns the absolute value of a.
[0025] Int(a) is a function that returns the integer value of a.
[0026] floor(a) is a function that returns the largest integer less than or equal to a.
[0027] ceil(a) is a function that returns the smallest integer greater than or equal to a.
[0028] a / d represents the division of a by d (truncating the decimal part).
[0029] <Structure of the Encoded Stream Te>[[]] Prior to the detailed description of the video encoding device 11 and the video decoding device 31 according to this embodiment, the data structure of the encoded stream Te generated by the video encoding device 11 and decoded by the video decoding device 31 will be described.
[0030] Figure 2 is a diagram showing the hierarchical structure of the data in the encoded stream Te. The encoded stream Te illustratively includes a sequence and a plurality of pictures constituting the sequence. Figures 2(a) to 2(f) respectively show an encoded video sequence that defines the sequence SEQ, an encoded picture that defines the picture PICT, an encoded slice that defines the slice S, encoded slice data that defines the slice data, an encoded tree unit included in the encoded slice data, and an encoded unit included in the encoded tree unit.
[0031] (Encoded Video Sequence) In the coded video sequence, a set of data to be referred to by the video decoding device 31 in order to decode the sequence SEQ to be processed is defined. As shown in Fig. 2(b), 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 supplemental enhancement information SEI (Supplemental Enhancement Information).
[0032] The video parameter set VPS specifies a set of coding parameters common to multiple videos composed of multiple layers, as well as a set of coding parameters related to multiple layers and each individual layer included in the video.
[0033] The sequence parameter set SPS specifies a set of coding parameters that the video decoding device 31 refers to in order to decode the target sequence. For example, the width and height of a picture are specified. Note that there may be multiple SPSs. In that case, one of the multiple SPSs is selected from the PPS.
[0034] The picture parameter set PPS specifies a set of coding parameters that the video decoding device 31 refers to in order to decode each picture in the target sequence. For example, the picture parameter set PPS includes a reference value of the quantization width (pic_init_qp_minus26) used in decoding the picture and a flag (weighted_pred_flag) indicating the application of weighted prediction. Note that there may be multiple PPSs. In that case, one of the multiple PPSs is selected for each picture in the target sequence.
[0035] (Encoded Picture) A coded picture defines a set of data to be referenced by the video decoding device 31 in order to decode a picture PICT to be processed. As shown in FIG. 2(b), the picture PICT includes slices 0 to NS-1 (NS is the total number of slices included in the picture PICT).
[0036] In the following description, when there is no need to distinguish between slices 0 to NS-1, the subscripts of the symbols may be omitted. The same applies to other data that are included in the coded stream Te and that are to be described below and that are to be given subscripts.
[0037] (Coded Slice) A coded slice defines a set of data to be referenced by the video decoding device 31 in order to decode a target slice S. As shown in FIG. 2(b), a slice includes a slice header and slice data.
[0038] The slice header includes a group of coding parameters to be referred to by the video decoding device 31 in order to determine a decoding method for the current slice. Slice type designation information (slice_type) that designates the slice type is an example of a coding parameter included in the slice header.
[0039] Slice types that can be specified by the slice type specification information include (1) an I slice that uses only intra prediction when encoding, (2) a P slice that uses unidirectional prediction or intra prediction when encoding, and (3) a B slice that uses unidirectional prediction, bidirectional prediction, or intra prediction when encoding. Note that inter prediction is not limited to uni-prediction or bi-prediction, and a predicted image may be generated using more reference pictures. Hereinafter, when referring to P or B slice, it refers to a slice including a block that can use inter prediction.
[0040] In addition, the slice header may include a reference to a picture parameter set PPS (pic_parameter_set_id).
[0041] (Encoded slice data) The coded slice data defines a set of data to be referenced by the video decoding device 31 in order to decode the slice data to be processed. As shown in Fig. 1(d), the slice data includes a CTU. A CTU is a block of a fixed size (e.g., 64x64) that constitutes a slice, and is also called a Largest Coding Unit (LCU).
[0042] (coding tree unit) 2(e) specifies a set of data that the video decoding device 31 refers to in order to decode the CTU to be processed. The CTU is divided into coding units CU, which are basic units of the encoding process, by recursive quad tree division (QT (Quad Tree) division), binary tree division (BT (Binary Tree) division), or ternary tree division (TT (Ternary Tree) division). BT division and TT division are collectively called multi tree division (MT (Multi Tree) division). A node of a tree structure obtained by recursive quad tree division is called a coding node. Intermediate nodes of the quad tree, binary tree, and ternary tree are coding nodes, and the CTU itself is specified as the top coding node.
[0043] CT includes, as CT information, a QT split flag (cu_split_flag) indicating whether or not QT splitting is performed, an MT split mode (split_mt_mode) indicating the splitting method of MT splitting, an MT split direction (split_mt_dir) indicating the splitting direction of MT splitting, and an MT split type (split_mt_type) indicating the split type of MT splitting. Cu_split_flag, split_mt_flag, split_mt_dir, and split_mt_type are transmitted for each encoding node.
[0044] When cu_split_flag is 1, the coding node is split into four coding nodes (Figure 2(b)). When cu_split_flag is 0 and split_mt_flag is 0, the coding node is not split and has one CU as a node (Figure 2(a)). A CU is the terminal node of a coding node and is not split any further. A CU is the basic unit of the coding process.
[0045] When split_mt_flag is 1, the coding node is MT-split as follows: When split_mt_type is 0, if split_mt_dir is 1, the coding node is split horizontally into two coding nodes (Fig. 2(d)), and when split_mt_dir is 0, the coding node is split vertically into two coding nodes (Fig. 2(c)). When split_mt_type is 1, if split_mt_dir is 1, the coding node is split horizontally into three coding nodes (Fig. 2(f)), and when split_mt_dir is 0, the coding node is split vertically into three coding nodes (Fig. 2(e)).
[0046] Also, when the size of the CTU is 64x64 pixels, the size of the CU can be any of the following: 64x64 pixels, 64x32 pixels, 32x64 pixels, 32x32 pixels, 64x16 pixels, 16x64 pixels, 32x16 pixels, 16x32 pixels, 16x16 pixels, 64x8 pixels, 8x64 pixels, 32x8 pixels, 8x32 pixels, 16x8 pixels, 8x16 pixels, 8x8 pixels, 64x4 pixels, 4x64 pixels, 32x4 pixels, 4x32 pixels, 16x4 pixels, 4x16 pixels, 8x4 pixels, 4x8 pixels, and 4x4 pixels.
[0047] (Encoding Unit) As shown in Fig. 1(f), a set of data to be referenced by the video decoding device 31 in order to decode a coding unit to be processed is defined. Specifically, a CU is composed of a CU header CUH, prediction parameters, transformation parameters, quantization transformation coefficients, etc. The CU header defines a prediction mode, etc.
[0048] The prediction process may be performed in units of CUs, or in units of sub-CUs obtained by further dividing a CU. When the size of a CU and a sub-CU are equal, there is one sub-CU in the CU. When the size of a CU is larger than that of a sub-CU, the CU is divided into sub-CUs. For example, when a CU is 8x8 and a sub-CU is 4x4, the CU is divided into 2 parts horizontally and 2 parts vertically, into 4 sub-CUs.
[0049] There are two types of prediction (prediction modes): intra prediction and inter prediction. Intra prediction is a prediction within the same picture, while inter prediction refers to a prediction process performed between different pictures (for example, between display times or between layer images).
[0050] The transform and quantization processes are performed in units of CUs, but the quantized transform coefficients may be entropy coded in units of sub-blocks such as 4x4.
[0051] (Prediction parameters) The predicted image is derived from prediction parameters associated with the block, which include intra-prediction and inter-prediction parameters.
[0052] Hereinafter, prediction parameters of inter prediction will be described. Inter prediction parameters are composed of prediction list use flags predFlagL0, predFlagL1, reference picture indexes refIdxL0, refIdxL1, and motion vectors mvL0, mvL1. Prediction list use flags predFlagL0, predFlagL1 are flags indicating whether or not reference picture lists called L0 list and L1 list are used, respectively, and when the value is 1, the corresponding reference picture list is used. Note that in this specification, when "a flag indicating whether or not XX" is written, a flag other than 0 (for example, 1) is XX, 0 is not XX, and 1 is treated as true and 0 is treated as false in logical negation, logical product, etc. (similarly below). However, in an actual device or method, other values can be used as true and false values.
[0053] Syntax elements for deriving inter prediction parameters include, for example, a merge flag merge_flag, a merge index merge_idx, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, and a difference vector mvdLX.
[0054] (See picture list) The reference picture list is a list of reference pictures stored in the reference picture memory 306. FIG. 4 is a conceptual diagram showing an example of reference pictures and reference picture lists in a picture structure for low delay. In (a) of the figure, a rectangle indicates a picture, an arrow indicates a reference relationship between pictures, the horizontal axis indicates time, I, P, and B in the rectangle indicate an intra picture, a uni-predictive picture, and a bi-predictive picture, respectively, and numbers in the rectangle indicate a decoding order. As shown in the figure, the decoding order of pictures is I0, P1 / B1, P2 / B2, P3 / B3, and P4 / B4, and the display order is also the same. (b) of the figure shows an example of a reference picture list of picture B3 (target picture). The reference picture list is a list indicating candidates for reference pictures, and one picture (slice) may have one or more reference picture lists. In the example of the figure, the target picture B3 has two reference picture lists, an L0 list RefPicList0 and an L1 list RefPicList1. In each CU, the reference picture index refIdxLX specifies which picture in the reference picture list RefPicListX (X=0 or 1) is actually referenced. The diagram shows an example where refIdxL0=2 and refIdxL1=0. When the target picture is P3, the reference picture list is only the L0 list. Note that LX is a description method used when there is no distinction between L0 prediction and L1 prediction, and hereinafter, parameters for the L0 list and parameters for the L1 list are distinguished by replacing LX with L0 and L1.
[0055] (Merge prediction and AMVP prediction) There are two prediction parameter decoding (encoding) methods: merge prediction mode and AMVP (Adaptive Motion Vector Prediction) mode, and the merge flag merge_flag is a flag for identifying these.
[0056] The merge prediction mode is a mode in which the prediction list usage 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, but are derived from the prediction parameters of the neighboring blocks that have already been processed. The merge index merge_idx is an index indicating which prediction parameter is to be used as the prediction parameter of the target block among prediction parameter candidates (merge candidates) derived from blocks for which processing has been completed.
[0057] The AMVP mode is a mode in which an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, and a motion vector mvLX are included in the encoded data. The motion vector mvLX is encoded as a prediction vector index mvp_LX_idx that identifies a prediction vector mvpLX and a difference vector mvdLX. The inter prediction identifier inter_pred_idc is a value indicating the type and number of reference pictures, and takes any one of the values PRED_L0, PRED_L1, and PRED_BI. PRED_L0 and PRED_L1 indicate uni-prediction using one reference picture managed in the L0 list and the L1 list, respectively. PRED_BI indicates bi-prediction BiPred using two reference pictures managed in the L0 list and the L1 list.
[0058] (Motion Vector) The motion vector mvLX indicates the amount of shift between blocks on two different pictures. A prediction vector and a difference vector related to the motion vector mvLX are called a prediction vector mvpLX and a difference vector mvdLX, respectively.
[0059] The prediction parameters of intra prediction will be described below. The intra prediction parameters are composed of a luminance prediction mode IntraPredModeY and a color difference prediction mode IntraPredModeC. FIG. 5 is a schematic diagram showing types of intra prediction modes (mode numbers). As shown in the figure, there are, for example, 67 types (0 to 66) of intra prediction modes. For example, they are planar prediction (0), DC prediction (1), and angular prediction (2 to 66). Furthermore, for color difference, an LM mode (67 to 72) may be added.
[0060] Syntax elements for deriving intra prediction parameters include, for example, prev_intra_luma_pred_flag, mpm_idx, rem_selected_mode_flag, rem_selected_mode, and rem_non_selected_mode.
[0061] (MPM) prev_intra_luma_pred_flag is a flag indicating whether the luminance prediction mode IntraPredModeY of the target block matches the MPM (Most Probable Mode). The MPM is a prediction mode included in the MPM candidate list mpmCandList[]. The MPM candidate list is a list that stores candidates that are estimated to have a high probability of being applied to the target block from the intra prediction modes of adjacent blocks and a predetermined intra prediction mode. When prev_intra_luma_pred_flag is 1, the luminance prediction mode IntraPredModeY of the target block is derived using the MPM candidate list and index mpm_idx.
[0062] IntraPredModeY = mpmCandList[mpm_idx] (REM) When prev_intra_luma_pred_flag is 0, an intra prediction mode is selected from the remaining modes RemIntraPredMode excluding the intra prediction modes included in the MPM candidate list from all intra prediction modes. The intra prediction modes selectable as RemIntraPredMode are called "non-MPM" or "REM". The flag rem_selected_mode_flag is a flag that specifies whether to select an intra prediction mode with reference to rem_selected_mode or to select an intra prediction mode with reference to rem_non_selected_mode. RemIntraPredMode is derived using rem_selected_mode or rem_non_selected_mode.
[0063] (Partial image area coding / decoding area) A video encoding / decoding method is described, which is characterized in that a partial image area is set within the same picture, and the partial image area is encoded and decoded without using pixels of other areas, while the other areas are encoded and decoded using the entire picture.
[0064] FIG. 5 is a diagram for explaining the area A and the area B of the present invention. In the video encoding device and the decoding device of the present invention, the areas A and B in a picture are set. For example, the areas A and B are set by a partial image area control unit described later. The area A can only be predicted from the area A, and the outside of the area is subjected to processing such as padding similar to that of the outside of a picture or tile. On the other hand, the area B can be predicted from the entire picture including the area A. Here, the prediction processing refers to intra prediction, inter prediction, loop filter processing, etc. As the encoding processing and decoding processing are closed within the area A, only the area A can be decoded.
[0065] Hereinafter, area A will be referred to as a partial image area (first area, control area, clean area, refreshed area, area A). Conversely, areas other than the partial image area will be referred to as non-partial image areas (second area, non-control area, dirty area, unrefreshed area, area B, outside the restricted area).
[0066] For example, an area that is coded and decoded only from intra prediction and that has already been coded in intra prediction (a new refresh area IRA consisting only of intra, described below) is a partial image area. An area that is coded and decoded by further referring to this partial image area composed of intra prediction is also a partial image area. Furthermore, an area that is coded and decoded by referring to a partial image area in a reference picture, such as in inter prediction, is also a partial image area. In other words, a partial image area is an area that is coded and decoded by referring only to the pixels of the partial image area, without referring to the pixels of non-partial image areas.
[0067] In the following, the upper left position of the partial image area is indicated as (xRA_st, yRA_st), the lower right position as (xRA_en, yRA_en), and the size as (wRA, hRA). In addition, since the position and size have the following relationship, one may be derived from the other.
[0068] xRA_en = xRA_st + wRA - 1 yRA_en = yRA_st + hRA - 1 It can also be derived as follows:
[0069] wRA = xRA_en - xRA_st + 1 hRA = yRA_en - yRA_st + 1 Furthermore, the top left position of the restricted reference area at time j is indicated by (xRA_st[j], yRA_st[j]), the bottom right position by (xRA_en[j], yRA_en[j]), and the size by (wRA[j], hRA[j]). The position of the restricted reference area of reference picture Ref may also be indicated by (xRA_st[Ref], yRA_st[Ref]), the bottom right position by (xRA_en[Ref], yRA_en[Ref]), and the size by (wRA[Ref], hRA[Ref]).
[0070] (Determination of partial image area) For example, when a picture is at time i and a block is at position (x, y), it may be determined whether the pixel at the position is within the partial image region using the following formula.
[0071] IsRA(x, y) = (xRA_st[i] <= x && x <= xRA_en[i] && yRA_st[i] <= y && y <= yRA_en[i]) Or the following determination formula may be used:
[0072] IsRA(x, y) = (xRA_st[i] <= x && x < xRA_st[i]+wRA[i] && yRA_st[i] <= y && y < yRA_st[i]+hRA[i]) IsRA(xRef, yRef) = (xRA_st[Ref] <= xRef && xRef <= xRA_en[Ref] && yRA_st[Ref] <= yRef && yRef <= yRA_en[Ref]) For example, if the current picture is at time i, the top left coordinates of the current block Pb are (xPb, yPb), and the width and height are bW and bH, then the intra prediction unit, motion compensation unit, and loop filter of the video decoding device and video encoding device derive IsRA(Pb) using the following formula when the current block Pb is within a partial image area.
[0073] IsRA(Pb) = (xRA_st[i] <= xPb && xPb <= xRA_en[i] && yRA_st[i] <= yPb && yPb <= yRA_en[i]) Or the following determination formula may be used:
[0074] IsRA(Pb) = (xRA_st[i] <= xPb && xPb < xRA_st[i]+wRA[i] && yRA_st[i] <= yPb && yPb < yRA_st[i]+hRA[i]) (Basic operation of reference area of partial image area) The video encoding device and video decoding device of this specification perform the following operations.
[0075] FIG. 6 is a diagram showing a range in which a partial image area can be referred to in intra prediction, inter prediction, and a loop filter in the present invention. FIG. 6(a) shows a range in which a target block included in a partial image area can be referred to. In the picture in FIG. 6(a), an area surrounded by a thick line is an area included in the partial image area that has already been coded and decoded. An area included in a partial image area in the same picture (target image i) as the target block that has already been coded and decoded is a range in which the target block can be referred to by intra prediction, inter prediction, and a loop filter. Similarly, a partial image area in a reference picture (reference image j) is a range in which the target block can be referred to by inter prediction and a loop filter. FIG. 6(b) shows a range in which a target block included in a non-partial image area can be referred to. In the picture in FIG. 6(b), an area surrounded by a thick line is an area in the target picture that has already been coded and decoded. An area in the target picture (target image i) that has already been coded or decoded is a range in which the target block can be referred to by intra prediction and inter prediction. Similarly, all areas in the reference picture (reference image j) are within the range that can be referenced in inter prediction. Note that when using parallel processing such as tiles, slices, and wavefronts, or reference restrictions, other restrictions may be imposed in addition to the above. For a current block included in a partial image area, intra prediction is performed by referencing only pixels in the partial image area in the current picture, or inter prediction is performed by referencing a restricted reference area in the reference picture. For a target block included in a partial image region, the coding parameters of the target block are derived by referring to the coding parameters of the partial image region in the target picture (e.g. intra prediction direction, motion vector, reference picture index) or by referring to the coding parameters of a restricted reference region of the reference picture. For a target block included in a partial image area, loop filter processing is performed by referring to only the pixels of the partial image area in the target picture.
[0076] (Determination of partial image regions and their availability) In the derivation of MPM for intra prediction, the derivation of merge candidates for inter prediction, and the like, the prediction parameters of the neighboring region may be used to derive the prediction parameters (intra prediction mode, motion vector) of the target block. In such a case, the following processing may be performed. In intra prediction and inter prediction, if the target block is a partial image region (IsRA(xPb, yPb) is true) and the reference position (xNbX, yNbX) of the neighboring block of the target block is a non-partial image region (IsRA(xNbX, yNbX) is false), the value of the neighboring block is not used to derive the prediction parameters. That is, if the target block is a partial image region (IsRA(xPb, yPb) is true) and the reference position (xNbX, yNbX) of the neighboring block of the target block is a partial image region (IsRA(xNbX, yNbX) is true), the position (xNbX, yNbX) is used to derive the prediction parameters.
[0077] As described above in the derivation of prediction candidates, the determination of a partial image area may be used for the general determination of an outside of the screen, similar to the determination of an outside of the screen or a parallel processing unit (slice boundary, tile boundary). In this case, if the target block is a partial image area (IsRA(xPb, yPb) is true) and the reference position (xNbX, yNbX) of the target block is a partial image area (IsRA(xNbX, yNbX) is true), the reference position (xNbX, yNbX) is determined to be unavailable (availableNbX=0). That is, if the target block is in the screen, and the target block and the reference position are not in the same different parallel processing unit, and the target block is in a non-partial image area, or the reference position (xNbX, yNbX) of the target block is in a partial image area (IsRA(xNbX, yNbX) is true), it is determined that the reference position (xNbX, yNbX) is available (availableNbX=1). In intra prediction and inter prediction, when the reference position (xNbX, yNbX) is available (availableNbX=1), the prediction parameters of the reference position are used to derive the prediction parameters of the target block.
[0078] (Determining the restricted reference area and clipping the restricted reference area) Furthermore, when the reference picture is time j and the top left position of the reference pixel is (xRef, yRef), the motion compensation unit derives the case where the reference pixel is within the restricted reference area using the following determination formula.
[0079] IsRA(xRef, yRef) = (xRA_st[j] <= xRef && xRef <= xRA_en[j] && yRA_st[j] <= yRef && yRef <= yRA_en[j] ) Or the following determination formula may be used:
[0080] IsRA(xRef, yRef) = (xRA_st[j] <= xRef && xRef < xRA_st[j]+wRA[j] && yRA_st[i] <= yRef && yRef < yRA_st[j]+hRA[j]) Furthermore, the motion compensation unit may clip the reference pixel to a position within the partial image region using the following formula:
[0081] xRef = Clip3(xRA_st[j], xRA_en[j], xRef) yRef = Clip3(yRA_st[j], yRA_en[j], yRef) Or the following derivation:
[0082] xRef = Clip3(xRA_st[j], xRA_st[j]+wRA[j]-1, xRef) yRef = Clip3(yRA_st[j], yRA_st[j]+hRA[j]-1, yRef) The position of the partial image area is transmitted from the video encoding device to the video decoding device by gradual refresh information described later. The position and size of the partial image area may not be derived according to time (e.g., POC) but may be set to a reference picture Ref in a reference memory after the current picture is decoded or at the start of decoding the current picture. In this case, the position and size of the partial image area can be derived by specifying the reference picture Ref.
[0083] (SDR Picture) In AVC and HEVC, an IDR (Instantaneous Decoder Refresh) picture is an intra CTU in its entirety, and is randomly accessible and independently decodable, realizing random access to coded data. In this embodiment, a picture in which a partial image area is entirely intra-coded is made identifiable as an SDR (Sequentially Decoder Refresh) picture by the nal_unit_type of the NAL (Network Abstraction Layer).
[0084] In an SDR picture, a partial screen area within a picture can be decoded independently, and the partial screen area can be randomly accessed. In a conventional IDR picture, the entire picture is intra, whereas in an SDR picture, only part of the picture is intra, so there is less variation in the amount of code.
[0085] (Parameter Decoding Unit 302) The parameter decoding unit 302 sets partial image areas in the SDR picture, for example, as follows. Set the partial image area as a rectangle specified by the coordinates of the top left CTU and the number of CTUs for width and height. Set the partial image area as a rectangle defined by the upper left pixel position and the number of pixels for width and height. Set multiple partial image areas within one picture. Set multiple partial image areas so that they overlap with each other.
[0086] The phrase "multiple partial image areas overlap" means that, for example, multiple partial image areas included in one picture may include CTUs at the same position.
[0087] Also, partial image areas of multiple pictures in a GOP (Group Of Pictures) may overlap with each other. Here, the partial image areas overlap with each other, which corresponds to a partial image area set in an SDR picture and a partial image area set in a picture next to the SDR picture including a CTU at the same position. The number of pictures in which partial image areas overlap with each other is not particularly limited, and is a plurality of pictures consecutive from the SDR picture in the GOP.
[0088] (Processing flow by the parameter decoding unit 302 (SDR picture)) FIG. 8 is a flowchart showing the flow of processing performed by the parameter decoding unit 302.
[0089] (Step S1) Decryption is started and the process proceeds to step S2.
[0090] (Step S2) The parameter decoding unit 302 determines whether the target picture is an SDR picture or not by using the nal_unit_type of the NAL. If it is an SDR picture, the process proceeds to S3, and if it is not an SDR picture, the process proceeds to S4.
[0091] (Step S3) A partial image area included in the target picture is set as an area to be decoded by intra prediction, and the process proceeds to S4.
[0092] (Step S4) The parameter decoding unit 302 decodes the current picture.
[0093] By setting the partial image area in this manner, the video decoding device 31 can decode video of only the partial image area of the pictures that follow the SDR picture.
[0094] (Example of area information 1) The syntax for setting the partial image region may be included in the picture parameter set. Fig. 8 is a diagram showing an example of the syntax notified for setting the partial image region. The partial_region_mode is information for specifying whether or not a partial image region is defined in a picture. When the partial_region_mode included in the picture parameter set is 1, the entropy decoding unit 301 included in the video decoding device 31 determines that it is necessary to set a partial image region, and decodes num_of_partial_region_minus1.
[0095] num_of_patial_region_minus1 indicates the "number of partial image areas - 1" in the picture. position_ctu_adress[i] indicates the address of the top-left CTU of the i-th partial image area of the multiple partial image areas in the picture. region_ctu_width_minus1[i] indicates the "horizontal number of CTUs in the i-th partial image area - 1" in the picture. region_ctu_height_minus1[i] indicates the "vertical number of CTUs in the i-th partial image area - 1" in the picture.
[0096] The entropy decoding unit 301 adds 1 to i until i becomes equal to the value of num_of_patial_region_minus1, and decodes position_ctu_adress[i], region_ctu_width_minus1[i], and region_ctu_height_minus1[i].
[0097] Then, the partial image region control unit 320 included in the video decoding device 31 calculates, for each i, position_ctu_adress[i] region_ctu_width_minus1[i] region_ctu_height_minus1[i] A sub-image region having a position and size specified by is set in the target picture.
[0098] In addition, num_of_patial_region_minus1 position_ctu_adress[i] region_ctu_width_minus1[i] region_ctu_height_minus1[i] is an example of region information for identifying a partial image region.
[0099] (Area information example 2) The syntax for setting the partial image region may be included in the slice header. FIG. 9 is a diagram showing an example of the syntax notified for setting the partial image region. first_slice_segment_in_pic_flag is a flag indicating whether the slice is the first slice in the decoding order. When first_slice_segment_in_pic_flag is 1, it indicates that the slice is the first slice. When first_slice_segment_in_pic_flag is 0, it indicates that the slice is not the first slice. When first_slice_segment_in_pic_flag is 1, the entropy decoding unit 301 included in the video decoding device 31 sets partial_region_mode and decodes num_of_patial_region_minus1.
[0100] num_of_patial_region_minus1 indicates the "number of partial image regions - 1" in the slice. position_ctu_adress[i] indicates the address of the top left CTU of the i-th partial image region of the multiple partial image regions in the slice. region_ctu_width_minus1[i] indicates the "horizontal number of CTUs in partial image regions - 1" in the i-th partial image region of the multiple partial image regions in the slice. region_ctu_height_minus1[i] indicates the "vertical number of CTUs in partial image regions - 1" in the i-th partial image region of the multiple partial image regions in the slice.
[0101] The entropy decoding unit 301 adds 1 to i until i becomes equal to the value of num_of_patial_region_minus1, and decodes position_ctu_adress[i], region_ctu_width_minus1[i], and region_ctu_height_minus1[i].
[0102] Then, the partial image region control unit 320 included in the video decoding device 31 calculates, for each i, position_ctu_adress[i] region_ctu_width_minus1[i] region_ctu_height_minus1[i] A sub-image region having a position and size specified by is set within the target slice.
[0103] In addition, num_of_patial_region_minus1 position_ctu_adress[i] region_ctu_width_minus1[i] region_ctu_height_minus1[i] is an example of region information for identifying a partial image region.
[0104] In the above example, one CTU is the smallest unit, but one or more CTU columns, or one or more CTU rows and multiple CTUs may be set as the smallest unit.
[0105] (Example of partial image area setting procedure) FIG. 10 is a flowchart showing the flow of processing performed by the video decoding device 31 when a partial image region is defined in a picture parameter set.
[0106] (Step S1) The decryption process is started and the process proceeds to step S2.
[0107] (Step S2) If the mode is partial_region_mode (if partial_region_mode is 1), the entropy decoding unit 301 proceeds to step S3, and if the mode is not partial_region_mode (if partial_region_mode is 0), the entropy decoding unit 301 proceeds to step S4.
[0108] (Step S3) In the case of partial_region_mode, the entropy decoding unit 301 decodes each syntax included in the region information, and the partial image region control unit 320 defines the partial image region specified by each syntax, and ends the process. The specific process of setting the partial image region is as described above.
[0109] (Step S4) If the mode is not partial_region_mode, the video decoding device 31 erases the partial image region and ends the process.
[0110] (Partial image area map) The parameter decoding unit 302 may be configured to set a partial image region map (partial_region_map) as information indicating the position of a partial image region for each picture.
[0111] 11 is a diagram showing an example of syntax notified for setting a partial image region. partial_region_map is syntax indicating whether or not it is a partial screen region for each CTU in a picture. The entropy decoding unit 301 included in the video decoding device 31 determines that it is a partial image region when partial_region_map is 1, and that it is a non-partial image region when partial_region_map is 0. partial_region_mode is information for specifying whether or not to define a partial image region in a picture.
[0112] PicHeightInCtbsY indicates the number of CTUs in the vertical direction of a picture, and PicWidthInCtbsY indicates the number of CTUs in the horizontal direction of a picture.
[0113] Add 1 to i until i is equal to num_of_partial_region_minus1+1, and calculate y = position_ctu_adress[i] / PicWidthInCtbsY and x = position_ctu_adress[i]%PicWidthInCtbsY.
[0114] Add 1 to j until it is equal to region_ctu_width_minus1[i], add 1 to k until it is equal to region_ctu_height_minus1[i], and set the corresponding partial_region_map[h+j][w+k] to 1.
[0115] The partial image region control unit 320 of the parameter decoding unit 302 may be configured to set the partial image region by referring to the partial_region_map generated in this manner.
[0116] Moreover, information on partial_region_map, which is saved for each picture and indicates the position of a partial image region, is managed in a decoder picture buffer (DPB) of the decoded picture memory. Moreover, information on partial_region_map is stored in a reference picture list of the reference picture memory 306 for use in inter prediction performed by the predicted image generating unit 308.
[0117] Here, the order of decoding and encoding of CTUs is such that the video decoding device 31 decodes in raster scan order on a picture or tile basis without distinguishing between CTUs in partial image areas and CTUs in non-partial image areas, and the video encoding device 11 encodes in raster scan order without distinguishing between CTUs in partial image areas and CTUs in non-partial image areas.
[0118] Also, the entropy coding unit 104 performs entropy coding without distinguishing between partial image regions and non-partial image regions, and the entropy decoding unit 301 performs entropy decoding independently for partial image regions and non-partial image regions. More specifically, the entropy coding unit 104 and the entropy decoding unit 301 are configured to continuously update the context for partial image regions and non-partial image regions.
[0119] Since the concept of partial image areas and non-partial image areas described in this embodiment is a concept independent of the order of decoding and encoding, the order of decoding and encoding of the CTU may be independent of each other for partial image areas and non-partial image areas.
[0120] As an example, the video decoding device 31 may be configured to decode the CTU in the partial image area and the CTU in the non-partial image area independently of each other in raster scan order, and the video encoding device 11 may be configured to encode the CTU in the partial image area and the CTU in the non-partial image area independently of each other in raster scan order.
[0121] Alternatively, the entropy coding unit 104 may perform entropy coding on the partial image region and the non-partial image region independently, and the entropy decoding unit 301 may perform entropy decoding on the partial image region and the non-partial image region independently. More specifically, the entropy coding unit 104 and the entropy decoding unit 301 may update the context independently for the partial image region and the non-partial image region.
[0122] (Decoding of partial image area) In the above configuration, partial image areas are initially set in an SDR picture. A video signal in which temporally continuous partial image areas are set is coded by the video coding device 11 to generate a bitstream. When the video decoding device 31 first finds an SDR picture from the nal_unit_type of the NAL in the bitstream, it performs intra coding and loop filter processing on the partial image area of the SDR picture without referring to non-partial areas. This allows the partial image area to be correctly decoded. In the case of inter coding, the partial image area of a picture to be decoded thereafter does not refer to the non-partial image area, and the intra coding and loop filter processing do not refer to the non-partial image area of the picture, so it is guaranteed that the partial image area can be correctly decoded.
[0123] Second Embodiment (Gradual Refresh) An embodiment of the partial image area coding and decoding method of the present invention applied to intra refresh will be described. In general, intra refresh is a method of setting an area to be intra coded in a part of a picture, and moving the area in the picture in time, so that the entire picture can be intra coded within a certain period. By dividing the picture into a certain period and intra coding, the entire picture can be intra coded without increasing the code amount of a specific picture, realizing random access, and realizing recovery from errors in the bit stream. In this embodiment, coding and decoding of a partial screen area, using SDR pictures, and realizing a function of gradual refresh equivalent to intra refresh are realized.
[0124] 12(a) is a diagram for explaining an outline of the gradual refresh of this embodiment. In the gradual refresh of this embodiment, first, the parameter coding unit 111 sets a partial image area A in a part of a picture, and starts from an SDR picture in which the partial image area is intra-coded. The partial screen area A includes the previous partial image area and is expanded in time, and the gradual refresh ends when the partial screen area A becomes the whole picture.
[0125] In the video decoding device 31, if decoding is started from the bit stream with the SDR picture as an access point and decoding is continued until the area A becomes the entire picture, the entire picture can be correctly decoded.
[0126] The method of setting the partial image area may be explicit in the PPS or slice header as described in the first embodiment, or if seq_refresh_enable_flag described later is 1, the partial image area may be set in the SDR picture and then the partial image area may be implicitly increased by one CTU column, one CTU row, or one CTU in the coding order of the picture.
[0127] In addition, in gradual refresh, a partial image area does not need to be set for a non-reference picture that refers to other pictures but is not referenced by other pictures.
[0128] FIG. 12(b) is a diagram for explaining an outline of another gradual refresh of this embodiment. In the gradual refresh of this embodiment, first, the parameter coding unit 111 sets a partial image area A in a part of a picture, and starts from an SDR picture in which the partial image area is intra-coded, and the partial screen area A includes the previous partial image area in time and increases the area. At this time, the increased partial image area is intra-coded. Then, when the partial screen area A becomes the entire picture, the gradual refresh is assumed to end. Since the increased partial image area is difficult to predict in the time direction by inter prediction, the partial image area may be coded by referring to coding parameters.
[0129] In the video decoding device 31, if decoding is started from the bit stream with the SDR picture as an access point and decoding is continued until the area A becomes the entire picture, the entire picture can be correctly decoded.
[0130] FIG. 13 is a diagram showing an example of syntax notified to realize gradual refresh. FIG. 13 shows syntax (gradual refresh information) notified in a sequence parameter set (SPS). seq_refresh_enable_flag is a flag indicating whether or not gradual refresh is used in pictures after the SDR picture. The parameter decoding unit 302 decodes the gradual refresh information, and the video decoding device 31 performs decoding using gradual refresh when the seq_refresh_enable_flag flag is 1, and does not use gradual refresh when the seq_refresh_enable_flag flag is 0. The parameter decoding unit 302 decodes seq_refresh_period when seq_refresh_enable_flag is 1. seq_refresh_period indicates the number of pictures from the SDR picture, which is a random access point, until the entire picture can be correctly decoded. At this time, the number of non-reference pictures does not need to be counted.
[0131] (Configuration of a video decoding device) The configuration of a video decoding device 31 (FIG. 14) according to this embodiment will be described.
[0132] The video decoding device 31 includes an entropy decoding unit 301, a parameter decoding unit (prediction image decoding device) 302, a loop filter 305, a reference picture memory 306, a prediction parameter memory 307, a prediction image generating unit (prediction image generating device) 308, an inverse quantization and inverse transform unit 311, and an adder 312. Note that, in accordance with the video encoding device 11 described below, the video decoding device 31 may also be configured not to include the loop filter 305.
[0133] The parameter decoding unit 302 includes a partial image region control unit 320, which includes a header decoding unit 3020, a CT information decoding unit 3021, and a CU decoding unit 3022 (prediction mode decoding unit), which are not shown in the figure, and the CU decoding unit 3022 further includes a TU decoding unit 3024. The header decoding unit 3020 decodes parameter set information such as VPS, SPS, and PPS from the encoded data. The header decoding unit 3020 decodes a slice header (slice information) from the encoded data. The CT information decoding unit 3021 decodes a CT from the encoded data. The CU decoding unit 3022 decodes a CU from the encoded data. The TU decoding unit 3024 decodes QP update information (quantization correction value) and a quantization prediction error (residual_coding) from the encoded data when a prediction error is included in the TU.
[0134] The parameter decoding unit 302 includes an inter prediction parameter decoding unit 303 and an intra prediction parameter decoding unit 304 (not shown). The predicted image generating unit 308 includes an inter prediction image generating unit 309 and an intra prediction image generating unit 310.
[0135] In the following, an example will be described in which CTU and CU are used as processing units, but this is not limiting, and processing may be performed in sub-CU units. Alternatively, CTU, CU, and TU may be read as blocks, and sub-CU as sub-blocks, and processing may be performed in block or sub-block units.
[0136] The entropy decoding unit 301 performs entropy decoding on the externally input coded stream Te, and separates and decodes individual codes (syntax elements). Entropy coding includes a method of variable-length coding syntax elements using a context (probability model) adaptively selected according to the type of syntax element or surrounding circumstances, and a method of variable-length coding syntax elements using a predetermined table or formula. CABAC (Context Adaptive Binary Arithmetic Coding) is a representative of the former. The separated codes include prediction information for generating a predicted image and prediction errors for generating a difference image.
[0137] The entropy decoding unit 301 outputs a part of the separated codes to the parameter decoding unit 302. The part of the separated codes includes, for example, a prediction mode predMode, a merge flag merge_flag, a merge index merge_idx, an inter prediction identifier inter_pred_idc, a reference picture index refIdxLX, a prediction vector index mvp_LX_idx, a difference vector mvdLX, and the like. Control of which codes to decode is performed based on an instruction from the parameter decoding unit 302. The entropy decoding unit 301 outputs the quantized transform coefficients to the inverse quantization and inverse transform unit 311.
[0138] The loop filter 305 is a filter provided in the encoding loop, which removes block distortion and ringing distortion to improve image quality. The loop filter 305 applies filters such as a deblocking filter 3051, a sample adaptive offset (SAO), and an adaptive loop filter (ALF) to the decoded image of the CU generated by the adder 312.
[0139] The reference picture memory 306 stores the decoded image of the CU generated by the adder 312 in a location that is determined in advance for each current picture and current CU.
[0140] The prediction parameter memory 307 stores prediction parameters at a predetermined position for each CTU or CU to be decoded. Specifically, the prediction parameter memory 307 stores the parameters decoded by the parameter decoding unit 302 and the prediction mode predMode separated by the entropy decoding unit 301.
[0141] The prediction image generating unit 308 receives a prediction mode predMode, prediction parameters, and the like. The prediction image generating unit 308 also reads a reference picture from the reference picture memory 306. The prediction image generating unit 308 generates a prediction image of a block or sub-block using the prediction parameters and the read reference picture (reference picture block) in a prediction mode (intra prediction, inter prediction) indicated by the prediction mode predMode. Here, the reference picture block is a set of pixels on the reference picture (usually rectangular, so called a block), and is an area to be referenced for generating a prediction image.
[0142] (Inter-prediction image generation unit 309) When the prediction mode predMode indicates an inter prediction mode, the inter prediction image generation unit 309 generates a prediction image of a block or sub-block by inter prediction using the inter prediction parameters input from the inter prediction parameter decoding unit 303 and a reference picture.
[0143] (Motion Compensation) The motion compensation unit 3091 (interpolated image generating unit) generates an interpolated image (motion compensated image) by reading a block at a position shifted by the motion vector mvLX from the position of the target block in the reference picture RefLX specified by the reference picture index refIdxLX from the reference picture memory 306 based on the inter prediction parameters (prediction list usage flag predFlagLX, reference picture index refIdxLX, motion vector mvLX) input from the inter prediction parameter decoding unit 303. Here, if the accuracy of the motion vector mvLX is not integer accuracy, a filter for generating pixels at decimal positions called a motion compensation filter is applied to generate a motion compensated image.
[0144] The motion compensation unit 3091 first derives an integer position (xInt, yInt) and a phase (xFrac, yFrac) corresponding to coordinates (x, y) in the prediction block using the following formula.
[0145] xInt = xPb+(mvLX[0]>>(log2(MVBIT)))+x xFrac = mvLX[0]&(MVBIT-1) yInt = yPb+(mvLX[1]>>(log2(MVBIT)))+y yFrac = mvLX[1]&(MVBIT-1) Here, (xPb, yPb) is the upper left coordinate of a block of size wPb*hPb, where x=0...wPb-1, y=0...hPb-1, and MVBIT indicates the accuracy of the motion vector mvLX (1 / MVBIT pixel accuracy).
[0146] The motion compensation unit 3091 derives a temporary image temp[][] by performing horizontal interpolation processing on the reference picture refImg using an interpolation filter. In the following, Σ is the sum for k=0..NTAP-1, shift1 is a normalization parameter that adjusts the value range, and offset1=1<<(shift1-1).
[0147] temp[x][y] = (ΣmcFilter[xFrac][k]*refImg[xInt+k-NTAP / 2+1][yInt]+offset1)>>shift1 Next, the motion compensation unit 3091 derives the interpolated image Pred[][] by vertically interpolating the temporary image temp[][]. In the following, Σ is the sum for k=0..NTAP-1, and shift2 adjusts the range of values. Normalization parameter, offset2=1<<(shift2-1).
[0148] Pred[x][y] = (ΣmcFilter[yFrac][k]*temp[x][y+k-NTAP / 2+1]+offset2)>>shift2 In the case of bi-prediction, the above Pred[][] is derived for each L0 list and L1 list (called interpolated images PredL0[][] and PredL1[][]), and an interpolated image Pred[][] is generated from the interpolated images PredL0[][] and PredL1[][].
[0149] (Weighted prediction) The weighted prediction unit 3094 generates a predicted image of the block by multiplying the motion compensation image PredLX by a weighting coefficient. When one of the prediction list usage flags (predFlagL0 or predFlagL1) is 1 (uniprediction) and weighted prediction is not used, the weighted prediction unit 3094 performs the process of the following equation to match the motion compensation image PredLX (LX is L0 or L1) to the pixel bit depth bitDepth.
[0150] Pred[x][y] = Clip3(0,(1<<bitDepth)-1,(PredLX[x][y]+offset1)> >shift1) Here, shift1=14-bitDepth and offset1=1<<(shift1-1). Furthermore, when both reference list usage flags (predFlagL0 and predFlagL1) are 1 (bi-prediction BiPred) and weighted prediction is not used, the following equation is processed to average the motion compensation images PredL0 and PredL1 and match them to the pixel bit rate.
[0151] Pred[x][y] = Clip3(0,(1<<bitDepth)-1,(PredL0[x][y]+PredL1[x][y]+offset2)> >shift2) Here, shift2=15-bitDepth and offset2=1<<(shift2-1).
[0152] Furthermore, when uni-prediction and weighted prediction are performed, the weighted prediction unit 3094 derives a weighted prediction coefficient w0 and an offset o0 from the encoded data, and performs processing according to the following equations.
[0153] Pred[x][y] = Clip3(0,(1<<bitDepth)-1,((PredLX[x][y]*w0+2^(log2WD-1))> >log2WD)+o0) Here, log2WD is a variable indicating a predetermined shift amount.
[0154] Furthermore, in the case of performing bi-prediction BiPred and weighted prediction, the weighted prediction unit 3094 derives weighted prediction coefficients w0, w1, o0, and o1 from the coded data, and performs processing according to the following equations.
[0155] Pred[x][y] = Clip3(0,(1< <bitDepth)-1,(PredL0[x][y]*w0+PredL1[x][y]*w1+((o0+o1+1)<<log2WD))> >(log2WD+1)) The inter-prediction image generation unit 309 outputs the generated prediction image of the block to the addition unit 312 .
[0156] (Intra-prediction image generation unit 310) When the prediction mode predMode indicates an intra prediction mode, the intra prediction image generation unit 310 performs intra prediction using the intra prediction parameters input from the intra prediction parameter decoding unit 304 and reference pixels read from the reference picture memory 306 .
[0157] Specifically, the intra-prediction image generation unit 310 reads adjacent blocks in a predetermined range from a target block on a target picture from the reference picture memory 306. The predetermined range refers to adjacent blocks to the left, upper left, upper, and upper right of the target block, and the area to be referenced differs depending on the intra-prediction mode.
[0158] The intra-prediction image generating unit 310 generates a prediction image of the current block by referring to the read decoded pixel values and the prediction mode indicated by the intra-prediction mode IntraPredMode. The intra-prediction image generating unit 310 outputs the generated prediction image to the adder 312.
[0159] The inverse quantization and inverse transform unit 311 inverse quantizes the quantized transform coefficients input from the entropy decoding unit 301 to obtain transform coefficients. The quantized transform coefficients are coefficients obtained by performing frequency transform such as DCT (Discrete Cosine Transform), DST (Discrete Sine Transform), KLT (Karyhnen Loeve Transform) on prediction errors in the encoding process and quantizing the transform coefficients. The inverse quantization and inverse transform unit 311 performs inverse frequency transform such as inverse DCT, inverse DST, and inverse KLT on the obtained transform coefficients to calculate prediction errors. The inverse quantization and inverse transform unit 311 outputs the prediction errors to the adder unit 312.
[0160] The adder 312 generates a decoded image of the block by adding, for each pixel, the predicted image of the block input from the predicted image generation unit 308 and the prediction error input from the inverse quantization and inverse transform unit 311. The adder 312 stores the decoded image of the block in the reference picture memory 306, and also outputs it to the loop filter 305.
[0161] (Configuration of a video encoding device) Next, the configuration of the video encoding device 11 according to this embodiment will be described. Fig. 27 is a block diagram showing the configuration of the video encoding device 11 according to this embodiment. The video encoding device 11 includes a prediction image generating unit 101, a subtraction unit 102, a transformation and quantization unit 103, an inverse quantization and inverse transformation unit 105, an addition unit 106, a loop filter 107, a prediction parameter memory (prediction parameter storage unit, frame memory) 108, a reference picture memory (reference image storage unit, frame memory) 109, an encoding parameter determining unit 110, a parameter encoding unit 111, and an entropy encoding unit 104.
[0162] The predicted image generating unit 101 generates a predicted image for each CU, which is an area obtained by dividing each picture of the image T. The predicted image generating unit 101 operates in the same manner as the predicted image generating unit 308 already described, and therefore a description thereof will be omitted.
[0163] The subtraction unit 102 generates a prediction error by subtracting the pixel values of the predicted image of the block input from the predicted image generation unit 101 from the pixel values of the image T. The subtraction unit 102 outputs the prediction error to the transformation and quantization unit 103.
[0164] The transform / quantization unit 103 calculates transform coefficients by frequency transforming the prediction errors input from the subtraction unit 102, and derives quantized transform coefficients by quantizing the prediction errors. The transform / quantization unit 103 outputs the quantized transform coefficients to the entropy coding unit 104 and the inverse quantization / inverse transform unit 105.
[0165] The inverse quantization and inverse transform unit 105 is the same as the inverse quantization and inverse transform unit 311 (FIG. 26) in the video decoding device 31, and a description thereof will be omitted. The calculated prediction error is output to the adder .
[0166] The parameter coding unit 111 includes a partial image region control unit 120, an inter-prediction parameter coding unit 112, and an intra-prediction parameter coding unit 113 (not shown).
[0167] The partial image region control unit 120 includes a header encoding unit 1110, a CT information encoding unit 1111, a CU encoding unit 1112 (prediction mode encoding unit), and an inter prediction parameter encoding unit 112 and an intra prediction parameter encoding unit 113 (not shown). The CU encoding unit 1112 further includes a TU encoding unit 1114.
[0168] The operation of each module will be outlined below: The parameter coding unit 111 performs coding processing of parameters such as header information, division information, prediction information, and quantized transformation coefficients.
[0169] The CT information encoding unit 1111 encodes the QT, MT (BT, TT) division information and the like from the encoded data.
[0170] The CU encoding unit 1112 encodes the CU information, prediction information, the TU split flag split_transform_flag, the CU residual flags cbf_cb, cbf_cr, cbf_luma, and the like.
[0171] When a prediction error is included in a TU, the TU encoding unit 1114 encodes the QP update information (quantization correction value) and the quantized prediction error (residual_coding).
[0172] The entropy coding unit 104 converts syntax elements supplied from a supply source into binary data, generates coded data by an entropy coding method such as CABAC, and outputs the coded data. The syntax elements are supplied from the CT information coding unit 1111 and the CU coding unit 1112. The syntax elements are inter prediction parameters (prediction mode predMode, merge flag merge_flag, merge index merge_idx, inter prediction identifier inter_pred_idc, reference picture index refIdxLX, prediction vector index mvp_LX_idx, difference vector mvdLX), intra prediction parameters (prev_intra_luma_pred_flag, mpm_idx, rem_selected_mode_flag, rem_selected_mode, rem_non_selected_mode), quantized transform coefficients, and the like.
[0173] The entropy coding unit 104 entropy codes the division information, the prediction parameters, the quantized transformation coefficients, etc. to generate a coded stream Te, and outputs it.
[0174] (Configuration of the inter-prediction parameter encoding unit) The inter prediction parameter coding unit 112 derives inter prediction parameters based on the prediction parameters input from the coding parameter determination unit 110. The inter prediction parameter coding unit 112 includes a part of the same configuration as the configuration in which the inter prediction parameter decoding unit 303 derives inter prediction parameters.
[0175] (Configuration of the intra-prediction parameter encoding unit 113) The intra prediction parameter encoding unit 113 derives a format for encoding (for example, mpm_idx, rem_intra_luma_pred_mode, etc.) from the intra prediction mode IntraPredMode input from the encoding parameter determination unit 110. The intra prediction parameter encoding unit 113 includes a part of a configuration that is the same as the configuration in which the intra prediction parameter decoding unit 304 derives intra prediction parameters.
[0176] The adder 106 generates a decoded image by adding, for each pixel, the pixel value of the predicted image of the block input from the predicted image generation unit 101 and the prediction error input from the inverse quantization and inverse transform unit 105. The adder 106 stores the generated decoded image in the reference picture memory 109.
[0177] The loop filter 107 performs deblocking filtering, SAO, and ALF on the decoded image generated by the adder 106. Note that the loop filter 107 does not necessarily have to include the above three types of filters, and may be configured, for example, as only a deblocking filter.
[0178] The prediction parameter memory 108 stores the prediction parameters generated by the coding parameter determination unit 110 in a predetermined location for each current picture and CU.
[0179] The reference picture memory 109 stores the decoded image generated by the loop filter 107 at a predetermined position for each current picture and CU.
[0180] The coding parameter determination unit 110 selects one set from among a plurality of sets of coding parameters. The coding parameters are the above-mentioned QT, BT or TT division information, prediction parameters, or parameters to be coded that are generated in relation to these. The predicted image generation unit 101 generates a predicted image using these coding parameters.
[0181] The coding parameter determination unit 110 calculates an RD cost value indicating the magnitude of the information amount and the coding error for each of the multiple sets. The RD cost value is, for example, the sum of the code amount and the value obtained by multiplying the squared error by a coefficient λ. The code amount is the information amount of the coding stream Te obtained by entropy coding the quantization error and the coding parameters. The squared error is the squared sum of the prediction errors calculated in the subtraction unit 102. The coefficient λ is a real number greater than zero that is set in advance. The coding parameter determination unit 110 selects a set of coding parameters that minimizes the calculated cost value. As a result, the entropy coding unit 104 outputs the selected set of coding parameters as the coding stream Te. The coding parameter determination unit 110 stores the determined coding parameters in the prediction parameter memory 108.
[0182] In addition, a part of the video encoding device 11 and the video decoding device 31 in the above-mentioned embodiment, for example, the entropy decoding unit 301, the parameter decoding unit 302, the loop filter 305, the predicted image generating unit 308, the inverse quantization and inverse transform unit 311, the addition unit 312, the predicted image generating unit 101, the subtraction unit 102, the transform and quantization unit 103, the entropy encoding unit 104, the inverse quantization and inverse transform unit 105, the loop filter 107, the encoding parameter determination unit 110, and the parameter encoding unit 111 may be realized by a computer. In this case, a program for realizing this control function may be recorded in a computer-readable recording medium, and the program recorded in the recording medium may be read into and executed by a computer system. In addition, the "computer system" referred to here is a computer system built into either the video encoding device 11 or the video decoding device 31, and includes hardware such as an OS and peripheral devices. In addition, "computer-readable recording medium" refers to portable media such as flexible disks, optical magnetic disks, ROMs, and CD-ROMs, and storage devices such as hard disks built into computer systems. Furthermore, "computer-readable recording medium" may also include devices that dynamically hold a program for a short period of 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, and devices that hold a program for a certain period of time, such as volatile memory inside a computer system that serves as a server or client in such cases. Furthermore, the above program may be one that realizes part of the above-mentioned functions, or may be one that can realize the above-mentioned functions in combination with a program already recorded in the computer system.
[0183] A video decoding device according to an aspect of the present invention includes a picture division unit that divides a picture into partial image areas and non-partial image areas, with any one of a CTU, a CTU column, and a CTU row being the minimum unit, and a predicted image generation unit that generates a predicted image; The predicted image generation unit uses intra prediction and loop filter processing that references only decoded pixels of the partial image area in the picture, or inter prediction that references a partial image area of a reference picture of the picture, for blocks included in a partial image area, and uses intra prediction and loop filter processing that references decoded pixels in the picture, or inter prediction that references a reference picture of the picture, for blocks included in a non-partial image area, and the video decoding device is characterized in that after decoding the picture, the partial image area of the picture is set as the partial image area of the reference picture.
[0184] A video decoding device according to one embodiment of the present invention includes a picture division unit that divides a picture into partial image areas and non-partial image areas, with any one of CTUs, CTU columns, and CTU rows being the smallest unit, and a predicted image generation unit that generates a predicted image, wherein the predicted image generation unit refers to information indicating whether a picture is randomly accessible, and if the picture is randomly accessible, uses intra prediction and loop filter processing that refers only to decoded pixels of the partial image area in the picture for blocks included in the partial image area, and if the picture is not randomly accessible, uses intra prediction and loop filter processing that refers only to decoded pixels of the partial image area in the picture or inter prediction that refers to a partial image area of a reference picture of the picture for blocks included in the partial image area, and for blocks included in the non-partial image area, uses intra prediction and loop filter processing that refers to decoded pixels in the picture or inter prediction that refers to a reference picture of the picture, regardless of whether the picture is randomly accessible, and the video decoding device sets the partial image area of the picture as the partial image area of the reference picture after decoding the picture.
[0185] A video decoding device according to one aspect of the present invention is characterized in that the picture division unit divides the picture into a partial image area and a non-partial image area by referring to area information decoded from encoded data.
[0186] In a video decoding device according to one aspect of the present invention, the region information includes information indicating a position and a size of the partial image region.
[0187] A video decoding device according to one aspect of the present invention is characterized in that it decodes refresh information indicating the number of pictures from a picture including randomly accessible information to the picture where the entire picture is a partial image area.
[0188] A video encoding device according to one embodiment of the present invention includes a picture division unit that divides a picture into partial image regions and non-partial image regions using any one of CTUs, CTU columns, and CTU rows as the smallest unit, and a predicted image generation unit that generates a predicted image, wherein the predicted image generation unit uses intra prediction and loop filter processing that references only decoded pixels of the partial image region in the picture, or inter prediction that references a restricted reference region of a reference picture of the picture, for blocks included in the partial image region, and intra prediction and loop filter processing that references decoded pixels in the picture, or inter prediction that references a reference picture of the picture, for blocks included in the non-partial image region, and sets the partial image region of the picture as the restricted reference region after encoding the picture.
[0189] In addition, a part or the whole of the video encoding device 11 and the video decoding device 31 in the above-mentioned embodiment may be realized as an integrated circuit such as an LSI (Large Scale Integration). Each functional block of the video encoding device 11 and the video decoding device 31 may be individually made into a processor, or a part or the whole may be integrated into a processor. The integrated circuit method is not limited to LSI, and may be realized by a dedicated circuit or a general-purpose processor. Furthermore, when an integrated circuit technology that replaces LSI appears due to the progress of semiconductor technology, an integrated circuit based on that technology may be used.
[0190] Although one embodiment of the present invention has been described in detail above with reference to the drawings, the specific configuration is not limited to the above, and various design changes, etc. are possible within the scope that does not deviate from the gist of the present invention.
[0191] [Application example] The above-mentioned video encoding device 11 and video decoding device 31 can be mounted on various devices that transmit, receive, record, and play videos. The video may be a natural video captured by a camera or the like, or an artificial video (including CG and GUI) generated by a computer or the like.
[0192] First, it will be described with reference to FIG. 16 that the above-mentioned video encoding device 11 and video decoding device 31 can be used for transmitting and receiving videos.
[0193] Fig. 16(a) is a block diagram showing the configuration of a transmitting device PROD_A equipped with a video encoding device 11. As shown in Fig. 16(a), the transmitting device PROD_A includes an encoding unit PROD_A1 that obtains encoded data by encoding a video, a modulation unit PROD_A2 that obtains a modulated signal by modulating a carrier wave with the encoded data obtained by the encoding unit PROD_A1, and a transmitting unit PROD_A3 that transmits the modulated signal obtained by the modulation unit PROD_A2. The above-mentioned video encoding device 11 is used as this encoding unit PROD_A1.
[0194] The transmitting device PROD_A may further include a camera PROD_A4 for capturing moving images, a recording medium PROD_A5 for recording moving images, an input terminal PROD_A6 for inputting moving images from the outside, and an image processing unit A7 for generating or processing images, as a supply source of moving images to be input to the encoding unit PROD_A1. In Fig. 16(a), a configuration in which the transmitting device PROD_A includes all of these components is illustrated, but some of them may be omitted.
[0195] The recording medium PROD_A5 may record unencoded video, or may record video encoded by an encoding method for recording that is different from the encoding method for transmission. In the latter case, a decoding unit (not shown) that decodes the encoded data read from the recording medium PROD_A5 according to the encoding method for recording may be interposed between the recording medium PROD_A5 and the encoding unit PROD_A1.
[0196] Fig. 16(b) is a block diagram showing the configuration of a receiving device PROD_B equipped with a video decoding device 31. As shown in Fig. 16(b), the receiving device PROD_B includes a receiving unit PROD_B1 that receives a modulated signal, a demodulation unit PROD_B2 that obtains coded data by demodulating the modulated signal received by the receiving unit PROD_B1, and a decoding unit PROD_B3 that obtains a video by decoding the coded data obtained by the demodulation unit PROD_B2. The above-mentioned video decoding device 31 is used as this decoding unit PROD_B3.
[0197] The receiving device PROD_B may further include, as destinations of the moving image output by the decoding unit PROD_B3, a display PROD_B4 for displaying the moving image, a recording medium PROD_B5 for recording the moving image, and an output terminal PROD_B6 for outputting the moving image to the outside. In Fig. 16(b), a configuration in which the receiving device PROD_B includes all of these components is illustrated, but some of them may be omitted.
[0198] The recording medium PROD_B5 may be for recording unencoded video, or may be encoded by an encoding method for recording that is different from the encoding method for transmission. In the latter case, it is preferable to interpose an encoding unit (not shown) between the decoding unit PROD_B3 and the recording medium PROD_B5, which encodes the video acquired from the decoding unit PROD_B3 according to the encoding method for recording.
[0199] The transmission medium for transmitting the modulated signal may be wireless or wired. The transmission mode for transmitting the modulated signal may be broadcast (here, this refers to a transmission mode in which the destination is not specified in advance) or communication (here, this refers to a transmission mode in which the destination is specified in advance). In other words, the transmission of the modulated signal may be realized by any of wireless broadcast, wired broadcast, wireless communication, and wired communication.
[0200] For example, a broadcasting station (such as a broadcasting facility) / receiving station (such as a television receiver) for terrestrial digital broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals by wireless broadcasting. Also, a broadcasting station (such as a broadcasting facility) / receiving station (such as a television receiver) for cable television broadcasting is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals by cable broadcasting.
[0201] Also, a server (such as a workstation) / client (such as a television receiver, a personal computer, a smartphone, etc.) of a VOD (Video On Demand) service or a video sharing service using the Internet is an example of a transmitting device PROD_A / receiving device PROD_B that transmits and receives modulated signals by communication (usually, in a LAN, either wireless or wired is used as a transmission medium, and in a WAN, wired is used as a transmission medium). Here, personal computers include desktop PCs, laptop PCs, and tablet PCs. Also, smartphones include multi-function mobile phone terminals.
[0202] The client of the video hosting service has a function to decode the encoded data downloaded from the server and display it on a display, as well as a function to encode the video captured by the camera and upload it to the server. That is, the client of the video hosting service functions as both the transmitting device PROD_A and the receiving device PROD_B.
[0203] Next, with reference to FIG. 17, it will be described how the above-mentioned video encoding device 11 and video decoding device 31 can be used for recording and reproducing videos.
[0204] 17(a) is a block diagram showing the configuration of a recording device PROD_C equipped with the above-mentioned video encoding device 11. As shown in the figure, the recording device PROD_C includes an encoding unit PROD_C1 that obtains encoded data by encoding a video, and a writing unit PROD_C2 that writes the encoded data obtained by the encoding unit PROD_C1 onto a recording medium PROD_M. The above-mentioned video encoding device 11 is used as this encoding unit PROD_C1.
[0205] The recording medium PROD_M may be (1) a type built into the recording device PROD_C, such as an HDD (Hard Disk Drive) or SSD (Solid State Drive), (2) a type connected to the recording device PROD_C, such as an SD memory card or USB (Universal Serial Bus) flash memory, or (3) a type loaded into a drive device (not shown) built into the recording device PROD_C, such as a DVD (Digital Versatile Disc: registered trademark) or BD (Blu-ray (registered trademark) Disc: registered trademark).
[0206] The recording device PROD_C may further include a camera PROD_C3 for capturing moving images, an input terminal PROD_C4 for inputting moving images from the outside, a receiving unit PROD_C5 for receiving moving images, and an image processing unit PROD_C6 for generating or processing images, as a supply source of moving images to be input to the encoding unit PROD_C1. Although the figure illustrates a configuration in which the recording device PROD_C includes all of these, some of them may be omitted.
[0207] The receiving unit PROD_C5 may receive unencoded video, or may receive encoded data encoded by an encoding method for transmission that is different from the encoding method for recording. In the latter case, a transmission decoding unit (not shown) that decodes the encoded data encoded by the encoding method for transmission may be interposed between the receiving unit PROD_C5 and the encoding unit PROD_C1.
[0208] Examples of such a recording device PROD_C include a DVD recorder, a BD recorder, and an HDD (Hard Disk Drive) recorder (in this case, the input terminal PROD_C4 or the receiving unit PROD_C5 is the main source of the moving image). Other examples of such a recording device PROD_C include a camcorder (in this case, the camera PROD_C3 is the main source of the moving image), a personal computer (in this case, the receiving unit PROD_C5 or the image processing unit C6 is the main source of the moving image), and a smartphone (in this case, the camera PROD_C3 or the receiving unit PROD_C5 is the main source of the moving image).
[0209] 17(b) is a block diagram showing the configuration of a playback device PROD_D equipped with the above-mentioned video decoding device 31. As shown in the figure, the playback device PROD_D includes a reading unit PROD_D1 that reads out coded data written to a recording medium PROD_M, and a decoding unit PROD_D2 that obtains video by decoding the coded data read by the reading unit PROD_D1. The above-mentioned video decoding device 31 is used as this decoding unit PROD_D2.
[0210] The recording medium PROD_M may be (1) a type that is built into the playback device PROD_D, such as an HDD or SSD, (2) a type that is connected to the playback device PROD_D, such as an SD memory card or USB flash memory, or (3) a type that is loaded into a drive device (not shown) built into the playback device PROD_D, such as a DVD or BD.
[0211] The playback device PROD_D may further include, as destinations of the video output by the decoding unit PROD_D2, a display PROD_D3 for displaying the video, an output terminal PROD_D4 for outputting the video to the outside, and a transmission unit PROD_D5 for transmitting the video. In the figure, the playback device PROD_D is illustrated as having all of these components, but some of them may be omitted.
[0212] The transmission unit PROD_D5 may transmit unencoded video, or may transmit encoded data encoded by an encoding method for transmission different from the encoding method for recording. In the latter case, it is preferable to interpose an encoding unit (not shown) between the decoding unit PROD_D2 and the transmission unit PROD_D5, which encodes the video by the encoding method for transmission.
[0213] Examples of such a playback device PROD_D include a DVD player, a BD player, and an HDD player (in this case, the output terminal PROD_D4 to which a television receiver or the like is connected is the main destination of the video image). Other examples of such a playback device PROD_D include a television receiver (in this case, the display PROD_D3 is the main destination of the video image), a digital signage (also called an electronic billboard or electronic bulletin board, and the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the video image), a desktop PC (in this case, the output terminal PROD_D4 or the transmission unit PROD_D5 is the main destination of the video image), a laptop or tablet PC (in this case, the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the video image), and a smartphone (in this case, the display PROD_D3 or the transmission unit PROD_D5 is the main destination of the video image).
[0214] (Hardware and Software Realizations) Furthermore, each block of the above-mentioned video decoding device 31 and video encoding device 11 may be realized in hardware by a logic circuit formed on an integrated circuit (IC chip), or in software by using a CPU (Central Processing Unit).
[0215] In the latter case, each of the above devices includes a CPU that executes the commands of a program that realizes each function, a ROM (Read Only Memory) that stores the above program, a RAM (Random Access Memory) that expands the above program, a storage device (recording medium) such as a memory that stores the above program and various data, etc. The object of the embodiment of the present invention can also be achieved by supplying each of the above devices with a recording medium on which the program code (executable program, intermediate code program, source program) of the control program of each of the above devices, which is software that realizes the above-mentioned functions, is recorded in a computer-readable manner, and the computer (or CPU or MPU) reads and executes the program code recorded on the recording medium.
[0216] Examples of the recording medium include tapes such as magnetic tapes and cassette tapes, magnetic disks such as floppy (registered trademark) disks and hard disks, disks including optical disks such as CD-ROMs (Compact Disc Read-Only Memory), MO disks (Magneto-Optical discs), MDs (Mini Discs), DVDs (Digital Versatile Discs: registered trademark), CD-Rs (CD Recordable), and Blu-ray (registered trademark) Discs: registered trademark, cards such as IC cards (including memory cards) and optical cards, semiconductor memories such as mask ROMs, EPROMs (Erasable Programmable Read-Only Memory), EEPROMs (Electrically Erasable and Programmable Read-Only Memory: registered trademark), and flash ROMs, and logic circuits such as PLDs (Programmable logic devices) and FPGAs (Field Programmable Gate Arrays).
[0217] Moreover, each of the above devices may be configured to be connectable to a communication network, and the above program code may be supplied via the communication network. This communication network is not particularly limited as long as it is capable of transmitting the program code. For example, the Internet, an intranet, an extranet, a LAN (Local Area Network), an ISDN (Integrated Services Digital Network), a VAN (Value-Added Network), a CATV (Community Rantenn television / Cable Television) communication network, a virtual private network, a telephone line network, a mobile communication network, a satellite communication network, etc. may be used. Moreover, the transmission medium constituting this communication network is not limited to a specific configuration or type as long as it is a medium capable of transmitting the program code. For example, it can be used in wired communication such as IEEE (Institute of Electrical and Electronic Engineers) 1394, USB, power line carrier, cable TV line, telephone line, ADSL (Asymmetric Digital Subscriber Line) line, etc., or in wireless communication such as infrared such as IrDA (Infrared Data Association) or remote control, BlueTooth (registered trademark), IEEE802.11 wireless, HDR (High Data Rate), NFC (Near Field Communication), DLNA (Digital Living Network Alliance: registered trademark), mobile phone network, satellite line, terrestrial digital broadcasting network, etc. 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.
[0218] The present invention is not limited to the above-described embodiment, and various modifications are possible within the scope of the claims. In other words, the technical scope of the present invention also includes embodiments obtained by combining technical means that are appropriately modified within the scope of the claims. [Industrial Applicability]
[0219] The embodiments of the present invention can be suitably applied to a video decoding device that decodes coded data in which image data is coded, and a video coding device that generates coded data in which image data is coded, and can also be suitably applied to the data structure of coded data that is generated by a video coding device and referenced by the video decoding device. (CROSS REFERENCE TO RELATED APPLICATIONS) This application claims the benefit of priority to Japanese Patent Application No. 2018-160712, filed on August 29, 2018, the entire contents of which are incorporated herein by reference. [Explanation of symbols]
[0220] 31 Image Decoding Device 301 Entropy Decoding Unit 302 Parameter Decoding Unit 3020 Header Decoding Unit 303 Inter-prediction parameter decoding unit 304 Intra prediction parameter decoding unit 308 Prediction Image Generation Unit 309 Inter-prediction image generation unit 310 Intra-prediction image generation unit 311 Inverse quantization and inverse transformation unit 312 Addition section 320 Partial Image Area Control Unit 11 Image encoding device 101 Prediction image generation unit 102 Subtraction section 103 Transformation and Quantization Section 104 Entropy coding unit 105 Inverse quantization and inverse transformation unit 107 Loop Filter 110 Encoding parameter determination unit 111 Parameter Encoding Unit 112 Inter-prediction parameter coding unit 113 Intra prediction parameter coding unit 120 Partial image area control section 1110 Header encoding part 1111 CT information encoder 1112 CU encoding unit (prediction mode encoding unit) 1114 TU encoding section
Claims
1. 1. A method for signaling gradual refresh for decoding a set of pictures, comprising: Identifying a first picture in the set of pictures as being associated with a gradual refresh picture; Identifying nal_unit_type as a Sequential Decoding Refresh (SDR) Network Abstraction Layer (NAL) UNIT type; The nal_unit_type is stored in the encoded stream, the nal_unit_type is associated with a slice header and the first picture and identifies the presence of the incremental refresh picture; The first picture in the entire intra-coded partial image area can be considered as an SDR picture with the same nal_unit_type, storing an enable flag in the encoded stream to identify use of gradual refresh for decoding at least a subset of pictures in the set of pictures; identifying a number of pictures in the encoded stream from the first picture until an entire picture is correctly decoded, the number being sent if the enable flag is true; if the enable flag is false, bypassing the number of pictures from the first picture until the entire picture is correctly decoded; method.
2. The method of claim 1 , wherein the enable flag is stored in a sequence parameter set (SPS) of a coded stream associated with the first picture.
3. The method of claim 1 , further comprising storing in the encoded stream the number of pictures from the gradual refresh picture to a picture whose entirety can be correctly decoded.
4. The nal_unit_type is stored in a NAL UNIT of the encoded stream, The method of claim 1 , wherein if the nal_unit_type indicates that the first picture is an SDR picture, the slice header includes gradual coded refresh (GDR) information.
5. The method of claim 1 , wherein the coded stream comprises an encoding of a set of pictures including the first picture.
6. The method of claim 1 , wherein the subset of pictures includes the first picture.
7. The method of claim 1 , wherein the subset of pictures includes one or more pictures after the first picture.
8. the subset of pictures includes the number of pictures after the first picture. The method of claim 1.
9. The method of claim 8 , wherein the number specifies the number of pictures that need to be processed after the initial picture to fully decode the gradual refresh picture.
10. 10. The method of claim 9, wherein a parameter decoding unit of a video decoding device uses the nal_unit_type to identify the presence of the gradual refresh picture and uses the stored number to identify the number of pictures that need to be processed to completely decode the gradual refresh picture.
11. The method of claim 8 , wherein storing the number comprises storing the number in a parameter set of a NAL UNIT of a coded stream associated with the first picture.
12. The method of claim 11 , wherein the parameter set of the NAL UNIT is a sequence parameter set (SPS) of the coded stream associated with the first picture.
13. The method of claim 11 , wherein storing the enable flag comprises storing the enable flag in a sequence parameter set (SPS) of the encoded stream associated with the first picture.
Citation Information
Patent Citations
A Method for Random Access and Gradual Image Update in Image Coding
JP2005533444A
Region of interest and signaling of incremental decoding refresh in video coding
JP2015534775A
Incremental decoding refresh with temporal scalability support in video coding
JP2016509404A
Video encoding / decoding device, method, and program
WO2014002385A1
Video decoding device and video coding device
WO2020045248A1
