WO2018128222A1 - Method and apparatus for image decoding in image coding system - Google Patents
Method and apparatus for image decoding in image coding system Download PDFInfo
- Publication number
- WO2018128222A1 WO2018128222A1 PCT/KR2017/003687 KR2017003687W WO2018128222A1 WO 2018128222 A1 WO2018128222 A1 WO 2018128222A1 KR 2017003687 W KR2017003687 W KR 2017003687W WO 2018128222 A1 WO2018128222 A1 WO 2018128222A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- flag
- block
- prediction
- merge
- current
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims abstract description 58
- 230000033001 locomotion Effects 0.000 claims description 89
- 230000002123 temporal effect Effects 0.000 claims description 24
- 238000013139 quantization Methods 0.000 claims description 16
- 239000000523 sample Substances 0.000 description 72
- 230000002093 peripheral effect Effects 0.000 description 32
- 241000023320 Luma <angiosperm> Species 0.000 description 19
- OSWPMRLSEDHDFF-UHFFFAOYSA-N methyl salicylate Chemical compound COC(=O)C1=CC=CC=C1O OSWPMRLSEDHDFF-UHFFFAOYSA-N 0.000 description 19
- 238000001914 filtration Methods 0.000 description 9
- 230000003044 adaptive effect Effects 0.000 description 8
- 230000008569 process Effects 0.000 description 7
- 230000008859 change Effects 0.000 description 6
- 238000000638 solvent extraction Methods 0.000 description 6
- 238000010586 diagram Methods 0.000 description 4
- 230000006870 function Effects 0.000 description 3
- 230000014509 gene expression Effects 0.000 description 2
- 230000004044 response Effects 0.000 description 2
- 230000001131 transforming effect Effects 0.000 description 2
- 235000010627 Phaseolus vulgaris Nutrition 0.000 description 1
- 244000046052 Phaseolus vulgaris Species 0.000 description 1
- 230000005540 biological transmission Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 230000000694 effects Effects 0.000 description 1
- 239000013074 reference sample Substances 0.000 description 1
- 230000009466 transformation Effects 0.000 description 1
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/105—Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/102—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
- H04N19/103—Selection of coding mode or of prediction mode
- H04N19/109—Selection of coding mode or of prediction mode among a plurality of temporal predictive coding modes
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/10—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
- H04N19/169—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
- H04N19/17—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
- H04N19/176—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N19/00—Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
- H04N19/44—Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
Definitions
- the present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus in an image coding system.
- the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields.
- the higher the resolution and the higher quality of the image data the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
- a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
- An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
- Another technical problem of the present invention is to provide a method and apparatus for deriving a prediction mode of a current block performed based on flag information.
- Another technical problem of the present invention is to provide a method and apparatus for determining a parsing order of a plurality of flags regarding a prediction mode of a current block.
- Another technical problem of the present invention is to provide a method and apparatus for deriving a context increase parameter for flag information about a current block.
- an image decoding method performed by a decoding apparatus.
- the method may include parsing a first flag indicating whether a prediction mode performed on a current block is an inter merge prediction mode, and when the value of the first flag is 0, setting a second flag for the current block. Parsing, deriving one of an intra prediction mode and an inter prediction motion vector prediction (MVP) mode as a prediction mode for the current block based on the second flag, and the current block based on the derived prediction mode And generating a predictive sample of.
- MVP inter prediction motion vector prediction
- a decoding apparatus for performing image decoding.
- the decoding apparatus parses a first flag indicating whether a prediction mode performed on a current block is an inter merge prediction mode, and when the value of the first flag is 0, a second flag for the current block.
- An entropy decoding unit for parsing, and a prediction mode for a current block among an intra prediction mode and an inter prediction motion vector prediction (MVP) mode based on the second flag, and deriving a prediction mode of the current block based on the derived prediction mode
- MVP inter prediction motion vector prediction
- a video encoding method performed by an encoding apparatus includes determining a prediction mode for a current block, generating a prediction sample of the current block based on the prediction mode for the current block, and generating flag information indicating a prediction mode for the current block. And encoding and outputting the flag information.
- a video encoding apparatus determines a prediction mode for the current block, generates a prediction sample of the current block based on the prediction mode for the current block, and generates a flag information indicating a prediction mode for the current block. And an entropy encoding unit for encoding and outputting the flag information.
- the merge flag of the current block can be parsed before the prediction mode flag, thereby reducing the amount of bits generated when the merge mode is performed on the current block, thereby improving the overall coding efficiency.
- the present invention it is possible to adaptively parse a merge flag of a current block before a prediction mode flag based on an arbitrary condition, thereby reducing the amount of bits generated when a merge mode is performed on the current block, thereby overall coding.
- the efficiency can be improved.
- FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
- FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
- FIG. 3 shows an example of a parsing order of syntax elements for a CU.
- FIG. 4 shows another example of a parsing order of syntax elements for a CU.
- FIG. 5 schematically illustrates a video encoding method by an encoding device according to the present invention.
- FIG. 6 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
- each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software.
- two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations.
- Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
- a picture generally refers to a unit representing one image of a specific time zone
- a slice is a unit constituting a part of a picture in coding.
- One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
- a pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel.
- a sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
- a unit represents the basic unit of image processing.
- the unit may include at least one of a specific region of the picture and information related to the region.
- the unit may be used interchangeably with terms such as block or area in some cases.
- an M ⁇ N block may represent a set of samples or transform coefficients composed of M columns and N rows.
- FIG. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
- the video encoding apparatus 100 may include a picture divider 105, a predictor 110, a subtractor 115, a transformer 120, a quantizer 125, a reordering unit 130, An entropy encoding unit 135, an inverse quantization unit 140, an inverse transform unit 145, an adder 150, a filter unit 155, and a memory 160 are included.
- the picture divider 105 may divide the input picture into at least one processing unit.
- the processing unit may be a coding unit block (CU), a prediction unit (PU), or a transform unit (TU).
- a coding unit is a unit block of coding and may be split from a largest coding unit (LCU) into coding units of a deeper depth along a quad-tree structure.
- LCU largest coding unit
- the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized.
- a coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit.
- SCU smallest coding unit
- the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit.
- the prediction unit is a block partitioning from the coding unit block and may be a unit block of sample prediction. In this case, the prediction unit may be divided into sub blocks.
- the transform unit may be divided along the quad tree structure from the coding unit block, and may be a unit block for deriving a transform coefficient and / or a unit block for deriving a residual signal from the transform coefficient.
- a coding unit may be called a coding block (CB)
- a prediction unit is a prediction block (PB)
- a transform unit may be called a transform block (TB).
- a prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples.
- a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
- the current picture may be divided according to a quad-tree binary-tree (QTBT) structure.
- the coding unit, the prediction unit, and the transform unit may be used without being divided, and in this case, the integrated unit may be called a coding unit.
- the final coding unit may be square or non-square.
- the prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a prediction block including prediction samples of the current block.
- the unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
- the prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
- the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block.
- the prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode.
- the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes.
- the non-directional mode may include a DC prediction mode and a planner mode (Planar mode).
- the prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
- the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture.
- the prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block.
- the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block.
- the skip mode unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
- the MVP mode the motion vector of the current block can be derived using the motion vector of the neighboring block as a motion vector predictor.
- the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
- a reference picture including the temporal neighboring block may be called a collocated picture (colPic).
- the motion information may include a motion vector and a reference picture index.
- Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
- the highest picture on the reference picture list may be used as the reference picture.
- Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture.
- POC picture order count
- the subtraction unit 115 generates a residual sample which is a difference between the original sample and the prediction sample.
- residual samples may not be generated as described above.
- the transform unit 120 generates a transform coefficient by transforming the residual sample in units of transform blocks.
- the transform unit 120 may perform the transformation according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 ⁇ 4 residual array, the residual sample uses a discrete sine transform (DST). In other cases, the residual sample may be transformed by using a discrete cosine transform (DCT).
- DST discrete sine transform
- DCT discrete cosine transform
- the quantization unit 125 may quantize the transform coefficients to generate quantized transform coefficients.
- the reordering unit 130 rearranges the quantized transform coefficients.
- the reordering unit 130 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 130 has been described in a separate configuration, the reordering unit 130 may be part of the quantization unit 125.
- the entropy encoding unit 135 may perform entropy encoding on the quantized transform coefficients.
- Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like.
- the entropy encoding unit 135 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
- NAL network abstraction layer
- the inverse quantization unit 140 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 125, and the inverse transform unit 145 inversely transforms the inverse quantized values in the inverse quantization unit 135 to obtain a residual sample.
- the adder 150 reconstructs the picture by combining the residual sample and the predictive sample.
- the residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block.
- the adder 150 has been described in a separate configuration, the adder 150 may be part of the predictor 110.
- the filter unit 155 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected.
- the sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed.
- the filter unit 155 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
- ALF adaptive loop filter
- the memory 160 may store information necessary for reconstruction picture or encoding / decoding.
- the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 155.
- the stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture.
- the memory 160 may store (reference) pictures used for inter prediction.
- pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
- FIG. 2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
- the video decoding apparatus 200 includes an entropy decoding unit 210, a reordering unit 220, an inverse quantization unit 230, an inverse transform unit 240, a predictor 250, and an adder 260. , A filter unit 270, and a memory 280.
- the video decoding apparatus 200 may reconstruct the video in response to a process in which the video information is processed in the video encoding apparatus.
- the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus.
- the processing unit block of video decoding may be a coding unit block, a prediction unit block, or a transform unit block.
- the coding unit block may be divided along the quad tree structure from the largest coding unit block as a unit block of decoding.
- the prediction unit block is a block partitioned from the coding unit block and may be a unit block of sample prediction. In this case, the prediction unit block may be divided into sub blocks.
- the transform unit block may be divided along the quad tree structure from the coding unit block, and may be a unit block for deriving a transform coefficient or a unit block for deriving a residual signal from the transform coefficient.
- the entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
- a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
- the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step.
- the context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have.
- the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
- the information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 220).
- the reordering unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block.
- the reordering unit 220 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Although the reordering unit 220 has been described in a separate configuration, the reordering unit 220 may be a part of the quantization unit 230.
- the inverse quantization unit 230 may output the transform coefficients by inversely quantizing the transform coefficients quantized based on the (inverse) quantization parameter.
- information for deriving a quantization parameter may be signaled from the encoding apparatus.
- the inverse transform unit 240 may induce residual samples by inversely transforming the transform coefficients.
- the prediction unit 250 may perform prediction on the current block and generate a prediction block including prediction samples for the current block.
- the unit of prediction performed by the prediction unit 250 may be a coding block, a transform block, or a prediction block.
- the prediction unit 250 may determine whether to apply intra prediction or inter prediction based on the information about the prediction.
- a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different.
- the unit for generating a prediction sample in inter prediction and intra prediction may also be different.
- whether to apply inter prediction or intra prediction may be determined in units of CUs.
- a prediction mode may be determined and a prediction sample may be generated in PU units
- intra prediction a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
- the prediction unit 250 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture.
- the prediction unit 250 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block.
- the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
- the prediction unit 250 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture.
- the prediction unit 250 may induce a prediction sample for the current block by applying any one of a skip mode, a merge mode, and an MVP mode.
- motion information required for inter prediction of the current block provided by the video encoding apparatus for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
- the motion information of the neighboring block may be used as the motion information of the current block.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- the predictor 250 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block.
- the merge index may be signaled from the encoding device.
- the motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
- the difference (residual) between the prediction sample and the original sample is not transmitted.
- the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor.
- the neighboring block may include a spatial neighboring block and a temporal neighboring block.
- a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block.
- the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block.
- the information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list.
- the prediction unit 250 may derive the motion vector of the current block by using the merge index.
- a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block which is a temporal neighboring block.
- the prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list.
- the prediction unit 250 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index.
- the prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block.
- the prediction unit 250 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor.
- the prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
- the adder 260 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample.
- the adder 260 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample.
- the adder 260 is described in a separate configuration, the adder 260 may be part of the predictor 250.
- the filter unit 270 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture.
- the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering.
- ALF may be applied after deblocking filtering and / or sample adaptive offset.
- the memory 280 may store information necessary for reconstruction picture or decoding.
- the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 270.
- the memory 280 may store pictures used for inter prediction.
- pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
- the reconstructed picture can be used as a reference picture for another picture.
- the memory 280 may output the reconstructed picture in an output order.
- the current picture may be reconstructed by performing intra prediction and / or inter prediction. Further, whether to perform inter prediction or intra prediction may be determined in units of a coding unit (CU) in the current picture, and when it is determined that inter prediction is performed on the current CU, the prediction unit in the current CU
- the Prediction Unit may determine a prediction mode of one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode.
- the MVP mode may be referred to as an advanced motion vector prediction (AMVP) mode.
- the current picture may not be divided into separate units such as a CU and a PU, or may be divided into one unit integrating the CU and the PU.
- the CU and the PU may be integrated into a CU, and the current picture may be divided into only a CU in which the CU and the PU are integrated.
- a prediction mode of the current picture may be determined in units of the CU, and the prediction mode may be determined as one of an intra prediction mode, a merge mode among inter prediction modes, a skip mode, and an AMVP mode.
- the merge mode may be called an inter prediction merge mode
- the skip mode is an inter prediction skip mode
- the AMVP mode may be called an inter prediction AMVP mode.
- the prediction mode determined in the CU unit may be one of an intra prediction mode, an inter prediction merge mode, an inter prediction skip mode, and an inter prediction AMVP mode.
- the decoding apparatus indicates whether the inter prediction merge mode is performed on the current block before parsing a prediction mode flag indicating whether the prediction mode performed on the current block is an intra prediction mode or an inter prediction mode.
- a merge mode flag By parsing a merge mode flag, the amount of bits generated when the inter prediction merge mode is performed on the current block can be reduced.
- the merge flag may be parsed in preference to the prediction mode flag, and if the inter prediction merge mode is applied, the prediction mode flag may not be signaled.
- the syntax element of the merge flag may be merge_flag
- the syntax element of the prediction mode flag may be pred_mode_flag.
- the merge flag may be referred to as a first flag
- the prediction mode flag may be referred to as a second flag.
- the decoding apparatus may receive and parse a skip flag for the current CU, and determine whether a skip mode is performed on the current CU based on the skip flag. (S305).
- the syntax element representing the skip flag may be cu_skip_flag. Only intra prediction modes may be applied to blocks in an I slice, and thus a prediction mode may not be determined based on the skip flag.
- the decoding apparatus may receive and parse a merge index for the current CU, and determine a candidate block in the merge candidate list indicated by the merge index.
- the motion information on the current CU may be derived based on the motion information (S310).
- the decoding apparatus may receive and parse a prediction mode flag for the current CU. Based on the prediction mode flag, it may be determined which prediction mode of inter prediction mode and intra prediction mode is performed in the current CU (S315). For example, when the value of the prediction mode flag is 1, the current CU may be determined to perform an inter prediction mode, and when the value of the prediction mode flag is 0, the current CU may have an intra prediction mode. It may be judged to be performed.
- the decoding apparatus transmits to the current CU based on partitioning information on the current CU.
- One or more corresponding PUs may be derived (S320).
- the syntax element representing the partitioning information for the current CU may be part_mode.
- the decoding apparatus may determine one prediction mode among an intra prediction mode, an inter prediction merge mode, an inter prediction skip mode, and an inter prediction AMVP mode.
- the decoding apparatus may receive and parse a merge flag, and among the inter prediction merge mode and the inter prediction AMVP mode of the current PU corresponding to the current CU based on the merge flag. It may be determined whether one prediction mode is performed (S325). For example, when the value of the merge flag is 1, the current PU may be determined to perform an inter prediction merge mode, and when the value of the prediction mode flag is 0, the current PU may be an inter prediction AMVP mode. Can be determined to be performed.
- the decoding apparatus may receive and parse a merge index and based on the motion information of the candidate block in the merge candidate list indicated by the merge index.
- motion information of the current PU may be derived.
- the decoding apparatus may perform uni-prediction or bi-prediction on the current PU based on an inter prediction indicator. It may be determined whether to perform (S335). For example, when the value of the inter prediction indicator is 0, the current PU may be determined to be uni-predicted based on motion information included in the motion vector predictor candidate list L0, and the inter prediction indicator may be determined. When the value is 1, the current PU may be determined to be uni-predicted based on motion information included in the motion vector predictor candidate list L1. When the value of the inter prediction indicator is 2, the current PU is determined. May be determined to perform pair prediction based on the motion information in the motion vector predictor candidate list L0 and the motion information in the motion vector predictor candidate list L1.
- the decoding apparatus may receive and parse a reference picture index indicating a reference picture for the current PU included in the reference picture list L0, information about a motion vector difference (MVD) L0, and a motion vector predictor (MVP) L0 flag ( In operation S345, a reference picture index indicating the reference picture for the current PU included in the reference picture list L1, information on MVDL1, and an MVP L1 flag may be received and parsed (S345).
- MVD motion vector difference
- MVP motion vector predictor
- motion information for one or a plurality of PUs may be sequentially derived, and the decoding apparatus may determine whether the current PU is the last PU in decoding order among the PUs corresponding to the current CU. (S350). When the current PU is the last PU, the prediction procedure for the CU may be terminated, and when the current PU is not the last PU, a PU that is next to the current PU in decoding order among PUs corresponding to the current CU.
- the above-described process can be performed.
- the decoding apparatus derives one or more PUs for the current CU.
- it may be determined whether the most probable mode (MPM) based intra luma prediction mode is applied to the current PU based on the previous intra luma prediction flag.
- the previous intra luma prediction flag may be represented by a prev_intra_luma_pred_flag syntax element.
- the decoding apparatus may configure the MPM list based on the prediction mode of the left neighboring block and the intra mode of the upper neighboring block. In this case, an additional intra mode may be determined according to a predetermined specific condition and further included in the MPM list.
- the decoding apparatus may receive and parse an MPM index to derive the intra luma prediction mode for the current PU from the MPM list ( S360).
- the decoding apparatus derives the intra luma prediction mode for the current PU based on the main intra luma prediction mode information. Can be (S365).
- the decoding apparatus may derive the intra chroma prediction mode for the current PU based on the intra chroma prediction mode information (S370).
- the decoding apparatus may reduce the amount of bits for prediction of an image by parsing a syntax element representing a relatively high frequency prediction mode before other syntax elements, thereby improving overall coding efficiency.
- a 2N ⁇ 2N size CU may have a very high frequency of skip mode.
- the skip flag for the CU may be parsed preferentially. Specifically, for example, when the value of the skip flag is 1, that is, when a skip mode is performed in the CU, the decoding apparatus may parse a merge index for the CU. Through this, a bit amount for indicating a skip mode is performed to the CU having a high frequency of occurrence can be allocated as the minimum bit, and the overall coding efficiency can be improved.
- the occurrence frequency when the inter prediction merge mode is performed on the current CU may be higher than the occurrence frequency when the inter prediction AMVP mode and the intra prediction mode are performed on the current CU.
- the decoding apparatus may parse the merge flag for the current CU preferentially rather than the prediction mode flag for distinguishing whether the prediction mode performed on the current CU is an intra prediction mode or an inter prediction mode. The amount of bits generated when the inter prediction merge mode is performed on the current CU can be reduced.
- the decoding apparatus may receive and parse a skip flag for the current CU, and determine whether a skip mode is performed on the current CU based on the skip flag. (S405).
- the decoding apparatus may receive and parse a merge index for the current block, and the movement of the candidate block in the merge candidate list indicated by the merge index may be performed.
- the motion information on the current block may be derived based on the information (S410).
- the decoding apparatus may derive one or a plurality of PUs for the current CU.
- the current block may be a PU for the current CU.
- the decoding apparatus may not derive one or a plurality of PUs with respect to the current CU.
- the current block may be one unit integrating the CU and the PU, and one unit integrating the CU and the PU may be called a CU.
- the decoding apparatus determines the current block before parsing a prediction mode flag for the current block.
- the merge flag may be received and parsed (S415).
- the current block may be a PU for the current CU, and when the current picture is divided into one unit integrating the CU and the PU.
- the current block may be one unit integrating the CU and the PU, and one unit integrating the CU and the PU may be called a CU.
- the decoding apparatus may parse the merge flag prior to the prediction mode flag. For example, when the merge flag has a value of 1, the current block may be determined that the inter prediction merge mode is performed. When the merge flag has a value of 0, the current block may have an inter prediction merge mode. It may be determined that is not performed.
- the decoding apparatus may receive and parse a merge index for the current block, and the merge index may be The motion information of the current block may be derived based on the motion information of the candidate block in the pointed merge candidate list (S420).
- the decoding apparatus may receive and parse the prediction mode flag for the current block, and the prediction may be performed. Based on the mode flag, it may be determined which prediction mode of the inter prediction AMVP mode and the intra prediction mode is performed in the current block (S425). As shown in FIG. 4, the amount of bits generated when the inter prediction merge mode is performed on the current block can be reduced and the overall coding efficiency can be improved by changing the parsing order between the syntax elements of the current block. .
- the decoding apparatus uni-prediction or pair prediction on the current block based on an inter prediction indicator. It may be determined whether a (bi-prediction) is performed (S430). For example, when the value of the inter prediction indicator is 0, the current block may be determined to be unipredicted based on motion information included in the motion vector predictor candidate list L0, and the inter prediction indicator may be determined. When the value is 1, the current block may be determined to be unipredicted based on motion information included in the motion vector predictor candidate list L1. When the value of the inter prediction indicator is 2, the current block may be determined. May be determined to perform pair prediction based on the motion information in the motion vector predictor candidate list L0 and the motion information in the motion vector predictor candidate list L1.
- the decoding apparatus may receive and parse a reference picture index indicating a reference picture for the current block included in the reference picture list L0, information about a motion vector difference (MVD) L0, and a motion vector predictor (MVP) L0 flag ( In operation S440, a reference picture index indicating the reference picture for the current block included in the reference picture list L1, information about MVDL1, and an MVP L1 flag may be received and parsed.
- a reference picture index indicating the reference picture for the current block included in the reference picture list L1 information about MVDL1, and an MVP L1 flag may be received and parsed.
- the decoding apparatus determines that the current block is based on a previous intra luma prediction flag. It may be determined whether the most probable mode (MPM) based intra luma prediction mode is applied (S445).
- the previous intra luma prediction flag may be represented by a prev_intra_luma_pred_flag syntax element.
- the decoding apparatus may configure the MPM list based on the prediction mode of the left neighboring block and the intra mode of the upper neighboring block. In this case, an additional intra mode may be determined according to a predetermined specific condition and further included in the MPM list.
- the decoding apparatus may receive and parse an MPM index to derive an intra luma prediction mode for the current block from the MPM list ( S450). On the other hand, if it is determined that the intra luma prediction mode included in the MPM for the current block is not applied, the decoding apparatus determines an intra luma prediction mode for the current block based on the information of the main intra luma prediction mode. Can be derived (S455). After deriving the intra luma prediction mode for the current block, the decoding apparatus may derive the intra chroma prediction mode for the current block based on the intra chroma prediction mode information (S460).
- the generation rate between the inter prediction merge mode and the intra prediction mode may vary according to a slice or a sequence including the current block. Accordingly, the above-described method of minimizing the amount of bits generated when the inter prediction merge mode is performed on the current block can be adaptively applied to each slice based on an arbitrary condition, thereby maximizing the effect of the method. Can be improved. For example, a method of changing the parsing order between the syntax elements in slice units according to the following conditions may be applied, and a method of changing the parsing order between the syntax elements according to each combination of conditions may be applied. You may.
- the decoding apparatus may signal a flag for determining a parsing order of the prediction mode flag and the merge flag on a slice basis.
- the flag may be called a third flag.
- the decoding apparatus may first parse the merge flag and parse the prediction mode flag based on the value of the merge flag.
- the decoding apparatus may parse the prediction mode flag, and when the value of the prediction mode flag indicates the inter prediction mode, may parse the merge flag.
- the decoding apparatus may parse the merge flag in preference to the prediction mode flag, and parse the prediction mode flag based on the value of the merge flag. Can be.
- the decoding apparatus may parse the prediction mode flag, and when the value of the prediction mode flag indicates the inter prediction mode, may parse the merge flag.
- the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to whether a slice including a current block corresponds to a generalized bi-prediction (GBP) slice.
- GBP generalized bi-prediction
- the GBP slice may have up to two motion information for each block in the slice based on the L0 reference picture list and the L1 reference picture list, similarly to the B-prediction slice.
- the L0 reference picture list and the L1 reference picture list for the GBP slice may consist of only reference pictures located in the past than the GBP slice on the time axis.
- the decoding apparatus may parse the merge flag in preference to the prediction mode flag when the slice including the current block is the GBP slice, and when the slice including the current block is not the GBP slice, the prediction The mode flag may be parsed prior to the merge flag.
- the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the merge flag value.
- the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, the decoding apparatus parses the merge flag. can do.
- the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to a temporal level of a slice including the current block.
- the decoding apparatus may parse the merge flag preferentially over the prediction mode flag, and the temporal level of the slice including the current block is smaller than a specific value.
- the prediction mode flag may be parsed prior to the merge flag.
- the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the value of the merge flag.
- the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, parse the merge flag. Can be.
- the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to a quantization parameter (QP) value of the slice including the current block.
- QP quantization parameter
- the decoding device may parse the merge flag preferentially than the prediction mode flag, and the QP value of the slice including the current block is smaller than a specific value.
- the prediction mode flag may be parsed prior to the merge flag.
- the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the merge flag value.
- the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, parse the merge flag. Can be.
- the third flag for determining the parsing order of the prediction mode flag and the merge flag may be not only a slice unit but also a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit It may be signaled via higher levels.
- a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled in a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit. When the value of the fourth flag is 1, the third flag may be adaptively signaled for each slice.
- the decoding apparatus may change and apply context modeling for the merge flag. That is, the decoding apparatus may change and apply context modeling for entropy decoding the merge flag.
- the merge flag may be entropy decoded based on the context index for the merge flag.
- the merge flag may be entropy decoded based on a context increase parameter for the merge flag.
- the context index may be derived by adding a context increment parameter and a context index offset.
- the context index may be derived using the following equation.
- ctxIdx represents the context index
- ctxInc represents the context increase parameter
- ctxIdxOffset represents the context index offset
- the context increase parameter may be derived based on a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block.
- the context increase parameter may be derived based on a merge flag of the left neighboring block of the current block and a merge flag of the upper neighboring block of the current block.
- the context increase parameter may be derived based on the following table.
- condL is a condition value of the left neighboring block
- condA is a condition value of the upper neighboring block
- merge_flag [x0] [y0] is a merge flag of the current block
- merge_flag [xNbL] [yNbL] is of the left neighboring block.
- a merge flag, merge_flag [xNbA] [yNbA] is a merge flag of the upper neighboring block
- availableL indicates whether the left neighboring block is available
- availableA indicates whether the upper neighboring block is available. If the condition is satisfied, the condition value may indicate 1, and if the condition is not satisfied, the condition value may indicate 0.
- Availability may indicate 1 if available and 0 if not available.
- condition value of the left neighboring block may be the same as the value of the merge flag of the left neighboring block
- condition value of the upper neighboring block may be the same as the value of the merge flag of the upper neighboring block.
- the context increase parameter may be derived based on a merge flag of the left neighboring block, a merge flag of the upper neighboring block, whether the left neighboring block is available, and whether the upper neighboring block is available.
- the value of the increment parameter can be derived as one of zero, one and two.
- the decoding apparatus may entropy decode a merge flag of the current block based on the context increase parameter.
- the context The value of the increment parameter may be two.
- the value of the context increase parameter May be 1.
- the value of the context increase parameter May be 1.
- the value of the context increase parameter is May be one.
- the merge flag value of the left neighbor block is 1, the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, the value of the context increase parameter is May be one.
- the value of the context increase parameter may be 0. have.
- the context increase parameter may be derived based on a merge flag and a skip flag of the left neighboring block, a merge flag and a skip flag of the upper neighboring block.
- the context increase parameter may be derived based on the following table.
- cu_skip_flag [xNbL] [yNbL] represents a skip flag of the left neighboring block
- cu_skip_flag [xNbA] [yNbA] represents a skip flag of the upper neighboring block.
- the context increase parameter may include a merge flag of the left neighboring block, a skip flag of the left neighboring block, a merge flag of the upper neighboring block, a skip flag of the upper neighboring block, availability of the left neighboring block, and the upper neighbor.
- the block may be derived based on the availability of the block, and the value of the context increase parameter may be derived as one of 0, 1, and 2.
- the decoding apparatus may entropy decode a merge flag of the current block based on the context increase parameter.
- the condition value of the left neighboring block may be derived as 1.
- the condition value of the upper neighboring block may be derived as 1.
- the condition value of the left neighboring block and the availability of the left neighboring block the condition value of the upper neighboring block and the upper neighboring block
- the value of the context increase parameter may be derived based on availability.
- the value of the context increase parameter is 2 days. Can be.
- the value of the context increase parameter may be 1. have.
- the value of the context increase parameter may be 1. have.
- the value of the context increase parameter may be 1.
- the value of the context increase parameter may be 1.
- the value of the context increase parameter may be zero.
- the context increasing parameter may include a slice type of a slice including the current block, a prediction mode flag transmitted in a slice unit, a flag for determining a parsing order of a merge flag, a GBP slice corresponding to a slice including the current block, It may be derived based on a temporal level value for the current block or a QP value of a slice including the current block.
- the context increase parameter may be derived through a combination of the above-described conditions.
- FIG. 5 schematically illustrates a video encoding method by an encoding device according to the present invention.
- the method disclosed in FIG. 5 may be performed by the encoding apparatus disclosed in FIG. 1.
- S500 to S510 of FIG. 5 may be performed by the prediction unit of the encoding apparatus
- S520 to S530 may be performed by the entropy encoding unit of the encoding apparatus.
- the encoding apparatus determines a prediction mode for the current block (S500).
- the encoding apparatus may perform prediction based on various prediction modes, and may determine a prediction mode having the highest prediction accuracy among the prediction modes as the prediction mode performed on the current block.
- the encoding apparatus may determine a prediction mode of one of an intra prediction mode, an inter prediction skip mode, an inter prediction merge mode, and an inter prediction AMVP mode as the prediction mode for the current block.
- the encoding apparatus generates a prediction sample of the current block based on the prediction mode for the current block (S510).
- the encoding apparatus may generate a prediction sample of the current block through an intra prediction mode, an inter prediction skip mode, an inter prediction merge mode, or an inter prediction AMVP mode.
- the encoding apparatus may generate a reconstruction sample for the current block based on the prediction sample.
- the encoding apparatus generates flag information indicating a prediction mode for the current block (S520).
- the flag information may include a first flag indicating whether a prediction mode for the current block is an inter merge prediction mode.
- the first flag may be called a merge flag.
- the flag information may include a second flag indicating whether a prediction mode performed on the current block is an intra prediction mode or an inter prediction mode.
- the second flag may be called a prediction mode flag.
- the first flag may be a flag parsed before the second flag.
- the first flag may be a flag which is parsed before the second flag when the current block satisfies an arbitrary condition.
- a flag parsed first of the first flag and the second flag may be determined based on a condition described below, or a combination of conditions.
- the encoding apparatus may generate a flag indicating a flag parsed first of the first flag and the second flag.
- the flag indicating the first parsed flag may be called a third flag.
- the third flag may be included in the flag information.
- a flag that is first parsed among the first flag and the second flag may be determined based on the value of the third flag. For example, when the value of the third flag is 1, the first parsed flag may be determined as the first flag, and when the value of the third flag is 0, the first parsed flag may be the second flag. Can be determined.
- the third flag may be signaled in units of slices through a slice header. In addition, the third flag may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
- PPS picture parameter set
- SPS sequence parameter set
- VPN video parameter set
- a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
- PPS picture parameter set
- SPS sequence parameter set
- VPS video parameter set
- the third flag may be signaled in units of slices through a slice header.
- the first parsed flag among the first flag and the second flag may be determined based on a slice type (or picture type) of the current slice (or current picture) including the current block. Specifically, for example, when the current slice is a Generalized Bi-Prediction (GBP) slice (or GBP picture), the first parsed flag may be determined as the first flag, and the current slice is not a GBP slice. In this case, the first parsed flag may be determined as the second flag.
- GBP Generalized Bi-Prediction
- the first parsed flag among the first flag and the second flag may be determined based on a temporal level of the current slice (or current picture) including the current block. Specifically, for example, when the temporal level of the current slice is equal to or greater than a specific value, the first parsed flag may be determined as the first flag, and when the temporal level of the current slice is smaller than a specific value, the first parsed A flag may be determined as the second flag.
- a flag parsed first among the first flag and the second flag may be determined based on a quantization parameter (QP) of a current slice (or current picture) including the current block. Specifically, for example, when the QP of the current slice is greater than or equal to a specific value, the first parsed flag may be determined as the first flag, and when the QP of the current slice is smaller than a specific value, the first parsed flag may be The second flag may be determined.
- QP quantization parameter
- the encoding apparatus may change and apply context modeling for the first flag.
- the encoding apparatus may change and apply a method of deriving a context index or a context increment parameter for entropy encoding the first flag.
- the context index may indicate an index indicating a context applied to the current block, and the context index may be derived as a value obtained by adding a context increase parameter and a context index offset.
- the context index may be calculated through Equation 1 described above.
- the encoding apparatus may entropy encode the first flag for the current block based on the derived context index or context increment parameter.
- the context increasing parameter may be derived based on a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block.
- the syntax element of the left neighboring block may include a merge flag of the left neighboring block
- the syntax element of the upper neighboring block may include a merge flag of the upper neighboring block.
- the syntax element of the left neighboring block may further include a skip flag of the left neighboring block
- the syntax element of the upper neighboring block may further include a skip flag of the upper neighboring block.
- the context increase parameter may be derived based on the merge flag of the left neighboring block and the merge flag of the upper neighboring block.
- the value of the context increase parameter may be derived from one of 0, 1, and 2.
- the context increase parameter may be derived through Table 1 described above.
- the value of the context increase parameter Can be derived as 2.
- the context increase parameter when the merge flag value of the left neighbor block is 1 and the left neighbor block is not available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is available, the context increase parameter.
- the value of can be derived as 1.
- the value of the merge flag of the left neighboring block is 0 and the left neighboring block is available, the value of the merge flag of the upper neighboring block is 1 and the upper neighboring block is available, The value can be derived as one. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, The value can be one. Further, when neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block and the merge flag of the upper neighboring block are both 0, the value of the context increase parameter is 0. Can be.
- the context increase parameter may be derived based on the merge flag and the skip flag of the left neighboring block, the merge flag and the skip flag of the upper neighboring block.
- the value of the context increase parameter may be derived from one of 0, 1, and 2.
- the context increase parameter may be derived through Table 2 described above.
- the left peripheral block and the upper peripheral block are available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block, and the upper peripheral block are available.
- the value of the context increase parameter may be derived as 2.
- one of the left peripheral block and the upper peripheral block is not available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block and the upper peripheral block are not available.
- the skip flag value of the block is 1, the value of the context increase parameter may be derived as 1.
- one of the merge flag and the skip flag of the left peripheral block is 0 and the left peripheral block is available, and the value of the merge flag and the skip flag of the upper peripheral block is 1 and the upper peripheral block. If this is available, the value of the context increase parameter may be derived as one. Further, the merge flag and the skip flag of the left neighbor block have a value of 1 and the left neighbor block is available, and one of the merge flag and the skip flag of the upper neighbor block has a value of 0 and the upper neighbor block. If this is available, the value of the context increase parameter may be derived as one.
- the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block, the skip flag of the left neighboring block, the merge flag of the upper neighboring block, and the upper neighboring block.
- the value of the skip flag is 0, the value of the context increase parameter may be 0.
- the context increasing parameter may be a slice type of a slice including the current block, the third flag, a GBP slice corresponding to a slice including the current block, a temporal level value for the current block, or the current block. It may be derived based on the QP value of the included slice. In addition, the context increase parameter may be derived through a combination of the above-described conditions.
- the encoding apparatus encodes and outputs the flag information (S530).
- the encoding device may entropy encode the flag information and output the bit information in the form of a bitstream.
- the bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
- the encoding apparatus may encode and output information about the residual sample for the current block.
- the information about the residual sample may include transform coefficients regarding the residual sample.
- FIG. 6 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
- the method disclosed in FIG. 6 may be performed by the decoding apparatus disclosed in FIG. 2.
- S600 to S610 may be performed by the entropy decoding unit of the decoding apparatus
- S620 to S630 may be performed by the prediction unit of the decoding apparatus.
- the decoding apparatus parses a first flag indicating whether the prediction mode performed on the current block is an inter merge prediction mode (S600).
- the decoding apparatus may parse a first flag indicating whether a prediction mode performed on the current block is an inter merge prediction mode through a bitstream.
- the first flag may be called a merge flag.
- the decoding apparatus may determine a flag that is first parsed among the first flag for the current block and the prediction mode flag for the current block according to an arbitrary condition.
- the prediction mode flag may be a flag indicating whether a prediction mode performed on the current block is an intra prediction mode or an inter prediction mode, and the prediction mode flag may be called a second flag.
- a flag parsed first of the first flag and the second flag may be determined based on a condition described below, or a combination of conditions.
- the decoding apparatus may parse a flag indicating a flag that is first parsed among the first flag and the second flag.
- the flag indicating the first parsed flag may be called a third flag.
- the decoding apparatus may parse a third flag for the current block, and determine a flag that is first parsed among the first flag and the second flag based on the value of the third flag. For example, when the value of the third flag is 1, the first parsed flag may be determined as the first flag, and when the value of the third flag is 0, the first parsed flag may be the second flag. Can be determined.
- the third flag may be signaled in units of slices through a slice header.
- the third flag may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
- PPS picture parameter set
- SPS sequence parameter set
- VPS video parameter set
- a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
- PPS picture parameter set
- SPS sequence parameter set
- VPS video parameter set
- the third flag may be signaled in units of slices through a slice header.
- the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on the slice type (or picture type) of the current slice (or current picture) including the current block. Specifically, for example, when the current slice is a Generalized Bi-Prediction (GBP) slice (or GBP picture), the first parsed flag may be determined as the first flag, and the current slice is not a GBP slice. In this case, the first parsed flag may be determined as the second flag.
- GBP Generalized Bi-Prediction
- the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on a temporal level of the current slice (or current picture) including the current block. Specifically, for example, when the temporal level of the current slice is equal to or greater than a specific value, the first parsed flag may be determined as the first flag, and when the temporal level of the current slice is smaller than a specific value, the first parsed A flag may be determined as the second flag.
- the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on a quantization parameter (QP) of the current slice (or current picture) including the current block. Specifically, for example, when the QP of the current slice is greater than or equal to a specific value, the first parsed flag may be determined as the first flag, and when the QP of the current slice is smaller than a specific value, the first parsed flag may be The second flag may be determined.
- QP quantization parameter
- the decoding apparatus may change and apply context modeling for the first flag.
- the decoding apparatus may change and apply a method of deriving a context index or a context increment parameter for entropy decoding the first flag.
- the context index may indicate an index indicating a context applied to the current block, and the context index may be derived as a value obtained by adding a context increase parameter and a context index offset.
- the context index may be calculated through Equation 1 described above.
- the decoding apparatus may entropy decode the first flag for the current block based on the derived context index or context increment parameter.
- the decoding apparatus may be configured to perform a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block.
- the context increment parameter for the context may be derived, and the context index for the current block may be derived based on the context increment parameter.
- the syntax element of the left neighboring block may include a merge flag of the left neighboring block, and the syntax element of the upper neighboring block may include a merge flag of the upper neighboring block.
- the syntax element of the left neighboring block may further include a skip flag of the left neighboring block, and the syntax element of the upper neighboring block may further include a skip flag of the upper neighboring block.
- the context increase parameter may be derived based on the merge flag of the left neighboring block and the merge flag of the upper neighboring block.
- the value of the context increase parameter may be derived from one of 0, 1, and 2.
- the context increase parameter may be derived through Table 1 described above.
- the decoding apparatus may entropy decode the first flag for the current block based on the context increase parameter.
- the context increase parameter when the merge flag value of the left neighbor block is 1 and the left neighbor block is not available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is available, the context increase parameter.
- the value of can be derived as 1.
- the value of can be derived as 1.
- the value of the merge flag of the left neighboring block is 0 and the left neighboring block is available, the value of the merge flag of the upper neighboring block is 1 and the upper neighboring block is available, The value can be derived as one.
- the merge flag value of the left neighbor block is 1 and the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, The value can be one.
- the value of the context increase parameter is 0. Can be.
- the context increase parameter may be derived based on the merge flag and the skip flag of the left neighboring block, the merge flag and the skip flag of the upper neighboring block.
- the value of the context increase parameter may be derived from one of 0, 1, and 2.
- the context increase parameter may be derived through Table 2 described above.
- the left peripheral block and the upper peripheral block are available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block, and the upper peripheral block are available.
- the skip flag value of the block is 1, the value of the context increase parameter may be derived as 2.
- one of the left peripheral block and the upper peripheral block is not available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block and the upper peripheral block are not available.
- the value of the context increase parameter may be derived as 1.
- one of the merge flag and the skip flag of the left peripheral block is 0 and the left peripheral block is available, and the value of the merge flag and the skip flag of the upper peripheral block is 1 and the upper peripheral block. If this is available, the value of the context increase parameter may be derived as one.
- the merge flag and the skip flag of the left neighbor block have a value of 1 and the left neighbor block is available, and one of the merge flag and the skip flag of the upper neighbor block has a value of 0 and the upper neighbor block. If this is available, the value of the context increase parameter may be derived as one.
- the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block, the skip flag of the left neighboring block, the merge flag of the upper neighboring block, and the upper neighboring block.
- the value of the skip flag is 0, the value of the context increase parameter may be 0.
- the context increasing parameter may be a slice type of a slice including the current block, the third flag, a GBP slice corresponding to a slice including the current block, a temporal level value for the current block, or the current block. It may be derived based on the QP value of the included slice. In addition, the context increase parameter may be derived through a combination of the above-described conditions.
- the decoding apparatus parses the second flag for the current block (S610).
- the decoding apparatus may determine a prediction mode of one of an inter prediction Motion Vector Prediction (MVP) mode and an intra prediction mode as a prediction mode performed on the current block based on the second flag.
- MVP Motion Vector Prediction
- the decoding apparatus parses the first flag, and the first flag is parsed.
- the second flag for the current block may be parsed.
- the decoding apparatus parses the second flag, and the second flag
- the first flag for the current block may be parsed.
- the decoding apparatus derives one of the intra prediction mode and the inter prediction MVP mode as the prediction mode performed on the current block based on the second flag (S620).
- the value of the second flag may indicate one prediction mode of the intra prediction mode and the inter prediction MVP mode, and the decoding apparatus may determine one of the intra prediction mode and the inter prediction MVP mode based on the second flag.
- a prediction mode of may be derived as a prediction mode performed on the current block.
- the decoding apparatus generates a prediction sample of the current block based on the derived prediction mode (S630).
- the derived prediction mode is the intra prediction mode
- the decoding apparatus may generate a prediction sample of the current block by performing intra prediction on the current block.
- the derived prediction mode is the inter prediction MVP mode
- the decoding apparatus may generate the prediction block of the current block by performing inter prediction on the current block.
- the decoding apparatus may generate a reconstruction sample for the current block based on the prediction sample.
- the decoding apparatus may reconstruct the current block based on the prediction block.
- the decoding apparatus may generate a reconstructed picture based on the reconstructed sample.
- the decoding apparatus may receive residual information on the current block from the bitstream.
- the residual information may include transform coefficients for the residual sample of the current block.
- the decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information.
- the decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
- an in-loop filtering procedure such as a deblocking filtering and / or SAO procedure
- the merge flag of the current block can be parsed before the prediction mode flag, thereby reducing the amount of bits generated when the merge mode is performed on the current block, thereby improving the overall coding efficiency.
- the present invention it is possible to adaptively parse a merge flag of a current block before a prediction mode flag based on an arbitrary condition, thereby reducing the amount of bits generated when merge mode is performed on the current block. Overall coding efficiency can be improved.
- the above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
- the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function.
- the module may be stored in memory and executed by a processor.
- the memory may be internal or external to the processor and may be coupled to the processor by various well known means.
- the processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices.
- the memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Compression Or Coding Systems Of Tv Signals (AREA)
Abstract
A method for image decoding carried out by a decoding apparatus according to the present invention comprises the steps of: parsing a first flag which indicates whether the prediction mode carried out in the current block is an inter-merge-prediction mode; parsing a second flag for the current block if the value of the first flag is 0; deriving, on the basis of the second flag, one from among the intra-prediction mode and inter-prediction MVP mode as the prediction mode carried out in the current block; and generating a prediction sample of the current block on the basis of the derived prediction mode. According to the present invention, a merge flag of the current block can be parsed prior to a prediction mode flag, thereby reducing the number of bits generated when a merge mode is carried out in the current block, and thus allowing the overall coding efficiency to be improved.
Description
본 발명은 영상 코딩 기술에 관한 것으로서 보다 상세하게는 영상 코딩 시스템에서 영상 디코딩 방법 및 장치에 관한 것이다.The present invention relates to an image coding technique, and more particularly, to an image decoding method and apparatus in an image coding system.
최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 전송되는 정보량 또는 비트량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 영상 데이터를 저장하는 경우, 전송 비용과 저장 비용이 증가된다. Recently, the demand for high resolution and high quality images such as high definition (HD) images and ultra high definition (UHD) images is increasing in various fields. The higher the resolution and the higher quality of the image data, the more information or bit rate is transmitted than the existing image data. Therefore, the image data can be transmitted by using a medium such as a conventional wired / wireless broadband line or by using a conventional storage medium. In the case of storage, the transmission cost and the storage cost are increased.
이에 따라, 고해상도, 고품질 영상의 정보를 효과적으로 전송하거나 저장하고, 재생하기 위해 고효율의 영상 압축 기술이 요구된다.Accordingly, a high efficiency image compression technique is required to effectively transmit, store, and reproduce high resolution, high quality image information.
본 발명의 기술적 과제는 영상 코딩 효율을 높이는 방법 및 장치를 제공함에 있다.An object of the present invention is to provide a method and apparatus for improving image coding efficiency.
본 발명의 다른 기술적 과제는 플래그 정보를 기반으로 수행되는 현재 블록의 예측 모드를 도출하는 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide a method and apparatus for deriving a prediction mode of a current block performed based on flag information.
본 발명의 또 다른 기술적 과제는 현재 블록의 예측 모드에 관한 복수의 플래그들의 파싱 순서를 결정하는 방법 및 장치를 제공함에 있다. Another technical problem of the present invention is to provide a method and apparatus for determining a parsing order of a plurality of flags regarding a prediction mode of a current block.
본 발명의 또 다른 기술적 과제는 현재 블록에 관한 플래그 정보에 대한 컨텍스트 증가 파라미터를 도출하는 방법 및 장치를 제공함에 있다.Another technical problem of the present invention is to provide a method and apparatus for deriving a context increase parameter for flag information about a current block.
본 발명의 일 실시예에 따르면, 디코딩 장치에 의하여 수행되는 영상 디코딩 방법이 제공된다. 상기 방법은 현재 블록에 수행되는 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 파싱(parsing)하는 단계, 상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 제2 플래그를 파싱하는 단계, 상기 제2 플래그를 기반으로 인트라 예측 모드 및 인터 예측 MVP(motion vector prediction) 모드 중 하나를 현재 블록에 대한 예측 모드로 도출하는 단계, 및 상기 도출된 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하는 것을 특징으로 한다.According to an embodiment of the present invention, there is provided an image decoding method performed by a decoding apparatus. The method may include parsing a first flag indicating whether a prediction mode performed on a current block is an inter merge prediction mode, and when the value of the first flag is 0, setting a second flag for the current block. Parsing, deriving one of an intra prediction mode and an inter prediction motion vector prediction (MVP) mode as a prediction mode for the current block based on the second flag, and the current block based on the derived prediction mode And generating a predictive sample of.
본 발명의 다른 일 실시예에 따르면, 영상 디코딩을 수행하는 디코딩 장치가 제공된다. 상기 디코딩 장치는 현재 블록에 수행되는 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 파싱(parsing)하고, 상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 제2 플래그를 파싱하는 엔트로피 디코딩부, 및 상기 제2 플래그를 기반으로 인트라 예측 모드 및 인터 예측 MVP(motion vector prediction) 모드 중 현재 블록에 대한 예측 모드를 도출하고, 상기 도출된 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하는 예측부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a decoding apparatus for performing image decoding is provided. The decoding apparatus parses a first flag indicating whether a prediction mode performed on a current block is an inter merge prediction mode, and when the value of the first flag is 0, a second flag for the current block. An entropy decoding unit for parsing, and a prediction mode for a current block among an intra prediction mode and an inter prediction motion vector prediction (MVP) mode based on the second flag, and deriving a prediction mode of the current block based on the derived prediction mode And a prediction unit generating a prediction sample.
본 발명의 또 다른 일 실시예에 따르면, 인코딩 장치에 의하여 수행되는 비디오 인코딩 방법을 제공한다. 상기 방법은 현재 블록에 대한 예측 모드를 결정하는 단계, 상기 현재 블록에 대한 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하는 단계, 상기 현재 블록에 대한 예측 모드를 나타내는 플래그 정보를 생성하는 단계, 및 상기 플래그 정보를 인코딩하여 출력하는 단계를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding method performed by an encoding apparatus is provided. The method includes determining a prediction mode for a current block, generating a prediction sample of the current block based on the prediction mode for the current block, and generating flag information indicating a prediction mode for the current block. And encoding and outputting the flag information.
본 발명의 또 다른 일 실시예에 따르면, 비디오 인코딩 장치를 제공한다. 상기 인코딩 장치는 현재 블록에 대한 예측 모드를 결정하고, 상기 현재 블록에 대한 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하고, 상기 현재 블록에 대한 예측 모드를 나타내는 플래그 정보를 생성하는 예측부, 및 상기 플래그 정보를 인코딩하여 출력하는 엔트로피 인코딩부를 포함하는 것을 특징으로 한다.According to another embodiment of the present invention, a video encoding apparatus is provided. The encoding apparatus determines a prediction mode for the current block, generates a prediction sample of the current block based on the prediction mode for the current block, and generates a flag information indicating a prediction mode for the current block. And an entropy encoding unit for encoding and outputting the flag information.
본 발명에 따르면 현재 블록의 머지 플래그를 예측 모드 플래그보다 먼저 파싱할 수 있고, 이를 통하여 상기 현재 블록에 머지 모드가 수행되는 경우의 발생 비트량을 감소시켜 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, the merge flag of the current block can be parsed before the prediction mode flag, thereby reducing the amount of bits generated when the merge mode is performed on the current block, thereby improving the overall coding efficiency.
본 발명에 따르면 임의의 조건을 기반으로 적응적으로 현재 블록의 머지 플래그를 예측 모드 플래그보다 먼저 파싱할 수 있고, 이를 통하여 상기 현재 블록에 머지 모드가 수행되는 경우의 발생 비트량을 감소시켜 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, it is possible to adaptively parse a merge flag of a current block before a prediction mode flag based on an arbitrary condition, thereby reducing the amount of bits generated when a merge mode is performed on the current block, thereby overall coding. The efficiency can be improved.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 3은 CU에 대한 신텍스 요소들의 파싱 순서의 일 예를 나타낸다.3 shows an example of a parsing order of syntax elements for a CU.
도 4는 CU에 대한 신텍스 요소들의 파싱 순서의 다른 일 예를 나타낸다.4 shows another example of a parsing order of syntax elements for a CU.
도 5는 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다.5 schematically illustrates a video encoding method by an encoding device according to the present invention.
도 6은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다.6 schematically illustrates a video decoding method by a decoding apparatus according to the present invention.
본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정 실시예에 한정하려고 하는 것이 아니다. 본 명세서에서 상용하는 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명의 기술적 사상을 한정하려는 의도로 사용되는 것은 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 명세서에서 "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성 요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성 요소, 부품 도는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.As the present invention allows for various changes and numerous embodiments, particular embodiments will be illustrated in the drawings and described in detail in the written description. However, this is not intended to limit the invention to the specific embodiments. The terminology used herein is for the purpose of describing particular example embodiments only and is not intended to be limiting of the spirit of the present invention. Singular expressions include plural expressions unless the context clearly indicates otherwise. The terms "comprise" or "having" in this specification are intended to indicate that there is a feature, number, step, operation, component, part, or combination thereof described in the specification, and one or more other features It is to be understood that the numbers, steps, operations, components, parts or figures do not exclude in advance the presence or possibility of adding them.
한편, 본 발명에서 설명되는 도면상의 각 구성들은 서로 다른 특징적인 기능들에 관한 설명의 편의를 위해 독립적으로 도시된 것으로서, 각 구성들이 서로 별개의 하드웨어나 별개의 소프트웨어로 구현된다는 것을 의미하지는 않는다. 예컨대, 각 구성 중 두 개 이상의 구성이 합쳐져 하나의 구성을 이룰 수도 있고, 하나의 구성이 복수의 구성으로 나뉘어질 수도 있다. 각 구성이 통합 및/또는 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.On the other hand, each configuration in the drawings described in the present invention are shown independently for the convenience of description of the different characteristic functions, it does not mean that each configuration is implemented by separate hardware or separate software. For example, two or more of each configuration may be combined to form one configuration, or one configuration may be divided into a plurality of configurations. Embodiments in which each configuration is integrated and / or separated are also included in the scope of the present invention without departing from the spirit of the present invention.
이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성 요소에 대해서는 동일한 참조 부호를 사용하고 동일한 구성 요소에 대해서 중복된 설명은 생략한다.Hereinafter, with reference to the accompanying drawings, it will be described in detail a preferred embodiment of the present invention. Hereinafter, the same reference numerals are used for the same components in the drawings, and redundant description of the same components is omitted.
본 명세서에서 픽처(picture)는 일반적으로 특정 시간대의 하나의 영상을 나타내는 단위를 의미하며, 슬라이스(slice)는 코딩에 있어서 픽처의 일부를 구성하는 단위이다. 하나의 픽처는 복수의 슬라이스로 구성될 수 있으며, 필요에 따라서 픽처 및 슬라이스는 서로 혼용되어 사용될 수 있다.In the present specification, a picture generally refers to a unit representing one image of a specific time zone, and a slice is a unit constituting a part of a picture in coding. One picture may be composed of a plurality of slices, and if necessary, the picture and the slice may be mixed with each other.
픽셀(pixel) 또는 펠(pel)은 하나의 픽처(또는 영상)을 구성하는 최소의 단위를 의미할 수 있다. 또한, 픽셀에 대응하는 용어로서 '샘플(sample)'이 사용될 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. A pixel or a pel may refer to a minimum unit constituting one picture (or image). Also, 'sample' may be used as a term corresponding to a pixel. A sample may generally represent a pixel or a value of a pixel, and may only represent pixel / pixel values of the luma component, or only pixel / pixel values of the chroma component.
유닛(unit)은 영상 처리의 기본 단위를 나타낸다. 유닛은 픽처의 특정 영역 및 해당 영역에 관련된 정보 중 적어도 하나를 포함할 수 있다. 유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다.A unit represents the basic unit of image processing. The unit may include at least one of a specific region of the picture and information related to the region. The unit may be used interchangeably with terms such as block or area in some cases. In a general case, an M × N block may represent a set of samples or transform coefficients composed of M columns and N rows.
도 1은 본 발명이 적용될 수 있는 비디오 인코딩 장치의 구성을 개략적으로 설명하는 도면이다. 1 is a diagram schematically illustrating a configuration of a video encoding apparatus to which the present invention may be applied.
도 1을 참조하면, 비디오 인코딩 장치(100)는 픽처 분할부(105), 예측부(110), 감산부(115), 변환부(120), 양자화부(125), 재정렬부(130), 엔트로피 인코딩부(135), 역양자화부(140), 역변환부(145), 가산부(150), 필터부(155) 및 메모리(160)을 포함한다.Referring to FIG. 1, the video encoding apparatus 100 may include a picture divider 105, a predictor 110, a subtractor 115, a transformer 120, a quantizer 125, a reordering unit 130, An entropy encoding unit 135, an inverse quantization unit 140, an inverse transform unit 145, an adder 150, a filter unit 155, and a memory 160 are included.
픽처 분할부(105)는 입력된 픽처를 적어도 하나의 처리 유닛(processing unit)으로 분할할 수 있다. 이 때, 처리 유닛 코딩 유닛 블록(coding unit, CU), 예측 유닛(prediction unit, PU) 또는 변환 유닛(transform unit, TU)일 수 있다. 코딩 유닛은 코딩의 유닛 블록이고, 최대 코딩 유닛(largest coding unit, LCU)으로부터 쿼드 트리 구조(quad-tree structure)를 따라서 하위(deeper) 뎁스의 코딩 유닛들로 분할(split)될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 최소 코딩 유닛(smallest coding unit, SCU)이 설정된 경우 코딩 유닛은 최소 코딩 유닛보다 더 작은 코딩 유닛으로 분할될 수 없다. The picture divider 105 may divide the input picture into at least one processing unit. In this case, the processing unit may be a coding unit block (CU), a prediction unit (PU), or a transform unit (TU). A coding unit is a unit block of coding and may be split from a largest coding unit (LCU) into coding units of a deeper depth along a quad-tree structure. In this case, the maximum coding unit may be used as the final coding unit immediately based on coding efficiency according to the image characteristic, or if necessary, the coding unit is recursively divided into coding units of lower depths and optimized. A coding unit of size may be used as the final coding unit. If a smallest coding unit (SCU) is set, the coding unit may not be split into smaller coding units than the minimum coding unit.
여기서 최종 코딩 유닛이라 함은 예측 유닛 또는 변환 유닛으로 파티셔닝 또는 분할되는 기반이 되는 코딩 유닛을 의미한다. 예측 유닛은 코딩 유닛 블록으로부터 파티셔닝(partitioning)되는 블록으로서, 샘플 예측의 유닛 블록일 수 있다. 이 때, 예측 유닛은 서브 블록(sub block)으로 나뉠 수도 있다. 변환 유닛은 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 블록 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 유닛 블록일 수 있다.Here, the final coding unit refers to a coding unit that is the basis of partitioning or partitioning into a prediction unit or a transform unit. The prediction unit is a block partitioning from the coding unit block and may be a unit block of sample prediction. In this case, the prediction unit may be divided into sub blocks. The transform unit may be divided along the quad tree structure from the coding unit block, and may be a unit block for deriving a transform coefficient and / or a unit block for deriving a residual signal from the transform coefficient.
이하, 코딩 유닛은 코딩 블록(coding block, CB), 예측 유닛은 예측 블록(prediction block, PB), 변환 유닛은 변환 블록(transform block, TB) 으로 불릴 수 있다. 예측 블록 또는 예측 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 예측 샘플의 어레이(array)를 포함할 수 있다. 또한, 변환 블록 또는 변환 유닛은 픽처 내에서 블록 형태의 특정 영역을 의미할 수 있고, 변환 계수 또는 레지듀얼 샘플의 어레이를 포함할 수 있다.Hereinafter, a coding unit may be called a coding block (CB), a prediction unit is a prediction block (PB), and a transform unit may be called a transform block (TB). A prediction block or prediction unit may mean a specific area in the form of a block within a picture, and may include an array of prediction samples. In addition, a transform block or a transform unit may mean a specific area in a block form within a picture, and may include an array of transform coefficients or residual samples.
한편, 현재 픽처는 QTBT (Quad-tree binary-tree) 구조에 따라 분할될 수 있다. 이 경우 코딩 유닛, 예측 유닛, 변환 유닛을 구분하지 않고 통합하여 사용될 수 있으며, 이 경우 통합된 유닛은 코딩 유닛으로 불릴 수 있다. 이 경우 최종 코딩 유닛은 정방형일 수도 있고 비정방형일 수도 있다. Meanwhile, the current picture may be divided according to a quad-tree binary-tree (QTBT) structure. In this case, the coding unit, the prediction unit, and the transform unit may be used without being divided, and in this case, the integrated unit may be called a coding unit. In this case, the final coding unit may be square or non-square.
예측부(110)는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록을 생성할 수 있다. 예측부(110)에서 수행되는 예측의 단위는 코딩 블록일 수 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다.The prediction unit 110 may perform a prediction on a block to be processed (hereinafter, referred to as a current block) and generate a prediction block including prediction samples of the current block. The unit of prediction performed by the prediction unit 110 may be a coding block, a transform block, or a prediction block.
예측부(110)는 현재 블록에 인트라 예측이 적용되는지 인터 예측이 적용되는지를 결정할 수 있다. 일 예로, 예측부(110)는 CU 단위로 인트라 예측 또는 인터 예측이 적용되는지를 결정할 수 있다.The prediction unit 110 may determine whether intra prediction or inter prediction is applied to the current block. As an example, the prediction unit 110 may determine whether intra prediction or inter prediction is applied on a CU basis.
인트라 예측의 경우에, 예측부(110)는 현재 블록이 속하는 픽처(이하, 현재 픽처) 내의 현재 블록 외부의 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 예측부(110)는 (i) 현재 블록의 주변(neighboring) 참조 샘플들의 평균(average) 혹은 인터폴레이션(interpolation)을 기반으로 예측 샘플을 유도할 수 있고, (ii) 현재 블록의 주변 참조 샘플들 중 예측 샘플에 대하여 특정 (예측) 방향에 존재하는 참조 샘플을 기반으로 상기 예측 샘플을 유도할 수도 있다. (i)의 경우는 비방향성 모드 또는 비각도 모드, (ii)의 경우는 방향성(directional) 모드 또는 각도(angular) 모드라고 불릴 수 있다. 인트라 예측에서 예측 모드는 예를 들어 33개의 방향성 예측 모드와 적어도 2개 이상의 비방향성 모드를 가질 수 있다. 비방향성 모드는 DC 예측 모드 및 플래너 모드(Planar 모드)를 포함할 수 있다. 예측부(110)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.In the case of intra prediction, the prediction unit 110 may derive a prediction sample for the current block based on reference samples outside the current block in the picture to which the current block belongs (hereinafter, referred to as the current picture). In this case, the prediction unit 110 may (i) derive the prediction sample based on the average or interpolation of neighboring reference samples of the current block, and (ii) the neighbor reference of the current block. The prediction sample may be derived based on a reference sample present in a specific (prediction) direction with respect to the prediction sample among the samples. In case of (i), it may be called non-directional mode or non-angle mode, and in case of (ii), it may be called directional mode or angular mode. In intra prediction, the prediction mode may have, for example, 33 directional prediction modes and at least two non-directional modes. The non-directional mode may include a DC prediction mode and a planner mode (Planar mode). The prediction unit 110 may determine the prediction mode applied to the current block by using the prediction mode applied to the neighboring block.
인터 예측의 경우에, 예측부(110)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 샘플을 기반으로, 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(110)는 스킵(skip) 모드, 머지(merge) 모드, 및 MVP(motion vector prediction) 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 스킵 모드와 머지 모드의 경우에, 예측부(110)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차(레지듀얼)가 전송되지 않는다. MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터 예측자로 이용하여 현재 블록의 움직임 벡터를 유도할 수 있다.In the case of inter prediction, the prediction unit 110 may derive the prediction sample for the current block based on the sample specified by the motion vector on the reference picture. The prediction unit 110 may apply one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode to derive a prediction sample for the current block. In the skip mode and the merge mode, the prediction unit 110 may use the motion information of the neighboring block as the motion information of the current block. In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted. In the MVP mode, the motion vector of the current block can be derived using the motion vector of the neighboring block as a motion vector predictor.
인터 예측의 경우에, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처(reference picture)에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 상기 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 움직임 정보(motion information)는 움직임 벡터와 참조 픽처 인덱스를 포함할 수 있다. 예측 모드 정보와 움직임 정보 등의 정보는 (엔트로피) 인코딩되어 비트스트림 형태로 출력될 수 있다.In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. A reference picture including the temporal neighboring block may be called a collocated picture (colPic). The motion information may include a motion vector and a reference picture index. Information such as prediction mode information and motion information may be encoded (entropy) and output in the form of a bitstream.
스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트(reference picture list) 상의 최상위 픽처가 참조 픽처로서 이용될 수도 있다. 참조 픽처 리스트(Picture Order Count)에 포함되는 참조 픽처들은 현재 픽처와 해당 참조 픽처 간의 POC(Picture order count) 차이 기반으로 정렬될 수 있다. POC는 픽처의 디스플레이 순서에 대응하며, 코딩 순서와 구분될 수 있다.When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture. Reference pictures included in a reference picture list may be sorted based on a difference in a picture order count (POC) between a current picture and a corresponding reference picture. The POC corresponds to the display order of the pictures and may be distinguished from the coding order.
감산부(115)는 원본 샘플과 예측 샘플 간의 차이인 레지듀얼 샘플을 생성한다. 스킵 모드가 적용되는 경우에는, 상술한 바와 같이 레지듀얼 샘플을 생성하지 않을 수 있다.The subtraction unit 115 generates a residual sample which is a difference between the original sample and the prediction sample. When the skip mode is applied, residual samples may not be generated as described above.
변환부(120)는 변환 블록 단위로 레지듀얼 샘플을 변환하여 변환 계수(transform coefficient)를 생성한다. 변환부(120)는 해당 변환 블록의 사이즈와, 해당 변환 블록과 공간적으로 겹치는 코딩 블록 또는 예측 블록에 적용된 예측 모드에 따라서 변환을 수행할 수 있다. 예컨대, 상기 변환 블록과 겹치는 상기 코딩 블록 또는 상기 예측 블록에 인트라 예측이 적용되었고, 상기 변환 블록이 4×4의 레지듀얼 어레이(array)라면, 레지듀얼 샘플은 DST(Discrete Sine Transform)를 이용하여 변환되고, 그 외의 경우라면 레지듀얼 샘플은 DCT(Discrete Cosine Transform)를 이용하여 변환할 수 있다.The transform unit 120 generates a transform coefficient by transforming the residual sample in units of transform blocks. The transform unit 120 may perform the transformation according to the size of the transform block and the prediction mode applied to the coding block or the prediction block that spatially overlaps the transform block. For example, if intra prediction is applied to the coding block or the prediction block that overlaps the transform block, and the transform block is a 4 × 4 residual array, the residual sample uses a discrete sine transform (DST). In other cases, the residual sample may be transformed by using a discrete cosine transform (DCT).
양자화부(125)는 변환 계수들을 양자화하여, 양자화된 변환 계수를 생성할 수 있다.The quantization unit 125 may quantize the transform coefficients to generate quantized transform coefficients.
재정렬부(130)는 양자화된 변환 계수를 재정렬한다. 재정렬부(130)는 계수들 스캐닝(scanning) 방법을 통해 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있다. 여기서 재정렬부(130)는 별도의 구성으로 설명하였으나, 재정렬부(130)는 양자화부(125)의 일부일 수 있다.The reordering unit 130 rearranges the quantized transform coefficients. The reordering unit 130 may reorder the quantized transform coefficients in the form of a block into a one-dimensional vector form through a coefficient scanning method. Although the reordering unit 130 has been described in a separate configuration, the reordering unit 130 may be part of the quantization unit 125.
엔트로피 인코딩부(135)는 양자화된 변환 계수들에 대한 엔트로피 인코딩을 수행할 수 있다. 엔트로피 인코딩은 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding) 등과 같은 인코딩 방법을 포함할 수 있다. 엔트로피 인코딩부(135)는 양자화된 변환 계수 외 비디오 복원에 필요한 정보들(예컨대 신텍스 요소(syntax element)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 엔트로피 인코딩된 정보들은 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다.The entropy encoding unit 135 may perform entropy encoding on the quantized transform coefficients. Entropy encoding may include, for example, encoding methods such as exponential Golomb, context-adaptive variable length coding (CAVLC), context-adaptive binary arithmetic coding (CABAC), and the like. The entropy encoding unit 135 may encode information necessary for video reconstruction other than the quantized transform coefficients (for example, a value of a syntax element) together or separately. Entropy encoded information may be transmitted or stored in units of network abstraction layer (NAL) units in the form of bitstreams.
역양자화부(140)는 양자화부(125)에서 양자화된 값(양자화된 변환 계수)들을 역양자화하고, 역변환부(145)는 역양자화부(135)에서 역양자화된 값들을 역변환하여 레지듀얼 샘플을 생성한다.The inverse quantization unit 140 inverse quantizes the quantized values (quantized transform coefficients) in the quantization unit 125, and the inverse transform unit 145 inversely transforms the inverse quantized values in the inverse quantization unit 135 to obtain a residual sample. Create
가산부(150)는 레지듀얼 샘플과 예측 샘플을 합쳐서 픽처를 복원한다. 레지듀얼 샘플과 예측 샘플은 블록 단위로 더해져서 복원 블록이 생성될 수 있다. 여기서 가산부(150)는 별도의 구성으로 설명하였으나, 가산부(150)는 예측부(110)의 일부일 수 있다.The adder 150 reconstructs the picture by combining the residual sample and the predictive sample. The residual sample and the predictive sample may be added in units of blocks to generate a reconstructed block. Although the adder 150 has been described in a separate configuration, the adder 150 may be part of the predictor 110.
복원된 픽처(reconstructed picture)에 대하여 필터부(155)는 디블록킹 필터 및/또는 샘플 적응적 오프셋(sample adaptive offset)을 적용할 수 있다. 디블록킹 필터링 및/또는 샘플 적응적 오프셋을 통해, 복원 픽처 내 블록 경계의 아티팩트나 양자화 과정에서의 왜곡이 보정될 수 있다. 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링의 과정이 완료된 후 적용될 수 있다. 필터부(155)는 ALF(Adaptive Loop Filter)를 복원된 픽처에 적용할 수도 있다. ALF는 디블록킹 필터 및/또는 샘플 적응적 오프셋이 적용된 후의 복원된 픽처에 대하여 적용될 수 있다.The filter unit 155 may apply a deblocking filter and / or a sample adaptive offset to the reconstructed picture. Through deblocking filtering and / or sample adaptive offset, the artifacts of the block boundaries in the reconstructed picture or the distortion in the quantization process can be corrected. The sample adaptive offset may be applied on a sample basis and may be applied after the process of deblocking filtering is completed. The filter unit 155 may apply an adaptive loop filter (ALF) to the reconstructed picture. ALF may be applied to the reconstructed picture after the deblocking filter and / or sample adaptive offset is applied.
메모리(160)는 복원 픽처 또는 인코딩/디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(155)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 상기 저장된 복원 픽처는 다른 픽처의 (인터) 예측을 위한 참조 픽처로 활용될 수 있다. 예컨대, 메모리(160)는 인터 예측에 사용되는 (참조) 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트(reference picture set) 혹은 참조 픽처 리스트(reference picture list)에 의해 지정될 수 있다.The memory 160 may store information necessary for reconstruction picture or encoding / decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 155. The stored reconstructed picture may be used as a reference picture for (inter) prediction of another picture. For example, the memory 160 may store (reference) pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list.
도 2는 본 발명이 적용될 수 있는 비디오 디코딩 장치의 구성을 개략적으로 설명하는 도면이다.2 is a diagram schematically illustrating a configuration of a video decoding apparatus to which the present invention may be applied.
도 2를 참조하면, 비디오 디코딩 장치(200)는 엔트로피 디코딩부(210), 재정렬부(220), 역양자화부(230), 역변환부(240), 예측부(250), 가산부(260), 필터부(270), 메모리(280)를 포함한다.Referring to FIG. 2, the video decoding apparatus 200 includes an entropy decoding unit 210, a reordering unit 220, an inverse quantization unit 230, an inverse transform unit 240, a predictor 250, and an adder 260. , A filter unit 270, and a memory 280.
비디오 정보를 포함하는 비트스트림이 입력되면, 비디오 디코딩 장치는(200)는 비디오 인코딩 장치에서 비디오 정보가 처리된 프로세스에 대응하여 비디오를 복원할 수 있다.When a bitstream including video information is input, the video decoding apparatus 200 may reconstruct the video in response to a process in which the video information is processed in the video encoding apparatus.
예컨대, 비디오 디코딩 장치(200)는 비디오 인코딩 장치에서 적용된 처리 유닛을 이용하여 비디오 디코딩을 수행할 수 있다. 따라서 비디오 디코딩의 처리 유닛 블록은 코딩 유닛 블록, 예측 유닛 블록 또는 변환 유닛 블록일 수 있다. 코딩 유닛 블록은 디코딩의 유닛 블록으로서 최대 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할될 수 있다. 예측 유닛 블록은 코딩 유닛 블록으로부터 파티셔닝되는 블록으로서, 샘플 예측의 유닛 블록일 수 있다. 이 때, 예측 유닛 블록은 서브 블록으로 나뉠 수도 있다. 변환 유닛 블록은 코딩 유닛 블록으로부터 쿼드 트리 구조를 따라서 분할 될 수 있으며, 변환 계수를 유도하는 유닛 블록 또는 변환 계수로부터 레지듀얼 신호를 유도하는 유닛 블록일 수 있다. For example, the video decoding apparatus 200 may perform video decoding using a processing unit applied in the video encoding apparatus. Thus, the processing unit block of video decoding may be a coding unit block, a prediction unit block, or a transform unit block. The coding unit block may be divided along the quad tree structure from the largest coding unit block as a unit block of decoding. The prediction unit block is a block partitioned from the coding unit block and may be a unit block of sample prediction. In this case, the prediction unit block may be divided into sub blocks. The transform unit block may be divided along the quad tree structure from the coding unit block, and may be a unit block for deriving a transform coefficient or a unit block for deriving a residual signal from the transform coefficient.
엔트로피 디코딩부(210)는 비트스트림을 파싱하여 비디오 복원 또는 픽처 복원에 필요한 정보를 출력할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 비디오 복원에 필요한 신텍스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. The entropy decoding unit 210 may parse the bitstream and output information necessary for video reconstruction or picture reconstruction. For example, the entropy decoding unit 210 decodes information in the bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, quantized values of syntax elements required for video reconstruction, and transform coefficients for residuals. Can be output.
보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈(bin)의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다.More specifically, the CABAC entropy decoding method receives a bin corresponding to each syntax element in a bitstream, and decodes syntax element information and decoding information of neighboring and decoding target blocks or information of symbols / bins decoded in a previous step. The context model may be determined using the context model, the probability of occurrence of a bin may be predicted according to the determined context model, and arithmetic decoding of the bin may be performed to generate a symbol corresponding to the value of each syntax element. have. In this case, the CABAC entropy decoding method may update the context model by using the information of the decoded symbol / bin for the context model of the next symbol / bean after determining the context model.
엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(230)로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수는 재정렬부(220)로 입력될 수 있다.The information related to the prediction among the information decoded by the entropy decoding unit 210 is provided to the prediction unit 230, and the residual value on which the entropy decoding has been performed by the entropy decoding unit 210, that is, the quantized transform coefficient, is used as a reordering unit ( 220).
재정렬부(220)는 양자화되어 있는 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 재정렬부(220)는 인코딩 장치에서 수행된 계수 스캐닝에 대응하여 재정렬을 수행할 수 있다. 여기서 재정렬부(220)는 별도의 구성으로 설명하였으나, 재정렬부(220)는 양자화부(230)의 일부일 수 있다.The reordering unit 220 may rearrange the quantized transform coefficients in the form of a two-dimensional block. The reordering unit 220 may perform reordering in response to coefficient scanning performed by the encoding apparatus. Although the reordering unit 220 has been described in a separate configuration, the reordering unit 220 may be a part of the quantization unit 230.
역양자화부(230)는 양자화되어 있는 변환 계수들을 (역)양자화 파라미터를 기반으로 역양자화하여 변환 계수를 출력할 수 있다. 이 때, 양자화 파라미터를 유도하기 위한 정보는 인코딩 장치로부터 시그널링될 수 있다.The inverse quantization unit 230 may output the transform coefficients by inversely quantizing the transform coefficients quantized based on the (inverse) quantization parameter. In this case, information for deriving a quantization parameter may be signaled from the encoding apparatus.
역변환부(240)는 변환 계수들을 역변환하여 레지듀얼 샘플들을 유도할 수 있다. The inverse transform unit 240 may induce residual samples by inversely transforming the transform coefficients.
예측부(250)는 현재 블록에 대한 예측을 수행하고, 상기 현재 블록에 대한 예측 샘플들을 포함하는 예측 블록을 생성할 수 있다. 예측부(250)에서 수행되는 예측의 단위는 코딩 블록일 수도 있고, 변환 블록일 수도 있고, 예측 블록일 수도 있다. The prediction unit 250 may perform prediction on the current block and generate a prediction block including prediction samples for the current block. The unit of prediction performed by the prediction unit 250 may be a coding block, a transform block, or a prediction block.
예측부(250)는 상기 예측에 관한 정보를 기반으로 인트라 예측을 적용할 것인지 인터 예측을 적용할 것인지를 결정할 수 있다. 이 때, 인트라 예측과 인터 예측 중 어느 것을 적용할 것인지를 결정하는 단위와 예측 샘플을 생성하는 단위는 상이할 수 있다. 아울러, 인터 예측과 인트라 예측에 있어서 예측 샘플을 생성하는 단위 또한 상이할 수 있다. 예를 들어, 인터 예측과 인트라 예측 중 어느 것을 적용할 것인지는 CU 단위로 결정할 수 있다. 또한 예를 들어, 인터 예측에 있어서 PU 단위로 예측 모드를 결정하고 예측 샘플을 생성할 수 있고, 인트라 예측에 있어서 PU 단위로 예측 모드를 결정하고 TU 단위로 예측 샘플을 생성할 수도 있다. The prediction unit 250 may determine whether to apply intra prediction or inter prediction based on the information about the prediction. In this case, a unit for determining which of intra prediction and inter prediction is to be applied and a unit for generating a prediction sample may be different. In addition, the unit for generating a prediction sample in inter prediction and intra prediction may also be different. For example, whether to apply inter prediction or intra prediction may be determined in units of CUs. In addition, for example, in inter prediction, a prediction mode may be determined and a prediction sample may be generated in PU units, and in intra prediction, a prediction mode may be determined in PU units and a prediction sample may be generated in TU units.
인트라 예측의 경우에, 예측부(250)는 현재 픽처 내의 주변 참조 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(250)는 현재 블록의 주변 참조 샘플을 기반으로 방향성 모드 또는 비방향성 모드를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이 때, 주변 블록의 인트라 예측 모드를 이용하여 현재 블록에 적용할 예측 모드가 결정될 수도 있다. In the case of intra prediction, the prediction unit 250 may derive the prediction sample for the current block based on the neighbor reference samples in the current picture. The prediction unit 250 may derive the prediction sample for the current block by applying the directional mode or the non-directional mode based on the neighbor reference samples of the current block. In this case, the prediction mode to be applied to the current block may be determined using the intra prediction mode of the neighboring block.
인터 예측의 경우에, 예측부(250)는 참조 픽처 상에서 움직임 벡터에 의해 참조 픽처 상에서 특정되는 샘플을 기반으로 현재 블록에 대한 예측 샘플을 유도할 수 있다. 예측부(250)는 스킵(skip) 모드, 머지(merge) 모드 및 MVP 모드 중 어느 하나를 적용하여 현재 블록에 대한 예측 샘플을 유도할 수 있다. 이때, 비디오 인코딩 장치에서 제공된 현재 블록의 인터 예측에 필요한 움직임 정보, 예컨대 움직임 벡터, 참조 픽처 인덱스 등에 관한 정보는 상기 예측에 관한 정보를 기반으로 획득 또는 유도될 수 있다In the case of inter prediction, the prediction unit 250 may derive the prediction sample for the current block based on the sample specified on the reference picture by the motion vector on the reference picture. The prediction unit 250 may induce a prediction sample for the current block by applying any one of a skip mode, a merge mode, and an MVP mode. In this case, motion information required for inter prediction of the current block provided by the video encoding apparatus, for example, information about a motion vector, a reference picture index, and the like may be obtained or derived based on the prediction information.
스킵 모드와 머지 모드의 경우에, 주변 블록의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the skip mode and the merge mode, the motion information of the neighboring block may be used as the motion information of the current block. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
예측부(250)는 가용한 주변 블록의 움직임 정보로 머지 후보 리스트를 구성하고, 머지 인덱스가 머지 후보 리스트 상에서 지시하는 정보를 현재 블록의 움직임 벡터로 사용할 수 있다. 머지 인덱스는 인코딩 장치로부터 시그널링될 수 있다. 움직임 정보는 움직임 벡터와 참조 픽처를 포함할 수 있다. 스킵 모드와 머지 모드에서 시간적 주변 블록의 움직임 정보가 이용되는 경우에, 참조 픽처 리스트 상의 최상위 픽처가 참조 픽처로서 이용될 수 있다.The predictor 250 may construct a merge candidate list using motion information of available neighboring blocks, and may use information indicated by the merge index on the merge candidate list as a motion vector of the current block. The merge index may be signaled from the encoding device. The motion information may include a motion vector and a reference picture. When the motion information of the temporal neighboring block is used in the skip mode and the merge mode, the highest picture on the reference picture list may be used as the reference picture.
스킵 모드의 경우, 머지 모드와 달리 예측 샘플과 원본 샘플 사이의 차이(레지듀얼)이 전송되지 않는다.In the skip mode, unlike the merge mode, the difference (residual) between the prediction sample and the original sample is not transmitted.
MVP 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하여 현재 블록의 움직임 벡터가 유도될 수 있다. 이 때, 주변 블록은 공간적 주변 블록과 시간적 주변 블록을 포함할 수 있다.In the MVP mode, the motion vector of the current block may be derived using the motion vector of the neighboring block as a motion vector predictor. In this case, the neighboring block may include a spatial neighboring block and a temporal neighboring block.
일 예로, 머지 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 머지 후보 리스트가 생성될 수 있다. 머지 모드에서는 머지 후보 리스트에서 선택된 후보 블록의 움직임 벡터가 현재 블록의 움직임 벡터로 사용된다. 상기 예측에 관한 정보는 상기 머지 후보 리스트에 포함된 후보 블록들 중에서 선택된 최적의 움직임 벡터를 갖는 후보 블록을 지시하는 머지 인덱스를 포함할 수 있다. 이 때, 예측부(250)는 상기 머지 인덱스를 이용하여, 현재 블록의 움직임 벡터를 도출할 수 있다.For example, when the merge mode is applied, a merge candidate list may be generated by using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block, which is a temporal neighboring block. In the merge mode, the motion vector of the candidate block selected from the merge candidate list is used as the motion vector of the current block. The information about the prediction may include a merge index indicating a candidate block having an optimal motion vector selected from candidate blocks included in the merge candidate list. In this case, the prediction unit 250 may derive the motion vector of the current block by using the merge index.
다른 예로, MVP(Motion Vector Prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록인 Col 블록에 대응하는 움직임 벡터는 움직임 벡터 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 후보 중에서 선택된 최적의 움직임 벡터를 지시하는 예측 움직임 벡터 인덱스를 포함할 수 있다. 이 때, 예측부(250)는 상기 움직임 벡터 인덱스를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 후보 중에서, 현재 블록의 예측 움직임 벡터를 선택할 수 있다. 인코딩 장치의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 예측부(250)는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 예측부는 또한 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. As another example, when the Motion Vector Prediction (MVP) mode is applied, a motion vector predictor candidate list may be generated using a motion vector of a reconstructed spatial neighboring block and / or a motion vector corresponding to a Col block which is a temporal neighboring block. Can be. That is, the motion vector of the reconstructed spatial neighboring block and / or the Col vector, which is a temporal neighboring block, may be used as a motion vector candidate. The prediction information may include a prediction motion vector index indicating an optimal motion vector selected from the motion vector candidates included in the list. In this case, the prediction unit 250 may select the predicted motion vector of the current block from the motion vector candidates included in the motion vector candidate list using the motion vector index. The prediction unit of the encoding apparatus may obtain a motion vector difference (MVD) between the motion vector of the current block and the motion vector predictor, and may encode the output vector in a bitstream form. That is, MVD may be obtained by subtracting the motion vector predictor from the motion vector of the current block. In this case, the prediction unit 250 may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block by adding the motion vector difference and the motion vector predictor. The prediction unit may also obtain or derive a reference picture index or the like indicating a reference picture from the information about the prediction.
가산부(260)는 레지듀얼 샘플과 예측 샘플을 더하여 현재 블록 혹은 현재 픽처를 복원할 수 있다. 가산부(260)는 레지듀얼 샘플과 예측 샘플을 블록 단위로 더하여 현재 픽처를 복원할 수도 있다. 스킵 모드가 적용된 경우에는 레지듀얼이 전송되지 않으므로, 예측 샘플이 복원 샘플이 될 수 있다. 여기서는 가산부(260)를 별도의 구성으로 설명하였으나, 가산부(260)는 예측부(250)의 일부일 수도 있다. The adder 260 may reconstruct the current block or the current picture by adding the residual sample and the predictive sample. The adder 260 may reconstruct the current picture by adding the residual sample and the predictive sample in block units. Since the residual is not transmitted when the skip mode is applied, the prediction sample may be a reconstruction sample. Although the adder 260 is described in a separate configuration, the adder 260 may be part of the predictor 250.
필터부(270)는 복원된 픽처에 디블록킹 필터링 샘플 적응적 오프셋, 및/또는 ALF 등을 적용할 수 있다. 이 때, 샘플 적응적 오프셋은 샘플 단위로 적용될 수 있으며, 디블록킹 필터링 이후 적용될 수도 있다. ALF는 디블록킹 필터링 및/또는 샘플 적응적 오프셋 이후 적용될 수도 있다.The filter unit 270 may apply the deblocking filtering sample adaptive offset, and / or ALF to the reconstructed picture. In this case, the sample adaptive offset may be applied in units of samples and may be applied after deblocking filtering. ALF may be applied after deblocking filtering and / or sample adaptive offset.
메모리(280)는 복원 픽처 또는 디코딩에 필요한 정보를 저장할 수 있다. 여기서 복원 픽처는 상기 필터부(270)에 의하여 필터링 절차가 완료된 복원 픽처일 수 있다. 예컨대, 메모리(280)는 인터 예측에 사용되는 픽처들을 저장할 수 있다. 이 때, 인터 예측에 사용되는 픽처들은 참조 픽처 세트 혹은 참조 픽처 리스트에 의해 지정될 수도 있다. 복원된 픽처는 다른 픽처에 대한 참조 픽처로서 이용될 수 있다. 또한, 메모리(280)는 복원된 픽처를 출력 순서에 따라서 출력할 수도 있다. The memory 280 may store information necessary for reconstruction picture or decoding. Here, the reconstructed picture may be a reconstructed picture after the filtering process is completed by the filter unit 270. For example, the memory 280 may store pictures used for inter prediction. In this case, pictures used for inter prediction may be designated by a reference picture set or a reference picture list. The reconstructed picture can be used as a reference picture for another picture. In addition, the memory 280 may output the reconstructed picture in an output order.
상술한 내용과 같이 인트라 예측 및/또는 인터 예측을 수행하여 상기 현재 픽처를 복원할 수 있다. 또한, 인터 예측과 인트라 예측 중 어느 것을 수행할 것인지는 상기 현재 픽처 내 코딩 유닛(Cording Unit, CU) 단위로 결정될 수 있고, 현재 CU에 대하여 인터 예측이 수행되는 것으로 결정된 경우, 상기 현재 CU 내 예측 유닛(Prediction Unit, PU)는 스킵 모드, 머지 모드 및 MVP(motion vector prediction) 모드 중 하나의 예측 모드를 결정될 수 있다. 여기서, 상기 MVP 모드는 AMVP(advanced motion vector prediction) 모드라고 불릴 수 있다. 또한, 상기 현재 픽처는 CU 및 PU와 같이 별개의 단위로 구분되지 않을 수 있고, 상기 CU 및 PU를 통합한 하나의 유닛으로 구분될 수도 있다. 예를 들어, 상기 CU 및 상기 PU는 CU로 통합될 수 있고, 상기 현재 픽처는 상기 CU 및 상기 PU가 통합된 CU로만 구분될 수 있다. 이 경우, 상기 현재 픽처는 상기 CU 단위로 예측 모드가 결정될 수 있고, 상기 예측 모드는 인트라 예측 모드, 인터 예측 모드 중 머지 모드, 스킵 모드 및 AMVP 모드 중 하나로 결정될 수 있다. 여기서, 상기 머지 모드는 인터 예측 머지 모드, 상기 스킵 모드는 인터 예측 스킵 모드, 상기 AMVP 모드는 인터 예측 AMVP 모드라고 불릴 수 있다. 다시 말해, 상기 CU 단위로 결정되는 예측 모드는 인트라 예측 모드, 인터 예측 머지 모드, 인터 예측 스킵 모드 및 인터 예측 AMVP 모드 중 하나일 수 있다. As described above, the current picture may be reconstructed by performing intra prediction and / or inter prediction. Further, whether to perform inter prediction or intra prediction may be determined in units of a coding unit (CU) in the current picture, and when it is determined that inter prediction is performed on the current CU, the prediction unit in the current CU The Prediction Unit (PU) may determine a prediction mode of one of a skip mode, a merge mode, and a motion vector prediction (MVP) mode. Here, the MVP mode may be referred to as an advanced motion vector prediction (AMVP) mode. In addition, the current picture may not be divided into separate units such as a CU and a PU, or may be divided into one unit integrating the CU and the PU. For example, the CU and the PU may be integrated into a CU, and the current picture may be divided into only a CU in which the CU and the PU are integrated. In this case, a prediction mode of the current picture may be determined in units of the CU, and the prediction mode may be determined as one of an intra prediction mode, a merge mode among inter prediction modes, a skip mode, and an AMVP mode. The merge mode may be called an inter prediction merge mode, the skip mode is an inter prediction skip mode, and the AMVP mode may be called an inter prediction AMVP mode. In other words, the prediction mode determined in the CU unit may be one of an intra prediction mode, an inter prediction merge mode, an inter prediction skip mode, and an inter prediction AMVP mode.
한편, 현재 블록이 포함된 슬라이스의 타입이 I 슬라이스(Intra slice)가 아닌 경우, 상기 현재 블록에 인터 예측 머지 모드가 수행되는 경우의 발생 빈도가 높을 수 있다. 이 경우, 디코딩 장치가 상기 현재 블록에 수행되는 예측 모드가 인트라 예측 모드인지 또는 인터 예측 모드인지를 나타내는 예측 모드 플래그를 파싱(parsing)하기 전에 상기 현재 블록에 대하여 인터 예측 머지 모드의 수행 여부를 나타내는 머지 모드 플래그를 파싱하여 상기 현재 블록에 인터 예측 머지 모드가 수행되는 경우의 발생 비트량을 줄일 수 있다. 다시 말해, 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있고, 만약 인터 예측 머지 모드가 적용되는 경우 상기 예측 모드 플래그는 시그널링되지 않을 수 있다. 이를 통하여 발생 빈도가 높은 상기 현재 블록에 인터 예측 머지 모드가 수행되는 경우의 발생 비트량을 줄일 수 있고, 이에 전반적인 코딩 효율을 향상시킬 수 있다. 여기서, 머지 플래그의 신텍스(syntax) 요소는 merge_flag 일 수 있고, 상기 예측 모드 플래그의 신텍스(syntax) 요소는 pred_mode_flag 일 수 있다. 또한, 상기 머지 플래그는 제1 플래그라고 불릴 수 있고, 상기 예측 모드 플래그는 제2 플래그라고 불릴 수 있다.Meanwhile, when the type of a slice including the current block is not an I slice, an occurrence frequency when the inter prediction merge mode is performed on the current block may be high. In this case, the decoding apparatus indicates whether the inter prediction merge mode is performed on the current block before parsing a prediction mode flag indicating whether the prediction mode performed on the current block is an intra prediction mode or an inter prediction mode. By parsing a merge mode flag, the amount of bits generated when the inter prediction merge mode is performed on the current block can be reduced. In other words, the merge flag may be parsed in preference to the prediction mode flag, and if the inter prediction merge mode is applied, the prediction mode flag may not be signaled. Accordingly, the amount of bits generated when the inter prediction merge mode is performed on the current block having a high frequency of occurrence can be reduced, thereby improving the overall coding efficiency. Here, the syntax element of the merge flag may be merge_flag, and the syntax element of the prediction mode flag may be pred_mode_flag. In addition, the merge flag may be referred to as a first flag, and the prediction mode flag may be referred to as a second flag.
도 3은 CU에 대한 신텍스 요소들의 파싱 순서의 일 예를 나타낸다. 도 3을 참조하면 디코딩 장치는 현재 슬라이스가 I 슬라이스가 아닌 경우, 현재 CU에 대한 스킵 플래그를 수신 및 파싱할 수 있고, 상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되는지 판단할 수 있다(S305). 상기 스킵 플래그를 나타내는 신텍스 요소는 cu_skip_flag 일 수 있다. I 슬라이스 내 블록들은 인트라 예측 모드만이 적용될 수 있고, 이에 상기 스킵 플래그를 기반으로 예측 모드가 판단되지 않을 수 있다. 3 shows an example of a parsing order of syntax elements for a CU. Referring to FIG. 3, when the current slice is not an I slice, the decoding apparatus may receive and parse a skip flag for the current CU, and determine whether a skip mode is performed on the current CU based on the skip flag. (S305). The syntax element representing the skip flag may be cu_skip_flag. Only intra prediction modes may be applied to blocks in an I slice, and thus a prediction mode may not be determined based on the skip flag.
상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 상기 현재 CU에 대한 머지 인덱스를 수신 및 파싱할 수 있고, 상기 머지 인덱스가 가리키는 머지 후보 리스트 내 후보 블록의 움직임 정보를 기반으로 상기 현재 CU에 대한 움직임 정보를 도출할 수 있다(S310).When it is determined that a skip mode is performed on the current CU based on the skip flag, the decoding apparatus may receive and parse a merge index for the current CU, and determine a candidate block in the merge candidate list indicated by the merge index. The motion information on the current CU may be derived based on the motion information (S310).
또한, 상기 현재 슬라이스가 I 슬라이스가 아니고 상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되지 않는 것으로 판단된 경우, 디코딩 장치는 상기 현재 CU에 대한 예측 모드 플래그를 수신 및 파싱할 수 있고, 상기 예측 모드 플래그를 기반으로 상기 현재 CU에 인터 예측 모드 및 인트라 예측 모드 중 어느 예측 모드가 수행되는지를 판단할 수 있다(S315). 예를 들어, 상기 예측 모드 플래그의 값이 1인 경우, 상기 현재 CU는 인터 예측 모드가 수행되는 것으로 판단될 수 있고, 상기 예측 모드 플래그의 값이 0인 경우, 상기 현재 CU는 인트라 예측 모드가 수행되는 것으로 판단될 수 있다.In addition, when it is determined that the current slice is not an I slice and a skip mode is not performed on the current CU based on the skip flag, the decoding apparatus may receive and parse a prediction mode flag for the current CU. Based on the prediction mode flag, it may be determined which prediction mode of inter prediction mode and intra prediction mode is performed in the current CU (S315). For example, when the value of the prediction mode flag is 1, the current CU may be determined to perform an inter prediction mode, and when the value of the prediction mode flag is 0, the current CU may have an intra prediction mode. It may be judged to be performed.
상기 예측 모드 플래그를 기반으로 상기 현재 CU에 인터 예측 모드 및 인트라 예측 모드 중 인터 예측 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 상기 현재 CU에 대한 파티셔닝(partitioning) 정보를 기반으로 상기 현재 CU에 대응하는 하나 또는 복수의 PU를 도출할 수 있다(S320). 상기 현재 CU에 대한 상기 파티셔닝 정보를 나타내는 신텍스 요소는 part_mode 일 수 있다. 한편, 현재 픽처가 상기 CU와 상기 PU가 통합된 유닛으로 구분되는 경우, 예를 들어 상기 CU와 상기 PU를 상기 CU로 통합하여 상기 현재 픽처를 구분하는 경우, 상기 CU에 대한 파티셔닝 정보가 존재하지 않을 수 있다. 또한, 디코딩 장치는 CU 단위로 인트라 예측 모드, 인터 예측 머지 모드, 인터 예측 스킵 모드 및 인터 예측 AMVP 모드 중 하나의 예측 모드를 결정할 수 있다.When it is determined that the inter prediction mode among the inter prediction mode and the intra prediction mode is performed on the current CU based on the prediction mode flag, the decoding apparatus transmits to the current CU based on partitioning information on the current CU. One or more corresponding PUs may be derived (S320). The syntax element representing the partitioning information for the current CU may be part_mode. Meanwhile, when the current picture is divided into a unit in which the CU and the PU are integrated, for example, when the CU and the PU are integrated into the CU to distinguish the current picture, partitioning information for the CU does not exist. You may not. Also, the decoding apparatus may determine one prediction mode among an intra prediction mode, an inter prediction merge mode, an inter prediction skip mode, and an inter prediction AMVP mode.
상기 현재 CU에 대응하는 PU가 도출된 경우, 디코딩 장치는 머지 플래그를 수신 및 파싱할 수 있고, 상기 머지 플래그를 기반으로 상기 현재 CU에 대응하는 현재 PU의 인터 예측 머지 모드 및 인터 예측 AMVP 모드 중 하나의 예측 모드의 수행 여부를 판단할 수 있다(S325). 예를 들어, 상기 머지 플래그의 값이 1인 경우, 상기 현재 PU는 인터 예측 머지 모드가 수행되는 것으로 판단될 수 있고, 상기 예측 모드 플래그의 값이 0인 경우, 상기 현재 PU는 인터 예측 AMVP 모드가 수행되는 것으로 판단될 수 있다.When the PU corresponding to the current CU is derived, the decoding apparatus may receive and parse a merge flag, and among the inter prediction merge mode and the inter prediction AMVP mode of the current PU corresponding to the current CU based on the merge flag. It may be determined whether one prediction mode is performed (S325). For example, when the value of the merge flag is 1, the current PU may be determined to perform an inter prediction merge mode, and when the value of the prediction mode flag is 0, the current PU may be an inter prediction AMVP mode. Can be determined to be performed.
상기 머지 플래그를 기반으로 현재 PU에 인터 예측 머지 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 머지 인덱스를 수신 및 파싱할 수 있고, 상기 머지 인덱스가 가리키는 머지 후보 리스트 내 후보 블록의 움직임 정보를 기반으로 상기 현재 PU의 움직임 정보를 도출할 수 있다(S330).When it is determined that the inter prediction merge mode is performed on the current PU based on the merge flag, the decoding apparatus may receive and parse a merge index and based on the motion information of the candidate block in the merge candidate list indicated by the merge index. In operation S330, motion information of the current PU may be derived.
또한, 상기 머지 플래그를 기반으로 현재 PU에 인터 예측 AMVP 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 인터 예측 지시자를 기반으로 상기 현재 PU에 단예측(uni-prediction) 또는 쌍예측(bi-prediction) 수행 여부를 판단할 수 있다(S335). 예를 들어, 상기 인터 예측 지시자의 값이 0인 경우, 상기 현재 PU는 움직임 벡터 예측자 후보 리스트 L0에 포함되는 움직임 정보를 기반으로 단예측이 수행되는 것으로 판단될 수 있고, 상기 인터 예측 지시자의 값이 1인 경우, 상기 현재 PU는 움직임 벡터 예측자 후보 리스트 L1에 포함되는 움직임 정보를 기반으로 단예측이 수행되는 것으로 판단될 수 있고, 상기 인터 예측 지시자의 값이 2인 경우, 상기 현재 PU는 움직임 벡터 예측자 후보 리스트 L0 내 움직임 정보 및 움직임 벡터 예측자 후보 리스트 L1 내 움직임 정보를 기반으로 쌍예측이 수행되는 것으로 판단될 수 있다. In addition, when it is determined that the inter prediction AMVP mode is performed on the current PU based on the merge flag, the decoding apparatus may perform uni-prediction or bi-prediction on the current PU based on an inter prediction indicator. It may be determined whether to perform (S335). For example, when the value of the inter prediction indicator is 0, the current PU may be determined to be uni-predicted based on motion information included in the motion vector predictor candidate list L0, and the inter prediction indicator may be determined. When the value is 1, the current PU may be determined to be uni-predicted based on motion information included in the motion vector predictor candidate list L1. When the value of the inter prediction indicator is 2, the current PU is determined. May be determined to perform pair prediction based on the motion information in the motion vector predictor candidate list L0 and the motion information in the motion vector predictor candidate list L1.
디코딩 장치는 참조 픽처 리스트 L0에 포함된 상기 현재 PU에 대한 참조 픽처를 가리키는 참조 픽처 인덱스, MVD(motion vector difference)L0에 관한 정보, MVP(motion vector predictor) L0 플래그를 수신 및 파싱할 수 있고(S340), 참조 픽처 리스트 L1에 포함된 상기 현재 PU에 대한 참조 픽처를 가리키는 참조 픽처 인덱스, MVDL1에 대한 정보, MVP L1 플래그를 수신 및 파싱할 수 있다(S345).The decoding apparatus may receive and parse a reference picture index indicating a reference picture for the current PU included in the reference picture list L0, information about a motion vector difference (MVD) L0, and a motion vector predictor (MVP) L0 flag ( In operation S345, a reference picture index indicating the reference picture for the current PU included in the reference picture list L1, information on MVDL1, and an MVP L1 flag may be received and parsed (S345).
상술한 단계들을 기반으로 하나 또는 복수의 PU에 대한 움직임 정보를 순차적으로 도출할 수 있으며, 디코딩 장치는 상기 현재 PU가 상기 현재 CU에 대응되는 PU 중 디코딩 순서상 마지막 PU인지 여부를 판단할 수 있다(S350). 상기 현재 PU가 마지막 PU인 경우, 상기 CU에 대한 예측 절차를 종료할 수 있고, 상기 현재 PU가 마지막 PU가 아닌 경우, 상기 현재 CU에 대응하는 PU 중 디코딩 순서상 상기 현재 PU의 다음 순서인 PU에 대하여 상술한 과정을 수행할 수 있다. Based on the above-described steps, motion information for one or a plurality of PUs may be sequentially derived, and the decoding apparatus may determine whether the current PU is the last PU in decoding order among the PUs corresponding to the current CU. (S350). When the current PU is the last PU, the prediction procedure for the CU may be terminated, and when the current PU is not the last PU, a PU that is next to the current PU in decoding order among PUs corresponding to the current CU. The above-described process can be performed.
한편, S315에서 상기 예측 모드 플래그를 기반으로 상기 현재 CU에 인터 예측 모드 및 인트라 예측 모드 중 상기 인트라 예측 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 상기 현재 CU에 대하여 하나 또는 복수의 PU를 도출할 수 있으며, 이전 인트라 루마 예측 플래그를 기반으로 현재 PU에 MPM(most probable mode) 기반 인트라 루마 예측 모드의 적용 여부를 판단할 수 있다(S355). 상기 이전 인트라 루마 예측 플래그는 prev_intra_luma_pred_flag 신텍스 요소로 나타내어질 수 있다. 디코딩 장치는 좌측 주변 블록의 예측 모드 및 상측 주변 블록의 인트라 모드를 기반으로 MPM 리스트를 구성할 수 있다. 이 경우 미리 정해진 특정 조건에 따라 추가적인 인트라 모드가 결정되어 상기 MPM 리스트에 더 포함될 수도 있다. On the other hand, when it is determined in step S315 that the intra prediction mode of the inter prediction mode and the intra prediction mode is performed on the current CU based on the prediction mode flag, the decoding apparatus derives one or more PUs for the current CU. In operation S355, it may be determined whether the most probable mode (MPM) based intra luma prediction mode is applied to the current PU based on the previous intra luma prediction flag. The previous intra luma prediction flag may be represented by a prev_intra_luma_pred_flag syntax element. The decoding apparatus may configure the MPM list based on the prediction mode of the left neighboring block and the intra mode of the upper neighboring block. In this case, an additional intra mode may be determined according to a predetermined specific condition and further included in the MPM list.
상기 현재 PU에 MPM 리스트에 포함된 인트라 루마 예측 모드가 적용되는 것으로 판단된 경우, 디코딩 장치는 MPM 인덱스를 수신 및 파싱하여 상기 MPM 리스트로부터 상기 현재 PU에 대한 인트라 루마 예측 모드를 도출할 수 있다(S360). 한편 상기 현재 PU에 대한 MPM에 포함된 인트라 루마 예측 모드가 적용되지 않는 것으로 판단된 경우, 디코딩 장치는 리메인(remain) 인트라 루마 예측 모드 정보를 기반으로 상기 현재 PU에 대한 인트라 루마 예측 모드를 도출할 수 있다(S365). If it is determined that the intra luma prediction mode included in the MPM list is applied to the current PU, the decoding apparatus may receive and parse an MPM index to derive the intra luma prediction mode for the current PU from the MPM list ( S360). On the other hand, when it is determined that the intra luma prediction mode included in the MPM for the current PU is not applied, the decoding apparatus derives the intra luma prediction mode for the current PU based on the main intra luma prediction mode information. Can be (S365).
상기 현재 PU에 대한 인트라 루마 예측 모드를 도출한 이후에, 디코딩 장치는 인트라 크로마 예측 모드 정보를 기반으로 상기 현재 PU에 대한 인트라 크로마 예측 모드를 도출할 수 있다(S370).After deriving the intra luma prediction mode for the current PU, the decoding apparatus may derive the intra chroma prediction mode for the current PU based on the intra chroma prediction mode information (S370).
한편, 예측 모드들 중 상대적으로 발생 빈도수가 높은 인터 예측 머지 모드를 나타내는 신텍스 요소의 신텍스 상에서의 위치를 재배치할 필요가 있을 수 있다. 즉, 상기 현재 블록에 대한 예측 모드를 도출하기 위한 신텍스 요소들간의 파싱 순서를 변경할 수 있다. 디코딩 장치는 상대적으로 발생 빈도수가 높은 예측 모드를 나타내는 신텍스 요소를 다른 신텍스 요소보다 먼저 파싱하여 영상의 예측을 위한 비트량을 줄일 수 있고, 이를 통하여 전반적인 코딩 효율을 향상시킬 수 있다. On the other hand, it may be necessary to rearrange the position on the syntax of the syntax element representing the inter prediction merge mode having a relatively high frequency of occurrence among the prediction modes. That is, the parsing order between syntax elements for deriving a prediction mode for the current block may be changed. The decoding apparatus may reduce the amount of bits for prediction of an image by parsing a syntax element representing a relatively high frequency prediction mode before other syntax elements, thereby improving overall coding efficiency.
일 예로, 2Nx2N 사이즈의 CU는 스킵 모드의 발생 빈도가 매우 높을 수 있다. 이에 상기 CU가 포함된 슬라이스의 슬라이스 타입이 I 슬라이스가 아닌 경우, 상기 CU에 대한 스킵 플래그를 우선적으로 파싱할 수 있다. 구체적으로, 예를 들어, 상기 스킵 플래그의 값이 1인 경우, 즉, 상기 CU에 스킵 모드가 수행되는 경우, 디코딩 장치는 상기 CU에 대한 머지 인덱스를 파싱할 수 있다. 이를 통하여 발생 빈도가 높은 상기 CU에 스킵 모드가 수행되는 경우를 나타내기 위한 비트량을 최소 비트로 할당할 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.For example, a 2N × 2N size CU may have a very high frequency of skip mode. Accordingly, when the slice type of the slice including the CU is not an I slice, the skip flag for the CU may be parsed preferentially. Specifically, for example, when the value of the skip flag is 1, that is, when a skip mode is performed in the CU, the decoding apparatus may parse a merge index for the CU. Through this, a bit amount for indicating a skip mode is performed to the CU having a high frequency of occurrence can be allocated as the minimum bit, and the overall coding efficiency can be improved.
상술한 예시와 유사한 경우로 현재 CU에 대하여 인터 예측 머지 모드가 수행되는 경우의 발생 빈도가 상기 현재 CU에 대하여 인터 예측 AMVP 모드 및 인트라 예측 모드가 수행되는 경우의 발생 빈도보다 높을 수 있다. 이 경우, 디코딩 장치는 상기 현재 CU에 수행되는 예측 모드가 인트라 예측 모드인지, 또는 인터 예측 모드인지를 구분하는 예측 모드 플래그보다 상기 현재 CU에 대한 머지 플래그를 우선적으로 파싱할 수 있고, 이를 통하여 상기 현재 CU에 인터 예측 머지 모드가 수행되는 경우의 비트 발생량을 줄일 수 있다.In a case similar to the above example, the occurrence frequency when the inter prediction merge mode is performed on the current CU may be higher than the occurrence frequency when the inter prediction AMVP mode and the intra prediction mode are performed on the current CU. In this case, the decoding apparatus may parse the merge flag for the current CU preferentially rather than the prediction mode flag for distinguishing whether the prediction mode performed on the current CU is an intra prediction mode or an inter prediction mode. The amount of bits generated when the inter prediction merge mode is performed on the current CU can be reduced.
도 4는 CU에 대한 신텍스 요소들의 파싱 순서의 다른 일 예를 나타낸다. 도 4를 참조하면 디코딩 장치는 현재 슬라이스가 I 슬라이스가 아닌 경우, 현재 CU에 대한 스킵 플래그를 수신 및 파싱할 수 있고, 상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되는지 판단할 수 있다(S405).4 shows another example of a parsing order of syntax elements for a CU. Referring to FIG. 4, when the current slice is not an I slice, the decoding apparatus may receive and parse a skip flag for the current CU, and determine whether a skip mode is performed on the current CU based on the skip flag. (S405).
상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 현재 블록에 대한 머지 인덱스를 수신 및 파싱할 수 있고, 상기 머지 인덱스가 가리키는 머지 후보 리스트 내 후보 블록의 움직임 정보를 기반으로 상기 현재 블록에 대한 움직임 정보를 도출할 수 있다(S410). 디코딩 장치는 상기 현재 CU에 대하여 하나 또는 복수의 PU를 도출할 수 있다. 이 경우, 상기 현재 블록은 상기 현재 CU에 대한 PU일 수 있다. 또한, 상기 현재 픽처가 상기 CU 및 상기 PU를 통합한 하나의 유닛으로 구분되는 경우, 디코딩 장치는 상기 현재 CU에 대하여 하나 또는 복수의 PU를 도출하지 않을 수 있다. 이 경우, 상기 현재 블록은 상기 CU 및 상기 PU를 통합한 하나의 유닛일 수 있고, 상기 CU 및 상기 PU를 통합한 하나의 유닛은 CU라고 불릴 수 있다.When it is determined that a skip mode is performed on the current CU based on the skip flag, the decoding apparatus may receive and parse a merge index for the current block, and the movement of the candidate block in the merge candidate list indicated by the merge index may be performed. The motion information on the current block may be derived based on the information (S410). The decoding apparatus may derive one or a plurality of PUs for the current CU. In this case, the current block may be a PU for the current CU. In addition, when the current picture is divided into one unit in which the CU and the PU are integrated, the decoding apparatus may not derive one or a plurality of PUs with respect to the current CU. In this case, the current block may be one unit integrating the CU and the PU, and one unit integrating the CU and the PU may be called a CU.
한편, 상기 현재 슬라이스가 I 슬라이스가 아니고 상기 스킵 플래그를 기반으로 상기 현재 CU에 스킵 모드가 수행되지 않는 것으로 판단된 경우, 디코딩 장치는 상기 현재 블록에 대한 예측 모드 플래그를 파싱하기 이전에 상기 현재 블록에 대한 머지 플래그를 수신 및 파싱할 수 있다(S415). 상기 현재 CU에 대하여 하나 또는 복수의 PU가 도출된 경우, 상기 현재 블록은 상기 현재 CU에 대한 PU일 수 있고, 또한, 상기 현재 픽처가 상기 CU 및 상기 PU를 통합한 하나의 유닛으로 구분되는 경우, 상기 현재 블록은 상기 CU 및 상기 PU를 통합한 하나의 유닛일 수 있고, 상기 CU 및 상기 PU를 통합한 하나의 유닛은 CU라고 불릴 수 있다. On the other hand, if it is determined that the current slice is not an I slice and a skip mode is not performed on the current CU based on the skip flag, the decoding apparatus determines the current block before parsing a prediction mode flag for the current block. The merge flag may be received and parsed (S415). When one or a plurality of PUs are derived for the current CU, the current block may be a PU for the current CU, and when the current picture is divided into one unit integrating the CU and the PU. The current block may be one unit integrating the CU and the PU, and one unit integrating the CU and the PU may be called a CU.
구체적으로, 디코딩 장치는 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있다. 예를 들어, 상기 머지 플래그의 값이 1인 경우, 상기 현재 블록은 상기 인터 예측 머지 모드가 수행되는 것으로 판단될 수 있고, 상기 머지 플래그의 값이 0인 경우, 상기 현재 블록은 인터 예측 머지 모드가 수행되지 않는 것으로 판단될 수 있다.In detail, the decoding apparatus may parse the merge flag prior to the prediction mode flag. For example, when the merge flag has a value of 1, the current block may be determined that the inter prediction merge mode is performed. When the merge flag has a value of 0, the current block may have an inter prediction merge mode. It may be determined that is not performed.
한편, 상기 S415에서 상기 머지 플래그를 기반으로 상기 현재 블록에 상기 인터 예측 머지 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 상기 현재 블록에 대한 머지 인덱스를 수신 및 파싱할 수 있고, 상기 머지 인덱스가 가리키는 머지 후보 리스트 내 후보 블록의 움직임 정보를 기반으로 상기 현재 블록에 대한 움직임 정보를 도출할 수 있다(S420).Meanwhile, when it is determined in step S415 that the inter prediction merge mode is performed on the current block based on the merge flag, the decoding apparatus may receive and parse a merge index for the current block, and the merge index may be The motion information of the current block may be derived based on the motion information of the candidate block in the pointed merge candidate list (S420).
한편, 상기 S415에서 상기 머지 플래그를 기반으로 상기 현재 블록에 상기 인터 예측 머지 모드가 수행되지 않는 것으로 판단된 경우, 디코딩 장치는 상기 현재 블록에 대한 예측 모드 플래그를 수신 및 파싱할 수 있고, 상기 예측 모드 플래그를 기반으로 인터 예측 AMVP 모드 및 인트라 예측 모드 중 어느 예측 모드가 상기 현재 블록에 수행되는지를 판단할 수 있다(S425). 도 4에 나타난 내용과 같이 상기 현재 블록에 대한 신텍스 요소들간의 파싱 순서의 변경을 통하여 상기 현재 블록에 인터 예측 머지 모드가 수행되는 경우의 비트 발생량을 줄일 수 있고, 전반적인 코딩 효율을 향상시킬 수 있다.On the other hand, when it is determined in step S415 that the inter prediction merge mode is not performed on the current block based on the merge flag, the decoding apparatus may receive and parse the prediction mode flag for the current block, and the prediction may be performed. Based on the mode flag, it may be determined which prediction mode of the inter prediction AMVP mode and the intra prediction mode is performed in the current block (S425). As shown in FIG. 4, the amount of bits generated when the inter prediction merge mode is performed on the current block can be reduced and the overall coding efficiency can be improved by changing the parsing order between the syntax elements of the current block. .
상기 S425에서 상기 예측 모드 플래그를 기반으로 상기 현재 블록에 상기 인터 예측 AMVP 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 인터 예측 지시자를 기반으로 상기 현재 블록에 단예측(uni-prediction) 또는 쌍예측(bi-prediction) 수행 여부를 판단할 수 있다(S430). 예를 들어, 상기 인터 예측 지시자의 값이 0인 경우, 상기 현재 블록은 움직임 벡터 예측자 후보 리스트 L0에 포함되는 움직임 정보를 기반으로 단예측이 수행되는 것으로 판단될 수 있고, 상기 인터 예측 지시자의 값이 1인 경우, 상기 현재 블록은 움직임 벡터 예측자 후보 리스트 L1에 포함되는 움직임 정보를 기반으로 단예측이 수행되는 것으로 판단될 수 있고, 상기 인터 예측 지시자의 값이 2인 경우, 상기 현재 블록은 상기 움직임 벡터 예측자 후보 리스트 L0 내 움직임 정보 및 상기 움직임 벡터 예측자 후보 리스트 L1 내 움직임 정보를 기반으로 쌍예측이 수행되는 것으로 판단될 수 있다. If it is determined in step S425 that the inter prediction AMVP mode is performed on the current block based on the prediction mode flag, the decoding apparatus uni-prediction or pair prediction on the current block based on an inter prediction indicator. It may be determined whether a (bi-prediction) is performed (S430). For example, when the value of the inter prediction indicator is 0, the current block may be determined to be unipredicted based on motion information included in the motion vector predictor candidate list L0, and the inter prediction indicator may be determined. When the value is 1, the current block may be determined to be unipredicted based on motion information included in the motion vector predictor candidate list L1. When the value of the inter prediction indicator is 2, the current block may be determined. May be determined to perform pair prediction based on the motion information in the motion vector predictor candidate list L0 and the motion information in the motion vector predictor candidate list L1.
디코딩 장치는 참조 픽처 리스트 L0에 포함된 상기 현재 블록에 대한 참조 픽처를 가리키는 참조 픽처 인덱스, MVD(motion vector difference)L0에 관한 정보, MVP(motion vector predictor) L0 플래그를 수신 및 파싱할 수 있고(S435), 참조 픽처 리스트 L1에 포함된 상기 현재 블록에 대한 참조 픽처를 가리키는 참조 픽처 인덱스, MVDL1에 대한 정보, MVP L1 플래그를 수신 및 파싱할 수 있다(S440).The decoding apparatus may receive and parse a reference picture index indicating a reference picture for the current block included in the reference picture list L0, information about a motion vector difference (MVD) L0, and a motion vector predictor (MVP) L0 flag ( In operation S440, a reference picture index indicating the reference picture for the current block included in the reference picture list L1, information about MVDL1, and an MVP L1 flag may be received and parsed.
한편, 상기 S425에서 상기 예측 모드 플래그를 기반으로 상기 현재 블록에 인터 예측 모드 및 인트라 예측 모드 중 인트라 예측 모드가 수행되는 것으로 판단된 경우, 디코딩 장치는 이전 인트라 루마 예측 플래그를 기반으로 상기 현재 블록에 MPM(most probable mode) 기반 인트라 루마 예측 모드의 적용 여부를 판단할 수 있다(S445). 상기 이전 인트라 루마 예측 플래그는 prev_intra_luma_pred_flag 신텍스 요소로 나타내어질 수 있다. 디코딩 장치는 좌측 주변 블록의 예측 모드 및 상측 주변 블록의 인트라 모드를 기반으로 MPM 리스트를 구성할 수 있다. 이 경우, 미리 정해진 특정 조건에 따라 추가적인 인트라 모드가 결정되어 상기 MPM 리스트에 더 포함될 수도 있다. On the other hand, when it is determined in step S425 that an intra prediction mode of an inter prediction mode and an intra prediction mode is performed on the current block based on the prediction mode flag, the decoding apparatus determines that the current block is based on a previous intra luma prediction flag. It may be determined whether the most probable mode (MPM) based intra luma prediction mode is applied (S445). The previous intra luma prediction flag may be represented by a prev_intra_luma_pred_flag syntax element. The decoding apparatus may configure the MPM list based on the prediction mode of the left neighboring block and the intra mode of the upper neighboring block. In this case, an additional intra mode may be determined according to a predetermined specific condition and further included in the MPM list.
상기 현재 블록에 MPM 리스트에 포함된 인트라 루마 예측 모드가 적용되는 것으로 판단된 경우, 디코딩 장치는 MPM 인덱스를 수신 및 파싱하여 상기 MPM 리스트로부터 상기 현재 블록에 대한 인트라 루마 예측 모드를 도출할 수 있다(S450). 한편, 상기 현재 블록에 대한 MPM에 포함된 인트라 루마 예측 모드가 적용되지 않는 것으로 판단된 경우, 디코딩 장치는 리메인(remain) 인트라 루마 예측 모드 정보를 기반으로 상기 현재 블록에 대한 인트라 루마 예측 모드를 도출할 수 있다(S455). 상기 현재 블록에 대한 인트라 루마 예측 모드를 도출한 이후에, 디코딩 장치는 인트라 크로마 예측 모드 정보를 기반으로 상기 현재 블록에 대한 인트라 크로마 예측 모드를 도출할 수 있다(S460).If it is determined that the intra luma prediction mode included in the MPM list is applied to the current block, the decoding apparatus may receive and parse an MPM index to derive an intra luma prediction mode for the current block from the MPM list ( S450). On the other hand, if it is determined that the intra luma prediction mode included in the MPM for the current block is not applied, the decoding apparatus determines an intra luma prediction mode for the current block based on the information of the main intra luma prediction mode. Can be derived (S455). After deriving the intra luma prediction mode for the current block, the decoding apparatus may derive the intra chroma prediction mode for the current block based on the intra chroma prediction mode information (S460).
한편, 현재 블록이 포함된 슬라이스 또는 시퀀스(sequence)에 따라서 인터 예측 머지 모드와 인트라 예측 모드 사이의 발생 비율이 다를 수 있다. 따라서 상술한 상기 현재 블록에 인터 예측 머지 모드가 수행되는 경우의 비트 발생량을 최소로 하는 방법을 임의의 조건을 기반으로 각 슬라이스에 적응적으로 적용할 수 있고, 이를 통하여 상기 방법의 효과를 최대로 향상시킬 수 있다. 예를 들어 아래와 같은 조건들에 따라 슬라이스 단위로 상술한 신텍스 요소들간의 파싱 순서를 변경하는 방법을 적용할 수 있고, 각 조건들의 조합에 따라 상술한 신텍스 요소들간의 파싱 순서를 변경하는 방법을 적용할 수도 있다.Meanwhile, the generation rate between the inter prediction merge mode and the intra prediction mode may vary according to a slice or a sequence including the current block. Accordingly, the above-described method of minimizing the amount of bits generated when the inter prediction merge mode is performed on the current block can be adaptively applied to each slice based on an arbitrary condition, thereby maximizing the effect of the method. Can be improved. For example, a method of changing the parsing order between the syntax elements in slice units according to the following conditions may be applied, and a method of changing the parsing order between the syntax elements according to each combination of conditions may be applied. You may.
일 예로, 디코딩 장치는 슬라이스 단위로 상기 예측 모드 플래그와 머지 플래그의 파싱 순서를 결정하는 플래그를 시그널링(signaling)할 수 있다. 상기 플래그는 제3 플래그라고 불릴 수 있다. 예를 들어, 상기 제3 플래그의 값이 0인 경우, 디코딩 장치는 상기 머지 플래그를 우선적으로 파싱할 수 있고, 상기 머지 플래그의 값을 기반으로 상기 예측 모드 플래그를 파싱할 수 있다. 또한, 상기 제3 플래그의 값이 1인 경우, 디코딩 장치는 상기 예측 모드 플래그를 파싱할 수 있고, 상기 예측 모드 플래그의 값이 인터 예측 모드를 나타내는 경우, 상기 머지 플래그를 파싱할 수 있다. 또는, 다른 예로, 상기 제3 플래그의 값이 1인 경우, 디코딩 장치는 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있고, 상기 머지 플래그의 값을 기반으로 상기 예측 모드 플래그를 파싱할 수 있다. 또한, 상기 제3 플래그의 값이 0인 경우, 디코딩 장치는 상기 예측 모드 플래그를 파싱할 수 있고, 상기 예측 모드 플래그의 값이 인터 예측 모드를 나타내는 경우, 상기 머지 플래그를 파싱할 수 있다.As an example, the decoding apparatus may signal a flag for determining a parsing order of the prediction mode flag and the merge flag on a slice basis. The flag may be called a third flag. For example, when the value of the third flag is 0, the decoding apparatus may first parse the merge flag and parse the prediction mode flag based on the value of the merge flag. In addition, when the value of the third flag is 1, the decoding apparatus may parse the prediction mode flag, and when the value of the prediction mode flag indicates the inter prediction mode, may parse the merge flag. Or, as another example, when the value of the third flag is 1, the decoding apparatus may parse the merge flag in preference to the prediction mode flag, and parse the prediction mode flag based on the value of the merge flag. Can be. In addition, when the value of the third flag is 0, the decoding apparatus may parse the prediction mode flag, and when the value of the prediction mode flag indicates the inter prediction mode, may parse the merge flag.
다른 예로, 디코딩 장치는 현재 블록이 포함된 슬라이스가 GBP(generalized bi-prediction, GBP) 슬라이스 해당 여부에 따라서 상기 예측 모드 플래그와 상기 머지 플래그의 파싱 순서를 결정할 수 있다. 여기서, GBP 슬라이스는 B 슬라이스(Bi-prediction slice)와 동일하게 L0 참조 픽처 리스트 및 L1 참조 픽처 리스트를 기반으로 슬라이스 내 각 블록 당 최대 2개의 움직임 정보를 가질 수 있다. 하지만, 상기 GBP 슬라이스에 대한 상기 L0 참조 픽처 리스트와 상기 L1 참조 픽처 리스트는 시간축 상에서 상기 GBP 슬라이스보다 과거에 위치하는 참조 픽처들만으로 구성될 수 있다. 디코딩 장치는 상기 현재 블록이 포함된 슬라이스가 상기 GBP 슬라이스인 경우, 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있고, 상기 현재 블록이 포함된 슬라이스가 상기 GBP 슬라이스가 아닌 경우, 상기 예측 모드 플래그를 상기 머지 플래그보다 우선적으로 파싱할 수 있다. 구체적으로, 상기 현재 블록이 포함된 슬라이스가 상기 GBP 슬라이스인 경우, 디코딩 장치는 상기 머지 플래그를 파싱할 수 있고, 상기 머지 플래그의 값을 기반으로 상기 예측 모드 플래그를 파싱할 수 있다. 또한, 상기 현재 블록이 포함된 슬라이스가 상기 GBP 슬라이스가 아닌 경우, 디코딩 장치는 상기 예측 모드 플래그를 파싱할 수 있고, 상기 예측 모드 플래그가 인터 예측 모드를 나타내는 경우, 디코딩 장치는 상기 머지 플래그를 파싱할 수 있다.As another example, the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to whether a slice including a current block corresponds to a generalized bi-prediction (GBP) slice. Here, the GBP slice may have up to two motion information for each block in the slice based on the L0 reference picture list and the L1 reference picture list, similarly to the B-prediction slice. However, the L0 reference picture list and the L1 reference picture list for the GBP slice may consist of only reference pictures located in the past than the GBP slice on the time axis. The decoding apparatus may parse the merge flag in preference to the prediction mode flag when the slice including the current block is the GBP slice, and when the slice including the current block is not the GBP slice, the prediction The mode flag may be parsed prior to the merge flag. In detail, when the slice including the current block is the GBP slice, the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the merge flag value. In addition, when the slice including the current block is not the GBP slice, the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, the decoding apparatus parses the merge flag. can do.
다른 예로, 디코딩 장치는 상기 현재 블록이 포함된 슬라이스의 시간적 레벨(Temporal level)에 따라서 상기 예측 모드 플래그와 상기 머지 플래그의 파싱 순서를 결정할 수 있다. 디코딩 장치는 상기 현재 블록이 포함된 슬라이스의 시간적 레벨이 특정값 이상인 경우, 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있고, 상기 현재 블록이 포함된 슬라이스의 시간적 레벨이 특정값보다 작은 경우, 상기 예측 모드 플래그를 상기 머지 플래그보다 우선적으로 파싱할 수 있다. 구체적으로, 상기 현재 블록이 포함된 슬라이스의 시간적 레벨이 특정값 이상인 경우, 디코딩 장치는 상기 머지 플래그를 파싱할 수 있고, 상기 머지 플래그의 값을 기반으로 상기 예측 모드 플래그를 파싱할 수 있다. 또한, 상기 현재 블록이 포함된 슬라이스의 시간적 레벨이 특정값보다 작은 경우, 디코딩 장치는 상기 예측 모드 플래그를 파싱할 수 있고, 상기 예측 모드 플래그가 인터 예측 모드를 나타내는 경우, 상기 머지 플래그를 파싱할 수 있다.As another example, the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to a temporal level of a slice including the current block. When the temporal level of the slice including the current block is greater than or equal to a specific value, the decoding apparatus may parse the merge flag preferentially over the prediction mode flag, and the temporal level of the slice including the current block is smaller than a specific value. In this case, the prediction mode flag may be parsed prior to the merge flag. In detail, when the temporal level of the slice including the current block is equal to or greater than a specific value, the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the value of the merge flag. In addition, when the temporal level of the slice including the current block is smaller than a specific value, the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, parse the merge flag. Can be.
다른 예로, 디코딩 장치는 상기 현재 블록이 포함된 슬라이스의 양자화 파라미터(Quantization Parameter, QP) 값에 따라서 상기 예측 모드 플래그와 상기 머지 플래그의 파싱 순서를 결정할 수 있다. 디코딩 장치는 상기 현재 블록이 포함된 슬라이스의 QP 값이 특정값 이상인 경우, 상기 머지 플래그를 상기 예측 모드 플래그보다 우선적으로 파싱할 수 있고, 상기 현재 블록이 포함된 슬라이스의 QP 값이 특정값보다 작은 경우, 상기 예측 모드 플래그를 상기 머지 플래그보다 우선적으로 파싱할 수 있다. 구체적으로, 상기 현재 블록이 포함된 슬라이스의 QP 값이 특정값 이상인 경우, 디코딩 장치는 상기 머지 플래그를 파싱할 수 있고, 상기 머지 플래그의 값을 기반으로 상기 예측 모드 플래그를 파싱할 수 있다. 또한, 상기 현재 블록이 포함된 슬라이스의 QP 값이 특정값보다 작은 경우, 디코딩 장치는 상기 예측 모드 플래그를 파싱할 수 있고, 상기 예측 모드 플래그가 인터 예측 모드를 나타내는 경우, 상기 머지 플래그를 파싱할 수 있다.As another example, the decoding apparatus may determine the parsing order of the prediction mode flag and the merge flag according to a quantization parameter (QP) value of the slice including the current block. When the QP value of the slice including the current block is greater than or equal to a specific value, the decoding device may parse the merge flag preferentially than the prediction mode flag, and the QP value of the slice including the current block is smaller than a specific value. In this case, the prediction mode flag may be parsed prior to the merge flag. In detail, when the QP value of the slice including the current block is equal to or greater than a specific value, the decoding apparatus may parse the merge flag and parse the prediction mode flag based on the merge flag value. Also, when the QP value of the slice including the current block is smaller than a specific value, the decoding apparatus may parse the prediction mode flag, and when the prediction mode flag indicates the inter prediction mode, parse the merge flag. Can be.
다른 예로, 상기 예측 모드 플래그와 머지 플래그의 파싱 순서를 결정하는 상기 제3 플래그는 슬라이스 단위뿐만 아니라 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위와 같은 상위 레벨을 통하여 시그널링될 수도 있다. 또한, 상기 제3 플래그가 슬라이스 단위로 시그널링되는지 여부를 나타내는 제4 플래그가 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위로 시그널링될 수 있다. 상기 제4 플래그의 값이 1인 경우, 상기 제3 플래그가 각 슬라이스에 대하여 적응적으로 시그널링될 수 있다. As another example, the third flag for determining the parsing order of the prediction mode flag and the merge flag may be not only a slice unit but also a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit It may be signaled via higher levels. In addition, a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled in a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit. When the value of the fourth flag is 1, the third flag may be adaptively signaled for each slice.
한편, 디코딩 장치는 상기 머지 플래그에 대한 컨텍스트 모델링(context modeling)을 변경하여 적용할 수 있다. 즉, 디코딩 장치는 상기 머지 플래그를 엔트로피 디코딩(entropy decoding)하기 위한 컨텍스트 모델링을 변경하여 적용할 수 있다. 상기 머지 플래그는 상기 머지 플래그에 대한 컨텍스트 인덱스를 기반으로 엔트로피 디코딩될 수 있다. 또한, 상기 머지 플래그는 상기 머지 플래그에 대한 컨텍스트 증가 파라미터를 기반으로 엔트로피 디코딩될 수 있다.Meanwhile, the decoding apparatus may change and apply context modeling for the merge flag. That is, the decoding apparatus may change and apply context modeling for entropy decoding the merge flag. The merge flag may be entropy decoded based on the context index for the merge flag. In addition, the merge flag may be entropy decoded based on a context increase parameter for the merge flag.
구체적으로, 상기 컨텍스트 인덱스는 컨텍스트 증가 파라미터와 컨텍스트 인덱스 오프셋을 더한 값으로 도출될 수 있다. 예를 들어, 상기 컨텍스트 인덱스는 다음과 같은 수학식을 이용하여 도출될 수 있다.In detail, the context index may be derived by adding a context increment parameter and a context index offset. For example, the context index may be derived using the following equation.
여기서, ctxIdx는 상기 컨텍스트 인덱스, ctxInc는 상기 컨텍스트 증가 파라미터, ctxIdxOffset은 상기 컨텍스트 인덱스 오프셋을 나타낸다. Here, ctxIdx represents the context index, ctxInc represents the context increase parameter, and ctxIdxOffset represents the context index offset.
상기 컨텍스트 증가 파라미터는 상기 현재 블록의 좌측 주변 블록의 신텍스(syntax) 요소 및 상기 현재 블록의 상측 주변 블록의 신텍스 요소를 기반으로 도출될 수 있다. 일 예로, 상기 컨텍스트 증가 파라미터는 상기 현재 블록의 상기 좌측 주변 블록의 머지 플래그 및 상기 현재 블록의 상기 상측 주변 블록의 머지 플래그를 기반으로 도출될 수 있다. 구체적으로, 상기 컨텍스트 증가 파라미터는 다음과 같은 표를 기반으로 도출될 수 있다.The context increase parameter may be derived based on a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block. For example, the context increase parameter may be derived based on a merge flag of the left neighboring block of the current block and a merge flag of the upper neighboring block of the current block. Specifically, the context increase parameter may be derived based on the following table.
여기서, condL은 상기 좌측 주변 블록의 조건 값, condA는 상기 상측 주변 블록의 조건 값, merge_flag[x0][y0]는 상기 현재 블록의 머지 플래그, merge_flag[xNbL][yNbL]는 상기 좌측 주변 블록의 머지 플래그, merge_flag[xNbA][yNbA]는 상기 상측 주변 블록의 머지 플래그, availableL는 상기 좌측 주변 블록의 가용 여부, availableA는 상기 상측 주변 블록의 가용 여부를 나타낸다. 조건이 만족된 경우 해당 조건 값은 1을 나타낼 수 있고, 조건이 만족되지 않은 경우 해당 조건 값은 0을 나타낼 수 있다. 가용 여부는 가용한 경우 1, 가용하지 않은 경우 0을 나타낼 수 있다. Here, condL is a condition value of the left neighboring block, condA is a condition value of the upper neighboring block, merge_flag [x0] [y0] is a merge flag of the current block, and merge_flag [xNbL] [yNbL] is of the left neighboring block. A merge flag, merge_flag [xNbA] [yNbA], is a merge flag of the upper neighboring block, availableL indicates whether the left neighboring block is available, and availableA indicates whether the upper neighboring block is available. If the condition is satisfied, the condition value may indicate 1, and if the condition is not satisfied, the condition value may indicate 0. Availability may indicate 1 if available and 0 if not available.
이 경우, 상기 좌측 주변 블록의 조건 값은 상기 좌측 주변 블록의 머지 플래그의 값과 동일할 수 있고, 상기 상측 주변 블록의 조건 값은 상기 상측 주변 블록의 머지 플래그의 값과 동일할 수 있다. 또한, 상기 컨텍스트 증가 파라미터의 값은 상기 좌측 주변 블록의 머지 플래그, 상기 상측 주변 블록의 머지 플래그, 상기 좌측 주변 블록의 가용 여부 및 상기 상측 주변 블록의 가용 여부를 기반으로 도출될 수 있고, 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나의 값으로 도출될 수 있다. 디코딩 장치는 상기 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록의 머지 플래그를 엔트로피 디코딩할 수 있다.In this case, the condition value of the left neighboring block may be the same as the value of the merge flag of the left neighboring block, and the condition value of the upper neighboring block may be the same as the value of the merge flag of the upper neighboring block. The context increase parameter may be derived based on a merge flag of the left neighboring block, a merge flag of the upper neighboring block, whether the left neighboring block is available, and whether the upper neighboring block is available. The value of the increment parameter can be derived as one of zero, one and two. The decoding apparatus may entropy decode a merge flag of the current block based on the context increase parameter.
구체적으로, 예를 들어, 상기 좌측 주변 블록의 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 2일 수 있다. Specifically, for example, when the merge flag value of the left neighboring block is 1 and the left neighboring block is available, the merge flag value of the upper neighboring block is 1 and the upper neighboring block is available, the context The value of the increment parameter may be two.
또한, 상기 좌측 주변 블록의 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하지 않고, 상기 상측 주변 블록의 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is not available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is available, the value of the context increase parameter May be 1.
또한, 상기 좌측 주변 블록의 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용하지 않은 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the merge flag value of the left neighboring block is 1 and the left neighboring block is available, and the merge flag value of the upper neighboring block is 1 and the upper neighboring block is not available, the value of the context increase parameter May be 1.
또한, 상기 좌측 주변 블록의 머지 플래그의 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the merge flag value of the left neighboring block is 0 and the left neighboring block is available, and the merge flag value of the upper neighboring block is 1 and the upper neighboring block is available, the value of the context increase parameter is May be one.
또한, 상기 좌측 주변 블록의 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 머지 플래그의 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the merge flag value of the left neighbor block is 1, the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, the value of the context increase parameter is May be one.
또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 머지 플래그 및 상기 상측 주변 블록의 머지 플래그의 값이 모두 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.Further, when neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block and the merge flag of the upper neighboring block are both 0, the value of the context increase parameter may be 0. have.
다른 예로, 상기 컨텍스트 증가 파라미터는 상기 좌측 주변 블록의 머지 플래그 및 스킵 플래그, 상기 상측 주변 블록의 머지 플래그 및 스킵 플래그를 기반으로 도출될 수 있다. 구체적으로, 상기 컨텍스트 증가 파라미터는 다음과 같은 표를 기반으로 도출될 수 있다.As another example, the context increase parameter may be derived based on a merge flag and a skip flag of the left neighboring block, a merge flag and a skip flag of the upper neighboring block. Specifically, the context increase parameter may be derived based on the following table.
여기서, cu_skip_flag[xNbL][yNbL]는 상기 좌측 주변 블록의 스킵 플래그, cu_skip_flag[xNbA][yNbA]는 상기 상측 주변 블록의 스킵 플래그를 나타낸다. 상기 컨텍스트 증가 파라미터의 값은 상기 좌측 주변 블록의 머지 플래그, 상기 좌측 주변 블록의 스킵 플래그, 상기 상측 주변 블록의 머지 플래그, 상기 상측 주변 블록의 스킵 플래그, 상기 좌측 주변 블록의 가용 여부 및 상기 상측 주변 블록의 가용 여부를 기반으로 도출될 수 있고, 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나의 값으로 도출될 수 있다. 디코딩 장치는 상기 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록의 머지 플래그를 엔트로피 디코딩할 수 있다.Here, cu_skip_flag [xNbL] [yNbL] represents a skip flag of the left neighboring block, and cu_skip_flag [xNbA] [yNbA] represents a skip flag of the upper neighboring block. The context increase parameter may include a merge flag of the left neighboring block, a skip flag of the left neighboring block, a merge flag of the upper neighboring block, a skip flag of the upper neighboring block, availability of the left neighboring block, and the upper neighbor. The block may be derived based on the availability of the block, and the value of the context increase parameter may be derived as one of 0, 1, and 2. FIG. The decoding apparatus may entropy decode a merge flag of the current block based on the context increase parameter.
구체적으로, 예를 들어, 상기 좌측 주변 블록의 머지 플래그 및 상기 좌측 주변 블록의 스킵 플래그의 값이 모두 1인 경우, 상기 좌측 주변 블록의 조건 값은 1로 도출될 수 있다. Specifically, for example, when the merge flag of the left neighboring block and the skip flag of the left neighboring block are all 1, the condition value of the left neighboring block may be derived as 1.
또한, 상기 상측 주변 블록의 머지 플래그 및 상기 상측 주변 블록의 스킵 플래그의 값이 모두 1인 경우, 상기 상측 주변 블록의 조건 값은 1로 도출될 수 있다. 상기 좌측 주변 블록의 조건 값 및 상기 상측 주변 블록의 조건 값을 도출한 이후에, 상기 좌측 주변 블록의 조건 값 및 상기 좌측 주변 블록의 가용 여부, 상기 상측 주변 블록의 조건 값 및 상기 상측 주변 블록의 가용 여부를 기반으로 상기 컨텍스트 증가 파라미터의 값을 도출할 수 있다.In addition, when the merge flag of the upper neighboring block and the skip flag of the upper neighboring block are both 1, the condition value of the upper neighboring block may be derived as 1. After deriving the condition value of the left neighboring block and the condition value of the upper neighboring block, the condition value of the left neighboring block and the availability of the left neighboring block, the condition value of the upper neighboring block and the upper neighboring block The value of the context increase parameter may be derived based on availability.
예를 들어, 상기 좌측 주변 블록의 조건 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 조건 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 2일 수 있다. For example, when the condition value of the left neighboring block is 1, the left neighboring block is available, the condition value of the upper neighboring block is 1, and the upper neighboring block is available, the value of the context increase parameter is 2 days. Can be.
또한, 상기 좌측 주변 블록의 조건 값이 1이고 상기 좌측 주변 블록이 가용하지 않고, 상기 상측 주변 블록의 조건 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the condition value of the left neighboring block is 1 and the left neighboring block is not available, and the condition value of the upper neighboring block is 1 and the upper neighboring block is available, the value of the context increase parameter may be 1. have.
또한, 상기 좌측 주변 블록의 조건 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 조건 값이 1이고 상기 상측 주변 블록이 가용하지 않은 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the condition value of the left neighboring block is 1 and the left neighboring block is available, and the condition value of the upper neighboring block is 1 and the upper neighboring block is not available, the value of the context increase parameter may be 1. have.
또한, 상기 좌측 주변 블록의 조건 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 조건 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. In addition, when the condition value of the left neighboring block is 0, the left neighboring block is available, the condition value of the upper neighboring block is 1, and the upper neighboring block is available, the value of the context increase parameter may be 1. .
또한, 상기 좌측 주변 블록의 조건 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 조건 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. In addition, when the condition value of the left neighboring block is 1, the left neighboring block is available, the condition value of the upper neighboring block is 0, and the upper neighboring block is available, the value of the context increase parameter may be 1. .
또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 조건 값 및 상기 상측 주변 블록의 조건 값이 모두 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.In addition, when neither the left neighboring block nor the upper neighboring block is available, or the condition value of the left neighboring block and the condition value of the upper neighboring block are both zero, the value of the context increase parameter may be zero.
한편, 상기 컨텍스트 증가 파라미터는 상기 현재 블록이 포함된 슬라이스의 슬라이스 타입, 슬라이스 단위로 전송되는 예측 모드 플래그 및 머지 플래그의 파싱 순서를 결정하는 플래그, 상기 현재 블록이 포함된 슬라이스의 GBP 슬라이스 해당 여부, 상기 현재 블록에 대한 시간적(temporal) 레벨 값, 또는 상기 현재 블록이 포함된 슬라이스의 QP 값을 기반으로 도출될 수 있다. 또한, 상기 컨텍스트 증가 파라미터는 상술한 조건들의 조합을 통하여 도출될 수도 있다.The context increasing parameter may include a slice type of a slice including the current block, a prediction mode flag transmitted in a slice unit, a flag for determining a parsing order of a merge flag, a GBP slice corresponding to a slice including the current block, It may be derived based on a temporal level value for the current block or a QP value of a slice including the current block. In addition, the context increase parameter may be derived through a combination of the above-described conditions.
도 5는 본 발명에 따른 인코딩 장치에 의한 비디오 인코딩 방법을 개략적으로 나타낸다. 도 5에서 개시된 방법은 도 1에서 개시된 인코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, 도 5의 S500 내지 S510은 상기 인코딩 장치의 예측부에 의하여 수행될 수 있고, S520 내지 S530은 상기 인코딩 장치의 엔트로피 인코딩부에 의하여 수행될 수 있다.5 schematically illustrates a video encoding method by an encoding device according to the present invention. The method disclosed in FIG. 5 may be performed by the encoding apparatus disclosed in FIG. 1. Specifically, for example, S500 to S510 of FIG. 5 may be performed by the prediction unit of the encoding apparatus, and S520 to S530 may be performed by the entropy encoding unit of the encoding apparatus.
인코딩 장치는 현재 블록에 대한 예측 모드를 결정한다(S500). 인코딩 장치는 다양한 예측 모드들을 기반으로 예측을 수행할 수 있으며, 상기 예측 모드들 중 예측 정확도가 가장 높은 예측 모드를 상기 현재 블록에 수행되는 예측 모드로 결정할 수 있다. 구체적으로, 인코딩 장치는 인트라 예측 모드, 인터 예측 스킵 모드, 인터 예측 머지 모드 및 인터 예측 AMVP 모드 중 하나의 예측 모드를 상기 현재 블록에 대한 상기 예측 모드로 결정할 수 있다.The encoding apparatus determines a prediction mode for the current block (S500). The encoding apparatus may perform prediction based on various prediction modes, and may determine a prediction mode having the highest prediction accuracy among the prediction modes as the prediction mode performed on the current block. In detail, the encoding apparatus may determine a prediction mode of one of an intra prediction mode, an inter prediction skip mode, an inter prediction merge mode, and an inter prediction AMVP mode as the prediction mode for the current block.
인코딩 장치는 상기 현재 블록에 대한 상기 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성한다(S510). 인코딩 장치는 인트라 예측 모드, 인터 예측 스킵 모드, 인터 예측 머지 모드 또는 인터 예측 AMVP 모드를 통하여 상기 현재 블록의 예측 샘플을 생성할 수 있다. 또한, 인코딩 장치는 상기 예측 샘플을 기반으로 상기 현재 블록에 대한 복원 샘플을 생성할 수 있다. The encoding apparatus generates a prediction sample of the current block based on the prediction mode for the current block (S510). The encoding apparatus may generate a prediction sample of the current block through an intra prediction mode, an inter prediction skip mode, an inter prediction merge mode, or an inter prediction AMVP mode. In addition, the encoding apparatus may generate a reconstruction sample for the current block based on the prediction sample.
인코딩 장치는 현재 블록에 대한 예측 모드를 나타내는 플래그 정보를 생성한다(S520). 상기 플래그 정보는 상기 현재 블록에 대한 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 포함할 수 있다. 상기 제1 플래그는 머지 플래그라고 불릴 수 있다. 또한, 상기 플래그 정보는 상기 현재 블록에 수행되는 예측 모드가 인트라 예측 모드인지 또는 인터 예측 모드인지 여부를 나타내는 제2 플래그를 포함할 수 있다. 상기 제2 플래그는 예측 모드 플래그라고 불릴 수 있다. The encoding apparatus generates flag information indicating a prediction mode for the current block (S520). The flag information may include a first flag indicating whether a prediction mode for the current block is an inter merge prediction mode. The first flag may be called a merge flag. In addition, the flag information may include a second flag indicating whether a prediction mode performed on the current block is an intra prediction mode or an inter prediction mode. The second flag may be called a prediction mode flag.
한편, 상기 제1 플래그는 상기 제2 플래그보다 먼저 파싱(parsing)되는 플래그일 수 있다. 또한, 상기 제1 플래그는 상기 현재 블록이 임의의 조건을 만족하는 경우에 상기 제2 플래그보다 먼저 파싱되는 플래그일 수 있다. 예를 들어, 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그는 후술하는 조건, 또는 조건들의 조합을 기반으로 결정될 수 있다. Meanwhile, the first flag may be a flag parsed before the second flag. The first flag may be a flag which is parsed before the second flag when the current block satisfies an arbitrary condition. For example, a flag parsed first of the first flag and the second flag may be determined based on a condition described below, or a combination of conditions.
일 예로, 인코딩 장치는 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 가리키는 플래그를 생성할 수 있다. 상기 먼저 파싱되는 플래그를 가리키는 플래그는 제3 플래그라고 불릴 수 있다. 상기 제3 플래그는 상기 플래그 정보에 포함될 수 있다. 구체적으로, 상기 제3 플래그의 값을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그가 결정될 수 있다. 예를 들어 상기 제3 플래그의 값이 1인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 제3 플래그의 값이 0인 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다. 상기 제3 플래그는 슬라이스 헤더(slice header)를 통하여 슬라이스 단위로 시그널링(signaling)될 수 있다. 또한, 상기 제3 플래그는 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위와 같은 상위 레벨을 통하여 시그널링될 수도 있다. As an example, the encoding apparatus may generate a flag indicating a flag parsed first of the first flag and the second flag. The flag indicating the first parsed flag may be called a third flag. The third flag may be included in the flag information. In detail, a flag that is first parsed among the first flag and the second flag may be determined based on the value of the third flag. For example, when the value of the third flag is 1, the first parsed flag may be determined as the first flag, and when the value of the third flag is 0, the first parsed flag may be the second flag. Can be determined. The third flag may be signaled in units of slices through a slice header. In addition, the third flag may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
또는, 상기 제3 플래그의 슬라이스 단위로의 시그널링 여부를 나타내는 제4 플래그가 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위와 같은 상위 레벨을 통하여 시그널링될 수 있고, 상기 제4 플래그의 값이 1인 경우, 상기 제3 플래그가 슬라이스 헤더(slice header)를 통하여 슬라이스 단위로 시그널링(signaling)될 수 있다. Alternatively, a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit. When the value of the fourth flag is 1, the third flag may be signaled in units of slices through a slice header.
다른 예로, 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 슬라이스 타입(또는 픽처 타입)을 기반으로 결정될 수 있다. 구체적으로, 예를 들어, 상기 현재 슬라이스가 GBP(Generalized Bi-Prediction) 슬라이스(또는 GBP 픽처)인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스가 GBP 슬라이스가 아닌 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, the first parsed flag among the first flag and the second flag may be determined based on a slice type (or picture type) of the current slice (or current picture) including the current block. Specifically, for example, when the current slice is a Generalized Bi-Prediction (GBP) slice (or GBP picture), the first parsed flag may be determined as the first flag, and the current slice is not a GBP slice. In this case, the first parsed flag may be determined as the second flag.
다른 예로, 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 시간적 레벨(Temporal level)를 기반으로 결정될 수 있다. 구체적으로 예를 들어, 상기 현재 슬라이스의 시간적 레벨이 특정값 이상인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스의 시간적 레벨이 특정값보다 작은 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, the first parsed flag among the first flag and the second flag may be determined based on a temporal level of the current slice (or current picture) including the current block. Specifically, for example, when the temporal level of the current slice is equal to or greater than a specific value, the first parsed flag may be determined as the first flag, and when the temporal level of the current slice is smaller than a specific value, the first parsed A flag may be determined as the second flag.
다른 예로, 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 양자화 파라미터(Quantization Parameter, QP)를 기반으로 결정될 수 있다. 구체적으로 예를 들어, 상기 현재 슬라이스의 QP가 특정값 이상인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스의 QP가 특정값보다 작은 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, a flag parsed first among the first flag and the second flag may be determined based on a quantization parameter (QP) of a current slice (or current picture) including the current block. Specifically, for example, when the QP of the current slice is greater than or equal to a specific value, the first parsed flag may be determined as the first flag, and when the QP of the current slice is smaller than a specific value, the first parsed flag may be The second flag may be determined.
한편, 인코딩 장치는 상기 제1 플래그에 대한 컨텍스트 모델링(context modeling)을 변경하여 적용할 수 있다. 다시 말해, 인코딩 장치는 상기 제1 플래그를 엔트로피 인코딩하기 위한 컨텍스트 인덱스 또는 컨텍스트 증가 파라미터를 도출하는 방법을 변경하여 적용할 수 있다. 여기서 상기 컨텍스트 인덱스는 상기 현재 블록에 적용되는 컨텍스트를 지시하는 인덱스를 나타낼 수 있고, 상기 컨텍스트 인덱스는 컨텍스트 증가 파라미터와 컨텍스트 인덱스 오프셋을 더한 값으로 도출될 수 있다. 또한, 상기 컨텍스트 인덱스는 상술한 수학식 1을 통하여 계산될 수 있다. 인코딩 장치는 도출된 컨텍스트 인덱스 또는 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록에 대한 상기 제1 플래그를 엔트로피 인코딩할 수 있다.Meanwhile, the encoding apparatus may change and apply context modeling for the first flag. In other words, the encoding apparatus may change and apply a method of deriving a context index or a context increment parameter for entropy encoding the first flag. Here, the context index may indicate an index indicating a context applied to the current block, and the context index may be derived as a value obtained by adding a context increase parameter and a context index offset. In addition, the context index may be calculated through Equation 1 described above. The encoding apparatus may entropy encode the first flag for the current block based on the derived context index or context increment parameter.
상기 제1 플래그에 대한 상기 컨텍스트 증가 파라미터를 도출하는 일 예로, 상기 컨텍스트 증가 파라미터는 상기 현재 블록의 좌측 주변 블록의 신텍스(syntax) 요소 및 상기 현재 블록의 상측 주변 블록의 신텍스 요소를 기반으로 도출될 수 있다. 상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 머지 플래그를 포함할 수 있고, 상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 머지 플래그를 포함할 수 있다. 또한, 상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 스킵 플래그를 더 포함할 수 있고, 상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 스킵 플래그를 더 포함할 수 있다.As an example of deriving the context increasing parameter for the first flag, the context increasing parameter may be derived based on a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block. Can be. The syntax element of the left neighboring block may include a merge flag of the left neighboring block, and the syntax element of the upper neighboring block may include a merge flag of the upper neighboring block. The syntax element of the left neighboring block may further include a skip flag of the left neighboring block, and the syntax element of the upper neighboring block may further include a skip flag of the upper neighboring block.
구체적으로, 상기 컨텍스트 증가 파라미터는 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 머지 플래그를 기반으로 도출될 수 있다. 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나로 도출될 수 있다. 상기 컨텍스트 증가 파라미터는 상술한 표 1을 통하여 도출될 수 있다.In detail, the context increase parameter may be derived based on the merge flag of the left neighboring block and the merge flag of the upper neighboring block. The value of the context increase parameter may be derived from one of 0, 1, and 2. The context increase parameter may be derived through Table 1 described above.
구체적으로, 예를 들어, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용하고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하지 않고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용하지 않은 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. 또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 머지 플래그의 값이 모두 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.Specifically, for example, when the left neighboring block and the upper neighboring block are available, and the value of the merge flag of the left neighboring block and the merge flag of the upper neighboring block is 1, the value of the context increase parameter Can be derived as 2. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is not available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is available, the context increase parameter. The value of can be derived as 1. The context increasing parameter when the merge flag value of the left neighbor block is 1 and the left neighbor block is available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is not available. The value of can be derived as 1. Further, when the value of the merge flag of the left neighboring block is 0 and the left neighboring block is available, the value of the merge flag of the upper neighboring block is 1 and the upper neighboring block is available, The value can be derived as one. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, The value can be one. Further, when neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block and the merge flag of the upper neighboring block are both 0, the value of the context increase parameter is 0. Can be.
다른 예로, 상기 컨텍스트 증가 파라미터는 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그를 기반으로 도출될 수 있다. 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나로 도출될 수 있다. 상기 컨텍스트 증가 파라미터는 상술한 표 2를 통하여 도출될 수 있다.As another example, the context increase parameter may be derived based on the merge flag and the skip flag of the left neighboring block, the merge flag and the skip flag of the upper neighboring block. The value of the context increase parameter may be derived from one of 0, 1, and 2. The context increase parameter may be derived through Table 2 described above.
구체적으로, 예를 들어, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용하고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출될 수 있다. 또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록 중 하나의 블록이 가용하지 않고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그 중 하나의 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그 중 하나의 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.Specifically, for example, the left peripheral block and the upper peripheral block are available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block, and the upper peripheral block are available. When the skip flag value of the block is 1, the value of the context increase parameter may be derived as 2. Further, one of the left peripheral block and the upper peripheral block is not available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block and the upper peripheral block are not available. When the skip flag value of the block is 1, the value of the context increase parameter may be derived as 1. In addition, one of the merge flag and the skip flag of the left peripheral block is 0 and the left peripheral block is available, and the value of the merge flag and the skip flag of the upper peripheral block is 1 and the upper peripheral block. If this is available, the value of the context increase parameter may be derived as one. Further, the merge flag and the skip flag of the left neighbor block have a value of 1 and the left neighbor block is available, and one of the merge flag and the skip flag of the upper neighbor block has a value of 0 and the upper neighbor block. If this is available, the value of the context increase parameter may be derived as one. Further, neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block, the skip flag of the left neighboring block, the merge flag of the upper neighboring block, and the upper neighboring block. When the value of the skip flag is 0, the value of the context increase parameter may be 0.
한편, 상기 컨텍스트 증가 파라미터는 상기 현재 블록이 포함된 슬라이스의 슬라이스 타입, 상기 제3 플래그, 상기 현재 블록이 포함된 슬라이스의 GBP 슬라이스 해당 여부, 상기 현재 블록에 대한 시간적 레벨 값, 또는 상기 현재 블록이 포함된 슬라이스의 QP 값 등을 기반으로 도출될 수 있다. 또한, 상기 컨텍스트 증가 파라미터는 상술한 조건들의 조합을 통하여 도출될 수도 있다.The context increasing parameter may be a slice type of a slice including the current block, the third flag, a GBP slice corresponding to a slice including the current block, a temporal level value for the current block, or the current block. It may be derived based on the QP value of the included slice. In addition, the context increase parameter may be derived through a combination of the above-described conditions.
인코딩 장치는 상기 플래그 정보를 인코딩하여 출력한다(S530). 인코딩 장치는 상기 플래그 정보를 엔트로피 인코딩하고 비트스트림 형태로 출력할 수 있다. 상기 비트스트림은 네트워크 또는 저장 매체를 통하여 디코딩 장치로 전송될 수 있다.The encoding apparatus encodes and outputs the flag information (S530). The encoding device may entropy encode the flag information and output the bit information in the form of a bitstream. The bitstream may be transmitted to a decoding apparatus via a network or a storage medium.
비록 도시되지는 않았으나 인코딩 장치는 상기 현재 블록에 대한 레지듀얼 샘플에 관한 정보를 인코딩하여 출력할 수도 있다. 상기 레지듀얼 샘플에 관한 정보는 상기 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다.Although not shown, the encoding apparatus may encode and output information about the residual sample for the current block. The information about the residual sample may include transform coefficients regarding the residual sample.
도 6은 본 발명에 따른 디코딩 장치에 의한 비디오 디코딩 방법을 개략적으로 나타낸다. 도 6에서 개시된 방법은 도 2에서 개시된 디코딩 장치에 의하여 수행될 수 있다. 구체적으로 예를 들어, S600 내지 S610은 상기 디코딩 장치의 엔트로피 디코딩부에 의하여 수행될 수 있고, S620 내지 S630은 상기 디코딩 장치의 예측부에 의하여 수행될 수 있다.6 schematically illustrates a video decoding method by a decoding apparatus according to the present invention. The method disclosed in FIG. 6 may be performed by the decoding apparatus disclosed in FIG. 2. Specifically, for example, S600 to S610 may be performed by the entropy decoding unit of the decoding apparatus, and S620 to S630 may be performed by the prediction unit of the decoding apparatus.
디코딩 장치는 현재 블록에 수행되는 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 파싱(parsing)한다(S600). 디코딩 장치는 비트스트림을 통하여 상기 현재 블록에 수행되는 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 파싱할 수 있다. 상기 제1 플래그는 머지 플래그라고 불릴 수 있다. The decoding apparatus parses a first flag indicating whether the prediction mode performed on the current block is an inter merge prediction mode (S600). The decoding apparatus may parse a first flag indicating whether a prediction mode performed on the current block is an inter merge prediction mode through a bitstream. The first flag may be called a merge flag.
한편, 디코딩 장치는 임의의 조건에 따라서 상기 현재 블록에 대한 상기 제1 플래그 및 상기 현재 블록에 대한 예측 모드 플래그 중 먼저 파싱(parsing)되는 플래그를 결정할 수 있다. 상기 예측 모드 플래그는 상기 현재 블록에 수행되는 예측 모드가 인트라 예측 모드인지 또는 인터 예측 모드인지 여부를 나타내는 플래그일 수 있고, 상기 예측 모드 플래그는 제2 플래그라고 불릴 수 있다. 구체적으로, 예를 들어, 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그는 후술하는 조건, 또는 조건들의 조합을 기반으로 결정될 수 있다. Meanwhile, the decoding apparatus may determine a flag that is first parsed among the first flag for the current block and the prediction mode flag for the current block according to an arbitrary condition. The prediction mode flag may be a flag indicating whether a prediction mode performed on the current block is an intra prediction mode or an inter prediction mode, and the prediction mode flag may be called a second flag. Specifically, for example, a flag parsed first of the first flag and the second flag may be determined based on a condition described below, or a combination of conditions.
일 예로, 디코딩 장치는 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 가리키는 플래그를 파싱할 수 있다. 상기 먼저 파싱되는 플래그를 가리키는 플래그는 제3 플래그라고 불릴 수 있다. 구체적으로, 디코딩 장치는 상기 현재 블록에 대한 제3 플래그를 파싱할 수 있고, 상기 제3 플래그의 값을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정할 수 있다. 예를 들어 상기 제3 플래그의 값이 1인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 제3 플래그의 값이 0인 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.For example, the decoding apparatus may parse a flag indicating a flag that is first parsed among the first flag and the second flag. The flag indicating the first parsed flag may be called a third flag. In detail, the decoding apparatus may parse a third flag for the current block, and determine a flag that is first parsed among the first flag and the second flag based on the value of the third flag. For example, when the value of the third flag is 1, the first parsed flag may be determined as the first flag, and when the value of the third flag is 0, the first parsed flag may be the second flag. Can be determined.
한편, 상기 제3 플래그는 슬라이스 헤더(slice header)를 통하여 슬라이스 단위로 시그널링(signaling)될 수 있다. 또한, 상기 제3 플래그는 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위와 같은 상위 레벨을 통하여 시그널링될 수도 있다. Meanwhile, the third flag may be signaled in units of slices through a slice header. In addition, the third flag may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit.
또는, 상기 제3 플래그의 슬라이스 단위로의 시그널링 여부를 나타내는 제4 플래그가 PPS(picture parameter set) 단위, SPS(sequence parameter set) 단위 또는 VPS(video parameter set) 단위와 같은 상위 레벨을 통하여 시그널링될 수 있고, 상기 제4 플래그의 값이 1인 경우, 상기 제3 플래그가 슬라이스 헤더(slice header)를 통하여 슬라이스 단위로 시그널링(signaling)될 수 있다. Alternatively, a fourth flag indicating whether the third flag is signaled in a slice unit may be signaled through a higher level such as a picture parameter set (PPS) unit, a sequence parameter set (SPS) unit, or a video parameter set (VPS) unit. When the value of the fourth flag is 1, the third flag may be signaled in units of slices through a slice header.
다른 예로, 디코딩 장치는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 슬라이스 타입(또는 픽처 타입)을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정할 수 있다. 구체적으로, 예를 들어, 상기 현재 슬라이스가 GBP(Generalized Bi-Prediction) 슬라이스(또는 GBP 픽처)인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스가 GBP 슬라이스가 아닌 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on the slice type (or picture type) of the current slice (or current picture) including the current block. Specifically, for example, when the current slice is a Generalized Bi-Prediction (GBP) slice (or GBP picture), the first parsed flag may be determined as the first flag, and the current slice is not a GBP slice. In this case, the first parsed flag may be determined as the second flag.
다른 예로, 디코딩 장치는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 시간적 레벨(Temporal level)를 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정할 수 있다. 구체적으로 예를 들어, 상기 현재 슬라이스의 시간적 레벨이 특정값 이상인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스의 시간적 레벨이 특정값보다 작은 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on a temporal level of the current slice (or current picture) including the current block. Specifically, for example, when the temporal level of the current slice is equal to or greater than a specific value, the first parsed flag may be determined as the first flag, and when the temporal level of the current slice is smaller than a specific value, the first parsed A flag may be determined as the second flag.
다른 예로, 디코딩 장치는 상기 현재 블록이 포함된 현재 슬라이스(또는 현재 픽처)의 양자화 파라미터(Quantization Parameter, QP)를 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정할 수 있다. 구체적으로 예를 들어, 상기 현재 슬라이스의 QP가 특정값 이상인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정될 수 있고, 상기 현재 슬라이스의 QP가 특정값보다 작은 경우, 상기 먼저 파싱되는 플래그는 상기 제2 플래그로 결정될 수 있다.As another example, the decoding apparatus may determine a flag that is first parsed among the first flag and the second flag based on a quantization parameter (QP) of the current slice (or current picture) including the current block. Specifically, for example, when the QP of the current slice is greater than or equal to a specific value, the first parsed flag may be determined as the first flag, and when the QP of the current slice is smaller than a specific value, the first parsed flag may be The second flag may be determined.
한편, 디코딩 장치는 상기 제1 플래그에 대한 컨텍스트 모델링(context modeling)을 변경하여 적용할 수 있다. 다시 말해, 디코딩 장치는 상기 제1 플래그를 엔트로피 디코딩하기 위한 컨텍스트 인덱스 또는 컨텍스트 증가 파라미터를 도출하는 방법을 변경하여 적용할 수 있다. 여기서 상기 컨텍스트 인덱스는 상기 현재 블록에 적용되는 컨텍스트를 지시하는 인덱스를 나타낼 수 있고, 상기 컨텍스트 인덱스는 컨텍스트 증가 파라미터와 컨텍스트 인덱스 오프셋을 더한 값으로 도출될 수 있다. 또한, 상기 컨텍스트 인덱스는 상술한 수학식 1을 통하여 계산될 수 있다. 디코딩 장치는 도출된 컨텍스트 인덱스 또는 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록에 대한 상기 제1 플래그를 엔트로피 디코딩할 수 있다.Meanwhile, the decoding apparatus may change and apply context modeling for the first flag. In other words, the decoding apparatus may change and apply a method of deriving a context index or a context increment parameter for entropy decoding the first flag. Here, the context index may indicate an index indicating a context applied to the current block, and the context index may be derived as a value obtained by adding a context increase parameter and a context index offset. In addition, the context index may be calculated through Equation 1 described above. The decoding apparatus may entropy decode the first flag for the current block based on the derived context index or context increment parameter.
상기 제1 플래그를 기반으로 상기 컨텍스트 증가 파라미터를 도출하는 일 예로, 디코딩 장치는 상기 현재 블록의 좌측 주변 블록의 신텍스(syntax) 요소 및 상기 현재 블록의 상측 주변 블록의 신텍스 요소를 기반으로 상기 현재 블록에 대한 컨텍스트 증가 파라미터를 도출할 수 있고, 상기 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록에 대한 컨텍스트 인덱스를 도출할 수 있다. 상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 머지 플래그를 포함할 수 있고, 상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 머지 플래그를 포함할 수 있다. 또한, 상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 스킵 플래그를 더 포함할 수 있고, 상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 스킵 플래그를 더 포함할 수 있다.As an example of deriving the context increase parameter based on the first flag, the decoding apparatus may be configured to perform a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block. The context increment parameter for the context may be derived, and the context index for the current block may be derived based on the context increment parameter. The syntax element of the left neighboring block may include a merge flag of the left neighboring block, and the syntax element of the upper neighboring block may include a merge flag of the upper neighboring block. The syntax element of the left neighboring block may further include a skip flag of the left neighboring block, and the syntax element of the upper neighboring block may further include a skip flag of the upper neighboring block.
구체적으로, 상기 컨텍스트 증가 파라미터는 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 머지 플래그를 기반으로 도출될 수 있다. 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나로 도출될 수 있다. 상기 컨텍스트 증가 파라미터는 상술한 표 1을 통하여 도출될 수 있다. 디코딩 장치는 상기 컨텍스트 증가 파라미터를 기반으로 상기 현재 블록에 대한 상기 제1 플래그를 엔트로피 디코딩할 수 있다.In detail, the context increase parameter may be derived based on the merge flag of the left neighboring block and the merge flag of the upper neighboring block. The value of the context increase parameter may be derived from one of 0, 1, and 2. The context increase parameter may be derived through Table 1 described above. The decoding apparatus may entropy decode the first flag for the current block based on the context increase parameter.
구체적으로, 예를 들어, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용하고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출될 수 있다. Specifically, for example, when the left neighboring block and the upper neighboring block are available, and the value of the merge flag of the left neighboring block and the merge flag of the upper neighboring block is 1, the value of the context increase parameter Can be derived as 2.
또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하지 않고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용하지 않은 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그의 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1일 수 있다. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is not available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is available, the context increase parameter. The value of can be derived as 1. The context increasing parameter when the merge flag value of the left neighbor block is 1 and the left neighbor block is available, and the merge flag value of the upper neighbor block is 1 and the upper neighbor block is not available. The value of can be derived as 1. Further, when the value of the merge flag of the left neighboring block is 0 and the left neighboring block is available, the value of the merge flag of the upper neighboring block is 1 and the upper neighboring block is available, The value can be derived as one. Further, when the merge flag value of the left neighbor block is 1 and the left neighbor block is available, the merge flag value of the upper neighbor block is 0, and the upper neighbor block is available, The value can be one.
또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 머지 플래그의 값이 모두 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.Further, when neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block and the merge flag of the upper neighboring block are both 0, the value of the context increase parameter is 0. Can be.
다른 예로, 상기 컨텍스트 증가 파라미터는 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그를 기반으로 도출될 수 있다. 상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나로 도출될 수 있다. 상기 컨텍스트 증가 파라미터는 상술한 표 2를 통하여 도출될 수 있다.As another example, the context increase parameter may be derived based on the merge flag and the skip flag of the left neighboring block, the merge flag and the skip flag of the upper neighboring block. The value of the context increase parameter may be derived from one of 0, 1, and 2. The context increase parameter may be derived through Table 2 described above.
구체적으로, 예를 들어, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용하고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출될 수 있다. Specifically, for example, the left peripheral block and the upper peripheral block are available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block, and the upper peripheral block are available. When the skip flag value of the block is 1, the value of the context increase parameter may be derived as 2.
또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록 중 하나의 블록이 가용하지 않고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그 중 하나의 값이 0이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그의 값이 1이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. 또한, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그의 값이 1이고 상기 좌측 주변 블록이 가용하고, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 스킵 플래그 중 하나의 값이 0이고 상기 상측 주변 블록이 가용한 경우, 상기 컨텍스트 증가 파라미터의 값은 1로 도출될 수 있다. Further, one of the left peripheral block and the upper peripheral block is not available, and the merge flag of the left peripheral block, the skip flag of the left peripheral block, the merge flag of the upper peripheral block and the upper peripheral block are not available. When the skip flag value of the block is 1, the value of the context increase parameter may be derived as 1. In addition, one of the merge flag and the skip flag of the left peripheral block is 0 and the left peripheral block is available, and the value of the merge flag and the skip flag of the upper peripheral block is 1 and the upper peripheral block. If this is available, the value of the context increase parameter may be derived as one. Further, the merge flag and the skip flag of the left neighbor block have a value of 1 and the left neighbor block is available, and one of the merge flag and the skip flag of the upper neighbor block has a value of 0 and the upper neighbor block. If this is available, the value of the context increase parameter may be derived as one.
또한, 상기 좌측 주변 블록 및 상기 상측 주변 블록이 모두 가용하지 않거나, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 0인 경우, 상기 컨텍스트 증가 파라미터의 값은 0일 수 있다.Further, neither the left neighboring block nor the upper neighboring block is available, or the merge flag of the left neighboring block, the skip flag of the left neighboring block, the merge flag of the upper neighboring block, and the upper neighboring block. When the value of the skip flag is 0, the value of the context increase parameter may be 0.
한편, 상기 컨텍스트 증가 파라미터는 상기 현재 블록이 포함된 슬라이스의 슬라이스 타입, 상기 제3 플래그, 상기 현재 블록이 포함된 슬라이스의 GBP 슬라이스 해당 여부, 상기 현재 블록에 대한 시간적 레벨 값, 또는 상기 현재 블록이 포함된 슬라이스의 QP 값 등을 기반으로 도출될 수 있다. 또한, 상기 컨텍스트 증가 파라미터는 상술한 조건들의 조합을 통하여 도출될 수도 있다.The context increasing parameter may be a slice type of a slice including the current block, the third flag, a GBP slice corresponding to a slice including the current block, a temporal level value for the current block, or the current block. It may be derived based on the QP value of the included slice. In addition, the context increase parameter may be derived through a combination of the above-described conditions.
디코딩 장치는 상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 상기 제2 플래그를 파싱한다(S610). 디코딩 장치는 상기 제2 플래그를 기반으로 인터 예측 MVP(Motion Vector Prediction) 모드 및 인트라 예측 모드 중 하나의 예측 모드를 상기 현재 블록에 수행되는 예측 모드로 결정할 수 있다. If the value of the first flag is 0, the decoding apparatus parses the second flag for the current block (S610). The decoding apparatus may determine a prediction mode of one of an inter prediction Motion Vector Prediction (MVP) mode and an intra prediction mode as a prediction mode performed on the current block based on the second flag.
한편, 상술한 임의의 조건을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 상기 제1 플래그가 먼저 파싱(parsing)되는 플래그로 결정된 경우에 디코딩 장치는 상기 제1 플래그를 파싱하고, 상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 상기 제2 플래그를 파싱할 수 있다. 또한, 상술한 임의의 조건을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 상기 제2 플래그가 먼저 파싱(parsing)되는 플래그로 결정된 경우에 디코딩 장치는 상기 제2 플래그를 파싱하고, 상기 제2 플래그의 값이 인터 예측 모드를 가리키는 경우, 상기 현재 블록에 대한 상기 제1 플래그를 파싱할 수 있다.Meanwhile, when it is determined that the first flag of the first flag and the second flag is parsed first based on any of the above conditions, the decoding apparatus parses the first flag, and the first flag is parsed. When the value of the flag is 0, the second flag for the current block may be parsed. Also, when it is determined that the second flag of the first flag and the second flag is parsed first based on the above-described arbitrary condition, the decoding apparatus parses the second flag, and the second flag When the value of the flag indicates the inter prediction mode, the first flag for the current block may be parsed.
디코딩 장치는 상기 제2 플래그를 기반으로 인트라 예측 모드 및 인터 예측 MVP 모드 중 하나를 상기 현재 블록에 수행되는 예측 모드로 도출한다(S620). 상기 제2 플래그의 값은 상기 인트라 예측 모드 및 상기 인터 예측 MVP 모드 중 하나의 예측 모드를 나타낼 수 있고, 상기 디코딩 장치는 상기 제2 플래그를 기반으로 상기 인트라 예측 모드 및 상기 인터 예측 MVP 모드 중 하나의 예측 모드를 상기 현재 블록에 수행되는 예측 모드로 도출할 수 있다.The decoding apparatus derives one of the intra prediction mode and the inter prediction MVP mode as the prediction mode performed on the current block based on the second flag (S620). The value of the second flag may indicate one prediction mode of the intra prediction mode and the inter prediction MVP mode, and the decoding apparatus may determine one of the intra prediction mode and the inter prediction MVP mode based on the second flag. A prediction mode of may be derived as a prediction mode performed on the current block.
디코딩 장치는 상기 도출된 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성한다(S630). 상기 도출된 예측 모드가 상기 인트라 예측 모드인 경우, 디코딩 장치는 상기 현재 블록에 인트라 예측을 수행하여 상기 현재 블록의 예측 샘플을 생성할 수 있다. 또한, 상기 도출된 예측 모드가 상기 인터 예측 MVP 모드인 경우, 디코딩 장치는 상기 현재 블록에 인터 예측을 수행하여 상기 현재 블록의 예측 블록을 생성할 수 있다.The decoding apparatus generates a prediction sample of the current block based on the derived prediction mode (S630). When the derived prediction mode is the intra prediction mode, the decoding apparatus may generate a prediction sample of the current block by performing intra prediction on the current block. In addition, when the derived prediction mode is the inter prediction MVP mode, the decoding apparatus may generate the prediction block of the current block by performing inter prediction on the current block.
한편, 비록 도시되지는 않았으나 디코딩 장치는 상기 예측 샘플을 기반으로 상기 현재 블록에 대한 복원 샘플을 생성할 수 있다. 디코딩 장치는 상기 예측 블록을 기반으로 상기 현재 블록을 복원할 수 있다. 디코딩 장치는 상기 복원 샘플을 기반으로 복원 픽처를 생성할 수 있다.Although not shown, the decoding apparatus may generate a reconstruction sample for the current block based on the prediction sample. The decoding apparatus may reconstruct the current block based on the prediction block. The decoding apparatus may generate a reconstructed picture based on the reconstructed sample.
또한, 디코딩 장치는 비트스트림으로부터 상기 현재 블록에 대한 레지듀얼(residual) 정보를 수신할 수 있다. 상기 레지듀얼 정보는 상기 현재 블록의 레지듀얼 샘플에 관한 변환 계수들을 포함할 수 있다. In addition, the decoding apparatus may receive residual information on the current block from the bitstream. The residual information may include transform coefficients for the residual sample of the current block.
디코딩 장치는 상기 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 상기 레지듀얼 샘플(또는 레지듀얼 샘플 어레이)을 도출할 수 있다. 디코딩 장치는 상기 예측 샘플과 상기 레지듀얼 샘플을 기반으로 복원 샘플을 생성할 수 있고, 상기 복원 샘플을 기반으로 복원 블록 또는 복원 픽처를 도출할 수 있다. 이후 디코딩 장치는 필요에 따라 주관적/객관적 화질을 향상시키기 위하여 디블록킹 필터링 및/또는 SAO 절차와 같은 인루프 필터링 절차를 상기 복원 픽처에 적용할 수 있음은 상술한 바와 같다.The decoding apparatus may derive the residual sample (or residual sample array) for the current block based on the residual information. The decoding apparatus may generate a reconstructed sample based on the prediction sample and the residual sample, and may derive a reconstructed block or a reconstructed picture based on the reconstructed sample. Thereafter, as described above, the decoding apparatus may apply an in-loop filtering procedure, such as a deblocking filtering and / or SAO procedure, to the reconstructed picture in order to improve subjective / objective picture quality as necessary.
상술한 본 발명에 따르면 현재 블록의 머지 플래그를 예측 모드 플래그보다 먼저 파싱할 수 있고, 이를 통하여 상기 현재 블록에 머지 모드가 수행되는 경우의 발생 비트량을 감소시켜 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention described above, the merge flag of the current block can be parsed before the prediction mode flag, thereby reducing the amount of bits generated when the merge mode is performed on the current block, thereby improving the overall coding efficiency.
또한, 본 발명에 따르면 임의의 조건을 기반으로 적응적으로 현재 블록의 머지 플래그를 예측 모드 플래그보다 먼저 파싱할 수 있고, 이를 통하여 상기 현재 블록에 머지 모드가 수행되는 경우의 발생 비트량을 감소시켜 전반적인 코딩 효율을 향상시킬 수 있다.According to the present invention, it is possible to adaptively parse a merge flag of a current block before a prediction mode flag based on an arbitrary condition, thereby reducing the amount of bits generated when merge mode is performed on the current block. Overall coding efficiency can be improved.
상술한 실시예에서, 방법들은 일련의 단계 또는 블록으로써 순서도를 기초로 설명되고 있지만, 본 발명은 단계들의 순서에 한정되는 것은 아니며, 어떤 단계는 상술한 바와 다른 단계와 다른 순서로 또는 동시에 발생할 수 있다. 또한, 당업자라면 순서도에 나타내어진 단계들이 배타적이지 않고, 다른 단계가 포함되거나 순서도의 하나 또는 그 이상의 단계가 본 발명의 범위에 영향을 미치지 않고 삭제될 수 있음을 이해할 수 있을 것이다.In the above-described embodiment, the methods are described based on a flowchart as a series of steps or blocks, but the present invention is not limited to the order of steps, and any steps may occur in a different order or simultaneously from other steps as described above. have. In addition, those skilled in the art will appreciate that the steps shown in the flowcharts are not exclusive and that other steps may be included or one or more steps in the flowcharts may be deleted without affecting the scope of the present invention.
상술한 본 발명에 따른 방법은 소프트웨어 형태로 구현될 수 있으며, 본 발명에 따른 인코딩 장치 및/또는 디코딩 장치는 예를 들어 TV, 컴퓨터, 스마트폰, 셋톱박스, 디스플레이 장치 등의 영상 처리를 수행하는 장치에 포함될 수 있다.The above-described method according to the present invention may be implemented in software, and the encoding device and / or the decoding device according to the present invention may perform image processing of, for example, a TV, a computer, a smartphone, a set-top box, a display device, and the like. It can be included in the device.
본 발명에서 실시예들이 소프트웨어로 구현될 때, 상술한 방법은 상술한 기능을 수행하는 모듈(과정, 기능 등)로 구현될 수 있다. 모듈은 메모리에 저장되고, 프로세서에 의해 실행될 수 있다. 메모리는 프로세서 내부 또는 외부에 있을 수 있고, 잘 알려진 다양한 수단으로 프로세서와 연결될 수 있다. 프로세서는 ASIC(application-specific integrated circuit), 다른 칩셋, 논리 회로 및/또는 데이터 처리 장치를 포함할 수 있다. 메모리는 ROM(read-only memory), RAM(random access memory), 플래쉬 메모리, 메모리 카드, 저장 매체 및/또는 다른 저장 장치를 포함할 수 있다.When embodiments of the present invention are implemented in software, the above-described method may be implemented as a module (process, function, etc.) for performing the above-described function. The module may be stored in memory and executed by a processor. The memory may be internal or external to the processor and may be coupled to the processor by various well known means. The processor may include application-specific integrated circuits (ASICs), other chipsets, logic circuits, and / or data processing devices. The memory may include read-only memory (ROM), random access memory (RAM), flash memory, memory card, storage medium and / or other storage device.
Claims (15)
- 영상 디코딩 장치에 의하여 수행되는 영상 디코딩 방법에 있어서,In the video decoding method performed by the video decoding apparatus,현재 블록에 수행되는 예측 모드가 인터 예측 머지 모드인지 여부를 나타내는 제1 플래그를 파싱(parsing)하는 단계;Parsing a first flag indicating whether the prediction mode performed on the current block is the inter prediction merge mode;상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 제2 플래그를 파싱하는 단계;Parsing a second flag for the current block when the value of the first flag is 0;상기 제2 플래그를 기반으로 인트라 예측 모드 및 인터 예측 MVP(motion vector prediction) 모드 중 하나를 현재 블록에 대한 예측 모드로 도출하는 단계; 및Deriving one of an intra prediction mode and an inter prediction motion vector prediction (MVP) mode as a prediction mode for the current block based on the second flag; And상기 도출된 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하는 것을 특징으로 하는 디코딩 방법.Generating a predictive sample of the current block based on the derived prediction mode.
- 제1항에 있어서,The method of claim 1,상기 현재 블록에 대한 제3 플래그를 파싱하는 단계; 및Parsing a third flag for the current block; And상기 제3 플래그의 값을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하는 단계를 더 포함하되,Determining a first parsed flag of the first flag and the second flag based on a value of the third flag,상기 제3 플래그의 값이 1인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정되는 것을 특징으로 하는 디코딩 방법.And when the value of the third flag is 1, the first parsed flag is determined as the first flag.
- 제1항에 있어서,The method of claim 1,상기 현재 블록이 포함된 현재 슬라이스의 슬라이스 타입을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하는 단계를 더 포함하는 것을 특징으로 하는 디코딩 방법.And determining a first parsed flag among the first flag and the second flag based on a slice type of a current slice including the current block.
- 제3항에 있어서,The method of claim 3,상기 현재 슬라이스가 GBP(Generalized Bi-Prediction) 슬라이스인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정되는 것을 특징으로 하는 디코딩 방법.And if the current slice is a Generalized Bi-Prediction (GBP) slice, the first parsed flag is determined as the first flag.
- 제1항에 있어서,The method of claim 1,상기 현재 블록이 포함된 현재 슬라이스의 시간적 레벨(Temporal level)을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하는 단계를 더 포함하는 것을 특징으로 하는 디코딩 방법.And determining a first parsed flag among the first flag and the second flag based on a temporal level of the current slice including the current block.
- 제1항에 있어서,The method of claim 1,상기 현재 블록이 포함된 현재 슬라이스의 양자화 파라미터(Quantization Parameter)를 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하는 단계를 더 포함하는 것을 특징으로 하는 디코딩 방법.And determining a first parsed flag among the first flag and the second flag based on a quantization parameter of the current slice including the current block.
- 제1항에 있어서,The method of claim 1,상기 현재 블록의 좌측 주변 블록의 신텍스(syntax) 요소 및 상기 현재 블록의 상측 주변 블록의 신텍스 요소를 기반으로 상기 현재 블록에 대한 컨텍스트(context) 증가 파라미터를 도출하는 단계;Deriving a context increase parameter for the current block based on a syntax element of a left neighboring block of the current block and a syntax element of an upper neighboring block of the current block;상기 컨텍스트 증가 파라미터를 기반으로 상기 제1 플래그를 엔트로피 디코딩하는 단계를 더 포함하는 것을 특징으로 하는 디코딩 방법.And entropy decoding the first flag based on the context increment parameter.
- 제7항에 있어서,The method of claim 7, wherein상기 컨텍스트 증가 파라미터의 값은 0, 1 및 2 중 하나로 도출되는 것을 특징으로 하는 디코딩 방법.And the value of the context increment parameter is derived from one of 0, 1, and 2.
- 제7항에 있어서,The method of claim 7, wherein상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 머지 플래그를 포함하고,The syntax element of the left neighboring block includes a merge flag of the left neighboring block,상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 머지 플래그를 포함하는 것을 특징으로 하는 디코딩 방법.The syntax element of the upper neighboring block includes a merge flag of the upper neighboring block.
- 제9항에 있어서,The method of claim 9,상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용(available)하고, 상기 좌측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 머지 플래그의 값이 둘 다 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출되는 것을 특징으로 하는 디코딩 방법.When the left neighboring block and the upper neighboring block are available, and the merge flag of the left neighboring block and the merge flag of the upper neighboring block are both 1, the value of the context increase parameter is 2 Decoding method characterized in that derived.
- 제9항에 있어서,The method of claim 9,상기 좌측 주변 블록의 신텍스 요소는 상기 좌측 주변 블록의 스킵 플래그를 더 포함하고,The syntax element of the left neighboring block further includes a skip flag of the left neighboring block,상기 상측 주변 블록의 신텍스 요소는 상기 상측 주변 블록의 스킵 플래그를 더 포함하는 것을 특징으로 하는 디코딩 방법.The syntax element of the upper neighboring block further includes a skip flag of the upper neighboring block.
- 제11항에 있어서,The method of claim 11,상기 좌측 주변 블록 및 상기 상측 주변 블록이 가용하고, 상기 좌측 주변 블록의 상기 머지 플래그, 상기 좌측 주변 블록의 상기 스킵 플래그, 상기 상측 주변 블록의 상기 머지 플래그 및 상기 상측 주변 블록의 상기 스킵 플래그의 값이 1인 경우, 상기 컨텍스트 증가 파라미터의 값은 2로 도출되는 것을 특징으로 하는 디코딩 방법.The left neighboring block and the upper neighboring block are available, and values of the merge flag of the left neighboring block, the skip flag of the left neighboring block, the merge flag of the upper neighboring block, and the skip flag of the upper neighboring block are available. Is 1, the value of the context increase parameter is derived as 2.
- 영상 디코딩을 수행하는 디코딩 장치에 있어서,In the decoding apparatus for performing image decoding,현재 블록에 수행되는 예측 모드가 인터 머지 예측 모드인지 여부를 나타내는 제1 플래그를 파싱(parsing)하고, 상기 제1 플래그의 값이 0인 경우, 상기 현재 블록에 대한 제2 플래그를 파싱하는 엔트로피 디코딩부; 및Parsing a first flag indicating whether the prediction mode performed on the current block is an inter merge prediction mode, and entropy decoding parsing a second flag for the current block when the value of the first flag is 0. part; And상기 제2 플래그를 기반으로 인트라 예측 모드 및 인터 예측 MVP(motion vector prediction) 모드 중 현재 블록에 대한 예측 모드를 도출하고, 상기 도출된 예측 모드를 기반으로 상기 현재 블록의 예측 샘플을 생성하는 예측부를 포함하는 것을 특징으로 하는 디코딩 장치.A prediction unit configured to derive a prediction mode for the current block among the intra prediction mode and the inter prediction motion vector prediction (MVP) mode based on the second flag, and generate a prediction sample of the current block based on the derived prediction mode Decoding apparatus comprising a.
- 제13항에 있어서,The method of claim 13,상기 엔트로피 디코딩부는 상기 현재 블록에 대한 제3 플래그를 파싱하고,The entropy decoding unit parses a third flag for the current block,상기 예측부는 상기 제3 플래그의 값을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하되,The prediction unit determines a flag that is first parsed among the first flag and the second flag based on the value of the third flag,상기 제3 플래그의 값이 1인 경우, 상기 먼저 파싱되는 플래그는 상기 제1 플래그로 결정되는 것을 특징으로 하는 디코딩 장치.And when the value of the third flag is 1, the first parsed flag is determined as the first flag.
- 제13항에 있어서,The method of claim 13,상기 엔트로피 디코딩부는 상기 현재 블록이 포함된 현재 슬라이스의 슬라이스 타입을 기반으로 상기 제1 플래그 및 상기 제2 플래그 중 먼저 파싱되는 플래그를 결정하는 것을 특징으로 하는 디코딩 장치.And the entropy decoding unit determines a flag that is first parsed among the first flag and the second flag based on a slice type of a current slice including the current block.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
US201762441584P | 2017-01-03 | 2017-01-03 | |
US62/441,584 | 2017-01-03 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2018128222A1 true WO2018128222A1 (en) | 2018-07-12 |
Family
ID=62789501
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/KR2017/003687 WO2018128222A1 (en) | 2017-01-03 | 2017-04-04 | Method and apparatus for image decoding in image coding system |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2018128222A1 (en) |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113196773A (en) * | 2018-12-21 | 2021-07-30 | 北京字节跳动网络技术有限公司 | Motion vector precision in Merge mode with motion vector difference |
CN113261298A (en) * | 2019-01-05 | 2021-08-13 | 腾讯美国有限责任公司 | Method and apparatus for video encoding |
CN113302916A (en) * | 2019-01-27 | 2021-08-24 | 北京字节跳动网络技术有限公司 | Interpolation for bi-prediction with CU level weights |
US20210329243A1 (en) * | 2018-12-28 | 2021-10-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for selecting transform selection in an encoder and decoder |
CN113557742A (en) * | 2019-05-16 | 2021-10-26 | 腾讯美国有限责任公司 | Video codec method and device |
CN114762351A (en) * | 2019-11-05 | 2022-07-15 | Lg 电子株式会社 | Image/video coding method and device |
US12126824B2 (en) | 2019-02-26 | 2024-10-22 | Apple Inc. | Method for encoding/decoding video signal, and apparatus therefor |
Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100703776B1 (en) * | 2005-04-19 | 2007-04-06 | 삼성전자주식회사 | Context-based adaptive arithmetic coding and decoding method with improved coding efficiency and apparatus therefor, video coding and decoding method comprising the same and apparatus therefor |
KR20140034209A (en) * | 2011-07-11 | 2014-03-19 | 파나소닉 주식회사 | Image decoding method, image encoding method, image decoding apparatus, image encoding apparatus, and image encoding/decoding apparatus |
KR20140099510A (en) * | 2010-11-25 | 2014-08-12 | 엘지전자 주식회사 | Method offor signaling image information, and method offor decoding image information using same |
KR20160018879A (en) * | 2011-06-16 | 2016-02-17 | 지이 비디오 컴프레션, 엘엘씨 | Context initialization in entropy coding |
JP2016220234A (en) * | 2016-08-08 | 2016-12-22 | 株式会社Jvcケンウッド | Image decoding device, image decoding method, image decoding program, reception device, reception method and reception program |
-
2017
- 2017-04-04 WO PCT/KR2017/003687 patent/WO2018128222A1/en active Application Filing
Patent Citations (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
KR100703776B1 (en) * | 2005-04-19 | 2007-04-06 | 삼성전자주식회사 | Context-based adaptive arithmetic coding and decoding method with improved coding efficiency and apparatus therefor, video coding and decoding method comprising the same and apparatus therefor |
KR20140099510A (en) * | 2010-11-25 | 2014-08-12 | 엘지전자 주식회사 | Method offor signaling image information, and method offor decoding image information using same |
KR20160018879A (en) * | 2011-06-16 | 2016-02-17 | 지이 비디오 컴프레션, 엘엘씨 | Context initialization in entropy coding |
KR20140034209A (en) * | 2011-07-11 | 2014-03-19 | 파나소닉 주식회사 | Image decoding method, image encoding method, image decoding apparatus, image encoding apparatus, and image encoding/decoding apparatus |
JP2016220234A (en) * | 2016-08-08 | 2016-12-22 | 株式会社Jvcケンウッド | Image decoding device, image decoding method, image decoding program, reception device, reception method and reception program |
Cited By (15)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN113196773A (en) * | 2018-12-21 | 2021-07-30 | 北京字节跳动网络技术有限公司 | Motion vector precision in Merge mode with motion vector difference |
CN113196773B (en) * | 2018-12-21 | 2024-03-08 | 北京字节跳动网络技术有限公司 | Motion vector accuracy in Merge mode with motion vector difference |
US11558613B2 (en) * | 2018-12-28 | 2023-01-17 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for selecting transform selection in an encoder and decoder |
US20210329243A1 (en) * | 2018-12-28 | 2021-10-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for selecting transform selection in an encoder and decoder |
US11991359B2 (en) | 2018-12-28 | 2024-05-21 | Telefonaktiebolaget Lm Ericsson (Publ) | Method and apparatus for selecting transform selection in an encoder and decoder |
CN113261298B (en) * | 2019-01-05 | 2023-09-22 | 腾讯美国有限责任公司 | Video encoding and decoding method and device |
CN113261298A (en) * | 2019-01-05 | 2021-08-13 | 腾讯美国有限责任公司 | Method and apparatus for video encoding |
CN113302916A (en) * | 2019-01-27 | 2021-08-24 | 北京字节跳动网络技术有限公司 | Interpolation for bi-prediction with CU level weights |
CN113302916B (en) * | 2019-01-27 | 2024-04-12 | 北京字节跳动网络技术有限公司 | Interpolation for bidirectional prediction with CU-level weights |
US12212769B2 (en) | 2019-01-27 | 2025-01-28 | Beijing Bytedance Network Technology Co., Ltd. | Method for local illumination compensation |
US12126824B2 (en) | 2019-02-26 | 2024-10-22 | Apple Inc. | Method for encoding/decoding video signal, and apparatus therefor |
CN113557742A (en) * | 2019-05-16 | 2021-10-26 | 腾讯美国有限责任公司 | Video codec method and device |
CN114762351A (en) * | 2019-11-05 | 2022-07-15 | Lg 电子株式会社 | Image/video coding method and device |
CN114762351B (en) * | 2019-11-05 | 2024-05-07 | Lg电子株式会社 | Image/video compiling method and device |
US12192470B2 (en) | 2019-11-05 | 2025-01-07 | Lg Electronics Inc. | Image/video coding method and device |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2016200043A1 (en) | Method and apparatus for inter prediction on basis of virtual reference picture in video coding system | |
WO2017057953A1 (en) | Method and device for coding residual signal in video coding system | |
WO2017052081A1 (en) | Inter prediction method and apparatus in image coding system | |
WO2018062921A1 (en) | Method and apparatus for block partitioning and intra prediction in image coding system | |
WO2017034331A1 (en) | Method and device for chroma sample intra prediction in video coding system | |
WO2017043786A1 (en) | Intra prediction method and device in video coding system | |
WO2017082670A1 (en) | Method and apparatus for coefficient induced intra prediction in image coding system | |
WO2012081879A1 (en) | Method for decoding inter predictive encoded motion pictures | |
WO2018070632A1 (en) | Video decoding method and device in video coding system | |
WO2017014412A1 (en) | Intra prediction method and device in video coding system | |
WO2012023763A2 (en) | Inter prediction encoding method | |
WO2018128222A1 (en) | Method and apparatus for image decoding in image coding system | |
WO2017069590A1 (en) | Modeling-based image decoding method and device in image coding system | |
WO2017188565A1 (en) | Image decoding method and device in image coding system | |
WO2016204374A1 (en) | Image filtering method and device in image coding system | |
WO2019194507A1 (en) | Image coding method based on affine motion prediction, and device for same | |
WO2017061671A1 (en) | Method and device for coding image on basis of adaptive transformation in image coding system | |
WO2018216862A1 (en) | Method and device for decoding image according to intra prediction in image coding system | |
WO2017159901A1 (en) | Method and device for deriving block structure in video coding system | |
WO2017048008A1 (en) | Inter-prediction method and apparatus in video coding system | |
WO2016114583A1 (en) | Method and device for processing video signal | |
WO2017052272A1 (en) | Method and apparatus for intra prediction in video coding system | |
WO2018174357A1 (en) | Method and device for image decoding in image coding system | |
WO2018128223A1 (en) | Inter-prediction method and apparatus in image coding system | |
WO2016178485A1 (en) | Method and device for processing coding unit in image coding system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 17890129 Country of ref document: EP Kind code of ref document: A1 |
|
NENP | Non-entry into the national phase |
Ref country code: DE |
|
122 | Ep: pct application non-entry in european phase |
Ref document number: 17890129 Country of ref document: EP Kind code of ref document: A1 |