WO2019135658A1 - Image processing method and image decoding and coding method using same - Google Patents

Image processing method and image decoding and coding method using same Download PDF

Info

Publication number
WO2019135658A1
WO2019135658A1 PCT/KR2019/000238 KR2019000238W WO2019135658A1 WO 2019135658 A1 WO2019135658 A1 WO 2019135658A1 KR 2019000238 W KR2019000238 W KR 2019000238W WO 2019135658 A1 WO2019135658 A1 WO 2019135658A1
Authority
WO
WIPO (PCT)
Prior art keywords
unit
prediction
block
padding
intra
Prior art date
Application number
PCT/KR2019/000238
Other languages
French (fr)
Korean (ko)
Inventor
임화섭
임정윤
김재곤
박도현
윤용욱
Original Assignee
가온미디어 주식회사
한국항공대학교산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 가온미디어 주식회사, 한국항공대학교산학협력단 filed Critical 가온미디어 주식회사
Publication of WO2019135658A1 publication Critical patent/WO2019135658A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection 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
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods 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 picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/593Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial prediction techniques

Definitions

  • the present invention relates to image encoding and decoding.
  • a picture is divided into a plurality of blocks each having a predetermined size to perform coding. Further, inter prediction and intra prediction techniques for eliminating redundancy between pictures are used to increase compression efficiency.
  • intra prediction and inter prediction are used to generate a residual signal.
  • the reason why the residual signal is obtained is that when the coding is performed using the residual signal, the amount of data is small, so that the data compression rate is high. Is small.
  • the intraprediction method predicts the data of the current block by using the pixels around the current block.
  • the difference between the actual value and the predicted value is called a residual signal block.
  • the intra prediction method increases to 35 prediction modes in nine prediction modes used in the existing H.264 / AVC, and further subdivided prediction is performed.
  • the current block is compared with the blocks in the neighboring pictures to find the closest block.
  • the position information (Vx, Vy) of the found block is referred to as a motion vector.
  • the difference between the intra-block pixel values of the current block and the prediction block predicted by the motion vector is called a residual-signal block (motion-compensated residual block).
  • the closest sample is padded to the region in which the base decoded reference sample does not exist, which is an element that hinders the directional prediction.
  • an image processing method for processing a picture of an image which is a basic unit for performing inter prediction or intra prediction, Dividing into a plurality of coding units (Coding Units); Identifying, for a unit of an intra predicted current block of the divided coding units, a reference sample used for intra prediction; Performing a padding process in which a change amount of a neighboring block of the current block is reflected on a reference sample in which there is no previously decoded information among the reference samples; And performing intra prediction decoding based on the padded reference sample.
  • an image decoding method including: receiving an encoded bitstream; Performing inverse quantization and inverse transform on the input bitstream to obtain a residual block; Performing inter-prediction or intra-prediction to obtain a prediction block; And reconstructing an image by summing the obtained residual block and a prediction block, wherein a coding unit, which is a basic unit in which the inter prediction or intra prediction is performed, is a block divided from a coding tree unit using a binary tree structure, Obtaining a prediction block may include identifying a reference sample used for intra prediction for a unit of an intra prediction current block of the divided coding units; And performing a padding process on a reference sample in which there is no previously decoded information of the reference sample, the padding process reflecting a variation amount of a neighboring block of the current block; And performing intra prediction decoding based on the padded reference sample to obtain the prediction block.
  • the above-described methods may be embodied as a computer-readable recording medium on which a program for execution by a computer is recorded.
  • the reference sample to which the variation amount of the current block or the neighboring blocks is applied is configured for the region in which the base decoded reference sample does not exist, And improve coding efficiency for high resolution images.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
  • FIGS. 2 to 5 are diagrams for explaining a first embodiment of a method for dividing and processing an image into blocks.
  • FIG. 6 is a block diagram for explaining an embodiment of a method of performing inter-prediction in the image encoding apparatus.
  • FIG. 7 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
  • FIG. 8 is a block diagram for explaining an embodiment of a method of performing inter-prediction in an image decoding apparatus.
  • FIG. 9 is a diagram for explaining a second embodiment of a method of dividing and processing an image into blocks.
  • FIG. 10 is a diagram showing an embodiment of a syntax structure used for dividing and processing an image into blocks.
  • FIG. 11 is a diagram for explaining a third embodiment of a method of dividing and processing an image into blocks.
  • FIG. 12 is a diagram for explaining an embodiment of a method of dividing a coding unit into a binary tree structure to construct a conversion unit.
  • FIG. 13 is a diagram for explaining a fourth embodiment of a method of dividing and processing an image into blocks.
  • FIGS. 14 to 16 are diagrams for explaining still another embodiment of a method of dividing and processing an image into blocks.
  • FIGS. 17 and 18 are diagrams for explaining embodiments of a method of performing a rate distortion optimization (RDO) to determine a division structure of a conversion unit.
  • RDO rate distortion optimization
  • 19 is a diagram for explaining a reference sample configuration applied with a variation according to an embodiment of the present invention.
  • 20 to 21 are flowcharts for explaining an intra prediction process according to an embodiment of the present invention.
  • 22 is a flowchart for explaining a single variation reflection sample generation process according to an embodiment of the present invention.
  • 23 to 24 are illustrations of a single variation amount reflecting sample according to an embodiment of the present invention.
  • 25 is a flow chart illustrating a selective single variation reflected sample padding process in accordance with an embodiment of the present invention.
  • 26 is a flowchart for explaining a multiple change amount reflection sample generation process according to an embodiment of the present invention.
  • 27 to 28 are exemplary diagrams of a multiple change amount reflection sample according to an embodiment of the present invention.
  • Figure 29 is a flow diagram illustrating a selective single and multiple varying reflected sample padding process in accordance with an embodiment of the present invention.
  • FIGS. 30 and 31 are views for explaining a reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable.
  • first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another.
  • first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.
  • each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function.
  • the integrated embodiments and separate embodiments of the components are also included within the scope of the present invention, unless they depart from the essence of the present invention.
  • the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance.
  • the present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.
  • FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an exemplary embodiment of the present invention.
  • the image encoding apparatus 10 includes a picture division unit 110, a transform unit 120, a quantization unit 130, An entropy encoding unit 140, an intra prediction unit 150, an inter prediction unit 160, an inverse quantization unit 135, an inverse transformation unit 125, a post-processing unit 170, a picture storage unit 180 A subtracting unit 190, and an adding unit 195.
  • a picture dividing unit 110 analyzes an input video signal, divides a picture into coding units to determine a prediction mode, and determines a size of a prediction unit for each coding unit.
  • the picture division unit 110 also sends the prediction unit to be encoded to the intra prediction unit 150 or the inter prediction unit 160 according to a prediction mode (or a prediction method). Further, the picture division unit 110 sends the prediction unit to be encoded to the subtraction unit 190.
  • a picture of an image is composed of a plurality of slices, and a slice can be divided into a plurality of coding tree units (CTU), which is a basic unit for dividing a picture.
  • CTU coding tree units
  • the coding tree unit may be divided into one or two or more coding units (CUs), which are basic units for performing inter prediction or intra prediction.
  • CUs coding units
  • the coding unit (CU) can be divided into one or more prediction units (PU), which are basic units on which prediction is performed.
  • PU prediction units
  • the coding apparatus 10 determines one of the inter prediction and intra prediction as the prediction method for each of the divided coding units (CUs), but differently for each prediction unit (PU) Can be generated.
  • the coding unit CU may be divided into one or two or more Transform Units (TUs), which are basic units for performing a conversion on a residual block.
  • TUs Transform Units
  • the picture dividing unit 110 may deliver the image data to the subtracting unit 190 in a block unit (for example, a prediction unit (PU) or a conversion unit (TU)) which is divided as described above.
  • a block unit for example, a prediction unit (PU) or a conversion unit (TU)
  • a coding tree unit (CTU) having a maximum size of 256x256 pixels may be divided into a quad tree structure and divided into four coding units (CUs) having a square shape.
  • Each of the four coding units (CUs) having the square shape can be divided into quad tree structures.
  • the depth of the coding unit (CU) It can have one integer value.
  • the coding unit (CU) may be divided into one or more prediction units (PU) according to the prediction mode.
  • the prediction unit PU can have the size of 2Nx2N shown in Fig. 3A or the size of NxN shown in Fig. 3B have.
  • the prediction unit PU is 2Nx2N shown in Fig. 4A, 2NxN shown in Fig. 4D, 2NxnU shown in FIG. 4E, 2NxnD shown in FIG. 4F, and FIG. 4G shown in FIG. 4G, And nRx2N shown in FIG. 4 (h).
  • a coding unit may be divided into a quad tree structure and divided into four transformation units (TUs) having a square shape.
  • Each of the four transformation units TU having the square shape can be divided into quad tree structures.
  • the depth of the transformation unit TU divided into the quad tree structure can be set to any one of 0 to 3 It can have one integer value.
  • the prediction unit (PU) and the conversion unit (TU) divided from the coding unit (CU) may have a division structure independent of each other.
  • the conversion unit TU divided from the coding unit CU can not be larger than the size of the prediction unit PU.
  • the conversion unit TU divided as described above can have a maximum size of 64x64 pixels.
  • the transforming unit 120 transforms the residual block, which is a residual signal between the original block of the input prediction unit PU, and the prediction block generated by the intra prediction unit 150 or the inter prediction unit 160, Unit TU as a basic unit.
  • different conversion matrices can be determined according to the intra or inter prediction mode. Since the residual signal of the intra prediction has directionality according to the intra prediction mode, the conversion matrix can be adaptively determined according to the intra prediction mode. have.
  • the transformation unit can be transformed by two (horizontal, vertical) one-dimensional transformation matrices, for example in the case of interprediction, one predetermined transformation matrix can be determined.
  • the DCT-based integer matrix is applied in the vertical direction and the DST- Apply a KLT-based integer matrix.
  • a DST-based or KLT-based integer matrix can be applied in the vertical direction
  • a DCT-based integer matrix can be applied in the horizontal direction.
  • a DCT-based integer matrix can be applied to both directions.
  • the transformation matrix may be adaptively determined based on the size of the transformation unit TU.
  • the quantization unit 130 determines a quantization step size for quantizing the coefficients of the residual block transformed by the transform matrix, and the quantization step size can be determined for each quantization unit larger than a predetermined size.
  • the size of the quantization unit may be 8x8 or 16x16, and the quantization unit 130 quantizes the coefficients of the transform block using the quantization matrix determined according to the quantization step size and the prediction mode.
  • the quantization unit 130 can use the quantization step size of the quantization unit adjacent to the current quantization unit as a quantization step size predictor of the current quantization unit.
  • the quantization unit 130 searches the left quantization unit, the upper quantization unit, and the upper left quantization unit of the current quantization unit in order, and can generate a quantization step size predictor of the current quantization unit using one or two effective quantization step sizes have.
  • the quantization unit 130 may determine the valid first quantization step size searched in the above order as a quantization step size predictor, determine an average value of two valid quantization step sizes searched in the above order as a quantization step size predictor, or If only one quantization step size is valid, it can be determined as a quantization step size predictor.
  • the quantization unit 130 transmits the difference value between the quantization step size of the current quantization unit and the quantization step size predictor to the entropy encoding unit 140.
  • the quantization step sizes of the quantization units adjacent to the current coding unit and the quantization unit immediately before the coding order in the maximum coding unit can be candidates.
  • the order may be changed, and the upper left side quantization unit may be omitted.
  • the quantized transform block is transferred to the inverse quantization unit 135 and the scanning unit 131.
  • the scanning unit 131 scans the coefficients of the quantized transform block and converts the coefficients into one-dimensional quantization coefficients. In this case, since the coefficient distribution of the transformed block after quantization may be dependent on the intra prediction mode, Can be determined accordingly.
  • the coefficient scanning method may be determined depending on the size of the conversion unit, and the scan pattern may be changed according to the directional intra prediction mode. In this case, the scanning order of the quantization coefficients may be scanned in the reverse direction.
  • the same scan pattern may be applied to the quantization coefficients in each sub-set, and a scan pattern between the sub-sets may be zigzag scan or diagonal scan.
  • the scan pattern is preferably scanned from the main subset including the DC to the remaining subset in the forward direction, but the reverse direction is also possible.
  • a scan pattern between subset can be set in the same manner as a scan pattern of quantized coefficients in a subset, and a scan pattern between subset can be determined according to an intra prediction mode.
  • the encoding apparatus 10 includes information indicating the position of the last non-zero quantization coefficient in the conversion unit PU and the position of the last non-zero quantization coefficient in each subset, 20).
  • the inverse quantization unit 135 dequantizes the quantized coefficients as described above.
  • the inverse transform unit 125 performs an inverse transform on the basis of the transform unit (TU), restores the inversely quantized transform coefficients into a residual block in the spatial domain can do.
  • TU transform unit
  • the adder 195 may generate a reconstruction block by summing the residual block reconstructed by the inverse transformer 125 and the prediction block received from the intra prediction unit 150 or the inter prediction unit 160.
  • the post-processing unit 170 performs a deblocking filtering process to remove a blocking effect generated in the reconstructed picture, a sample adaptive offset (hereinafter, referred to as " sample adaptive offset " SAO) application process and an Adaptive Loop Filtering (ALF) process to compensate a difference value between the original image and a coding unit.
  • a deblocking filtering process to remove a blocking effect generated in the reconstructed picture
  • SAO sample adaptive offset
  • ALF Adaptive Loop Filtering
  • the deblocking filtering process can be applied to a boundary of a prediction unit (PU) or a conversion unit (TU) having a size larger than a predetermined size.
  • PU prediction unit
  • TU conversion unit
  • the deblocking filtering process may include determining a boundary to be filtered, determining a bounary filtering strength to be applied to the boundary, determining whether to apply a deblocking filter, And if the deblocking filter is determined to be applied, selecting a filter to be applied to the boundary.
  • Whether or not the deblocking filter is applied depends on whether i) the border filtering strength is greater than 0 and ii) whether the pixel values at the boundary of two blocks (P block, Q block) May be determined by whether the value represented is less than a first reference value determined by the quantization parameter.
  • the filter is preferably at least two or more. If the absolute value of the difference between two pixels located at the block boundary is greater than or equal to the second reference value, a filter that performs relatively weak filtering is selected.
  • the second reference value is determined by the quantization parameter and the boundary filtering strength.
  • sample adaptive offset (SAO) process is intended to reduce the distortion between pixels in an image to which a deblocking filter is applied and a source pixel, and a process of applying a sample adaptive offset (SAO) Can be determined.
  • the picture or slice may be divided into a plurality of offset regions, and an offset type may be determined for each of the offset regions.
  • the offset type may include a predetermined number (for example, four) of edge offset types and two band offsets Type.
  • the edge type to which each pixel belongs is determined and the corresponding offset is applied.
  • the edge type can be determined based on the distribution of two pixel values adjacent to the current pixel have.
  • the adaptive loop filtering (ALF) process may perform filtering on the basis of a value obtained by comparing a reconstructed image and an original image through a deblocking filtering process or an adaptive offset applying process.
  • the picture storage unit 180 receives the post-processed image data from the post-processing unit 170 and restores and stores the picture in units of pictures.
  • the picture may be a frame-based image or a field-based image.
  • the inter-prediction unit 160 may perform motion estimation using at least one reference picture stored in the picture storage unit 180, and may determine a reference picture index and a motion vector indicating a reference picture.
  • the prediction block corresponding to the prediction unit to be coded can be extracted from the reference picture used for motion estimation among the plurality of reference pictures stored in the picture storage unit 180, according to the determined reference picture index and motion vector have.
  • the intraprediction unit 150 can perform intraprediction encoding using the reconstructed pixel values in the picture including the current prediction unit.
  • the intra prediction unit 150 receives the current prediction unit to be predictively encoded and can perform intra prediction by selecting one of a predetermined number of intra prediction modes according to the size of the current block.
  • the intraprediction unit 150 may adaptively filter the reference pixels to generate an intra prediction block, and may generate reference pixels using available reference pixels when the reference pixels are not available.
  • the entropy encoding unit 140 may entropy encode quantization coefficients quantized by the quantization unit 130, intra prediction information received from the intra prediction unit 150, motion information received from the inter prediction unit 160, and the like .
  • the inter-prediction encoder shown in FIG. 6 includes a motion information determination unit 161, a motion information encoding mode determination unit 162, A motion information coding unit 163, a prediction block generating unit 164, a residual block generating unit 165, a residual block coding unit 166 and a multiplexer 167.
  • the motion information determination unit 161 determines motion information of a current block, the motion information includes a reference picture index and a motion vector, and the reference picture index includes any one of previously coded and reconstructed pictures Lt; / RTI >
  • the reference picture indicating one of the reference pictures of the list 0 (L0) Index and a reference picture index indicating one of the reference pictures of the list 1 (L1).
  • the current block when the current block is bi-directionally predictive-coded, it may include an index indicating one or two pictures among the reference pictures of the composite list LC generated by combining the list 0 and the list 1.
  • the motion vector indicates the position of a prediction block in a picture indicated by each reference picture index, and the motion vector may be a pixel unit (integer unit) or a sub-pixel unit.
  • the motion vector may have a resolution of 1/2, 1/4, 1/8, or 1/16 pixels, and if the motion vector is not an integer unit, the prediction block may be generated from pixels of an integer unit .
  • the motion information encoding mode determination unit 162 may determine the encoding mode for the motion information of the current block to be one of a skip mode, a merge mode, and an AMVP mode.
  • the skip mode is applied when a skip candidate having motion information the same as the motion information of the current block exists and the residual signal is 0.
  • the skip mode is a mode in which the current block which is the prediction unit (PU) Can be applied.
  • the merge mode is applied when there is a merge candidate having the same motion information as the motion information of the current block.
  • the merge mode has a residual signal when the current block is different in size from the coding unit (CU) .
  • the merge candidate and the skip candidate can be the same.
  • the AMVP mode is applied when the skip mode and the merge mode are not applied, and the AMVP candidate having the motion vector most similar to the motion vector of the current block can be selected as the AMVP predictor.
  • the motion information encoding unit 163 can encode the motion information according to the mode determined by the motion information encoding mode deciding unit 162.
  • the motion information encoding unit 163 performs a merge motion vector encoding process when the motion information encoding mode is the skip mode or the merge mode, and performs the AMVP encoding process when the motion information encoding mode is the AMVP mode.
  • the prediction block generator 164 copies a block corresponding to a position indicated by a motion vector in a picture indicated by a reference picture index, and outputs the current block Lt; / RTI >
  • the prediction block generator 164 can generate the pixels of the prediction block from the integer unit pixels in the picture indicated by the reference picture index.
  • a predictive pixel is generated using an 8-tap interpolation filter for a luminance pixel, and a predictive pixel can be generated using a 4-tap interpolation filter for a chrominance pixel.
  • the residual block generating unit 165 generates a residual block using the current block and the current block. If the current block is 2Nx2N, the residual block generating unit 165 generates a residual block using a 2Nx2N- Blocks can be created.
  • the size of the current block used for prediction is 2NxN or Nx2N
  • a prediction block for each of the 2NxN blocks constituting 2Nx2N is obtained, and a 2Nx2N final prediction block using the 2NxN prediction blocks is obtained Lt; / RTI >
  • a residual block of 2Nx2N size may be generated using the 2Nx2N prediction block, and overlap smoothing is applied to the pixels of the boundary portion to solve the discontinuity of the boundary of two prediction blocks having 2NxN size .
  • the residual block coding unit 166 divides the residual block into one or more conversion units (TU), and each of the conversion units (TU) can be transcoded, quantized, and entropy encoded.
  • the residual block coding unit 166 may transform the residual block generated by the inter prediction method using an integer-based transform matrix, and the transform matrix may be an integer-based DCT matrix.
  • the residual block coding unit 166 uses a quantization matrix to quantize the coefficients of the residual block transformed by the transformation matrix, and the quantization matrix can be determined by the quantization parameter.
  • the quantization parameter is determined for each coding unit (CU) of a predetermined size or more, and when the current coding unit (CU) is smaller than the predetermined size, the coding unit (CU) CU) and the quantization parameters of the remaining coding units (CUs) are the same as those of the above-mentioned parameters, and thus can not be encoded.
  • coefficients of the transform block may be quantized using a quantization matrix determined according to the quantization parameter and the prediction mode.
  • the quantization parameter determined for each coding unit (CU) larger than the predetermined size can be predictively encoded using the quantization parameter of the coding unit (CU) adjacent to the current coding unit (CU).
  • a quantization parameter predictor of the current coding unit (CU) can be generated by searching in the order of the left coding unit (CU), the upper coding unit (CU) of the current coding unit (CU) and using one or two valid quantization parameters have.
  • a valid first quantization parameter retrieved in the above order can be determined as a quantization parameter predictor, and a valid first quantization parameter is quantized by searching in the order of a left coding unit (CU) and a coding unit (CU) It can be determined as a parameter predictor.
  • the coefficients of the quantized transform block are scanned and converted into one-dimensional quantization coefficients, and the scanning method can be set differently according to the entropy encoding mode.
  • inter-prediction-encoded quantized coefficients can be scanned in a predetermined manner (zigzag or diagonal raster scan), and when encoded by CAVLC, .
  • the scanning method may be determined according to the intra-prediction mode in the case of interlacing, or the intra-prediction mode in the case of intra, and the coefficient scanning method may be determined differently depending on the size of the conversion unit.
  • the scan pattern may vary according to the directional intra prediction mode, and the scan order of the quantization coefficients may be scanned in the reverse direction.
  • the multiplexer 167 multiplexes the motion information encoded by the motion information encoding unit 163 and the residual signals encoded by the residual block encoding unit 166.
  • the motion information may be changed according to the encoding mode.
  • the motion information may include only an index indicating a predictor.
  • the motion information may include a reference picture index, a difference motion vector, and an AMVP index of a current block .
  • the intra prediction unit 150 receives the prediction mode information and the size of the prediction unit PU from the picture division unit 110 and stores the reference pixels in the picture storage unit 110 to determine the intra prediction mode of the prediction unit PU. (180). ≪ / RTI >
  • the intra prediction unit 150 determines whether a reference pixel is generated by examining whether or not a reference pixel that is not available exists, and the reference pixels can be used to determine an intra prediction mode of the current block.
  • pixels adjacent to the upper side of the current block are not defined. If the current block is located at the left boundary of the current picture, pixels adjacent to the left side of the current block are not defined, It can be determined that the pixels are not usable pixels.
  • the current block is located at the slice boundary and the pixels adjacent to the upper side or the left side of the slice are not encoded and reconstructed, it can be determined that they are not usable pixels.
  • the intra prediction mode of the current block may be determined using only available pixels.
  • a reference pixel at an unavailable position may be generated using the available reference pixels of the current block. For example, when pixels of the upper block are not available, , And vice versa.
  • a reference pixel when a reference pixel is generated by copying an available reference pixel at a position closest to a predetermined direction from a reference pixel at an unavailable position, or when there is no reference pixel available in a predetermined direction, A reference pixel can be generated by copying an available reference pixel of the position.
  • the reference pixel may be determined as an unavailable reference pixel according to the encoding mode of the block to which the pixels belong.
  • the pixels can be determined as unavailable pixels.
  • usable reference pixels can be generated using pixels belonging to the restored block by intra-coded blocks adjacent to the current block, and information indicating that the encoding device 10 determines available reference pixels according to the encoding mode To the decryption apparatus 20.
  • the intra prediction unit 150 determines the intra prediction mode of the current block using the reference pixels, and the number of intra prediction modes that can be accepted in the current block may vary according to the size of the block.
  • the current block size is 8x8, 16x16, or 32x32, there may be 34 intra prediction modes. If the current block size is 4x4, 17 intra prediction modes may exist.
  • the 34 or 17 intra prediction modes may be composed of at least one non-directional mode and a plurality of directional modes s.
  • the one or more non-directional modes may be a DC mode and / or a planar mode.
  • the DC mode and the planar mode are included in the non-directional mode, there may be 35 intra-prediction modes regardless of the size of the current block.
  • DC mode and planar mode two non-directional modes (DC mode and planar mode) and 33 directional modes may be included.
  • a prediction block of a current block is predicted using at least one pixel value (or a predicted value of the pixel value, hereinafter referred to as a first reference value) located on the bottom-right side of the current block and reference pixels .
  • the configuration of an image decoding apparatus can be derived from the configuration of the image encoding apparatus 10 described with reference to FIGS. 1 to 6, and for example, as described with reference to FIGS. 1 to 6
  • the image can be decoded by reversing the processes of the same image encoding method.
  • FIG. 7 is a block diagram of a moving picture decoding apparatus according to an embodiment of the present invention.
  • the decoding apparatus 20 includes an entropy decoding unit 210, an inverse quantization / inverse transform unit 220, an adder 270, A de-blocking filter 250, a picture storage unit 260, an intra prediction unit 230, a motion compensation prediction unit 240, and an intra / inter changeover switch 280.
  • the entropy decoding unit 210 receives and decodes the bitstream encoded by the image encoding apparatus 10 and separates the bitstream into an intra prediction mode index, motion information, a quantization coefficient sequence, and the like, and outputs the decoded motion information to a motion compensation prediction unit 240).
  • the entropy decoding unit 210 transfers the intra prediction mode index to the intra prediction unit 230 and the inverse quantization / inverse transformation unit 220, and transmits the inverse quantization coefficient sequence to the inverse quantization / inverse transformation unit 220.
  • the inverse quantization / inverse transform unit 220 transforms the quantized coefficient sequence into a two-dimensional array of inverse quantization coefficients, and can select one of a plurality of scanning patterns for the transformation. For example, the inverse quantization / , Intra prediction or inter prediction) and the intra prediction mode.
  • the inverse quantization / inverse transform unit 220 applies quantization matrices selected from a plurality of quantization matrices to the inverse quantization coefficients of the two-dimensional array to restore the quantization coefficients.
  • the quantization matrix may be selected based on at least one of a prediction mode and an intra prediction mode of the current block with respect to a block of the same size, according to the size of the current block to be restored.
  • the inverse quantization / inverse transform unit 220 inversely transforms the reconstructed quantized coefficients to reconstruct residual blocks, and the inverse transform process may be performed using a transform unit (TU) as a basic unit.
  • TU transform unit
  • the adder 270 combines the residual block reconstructed by the inverse quantization / inverse transform unit 220 and the prediction block generated by the intra prediction unit 230 or the motion compensation prediction unit 240 to reconstruct the image block.
  • the deblocking filter 250 may perform deblocking filter processing on the reconstructed image generated by the adder 270 to reduce deblocking artifacts due to video loss due to the quantization process.
  • the picture storage unit 260 is a frame memory for storing the local decoded picture subjected to the deblocking filter process by the deblocking filter 250.
  • the intraprediction unit 230 restores the intra prediction mode of the current block based on the intra prediction mode index received from the entropy decoding unit 210 and generates a prediction block according to the reconstructed intra prediction mode.
  • the motion compensation prediction unit 240 generates a prediction block for the current block from the picture stored in the picture storage unit 260 based on the motion vector information and applies the interpolation filter selected when the motion compensation with the decimal precision is applied, Can be generated.
  • the intra / inter changeover switch 280 may provide the adder 270 with a prediction block generated in one of the intra prediction unit 230 and the motion compensation prediction unit 240 based on the encoding mode.
  • FIG. 8 is a block diagram of a configuration for performing inter-prediction in the image decoding apparatus 20.
  • the inter-prediction decoder includes a demultiplexer 241, a motion information encoding mode determiner 242, An information decoding unit 243, an AMVP mode motion information decoding unit 244, a prediction block generating unit 245, a residual block decoding unit 246 and a restoration block generating unit 247.
  • the de-multiplexer 241 demultiplexes the currently encoded motion information and the encoded residual signals from the received bit stream, and transmits the demultiplexed motion information to the motion information encoding mode determination unit 242 And transmit the demultiplexed residual signal to the residual block decoding unit 246.
  • the motion information encoding mode determination unit 242 determines the motion information encoding mode of the current block. If the skip_flag of the received bitstream has a value of 1, it is determined that the motion information encoding mode of the current block is encoded in the skip encoding mode can do.
  • the motion information encoding mode determiner 242 determines the motion information encoding mode of the current block Can be determined to be encoded in the merge mode.
  • the motion information encoding mode determination unit 242 determines that the skip_flag of the received bitstream has a value of 0, and the motion information received from the demultiplexer 241 includes the reference picture index, the differential motion vector, and the AMVP index , It can be determined that the motion information encoding mode of the current block is coded in the AMVP mode.
  • the merge mode motion information decoding unit 243 is activated when the motion information encoding mode determining unit 242 determines the motion information encoding mode of the current block as a skip or merge mode and the AMVP mode motion information decoding unit 244 decodes the motion Information encoding mode determination unit 242 determines that the motion information encoding mode of the current block is the AMVP mode.
  • the prediction block generation unit 245 generates a prediction block of the current block using the motion information reconstructed by the merge mode motion information decoding unit 243 or the AMVP mode motion information decoding unit 244.
  • a block corresponding to a position indicated by a motion vector in a picture indicated by a reference picture index may be copied to generate a prediction block of the current block.
  • pixels of the prediction block are generated from the pixels in the integer unit in the picture indicated by the reference picture index.
  • an 8-tap interpolation filter is used for the luminance pixel
  • a prediction pixel can be generated using a 4-tap interpolation filter.
  • the residual block decoding unit 246 entropy-decodes the residual signal, inversely scans the entropy-decoded coefficients to generate a two-dimensional quantized coefficient block, and the inverse scanning method can be changed according to the entropy decoding method.
  • the inverse scanning method can be applied in a zigzag reverse scan method.
  • the inverse scanning method may be determined differently depending on the size of the prediction block.
  • the residual block decoding unit 246 may dequantize the generated coefficient block using an inverse quantization matrix and restore the quantization parameter to derive the quantization matrix.
  • the quantization step size can be restored for each coding unit of a predetermined size or more.
  • the residual block decoding unit 260 inversely transforms the dequantized coefficient block to recover the residual block.
  • the reconstruction block generation unit 270 adds the prediction blocks generated by the prediction block generation unit 250 and the residual blocks generated by the residual block decoding unit 260 to generate reconstruction blocks.
  • the intra-prediction mode of the current block is decoded from the received bitstream.
  • the entropy decoding unit 210 restores the first intra-prediction mode index of the current block by referring to one of the plurality of intra- .
  • One table selected according to the distribution of intra-prediction modes for a plurality of blocks adjacent to the current block may be applied as a table shared by the intra-prediction mode tables encoding apparatus 10 and the decoding apparatus 20 .
  • the first intra prediction mode table of the current block is restored by applying the first intra prediction mode table
  • the second intra prediction mode table may be applied to restore the first intra prediction mode index of the current block.
  • the intra prediction modes of the upper block and the left block of the current block are both the directional intra prediction mode
  • the direction of the intra prediction mode of the upper block and the direction of the intra prediction mode of the left block The first intra prediction mode table of the current block is restored by restoring the first intra prediction mode index of the current block and the second intra prediction mode table of the current block is applied to the first intra prediction mode index .
  • the entropy decoding unit 210 transmits the first intra-prediction mode index of the restored current block to the intra-prediction unit 230.
  • the intraprediction unit 230 receiving the index of the first intraprediction mode can determine the maximum possible mode of the current block as the intra prediction mode of the current block when the index has the minimum value (i.e., when the index is 0) .
  • the intra predictor 230 compares the index indicated by the maximum possible mode of the current block with the first intra prediction mode index, The intra prediction mode corresponding to the second intra prediction mode index obtained by adding 1 to the first intra prediction mode index is determined as the intra prediction mode of the current block if the index is not smaller than the index indicated by the maximum possible mode of the current block.
  • the intra prediction mode corresponding to the first intra prediction mode index may be determined as the intra prediction mode of the current block.
  • the intra prediction mode that is acceptable for the current block may be composed of at least one non-directional mode and a plurality of directional modes s.
  • the one or more non-directional modes may be a DC mode and / or a planar mode.
  • either the DC mode or the planar mode may be adaptively included in the allowable intra prediction mode set.
  • information specifying the non-directional mode included in the allowable intra prediction mode set may be included in the picture header or slice header.
  • the intra predictor 230 rotors the reference pixels stored in the picture storage unit 260, and determines whether there is a reference pixel that is not available.
  • the determination may be made according to the presence or absence of the reference pixels used to generate the intra prediction block by applying the decoded intra prediction mode of the current block.
  • the intra-prediction unit 230 may generate reference pixels at positions that are not available by using previously reconstructed available reference pixels.
  • the definition of a non-available reference pixel and the method of generating a reference pixel may be the same as those of the intra prediction unit 150 shown in FIG. 1, but an intra prediction block may be generated according to a decoded intra prediction mode of the current block
  • the reference pixels used for the reference pixel may be selectively restored.
  • the intra-prediction unit 230 determines whether to apply a filter to the reference pixels to generate a prediction block, i.e., whether to apply filtering to the reference pixels to generate an intra-prediction block of the current block And may be determined based on the decoded intra prediction mode and the size of the current prediction block.
  • the number of prediction modes for filtering the reference pixel can be increased as the size of the block increases. However, if the block is larger than a predetermined size, It may not filter the reference pixel for the reference pixel.
  • the intra predictor 230 filters the reference pixels using a filter.
  • At least two or more filters may be adaptively applied according to the difference in level difference between the reference pixels.
  • the filter coefficient of the filter is preferably symmetrical.
  • the above two or more filters may be adaptively applied according to the size of the current block, and when a filter is applied, a filter having a narrow bandwidth for a block having a small size, a filter having a wide bandwidth for a block having a large size, May be applied.
  • the reference pixel can be adaptively filtered based on the intra-prediction mode of the current block and the size of the prediction block.
  • the intra-prediction unit 230 generates a prediction block using the reference pixel or the filtered reference pixels according to the reconstructed intra-prediction mode, and the generation of the prediction block is the same as the operation in the coding apparatus 10 A detailed description thereof will be omitted.
  • the intraprediction unit 230 may determine whether to filter the generated prediction block, and the filtering may be determined based on the information included in the slice header or the encoding unit header or according to the intra prediction mode of the current block.
  • the intra prediction unit 230 may generate a new pixel by filtering pixels at a specific position of the prediction block generated using the available reference pixels adjacent to the current block .
  • a prediction pixel in contact with reference pixels among prediction pixels may be filtered using a reference pixel in contact with the prediction pixel.
  • the prediction pixels are filtered using one or two reference pixels according to the positions of the prediction pixels, and the filtering of the prediction pixels in the DC mode can be applied to the prediction blocks of all sizes.
  • the prediction pixels adjacent to the left reference pixel among the prediction pixels of the prediction block can be changed using reference pixels other than the upper pixel used to generate the prediction block.
  • the prediction pixels adjacent to the upper reference pixel among the generated prediction pixels may be changed using reference pixels other than the left pixel used to generate the prediction block.
  • the current block can be restored using the predicted block of the current block restored in this manner and the residual block of the decoded current block.
  • FIG. 9 is a view for explaining a second embodiment of a method of dividing and processing an image into blocks.
  • a coding tree unit (CTU) having a maximum size of 256x256 pixels is divided into a quad tree structure and divided into four coding units (CUs) having a square shape.
  • At least one of the coding units divided into the quad tree structure may be divided into two coding units (CUs) having a rectangular shape by being divided into a binary tree structure.
  • CUs coding units
  • At least one of the coding units divided into the quad tree structure may be divided into four coding units (CUs) having a quad tree structure.
  • At least one of the subdivided coding units into the binary tree structure may be divided into two coding units (CUs) having a square or rectangular shape, divided again into a binary tree structure.
  • CUs coding units
  • At least one of the coding units re-divided into the quad-tree structure may be divided into a quad-tree structure or a binary-cry structure and divided into coding units (CUs) having a square or rectangular shape.
  • Coding blocks (CBs) divided into a binary tree structure as described above can be used for prediction and conversion without being further divided. That is, the size of the prediction unit PU and the conversion unit TU belonging to the coding block CB as shown in FIG. 9 may be the same as the size of the coding block CB.
  • the coding unit divided into the quad tree structure can be divided into one or more prediction units (PUs) using the method as described with reference to FIGS.
  • the coding unit divided into the quad tree structure as described above may be divided into one or two or more conversion units (TU) using the method as described with reference to FIG. 5, and the divided conversion unit (TU) Can have a maximum size of 64x64 pixels.
  • FIG. 10 shows an embodiment of a syntax structure used for dividing and processing an image into blocks.
  • the division of a coding unit (CU) as described with reference to FIG. 9 is expressed using split_cu_flag, and the depth of a coding unit (CU) divided using a binary tree is represented using binary_depth It can be done.
  • whether or not the coding unit CU is divided into a binary tree structure may be represented by a separate binary_split_flag.
  • coding unit e.g., a coding unit (CU), a prediction unit (PU), and a conversion unit (TU)
  • PU prediction unit
  • TU conversion unit
  • the coding unit can be divided into conversion units (TU) which are basic units in which a conversion to a residual block is divided into a binary tree structure.
  • TU conversion units
  • At least one of the rectangular coding blocks CB 0 and CB 1 divided into a binary tree structure and having a size of Nx2N or 2NxN is divided into a binary tree structure again to form a square having a size of NxN Conversion units TU 0 and TU 1 .
  • the block-based image encoding method can perform prediction, transformation, quantization, and entropy encoding steps.
  • a prediction signal is generated by referring to a current encoding block and an existing encoded image or a surrounding image, thereby calculating a difference signal with the current block.
  • the differential signal is input to perform conversion using various conversion functions.
  • the converted signal is classified into DC coefficients and AC coefficients and energy compaction is performed to enhance the coding efficiency .
  • quantization is performed by inputting transform coefficients, and then entropy encoding is performed on the quantized signal, so that the image can be encoded.
  • the image decoding method proceeds in the reverse order of the encoding process as described above, and the image quality distortion phenomenon may occur in the quantization step.
  • a cost measurement method such as SAD (Sum of Absolute Difference) or MSE (Mean Square Error)
  • SAD Sum of Absolute Difference
  • MSE Mel Square Error
  • effective encoding can be performed by selectively determining the size or shape of the conversion unit (CU) based on the distribution of the various difference signals and performing the conversion.
  • the DC value generally represents the average value of the input signal. Therefore, when the difference signal as shown in FIG. 12A is received as the input of the conversion process, the coding block CBx is divided into two By dividing into the conversion units (TUs), the DC value can be effectively represented.
  • a square coding unit CU 0 having a size of 2Nx2N is divided into binary tree structures and can be divided into rectangular transformation units TU 0 and TU 1 having a size of Nx2N or 2NxN .
  • the step of dividing the coding unit (CU) into the binary tree structure as described above may be repeatedly performed twice or more to divide it into a plurality of conversion units (TU).
  • a rectangular coding block CB 1 having a size of Nx2N is divided into a binary tree structure, a block having the size of the divided NxN is divided into a binary tree structure again to form N / 2xN or NxN / 2xN or NxN / 2 is further divided into binary tree structures to form square transform units TU 1 (N / 2xN / 2) having a size of N / 2xN / 2, , TU 2 , TU 4 , TU 5 ).
  • a square coding block CB 0 having a size of 2Nx2N is divided into a binary tree structure
  • a block having the size of the divided Nx2N is divided into a binary tree structure
  • a square having a size of NxN may be divided into a binary tree structure and divided into rectangular transform units TU 1 and TU 2 having a size of N / 2xN.
  • a rectangular coding block CB 0 having a size of 2NxN is divided into a binary tree structure, a block having the size of the divided NxN is divided into a quad tree structure again to obtain N / 2xN / 2 (TU 1 , TU 2 , TU 3 , TU 4 ) having a predetermined size.
  • coding unit e.g., a coding unit (CU), a prediction unit (PU), and a conversion unit (TU)
  • PU prediction unit
  • TU conversion unit
  • the picture dividing unit 110 included in the image coding apparatus 10 performs Rate Distortion Optimization (RDO) in accordance with a predetermined order and outputs the division unit CU, the prediction unit PU, The division structure of the unit TU can be determined.
  • RDO Rate Distortion Optimization
  • the picture division unit 110 performs an optimal block division structure in terms of bit rate and distortion while performing Rate distortion Optimization-Quantization (RDO-Q) You can decide.
  • RDO-Q Rate distortion Optimization-Quantization
  • RDO may be performed in order of the 2NxN pixel size conversion unit (PU) division structure shown in (d) to determine the optimum division structure of the conversion unit (PU).
  • the coding unit CU has the form of Nx2N or 2NxN pixel size
  • the pixel size of NxN shown in (b) (x) shown in (e) shown in (e)
  • the picture division unit 110 may use a Sum of Absolute Difference (SAD) or Mean Square Error ), It is possible to maintain a proper efficiency while reducing the complexity.
  • SAD Sum of Absolute Difference
  • Mean Square Error Mean Square Error
  • 19 is a diagram for explaining a reference sample configuration applied with a variation according to an embodiment of the present invention.
  • a value of the outermost pixel A4 of the current block is padded to construct a reference sample, .
  • this hinders the formation of directionality and reduces the accuracy of prediction blocks, resulting in a reduction in encoding / decoding performance.
  • the coding apparatus 10 and the decoding apparatus 20 calculate the change amount of the current or neighboring blocks in correspondence with the region in which the reference encoded / By applying padding to the applied reference sample, it is possible to improve the prediction and coding efficiency more accurately. Accordingly, as shown in FIG. 19B, the change sample padding makes it possible to construct a reference sample of a directionally preserved form, thereby improving encoding / decoding efficiency.
  • 20 to 21 are flowcharts for explaining an intra prediction process according to an embodiment of the present invention.
  • the decoding apparatus 20 processes entropy decoding (step S101), performs inverse quantization / inverse transform processing (step S103), and decodes the inverse transformed block information A prediction information generating process is performed (S105).
  • the decoding apparatus 20 performs correction processing of the prediction information (S107) and performs intra prediction coding using the corrected prediction information (S109).
  • the operation method of the decoding apparatus 20 according to the embodiment of the present invention for generating and correcting prediction information can be processed in the intra prediction unit 230, and more specifically, can be described with reference to FIG. 21 .
  • the intra-prediction unit 230 enters a prediction information generation process (S201), and identifies presence information of a reference decoded reference sample among neighboring blocks of a current block to perform intra-prediction (S203) .
  • the intra predictor 230 performs padding of the reference sample based on the variation amount of the surrounding sample, corresponding to the area in which the reference sample does not exist (S205).
  • the intra prediction unit 230 generates intra prediction information using the padded reference sample (S207).
  • the padding of the reference sample based on the variation amount of the surrounding sample may be processed with the single variation reflection sample padding and the multiple variation reflection sample padding, and may be selectively processed according to the case. This will be described later in more detail.
  • FIG. 22 is a flowchart for explaining a single variation reflection sample generation process according to an embodiment of the present invention
  • FIGS. 23 to 24 are exemplary views of a single variation reflection sample according to an embodiment of the present invention.
  • the intra predictor 230 identifies a reference sample in which there is no previously decoded information (S301), applies a single-axis variation amount of the previously decoded block, And generates a change amount reflection sample generation (S303).
  • the single variation sample padding process may include processing padding by reflecting a single variation amount of the x axis or a single variation amount of the y axis for the reference sample area in which the previously decoded information does not exist .
  • the intra predictor 230 may first determine whether to paddle a single variation reference sample.
  • a reference sample that does not exist can be padded using already existing samples.
  • the reference decoded reference sample when there is no existing sample, if the reference decoded reference sample does not exist in the upper or left side of the current block (only the upper or left sample exists)
  • the upper sample can be used to pad the reference sample.
  • NA # indicates a sample that does not exist, A # . ≪ / RTI >
  • a single variation reflection generation of a reference sample corresponding to a sample (NA d , NL d ) in which there is no previously decoded information can be exemplified as follows.
  • k means the number of existing samples
  • n can mean the number of samples to reflect the change amount, where n can be a constant that can be appropriately adjusted by the size of the current block or the like.
  • padding of reference samples as much as the height of the current block may be required to use a sample in which no information previously decoded exists as a reference block, as shown in FIG.
  • the intra prediction unit 230 may have a relatively small number of samples to be padded, while the number of samples that reflect the variation may increase, resulting in poor correlation. Therefore, the size of n is preferably adjusted to the height of the current block as shown in FIG.
  • the intraprediction unit 230 can determine whether to increase or decrease the nonexistent sample by determining the linearity of the existing sample.
  • the intra predictor 230 can use a condition function as shown in Equation (2) below.
  • Equation (2) may mean that it is determined that the sum of the first pixel and the last pixel of the existing sample, which determines whether a strong filter is used, is determined to be linear when the sum is greater than twice the intermediate pixel.
  • TH is a threshold value, and 0.9 can be exemplified.
  • the single variation-reflected sample padding according to the embodiment of the present invention can be used as a candidate for finding an optimal prediction block in the encoding apparatus 10.
  • an optimal prediction block can be found by concurrently performing the intra-picture prediction according to the present invention and the existing technology.
  • the encoding apparatus 10 can signal (1-bit) the reference sample padding mode flag (Padding Flag) corresponding to the selected reference sample padding method to the decoding apparatus 20.
  • 25 is a flow chart illustrating a selective single variation reflected sample padding process in accordance with an embodiment of the present invention.
  • the intraprediction unit 230 first identifies a reference sample in which there is no previously decoded information (S401), and determines the linearity of neighboring blocks corresponding to the identified block (S403).
  • the intra predictor 230 checks the signaling padding flag from the encoder 10 (S405), and if the padding flag is 1, processes the padding with the single variation reflection sample described above (S407).
  • the intra predictor 230 performs padding in the same manner as the closest sample, in step S409.
  • the intra predictor 230 performs intra prediction decoding processing using the padded reference samples (S411).
  • Such selective padding processing may be performed in parallel with padding of the conventional method, and in some cases, processing of the padding flag may be omitted.
  • the encoding apparatus 10 can perform an in-screen prediction by performing both the existing padding method and the variation-reflected padding to select an efficient method through RD-Cost comparison, and perform 1-bit signaling only when a padding flag is required have.
  • the decoding apparatus 20 it is possible to perform decryption without additional bits in a nonlinear manner by first performing a linear determination before determining a padding flag, and accordingly, the selective padding process can be efficiently handled.
  • FIG. 26 is a flowchart for explaining a multiple change amount reflection sample generation process according to an embodiment of the present invention
  • FIGS. 27 to 28 are illustrations of a multiple change amount reflection sample according to an embodiment of the present invention.
  • the multiple pseudo variation reflected sample generation process is a method in which the sample padding reflects the variation amount of the x axis and the variation amount of the y axis with respect to the reference sample in which the previously decoded information does not exist, (S501), and applying the X-axis and Y-axis variation amounts between the upper right (RA) sample and the right upper (RA) sample to generate a multiple variation amount reflection sample S503).
  • NA and NL can be included in the reference sample array (one-dimensional array).
  • NA # denotes a sample that does not exist
  • a # denotes a sample to be used for padding.
  • 27 shows an example of the upper reference sample, and the sample NL # not present on the left side can also be applied in the same way.
  • the multiple change amount sample padding can be applied when the first and second samples are partially present in the upper and left samples.
  • the intra predictor 230 may generate a RB (Right bottom) sample using RA (Right Above) and LB (Left Bottom) to construct a reference sample in which the previously decoded information does not exist.
  • the multiple change amount sample padding can be applied when neither the upper or left sample exists (only the upper or left sample exists).
  • the intra predictor 230 may process the RA and LB by copying the decoded information to a sample (A4, L2, or the like adjacent thereto) in which the decoded information already exists, or by performing the single variation amount sample padding described above.
  • the upper sample of the already-coded / decoded block is obtained by performing the above-described single variation sample padding, It can be formed by padding a reference sample in which no information exists.
  • the intra predictor 230 may generate an arbitrary RB sample for the multiple change amount sample padding.
  • the RB sample can be obtained by the distance proportional sum of the upper-left sample RA and the right-side sample LA, and the upper sample RA and the left sample LA can be obtained by copying from adjacent samples, And can be generated through a variation reflection padding method.
  • the distance proportional sum can be calculated as shown in Equation (3) below.
  • I (x, y) may represent a pixel value at the (x, y) position.
  • the intra prediction unit 230 may generate a sample reflecting the reference axis variation amount between the RB sample and the upper sample RA.
  • NA and NL can be generated by a distance-proportional weighted sum, as shown in Equation 4 below.
  • the change-reflected padding may be disadvantageous when the variation is irregular without increasing or decreasing because it is affected by the increase or decrease of the existing sample. Therefore, it is possible to determine whether the sample does not exist or not by judging the linearity of the existing sample.
  • the linearity determination may be determined based on a strong filter determination condition or a threshold comparison of Pearson correlation coefficients, as in the case of the single variation reflection sample described above.
  • the multiple change amount reflection sample padding according to the embodiment of the present invention can also be used as a candidate for finding an optimal prediction block in the encoding apparatus 10.
  • an optimal prediction block can be found by concurrently performing the intra-picture prediction according to the present invention and the existing technology.
  • the encoding apparatus 10 can signal the reference sample padding mode flag (Padding Flag) corresponding to the selected reference sample padding method to the decoding apparatus 20.
  • a padding mode flag of at least 1 bit and at most 2 bits can be used.
  • Figure 29 is a flow diagram illustrating a selective single and multiple varying reflected sample padding process in accordance with an embodiment of the present invention.
  • the intra predictor 230 first identifies a reference sample in which there is no previously decoded information (S601), and determines the linearity of neighboring blocks corresponding to the identified block (S603).
  • the intra predictor 230 checks the signaling padding flag from the encoding device 10 (S605), and if the padding flag is 1, processes the padding with the single variation reflection sample described above (S608).
  • the intra prediction unit 230 determines whether the padding mode is 2 (S606). If the padding mode is 2, the intra prediction unit 230 may process the padding with the multiple variation amount reflection sample (S607).
  • the intra predictor 230 performs padding in the same manner as the closest sample, in step S609.
  • the intra predictor 230 performs intra prediction decoding processing using the padded reference sample (S211).
  • Such selective padding processing may be performed in parallel with padding of the conventional method, and in some cases, processing of the padding flag may be omitted.
  • the encoding apparatus 10 can perform an in-frame prediction by performing both the existing padding method and the change amount reflecting padding, and can select an efficient method through RD-cost comparison. If the padding flag is required, 1-bit or 2-bit signaling is performed can do.
  • the decoding apparatus 20 it is possible to perform decryption without additional bits in a nonlinear manner by first performing a linear determination before determining a padding flag, and accordingly, the selective padding process can be efficiently handled.
  • the information signaled from the coding apparatus 10 to the decoding apparatus 20 can be exemplified as follows.
  • Variation Reflection Padding (single, multiple) is performed only in linear case by performing linear judgment first, and if existing padding method is excluded from comparison, 1bit signaling is padding mode,
  • FIGS. 30 and 31 are views for explaining a reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable.
  • the reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable includes a case where all the reference samples that have been decoded exist And at least one or more samples are not present. Accordingly, the variation-reflected sample padding process according to the embodiment of the present invention can be applied until all of the base-decoded reference samples are not present or partially present, and the intra-prediction unit 230 determines a condition for this So that efficient processing can be performed by processing in advance.
  • the method according to the present invention may be implemented as a program for execution on a computer and stored in a computer-readable recording medium.
  • Examples of the computer-readable recording medium include a ROM, a RAM, a CD- , A floppy disk, an optical data storage device, and the like.
  • the computer readable recording medium may be distributed over a networked computer system so that computer readable code can be stored and executed in a distributed manner. And, functional programs, codes and code segments for implementing the above method can be easily inferred by programmers of the technical field to which the present invention belongs.

