WO2020231219A1 - 영상 부호화 및 복호화 방법 및 장치 - Google Patents

영상 부호화 및 복호화 방법 및 장치 Download PDF

Info

Publication number
WO2020231219A1
WO2020231219A1 PCT/KR2020/006419 KR2020006419W WO2020231219A1 WO 2020231219 A1 WO2020231219 A1 WO 2020231219A1 KR 2020006419 W KR2020006419 W KR 2020006419W WO 2020231219 A1 WO2020231219 A1 WO 2020231219A1
Authority
WO
WIPO (PCT)
Prior art keywords
information
block
pixel
subpictures
target block
Prior art date
Application number
PCT/KR2020/006419
Other languages
English (en)
French (fr)
Inventor
심동규
박시내
최한솔
박승욱
임화평
Original Assignee
현대자동차주식회사
기아자동차주식회사
광운대학교 산학협력단
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 현대자동차주식회사, 기아자동차주식회사, 광운대학교 산학협력단 filed Critical 현대자동차주식회사
Priority to US17/294,137 priority Critical patent/US20220014769A1/en
Priority to CN202080036117.9A priority patent/CN113841397A/zh
Priority claimed from KR1020200058245A external-priority patent/KR20200132753A/ko
Publication of WO2020231219A1 publication Critical patent/WO2020231219A1/ko

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/44Decoders specially adapted therefor, e.g. video decoders which are asymmetric with respect to the encoder
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards
    • 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/117Filters, e.g. for pre-processing or post-processing
    • 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/119Adaptive subdivision aspects, e.g. subdivision of a picture into rectangular or non-rectangular coding blocks
    • 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/80Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation
    • H04N19/82Details of filtering operations specially adapted for video compression, e.g. for pixel interpolation involving filtering within a prediction loop
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/90Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using coding techniques not provided for in groups H04N19/10-H04N19/85, e.g. fractals
    • H04N19/96Tree coding, e.g. quad-tree coding

