WO2012093890A2 - 양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치 - Google Patents

양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치 Download PDF

Info

Publication number
WO2012093890A2
WO2012093890A2 PCT/KR2012/000154 KR2012000154W WO2012093890A2 WO 2012093890 A2 WO2012093890 A2 WO 2012093890A2 KR 2012000154 W KR2012000154 W KR 2012000154W WO 2012093890 A2 WO2012093890 A2 WO 2012093890A2
Authority
WO
WIPO (PCT)
Prior art keywords
prediction
information
image
unit
list
Prior art date
Application number
PCT/KR2012/000154
Other languages
English (en)
French (fr)
Other versions
WO2012093890A3 (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 삼성전자 주식회사
Priority to JP2013548358A priority Critical patent/JP2014506063A/ja
Priority to EP12732058.8A priority patent/EP2663078A4/en
Priority to BR112013017490A priority patent/BR112013017490A2/pt
Priority to AU2012205076A priority patent/AU2012205076B2/en
Priority to CN201280012366XA priority patent/CN103416062A/zh
Priority to US13/978,629 priority patent/US20130287106A1/en
Publication of WO2012093890A2 publication Critical patent/WO2012093890A2/ko
Publication of WO2012093890A3 publication Critical patent/WO2012093890A3/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • 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/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/46Embedding additional information in the video signal during the compression process
    • 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/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/573Motion compensation with multiple frame prediction using two or more reference frames in a given prediction direction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding
    • H04N19/61Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding in combination with predictive coding
    • 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 video encoding and decoding involving video prediction and video prediction.
  • video codec for efficiently encoding or decoding high resolution or high definition video content.
  • video is encoded according to a limited encoding method based on a macroblock of a predetermined size.
  • the video codec reduces the amount of data by using a prediction technique by using a feature that images of a video are highly correlated with each other temporally or spatially.
  • image information is recorded using a temporal or spatial distance between the images, a prediction error, and the like.
  • the present invention provides a video prediction technique capable of bidirectional prediction or unidirectional prediction, and a video encoding and decoding method and apparatus including efficient bidirectional prediction or unidirectional prediction.
  • a video prediction method includes the steps of determining reference information indicating at least one reference picture for prediction of an image; Determining a first reference list and a second reference list including the reference information and a reference order of the reference image; And generating the reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order when the determined reference information indicates only images for unidirectional prediction in time.
  • prediction may be performed according to the order of the reference image having the highest prediction efficiency.
  • FIG. 1 is a block diagram of a video prediction apparatus, according to an embodiment.
  • FIG. 2 is a block diagram of a video prediction encoding apparatus, according to an embodiment.
  • FIG. 3 is a block diagram of a video prediction decoding apparatus, according to an embodiment.
  • FIG. 4 is a flowchart of a video prediction method, according to an embodiment.
  • FIG. 5 is a flowchart of a video prediction encoding method, according to an embodiment.
  • FIG. 6 is a flowchart of a video predictive decoding method according to an embodiment.
  • FIG. 7 is a block diagram of a video encoding apparatus involving video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • FIG. 8 is a block diagram of a video decoding apparatus including video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • FIG 9 illustrates a concept of coding units, according to an embodiment of the present invention.
  • FIG. 10 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.
  • FIG. 11 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.
  • FIG. 12 is a diagram of deeper coding units according to depths, and partitions, according to an embodiment of the present invention.
  • FIG. 13 illustrates a relationship between a coding unit and transformation units, according to an embodiment of the present invention.
  • FIG. 14 illustrates encoding information according to depths, according to an embodiment of the present invention.
  • 15 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.
  • 16, 17, and 18 illustrate a relationship between coding units, prediction units, and transformation units, according to an embodiment of the present invention.
  • FIG. 19 illustrates a relationship between a coding unit, a prediction unit, and a transformation unit, according to encoding mode information of Table 1.
  • FIG. 20 is a flowchart of a video encoding method involving video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • 21 is a flowchart of a video decoding method involving video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • a video prediction method includes the steps of determining reference information indicating at least one reference picture for prediction of an image; Determining a first reference list and a second reference list including the reference information and a reference order of the reference image; And generating the reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order when the determined reference information indicates only images for unidirectional prediction in time.
  • the video prediction method may include a first reference order and a second reference order of a reference image for at least one of a first direction prediction and a second direction prediction indicated by the first reference list and the second reference list.
  • the method may further include generating the reconstructed image by referring to.
  • the determining of the first reference list and the second reference list may include: when reference information for prediction of the current image having a B slice type indicates only reference images for unidirectional prediction in time, And determining the reference order of the reference list and the reference order of the second reference list in the same manner.
  • the generating of the reconstructed image may include the same reference information and reference order as that of the first reference list when the second reference list of the current image having a B slice type does not include the reference image.
  • the method may include determining a second reference list and generating the reconstructed image by referring to the images indicated by the first reference list and the second reference list.
  • the determining of the first reference list and the second reference list may include: when the reference picture of the current picture having a B slice type includes only reference pictures for unidirectional prediction, the first reference list and the second reference list.
  • the number of reference images indicated by the second reference list is the same, the reference information included in the first reference list and the image indicated by the reference information included in the second reference list are the same, and the first reference list And determining the reference order of the second reference list to be the same.
  • a video prediction encoding method comprising: determining reference information representing at least one reference image by performing prediction on an image; Determining a first reference list and a second reference list including the reference information and a reference order of the reference image; Generating a reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order, when the determined reference information indicates only images for unidirectional prediction in time; And encoding the reference information and a prediction error.
  • the video predictive encoding method may include the reference order of the first reference list and the first order when reference information determined for a current picture having a B slice type indicates only reference pictures for unidirectional prediction in time. And determining the reference order of the two reference lists in the same way.
  • the video prediction encoding method when a reference picture of an image having a B slice type includes reference pictures for unidirectional prediction, the identity of the reference order of the first reference list and the second reference list is identical.
  • the method may include encoding unidirectional prediction information indicating whether or not.
  • the unidirectional prediction information for the current slice according to an embodiment may be encoded for at least one image unit among a slice, a sequence, and a picture.
  • the video prediction encoding method may further include: in addition to an I slice type, a P slice type, and a B slice type, when the reference image determined for the current image includes reference images for unidirectional prediction.
  • the method may include encoding slice type information including a new slice type predicted and encoded according to a prediction mode in which a reference list and a reference order of the second reference list are set to be the same.
  • a video predictive decoding method comprising: receiving reference information indicating at least one reference image for predicting an image; Determining a first reference list and a second reference list including the reference information and a reference order of the reference image; And generating the reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order when the determined reference information indicates only images for unidirectional prediction in time.
  • the reference order and the first order of the first reference list may be used. 2 determining the reference order of the reference list in the same manner.
  • the video prediction decoding method may further include receiving unidirectional prediction information indicating whether the reference order of the first reference list and the second reference list is identical for prediction of an image having a B slice type; And reference of the first reference list and the second reference list when the reference image for prediction of the current image of the B slice type includes reference images for unidirectional prediction based on the unidirectional prediction information. And determining the order in the same way.
  • the video prediction decoding method includes: receiving the unidirectional prediction information for a current slice for each image unit of at least one of a slice, a sequence, and a picture; And determining the reference order of the first reference list and the second reference list in the same manner based on the unidirectional prediction information for at least one image unit among the slice, sequence, and picture.
  • the video prediction decoding method may further include an I slice type, a P slice type, and a B slice type, based on whether the reference image determined for the current image includes only reference images for unidirectional prediction.
  • a video prediction apparatus includes: a reference information determiner configured to determine reference information representing at least one reference image for predicting an image; A reference list determiner configured to determine a first reference list and a second reference list including the reference information and a reference order of the reference image; A reconstructed image generation unit generating a reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order when the determined reference information indicates only images for unidirectional prediction in time; And a processor for controlling operations of the reference information determiner, the reference list determiner, and the reconstructed image generator.
  • a video prediction encoding apparatus includes: a prediction unit configured to determine reference information representing at least one reference image by performing prediction on an image; When the first reference list and the second reference list including the reference information and the reference order of the reference image are determined, and the determined reference information represents only images for unidirectional prediction in time, the first reference list A reconstructed image generating unit generating a reconstructed image by referring to the image indicated by the second reference list in the same reference order; A predictive encoding unit encoding the determined reference information and a prediction error; And a processor that controls operations of the predictor, the reference list determiner, the reconstructed image generator, and the predictive encoder.
  • a video prediction decoding apparatus includes: a receiver extracting unit extracting reference information and a prediction error indicating at least one reference image for prediction of an image by parsing a received bitstream; When the first reference list and the second reference list including the reference information and the reference order of the reference image are determined, and the determined reference information represents only images for unidirectional prediction in time, the first reference list A reconstructed image generating unit generating the reconstructed image by compensating using the prediction error by referring to the image indicated by the second reference list in the same reference order; And a processor controlling operations of the reception extractor, the reference list determiner, and the reconstructed image generator.
  • the present invention includes a computer-readable recording medium having a program recorded thereon for implementing a video prediction method according to an embodiment.
  • the present invention includes a computer-readable recording medium having a program recorded thereon for implementing a video predictive encoding method according to an embodiment.
  • the present invention includes a computer-readable recording medium having a program recorded thereon for implementing a video predictive decoding method according to an embodiment.
  • a method and apparatus for predicting video capable of bidirectional prediction and unidirectional prediction, a video predictive encoding method and apparatus, and a video predictive decoding method and apparatus are disclosed according to an embodiment.
  • FIG. 1 is a block diagram of a video prediction apparatus 10 according to an embodiment.
  • the video prediction apparatus 10 includes a reference information determiner 12, a reference list determiner 14, and a reconstructed image generator 16.
  • the video prediction apparatus 10 may include a central processor (not shown) that collectively controls the reference information determiner 12, the reference list determiner 14, and the reconstructed image generator 16. Can be.
  • the reference information determiner 12, the reference list determiner 14, and the reconstructed image generating unit 16 are operated by their own processors (not shown), and the processors (not shown) operate organically with each other.
  • the video predictive encoding apparatus 10 may operate as a whole.
  • the reference information determiner 12, the reference list determiner 14, and the reconstructed image generator 16 may be controlled by the control of an external processor (not shown) of the video prediction apparatus 10 according to an exemplary embodiment. May be
  • the video prediction apparatus 10 may include one or more data storage units (not shown) in which input and output data of the reference information determiner 12, the reference list determiner 14, and the reconstructed image generator 16 are stored. ) May be included.
  • the video prediction apparatus 10 may include a memory controller (not shown) that controls data input / output of the data storage unit (not shown).
  • the video prediction apparatus 10 performs prediction on images of a video.
  • the video prediction apparatus 10 determines prediction information indicating a temporal or spatial distance between the current image and the surrounding image, a prediction error, and the like. Therefore, the image information may be recorded using the prediction information instead of the entire data of the image.
  • Prediction encoding includes inter prediction that predicts a current image using temporal and backward images, and intra prediction that predicts a current image using spatial surrounding images. Therefore, the inter-prediction image is used as a reference image temporally, and in the intra prediction, the neighboring images are spatially used as the reference image, so that the current image can be predicted.
  • the reference image may be an image unit such as a picture, a frame, and a block.
  • the reference information determiner 12 determines reference information indicating at least one reference image for predicting an image.
  • the reference information determiner 12 determines the similarity between the previous video, the next video, and the current video of the current video, and detects the video with the least error.
  • the detected image may be determined as the reference image, and information indicating the reference image, for example, the number of the image, the index, and the like may be determined as the reference information.
  • Motion information indicating a reference block among the reference pictures may also be determined as reference information.
  • an index indicating a reference image among neighboring regions adjacent to the current region in the same image as the current image may be determined as reference information.
  • the reference information determiner 12 may determine a prediction error that is an error between the current image and the reference image.
  • the reference list determiner 14 may determine a reference list including reference information determined by the reference information determiner 12 and a reference order of a reference image.
  • the reference list may include a first reference list and a second reference list.
  • the reference list for prediction of the B slice type image may include an L0 list for List 0 prediction and an L1 list for List 1 prediction.
  • Each of the first reference list and the second reference list may include an index indicating one or more reference images and reference order information.
  • the reference list determiner 14 may include a first reference including a reference image for first direction prediction and a reference image for second direction prediction.
  • the list and the second reference list can be determined.
  • the reference image for the first direction prediction may be included in the first reference list
  • the reference image for the second direction prediction may be included in the second reference list.
  • one reference list is not necessarily limited to include only reference pictures for unidirectional prediction.
  • the reference list determiner 14 may determine the reference order of reference images in the first reference list and the second reference list. For example, the reference order may be determined to preferentially refer to a reference picture that is temporally close to the current picture.
  • the reference list determiner 14 may refer to the reference order of the first reference list and the second reference list when reference information for prediction of the current image indicates only reference images for unidirectional prediction in time.
  • the reference order of can be determined in the same way.
  • the prediction unit 12 determines the reference image of the current image that is the B slice type among the I, P, and B slice types
  • the reference image includes only images that are temporally preceding the current image.
  • the list determination unit 14 may determine the reference order of the L0 list and the L1 list in the same manner.
  • the reference list determiner 14 includes the number of reference images included in the first reference list and the second reference list to determine the same reference order of the first reference list and the second reference list.
  • the number of reference images may be the same, and the image indicated by the reference index included in the first reference list and the image indicated by the reference index included in the second reference list may be determined to be the same.
  • the reconstructed image generator 16 generates a reconstructed image from the prediction error of the current image by referring to the reference images indicated by the first reference list and the second reference list in a corresponding reference order.
  • the reconstructed image generating unit 16 may include the second reference list such that the second reference list has the same reference information and reference order as the first reference list when the second reference list does not include the reference image. Can be modified. Based on this, the reconstructed image generating unit 16 may generate the reconstructed image by referring to the same image indicated by the first reference list and the second reference list in the same order.
  • the reconstructed image generating unit 16 equals the L0 list and the L1 list.
  • the prediction image may be reconstructed by referring to the same image indicated by the L0 list and the L1 list in the same reference order.
  • the video prediction technique may represent the image by using the prediction information instead of the entire data of the image
  • the reference information and the prediction information of the prediction error may be recorded or transmitted, and the video prediction is performed using the prediction information obtained from the outside.
  • the image may be restored.
  • a video predictor encoding apparatus 20 and a video predictor decoding apparatus 30 based on video prediction according to an embodiment will be described with reference to FIGS. 2 and 3.
  • FIG. 2 is a block diagram of a video prediction encoding apparatus 20 according to an embodiment.
  • the video predictor encoding apparatus 20 includes a predictor 22, a reconstructed image generator 24, and a predictor encoder 26.
  • the prediction unit 22 performs prediction on the image to determine reference information indicating at least one reference image.
  • the prediction unit 22 may determine a prediction error between the current image and the reference image by performing prediction on the current image.
  • the reconstructed image generator 24 determines a first reference list and a second reference list including the reference information determined by the predictor 22 and the reference order of the reference images.
  • the reconstructed image generating unit 24 may generate a reconstructed image by referring to the reference images indicated by the first reference list and the second reference list according to the reference order indicated by the first reference list and the second reference list.
  • the reconstructed image generator 24 may generate a reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order. have.
  • the operation of the reconstructed image generator 24 corresponds to the operations of the reference list determiner 14 and the reconstructed image generator 16 of the video prediction apparatus 10 described above.
  • the reconstructed image generator 24 may refer to the reference order of the first reference list and the reference of the second reference list. The order can be determined identically. Accordingly, the reconstructed image generator 24 may generate the reconstructed image from the prediction error while referring to the reference images indicated by the first reference list and the second reference list in the same order as the reference order of the first reference list.
  • the reconstructed image generated by the reconstructed image generator 24 may be used by the predictor 22 as a reference image for predicting another image.
  • the prediction encoder 26 encodes the reference information and the prediction error determined by the prediction unit 22.
  • the predictive encoding unit 26 indicates whether or not the reference order of the first reference list and the second reference list is the same when reference information determined for the current image having a B slice type indicates only reference images for unidirectional prediction. Unidirectional prediction information can be encoded.
  • the reference order may be determined by the L0 list and the L1 list.
  • the preceding image indicated by the L0 list and the L1 list by unifying the reference order of the L0 list and the L1 list May be referenced in the same order.
  • the reference order of the L0 list and the L1 list is determined not to be the same, so that the preceding picture indicated by the L0 list and the L1 list is determined. May be referenced in a different order.
  • the prediction information encoder 26 may provide unidirectional prediction information indicating whether the current image is the first B slice type or the second B slice type. Can be encoded. Unidirectional prediction information may be encoded in the form of a flag.
  • the predictive encoding unit 26 may encode unidirectional predictive information for at least one image unit.
  • the prediction information encoder 26 may signal unidirectional prediction flag information for each slice through a slice header, signal for each sequence through a sequence parameter set (SPS), or for each picture through a picture parameter set (PPS). It may signal. Accordingly, it may be determined whether or not to encode an image having a B slice type in a prediction mode of a first B slice type or a prediction mode of a second B slice type mode by signal for each slice, each sequence, or for each picture.
  • SPS sequence parameter set
  • PPS picture parameter set
  • first reference list and the second reference list of the B slice type picture are the same when the B slice type picture has only temporally preceding reference pictures.
  • a fourth slice type may be defined in addition to the I slice type, the P slice type, and the B slice type.
  • the fourth slice type image may be encoded according to a prediction mode in which the first reference list and the second reference list are set identically when the reference image includes only reference images for prediction in one direction.
  • the prediction information encoder 16 may encode slice type information indicating one of an I slice type, a P slice type, a B slice type, and a fourth slice type.
  • the video predictor encoding apparatus 20 also includes a predictor 22, a reconstructed image generator 24, and a predictor encoder 26 by a central processor (not shown) or an external processor (not shown).
  • the predictor 22, the reconstructed image generator 24, and the predictive encoder 26 may be operated by their own processors (not shown).
  • the video predictor encoding apparatus 20 may include one or more data storage units (not shown) in which input / output data of the predictor 22, the reconstructed image generator 24, and the predictor encoder 26 are stored. It may include.
  • the video predictive encoding apparatus 20 may include a memory controller (not shown) that controls data input / output of the data storage unit (not shown).
  • the video prediction encoding apparatus 20 may represent an image by using prediction information instead of the entire data of the image, the video prediction encoding apparatus 20 may be applied to video encoding that performs video compression encoding that requires a reduction in the amount of video data.
  • the video predictor encoding apparatus 20 may perform prediction encoding for video encoding by being included in or linked to a video encoder that encodes a video based on a coding unit obtained by dividing an image of a video into spatial regions. have.
  • the coding unit according to an embodiment may include not only a fixed macroblock in a fixed form but also coding units having a tree structure according to an embodiment. According to an embodiment, coding units having a tree structure will be described below with reference to FIGS. 7 to 19.
  • the video prediction encoding apparatus 20 may perform prediction on an image of a spatial domain to output a prediction error, that is, a residual component of a reference image.
  • the video encoder may generate transform and quantization transform coefficients for the residual component, and perform entropy encoding on symbols such as transform coefficient and encoding information to output a bitstream.
  • the video encoder may perform loop filtering by reconstructing the image of the spatial domain through inverse quantization, inverse transformation, and prediction compensation on the transform coefficients. Accordingly, compression encoding of the video encoder may be implemented through prediction encoding through the video prediction encoding apparatus 20.
  • the video prediction encoding apparatus 20 may operate in conjunction with an internal video encoding processor or an external video encoding processor to output a video encoding result, thereby performing a video encoding operation including prediction encoding.
  • the internal video encoding processor of the video encoding apparatus 10 includes not only a separate processor, but also a video encoding processing module 10 or a central computing unit and a graphics processing unit including a video encoding processing module. It may also include the case of implementing the operation.
  • FIG. 3 is a block diagram of a video prediction decoding apparatus, according to an embodiment.
  • the video predictive decoding apparatus 30 includes a reception extractor 32 and a reconstructed image generator 34.
  • the reception extractor 32 parses the received bitstream to extract prediction information including at least one reference image representing a reference image for prediction of an image and a prediction error.
  • the reception extractor 32 may determine the prediction error and the reference information between the current image and the reference image based on the extracted prediction information.
  • the reconstructed image generating unit 34 determines the first reference list and the second reference list including the reference information determined by the reception extracting unit 32 and the reference order of the reference image.
  • the reconstructed image generating unit 34 may generate a reconstructed image by referring to the reference images indicated by the first reference list and the second reference list according to the reference order indicated by the first reference list and the second reference list.
  • the reconstructed image generator 34 may generate a reconstructed image by referring to the images indicated by the first reference list and the second reference list in the same reference order. have.
  • the operation of the reconstructed image generator 34 corresponds to the operations of the reference list determiner 14 and the reconstructed image generator 16 of the video prediction apparatus 10 described above.
  • the reconstructed image generator 24 may refer to the reference order of the first reference list and the reference of the second reference list. By determining the same order, the reconstructed image may be generated from the prediction error while referring to the reference images indicated by the first reference list and the second reference list in the same order as that of the first reference list.
  • the reconstructed image generated by the reconstructed image generator 34 may be output as a result image of the predictive decoding.
  • the reconstructed picture may also be used as a reference picture for prediction of another picture.
  • the reception extracting unit 32 may refer to the reference order of the first reference list and the second reference list when reference information determined for the current image having a B slice type indicates only reference images for unidirectional prediction. Unidirectional prediction information indicating whether or not is equal to may be received.
  • the receiver extracting unit 32 refers to images preceding in time with respect to the current image of the B slice type
  • the unidirectional prediction indicating whether the current image is the first B slice type or the second B slice type.
  • Information can be received.
  • Unidirectional prediction information may be encoded in the form of a flag.
  • the reconstructed image generating unit 34 When the current image is read as the first B slice type based on the unidirectional prediction information, when the reference image of the B slice type image includes only temporally preceding images, the reconstructed image generating unit 34 includes L0.
  • the preceding pictures indicated by the list and the L1 list may be referenced in the same order.
  • the reconstructed image generating unit 34 includes L0.
  • the preceding pictures indicated by the list and the L1 list may be referenced in different orders.
  • the reception extractor 32 may receive unidirectional prediction information for at least one image unit.
  • the reception extractor 32 may receive unidirectional prediction information per slice through a slice header, per sequence through an SPS, and per picture through a PPS. Therefore, it may be determined whether to decode an image having a B slice type into a prediction mode of a first B slice type or a prediction mode of a second B slice type mode.
  • the reception extractor 32 may receive slice type information indicating one of an I slice type, a P slice type, a B slice type, and a fourth slice type.
  • the reconstructed image generating unit 34 determines, based on the slice type information, at least one reference determined for the current image when it is determined that the current image is the fourth slice type instead of the I slice type, the P slice type, and the B slice type.
  • the image may be decoded according to a prediction mode in which the first reference list and the second reference list are set to be the same.
  • the video prediction decoding apparatus 30 also controls the reception extractor 32 and the reconstructed image generator 34 collectively by a central processor (not shown) or an external processor (not shown),
  • the reception extractor 32 and the reconstructed image generator 34 may be operated by their own processors (not shown).
  • the video prediction decoding apparatus 20 may also include one or more data storage units (not shown) in which input / output data of the prediction unit 32 and the reconstructed image generator 34 are stored.
  • the video predictive decoding apparatus 30 may include a memory controller (not shown) that manages data input / output of the data storage unit (not shown).
  • the video prediction decoding apparatus 30 may reconstruct an image using prediction information instead of the entire data of the image, the video prediction decoding apparatus 30 may be applied to video decoding for performing video compression encoding that requires a reduction in the amount of video data.
  • the video prediction decoding apparatus 30 may be included in or associated with a video encoder that encodes a video based on a coding unit obtained by dividing an image of a video into spatial regions, and may perform prediction encoding for video decoding. have.
  • the coding unit according to an embodiment may include not only a fixed macroblock in a fixed form but also coding units having a tree structure according to an embodiment. According to an embodiment, coding units having a tree structure will be described below with reference to FIGS. 7 to 19.
  • the video prediction decoding apparatus 30 may parse the bitstream and extract encoded symbols. Entropy decoding, inverse quantization, and inverse transformation may be performed on the symbols so that a prediction error with respect to the reference image may be reconstructed. The image of the spatial region may be reconstructed through the prediction compensation using the prediction error and the reference information, and the loop filtering may be performed on the reconstructed image. Accordingly, compression decoding of the video decoder may be implemented through prediction decoding through the video prediction decoding apparatus 30.
  • the video prediction decoding apparatus 30 may operate in conjunction with an internal video decoding processor or an external video decoding processor to output a video encoding result, thereby performing a video decoding operation including prediction.
  • the internal video decoding processor of the video predictive decoding apparatus 30 includes not only a separate processor, but also a basic video decoding process because the predictive decoding apparatus 30 or the central computing unit and the graphic computing unit include a video decoding processing module. It may also include the case of implementing the operation.
  • FIG. 4 is a flowchart of a video prediction method, according to an embodiment.
  • reference information indicating at least one reference image for prediction of the image is determined.
  • a prediction error may be determined between the current image and the reference image.
  • step 44 a first reference list and a second reference list including the reference information determined in step 42 and the reference order of the reference image are determined.
  • a first reference list including a reference picture and a reference order for first direction prediction is determined, and a second reference including a reference picture and a reference order for second direction prediction is determined.
  • the list can be determined.
  • the reference order of the first reference list and the reference order of the second reference list may be determined to be the same.
  • a prediction mode in which only the preceding images are referred to in time.
  • a prediction mode that allows only forward prediction may be set.
  • only reference pictures that are temporally preceding for the current picture having a B slice type may be determined, and the reference order of the first reference list and the reference order of the second reference list may be determined to be the same.
  • step 46 a reconstructed image is generated from the prediction error by referring to the reference images indicated by the first reference list and the second reference list determined in step 44 in a reference order.
  • the second reference list does not include the reference picture, the second reference list is determined again so that the second reference list has the same reference information and reference order as the first reference list, and the first reference list and the second reference list are determined.
  • the reconstructed image may be generated by referring to the same image indicated by the same order.
  • FIG. 5 is a flowchart of a video prediction encoding method, according to an embodiment.
  • reference information indicating at least one reference image is determined by performing prediction on the image.
  • the prediction error between the current image and the reference image may be determined through the prediction of the current image.
  • step 54 a first reference list and a second reference list including the reference information determined in step 52 and the reference order of the reference image are determined.
  • the reconstructed image may be generated by referring to the reference images indicated by the first reference list and the second reference list determined in operation 54 according to the reference order indicated by the first reference list and the second reference list.
  • the reference information represents only images for unidirectional prediction in time
  • the reference images of the first reference list and the second reference list are modified to be the same so that the reference images indicated by the first reference list and the second reference list are mutually different.
  • the reconstructed image may be generated from the prediction error while referring to the same order.
  • step 58 the reference information and the prediction error determined in step 52 are encoded.
  • unidirectional prediction information indicating whether the current picture is the first B slice type or the second B slice type may be encoded.
  • Unidirectional prediction information may be signaled via the slice header, SPS or PPS.
  • slice type information indicating one of an I slice type, a P slice type, and a B slice type and a fourth slice type may be encoded.
  • FIG. 6 is a flowchart of a video predictive decoding method according to an embodiment.
  • reference information and a prediction error indicating at least one reference image for prediction of the image are extracted by parsing the received bitstream.
  • step 64 a first reference list and a second reference list including the reference information determined in step 62 and the reference order of the reference picture are determined.
  • a reconstructed image may be generated by referring to reference images indicated by the first reference list and the second reference list determined in operation 64 according to the reference order indicated by the first reference list and the second reference list.
  • a reconstructed image may be generated by referring to the images indicated by the first reference list and the second reference list in the same reference order.
  • step 62 when reference information determined for the current picture having a B slice type indicates only reference pictures for single direction prediction, unidirectional prediction information indicating whether the reference order of the first reference list and the second reference list are the same Can be received. Unidirectional prediction information may be received unidirectional prediction information per slice, per sequence, or per picture.
  • the current picture is read as the first B slice type based on the unidirectional prediction information received in step 62, and the reference picture includes only pictures that precede temporally, in step 66, the preceding L0 list and the L1 list are indicated.
  • the reconstructed image may be generated by referring to the images in the same order.
  • step 62 slice type information indicating one of an I slice type, a P slice type, and a B slice type and a fourth slice type may be received. If it is determined that the current picture is the fourth slice type based on the slice type information, and the at least one reference picture determined for the current picture includes reference pictures for prediction in one direction, in step 64, the first reference list may be used.
  • the reference image may be determined according to the prediction mode in which the second reference list and the second reference list are set identically, and the image may be reconstructed through prediction / compensation.
  • the first reference list and the second reference list are determined in the same order, thereby making the first reference picture the same.
  • prediction may be performed according to the order of the nearest reference picture or the most similar reference picture in time.
  • the image quality of the reconstructed image may be improved by combining the prediction result.
  • video encoding and video decoding capable of bidirectional prediction and unidirectional prediction may be extended, and video encoding and video based on coding units having a tree structure according to an embodiment. An embodiment applied to the decoding is described in detail.
  • FIG. 7 is a block diagram of a video encoding apparatus 100 that includes video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • the video encoding apparatus 100 including video prediction based on coding units having a tree structure may include a maximum coding unit splitter 110, a coding unit determiner 120, and an outputter 130.
  • the video encoding apparatus 100 that includes video prediction based on coding units having a tree structure is abbreviated as “video encoding apparatus 100”.
  • the maximum coding unit splitter 110 may partition the current picture based on the maximum coding unit that is a coding unit of the maximum size for the current picture of the image. If the current picture is larger than the maximum coding unit, image data of the current picture may be split into at least one maximum coding unit.
  • the maximum coding unit may be a data unit having a size of 32x32, 64x64, 128x128, 256x256, or the like, and may be a square data unit having a square of two horizontal and vertical sizes.
  • the image data may be output to the coding unit determiner 120 for at least one maximum coding unit.
  • the coding unit according to an embodiment may be characterized by a maximum size and depth.
  • the depth indicates the number of times the coding unit is spatially divided from the maximum coding unit, and as the depth increases, the coding unit for each depth may be split from the maximum coding unit to the minimum coding unit.
  • the depth of the largest coding unit is the highest depth and the minimum coding unit may be defined as the lowest coding unit.
  • the maximum coding unit decreases as the depth increases, the size of the coding unit for each depth decreases, and thus, the coding unit of the higher depth may include coding units of a plurality of lower depths.
  • the image data of the current picture may be divided into maximum coding units according to the maximum size of the coding unit, and each maximum coding unit may include coding units divided by depths. Since the maximum coding unit is divided according to depths, image data of a spatial domain included in the maximum coding unit may be hierarchically classified according to depths.
  • the maximum depth and the maximum size of the coding unit that limit the total number of times of hierarchically dividing the height and the width of the maximum coding unit may be preset.
  • the coding unit determiner 120 encodes at least one divided region obtained by dividing the region of the largest coding unit for each depth, and determines a depth at which the final encoding result is output for each of the at least one divided region. That is, the coding unit determiner 120 encodes the image data in coding units according to depths for each maximum coding unit of the current picture, and selects a depth at which the smallest coding error occurs to determine the coding depth. The determined coded depth and the image data for each maximum coding unit are output to the outputter 130.
  • Image data in the largest coding unit is encoded based on coding units according to depths according to at least one depth less than or equal to the maximum depth, and encoding results based on the coding units for each depth are compared. As a result of comparing the encoding error of the coding units according to depths, a depth having the smallest encoding error may be selected. At least one coding depth may be determined for each maximum coding unit.
  • the coding unit is divided into hierarchically and the number of coding units increases.
  • a coding error of each data is measured, and whether or not division into a lower depth is determined. Therefore, even in the data included in one largest coding unit, since the encoding error for each depth is different according to the position, the coding depth may be differently determined according to the position. Accordingly, one or more coding depths may be set for one maximum coding unit, and data of the maximum coding unit may be partitioned according to coding units of one or more coding depths.
  • the coding unit determiner 120 may determine coding units having a tree structure included in the current maximum coding unit.
  • the coding units having a tree structure according to an embodiment include coding units having a depth determined as a coding depth among all deeper coding units included in the maximum coding unit.
  • the coding unit of the coding depth may be hierarchically determined according to the depth in the same region within the maximum coding unit, and may be independently determined for the other regions.
  • the coded depth for the current region may be determined independently of the coded depth for the other region.
  • the maximum depth according to an embodiment is an index related to the number of divisions from the maximum coding unit to the minimum coding unit.
  • the first maximum depth according to an embodiment may represent the total number of divisions from the maximum coding unit to the minimum coding unit.
  • the second maximum depth according to an embodiment may represent the total number of depth levels from the maximum coding unit to the minimum coding unit. For example, when the depth of the largest coding unit is 0, the depth of the coding unit obtained by dividing the largest coding unit once may be set to 1, and the depth of the coding unit divided twice may be set to 2. In this case, if the coding unit divided four times from the maximum coding unit is the minimum coding unit, since depth levels of 0, 1, 2, 3, and 4 exist, the first maximum depth is set to 4 and the second maximum depth is set to 5. Can be.
  • Predictive encoding and transformation of the largest coding unit may be performed. Similarly, prediction encoding and transformation are performed based on depth-wise coding units for each maximum coding unit and for each depth less than or equal to the maximum depth.
  • encoding including prediction encoding and transformation should be performed on all the coding units for each depth generated as the depth deepens.
  • the prediction encoding and the transformation will be described based on the coding unit of the current depth among at least one maximum coding unit.
  • the video encoding apparatus 100 may variously select a size or shape of a data unit for encoding image data.
  • the encoding of the image data is performed through prediction encoding, transforming, entropy encoding, and the like.
  • the same data unit may be used in every step, or the data unit may be changed in steps.
  • the video encoding apparatus 100 may select not only a coding unit for encoding the image data, but also a data unit different from the coding unit in order to perform predictive encoding of the image data in the coding unit.
  • prediction encoding may be performed based on a coding unit of a coding depth, that is, a more strange undivided coding unit, according to an embodiment.
  • a more strange undivided coding unit that is the basis of prediction coding is referred to as a 'prediction unit'.
  • the partition in which the prediction unit is divided may include a data unit in which at least one of the prediction unit and the height and the width of the prediction unit are divided.
  • the partition may be a data unit in which the prediction unit of the coding unit is split, and the prediction unit may be a partition having the same size as the coding unit.
  • the partition type includes not only symmetric partitions in which the height or width of the prediction unit is divided by a symmetrical ratio, but also partitions divided in an asymmetrical ratio, such as 1: n or n: 1, by a geometric form. It may optionally include partitioned partitions, arbitrary types of partitions, and the like.
  • the prediction mode of the prediction unit may be at least one of an intra mode, an inter mode, and a skip mode.
  • the intra mode and the inter mode may be performed on partitions having sizes of 2N ⁇ 2N, 2N ⁇ N, N ⁇ 2N, and N ⁇ N.
  • the skip mode may be performed only for partitions having a size of 2N ⁇ 2N.
  • the encoding may be performed independently for each prediction unit within the coding unit to select a prediction mode having the smallest encoding error.
  • the video encoding apparatus 100 may perform conversion of image data of a coding unit based on not only a coding unit for encoding image data, but also a data unit different from the coding unit.
  • the transformation may be performed based on a transformation unit having a size smaller than or equal to the coding unit.
  • the transformation unit may include a data unit for intra mode and a transformation unit for inter mode.
  • the transformation unit in the coding unit is also recursively divided into smaller transformation units, so that the residual data of the coding unit is determined according to the tree structure according to the transformation depth. Can be partitioned according to the conversion unit.
  • a transform depth indicating a number of divisions between the height and the width of the coding unit divided to the transform unit may be set. For example, if the size of the transform unit of the current coding unit of size 2Nx2N is 2Nx2N, the transform depth is 0, the transform depth 1 if the size of the transform unit is NxN, and the transform depth 2 if the size of the transform unit is N / 2xN / 2. Can be. That is, the transformation unit having a tree structure may also be set for the transformation unit according to the transformation depth.
  • the encoded information for each coded depth requires not only the coded depth but also prediction related information and transformation related information. Accordingly, the coding unit determiner 120 may determine not only the coded depth that generated the minimum coding error, but also a partition type obtained by dividing a prediction unit into partitions, a prediction mode for each prediction unit, and a size of a transformation unit for transformation.
  • a method of determining a coding unit, a prediction unit / partition, and a transformation unit according to a tree structure of a maximum coding unit according to an embodiment will be described later in detail with reference to FIGS. 9 to 19.
  • the coding unit determiner 120 may measure a coding error of coding units according to depths using a Lagrangian Multiplier-based rate-distortion optimization technique.
  • the output unit 130 outputs the image data of the maximum coding unit encoded based on the at least one coded depth determined by the coding unit determiner 120 and the information about the encoding modes according to depths in the form of a bit stream.
  • the encoded image data may be a result of encoding residual data of the image.
  • the information about the encoding modes according to depths may include encoding depth information, partition type information of a prediction unit, prediction mode information, size information of a transformation unit, and the like.
  • the coded depth information may be defined using depth-specific segmentation information indicating whether to encode to a coding unit of a lower depth without encoding to the current depth. If the current depth of the current coding unit is a coding depth, since the current coding unit is encoded in a coding unit of the current depth, split information of the current depth may be defined so that it is no longer divided into lower depths. On the contrary, if the current depth of the current coding unit is not the coding depth, encoding should be attempted using the coding unit of the lower depth, and thus split information of the current depth may be defined to be divided into coding units of the lower depth.
  • encoding is performed on the coding unit divided into the coding units of the lower depth. Since at least one coding unit of a lower depth exists in the coding unit of the current depth, encoding may be repeatedly performed for each coding unit of each lower depth, and recursive coding may be performed for each coding unit of the same depth.
  • coding units having a tree structure are determined in one largest coding unit and information about at least one coding mode should be determined for each coding unit of a coding depth, information about at least one coding mode may be determined for one maximum coding unit. Can be.
  • the coding depth may be different for each location, and thus information about the coded depth and the coding mode may be set for the data.
  • the output unit 130 may allocate encoding information about a corresponding coding depth and an encoding mode to at least one of a coding unit, a prediction unit, and a minimum unit included in the maximum coding unit. .
  • the minimum unit according to an embodiment is a square data unit having a size obtained by dividing the minimum coding unit, which is the lowest coding depth, into four divisions.
  • the minimum unit according to an embodiment may be a square data unit having a maximum size that may be included in all coding units, prediction units, partition units, and transformation units included in the maximum coding unit.
  • the encoding information output through the output unit 130 may be classified into encoding information according to depth coding units and encoding information according to prediction units.
  • the encoding information for each coding unit according to depth may include prediction mode information and partition size information.
  • the encoding information transmitted for each prediction unit includes information about an estimation direction of the inter mode, information about a reference image index of the inter mode, information about a motion vector, information about a chroma component of an intra mode, and information about an inter mode of an intra mode. And the like.
  • Information about the maximum size and information about the maximum depth of the coding unit defined for each picture, slice, or GOP may be inserted into a header, a sequence parameter set, or a picture parameter set of the bitstream.
  • the information on the maximum size of the transform unit and the minimum size of the transform unit allowed for the current video may also be output through a header, a sequence parameter set, a picture parameter set, or the like of the bitstream.
  • the output unit 130 may encode and output reference information, prediction information, unidirectional prediction information, slice type information including a fourth slice type, etc. related to the prediction described above with reference to FIGS. 1 to 6.
  • a coding unit according to depths is a coding unit having a size in which a height and a width of a coding unit of one layer higher depth are divided by half. That is, if the size of the coding unit of the current depth is 2Nx2N, the size of the coding unit of the lower depth is NxN.
  • the current coding unit having a size of 2N ⁇ 2N may include up to four lower depth coding units having a size of N ⁇ N.
  • the video encoding apparatus 100 determines a coding unit having an optimal shape and size for each maximum coding unit based on the size and the maximum depth of the maximum coding unit determined in consideration of the characteristics of the current picture. Coding units may be configured. In addition, since each of the maximum coding units may be encoded in various prediction modes and transformation methods, an optimal coding mode may be determined in consideration of image characteristics of coding units having various image sizes.
  • the video encoding apparatus may adjust the coding unit in consideration of the image characteristics while increasing the maximum size of the coding unit in consideration of the size of the image, thereby increasing image compression efficiency.
  • the video encoding apparatus 100 of FIG. 7 may perform the prediction encoding operation of the video prediction encoding apparatus 20 described above with reference to FIG. 2.
  • the coding unit determiner 120 may perform operations of the predictor 22 and the reconstructed image generator 24 of the video predictor encoding apparatus 10. That is, the prediction and compensation operations of the prediction unit 22 and the reconstructed image generator 24 may be performed based on partitions included for each coding unit among coding units having a hierarchical structure in which the current image is divided. For the partition of the B slice type, a reference picture may be determined based on the first reference list and the second reference list.
  • the coding unit determiner 120 refers to a reference image for unidirectional prediction indicated by the first reference list and the second reference list according to the same reference order. You can create a recovery area for a partition.
  • the coding unit determiner 120 may reconstruct the prediction region of the current partition by referring to reference images for bidirectional prediction indicated by the first reference list and the second reference list according to the corresponding reference order.
  • the coding unit determiner 120 performs prediction involving bidirectional prediction or unidirectional prediction for each maximum coding unit of the current image, and for each coding unit of each depth in which each maximum coding unit is divided by depth. Based on a result of comparing encoding errors for each depth generated through an encoding process including transformation and quantization of an error, encoding units and partitions of an encoding depth that output an encoding result that generates a minimum error may be selected.
  • the bidirectional prediction or the unidirectional prediction is performed using the reference image according to the reference order of the first reference list and the second reference list.
  • the coding unit determiner 120 may include the first reference list and the second reference list. The order of reference can be determined identically.
  • the coding unit determiner 120 may generate a reconstructed image of the current partition by referring to the images indicated by the first reference list and the second reference list in the same reference order. Coding units of the coded depth determined in this manner may constitute a coding unit having a tree structure according to an embodiment.
  • the output unit 130 of the video encoding apparatus 100 may perform an operation of the predictive encoding unit 26 of the video predictor encoding apparatus 10. That is, the output unit 130 may output a quantized transform coefficient of the prediction error generated by the bidirectional prediction and the unidirectional prediction, according to the coding units having a tree structure, for each maximum coding unit. .
  • the output unit 130 may encode and output information about a coded depth and a coding mode of coding units having a tree structure.
  • the information about the encoding mode may include reference information and prediction mode information determined by bidirectional prediction and unidirectional prediction, according to an embodiment.
  • the reference information may include an index indicating a reference picture, motion information indicating a reference block, and the like.
  • the output unit 130 is prediction mode information related to bidirectional prediction and unidirectional prediction, according to an embodiment, and includes unidirectional prediction information indicating whether the first reference list and the second reference list of the B slice type image are identical to each other.
  • Slice type information including four slice types may be encoded.
  • Prediction mode information determined by bidirectional prediction and unidirectional prediction according to an embodiment may be performed for each slice or per sequence including the current partition. Or it may be encoded for each picture.
  • FIG. 8 is a block diagram of a video decoding apparatus including video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • a video decoding apparatus 200 including video prediction based on coding units having a tree structure includes a receiver 210, image data and encoding information extractor 220, and image data decoder 230. do.
  • the video decoding apparatus 200 that includes video prediction based on coding units having a tree structure is abbreviated as “video decoding apparatus 200”.
  • Definition of various terms such as a coding unit, a depth, a prediction unit, a transformation unit, and information about various encoding modes for a decoding operation of the video decoding apparatus 200 according to an embodiment may be described with reference to FIG. 7 and the video encoding apparatus 100. Same as described above with reference.
  • the receiver 210 receives and parses a bitstream of an encoded video.
  • the image data and encoding information extractor 220 extracts image data encoded for each coding unit from the parsed bitstream according to coding units having a tree structure for each maximum coding unit, and outputs the encoded image data to the image data decoder 230.
  • the image data and encoding information extractor 220 may extract information about a maximum size of a coding unit of the current picture from a header, a sequence parameter set, or a picture parameter set for the current picture.
  • the image data and encoding information extractor 220 extracts information about a coded depth and an encoding mode for the coding units having a tree structure for each maximum coding unit, from the parsed bitstream.
  • the extracted information about the coded depth and the coding mode is output to the image data decoder 230. That is, the image data of the bit string may be divided into maximum coding units so that the image data decoder 230 may decode the image data for each maximum coding unit.
  • the information about the coded depth and the encoding mode for each largest coding unit may be set with respect to one or more coded depth information, and the information about the coding mode according to the coded depths may include partition type information, prediction mode information, and transformation unit of the corresponding coding unit. May include size information and the like.
  • split information for each depth may be extracted as the coded depth information.
  • the information about the coded depth and the encoding mode according to the maximum coding units extracted by the image data and the encoding information extractor 220 may be encoded according to the depth according to the maximum coding unit, as in the video encoding apparatus 100 according to an embodiment.
  • the image data and the encoding information extractor 220 may determine the predetermined data.
  • Information about a coded depth and an encoding mode may be extracted for each unit. If the information about the coded depth and the coding mode of the maximum coding unit is recorded for each of the predetermined data units, the predetermined data units having the information about the same coded depth and the coding mode are inferred as data units included in the same maximum coding unit. Can be.
  • the image data decoder 230 reconstructs the current picture by decoding image data of each maximum coding unit based on the information about the coded depth and the encoding mode for each maximum coding unit. That is, the image data decoder 230 may decode the encoded image data based on the read partition type, the prediction mode, and the transformation unit for each coding unit among the coding units having the tree structure included in the maximum coding unit. Can be.
  • the decoding process may include a prediction process including intra prediction and motion compensation, and an inverse transform process.
  • the image data decoder 230 may perform intra prediction or motion compensation according to each partition and prediction mode for each coding unit based on partition type information and prediction mode information of the prediction unit of the coding unit for each coding depth. .
  • the image data decoder 230 may read transform unit information having a tree structure for each coding unit, and perform inverse transform based on the transformation unit for each coding unit, for inverse transformation for each largest coding unit. Through inverse transformation, the pixel value of the spatial region of the coding unit may be restored.
  • the image data decoder 230 may determine the coded depth of the current maximum coding unit by using the split information for each depth. If the split information indicates that the split information is no longer split at the current depth, the current depth is the coded depth. Therefore, the image data decoder 230 may decode the coding unit of the current depth using the partition type, the prediction mode, and the transformation unit size information of the prediction unit with respect to the image data of the current maximum coding unit.
  • the image data decoder 230 It may be regarded as one data unit to be decoded in the same encoding mode.
  • the decoding of the current coding unit may be performed by obtaining information about an encoding mode for each coding unit determined in this way.
  • the video decoding apparatus 200 of FIG. 8 may perform the prediction decoding operation of the video predictive decoding apparatus 30 described above with reference to FIG. 3.
  • the receiver 210 and the image data and encoding information extractor 220 of the video decoding apparatus 200 may perform operations of the receiver extractor 32 of the video predictor / decoder 30.
  • the image data and encoding information extractor 220 may determine a prediction error generated by the bidirectional prediction and the unidirectional prediction according to an embodiment, for each coding unit having a tree structure from the parsed bitstream.
  • a quantized transform coefficient can be extracted.
  • the image data and encoding information extractor 220 extracts information about a coded depth and an encoding mode for the coding units having a tree structure from the parsed bitstream, and according to an embodiment, the bidirectional prediction and the unidirectional direction are performed.
  • the prediction mode information determined by the prediction may be extracted.
  • the image data and encoding information extractor 220 may include unidirectional prediction information indicating whether the first reference list and the second reference list of the B slice type image are identical, and the slice type information including the fourth slice type. Etc. can also be extracted.
  • Prediction mode information determined by bidirectional prediction and unidirectional prediction according to an embodiment may be performed for each slice or per sequence including the current partition. Or it may be extracted separately for each picture.
  • the image data and encoding information extractor 220 may extract reference information indicating a reference image and a reference block for bidirectional prediction and unidirectional prediction, according to an exemplary embodiment.
  • the image data decoder 230 of the video decoding apparatus 200 may perform an operation of the reconstructed image generator 34 of the video decoding apparatus 30.
  • the image data decoder 230 may determine coding units having a tree structure and determine partitions for each coding unit by using information about a coded depth and an encoding mode.
  • the image data decoder 230 may reconstruct the prediction error of the coding unit by performing a decoding process including inverse quantization and inverse transformation on the encoded image data for each coding unit of the tree structure of the current image.
  • the image data decoder 230 may perform bidirectional prediction and unidirectional prediction on the prediction error based on partitions included for each coding unit of the tree structure. For partitions of the B slice type, a reference picture may be determined based on the first reference list and the second reference list. The image data decoder 230 may reconstruct the prediction region of the current partition by referring to reference images for bidirectional prediction indicated by the first reference list and the second reference list according to the corresponding reference order.
  • the image data decoder 230 may refer to reference images for unidirectional prediction indicated by the first reference list and the second reference list according to the same reference order. You can create a restore area for the current partition. For example, the image data decoder 230 may forwardly predict a current reference image which is a slice type capable of bidirectional prediction or unidirectional prediction using a reference image that is temporally preceded by the first reference list and the second reference list. The reference order of the reference list may be determined in the same manner, and the partition may be restored by referring to the images indicated by the first reference list and the second reference list in the order of reference.
  • the image data decoder 230 may generate a reconstructed image of the current image by performing prediction decoding on each partition of the coding unit having a tree structure for each maximum coding unit.
  • the video decoding apparatus 200 may obtain information about a coding unit that generates a minimum coding error by recursively encoding each maximum coding unit in the encoding process, and use the same to decode the current picture. That is, decoding of encoded image data of coding units having a tree structure determined as an optimal coding unit for each maximum coding unit can be performed.
  • the image data can be efficiently used according to the coding unit size and the encoding mode that are adaptively determined according to the characteristics of the image by using the information about the optimum encoding mode transmitted from the encoding end. Can be decoded and restored.
  • FIG 9 illustrates a concept of coding units, according to an embodiment of the present invention.
  • a size of a coding unit may be expressed by a width x height, and may include 32x32, 16x16, and 8x8 from a coding unit having a size of 64x64.
  • Coding units of size 64x64 may be partitioned into partitions of size 64x64, 64x32, 32x64, and 32x32, coding units of size 32x32 are partitions of size 32x32, 32x16, 16x32, and 16x16, and coding units of size 16x16 are 16x16.
  • Coding units of size 8x8 may be divided into partitions of size 8x8, 8x4, 4x8, and 4x4, into partitions of 16x8, 8x16, and 8x8.
  • the resolution is set to 1920x1080, the maximum size of the coding unit is 64, and the maximum depth is 2.
  • the resolution is set to 1920x1080, the maximum size of the coding unit is 64, and the maximum depth is 3.
  • the resolution is set to 352x288, the maximum size of the coding unit is 16, and the maximum depth is 1.
  • the maximum depth illustrated in FIG. 9 represents the total number of divisions from the maximum coding unit to the minimum coding unit.
  • the maximum size of the coding size is relatively large not only to improve the coding efficiency but also to accurately shape the image characteristics. Accordingly, the video data 310 or 320 having a higher resolution than the video data 330 may be selected to have a maximum size of 64.
  • the coding unit 315 of the video data 310 is divided twice from a maximum coding unit having a long axis size of 64, and the depth is deepened by two layers, so that the long axis size is 32, 16. Up to coding units may be included.
  • the coding unit 335 of the video data 330 is divided once from coding units having a long axis size of 16, and the depth is deepened by one layer to increase the long axis size to 8. Up to coding units may be included.
  • the coding unit 325 of the video data 320 is divided three times from the largest coding unit having a long axis size of 64, and the depth is three layers deep, so that the long axis size is 32, 16. , Up to 8 coding units may be included. As the depth increases, the expressive power of the detailed information may be improved.
  • FIG. 10 is a block diagram of an image encoder based on coding units, according to an embodiment of the present invention.
  • the image encoder 400 includes operations performed by the encoding unit determiner 120 of the video encoding apparatus 100 to encode image data. That is, the intra predictor 410 performs intra prediction on the coding unit of the intra mode among the current frame 405, and the motion estimator 420 and the motion compensator 425 are the current frame 405 of the inter mode. And the inter frame estimation and the motion compensation using the reference frame 495.
  • Data output from the intra predictor 410, the motion estimator 420, and the motion compensator 425 is output as a quantized transform coefficient through the transform unit 430 and the quantization unit 440.
  • the quantized transform coefficients are restored to the data of the spatial domain through the inverse quantizer 460 and the inverse transformer 470, and the recovered data of the spatial domain is passed through the deblocking block 480 and the loop filtering unit 490. Processed and output to the reference frame 495.
  • the quantized transform coefficients may be output to the bitstream 455 via the entropy encoder 450.
  • the intra predictor 410, the motion estimator 420, the motion compensator 425, and the transform unit may be components of the image encoder 400.
  • quantizer 440, entropy encoder 450, inverse quantizer 460, inverse transform unit 470, deblocking unit 480, and loop filtering unit 490 are all maximum for each largest coding unit. In consideration of the depth, a task based on each coding unit among the coding units having a tree structure should be performed.
  • the intra predictor 410, the motion estimator 420, and the motion compensator 425 partition each coding unit among coding units having a tree structure in consideration of the maximum size and the maximum depth of the current maximum coding unit.
  • a prediction mode, and the transform unit 430 should determine the size of a transform unit in each coding unit among the coding units having a tree structure.
  • the motion compensator 425 may determine the L0 list and the L1 list to determine a reference image of the B slice type capable of bidirectional prediction. When it is determined that the B slice type image has only a temporally preceding reference image, the motion compensator 425 determines the reference order of the first reference list and the second reference list in the same manner, and thus, the first reference list and the first reference list are the same. 2 A reconstruction image may be generated by performing compensation by referring to the reference images indicated by the reference list in the same order.
  • FIG. 11 is a block diagram of an image decoder based on coding units, according to an embodiment of the present invention.
  • the bitstream 505 is parsed through the parsing unit 510, and the encoded image data to be decoded and information about encoding necessary for decoding are parsed.
  • the encoded image data is output as inverse quantized data through the entropy decoding unit 520 and the inverse quantization unit 530, and the image data of the spatial domain is restored through the inverse transformation unit 540.
  • the intra prediction unit 550 performs intra prediction on the coding unit of the intra mode, and the motion compensator 560 uses the reference frame 585 together to apply the coding unit of the inter mode. Perform motion compensation for the
  • Data in the spatial domain that has passed through the intra predictor 550 and the motion compensator 560 may be post-processed through the deblocking unit 570 and the loop filtering unit 580 to be output to the reconstructed frame 595.
  • the post-processed data through the deblocking unit 570 and the loop filtering unit 580 may be output as the reference frame 585.
  • step-by-step operations after the parser 510 of the image decoder 500 may be performed.
  • the parser 510, the entropy decoder 520, the inverse quantizer 530, and the inverse transform unit 540 which are components of the image decoder 500, may be used.
  • the intra predictor 550, the motion compensator 560, the deblocking unit 570, and the loop filtering unit 580 must all perform operations based on coding units having a tree structure for each maximum coding unit. do.
  • the intra predictor 550 and the motion compensator 560 determine partitions and prediction modes for each coding unit having a tree structure, and the inverse transform unit 540 must determine the size of the transform unit for each coding unit. .
  • the motion compensator 560 may determine an L0 list and an L1 list to determine a reference image of a B slice type capable of bidirectional prediction. If it is determined that the B slice type image has only a temporally preceded reference image, the motion compensator 560 determines the reference order of the first reference list and the second reference list in the same manner, and thus the first reference list and the first reference list. 2 A reconstruction image may be generated by performing compensation by referring to the reference images indicated by the reference list in the same order.
  • FIG. 12 is a diagram of deeper coding units according to depths, and partitions, according to an embodiment of the present invention.
  • the video encoding apparatus 100 according to an embodiment and the video decoding apparatus 200 according to an embodiment use hierarchical coding units to consider image characteristics.
  • the maximum height, width, and maximum depth of the coding unit may be adaptively determined according to the characteristics of the image, and may be variously set according to a user's request. According to the maximum size of the preset coding unit, the size of the coding unit for each depth may be determined.
  • the hierarchical structure 600 of a coding unit illustrates a case in which a maximum height and a width of a coding unit are 64 and a maximum depth is four.
  • the maximum depth indicates the total number of divisions from the maximum coding unit to the minimum coding unit. Since the depth deepens along the vertical axis of the hierarchical structure 600 of the coding unit according to an embodiment, the height and the width of the coding unit for each depth are divided.
  • a prediction unit and a partition on which the prediction encoding of each depth-based coding unit is shown along the horizontal axis of the hierarchical structure 600 of the coding unit are illustrated.
  • the coding unit 610 has a depth of 0 as the largest coding unit of the hierarchical structure 600 of the coding unit, and the size, ie, the height and width, of the coding unit is 64x64.
  • the depth along the vertical axis is deeper, the coding unit 620 of depth 1 having a size of 32x32, the coding unit 630 of depth 2 having a size of 16x16, the coding unit 640 of depth 3 having a size of 8x8, and the depth 4 of depth 4 having a size of 4x4.
  • the coding unit 650 exists.
  • a coding unit 650 having a depth of 4 having a size of 4 ⁇ 4 is a minimum coding unit.
  • Prediction units and partitions of the coding unit are arranged along the horizontal axis for each depth. That is, if the coding unit 610 of size 64x64 having a depth of zero is a prediction unit, the prediction unit may include a partition 610 of size 64x64, partitions 612 of size 64x32, and size included in the coding unit 610 of size 64x64. 32x64 partitions 614, 32x32 partitions 616.
  • the prediction unit of the coding unit 620 having a size of 32x32 having a depth of 1 includes a partition 620 of size 32x32, partitions 622 of size 32x16 and a partition of size 16x32 included in the coding unit 620 of size 32x32. 624, partitions 626 of size 16x16.
  • the prediction unit of the coding unit 630 of size 16x16 having a depth of 2 includes a partition 630 of size 16x16, partitions 632 of size 16x8, and a partition of size 8x16 included in the coding unit 630 of size 16x16. 634, partitions 636 of size 8x8.
  • the prediction unit of the coding unit 640 of size 8x8 having a depth of 3 includes a partition 640 of size 8x8, partitions 642 of size 8x4 and a partition of size 4x8 included in the coding unit 640 of size 8x8. 644, partitions 646 of size 4x4.
  • the coding unit 650 of size 4x4 having a depth of 4 is the minimum coding unit and the coding unit of the lowest depth, and the corresponding prediction unit may also be set only as the partition 650 having a size of 4x4.
  • the coding unit determiner 120 of the video encoding apparatus 100 may determine a coding depth of the maximum coding unit 610.
  • the number of deeper coding units according to depths for including data having the same range and size increases as the depth increases. For example, four coding units of depth 2 are required for data included in one coding unit of depth 1. Therefore, in order to compare the encoding results of the same data for each depth, each of the coding units having one depth 1 and four coding units having four depths 2 should be encoded.
  • encoding may be performed for each prediction unit of a coding unit according to depths along a horizontal axis of the hierarchical structure 600 of the coding unit, and a representative coding error, which is the smallest coding error at a corresponding depth, may be selected. .
  • a depth deeper along the vertical axis of the hierarchical structure 600 of the coding unit the encoding may be performed for each depth, and the minimum coding error may be searched by comparing the representative coding error for each depth.
  • the depth and the partition in which the minimum coding error occurs in the maximum coding unit 610 may be selected as the coding depth and the partition type of the maximum coding unit 610.
  • FIG. 13 illustrates a relationship between a coding unit and transformation units, according to an embodiment of the present invention.
  • the video encoding apparatus 100 encodes or decodes an image in coding units having a size smaller than or equal to the maximum coding unit for each maximum coding unit.
  • the size of a transformation unit for transformation in the encoding process may be selected based on a data unit that is not larger than each coding unit.
  • the 32x32 size conversion unit 720 is The conversion can be performed.
  • the data of the 64x64 coding unit 710 is transformed into 32x32, 16x16, 8x8, and 4x4 transform units of 64x64 size or less, and then encoded, and the transform unit having the least error with the original is selected. Can be.
  • FIG. 14 illustrates encoding information according to depths, according to an embodiment of the present invention.
  • the output unit 130 of the video encoding apparatus 100 is information about an encoding mode, and information about a partition type 800 and information 810 about a prediction mode for each coding unit of each coded depth.
  • the information 820 about the size of the transformation unit may be encoded and transmitted.
  • the information about the partition type 800 is a data unit for predictive encoding of the current coding unit and indicates information about a partition type in which the prediction unit of the current coding unit is divided.
  • the current coding unit CU_0 of size 2Nx2N may be any one of a partition 802 of size 2Nx2N, a partition 804 of size 2NxN, a partition 806 of size Nx2N, and a partition 808 of size NxN. It can be divided and used.
  • the information 800 about the partition type of the current coding unit represents one of a partition 802 of size 2Nx2N, a partition 804 of size 2NxN, a partition 806 of size Nx2N, and a partition 808 of size NxN. It is set to.
  • Information 810 relating to the prediction mode indicates the prediction mode of each partition. For example, through the information 810 about the prediction mode, whether the partition indicated by the information 800 about the partition type is performed in one of the intra mode 812, the inter mode 814, and the skip mode 816 is performed. Whether or not can be set.
  • the information about the transform unit size 820 indicates whether to transform the current coding unit based on the transform unit.
  • the transform unit may be one of a first intra transform unit size 822, a second intra transform unit size 824, a first inter transform unit size 826, and a second intra transform unit size 828. have.
  • the image data and encoding information extractor 210 of the video decoding apparatus 200 may include information about a partition type 800, information 810 about a prediction mode, and transformation for each depth-based coding unit. Information 820 about the unit size may be extracted and used for decoding.
  • 15 is a diagram of deeper coding units according to depths, according to an embodiment of the present invention.
  • Segmentation information may be used to indicate a change in depth.
  • the split information indicates whether a coding unit of a current depth is split into coding units of a lower depth.
  • the prediction unit 910 for predictive encoding of the coding unit 900 having depth 0 and 2N_0x2N_0 size includes a partition type 912 having a size of 2N_0x2N_0, a partition type 914 having a size of 2N_0xN_0, a partition type 916 having a size of N_0x2N_0, and a N_0xN_0 It may include a partition type 918 of size. Although only partitions 912, 914, 916, and 918 in which the prediction unit is divided by a symmetrical ratio are illustrated, as described above, the partition type is not limited thereto, and asymmetric partitions, arbitrary partitions, geometric partitions, and the like. It may include.
  • prediction coding For each partition type, prediction coding must be performed repeatedly for one 2N_0x2N_0 partition, two 2N_0xN_0 partitions, two N_0x2N_0 partitions, and four N_0xN_0 partitions.
  • prediction encoding For partitions having a size 2N_0x2N_0, a size N_0x2N_0, a size 2N_0xN_0, and a size N_0xN_0, prediction encoding may be performed in an intra mode and an inter mode. The skip mode may be performed only for prediction encoding on partitions having a size of 2N_0x2N_0.
  • the depth 0 is changed to 1 and split (920), and the encoding is repeatedly performed on the depth 2 and the coding units 930 of the partition type having the size N_0xN_0.
  • the depth 1 is changed to the depth 2 and divided (950), and repeatedly for the depth 2 and the coding units 960 of the size N_2xN_2.
  • the encoding may be performed to search for a minimum encoding error.
  • depth-based coding units may be set until depth d-1, and split information may be set up to depth d-2. That is, when encoding is performed from the depth d-2 to the depth d-1 to the depth d-1, the prediction encoding of the coding unit 980 of the depth d-1 and the size 2N_ (d-1) x2N_ (d-1)
  • the prediction unit for 990 is a partition type 992 of size 2N_ (d-1) x2N_ (d-1), partition type 994 of size 2N_ (d-1) xN_ (d-1), size A partition type 996 of N_ (d-1) x2N_ (d-1) and a partition type 998 of size N_ (d-1) xN_ (d-1) may be included.
  • one partition 2N_ (d-1) x2N_ (d-1), two partitions 2N_ (d-1) xN_ (d-1), two sizes N_ (d-1) x2N_ Prediction encoding is repeatedly performed for each partition of (d-1) and four partitions of size N_ (d-1) xN_ (d-1), so that a partition type having a minimum encoding error may be searched. .
  • the coding unit CU_ (d-1) of the depth d-1 is no longer
  • the encoding depth of the current maximum coding unit 900 may be determined as the depth d-1, and the partition type may be determined as N_ (d-1) xN_ (d-1) without going through a division process into lower depths.
  • split information is not set for the coding unit 952 having the depth d-1.
  • the data unit 999 may be referred to as a 'minimum unit' for the current maximum coding unit.
  • the minimum unit may be a square data unit having a size obtained by dividing the minimum coding unit, which is the lowest coding depth, into four divisions.
  • the video encoding apparatus 100 compares the encoding errors for each depth of the coding unit 900, selects a depth at which the smallest encoding error occurs, and determines a coding depth.
  • the partition type and the prediction mode may be set to the encoding mode of the coded depth.
  • the depth with the smallest error can be determined by comparing the minimum coding errors for all depths of depths 0, 1, ..., d-1, d, and can be determined as the coding depth.
  • the coded depth, the partition type of the prediction unit, and the prediction mode may be encoded and transmitted as information about an encoding mode.
  • the coding unit since the coding unit must be split from the depth 0 to the coded depth, only the split information of the coded depth is set to '0', and the split information for each depth except the coded depth should be set to '1'.
  • the image data and encoding information extractor 220 of the video decoding apparatus 200 may extract information about a coding depth and a prediction unit for the coding unit 900 and use the same to decode the coding unit 912. Can be.
  • the video decoding apparatus 200 may identify a depth having split information of '0' as a coding depth using split information for each depth, and may use the decoding depth by using information about an encoding mode for a corresponding depth. have.
  • 16, 17, and 18 illustrate a relationship between coding units, prediction units, and transformation units, according to an embodiment of the present invention.
  • the coding units 1010 are coding units according to coding depths determined by the video encoding apparatus 100 according to an embodiment with respect to the maximum coding unit.
  • the prediction unit 1060 is partitions of prediction units of each coding depth of each coding depth among the coding units 1010, and the transformation unit 1070 is transformation units of each coding depth for each coding depth.
  • the depth-based coding units 1010 have a depth of 0
  • the coding units 1012 and 1054 have a depth of 1
  • the coding units 1014, 1016, 1018, 1028, 1050, and 1052 have depths.
  • coding units 1020, 1022, 1024, 1026, 1030, 1032, and 1048 have a depth of three
  • coding units 1040, 1042, 1044, and 1046 have a depth of four.
  • partitions 1014, 1016, 1022, 1032, 1048, 1050, 1052, and 1054 of the prediction units 1060 are obtained by splitting coding units. That is, partitions 1014, 1022, 1050, and 1054 are partition types of 2NxN, partitions 1016, 1048, and 1052 are partition types of Nx2N, and partitions 1032 are partition types of NxN. Prediction units and partitions of the coding units 1010 according to depths are smaller than or equal to each coding unit.
  • the image data of the part 1052 of the transformation units 1070 is transformed or inversely transformed into a data unit having a smaller size than the coding unit.
  • the transformation units 1014, 1016, 1022, 1032, 1048, 1050, 1052, and 1054 are data units having different sizes or shapes when compared to corresponding prediction units and partitions among the prediction units 1060. That is, the video encoding apparatus 100 according to an embodiment and the video decoding apparatus 200 according to an embodiment may be intra prediction / motion estimation / motion compensation operations and transform / inverse transform operations for the same coding unit. Each can be performed on a separate data unit.
  • coding is performed recursively for each coding unit having a hierarchical structure for each largest coding unit to determine an optimal coding unit.
  • coding units having a recursive tree structure may be configured.
  • the encoding information may include split information about a coding unit, partition type information, prediction mode information, and transformation unit size information. Table 1 below shows an example that can be set in the video encoding apparatus 100 and the video decoding apparatus 200 according to an embodiment.
  • the output unit 130 of the video encoding apparatus 100 outputs encoding information about coding units having a tree structure
  • the encoding information extraction unit of the video decoding apparatus 200 according to an embodiment 220 may extract encoding information about coding units having a tree structure from the received bitstream.
  • the split information indicates whether the current coding unit is split into coding units of a lower depth. If the split information of the current depth d is 0, partition type information, prediction mode, and transform unit size information are defined for the coded depth because the depth in which the current coding unit is no longer divided into the lower coding units is a coded depth. Can be. If it is to be further split by the split information, encoding should be performed independently for each coding unit of the divided four lower depths.
  • the prediction mode may be represented by one of an intra mode, an inter mode, and a skip mode.
  • Intra mode and inter mode can be defined in all partition types, and skip mode can be defined only in partition type 2Nx2N.
  • the partition type information indicates the symmetric partition types 2Nx2N, 2NxN, Nx2N, and NxN, in which the height or width of the prediction unit is divided by the symmetric ratio, and the asymmetric partition types 2NxnU, 2NxnD, nLx2N, nRx2N, which are divided by the asymmetric ratio.
  • the asymmetric partition types 2NxnU and 2NxnD are divided into heights 1: 3 and 3: 1, respectively, and the asymmetric partition types nLx2N and nRx2N are divided into 1: 3 and 3: 1 widths, respectively.
  • the conversion unit size may be set to two kinds of sizes in the intra mode and two kinds of sizes in the inter mode. That is, if the transformation unit split information is 0, the size of the transformation unit is set to the size 2Nx2N of the current coding unit. If the transform unit split information is 1, a transform unit having a size obtained by dividing the current coding unit may be set. In addition, if the partition type for the current coding unit having a size of 2Nx2N is a symmetric partition type, the size of the transform unit may be set to NxN, and if the asymmetric partition type is N / 2xN / 2.
  • Encoding information of coding units having a tree structure may be allocated to at least one of a coding unit, a prediction unit, and a minimum unit unit of a coding depth.
  • the coding unit of the coding depth may include at least one prediction unit and at least one minimum unit having the same encoding information.
  • the encoding information held by each adjacent data unit is checked, it may be determined whether the adjacent data units are included in the coding unit having the same coding depth.
  • the coding unit of the corresponding coding depth may be identified by using the encoding information held by the data unit, the distribution of the coded depths within the maximum coding unit may be inferred.
  • the encoding information of the data unit in the depth-specific coding unit adjacent to the current coding unit may be directly referred to and used.
  • the prediction coding when the prediction coding is performed by referring to the neighboring coding unit, the data adjacent to the current coding unit in the coding unit according to depths is encoded by using the encoding information of the adjacent coding units according to depths.
  • the neighboring coding unit may be referred to by searching.
  • FIG. 19 illustrates a relationship between a coding unit, a prediction unit, and a transformation unit, according to encoding mode information of Table 1.
  • the maximum coding unit 1300 includes coding units 1302, 1304, 1306, 1312, 1314, 1316, and 1318 of a coded depth. Since one coding unit 1318 is a coding unit of a coded depth, split information may be set to zero.
  • the partition type information of the coding unit 1318 having a size of 2Nx2N is partition type 2Nx2N 1322, 2NxN 1324, Nx2N 1326, NxN 1328, 2NxnU 1332, 2NxnD 1334, nLx2N (1336). And nRx2N 1338.
  • the transform unit split information (TU size flag) is a type of transform index, and a size of a transform unit corresponding to the transform index may be changed according to a prediction unit type or a partition type of a coding unit.
  • the partition type information is set to one of the symmetric partition types 2Nx2N 1322, 2NxN 1324, Nx2N 1326, and NxN 1328
  • the conversion unit partition information is 0, a conversion unit of size 2Nx2N ( 1342 is set, and if the transform unit split information is 1, a transform unit 1344 of size NxN may be set.
  • the partition type information is set to one of the asymmetric partition types 2NxnU (1332), 2NxnD (1334), nLx2N (1336), and nRx2N (1338), if the conversion unit partition information (TU size flag) is 0, a conversion unit of size 2Nx2N ( 1352 is set, and if the transform unit split information is 1, a transform unit 1354 of size N / 2 ⁇ N / 2 may be set.
  • the conversion unit splitting information (TU size flag) described above with reference to FIG. 19 is a flag having a value of 0 or 1, but the conversion unit splitting information according to an embodiment is not limited to a 1-bit flag and is set to 0 according to a setting. , 1, 2, 3., etc., and may be divided hierarchically.
  • the transformation unit partition information may be used as an embodiment of the transformation index.
  • the size of the transformation unit actually used may be expressed.
  • the video encoding apparatus 100 may encode maximum transform unit size information, minimum transform unit size information, and maximum transform unit split information.
  • the encoded maximum transform unit size information, minimum transform unit size information, and maximum transform unit split information may be inserted into the SPS.
  • the video decoding apparatus 200 may use the maximum transform unit size information, the minimum transform unit size information, and the maximum transform unit split information to use for video decoding.
  • the maximum transform unit split information is defined as 'MaxTransformSizeIndex'
  • the minimum transform unit size is 'MinTransformSize'
  • the transform unit split information is 0,
  • the minimum transform unit possible in the current coding unit is defined as 'RootTuSize'.
  • the size 'CurrMinTuSize' can be defined as in relation (1) below.
  • 'RootTuSize' which is a transform unit size when the transform unit split information is 0, may indicate a maximum transform unit size that can be adopted in the system. That is, according to relation (1), 'RootTuSize / (2 ⁇ MaxTransformSizeIndex)' is a transformation obtained by dividing 'RootTuSize', which is the size of the transformation unit when the transformation unit division information is 0, by the number of times corresponding to the maximum transformation unit division information. Since the unit size is 'MinTransformSize' is the minimum transform unit size, a smaller value among them may be the minimum transform unit size 'CurrMinTuSize' possible in the current coding unit.
  • the maximum transform unit size RootTuSize may vary depending on a prediction mode.
  • RootTuSize may be determined according to the following relation (2).
  • 'MaxTransformSize' represents the maximum transform unit size
  • 'PUSize' represents the current prediction unit size.
  • RootTuSize min (MaxTransformSize, PUSize) ......... (2)
  • 'RootTuSize' which is a transform unit size when the transform unit split information is 0, may be set to a smaller value among the maximum transform unit size and the current prediction unit size.
  • 'RootTuSize' may be determined according to Equation (3) below.
  • 'PartitionSize' represents the size of the current partition unit.
  • RootTuSize min (MaxTransformSize, PartitionSize) ........... (3)
  • the conversion unit size 'RootTuSize' when the conversion unit split information is 0 may be set to a smaller value among the maximum conversion unit size and the current partition unit size.
  • the current maximum conversion unit size 'RootTuSize' according to an embodiment that changes according to the prediction mode of the partition unit is only an embodiment, and a factor determining the current maximum conversion unit size is not limited thereto.
  • FIG. 20 is a flowchart of a video encoding method involving video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • the current image is split into at least one maximum coding unit.
  • a maximum depth indicating the total number of possible divisions may be set in advance.
  • the depth of the at least one partitioned region in which the region of the largest coding unit is divided for each depth is encoded.
  • the depth at which the final encoding result is output for each of the at least one divided region is determined, and the coding unit according to the tree structure is determined.
  • the maximum coding unit is spatially divided whenever the depth is deep, and is divided into coding units of a lower depth.
  • Each coding unit may be divided into coding units having a lower depth while being spatially divided independently of other adjacent coding units. Encoding must be repeatedly performed for each coding unit for each depth.
  • a prediction unit, a partition, and a transformation unit having the smallest encoding error should be determined.
  • coding errors of prediction errors may be measured and compared.
  • a prediction unit and a partition for prediction may be determined.
  • the prediction unit and the partition according to an embodiment may be determined as a data unit that minimizes an error according to the prediction of the coding unit.
  • a partition may be determined and a reference image for the partition may be determined.
  • a reference list including a reference picture and a reference order may be determined.
  • Each of the first reference list and the second reference list may include reference pictures for predicting a predetermined direction and reference order of each reference picture.
  • the reference order of the first reference list and the second reference list may be determined in the same manner.
  • Reference images and reference sequences indicated by the first reference list and the second reference list may be configured to be the same.
  • a reconstruction area of a partition may be generated based on the reference pictures indicated by the first reference list and the second reference list and the reference order of each reference picture.
  • Prediction encoding using a reference list for bidirectional prediction or unidirectional prediction may be performed for each coding unit, and a partition type and a prediction mode for minimizing encoding error may be determined. Therefore, for each largest coding unit, a coding unit, a partition type, and a prediction mode of a tree structure in which an encoding result is output may be determined.
  • image data which is a final encoding result of at least one divided region, for each maximum coding unit, and information about an encoding depth and an encoding mode are output.
  • the information about the encoding mode may include information about the coding depth or split information, partition type information of the prediction unit, prediction mode information, transformation unit hierarchy information, and the like.
  • reference information, prediction mode information, etc. determined by bidirectional prediction and unidirectional prediction according to an embodiment may be encoded.
  • the reference information may include an index indicating the reference picture, motion information, and the like.
  • Prediction mode information according to an embodiment, unidirectional prediction information indicating whether a first reference list and a second reference list of a B slice type image are identical, and slice type information including a fourth slice type, etc. It may include.
  • the information about the encoded encoding mode may be transmitted to the decoding end together with the encoded image data.
  • 21 is a flowchart of a video decoding method involving video prediction based on coding units having a tree structure, according to an embodiment of the present invention.
  • step 1310 a bitstream for the encoded video is received and parsed.
  • image data of the current picture allocated to the largest coding unit having the maximum size, and information about a coded depth and an encoding mode for each largest coding unit are extracted from the parsed bitstream.
  • the coded depth of each largest coding unit is a depth selected to have the smallest coding error for each largest coding unit in the encoding process of the current picture.
  • image data is encoded based on at least one data unit obtained by hierarchically dividing the maximum coding unit by depth.
  • the maximum coding unit may be split into coding units having a tree structure.
  • Coding units according to coding units having a tree structure are coding units of coding depths, respectively. Accordingly, the efficiency of encoding and decoding of an image can be improved by decoding the respective image data after determining the coding depth of each coding unit.
  • reference information and prediction mode information for bidirectional prediction and unidirectional prediction may be extracted according to an embodiment.
  • reference information for bidirectional prediction and unidirectional prediction an index indicating a reference image, motion information, and the like may be extracted.
  • prediction mode information for bidirectional prediction and unidirectional prediction a slice including unidirectional prediction information indicating whether a first reference list and a second reference list of a B slice type image are identical and a fourth slice type Type information or the like may be extracted.
  • image data of each maximum coding unit is decoded based on the information about the coded depth and the encoding mode for each maximum coding unit. While decoding is performed on the current coding unit based on the information about the coded depth and the encoding mode, a prediction unit or a partition is determined based on the partition type information, and a prediction mode is determined for each partition based on the prediction mode information. Predictive compensation may be performed for each.
  • a reference list including a reference picture and a reference order may be determined.
  • the reconstructed region of the partition may be created by referring to the reference images indicated by the first reference list and the second reference list and the corresponding reference order.
  • the reference order of the first reference list and the second reference list may be determined in the same manner.
  • Reference images and reference sequences indicated by the first reference list and the second reference list may be configured to be the same.
  • image data of a spatial region may be reconstructed while decoding is performed for each maximum coding unit, and a picture and a video, which is a picture sequence, may be reconstructed.
  • the reconstructed video can be played back by a playback device, stored in a storage medium, or transmitted over a network.
  • the above-described embodiments of the present invention can be written as a program that can be executed in a computer, and can be implemented in a general-purpose digital computer that operates the program using a computer-readable recording medium.
  • the computer-readable recording medium may include a storage medium such as a magnetic storage medium (eg, a ROM, a floppy disk, a hard disk, etc.) and an optical reading medium (eg, a CD-ROM, a DVD, etc.).

Landscapes

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

Abstract

본 발명은, 비디오 예측과 비디오 예측을 수반하는 비디오 부호화 및 복호화에 관한 것이다. 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하고, 참조정보 및 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하며, 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 비디오 예측 방법이 개시된다.

Description

양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
본 발명은, 비디오 예측과 비디오 예측을 수반하는 비디오 부호화 및 복호화에 관한 것이다.
고해상도 또는 고화질 비디오 컨텐트를 재생, 저장할 수 있는 하드웨어의 개발 및 보급에 따라, 고해상도 또는 고화질 비디오 컨텐트를 효과적으로 부호화하거나 복호화하는 비디오 코덱의 필요성이 증대하고 있다. 기존의 비디오 코덱에 따르면, 비디오는 소정 크기의 매크로블록에 기반하여 제한된 부호화 방식에 따라 부호화되고 있다.
비디오 코덱은, 비디오의 영상들이 시간적 또는 공간적으로 서로 상관성이 높다는 특징을 이용하여 예측 기법을 이용하여 데이터량을 저감한다. 예측 기법에 따르면, 주변 영상을 이용하여 현재영상을 예측하기 위하여, 영상 간의 시간적 거리 또는 공간적 거리, 예측오차 등을 이용하여 영상정보가 기록된다.
본 발명은, 양방향 예측 또는 단일방향 예측이 가능한 비디오 예측 기법과, 효율적인 양방향 예측 또는 단일방향 예측을 수반하는 비디오 부호화 및 복호화 방법 및 그 장치를 제공한다.
본 발명의 일 실시예에 따른 비디오 예측 방법은, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 단계; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 단계; 및 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 단계를 포함한다.
양방향 예측 또는 단일방향 예측이 가능한 비디오 예측 모드에 따라 참조리스트를 결정함으로써, 예측 효율이 가장 높은 참조영상의 순서에 따라 예측이 수행될 수 있다.
도 1 은 일 실시예에 따른 비디오 예측 장치의 블록도를 도시한다.
도 2 는 일 실시예에 따른 비디오 예측부호화 장치의 블록도를 도시한다.
도 3 는 일 실시예에 따른 비디오 예측복호화 장치의 블록도를 도시한다.
도 4 은 일 실시예에 따른 비디오 예측 방법의 흐름도를 도시한다.
도 5 는 일 실시예에 따른 비디오 예측부호화 방법의 흐름도를 도시한다.
도 6 는 일 실시예에 따른 비디오 예측복호화 방법의 흐름도를 도시한다.
도 7 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 장치의 블록도를 도시한다.
도 8 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 장치의 블록도를 도시한다.
도 9 은 본 발명의 일 실시예에 따른 부호화 단위의 개념을 도시한다.
도 10 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.
도 11 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.
도 12 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 파티션을 도시한다.
도 13 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다.
도 14 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.
도 15 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다.
도 16, 17 및 18는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
도 19 은 표 1의 부호화 모드 정보에 따른 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
도 20 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 방법의 흐름도를 도시한다.
도 21 은 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 방법의 흐름도를 도시한다.
본 발명의 일 실시예에 따른 비디오 예측 방법은, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 단계; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 단계; 및 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 단계를 포함한다.
일 실시예에 따른 상기 비디오 예측 방법은, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 제1 방향 예측 및 제2 방향 예측 중 적어도 하나를 위한 참조영상을 제1 참조순서 및 제2 참조순서로 참조하여 상기 복원영상을 생성하는 단계를 더 포함할 수 있다.
일 실시예에 따른 상기 제1 참조리스트와 제2 참조리스트 결정 단계는, B 슬라이스 타입인 현재영상의 예측을 위한 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 상기 제1 참조리스트의 참조순서와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함할 수 있다
일 실시예에 따른 상기 복원영상 생성 단계는, B 슬라이스 타입인 현재영상의 상기 제2 참조리스트가 상기 참조영상을 포함하지 않는 경우, 상기 제1 참조리스트와 동일한 참조정보 및 참조순서를 포함하도록 상기 제2 참조리스트를 결정하여, 상기 제1 참조리스트 및 상기 제2 참조리스트가 가리키는 영상을 참조하여 상기 복원영상을 생성하는 단계를 포함할 수 있다.
일 실시예에 따른 상기 제1 참조리스트와 제2 참조리스트 결정 단계는, B 슬라이스 타입인 현재영상의 참조영상이 단일 방향 예측을 위한 참조영상들만을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 참조영상의 개수가 서로 동일하고, 상기 제1 참조리스트에 포함되는 참조정보와 상기 제2 참조리스트에 포함되는 참조정보가 가리키는 영상이 서로 동일하고, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 서로 동일하게 결정하는 단계를 포함할 수 있다.
본 발명의 일 실시예에 따른 비디오 예측부호화 방법은, 영상에 대해 예측을 수행하여, 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 단계; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 단계; 및 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 단계; 및 상기 참조정보 및 예측오차를 부호화하는 단계를 포함한다
일 실시예에 따른 상기 비디오 예측부호화 방법은, B 슬라이스 타입인 현재영상을 위해 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 상기 제1 참조리스트의 참조순서와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함할 수 있다.
일 실시예에 따른 상기 비디오 예측부호화 방법은, B 슬라이스 타입인 영상의 참조영상이 단일 방향 예측을 위한 참조영상들을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 부호화하는 단계를 포함할 수 있다. 일 실시예에 따른 현재 슬라이스를 위한 상기 단일방향 예측 정보는, 슬라이스, 시퀀스, 픽처 중 적어도 하나의 영상 단위마다 부호화될 수 있다.
일 실시예에 따른 상기 비디오 예측부호화 방법은, I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입에 추가적으로, 상기 현재영상을 위해 결정된 참조영상이 단일방향 예측을 위한 참조영상들을 포함하는 경우에는 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서가 동일하게 설정되는 예측 모드에 따라 예측부호화되는 신규 슬라이스 타입을 포함하는 슬라이스 타입 정보를 부호화하는 단계를 포함할 수 있다.
본 발명의 일 실시예에 따른 비디오 예측복호화 방법은, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 수신하는 단계; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 단계; 및 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 단계를 포함한다.
일 실시예에 따른 상기 비디오 예측 복호화 방법은, B 슬라이스 타입인 현재영상을 위해 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 상기 제1 참조리스트의 참조순서와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함한다.
일 실시예에 따른 상기 비디오 예측 복호화 방법은, B 슬라이스 타입인 영상의 예측을 위한 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 수신하는 단계; 및 상기 단일방향예측 정보에 기초하여, 상기 B 슬라이스 타입인 현재영상의 예측을 위한 참조영상이 단일 방향 예측을 위한 참조영상들을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함할 수 있다.
일 실시예에 따른 상기 비디오 예측 복호화 방법은, 현재 슬라이스를 위한 상기 단일방향 예측 정보를, 슬라이스, 시퀀스, 픽처 중 적어도 하나의 영상 단위마다 수신하는 단계; 및 상기 슬라이스, 시퀀스, 픽처 중 적어도 하나의 영상 단위마다 상기 단일방향예측 정보에 기초하여, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함할 수 있다.
일 실시예에 따른 상기 비디오 예측 복호화 방법은, I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입에 추가적으로, 상기 현재영상을 위해 결정된 참조영상이 단일방향 예측을 위한 참조영상들만을 포함하는 여부에 기초하여, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 결정하는 신규 슬라이스 타입을 포함하는 슬라이스 타입 정보를 수신하는 단계; 및 상기 슬라이스 타입 정보에 기초하여, 상기 신규 슬라이스 타입인 현재영상의 예측을 위한 참조영상이 단일 방향 예측을 위한 참조영상들을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함할 수 있다.
본 발명의 일 실시예에 따른 비디오 예측 장치는, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 참조정보 결정부; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 참조리스트 결정부; 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 복원영상 생성부; 및 상기 참조정보 결정부, 상기 참조리스트 결정부 및 상기 복원영상 생성부의 동작들을 제어하는 프로세서를 포함한다.
본 발명의 일 실시예에 따른 비디오 예측부호화 장치는, 영상에 대해 예측을 수행하여, 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 예측부; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하고, 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 복원영상 생성부; 상기 결정된 참조정보 및 예측오차를 부호화하는 예측부호화부; 및 상기 예측부, 상기 참조리스트 결정부, 상기 복원영상 생성부 및 상기 예측부호화부의 동작들을 제어하는 프로세서를 포함한다.
본 발명의 일 실시예에 따른 비디오 예측복호화 장치는, 수신된 비트스트림을 파싱하여 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보 및 예측오차를 추출하는 수신추출부; 상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하고, 상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여, 상기 예측오차를 이용한 보상을 통해 상기 복원영상을 생성하는 복원영상 생성부; 및 상기 수신추출부, 상기 참조리스트 결정부 및 상기 복원영상 생성부의 동작들을 제어하는 프로세서를 포함한다.
본 발명은, 일 실시예에 따른 비디오 예측 방법을 전산적으로 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록매체를 포함한다.
본 발명은, 일 실시예에 따른 비디오 예측부호화 방법을 전산적으로 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록매체를 포함한다.
본 발명은, 일 실시예에 따른 비디오 예측복호화 방법을 전산적으로 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록매체를 포함한다.
이하 도 1 내지 도 6을 참조하여, 일 실시예에 따라 양방향 예측 및 단일방향 예측이 가능한 비디오의 예측 방법 및 그 장치, 비디오 예측부호화 방법 및 장치, 그리고 비디오 예측복호화 방법 및 그 장치가 개시된다.
도 1 은 일 실시예에 따른 비디오 예측 장치(10)의 블록도를 도시한다.
일 실시예에 따른 비디오 예측 장치(10)는, 참조정보 결정부(12), 참조리스트 결정부(14) 및 복원영상 생성부(16)를 포함한다.
일 실시예에 따른 비디오 예측 장치(10)는, 참조정보 결정부(12), 참조리스트 결정부(14) 및 복원영상 생성부(16)를 총괄적으로 제어하는 중앙 프로세서(미도시)를 포함할 수 있다. 또는, 참조정보 결정부(12), 참조리스트 결정부(14) 및 복원영상 생성부(16)가 각각의 자체 프로세서(미도시)에 의해 작동되며, 프로세서(미도시)들간이 상호 유기적으로 작동함에 따라 비디오 예측부호화 장치(10)가 전체적으로 작동될 수도 있다. 또는, 일 실시예에 따른 비디오 예측 장치(10)의 외부 프로세서(미도시)의 제어에 따라, 참조정보 결정부(12), 참조리스트 결정부(14) 및 복원영상 생성부(16)가 제어될 수도 있다.
일 실시예에 따른 비디오 예측 장치(10)는, 참조정보 결정부(12), 참조리스트 결정부(14) 및 복원영상 생성부(16)의 입출력 데이터가 저장되는 하나 이상의 데이터 저장부(미도시)를 포함할 수 있다. 비디오 예측 장치(10)는, 데이터 저장부(미도시)의 데이터 입출력을 관할하는 메모리 제어부(미도시)를 포함할 수도 있다.
일 실시예에 따른 비디오 예측 장치(10)는, 비디오의 영상들에 대해 예측을 수행한다. 비디오 예측 장치(10)는, 현재영상과 주변 영상 간의 시간적 거리 또는 공간적 거리, 예측오차 등을 나타내는 예측정보를 결정한다. 따라서, 영상의 전체 데이터 대신에 예측정보를 이용하여 영상정보가 기록될 수 있다.
예측부호화는, 시간적으로 전후 영상을 이용하여 현재영상을 예측하는 인터 예측과, 공간적으로 주변영상을 이용하여 현재영상을 예측하는 인트라 예측을 포함한다. 따라서, 인터 예측에서는 시간적으로 전후 영상이 참조영상으로 이용되고, 인트라 예측에서는 공간적으로 주변영상들이 참조영상으로 이용됨으로써, 현재영상이 예측될 수 있다. 참조영상은 픽처, 프레임, 블록 등의 영상 단위일 수 있다.
일 실시예에 따른 참조정보 결정부(12)는, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정한다. 참조정보 결정부(12)는, 현재영상의 이전영상 및 다음영상과 현재영상과의 유사도를 결정하여, 현재영상과 오차가 가장 적은 영상을 검출한다. 검출된 영상이 참조영상으로 결정되고, 참조영상을 가리키는 정보, 예를 들어 영상의 번호, 인덱스 등이 참조정보로 결정될 수 있다. 참조영상 중 참조블록을 나타내는 움직임정보 등도 참조정보로서 결정될 수 있다. 인트라 예측을 위해서는, 현재영상과 동일한 영상 내에서 현재영역과 인접하는 주변영역들 중에서 참조영상을 나타내는 인덱스가 참조정보로서 결정될 수도 있다.
참조정보 결정부(12)는, 현재영상과 참조영상 간의 오차인 예측오차를 결정할 수도 있다.
일 실시예에 따른 참조리스트 결정부(14)는, 참조정보 결정부(12)에서 결정된 참조정보와, 참조영상의 참조순서를 포함하는 참조리스트를 결정할 수 있다.
참조리스트는 제1 참조리스트 및 제2 참조리스트를 포함할 수 있다. 예를 들어, B 슬라이스 타입 영상의 예측을 위한 참조리스트는 리스트 0 예측(List 0 prediction)을 위한 L0 리스트, 리스트 1 예측(List 1 prediction)을 위한 L1 리스트를 포함할 수 있다. 제1 참조리스트 및 제2 참조리스트는 각각 하나 이상의 참조영상을 가리키는 인덱스와, 참조순서 정보를 포함할 수 있다.
예측부(12)에 의해 양 방향 예측을 위한 참조영상들이 결정되면, 참조리스트 결정부(14)는, 제1 방향 예측을 위한 참조영상과 제2 방향 예측을 위한 참조영상을 포함하는 제1 참조리스트 및 제2 참조리스트를 결정할 수 있다. 예를 들어 제1 방향 예측을 위한 참조영상은 제1 참조리스트에 포함되고, 제2 방향 예측을 위한 참조영상은 제2 참조리스트에 포함시킬 수 있다. 다만, 반드시 하나의 참조리스트는 한 방향 예측을 위한 참조 영상만을 포함하도록 한정되는 것만은 아니다.
일 실시예에 따른 참조리스트 결정부(14)는, 제1 참조리스트와 제2 참조리스트에 참조영상들의 참조순서를 결정할 수 있다. 예를 들어, 현재영상과 시간적으로 가까운 참조영상을 우선적으로 참조하도록 참조순서가 결정될 수 있다.
일 실시예에 따른 참조리스트 결정부(14)는, 현재영상의 예측을 위한 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 제1 참조리스트의 참조순서와 제2 참조리스트의 참조순서를 동일하게 결정할 수 있다.
예를 들어, 예측부(12)가 I, P, B 슬라이스 타입 중에서, B 슬라이스 타입인 현재영상의 참조영상을 결정한 결과, 참조영상이 현재영상보다 시간적으로 선행하는 영상들만 포함하는 경우에, 참조리스트 결정부(14)는, L0 리스트와 L1 리스트의 참조 순서를 동일하게 결정할 수 있다.
일 실시예에 따른 참조리스트 결정부(14)는 제1 참조리스트와 제2 참조리스트의 참조 순서를 동일하게 결정하기 위하여, 제1 참조리스트에 포함되는 참조영상의 개수와 제2 참조리스트에 포함되는 참조영상의 개수를 동일하게 하고, 제1 참조리스트에 포함되는 참조 인덱스가 가리키는 영상과 제2 참조리스트에 포함되는 참조 인덱스가 가리키는 영상이 동일하도록 결정할 수 있다.
일 실시예에 따른 복원영상 생성부(16)는, 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상을 해당 참조순서로 참조하여, 현재영상의 예측오차로부터 복원영상을 생성한다.
일 실시예에 따른 복원영상 생성부(16)는, 제2 참조리스트가 참조영상을 포함하지 않는 경우에, 제2 참조리스트가 제1 참조리스트와 동일한 참조정보 및 참조순서를 갖도록 제2 참조리스트를 변형할 수 있다. 이를 기초로 복원영상 생성부(16)는, 제1 참조리스트와 제2 참조리스트가 가리키는 동일한 영상을 동일한 순서로 참조하여 복원영상을 생성할 수 있다.
예를 들어, 예측부(12)가 B 슬라이스 타입인 현재영상을 위해 결정한 참조영상 중에서, L1 리스트에 포함될 참조영상이 없는 경우에, 복원영상 생성부(16)는, L0 리스트와 L1 리스트를 동일하게 구성하여, L0 리스트와 L1 리스트가 가리키는 동일한 영상을 동일한 참조순서로 참조하여 예측영상을 복원할 수 있다.
비디오 예측 기법은 영상의 전체 데이터 대신에 예측정보를 이용하여 영상을 표현할 수 있으므로, 참조정보 및 예측오차의 예측정보가 기록되거나 전송될 수 있으며, 외부로부터 획득된 예측정보를 이용하여 비디오 예측을 수행하여 영상이 복원될 수도 있다. 이하, 도 2 및 3을 참조하여 일 실시예에 따른 비디오 예측을 기초로 하는 비디오 예측부호화 장치(20) 및 비디오 예측복호화 장치(30)가 개시된다.
도 2 는 일 실시예에 따른 비디오 예측부호화 장치(20)의 블록도를 도시한다.
일 실시예에 따른 비디오 예측부호화 장치(20)는, 예측부(22), 복원영상 생성부(24) 및 예측부호화부(26)를 포함한다.
일 실시예에 따른 예측부(22)는, 영상에 대해 예측을 수행하여, 적어도 하나의 참조영상을 나타내는 참조정보를 결정한다. 예측부(22)는 현재영상에 대해 예측을 수행하여, 현재영상과 참조영상 간의 예측오차를 결정할 수 있다.
복원영상 생성부(24)는 예측부(22)에 의해 결정된 참조정보 및 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정한다. 복원영상 생성부(24)는 제1 참조리스트와 제2 참조리스트가 가리키는 참조 영상을 제1 참조리스트와 제2 참조리스트가 가리키는 참조순서에 따라 참조하여 복원영상을 생성할 수 있다. 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 복원영상 생성부(24)는 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성할 수 있다.
일 실시예에 따른 복원영상 생성부(24)의 동작은, 앞서 설명한 비디오 예측 장치(10)의 참조리스트 결정부(14) 및 복원영상 생성부(16)의 동작에 상응한다. 예를 들어, 양방향 예측이 가능한 현재영상을 위해 결정된 참조정보가 시간적으로 선행하는 참조영상들만을 가리키는 경우에, 복원영상 생성부(24)는 제1 참조리스트의 참조순서와 제2 참조리스트의 참조순서를 동일하게 결정할 수 있다. 따라서 복원영상 생성부(24)는 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상들을 제1 참조리스트의 참조 순서와 동일한 순서로 참조하면서 예측오차로부터 복원영상을 생성할 수 있다.
복원영상 생성부(24)에 의해 생성된 복원영상은, 예측부(22)에서 다른 영상의 예측을 위한 참조영상으로써 이용될 수 있다.
일 실시예에 따른 예측부호화부(26)는, 예측부(22)에서 결정된 참조정보 및 예측오차를 부호화한다.
예측부호화부(26)는, B 슬라이스 타입인 현재영상을 위해 결정된 참조정보가 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 제1 참조리스트와 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 부호화할 수 있다.
일 실시예에 따른 B 슬라이스 타입의 종류에 따라, L0 리스트와 L1 리스트에 의해 참조순서가 결정될 수도 있다. 예를 들어, 제1 B 슬라이스 타입의 영상을 위해 시간적으로 선행하는 영상들을 참조하여 전방 예측만이 수행되는 경우에, L0 리스트와 L1 리스트의 참조순서를 통일하여 L0 리스트와 L1 리스트가 가리키는 선행영상들은 동일한 순서에 따라 참조될 수 있다. 제2 B 슬라이스 타입의 영상을 위해 시간적으로 선행하는 영상들을 참조하여 전방 예측만이 수행되는 경우에, L0 리스트와 L1 리스트의 참조순서가 동일하지 않게 결정되어, L0 리스트와 L1 리스트가 가리키는 선행영상들이 다른 순서에 따라 참조될 수 있다.
예측정보 부호화부(26)는, B 슬라이스 타입의 현재영상에 대해 시간적으로 선행하는 영상들을 참조하는 경우에, 현재영상이 제1 B 슬라이스 타입 또는 제2 B 슬라이스 타입인지를 나타내는 단일방향예측 정보를 부호화할 수 있다. 단일방향예측 정보는 플래그 형태로 부호화될 수 있다.
예측부호화부(26)는, 단일방향 예측 정보를 적어도 하나의 영상 단위마다 부호화할 수 있다. 예를 들어 예측정보 부호화부(26)는, 슬라이스 헤더를 통해 슬라이스마다 단일방향 예측 플래그 정보를 시그널링하거나, SPS(Sequence Parameter Set)를 통해 시퀀스마다 시그널링하거나, PPS(Picture Parameter Set)를 통해 픽처마다 시그널링할 수도 있다. 따라서, 슬라이스마다, 시퀀스마다, 또는 픽처마다, B 슬라이스 타입인 영상을 제1 B 슬라이스 타입의 예측모드 또는 제2 B 슬라이스 타입 모드의 예측모드로 부호화할지 여부가 결정되어 시그널링될 수 있다.
즉, 슬라이스, 시퀀스 또는 픽처마다, B 슬라이스 타입 영상이 시간적으로 선행하는 참조영상들만을 가지는 경우에, B 슬라이스 타입 영상의 제1 참조리스트와 제2 참조리스트를 동일하게 구성할지 여부가 결정될 수 있다.
I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입에 추가적으로 제4 슬라이스 타입이 정의될 수 있다. 제4 슬라이스 타입의 영상은, 참조영상이 한 방향의 예측을 위한 참조영상들만을 포함하는 경우에 제1 참조리스트와 제2 참조리스트가 동일하게 설정되는 예측 모드에 따라 부호화될 수 있다. 예측정보 부호화부(16)는, I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입 및 제4 슬라이스 타입 중 하나를 나타내는 슬라이스 타입 정보를 부호화할 수도 있다.
일 실시예에 따른 비디오 예측부호화 장치(20)도, 중앙 프로세서서(미도시)나 외부 프로세서(미도시)에 의해 예측부(22), 복원영상 생성부(24) 및 예측부호화부(26)를 총괄적으로 제어하거나, 예측부(22), 복원영상 생성부(24) 및 예측부호화부(26)가 각각의 자체 프로세서(미도시)에 의해 작동될 수도 있다.
일 실시예에 따른 비디오 예측부호화 장치(20)는, 예측부(22), 복원영상 생성부(24) 및 예측부호화부(26)의 입출력 데이터가 저장되는 하나 이상의 데이터 저장부(미도시)를 포함할 수 있다. 비디오 예측부호화 장치(20)는, 데이터 저장부(미도시)의 데이터 입출력을 관할하는 메모리 제어부(미도시)를 포함할 수도 있다.
비디오 예측부호화 장치(20)는 영상의 전체 데이터 대신에 예측정보를 이용하여 영상을 표현할 수 있으므로, 비디오 데이터량의 절감이 필요한 비디오 압축 부호화를 수행하는 비디오 부호화에 적용될 수 있다.
일 실시예에 따른 비디오 예측부호화 장치(20)는, 비디오의 영상을 공간 영역별로 분할한 부호화 단위에 기초하여 비디오를 부호화하는 비디오 부호화기에 포함되거나 연계하여, 비디오 부호화를 위한 예측부호화를 수행할 수 있다.
일 실시예에 따른 부호화 단위는, 고정적으로 결정된 형태의 매크로블록 뿐만 아니라, 일 실시예에 따른 트리 구조에 따른 부호화 단위들을 포함할 수 있다. 일 실시예에 따라, 트리 구조에 따른 부호화 단위들은, 이하 도 7 내지 도 19을 참조하여 상술될 것이다.
일 실시예에 따른 비디오 예측부호화 장치(20)는, 공간 영역의 영상에 대하여 예측을 수행하여 참조 영상에 대한 예측오차, 즉 잔차 성분을 출력할 수 있다. 비디오 인코더는 잔차 성분에 대해 변환, 양자화를 양자화된 변환 계수를 생성하고, 변환 계수 및 부호화 정보 등의 심볼들에 대해 엔트로피 부호화를 수행하여 비트스트림을 출력할 수 있다. 비디오 인코더는, 변환 계수에 대하여, 다시 역양자화, 역변환, 예측보상을 거쳐 공간 영역의 영상을 복원하여 루프 필터링을 수행할 수도 있다. 따라서, 비디오 예측부호화 장치(20)를 통한 예측부호화를 거쳐 비디오 인코더의 압축 부호화가 구현될 수 있다.
일 실시예에 따른 비디오 예측부호화 장치(20)는, 비디오 부호화 결과를 출력하기 위해, 내부에 탑재된 비디오 인코딩 프로세서 또는 외부 비디오 인코딩 프로세서와 연계하여 작동함으로써, 예측부호화를 포함한 비디오 부호화 동작을 수행할 수 있다. 일 실시예에 따른 비디오 부호화 장치(10)의 내부 비디오 인코딩 프로세서는, 별개의 프로세서 뿐만 아니라, 비디오 예측부호화 장치(10) 또는 중앙 연산 장치, 그래픽 연산 장치가 비디오 인코딩 프로세싱 모듈을 포함함으로써 기본적인 비디오 부호화 동작을 구현하는 경우도 포함할 수도 있다.
도 3 는 일 실시예에 따른 비디오 예측복호화 장치의 블록도를 도시한다.
일 실시예에 따른 비디오 예측복호화 장치(30)는, 수신추출부(32) 및 복원영상 생성부(34)를 포함한다.
일 실시예에 따른 수신추출부(32)는, 수신된 비트스트림을 파싱하여 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보 및 예측오차를 포함하는 예측정보를 추출한다. 수신추출부(32)는 추출된 예측정보에 기초하여, 현재영상과 참조영상 간의 예측오차와 참조정보를 결정할 수 있다.
복원영상 생성부(34)는, 수신추출부(32)에 의해 결정된 참조정보 및 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정한다. 복원영상 생성부(34)는 제1 참조리스트와 제2 참조리스트가 가리키는 참조 영상을 제1 참조리스트와 제2 참조리스트가 가리키는 참조순서에 따라 참조하여 복원영상을 생성할 수 있다. 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 복원영상 생성부(34)는 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성할 수 있다.
일 실시예에 따른 복원영상 생성부(34)의 동작은, 앞서 설명한 비디오 예측 장치(10)의 참조리스트 결정부(14) 및 복원영상 생성부(16)의 동작에 상응한다. 예를 들어, 양방향 예측이 가능한 현재영상을 위해 결정된 참조정보가 시간적으로 선행하는 참조영상들만을 가리키는 경우에, 복원영상 생성부(24)는 제1 참조리스트의 참조순서와 제2 참조리스트의 참조순서를 동일하게 결정하여, 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상들을 제1 참조리스트의 참조 순서와 동일한 순서로 참조하면서 예측오차로부터 복원영상을 생성할 수 있다.
복원영상 생성부(34)에 의해 생성된 복원영상은, 예측 복호화의 결과영상으로 출력될 수 있다. 또한 복원영상은 다른 영상의 예측을 위한 참조영상으로써 이용될 수도 있다.
일 실시예에 따른 수신추출부(32)는, B 슬라이스 타입인 현재영상을 위해 결정된 참조정보가 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 제1 참조리스트와 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 수신할 수 있다.
예를 들어 수신추출부(32)는, B 슬라이스 타입의 현재영상에 대해 시간적으로 선행하는 영상들을 참조하는 경우에, 현재영상이 제1 B 슬라이스 타입 또는 제2 B 슬라이스 타입인지를 나타내는 단일방향예측 정보를 수신할 수 있다. 단일방향예측 정보는 플래그 형태로 부호화될 수 있다.
단일방향예측 정보에 기초하여 현재영상이 제1 B 슬라이스 타입임을 판독되면, 복원영상 생성부(34)는, B 슬라이스 타입의 영상의 참조영상이 시간적으로 선행하는 영상들만을 포함하는 경우에, L0 리스트와 L1 리스트가 가리키는 선행영상들을 동일한 순서에 따라 참조할 수 있다. 단일방향예측 정보에 기초하여 현재영상이 제2 B 슬라이스 타입임을 판독되면, 복원영상 생성부(34)는, B 슬라이스 타입의 영상의 참조영상이 시간적으로 선행하는 영상들만을 포함하는 경우에, L0 리스트와 L1 리스트가 가리키는 선행영상들을 서로 다른 순서에 따라 참조할 수 있다.
일 실시예에 따른 수신추출부(32)는, 단일방향 예측 정보를 적어도 하나의 영상 단위마다 수신할 수 있다. 예를 들어 수신추출부(32)는, 슬라이스 헤더를 통해 슬라이스마다, SPS를 통해 시퀀스마다, PPS를 통해 픽처마다 단일방향 예측 정보를 수신할 수도 있다. 따라서, 슬라이스마다, 시퀀스마다, 또는 픽처마다, B 슬라이스 타입인 영상을 제1 B 슬라이스 타입의 예측모드 또는 제2 B 슬라이스 타입 모드의 예측모드로 복호화할지 여부가 결정될 수 있다.
일 실시예에 따른 수신추출부(32)는, I 슬라이스 타입, P 슬라이스 타입, B 슬라이스 타입 및 제4 슬라이스 타입 중 하나를 나타내는 슬라이스 타입 정보를 수신할 수도 있다. 복원영상 생성부(34)는, 슬라이스 타입 정보에 기초하여, 현재영상이 I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입이 아닌, 제4 슬라이스 타입임이 결정되면, 현재영상을 위해 결정된 적어도 하나의 참조영상이 한 방향의 예측을 위한 참조영상들을 포함하는 경우에는 제1 참조리스트와 제2 참조리스트가 동일하게 설정되는 예측 모드에 따라 복호화할 수 있다.
일 실시예에 따른 비디오 예측복호화 장치(30)도, 중앙 프로세서서(미도시)나 외부 프로세서(미도시)에 의해 수신추출부(32) 및 복원영상 생성부(34)를 총괄적으로 제어하거나, 수신추출부(32) 및 복원영상 생성부(34)가 각각의 자체 프로세서(미도시)에 의해 작동될 수도 있다.
일 실시예에 따른 비디오 예측복호화 장치(20)도, 예측부(32) 및 복원영상 생성부(34)의 입출력 데이터가 저장되는 하나 이상의 데이터 저장부(미도시)를 포함할 수 있다. 비디오 예측복호화 장치(30)는, 데이터 저장부(미도시)의 데이터 입출력을 관할하는 메모리 제어부(미도시)를 포함할 수도 있다.
비디오 예측복호화 장치(30)는 영상의 전체 데이터 대신에 예측정보를 이용하여 영상을 복원할 수 있으므로, 비디오 데이터량의 절감이 필요한 비디오 압축 부호화를 수행하는 비디오 복호화에 적용될 수 있다.
일 실시예에 따른 비디오 예측복호화 장치(30)는, 비디오의 영상을 공간 영역별로 분할한 부호화 단위에 기초하여 비디오를 부호화하는 비디오 부호화기에 포함되거나 연계하여, 비디오 복호화를 위한 예측부호화를 수행할 수 있다.
일 실시예에 따른 부호화 단위는, 고정적으로 결정된 형태의 매크로블록 뿐만 아니라, 일 실시예에 따른 트리 구조에 따른 부호화 단위들을 포함할 수 있다. 일 실시예에 따라, 트리 구조에 따른 부호화 단위들은, 이하 도 7 내지 도 19을 참조하여 상술될 것이다.
일 실시예에 따른 비디오 예측복호화 장치(30)는, 비트스트림을 파싱하여 부호화 심볼들을 추출할 수 있다. 심볼들에 대해 엔트로피 복호화, 역양자화 및 역변환이 수행하여, 참조 영상에 대한 예측오차가 복원될 수 있다. 예측오차 및 참조정보를 이용한 예측보상을 거쳐 공간 영역의 영상을 복원하고, 복원영상에 대해 루프 필터링을 수행할 수도 있다. 따라서, 비디오 예측복호화 장치(30)를 통한 예측복호화를 거쳐 비디오 디코더의 압축복호화가 구현될 수 있다.
일 실시예에 따른 비디오 예측복호화 장치(30)는, 비디오 부호화 결과를 출력하기 위해, 내부에 탑재된 비디오 디코딩 프로세서 또는 외부 비디오 디코딩 프로세서와 연계하여 작동함으로써, 예측을 포함한 비디오 복호화 동작을 수행할 수 있다. 일 실시예에 따른 비디오 예측복호화 장치(30)의 내부 비디오 디코딩 프로세서는, 별개의 프로세서 뿐만 아니라, 예측복호화 장치(30) 또는 중앙 연산 장치, 그래픽 연산 장치가 비디오 디코딩 프로세싱 모듈을 포함함으로써 기본적인 비디오 복호화 동작을 구현하는 경우도 포함할 수도 있다.
도 4 은 일 실시예에 따른 비디오 예측 방법의 흐름도를 도시한다.
단계 42에서, 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보가 결정된다. 현재영상과 참조영상 간의 오차가 예측오차가 결정될 수도 있다.
단계 44에서, 단계 42에서 결정된 참조정보와 참조영상의 참조순서를 포함하는 제1 참조리스트 및 제2 참조리스트가 결정된다.
양 방향 예측을 위한 참조영상들이 결정되면, 제1 방향 예측을 위한 참조영상과 참조순서를 포함하는 제1 참조리스트를 결정하고, 제2 방향 예측을 위한 참조영상과 참조순서를 포함하는 제2 참조리스트가 결정될 수 있다.
또한, 현재영상의 예측을 위한 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 제1 참조리스트의 참조순서와 제2 참조리스트의 참조순서가 동일하게 결정될 수 있다.
예를 들어, 시간적으로 선행하는 영상들만 참조하는 예측모드가 존재할 수 있다. 예측시 발생할 수 있는 딜레이를 최소한하기 위해, 전방 예측만을 허용하는 예측모드가 설정될 수 있다. 이 경우, B 슬라이스 타입인 현재영상을 위해 시간적으로 선행하는 참조영상들만이 결정될 수 있으며, 제1 참조리스트의 참조순서와 제2 참조리스트의 참조순서가 동일하게 결정될 수 있다.
단계 46에서, 단계 44에서 결정된 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상을 참조순서로 참조하여, 예측오차로부터 복원영상이 생성된다.
제2 참조리스트가 참조영상을 포함하지 않는 경우에, 제2 참조리스트가 제1 참조리스트와 동일한 참조정보 및 참조순서를 갖도록 제2 참조리스트를 다시 결정하고, 제1 참조리스트와 제2 참조리스트가 가리키는 동일한 영상을 동일한 순서로 참조하여 복원영상이 생성될 수도 있다.
도 5 는 일 실시예에 따른 비디오 예측부호화 방법의 흐름도를 도시한다.
단계 52에서, 영상에 대해 예측을 수행하여, 적어도 하나의 참조영상을 나타내는 참조정보가 결정된다. 현재영상에 대한 예측을 통해, 현재영상과 참조영상 간의 예측오차가 결정될 수 있다.
단계 54에서, 단계 52에서 결정된 참조정보 및 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트가 결정된다,
단계 56에서, 단계 54에서 결정된 제1 참조리스트와 제2 참조리스트가 가리키는 참조 영상을 제1 참조리스트와 제2 참조리스트가 가리키는 참조순서에 따라 참조하여 복원영상이 생성될 수 있다. 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 제1 참조리스트와 제2 참조리스트의 참조순서를 동일하도록 수정하여, 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상들을 서로 동일한 순서로 참조하면서 예측오차로부터 복원영상이 생성될 수 있다.
단계 58에서, 단계 52에서 결정된 참조정보 및 예측오차가 부호화된다.
B 슬라이스 타입의 현재영상에 대해 시간적으로 선행하는 영상들만을 참조하는 경우에, 현재영상이 제1 B 슬라이스 타입 또는 제2 B 슬라이스 타입인지를 나타내는 단일방향예측 정보가 부호화될 수 있다. 슬라이스 헤더, SPS 또는 PPS를 통해 단일방향예측 정보가 시그널링될 수도 있다.
또는, I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입 및 제4 슬라이스 타입 중 하나를 나타내는 슬라이스 타입 정보가 부호화될 수도 있다.
도 6 는 일 실시예에 따른 비디오 예측복호화 방법의 흐름도를 도시한다.
단계 62에서, 수신된 비트스트림을 파싱하여 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보 및 예측오차가 추출된다.
단계 64에서, 단계 62에서 결정된 참조정보 및 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정한다.
단계 66에서, 단계 64에서 결정된 제1 참조리스트와 제2 참조리스트가 가리키는 참조 영상을 제1 참조리스트와 제2 참조리스트가 가리키는 참조순서에 따라 참조하여 복원영상이 생성될 수 있다. 단계 68에서, 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우에는, 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상이 생성될 수 있다.
단계 62에서, B 슬라이스 타입인 현재영상을 위해 결정된 참조정보가 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 제1 참조리스트와 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보가 수신될 수 있다. 단일방향 예측 정보는, 슬라이스마다, 시퀀스마다, 또는 픽처마다 단일방향 예측 정보를 수신될 수도 있다.
단계 62에서 수신된 단일방향예측 정보에 기초하여 현재영상이 제1 B 슬라이스 타입임을 판독되고, 참조영상이 시간적으로 선행하는 영상들만을 포함하는 경우에, 단계 66에서는 L0 리스트와 L1 리스트가 가리키는 선행영상들을 동일한 순서에 따라 참조하여 복원 영상이 생성될 수 있다.
단계 62에서, I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입 및 제4 슬라이스 타입 중 하나를 나타내는 슬라이스 타입 정보가 수신될 수도 있다. 슬라이스 타입 정보에 기초하여 현재영상이 제4 슬라이스 타입임이 판독되고, 현재영상을 위해 결정된 적어도 하나의 참조영상이 한 방향의 예측을 위한 참조영상들을 포함하는 경우에는, 단계 64에서는, 제1 참조리스트와 제2 참조리스트가 동일하게 설정되는 예측 모드에 따라 참조영상이 결정되고, 예측/보상을 통해 영상이 복원될 수 있다.
따라서, 참조정보가 단일방향 예측을 위한 참조영상만을 가리키거나, 시간적으로 선행하는 참조영상들만이 사용가능한 경우에, 제1 참조리스트 및 제2 참조리스트의 참조순서를 동일하게 결정함으로써, 제1 참조리스트 및 제2 참조리스트를 따라 참조영상이 결정되더라도, 시간적으로 가장 인접한 참조영상 또는 가장 유사한 참조영상의 순서에 따라 예측이 수행될 수 있다. 또한 제1 참조리스트 및 제2 참조리스트에 포함된 동일한 참조영상들을 동일한 순서로 참조하여 영상이 복원되는 경우에도, 예측결과의 조합을 통해 복원영상의 화질이 향상될 수 있다.
이하 도 7 내지 21을 참조하여, 일 실시예에 따른 양방향 예측 및 단일방향 예측이 가능한 비디오 부호화 및 비디오 복호화를 확장하여, 일 실시예에 따라 트리 구조에 따른 부호화 단위를 기초로 하는 비디오 부호화 및 비디오 복호화에 적용하는 실시예가 상술된다.
도 7 은 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 장치(100)의 블록도를 도시한다.
일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 장치(100)는 최대 부호화 단위 분할부(110), 부호화 단위 결정부(120) 및 출력부(130)를 포함한다. 이하 설명의 편의를 위해, 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 장치(100)는 '비디오 부호화 장치(100)'로 축약하여 지칭한다.
최대 부호화 단위 분할부(110)는 영상의 현재 픽처를 위한 최대 크기의 부호화 단위인 최대 부호화 단위에 기반하여 현재 픽처를 구획할 수 있다. 현재 픽처가 최대 부호화 단위보다 크다면, 현재 픽처의 영상 데이터는 적어도 하나의 최대 부호화 단위로 분할될 수 있다. 일 실시예에 따른 최대 부호화 단위는 크기 32x32, 64x64, 128x128, 256x256 등의 데이터 단위로, 가로 및 세로 크기가 2의 자승인 정사각형의 데이터 단위일 수 있다. 영상 데이터는 적어도 하나의 최대 부호화 단위별로 부호화 단위 결정부(120)로 출력될 수 있다.
일 실시예에 따른 부호화 단위는 최대 크기 및 심도로 특징지어질 수 있다. 심도란 최대 부호화 단위로부터 부호화 단위가 공간적으로 분할한 횟수를 나타내며, 심도가 깊어질수록 심도별 부호화 단위는 최대 부호화 단위로부터 최소 부호화 단위까지 분할될 수 있다. 최대 부호화 단위의 심도가 최상위 심도이며 최소 부호화 단위가 최하위 부호화 단위로 정의될 수 있다. 최대 부호화 단위는 심도가 깊어짐에 따라 심도별 부호화 단위의 크기는 감소하므로, 상위 심도의 부호화 단위는 복수 개의 하위 심도의 부호화 단위를 포함할 수 있다.
전술한 바와 같이 부호화 단위의 최대 크기에 따라, 현재 픽처의 영상 데이터를 최대 부호화 단위로 분할하며, 각각의 최대 부호화 단위는 심도별로 분할되는 부호화 단위들을 포함할 수 있다. 일 실시예에 따른 최대 부호화 단위는 심도별로 분할되므로, 최대 부호화 단위에 포함된 공간 영역(spatial domain)의 영상 데이터가 심도에 따라 계층적으로 분류될 수 있다.
최대 부호화 단위의 높이 및 너비를 계층적으로 분할할 수 있는 총 횟수를 제한하는 최대 심도 및 부호화 단위의 최대 크기가 미리 설정되어 있을 수 있다.
부호화 단위 결정부(120)는, 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역을 부호화하여, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도를 결정한다. 즉 부호화 단위 결정부(120)는, 현재 픽처의 최대 부호화 단위마다 심도별 부호화 단위로 영상 데이터를 부호화하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여 부호화 심도로 결정한다. 결정된 부호화 심도 및 최대 부호화 단위별 영상 데이터는 출력부(130)로 출력된다.
최대 부호화 단위 내의 영상 데이터는 최대 심도 이하의 적어도 하나의 심도에 따라 심도별 부호화 단위에 기반하여 부호화되고, 각각의 심도별 부호화 단위에 기반한 부호화 결과가 비교된다. 심도별 부호화 단위의 부호화 오차의 비교 결과 부호화 오차가 가장 작은 심도가 선택될 수 있다. 각각의 최대화 부호화 단위마다 적어도 하나의 부호화 심도가 결정될 수 있다.
최대 부호화 단위의 크기는 심도가 깊어짐에 따라 부호화 단위가 계층적으로 분할되어 분할되며 부호화 단위의 개수는 증가한다. 또한, 하나의 최대 부호화 단위에 포함되는 동일한 심도의 부호화 단위들이라 하더라도, 각각의 데이터에 대한 부호화 오차를 측정하고 하위 심도로의 분할 여부가 결정된다. 따라서, 하나의 최대 부호화 단위에 포함되는 데이터라 하더라도 위치에 따라 심도별 부호화 오차가 다르므로 위치에 따라 부호화 심도가 달리 결정될 수 있다. 따라서, 하나의 최대 부호화 단위에 대해 부호화 심도가 하나 이상 설정될 수 있으며, 최대 부호화 단위의 데이터는 하나 이상의 부호화 심도의 부호화 단위에 따라 구획될 수 있다.
따라서, 일 실시예에 따른 부호화 단위 결정부(120)는, 현재 최대 부호화 단위에 포함되는 트리 구조에 따른 부호화 단위들이 결정될 수 있다. 일 실시예에 따른 '트리 구조에 따른 부호화 단위들'은, 현재 최대 부호화 단위에 포함되는 모든 심도별 부호화 단위들 중, 부호화 심도로 결정된 심도의 부호화 단위들을 포함한다. 부호화 심도의 부호화 단위는, 최대 부호화 단위 내에서 동일 영역에서는 심도에 따라 계층적으로 결정되고, 다른 영역들에 대해서는 독립적으로 결정될 수 있다. 마찬가지로, 현재 영역에 대한 부호화 심도는, 다른 영역에 대한 부호화 심도와 독립적으로 결정될 수 있다.
일 실시예에 따른 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 분할 횟수와 관련된 지표이다. 일 실시예에 따른 제 1 최대 심도는, 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낼 수 있다. 일 실시예에 따른 제 2 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 심도 레벨의 총 개수를 나타낼 수 있다. 예를 들어, 최대 부호화 단위의 심도가 0이라고 할 때, 최대 부호화 단위가 1회 분할된 부호화 단위의 심도는 1로 설정되고, 2회 분할된 부호화 단위의 심도가 2로 설정될 수 있다. 이 경우, 최대 부호화 단위로부터 4회 분할된 부호화 단위가 최소 부호화 단위라면, 심도 0, 1, 2, 3 및 4의 심도 레벨이 존재하므로 제 1 최대 심도는 4, 제 2 최대 심도는 5로 설정될 수 있다.
최대 부호화 단위의 예측 부호화 및 변환이 수행될 수 있다. 예측 부호화 및 변환도 마찬가지로, 최대 부호화 단위마다, 최대 심도 이하의 심도마다 심도별 부호화 단위를 기반으로 수행된다.
최대 부호화 단위가 심도별로 분할될 때마다 심도별 부호화 단위의 개수가 증가하므로, 심도가 깊어짐에 따라 생성되는 모든 심도별 부호화 단위에 대해 예측 부호화 및 변환을 포함한 부호화가 수행되어야 한다. 이하 설명의 편의를 위해 적어도 하나의 최대 부호화 단위 중 현재 심도의 부호화 단위를 기반으로 예측 부호화 및 변환을 설명하겠다.
일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 데이터 단위의 크기 또는 형태를 다양하게 선택할 수 있다. 영상 데이터의 부호화를 위해서는 예측 부호화, 변환, 엔트로피 부호화 등의 단계를 거치는데, 모든 단계에 걸쳐서 동일한 데이터 단위가 사용될 수도 있으며, 단계별로 데이터 단위가 변경될 수도 있다.
예를 들어 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위의 영상 데이터의 예측 부호화를 수행하기 위해, 부호화 단위와 다른 데이터 단위를 선택할 수 있다.
최대 부호화 단위의 예측 부호화를 위해서는, 일 실시예에 따른 부호화 심도의 부호화 단위, 즉 더 이상한 분할되지 않는 부호화 단위를 기반으로 예측 부호화가 수행될 수 있다. 이하, 예측 부호화의 기반이 되는 더 이상한 분할되지 않는 부호화 단위를 '예측 단위'라고 지칭한다. 예측 단위가 분할된 파티션은, 예측 단위 및 예측 단위의 높이 및 너비 중 적어도 하나가 분할된 데이터 단위를 포함할 수 있다. 파티션은 부호화 단위의 예측 단위가 분할된 형태의 데이터 단위이고, 예측 단위는 부호화 단위와 동일한 크기의 파티션일 수 있다.
예를 들어, 크기 2Nx2N(단, N은 양의 정수)의 부호화 단위가 더 이상 분할되지 않는 경우, 크기 2Nx2N의 예측 단위가 되며, 파티션의 크기는 2Nx2N, 2NxN, Nx2N, NxN 등일 수 있다. 일 실시예에 따른 파티션 타입은 예측 단위의 높이 또는 너비가 대칭적 비율로 분할된 대칭적 파티션들뿐만 아니라, 1:n 또는 n:1과 같이 비대칭적 비율로 분할된 파티션들, 기하학적인 형태로 분할된 파티션들, 임의적 형태의 파티션들 등을 선택적으로 포함할 수도 있다.
예측 단위의 예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 적어도 하나일 수 있다. 예를 들어 인트라 모드 및 인터 모드는, 2Nx2N, 2NxN, Nx2N, NxN 크기의 파티션에 대해서 수행될 수 있다. 또한, 스킵 모드는 2Nx2N 크기의 파티션에 대해서만 수행될 수 있다. 부호화 단위 이내의 하나의 예측 단위마다 독립적으로 부호화가 수행되어 부호화 오차가 가장 작은 예측 모드가 선택될 수 있다.
또한, 일 실시예에 따른 비디오 부호화 장치(100)는, 영상 데이터의 부호화를 위한 부호화 단위 뿐만 아니라, 부호화 단위와 다른 데이터 단위를 기반으로 부호화 단위의 영상 데이터의 변환을 수행할 수 있다. 부호화 단위의 변환을 위해서는, 부호화 단위보다 작거나 같은 크기의 변환 단위를 기반으로 변환이 수행될 수 있다. 예를 들어 변환 단위는, 인트라 모드를 위한 데이터 단위 및 인터 모드를 위한 변환 단위를 포함할 수 있다.
일 실시예에 따른 트리 구조에 따른 부호화 단위와 유사한 방식으로, 부호화 단위 내의 변환 단위도 재귀적으로 더 작은 크기의 변환 단위로 분할되면서, 부호화 단위의 레지듀얼 데이터가 변환 심도에 따라 트리 구조에 따른 변환 단위에 따라 구획될 수 있다.
일 실시예에 따른 변환 단위에 대해서도, 부호화 단위의 높이 및 너비가 분할하여 변환 단위에 이르기까지의 분할 횟수를 나타내는 변환 심도가 설정될 수 있다. 예를 들어, 크기 2Nx2N의 현재 부호화 단위의 변환 단위의 크기가 2Nx2N이라면 변환 심도 0, 변환 단위의 크기가 NxN이라면 변환 심도 1, 변환 단위의 크기가 N/2xN/2이라면 변환 심도 2로 설정될 수 있다. 즉, 변환 단위에 대해서도 변환 심도에 따라 트리 구조에 따른 변환 단위가 설정될 수 있다.
부호화 심도별 부호화 정보는, 부호화 심도 뿐만 아니라 예측 관련 정보 및 변환 관련 정보가 필요하다. 따라서, 부호화 단위 결정부(120)는 최소 부호화 오차를 발생시킨 부호화 심도 뿐만 아니라, 예측 단위를 파티션으로 분할한 파티션 타입, 예측 단위별 예측 모드, 변환을 위한 변환 단위의 크기 등을 결정할 수 있다.
일 실시예에 따른 최대 부호화 단위의 트리 구조에 따른 부호화 단위 및 예측단위/파티션, 및 변환 단위의 결정 방식에 대해서는, 도 9 내지 19을 참조하여 상세히 후술한다.
부호화 단위 결정부(120)는 심도별 부호화 단위의 부호화 오차를 라그랑지 곱(Lagrangian Multiplier) 기반의 율-왜곡 최적화 기법(Rate-Distortion Optimization)을 이용하여 측정할 수 있다.
출력부(130)는, 부호화 단위 결정부(120)에서 결정된 적어도 하나의 부호화 심도에 기초하여 부호화된 최대 부호화 단위의 영상 데이터 및 심도별 부호화 모드에 관한 정보를 비트스트림 형태로 출력한다.
부호화된 영상 데이터는 영상의 레지듀얼 데이터의 부호화 결과일 수 있다.
심도별 부호화 모드에 관한 정보는, 부호화 심도 정보, 예측 단위의 파티션 타입 정보, 예측 모드 정보, 변환 단위의 크기 정보 등을 포함할 수 있다.
부호화 심도 정보는, 현재 심도로 부호화하지 않고 하위 심도의 부호화 단위로 부호화할지 여부를 나타내는 심도별 분할 정보를 이용하여 정의될 수 있다. 현재 부호화 단위의 현재 심도가 부호화 심도라면, 현재 부호화 단위는 현재 심도의 부호화 단위로 부호화되므로 현재 심도의 분할 정보는 더 이상 하위 심도로 분할되지 않도록 정의될 수 있다. 반대로, 현재 부호화 단위의 현재 심도가 부호화 심도가 아니라면 하위 심도의 부호화 단위를 이용한 부호화를 시도해보아야 하므로, 현재 심도의 분할 정보는 하위 심도의 부호화 단위로 분할되도록 정의될 수 있다.
현재 심도가 부호화 심도가 아니라면, 하위 심도의 부호화 단위로 분할된 부호화 단위에 대해 부호화가 수행된다. 현재 심도의 부호화 단위 내에 하위 심도의 부호화 단위가 하나 이상 존재하므로, 각각의 하위 심도의 부호화 단위마다 반복적으로 부호화가 수행되어, 동일한 심도의 부호화 단위마다 재귀적(recursive) 부호화가 수행될 수 있다.
하나의 최대 부호화 단위 안에 트리 구조의 부호화 단위들이 결정되며 부호화 심도의 부호화 단위마다 적어도 하나의 부호화 모드에 관한 정보가 결정되어야 하므로, 하나의 최대 부호화 단위에 대해서는 적어도 하나의 부호화 모드에 관한 정보가 결정될 수 있다. 또한, 최대 부호화 단위의 데이터는 심도에 따라 계층적으로 구획되어 위치 별로 부호화 심도가 다를 수 있으므로, 데이터에 대해 부호화 심도 및 부호화 모드에 관한 정보가 설정될 수 있다.
따라서, 일 실시예에 따른 출력부(130)는, 최대 부호화 단위에 포함되어 있는 부호화 단위, 예측 단위 및 최소 단위 중 적어도 하나에 대해, 해당 부호화 심도 및 부호화 모드에 대한 부호화 정보를 할당될 수 있다.
일 실시예에 따른 최소 단위는, 최하위 부호화 심도인 최소 부호화 단위가 4분할된 크기의 정사각형의 데이터 단위이다. 일 실시예에 따른 최소 단위는, 최대 부호화 단위에 포함되는 모든 부호화 단위, 예측 단위, 파티션 단위 및 변환 단위 내에 포함될 수 있는 최대 크기의 정사각 데이터 단위일 수 있다.
예를 들어 출력부(130)를 통해 출력되는 부호화 정보는, 심도별 부호화 단위별 부호화 정보와 예측 단위별 부호화 정보로 분류될 수 있다. 심도별 부호화 단위별 부호화 정보는, 예측 모드 정보, 파티션 크기 정보를 포함할 수 있다. 예측 단위별로 전송되는 부호화 정보는 인터 모드의 추정 방향에 관한 정보, 인터 모드의 참조 영상 인덱스에 관한 정보, 움직임 벡터에 관한 정보, 인트라 모드의 크로마 성분에 관한 정보, 인트라 모드의 보간 방식에 관한 정보 등을 포함할 수 있다.
픽처, 슬라이스 또는 GOP별로 정의되는 부호화 단위의 최대 크기에 관한 정보 및 최대 심도에 관한 정보는 비트스트림의 헤더, 시퀀스 파라미터 세트 또는 픽처 파라미터 세트 등에 삽입될 수 있다.
또한 현재 비디오에 대해 허용되는 변환 단위의 최대 크기에 관한 정보 및 변환 단위의 최소 크기에 관한 정보도, 비트스트림의 헤더, 시퀀스 파라미터 세트 또는 픽처 파라미터 세트 등을 통해 출력될 수 있다. 출력부(130)는, 도 1 내지 6을 참조하여 전술한 예측과 관련된 참조정보, 예측정보, 단일방향예측 정보, 제4 슬라이스타입을 포함하는 슬라이스 타입 정보 등을 부호화하여 출력할 수 있다.
비디오 부호화 장치(100)의 가장 간단한 형태의 실시예에 따르면, 심도별 부호화 단위는 한 계층 상위 심도의 부호화 단위의 높이 및 너비를 반분한 크기의 부호화 단위이다. 즉, 현재 심도의 부호화 단위의 크기가 2Nx2N이라면, 하위 심도의 부호화 단위의 크기는 NxN 이다. 또한, 2Nx2N 크기의 현재 부호화 단위는 NxN 크기의 하위 심도 부호화 단위를 최대 4개 포함할 수 있다.
따라서, 비디오 부호화 장치(100)는 현재 픽처의 특성을 고려하여 결정된 최대 부호화 단위의 크기 및 최대 심도를 기반으로, 각각의 최대 부호화 단위마다 최적의 형태 및 크기의 부호화 단위를 결정하여 트리 구조에 따른 부호화 단위들을 구성할 수 있다. 또한, 각각의 최대 부호화 단위마다 다양한 예측 모드, 변환 방식 등으로 부호화할 수 있으므로, 다양한 영상 크기의 부호화 단위의 영상 특성을 고려하여 최적의 부호화 모드가 결정될 수 있다.
따라서, 영상의 해상도가 매우 높거나 데이터량이 매우 큰 영상을 기존 매크로블록 단위로 부호화한다면, 픽처당 매크로블록의 수가 과도하게 많아진다. 이에 따라, 매크로블록마다 생성되는 압축 정보도 많아지므로 압축 정보의 전송 부담이 커지고 데이터 압축 효율이 감소하는 경향이 있다. 따라서, 일 실시예에 따른 비디오 부호화 장치는, 영상의 크기를 고려하여 부호화 단위의 최대 크기를 증가시키면서, 영상 특성을 고려하여 부호화 단위를 조절할 수 있으므로, 영상 압축 효율이 증대될 수 있다.
도 7의 비디오 부호화 장치(100)는, 도 2을 참조하여 전술한 비디오 예측부호화 장치(20)의 예측부호화 동작을 수행할 수 있다.
부호화 단위 결정부(120)는, 비디오 예측부호화 장치(10)의 예측부(22) 및 복원영상 생성부(24)의 동작을 수행할 수 있다. 즉, 예측부(22) 및 복원영상 생성부(24)의 예측 및 보상동작이, 현재영상이 분할된 계층적 구조의 부호화 단위들 중에서, 부호화 단위마다 포함된 파티션을 기초로 수행될 수 있다. B 슬라이스 타입의 파티션을 위해, 제1 참조리스트 및 제2 참조리스트를 기초로 참조영상을 결정할 수 있다.
도 1, 2를 참조하여 전술한 바와 유사하게, 부호화 단위 결정부(120)는, 제1 참조리스트 및 제2 참조리스트가 가리키는 단일방향 예측을 위한 참조영상을, 동일한 참조순서에 따라 참조하여 현재 파티션의 복원영역을 생성할 수 있다. 부호화 단위 결정부(120)는, 제1 참조리스트 및 제2 참조리스트가 가리키는 양방향 예측을 위한 참조영상을 해당 참조순서에 따라 참조하여 현재 파티션의 예측영역을 복원할 수 있다.
부호화 단위 결정부(120)는, 현재영상의 최대 부호화 단위마다, 그리고 각각의 최대부호화 단위가 심도별로 분할된 각 심도의 부호화 단위들마다, 양방향 예측 또는 단일방향 예측을 수반하는 예측을 수행하고 예측오차에 대한 변환, 양자화를 포함하는 부호화 과정을 거쳐 생성된 심도별 부호화 오차를 비교한 결과에 기초하여, 최소 오차를 발생하는 부호화 결과를 출력하는 부호화 심도의 부호화 단위들과 파티션들을 선택할 수 있다.
일 실시예에 따른 양방향 예측 또는 단일방향 예측은, 제1 참조리스트 및 제2 참조리스트의 참조순서를 따라 참조영상을 이용하여 수행됨은 전술한 바와 같다. 특히 부호화 단위 결정부(120)는, 양방향 예측 또는 단일방향 예측이 가능한 슬라이스 타입인 현재 파티션을 위해 시간적으로 선행하는 참조영상을 이용하여 전방 예측하는 경우에, 제1 참조리스트와 제2 참조리스트의 참조순서를 동일하게 결정할 수 있다. 부호화 단위 결정부(120)는, 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 동일한 참조순서대로 참조하여 현재 파티션의 복원영상을 생성할 수 있다. 이런식으로 결정된 부호화 심도의 부호화 단위들이 일 실시예에 따른 트리 구조의 부호화 단위를 구성할 수 있다.
비디오 부호화 장치(100)의 출력부(130)는 비디오 예측부호화 장치(10)의 예측부호화부(26)의 동작을 수행할 수 있다. 즉, 출력부(130)는, 최대 부호화 단위마다, 트리 구조에 따른 부호화 단위들별로, 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 생성된 예측오차의 양자화된 변환계수를 출력할 수 있다.
출력부(130)는, 트리 구조에 따른 부호화 단위들의 부호화 심도 및 부호화 모드에 대한 정보를 부호화하여 출력할 수 있다. 부호화 모드에 대한 정보는 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 결정된 참조정보, 예측모드정보를 포함할 수 있다. 참조정보는 참조영상을 나타내는 인덱스, 참조블록을 가리키는 움직임정보 등을 포함할 수 있다.
출력부(130)는, 일 실시예에 따른 양방향 예측 및 단일방향 예측에 관한 예측모드정보로서, B 슬라이스타입 영상의 제1 참조리스트와 제2 참조리스트의 동일성 여부를 나타내는 단일방향 예측 정보, 제4 슬라이스 타입을 포함하는 슬라이스 타입 정보 등을 부호화할 수도 있다. 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 결정된 예측모드정보는, 현재 파티션을 포함하는 슬라이스마다, 또는 시퀀스마다. 또는 픽처마다 부호화될 수 있다.
도 8 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 장치의 블록도를 도시한다.
일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 장치(200)는 수신부(210), 영상 데이터 및 부호화 정보 추출부(220) 및 영상 데이터 복호화부(230)를 포함한다. 이하 설명의 편의를 위해, 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 장치(200)는 '비디오 복호화 장치(200)'로 축약하여 지칭한다.
일 실시예에 따른 비디오 복호화 장치(200)의 복호화 동작을 위한 부호화 단위, 심도, 예측 단위, 변환 단위, 각종 부호화 모드에 관한 정보 등 각종 용어의 정의는, 도 7 및 비디오 부호화 장치(100)를 참조하여 전술한 바와 동일하다.
수신부(210)는 부호화된 비디오에 대한 비트스트림을 수신하여 파싱한다. 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 따라 부호화 단위마다 부호화된 영상 데이터를 추출하여 영상 데이터 복호화부(230)로 출력한다. 영상 데이터 및 부호화 정보 추출부(220)는 현재 픽처에 대한 헤더, 시퀀스 파라미터 세트 또는 픽처 파라미터 세트로부터 현재 픽처의 부호화 단위의 최대 크기에 관한 정보를 추출할 수 있다.
또한, 영상 데이터 및 부호화 정보 추출부(220)는 파싱된 비트스트림으로부터 최대 부호화 단위별로 트리 구조에 따른 부호화 단위들에 대한 부호화 심도 및 부호화 모드에 관한 정보를 추출한다. 추출된 부호화 심도 및 부호화 모드에 관한 정보는 영상 데이터 복호화부(230)로 출력된다. 즉, 비트열의 영상 데이터를 최대 부호화 단위로 분할하여, 영상 데이터 복호화부(230)가 최대 부호화 단위마다 영상 데이터를 복호화하도록 할 수 있다.
최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 하나 이상의 부호화 심도 정보에 대해 설정될 수 있으며, 부호화 심도별 부호화 모드에 관한 정보는, 해당 부호화 단위의 파티션 타입 정보, 예측 모드 정보 및 변환 단위의 크기 정보 등을 포함할 수 있다. 또한, 부호화 심도 정보로서, 심도별 분할 정보가 추출될 수도 있다.
영상 데이터 및 부호화 정보 추출부(220)가 추출한 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보는, 일 실시예에 따른 비디오 부호화 장치(100)와 같이 부호화단에서, 최대 부호화 단위별 심도별 부호화 단위마다 반복적으로 부호화를 수행하여 최소 부호화 오차를 발생시키는 것으로 결정된 부호화 심도 및 부호화 모드에 관한 정보이다. 따라서, 비디오 복호화 장치(200)는 최소 부호화 오차를 발생시키는 부호화 방식에 따라 데이터를 복호화하여 영상을 복원할 수 있다.
일 실시예에 따른 부호화 심도 및 부호화 모드에 대한 부호화 정보는, 해당 부호화 단위, 예측 단위 및 최소 단위 중 소정 데이터 단위에 대해 할당되어 있을 수 있으므로, 영상 데이터 및 부호화 정보 추출부(220)는 소정 데이터 단위별로 부호화 심도 및 부호화 모드에 관한 정보를 추출할 수 있다. 소정 데이터 단위별로, 해당 최대 부호화 단위의 부호화 심도 및 부호화 모드에 관한 정보가 기록되어 있다면, 동일한 부호화 심도 및 부호화 모드에 관한 정보를 갖고 있는 소정 데이터 단위들은 동일한 최대 부호화 단위에 포함되는 데이터 단위로 유추될 수 있다.
영상 데이터 복호화부(230)는 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터를 복호화하여 현재 픽처를 복원한다. 즉 영상 데이터 복호화부(230)는, 최대 부호화 단위에 포함되는 트리 구조에 따른 부호화 단위들 가운데 각각의 부호화 단위마다, 판독된 파티션 타입, 예측 모드, 변환 단위에 기초하여 부호화된 영상 데이터를 복호화할 수 있다. 복호화 과정은 인트라 예측 및 움직임 보상을 포함하는 예측 과정, 및 역변환 과정을 포함할 수 있다.
영상 데이터 복호화부(230)는, 부호화 심도별 부호화 단위의 예측 단위의 파티션 타입 정보 및 예측 모드 정보에 기초하여, 부호화 단위마다 각각의 파티션 및 예측 모드에 따라 인트라 예측 또는 움직임 보상을 수행할 수 있다.
또한, 영상 데이터 복호화부(230)는, 최대 부호화 단위별 역변환을 위해, 부호화 단위별로 트리 구조에 따른 변환 단위 정보를 판독하여, 부호화 단위마다 변환 단위에 기초한 역변환을 수행할 수 있다. 역변환을 통해, 부호화 단위의 공간 영역의 화소값이 복원할 수 있다.
영상 데이터 복호화부(230)는 심도별 분할 정보를 이용하여 현재 최대 부호화 단위의 부호화 심도를 결정할 수 있다. 만약, 분할 정보가 현재 심도에서 더 이상 분할되지 않음을 나타내고 있다면 현재 심도가 부호화 심도이다. 따라서, 영상 데이터 복호화부(230)는 현재 최대 부호화 단위의 영상 데이터에 대해 현재 심도의 부호화 단위를 예측 단위의 파티션 타입, 예측 모드 및 변환 단위 크기 정보를 이용하여 복호화할 수 있다.
즉, 부호화 단위, 예측 단위 및 최소 단위 중 소정 데이터 단위에 대해 설정되어 있는 부호화 정보를 관찰하여, 동일한 분할 정보를 포함한 부호화 정보를 보유하고 있는 데이터 단위가 모여, 영상 데이터 복호화부(230)에 의해 동일한 부호화 모드로 복호화할 하나의 데이터 단위로 간주될 수 있다. 이런 식으로 결정된 부호화 단위마다 부호화 모드에 대한 정보를 획득하여 현재 부호화 단위의 복호화가 수행될 수 있다.
또한, 도 8의 비디오 복호화 장치(200)는, 도 3을 참조하여 전술한 비디오 예측복호화 장치(30)의 예측복호화 동작을 수행할 수 있다.
비디오 복호화 장치(200)의 수신부(210)와 영상 데이터 및 부호화 정보 추출부(220)는 비디오 예측복호화 장치(30)의 수신추출부(32)의 동작을 수행할 수 있다.
일 실시예에 따른 영상 데이터 및 부호화 정보 추출부(220)는, 파싱된 비트스트림으로부터, 트리 구조에 따른 부호화 단위들마다, 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 생성된 예측오차의 양자화된 변환계수를 추출할 수 있다.
또한 영상 데이터 및 부호화 정보 추출부(220)는, 파싱된 비트스트림으로부터, 트리 구조에 따른 부호화 단위들에 대한 부호화 심도 및 부호화 모드에 대한 정보를 추출하면서, 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 결정된 예측모드정보를 추출할 수 있다. 영상 데이터 및 부호화 정보 추출부(220)는 일 실시예에 따른 B 슬라이스타입 영상의 제1 참조리스트와 제2 참조리스트의 동일성 여부를 나타내는 단일방향 예측 정보, 제4 슬라이스 타입을 포함하는 슬라이스 타입 정보 등을 추출할 수도 있다. 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 결정된 예측모드정보는, 현재 파티션을 포함하는 슬라이스마다, 또는 시퀀스마다. 또는 픽처마다 별도로 추출될 수 있다.
또한 영상 데이터 및 부호화 정보 추출부(220)는, 일 실시예에 따른 양방향 예측 및 단일방향 예측을 위한 참조영상 및 참조블록을 가리키는 참조정보를 추출할 수 있다.
비디오 복호화 장치(200)의 영상 데이터 복호화부(230)는, 비디오 복호화 장치(30)의 복원영상 생성부(34)의 동작을 수행할 수 있다.
영상 데이터 복호화부(230)는, 부호화 심도 및 부호화 모드에 대한 정보를 이용하여, 트리구조의 부호화 단위들을 결정하고, 부호화 단위마다의 파티션들을 결정할 수 있다. 영상 데이터 복호화부(230)는, 현재영상의 트리구조의 부호화 단위들마다, 부호화된 영상 데이터에 대해 역양자화, 역변환을 포함하는 복호화 과정을 거쳐, 부호화 단위의 예측오차를 복원할 수 있다.
영상 데이터 복호화부(230)는, 트리구조의 부호화 단위마다 포함된 파티션을 기초로, 예측오차에 대해 일 실시예에 따른 양방향 예측 및 단일방향 예측을 수행할 수 있다. B 슬라이스 타입의 파티션을 위해, 제1 참조리스트 및 제2 참조리스트를 기초로 참조영상이 결정될 수 있다. 영상 데이터 복호화부(230)는, 제1 참조리스트 및 제2 참조리스트가 가리키는 양방향 예측을 위한 참조영상을 해당 참조순서에 따라 참조하여 현재 파티션의 예측영역을 복원할 수 있다.
특히 도 1, 3를 참조하여 전술한 바와 유사하게, 영상 데이터 복호화부(230)는, 제1 참조리스트 및 제2 참조리스트가 가리키는 단일방향 예측을 위한 참조영상을, 동일한 참조순서에 따라 참조하여 현재 파티션의 복원영역을 생성할 수 있다. 예를 들어, 영상 데이터 복호화부(230)는, 양방향 예측 또는 단일방향 예측이 가능한 슬라이스 타입인 현재영상을 위해 시간적으로 선행하는 참조영상을 이용하여 전방 예측하는 경우에, 제1 참조리스트와 제2 참조리스트의 참조순서를 동일하게 결정하고, 제1 참조리스트와 제2 참조리스트가 가리키는 영상을 참조순서대로 참조하여 파티션을 복원할 수 있다.
이에 따라, 영상 데이터 복호화부(230)는 최대 부호화 단위마다, 트리구조의 부호화 단위의 파티션별로 예측복호화를 수행함으로서, 현재영상의 복원영상을 생성할 수 있다.
결국, 비디오 복호화 장치(200)는, 부호화 과정에서 최대 부호화 단위마다 재귀적으로 부호화를 수행하여 최소 부호화 오차를 발생시킨 부호화 단위에 대한 정보를 획득하여, 현재 픽처에 대한 복호화에 이용할 수 있다. 즉, 최대 부호화 단위마다 최적 부호화 단위로 결정된 트리 구조에 따른 부호화 단위들의 부호화된 영상 데이터의 복호화가 가능해진다.
따라서, 높은 해상도의 영상 또는 데이터량이 과도하게 많은 영상이라도 부호화단으로부터 전송된 최적 부호화 모드에 관한 정보를 이용하여, 영상의 특성에 적응적으로 결정된 부호화 단위의 크기 및 부호화 모드에 따라 효율적으로 영상 데이터를 복호화하여 복원할 수 있다.
도 9 은 본 발명의 일 실시예에 따른 부호화 단위의 개념을 도시한다.
부호화 단위의 예는, 부호화 단위의 크기는 너비x높이로 표현되며, 크기 64x64인 부호화 단위부터, 32x32, 16x16, 8x8를 포함할 수 있다. 크기 64x64의 부호화 단위는 크기 64x64, 64x32, 32x64, 32x32의 파티션들로 분할될 수 있고, 크기 32x32의 부호화 단위는 크기 32x32, 32x16, 16x32, 16x16의 파티션들로, 크기 16x16의 부호화 단위는 크기 16x16, 16x8, 8x16, 8x8의 파티션들로, 크기 8x8의 부호화 단위는 크기 8x8, 8x4, 4x8, 4x4의 파티션들로 분할될 수 있다.
비디오 데이터(310)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 2로 설정되어 있다. 비디오 데이터(320)에 대해서는, 해상도는 1920x1080, 부호화 단위의 최대 크기는 64, 최대 심도가 3로 설정되어 있다. 비디오 데이터(330)에 대해서는, 해상도는 352x288, 부호화 단위의 최대 크기는 16, 최대 심도가 1로 설정되어 있다. 도 9에 도시된 최대 심도는, 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낸다.
해상도가 높거나 데이터량이 많은 경우 부호화 효율의 향상 뿐만 아니라 영상 특성을 정확히 반형하기 위해 부호화 사이즈의 최대 크기가 상대적으로 큰 것이 바람직하다. 따라서, 비디오 데이터(330)에 비해, 해상도가 높은 비디오 데이터(310, 320)는 부호화 사이즈의 최대 크기가 64로 선택될 수 있다.
비디오 데이터(310)의 최대 심도는 2이므로, 비디오 데이터(310)의 부호화 단위(315)는 장축 크기가 64인 최대 부호화 단위로부터, 2회 분할하며 심도가 두 계층 깊어져서 장축 크기가 32, 16인 부호화 단위들까지 포함할 수 있다. 반면, 비디오 데이터(330)의 최대 심도는 1이므로, 비디오 데이터(330)의 부호화 단위(335)는 장축 크기가 16인 부호화 단위들로부터, 1회 분할하며 심도가 한 계층 깊어져서 장축 크기가 8인 부호화 단위들까지 포함할 수 있다.
비디오 데이터(320)의 최대 심도는 3이므로, 비디오 데이터(320)의 부호화 단위(325)는 장축 크기가 64인 최대 부호화 단위로부터, 3회 분할하며 심도가 세 계층 깊어져서 장축 크기가 32, 16, 8인 부호화 단위들까지 포함할 수 있다. 심도가 깊어질수록 세부 정보의 표현능력이 향상될 수 있다.
도 10 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 부호화부의 블록도를 도시한다.
일 실시예에 따른 영상 부호화부(400)는, 비디오 부호화 장치(100)의 부호화 단위 결정부(120)에서 영상 데이터를 부호화하는데 거치는 작업들을 포함한다. 즉, 인트라 예측부(410)는 현재 프레임(405) 중 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 추정부(420) 및 움직임 보상부(425)는 인터 모드의 현재 프레임(405) 및 참조 프레임(495)을 이용하여 인터 추정 및 움직임 보상을 수행한다.
인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)로부터 출력된 데이터는 변환부(430) 및 양자화부(440)를 거쳐 양자화된 변환 계수로 출력된다. 양자화된 변환 계수는 역양자화부(460), 역변환부(470)을 통해 공간 영역의 데이터로 복원되고, 복원된 공간 영역의 데이터는 디블로킹부(480) 및 루프 필터링부(490)를 거쳐 후처리되어 참조 프레임(495)으로 출력된다. 양자화된 변환 계수는 엔트로피 부호화부(450)를 거쳐 비트스트림(455)으로 출력될 수 있다.
일 실시예에 따른 비디오 부호화 장치(100)에 적용되기 위해서는, 영상 부호화부(400)의 구성 요소들인 인트라 예측부(410), 움직임 추정부(420), 움직임 보상부(425), 변환부(430), 양자화부(440), 엔트로피 부호화부(450), 역양자화부(460), 역변환부(470), 디블로킹부(480) 및 루프 필터링부(490)가 모두, 최대 부호화 단위마다 최대 심도를 고려하여 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위에 기반한 작업을 수행하여야 한다.
특히, 인트라 예측부(410), 움직임 추정부(420) 및 움직임 보상부(425)는 현재 최대 부호화 단위의 최대 크기 및 최대 심도를 고려하여 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위의 파티션 및 예측 모드를 결정하며, 변환부(430)는 트리 구조에 따른 부호화 단위들 중 각각의 부호화 단위 내의 변환 단위의 크기를 결정하여야 한다.
움직임 보상부(425)는 양방향 예측이 가능한 B 슬라이스 타입의 참조영상을 결정하기 위해, L0 리스트 및 L1 리스트를 결정할 수 있다. B 슬라이스 타입의 영상이 시간적으로 선행하는 참조영상만을 가지는 것으로 판단되는 경우, 움직임 보상부(425)는 제1 참조리스트와 제2 참조리스트의 참조 순서를 동일하게 결정하여, 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상을 동일한 순서로 참조하여 보상을 수행하여 복원영상을 생성할 수 있다.
도 11 는 본 발명의 일 실시예에 따른 부호화 단위에 기초한 영상 복호화부의 블록도를 도시한다.
비트스트림(505)이 파싱부(510)를 거쳐 복호화 대상인 부호화된 영상 데이터 및 복호화를 위해 필요한 부호화에 관한 정보가 파싱된다. 부호화된 영상 데이터는 엔트로피 복호화부(520) 및 역양자화부(530)를 거쳐 역양자화된 데이터로 출력되고, 역변환부(540)를 거쳐 공간 영역의 영상 데이터가 복원된다.
공간 영역의 영상 데이터에 대해서, 인트라 예측부(550)는 인트라 모드의 부호화 단위에 대해 인트라 예측을 수행하고, 움직임 보상부(560)는 참조 프레임(585)를 함께 이용하여 인터 모드의 부호화 단위에 대해 움직임 보상을 수행한다.
인트라 예측부(550) 및 움직임 보상부(560)를 거친 공간 영역의 데이터는 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리되어 복원 프레임(595)으로 출력될 수 있다. 또한, 디블로킹부(570) 및 루프 필터링부(580)를 거쳐 후처리된 데이터는 참조 프레임(585)으로서 출력될 수 있다.
비디오 복호화 장치(200)의 영상 데이터 복호화부(230)에서 영상 데이터를 복호화하기 위해, 일 실시예에 따른 영상 복호화부(500)의 파싱부(510) 이후의 단계별 작업들이 수행될 수 있다.
일 실시예에 따른 비디오 복호화 장치(200)에 적용되기 위해서는, 영상 복호화부(500)의 구성 요소들인 파싱부(510), 엔트로피 복호화부(520), 역양자화부(530), 역변환부(540), 인트라 예측부(550), 움직임 보상부(560), 디블로킹부(570) 및 루프 필터링부(580)가 모두, 최대 부호화 단위마다 트리 구조에 따른 부호화 단위들에 기반하여 작업을 수행하여야 한다.
특히, 인트라 예측부(550), 움직임 보상부(560)는 트리 구조에 따른 부호화 단위들 각각마다 파티션 및 예측 모드를 결정하며, 역변환부(540)는 부호화 단위마다 변환 단위의 크기를 결정하여야 한다.
움직임 보상부(560)는 양방향 예측이 가능한 B 슬라이스 타입의 참조영상을 결정하기 위해, L0 리스트 및 L1 리스트를 결정할 수 있다. B 슬라이스 타입의 영상이 시간적으로 선행하는 참조영상만을 가지는 것으로 판단되는 경우, 움직임 보상부(560)는 제1 참조리스트와 제2 참조리스트의 참조 순서를 동일하게 결정하여, 제1 참조리스트와 제2 참조리스트가 가리키는 참조영상을 동일한 순서로 참조하여 보상을 수행하여 복원영상을 생성할 수 있다.
도 12 는 본 발명의 일 실시예에 따른 심도별 부호화 단위 및 파티션을 도시한다.
일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)는 영상 특성을 고려하기 위해 계층적인 부호화 단위를 사용한다. 부호화 단위의 최대 높이 및 너비, 최대 심도는 영상의 특성에 따라 적응적으로 결정될 수도 있으며, 사용자의 요구에 따라 다양하게 설정될 수도 있다. 미리 설정된 부호화 단위의 최대 크기에 따라, 심도별 부호화 단위의 크기가 결정될 수 있다.
일 실시예에 따른 부호화 단위의 계층 구조(600)는 부호화 단위의 최대 높이 및 너비가 64이며, 최대 심도가 4인 경우를 도시하고 있다. 이 때, 최대 심도는 최대 부호화 단위로부터 최소 부호화 단위까지의 총 분할 횟수를 나타낸다. 일 실시예에 따른 부호화 단위의 계층 구조(600)의 세로축을 따라서 심도가 깊어지므로 심도별 부호화 단위의 높이 및 너비가 각각 분할한다. 또한, 부호화 단위의 계층 구조(600)의 가로축을 따라, 각각의 심도별 부호화 단위의 예측 부호화의 기반이 되는 예측 단위 및 파티션이 도시되어 있다.
즉, 부호화 단위(610)는 부호화 단위의 계층 구조(600) 중 최대 부호화 단위로서 심도가 0이며, 부호화 단위의 크기, 즉 높이 및 너비가 64x64이다. 세로축을 따라 심도가 깊어지며, 크기 32x32인 심도 1의 부호화 단위(620), 크기 16x16인 심도 2의 부호화 단위(630), 크기 8x8인 심도 3의 부호화 단위(640), 크기 4x4인 심도 4의 부호화 단위(650)가 존재한다. 크기 4x4인 심도 4의 부호화 단위(650)는 최소 부호화 단위이다.
각각의 심도별로 가로축을 따라, 부호화 단위의 예측 단위 및 파티션들이 배열된다. 즉, 심도 0의 크기 64x64의 부호화 단위(610)가 예측 단위라면, 예측 단위는 크기 64x64의 부호화 단위(610)에 포함되는 크기 64x64의 파티션(610), 크기 64x32의 파티션들(612), 크기 32x64의 파티션들(614), 크기 32x32의 파티션들(616)로 분할될 수 있다.
마찬가지로, 심도 1의 크기 32x32의 부호화 단위(620)의 예측 단위는, 크기 32x32의 부호화 단위(620)에 포함되는 크기 32x32의 파티션(620), 크기 32x16의 파티션들(622), 크기 16x32의 파티션들(624), 크기 16x16의 파티션들(626)로 분할될 수 있다.
마찬가지로, 심도 2의 크기 16x16의 부호화 단위(630)의 예측 단위는, 크기 16x16의 부호화 단위(630)에 포함되는 크기 16x16의 파티션(630), 크기 16x8의 파티션들(632), 크기 8x16의 파티션들(634), 크기 8x8의 파티션들(636)로 분할될 수 있다.
마찬가지로, 심도 3의 크기 8x8의 부호화 단위(640)의 예측 단위는, 크기 8x8의 부호화 단위(640)에 포함되는 크기 8x8의 파티션(640), 크기 8x4의 파티션들(642), 크기 4x8의 파티션들(644), 크기 4x4의 파티션들(646)로 분할될 수 있다.
마지막으로, 심도 4의 크기 4x4의 부호화 단위(650)는 최소 부호화 단위이며 최하위 심도의 부호화 단위이고, 해당 예측 단위도 크기 4x4의 파티션(650)으로만 설정될 수 있다.
일 실시예에 따른 비디오 부호화 장치(100)의 부호화 단위 결정부(120)는, 최대 부호화 단위(610)의 부호화 심도를 결정하기 위해, 최대 부호화 단위(610)에 포함되는 각각의 심도의 부호화 단위마다 부호화를 수행하여야 한다.
동일한 범위 및 크기의 데이터를 포함하기 위한 심도별 부호화 단위의 개수는, 심도가 깊어질수록 심도별 부호화 단위의 개수도 증가한다. 예를 들어, 심도 1의 부호화 단위 한 개가 포함하는 데이터에 대해서, 심도 2의 부호화 단위는 네 개가 필요하다. 따라서, 동일한 데이터의 부호화 결과를 심도별로 비교하기 위해서, 한 개의 심도 1의 부호화 단위 및 네 개의 심도 2의 부호화 단위를 이용하여 각각 부호화되어야 한다.
각각의 심도별 부호화를 위해서는, 부호화 단위의 계층 구조(600)의 가로축을 따라, 심도별 부호화 단위의 예측 단위들마다 부호화를 수행하여, 해당 심도에서 가장 작은 부호화 오차인 대표 부호화 오차가 선택될 수다. 또한, 부호화 단위의 계층 구조(600)의 세로축을 따라 심도가 깊어지며, 각각의 심도마다 부호화를 수행하여, 심도별 대표 부호화 오차를 비교하여 최소 부호화 오차가 검색될 수 있다. 최대 부호화 단위(610) 중 최소 부호화 오차가 발생하는 심도 및 파티션이 최대 부호화 단위(610)의 부호화 심도 및 파티션 타입으로 선택될 수 있다.
도 13 은 본 발명의 일 실시예에 따른, 부호화 단위 및 변환 단위의 관계를 도시한다.
일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)는, 최대 부호화 단위마다 최대 부호화 단위보다 작거나 같은 크기의 부호화 단위로 영상을 부호화하거나 복호화한다. 부호화 과정 중 변환을 위한 변환 단위의 크기는 각각의 부호화 단위보다 크지 않은 데이터 단위를 기반으로 선택될 수 있다.
예를 들어, 일 실시예에 따른 비디오 부호화 장치(100) 또는 일 실시예에 따른 비디오 복호화 장치(200)에서, 현재 부호화 단위(710)가 64x64 크기일 때, 32x32 크기의 변환 단위(720)를 이용하여 변환이 수행될 수 있다.
또한, 64x64 크기의 부호화 단위(710)의 데이터를 64x64 크기 이하의 32x32, 16x16, 8x8, 4x4 크기의 변환 단위들로 각각 변환을 수행하여 부호화한 후, 원본과의 오차가 가장 적은 변환 단위가 선택될 수 있다.
도 14 은 본 발명의 일 실시예에 따라, 심도별 부호화 정보들을 도시한다.
일 실시예에 따른 비디오 부호화 장치(100)의 출력부(130)는 부호화 모드에 관한 정보로서, 각각의 부호화 심도의 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 부호화하여 전송할 수 있다.
파티션 타입에 대한 정보(800)는, 현재 부호화 단위의 예측 부호화를 위한 데이터 단위로서, 현재 부호화 단위의 예측 단위가 분할된 파티션의 형태에 대한 정보를 나타낸다. 예를 들어, 크기 2Nx2N의 현재 부호화 단위 CU_0는, 크기 2Nx2N의 파티션(802), 크기 2NxN의 파티션(804), 크기 Nx2N의 파티션(806), 크기 NxN의 파티션(808) 중 어느 하나의 타입으로 분할되어 이용될 수 있다. 이 경우 현재 부호화 단위의 파티션 타입에 관한 정보(800)는 크기 2Nx2N의 파티션(802), 크기 2NxN의 파티션(804), 크기 Nx2N의 파티션(806) 및 크기 NxN의 파티션(808) 중 하나를 나타내도록 설정된다.
예측 모드에 관한 정보(810)는, 각각의 파티션의 예측 모드를 나타낸다. 예를 들어 예측 모드에 관한 정보(810)를 통해, 파티션 타입에 관한 정보(800)가 가리키는 파티션이 인트라 모드(812), 인터 모드(814) 및 스킵 모드(816) 중 하나로 예측 부호화가 수행되는지 여부가 설정될 수 있다.
또한, 변환 단위 크기에 관한 정보(820)는 현재 부호화 단위를 어떠한 변환 단위를 기반으로 변환을 수행할지 여부를 나타낸다. 예를 들어, 변환 단위는 제 1 인트라 변환 단위 크기(822), 제 2 인트라 변환 단위 크기(824), 제 1 인터 변환 단위 크기(826), 제 2 인트라 변환 단위 크기(828) 중 하나일 수 있다.
일 실시예에 따른 비디오 복호화 장치(200)의 영상 데이터 및 부호화 정보 추출부(210)는, 각각의 심도별 부호화 단위마다 파티션 타입에 관한 정보(800), 예측 모드에 관한 정보(810), 변환 단위 크기에 대한 정보(820)를 추출하여 복호화에 이용할 수 있다.
도 15 는 본 발명의 일 실시예에 따른 심도별 부호화 단위를 도시한다.
심도의 변화를 나타내기 위해 분할 정보가 이용될 수 있다. 분할 정보는 현재 심도의 부호화 단위가 하위 심도의 부호화 단위로 분할될지 여부를 나타낸다.
심도 0 및 2N_0x2N_0 크기의 부호화 단위(900)의 예측 부호화를 위한 예측 단위(910)는 2N_0x2N_0 크기의 파티션 타입(912), 2N_0xN_0 크기의 파티션 타입(914), N_0x2N_0 크기의 파티션 타입(916), N_0xN_0 크기의 파티션 타입(918)을 포함할 수 있다. 예측 단위가 대칭적 비율로 분할된 파티션들(912, 914, 916, 918)만이 예시되어 있지만, 전술한 바와 같이 파티션 타입은 이에 한정되지 않고 비대칭적 파티션, 임의적 형태의 파티션, 기하학적 형태의 파티션 등을 포함할 수 있다.
파티션 타입마다, 한 개의 2N_0x2N_0 크기의 파티션, 두 개의 2N_0xN_0 크기의 파티션, 두 개의 N_0x2N_0 크기의 파티션, 네 개의 N_0xN_0 크기의 파티션마다 반복적으로 예측 부호화가 수행되어야 한다. 크기 2N_0x2N_0, 크기 N_0x2N_0 및 크기 2N_0xN_0 및 크기 N_0xN_0의 파티션에 대해서는, 인트라 모드 및 인터 모드로 예측 부호화가 수행될 수 있다. 스킵 모드는 크기 2N_0x2N_0의 파티션에 예측 부호화가 대해서만 수행될 수 있다.
크기 2N_0x2N_0, 2N_0xN_0 및 N_0x2N_0의 파티션 타입(912, 914, 916) 중 하나에 의한 부호화 오차가 가장 작다면, 더 이상 하위 심도로 분할할 필요 없다.
크기 N_0xN_0의 파티션 타입(918)에 의한 부호화 오차가 가장 작다면, 심도 0를 1로 변경하며 분할하고(920), 심도 2 및 크기 N_0xN_0의 파티션 타입의 부호화 단위들(930)에 대해 반복적으로 부호화를 수행하여 최소 부호화 오차를 검색해 나갈 수 있다.
심도 1 및 크기 2N_1x2N_1 (=N_0xN_0)의 부호화 단위(930)의 예측 부호화를 위한 예측 단위(940)는, 크기 2N_1x2N_1의 파티션 타입(942), 크기 2N_1xN_1의 파티션 타입(944), 크기 N_1x2N_1의 파티션 타입(946), 크기 N_1xN_1의 파티션 타입(948)을 포함할 수 있다.
또한, 크기 N_1xN_1 크기의 파티션 타입(948)에 의한 부호화 오차가 가장 작다면, 심도 1을 심도 2로 변경하며 분할하고(950), 심도 2 및 크기 N_2xN_2의 부호화 단위들(960)에 대해 반복적으로 부호화를 수행하여 최소 부호화 오차를 검색해 나갈 수 있다.
최대 심도가 d인 경우, 심도별 부호화 단위는 심도 d-1일 때까지 설정되고, 분할 정보는 심도 d-2까지 설정될 수 있다. 즉, 심도 d-2로부터 분할(970)되어 심도 d-1까지 부호화가 수행될 경우, 심도 d-1 및 크기 2N_(d-1)x2N_(d-1)의 부호화 단위(980)의 예측 부호화를 위한 예측 단위(990)는, 크기 2N_(d-1)x2N_(d-1)의 파티션 타입(992), 크기 2N_(d-1)xN_(d-1)의 파티션 타입(994), 크기 N_(d-1)x2N_(d-1)의 파티션 타입(996), 크기 N_(d-1)xN_(d-1)의 파티션 타입(998)을 포함할 수 있다.
파티션 타입 가운데, 한 개의 크기 2N_(d-1)x2N_(d-1)의 파티션, 두 개의 크기 2N_(d-1)xN_(d-1)의 파티션, 두 개의 크기 N_(d-1)x2N_(d-1)의 파티션, 네 개의 크기 N_(d-1)xN_(d-1)의 파티션마다 반복적으로 예측 부호화를 통한 부호화가 수행되어, 최소 부호화 오차가 발생하는 파티션 타입이 검색될 수 있다.
크기 N_(d-1)xN_(d-1)의 파티션 타입(998)에 의한 부호화 오차가 가장 작더라도, 최대 심도가 d이므로, 심도 d-1의 부호화 단위 CU_(d-1)는 더 이상 하위 심도로의 분할 과정을 거치지 않으며, 현재 최대 부호화 단위(900)에 대한 부호화 심도가 심도 d-1로 결정되고, 파티션 타입은 N_(d-1)xN_(d-1)로 결정될 수 있다. 또한 최대 심도가 d이므로, 심도 d-1의 부호화 단위(952)에 대해 분할 정보는 설정되지 않는다.
데이터 단위(999)은, 현재 최대 부호화 단위에 대한 '최소 단위'라 지칭될 수 있다. 일 실시예에 따른 최소 단위는, 최하위 부호화 심도인 최소 부호화 단위가 4분할된 크기의 정사각형의 데이터 단위일 수 있다. 이러한 반복적 부호화 과정을 통해, 일 실시예에 따른 비디오 부호화 장치(100)는 부호화 단위(900)의 심도별 부호화 오차를 비교하여 가장 작은 부호화 오차가 발생하는 심도를 선택하여, 부호화 심도를 결정하고, 해당 파티션 타입 및 예측 모드가 부호화 심도의 부호화 모드로 설정될 수 있다.
이런 식으로 심도 0, 1, ..., d-1, d의 모든 심도별 최소 부호화 오차를 비교하여 오차가 가장 작은 심도가 선택되어 부호화 심도로 결정될 수 있다. 부호화 심도, 및 예측 단위의 파티션 타입 및 예측 모드는 부호화 모드에 관한 정보로써 부호화되어 전송될 수 있다. 또한, 심도 0으로부터 부호화 심도에 이르기까지 부호화 단위가 분할되어야 하므로, 부호화 심도의 분할 정보만이 '0'으로 설정되고, 부호화 심도를 제외한 심도별 분할 정보는 '1'로 설정되어야 한다.
일 실시예에 따른 비디오 복호화 장치(200)의 영상 데이터 및 부호화 정보 추출부(220)는 부호화 단위(900)에 대한 부호화 심도 및 예측 단위에 관한 정보를 추출하여 부호화 단위(912)를 복호화하는데 이용할 수 있다. 일 실시예에 따른 비디오 복호화 장치(200)는 심도별 분할 정보를 이용하여 분할 정보가 '0'인 심도를 부호화 심도로 파악하고, 해당 심도에 대한 부호화 모드에 관한 정보를 이용하여 복호화에 이용할 수 있다.
도 16, 17 및 18는 본 발명의 일 실시예에 따른, 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
부호화 단위(1010)는, 최대 부호화 단위에 대해 일 실시예에 따른 비디오 부호화 장치(100)가 결정한 부호화 심도별 부호화 단위들이다. 예측 단위(1060)는 부호화 단위(1010) 중 각각의 부호화 심도별 부호화 단위의 예측 단위들의 파티션들이며, 변환 단위(1070)는 각각의 부호화 심도별 부호화 단위의 변환 단위들이다.
심도별 부호화 단위들(1010)은 최대 부호화 단위의 심도가 0이라고 하면, 부호화 단위들(1012, 1054)은 심도가 1, 부호화 단위들(1014, 1016, 1018, 1028, 1050, 1052)은 심도가 2, 부호화 단위들(1020, 1022, 1024, 1026, 1030, 1032, 1048)은 심도가 3, 부호화 단위들(1040, 1042, 1044, 1046)은 심도가 4이다.
예측 단위들(1060) 중 일부 파티션(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 부호화 단위가 분할된 형태이다. 즉, 파티션(1014, 1022, 1050, 1054)은 2NxN의 파티션 타입이며, 파티션(1016, 1048, 1052)은 Nx2N의 파티션 타입, 파티션(1032)은 NxN의 파티션 타입이다. 심도별 부호화 단위들(1010)의 예측 단위 및 파티션들은 각각의 부호화 단위보다 작거나 같다.
변환 단위들(1070) 중 일부(1052)의 영상 데이터에 대해서는 부호화 단위에 비해 작은 크기의 데이터 단위로 변환 또는 역변환이 수행된다. 또한, 변환 단위(1014, 1016, 1022, 1032, 1048, 1050, 1052, 1054)는 예측 단위들(1060) 중 해당 예측 단위 및 파티션와 비교해보면, 서로 다른 크기 또는 형태의 데이터 단위이다. 즉, 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 다른 비디오 복호화 장치(200)는 동일한 부호화 단위에 대한 인트라 예측/움직임 추정/움직임 보상 작업, 및 변환/역변환 작업이라 할지라도, 각각 별개의 데이터 단위를 기반으로 수행할 수 있다.
이에 따라, 최대 부호화 단위마다, 영역별로 계층적인 구조의 부호화 단위들마다 재귀적으로 부호화가 수행되어 최적 부호화 단위가 결정됨으로써, 재귀적 트리 구조에 따른 부호화 단위들이 구성될 수 있다. 부호화 정보는 부호화 단위에 대한 분할 정보, 파티션 타입 정보, 예측 모드 정보, 변환 단위 크기 정보를 포함할 수 있다. 이하 표 1은, 일 실시예에 따른 비디오 부호화 장치(100) 및 일 실시예에 따른 비디오 복호화 장치(200)에서 설정할 수 있는 일례를 나타낸다.
표 1
분할 정보 0 (현재 심도 d의 크기 2Nx2N의 부호화 단위에 대한 부호화) 분할 정보 1
예측 모드 파티션 타입 변환 단위 크기 하위 심도 d+1의 부호화 단위들마다 반복적 부호화
인트라 인터스킵 (2Nx2N만) 대칭형 파티션 타입 비대칭형 파티션 타입 변환 단위 분할 정보 0 변환 단위 분할 정보 1
2Nx2N2NxNNx2NNxN 2NxnU2NxnDnLx2NnRx2N 2Nx2N NxN (대칭형 파티션 타입) N/2xN/2 (비대칭형 파티션 타입)
일 실시예에 따른 비디오 부호화 장치(100)의 출력부(130)는 트리 구조에 따른 부호화 단위들에 대한 부호화 정보를 출력하고, 일 실시예에 따른 비디오 복호화 장치(200)의 부호화 정보 추출부(220)는 수신된 비트스트림으로부터 트리 구조에 따른 부호화 단위들에 대한 부호화 정보를 추출할 수 있다.
분할 정보는 현재 부호화 단위가 하위 심도의 부호화 단위들로 분할되는지 여부를 나타낸다. 현재 심도 d의 분할 정보가 0이라면, 현재 부호화 단위가 현재 부호화 단위가 하위 부호화 단위로 더 이상 분할되지 않는 심도가 부호화 심도이므로, 부호화 심도에 대해서 파티션 타입 정보, 예측 모드, 변환 단위 크기 정보가 정의될 수 있다. 분할 정보에 따라 한 단계 더 분할되어야 하는 경우에는, 분할된 4개의 하위 심도의 부호화 단위마다 독립적으로 부호화가 수행되어야 한다.
예측 모드는, 인트라 모드, 인터 모드 및 스킵 모드 중 하나로 나타낼 수 있다. 인트라 모드 및 인터 모드는 모든 파티션 타입에서 정의될 수 있으며, 스킵 모드는 파티션 타입 2Nx2N에서만 정의될 수 있다.
파티션 타입 정보는, 예측 단위의 높이 또는 너비가 대칭적 비율로 분할된 대칭적 파티션 타입 2Nx2N, 2NxN, Nx2N 및 NxN 과, 비대칭적 비율로 분할된 비대칭적 파티션 타입 2NxnU, 2NxnD, nLx2N, nRx2N를 나타낼 수 있다. 비대칭적 파티션 타입 2NxnU 및 2NxnD는 각각 높이가 1:3 및 3:1로 분할된 형태이며, 비대칭적 파티션 타입 nLx2N 및 nRx2N은 각각 너비가 1:3 및 3:1로 분할된 형태를 나타낸다.
변환 단위 크기는 인트라 모드에서 두 종류의 크기, 인터 모드에서 두 종류의 크기로 설정될 수 있다. 즉, 변환 단위 분할 정보가 0 이라면, 변환 단위의 크기가 현재 부호화 단위의 크기 2Nx2N로 설정된다. 변환 단위 분할 정보가 1이라면, 현재 부호화 단위가 분할된 크기의 변환 단위가 설정될 수 있다. 또한 크기 2Nx2N인 현재 부호화 단위에 대한 파티션 타입이 대칭형 파티션 타입이라면 변환 단위의 크기는 NxN, 비대칭형 파티션 타입이라면 N/2xN/2로 설정될 수 있다.
일 실시예에 따른 트리 구조에 따른 부호화 단위들의 부호화 정보는, 부호화 심도의 부호화 단위, 예측 단위 및 최소 단위 단위 중 적어도 하나에 대해 할당될 수 있다. 부호화 심도의 부호화 단위는 동일한 부호화 정보를 보유하고 있는 예측 단위 및 최소 단위를 하나 이상 포함할 수 있다.
따라서, 인접한 데이터 단위들끼리 각각 보유하고 있는 부호화 정보들을 확인하면, 동일한 부호화 심도의 부호화 단위에 포함되는지 여부가 확인될 수 있다. 또한, 데이터 단위가 보유하고 있는 부호화 정보를 이용하면 해당 부호화 심도의 부호화 단위를 확인할 수 있으므로, 최대 부호화 단위 내의 부호화 심도들의 분포가 유추될 수 있다.
따라서 이 경우 현재 부호화 단위가 주변 데이터 단위를 참조하여 예측하기 경우, 현재 부호화 단위에 인접하는 심도별 부호화 단위 내의 데이터 단위의 부호화 정보가 직접 참조되어 이용될 수 있다.
또 다른 실시예로, 현재 부호화 단위가 주변 부호화 단위를 참조하여 예측 부호화가 수행되는 경우, 인접하는 심도별 부호화 단위의 부호화 정보를 이용하여, 심도별 부호화 단위 내에서 현재 부호화 단위에 인접하는 데이터가 검색됨으로써 주변 부호화 단위가 참조될 수도 있다.
도 19 은 표 1의 부호화 모드 정보에 따른 부호화 단위, 예측 단위 및 변환 단위의 관계를 도시한다.
최대 부호화 단위(1300)는 부호화 심도의 부호화 단위들(1302, 1304, 1306, 1312, 1314, 1316, 1318)을 포함한다. 이 중 하나의 부호화 단위(1318)는 부호화 심도의 부호화 단위이므로 분할 정보가 0으로 설정될 수 있다. 크기 2Nx2N의 부호화 단위(1318)의 파티션 타입 정보는, 파티션 타입 2Nx2N(1322), 2NxN(1324), Nx2N(1326), NxN(1328), 2NxnU(1332), 2NxnD(1334), nLx2N(1336) 및 nRx2N(1338) 중 하나로 설정될 수 있다.
변환 단위 분할 정보(TU size flag)는 변환 인덱스의 일종으로서, 변환 인덱스에 대응하는 변환 단위의 크기는 부호화 단위의 예측 단위 타입 또는 파티션 타입에 따라 변경될 수 있다.
예를 들어, 파티션 타입 정보가 대칭형 파티션 타입 2Nx2N(1322), 2NxN(1324), Nx2N(1326) 및 NxN(1328) 중 하나로 설정되어 있는 경우, 변환 단위 분할 정보가 0이면 크기 2Nx2N의 변환 단위(1342)가 설정되고, 변환 단위 분할 정보가 1이면 크기 NxN의 변환 단위(1344)가 설정될 수 있다.
파티션 타입 정보가 비대칭형 파티션 타입 2NxnU(1332), 2NxnD(1334), nLx2N(1336) 및 nRx2N(1338) 중 하나로 설정된 경우, 변환 단위 분할 정보(TU size flag)가 0이면 크기 2Nx2N의 변환 단위(1352)가 설정되고, 변환 단위 분할 정보가 1이면 크기 N/2xN/2의 변환 단위(1354)가 설정될 수 있다.
도 19을 참조하여 전술된 변환 단위 분할 정보(TU size flag)는 0 또는 1의 값을 갖는 플래그이지만, 일 실시예에 따른 변환 단위 분할 정보가 1비트의 플래그로 한정되는 것은 아니며 설정에 따라 0, 1, 2, 3.. 등으로 증가하며 변환 단위가 계층적으로 분할될 수도 있다. 변환 단위 분할 정보는 변환 인덱스의 한 실시예로써 이용될 수 있다.
이 경우, 일 실시예에 따른 변환 단위 분할 정보를 변환 단위의 최대 크기, 변환 단위의 최소 크기와 함께 이용하면, 실제로 이용된 변환 단위의 크기가 표현될 수 있다. 일 실시예에 따른 비디오 부호화 장치(100)는, 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보를 부호화할 수 있다. 부호화된 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보는 SPS에 삽입될 수 있다. 일 실시예에 따른 비디오 복호화 장치(200)는 최대 변환 단위 크기 정보, 최소 변환 단위 크기 정보 및 최대 변환 단위 분할 정보를 이용하여, 비디오 복호화에 이용할 수 있다.
예를 들어, (a) 현재 부호화 단위가 크기 64x64이고, 최대 변환 단위 크기는 32x32이라면, (a-1) 변환 단위 분할 정보가 0일 때 변환 단위의 크기가 32x32, (a-2) 변환 단위 분할 정보가 1일 때 변환 단위의 크기가 16x16, (a-3) 변환 단위 분할 정보가 2일 때 변환 단위의 크기가 8x8로 설정될 수 있다.
다른 예로, (b) 현재 부호화 단위가 크기 32x32이고, 최소 변환 단위 크기는 32x32이라면, (b-1) 변환 단위 분할 정보가 0일 때 변환 단위의 크기가 32x32로 설정될 수 있으며, 변환 단위의 크기가 32x32보다 작을 수는 없으므로 더 이상의 변환 단위 분할 정보가 설정될 수 없다.
또 다른 예로, (c) 현재 부호화 단위가 크기 64x64이고, 최대 변환 단위 분할 정보가 1이라면, 변환 단위 분할 정보는 0 또는 1일 수 있으며, 다른 변환 단위 분할 정보가 설정될 수 없다.
따라서, 최대 변환 단위 분할 정보를 'MaxTransformSizeIndex', 최소 변환 단위 크기를 'MinTransformSize', 변환 단위 분할 정보가 0인 경우의 변환 단위 크기를 'RootTuSize'라고 정의할 때, 현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'는 아래 관계식 (1) 과 같이 정의될 수 있다.
CurrMinTuSize
= max (MinTransformSize, RootTuSize/(2^MaxTransformSizeIndex)) ... (1)
현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'와 비교하여, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 시스템상 채택 가능한 최대 변환 단위 크기를 나타낼 수 있다. 즉, 관계식 (1)에 따르면, 'RootTuSize/(2^MaxTransformSizeIndex)'는, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'를 최대 변환 단위 분할 정보에 상응하는 횟수만큼 분할한 변환 단위 크기이며, 'MinTransformSize'는 최소 변환 단위 크기이므로, 이들 중 작은 값이 현재 현재 부호화 단위에서 가능한 최소 변환 단위 크기 'CurrMinTuSize'일 수 있다.
일 실시예에 따른 최대 변환 단위 크기 RootTuSize는 예측 모드에 따라 달라질 수도 있다.
예를 들어, 현재 예측 모드가 인터 모드라면 RootTuSize는 아래 관계식 (2)에 따라 결정될 수 있다. 관계식 (2)에서 'MaxTransformSize'는 최대 변환 단위 크기, 'PUSize'는 현재 예측 단위 크기를 나타낸다.
RootTuSize = min(MaxTransformSize, PUSize) ......... (2)
즉 현재 예측 모드가 인터 모드라면, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 최대 변환 단위 크기 및 현재 예측 단위 크기 중 작은 값으로 설정될 수 있다.
현재 파티션 단위의 예측 모드가 예측 모드가 인트라 모드라면 모드라면 'RootTuSize'는 아래 관계식 (3)에 따라 결정될 수 있다. 'PartitionSize'는 현재 파티션 단위의 크기를 나타낸다.
RootTuSize = min(MaxTransformSize, PartitionSize) ...........(3)
즉 현재 예측 모드가 인트라 모드라면, 변환 단위 분할 정보가 0인 경우의 변환 단위 크기인 'RootTuSize'는 최대 변환 단위 크기 및 현재 파티션 단위 크기 중 작은 값으로 설정될 수 있다.
다만, 파티션 단위의 예측 모드에 따라 변동하는 일 실시예에 따른 현재 최대 변환 단위 크기 'RootTuSize'는 일 실시예일 뿐이며, 현재 최대 변환 단위 크기를 결정하는 요인이 이에 한정되는 것은 아님을 유의하여야 한다.
도 20 는 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 부호화 방법의 흐름도를 도시한다.
단계 1210에서, 현재영상은 적어도 하나의 최대 부호화 단위로 분할된다. 또한, 가능한 총 분할 횟수를 나타내는 최대 심도가 미리 설정될 수도 있다.
단계 1220에서, 심도마다 최대 부호화 단위의 영역이 분할된 적어도 하나의 분할 영역시 부호화되어, 적어도 하나의 분할 영역 별로 최종 부호화 결과가 출력될 심도가 결정되고 트리 구조에 따른 부호화 단위가 결정된다.
최대 부호화 단위는 심도가 깊어질 때마다 공간적으로 분할되어, 하위 심도의 부호화 단위들로 분할된다. 각각의 부호화 단위는, 인접하는 다른 부호화 단위와 독립적으로, 공간적으로 분할되면서 다시 하위 심도의 부호화 단위로 분할될 수 있다. 심도별로 부호화 단위들마다 반복적으로 부호화가 수행되어야 한다.
또한, 심도별 부호화 단위마다, 부호화 오차가 가장 작은 예측단위 및 파티션, 변환단위가 결정되어야 한다. 부호화 단위의 최소 부호화 오차를 발생시키는 부호화 심도가 결정되기 위해서, 예측오차의 부호화 오차가 측정되어 비교될 수 있다.
부호화 단위의 결정 과정에 있어서, 예측을 위한 예측 단위 및 파티션이 결정될 수 있다. 일 실시예에 따른 예측 단위 및 파티션은 부호화 단위의 예측에 따른 오차를 최소화하는 데이터 단위로 결정될 수 있다. 부호화 단위별로 예측 결과, 파티션이 결정되고 파티션을 위한 참조영상이 결정될 수 있다.
양방향 예측이 가능한 B 슬라이스 타입의 파티션의 예측보상을 위해, 참조영상 및 참조순서를 포함하는 참조리스트가 결정될 수 있다. 제1 참조리스트 및 제2 참조리스트는 각각 소정 방향 예측을 위한 참조영상들과 각 참조영상들의 참조순서를 포함할 수 있다. 다만, 현재 파티션을 위한 참조영상이 시간적으로 선행하는 영상만을 포함하는 경우에는, 제1 참조리스트 및 제2 참조리스트의 참조순서가 동일하게 결정될 수 있다. 제1 참조리스트 및 제2 참조리스트가 각각 가리키는 참조영상과 참조순서가 서로 동일하게 구성될 수 있다.
제1 참조리스트 및 제2 참조리스트가 가리키는 참조영상들과 각 참조영상들의 참조순서를 기초로 파티션의 복원영역이 생성될 수 있다.
부호화 단위마다 일 실시예에 따른 양방향 예측 또는 단일방향 예측을 위한 참조리스트를 이용하는 예측부호화가 수행되고, 부호화오차를 최소화하는 파티션 타입과 예측모드가 결정될 수 있다. 따라서, 최대 부호화 단위마다, 부호화 결과가 출력될 트리 구조의 부호화 단위, 파티션 타입 및 예측 모드가 결정될 수 있다.
단계 1230에서, 최대 부호화 단위마다 적어도 하나의 분할 영역 별 최종 부호화 결과인 영상 데이터와, 부호화 심도 및 부호화 모드에 관한 정보가 출력된다. 부호화 모드에 관한 정보는 부호화 심도에 관한 정보 또는 분할 정보, 예측 단위의 파티션 타입 정보, 예측 모드 정보, 변환 단위 계층 구조 정보 등을 포함할 수 있다.
일 실시예에 부호화 모드에 대한 정보로서, 일 실시예에 따른 양방향 예측 및 단일방향 예측에 의해 결정된 참조정보, 예측모드정보 등이 부호화될 수 있다. 참조정보는 참조영상을 나타내는 인덱스, 움직임정보 등을 포함할 수 있다. 일 실시예에 따른 예측모드정보, 일 실시예에 따른 B 슬라이스타입 영상의 제1 참조리스트와 제2 참조리스트의 동일성 여부를 나타내는 단일방향 예측 정보, 제4 슬라이스 타입을 포함하는 슬라이스 타입 정보 등을 포함할 수 있다.
부호화된 부호화 모드에 관한 정보는, 부호화된 영상 데이터와 함께 복호화단으로 전송될 수 있다.
도 21 은 본 발명의 일 실시예에 따라 트리 구조에 따른 부호화 단위에 기초한 비디오 예측을 수반하는 비디오 복호화 방법의 흐름도를 도시한다.
단계 1310에서, 부호화된 비디오에 대한 비트스트림이 수신되어 파싱된다.
단계 1320에서, 파싱된 비트스트림으로부터 최대 크기의 최대 부호화 단위에 할당되는 현재 픽처의 영상 데이터 및 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보가 추출된다. 최대 부호화 단위별 부호화 심도는, 현재 픽처의 부호화 과정에서 최대 부호화 단위별로 부호화 오차가 가장 적은 심도로 선택된 심도이다. 최대 부호화 단위별 부호화는, 최대 부호화 단위를 심도별로 계층적으로 분할한 적어도 하나의 데이터 단위에 기반하여 영상 데이터가 부호화된 것이다.
일 실시예에 따른 부호화 심도 및 부호화 모드에 관한 정보에 따르면, 최대 부호화 단위가 트리 구조에 따른 부호화 단위들로 분할될 수 있다. 트리 구조에 따른 부호화 단위들에 따른 부호화 단위는, 각각 부호화 심도의 부호화 단위이다. 따라서, 부호화 단위별 부호화 심도를 파악한 후 각각의 영상 데이터를 복호화함으로써 영상의 부복호화의 효율성이 향상될 수 있다.
일 실시예에 부호화 모드에 대한 정보로서, 일 실시예에 따른 양방향 예측 및 단일방향 예측을 위한 참조정보 및 예측모드정보가 추출될 수 있다. 일 실시예에 따른 양방향 예측 및 단일방향 예측을 위한 참조정보로서, 참조영상을 나타내는 인덱스, 움직임 정보 등이 추출될 수 있다. 일 실시예에 따른 양방향 예측 및 단일방향 예측을 위한 예측모드정보로서, B 슬라이스타입 영상의 제1 참조리스트와 제2 참조리스트의 동일성 여부를 나타내는 단일방향 예측 정보, 제4 슬라이스 타입을 포함하는 슬라이스 타입 정보 등이 추출될 수도 있다.
단계 1330에서, 최대 부호화 단위별 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 각각의 최대 부호화 단위의 영상 데이터가 복호화된다. 부호화 심도 및 부호화 모드에 관한 정보에 기초하여 현재 부호화 단위에 대해 복호화가 수행되면서, 파티션 타입정보에 기초하여 예측 단위 또는 파티션이 결정되고, 예측모드 정보에 기초하여 파티션별로 예측모드가 결정되어, 파티션별로 예측보상이 수행될 수 있다.
양방향 예측이 가능한 B 슬라이스 타입의 파티션의 예측보상을 위해, 참조영상 및 참조순서를 포함하는 참조리스트가 결정될 수 있다. 제1 참조리스트 및 제2 참조리스트가 가리키는 참조영상들과 해당 참조순서에 따라 참조하여, 파티션의 복원영역을 생성할 수 있다. 다만, 현재 파티션을 위한 참조영상이 시간적으로 선행하는 영상만을 포함하는 경우에는, 제1 참조리스트 및 제2 참조리스트의 참조순서가 동일하게 결정될 수 있다. 제1 참조리스트 및 제2 참조리스트가 각각 가리키는 참조영상과 참조순서가 서로 동일하게 구성될 수 있다.
부호화 단위마다, 최대 부호화 단위마다 복호화가 수행되면서 공간 영역의 영상 데이터가 복원되고, 픽처 및 픽처 시퀀스인 비디오가 복원될 수 있다. 복원된 비디오는 재생 장치에 의해 재생되거나, 저장 매체에 저장되거나, 네트워크를 통해 전송될 수 있다.
한편, 상술한 본 발명의 실시예들은 컴퓨터에서 실행될 수 있는 프로그램으로 작성가능하고, 컴퓨터로 읽을 수 있는 기록매체를 이용하여 상기 프로그램을 동작시키는 범용 디지털 컴퓨터에서 구현될 수 있다. 상기 컴퓨터로 읽을 수 있는 기록매체는 마그네틱 저장매체(예를 들면, 롬, 플로피 디스크, 하드디스크 등), 광학적 판독 매체(예를 들면, 시디롬, 디브이디 등)와 같은 저장매체를 포함한다.
이제까지 본 발명에 대하여 그 바람직한 실시예들을 중심으로 살펴보았다. 본 발명이 속하는 기술 분야에서 통상의 지식을 가진 자는 본 발명이 본 발명의 본질적인 특성에서 벗어나지 않는 범위에서 변형된 형태로 구현될 수 있음을 이해할 수 있을 것이다. 그러므로 개시된 실시예들은 한정적인 관점이 아니라 설명적인 관점에서 고려되어야 한다. 본 발명의 범위는 전술한 설명이 아니라 특허청구범위에 나타나 있으며, 그와 동등한 범위 내에 있는 모든 차이점은 본 발명에 포함된 것으로 해석되어야 할 것이다.

Claims (15)

  1. 비디오 예측 방법에 있어서,
    영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 단계;
    상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 단계; 및
    상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  2. 제 1 항에 있어서, 상기 제1 참조리스트와 제2 참조리스트 결정 단계는,
    B 슬라이스 타입인 현재영상의 예측을 위한 참조정보가 시간적으로 단일 방향 예측을 위한 참조영상들만을 가리키는 경우에, 상기 제1 참조리스트의 참조순서와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  3. 제 1 항에 있어서, 상기 복원영상 생성 단계는,
    B 슬라이스 타입인 현재영상의 상기 제2 참조리스트가 상기 참조영상을 포함하지 않는 경우, 상기 제1 참조리스트와 동일한 참조정보 및 참조순서를 포함하도록 상기 제2 참조리스트를 결정하여, 상기 제1 참조리스트 및 상기 제2 참조리스트가 가리키는 영상을 참조하여 상기 복원영상을 생성하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  4. 제 1 항에 있어서, 상기 제1 참조리스트와 제2 참조리스트 결정 단계는,
    B 슬라이스 타입인 현재영상의 참조영상이 단일 방향 예측을 위한 참조영상들만을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 참조영상의 개수가 서로 동일하고, 상기 제1 참조리스트에 포함되는 참조정보와 상기 제2 참조리스트에 포함되는 참조정보가 가리키는 영상이 서로 동일하고, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 서로 동일하게 결정하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  5. 제 1 항에 있어서, 상기 비디오 예측 방법은,
    상기 영상에 대해 예측을 수행하여, 상기 참조정보와 예측오차를 결정하는 단계; 및상기 참조정보 및 상기 예측오차를 부호화하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  6. 제 5 항에 있어서, 상기 부호화 단계는,
    B 슬라이스 타입인 영상의 예측을 위한 참조영상이 단일 방향 예측을 위한 참조영상들을 포함하는 경우에, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 부호화하는 단계를 포함하고,
    현재 슬라이스를 위한 상기 단일방향 예측 정보는, 슬라이스, 시퀀스, 픽처 중 적어도 하나의 영상 단위마다 부호화되는 것을 특징으로 하는 비디오 예측 방법.
  7. 제 5 항에 있어서, 상기 부호화 단계는,
    I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입에 추가적으로, 상기 현재영상을 위해 결정된 참조영상이 단일방향 예측을 위한 참조영상들을 포함하는 경우에는 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서가 동일하게 설정되는 예측 모드에 따라 예측부호화되는 신규 슬라이스 타입을 포함하는 슬라이스 타입 정보를 부호화하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  8. 제 1 항에 있어서, 상기 비디오 예측 방법은,
    영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 수신하는 단계를 더 포함하는 것을 특징으로 하는 비디오 예측 방법.
  9. 제 8 항에 있어서, 상기 참조정보 수신 단계는,
    B 슬라이스 타입인 영상의 예측을 위한 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서의 동일성 여부를 나타내는 단일방향예측 정보를 수신하는 단계를 포함하고,
    상기 제1 참조리스트와 상기 제2 참조리스트 결정 단계는,
    상기 단일방향예측 정보에 기초하여, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함하고,
    현재 슬라이스를 위한 상기 단일방향 예측 정보는, 슬라이스, 시퀀스, 픽처 중 적어도 하나의 영상 단위마다 수신되는 것을 특징으로 하는 비디오 예측 방법.
  10. 제 8 항에 있어서, 상기 참조정보 수신 단계는,
    I 슬라이스 타입, P 슬라이스 타입 및 B 슬라이스 타입에 추가적으로, 상기 현재영상을 위해 결정된 참조영상이 단일방향 예측을 위한 참조영상들만을 포함하는 여부에 기초하여, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 결정하는 신규 슬라이스 타입을 포함하는 슬라이스 타입 정보를 수신하는 단계를 포함하고,
    상기 제1 참조리스트와 상기 제2 참조리스트 결정 단계는,
    상기 슬라이스 타입 정보에 기초하여, 상기 제1 참조리스트와 상기 제2 참조리스트의 참조순서를 동일하게 결정하는 단계를 포함하는 것을 특징으로 하는 비디오 예측 방법.
  11. 제 1 항에 있어서, 상기 비디오 예측 방법은,
    상기 영상을 최대 크기의 부호화 단위로 분할한 적어도 하나의 최대 부호화 단위마다, 상기 최대 부호화 단위의 공간적 분할 횟수를 나타내는 심도에 따라 계층적으로 구성되는 심도별 부호화 단위들 중에서, 부호화 결과를 출력하기 위하여, 부호화 심도의 부호화 단위들을 포함하는 트리 구조에 따른 부호화 단위들을 결정하고, 상기 부호화 심도의 부호화 단위마다 예측 부호화를 위한 파티션을 결정하는 단계를 더 포함하고,
    상기 참조정보 결정 단계는, 상기 파티션을 기초로 상기 참조영사을 나타내는 참조정보를 결정하는 단계를 포함하고,
    상기 심도별 부호화 단위들 중에서, 주변 심도별 부호화 단위와 독립적으로, 각각의 심도별 부호화 단위마다 상기 부호화 심도의 부호화 단위가 결정되고, 상기 트리 구조에 따른 부호화 단위들은 상기 최대 부호화 단위 내에서 동일 영역에서는 심도에 따라 계층적이고 다른 영역들에 대해서는 독립적인 부호화 심도의 부호화 단위들로 구성되는 것을 특징으로 하는 비디오 예측 방법.
  12. 비디오 예측 장치에 있어서,
    영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보를 결정하는 참조정보 결정부;
    상기 참조정보 및 상기 참조영상의 참조순서를 포함하는 제1 참조리스트와 제2 참조리스트를 결정하는 참조리스트 결정부;
    상기 결정된 참조정보가 시간적으로 단일 방향 예측을 위한 영상들만을 나타내는 경우, 상기 제1 참조리스트와 상기 제2 참조리스트가 가리키는 영상을 동일한 참조순서로 참조하여 복원영상을 생성하는 복원영상 생성부; 및
    상기 참조정보 결정부, 상기 참조리스트 결정부 및 상기 복원영상 생성부의 동작들을 제어하는 프로세서를 포함하는 것을 특징으로 하는 비디오 예측 장치.
  13. 제 12 항에 있어서, 상기 비디오 예측 장치는,
    상기 영상에 대해 예측을 수행하여, 적어도 하나의 참조영상과 예측오차를 결정하는 예측부; 및
    상기 결정된 참조정보 및 예측오차를 부호화하는 예측부호화부를 더 포함하는 것을 특징으로 하는 비디오 예측 장치.
  14. 제 12 항에 있어서, 상기 비디오 예측 장치에 있어서,
    수신된 비트스트림을 파싱하여 상기 영상의 예측을 위한 적어도 하나의 참조영상을 나타내는 참조정보 및 예측오차를 추출하는 수신추출부를 더 포함하는 것을 특징으로 하는 비디오 예측 장치.
  15. 제 1 항의 비디오 예측 방법을 전산적으로 구현하기 위한 프로그램이 기록된 컴퓨터로 판독 가능한 기록매체.
PCT/KR2012/000154 2011-01-07 2012-01-06 양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치 WO2012093890A2 (ko)

Priority Applications (6)

Application Number Priority Date Filing Date Title
JP2013548358A JP2014506063A (ja) 2011-01-07 2012-01-06 双方向予測及び単一方向予測が可能なビデオ予測方法及びその装置、ビデオ符号化方法及びその装置、並びにビデオ復号化方法及びその装置
EP12732058.8A EP2663078A4 (en) 2011-01-07 2012-01-06 VIDEO PRESENTATION METHOD FOR CARRYING OUT BILATERAL PREDICTIONS AND UNILATERAL PREDICTIONS AND DEVICE THEREFOR, VIDEO CODING METHOD AND DEVICE THEREFOR AND VIDEO DECODING METHOD AND DEVICE THEREFOR
BR112013017490A BR112013017490A2 (pt) 2011-01-07 2012-01-06 método de previsão de vídeo, aparelho de previsão de vídeo, e mídia de gravação legível por computador
AU2012205076A AU2012205076B2 (en) 2011-01-07 2012-01-06 Video prediction method capable of performing bilateral prediction and unilateral prediction and a device thereof, video encoding method and device thereof, and video decoding method and device thereof
CN201280012366XA CN103416062A (zh) 2011-01-07 2012-01-06 能够执行双向预测和单向预测的视频预测方法及其装置、视频编码方法及其装置以及视频解码方法及其装置
US13/978,629 US20130287106A1 (en) 2011-01-07 2012-01-06 Video prediction method capable of performing bilateral prediction and unilateral prediction and a device thereof, video encoding method and device thereof, and video decoding method and device thereof

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
US201161430627P 2011-01-07 2011-01-07
US61/430,627 2011-01-07

Publications (2)

Publication Number Publication Date
WO2012093890A2 true WO2012093890A2 (ko) 2012-07-12
WO2012093890A3 WO2012093890A3 (ko) 2012-11-08

Family

ID=46457874

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2012/000154 WO2012093890A2 (ko) 2011-01-07 2012-01-06 양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치

Country Status (8)

Country Link
US (1) US20130287106A1 (ko)
EP (1) EP2663078A4 (ko)
JP (2) JP2014506063A (ko)
KR (1) KR20120080548A (ko)
CN (1) CN103416062A (ko)
AU (2) AU2012205076B2 (ko)
BR (1) BR112013017490A2 (ko)
WO (1) WO2012093890A2 (ko)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014166360A1 (en) * 2013-04-10 2014-10-16 Mediatek Inc. Method and apparatus for bi-prediction of illumination compensation

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106028048B (zh) * 2010-01-15 2019-04-05 三星电子株式会社 对视频进行解码的设备
US9819965B2 (en) 2012-11-13 2017-11-14 Intel Corporation Content adaptive transform coding for next generation video
EP2951999A4 (en) 2013-01-30 2016-07-20 Intel Corp CONTENT PARAMETRIC TRANSFORMATIONS FOR CODING VIDEOS OF THE NEXT GENERATION
CN104717513B (zh) * 2015-03-31 2018-02-09 北京奇艺世纪科技有限公司 一种双向帧间预测方法及装置
WO2016195460A1 (ko) * 2015-06-05 2016-12-08 한양대학교 산학협력단 화면 내 예측에 대한 부호화/복호화 방법 및 장치
CN106358042B (zh) * 2015-07-17 2020-10-09 恩智浦美国有限公司 使用视频图像的帧间预测的并行解码器
WO2019199093A1 (ko) * 2018-04-11 2019-10-17 엘지전자 주식회사 인트라 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2019216325A1 (en) 2018-05-09 2019-11-14 Sharp Kabushiki Kaisha Systems and methods for performing motion vector prediction using a derived set of motion vectors
CN111263147B (zh) * 2018-12-03 2023-02-14 华为技术有限公司 帧间预测方法和相关装置
CN111435989B (zh) * 2019-01-15 2023-11-17 华为技术有限公司 视频编码、解码方法、装置及计算机存储介质

Family Cites Families (15)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2004032506A1 (en) * 2002-10-01 2004-04-15 Thomson Licensing S.A. Implicit weighting of reference pictures in a video encoder
JP2005303487A (ja) * 2004-04-08 2005-10-27 Victor Co Of Japan Ltd 動画像復号装置及び動画像復号プログラム
US7660354B2 (en) * 2005-05-11 2010-02-09 Fang Shi Temporal error concealment for bi-directionally predicted frames
KR100941608B1 (ko) * 2006-10-17 2010-02-11 경희대학교 산학협력단 다시점 영상의 부호화 및 복호화 방법과 그를 위한 장치
US20080101474A1 (en) * 2006-11-01 2008-05-01 Yi-Jen Chiu Optimizing the storage and reducing the computation of reference picture list processing in video decoding
BRPI0809210A2 (pt) * 2007-04-04 2014-09-02 Thomson Licensing Gerenciamento de lista de imagens de referência
TWI338869B (en) * 2007-08-03 2011-03-11 Via Tech Inc Method and apparatus for block-based digital encoded picture
US8750378B2 (en) * 2008-09-23 2014-06-10 Qualcomm Incorporated Offset calculation in switched interpolation filters
US8503527B2 (en) * 2008-10-03 2013-08-06 Qualcomm Incorporated Video coding with large macroblocks
US8831087B2 (en) * 2008-10-06 2014-09-09 Qualcomm Incorporated Efficient prediction mode selection
US8687685B2 (en) * 2009-04-14 2014-04-01 Qualcomm Incorporated Efficient transcoding of B-frames to P-frames
US8995526B2 (en) * 2009-07-09 2015-03-31 Qualcomm Incorporated Different weights for uni-directional prediction and bi-directional prediction in video coding
US9172968B2 (en) * 2010-07-09 2015-10-27 Qualcomm Incorporated Video coding using directional transforms
US9357229B2 (en) * 2010-07-28 2016-05-31 Qualcomm Incorporated Coding motion vectors in video coding
US20120170648A1 (en) * 2011-01-05 2012-07-05 Qualcomm Incorporated Frame splitting in video coding

Non-Patent Citations (2)

* Cited by examiner, † Cited by third party
Title
None
See also references of EP2663078A4

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2014166360A1 (en) * 2013-04-10 2014-10-16 Mediatek Inc. Method and apparatus for bi-prediction of illumination compensation
US9961347B2 (en) 2013-04-10 2018-05-01 Hfi Innovation Inc. Method and apparatus for bi-prediction of illumination compensation

Also Published As

Publication number Publication date
WO2012093890A3 (ko) 2012-11-08
AU2012205076A1 (en) 2013-08-01
EP2663078A4 (en) 2015-02-11
EP2663078A2 (en) 2013-11-13
AU2012205076B2 (en) 2016-01-14
CN103416062A (zh) 2013-11-27
KR20120080548A (ko) 2012-07-17
US20130287106A1 (en) 2013-10-31
JP2016171588A (ja) 2016-09-23
BR112013017490A2 (pt) 2017-10-24
AU2016201680A1 (en) 2016-04-07
JP2014506063A (ja) 2014-03-06

Similar Documents

Publication Publication Date Title
WO2013002556A2 (ko) 인트라 예측을 수반한 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2012093890A2 (ko) 양방향 예측 및 단일방향 예측이 가능한 비디오 예측 방법 및 그 장치, 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2018066927A1 (ko) 인터 예측 모드 기반 영상 처리 방법 및 이를 위한 장치
WO2013002554A2 (ko) 픽셀 분류에 따른 오프셋 조정을 이용하는 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2016200100A1 (ko) 적응적 가중치 예측을 위한 신택스 시그널링을 이용하여 영상을 부호화 또는 복호화하는 방법 및 장치
WO2011087320A2 (ko) 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 부호화 방법 및 장치, 예측 부호화를 위해 가변적인 파티션을 이용하는 비디오 복호화 방법 및 장치
WO2011049397A2 (en) Method and apparatus for decoding video according to individual parsing or decoding in data unit level, and method and apparatus for encoding video for individual parsing or decoding in data unit level
WO2013002555A2 (ko) 산술부호화를 수반한 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2011019253A2 (en) Method and apparatus for encoding video in consideration of scanning order of coding units having hierarchical structure, and method and apparatus for decoding video in consideration of scanning order of coding units having hierarchical structure
WO2015093890A1 (ko) 인트라 예측을 수반한 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2011019249A2 (en) Video encoding method and apparatus and video decoding method and apparatus, based on hierarchical coded block pattern information
WO2011049396A2 (en) Method and apparatus for encoding video and method and apparatus for decoding video, based on hierarchical structure of coding unit
WO2013002619A2 (ko) 고정소수점 변환을 위한 비트뎁스 조절을 수반하는 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2017086746A1 (ko) 화면내 예측 모드 부호화/복호화 방법 및 장치
WO2013005963A2 (ko) 콜로케이티드 영상을 이용한 인터 예측을 수반하는 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2012023796A2 (ko) 가변적 트리 구조의 변환 단위를 이용하는 비디오 부호화 방법과 그 장치, 및 비디오 복호화 방법 및 그 장치
WO2011087292A2 (en) Method and apparatus for encoding video and method and apparatus for decoding video by considering skip and split order
WO2012005520A2 (en) Method and apparatus for encoding video by using block merging, and method and apparatus for decoding video by using block merging
WO2012096539A2 (ko) 선택적 스캔 모드를 이용하는 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2013005962A2 (ko) 단일화된 참조가능성 확인 과정을 통해 인트라 예측을 수반하는 비디오 부호화 방법 및 그 장치, 비디오 복호화 방법 및 그 장치
WO2014107074A1 (ko) 스케일러블 비디오의 부호화 및 복호화를 위한 움직임 보상 방법 및 장치
WO2013066051A1 (ko) 변환 계수 레벨의 엔트로피 부호화 및 복호화를 위한 컨텍스트 모델 결정 방법 및 장치
WO2014003519A1 (ko) 스케일러블 비디오 부호화 방법 및 그 장치, 스케일러블 비디오 복호화 방법 및 장치
WO2015056955A1 (ko) 다시점 비디오 부호화 방법 및 장치, 다시점 비디오 복호화 방법 및 장치
WO2012005521A2 (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: 12732058

Country of ref document: EP

Kind code of ref document: A2

ENP Entry into the national phase

Ref document number: 2013548358

Country of ref document: JP

Kind code of ref document: A

NENP Non-entry into the national phase

Ref country code: DE

WWE Wipo information: entry into national phase

Ref document number: 13978629

Country of ref document: US

REEP Request for entry into the european phase

Ref document number: 2012732058

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 2012732058

Country of ref document: EP

ENP Entry into the national phase

Ref document number: 2012205076

Country of ref document: AU

Date of ref document: 20120106

Kind code of ref document: A

REG Reference to national code

Ref country code: BR

Ref legal event code: B01A

Ref document number: 112013017490

Country of ref document: BR

REG Reference to national code

Ref country code: BR

Ref legal event code: B01E

Ref document number: 112013017490

Country of ref document: BR

ENP Entry into the national phase

Ref document number: 112013017490

Country of ref document: BR

Kind code of ref document: A2

Effective date: 20130708