Abstract

An image processing method according to the present invention comprises: a step for partitioning a picture of an image into a plurality of coding units, which is a base unit on which an inter prediction or an intra prediction is performed; and a step for selectively configuring a prediction mode list for deriving, from an intra prediction direction of a surrounding block adjacent to a block to be decoded, a prediction direction of the block to be decoded, for an intra-predicted unit from among the coding units partitioned, wherein the step for partitioning a picture of an image into a plurality of coding units comprises a step for partitioning the picture or the coding units partitioned into a binary tree structure.

Description

영상 처리 방법, 그를 이용한 영상 복호화 및 부호화 방법Image processing method, image decoding and coding method using the same
본 발명은 영상 부호화 및 복호화에 관한 것이다.The present invention relates to image encoding and decoding.
영상 압축 방법에서는 하나의 픽처(picture)를 소정 크기를 가지는 복수의 블록(block)으로 구분하여 부호화를 수행한다. 또한, 압축 효율을 높이기 위해 픽쳐들 사이의 중복도를 제거하는 인터 예측(inter prediction) 및 인트라 예측(intra prediction) 기술을 이용한다.In the image compression method, a picture is divided into a plurality of blocks each having a predetermined size to perform coding. Further, inter prediction and intra prediction techniques for eliminating redundancy between pictures are used to increase compression efficiency.
이 경우, 인트라 예측과 인터 예측을 이용하여 잔차 신호(residual signal)를 만들며, 잔차 신호를 구하는 이유는 잔차 신호를 가지고 코딩을 했을 때 데이터의 양이 작아서 데이터 압축률이 높아지고, 예측이 좋을수록 잔차 신호의 값이 작게 되기 때문이다.In this case, intra prediction and inter prediction are used to generate a residual signal. The reason why the residual signal is obtained is that when the coding is performed using the residual signal, the amount of data is small, so that the data compression rate is high. Is small.
인트라 예측 방법은 현재 블록의 주변의 픽셀을 이용하여 현재 블록의 데이터를 예측한다. 실제 값과 예측 값의 차이를 잔차 신호 블록이라고 한다. HEVC의 경우는 인트라 예측 방법이 기존 H.264/AVC에서 사용되던 9개의 예측모드에서 35개의 예측모드로 증가하여 더욱 세분화하여 예측을 한다.The intraprediction method predicts the data of the current block by using the pixels around the current block. The difference between the actual value and the predicted value is called a residual signal block. In case of HEVC, the intra prediction method increases to 35 prediction modes in nine prediction modes used in the existing H.264 / AVC, and further subdivided prediction is performed.
인터 예측 방법의 경우는 현재 블록을 주변의 픽쳐들 내의 블록들과 비교하여 가장 비슷한 블록을 찾는다. 이때 찾은 블록에 대한 위치정보(Vx, Vy)를 모션 벡터라고 한다. 현재블록과 모션 벡터에 의하여 예측된 예측블록간의 블록내 화소 값들의 차이를 잔차 신호(residual signal) 블록이라고 한다 (motion-compensated residual block).In the case of the inter prediction method, the current block is compared with the blocks in the neighboring pictures to find the closest block. At this time, the position information (Vx, Vy) of the found block is referred to as a motion vector. The difference between the intra-block pixel values of the current block and the prediction block predicted by the motion vector is called a residual-signal block (motion-compensated residual block).
이와 같이 인트라 예측과 인터 예측이 더 세분화 되어 잔차 신호의 데이터 양이 줄어들고 있으나, 동영상의 처리를 위한 연산량은 크게 증가하였다.In this way, although intra prediction and inter prediction are further refined, the amount of data of the residual signal is decreasing, but the amount of computation for processing a moving image is greatly increased.
특히, 영상 부호화 및 복호화를 위한 픽쳐 내 분할 구조를 결정하는 과정에서의 복잡도 증가량으로 인해 파이프라인 구현 등에 있어서의 어려움이 존재하며, 기존의 블록 분할 방법 및 그에 따라 분할된 블록의 크기가 고해상도 영상의 부호화에는 적합하지 않을 수 있다.Particularly, there is a difficulty in pipeline implementation due to the increase in complexity in the process of determining a intra-picture partitioning structure for image encoding and decoding, and the existing block dividing method and accordingly, It may not be suitable for encoding.
본 발명은 상기와 같은 과제를 해결하기 위한 것으로, 고해상도 영상의 부호화 및 복호화에 적합한 영상 처리 방법, 그를 이용한 영상 복호화 및 부호화 방법을 제공하는데 그 목적이 있다.It is an object of the present invention to provide an image processing method suitable for encoding and decoding a high-resolution image and a method of decoding and encoding the image using the same.
특히, 인트라 예측의 참조 샘플 구성에 있어서, 기 복호화된 참조 샘플이 존재하지 않는 영역에 대하여는 가장 근접한 샘플이 패딩되는 이는 방향성 예측을 저해하는 요소가 되는 바, 이로 인한 부호화 성능 감소를 방지할 수 있는 영상 처리 방법, 그를 이용한 영상 복호화 및 부호화 방법을 제공하는데 그 목적이 있다.Particularly, in the reference sample configuration of the intra prediction, the closest sample is padded to the region in which the base decoded reference sample does not exist, which is an element that hinders the directional prediction. As a result, An image processing method, and a video decoding and coding method using the same.
상기와 같은 과제를 해결하기 위한 본 발명의 일실시예에 따른 영상 처리 방법은, 영상 처리 방법에 있어서, 영상의 픽쳐를 인터 예측(inter prediction) 또는 인트라 예측(intra prediction)이 수행되는 기본 단위인 복수의 코딩 유닛(Coding Unit)들로 분할하는 단계; 상기 분할된 코딩 유닛들 중 인트라 예측된 현재 블록의 유닛에 대해, 인트라 예측에 이용된 참조 샘플을 식별하는 단계; 상기 참조 샘플 중 기 복호화된 정보가 존재하지 않는 참조 샘플에 대하여, 상기 현재 블록의 주변 블록의 변화량이 반영된 패딩 처리를 수행하는 단계; 및 상기 패딩 처리된 참조 샘플에 기초한 인트라 예측 복호화를 수행하는 단계;를 포함한다.According to an aspect of the present invention, there is provided an image processing method for processing a picture of an image, which is a basic unit for performing inter prediction or intra prediction, Dividing into a plurality of coding units (Coding Units); Identifying, for a unit of an intra predicted current block of the divided coding units, a reference sample used for intra prediction; Performing a padding process in which a change amount of a neighboring block of the current block is reflected on a reference sample in which there is no previously decoded information among the reference samples; And performing intra prediction decoding based on the padded reference sample.
본 발명의 일실시예에 따른 영상 복호화 방법은, 부호화된 비트스트림을 입력받는 단계; 상기 입력된 비트스트림에 대해 역양자화 및 역변환을 수행하여 잔차 블록을 획득하는 단계; 인터 예측 또는 인트라 예측을 수행하여 예측 블록을 획득하는 단계; 상기 획득된 잔차 블록과 예측 블록을 합하여 영상을 복원하는 단계를 포함하고, 상기 인터 예측 또는 인트라 예측이 수행되는 기본 단위인 코딩 유닛은 이진 트리 구조를 이용하여 코딩 트리 유닛으로부터 분할된 블록이며, 상기 예측 블록을 획득하는 단계는, 상기 분할된 코딩 유닛들 중 인트라 예측된 현재 블록의 유닛에 대해, 인트라 예측에 이용된 참조 샘플을 식별하는 단계; 및 상기 참조 샘플 중 기 복호화된 정보가 존재하지 않는 참조 샘플에 대하여, 상기 현재 블록의 주변 블록의 변화량이 반영된 패딩 처리를 수행하는 단계; 및 상기 패딩 처리된 참조 샘플에 기초한 인트라 예측 복호화를 수행하여 상기 예측 블록을 획득하는 단계를 포함한다.According to an embodiment of the present invention, there is provided an image decoding method including: receiving an encoded bitstream; Performing inverse quantization and inverse transform on the input bitstream to obtain a residual block; Performing inter-prediction or intra-prediction to obtain a prediction block; And reconstructing an image by summing the obtained residual block and a prediction block, wherein a coding unit, which is a basic unit in which the inter prediction or intra prediction is performed, is a block divided from a coding tree unit using a binary tree structure, Obtaining a prediction block may include identifying a reference sample used for intra prediction for a unit of an intra prediction current block of the divided coding units; And performing a padding process on a reference sample in which there is no previously decoded information of the reference sample, the padding process reflecting a variation amount of a neighboring block of the current block; And performing intra prediction decoding based on the padded reference sample to obtain the prediction block.
한편, 상기한 방법들은 컴퓨터에서 실행시키기 위한 프로그램을 기록한 컴퓨터로 읽을 수 있는 기록매체로 구현될 수 있다.Meanwhile, the above-described methods may be embodied as a computer-readable recording medium on which a program for execution by a computer is recorded.
본 발명의 실시예에 따르면, 인트라 예측의 참조 샘플 구성에 있어서, 기 복호화된 참조 샘플이 존재하지 않는 영역에 대하여, 현재 블록 또는 주변 블록들의 변화량이 적용된 참조 샘플이 구성되도록 함으로써, 보다 정확한 예측을 가능하게 하고, 고해상도 영상에 대한 코딩 효율을 향상시킬 수 있다.According to the embodiment of the present invention, in the reference sample configuration of intra prediction, the reference sample to which the variation amount of the current block or the neighboring blocks is applied is configured for the region in which the base decoded reference sample does not exist, And improve coding efficiency for high resolution images.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치의 구성을 나타내는 블록도이다.1 is a block diagram illustrating a configuration of an image encoding apparatus according to an embodiment of the present invention.
도 2 내지 도 5는 영상을 블록 단위로 분할하여 처리하는 방법에 대한 제1 실시예를 설명하기 위한 도면이다.FIGS. 2 to 5 are diagrams for explaining a first embodiment of a method for dividing and processing an image into blocks.
도 6은 영상 부호화 장치에서 인터 예측을 수행하는 방법에 대한 일실시예를 설명하기 위한 블록도이다.6 is a block diagram for explaining an embodiment of a method of performing inter-prediction in the image encoding apparatus.
도 7은 본 발명의 일실시예에 따른 영상 복호화 장치의 구성을 나타내는 블록도이다.7 is a block diagram illustrating a configuration of an image decoding apparatus according to an embodiment of the present invention.
도 8은 영상 복호화 장치에서 인터 예측을 수행하는 방법에 대한 일실시예를 설명하기 위한 블록도이다.8 is a block diagram for explaining an embodiment of a method of performing inter-prediction in an image decoding apparatus.
도 9는 영상을 블록 단위로 분할하여 처리하는 방법에 대한 제2 실시예를 설명하기 위한 도면이다.FIG. 9 is a diagram for explaining a second embodiment of a method of dividing and processing an image into blocks.
도 10은 영상을 블록 단위로 분할하여 처리하기 위해 사용되는 신택스(syntax) 구조에 대한 일실시예를 나타내는 도면이다.10 is a diagram showing an embodiment of a syntax structure used for dividing and processing an image into blocks.
도 11은 영상을 블록 단위로 분할하여 처리하는 방법에 대한 제3 실시예를 설명하기 위한 도면이다.11 is a diagram for explaining a third embodiment of a method of dividing and processing an image into blocks.
도 12는 코딩 유닛을 이진 트리 구조로 분할하여 변환 유닛을 구성하는 방법에 대한 일실시예를 설명하기 위한 도면이다.12 is a diagram for explaining an embodiment of a method of dividing a coding unit into a binary tree structure to construct a conversion unit.
도 13은 영상을 블록 단위로 분할하여 처리하는 방법에 대한 제4 실시예를 설명하기 위한 도면이다.FIG. 13 is a diagram for explaining a fourth embodiment of a method of dividing and processing an image into blocks.
도 14 내지 도 16은 영상을 블록 단위로 분할하여 처리하는 방법에 대한 또 다른 실시예들을 설명하기 위한 도면들이다.FIGS. 14 to 16 are diagrams for explaining still another embodiment of a method of dividing and processing an image into blocks.
도 17 및 도 18은 RDO(Rate distortion Optimization)를 수행하여 변환 유닛의 분할 구조를 결정하는 방법에 대한 실시예들을 설명하기 위한 도면들이다.FIGS. 17 and 18 are diagrams for explaining embodiments of a method of performing a rate distortion optimization (RDO) to determine a division structure of a conversion unit.
도 19는 본 발명의 실시 예에 따른 변화량 적용된 참조 샘플 구성을 설명하기 위한 도면이다.19 is a diagram for explaining a reference sample configuration applied with a variation according to an embodiment of the present invention.
도 20 내지 도 21은 본 발명의 실시 예에 따른 화면 내 예측 프로세스를 설명하기 위한 흐름도이다.20 to 21 are flowcharts for explaining an intra prediction process according to an embodiment of the present invention.
도 22는 본 발명의 실시 예에 따른 단일 변화량 반영 샘플 생성 프로세스를 설명하기 위한 흐름도이다.22 is a flowchart for explaining a single variation reflection sample generation process according to an embodiment of the present invention.
도 23 내지 도 24는 본 발명의 실시 예에 따른 단일 변화량 반영 샘플의 예시도이다.23 to 24 are illustrations of a single variation amount reflecting sample according to an embodiment of the present invention.
도 25는 본 발명의 실시 예에 따른 선택적 단일 변화량 반영 샘플 패딩 프로세스를 도시한 흐름도이다.25 is a flow chart illustrating a selective single variation reflected sample padding process in accordance with an embodiment of the present invention.
도 26은 본 발명의 실시 예에 따른 다중 변화량 반영 샘플 생성 프로세스를 설명하기 위한 흐름도이다.26 is a flowchart for explaining a multiple change amount reflection sample generation process according to an embodiment of the present invention.
도 27 내지 도 28은 본 발명의 실시 예에 따른 다중 변화량 반영 샘플의 예시도이다.27 to 28 are exemplary diagrams of a multiple change amount reflection sample according to an embodiment of the present invention.
도 29는 본 발명의 실시 예에 따른 선택적 단일 및 다중 변화량 반영 샘플 패딩 프로세스를 도시한 흐름도이다.Figure 29 is a flow diagram illustrating a selective single and multiple varying reflected sample padding process in accordance with an embodiment of the present invention.
도 30 및 도 31은 본 발명의 실시 예에 따른 변화량 반영 샘플 패딩 프로세스가 적용가능한 참조 샘플 부존재 케이스를 설명하기 위한 도면이다.FIGS. 30 and 31 are views for explaining a reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable.
이하, 도면을 참조하여 본 발명의 실시 형태에 대하여 구체적으로 설명한다. 본 명세서의 실시 예를 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 명세서의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.Hereinafter, embodiments of the present invention will be described in detail with reference to the drawings. In the following description of the embodiments of the present invention, a detailed description of known functions and configurations incorporated herein will be omitted when it may make the subject matter of the present disclosure rather unclear.
어떤 구성 요소가 다른 구성 요소에 "연결되어" 있다거나 "접속되어" 있다고 언급된 때에는, 그 다른 구성 요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있으나, 중간에 다른 구성 요소가 존재할 수도 있다고 이해되어야 할 것이다. 아울러, 본 발명에서 특정 구성을 "포함"한다고 기술하는 내용은 해당 구성 이외의 구성을 배제하는 것이 아니며, 추가적인 구성이 본 발명의 실시 또는 본 발명의 기술적 사상의 범위에 포함될 수 있음을 의미한다. It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . In addition, the description of "including" a specific configuration in the present invention does not exclude a configuration other than the configuration, and means that additional configurations can be included in the practice of the present invention or the technical scope of the present invention.
제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component.
또한 본 발명의 실시예에 나타나는 구성부들은 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시되는 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수 개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.In addition, the components shown in the embodiments of the present invention are shown independently to represent different characteristic functions, which does not mean that each component is composed of separate hardware or software constituent units. That is, each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function. The integrated embodiments and separate embodiments of the components are also included within the scope of the present invention, unless they depart from the essence of the present invention.
또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance. The present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.
도 1은 본 발명의 일실시예에 따른 영상 부호화 장치의 구성을 블록도로 도시한 것으로, 영상 부호화 장치(10)는 픽쳐 분할부(110), 변환부(120), 양자화부(130), 스캐닝부(131), 엔트로피 부호화부(140), 인트라 예측부(150), 인터 예측부(160), 역양자화부(135), 역변환부(125), 후처리부(170), 픽쳐 저장부(180), 감산부(190) 및 가산부(195)를 포함한다.FIG. 1 is a block diagram illustrating a configuration of an image encoding apparatus according to an exemplary embodiment of the present invention. The image encoding apparatus 10 includes a picture division unit 110, a transform unit 120, a quantization unit 130, An entropy encoding unit 140, an intra prediction unit 150, an inter prediction unit 160, an inverse quantization unit 135, an inverse transformation unit 125, a post-processing unit 170, a picture storage unit 180 A subtracting unit 190, and an adding unit 195. [
도 1을 참조하면, 픽쳐 분할부(110)는 입력되는 비디오 신호를 분석하여 픽쳐를 코딩 유닛으로 분할하여 예측 모드를 결정하고, 상기 코딩 유닛별로 예측 유닛의 크기를 결정한다.Referring to FIG. 1, a picture dividing unit 110 analyzes an input video signal, divides a picture into coding units to determine a prediction mode, and determines a size of a prediction unit for each coding unit.
또한, 픽쳐 분할부(110)는 부호화할 예측 유닛을 예측 모드(또는 예측 방법)에 따라 인트라 예측부(150) 또는 인터 예측부(160)로 보낸다. 또한, 픽쳐 분할부(110)는 부호화할 예측 유닛을 감산부(190)로 보낸다.The picture division unit 110 also sends the prediction unit to be encoded to the intra prediction unit 150 or the inter prediction unit 160 according to a prediction mode (or a prediction method). Further, the picture division unit 110 sends the prediction unit to be encoded to the subtraction unit 190.
여기서, 영상의 픽쳐(picture)는 복수의 슬라이스로 구성되고, 슬라이스는 픽쳐를 분할하는 기본 단위인 복수의 코딩 트리 유닛(Coding Tree Unit: CTU)들로 분할될 수 있다.Here, a picture of an image is composed of a plurality of slices, and a slice can be divided into a plurality of coding tree units (CTU), which is a basic unit for dividing a picture.
상기 코딩 트리 유닛은 인터 예측(inter prediction) 또는 인트라 예측(intra prediction)이 수행되는 기본 단위인 하나 또는 2 이상의 코딩 유닛(Coding Unit: CU)들로 분할될 수 있다.The coding tree unit may be divided into one or two or more coding units (CUs), which are basic units for performing inter prediction or intra prediction.
코딩 유닛(CU)은 예측이 수행되는 기본 단위인 하나 또는 그 이상의 예측 유닛(Prediction unit: PU)들로 분할될 수 있다.The coding unit (CU) can be divided into one or more prediction units (PU), which are basic units on which prediction is performed.
이 경우, 부호화 장치(10)는 상기 분할된 코딩 유닛(CU)들 각각에 대해 인터 예측과 인트라 예측 중 어느 하나를 예측 방법으로 결정하나, 각각의 예측 유닛(PU)에 대해 서로 다르게 예측 블록을 생성할 수 있다.In this case, the coding apparatus 10 determines one of the inter prediction and intra prediction as the prediction method for each of the divided coding units (CUs), but differently for each prediction unit (PU) Can be generated.
한편, 코딩 유닛(CU)은 잔차 블록(residual block)에 대한 변환이 수행되는 기본 단위인 하나 또는 2 이상의 변환 유닛(Transform Unit: TU)들로 분할될 수 있다.On the other hand, the coding unit CU may be divided into one or two or more Transform Units (TUs), which are basic units for performing a conversion on a residual block.
이 경우, 픽쳐 분할부(110)는 상기와 같이 분할된 블록 단위(예를 들어, 예측 유닛(PU) 또는 변환 유닛(TU))로 영상 데이터를 감산부(190)에 전달할 수 있다.In this case, the picture dividing unit 110 may deliver the image data to the subtracting unit 190 in a block unit (for example, a prediction unit (PU) or a conversion unit (TU)) which is divided as described above.
도 2를 참조하면, 최대 256x256 픽셀 크기를 가지는 코딩 트리 유닛(CTU)는 쿼드 트리(quad tree) 구조로 분할되어, 정사각형의 형태를 가지는 4개의 코딩 유닛(CU)들로 분할될 수 있다.Referring to FIG. 2, a coding tree unit (CTU) having a maximum size of 256x256 pixels may be divided into a quad tree structure and divided into four coding units (CUs) having a square shape.
상기 정사각형의 형태를 가지는 4개의 코딩 유닛(CU)들은 각각 쿼드 트리 구조로 재 분할될 수 있으며, 상기와 같이 쿼드 트리 구조로 분할되는 코딩 유닛(CU)의 깊이(Depth)는 0부터 3 중 어느 하나의 정수 값을 가질 수 있다.Each of the four coding units (CUs) having the square shape can be divided into quad tree structures. The depth of the coding unit (CU) It can have one integer value.
코딩 유닛(CU)은 예측 모드에 따라 하나 또는 2 이상의 예측 유닛(PU)들로 분할될 수 있다.The coding unit (CU) may be divided into one or more prediction units (PU) according to the prediction mode.
인트라 예측 모드의 경우, 코딩 유닛(CU)의 크기가 2Nx2N 일 때, 예측 유닛(PU)은 도 3의 (a)에 도시된 2Nx2N 또는 도 3의 (b)에 도시된 NxN의 크기를 가질 수 있다.In the case of the intra prediction mode, when the size of the coding unit CU is 2Nx2N, the prediction unit PU can have the size of 2Nx2N shown in Fig. 3A or the size of NxN shown in Fig. 3B have.
한편, 인터 예측 모드의 경우, 코딩 유닛(CU)의 크기가 2Nx2N 일 때, 예측 유닛(PU)은 도 4의 (a)에 도시된 2Nx2N, 도 4의 (b)에 도시된 2NxN, 도 4의 (c)에 도시된 Nx2N, 도 4의 (d)에 도시된 NxN, 도 4의 (e)에 도시된 2NxnU, 도 4의 (f)에 도시된 2NxnD, 도 4의 (g)에 도시된 nLx2N 및 도 4의 (h)에 도시된 nRx2N 중 어느 하나의 크기를 가질 수 있다.On the other hand, in the case of the inter prediction mode, when the size of the coding unit CU is 2Nx2N, the prediction unit PU is 2Nx2N shown in Fig. 4A, 2NxN shown in Fig. 4D, 2NxnU shown in FIG. 4E, 2NxnD shown in FIG. 4F, and FIG. 4G shown in FIG. 4G, And nRx2N shown in FIG. 4 (h).
도 5를 참조하면, 코딩 유닛(CU)는 쿼드 트리(quad tree) 구조로 분할되어, 정사각형의 형태를 가지는 4개의 변환 유닛(TU)들로 분할될 수 있다.Referring to FIG. 5, a coding unit (CU) may be divided into a quad tree structure and divided into four transformation units (TUs) having a square shape.
상기 정사각형의 형태를 가지는 4개의 변환 유닛(TU)들은 각각 쿼드 트리 구조로 재 분할될 수 있으며, 상기와 같이 쿼드 트리 구조로 분할되는 변환 유닛(TU)의 깊이(Depth)는 0부터 3 중 어느 하나의 정수 값을 가질 수 있다.Each of the four transformation units TU having the square shape can be divided into quad tree structures. The depth of the transformation unit TU divided into the quad tree structure can be set to any one of 0 to 3 It can have one integer value.
여기서, 코딩 유닛(CU)이 인터 예측 모드인 경우, 해당 코딩 유닛(CU)으로부터 분할된 예측 유닛(PU)와 변환 유닛(TU)은 서로 독립적인 분할 구조를 가질 수 있다.Here, when the coding unit (CU) is in the inter prediction mode, the prediction unit (PU) and the conversion unit (TU) divided from the coding unit (CU) may have a division structure independent of each other.
코딩 유닛(CU)이 인트라 예측 모드인 경우, 해당 코딩 유닛(CU)으로부터 분할된 변환 유닛(TU)은 예측 유닛(PU)의 크기보다 클 수 없다.When the coding unit CU is in the intra prediction mode, the conversion unit TU divided from the coding unit CU can not be larger than the size of the prediction unit PU.
또한, 상기와 같이 분할되는 변환 유닛(TU)은 최대 64x64 픽셀 크기를 가질 수 있다.In addition, the conversion unit TU divided as described above can have a maximum size of 64x64 pixels.
변환부(120)는 입력된 예측 유닛(PU)의 원본 블록과 인트라 예측부(150) 또는 인터 예측부(160)에서 생성된 예측 블록 사이의 잔차 신호인 잔차 블록을 변환하며, 상기 변환은 변환 유닛(TU)을 기본 단위로 하여 수행될 수 있다.The transforming unit 120 transforms the residual block, which is a residual signal between the original block of the input prediction unit PU, and the prediction block generated by the intra prediction unit 150 or the inter prediction unit 160, Unit TU as a basic unit.
상기 변환 과정에서 예측 모드(intra or inter)에 따라 서로 다른 변환 매트릭스가 결정될 수 있으며, 인트라 예측의 잔차 신호는 인트라 예측 모드에 따라 방향성을 가지므로 인트라 예측 모드에 따라 적응적으로 변환 매트릭스가 결정될 수 있다.In the conversion process, different conversion matrices can be determined according to the intra or inter prediction mode. Since the residual signal of the intra prediction has directionality according to the intra prediction mode, the conversion matrix can be adaptively determined according to the intra prediction mode. have.
변환 단위는 2개(수평, 수직)의 1차원 변환 매트릭스에 의해 변환될 수 있으며, 예를 들어 인터 예측의 경우에는 미리 결정된 1개의 변환 매트릭스가 결정될 수 있다.The transformation unit can be transformed by two (horizontal, vertical) one-dimensional transformation matrices, for example in the case of interprediction, one predetermined transformation matrix can be determined.
한편, 인트라 예측의 경우, 인트라 예측 모드가 수평인 경우에는 잔차 블록이 수직방향으로의 방향성을 가질 확률이 높아지므로, 수직방향으로는 DCT 기반의 정수 매트릭스를 적용하고, 수평방향으로는 DST 기반 또는 KLT 기반의 정수 매트릭스를 적용한다. 인트라 예측 모드가 수직인 경우에는 수직방향으로는 DST 기반 또는 KLT 기반의 정수 매트릭스를, 수평 방향으로는 DCT 기반의 정수 매트릭스를 적용할 수 있다.On the other hand, in the case of intra prediction, when the intra prediction mode is horizontal, the probability that the residual block has the directionality in the vertical direction becomes higher. Therefore, the DCT-based integer matrix is applied in the vertical direction and the DST- Apply a KLT-based integer matrix. When the intra prediction mode is vertical, a DST-based or KLT-based integer matrix can be applied in the vertical direction, and a DCT-based integer matrix can be applied in the horizontal direction.
또한, DC 모드의 경우에는 양방향 모두 DCT 기반 정수 매트릭스를 적용할 수 있다.In the case of the DC mode, a DCT-based integer matrix can be applied to both directions.
그리고, 인트라 예측의 경우, 변환 유닛(TU)의 크기에 기초하여 변환 매트릭스가 적응적으로 결정될 수도 있다.And, in the case of intraprediction, the transformation matrix may be adaptively determined based on the size of the transformation unit TU.
양자화부(130)는 상기 변환 매트릭스에 의해 변환된 잔차 블록의 계수들을 양자화하기 위한 양자화 스텝 사이즈를 결정하며, 양자화 스텝 사이즈는 미리 정해진 크기 이상의 양자화 유닛별로 결정될 수 있다.The quantization unit 130 determines a quantization step size for quantizing the coefficients of the residual block transformed by the transform matrix, and the quantization step size can be determined for each quantization unit larger than a predetermined size.
양자화 유닛의 크기는 8x8 또는 16x16일 수 있으며, 양자화부(130)는 양자화 스텝 사이즈 및 예측 모드에 따라 결정되는 양자화 매트릭스를 이용하여 변환 블록의 계수들을 양자화한다.The size of the quantization unit may be 8x8 or 16x16, and the quantization unit 130 quantizes the coefficients of the transform block using the quantization matrix determined according to the quantization step size and the prediction mode.
또한, 양자화부(130)는 현재 양자화 유닛의 양자화 스텝 사이즈 예측자로서 현재 양자화 유닛에 인접한 양자화 유닛의 양자화 스텝 사이즈를 이용할 수 있다.Further, the quantization unit 130 can use the quantization step size of the quantization unit adjacent to the current quantization unit as a quantization step size predictor of the current quantization unit.
양자화부(130)는 현재 양자화 유닛의 좌측 양자화 유닛, 상측 양자화 유닛, 좌상측 양자화 유닛 순서로 검색하여 1개 또는 2개의 유효한 양자화 스텝 사이즈를 이용하여 현재 양자화 유닛의 양자화 스텝 사이즈 예측자를 생성할 수 있다.The quantization unit 130 searches the left quantization unit, the upper quantization unit, and the upper left quantization unit of the current quantization unit in order, and can generate a quantization step size predictor of the current quantization unit using one or two effective quantization step sizes have.
예를 들어, 양자화부(130)는 상기 순서로 검색된 유효한 첫번째 양자화 스텝 사이즈를 양자화 스텝 사이즈 예측자로 결정하거나, 상기 순서로 검색된 유효한 2개의 양자화 스텝 사이즈의 평균값을 양자화 스텝 사이즈 예측자로 결정하거나, 또는 1개의 양자화 스텝 사이즈만이 유효한 경우에는 이를 양자화 스텝 사이즈 예측자로 결정할 수 있다.For example, the quantization unit 130 may determine the valid first quantization step size searched in the above order as a quantization step size predictor, determine an average value of two valid quantization step sizes searched in the above order as a quantization step size predictor, or If only one quantization step size is valid, it can be determined as a quantization step size predictor.
상기 양자화 스텝 사이즈 예측자가 결정되면, 양자화부(130)는 현재 양자화 유닛의 양자화 스텝 사이즈와 양자화 스텝 사이즈 예측자 사이의 차분값을 엔트로피 부호화부(140)로 전송한다.When the quantization step size predictor is determined, the quantization unit 130 transmits the difference value between the quantization step size of the current quantization unit and the quantization step size predictor to the entropy encoding unit 140.
한편, 현재 코딩 유닛의 좌측 코딩 유닛, 상측 코딩 유닛, 좌상측 코딩 유닛 모두가 존재하지 않거나. 또는 최대 코딩 유닛 내의 부호화 순서 상으로 이전에 존재하는 코딩 유닛이 존재할 수 있다.On the other hand, neither the left coding unit, the upper coding unit nor the upper left coding unit of the current coding unit exists. Or there may be a coding unit that was previously present on the coding order within the maximum coding unit.
따라서, 현재 코딩 유닛에 인접한 양자화 유닛들과 상기 최대 코딩 유닛 내에서는 부호화 순서상 바로 이전의 양자화 유닛의 양자화 스텝 사이즈가 후보자가 될 수 있다.Therefore, the quantization step sizes of the quantization units adjacent to the current coding unit and the quantization unit immediately before the coding order in the maximum coding unit can be candidates.
이 경우, 1) 현재 코딩 유닛의 좌측 양자화 유닛, 2) 현재 코딩 유닛의 상측 양자화 유닛, 3) 현재 코딩 유닛의 좌상측 양자화 유닛, 4) 부호화 순서상 바로 이전의 양자화 유닛 순서로 우선순위가 설정될 수 있다. 상기 순서는 바뀔 수 있고, 상기 좌상측 양자화 유닛은 생략될 수도 있다.In this case, 1) the left quantization unit of the current coding unit, 2) the upper quantization unit of the current coding unit, 3) the upper left side quantization unit of the current coding unit, and 4) . The order may be changed, and the upper left side quantization unit may be omitted.
한편, 상기와 같이 양자화된 변환 블록은 역양자화부(135)와 스캐닝부(131)로 전달된다.Meanwhile, the quantized transform block is transferred to the inverse quantization unit 135 and the scanning unit 131.
스캐닝부(131)는 양자화된 변환 블록의 계수들을 스캐닝하여 1차원의 양자화 계수들로 변환하며, 이 경우 양자화 후의 변환 블록의 계수 분포가 인트라 예측 모드에 의존적일 수 있으므로 스캐닝 방식은 인트라 예측 모드에 따라 결정될 수 있다.The scanning unit 131 scans the coefficients of the quantized transform block and converts the coefficients into one-dimensional quantization coefficients. In this case, since the coefficient distribution of the transformed block after quantization may be dependent on the intra prediction mode, Can be determined accordingly.
또한, 계수 스캐닝 방식은 변환 단위의 크기에 따라 달리 결정될 수도 있고, 상기 스캔 패턴은 방향성 인트라 예측 모드에 따라 달라질 수 있으며, 이 경우 양자화 계수들의 스캔 순서는 역방향으로 스캔될 수 있다.Also, the coefficient scanning method may be determined depending on the size of the conversion unit, and the scan pattern may be changed according to the directional intra prediction mode. In this case, the scanning order of the quantization coefficients may be scanned in the reverse direction.
상기 양자화된 계수들이 복수의 서브셋(sub-set)들로 분할된 경우, 각각의 서브셋 내의 양자화 계수들에 동일한 스캔 패턴이 적용될 수 있으며, 서브셋 간의 스캔 패턴은 지그재그 스캔 또는 대각선 스캔이 적용될 수 있다.When the quantized coefficients are divided into a plurality of sub-sets, the same scan pattern may be applied to the quantization coefficients in each sub-set, and a scan pattern between the sub-sets may be zigzag scan or diagonal scan.
한편, 상기 스캔 패턴은 DC를 포함하는 메인 서브셋으로부터 순방향으로 잔여 서브셋들로 스캔하는 것이 바람직하나, 그 역방향도 가능하다.Meanwhile, the scan pattern is preferably scanned from the main subset including the DC to the remaining subset in the forward direction, but the reverse direction is also possible.
또한, 서브셋 내의 양자화된 계수들의 스캔 패턴과 동일하게 서브셋 간의 스캔 패턴을 설정할 수도 있으며, 서브셋 간의 스캔 패턴은 인트라 예측 모드에 따라 결정될 수 있다.In addition, a scan pattern between subset can be set in the same manner as a scan pattern of quantized coefficients in a subset, and a scan pattern between subset can be determined according to an intra prediction mode.
한편, 부호화 장치(10)는 상기 변환 유닛(PU) 내에서 0이 아닌 마지막 양자화 계수의 위치 및 각 서브셋 내의 0이 아닌 마지막 양자화 계수의 위치를 나타낼 수 있는 정보를 비트스트림에 포함시켜 복호화 장치(20)로 전송할 수 있다.On the other hand, the encoding apparatus 10 includes information indicating the position of the last non-zero quantization coefficient in the conversion unit PU and the position of the last non-zero quantization coefficient in each subset, 20).
역양자화부(135)는 상기와 같이 양자화된 양자화 계수를 역양자화하며, 역변환부(125)는 변환 유닛(TU) 단위로 역변환을 수행하여 상기 역양자화된 변환 계수를 공간 영역의 잔차 블록으로 복원할 수 있다.The inverse quantization unit 135 dequantizes the quantized coefficients as described above. The inverse transform unit 125 performs an inverse transform on the basis of the transform unit (TU), restores the inversely quantized transform coefficients into a residual block in the spatial domain can do.
가산기(195)는 상기 역변환부(125)에 의해 복원된 잔차 블록과 인트라 예측부(150) 또는 인터 예측부(160)로부터의 수신된 예측 블록을 합하여 복원 블록을 생성할 수 있다.The adder 195 may generate a reconstruction block by summing the residual block reconstructed by the inverse transformer 125 and the prediction block received from the intra prediction unit 150 or the inter prediction unit 160. [
또한, 후처리부(170)는 복원된 픽쳐에 발생하는 블록킹 효과의 제거하기 위한 디블록킹(deblocking) 필터링 과정, 화소 단위로 원본 영상과의 차이 값을 보완하기 위한 샘플 적응적 오프셋(Sample Adaptive Offset : SAO) 적용 과정 및 코딩 유닛으로 원본 영상과의 차이 값을 보완하기 위한 적응적 루프 필터링(Adaptive Loof Filtering : ALF) 과정을 수행할 수 있다.In addition, the post-processing unit 170 performs a deblocking filtering process to remove a blocking effect generated in the reconstructed picture, a sample adaptive offset (hereinafter, referred to as " sample adaptive offset " SAO) application process and an Adaptive Loop Filtering (ALF) process to compensate a difference value between the original image and a coding unit.
디블록킹 필터링 과정은 미리 정해진 크기 이상의 크기를 갖는 예측 유닛(PU) 또는 변환 유닛(TU)의 경계에 적용될 수 있다.The deblocking filtering process can be applied to a boundary of a prediction unit (PU) or a conversion unit (TU) having a size larger than a predetermined size.
예를 들어, 디블록킹 필터링 과정은, 필터링할 경계(boundary)를 결정하는 단계, 상기 경계에 적용할 경계 필터링 강도(bounary filtering strength)를 결정하는 단계, 디블록킹 필터의 적용 여부를 결정하는 단계, 상기 디블록킹 필터를 적용할 것으로 결정된 경우, 상기 경계에 적용할 필터를 선택하는 단계를 포함할 수 있다.For example, the deblocking filtering process may include determining a boundary to be filtered, determining a bounary filtering strength to be applied to the boundary, determining whether to apply a deblocking filter, And if the deblocking filter is determined to be applied, selecting a filter to be applied to the boundary.
한편, 상기 디블록킹 필터의 적용 여부는 i) 상기 경계 필터링 강도가 0보다 큰지 여부 및 ii) 상기 필터링할 경계에 인접한 2개의 블록(P 블록, Q블록) 경계 부분에서의 화소값들이 변화 정도를 나타내는 값이 양자화 파라미터에 의해 결정되는 제1 기준값보다 작은지 여부에 의해 결정될 수 있다.Whether or not the deblocking filter is applied depends on whether i) the border filtering strength is greater than 0 and ii) whether the pixel values at the boundary of two blocks (P block, Q block) May be determined by whether the value represented is less than a first reference value determined by the quantization parameter.
상기 필터는 적어도 2개 이상인 것이 바람직하다. 블록 경계에 위치한 2개의 화소들간의 차이값의 절대값이 제2 기준값보다 크거나 같은 경우에는 상대적으로 약한 필터링을 수행하는 필터를 선택한다.The filter is preferably at least two or more. If the absolute value of the difference between two pixels located at the block boundary is greater than or equal to the second reference value, a filter that performs relatively weak filtering is selected.
상기 제2 기준값은 상기 양자화 파라미터 및 상기 경계 필터링 강도에 의해 결정된다.And the second reference value is determined by the quantization parameter and the boundary filtering strength.
또한, 샘플 적응적 오프셋(SAO) 적용 과정은 디블록킹 필터가 적용된 영상 내의 화소와 원본 화소 간의 차이값(distortion)을 감소시키기 위한 것으로, 픽쳐 또는 슬라이스 단위로 샘플 적응적 오프셋(SAO) 적용 과정을 수행할지 여부가 결정될 수 있다.In addition, the application of the sample adaptive offset (SAO) process is intended to reduce the distortion between pixels in an image to which a deblocking filter is applied and a source pixel, and a process of applying a sample adaptive offset (SAO) Can be determined.
픽쳐 또는 슬라이스는 복수의 오프셋 영역들로 분할될 수 있고, 각 오프셋 영역별로 오프셋 타입이 결정될 수 있으며, 상기 오프셋 타입은 미리 정해진 개수(예를 들어, 4개)의 에지 오프셋 타입과 2개의 밴드 오프셋 타입을 포함할 수 있다.The picture or slice may be divided into a plurality of offset regions, and an offset type may be determined for each of the offset regions. The offset type may include a predetermined number (for example, four) of edge offset types and two band offsets Type.
예를 들어, 오프셋 타입이 에지 오프셋 타입일 경우, 각 화소가 속하는 에지 타입을 결정하여 이에 대응하는 오프셋을 적용하며, 상기 에지 타입은 현재 화소와 인접하는 2개의 화소값의 분포를 기준으로 결정될 수 있다.For example, when the offset type is an edge offset type, the edge type to which each pixel belongs is determined and the corresponding offset is applied. The edge type can be determined based on the distribution of two pixel values adjacent to the current pixel have.
적응적 루프 필터링(ALF) 과정은 디블록킹 필터링 과정 또는 적응적 오프셋 적용 과정을 거친 복원된 영상과 원본 영상을 비교한 값을 기초로 필터링을 수행할 수 있다.The adaptive loop filtering (ALF) process may perform filtering on the basis of a value obtained by comparing a reconstructed image and an original image through a deblocking filtering process or an adaptive offset applying process.
픽쳐 저장부(180)는 후처리된 영상 데이터를 후처리부(170)로부터 입력받아 픽쳐(picture) 단위로 영상을 복원하여 저장하며, 픽쳐는 프레임 단위의 영상이거나 필드 단위의 영상일 수 있다.The picture storage unit 180 receives the post-processed image data from the post-processing unit 170 and restores and stores the picture in units of pictures. The picture may be a frame-based image or a field-based image.
인터 예측부(160)는 픽쳐 저장부(180)에 저장된 적어도 하나 이상의 참조 픽쳐를 이용하여 움직임 추정을 수행하고, 참조 픽쳐를 나타내는 참조 픽쳐 인덱스 및 움직임 벡터를 결정할 수 있다.The inter-prediction unit 160 may perform motion estimation using at least one reference picture stored in the picture storage unit 180, and may determine a reference picture index and a motion vector indicating a reference picture.
이 경우, 결정된 참조 픽쳐 인덱스 및 움직임 벡터에 따라, 픽쳐 저장부(180)에 저장된 다수의 참조 픽쳐들 중 움직임 추정에 이용된 참조 픽쳐로부터, 부호화하고자 하는 예측 유닛에 대응하는 예측 블록이 추출될 수 있다.In this case, the prediction block corresponding to the prediction unit to be coded can be extracted from the reference picture used for motion estimation among the plurality of reference pictures stored in the picture storage unit 180, according to the determined reference picture index and motion vector have.
인트라 예측부(150)는 현재 예측 유닛이 포함되는 픽처 내부의 재구성된 화소값을 이용하여 인트라 예측 부호화를 수행할 수 있다.The intraprediction unit 150 can perform intraprediction encoding using the reconstructed pixel values in the picture including the current prediction unit.
인트라 예측부(150)는 예측 부호화할 현재 예측 유닛을 입력받아 현재 블록의 크기에 따라 미리 설정된 개수의 인트라 예측 모드 중에 하나를 선택하여 인트라 예측을 수행할 수 있다.The intra prediction unit 150 receives the current prediction unit to be predictively encoded and can perform intra prediction by selecting one of a predetermined number of intra prediction modes according to the size of the current block.
인트라 예측부(150)는 인트라 예측 블록을 생성하기 위해 참조 화소를 적응적으로 필터링하며, 참조 화소가 이용 가능하지 않은 경우 이용 가능한 참조 화소들을 이용하여 참조 화소들을 생성할 수 있다.The intraprediction unit 150 may adaptively filter the reference pixels to generate an intra prediction block, and may generate reference pixels using available reference pixels when the reference pixels are not available.
엔트로피 부호화부(140)는 양자화부(130)에 의해 양자화된 양자화 계수, 인트라 예측부(150)로부터 수신된 인트라 예측 정보, 인터 예측부(160)로부터 수신된 움직임 정보 등을 엔트로피 부호화할 수 있다.The entropy encoding unit 140 may entropy encode quantization coefficients quantized by the quantization unit 130, intra prediction information received from the intra prediction unit 150, motion information received from the inter prediction unit 160, and the like .
도 6은 부호화 장치(10)에서 인터 예측을 수행하는 구성에 대한 일실시예를 블록도로 도시한 것으로, 도시된 인터 예측 부호화기는 움직임 정보 결정부(161), 움직임 정보 부호화 모드 결정부(162), 움직임 정보 부호화부(163), 예측 블록 생성부(164), 잔차 블록 생성부(165), 잔차 블록 부호화부(166) 및 멀티플렉서(167)를 포함하여 구성될 수 있다.6 is a block diagram of an embodiment of a configuration for performing inter-prediction in the encoding apparatus 10. The inter-prediction encoder shown in FIG. 6 includes a motion information determination unit 161, a motion information encoding mode determination unit 162, A motion information coding unit 163, a prediction block generating unit 164, a residual block generating unit 165, a residual block coding unit 166 and a multiplexer 167.
도 6을 참조하면, 움직임 정보 결정부(161)는 현재 블록의 움직임 정보를 결정하며, 움직임 정보는 참조 픽쳐 인덱스와 움직임 벡터를 포함하고, 참조 픽쳐 인덱스는 이전에 부호화되어 복원된 픽쳐 중 어느 하나를 나타낼 수 있다.Referring to FIG. 6, the motion information determination unit 161 determines motion information of a current block, the motion information includes a reference picture index and a motion vector, and the reference picture index includes any one of previously coded and reconstructed pictures Lt; / RTI >
현재 블록이 단방향 인터 예측 부호화되는 경우에는 리스트 0(L0)에 속하는 참조 픽쳐들 중의 어느 하나를 나타내며, 현재 블록이 양방향 예측 부호화되는 경우에는 리스트 0(L0)의 참조 픽쳐들 중 하나를 나타내는 참조 픽쳐 인덱스와 리스트 1(L1)의 참조 픽쳐들 중의 하나를 나타내는 참조 픽쳐 인덱스를 포함할 수 있다.When the current block is unidirectionally predictive-coded, indicates one of the reference pictures belonging to the list 0 (L0). When the current block is bidirectional predictive-coded, the reference picture indicating one of the reference pictures of the list 0 (L0) Index and a reference picture index indicating one of the reference pictures of the list 1 (L1).
또한, 현재 블록이 양방향 예측 부호화되는 경우에는 리스트 0과 리스트 1을 결합하여 생성된 복합 리스트(LC)의 참조 픽쳐들 중의 1개 또는 2개의 픽쳐를 나타내는 인덱스를 포함할 수 있다.In addition, when the current block is bi-directionally predictive-coded, it may include an index indicating one or two pictures among the reference pictures of the composite list LC generated by combining the list 0 and the list 1.
움직임 벡터는 각각의 참조픽쳐 인덱스가 나타내는 픽쳐 내의 예측 블록의 위치를 나타내며, 상기 움직임 벡터는 화소 단위(정수 단위) 또는 서브 화소 단위일 수 있다.The motion vector indicates the position of a prediction block in a picture indicated by each reference picture index, and the motion vector may be a pixel unit (integer unit) or a sub-pixel unit.
예를 들어, 상기 움직임 벡터는 1/2, 1/4, 1/8 또는 1/16 화소의 해상도를 가질 수 있으며, 움직임 벡터가 정수단위가 아닐 경우 예측 블록은 정수 단위의 화소들로부터 생성될 수 있다.For example, the motion vector may have a resolution of 1/2, 1/4, 1/8, or 1/16 pixels, and if the motion vector is not an integer unit, the prediction block may be generated from pixels of an integer unit .
움직임 정보 부호화 모드 결정부(162)는 현재 블록의 움직임 정보에 대한 부호화 모드를 스킵 모드, 머지 모드 및 AMVP 모드 중 어느 하나로 결정할 수 있다.The motion information encoding mode determination unit 162 may determine the encoding mode for the motion information of the current block to be one of a skip mode, a merge mode, and an AMVP mode.
스킵 모드는 현재 블록의 움직임 정보와 동일한 움직임 정보를 갖는 스킵 후보자가 존재하고, 잔차 신호가 0인 경우에 적용되며, 상기 스킵 모드는 예측 유닛(PU)인 현재 블록이 코딩 유닛(CU)과 크기가 같을 때 적용될 수 있다.The skip mode is applied when a skip candidate having motion information the same as the motion information of the current block exists and the residual signal is 0. The skip mode is a mode in which the current block which is the prediction unit (PU) Can be applied.
머지 모드는 현재 블록의 움직임 정보와 동일한 움직임 정보를 갖는 머지 후보자가 존재할 때 적용되며, 상기 머지 모드는 현재 블록이 코딩 유닛(CU)과 크기가 다르거나, 크기가 같을 경우에는 잔차 신호가 존재하는 경우에 적용된다. 한편, 머지 후보자와 스킵 후보자는 동일할 수 있다.The merge mode is applied when there is a merge candidate having the same motion information as the motion information of the current block. The merge mode has a residual signal when the current block is different in size from the coding unit (CU) . On the other hand, the merge candidate and the skip candidate can be the same.
AMVP 모드는 스킵 모드 및 머지 모드가 적용되지 않을 때 적용되며, 현재 블록의 움직임 벡터와 가장 유사한 움직임 벡터를 갖는 AMVP 후보자를 AMVP 예측자로 선택할 수 있다.The AMVP mode is applied when the skip mode and the merge mode are not applied, and the AMVP candidate having the motion vector most similar to the motion vector of the current block can be selected as the AMVP predictor.
움직임 정보 부호화부(163)는 움직임 정보 부호화 모드 결정부(162)에 의해 결정된 방식에 따라 움직임 정보를 부호화할 수 있다.The motion information encoding unit 163 can encode the motion information according to the mode determined by the motion information encoding mode deciding unit 162. [
예를 들어, 움직임 정보 부호화부(163)는 움직임 정보 부호화 모드가 스킵 모드 또는 머지 모드일 경우에는 머지 움직임 벡터 부호화 과정을 수행하며, AMVP 모드일 경우에는 AMVP 부호화 과정을 수행할 수 있다.For example, the motion information encoding unit 163 performs a merge motion vector encoding process when the motion information encoding mode is the skip mode or the merge mode, and performs the AMVP encoding process when the motion information encoding mode is the AMVP mode.
예측 블록 생성부(164)는 현재 블록의 움직임 정보를 이용하여 예측 블록을 생성하며, 움직임 벡터가 정수 단위일 경우 참조 픽쳐 인덱스가 나타내는 픽쳐 내의 움직임 벡터가 나타내는 위치에 대응하는 블록을 복사하여 현재 블록의 예측 블록을 생성한다.When a motion vector is an integer unit, the prediction block generator 164 copies a block corresponding to a position indicated by a motion vector in a picture indicated by a reference picture index, and outputs the current block Lt; / RTI >
한편, 움직임 벡터가 정수 단위가 아닌 경우, 예측 블록 생성부(164)는 참조 픽쳐 인덱스가 나타내는 픽쳐 내의 정수 단위 화소들로부터 예측 블록의 화소들을 생성할 수 있다.On the other hand, when the motion vector is not an integer unit, the prediction block generator 164 can generate the pixels of the prediction block from the integer unit pixels in the picture indicated by the reference picture index.
이 경우, 휘도 화소에 대해 8탭의 보간 필터를 사용하여 예측 화소가 생성되며, 색차 화소에 대해서는 4탭 보간 필터를 사용하여 예측 화소가 생성될 수 있다.In this case, a predictive pixel is generated using an 8-tap interpolation filter for a luminance pixel, and a predictive pixel can be generated using a 4-tap interpolation filter for a chrominance pixel.
잔차 블록 생성부(165)는 현재 블록과 현재 블록의 예측 블록을 이용하여 잔차 블록을 생성하며, 현재 블록의 크기가 2Nx2N인 경우 현재 블록과 현재 블록에 대응하는 2Nx2N 크기의 예측 블록을 이용하여 잔차 블록을 생성할 수 있다.The residual block generating unit 165 generates a residual block using the current block and the current block. If the current block is 2Nx2N, the residual block generating unit 165 generates a residual block using a 2Nx2N- Blocks can be created.
한편, 예측에 이용되는 현재 블록의 크기가 2NxN 또는 Nx2N인 경우, 2Nx2N을 구성하는 2개의 2NxN 블록 각각에 대한 예측 블록을 구한 후, 상기 2개의 2NxN 예측 블록을 이용하여 2Nx2N 크기의 최종 예측 블록이 생성될 수 있다.On the other hand, if the size of the current block used for prediction is 2NxN or Nx2N, a prediction block for each of the 2NxN blocks constituting 2Nx2N is obtained, and a 2Nx2N final prediction block using the 2NxN prediction blocks is obtained Lt; / RTI >
또한, 상기 2Nx2N 크기의 예측 블록을 이용하여 2Nx2N 크기의 잔차 블록이 생성될 수도 있으며, 2NxN 크기를 가지는 2개의 예측 블록들의 경계 부분의 불연속성을 해소하기 위해 경계 부분의 픽셀들에 대해 오버랩 스무딩이 적용될 수 있다.In addition, a residual block of 2Nx2N size may be generated using the 2Nx2N prediction block, and overlap smoothing is applied to the pixels of the boundary portion to solve the discontinuity of the boundary of two prediction blocks having 2NxN size .
잔차 블록 부호화부(166)는 상기 잔차 블록을 하나 이상의 변환 유닛(TU)들로 분할하여, 각각의 변환 유닛(TU)이 변환 부호화, 양자화 및 엔트로피 부호화될 수 있다.The residual block coding unit 166 divides the residual block into one or more conversion units (TU), and each of the conversion units (TU) can be transcoded, quantized, and entropy encoded.
잔차 블록 부호화부(166)는 인터 예측 방법에 의해 생성된 잔차 블록을 정수기반 변환 매트릭스를 이용하여 변환할 수 있으며, 상기 변환 매트릭스는 정수기반 DCT 매트릭스일 수 있다.The residual block coding unit 166 may transform the residual block generated by the inter prediction method using an integer-based transform matrix, and the transform matrix may be an integer-based DCT matrix.
한편, 잔차 블록 부호화부(166)는 변환 매트릭스에 의해 변환된 잔차 블록의 계수들을 양자화하기 위해 양자화 매트릭스를 이용하며, 상기 양자화 매트릭스는 양자화 파라미터에 의해 결정될 수 있다.On the other hand, the residual block coding unit 166 uses a quantization matrix to quantize the coefficients of the residual block transformed by the transformation matrix, and the quantization matrix can be determined by the quantization parameter.
상기 양자화 파라미터는 미리 정해진 크기 이상의 코딩 유닛(CU) 별로 결정되며, 현재 코딩 유닛(CU)이 상기 미리 정해진 크기보다 작은 경우 상기 미리 정해진 크기 내의 코딩 유닛(CU)들 중 부호화 순서상 첫번째 코딩 유닛(CU)의 양자화 파라미터만을 부호화하고 나머지 코딩 유닛(CU)의 양자화 파라미터는 상기 파라미터와 동일하므로 부호화하지 않을 수 있다.Wherein the quantization parameter is determined for each coding unit (CU) of a predetermined size or more, and when the current coding unit (CU) is smaller than the predetermined size, the coding unit (CU) CU) and the quantization parameters of the remaining coding units (CUs) are the same as those of the above-mentioned parameters, and thus can not be encoded.
또한, 상기 양자화 파라미터 및 예측 모드에 따라 결정되는 양자화 매트릭스를 이용하여 상기 변환 블록의 계수들이 양자화될 수 있다.In addition, coefficients of the transform block may be quantized using a quantization matrix determined according to the quantization parameter and the prediction mode.
상기 미리 정해진 크기 이상의 코딩 유닛(CU) 별로 결정되는 양자화 파라미터는 현재 코딩 유닛(CU)에 인접한 코딩 유닛(CU)의 양자화 파라미터를 이용하여 예측 부호화될 수 있다.The quantization parameter determined for each coding unit (CU) larger than the predetermined size can be predictively encoded using the quantization parameter of the coding unit (CU) adjacent to the current coding unit (CU).
현재 코딩 유닛(CU)의 좌측 코딩 유닛(CU), 상측 코딩 유닛(CU) 순서로 검색하여 유효한 1개 또는 2개의 유효한 양자화 파라미터를 이용하여 현재 코딩 유닛(CU)의 양자화 파라미터 예측자를 생성할 수 있다.A quantization parameter predictor of the current coding unit (CU) can be generated by searching in the order of the left coding unit (CU), the upper coding unit (CU) of the current coding unit (CU) and using one or two valid quantization parameters have.
예를 들어, 상기 순서로 검색된 유효한 첫번째 양자화 파라미터를 양자화 파라미터 예측자로 결정할 수 있으며, 또한 좌측 코딩 유닛(CU), 부호화 순서상 바로 이전의 코딩 유닛(CU) 순으로 검색하여 유효한 첫번째 양자화 파라미터를 양자화 파라미터 예측자로 결정할 수 있다.For example, a valid first quantization parameter retrieved in the above order can be determined as a quantization parameter predictor, and a valid first quantization parameter is quantized by searching in the order of a left coding unit (CU) and a coding unit (CU) It can be determined as a parameter predictor.
양자화된 변환 블록의 계수들은 스캐닝되어 1차원의 양자화 계수들로 변환되며, 스캐닝 방식은 엔트로피 부호화 모드에 따라 다르게 설정될 수 있다.The coefficients of the quantized transform block are scanned and converted into one-dimensional quantization coefficients, and the scanning method can be set differently according to the entropy encoding mode.
예를 들어, CABAC으로 부호화될 경우 인터 예측 부호화된 양자화 계수들은 미리 정해진 하나의 방식(지그재그, 또는 대각선 방향으로의 래스터 스캔)으로 스캐닝될 수 있으며, CAVLC으로 부호화될 경우 상기 방식과 다른 방식으로 스캐닝될 수 있다.For example, when encoded by CABAC, inter-prediction-encoded quantized coefficients can be scanned in a predetermined manner (zigzag or diagonal raster scan), and when encoded by CAVLC, .
예를 들어, 스캐닝 방식이 인터의 경우에는 지그재그, 인트라의 경우에는 인트라 예측 모드에 따라 결정될 수 있으며, 계수 스캐닝 방식은 변환 단위의 크기에 따라 상이하게 결정될 수도 있다.For example, the scanning method may be determined according to the intra-prediction mode in the case of interlacing, or the intra-prediction mode in the case of intra, and the coefficient scanning method may be determined differently depending on the size of the conversion unit.
한편, 상기 스캔 패턴은 방향성 인트라 예측 모드에 따라 달라질 수 있으며, 양자화 계수들의 스캔 순서는 역방향으로 스캔될 수 있다.Meanwhile, the scan pattern may vary according to the directional intra prediction mode, and the scan order of the quantization coefficients may be scanned in the reverse direction.
멀티플렉서(167)는 상기 움직임 정보 부호화부(163)에 의해 부호화된 움직임 정보들과 상기 잔차 블록 부호화부(166)에 의해 부호화된 잔차 신호들을 다중한다.The multiplexer 167 multiplexes the motion information encoded by the motion information encoding unit 163 and the residual signals encoded by the residual block encoding unit 166.
상기 움직임 정보는 부호화 모드에 따라 달라질 수 있으며, 예를 들어 스킵 또는 머지일 경우에는 예측자를 나타내는 인덱스만을 포함하고, AMVP일 경우 현재 블록의 참조 픽쳐 인덱스, 차분 움직임 벡터 및 AMVP 인덱스를 포함할 수 있다.The motion information may be changed according to the encoding mode. For example, in the case of skip or merge, the motion information may include only an index indicating a predictor. In case of AMVP, the motion information may include a reference picture index, a difference motion vector, and an AMVP index of a current block .
이하, 도 1에 도시된 인트라 예측부(150)의 동작에 대한 일실시예를 상세히 설명하기로 한다.Hereinafter, an embodiment of the operation of the intra predictor 150 shown in FIG. 1 will be described in detail.
먼저, 인트라 예측부(150)는 픽쳐 분할부(110)로부터 예측 모드 정보 및 예측 유닛(PU)의 크기를 수신하며, 예측 유닛(PU)의 인트라 예측 모드를 결정하기 위해 참조 화소를 픽쳐 저장부(180)로부터 읽어들일 수 있다.The intra prediction unit 150 receives the prediction mode information and the size of the prediction unit PU from the picture division unit 110 and stores the reference pixels in the picture storage unit 110 to determine the intra prediction mode of the prediction unit PU. (180). ≪ / RTI >
인트라 예측부(150)는 이용 가능하지 않은 참조 화소가 존재하는지 여부를 검토하여 참조 화소 생성 여부를 판단하며, 상기 참조 화소들은 현재 블록의 인트라 예측 모드를 결정하는데 사용될 수 있다.The intra prediction unit 150 determines whether a reference pixel is generated by examining whether or not a reference pixel that is not available exists, and the reference pixels can be used to determine an intra prediction mode of the current block.
현재 블록이 현재 픽쳐의 상측 경계에 위치하는 경우에는 현재 블록의 상측에 인접한 화소들이 정의되지 않고, 현재 블록이 현재 픽쳐의 좌측 경계에 위치하는 경우에는 현재 블록의 좌측에 인접한 화소들이 정의되지 않으며, 상기 화소들은 이용 가능한 화소들이 아닌 것으로 판단될 수 있다.If the current block is located at the upper boundary of the current picture, pixels adjacent to the upper side of the current block are not defined. If the current block is located at the left boundary of the current picture, pixels adjacent to the left side of the current block are not defined, It can be determined that the pixels are not usable pixels.
또한, 현재 블록이 슬라이스 경계에 위치하여 슬라이스의 상측 또는 좌측에 인접하는 화소들이 먼저 부호화되어 복원되는 화소들이 아닌 경우에도 이용 가능한 화소들이 아닌 것으로 판단될 수 있다.Also, even if the current block is located at the slice boundary and the pixels adjacent to the upper side or the left side of the slice are not encoded and reconstructed, it can be determined that they are not usable pixels.
상기와 같이 현재 블록의 좌측 또는 상측에 인접한 화소들이 존재하지 않거나, 미리 부호화되어 복원된 화소들이 존재하지 않는 경우, 이용 가능한 화소들만을 이용하여 현재 블록의 인트라 예측 모드가 결정될 수도 있다.As described above, if there are no pixels adjacent to the left or upper side of the current block, or if there are no pixels that have been previously coded and reconstructed, the intra prediction mode of the current block may be determined using only available pixels.
한편, 현재 블록의 이용 가능한 참조 화소들을 이용하여 이용 가능하지 않은 위치의 참조 화소가 생성될 수도 있으며, 예를 들어 상측 블록의 화소들이 이용 가능하지 않은 경우 좌측 화소들의 일부 또는 전부를 이용하여 상측 화소들을 생성할 수 있고, 그 역으로도 가능하다.On the other hand, a reference pixel at an unavailable position may be generated using the available reference pixels of the current block. For example, when pixels of the upper block are not available, , And vice versa.
즉, 이용 가능하지 않은 위치의 참조 화소로부터 미리 정해진 방향으로 가장 가까운 위치의 이용 가능한 참조 화소를 복사하여 참조 화소가 생성되거나, 미리 정해진 방향에 이용 가능한 참조 화소가 존재하지 않는 경우 반대 방향의 가장 가까운 위치의 이용 가능한 참조 화소를 복사하여 참조 화소가 생성될 수 있다.That is, when a reference pixel is generated by copying an available reference pixel at a position closest to a predetermined direction from a reference pixel at an unavailable position, or when there is no reference pixel available in a predetermined direction, A reference pixel can be generated by copying an available reference pixel of the position.
한편, 현재 블록의 상측 또는 좌측 화소들이 존재하는 경우에도 상기 화소들이 속하는 블록의 부호화 모드에 따라 이용 가능하지 않은 참조 화소로 결정될 수 있다.On the other hand, even if the upper or left pixels of the current block exist, the reference pixel may be determined as an unavailable reference pixel according to the encoding mode of the block to which the pixels belong.
예를 들어, 현재 블록의 상측에 인접한 참조 화소가 속하는 블록이 인터 부호화되어 복원된 블록일 경우, 상기 화소들을 이용 가능하지 않은 화소들로 판단할 수 있다.For example, if the block to which the reference pixel adjacent to the upper side of the current block belongs is inter-coded to be the reconstructed block, the pixels can be determined as unavailable pixels.
이 경우, 현재 블록에 인접한 블록이 인트라 부호화되어 복원된 블록에 속하는 화소들을 이용하여 이용 가능한 참조 화소들이 생성될 수 있으며, 부호화 장치(10)가 부호화 모드에 따라 이용 가능한 참조 화소를 판단한다는 정보를 복호화 장치(20)로 전송한다.In this case, usable reference pixels can be generated using pixels belonging to the restored block by intra-coded blocks adjacent to the current block, and information indicating that the encoding device 10 determines available reference pixels according to the encoding mode To the decryption apparatus 20.
인트라 예측부(150)는 상기 참조 화소들을 이용하여 현재 블록의 인트라 예측 모드를 결정하며, 현재 블록에 허용 가능한 인트라 예측 모드의 수는 블록의 크기에 따라 달라질 수 있다.The intra prediction unit 150 determines the intra prediction mode of the current block using the reference pixels, and the number of intra prediction modes that can be accepted in the current block may vary according to the size of the block.
예를 들어, 현재 블록의 크기가 8x8, 16x16, 32x32인 경우에는 34개의 인트라 예측 모드가 존재할 수 있고, 현재 블록의 크기가 4x4인 경우에는 17개의 인트라 예측 모드가 존재할 수 있다.For example, if the current block size is 8x8, 16x16, or 32x32, there may be 34 intra prediction modes. If the current block size is 4x4, 17 intra prediction modes may exist.
상기 34개 또는 17개의 인트라 예측 모드는 적어도 하나 이상의 비방향성 모드(비 directional 모드)와 복수개의 방향성 모드들(directional 모드s)로 구성될 수 있다.The 34 or 17 intra prediction modes may be composed of at least one non-directional mode and a plurality of directional modes s.
하나 이상의 비방향성 모드는 DC 모드 및/또는 플래너(planar) 모드일수 있다. DC 모드 및 플래너모드가 비방향성 모드로 포함되는 경우에는, 현재 블록의 크기에 관계없이 35개의 인트라 예측 모드가 존재할 수도 있다.The one or more non-directional modes may be a DC mode and / or a planar mode. When the DC mode and the planar mode are included in the non-directional mode, there may be 35 intra-prediction modes regardless of the size of the current block.
이 경우, 2개의 비방향성 모드(DC 모드 및 플래너 모드)와 33개의 방향성 모드가 포함될 수 있다.In this case, two non-directional modes (DC mode and planar mode) and 33 directional modes may be included.
플래너 모드의 경우, 현재 블록의 우하측(bottom-right)에 위치하는 적어도 하나의 화소값(또는 상기 화소값의 예측값, 이하 제1 참조값이라 함)과 참조 화소들을 이용하여 현재 블록의 예측 블록이 생성된다.In the planar mode, a prediction block of a current block is predicted using at least one pixel value (or a predicted value of the pixel value, hereinafter referred to as a first reference value) located on the bottom-right side of the current block and reference pixels .
본 발명의 일실시예에 따른 영상 복호화 장치의 구성은 도 1 내지 도 6을 참조하여 설명한 영상 부호화 장치(10)의 구성으로부터 도출될 수 있으며, 예를 들어 도 1 내지 도 6을 참조하여 설명한 바와 같은 영상 부호화 방법의 과정들을 역으로 수행함으로써 영상을 복호화할 수 있다.The configuration of an image decoding apparatus according to an embodiment of the present invention can be derived from the configuration of the image encoding apparatus 10 described with reference to FIGS. 1 to 6, and for example, as described with reference to FIGS. 1 to 6 The image can be decoded by reversing the processes of the same image encoding method.
도 7은 본 발명의 일실시예에 따른 동영상 복호화 장치의 구성을 블록도로 도시한 것으로, 복호화 장치(20)는 엔트로피 복호화부(210), 역양자화/역변환부(220), 가산기(270), 디블록킹 필터(250), 픽쳐 저장부(260), 인트라 예측부(230), 움직임 보상 예측부(240) 및 인트라/인터전환 스위치(280)를 구비한다.FIG. 7 is a block diagram of a moving picture decoding apparatus according to an embodiment of the present invention. The decoding apparatus 20 includes an entropy decoding unit 210, an inverse quantization / inverse transform unit 220, an adder 270, A de-blocking filter 250, a picture storage unit 260, an intra prediction unit 230, a motion compensation prediction unit 240, and an intra / inter changeover switch 280.
엔트로피 복호화부(210)는, 영상 부호화 장치(10)에서 부호화된 비트 스트림을 입력받아 복호화하여 인트라 예측 모드 인덱스, 움직임 정보, 양자화 계수 시퀀스 등으로 분리하며, 복호화된 움직임 정보를 움직임 보상 예측부(240)로 전달한다.The entropy decoding unit 210 receives and decodes the bitstream encoded by the image encoding apparatus 10 and separates the bitstream into an intra prediction mode index, motion information, a quantization coefficient sequence, and the like, and outputs the decoded motion information to a motion compensation prediction unit 240).
엔트로피 복호화부(210)는 인트라 예측 모드 인덱스를 인트라 예측부(230)와 역양자화/역변환부(220)로 전달하여, 역양자화 계수 시퀀스를 역양자화/역변환부(220)로 전달한다.The entropy decoding unit 210 transfers the intra prediction mode index to the intra prediction unit 230 and the inverse quantization / inverse transformation unit 220, and transmits the inverse quantization coefficient sequence to the inverse quantization / inverse transformation unit 220.
역양자화/역변환부(220)는 상기 양자화 계수 시퀀스를 2차원 배열의 역양자화 계수로 변환하며, 상기 변환을 위해 복수의 스캐닝 패턴들 중 하나를 선택할 수 있으며 예를 들어 현재 블록의 예측 모드(즉, 인트라 예측 또는 인터 예측)와 인트라 예측 모드에 기초하여 스캐닝 패턴을 선택할 수 있다.The inverse quantization / inverse transform unit 220 transforms the quantized coefficient sequence into a two-dimensional array of inverse quantization coefficients, and can select one of a plurality of scanning patterns for the transformation. For example, the inverse quantization / , Intra prediction or inter prediction) and the intra prediction mode.
역양자화/역변환부(220)는 2차원 배열의 역양자화 계수에 대해 복수의 양자화 매트릭스들 중에서 선택된 양자화 매트릭스를 적용하여 양자화 계수를 복원한다.The inverse quantization / inverse transform unit 220 applies quantization matrices selected from a plurality of quantization matrices to the inverse quantization coefficients of the two-dimensional array to restore the quantization coefficients.
한편, 복원하고자 하는 현재 블록의 크기에 따라 서로 다른 양자화 매트릭스가 적용되며, 동일 크기의 블록에 대해서도 상기 현재 블록의 예측 모드 및 인트라 예측 모드 중 적어도 하나에 기초하여 양자화 매트릭스가 선택될 수 있다.The quantization matrix may be selected based on at least one of a prediction mode and an intra prediction mode of the current block with respect to a block of the same size, according to the size of the current block to be restored.
역양자화/역변환부(220)는 상기 복원된 양자화 계수를 역변환하여 잔차 블록을 복원하며, 상기 역변환 과정은 변환 유닛(TU)을 기본 단위로 하여 수행될 수 있다.The inverse quantization / inverse transform unit 220 inversely transforms the reconstructed quantized coefficients to reconstruct residual blocks, and the inverse transform process may be performed using a transform unit (TU) as a basic unit.
가산기(270)는 역양자화/역변환부(220)에 의해 복원된 잔차 블록과 인트라 예측부(230) 또는 움직임 보상 예측부(240)에 의해 생성되는 예측 블록을 합하여 영상 블록을 복원한다.The adder 270 combines the residual block reconstructed by the inverse quantization / inverse transform unit 220 and the prediction block generated by the intra prediction unit 230 or the motion compensation prediction unit 240 to reconstruct the image block.
디블록킹 필터(250)는 가산기(270)에 의해 생성된 복원 영상에 디블록킹 필터 처리를 수행하여, 양자화 과정에 따른 영상 손실에 기인하는 디블록킹 아티펙트를 감소시킬 수 있다.The deblocking filter 250 may perform deblocking filter processing on the reconstructed image generated by the adder 270 to reduce deblocking artifacts due to video loss due to the quantization process.
픽쳐 저장부(260)는 디블록킹 필터(250)에 의해 디블록킹 필터 처리가 수행된 로컬 복호 영상을 저장하기 위한 프레임 메모리이다.The picture storage unit 260 is a frame memory for storing the local decoded picture subjected to the deblocking filter process by the deblocking filter 250. [
인트라 예측부(230)는 엔트로피 복호화부(210)로부터 수신된 인트라 예측 모드 인덱스에 기초하여 현재 블록의 인트라 예측 모드를 복원하고, 복원된 인트라 예측 모드에 따라 예측 블록을 생성한다.The intraprediction unit 230 restores the intra prediction mode of the current block based on the intra prediction mode index received from the entropy decoding unit 210 and generates a prediction block according to the reconstructed intra prediction mode.
움직임 보상 예측부(240)는 움직임 벡터 정보에 기초하여 픽쳐 저장부(260)에 저장된 픽쳐로부터 현재 블록에 대한 예측 블록을 생성하며, 소수 정밀도의 움직임 보상이 적용될 경우 선택된 보간 필터를 적용하여 예측 블록을 생성할 수 있다.The motion compensation prediction unit 240 generates a prediction block for the current block from the picture stored in the picture storage unit 260 based on the motion vector information and applies the interpolation filter selected when the motion compensation with the decimal precision is applied, Can be generated.
인트라/인터 전환 스위치(280)는 부호화 모드에 기초하여 인트라 예측부(230)와 움직임 보상 예측부(240)의 어느 하나에서 생성된 예측 블록을 가산기(270)에 제공할 수 있다.The intra / inter changeover switch 280 may provide the adder 270 with a prediction block generated in one of the intra prediction unit 230 and the motion compensation prediction unit 240 based on the encoding mode.
도 8는 영상 복호화 장치(20)에서 인터 예측을 수행하는 구성에 대한 일실시예를 블록도로 도시한 것으로, 인터 예측 복호화기는 디멀티플렉서(241), 움직임 정보 부호화 모드 판단부(242), 머지 모드 움직임 정보 복호화부(243), AMVP 모드 움직임 정보 복호화부(244), 예측블록 생성부(245), 잔차 블록 복호화부(246) 및 복원블록 생성부(247)를 포함한다.FIG. 8 is a block diagram of a configuration for performing inter-prediction in the image decoding apparatus 20. The inter-prediction decoder includes a demultiplexer 241, a motion information encoding mode determiner 242, An information decoding unit 243, an AMVP mode motion information decoding unit 244, a prediction block generating unit 245, a residual block decoding unit 246 and a restoration block generating unit 247.
도 8을 참조하면, 디-멀티플렉서(241)는 수신된 비트스트림으로부터 현재 부호화된 움직임 정보와 부호화된 잔차 신호들을 역다중화하여, 역다중화된 움직임 정보를 움직임 정보 부호화 모드 판단부(242)로 전송하고, 역다중화된 잔차신호를 잔차블록 복호화부(246)로 전송할 수 있다.8, the de-multiplexer 241 demultiplexes the currently encoded motion information and the encoded residual signals from the received bit stream, and transmits the demultiplexed motion information to the motion information encoding mode determination unit 242 And transmit the demultiplexed residual signal to the residual block decoding unit 246.
움직임 정보 부호화 모드 판단부(242)는 현재 블록의 움직임 정보 부호화 모드를 판단하며, 수신된 비트스트림의 skip_flag가 1의 값을 갖는 경우 현재 블록의 움직임 정보 부호화 모드가 스킵 부호화 모드로 부호화된 것으로 판단할 수 있다.The motion information encoding mode determination unit 242 determines the motion information encoding mode of the current block. If the skip_flag of the received bitstream has a value of 1, it is determined that the motion information encoding mode of the current block is encoded in the skip encoding mode can do.
움직임 정보 부호화 모드 판단부(242)는 수신된 비트스트림의 skip_flag가 0의 값을 갖고, 디-멀티블렉서(241)로부터 수신된 움직임 정보가 머지 인덱스만을 갖는 경우, 현재 블록의 움직임 정보 부호화 모드가 머지 모드로 부호화된 것으로 판단할 수 있다.When the skip_flag of the received bitstream has a value of 0 and the motion information received from the de-multiplexer 241 has only a merge index, the motion information encoding mode determiner 242 determines the motion information encoding mode of the current block Can be determined to be encoded in the merge mode.
또한, 움직임 정보 부호화 모드 판단부(242)는 수신된 비트스트림의 skip_flag가 0의 값을 갖고, 디멀티블렉서(241)로부터 수신된 움직임 정보가 참조 픽쳐 인덱스와 차분 움직임 벡터와 AMVP인덱스를 갖는 경우, 현재 블록의 움직임 정보 부호화 모드가 AMVP 모드로 부호화된 것으로 판단할 수 있다.Also, the motion information encoding mode determination unit 242 determines that the skip_flag of the received bitstream has a value of 0, and the motion information received from the demultiplexer 241 includes the reference picture index, the differential motion vector, and the AMVP index , It can be determined that the motion information encoding mode of the current block is coded in the AMVP mode.
머지 모드 움직임 정보 복호화부(243)는 움직임 정보 부호화 모드 판단부(242)가 현재 블록의 움직임 정보 부호화 모드를 스킵 또는 머지 모드로 판단한 경우에 활성화되며, AMVP 모드 움직임 정보 복호화부(244)는 움직임 정보 부호화 모드 판단부(242)가 현재 블록의 움직임 정보 부호화 모드를 AMVP 모드로 판단한 경우에 활성화될 수 있다.The merge mode motion information decoding unit 243 is activated when the motion information encoding mode determining unit 242 determines the motion information encoding mode of the current block as a skip or merge mode and the AMVP mode motion information decoding unit 244 decodes the motion Information encoding mode determination unit 242 determines that the motion information encoding mode of the current block is the AMVP mode.
예측블록 생성부(245)는 머지 모드 움직임 정보 복호화부(243) 또는 AMVP 모드 움직임 정보 복호화부(244)에 의해 복원된 움직임 정보를 이용하여 현재 블록의 예측 블록을 생성한다.The prediction block generation unit 245 generates a prediction block of the current block using the motion information reconstructed by the merge mode motion information decoding unit 243 or the AMVP mode motion information decoding unit 244. [
움직임 벡터가 정수 단위일 경우, 참조 픽쳐 인덱스가 나타내는 픽쳐 내의 움직임 벡터가 나타내는 위치에 대응하는 블록을 복사하여 현재 블록의 예측 블록이 생성될 수 있다.When a motion vector is an integer unit, a block corresponding to a position indicated by a motion vector in a picture indicated by a reference picture index may be copied to generate a prediction block of the current block.
한편, 움직임 벡터가 정수 단위가 아닐 경우, 참조 픽쳐 인덱스가 나타내는 픽쳐 내의 정수 단위 화소들로부터 예측 블록의 화소들이 생성되며, 이 경우 휘도 화소의 경우에는 8탭의 보간 필터를 사용하고 색차 화소의 경우 4탭 보간 필터를 사용하여 예측 화소가 생성될 수 있다.On the other hand, when the motion vector is not an integer unit, pixels of the prediction block are generated from the pixels in the integer unit in the picture indicated by the reference picture index. In this case, an 8-tap interpolation filter is used for the luminance pixel, A prediction pixel can be generated using a 4-tap interpolation filter.
잔차 블록 복호화부(246)는 잔차 신호를 엔트로피 복호화하고, 엔트로피 복호화된 계수들을 역스캐닝하여 2차원의 양자화된 계수 블록을 생성하며, 역스캐닝 방식은 엔트로피 복호화 방식에 따라 달라질 수 있다.The residual block decoding unit 246 entropy-decodes the residual signal, inversely scans the entropy-decoded coefficients to generate a two-dimensional quantized coefficient block, and the inverse scanning method can be changed according to the entropy decoding method.
예를 들어, CABAC 기반으로 복호화된 경우 대각선 방향의 래스터 역스캔 방식으로, CAVLC 기반으로 복호화된 경우에는 지그재그 역스캔 방식으로 상기 역스캐닝 방식이 적용될 수 있다. 또한, 예측 블록의 크기에 따라 상기 역스캐닝 방식이 상이하게 결정될 수도 있다.For example, in case of decoding based on CABAC, raster inverse scanning method in diagonal direction, and in case of decoding based on CAVLC, the inverse scanning method can be applied in a zigzag reverse scan method. In addition, the inverse scanning method may be determined differently depending on the size of the prediction block.
잔차블록 복호화부(246)는 상기와 같이 생성된 계수블록을 역양자화 매트릭스를 이용하여 역양자화하며, 상기 양자화 매트릭스를 유도하기 위해 양자화 파리미터를 복원할 수 있다. 여기서, 양자화 스텝 사이즈는 미리 정해진 크기 이상의 코딩 유닛별로 복원될 수 있다.The residual block decoding unit 246 may dequantize the generated coefficient block using an inverse quantization matrix and restore the quantization parameter to derive the quantization matrix. Here, the quantization step size can be restored for each coding unit of a predetermined size or more.
잔차블록 복호화부(260)는 상기 역양자화된 계수 블록을 역변환하여 잔차블록을 복원한다.The residual block decoding unit 260 inversely transforms the dequantized coefficient block to recover the residual block.
복원블록 생성부(270)는 상기 예측블록 생성부(250)에 의해 생성된 예측 블록과 상기 잔차블록 복호화부(260)에 의하여 생성된 잔차 블록을 더하여 복원 블록을 생성한다.The reconstruction block generation unit 270 adds the prediction blocks generated by the prediction block generation unit 250 and the residual blocks generated by the residual block decoding unit 260 to generate reconstruction blocks.
이하, 현재 블록을 인트라 예측을 통해 복원하는 과정에 대한 일실시예를 도 7을 다시 참조하여 설명한다.Hereinafter, an embodiment of a process of restoring a current block through intraprediction will be described with reference to FIG.
먼저, 수신된 비트스트림으로부터 현재 블록의 인트라 예측 모드가 복호화되며, 그를 위해 엔트로피 복호화부(210)는 복수의 인트라 예측 모드 테이블들 중 하나를 참조하여 현재 블록의 제1 인트라 예측 모드 인덱스를 복원할 수 있다.First, the intra-prediction mode of the current block is decoded from the received bitstream. To this end, the entropy decoding unit 210 restores the first intra-prediction mode index of the current block by referring to one of the plurality of intra- .
상기 복수의 인트라 예측 모드 테이블들 부호화 장치(10)와 복호화 장치(20)가 공유하는 테이블로서, 현재 블록에 인접한 복수 블록들에 대한 인트라 예측 모드의 분포에 따라 선택된 어느 하나의 테이블이 적용될 수 있다.One table selected according to the distribution of intra-prediction modes for a plurality of blocks adjacent to the current block may be applied as a table shared by the intra-prediction mode tables encoding apparatus 10 and the decoding apparatus 20 .
예를 들어, 현재 블록의 좌측 블록의 인트라 예측 모드와 현재 블록의 상측 블록의 인트라 예측 모드가 동일하면 제1 인트라 예측 모드 테이블을 적용하여 현재 블록의 제 1 인트라 예측 모드 인덱스를 복원하고, 동일하지 않으면 제2 인트라 예측 모드 테이블을 적용하여 현재 블록의 제 1 인트라 예측 모드 인덱스를 복원할 수 있다.For example, if the intra prediction mode of the left block of the current block is the same as the intra prediction mode of the upper block of the current block, the first intra prediction mode table of the current block is restored by applying the first intra prediction mode table, The second intra prediction mode table may be applied to restore the first intra prediction mode index of the current block.
또 다른 예로써, 현재 블록의 상측 블록과 좌측 블록의 인트라 예측 모드가 모두 방향성 예측 모드(directional intra prediction 모드)일 경우, 상기 상측 블록의 인트라 예측 모드의 방향과 상기 좌측 블록의 인트라 예측 모드의 방향이 소정 각도 이내이면 제 1 인트라 예측 모드 테이블을 적용하여 현재 블록의 제 1 인트라 예측 모드 인덱스를 복원하고, 소정 각도를 벗어나면 제2 인트라 예측 모드 테이블을 적용하여 현재 블록의 제 1 인트라 예측 모드 인덱스를 복원할 수도 있다.As another example, when the intra prediction modes of the upper block and the left block of the current block are both the directional intra prediction mode, the direction of the intra prediction mode of the upper block and the direction of the intra prediction mode of the left block The first intra prediction mode table of the current block is restored by restoring the first intra prediction mode index of the current block and the second intra prediction mode table of the current block is applied to the first intra prediction mode index .
엔트로피 복호화부(210)는 복원된 현재 블록의 제1 인트라 예측 모드 인덱스를 인트라 예측부(230)로 전송한다.The entropy decoding unit 210 transmits the first intra-prediction mode index of the restored current block to the intra-prediction unit 230.
제1 인트라 예측 모드를 인덱스를 수신한 인트라 예측부(230)는, 상기 인덱스가 최소값을 가질 경우(즉, 0일 경우), 현재 블록의 최대 가능 모드를 현재 블록의 인트라 예측 모드로 결정할 수 있다.The intraprediction unit 230 receiving the index of the first intraprediction mode can determine the maximum possible mode of the current block as the intra prediction mode of the current block when the index has the minimum value (i.e., when the index is 0) .
한편, 인트라 예측부(230)는, 상기 인덱스가 0 이외의 값을 가질 경우, 현재 블록의 최대 가능 모드가 나타내는 인덱스와 상기 제1 인트라 예측 모드 인덱스를 비교하고, 비교 결과 상기 제1 인트라 예측 모드 인덱스가 상기 현재 블록의 최대 가능 모드가 나타내는 인덱스보다 작지 않으면 상기 제1 인트라 예측 모드 인덱스에 1을 더한 제2 인트라 예측 모드 인덱스에 대응하는 인트라 예측 모드를 현재 블록의 인트라 예측 모드로 결정하고, 그렇지 않으면 상기 제1 인트라 예측 모드 인덱스에 대응하는 인트라 예측 모드를 현재 블록의 인트라 예측 모드로 결정할 수 있다.Meanwhile, if the index has a value other than 0, the intra predictor 230 compares the index indicated by the maximum possible mode of the current block with the first intra prediction mode index, The intra prediction mode corresponding to the second intra prediction mode index obtained by adding 1 to the first intra prediction mode index is determined as the intra prediction mode of the current block if the index is not smaller than the index indicated by the maximum possible mode of the current block. The intra prediction mode corresponding to the first intra prediction mode index may be determined as the intra prediction mode of the current block.
현재 블록에 허용 가능한 인트라 예측 모드는 적어도 하나 이상의 비방향성 모드(비 directional 모드)와 복수 개의 방향성 모드들(directional 모드s)로 구성될 수 있다.The intra prediction mode that is acceptable for the current block may be composed of at least one non-directional mode and a plurality of directional modes s.
하나 이상의 비방향성 모드는 DC 모드 및/또는 플래너(planar) 모드일수 있다. 또한, DC 모드와 플래너 모드 중 어느 하나가 적응적으로 상기 허용 가능한 인트라 예측 모드 셋에 포함될 수 있다.The one or more non-directional modes may be a DC mode and / or a planar mode. In addition, either the DC mode or the planar mode may be adaptively included in the allowable intra prediction mode set.
이를 위해, 픽쳐 헤더 또는 슬라이스 헤더에 상기 허용 가능한 인트라 예측 모드 셋에 포함되는 비방향성 모드를 특정하는 정보가 포함될 수 있다.To this end, information specifying the non-directional mode included in the allowable intra prediction mode set may be included in the picture header or slice header.
다음으로, 인트라 예측부(230)는 인트라 예측 블록을 생성하기 위해, 참조 화소들을 픽쳐 저장부(260)로터 읽어들이고, 이용 가능하지 않은 참조 화소가 존재하는지 여부를 판단한다.Next, in order to generate an intra prediction block, the intra predictor 230 rotors the reference pixels stored in the picture storage unit 260, and determines whether there is a reference pixel that is not available.
상기 판단은 현재 블록의 복호된 인트라 예측 모드를 적용하여 인트라 예측 블록을 생성하는데 이용되는 참조 화소들의 존재 여부에 따라 행해질 수도 있다.The determination may be made according to the presence or absence of the reference pixels used to generate the intra prediction block by applying the decoded intra prediction mode of the current block.
다음으로, 인트라 예측부(230)는 참조 화소를 생성할 필요가 있을 경우에는 미리 복원된 이용 가능한 참조 화소들을 이용하여 이용 가능하지 않은 위치의 참조 화소들을 생성할 수 있다.Next, when it is necessary to generate a reference pixel, the intra-prediction unit 230 may generate reference pixels at positions that are not available by using previously reconstructed available reference pixels.
이용 가능하지 않은 참조 화소에 대한 정의 및 참조 화소의 생성 방법은 도 1에 따른 인트라 예측부(150)에서의 동작과 동일할 수 있으나, 현재 블록의 복호화된 인트라 예측 모드에 따라 인트라 예측 블록을 생성하는데 이용되는 참조 화소들이 선택적으로 복원될 수도 있다.The definition of a non-available reference pixel and the method of generating a reference pixel may be the same as those of the intra prediction unit 150 shown in FIG. 1, but an intra prediction block may be generated according to a decoded intra prediction mode of the current block The reference pixels used for the reference pixel may be selectively restored.
또한, 인트라 예측부(230)는 예측 블록을 생성하기 위해 참조 화소들에 필터를 적용할지 여부를 판단하며, 즉 현재 블록의 인트라 예측 블록을 생성하기 위하여 참조 화소들에 대해 필터링을 적용할지 여부를 상기 복호된 인트라 예측 모드 및 현재 예측 블록의 크기에 기초하여 결정할 수 있다.In addition, the intra-prediction unit 230 determines whether to apply a filter to the reference pixels to generate a prediction block, i.e., whether to apply filtering to the reference pixels to generate an intra-prediction block of the current block And may be determined based on the decoded intra prediction mode and the size of the current prediction block.
블록킹 아티펙트의 문제는 블록의 크기가 커질수록 커지므로, 블록의 크기가 커질수록 참조 화소를 필터링하는 예측모드의 수를 증가시킬 수 있으나, 블록이 소정 크기보다 커지는 경우 평탄한 영역으로 볼 수 있으므로 복잡도 감소를 위해 참조 화소를 필터링하지 않을 수도 있다.Since the problem of the blocking artifact increases as the size of the block increases, the number of prediction modes for filtering the reference pixel can be increased as the size of the block increases. However, if the block is larger than a predetermined size, It may not filter the reference pixel for the reference pixel.
상기 참조 화소에 필터 적용이 필요하다고 판단된 경우, 인트라 예측부(230)는 필터를 이용하여 상기 참조 화소들을 필터링한다.If it is determined that the filter needs to be applied to the reference pixel, the intra predictor 230 filters the reference pixels using a filter.
상기한 참조 화소들 간의 단차의 차이 정도에 따라 적어도 2개 이상의 필터를 적응적으로 적용할 수도 있다. 상기 필터의 필터계수는 대칭적인 것이 바람직하다.At least two or more filters may be adaptively applied according to the difference in level difference between the reference pixels. The filter coefficient of the filter is preferably symmetrical.
또한, 상기한 2개 이상의 필터가 현재 블록의 크기에 따라 적응적으로 적용될 수도 있으며, 필터를 적용할 경우 크기가 작은 블록에 대해서는 대역폭이 좁은 필터가, 크기가 큰 블록들에 대해서는 대역폭이 넓은 필터가 적용될 수도 있다.In addition, the above two or more filters may be adaptively applied according to the size of the current block, and when a filter is applied, a filter having a narrow bandwidth for a block having a small size, a filter having a wide bandwidth for a block having a large size, May be applied.
DC 모드의 경우에는 참조 화소들의 평균값으로 예측 블록이 생성되므로 필터를 적용할 필요가 없으며, 상이 수직 방향으로 연관성(correlation)이 있는 수직 모드에서는 참조 화소에 필터를 적용할 필요가 없고, 영상이 수평 방향으로 연관성이 있는 수평 모드에서도 참조 화소에 필터를 적용할 필요가 없을 수 있다.In the DC mode, since a prediction block is generated by an average value of reference pixels, there is no need to apply a filter. In a vertical mode in which correlation is vertical, there is no need to apply a filter to a reference pixel. It may not be necessary to apply the filter to the reference pixel even in the horizontal mode which is related to the direction.
이와 같이, 필터링의 적용 여부는 현재 블록의 인트라 예측 모드와도 연관성이 있으므로, 현재 블록의 인트라 예측 모드 및 예측 블록의 크기에 기초하여 참조 화소를 적응적으로 필터링할 수 있다.Since the filtering is applied to the intra-prediction mode of the current block, the reference pixel can be adaptively filtered based on the intra-prediction mode of the current block and the size of the prediction block.
다음으로, 인트라 예측부(230)는 상기 복원된 인트라 예측 모드에 따라 참조 화소 또는 필터링된 참조 화소들을 이용하여 예측 블록을 생성하며, 상기 예측 블록의 생성은 부호화 장치(10)에서의 동작과 동일할 수 있으므로, 그에 대한 상세한 설명은 생략하기로 한다.Next, the intra-prediction unit 230 generates a prediction block using the reference pixel or the filtered reference pixels according to the reconstructed intra-prediction mode, and the generation of the prediction block is the same as the operation in the coding apparatus 10 A detailed description thereof will be omitted.
인트라 예측부(230)는 상기 생성된 예측 블록을 필터링할지 여부를 판단하며, 상기 필터링 여부는 슬라이스 헤더 또는 부호화 유닛 헤더에 포함된 정보를 이용하거나 또는 현재 블록의 인트라 예측 모드에 따라 결정될 수 있다.The intraprediction unit 230 may determine whether to filter the generated prediction block, and the filtering may be determined based on the information included in the slice header or the encoding unit header or according to the intra prediction mode of the current block.
상기 생성된 예측 블록을 필터링할 것으로 판단할 경우, 인트라 예측부(230)는 현재 블록에 인접한 이용 가능한 참조 화소들을 이용하여 생성된 예측 블록의 특정 위치의 화소를 필터링하여 새로운 화소를 생성할 수 있다.If it is determined that the generated prediction block is to be filtered, the intra prediction unit 230 may generate a new pixel by filtering pixels at a specific position of the prediction block generated using the available reference pixels adjacent to the current block .
예를 들어, DC 모드에서는 예측 화소들 중 참조 화소들과 접하는 예측 화소는 상기 예측 화소와 접하는 참조 화소를 이용하여 필터링될 수 있다.For example, in the DC mode, a prediction pixel in contact with reference pixels among prediction pixels may be filtered using a reference pixel in contact with the prediction pixel.
따라서, 예측 화소의 위치에 따라 1개 또는 2개의 참조 화소를 이용하여 예측 화소가 필터링되며, DC 모드에서의 예측 화소의 필터링은 모든 크기의 예측 블록에 적용할 수 있다.Accordingly, the prediction pixels are filtered using one or two reference pixels according to the positions of the prediction pixels, and the filtering of the prediction pixels in the DC mode can be applied to the prediction blocks of all sizes.
한편, 수직 모드에서는 예측 블록의 예측 화소들 중 좌측 참조 화소와 접하는 예측 화소들은 상기 예측블록을 생성하는데 이용되는 상측 화소 이외의 참조 화소들을 이용하여 변경될 수 있다.On the other hand, in the vertical mode, the prediction pixels adjacent to the left reference pixel among the prediction pixels of the prediction block can be changed using reference pixels other than the upper pixel used to generate the prediction block.
마찬가지로, 수평 모드에서는 생성된 예측 화소들 중 상측 참조 화소와 접하는 예측 화소들은 상기 예측블록을 생성하는데 이용되는 좌측 화소 이외의 참조 화소들을 이용하여 변경될 수 있다.Likewise, in the horizontal mode, the prediction pixels adjacent to the upper reference pixel among the generated prediction pixels may be changed using reference pixels other than the left pixel used to generate the prediction block.
이와 같은 방식으로 복원된 현재 블록의 예측 블록과 복호화한 현재 블록의 잔차 블록을 이용하여 현재 블록이 복원될 수 있다.The current block can be restored using the predicted block of the current block restored in this manner and the residual block of the decoded current block.
도 9는 영상을 블록 단위로 분할하여 처리하는 방법에 대한 제2 실시예를 설명하기 위한 도시한 것이다.FIG. 9 is a view for explaining a second embodiment of a method of dividing and processing an image into blocks.
도 9를 참조하면, 최대 256x256 픽셀 크기를 가지는 코딩 트리 유닛(CTU)은 먼저 쿼드 트리(quad tree) 구조로 나뉘어, 정사각형의 형태를 가지는 4개의 코딩 유닛(CU)들로 분할될 수 있다.Referring to FIG. 9, a coding tree unit (CTU) having a maximum size of 256x256 pixels is divided into a quad tree structure and divided into four coding units (CUs) having a square shape.
여기서, 상기 쿼드 트리 구조로 분할된 코딩 유닛들 중 적어도 하나는 이진 트리(bunary tree) 구조로 나뉘어, 직사각형의 형태를 가지는 2개의 코딩 유닛(CU)들로 재 분할될 수 있다.At least one of the coding units divided into the quad tree structure may be divided into two coding units (CUs) having a rectangular shape by being divided into a binary tree structure.
한편, 상기 쿼드 트리 구조로 분할된 코딩 유닛들 중 적어도 하나는 쿼드 트리 구조로 나뉘어, 정사각형의 형태를 가지는 4개의 코딩 유닛(CU)들로 재 분할될 수도 있다.At least one of the coding units divided into the quad tree structure may be divided into four coding units (CUs) having a quad tree structure.
그리고 상기 이진 트리 구조로 재 분할된 코딩 유닛들 중 적어도 하나는 이진 트리 구조로 다시 나뉘어, 정사각형 또는 직사각형의 형태를 가지는 2개의 코딩 유닛(CU)들로 분할될 수 있다.And at least one of the subdivided coding units into the binary tree structure may be divided into two coding units (CUs) having a square or rectangular shape, divided again into a binary tree structure.
한편, 상기 쿼드 트리 구조로 재 분할된 코딩 유닛들 중 적어도 하나는 쿼드 트리 구조 또는 이진 크리 구조로 다시 나뉘어, 정사각형 또는 직사각형의 형태를 가지는 코딩 유닛(CU)들로 분할될 수도 있다.At least one of the coding units re-divided into the quad-tree structure may be divided into a quad-tree structure or a binary-cry structure and divided into coding units (CUs) having a square or rectangular shape.
상기와 같이 이진 트리 구조로 분할되어 구성된 코딩 블록(Coding Block : CB)들은, 더 이상 분할되지 않고, 예측 및 변환에 이용될 수 있다. 즉, 도 9에 도시된 바와 같은 코딩 블록(CB)에 속하는 예측 유닛(PU)과 변환 유닛(TU)의 크기는, 해당 코딩 블록(CB)의 크기와 동일할 수 있다.Coding blocks (CBs) divided into a binary tree structure as described above can be used for prediction and conversion without being further divided. That is, the size of the prediction unit PU and the conversion unit TU belonging to the coding block CB as shown in FIG. 9 may be the same as the size of the coding block CB.
상기와 같이 쿼드 트리 구조로 분할된 코딩 유닛은 도 3 및 도 4를 참조하여 설명한 바와 같은 방법을 이용하여 하나 또는 2 이상의 예측 유닛(PU)들로 분할될 수 있다.As described above, the coding unit divided into the quad tree structure can be divided into one or more prediction units (PUs) using the method as described with reference to FIGS.
또한, 상기와 같이 쿼드 트리 구조로 분할된 코딩 유닛은 도 5를 참조하여 설명한 바와 같은 방법을 이용하여 하나 또는 2 이상의 변환 유닛(TU)들로 분할될 수 있으며, 상기 분할된 변환 유닛(TU)은 최대 64x64 픽셀 크기를 가질 수 있다.In addition, the coding unit divided into the quad tree structure as described above may be divided into one or two or more conversion units (TU) using the method as described with reference to FIG. 5, and the divided conversion unit (TU) Can have a maximum size of 64x64 pixels.
도 10은 영상을 블록 단위로 분할하여 처리하기 위해 사용되는 신택스(syntax) 구조에 대한 일실시예를 나타내는 것이다.FIG. 10 shows an embodiment of a syntax structure used for dividing and processing an image into blocks.
도 10을 참조하면, 도 9를 참조하여 설명한 바와 같은 코딩 유닛(CU)의 분할 여부는 split_cu_flag를 이용하여 나타내어 지며, 이진 트리를 이용하여 분할되는 코딩 유닛(CU)의 깊이는 binary_depth를 이용하여 나타내어질 수 있다.Referring to FIG. 10, the division of a coding unit (CU) as described with reference to FIG. 9 is expressed using split_cu_flag, and the depth of a coding unit (CU) divided using a binary tree is represented using binary_depth It can be done.
또한, 코딩 유닛(CU)이 이진 트리 구조로 분할되는지 여부는 별도의 binary_split_flag로 나타내어 질 수도 있다.In addition, whether or not the coding unit CU is divided into a binary tree structure may be represented by a separate binary_split_flag.
도 9 및 도 10을 참조하여 설명한 바와 같은 방법에 의해 분할된 블록들(예를 들어, 코딩 유닛(CU), 예측 유닛(PU) 및 변환 유닛(TU))에 대해 도 1 내지 도 8을 참조하여 설명한 바와 같은 방법들이 적용됨으로써, 영상에 대한 부호화 및 복호화가 수행될 수 있다.1 to 8 for blocks (e.g., a coding unit (CU), a prediction unit (PU), and a conversion unit (TU)) divided by a method as described with reference to Figs. 9 and 10 The encoding and decoding of the image can be performed by applying the methods as described above.
이하에서는, 도 11 내지 도 16을 참조하여, 코딩 유닛(CU)을 하나 또는 2 이상의 변환 유닛(TU)들로 분할하는 방법에 대한 또 다른 실시예들을 설명하기로 한다.Hereinafter, with reference to Figs. 11 to 16, still another embodiment of a method of dividing a coding unit (CU) into one or two or more conversion units (TU) will be described.
본 발명의 실시예에 따르면, 코딩 유닛(CU)은 이진 트리 구조로 나뉘어 잔차 블록에 대한 변환이 수행되는 기본 단위인 변환 유닛(TU)들로 분할될 수 있다.According to the embodiment of the present invention, the coding unit (CU) can be divided into conversion units (TU) which are basic units in which a conversion to a residual block is divided into a binary tree structure.
도 11을 참조하면, 이진 트리 구조로 분할되어 Nx2N 또는 2NxN의 크기를 가지는 직사각형의 코딩 블록들(CB0, CB1) 중 적어도 하나는, 다시 이진 트리 구조로 나뉘어, NxN의 크기를 가지는 정사각형의 변환 유닛들(TU0, TU1)로 분할될 수 있다.11, at least one of the rectangular coding blocks CB 0 and CB 1 divided into a binary tree structure and having a size of Nx2N or 2NxN is divided into a binary tree structure again to form a square having a size of NxN Conversion units TU 0 and TU 1 .
상기한 바와 같이, 블록 기반의 영상 부호화 방법은, 예측, 변환, 양자화 및 엔트로피 부호화 단계들을 수행할 수 있다.As described above, the block-based image encoding method can perform prediction, transformation, quantization, and entropy encoding steps.
상기 예측 단계에서는, 현재 부호화를 수행하는 블록과 기존의 부호화된 영상 또는 주변 영상을 참조하여 예측 신호를 생성하며, 이를 통해 현재 블록과의 차분 신호를 계산할 수 있다.In the prediction step, a prediction signal is generated by referring to a current encoding block and an existing encoded image or a surrounding image, thereby calculating a difference signal with the current block.
한편, 변환 단계에서는, 상기 차분 신호를 입력으로 하여 다양한 변환 함수를 이용하여 변환을 수행하며, 상기 변환된 신호는 DC 계수와 AC 계수들로 분류되 에너지 집중(Energy compaction)되어 부호화 효율이 향상될 수 있다.Meanwhile, in the conversion step, the differential signal is input to perform conversion using various conversion functions. The converted signal is classified into DC coefficients and AC coefficients and energy compaction is performed to enhance the coding efficiency .
또한, 양자화 단계에서는 변환 계수(Transform coefficient)들을 입력으로 양자화가 수행하며, 이후 양자화된 신호에 대해 엔트로피 부호화가 수행됨으로써 영상이 부호화될 수 있다.Also, in the quantization step, quantization is performed by inputting transform coefficients, and then entropy encoding is performed on the quantized signal, so that the image can be encoded.
한편, 영상 복호화 방법은 상기와 같은 부호화 과정의 역순으로 진행되며, 영상의 화질 왜곡 현상이 양자화 단계에서 발생할 수 있다.On the other hand, the image decoding method proceeds in the reverse order of the encoding process as described above, and the image quality distortion phenomenon may occur in the quantization step.
부호화 효율을 향상시키면서 화질 왜곡 현상을 줄이기 위한 방법으로서, 변환 단계에서 입력으로 들어오는 차분 신호의 분포 및 영상의 특징에 따라 변환 유닛(TU)의 크기 또는 모양과 적용되는 변환 함수 종류를 다양하게 할 수 있다.As a method for improving the coding efficiency and reducing the image quality distortion, it is possible to vary the size or shape of the conversion unit (TU) and the type of the conversion function to be applied according to the distribution of the differential signal input to the input in the conversion step, have.
예를 들어, 예측 단계에서 블록 기반 움직임 추정 과정을 통해 현재 블록과 유사한 블록을 찾는 경우, SAD(Sum of Absolute Difference) 또는 MSE(Mean Square error) 등과 같은 코스트(cost) 측정 방법을 이용하여, 차분 신호의 분포는 영상의 특성에 따라 다양한 형태로 생길 수 있다.For example, when a block similar to the current block is found through the block-based motion estimation process in the prediction step, a cost measurement method such as SAD (Sum of Absolute Difference) or MSE (Mean Square Error) The distribution of the signal can be varied in various forms depending on the characteristics of the image.
그에 따라, 다양한 차분 신호의 분포에 기초해 선택적으로 변환 유닛(CU)의 크기 또는 모양을 결정하여 변환을 수행함으로써, 효과적인 부호화가 수행될 수 있다.Accordingly, effective encoding can be performed by selectively determining the size or shape of the conversion unit (CU) based on the distribution of the various difference signals and performing the conversion.
도 12를 참조하면, 임의의 코딩 블록(CBx) 에서 (a)에 도시된 바와 같이 차분 신호가 발생하는 경우, (b)에 도시된 바와 같이 해당 코딩 블록(CBx)을 이진 트리 구조로 나누어 2개의 변환 유닛(TU)들로 분할함으로써 효과적인 변환이 수행되도록 할 수 있다.Referring to FIG. 12, when a difference signal is generated as shown in (a) in a certain coding block CBx, the coding block CBx is divided into a binary tree structure 2 (b) Lt; RTI ID = 0.0 > TUs < / RTI >
예를 들어, DC 값은 일반적으로 입력 신호의 평균값을 나타낸다고 말할 수 있으므로, 도 12의 (a)에 도시된 바와 같은 차분 신호가 변환 과정의 입력으로 수신되는 경우, 코딩 블록(CBx)을 2개의 변환 유닛(TU)들로 분할함으로써 효과적으로 DC 값을 나타낼 수 있다.For example, it can be said that the DC value generally represents the average value of the input signal. Therefore, when the difference signal as shown in FIG. 12A is received as the input of the conversion process, the coding block CBx is divided into two By dividing into the conversion units (TUs), the DC value can be effectively represented.
도 13을 참조하면, 2Nx2N의 크기를 가지는 정사각형의 코딩 유닛(CU0)이 이진 트리 구조로 나뉘어, Nx2N 또는 2NxN의 크기를 가지는 직사각형의 변환 유닛들(TU0, TU1)로 분할될 수 있다.13, a square coding unit CU 0 having a size of 2Nx2N is divided into binary tree structures and can be divided into rectangular transformation units TU 0 and TU 1 having a size of Nx2N or 2NxN .
본 발명의 또 다른 실시예에 따르면, 상기한 바와 같이 코딩 유닛(CU)을 이진 트리 구조로 분할하는 단계를 2회 이상 반복해 수행하여, 복수의 변환 유닛(TU)들로 분할할 수 있다.According to another embodiment of the present invention, the step of dividing the coding unit (CU) into the binary tree structure as described above may be repeatedly performed twice or more to divide it into a plurality of conversion units (TU).
도 14를 참조하면, Nx2N의 크기를 가지는 직사각형의 코딩 블록(CB1)을 이진 트리 구조로 분할하고, 상기 분할된 NxN의 크기를 가지는 블록을 다시 이진 트리 구조로 분할하여 N/2xN 또는 NxN/2의 크기를 가지는 직사각형의 블록을 구성한 후, 상기 N/2xN 또는 NxN/2의 크기를 가지는 블록을 다시 이진 트리 구조로 분할하여 N/2xN/2의 크기를 가지는 정사각형의 변환 유닛들(TU1, TU2, TU4, TU5)로 분할할 수 있다.Referring to FIG. 14, a rectangular coding block CB 1 having a size of Nx2N is divided into a binary tree structure, a block having the size of the divided NxN is divided into a binary tree structure again to form N / 2xN or NxN / 2xN or NxN / 2 is further divided into binary tree structures to form square transform units TU 1 (N / 2xN / 2) having a size of N / 2xN / 2, , TU 2 , TU 4 , TU 5 ).
도 15를 참조하면, 2Nx2N의 크기를 가지는 정사각형의 코딩 블록(CB0)을 이진 트리 구조로 분할하고, 상기 분할된 Nx2N의 크기를 가지는 블록을 다시 이진 트리 구조로 분할하여 NxN의 크기를 가지는 정사각형의 블록을 구성한 후, 상기 NxN의 크기를 가지는 블록을 다시 이진 트리 구조로 분할하여 N/2xN의 크기를 가지는 직사각형의 변환 유닛들(TU1, TU2)로 분할할 수 있다.15, a square coding block CB 0 having a size of 2Nx2N is divided into a binary tree structure, a block having the size of the divided Nx2N is divided into a binary tree structure, and a square having a size of NxN The block having the size of NxN may be divided into a binary tree structure and divided into rectangular transform units TU 1 and TU 2 having a size of N / 2xN.
도 16을 참조하면, 2NxN의 크기를 가지는 직사각형의 코딩 블록(CB0)을 이진 트리 구조로 분할하고, 상기 분할된 NxN의 크기를 가지는 블록을 다시 쿼드 트리 구조로 분할하여 N/2xN/2의 크기를 가지는 정사각형의 변환 유닛들(TU1, TU2, TU3, TU4)로 분할할 수 있다.Referring to FIG. 16, a rectangular coding block CB 0 having a size of 2NxN is divided into a binary tree structure, a block having the size of the divided NxN is divided into a quad tree structure again to obtain N / 2xN / 2 (TU 1 , TU 2 , TU 3 , TU 4 ) having a predetermined size.
도 11 내지 도 16을 참조하여 설명한 바와 같은 방법에 의해 분할된 블록들(예를 들어, 코딩 유닛(CU), 예측 유닛(PU) 및 변환 유닛(TU))에 대해 도 1 내지 도 8을 참조하여 설명한 바와 같은 방법들이 적용됨으로써, 영상에 대한 부호화 및 복호화가 수행될 수 있다.1 to 8 for blocks (e.g., a coding unit (CU), a prediction unit (PU), and a conversion unit (TU)) divided by the method described with reference to Figs. 11 to 16 The encoding and decoding of the image can be performed by applying the methods as described above.
이하에서는, 본 발명에 따른 부호화 장치(10)가 블록 분할 구조를 결정하는 방법에 대한 실시예들에 대해 설명한다.Hereinafter, embodiments of a method by which the encoding apparatus 10 according to the present invention determines a block division structure will be described.
영상 부호화 장치(10)에 구비된 픽쳐 분할부(110)는 미리 설정된 순서에 따라 RDO(Rate distortion Optimization)를 수행하여, 상기한 바와 같이 분할 가능한 코딩 유닛(CU), 예측 유닛(PU) 및 변환 유닛(TU)의 분할 구조를 결정할 수 있다.The picture dividing unit 110 included in the image coding apparatus 10 performs Rate Distortion Optimization (RDO) in accordance with a predetermined order and outputs the division unit CU, the prediction unit PU, The division structure of the unit TU can be determined.
예를 들어, 블록 분할 구조를 결정하기 위해, 픽쳐 분할부(110)는 RDO-Q(Rate distortion Optimization- Quantization)를 수행하면서 비트레이트(bitrate)와 디스토션(distortion) 측면에서 최적의 블록 분할 구조를 결정할 수 있다. For example, in order to determine a block division structure, the picture division unit 110 performs an optimal block division structure in terms of bit rate and distortion while performing Rate distortion Optimization-Quantization (RDO-Q) You can decide.
도 17을 참조하면, 코딩 유닛(CU)이 2Nx2N 픽셀 크기의 형태를 가지는 경우, (a)에 도시된 2Nx2N 픽셀 크기, (b)에 도시된 NxN 픽셀 크기, (c)에 도시된 Nx2N 픽셀 크기, (d)에 도시된 2NxN 픽셀 크기의 변환 유닛(PU) 분할 구조 순서로 RDO를 수행하여 변환 유닛(PU)의 최적 분할 구조를 결정할 수 있다.17, when the coding unit CU has the form of 2Nx2N pixel size, the 2Nx2N pixel size shown in (a), the NxN pixel size shown in (b), the Nx2N pixel size shown in (c) , RDO may be performed in order of the 2NxN pixel size conversion unit (PU) division structure shown in (d) to determine the optimum division structure of the conversion unit (PU).
도 18을 참조하면, 코딩 유닛(CU)이 Nx2N 또는 2NxN 픽셀 크기의 형태를 가지는 경우, (a)에 도시된 Nx2N(또는, 2NxN)의 픽셀 크기, (b)에 도시된 NxN의 픽셀 크기, (c)에 도시된 N/2xN(또는, NxN/2)와 NxN의 픽셀 크기, (d)에 도시된 N/2xN/2, N/2xN 및 NxN의 픽셀 크기, (e)에 도시된 N/2xN의 픽셀 크기의 변환 유닛(PU) 분할 구조 순서로 RDO를 수행하여 변환 유닛(PU)의 최적 분할 구조를 결정할 수 있다.Referring to Fig. 18, when the coding unit CU has the form of Nx2N or 2NxN pixel size, the pixel size of Nx2N (or 2NxN) shown in (a), the pixel size of NxN shown in (b) (x) shown in (e) shown in (e), a pixel size of N / 2xN (or NxN / 2) and NxN shown in / 2xN pixel size conversion unit (PU) division structure sequence in order to determine the optimum division structure of the conversion unit (PU).
상기에서는 RDO(Rate distortion Optimization)를 수행하여 블록 분할 구조가 결정되는 것을 예로 들어 본 발명의 블록 분할 방법을 설명하였으나, 픽쳐 분할부(110)는 SAD(Sum of Absolute difference) 또는 MSE(Mean Square Error)를 이용하여 블록 분할 구조를 결정함으로써 복잡도를 저감시키면서도 적절한 효율을 유지할 수 있다.Although the block division method of the present invention has been described with reference to the case where the block division structure is determined by performing Rate Distortion Optimization (RDO), the picture division unit 110 may use a Sum of Absolute Difference (SAD) or Mean Square Error ), It is possible to maintain a proper efficiency while reducing the complexity.
도 19는 본 발명의 실시 예에 따른 변화량 적용된 참조 샘플 구성을 설명하기 위한 도면이다.19 is a diagram for explaining a reference sample configuration applied with a variation according to an embodiment of the present invention.
본 발명의 일 실시 예에 따른 인트라 예측을 수행하는 부호화 장치(10) 또는 복호화 장치(20)는 인트라 예측 복호화를 위한 참조 샘플을 구성할 수 있으며, 참조 샘플은 현재 블록의 넓이와 높이의 2배에 대응하는 기 복호화된 샘플로 구성될 수 있다. 이러한 참조 샘플을 이용하여 방향성 예측이 수행될 수 있다.The coding apparatus 10 or the decoding apparatus 20 for performing intra prediction according to an embodiment of the present invention may constitute a reference sample for intra prediction decoding, and the reference sample may be two times the width and height of the current block Decoded samples corresponding to < RTI ID = 0.0 > Directional prediction can be performed using these reference samples.
그러나, 기 복호화된 참조 샘플이 존재하지 않는 경우, 종래에는 도 19(A)에 도시된 바와 같이, 현재 블록의 최외곽 픽셀(A4)의 값을 패딩하여 참조 샘플을 구성하고, 이를 이용한 방향성 예측을 처리하고 있다. 그러나, 이는 방향성 형성을 저해하며, 예측 블록의 정확성을 감소시켜 부호화/복호화 성능 감소를 야기하고 있다.However, in the case where a base-decoded reference sample does not exist, conventionally, as shown in Fig. 19 (A), a value of the outermost pixel A4 of the current block is padded to construct a reference sample, . However, this hinders the formation of directionality and reduces the accuracy of prediction blocks, resulting in a reduction in encoding / decoding performance.
이에 따라, 본 발명의 실시 예에 따른 부호화 장치(10) 및 복호화 장치(20)는 참조 샘플 구성에 있어서, 기 부호화/복호화된 참조 샘플이 존재하지 않는 영역에 대응하여, 현재 또는 주변 블록들의 변화량이 적용된 참조 샘플을 패딩하여 구성함으로써, 보다 정확한 예측 및 부호화 효율을 높일 수 있다. 이에 따라, 도 19(B)에 도시된 바와 같이 변화량 적용 패딩에 의해, 방향성이 유지된 형태의 참조 샘플 구성이 가능하게 되며, 이에 따라 부호화/복호화 효율을 높일 수 있다.Accordingly, in the reference sample configuration, the coding apparatus 10 and the decoding apparatus 20 according to the embodiment of the present invention calculate the change amount of the current or neighboring blocks in correspondence with the region in which the reference encoded / By applying padding to the applied reference sample, it is possible to improve the prediction and coding efficiency more accurately. Accordingly, as shown in FIG. 19B, the change sample padding makes it possible to construct a reference sample of a directionally preserved form, thereby improving encoding / decoding efficiency.
이하에서는 이와 같은 부호화/복호화 방법을 복호화 장치(20)의 동작 프로세스를 위주로 설명하도록 하며, 이하 설명되는 복호화 장치(20)에서의 동작은 부호화 장치(10)에서도 동일하게 적용될 수 있다.Hereinafter, such an encoding / decoding method will be described mainly focusing on the operation process of the decoding apparatus 20, and the operation in the decoding apparatus 20, which will be described below, can be similarly applied to the coding apparatus 10 as well.
도 20 내지 도 21은 본 발명의 실시 예에 따른 화면 내 예측 프로세스를 설명하기 위한 흐름도이다.20 to 21 are flowcharts for explaining an intra prediction process according to an embodiment of the present invention.
도 20을 참조하면, 먼저 복호화 장치(20)는 비트스트림이 수신되면 엔트로피 복호화를 처리하고(S101), 역양자화/역변환 처리를 수행하며(S103), 역변환된 블록 정보로부터 화면 내 예측 복호화를 위한 예측 정보 생성 프로세스를 수행한다(S105).20, the decoding apparatus 20 processes entropy decoding (step S101), performs inverse quantization / inverse transform processing (step S103), and decodes the inverse transformed block information A prediction information generating process is performed (S105).
그리고, 복호화 장치(20)는 예측 정보 생성에 대응하여, 예측 정보의 보정 처리를 수행하며(S107), 보정된 예측 정보를 이용하여 화면 내 예측 부호화를 수행한다(S109).Then, in response to the prediction information generation, the decoding apparatus 20 performs correction processing of the prediction information (S107) and performs intra prediction coding using the corrected prediction information (S109).
여기서, 예측 정보의 생성 및 보정을 위한 본 발명의 실시 예에 따른 복호화 장치(20)의 동작 방법은 인트라 예측부(230)에서 처리될 수 있으며, 보다 구체적으로 도 21을 참조하여 설명될 수 있다.Here, the operation method of the decoding apparatus 20 according to the embodiment of the present invention for generating and correcting prediction information can be processed in the intra prediction unit 230, and more specifically, can be described with reference to FIG. 21 .
도 21을 참조하면, 인트라 예측부(230)는 예측 정보 생성 프로세스에 진입하고(S201), 화면 내 예측을 수행할 현재 블록의 주변 블록 중 기 복호화된 참조 샘플의 존재정보를 식별한다(S203).Referring to FIG. 21, the intra-prediction unit 230 enters a prediction information generation process (S201), and identifies presence information of a reference decoded reference sample among neighboring blocks of a current block to perform intra-prediction (S203) .
그리고, 참조 샘플이 존재하지 않는 영역이 식별되는 경우, 참조 샘플이 존재하지 않는 영역에 대응하여, 인트라 예측부(230)는 주변 샘플의 변화량에 기초한 참조 샘플의 패딩을 수행한다(S205).If an area in which the reference sample does not exist is identified, the intra predictor 230 performs padding of the reference sample based on the variation amount of the surrounding sample, corresponding to the area in which the reference sample does not exist (S205).
그리고, 인트라 예측부(230)는 패딩된 참조 샘플을 이용하여 화면 내 예측 정보를 생성한다(S207).The intra prediction unit 230 generates intra prediction information using the padded reference sample (S207).
여기서, 본 발명의 실시 예에 따른 상기 주변 샘플의 변화량에 기초한 참조 샘플의 패딩은 단일 변화량 반영 샘플 패딩과, 다중 변화량 반영 샘플 패딩이 처리될 수 있으며, 경우에 따라 선택적으로 처리될 수 있다. 이에 대하여 보다 구체적으로 후술하도록 한다.Here, the padding of the reference sample based on the variation amount of the surrounding sample according to the embodiment of the present invention may be processed with the single variation reflection sample padding and the multiple variation reflection sample padding, and may be selectively processed according to the case. This will be described later in more detail.
도 22는 본 발명의 실시 예에 따른 단일 변화량 반영 샘플 생성 프로세스를 설명하기 위한 흐름도이며, 도 23 내지 도 24는 본 발명의 실시 예에 따른 단일 변화량 반영 샘플의 예시도이다.FIG. 22 is a flowchart for explaining a single variation reflection sample generation process according to an embodiment of the present invention, and FIGS. 23 to 24 are exemplary views of a single variation reflection sample according to an embodiment of the present invention.
도 22를 참조하면, 본 발명의 실시 예에 따른 인트라 예측부(230)는 기 복호화된 정보가 존재하지 않는 참조 샘플을 식별하면(S301), 기 복호화된 블록의 단일 축 변화량을 적용하여, 단일 변화량 반영 샘플 생성을 생성한다(S303).Referring to FIG. 22, the intra predictor 230 according to an embodiment of the present invention identifies a reference sample in which there is no previously decoded information (S301), applies a single-axis variation amount of the previously decoded block, And generates a change amount reflection sample generation (S303).
본 발명의 실시 예에 따른 단일 변화량 샘플 패딩 프로세스는, 기 복호화된 정보가 존재하지 않는 참조 샘플 영역에 대하여, x축의 단일 변화량 혹은 y축의 단일 변화량을 반영하여 패딩을 처리하는 단계를 포함할 수 있다.The single variation sample padding process according to the embodiment of the present invention may include processing padding by reflecting a single variation amount of the x axis or a single variation amount of the y axis for the reference sample area in which the previously decoded information does not exist .
이를 위해, 먼저 인트라 예측부(230)는 단일 변화량 참조 샘플을 패딩할지 여부를 먼저 판단할 수 있다.To this end, the intra predictor 230 may first determine whether to paddle a single variation reference sample.
예를 들어, 도 23(A)와 같이, 기 복호화된 참조 샘플이 현재 블록의 상단, 좌측 모두 일부만 존재하는 경우, 이미 존재하는 샘플들을 이용하여 존재하지 않는 참조샘플을 패딩할 수 있다.For example, as shown in FIG. 23 (A), if there is only a part of both of the upper and left sides of the current block, a reference sample that does not exist can be padded using already existing samples.
한편, 도 23(B)와 같이, 기 복호화된 참조 샘플이 현재 블록의 상단 혹은 좌측에 모두 존재하지 않는 경우(상단 혹은 좌측 샘플만 존재하는 경우), 존재하는 샘플이 없기 때문에 이미 복호화된 블록의 상단 샘플을 이용하여 참조샘플을 패딩할 수 있다.On the other hand, as shown in FIG. 23 (B), when there is no existing sample, if the reference decoded reference sample does not exist in the upper or left side of the current block (only the upper or left sample exists) The upper sample can be used to pad the reference sample.
이와 같이, 기 복호화된 참조 샘플이 존재하지 않는 영역의 샘플을 패딩하여 화면 내 예측 복호화에 이용하는 것을 도 23에서 나타내고 있으며, NA#는 존재하지 않는 샘플을 의미하고, A#은 패딩하기위해 사용하는 샘플을 의미할 수 있다.In this way, it is shown in FIG. 23 that a sample in an area in which a base-decoded reference sample does not exist is padded and used for intra-picture prediction decoding. NA # indicates a sample that does not exist, A # . ≪ / RTI >
도 23은 상단 참조샘플을 예시한것으로, 좌측의 존재하지 않는 샘플(NL#)에 대하여도 같은 방법이 적용될 수 있다.23 illustrates the top reference sample, and the same method can be applied to the left non-existent sample NL #.
본 발명의 실시 예에 따라, 기 복호화된 정보가 존재하지 않는 샘플(NAd, NLd)에 대응하는 참조 샘플의 단일 변화량 반영 생성은 아래와 같이 예시될 수 있다.According to the embodiment of the present invention, a single variation reflection generation of a reference sample corresponding to a sample (NA d , NL d ) in which there is no previously decoded information can be exemplified as follows.
Figure PCTKR2019000238-appb-M000001
Figure PCTKR2019000238-appb-M000001
여기서, k는 존재하는 샘플의 수를 의미하고, n은 변화량을 반영할 샘플의 수를 의미할 수 있으며, 여기서 n은 현재 블록의 크기 등에 의해 적절히 조절될 수 있는 상수일 수 있다.Here, k means the number of existing samples, and n can mean the number of samples to reflect the change amount, where n can be a constant that can be appropriately adjusted by the size of the current block or the like.
예를 들어, 현재 블록이 직사각형일 경우, 도 23과 같이 상단에 기 복호화된 정보가 존재하지 않는 샘플을 참조 블록으로 이용하려면, 현재 블록의 높이 만큼 의 참조 샘플의 패딩이 필요할 수 있다.For example, when a current block is a rectangle, padding of reference samples as much as the height of the current block may be required to use a sample in which no information previously decoded exists as a reference block, as shown in FIG.
이에 따라, n 이 클 경우, 인트라 예측부(230)는 상대적으로 적은 수의 참조샘플을 패딩해야하는데에 비해, 변화량을 반영하는 샘플의 수가 많아져 상관성이 떨어질 수 있다. 따라서 n의 크기는 도 24에 도시된 바와 같이, 현재 블록의 높이로 조절되는 것이 바람직하다.Accordingly, when n is large, the intra prediction unit 230 may have a relatively small number of samples to be padded, while the number of samples that reflect the variation may increase, resulting in poor correlation. Therefore, the size of n is preferably adjusted to the height of the current block as shown in FIG.
이와 같은 본 발명의 실시 예에 따른 단일 변화량 반영 샘플 패딩의 경우, 존재하는 샘플의 증감에 영향을 받으므로, 증감하지 않고 변화가 불규칙할 경우 변화량 반영 패딩이 불리할 수 있다. 따라서 인트라 예측부(230)는 존재하는 샘플의 선형성을 판단하여 존재하지 않는 샘플의 증감여부를 선택적으로 결정할 수 있다.In the case of the single variation reflection sample padding according to the embodiment of the present invention, since the variation is affected by the increase / decrease of the existing sample, the variation reflection padding may be disadvantageous if the variation is irregular. Accordingly, the intraprediction unit 230 can determine whether to increase or decrease the nonexistent sample by determining the linearity of the existing sample.
선형성 판단을 위하여, 본 발명의 실시 예에 따른 인트라 예측부(230)는, 아래 수학식 2와 같은 조건 함수를 이용할 수 있다.For the linearity determination, the intra predictor 230 according to the embodiment of the present invention can use a condition function as shown in Equation (2) below.
Figure PCTKR2019000238-appb-M000002
Figure PCTKR2019000238-appb-M000002
상기 수학식 2는 강한 필터(strong filter)의 여부를 결정하는 존재하는 샘플의 첫번째 화소와 마지막 화소의 합이 중간 화소의 2배보다 클 경우, 선형이라 판단한다는 것을 의미할 수 있다.Equation (2) may mean that it is determined that the sum of the first pixel and the last pixel of the existing sample, which determines whether a strong filter is used, is determined to be linear when the sum is greater than twice the intermediate pixel.
또한 피어슨 상관관계 계수(Pearson Coreelation Coefficent) 함수가 이용될 수 있으며, ρX,Y = cov(X,Y)/(σXσY)와 같이 연산될 때, -TH>ρX,Y ||TH<ρX,Y 의 조건이 만족되는 경우, 선형으로 판단될 수 있다. 일반적으로 TH 는 임계값으로서, 0.9 가 예시될 수 있다.The Pearson Correlation Coeffient function can also be used, and when computed as ρ X, Y = cov (X, Y) / (σ X σ Y ), -TH> ρ X, Y || When the condition of TH <? X, Y is satisfied, it can be judged to be linear. Generally, TH is a threshold value, and 0.9 can be exemplified.
한편, 본 발명의 실시 예에 따른 단일 변화량 반영 샘플 패딩은 부호화 장치(10)에서 최적의 예측 블록을 찾는데 있어서의 후보로 이용될 수 있다. 즉, 기존의 기술과 본 발명의 실시 예에 따른 화면내 예측을 병행하여, 최적의 예측 블록을 찾을 수 있다.Meanwhile, the single variation-reflected sample padding according to the embodiment of the present invention can be used as a candidate for finding an optimal prediction block in the encoding apparatus 10. [ That is, an optimal prediction block can be found by concurrently performing the intra-picture prediction according to the present invention and the existing technology.
이에 따라, 본 발명의 경우, 기술의 목적 및 부/복호화기의 복잡도를 고려하여 일부 방향성 모드(vertical mode 이후 모드, horizontal 이전 모드)에 대해서, 단순 패딩과 변화량 반영 패딩을 비교 수행함으로써, 최적의 모드를 결정할 수 있다. 이 경우, 부호화 장치(10)는 선택된 참조샘플 패딩 방법에 대응하는 참조샘플 패딩 모드 플래그(Padding Flag)를 복호화 장치(20)로 시그널링(1bit) 할 수 있다.Accordingly, in the present invention, by comparing the simple padding with the variation-reflected padding for a certain directional mode (a mode after the vertical mode and a mode before the horizontal) in consideration of the object of the description and the complexity of the sub- Mode can be determined. In this case, the encoding apparatus 10 can signal (1-bit) the reference sample padding mode flag (Padding Flag) corresponding to the selected reference sample padding method to the decoding apparatus 20.
이에 따라, 선형성 판단 및 플래그에 기초한 선택적인 단일 변화량 샘플 패딩이 처리될 수 있다.Thereby, an optional single variation sample padding based on the linearity determination and flags can be processed.
도 25는 본 발명의 실시 예에 따른 선택적 단일 변화량 반영 샘플 패딩 프로세스를 도시한 흐름도이다.25 is a flow chart illustrating a selective single variation reflected sample padding process in accordance with an embodiment of the present invention.
도 25를 참조하면, 먼저 인트라 예측부(230)는 기 복호화된 정보가 존재하지 않는 참조 샘플을 식별하고(S401), 식별된 블록에 대응하는 주변 블록들의 선형성을 판단한다(S403).Referring to FIG. 25, the intraprediction unit 230 first identifies a reference sample in which there is no previously decoded information (S401), and determines the linearity of neighboring blocks corresponding to the identified block (S403).
먼저,선형적인 것으로 판단되는 경우, 인트라 예측부(230)는 부호화 장치(10)로부터 시그널링된 패딩 플래그를 확인하며(S405), 패딩 플래그가 1인 경우 전술한 단일 변화량 반영 샘플로 패딩을 처리한다(S407).First, if it is determined to be linear, the intra predictor 230 checks the signaling padding flag from the encoder 10 (S405), and if the padding flag is 1, processes the padding with the single variation reflection sample described above (S407).
한편, 비선형적으로 판단되거나, 패딩 플래그가 1이 아닌 경우, 인트라 예측부(230)는 가장 근접한 샘플과 동일한 값으로서 기존과 같은 방식의 패딩을 수행한다(S409).On the other hand, if it is determined non-linearly or the padding flag is not 1, the intra predictor 230 performs padding in the same manner as the closest sample, in step S409.
이후, 인트라 예측부(230)는 패딩된 참조 샘플을 이용하여, 화면 내 예측 복호화 처리를 수행한다(S411).Thereafter, the intra predictor 230 performs intra prediction decoding processing using the padded reference samples (S411).
이와 같은 선택적 패딩 처리는 기존 방식의 패딩과 병행 처리될 수 있으며, 경우에 따라, 패딩 플래그의 처리는 생략될 수 있다.Such selective padding processing may be performed in parallel with padding of the conventional method, and in some cases, processing of the padding flag may be omitted.
즉, 부호화 장치(10)에서는 기존 패딩 방법과 변화량 반영 패딩을 모두 수행하여 화면내 예측을 하여, RD-Cost 비교를 통해 효율적인 방법을 선택할 수 있으며, 패딩 플래그가 필요한 경우에만 1bit 시그널링을 수행할 수 있다.That is, the encoding apparatus 10 can perform an in-screen prediction by performing both the existing padding method and the variation-reflected padding to select an efficient method through RD-Cost comparison, and perform 1-bit signaling only when a padding flag is required have.
또한, 복호화 장치(20)에서도 패딩 플래그를 판단하기 전에, 선형적 판단을 먼저 실시하여 비선형적인 경우 추가적인 bit 없이 복호화를 처리할 수 있는 바, 이에 따른 선택적 패딩 프로세스가 효율적으로 처리될 수 있다.Also, in the decoding apparatus 20, it is possible to perform decryption without additional bits in a nonlinear manner by first performing a linear determination before determining a padding flag, and accordingly, the selective padding process can be efficiently handled.
도 26은 본 발명의 실시 예에 따른 다중 변화량 반영 샘플 생성 프로세스를 설명하기 위한 흐름도이며, 도 27 내지 도 28은 본 발명의 실시 예에 따른 다중 변화량 반영 샘플의 예시도이다.FIG. 26 is a flowchart for explaining a multiple change amount reflection sample generation process according to an embodiment of the present invention, and FIGS. 27 to 28 are illustrations of a multiple change amount reflection sample according to an embodiment of the present invention.
본 발명의 실시 예에 따른 다중 변화량 반영 샘플 생성 프로세스는 샘플 패딩은 기 복호화된 정보가 존재하지 않는 참조 샘플에 대해 x축의 변화량과 y축의 변화량을 반영하는 방식으로서, 먼저 임의의 우하단(RB, Right Bottom) 샘플을 생성하는 단계와(S501), 상기 우하단 샘플로부터 우상단(RA, Right Above) 샘플 사이의 X 축 및 Y 축 변화량을 적용하여, 다중 변화량 반영 샘플을 생성하는 단계를 포함한다(S503).The multiple pseudo variation reflected sample generation process according to the embodiment of the present invention is a method in which the sample padding reflects the variation amount of the x axis and the variation amount of the y axis with respect to the reference sample in which the previously decoded information does not exist, (S501), and applying the X-axis and Y-axis variation amounts between the upper right (RA) sample and the right upper (RA) sample to generate a multiple variation amount reflection sample S503).
이는 기 복호화된 정보가 존재하지 않는 참조 샘플을 현재 블록에 인접한 샘플(NA, NL)로 지정하고, 이에 대응하는 x축, y축의 변화량을 반영하여 참조 샘플을 패딩 생성하는 프로세스로서, 도 27에서는 기 복호화된 정보가 존재하지 않는 샘플(NA, NL, 회색)은 편의 상 현재 블록에 인접하게 표시되고 있다. 다만, 실제의 경우, NA, NL은 참조 샘플 배열(1차원 배열)에 포함될 수 있다.This is a process for designating a reference sample in which no previously decoded information is present as a sample (NA, NL) adjacent to the current block and padding a reference sample by reflecting the change amount of the corresponding x- and y- Samples (NA, NL, gray) in which no previously decoded information is present are displayed adjacent to the current block for convenience. However, in actual cases, NA and NL can be included in the reference sample array (one-dimensional array).
도 27에서, NA#는 존재하지 않는 샘플을 의미하고, A#은 패딩하기위해 사용하는 샘플을 의미할 수 있다. 또한, 도 27은 상단 참조샘플의 예를 든 것이며, 좌측 존재하지 않는 샘플(NL#) 또한 같은 방법으로 적용될 수 있다.In Fig. 27, NA # denotes a sample that does not exist, and A # denotes a sample to be used for padding. 27 shows an example of the upper reference sample, and the sample NL # not present on the left side can also be applied in the same way.
그리고, 도 27(A)를 참조하면, 다중 변화량 샘플 패딩은 기 복호화된 샘플이 상단, 좌측 샘플 모두 일부 존재하는 경우 적용될 수 있다. 이 경우, 인트라 예측부(230)는 RA(Right Above), LB(Left Bottom)을 이용하여 RB(Right bottom) 샘플을 생성하여 기 복호화된 정보가 존재하지 않는 참조 샘플을 구성할 수 있다.Referring to FIG. 27 (A), the multiple change amount sample padding can be applied when the first and second samples are partially present in the upper and left samples. In this case, the intra predictor 230 may generate a RB (Right bottom) sample using RA (Right Above) and LB (Left Bottom) to construct a reference sample in which the previously decoded information does not exist.
한편, 도 27(B)를 참조하면, 다중 변화량 샘플 패딩은 상단 혹은 좌측 샘플이 모두 존재하지 않는 경우(상단 혹은 좌측 샘플만 존재하는 경우)에 적용될 수 있다. 이 경우, 인트라 예측부(230)는 RA, LB를 기 복호화된 정보가 이미 존재하는 샘플(A4, L2 등 인접한 샘플)로 복사하거나, 전술한 단일 변화량 샘플 패딩 수행을 통해 처리할 수 있다. 예를 들어, 이 경우 기 복호화된 정보가 존재하는 샘플이 없기 때문에 이미 부/복호화된 블록의 상단 샘플을 전술한 단일 변화량 샘플 패딩을 수행하여 획득한 후, 이로부터 RB 샘플을 생성하여 기 복호화된 정보가 존재하지 않는 참조 샘플을 패딩하여 형성시킬 수 있다. On the other hand, referring to FIG. 27 (B), the multiple change amount sample padding can be applied when neither the upper or left sample exists (only the upper or left sample exists). In this case, the intra predictor 230 may process the RA and LB by copying the decoded information to a sample (A4, L2, or the like adjacent thereto) in which the decoded information already exists, or by performing the single variation amount sample padding described above. For example, in this case, since there is no sample in which the base-decoded information exists, the upper sample of the already-coded / decoded block is obtained by performing the above-described single variation sample padding, It can be formed by padding a reference sample in which no information exists.
이와 같은 구성에 있어서, 도 28에 도시된 바와 같이, 인트라 예측부(230)는 다중 변화량 샘플 패딩을 위해 먼저 임의의 RB 샘플을 생성할 수 있다.In such a configuration, as shown in FIG. 28, the intra predictor 230 may generate an arbitrary RB sample for the multiple change amount sample padding.
여기서, RB 샘플은 우상단 샘플(RA)과 우좌측 샘플(LA)의 거리비례 합으로 획득될 수 있으며, 상단 샘플(RA)과 좌측 샘플(LA)은 인접한 샘플로부터의 복사 획득되거나, 전술한 단일 변화량 반영 패딩 방법을 통해 생성될 수 있다. 거리비례 합의 경우 아래 수학식 3과 같이 연산될 수 있다.Here, the RB sample can be obtained by the distance proportional sum of the upper-left sample RA and the right-side sample LA, and the upper sample RA and the left sample LA can be obtained by copying from adjacent samples, And can be generated through a variation reflection padding method. The distance proportional sum can be calculated as shown in Equation (3) below.
Figure PCTKR2019000238-appb-M000003
Figure PCTKR2019000238-appb-M000003
상기 수학식 3에서 I(x,y)는 (x,y)위치의 픽셀 값을 나타낼 수 있다.In Equation (3), I (x, y) may represent a pixel value at the (x, y) position.
그리고, 인트라 예측부(230)는 RB 샘플의 생성 후, RB 샘플과 상단 샘플(RA) 사이에 참조 축 변화량을 반영한 샘플을 생성할 수 있다. NA와 NL은 거리비례 가중치 합으로 생성될 수 있으며, 이는 아래의 수학식 4와 같다.After generating the RB samples, the intra prediction unit 230 may generate a sample reflecting the reference axis variation amount between the RB sample and the upper sample RA. NA and NL can be generated by a distance-proportional weighted sum, as shown in Equation 4 below.
Figure PCTKR2019000238-appb-M000004
Figure PCTKR2019000238-appb-M000004
이와 같은 다중 변화량 반영 샘플 패딩의 경우, 존재하는 샘플의 증감에 영향을 받으므로, 증감하지 않고 변화가 불규칙할 경우 변화량 반영 패딩이 불리할 수 있다. 따라서 존재하는 샘플의 선형성을 판단하여 존재하지 않는 샘플의 증감여부를 결정할 수 있다. 선형성 판단은 전술한 단일 변화량 반영 샘플의 경우와 같이, 강한 필터 여부 결정 조건 또는 피어슨 상관관계 계수의 임계값 비교에 따라 결정될 수 있다.In the case of such a multiple-variation-reflected sample padding, the change-reflected padding may be disadvantageous when the variation is irregular without increasing or decreasing because it is affected by the increase or decrease of the existing sample. Therefore, it is possible to determine whether the sample does not exist or not by judging the linearity of the existing sample. The linearity determination may be determined based on a strong filter determination condition or a threshold comparison of Pearson correlation coefficients, as in the case of the single variation reflection sample described above.
한편, 본 발명의 실시 예에 따른 다중 변화량 반영 샘플 패딩 또한 부호화 장치(10)에서 최적의 예측 블록을 찾는데 있어서의 후보로 이용될 수 있다. 즉, 기존의 기술과 본 발명의 실시 예에 따른 화면내 예측을 병행하여, 최적의 예측 블록을 찾을 수 있다.Meanwhile, the multiple change amount reflection sample padding according to the embodiment of the present invention can also be used as a candidate for finding an optimal prediction block in the encoding apparatus 10. [ That is, an optimal prediction block can be found by concurrently performing the intra-picture prediction according to the present invention and the existing technology.
이에 따라, 본 발명의 경우, 기술의 목적 및 부/복호화기의 복잡도를 고려하여 일부 방향성 모드(vertical mode 이후 모드, horizontal 이전 모드)에 대해서, 단순 패딩과 다중 변화량 반영 패딩 및 전술한 단일 변화량 반영 패딩을 비교 수행함으로써, 최적의 모드를 결정할 수 있다. 이 경우, 부호화 장치(10)는 선택된 참조샘플 패딩 방법에 대응하는 참조샘플 패딩 모드 플래그(Padding Flag)를 복호화 장치(20)로 시그널링 할 수 있다. 만약, 다중 변화량 패딩 및 다중 변화량 패딩이 모두 이용되는 경우, 최소 1bit, 최대 2bit의 패딩 모드 플래그가 이용될 수 있다.Accordingly, in the present invention, considering the purpose of the technique and the complexity of the sub-decoder, a simple padding, a multiple change amount reflecting padding, and a single change amount reflecting By performing padding comparison, it is possible to determine an optimal mode. In this case, the encoding apparatus 10 can signal the reference sample padding mode flag (Padding Flag) corresponding to the selected reference sample padding method to the decoding apparatus 20. [ If both multiple change amount padding and multiple change amount padding are used, a padding mode flag of at least 1 bit and at most 2 bits can be used.
도 29는 본 발명의 실시 예에 따른 선택적 단일 및 다중 변화량 반영 샘플 패딩 프로세스를 도시한 흐름도이다.Figure 29 is a flow diagram illustrating a selective single and multiple varying reflected sample padding process in accordance with an embodiment of the present invention.
도 29를 참조하면, 먼저 인트라 예측부(230)는 기 복호화된 정보가 존재하지 않는 참조 샘플을 식별하고(S601), 식별된 블록에 대응하는 주변 블록들의 선형성을 판단한다(S603).Referring to FIG. 29, the intra predictor 230 first identifies a reference sample in which there is no previously decoded information (S601), and determines the linearity of neighboring blocks corresponding to the identified block (S603).
먼저, 선형적인 것으로 판단되는 경우, 인트라 예측부(230)는 부호화 장치(10)로부터 시그널링된 패딩 플래그를 확인하며(S605), 패딩 플래그가 1인 경우 전술한 단일 변화량 반영 샘플로 패딩을 처리한다(S608).First, if it is determined to be linear, the intra predictor 230 checks the signaling padding flag from the encoding device 10 (S605), and if the padding flag is 1, processes the padding with the single variation reflection sample described above (S608).
한편, 패딩 플래그가 1이 아닌 경우, 인트라 예측부(230)는 패딩 모드가 2인지를 판단하며(S606), 패딩 모드가 2인 경우 다중 변화량 반영 샘플로 패딩을 처리할 수 있다(S607).If the padding flag is not 1, the intra prediction unit 230 determines whether the padding mode is 2 (S606). If the padding mode is 2, the intra prediction unit 230 may process the padding with the multiple variation amount reflection sample (S607).
한편, 비선형적으로 판단되거나, 패딩 플래그가 1 또는 2가 아닌 경우, 인트라 예측부(230)는 가장 근접한 샘플과 동일한 값으로서 기존과 같은 방식의 패딩을 수행한다(S609).On the other hand, if it is determined non-linearly or the padding flag is not 1 or 2, the intra predictor 230 performs padding in the same manner as the closest sample, in step S609.
이후, 인트라 예측부(230)는 패딩된 참조 샘플을 이용하여, 화면 내 예측 복호화 처리를 수행한다(S211).Thereafter, the intra predictor 230 performs intra prediction decoding processing using the padded reference sample (S211).
이와 같은 선택적 패딩 처리는 기존 방식의 패딩과 병행 처리될 수 있으며, 경우에 따라, 패딩 플래그의 처리는 생략될 수 있다.Such selective padding processing may be performed in parallel with padding of the conventional method, and in some cases, processing of the padding flag may be omitted.
즉, 부호화 장치(10)에서는 기존 패딩 방법과 변화량 반영 패딩을 모두 수행하여 화면내 예측을 하여, RD-Cost 비교를 통해 효율적인 방법을 선택할 수 있으며, 패딩 플래그가 필요한 경우에만 1bit 또는 2bit 시그널링을 수행할 수 있다.That is, the encoding apparatus 10 can perform an in-frame prediction by performing both the existing padding method and the change amount reflecting padding, and can select an efficient method through RD-cost comparison. If the padding flag is required, 1-bit or 2-bit signaling is performed can do.
또한, 복호화 장치(20)에서도 패딩 플래그를 판단하기 전에, 선형적 판단을 먼저 실시하여 비선형적인 경우 추가적인 bit 없이 복호화를 처리할 수 있는 바, 이에 따른 선택적 패딩 프로세스가 효율적으로 처리될 수 있다.Also, in the decoding apparatus 20, it is possible to perform decryption without additional bits in a nonlinear manner by first performing a linear determination before determining a padding flag, and accordingly, the selective padding process can be efficiently handled.
이에 따라, 부호화 장치(10)로부터 복호화 장치(20)로 시그널링되는 정보는 아래와 같이 예시될 수 있다.Accordingly, the information signaled from the coding apparatus 10 to the decoding apparatus 20 can be exemplified as follows.
A. 단일 변화량 패딩 또는 다중 변화량 패딩 중 1가지 방법만 기존 패딩과의 비교를 할 경우 0~1bit의 시그널링 정보(Padding flag) A. If only one method of single change padding or multiple change padding is compared with existing padding, 0 to 1 bit signaling information (padding flag)
B. 단일 변화량, 다중 변화량 2가지 방법을 기존 패딩과의 비교를 할 경우 1~2bit의 시그널링 정보(Padding flag / Padding mode)B. Single Variation and Multiple Variations When comparing two methods with existing padding, 1 ~ 2bit signaling information (Padding flag / Padding mode)
C. 변화량 반영 패딩(단일, 다중)을 선형적 판단을 먼저 실시하여 선형적인 경우에만 수행하고, 기존 패딩 방법은 비교 대상에서 제외할 경우 1bit의 시그널링이 정보(Padding mode)C. Variation Reflection Padding (single, multiple) is performed only in linear case by performing linear judgment first, and if existing padding method is excluded from comparison, 1bit signaling is padding mode,
도 30 및 도 31은 본 발명의 실시 예에 따른 변화량 반영 샘플 패딩 프로세스가 적용가능한 참조 샘플 부존재 케이스를 설명하기 위한 도면이다.FIGS. 30 and 31 are views for explaining a reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable.
도 30 및 도 31을 참조하면, 본 발명의 실시 예에 따른 변화량 반영 샘플 패딩 프로세스가 적용가능한 참조 샘플 부존재 케이스는 화면 내 예측 정보를 생섬함에 있어서, 기 복호화된 참조 샘플이 모두 존재하는 경우를 제외하고, 적어도 하나이상의 샘플이 존재하지 않는 경우를 모두 포함할 수 있다. 이에 따라, 기 복호화된 참조 샘플이 모두 존재하지 않는 경우로부터 부분적으로 존재하는 경우까지 본 발명의 실시 예에 따른 변화량 반영 샘플 패딩 프로세스가 적용될 수 있으며, 인트라 예측부(230)는 이를 위한 조건 판단을 사전에 처리함으로써 효율적인 처리를 가능하게 한다.30 and 31, the reference sample non-existence case to which the variation-reflected sample padding process according to the embodiment of the present invention is applicable includes a case where all the reference samples that have been decoded exist And at least one or more samples are not present. Accordingly, the variation-reflected sample padding process according to the embodiment of the present invention can be applied until all of the base-decoded reference samples are not present or partially present, and the intra-prediction unit 230 determines a condition for this So that efficient processing can be performed by processing in advance.
상술한 본 발명에 따른 방법은 컴퓨터에서 실행되기 위한 프로그램으로 제작되어 컴퓨터가 읽을 수 있는 기록 매체에 저장될 수 있으며, 컴퓨터가 읽을 수 있는 기록 매체의 예로는 ROM, RAM, CD-ROM, 자기 테이프, 플로피디스크, 광 데이터 저장장치 등이 있다.The method according to the present invention may be implemented as a program for execution on a computer and stored in a computer-readable recording medium. Examples of the computer-readable recording medium include a ROM, a RAM, a CD- , A floppy disk, an optical data storage device, and the like.
컴퓨터가 읽을 수 있는 기록 매체는 네트워크로 연결된 컴퓨터 시스템에 분산되어, 분산방식으로 컴퓨터가 읽을 수 있는 코드가 저장되고 실행될 수 있다. 그리고, 상기 방법을 구현하기 위한 기능적인(function) 프로그램, 코드 및 코드 세그먼트들은 본 발명이 속하는 기술분야의 프로그래머들에 의해 용이하게 추론될 수 있다.The computer readable recording medium may be distributed over a networked computer system so that computer readable code can be stored and executed in a distributed manner. And, functional programs, codes and code segments for implementing the above method can be easily inferred by programmers of the technical field to which the present invention belongs.
또한, 이상에서는 본 발명의 바람직한 실시예에 대하여 도시하고 설명하였지만, 본 발명은 상술한 특정의 실시예에 한정되지 아니하며, 청구범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 기술분야에서 통상의 지식을 가진 자에 의해 다양한 변형 실시가 가능한 것은 물론이고, 이러한 변형 실시들은 본 발명의 기술적 사상이나 전망으로부터 개별적으로 이해 되어서는 안될 것이다.While the present invention has been particularly shown and described with reference to exemplary embodiments thereof, it is to be understood that the invention is not limited to the disclosed exemplary embodiments, but, on the contrary, It should be understood that various modifications may be made by those skilled in the art without departing from the spirit and scope of the present invention.

Claims (10)

  1. 영상 처리 방법에 있어서,In the image processing method,
    영상의 픽쳐를 인터 예측(inter prediction) 또는 인트라 예측(intra prediction)이 수행되는 기본 단위인 복수의 코딩 유닛(Coding Unit)들로 분할하는 단계;Dividing a picture of the picture into a plurality of coding units which are basic units in which inter prediction or intra prediction is performed;
    상기 분할된 코딩 유닛들 중 인트라 예측된 현재 블록의 유닛에 대해, 인트라 예측에 이용된 참조 샘플을 식별하는 단계;Identifying, for a unit of an intra predicted current block of the divided coding units, a reference sample used for intra prediction;
    상기 참조 샘플 중 기 복호화된 정보가 존재하지 않는 참조 샘플에 대하여, 상기 현재 블록의 주변 블록의 변화량이 반영된 패딩 처리를 수행하는 단계; 및Performing a padding process in which a change amount of a neighboring block of the current block is reflected on a reference sample in which there is no previously decoded information among the reference samples; And
    상기 패딩 처리된 참조 샘플에 기초한 인트라 예측 복호화를 수행하는 단계;를 포함하는And performing intra prediction decoding based on the padded reference sample
    영상 처리 방법.Image processing method.
  2. 제1항에 있어서,The method according to claim 1,
    상기 패딩 처리를 수행하는 단계는,The step of performing the padding process includes:
    상기 참조 샘플에 대응하는 단일 변화량 패딩 처리를 수행하는 단계를 포함하는And performing a single variation padding process corresponding to the reference sample
    영상 처리 방법.Image processing method.
  3. 제1항에 있어서,The method according to claim 1,
    상기 패딩 처리를 수행하는 단계는,The step of performing the padding process includes:
    상기 참조 샘플에 대응하는 다중 변화량 패딩 처리를 수행하는 단계를 포함하는And performing a multiple change amount padding process corresponding to the reference sample
    영상 처리 방법.Image processing method.
  4. 제1항에 있어서,The method according to claim 1,
    상기 패딩 처리를 수행하는 단계는,The step of performing the padding process includes:
    상기 변화량이 반영된 패딩의 수행여부를 결정하기 위한 주변 블록들의 선형성을 판단하는 단계를 더 포함하는Further comprising determining linearity of neighboring blocks for determining whether to perform padding reflecting the amount of change
    영상 처리 방법.Image processing method.
  5. 제1항에 있어서,The method according to claim 1,
    상기 패딩 처리를 수행하는 단계는,The step of performing the padding process includes:
    상기 변화량이 반영된 패딩에 대응하는 시그널링 정보를 수신하는 단계; 및Receiving signaling information corresponding to the padding in which the amount of change is reflected; And
    상기 시그널링 정보로부터 상기 변화량이 반영된 패딩의 수행여부를 결정하는 단계를 포함하는Determining whether to perform padding reflecting the amount of change from the signaling information
    영상 처리 방법.Image processing method.
  6. 제5항에 있어서,6. The method of claim 5,
    상기 시그널링 정보는 변화량 반영 패딩 적용여부를 나타내는 패딩 플래그 정보를 포함하는Wherein the signaling information includes padding flag information indicating whether the change amount reflecting padding is applied
    영상 처리 방법.Image processing method.
  7. 제5항에 있어서,6. The method of claim 5,
    상기 시그널링 정보는 단일 변화량 반영 패딩 또는 다중 변화량 반영 패딩 중 어느 하나를 나타내는 패딩 모드 정보를 포함하는Wherein the signaling information includes padding mode information indicating either a single variation reflection padding or a multiple variation reflection padding
    영상 처리 방법.Image processing method.
  8. 제1항에 있어서,The method according to claim 1,
    상기 변화량 반영 패딩의 적용 여부는 부호화시 수행된 코스트 연산에 따라 결정되는Whether or not the change amount reflection padding is applied is determined according to the cost operation performed at the time of encoding
    영상 처리 방법.Image processing method.
  9. 영상을 복호화하는 방법에 있어서,A method for decoding an image,
    부호화된 비트스트림을 입력받는 단계;Receiving an encoded bitstream;
    상기 입력된 비트스트림에 대해 역양자화 및 역변환을 수행하여 잔차 블록을 획득하는 단계;Performing inverse quantization and inverse transform on the input bitstream to obtain a residual block;
    인터 예측 또는 인트라 예측을 수행하여 예측 블록을 획득하는 단계;Performing inter-prediction or intra-prediction to obtain a prediction block;
    상기 획득된 잔차 블록과 예측 블록을 합하여 영상을 복원하는 단계를 포함하고,And reconstructing an image by summing the obtained residual block and a prediction block,
    상기 인터 예측 또는 인트라 예측이 수행되는 기본 단위인 코딩 유닛은 이진 트리 구조를 이용하여 코딩 트리 유닛으로부터 분할된 블록이며,A coding unit, which is a basic unit on which the inter prediction or intra prediction is performed, is a block divided from a coding tree unit using a binary tree structure,
    상기 예측 블록을 획득하는 단계는,Wherein the step of obtaining the prediction block comprises:
    상기 분할된 코딩 유닛들 중 인트라 예측된 현재 블록의 유닛에 대해, 인트라 예측에 이용된 참조 샘플을 식별하는 단계; 및Identifying, for a unit of an intra predicted current block of the divided coding units, a reference sample used for intra prediction; And
    상기 참조 샘플 중 기 복호화된 정보가 존재하지 않는 참조 샘플에 대하여, 상기 현재 블록의 주변 블록의 변화량이 반영된 패딩 처리를 수행하는 단계; 및Performing a padding process in which a change amount of a neighboring block of the current block is reflected on a reference sample in which there is no previously decoded information among the reference samples; And
    상기 패딩 처리된 참조 샘플에 기초한 인트라 예측 복호화를 수행하여 상기 예측 블록을 획득하는 단계를 포함하는And performing intra prediction decoding based on the padded reference sample to obtain the prediction block
    영상 복호화 방법.Video decoding method.
  10. 영상의 부호화 방법에 있어서,A method of encoding an image,
    영상의 픽쳐를 인터 예측(inter prediction) 또는 인트라 예측(intra prediction)이 수행되는 기본 단위인 복수의 코딩 유닛(Coding Unit)들로 분할하는 단계;Dividing a picture of the picture into a plurality of coding units which are basic units in which inter prediction or intra prediction is performed;
    상기 분할된 코딩 유닛들 중 인트라 예측된 현재 블록의 유닛에 대해, 인트라 예측에 이용된 참조 샘플을 식별하는 단계;Identifying, for a unit of an intra predicted current block of the divided coding units, a reference sample used for intra prediction;
    상기 참조 샘플 중 기 복호화된 정보가 존재하지 않는 참조 샘플에 대하여, 상기 현재 블록의 주변 블록의 변화량이 반영된 패딩 처리를 수행하는 단계; 및Performing a padding process in which a change amount of a neighboring block of the current block is reflected on a reference sample in which there is no previously decoded information among the reference samples; And
    상기 패딩 처리된 참조 샘플에 기초한 인트라 예측 부호화를 수행하는 단계;를 포함하는And performing intra prediction coding based on the padded reference sample
    영상 부호화 방법.Image encoding method.
PCT/KR2019/000238 2018-01-08 2019-01-08 Image processing method and image decoding and coding method using same WO2019135658A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR10-2018-0002462 2018-01-08
KR1020180002462A KR102520405B1 (en) 2018-01-08 2018-01-08 Method of processing video, video encoding and decoding thereof

Publications (1)

Publication Number Publication Date
WO2019135658A1 true WO2019135658A1 (en) 2019-07-11

Family

ID=67144235

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2019/000238 WO2019135658A1 (en) 2018-01-08 2019-01-08 Image processing method and image decoding and coding method using same

Country Status (2)

Country Link
KR (1) KR102520405B1 (en)
WO (1) WO2019135658A1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2024025371A1 (en) * 2022-07-27 2024-02-01 엘지전자 주식회사 Image encoding/decoding method and device, and recording medium in which bitstream is stored
WO2024025370A1 (en) * 2022-07-28 2024-02-01 현대자동차주식회사 Image encoding/decoding method, device, and recording medium having bitstream stored thereon

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20130004548A (en) * 2011-07-01 2013-01-11 삼성전자주식회사 Method and apparatus for video encoding with intra prediction by unification of availability check, method and apparatus for video decoding with intra prediction by unification of availability check
KR20140008503A (en) * 2012-07-10 2014-01-21 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR101673025B1 (en) * 2010-07-22 2016-11-04 에스케이 텔레콤주식회사 Apparatus and Method for Intra Prediction Encoding/Decoding based on All Direction
KR101722284B1 (en) * 2011-03-25 2017-04-18 삼성전자주식회사 Method for encoding control information in broadcasting/communication system and transmission/reception apparatus and method thereof
KR20170125154A (en) * 2016-05-03 2017-11-14 광운대학교 산학협력단 Method and apparatus of video decoder using curve intra prediction

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR101673025B1 (en) * 2010-07-22 2016-11-04 에스케이 텔레콤주식회사 Apparatus and Method for Intra Prediction Encoding/Decoding based on All Direction
KR101722284B1 (en) * 2011-03-25 2017-04-18 삼성전자주식회사 Method for encoding control information in broadcasting/communication system and transmission/reception apparatus and method thereof
KR20130004548A (en) * 2011-07-01 2013-01-11 삼성전자주식회사 Method and apparatus for video encoding with intra prediction by unification of availability check, method and apparatus for video decoding with intra prediction by unification of availability check
KR20140008503A (en) * 2012-07-10 2014-01-21 한국전자통신연구원 Method and apparatus for image encoding/decoding
KR20170125154A (en) * 2016-05-03 2017-11-14 광운대학교 산학협력단 Method and apparatus of video decoder using curve intra prediction

Also Published As

Publication number Publication date
KR102520405B1 (en) 2023-04-10
KR20190084560A (en) 2019-07-17

Similar Documents

Publication Publication Date Title
WO2018070809A1 (en) Image processing method, and image decoding and encoding method using same
WO2017204427A1 (en) Image processing method, and image encoding and decoding method using same
WO2017204532A1 (en) Image encoding/decoding method and recording medium for same
WO2018026118A1 (en) Image encoding/decoding method
WO2018030599A1 (en) Intra-prediction mode-based image processing method and device therefor
WO2017018664A1 (en) Intra prediction mode-based image processing method and apparatus therefor
WO2019022568A1 (en) Image processing method, and image encoding/decoding method and device which use same
WO2019182385A1 (en) Image encoding/decoding method and device, and recording medium in which bitstream is stored
WO2019172705A1 (en) Image encoding/decoding method and apparatus using sample filtering
WO2018097692A2 (en) Method and apparatus for encoding/decoding image, and recording medium in which bit stream is stored
WO2012005520A2 (en) Method and apparatus for encoding video by using block merging, and method and apparatus for decoding video by using block merging
WO2018047995A1 (en) Intra-prediction mode-based image processing method and apparatus therefor
WO2011071328A2 (en) Method and apparatus for encoding video, and method and apparatus for decoding video
WO2019066524A1 (en) Image encoding/decoding method and apparatus, and recording medium for storing bitstream
WO2019050292A1 (en) Method and device for processing video signal
WO2018135885A1 (en) Image decoding and encoding method providing transformation processing
WO2019190201A1 (en) Video signal processing method and device
WO2018066958A1 (en) Method and apparatus for processing video signal
WO2021107532A1 (en) Image encoding/decoding method and apparatus, and recording medium in which bitstream is stored
WO2018056701A1 (en) Method and apparatus for processing video signal
WO2019050291A1 (en) Method and device for processing video signal
WO2018124333A1 (en) Intra prediction mode-based image processing method, and apparatus therefor
WO2019182295A1 (en) Method and apparatus for processing video signal
WO2019194653A1 (en) Image processing method for providing complex merge mode process of motion information, image decoding and encoding method using same, and apparatus thereof
WO2015137785A1 (en) Image encoding method for sample value compensation and apparatus therefor, and image decoding method for sample value compensation and apparatus therefor

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: 19736027

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: 19736027

Country of ref document: EP

Kind code of ref document: A1