Definitions

  • the present invention relates to encoding and decoding of an image, and relates to division of each picture into independently displayable subpictures and to encoding and decoding of each subpicture.
  • video data Since video data has a large amount of data compared to audio data or still image data, it requires a lot of hardware resources including memory in order to store or transmit itself without processing for compression.
  • video compression techniques include H.264/AVC and HEVC (High Efficiency Video Coding), which improves coding efficiency by about 40% compared to H.264/AVC.
  • the present disclosure is intended to propose a technique for dividing each picture into subpictures that can be independently displayed from each other, and a technique for encoding and decoding each subpicture.
  • An aspect of the present disclosure provides an image decoding method of decoding a bitstream in which a sequence of pictures divided into a plurality of subpictures including a plurality of coding tree blocks is encoded.
  • the method includes: decoding layout information of the subpictures divided from the picture included in the sequence from the bitstream; Determining a target block by dividing a coding tree block to be decoded into a tree structure in any one of the subpictures identified by the layout information; Decoding prediction information for predicting the target block and information on residual signals of the target block from the bitstream; Generating a prediction block by predicting pixels in the target block based on the prediction information; Generating a residual block for the target block by using the information on the residual signal; And reconstructing the target block by adding the prediction block and the residual block.
  • Another aspect of the present disclosure provides an image decoding apparatus for decoding a bitstream in which a sequence of pictures divided into a plurality of subpictures including a plurality of coding tree blocks is encoded.
  • the apparatus is to decode layout information of the subpictures divided from the picture included in the sequence from the bitstream, and to decode in any one of the subpictures identified by the layout information.
  • a decoding unit that determines a target block by dividing the coding tree block into a tree structure, and decodes prediction information for predicting the target block and information on residual signals of the target block from the bitstream;
  • a prediction unit generating a prediction block by predicting pixels in the target block based on the prediction information;
  • a residual reconstructor configured to generate a residual block for the target block by using the information on the residual signal;
  • an adder for reconstructing the target block by adding the prediction block and the residual block.
  • the subpictures constituting the picture are units that can be displayed independently of each other.
  • FIG. 1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
  • FIG. 2 is a diagram for explaining a method of dividing a block using a QTBTTT structure.
  • 3 is a diagram illustrating a plurality of intra prediction modes.
  • FIG. 4 is an exemplary block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
  • 5 is an exemplary diagram showing the structure of a bitstream.
  • FIG. 6 is an exemplary diagram showing the structure of a NAL unit including a third parameter set.
  • FIG. 7 is an exemplary diagram for explaining the layout of subpictures constituting each picture.
  • FIG. 8 is an exemplary diagram for explaining a layout of subpictures constituting each picture.
  • 9 is an exemplary diagram for describing a method of processing subpictures that overlap each other.
  • FIG. 1 is an exemplary block diagram of an image encoding apparatus capable of implementing the techniques of the present disclosure.
  • an image encoding apparatus and sub-elements of the apparatus will be described with reference to FIG. 1.
  • the image encoding apparatus includes a block division unit 110, a prediction unit 120, a subtractor 130, a transform unit 140, a quantization unit 145, a rearrangement unit 150, an entropy encoding unit 155, and an inverse quantization unit. (160), an inverse transform unit 165, an adder 170, a loop filter unit 180, and a memory 190 may be included.
  • Each component of the image encoding apparatus may be implemented by hardware or software, or by a combination of hardware and software.
  • functions of each component may be implemented as software, and a microprocessor may be implemented to execute a function of software corresponding to each component.
  • One image is composed of a plurality of pictures. Each picture is divided into a plurality of regions, and encoding is performed for each region. For example, one picture is divided into one or more tiles or/and slices. Here, one or more tiles may be defined as a tile group. Each tile or/slice is divided into one or more Coding Tree Units (CTUs). And each CTU is divided into one or more CUs (Coding Units) by a tree structure. Information applied to each CU is encoded as the syntax of the CU, and information commonly applied to CUs included in one CTU is encoded as the syntax of the CTU.
  • CTUs Coding Tree Units
  • information commonly applied to all blocks in one slice is encoded as the syntax of the slice header, and information applied to all blocks constituting one or more pictures is a picture parameter set (PPS) or picture. It is coded in the header. Further, information commonly referred to in a sequence composed of a plurality of pictures is encoded in a sequence parameter set (SPS). Also, information commonly applied to one tile or tile group may be encoded as syntax of a tile or tile group header.
  • PPS picture parameter set
  • SPS sequence parameter set
  • the block dividing unit 110 determines the size of a coding tree unit (CTU).
  • CTU size Information on the size of the CTU (CTU size) is encoded as the syntax of the SPS or PPS and transmitted to the video decoding apparatus.
  • the block dividing unit 110 After dividing each picture constituting the image into a plurality of coding tree units (CTUs) having a predetermined size, the block dividing unit 110 repetitively divides the CTU using a tree structure. (recursively) split. A leaf node in the tree structure becomes a coding unit (CU), which is a basic unit of coding.
  • CU coding unit
  • a quad tree (QuadTree, QT) in which an upper node (or parent node) is divided into four lower nodes (or child nodes) of the same size, or a binary tree (BinaryTree) in which an upper node is divided into two lower nodes. , BT), or a ternary tree (TT) in which an upper node is divided into three lower nodes in a 1:2:1 ratio, or a structure in which two or more of these QT structures, BT structures, and TT structures are mixed.
  • QT quad tree
  • BT binary tree
  • TT ternary tree
  • a QTBT QuadTree plus BinaryTree
  • a QTBTTT QuadTree plus BinaryTree TernaryTree
  • MTT Multiple-Type Tree
  • the CTU may be first divided into a QT structure.
  • the quadtree division may be repeated until the size of a splitting block reaches the minimum block size (MinQTSize) of a leaf node allowed in QT.
  • a first flag (QT_split_flag) indicating whether each node of the QT structure is divided into four nodes of a lower layer is encoded by the entropy encoder 155 and signaled to the image decoding apparatus. If the leaf node of the QT is not larger than the maximum block size (MaxBTSize) of the root node allowed in BT, it may be further divided into one or more of a BT structure or a TT structure.
  • MaxBTSize maximum block size
  • a plurality of division directions may exist. For example, there may be two directions in which a block of a corresponding node is divided horizontally and a direction vertically divided.
  • a second flag indicating whether nodes are split, and if split, a flag indicating a split direction (vertical or horizontal) and/or a split type (Binary or Ternary).
  • a flag indicating) is encoded by the entropy encoder 155 and signaled to the image decoding apparatus.
  • a CU split flag (split_cu_flag) indicating whether the node is divided is encoded. It could be.
  • the block of the corresponding node becomes a leaf node in the split tree structure and becomes a coding unit (CU), which is a basic unit of encoding.
  • CU coding unit
  • a split flag indicating whether each node of the BT structure is divided into blocks of a lower layer and split type information indicating a type to be divided are encoded by the entropy encoder 155 and transmitted to the image decoding apparatus.
  • a type of dividing the block of the corresponding node into two blocks having an asymmetric shape may further exist.
  • the asymmetric form may include a form of dividing a block of a corresponding node into two rectangular blocks having a size ratio of 1:3, or a form of dividing a block of a corresponding node in a diagonal direction.
  • the CU can have various sizes according to the QTBT or QTBTTT split from the CTU.
  • a block corresponding to a CU to be encoded or decoded ie, a leaf node of QTBTTT
  • a'current block' a block corresponding to a CU to be encoded or decoded
  • the shape of the current block may be not only square but also rectangular.
  • the prediction unit 120 predicts the current block and generates a prediction block.
  • the prediction unit 120 includes an intra prediction unit 122 and an inter prediction unit 124.
  • the intra prediction unit 122 predicts pixels in the current block by using pixels (reference pixels) located around the current block in the current picture including the current block.
  • the plurality of intra prediction modes may include two non-directional modes including a planar mode and a DC mode, and 65 directional modes.
  • the surrounding pixels to be used and the equation are defined differently.
  • the intra prediction unit 122 may determine an intra prediction mode to be used to encode the current block.
  • the intra prediction unit 122 may encode the current block using several intra prediction modes and select an appropriate intra prediction mode to use from the tested modes. For example, the intra prediction unit 122 calculates rate distortion values using rate-distortion analysis for several tested intra prediction modes, and has the best rate distortion characteristics among the tested modes. It is also possible to select an intra prediction mode.
  • the intra prediction unit 122 selects one intra prediction mode from among a plurality of intra prediction modes, and predicts the current block using a neighboring pixel (reference pixel) determined according to the selected intra prediction mode and an equation.
  • Information on the selected intra prediction mode is encoded by the entropy encoder 155 and transmitted to the image decoding apparatus.
  • the inter prediction unit 124 generates a prediction block for the current block through a motion compensation process.
  • the inter prediction unit 124 searches for a block most similar to the current block in the coded and decoded reference picture prior to the current picture, and generates a prediction block for the current block using the searched block. Then, a motion vector corresponding to a displacement between the current block in the current picture and the prediction block in the reference picture is generated.
  • motion estimation is performed on a luma component, and a motion vector calculated based on the luma component is used for both the luma component and the chroma component.
  • Motion information including information on a reference picture used to predict the current block and information on a motion vector is encoded by the entropy encoder 155 and transmitted to an image decoding apparatus.
  • the inter prediction unit 124 may perform interpolation on a reference picture or a reference block in order to increase the accuracy of prediction. That is, subpixels between two consecutive integer pixels are interpolated by applying filter coefficients to a plurality of consecutive integer pixels including the two integer pixels.
  • the motion vector may be expressed not to the precision of the integer pixel but to the precision of the decimal unit.
  • the precision or resolution of the motion vector may be set differently for each unit of a target region to be encoded, such as a slice, tile, CTU, or CU.
  • the subtractor 130 generates a residual block by subtracting the prediction block generated by the intra prediction unit 122 or the inter prediction unit 124 from the current block.
  • the transform unit 140 divides the residual block into one or more sub-blocks and applies the transform to one or more sub-blocks to transform residual values of the transform blocks from the pixel domain to the frequency domain.
  • transformed blocks are referred to as coefficient blocks or transform blocks including one or more transform coefficient values.
  • a 2D transformation kernel may be used for transformation, and a 1D transformation kernel may be used for each of the horizontal and vertical directions.
  • the transform kernel may be based on discrete cosine transform (DCT), discrete sine transform (DST), or the like.
  • the transform unit 140 may transform residual signals in the residual block by using the entire size of the residual block as a transform unit.
  • the residual block may be divided into a plurality of subblocks and the residual signals in the subblock may be transformed using the subblock as a transformation unit.
  • the transform unit 140 may individually transform the residual block in a horizontal direction and a vertical direction.
  • various types of transformation functions or transformation matrices can be used.
  • a pair of transform functions for transverse transformation and transformation may be defined as a multiple transform set (MTS).
  • the transform unit 140 may select one transform function pair having the best transform efficiency among MTS and transform the residual blocks in the horizontal and vertical directions, respectively.
  • Information (mts_idx) on the transform function pair selected from the MTS is encoded by the entropy encoder 155 and signaled to the image decoding apparatus.
  • the quantization unit 145 quantizes the transform coefficients output from the transform unit 140 using a quantization parameter, and outputs the quantized transform coefficients to the entropy encoding unit 155.
  • the quantization unit 145 may immediately quantize a related residual block for a certain block or frame without transformation.
  • the quantization unit 145 may apply different quantization coefficients (scaling values) according to positions of the transform coefficients in the transform block.
  • a matrix of quantization coefficients applied to quantized transform coefficients arranged in two dimensions may be encoded and signaled to an image decoding apparatus.
  • the rearrangement unit 150 may rearrange coefficient values on the quantized residual values.
  • the rearrangement unit 150 may change a two-dimensional coefficient array into a one-dimensional coefficient sequence through coefficient scanning. For example, the rearrangement unit 150 may scan from a DC coefficient to a coefficient in a high frequency region using a zig-zag scan or a diagonal scan to output a one-dimensional coefficient sequence. .
  • zig-zag scan instead of zig-zag scan, a vertical scan that scans a two-dimensional coefficient array in a column direction or a horizontal scan that scans a two-dimensional block shape coefficient in a row direction may be used. That is, a scan method to be used may be determined from among zig-zag scan, diagonal scan, vertical scan, and horizontal scan according to the size of the transform unit and the intra prediction mode.
  • the entropy encoding unit 155 uses various encoding methods such as Context-based Adaptive Binary Arithmetic Code (CABAC), Exponential Golomb, and the like, and the quantized transform coefficients of 1D output from the reordering unit 150 are A bitstream is generated by encoding the sequence.
  • CABAC Context-based Adaptive Binary Arithmetic Code
  • Exponential Golomb Exponential Golomb
  • the entropy encoder 155 encodes information such as a CTU size related to block division, a CU division flag, a QT division flag, an MTT division type, and an MTT division direction, so that the video decoding apparatus performs the same block as the video encoding apparatus. Make it possible to divide.
  • the entropy encoder 155 encodes information on a prediction type indicating whether the current block is encoded by intra prediction or inter prediction, and intra prediction information (ie, intra prediction) according to the prediction type. Mode information) or inter prediction information (reference picture and motion vector information) is encoded.
  • the entropy encoder 155 encodes information related to quantization, that is, information on a quantization parameter and information on a quantization matrix.
  • the inverse quantization unit 160 inverse quantizes the quantized transform coefficients output from the quantization unit 145 to generate transform coefficients.
  • the inverse transform unit 165 converts transform coefficients output from the inverse quantization unit 160 from the frequency domain to the spatial domain to restore the residual block.
  • the addition unit 170 restores the current block by adding the restored residual block and the prediction block generated by the prediction unit 120.
  • the pixels in the reconstructed current block are used as reference pixels when intra-predicting the next block.
  • the loop filter unit 180 is a reconstructed pixel to reduce blocking artifacts, ringing artifacts, and blurring artifacts generated due to block-based prediction and transformation/quantization. Filtering is performed on the fields.
  • the loop filter unit 180 may include one or more of a deblocking filter 182, a sample adaptive offset (SAO) filter 184, and an adaptive loop filter (ALF) 186.
  • a deblocking filter 182 a sample adaptive offset (SAO) filter 184
  • ALF adaptive loop filter
  • the deblocking filter 182 filters the boundary between reconstructed blocks to remove blocking artifacts caused by block-based encoding/decoding, and the SAO filter 184 is additionally applied to the deblocking filtered image. Filtering is performed.
  • the SAO filter 184 is a filter used to compensate for the difference between the reconstructed pixel and the original pixel caused by lossy coding, and is performed in a manner in which each reconstructed pixel is added to an offset corresponding thereto. .
  • the ALF 186 performs filtering on a target pixel by applying filter coefficients to a target pixel to be filtered and surrounding pixels of the target pixel.
  • the ALF 186 may divide the pixels included in the image into predetermined groups, and then determine one filter to be applied to the corresponding group, and perform filtering differentially for each group. Information on filter coefficients to be used for the ALF may be encoded and signaled to an image decoding apparatus.
  • the reconstructed block filtered through the loop filter unit 180 is stored in the memory 190.
  • the reconstructed picture may be used as a reference picture for inter prediction of a block in a picture to be encoded later.
  • FIG. 4 is an exemplary functional block diagram of an image decoding apparatus capable of implementing the techniques of the present disclosure.
  • an image decoding apparatus and sub-components of the apparatus will be described with reference to FIG. 4.
  • the image decoding apparatus includes an entropy decoding unit 410, a rearrangement unit 415, an inverse quantization unit 420, an inverse transform unit 430, a prediction unit 440, an adder 450, a loop filter unit 460, and a memory ( 470).
  • each component of the image decoding apparatus may be implemented as hardware or software, or may be implemented as a combination of hardware and software.
  • functions of each component may be implemented as software, and a microprocessor may be implemented to execute a function of software corresponding to each component.
  • the entropy decoding unit 410 determines the current block to be decoded by decoding the bitstream generated by the image encoding apparatus and extracting information related to block division, and predicting information and residual signals necessary to restore the current block. Extract information, etc.
  • the entropy decoding unit 410 determines the size of the CTU by extracting information on the CTU size from a sequence parameter set (SPS) or a picture parameter set (PPS), and divides the picture into CTUs of the determined size. Then, the CTU is determined as the uppermost layer of the tree structure, that is, the root node, and the CTU is divided using the tree structure by extracting partition information for the CTU.
  • SPS sequence parameter set
  • PPS picture parameter set
  • a first flag (QT_split_flag) related to the splitting of the QT is extracted and each node is split into four nodes of a lower layer.
  • the second flag (MTT_split_flag) related to the splitting of the MTT is extracted to MTT Divide into structure.
  • each node may have 0 or more repetitive MTT segmentation after 0 or more repetitive QT segmentation.
  • MTT division may occur immediately, or, conversely, only multiple QT divisions may occur.
  • each node is divided into four nodes of a lower layer by extracting the first flag (QT_split_flag) related to the division of the QT.
  • QT_split_flag the first flag related to the division of the QT.
  • a split flag indicating whether or not the node corresponding to the leaf node of the QT is further split into BT and split direction information are extracted.
  • the entropy decoder 410 extracts information on a prediction type indicating whether the current block is intra prediction or inter prediction.
  • the prediction type information indicates intra prediction
  • the entropy decoder 410 extracts a syntax element for intra prediction information (intra prediction mode) of the current block.
  • the prediction type information indicates inter prediction
  • the entropy decoder 410 extracts a syntax element for the inter prediction information, that is, information indicating a motion vector and a reference picture referenced by the motion vector.
  • the entropy decoding unit 410 extracts information on quantization-related information and information on quantized transform coefficients of the current block as information on the residual signal.
  • the rearrangement unit 415 in the reverse order of the coefficient scanning order performed by the image encoding apparatus, reconverts the sequence of one-dimensional quantized transform coefficients entropy-decoded by the entropy decoder 410 into a two-dimensional coefficient array (ie, Block).
  • the inverse quantization unit 420 inverse quantizes the quantized transform coefficients using the quantization parameter.
  • the inverse quantization unit 420 may apply different quantization coefficients (scaling values) to quantized transform coefficients arranged in two dimensions.
  • the inverse quantization unit 420 may perform inverse quantization by applying a matrix of quantization coefficients (scaling values) from an image encoding apparatus to a two-dimensional array of quantized transform coefficients.
  • the inverse transform unit 430 inversely transforms the inverse quantized transform coefficients from the frequency domain to the spatial domain to restore residual signals, thereby generating a restored residual block for the current block.
  • the inverse transform unit 430 determines a transform function or transform matrix to be applied in the horizontal and vertical directions, respectively, using MTS information (mts_idx) signaled from the image encoding apparatus, and uses the determined transform function. Inverse transform is performed on the transform coefficients in the transform block in the horizontal and vertical directions.
  • the prediction unit 440 may include an intra prediction unit 442 and an inter prediction unit 444.
  • the intra prediction unit 442 is activated when the prediction type of the current block is intra prediction
  • the inter prediction unit 444 is activated when the prediction type of the current block is inter prediction.
  • the intra prediction unit 442 determines an intra prediction mode of the current block among a plurality of intra prediction modes from the syntax element for the intra prediction mode extracted from the entropy decoding unit 410, and references around the current block according to the intra prediction mode. Predict the current block using pixels.
  • the inter prediction unit 444 determines a motion vector of the current block and a reference picture referenced by the motion vector using the syntax element for the intra prediction mode extracted from the entropy decoding unit 410, and determines the motion vector and the reference picture. Is used to predict the current block.
  • the adder 450 restores the current block by adding the residual block output from the inverse transform unit and the prediction block output from the inter prediction unit or the intra prediction unit.
  • the pixels in the reconstructed current block are used as reference pixels for intra prediction of a block to be decoded later.
  • the loop filter unit 460 may include at least one of a deblocking filter 462, an SAO filter 464, and an ALF 466.
  • the deblocking filter 462 performs deblocking filtering on the boundary between reconstructed blocks in order to remove blocking artifacts caused by decoding in units of blocks.
  • the SAO filter 464 performs filtering in a manner that is added to an offset corresponding to the reconstructed block after deblocking filtering in order to compensate for the difference between the reconstructed pixel and the original pixel caused by lossy coding. do.
  • the ALF 466 performs filtering on a target pixel by applying filter coefficients to a target pixel to be filtered and surrounding pixels of the target pixel.
  • the ALF 466 may divide the pixels included in the image into predetermined groups, and then determine one filter to be applied to the group, and perform filtering differently for each group.
  • the filter coefficient of the ALF is determined using information about the filter coefficient decoded from the non-stream.
  • the reconstructed block filtered through the loop filter unit 460 is stored in the memory 470.
  • the reconstructed picture is used as a reference picture for inter prediction of a block in a picture to be encoded later.
  • the image encoding apparatus transmits a bitstream including coded data for a video, and the image decoding apparatus decodes the bitstream and reconstructs pictures constituting the video.
  • a bitstream may be composed of a plurality of transmission units, that is, network abstraction layer (NAL) units.
  • NAL network abstraction layer
  • the NAL unit may consist of a NAL unit header and data transmitted through the corresponding NAL unit.
  • a bit may be added to the rear part of data constituting the NAL unit.
  • the NAL unit header includes a NAL unit type for indicating the type of data transmitted through the corresponding NAL unit, a temporal layer ID of the NAL unit, and the like.
  • the NAL unit may be classified into a video coding layer (VCL) type NAL unit and a non-VCL type NAL unit.
  • a video coding layer (VCL) type NAL unit is an NAL unit including image data of a group of encoded pixels in a data field, and typically includes data on a coded slice. This means that the unit in which image data is transmitted is a slice.
  • the non-VCL type NAL unit includes parameters necessary for decoding of data of a pixel group in a data field. SPS including parameters shared at the sequence level (hereinafter referred to as “first parameter set”), or PPS including parameters shared at one or more picture levels (hereinafter referred to as “second parameter set”), etc.
  • NAL units including high level syntaxes correspond to non-VCL type NAL units. Whether the transmitted NAL unit is related to a first parameter set, a second parameter set, or a coded slice is indicated by the NAL unit type included in the NAL unit header.
  • a picture or a group of pixels smaller than a picture for example, a NAL unit in which a third parameter set including parameters commonly applied to one or more slices is transmitted may be further defined.
  • a bitstream representing one sequence includes one or more NAL units that transmit third parameter sets.
  • FIG. 6 is an exemplary diagram showing the structure of a NAL unit including a third parameter set.
  • the third parameter set is included in the data field of the NAL unit.
  • the third parameter set includes at least one of own ID information and parameter type information. It also includes parameters corresponding to parameter type information.
  • Each third parameter set is associated with any one of a plurality of parameter types according to which coding tool the parameters it transmits are associated with.
  • information indicating the parameter type may be included in the third parameter set.
  • the NAL unit type in the structure of FIG. 6A may indicate whether the corresponding NAL unit is related to the third parameter set through a specific index value.
  • the types of parameters included in the third parameter set are identified by parameter type information included in the third parameter set.
  • the parameter type may be indicated by the NAL unit type included in the NAL unit header.
  • NAL unit types are further subdivided according to the type of the parameter included in the third parameter set. For example, in the structure of FIG.
  • the NAL unit type may have different index values according to the type of the parameter transmitted through the third parameter set. According to the value of the NAL unit type, whether data included in the corresponding NAL unit is a third parameter set and a parameter type of the third parameter set are identified. As another example, as shown in (C) of FIG. 6, only parameter type information may be included without ID information in the data field of the NAL unit. In this case, the ID of the third parameter set is assigned according to the encoding or decoding order. ID values may be sequentially assigned for each parameter type, or ID values may be sequentially assigned according to a decoding order regardless of the parameter type.
  • the parameter type of the third parameter set may include, for example, a loop filtering type, a scaling list type, and a prediction information type.
  • the parameter type information is a loop filtering type
  • the third parameter set includes information on one or more sets of filter coefficients used for loop filtering.
  • filter coefficients belonging to each set may be expressed by an absolute value of the filter coefficient and a sign of the filter coefficient.
  • the parameter type information is a scaling list type
  • the third parameter set includes scaling values used for quantization of each transform coefficient, that is, coefficients of a quantization matrix.
  • the parameter type information is a prediction information type
  • the third parameter set includes a set of filter coefficients used when generating a prediction signal in a specific prediction mode.
  • the video decoding apparatus decodes NAL units related to the third parameter set, and stores the third parameter sets in a memory.
  • the ID and parameter type for the third parameter set are determined according to the decoding of the NAL units. For each parameter type, m (m is an integer greater than or equal to 1) may be stored in the memory, and m may be different according to the parameter type. If m parameter sets are already stored in the memory, the video decoding apparatus deletes the existing parameter set and stores the newly decoded third parameter set. For example, a newly decoded third parameter set and a parameter set having the same ID and parameter type may be deleted from the memory. Alternatively, the third parameter set stored the longest time may be deleted. Alternatively, ID and parameter type information for the third parameter set to be deleted from the bitstream may be extracted, and the third parameter set corresponding to the extracted information may be deleted from the memory.
  • another aspect of the present disclosure discloses a method of dividing pictures into a plurality of subpictures and encoding and decoding each subpicture.
  • the present disclosure enables independent encoding or independent transmission of subpictures constituting each picture.
  • each subpicture divided from the picture can be displayed independently of each other.
  • FIG. 7 is an exemplary diagram for explaining the layout of subpictures constituting each picture.
  • the coding unit group may be a CTU, a slice, a tile, or a grid of a predefined size.
  • the coding unit group may be classified into a first coding unit group, which is a basic unit constituting a subpicture, and a second coding unit group consisting of a plurality of first coding unit groups.
  • the first coding unit group may be a CTU
  • the second coding unit group may be a slice corresponding to a transmission unit.
  • the subpicture may be composed of one or more second coding unit groups.
  • a first coding unit group is a CTU and a second coding unit group is a slice, but it is obvious that the present invention is not necessarily limited thereto.
  • the first coding unit group may be a grid having a predefined size
  • the second coding unit group may be a slice or a tile.
  • the layout information is expressed by the number of subpictures in the picture, the ID of each subpicture, and the position and size of each subpicture in the picture.
  • the location and size of each subpicture may be expressed as information capable of identifying CTUs constituting each subpicture.
  • the CTUs constituting each subpicture may be identified by a first CTU and a last CTU constituting a subpicture in a raster scan order.
  • the first CTU and the last CTU in raster scan order mean a CTU located at the upper left and a CTU located at the lower right within each subpicture. Therefore, the information for identifying CTUs constituting the subpicture includes identification information for identifying the position of the upper left CTU (eg, coordinate information of the upper left CTU) and identification information for identifying the CTU located at the lower right (eg, lower right CTU coordinate information) may be included.
  • the information for identifying CTUs constituting a subpicture may be represented by identification information for identifying the position of the upper left CTU, the number of CTUs in the horizontal direction of the subpicture, and the number of CTUs in the vertical direction. .
  • FIG. 8 is another exemplary diagram for describing a layout of subpictures constituting each picture.
  • a first coding unit group which is a basic unit constituting a subpicture, is a grid in which a plurality of pixels are grouped.
  • the subpicture may be a grid grouped.
  • Layout information of subpictures may be represented by a grid.
  • the size of the grid is first defined.
  • the size of the grid may be defined by the horizontal and vertical length of the grid, or the number of grids in the horizontal and vertical directions of a picture.
  • the layout information of the subpictures includes the number of subpictures in the picture, the ID of each subpicture, and identification information for identifying a grid constituting each subpicture.
  • the identification information includes identification information of the first grid and identification information of the last grid in the order of raster scanning in the subpicture.
  • the first grid corresponds to the upper left grid in the subpicture
  • the last grid corresponds to the lower right grid within the subpicture. Therefore, the identification information includes identification information of the upper left grid and the lower right grid in the subpicture.
  • the identification information may include identification information of the upper left grid in the subpicture and information on the number of grids in the horizontal and vertical directions.
  • the identification information may be the position of the grid.
  • the identification information may be expressed as an ID or address of the grid.
  • IDs or addresses for grids within a picture may be assigned in ascending order starting from 0 according to a specific scan order, for example, a raster scan order.
  • the video encoding apparatus encodes split information for dividing each picture into subpictures, that is, layout information.
  • the layout information may be included in the aforementioned first parameter set or the second parameter set.
  • the video decoding apparatus extracts layout information included in the first parameter set or the second parameter set to identify subpictures constituting each of the pictures.
  • the video encoding apparatus encodes a subpicture ID for each slice, which is a transmission unit.
  • the video decoding apparatus may determine which subpicture contains the corresponding slice by extracting the subpicture ID in units of slices. Further, each subpicture is reconstructed by decoding blocks in one or more slices constituting the subpicture through the above-described decoding process.
  • Subpictures should be capable of independent transmission, encoding/decoding, and display independently of each other. Accordingly, the image encoding apparatus and the image decoding apparatus of the present disclosure may perform a process of disallowing reference to reconstructed pixels outside the subpicture boundary during the encoding or decoding process of the subpicture.
  • boundaries of subpictures may be identified by layout information.
  • the prediction unit 120 of the image encoding apparatus and the prediction unit 440 of the image decoding apparatus are configured from the reconstructed pixels based on prediction information (inter prediction information or intra prediction information) of the current block. Predict the pixels within.
  • the prediction units 120 and 440 may replace the undistorted pixel at the determined position, even if the undistorted pixel exists at the determined position. Is used to predict the pixel in the current block.
  • the replacement pixel may have a predefined fixed pixel value, or may be a pixel at a predefined position in the current subpicture, for example, a pixel in contact with the boundary of the subpicture in the current subpicture.
  • the process of using the replacement pixel instead of the undulating pixel outside the boundary of the current subpicture may be involved in various prediction processes.
  • the reference pixels may be replaced with a predefined fixed pixel value.
  • the subpicture adjacent to the boundary Integer pixels can be used.
  • the loop filter unit 180 of the image encoding apparatus and the loop filter unit 460 of the image decoding apparatus apply filter coefficients to a target pixel to be filtered and neighboring pixels of the target pixel in the reconstructed current block.
  • loop filtering can be performed on the target pixel.
  • the loop filter units 180 and 460 perform loop filtering on the target pixel by using replacement pixels instead of surrounding pixels outside the boundary of the current subpicture when at least one of the surrounding pixels is outside the boundary of the current subpicture. do.
  • the replacement pixel may have a predefined fixed pixel value, or may be a pixel at a predefined location within the current subpicture, for example, a pixel that is in contact with a boundary of a subpicture within the current subpicture.
  • Filter coefficients to be used for loop filtering may be determined from the above-described third parameter sets.
  • the video encoding apparatus signals ID information of a third parameter set related to a loop filtering type for each coding unit group, for example, for each slice.
  • the video decoding apparatus decodes ID information of a third parameter set related to loop filtering from a header of a coding unit group, such as a slice header, and selects a third parameter set corresponding to the decoded ID information from among the third parameter sets stored in the memory. do.
  • ID information of a plurality of third parameter sets related to loop filtering may be signaled on a slice basis.
  • information on the number of IDs of the third parameter set included in the slice is signaled first, and ID information of the third parameter set as much as the number is signaled.
  • the number of signaled ID information may vary according to a color component of pixels to be filtered, that is, whether a color component is luma or chroma. For example, in the case of a luma component, the number of ID information is signaled first, and ID information of the third parameter set corresponding to the number is signaled.
  • the chroma component one third parameter set of the loop filtering type may always be used. Therefore, only one ID information can be signaled without signaling information on the number of ID information.
  • Filter coefficients to be applied to blocks within a slice may be determined in units of CTU using third parameter sets selected in units of a corresponding slice. All blocks included in one CTU share the same filter coefficients.
  • each third parameter set may include one or more filter coefficient sets.
  • One filter coefficient set includes a plurality of filter coefficients. The number of filter coefficients is determined depending on the number of pixels used to filter one pixel. For example, when a total of n pixels (the filtering target pixel and pixels surrounding the target pixel) are used to filter one pixel, one filter set includes n filter coefficients corresponding to n pixels. .
  • the video encoding apparatus signals filter information for loop filtering a corresponding CTU in units of CTUs.
  • the video decoding apparatus uses the signaled filter information to determine a set of filter coefficients to be applied to the CTU in units of CTUs.
  • filter index information indicating one filter coefficient set among filter coefficient sets included in the one third parameter set may be signaled in units of CTUs. .
  • parameter ID information indicating which parameter set to use among the plurality of third parameter sets may be signaled in units of CTUs.
  • filter index information indicating one filter coefficient set among filter coefficient sets included in the third parameter set corresponding to the parameter ID information may be additionally signaled.
  • which filter coefficient set to use among filter coefficient sets included in the third parameter set corresponding to the parameter ID information may be derived based on the characteristics of the target pixel to be filtered in the CTU. For example, by using the target pixel and surrounding pixels, characteristics such as directionality or activity of the target pixel are calculated, and a set of filter coefficients to be applied to each target pixel is selected according to the calculated characteristics. Can be.
  • characteristics of a pixel such as a direction or activity of a target pixel, may be calculated through a gradient operation using the target pixel and its surrounding pixels, for example, pixels within a predetermined area including the target pixel.
  • signaling for filter index information indicating which filter coefficient set to use among filter coefficient sets included in the third parameter set corresponding to the parameter ID information is not required.
  • the image encoding apparatus and the image decoding apparatus may calculate characteristics of a target filter and select a filter set according to the calculated characteristics.
  • a plurality of predefined filter coefficient sets may be further used in addition to the filter coefficient set included in the third parameter sets.
  • the plurality of predefined filter coefficient sets may be filter coefficient sets determined for one or more CTUs decoded immediately before the current CTU in the decoding order, or adjacent CTUs at a predefined location adjacent to the current CTU (e.g., It may be filter coefficient sets determined for a CTU positioned above and/or to the left of the current CTU.
  • a plurality of predefined filter coefficient sets may be fixedly preset filter coefficient sets for all CTUs.
  • preset filter coefficient sets used in the previously decoded CTU are referred to as'filter set reference list'.
  • one or more of parameter ID information and filter index information among the third parameter sets may be signaled for the filter coefficient set to be used in the current CTU, and the video decoding apparatus is signaled as described above.
  • the information may be used to derive a current CTU or a set of filter coefficients to be applied to each pixel in the current CTU.
  • a filter set to be applied to the current CTU is selected from among filter sets included in a preset filter set reference list.
  • the selection may be performed by filter index information signaled from the image encoding apparatus to the image decoding apparatus, or may be derived for each pixel according to the calculated characteristics after calculating the characteristics of each pixel in the current CTU as described above. .
  • Subpictures reconstructed through the above-described decoding process can be displayed independently of each other.
  • Each of the subpictures may be stored in different storage spaces of one memory or may be individually stored in a plurality of memories.
  • the subpictures may be stored with a predetermined space therebetween.
  • the memory storage structure in units of subframes may be signaled from the image encoding apparatus to the image decoding apparatus in units of pictures or subpictures, or may be derived by indexes, coordinates, and reference relationships between subpictures.
  • a plurality of subpictures that do not have a reference relationship may be stored in different memories.
  • a plurality of subpictures having the same location or the same size or the same subpicture index or the same memory index may be stored in the same memory.
  • a plurality of reconstructed subpictures stored in different memories may be stored in the same memory before being displayed.
  • a plurality of reconstructed subframes that are discontinuously stored in the same memory may be sequentially stored before being displayed.
  • each picture may be divided into a plurality of subpictures so that an area overlapping between the subpictures exists.
  • the image decoding apparatus may select a pixel of one subpicture from among pixels in different subpictures constituting the overlapping area, and store or display a pixel in a memory.
  • the selection of a pixel in a subpicture may be signaled from an image encoding device to an image decoding device.
  • the image decoding apparatus may derive pixel values in the overlapped region to be stored or displayed by applying an arithmetic expression such as an average or a weighted average to a plurality of subpictures constituting the overlapped region.
  • the non-transitory recording medium includes, for example, all kinds of recording devices in which data is stored in a form readable by a computer system.
  • the non-transitory recording medium includes a storage medium such as an erasable programmable read only memory (EPROM), a flash drive, an optical drive, a magnetic hard drive, and a solid state drive (SSD).
  • EPROM erasable programmable read only memory
  • SSD solid state drive

Landscapes

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

Abstract

본 발명은 영상의 부호화 및 복호화에 관한 것으로서, 영상 부호화 장치는 각 픽처를 독립적으로 디스플레이 가능한 서브픽처들로의 분할하여 서브픽처들의 레이아웃(layout) 정보를 시그널링하고, 영상 복호화 장치는 그 레이아웃 정보를 통해 각 서브블록들을 식별하여 서브픽처들을 복호화한다.

Description

영상 부호화 및 복호화 방법 및 장치
본 발명은 영상의 부호화 및 복호화에 관한 것으로서, 각 픽처의 독립적으로 디스플레이 가능한 서브픽처들로의 분할 및 각 서브픽처들의 부호화 및 복호화에 대한 것이다.
비디오 데이터는 음성 데이터나 정지 영상 데이터 등에 비하여 많은 데이터량을 가지기 때문에, 압축을 위한 처리 없이 그 자체를 저장하거나 전송하기 위해서는 메모리를 포함하여 많은 하드웨어 자원을 필요로 한다.
따라서, 통상적으로 비디오 데이터를 저장하거나 전송할 때에는 부호화기를 사용하여 비디오 데이터를 압축하여 저장하거나 전송하며, 복호화기에서는 압축된 비디오 데이터를 수신하여 압축을 해제하고 재생한다. 이러한 비디오 압축 기술로는 H.264/AVC를 비롯하여, H.264/AVC에 비해 약 40% 정도의 부호화 효율을 향상시킨 HEVC(High Efficiency Video Coding)가 존재한다.
그러나, 영상의 크기 및 해상도, 프레임율이 점차 증가하고 있고, 이에 따라 부호화해야 하는 데이터량도 증가하고 있으므로 기존의 압축 기술보다 더 부호화 효율이 좋고 화질 개선 효과도 높은 새로운 압축 기술이 요구된다.
또한, 360 영상과 같은 다양한 어플리케이션의 출현으로 인해, 복호화된 픽처 전체 영역을 디스플레이하는 것뿐만 아니라 픽처의 일부 영역만을 디스플레이하는 기술이 요구되고 있다.
본 개시는, 각 픽처를 서로 독립적으로 디스플레이 가능한 서브픽처들로 분할할 수 있는 기법 및 각 서브픽처들의 부호화 및 복호화 기법을 제시하고자 한다.
본 개시의 일 측면은, 복수의 코딩트리블록(coding tree block)을 포함하는 복수의 서브픽처들로 분할된 픽처들의 시퀀스(sequence)가 부호화된 비트스트림을 복호화하는 영상 복호화 방법을 제공한다. 상기 방법은, 상기 시퀀스에 포함된 픽처로부터 분할된 상기 서브픽처들의 레이아웃(layout) 정보를 상기 비트스트림으로부터 복호화하는 단계; 상기 레이아웃 정보에 의해 식별되는 서브픽처들 중 어느 한 서브픽처 내에서 복호화하고자 하는 코딩트리블록을 트리 구조로 분할하여 대상 블록을 결정하는 단계; 상기 비트스트림으로부터 상기 대상 블록을 예측하기 위한 예측정보 및 상기 대상 블록의 잔차 신호들에 대한 정보를 복호화하는 단계; 상기 예측정보에 근거하여 상기 대상 블록 내의 픽셀들을 예측함으로써 예측 블록을 생성하는 단계; 상기 잔차 신호에 대한 정보를 이용하여 상기 대상 블록에 대한 잔차 블록을 생성하는 단계; 및 상기 예측 블록과 상기 잔차 블록을 가산하여 상기 대상 블록을 복원하는 단계를 포함한다.
본 개시의 다른 측면은, 복수의 코딩트리블록(coding tree block)을 포함하는 복수의 서브픽처들로 분할된 픽처들의 시퀀스(sequence)가 부호화된 비트스트림을 복호화하는 영상 복호화 장치를 제공한다. 상기 장치는, 상기 시퀀스에 포함된 픽처로부터 분할된 상기 서브픽처들의 레이아웃(layout) 정보를 상기 비트스트림으로부터 복호화하고, 상기 레이아웃 정보에 의해 식별되는 서브픽처들 중 어느 한 서브픽처 내에서 복호화하고자 하는 코딩트리블록을 트리 구조로 분할하여 대상 블록을 결정하며, 상기 비트스트림으로부터 상기 대상 블록을 예측하기 위한 예측정보 및 상기 대상 블록의 잔차 신호들에 대한 정보를 복호화하는 복호화부; 상기 예측정보에 근거하여 상기 대상 블록 내의 픽셀들을 예측함으로써 예측 블록을 생성하는 예측부; 상기 잔차 신호에 대한 정보를 이용하여 상기 대상 블록에 대한 잔차 블록을 생성하는 잔차 복원부; 및상기 예측 블록과 상기 잔차 블록을 가산하여 상기 대상 블록을 복원하는 가산기를 포함한다.
여기서, 상기 픽처를 구성하는 상기 서브픽처들은 서로 독립적으로 디스플레이가 가능한 단위들이다.
도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다.
도 2는 QTBTTT 구조를 이용하여 블록을 분할하는 방법을 설명하기 위한 도면이다.
도 3은 복수의 인트라 예측 모드들을 나타낸 도면이다.
도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 블록도이다.
도 5는 비트스트림의 구조를 나타내는 예시도이다.
도 6은 제3 파라미터 셋을 포함하는 NAL 유닛의 구조를 나타내는 예시도이다.
도 7은 각 픽처들을 구성하는 서브픽처들의 레이아웃을 설명하기 위한 예시도이다.
도 8은 각 픽처들을 구성하는 서브픽처들의 레이아웃을 설명하기 위한 예시도이다.
도 9는 서로 중첩되는 서브픽처들을 처리하는 방법을 설명하기 위한 예시도이다.
이하, 본 발명의 일부 실시예들을 예시적인 도면을 통해 상세하게 설명한다. 각 도면의 구성 요소들에 식별 부호를 부가함에 있어서, 동일한 구성요소들에 대해서는 비록 다른 도면상에 표시되더라도 가능한 한 동일한 부호를 가지도록 하고 있음에 유의해야 한다. 또한, 본 발명을 설명함에 있어, 관련된 공지 구성 또는 기능에 대한 구체적인 설명이 본 발명의 요지를 흐릴 수 있다고 판단되는 경우에는 그 상세한 설명은 생략한다.
도 1은 본 개시의 기술들을 구현할 수 있는 영상 부호화 장치에 대한 예시적인 블록도이다. 이하에서는 도 1을 참조하여 영상 부호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.
영상 부호화 장치는 블록 분할부(110), 예측부(120), 감산기(130), 변환부(140), 양자화부(145), 재정렬부(150), 엔트로피 부호화부(155), 역양자화부(160), 역변환부(165), 가산기(170), 루프 필터부(180) 및 메모리(190)를 포함하여 구성될 수 있다.
영상 부호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.
하나의 영상(비디오)는 복수의 픽처들로 구성된다. 각 픽처들은 복수의 영역으로 분할되고 각 영역마다 부호화가 수행된다. 예를 들어, 하나의 픽처는 하나 이상의 타일(Tile) 또는/및 슬라이스(Slice)로 분할된다. 여기서, 하나 이상의 타일을 타일 그룹(Tile Group)으로 정의할 수 있다. 각 타일 또는/슬라이스는 하나 이상의 CTU(Coding Tree Unit)로 분할된다. 그리고 각 CTU는 트리 구조에 의해 하나 이상의 CU(Coding Unit)들로 분할된다. 각 CU에 적용되는 정보들은 CU의 신택스로서 부호화되고, 하나의 CTU에 포함된 CU들에 공통적으로 적용되는 정보는 CTU의 신택스로서 부호화된다. 또한, 하나의 슬라이스 내의 모든 블록들에 공통적으로 적용되는 정보는 슬라이스 헤더의 신택스로서 부호화되며, 하나 이상의 픽처들을 구성하는 모든 블록들에 적용되는 정보는 픽처 파라미터 셋(PPS, Picture Parameter Set) 혹은 픽처 헤더에 부호화된다. 나아가, 복수의 픽처로 구성된 시퀀스에 공통으로 참조하는 정보들은 시퀀스 파라미터 셋(SPS, Sequence Parameter Set)에 부호화된다. 또한, 하나의 타일 또는 타일 그룹에 공통으로 적용되는 정보는 타일 또는 타일 그룹 헤더의 신택스로서 부호화될 수도 있다.
블록 분할부(110)는 CTU(Coding Tree Unit)의 크기를 결정한다. CTU의 크기에 대한 정보(CTU size)는 SPS 또는 PPS의 신택스로서 부호화되어 영상 복호화 장치로 전달된다.
블록 분할부(110)는 영상을 구성하는 각 픽처(picture)를 미리 결정된 크기를 가지는 복수의 CTU(Coding Tree Unit)들로 분할한 이후에, 트리 구조(tree structure)를 이용하여 CTU를 반복적으로(recursively) 분할한다. 트리 구조에서의 리프 노드(leaf node)가 부호화의 기본 단위인 CU(coding unit)가 된다.
트리 구조로는 상위 노드(혹은 부모 노드)가 동일한 크기의 네 개의 하위 노드(혹은 자식 노드)로 분할되는 쿼드트리(QuadTree, QT), 또는 상위 노드가 두 개의 하위 노드로 분할되는 바이너리트리(BinaryTree, BT), 또는 상위 노드가 1:2:1 비율로 세 개의 하위 노드로 분할되는 터너리트리(TernaryTree, TT), 또는 이러한 QT 구조, BT 구조 및 TT 구조 중 둘 이상을 혼용한 구조일 수 있다. 예컨대, QTBT(QuadTree plus BinaryTree) 구조가 사용될 수 있고, 또는 QTBTTT(QuadTree plus BinaryTree TernaryTree) 구조가 사용될 수 있다. 여기서, BTTT를 합쳐서 MTT(Multiple-Type Tree)라 지칭될 수 있다.
도 2는 QTBTTT 분할 트리 구조를 보인다. 도 2에서 보는 바와 같이, CTU는 먼저 QT 구조로 분할될 수 있다. 쿼드트리 분할은 분할 블록(splitting block)의 크기가 QT에서 허용되는 리프 노드의 최소 블록 크기(MinQTSize)에 도달할 때까지 반복될 수 있다. QT 구조의 각 노드가 하위 레이어의 4개의 노드들로 분할되는지 여부를 지시하는 제1 플래그(QT_split_flag)는 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. QT의 리프 노드가 BT에서 허용되는 루트 노드의 최대 블록 크기(MaxBTSize)보다 크지 않은 경우, BT 구조 또는 TT 구조 중 어느 하나 이상으로 더 분할될 수 있다. BT 구조 및/또는 TT 구조에서는 복수의 분할 방향이 존재할 수 있다. 예컨대, 해당 노드의 블록이 가로로 분할되는 방향과 세로로 분할되는 방향 두 가지가 존재할 수 있다. 도 2와 같이, MTT 분할이 시작되면, 노드들이 분할되었는지 여부를 지시하는 제2 플래그(mtt_split_flag)와, 분할이 되었다면 추가적으로 분할 방향(vertical 혹은 horizontal)을 나타내는 플래그 및/또는 분할 타입(Binary 혹은 Ternary)을 나타내는 플래그가 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 시그널링된다. 대안적으로, 각 노드가 하위 레이어의 4개의 노드들로 분할되는지 여부를 지시하는 제1 플래그(QT_split_flag)를 부호화하기에 앞서, 그 노드가 분할되는지 여부를 지시하는 CU 분할 플래그(split_cu_flag)가 부호화될 수도 있다. CU 분할 플래그(split_cu_flag) 값이 분할되지 않았음을 지시하는 경우, 해당 노드의 블록이 분할 트리 구조에서의 리프 노드(leaf node)가 되어 부호화의 기본 단위인 CU(coding unit)가 된다. CU 분할 플래그(split_cu_flag) 값이 분할됨을 지시하는 경우, 영상 부호화 장치는 전술한 방식으로 제1 플래그부터 부호화를 시작한다.
트리 구조의 다른 예시로서 QTBT가 사용되는 경우, 해당 노드의 블록을 동일 크기의 두 개 블록으로 가로로 분할하는 타입(즉, symmetric horizontal splitting)과 세로로 분할하는 타입(즉, symmetric vertical splitting) 두 가지가 존재할 수 있다. BT 구조의 각 노드가 하위 레이어의 블록으로 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할되는 타입을 지시하는 분할 타입 정보가 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 전달된다. 한편, 해당 노드의 블록을 서로 비대칭 형태의 두 개의 블록으로 분할하는 타입이 추가로 더 존재할 수도 있다. 비대칭 형태에는 해당 노드의 블록을 1:3의 크기 비율을 가지는 두 개의 직사각형 블록으로 분할하는 형태가 포함될 수 있고, 혹은 해당 노드의 블록을 대각선 방향으로 분할하는 형태가 포함될 수도 있다.
CU는 CTU로부터의 QTBT 또는 QTBTTT 분할에 따라 다양한 크기를 가질 수 있다. 이하에서는, 부호화 또는 복호화하고자 하는 CU(즉, QTBTTT의 리프 노드)에 해당하는 블록을 '현재블록'이라 칭한다. QTBTTT 분할의 채용에 따라, 현재블록의 모양은 정사각형뿐만 아니라 직사각형일 수도 있다.
예측부(120)는 현재블록을 예측하여 예측블록을 생성한다. 예측부(120)는 인트라 예측부(122)와 인터 예측부(124)를 포함한다.
인트라 예측부(122)는 현재블록이 포함된 현재 픽처 내에서 현재블록의 주변에 위치한 픽셀(참조 픽셀)들을 이용하여 현재블록 내의 픽셀들을 예측한다. 예측 방향에 따라 복수의 인트라 예측모드가 존재한다. 예컨대, 도 3a에서 보는 바와 같이, 복수의 인트라 예측모드는 planar 모드와 DC 모드를 포함하는 2개의 비방향성 모드와 65개의 방향성 모드를 포함할 수 있다. 각 예측모드에 따라 사용할 주변 픽셀과 연산식이 다르게 정의된다.
인트라 예측부(122)는 현재블록을 부호화하는데 사용할 인트라 예측모드를 결정할 수 있다. 일부 예들에서, 인트라 예측부(122)는 여러 인트라 예측모드들을 사용하여 현재블록을 인코딩하고, 테스트된 모드들로부터 사용할 적절한 인트라 예측모드를 선택할 수도 있다. 예를 들어, 인트라 예측부(122)는 여러 테스트된 인트라 예측모드들에 대한 레이트 왜곡(rate-distortion) 분석을 사용하여 레이트 왜곡 값들을 계산하고, 테스트된 모드들 중 최선의 레이트 왜곡 특징들을 갖는 인트라 예측모드를 선택할 수도 있다.
인트라 예측부(122)는 복수의 인트라 예측모드 중에서 하나의 인트라 예측모드를 선택하고, 선택된 인트라 예측모드에 따라 결정되는 주변 픽셀(참조 픽셀)과 연산식을 사용하여 현재블록을 예측한다. 선택된 인트라 예측모드에 대한 정보는 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 전달된다.
인터 예측부(124)는 움직임 보상 과정을 통해 현재블록에 대한 예측블록을 생성한다. 인터 예측부(124)는 현재 픽처보다 먼저 부호화 및 복호화된 참조픽처 내에서 현재블록과 가장 유사한 블록을 탐색하고, 그 탐색된 블록을 이용하여 현재블록에 대한 예측블록을 생성한다. 그리고, 현재 픽처 내의 현재블록과 참조픽처 내의 예측블록 간의 변위(displacement)에 해당하는 움직임벡터(motion vector)를 생성한다. 일반적으로, 움직임 추정은 루마(luma) 성분에 대해 수행되고, 루마 성분에 기초하여 계산된 모션 벡터는 루마 성분 및 크로마 성분 모두에 대해 사용된다. 현재블록을 예측하기 위해 사용된 참조픽처에 대한 정보 및 움직임벡터에 대한 정보를 포함하는 움직임 정보는 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 전달된다. 인터 예측부(124)는, 예측의 정확성을 높이기 위해, 참조 픽처 또는 참조 블록에 대한 보간을 수행할 수도 있다. 즉, 연속한 두 정수 픽셀 사이의 서브 픽셀들은 그 두 정수 픽셀을 포함한 연속된 복수의 정수 픽셀들에 필터 계수들을 적용하여 보간된다. 보간된 참조 픽처에 대해서 현재 블록과 가장 유사한 블록을 탐색하는 과정을 수행하면, 움직임 벡터는 정수 픽셀 단위의 정밀도(precision)가 아닌 소수 단위의 정밀도까지 표현될 수 있다. 움직임벡터의 정밀도 또는 해상도(resolution)은 부호화하고자 하는 대상 영역, 예컨대, 슬라이스, 타일, CTU, CU 등의 단위마다 다르게 설정될 수 있다.
감산기(130)는 현재블록으로부터 인트라 예측부(122) 또는 인터 예측부(124)에 의해 생성된 예측블록을 감산하여 잔차블록을 생성한다.
변환부(140)는 잔차블록을 하나 이상의 서브블록들로 나누고, 변환을 하나 이상의 서브블록들에 적용하여, 변환블록들의 잔차 값들을 픽셀 도메인에서 주파수 도메인으로 변환한다. 주파수 도메인에서, 변환된 블록들은 하나 이상의 변환 계수 값들을 포함하는 계수블록(coefficient block)들 또는 변환블록(transform block)이라고 지칭된다. 변환에는 2차원 변환 커널이 사용될 수 있으며, 수평 방향 변환과 수직 방향 방향에 각각 1차원 변환 커널이 사용될 수도 있다. 변환 커널은 이산 코사인 변환(DCT), 이산 사인 변환(DST) 등에 기반할 수 있다.
변환부(140)는 잔차블록의 전체 크기를 변환 단위로 사용하여 잔차블록 내의 잔차 신호들을 변환할 수 있다. 또는, 잔차블록을 복수 개의 서브블록으로 분할하고 그 서브블록을 변환 단위로 사용하여 서브블록 내의 잔차 신호들을 변환할 수도 있다.
한편, 변환부(140)는 잔차블록에 대해 가로 방향과 세로 방향으로 개별적으로 변환을 수행할 수 있다. 변환을 위해, 다양한 타입의 변환 함수 또는 변환 매트릭스가 사용될 수 있다. 예컨대, 가로 방향 변환과 세로 방향 변환을 위한 변환 함수의 쌍을 MTS(Multiple Transform Set)로 정의할 수 있다. 변환부(140)는 MTS 중 변환 효율이 가장 좋은 하나의 변환 함수 쌍을 선택하고 가로 및 세로 방향으로 각각 잔차블록을 변환할 수 있다. MTS 중에서 선택된 변환 함수 쌍에 대한 정보(mts_idx)는 엔트로피 부호화부(155)에 의해 부호화되어 영상 복호화 장치로 시그널링된다.
양자화부(145)는 변환부(140)로부터 출력되는 변환 계수들을 양자화 파라미터를 이용하여 양자화하고, 양자화된 변환 계수들을 엔트로피 부호화부(155)로 출력한다. 양자화부(145)는, 어떤 블록 혹은 프레임에 대해, 변환 없이, 관련된 잔차 블록을 곧바로 양자화할 수도 있다. 양자화부(145)는 변환블록 내의 변환 계수들의 위치에 따라 서로 다른 양자화 계수(스케일링 값)을 적용할 수도 있다. 2차원으로 배열된 양자화된 변환 계수들에 적용되는 양자화 계수들의 행렬은 부호화되어 영상 복호화 장치로 시그널링될 수 있다.
재정렬부(150)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다. 재정렬부(150)는 계수 스캐닝(coefficient scanning)을 통해 2차원의 계수 어레이를 1차원의 계수 시퀀스로 변경할 수 있다. 예를 들어, 재정렬부(150)에서는 지그-재그 스캔(zig-zag scan) 또는 대각선 스캔(diagonal scan)을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원의 계수 시퀀스를 출력할 수 있다. 변환 단위의 크기 및 인트라 예측모드에 따라 지그-재그 스캔 대신 2차원의 계수 어레이를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 단위의 크기 및 인트라 예측모드에 따라 지그-재그 스캔, 대각선 스캔, 수직 방향 스캔 및 수평 방향 스캔 중에서 사용될 스캔 방법이 결정될 수도 있다.
엔트로피 부호화부(155)는, CABAC(Context-based Adaptive Binary Arithmetic Code), 지수 골롬(Exponential Golomb) 등의 다양한 부호화 방식을 사용하여, 재정렬부(150)로부터 출력된 1차원의 양자화된 변환 계수들의 시퀀스를 부호화함으로써 비트스트림을 생성한다.
또한, 엔트로피 부호화부(155)는 블록 분할과 관련된 CTU size, CU 분할 플래그, QT 분할 플래그, MTT 분할 타입, MTT 분할 방향 등의 정보를 부호화하여, 영상 복호화 장치가 영상 부호화 장치와 동일하게 블록을 분할할 수 있도록 한다. 또한, 엔트로피 부호화부(155)는 현재블록이 인트라 예측에 의해 부호화되었는지 아니면 인터 예측에 의해 부호화되었는지 여부를 지시하는 예측 타입에 대한 정보를 부호화하고, 예측 타입에 따라 인트라 예측정보(즉, 인트라 예측모드에 대한 정보) 또는 인터 예측정보(참조픽처 및 움직임벡터에 대한 정보)를 부호화한다. 또한, 엔트로피 부호화부(155)는 양자화와 관련된 정보, 즉, 양자화 파라미터에 대한 정보 및 양자화 행렬에 대한 정보를 부호화한다.
역양자화부(160)는 양자화부(145)로부터 출력되는 양자화된 변환 계수들을 역양자화하여 변환 계수들을 생성한다. 역변환부(165)는 역양자화부(160)로부터 출력되는 변환 계수들을 주파수 도메인으로부터 공간 도메인으로 변환하여 잔차블록을 복원한다.
가산부(170)는 복원된 잔차블록과 예측부(120)에 의해 생성된 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 다음 순서의 블록을 인트라 예측할 때 참조 픽셀로서 사용된다.
루프(loop) 필터부(180)는 블록 기반의 예측 및 변환/양자화로 인해 발생하는 블록킹 아티팩트(blocking artifacts), 링잉 아티팩트(ringing artifacts), 블러링 아티팩트(blurring artifacts) 등을 줄이기 위해 복원된 픽셀들에 대한 필터링을 수행한다. 루프 필터부(180)는 디블록킹 필터(182), SAO(Sample Adaptive Offset) 필터(184) 및 ALF(Adaptive Loop Filter, 186) 중 하나 이상을 포함할 수 있다.
디블록킹 필터(182)는 블록 단위의 부호화/복호화로 인해 발생하는 블록킹 현상(blocking artifact)을 제거하기 위해 복원된 블록 간의 경계를 필터링하고, SAO 필터(184)는 디블록킹 필터링된 영상에 대해 추가적인 필터링을 수행한다. SAO 필터(184)는 손실 부호화(lossy coding)로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해 사용되는 필터로서, 각 복원된 픽셀들에 그에 대응하는 오프셋에 가산되는 방식으로 수행된다. ALF(186)는 필터링을 수행할 대상 픽셀 및 그 대상 픽셀의 주변픽셀들에 필터 계수들을 적용하여 대상 픽셀에 대한 필터링을 수행한다. ALF(186)는 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF에 사용될 필터 계수들에 대한 정보는 부호화되어 영상 복호화 장치로 시그널링될 수 있다.
루프 필터부(180)를 통해 필터링된 복원블록은 메모리(190)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용될 수 있다.
도 4는 본 개시의 기술들을 구현할 수 있는 영상 복호화 장치의 예시적인 기능 블록도이다. 이하에서는 도 4를 참조하여 영상 복호화 장치와 이 장치의 하위 구성들에 대하여 설명하도록 한다.
영상 복호화 장치는 엔트로피 복호화부(410), 재정렬부(415), 역양자화부(420), 역변환부(430), 예측부(440), 가산기(450), 루프 필터부(460) 및 메모리(470)를 포함하여 구성될 수 있다.
도 1의 영상 부호화 장치와 마찬가지로, 영상 복호화 장치의 각 구성요소는 하드웨어 또는 소프트웨어로 구현되거나, 하드웨어 및 소프트웨어의 결합으로 구현될 수 있다. 또한, 각 구성요소의 기능이 소프트웨어로 구현되고 마이크로프로세서가 각 구성요소에 대응하는 소프트웨어의 기능을 실행하도록 구현될 수도 있다.
엔트로피 복호화부(410)는 영상 부호화 장치에 의해 생성된 비트스트림을 복호화하여 블록 분할과 관련된 정보를 추출함으로써 복호화하고자 하는 현재블록을 결정하고, 현재블록을 복원하기 위해 필요한 예측정보와 잔차신호에 대한 정보 등을 추출한다.
엔트로피 복호화부(410)는 SPS(Sequence Parameter Set) 또는 PPS(Picture Parameter Set)로부터 CTU size에 대한 정보를 추출하여 CTU의 크기를 결정하고, 픽처를 결정된 크기의 CTU로 분할한다. 그리고, CTU를 트리 구조의 최상위 레이어, 즉, 루트 노드로 결정하고, CTU에 대한 분할정보를 추출함으로써 트리 구조를 이용하여 CTU를 분할한다.
예컨대, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 MTT의 분할과 관련된 제2 플래그(MTT_split_flag) 및 분할 방향(vertical / horizontal) 및/또는 분할 타입(binary / ternary) 정보를 추출하여 해당 리프 노드를 MTT 구조로 분할한다. 이를 통해 QT의 리프 노드 이하의 각 노드들을 BT 또는 TT 구조로 반복적으로(recursively) 분할한다.
또 다른 예로서, QTBTTT 구조를 사용하여 CTU를 분할하는 경우, 먼저 CU의 분할 여부를 지시하는 CU 분할 플래그(split_cu_flag)를 추출하고, 해당 블록이 분할된 경우, 제1 플래그(QT_split_flag)를 추출할 수도 있다. 분할 과정에서 각 노드는 0번 이상의 반복적인 QT 분할 후에 0번 이상의 반복적인 MTT 분할이 발생할 수 있다. 예컨대, CTU는 바로 MTT 분할이 발생하거나, 반대로 다수 번의 QT 분할만 발생할 수도 있다.
다른 예로서, QTBT 구조를 사용하여 CTU를 분할하는 경우, QT의 분할과 관련된 제1 플래그(QT_split_flag)를 추출하여 각 노드를 하위 레이어의 네 개의 노드로 분할한다. 그리고, QT의 리프 노드에 해당하는 노드에 대해서는 BT로 더 분할되는지 여부를 지시하는 분할 플래그(split_flag) 및 분할 방향 정보를 추출한다.
한편, 엔트로피 복호화부(410)는 트리 구조의 분할을 통해 복호화하고자 하는 현재블록을 결정하게 되면, 현재블록이 인트라 예측되었는지 아니면 인터 예측되었는지를 지시하는 예측 타입에 대한 정보를 추출한다. 예측 타입 정보가 인트라 예측을 지시하는 경우, 엔트로피 복호화부(410)는 현재블록의 인트라 예측정보(인트라 예측모드)에 대한 신택스 엘리먼트를 추출한다. 예측 타입 정보가 인터 예측을 지시하는 경우, 엔트로피 복호화부(410)는 인터 예측정보에 대한 신택스 엘리먼트, 즉, 움직임벡터 및 그 움직임벡터가 참조하는 참조픽처를 나타내는 정보를 추출한다.
또한, 엔트로피 복호화부(410)는 양자화와 관련된 정보, 및 잔차신호에 대한 정보로서 현재블록의 양자화된 변환계수들에 대한 정보를 추출한다.
재정렬부(415)는, 영상 부호화 장치에 의해 수행된 계수 스캐닝 순서의 역순으로, 엔트로피 복호화부(410)에서 엔트로피 복호화된 1차원의 양자화된 변환계수들의 시퀀스를 다시 2차원의 계수 어레이(즉, 블록)로 변경할 수 있다.
역양자화부(420)는 양자화 파라미터를 이용하여 양자화된 변환계수들을 역양자화한다. 역양자화부(420)는 2차원으로 배열된 양자화된 변환계수들에 대해 서로 다른 양자화 계수(스케일링 값)을 적용할 수도 있다. 역양자화부(420)는 영상 부호화 장치로부터 양자화 계수(스케일링 값)들의 행렬을 양자화된 변환계수들의 2차원 어레이에 적용하여 역양자화를 수행할 수 있다.
역변환부(430)는 역양자화된 변환계수들을 주파수 도메인으로부터 공간 도메인으로 역변환하여 잔차신호들을 복원함으로써 현재블록에 대한 복원된 잔차블록을 생성한다. 또한, MTS가 적용된 경우, 역변환부(430)는 영상 부호화 장치로부터 시그널링된 MTS 정보(mts_idx)를 이용하여 가로 및 세로 방향으로 각각 적용할 변환 함수 또는 변환 매트릭스를 결정하고, 결정된 변환 함수를 이용하여 가로 및 세로 방향으로 변환블록 내의 변환계수들에 대해 역변환을 수행한다.
예측부(440)는 인트라 예측부(442) 및 인터 예측부(444)를 포함할 수 있다. 인트라 예측부(442)는 현재블록의 예측 타입이 인트라 예측일 때 활성화되고, 인터 예측부(444)는 현재블록의 예측 타입이 인터 예측일 때 활성화된다.
인트라 예측부(442)는 엔트로피 복호화부(410)로부터 추출된 인트라 예측모드에 대한 신택스 엘리먼트로부터 복수의 인트라 예측모드 중 현재블록의 인트라 예측모드를 결정하고, 인트라 예측모드에 따라 현재블록 주변의 참조 픽셀들을 이용하여 현재블록을 예측한다.
인터 예측부(444)는 엔트로피 복호화부(410)로부터 추출된 인트라 예측모드에 대한 신택스 엘리먼트를 이용하여 현재블록의 움직임벡터와 그 움직임벡터가 참조하는 참조픽처를 결정하고, 움직임벡터와 참조픽처를 이용하여 현재블록을 예측한다.
가산기(450)는 역변환부로부터 출력되는 잔차블록과 인터 예측부 또는 인트라 예측부로부터 출력되는 예측블록을 가산하여 현재블록을 복원한다. 복원된 현재블록 내의 픽셀들은 이후에 복호화할 블록을 인트라 예측할 때의 참조픽셀로서 활용된다.
루프 필터부(460)는 디블록킹 필터(462), SAO 필터(464) 및 ALF(466) 중 적어도 하나를 포함할 수 있다. 디블록킹 필터(462)는 블록 단위의 복호화로 인해 발생하는 블록킹 현상(blocking artifact)를 제거하기 위해, 복원된 블록 간의 경계를 디블록킹 필터링한다. SAO 필터(464)는 손실 부호화(lossy coding)으로 인해 발생하는 복원된 픽셀과 원본 픽셀 간의 차이를 보상하기 위해, 디블록킹 필터링 이후의 복원된 블록에 그에 대응하는 오프셋에 가산되는 방식으로 필터링을 수행한다. ALF(466)는 필터링을 수행할 대상 픽셀 및 그 대상 픽셀의 주변픽셀들에 필터 계수들을 적용하여 대상 픽셀에 대한 필터링을 수행한다. ALF(466)는 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF의 필터 계수는 비스트림으로부터 복호화한 필터 계수에 대한 정보를 이용하여 결정된다.
루프 필터부(460)를 통해 필터링된 복원블록은 메모리(470)에 저장된다. 한 픽처 내의 모든 블록들이 복원되면, 복원된 픽처는 이후에 부호화하고자 하는 픽처 내의 블록을 인터 예측하기 위한 참조 픽처로 사용된다.
이상에서 설명한 바와 같이, 영상 부호화 장치는 비디오에 대한 부호화 데이터를 포함하는 비트스트림을 전송하고, 영상 복호화 장치는 비트스트림을 복호화하여 비디오를 구성하는 각 픽처들을 복원한다.
본 개시의 일 측면으로서, 비트스트림은 다수 개의 전송 유닛, 즉, NAL(network abstraction layer) 유닛들로 구성될 수 있다. 도 5에 도시된 바와 같이, NAL 유닛은 NAL 유닛 헤더와 해당 NAL 유닛을 통해 전송되는 데이터로 구성될 수 있다. NAL 유닛의 크기를 byte 단위로 맞추기 위하여 NAL 유닛을 구성하는 데이터의 뒷부분에 비트가 추가될 수 있다. NAL 유닛 헤더는 해당 NAL 유닛을 통해 전송되는 데이터의 타입을 지시하기 위한 NAL 유닛 타입, NAL 유닛의 시간적 계층(temporal layer) 아이디 등을 포함한다.
데이터 필드에 포함되는 데이터의 타입에 따라 NAL 유닛은 VCL(video coding layer) 타입의 NAL 유닛과 non-VCL 타입의 NAL 유닛으로 분류될 수 있다. VCL(video coding layer) 타입의 NAL 유닛은 데이터 필드에 부호화된 픽셀 그룹의 이미지 데이터를 포함하는 NAL 유닛으로서, 통상적으로 부호화된 슬라이스(coded slice)에 대한 데이터가 포함된다. 이는 이미지 데이터들이 전송되는 단위가 슬라이스임을 의미한다. non-VCL 타입의 NAL 유닛은 데이터 필드에 픽셀 그룹의 데이터의 복호화 등을 위해 필요한 파라미터들을 포함한다. 시퀀스 레벨에서 공유되는 파라미터들을 포함하는 SPS(이하, "제1 파라미터 셋"으로 칭함), 또는 하나 이상의 픽처 레벨에서 공유되는 파라미터들을 포함하는 PPS(이하, "제2 파라미터 셋"으로 칭함) 등과 같이 하이 레벨(hige level)의 신택스들을 포함하는 NAL 유닛들이 non-VCL 타입의 NAL 유닛에 해당한다. 전송되는 NAL 유닛이 제1 파라미터 셋과 관련되는지, 제2 파라미터 셋과 관련되는지, 또는 부호화된 슬라이스와 관련되는지 등은 NAL 유닛 헤더에 포함된 NAL 유닛 타입을 의해 지시된다.
추가로, 픽처 또는 픽처보다 작은 픽셀 그룹, 예컨대, 하나 이상의 슬라이스에 공통적으로 적용되는 파라미터들을 포함하는 제3 파라미터 셋이 전송되는 NAL 유닛이 추가로 더 정의될 수 있다. 본 개시에서, 하나의 시퀀스를 표현하는 비트스트림은 제3 파라미터 셋들을 전송하는 하나 이상의 NAL 유닛들을 포함한다.
도 6은 제3 파라미터 셋을 포함하는 NAL 유닛의 구조를 나타내는 예시도이다.
제3 파라미터 셋은 NAL 유닛의 데이터 필드에 포함된다. 제3 파라미터 셋은 자신의 아이디 정보 및 파라미터 타입 정보 중 적어도 하나를 포함한다. 또한, 파라미터 타입 정보에 대응하는 파라미터들을 포함한다.
각각의 제3 파라미터 셋은 자신이 전송하는 파라미터들이 어떠한 코딩 툴과 관련되는지에 따라 복수의 파라미터 타입 중 어느 하나와 관련된다. 도 6의 (A)에서 보는 바와 같이, 파라미터 타입을 나타내는 정보는 제3 파라미터 셋에 포함될 수 있다. 도 6의 (A)의 구조에서의 NAL 유닛 타입은 특정 인덱스 값을 통해 해당 NAL 유닛이 제3 파라미터 셋과 관련되는지 여부를 나타낼 수 있다. 제3 파라미터 셋에 포함된 파라미터들의 타입은 제3 파라미터 셋에 포함된 파라미터 타입 정보에 의해 식별된다. 대안적으로, 도 6의 (B)에서 보는 바와 같이, 파라미터 타입은 NAL 유닛 헤더에 포함된 NAL 유닛 타입에 의해 지시될 수도 있다. 이 경우, 제3 파라미터 셋에 포함되는 파라미터의 타입에 따라 NAL 유닛 타입들이 더 세분화된다. 예컨대, 도 6의 (B)의 구조에서는, 제3 파라미터 셋을 통해 전송되는 파라미터의 타입에 따라 NAL 유닛 타입은 서로 다른 인덱스 값을 가질 수 있다. NAL 유닛 타입의 값에 따라 해당 NAL 유닛에 포함된 데이터가 제3 파라미터 셋인지 여부 및 제3 파라미터 셋의 파라미터 타입이 식별된다. 또 다른 예시로서, 도 6의 (C)에서 보는 바와 같이, NAL 유닛의 데이터 필드에는 아이디 정보 없이 파라미터 타입 정보만이 포함될 수도 있다. 이 경우, 제3 파라미터 셋의 아이디는 부호화 또는 복호화 순서에 따라 부여된다. 파라미터 타입 별로 아이디 값이 순서대로 부여될 수도 있고, 또는 파라미터 타입과 무관하게 복호화 순서에 따라 아이디 값이 순서대로 부여될 수도 있다.
제3파리미터 셋의 파라미터 타입은, 예컨대, 루프 필터링 타입, 스케일링 리스트 타입, 예측정보 타입 등을 포함할 수 있다. 파라미터 타입 정보가 루프 필터링 타입인 경우, 제3 파라미터 셋은 루프 필터링에 사용되는 필터 계수들의 하나 이상의 셋(set)에 대한 정보를 포함한다. 여기서 각 셋에 속하는 필터 계수들은 필터 계수의 절대값(absolute value)과 필터 계수의 부호(sign)로 표현될 수 있다. 파라미터 타입 정보가 스케일링 리스트 타입인 경우, 제3 파라미터 셋은 각 변환 계수들의 양자화에 사용된 스케일링 값들, 즉, 양자화 행렬의 계수들을 포함한다. 또한, 파라미터 타입 정보가 예측정보 타입인 경우, 제3 파라미터 셋은 특정 예측모드에서 예측신호를 생성할 때 사용되는 필터 계수들의 셋을 포함한다.
영상 복호화 장치는 제3 파라미터 셋과 관련된 NAL 유닛들을 복호화하고, 제3 파라미터 셋들을 메모리에 저장한다. NAL 유닛들의 복호화에 따라 제3 파라미터 셋에 대한 아이디와 파라미터 타입이 결정된다. 파라미터 타입별로 m(m은 1이상의 정수)개씩 메모리에 저장될 수 있고, m은 파라미터 타입에 따라 다를 수 있다. 영상 복호화 장치는, 메모리에 이미 m개의 파라미터 셋이 저장된 경우, 기존에 존재하던 파라미터 셋을 삭제하고 새로이 복호화된 제3 파라미터 셋을 저장한다. 예컨대, 새로이 복호화된 제3 파라미터 셋과 아이디 및 파라미터 타입이 동일한 파리미터 셋을 메모리에서 삭제할 수 있다. 또는 가장 오래 전에 저장된 제3 파라미터 셋이 삭제될 수도 있다. 또는, 비트스트림으로부터 삭제할 제3 파라미터 셋에 대한 아이디 및 파라미터 타입 정보를 추출하여 추출된 정보에 대응하는 제3 파라미터 셋을 메모리로부터 삭제할 수도 있다.
360 영상과 같은 다양한 어플리케이션의 출현으로 인해, 복호화된 픽처 전체 영역을 디스플레이하는 것뿐만 아니라 픽처의 일부 영역만을 디스플레이하는 기술이 요구되고 있다. 이러한 기술적 요구를 지원하기 위해, 본 개시의 다른 측면은 픽처들을 복수의 서브픽처들로 분할하고 각 서브픽처들을 부호화 및 복호화하는 방법을 개시한다. 본 개시는 각 픽처들을 구성하는 서브픽처들에 대한 독립적인 부호화 또는 독립적인 전송이 가능하도록 한다. 또한, 전체 비트스트림으로부터 서브픽처들 각각에 대응하는 데이터의 독립적인 추출 또는 복호화가 가능하도록 한다. 나아가, 픽처로부터 분할된 각 서브픽처들이 서로 독립적으로 디스플레이 가능하도록 한다.
도 7은 각 픽처들을 구성하는 서브픽처들의 레이아웃을 설명하기 위한 예시도이다.
픽처로부터 분할된 서브픽처들의 레이아웃(layout)을 표현하기 위해, 코딩유닛(CU)들의 그룹이 정의될 수 있다. 코딩유닛 그룹은 CTU, 슬라이스, 타일, 또는 기정의된 크기의 그리드(grid) 등일 수 있다. 코딩유닛 그룹은 서브픽처를 구성하는 기본 단위인 제1 코딩유닛 그룹과 복수 개의 제1 코딩유닛 그룹으로 구성된 제2 코딩유닛 그룹으로 분류될 수 있다. 예컨대, 제1 코딩유닛 그룹은 CTU일 수 있고, 제2 코딩유닛 그룹은 전송 단위에 해당하는 슬라이스일 수도 있다. 서브픽처는 하나 이상의 제2 코딩유닛 그룹으로 구성될 수 있다. 이하에서는, 설명의 편의를 위해 제1 코딩유닛 그룹을 CTU로 제2 코딩유닛 그룹을 슬라이스로 가정하여 설명하나, 본 발명이 반드시 이에 한정되지는 않음은 자명하다. 예컨대, 제1 코딩유닛 그룹은 기정의된 크기의 그리드일 수도 있고 제2 코딩유닛 그룹은 슬라이스 또는 타일일 수도 있다.
레이아웃 정보는 픽처 내 서브픽처들의 개수, 각 서브픽처의 아이디, 및 픽처 내의 각 서브픽처들의 위치 및 크기로 표현된다. 여기서, 각 서브픽처들의 위치 및 크기는 각 서브픽처를 구성하는 CTU들을 식별할 수 있는 정보로 표현될 수 있다.
각 서브픽처를 구성하는 CTU들은 래스터 스캔 순서(raster scan order)로 서브픽처를 구성하는 처음 CTU와 마지막 CTU에 의해 식별될 수 있다. 직사각형 형태의 서브픽처에 대해, 래스터 스캔 순서(raster scan order)로 처음 CTU와 마지막 CTU는 각 서브픽처 내의 좌상단에 위치한 CTU 및 우하단에 위치한 CTU를 의미한다. 따라서, 서브픽처를 구성하는 CTU들을 식별하기 위한 정보는 좌상단 CTU의 위치를 식별하기 위한 식별정보(예컨대, 좌상단 CTU의 좌표 정보)와 우하단에 위치한 CTU를 식별하기 위한 식별정보(예컨대, 우하단 CTU의 좌표 정보)를 포함할 수 있다. 대안적으로, 서브픽처를 구성하는 CTU들을 식별하기 위한 정보는 좌상단 CTU의 위치를 식별하기 위한 식별 정보, 서브픽처의 가로 방향으로의 CTU의 개수 및 세로 방향으로서의 CTU의 개수에 의해 표현될 수도 있다.
도 8은 각 픽처들을 구성하는 서브픽처들의 레이아웃을 설명하기 위한 또 다른 예시도이다.
도 8의 예시에서, 서브픽처를 구성하는 기본 단위인 제1 코딩유닛 그룹은 다수 개의 픽셀들을 그룹핑한 그리드이다. 서브픽쳐는 그리드를 그루핑한 것일 수 있다.
서브픽처들의 레이아웃 정보는 그리드에 의해 표현될 수 있다. 픽처 내 서브픽처들의 레이아웃 정보로서, 먼저 그리드의 크기가 정의된다. 그리드의 크기는 그리드의 가로 및 세로의 길이, 또는 픽처의 가로 및 세로 방향으로의 그리드의 개수에 의해 정의될 수 있다.
서브픽처들의 레이아웃 정보는 픽처 내 서브픽처들의 개수, 각 서브픽처의 아이디, 각 서브픽처를 구성하는 그리드를 식별하기 위한 식별정보를 포함한다. 예컨대, 식별정보는 서브픽처 내에서 래스터 스캔 순서로 첫 번째 그리드의 식별정보 및 마지막 그리드의 식별정보를 포함한다. 직사각형 형태의 서브픽처에서, 첫 번째 그리드는 서브픽처 내의 좌상단 그리드에 해당하고, 마지막 그리드는 서브픽처 내의 우하단 그리드에 해당한다. 따라서, 식별정보는 서브픽처 내의 좌상단 그리드의 식별정보와 우하단 그리드의 식별정보를 포함한다. 대안적으로, 식별정보는 서브픽처 내의 좌상단 그리드의 식별정보 및, 가로 방향 및 세로 방향으로의 그리드의 개수 정보를 포함할 수도 있다. 하나의 구현 예로서, 식별정보는 그리드의 위치일 수 있다. 다른 구현 예에서, 식별정보는 그리드의 아이디 또는 주소로 표현될 수도 있다. 여기서, 픽처 내 그리드들에 대한 아이디 또는 주소는 특정의 스캔 순서, 예컨대, 레스터 스캔 순서에 따라서 0부터 시작하여 오름차순으로 부여될 수 있다.
영상 부호화 장치는 각 픽처들을 서브픽처들로 분할하기 위한 분할 정보, 즉, 레이아웃 정보를 부호화한다. 레이아웃 정보는 전술한 제1 파라미터 셋이나 또는 제2 파라미터 셋에 포함될 수 있다. 영상 복호화 장치는 제1 파라미터 셋 또는 제2 파라미터 셋에 포함된 레이아웃 정보를 추출하여 각 픽처들을 구성하는 서브픽처들을 식별한다.
영상 부호화 장치는 전송 단위인 슬라이스마다 서브픽처 아이디를 부호화한다. 영상 복호화 장치는 슬라이스 단위로 서브픽처 아이디를 추출함으로써, 해당 슬라이스가 어떤 서브픽처에 포함되는지를 확인할 수 있다. 그리고, 서브픽처를 구성하는 하나 이상의 슬라이스들 내의 블록들을 전술한 복호화 과정을 통해 복호화함으로써 각 서브픽처들을 복원한다.
서브픽처들은 독립적인 전송 및 부호화/복호화가 가능해야 하며 또한 서로 독립적으로 디스플레이 가능해야 한다. 따라서, 본 개시의 영상 부호화 장치와 영상 복호화 장치는, 서브픽처의 부호화 또는 복호화 과정에서, 서브픽처 경계를 벗어나는 복원된 픽셀들에 대한 참조를 허용하지 않도록 하는 프로세스를 수행할 수 있다. 여기서, 서브픽처들의 경계는 레이아웃 정보에 의해 식별될 수 있다.
일 실시예로서, 영상 부호화 장치의 예측부(120)와 영상 복호화 장치의 예측부(440)는 현재블록의 예측정보(인터 예측정보 또는 인트라 예측정보)에 근거하여 기복원된 픽셀들로부터 현재블록 내의 픽셀을 예측한다. 예측부(120, 440)는 예측정보에 근거하여 결정되는 픽셀 위치가 현재 서브픽처의 경계를 벗어나는 경우, 그 결정된 위치에 기복원된 픽셀이 존재하더라도, 그 결정된 위치의 기복원된 픽셀 대신 대체 픽셀을 이용하여 현재블록 내의 픽셀을 예측한다. 여기서, 대체 픽셀은 기정의된 고정된 픽셀 값을 가질 수 있고, 또는 현재 서브픽처 내부의 기정의된 위치의 픽셀, 예컨대, 현재 서브픽처 내에서 서브픽처의 경계에 접하는 픽셀일 수도 있다.
현재 서브픽처의 경계를 벗어나는 기복원된 픽셀 대신 대체 픽셀을 이용하는 프로세스는 다양한 예측 과정에 수반될 수 있다. 예컨대, 현재블록의 인트라 예측을 위해 이용되는 현재블록 주변의 기복원된 참조 픽셀들이 서브픽처의 경계를 벗어나는 경우, 그 참조 픽셀들은 기정의된 고정된 픽셀 값으로 대체될 수 있다. 다른 예시로서, 인터 예측에서 서브 픽셀들을 보간하기 위해 사용되는 정수 픽셀들 중 적어도 일부가 현재 서브픽처의 경계를 벗어나는 경우, 현재 서브픽처의 경계를 벗어나는 정수 픽셀들 대신 그 경계에 인접하는 서브픽처 내의 정수 픽셀들이 사용될 수 있다.
다른 실시예로서, 영상 부호화 장치의 루프 필터부(180)와 영상 복호화 장치의 루프 필터부(460)는 복원된 현재블록 내에서 필터링하고자 하는 대상 픽셀 및 그 대상 픽셀의 주변 픽셀들에 필터 계수들을 적용하여 대상 픽셀에 대한 루프 필터링(loop filtering)을 수행할 수 있다. 루프 필터부(180, 460)는, 주변 픽셀들 중 적어도 하나가 현재 서브픽처의 경계를 벗어나는 경우, 현재 서브픽처의 경계를 벗어나는 주변 픽셀들 대신 대체 픽셀을 이용하여 대상 픽셀에 대한 루프 필터링을 수행한다. 대체 픽셀은 기정의된 고정된 픽셀 값을 가질 수 있고, 또는 현재 서브픽처 내부의 기정의된 위치의 픽셀, 예컨대, 현재 서브픽처 내에서 서브픽처의 경계에 접하는 픽셀일 수도 있다.
루프 필터링에 사용할 필터 계수들은 전술한 제3 파라미터 셋들로부터 결정될 수 있다. 영상 부호화 장치는 코딩유닛 그룹별로, 예컨대 슬라이스별로 루프 필터링 타입과 관련된 제3 파라미터 셋의 아이디 정보를 시그널링한다. 영상 복호화 장치는 코딩유닛 그룹의 헤더, 예컨대 슬라이스 헤더로부터 루프 필터링과 관련된 제3 파라미터 셋의 아이디 정보를 복호화하고, 메모리에 저장된 제3 파라미터 셋들 중에서 복호화된 아이디 정보에 대응하는 제3 파라미터 셋을 선택한다.
슬라이스 단위로 루프 필터링과 관련된 복수 개의 제3 파라미터 셋의 아이디 정보가 시그널링될 수도 있다. 이를 위해, 슬라이스에 포함되는 제3 파라미터 셋의 아이디의 개수에 대한 정보가 먼저 시그널링되고, 그 개수만큼의 제3 파라미터 셋의 아이디 정보가 시그널링된다. 시그널링되는 아이디 정보의 개수는 필터링의 대상이 되는 픽셀들의 색상 성분(color component)에 따라, 즉, 색상 성분이 루마(luma)인지 아니면 크로마(chroma)인지 여부에 따라 다를 수 있다. 예컨대, 루마 성분의 경우에는 아이디 정보의 개수가 먼저 시그널링되고 그 개수만큼의 제3 파라미터 셋의 아이디 정보가 시그널링된다. 반면, 크로마 성분의 경우에는, 항상 루프 필터링 타입의 하나의 제3 파라미터 셋이 사용될 수 있다. 따라서, 아이디 정보의 개수에 대한 정보의 시그널링 없이 하나의 아이디 정보만 시그널링될 수 있다.
슬라이스 내 블록들에 적용할 필터 계수는 해당 슬라이스 단위로 선택된 제3 파라미터 셋들을 이용하여 CTU 단위로 결정될 수 있다. 하나의 CTU 내에 포함된 모든 블록들은 동일한 필터 계수들을 공유한다.
전술한 것처럼 각 제3 파라미터 셋은 하나 이상의 필터 계수 셋들을 포함할 수 있다. 하나의 필터 계수 셋에는 복수의 필터 계수들이 포함된다. 필터 계수의 개수는 하나 픽셀을 필터링하기 위해 사용되는 픽셀들의 개수에 의존하여 결정된다. 예컨대, 하나의 픽셀을 필터링하기 위해 총 n개의 픽셀(필터링 대상 픽셀과 그 대상 픽셀 주변의 픽셀들)이 사용되는 경우, 하나의 필터 셋은 n의 픽셀들에 대응하는 n개의 필터 계수를 포함한다.
영상 부호화 장치는 CTU 단위로 해당 CTU를 루프 필터링하기 위한 필터 정보를 시그널링한다. 영상 복호화 장치는 시그널링된 필터 정보를 이용하여 CTU로 단위로 해당 CTU에 적용할 필터 계수 셋을 결정한다.
슬라이스 단위로 하나의 제3 파라미터 셋을 선택하는 일 실시예에서는, CTU 단위로 그 하나의 제3 파라미터 셋에 포함된 필터 계수 셋들 중에서 하나의 필터 계수 셋을 지시하는 필터 인덱스 정보가 시그널링될 수 있다.
슬라이스 단위로 복수 개의 제3 파라미터 셋이 결정되는 다른 실시예에서는, CTU 단위로 그 복수 개의 제3 파라미터 셋들 중 어느 파라미터 셋을 사용할지 여부를 나타내는 파라미터 아이디 정보가 시그널링될 수 있다. 또한, 파라미터 아이디 정보에 대응하는 제3 파라미터 셋에 포함된 필터 계수 셋들 중에서 하나의 필터 계수 셋을 지시하는 필터 인덱스 정보가 추가로 시그널링될 수 있다. 대안적으로, 파라미터 아이디 정보에 대응하는 제3 파라미터 셋에 포함된 필터 계수 셋들 중에서 어느 필터 계수 셋을 사용할지는, CTU 내에서 필터링하고자 하는 대상 픽셀의 특성에 근거하여 유도될 수도 있다. 예컨대, 그 대상 픽셀과 주변 픽셀들을 이용하여 그 대상 픽셀의 방향성(directionality)이나 액티비티(activity) 등과 같은 특성을 산출하고, 산출된 특성에 따라 각각의 대상 픽셀들에 대해 적용할 필터 계수 셋이 선택될 수 있다. 여기서, 대상 픽셀의 방향성이나 액티비티 등과 같은 픽셀의 특성은 그 대상 픽셀과 그 주변픽셀들, 예컨대, 대상 픽셀을 포함하는 일정 영역 내의 픽셀들을 이용한 그레디언트(gradient) 연산을 통해 산출될 수 있다. 이 대안적 실시예에서는, 파라미터 아이디 정보에 대응하는 제3 파라미터 셋에 포함된 필터 계수 셋들 중에서 어느 필터 계수 셋을 사용할지를 나타내는 필터 인덱스 정보에 대한 시그널링은 요구되지 않는다. 영상 부호화 장치와 영상 복호화 장치는 대상 필터의 특성을 산출하고 산출된 특성에 따라 필터 셋을 선택할 수 있다.
한편, 제3 파라미터 셋들에 포함된 필터 계수 셋 이외에 기정의된 복수의 필터 계수 셋들이 더 사용될 수도 있다. 여기서 기정의된 복수의 필터 계수 셋들은 복호화 순서에서 현재 CTU 바로 직전에 복호화된 하나 이상의 CTU들에 대해 결정된 필터 계수 셋들일 수도 있고, 또는 현재 CTU에 인접한 기정의된 위치의 주변 CTU들(예컨대, 현재 CTU의 상측 및/또는 좌측에 위치하는 CTU)에 대해 결정된 필터 계수 셋들일 수 있다. 또는, 기정의된 복수의 필터 계수 셋들은 모든 CTU들에 대해 고정적으로 미리 설정되어 있는 필터 계수 셋들일 수도 있다. 이하에서는 이전에 복호화된 CTU에서 사용된 미리 설정된 필터 계수 셋들을 '필터 셋 참조 리스트'로서 칭한다. 먼저, 현재 CTU에 대해 필터 셋 참조 리스트가 사용되는지 여부를 나타내는 정보가 시그널링된다.
필터 셋 참조 리스트가 사용되지 않는 경우, 현재 CTU에서 사용할 필터 계수 셋을 제3 파라미터 셋들 중 파라미터 아이디 정보와 필터 인덱스 정보 중 하나 이상이 시그널링될 수 있고, 영상 복호화 장치는 전술한 방법과 같이 시그널링된 정보를 이용하여 현재 CTU 또는 현재 CTU 내의 각 픽셀들에 적용할 필터 계수 셋을 유도할 수 있다.
필터 셋 참조 리스트가 사용되는 경우, 기설정된 필터 셋 참조 리스트에 포함된 필터 셋들 중에서 현재 CTU에 적용할 필터 셋이 선택된다. 그 선택은 영상 부호화 장치로부터 영상 복호화 장치로 시그널링된 필터 인덱스 정보에 의해 수행될 수도 있고, 또는 전술한 바와 같이 현재 CTU 내 각 픽셀들의 특성을 산출하고 산출된 특성에 따라 각 픽셀마다 유도될 수도 있다.
전술한 바와 같은 복호화 과정을 통해 복원된 서브픽처들은 서로 독립적으로 디스플레이가 가능하다. 각각의 서브픽처들은 하나의 메모리의 서로 다른 저장공간에 저장되거나 또는 다수의 메모리에 개별적으로 저장될 수 있다.
다수개의 서브프레임이 동일한 메모리에 저장될 시, 서브픽처들은 서로 간 일정 공간을 두고 저장될 수 있다.
서브프레임 단위의 메모리 저장 구조는 픽처 또는 서브픽처 단위로 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있고, 또는 서브픽처의 인덱스, 좌표, 상호 간의 참조 관계 등에 의해 유도될 수도 있다. 하나의 예로서, 참조 관계에 있지 않은 다수개의 서브픽처들은 서로 다른 메모리에 저장될 수 있다. 다른 예로서, 동일한 위치 또는 동일한 크기 또는 동일한 서브픽처 인덱스 또는 동일한 메모리 인덱스를 갖는 다수 개의 서브픽처들은 동일한 메모리에 저장될 수 있다.
서로 다른 메모리에 저장되어 있는 다수 개의 복원된 서브픽처들은 디스플레이되기 이전에 동일한 메모리에 저장될 수 있다. 동일한 메모리에 불연속적으로 저장되어 있는 다수 개의 복원된 서브프레임이 디스플레이되기 이전에 연속적으로 저장될 수 있다.
한편, 도 9에서 보는 바와 같이, 각 픽처는, 서브픽처들 간에 중첩되는 영역이 존재하도록, 복수의 서브픽처들로 분할될 수 있다. 영상 복호화 장치는 중첩 영역을 구성하는 서로 다른 서브픽처 내의 픽셀들 중 어느 하나의 서브픽처의 픽셀을 선택하여 메모리에 저장하거나 또는 디스플레이할 수 있다. 어느 서브픽처 내의 픽셀을 선택할지는 영상 부호화 장치로부터 영상 복호화 장치로 시그널링될 수 있다. 대안적으로, 영상 복호화 장치는 중첩 영역을 구성하는 복수의 서브픽처들에 평균 또는 가중 평균과 같은 산술식을 적용하여 저장 또는 디스플레이할 중첩 영역 내의 픽셀값들을 유도할 수도 있다.
이상의 설명에서 예시적인 실시예들은 많은 다른 방식으로 구현될 수 있다는 것을 이해해야 한다. 하나 이상의 예시들에서 설명된 기능들은 하드웨어, 소프트웨어, 펌웨어 또는 이들의 임의의 조합으로 구현될 수 있다. 본 명세서에서 설명된 기능적 컴포넌트들은 그들의 구현 독립성을 특히 더 강조하기 위해 "...부(unit)" 로 라벨링되었음을 이해해야 한다.
한편, 본 개시에서 설명된 다양한 기능들 혹은 방법들은 하나 이상의 프로세서에 의해 판독되고 실행될 수 있는 비일시적 기록매체에 저장된 명령어들로 구현될 수도 있다. 비일시적 기록매체는, 예를 들어, 컴퓨터 시스템에 의하여 판독가능한 형태로 데이터가 저장되는 모든 종류의 기록장치를 포함한다. 예를 들어, 비일시적 기록매체는 EPROM(erasable programmable read only memory), 플래시 드라이브, 광학 드라이브, 자기 하드 드라이브, 솔리드 스테이트 드라이브(SSD)와 같은 저장매체를 포함한다.
이상의 설명은 본 실시예의 기술 사상을 예시적으로 설명한 것에 불과한 것으로서, 본 실시예가 속하는 기술 분야에서 통상의 지식을 가진 자라면 본 실시예의 본질적인 특성에서 벗어나지 않는 범위에서 다양한 수정 및 변형이 가능할 것이다. 따라서, 본 실시예들은 본 실시예의 기술 사상을 한정하기 위한 것이 아니라 설명하기 위한 것이고, 이러한 실시예에 의하여 본 실시예의 기술 사상의 범위가 한정되는 것은 아니다. 본 실시예의 보호 범위는 아래의 청구범위에 의하여 해석되어야 하며, 그와 동등한 범위 내에 있는 모든 기술 사상은 본 실시예의 권리범위에 포함되는 것으로 해석되어야 할 것이다.
CROSS-REFERENCE TO RELATED APPLICATION
본 특허출원은, 본 명세서에 그 전체가 참고로서 포함되는, 2019년 5월 15일에 한국에 출원한 특허출원번호 제10-2019-0056973 호, 2019년 9월 30일에 한국에 출원한 특허출원번호 제10-2019-0121030호, 및 2020년 5월15일에 한국에 출원한 특허출원번호 제10-2020-0058245호에 대해 우선권을 주장한다.

Claims (17)

  1. 복수의 코딩트리블록(coding tree block)을 포함하는 복수의 서브픽처들로 분할된 픽처들의 시퀀스(sequence)가 부호화된 비트스트림을 복호화하는 영상 복호화 방법에 있어서,
    상기 시퀀스에 포함된 픽처로부터 분할된 상기 서브픽처들의 레이아웃(layout) 정보를 상기 비트스트림으로부터 복호화하는 단계;
    상기 레이아웃 정보에 의해 식별되는 서브픽처들 중 어느 한 서브픽처 내에서 복호화하고자 하는 코딩트리블록을 트리 구조로 분할하여 대상 블록을 결정하는 단계;
    상기 비트스트림으로부터 상기 대상 블록을 예측하기 위한 예측정보 및 상기 대상 블록의 잔차 신호들에 대한 정보를 복호화하는 단계;
    상기 예측정보에 근거하여 상기 대상 블록 내의 픽셀들을 예측함으로써 예측 블록을 생성하는 단계;
    상기 잔차 신호에 대한 정보를 이용하여 상기 대상 블록에 대한 잔차 블록을 생성하는 단계; 및
    상기 예측 블록과 상기 잔차 블록을 가산하여 상기 대상 블록을 복원하는 단계
    를 포함하는 것을 특징으로 하는 영상 복호화 방법.
  2. 제1항에 있어서,
    상기 픽처 내의 상기 서브픽처들은 서로 독립적으로 디스플레이가 가능한 단위인 것을 특징을 하는 영상 복호화 방법.
  3. 제1항에 있어서,
    상기 레이아웃 정보는,
    상기 서브픽처들의 개수, 각 서브픽처 내 래스터 스캔 순서(raster scan order)로 첫 번째 코딩트리블록(coding tree block)의 위치를 식별하기 위한 식별정보, 및 상기 서브픽처의 크기에 대한 정보를 포함하는 것을 특징으로 하는 영상 복호화 방법.
  4. 제3항에 있어서,
    상기 식별정보는 상기 각 서브픽처 내의 좌상단(top left)에 위치한 코딩트리블록의 위치를 식별하기 위한 정보인 것을 특징으로 하는 영상 복호화 방법.
  5. 제3항에 있어서,
    상기 서브픽처의 크기에 대한 정보는 가로 방향으로의 코딩트리블록의 개수 및 세로 방향으로의 코딩트리블록의 개수를 포함하는 것을 특징으로 하는 영상 복호화 방법.
  6. 제1항에 있어서,
    상기 예측 블록을 생성하는 단계는,
    상기 예측정보에 근거하여 결정된 위치의 기복원된 픽셀이 상기 대상 블록이 위치하는 서브픽처의 경계를 벗어나는 경우, 상기 기복원된 픽셀 대신 대체 픽셀을 이용하여 상기 대상 블록 내의 픽셀을 예측하는 것을 특징으로 하는 영상 복호화 방법.
  7. 제1항에 있어서,
    상기 복원된 대상 블록 내에서 필터링하고자 하는 대상 픽셀 및 그 대상 픽셀의 주변 픽셀들에 필터 계수들을 적용하여 상기 대상 픽셀에 대한 루프 필터링(loop filtering)을 수행하는 단계를 더 포함하고,
    상기 주변 픽셀들 중 적어도 하나가 상기 대상 블록이 위치하는 서브픽처의 경계를 벗어나는 경우, 상기 적어도 하나의 주변 픽셀 대신 대체 픽셀을 이용하여 상기 대상 픽셀에 대한 루프 필터링을 수행하는 영상 복호화 방법.
  8. 제7항에 있어서,
    상기 비트스트림은 상기 시퀀스의 레벨에 공통적으로 적용되는 파라미터들을 전송하는 제1 파라미터 셋(parameter set), 및 상기 픽처들의 레벨에 공통적으로 적용되는 파라미터들을 전송하는 제2 파라미터 셋을 포함하고,
    상기 레이아웃 정보는 상기 제1 파라미터 셋 또는 상기 제2 파라미터 셋으로부터 복호화되는 것을 특징으로 하는 영상 복호화 방법.
  9. 제8항에 있어서,
    상기 비트스트림은, 상기 픽처 이하의 크기를 가지는 픽셀 그룹에 공통적으로 적용되는 파라미터들을 전송하는 하나 이상의 제3 파라미터 셋들을 포함하고,
    상기 제3 파라미터 셋들 각각은, 아이디 정보, 복수의 파라미터 타입 중 상기 제3 파라미터 셋을 통해 전송되는 파라미터들의 타입을 나타내는 타입 정보, 및 상기 타입 정보에 대응하는 파라미터들을 포함하며,
    상기 복수의 파라미터 타입은 적어도 상기 루프 필터링과 관련된 파라미터 타입을 포함하는 것을 특징으로 하는 영상 복호화 방법.
  10. 제8항에서 있어서,
    상기 서브픽처들 각각은 복수의 코딩트리블록을 포함하는 하나 이상의 슬라이스들로 구성되는 것을 특징으로 하는 영상 복호화 방법.
  11. 제10항에 있어서,
    상기 루프 필터링과 관련된 제3 파라미터 셋을 지시하는 하나 이상의 아이디 정보가 상기 대상 블록이 위치하는 슬라이스의 헤더로부터 복호화되고,
    상기 슬라이스의 헤더로부터 복호화된 상기 아이디 정보에 대응하는 제3 파라미터 셋으로부터 상기 슬라이스 내 블록들의 루프 필터링을 위한 하나 이상의 필터 계수 셋들이 복원되는 것을 특징으로 하는 영상 복호화 방법.
  12. 제11항에 있어서,
    상기 루프 필터링을 위한 필터 계수들은 코딩트리블록의 단위로 상기 하나 이상의 필터 계수 셋들 중에서 결정되고,
    상기 복원된 대상 블록 내의 픽셀에 대한 루프 필터링은 상기 대상 블록이 위치하는 코딩트리블록에 대응하는 필터 계수들을 이용하여 수행되는 것을 특징으로 하는 영상 복호화 방법.
  13. 복수의 코딩트리블록(coding tree block)을 포함하는 복수의 서브픽처들로 분할된 픽처들의 시퀀스(sequence)가 부호화된 비트스트림을 복호화하는 영상 복호화 장치에 있어서,
    상기 시퀀스에 포함된 픽처로부터 분할된 상기 서브픽처들의 레이아웃(layout) 정보를 상기 비트스트림으로부터 복호화하고, 상기 레이아웃 정보에 의해 식별되는 서브픽처들 중 어느 한 서브픽처 내에서 복호화하고자 하는 코딩트리블록을 트리 구조로 분할하여 대상 블록을 결정하며, 상기 비트스트림으로부터 상기 대상 블록을 예측하기 위한 예측정보 및 상기 대상 블록의 잔차 신호들에 대한 정보를 복호화하는 복호화부;
    상기 예측정보에 근거하여 상기 대상 블록 내의 픽셀들을 예측함으로써 예측 블록을 생성하는 예측부;
    상기 잔차 신호에 대한 정보를 이용하여 상기 대상 블록에 대한 잔차 블록을 생성하는 잔차 복원부; 및
    상기 예측 블록과 상기 잔차 블록을 가산하여 상기 대상 블록을 복원하는 가산
    를 포함하는 것을 특징으로 하는 영상 복호화 장치.
  14. 제13항에 있어서,
    상기 픽처 내의 상기 서브픽처들은 서로 독립적으로 디스플레이가 가능한 단위인 것을 특징을 하는 영상 복호화 장치.
  15. 제13항에 있어서,
    상기 레이아웃 정보는,
    상기 서브픽처들의 개수, 각 서브픽처 내 래스터 스캔 순서(raster scan order)로 첫 번째 코딩트리블록(coding tree block)의 위치를 식별하기 위한 식별정보, 및 상기 서브픽처의 크기에 대한 정보를 포함하는 것을 특징으로 하는 영상 복호화 장치.
  16. 제13항에 있어서,
    상기 예측부는,
    상기 예측정보에 근거하여 결정된 위치의 기복원된 픽셀이 상기 대상 블록이 위치하는 서브픽처의 경계를 벗어나는 경우, 상기 기복원된 픽셀 대신 대체 픽셀을 이용하여 상기 대상 블록 내의 픽셀을 예측하는 것을 특징으로 하는 영상 복호화 장치.
  17. 제13항에 있어서,
    상기 복원된 대상 블록 내에서 필터링하고자 하는 대상 픽셀 및 그 대상 픽셀의 주변 픽셀들에 필터 계수들을 적용하여 상기 대상 픽셀에 대한 루프 필터링(loop filtering)을 수행하는 루프 필터부를 더 포함하되,
    상기 루프 필터부는, 상기 주변 픽셀들 중 적어도 하나가 상기 대상 블록이 위치하는 서브픽처의 경계를 벗어나는 경우, 상기 적어도 하나의 주변 픽셀 대신 대체 픽셀을 이용하여 상기 대상 픽셀에 대한 루프 필터링을 수행하는 영상 복호화 장치.
PCT/KR2020/006419 2019-05-15 2020-05-15 영상 부호화 및 복호화 방법 및 장치 WO2020231219A1 (ko)

Priority Applications (2)

Application Number Priority Date Filing Date Title
US17/294,137 US20220014769A1 (en) 2019-05-15 2020-05-15 Video encoding and decoding method and device
CN202080036117.9A CN113841397A (zh) 2019-05-15 2020-05-15 影像编码和解码方法及装置

Applications Claiming Priority (6)

Application Number Priority Date Filing Date Title
KR10-2019-0056973 2019-05-15
KR20190056973 2019-05-15
KR10-2019-0121030 2019-09-30
KR20190121030 2019-09-30
KR1020200058245A KR20200132753A (ko) 2019-05-15 2020-05-15 영상 부호화 및 복호화 방법 및 장치
KR10-2020-0058245 2020-05-15

Publications (1)

Publication Number Publication Date
WO2020231219A1 true WO2020231219A1 (ko) 2020-11-19

Family

ID=73289654

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/006419 WO2020231219A1 (ko) 2019-05-15 2020-05-15 영상 부호화 및 복호화 방법 및 장치

Country Status (2)

Country Link
US (1) US20220014769A1 (ko)
WO (1) WO2020231219A1 (ko)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760983A (zh) * 2023-08-09 2023-09-15 中国科学技术大学 用于视频编码的环路滤波方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150083012A (ko) * 2014-01-06 2015-07-16 에스케이텔레콤 주식회사 다중 영상의 단일 비트 스트림 생성방법 및 생성장치
KR20180028299A (ko) * 2016-09-08 2018-03-16 가온미디어 주식회사 공간적 구조 정보를 이용한 동기화된 다시점 영상의 선택적 복호화 방법, 부호화 방법 및 그 장치
US20180192074A1 (en) * 2017-01-03 2018-07-05 Mediatek Inc. Video processing method for processing projection-based frame with 360-degree content represented by projection faces packed in 360-degree virtual reality projection layout
KR20190029735A (ko) * 2016-08-23 2019-03-20 에스지 디제이아이 테크놀러지 코., 엘티디 곡선 뷰 비디오 인코딩/디코딩에서 효율성 향상을 위한 시스템 및 방법

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020057516A1 (en) * 2018-09-18 2020-03-26 Huawei Technologies Co., Ltd. Partitioning with high level constraint
SG11202109980WA (en) * 2019-03-11 2021-10-28 Huawei Tech Co Ltd Sub-picture level filtering in video coding

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20150083012A (ko) * 2014-01-06 2015-07-16 에스케이텔레콤 주식회사 다중 영상의 단일 비트 스트림 생성방법 및 생성장치
KR20190029735A (ko) * 2016-08-23 2019-03-20 에스지 디제이아이 테크놀러지 코., 엘티디 곡선 뷰 비디오 인코딩/디코딩에서 효율성 향상을 위한 시스템 및 방법
KR20180028299A (ko) * 2016-09-08 2018-03-16 가온미디어 주식회사 공간적 구조 정보를 이용한 동기화된 다시점 영상의 선택적 복호화 방법, 부호화 방법 및 그 장치
US20180192074A1 (en) * 2017-01-03 2018-07-05 Mediatek Inc. Video processing method for processing projection-based frame with 360-degree content represented by projection faces packed in 360-degree virtual reality projection layout

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
CHOI, BYEONGDOO ET AL.: "AHG12: On sub-picture partitioning", JVET-N0055-V2. JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11 . 14TH MEETING, 20 March 2019 (2019-03-20), Geneva, CH, pages 1 - 7 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116760983A (zh) * 2023-08-09 2023-09-15 中国科学技术大学 用于视频编码的环路滤波方法及装置
CN116760983B (zh) * 2023-08-09 2023-11-28 中国科学技术大学 用于视频编码的环路滤波方法及装置

Also Published As

Publication number Publication date
US20220014769A1 (en) 2022-01-13

Similar Documents

Publication Publication Date Title
WO2019045445A1 (ko) 타일 구조의 구성 방법 및 이의 장치
WO2011139121A2 (ko) 생략 부호화를 이용한 영상 부호화 및 복호화 장치 및 그 방법
WO2013069932A1 (ko) 영상의 부호화 방법 및 장치, 및 복호화 방법 및 장치
WO2015005621A1 (ko) 비디오 신호 처리 방법 및 장치
WO2020251260A1 (ko) Block dpcm 예측 방법을 사용하는 비디오 신호 처리 방법 및 장치
WO2014171770A1 (ko) 비디오 신호 처리 방법 및 장치
JP2022522013A (ja) イントラ予測ベースのビデオ信号処理方法及び装置
WO2022114742A1 (ko) 비디오 부호화 및 복호화를 위한 장치 및 방법
WO2019135628A1 (ko) 영상을 부호화 또는 복호화하는 방법 및 장치
WO2020184999A1 (ko) 영상 부호화 및 복호화 방법 및 장치
WO2020231219A1 (ko) 영상 부호화 및 복호화 방법 및 장치
KR20200132753A (ko) 영상 부호화 및 복호화 방법 및 장치
WO2023038447A1 (ko) 비디오 부호화/복호화 방법 및 장치
WO2022030980A1 (ko) 비디오 데이터의 패치북 기반 부호화 및 복호화를 위한 방법 및 장치
WO2018124686A1 (ko) 인트라 예측을 이용한 영상의 부호화 및 복호화
WO2021029640A1 (ko) 서브픽처 파티셔닝을 이용한 비디오 부호화 및 복호화 방법 및 장치
WO2020185027A1 (ko) 데이터 블록에 변환 생략 모드를 효율적으로 적용하기 위한 방법 및 장치
WO2021066508A1 (ko) 다른 해상도를 가지는 픽처들에 대한 인터 예측 방법 및 장치
WO2023075120A1 (ko) 다양한 블록 분할 구조를 이용하는 비디오 코딩방법 및 장치
WO2019078693A1 (ko) 영상 부호화 또는 복호화하기 위한 장치 및 방법
WO2019135636A1 (ko) Ycbcr간의 상관 관계를 이용한 영상 부호화/복호화 방법 및 장치
WO2024112126A1 (ko) 코딩트리유닛의 분할구조를 예측하고 수정하는 비디오 부호화/복호화 방법 및 장치
WO2022114752A1 (ko) 효율적인 예측 및 변환을 위한 블록 분할 구조 및 이를 이용한 비디오 부호화 및 복호화를 위한 방법 및 장치
WO2024058430A1 (ko) 하나의 블록에 싱글 트리와 듀얼 트리를 적응적으로 이용하는 비디오 코딩을 위한 방법 및 장치
WO2022177380A1 (ko) 인터 예측 기반의 비디오 부호화 및 복호화

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

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

Country of ref document: EP

Kind code of ref document: A1