WO2020141910A1 - Method and device for processing video signal by using inter prediction - Google Patents

Method and device for processing video signal by using inter prediction Download PDF

Info

Publication number
WO2020141910A1
WO2020141910A1 PCT/KR2020/000067 KR2020000067W WO2020141910A1 WO 2020141910 A1 WO2020141910 A1 WO 2020141910A1 KR 2020000067 W KR2020000067 W KR 2020000067W WO 2020141910 A1 WO2020141910 A1 WO 2020141910A1
Authority
WO
WIPO (PCT)
Prior art keywords
motion vector
mmvd
offset
prediction
unit
Prior art date
Application number
PCT/KR2020/000067
Other languages
French (fr)
Korean (ko)
Inventor
박내리
남정학
장형문
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Publication of WO2020141910A1 publication Critical patent/WO2020141910A1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • 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/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • 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/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/70Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by syntax aspects related to video coding, e.g. related to compression standards

Definitions

  • An embodiment of the present disclosure relates to a method and apparatus for processing a video signal using inter prediction, and more specifically, performs inter-screen prediction using merge mode to which a merge with motion vector difference (MMVD) is applied. It relates to a method and apparatus for.
  • MMVD merge with motion vector difference
  • Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium.
  • Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
  • Next-generation video content will be characterized by high spatial resolution, high frame rate, and high dimensionality of scene representation. In order to process such content, it will bring a huge increase in terms of memory storage, memory access rate and processing power.
  • the video codec standard after the high efficiency video coding (HEVC) standard requires a prediction technique capable of generating prediction samples accurately while using resources more efficiently.
  • An embodiment of the present specification provides a video signal processing method and apparatus capable of improving the accuracy of a motion vector when applying merge mode.
  • an embodiment of the present specification provides a video signal processing method and apparatus capable of reducing signaling overhead in the process of applying a merge with motion vector difference (MMVD) technique.
  • MMVD merge with motion vector difference
  • Embodiments of the present specification provide a method and apparatus for processing a video signal using inter prediction.
  • a decoding method of a video signal includes obtaining at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, Determining an MMVD offset applied to the at least one motion vector based on a merge with motion vector difference (MMVD) distance index, and a reference associated with the merge index and at least one motion vector to which the MMVD offset is applied Generating a prediction sample of the current block based on a picture, and determining the MMVD offset comprises: determining a first offset value associated with the length index, and the at least one motion vector or the And determining a second offset value by scaling the first offset value by a scale value based on at least one of the size of the current block, and determining the second offset value as an MMVD offset.
  • MMVD motion vector difference
  • generating the prediction sample of the current block may include obtaining an MMVD direction index indicating the sign of the MMVD offset, and applying a code corresponding to the MMVD direction index to the MMVD offset. And adding the MMVD offset to which the sign is applied to the motion vector.
  • the scale value may be determined based on at least one of the size of the at least one motion vector and the resolution of the at least one motion vector.
  • the first offset value may be indicated by the MMVD length index among pre-defined offset candidate values.
  • the at least one motion vector is composed of a horizontal component and a vertical component, and the MMVD offset may be applied to at least one of the horizontal component or vertical component.
  • the at least one motion vector includes a first motion vector associated with a first reference picture list and a second motion vector associated with a second reference picture list, and the second offset value is the first It may be determined based on at least one of a motion vector or the second motion vector.
  • the encoding method of a video signal includes determining at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block; , Determining a merge with motion vector difference (MMVD) offset applied to the at least one motion vector, and based on at least one motion vector to which the MMVD offset is applied and the at least one reference picture.
  • MMVD merge with motion vector difference
  • the information related to the prediction includes: a merge index associated with the at least one motion vector and the at least one reference picture, and the MMVD offset value Including the MMVD distance index indicating the, and performing the prediction, determining a first offset value associated with the MMVD length index, and the first offset based on the at least one motion vector And determining a second offset value by scaling the value by a scale value, and determining the second offset value as an MMVD offset.
  • An apparatus for decoding a video signal includes a memory storing the video signal and a processor coupled with the memory to process the video signal.
  • the processor acquires at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, and merges with motion vector difference (MMVD) distance index It is configured to determine an MMVD offset applied to the at least one motion vector based on, and to generate a prediction sample of the current block based on the reference picture associated with the merge index and the at least one motion vector applied with the MMVD offset.
  • MMVD motion vector difference
  • the processor determines a first offset value associated with the length index to determine the MMVD offset, and the first offset value based on at least one of the at least one motion vector or the size of the current block. It is set to determine a second offset value by scaling by a scale value, and to determine the second offset value as an MMVD offset.
  • An apparatus for encoding a video signal includes a memory storing the video signal and a processor coupled with the memory to process the video signal.
  • the processor determines at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block, and merges MMVD (Merge) applied to the at least one motion vector with motion vector difference) to determine an offset, perform prediction on the current block based on the at least one motion vector to which the MMVD offset is applied, and the at least one reference picture, and code information related to the prediction, ,
  • the prediction-related information includes a merge index associated with the at least one motion vector and the at least one reference picture, and an MMVD distance index indicating the MMVD offset value.
  • the processor determines a first offset value associated with the MMVD length index, and scales the first offset value by a scale value based on the at least one motion vector to perform the prediction. And a second offset value as an MMVD offset.
  • One embodiment of the present specification provides a non-transitory computer-readable medium storing one or more instructions.
  • the one or more instructions executed by one or more processors acquire at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index.
  • a MMVD offset applied to the at least one motion vector is determined based on a merge index (MMVD) distance index, and a reference picture associated with the merge index and at least one motion vector applied with the MMVD offset.
  • the video signal processing apparatus is controlled to generate a prediction sample of the current block based on the.
  • the one or more instructions may determine a first offset value associated with the length index to determine the MMVD offset, and based on at least one of the at least one motion vector or the size of the current block.
  • the video signal processing apparatus is controlled to determine a second offset value by scaling the first offset value by a scale value, and to determine the second offset value as an MMVD offset.
  • accuracy of a motion vector may be improved by performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique is applied.
  • MMVD merge with motion vector difference
  • a video signal capable of reducing signaling overhead by reducing the bit length of the MMVD length index and adjusting the MMVD offset based on the motion vector.
  • FIG. 1 shows an example of a video coding system according to an embodiment of the present specification.
  • FIG. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
  • FIG. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
  • FIG. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
  • FIG. 5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification.
  • CTUs coding tree units
  • FIG 7 shows an example of multi-type tree splitting modes according to an embodiment of the present specification.
  • FIG. 8 illustrates an example of a signaling mechanism of partition partition information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
  • a CTU is divided into multiple coding units (CUs) based on a quadtree and nested multi-type tree structure according to an embodiment of the present specification.
  • FIG. 10 shows an example of a case where TT (ternary tree) partitioning is restricted for a 128x128 coding block according to an embodiment of the present specification.
  • FIG. 11 illustrates examples of redundant partition patterns that may occur in binary tree partition and ternary tree partition according to an embodiment of the present disclosure.
  • FIGS. 12 and 13 illustrate a video/video encoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in an encoding device.
  • FIG. 14 and 15 illustrate a video/video decoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in a decoding apparatus.
  • FIG. 16 shows an example of a spatial merge candidate configuration for a current block according to an embodiment of the present specification.
  • FIG 17 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
  • MVP candidate list shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
  • FIG 19 shows an example of an MMVD discovery process according to an embodiment of the present specification.
  • FIG 20 shows an example of triangular prediction units according to an embodiment of the present specification.
  • FIG. 21 shows an example of a flowchart for determining a set of MMVD candidates based on the size of a motion vector according to an embodiment of the present specification.
  • 22 and 23 show examples of flowcharts for determining a set of MMVD candidates based on the size and block size of a motion vector according to an embodiment of the present specification.
  • FIG. 24 illustrates an example of a flow chart for determining an MMVD candidate set based on the resolution of a motion vector according to an embodiment of the present specification.
  • 25 and 26 illustrate examples of flowcharts for determining a set of MMVD candidates based on the size and resolution of a motion vector according to an embodiment of the present specification.
  • FIG. 27 is a flowchart for processing a video signal according to an embodiment of the present disclosure, and FIG. 27A shows an example of a video signal decoding method and FIG. 27B an example of a video signal encoding method.
  • FIG. 28 is a diagram schematically showing an example of a service system including a digital device.
  • 29 is a block diagram illustrating a digital device according to an embodiment.
  • FIG. 30 is a configuration block diagram illustrating another embodiment of a digital device.
  • 31 is a configuration block diagram illustrating another embodiment of a digital device.
  • FIGS. 29 to 31 are block diagrams illustrating a detailed configuration of the control unit of FIGS. 29 to 31 to illustrate one embodiment.
  • FIG 33 is a diagram illustrating an example in which a screen of a digital device displays a main image and a sub image simultaneously according to an embodiment.
  • signals, data, samples, pictures, slices, tiles, frames, and blocks may be interpreted by appropriately replacing each coding process.
  • the'processing unit' refers to a unit in which encoding/decoding processing such as prediction, transformation, and/or quantization is performed.
  • the processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component.
  • the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
  • the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component.
  • the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU or a transform block (TB) for the luminance component.
  • the processing unit may correspond to CTB, CB, PU or TB for the color difference component.
  • the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luminance component and a unit for a color difference component.
  • processing unit is not necessarily limited to square blocks, and may be configured in a polygonal shape having three or more vertices.
  • pixels, pixels, or coefficients transformation coefficients or transform coefficients that have undergone first-order transformation
  • samples are hereinafter collectively referred to as samples.
  • using a sample may mean using a pixel value, a pixel value, or a coefficient (a transform coefficient or a transform coefficient that has undergone first-order transformation).
  • FIG. 1 shows an example of a video coding system according to an embodiment of the present specification.
  • the video coding system can include a source device 10 and a receiving device 20.
  • the source device 10 may transmit the encoded video/video information or data to the receiving device 20 through a digital storage medium or a network in a file or streaming form.
  • the source device 10 may include a video source 11, an encoding device 12, and a transmitter 13.
  • the receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23.
  • the encoding device 10 may be referred to as a video/video encoding device, and the decoding device 20 may be referred to as a video/video decoding device.
  • the transmitter 13 may be included in the encoding device 12.
  • the receiver 21 may be included in the decoding device 22.
  • the renderer 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
  • the video source may acquire a video/image through a capture, synthesis, or generation process of the video/image.
  • the video source may include a video/image capture device and/or a video/image generation device.
  • the video/image capture device may include, for example, one or more cameras, a video/image archive including previously captured video/images, and the like.
  • the video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image.
  • a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process in which related data is generated.
  • the encoding device 12 may encode an input video/image.
  • the encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency.
  • the encoded data (encoded video/image information) may be output in the form of a bitstream.
  • the transmitting unit 13 may transmit the encoded video/video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format.
  • Digital storage media include universal serial bus (USB), secure digital (SD), compact disk (CD), digital video disk (DVD), bluray, hard disk drive (HDD), and solid state drive (SSD). It may include various storage media.
  • the transmission unit 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network.
  • the receiver 21 may extract the bitstream and transmit it to the decoding device 22.
  • the decoding apparatus 22 may decode a video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus 12.
  • the renderer 23 may render the decoded video/image.
  • the rendered video/image may be displayed through the display unit.
  • FIG. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
  • the encoding apparatus 100 includes an image division unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190.
  • the inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit.
  • the residual processing unit may further include a subtraction unit 115.
  • the above-described image segmentation unit 110, subtraction unit 115, conversion unit 120, quantization unit 130, inverse quantization unit 140, inverse conversion unit 150, addition unit 155, filtering unit 160 ), the inter prediction unit 180, the intra prediction unit 185 and the entropy encoding unit 190 may be configured by one hardware component (for example, an encoder or processor) according to an embodiment.
  • the memory 170 may be configured by one hardware component (for example, a memory or digital storage medium) according to an embodiment, and the memory 170 may include a decoded picture buffer (DPB) 175. .
  • DPB decoded picture buffer
  • the image division unit 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units.
  • the processing unit may be referred to as a coding unit (CU).
  • the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a coding tree unit (CTU) or a largest coding unit (LCU).
  • QTBT quad-tree binary-tree
  • CTU coding tree unit
  • LCU largest coding unit
  • one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and/or a binary tree structure.
  • a quad tree structure may be applied first, and a binary tree structure may be applied later.
  • a binary tree structure may be applied first.
  • the coding procedure according to the present specification may be performed based on the final coding unit that is no longer split.
  • the maximum coding unit may be directly used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal if necessary.
  • the coding unit of the size of can be used as the final coding unit.
  • the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later.
  • the processing unit may further include a prediction unit (PU) or a transformation unit (TU).
  • the prediction unit and transform unit may be partitioned or partitioned from the above-described final coding unit, respectively.
  • the prediction unit may be a unit of sample prediction
  • the transformation unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from the transform coefficient.
  • the unit may be used interchangeably with terms such as a block or area in some cases.
  • the MxN block may represent samples of M columns and N rows or a set of transform coefficients.
  • the sample may generally represent a pixel or a pixel value, and may indicate only a pixel/pixel value of a luma component or only a pixel/pixel value of a saturation component.
  • the sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
  • the encoding apparatus 100 subtracts a prediction signal (a predicted block, a prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input image signal (original block, original sample array)
  • a signal (remaining block, residual sample array) may be generated, and the generated residual signal is transmitted to the converter 120.
  • a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input video signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115.
  • the prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied in units of blocks or CUs.
  • the prediction unit may generate various pieces of information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and transmit them to the entropy encoding unit 190.
  • the prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the intra prediction unit 185 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the non-directional mode may include, for example, a DC mode and a planar mode (planar mode).
  • the directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting.
  • the intra prediction unit 185 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 180 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be called a name such as a collocated reference block or a colCU, and the reference picture including the temporal neighboring block may also be called a collocated picture (colPic).
  • the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and generates information indicating which candidate is used to derive the motion vector and/or reference picture index of the current block. can do. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block.
  • the residual signal may not be transmitted.
  • the motion vector of the current block is obtained by using the motion vector of the neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
  • the prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
  • the transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal.
  • the transformation technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT).
  • DCT discrete cosine transform
  • DST discrete sine transform
  • KLT Karhunen-Loeve transform
  • GBT graph-based transform
  • CNT conditionally non-linear transform
  • GBT means a transformation obtained from this graph when it is said that the relationship information between pixels is graphically represented.
  • CNT means a transform obtained by generating a prediction signal using all previously reconstructed pixels and based on it.
  • the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
  • the quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes a quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have.
  • Information about quantized transform coefficients may be referred to as residual information.
  • the quantization unit 130 may rearrange the block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and the quantized transform based on the one-dimensional vector form quantized transform coefficients Information about coefficients may be generated.
  • the entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC).
  • the entropy encoding unit 190 may encode information necessary for video/image reconstruction (eg, values of syntax elements) together with the quantized transform coefficients together or separately.
  • the encoded information (eg, video/video information) may be transmitted or stored in the unit of a network abstraction layer (NAL) unit in the form of a bitstream.
  • NAL network abstraction layer
  • the bitstream can be transmitted over a network, or it can be stored on a digital storage medium.
  • the network may include a broadcasting network and/or a communication network
  • the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD.
  • the signal output from the entropy encoding unit 190 may be configured as an internal/external element of the encoding device 100 by a transmitting unit (not shown) and/or a storing unit (not shown) for storing, or the transmitting unit It may be a component of the entropy encoding unit 190.
  • the quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal.
  • the residual signal may be reconstructed by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop to the quantized transform coefficients.
  • the adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 180 or the intra predictor 185, so that the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) Can be generated. If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the adding unit 155 may be referred to as a restoration unit or a restoration block generation unit.
  • the reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
  • the filtering unit 160 may apply subjective/objective filtering to improve the subjective/objective image quality.
  • the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 170.
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter.
  • the filtering unit 160 may generate various information regarding filtering as described later in the description of each filtering method and transmit it to the entropy encoding unit 190.
  • the filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
  • the corrected reconstructed picture transmitted to the decoded picture buffer 170 may be used as a reference picture in the inter prediction unit 180.
  • the inter prediction is applied through the encoding apparatus 100, prediction mismatches in the encoding apparatus 100 and the decoding apparatus 200 may be avoided, and encoding efficiency may be improved.
  • the decoded picture buffer 170 may store the corrected reconstructed picture for use as a reference picture in the inter prediction unit 180.
  • FIG. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
  • the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265.
  • the inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185.
  • the inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230.
  • the decoded picture buffer 250 may be implemented by one hardware component (eg, a memory or digital storage medium) according to an embodiment.
  • the memory 250 may include the DPB 175 and may be configured by a digital storage medium.
  • the decoding apparatus 200 may restore an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2.
  • the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100.
  • the processing unit may be, for example, a coding unit, and the coding unit may be divided according to a quad tree structure and/or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding device 200 may be reproduced through the reproduction device.
  • the decoding apparatus 200 may receive the signal output from the encoding apparatus 100 of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210.
  • the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/image information) necessary for image reconstruction (or picture reconstruction).
  • the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element necessary for image reconstruction and a transform coefficient for residual.
  • the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and decodes syntax information of the decoding target syntax element and surrounding and decoding target blocks, or symbols/bins decoded in the previous step.
  • the context model is determined using the information of, and the probability of occurrence of the bin is predicted according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. have.
  • the CABAC entropy decoding method may update the context model using the decoded symbol/bin information for the next symbol/bin context model after determining the context model.
  • the entropy decoding unit 210 performs entropy decoding.
  • the dual value that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220.
  • information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240.
  • a receiving unit (not shown) receiving a signal output from the encoding apparatus 100 may be further configured as an internal/external element of the decoding apparatus 200, or the receiving unit may be a component of the entropy decoding unit 210. It may be.
  • the inverse quantization unit 220 may output transform coefficients by inverse quantizing the quantized transform coefficients.
  • the inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100.
  • the inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients using a quantization parameter (eg, quantization step size information), and obtain a transform coefficient.
  • a quantization parameter eg, quantization step size information
  • the inverse transform unit 230 may output a residual signal (residual block, residual sample array) by applying an inverse transform to the transform coefficient.
  • the prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block.
  • the prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information about prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
  • the intra prediction unit 265 may predict the current block by referring to samples in the current picture.
  • the referenced samples may be located in the neighborhood of the current block or spaced apart according to the prediction mode.
  • prediction modes may include a plurality of non-directional modes and a plurality of directional modes.
  • the intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
  • the inter prediction unit 260 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture.
  • motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.).
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or reference picture index of the current block based on the received candidate selection information.
  • Inter prediction may be performed based on various prediction modes, and information on prediction may include information indicating a mode of inter prediction for a current block.
  • the adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring signals (restored pictures, reconstructed blocks). , A reconstructed sample array). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
  • the adding unit 235 may be called a restoration unit or a restoration block generation unit.
  • the generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
  • the filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 250.
  • Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), bilateral filter, and the like.
  • the corrected reconstructed picture transmitted to the decoded picture buffer 250 may be used as a reference picture by the inter prediction unit 260.
  • the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding device 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding device.
  • the intra prediction unit 265 may be applied to the same or corresponding.
  • FIG. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
  • the content streaming system to which the present specification is applied may largely include an encoding server 410, a streaming server 420, a web server 430, a media storage 440, a user device 450, and a multimedia input device 460. have.
  • the encoding server 410 may compress content input from multimedia input devices such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmit it to the streaming server 420.
  • multimedia input devices 460 such as a smartphone, camera, and camcorder directly generate a bitstream
  • the encoding server 410 may be omitted.
  • the bitstream may be generated by an encoding method or a bitstream generation method to which the present specification is applied, and the streaming server 420 may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
  • the streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary to inform the user of the service.
  • the web server 430 delivers it to the streaming server 420, and the streaming server 420 transmits multimedia data to the user.
  • the content streaming system may include a separate control server, in which case the control server serves to control commands/responses between devices in the content streaming system.
  • Streaming server 420 may receive content from media storage 440 and/or encoding server 410.
  • the streaming server 420 may receive content in real time from the encoding server 410.
  • the streaming server 420 may store the bitstream for a predetermined time.
  • the user device 450 includes a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC ( slate PC), tablet PC (tablet PC), ultrabook (ultrabook), wearable device (wearable device, for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
  • PDA personal digital assistants
  • PMP portable multimedia player
  • slate PC slate PC
  • tablet PC tablet PC
  • ultrabook ultrabook
  • wearable device wearable device
  • wearable device for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
  • Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
  • FIG. 5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification.
  • the video signal processing apparatus of FIG. 5 may correspond to the encoding apparatus 100 of FIG. 2 or the decoding apparatus 200 of FIG. 3.
  • the video signal processing apparatus 500 may include a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory.
  • the processor 510 may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding or decoding the video signal. That is, the processor 510 may encode the original video signal or decode the encoded video signal by executing the encoding or decoding methods described below.
  • the video/image coding method according to this document may be performed based on various detailed technologies, and the detailed description of each technique is as follows.
  • the techniques described below may be related to related procedures such as prediction, residual processing (transformation, quantization, etc.), syntax element coding, filtering, partitioning/segmentation, etc. in the video/image encoding/decoding procedure described above and/or described below. It is apparent to those skilled in the art.
  • Pictures may be divided into a sequence of coding tree units (CTUs).
  • the CTU may correspond to a coding tree block (CTB).
  • CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples.
  • the CTU may include two NxN blocks of luma samples and two corresponding blocks of chroma samples.
  • CTUs coding tree units
  • one picture may be divided into a plurality of CTUs having a constant size.
  • the maximum allowable size of the CTU for coding and prediction may be different from the maximum allowable size of the CTU for transformation.
  • the maximum allowable size of the luma block in the CTU may be 128x128 (even if the maximum size of the luma CTUs is 64x64).
  • FIG 7 shows an example of multi-type tree splitting modes according to an embodiment of the present specification.
  • the CTU may be divided into CUs based on a quad-tree (QT) structure.
  • the quadtree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics.
  • the CTU can be divided based on the division of a multi-type tree structure including a binary tree (BT) and a ternary tree (TT) as well as a quad tree.
  • the QTBT structure may include a quadtree and binary tree based split structure
  • the QTBTTT may include a quadtree, binary tree and ternary tree based split structure.
  • the QTBT structure may include a quadtree, binary tree, and ternary tree based splitting structure.
  • the CU can have a square or rectangular shape.
  • the CTU can be first divided into a quadtree structure. Thereafter, leaf nodes having a quadtree structure may be further divided by a multi-type tree structure. For example, as shown in FIG. 6, the multi-type tree structure may schematically include four division types.
  • the four split types shown in FIG. 6 are vertical binary splitting (SPLIT_BT_VER), horizontal binary splitting (SPLIT_BT_HOR), vertical ternary splitting (SPLIT_TT_VER), horizontal ternary splitting (horizontal ternary) splitting, SPLIT_TT_HOR).
  • Leaf nodes of a multitype tree structure may be referred to as CUs. These CUs can be used as a unit for prediction and transformation procedures.
  • CU, PU, and TU may have the same block size. However, when the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
  • FIG. 8 illustrates an example of a signaling mechanism of partition partition information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
  • the CTU is treated as a root of a quadtree, and is first divided into a quadtree structure.
  • Each quadtree leaf node can then be further divided into a multitype tree structure.
  • a first flag eg, mtt_split_cu_flag
  • a second flag eg, mtt_split_cu_vertical_flag
  • a third flag eg, mtt_split_cu_binary_flag
  • a multi-type tree splitting mode (MttSplitMode) of a CU may be derived as shown in Table 1 below.
  • a CTU is divided into multiple coding units (CUs) based on a quadtree and nested multi-type tree structure according to an embodiment of the present specification.
  • the CU may correspond to a coding block (CB).
  • the CU may include a coding block of luma samples and two coding blocks of corresponding chroma samples.
  • the size of the CU may be as large as the CTU, or may be configured in 4x4 units in luma sample units. For example, in the case of a 4:2:0 color format (or chroma format), the maximum chroma CB size may be 64x64 and the minimum chroma CB size may be 2x2.
  • the maximum allowed luma TB size may be 64x64 and the maximum allowed chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum conversion width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size limitations are satisfied.
  • SPS sequence parameter set
  • -CTU size the root node size of a quaternary tree
  • the CTU size can be set to 64x64 blocks of 128x128 luma samples and two corresponding chroma samples (in 4:2:0 chroma format).
  • MinOTSize can be set to 16x16
  • MaxBtSize is set to 128x1208
  • MaxTtSzie can be set to 64x64
  • MinBtSize and MinTtSize (for width and height) can be set to 4x4
  • MaxMttDepth can be set to 4.
  • Quadtree splitting can be applied to CTU to generate quadtree leaf nodes.
  • the quadtree leaf node may be referred to as a leaf QT node.
  • Quadtree leaf nodes may have a size of 16x16 (ie MinOTSize) to a size of 128x128 (ie CTU size). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because, even in this case, it exceeds MaxBtsize and MaxTtszie (ie, 64x64). In other cases, the leaf QT node may be further divided into a multi-type tree. Therefore, a leaf QT node is a root node for a multitype tree, and a leaf QT node may have a multitype tree depth (mttDepth) 0 value.
  • mttDepth multitype tree depth
  • MaxMttdepth (eg 4)
  • further partitioning may not be considered. If the width of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal partitioning may no longer be considered. If the height of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical splitting may no longer be considered.
  • TT segmentation can be forbidden in certain cases. For example, if the width or height of the luma coding block is greater than 64, as shown in FIG. 9, TT splitting may be prohibited. Also, for example, if the width or height of the chroma coding block is greater than 32, TT splitting may be prohibited.
  • FIG. 10 shows an example of a case where TT (ternary tree) partitioning is restricted for a 128x128 coding block according to an embodiment of the present specification.
  • the coding tree scheme can support luma and chroma blocks having a separate block tree structure.
  • luma and chroma CTBs in one CTU can be restricted to have the same coding tree structure.
  • luma and chroma blocks may have a separate block tree structure from each other. If the individual block tree mode is applied, the luma CTB may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on another coding tree structure. This may mean that a CU in an I slice is composed of a coding block of luma components or coding blocks of two chroma components, and a CU of a P or B slice can be composed of blocks of three color components.
  • the quadtree coding tree structure with a multi-type tree has been described, but the structure in which the CU is divided is not limited to this.
  • the BT structure and the TT structure may be interpreted as a concept included in a multiple partitioning tree (MPT) structure, and a CU may be divided through a QT structure and an MPT structure.
  • MPT multiple partitioning tree
  • a CU may be divided through a QT structure and an MPT structure.
  • a syntax element eg, MPT_split_type
  • the splitting structure may be determined by signaling a syntax element (eg, MPT_split_mode) including information on which direction to split.
  • the CU may be divided in a different way from the QT structure, BT structure or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 the size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 the size of the CU of the upper depth according to the BT structure, or according to the TT structure Unlike the CU of the lower depth, which is divided into 1/4 or 1/2 the size of the CU of the upper depth, the CU of the lower depth may be 1/5, 1/3, 3/8, 3 of the CU of the upper depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method in which the CU is divided is not limited thereto.
  • the tree node block includes all samples of all coded CUs within the picture boundaries. It can be restricted to be located. In this case, for example, the division rule as shown in Table 2 below may be applied.
  • FIG. 11 illustrates examples of redundant partition patterns that may occur in binary tree partition and ternary tree partition according to an embodiment of the present disclosure.
  • the quadtree coding block structure with a multi-type tree can provide a very flexible block partitioning structure. Due to the division types supported in the multitype tree, different division patterns can potentially result in the same coding block structure in some cases. By limiting the occurrence of such redundant partition patterns, the data amount of partitioning information can be reduced.
  • two levels of consecutive binary splits in one direction have the same coding block structure as binary partitions for the center partition after ternary splitting. .
  • binary tree partitioning to the center partition of the ternary tree partitioning is prohibited.
  • This prohibition can be applied to CUs of all pictures.
  • signaling of the corresponding syntax elements can be modified to reflect this prohibited case, thereby reducing the number of bits signaled for partitioning. For example, as in the example shown in FIG.
  • the mtt_split_cu_binary_flag syntax element indicating whether the partition is a binary partition or a ternary partition is not signaled, and its value is It can be inferred by the decoder to zero.
  • inter prediction described below may be performed by the inter prediction unit 180 of the encoding apparatus 100 of FIG. 2 or the inter prediction unit 260 of the decoding apparatus 200 of FIG. 3.
  • the prediction unit of the encoding apparatus 100 / decoding apparatus 200 may perform inter prediction in block units to derive prediction samples.
  • Inter prediction may represent prediction derived in a manner dependent on data elements (eg, sample values, or motion information) of a picture(s) other than the current picture (Inter prediction can be a prediction derived in a manner that is dependent on data elements (eg, sample values or motion information) of picture(s) other than the current picture).
  • motion information of the current block may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block.
  • the motion information may include a motion vector and a reference picture index.
  • the motion information may further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information.
  • the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture.
  • the reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different.
  • the temporal neighboring block may be called a name such as a collocated reference block or a colCU, and the reference picture including the temporal neighboring block may also be called a collocated picture (colPic).
  • a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag indicating which candidate is selected (used) to derive a motion vector and/or reference picture index of the current block, or Index information may be signaled.
  • Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, motion information of a current block may be the same as motion information of a selected neighboring block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted.
  • a motion vector of a selected neighboring block is used as a motion vector predictor, and a motion vector difference can be signaled.
  • the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
  • FIGS. 12 and 13 illustrate a video/video encoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in an encoding device.
  • the encoding apparatus 100 performs inter prediction on the current block (S1210).
  • the encoding apparatus 100 may derive the inter prediction mode and motion information of the current block, and generate prediction samples of the current block.
  • the procedure for determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other procedure.
  • the inter prediction unit 180 of the encoding apparatus 100 may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183, and the prediction mode determination unit
  • the prediction mode for the current block may be determined at 181, the motion information of the current block may be derived from the motion information derivation unit 182, and prediction samples of the current block may be derived by the prediction sample derivation unit 183.
  • the inter prediction unit 180 of the encoding apparatus 100 searches a block similar to the current block in a certain area (search area) of reference pictures through motion estimation, and It is possible to derive a reference block whose difference is less than or equal to a certain criterion.
  • a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block.
  • the encoding apparatus 100 may determine a mode applied to the current block among various prediction modes.
  • the encoding apparatus 100 may compare the RD cost for various prediction modes and determine an optimal prediction mode for the current block.
  • the encoding apparatus 100 configures a merge candidate list, which will be described later, and the current block among the reference blocks indicated by the merge candidates included in the merge candidate list. It is possible to derive a reference block with a difference from a current block or a minimum or a predetermined criterion. In this case, a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding apparatus 200. Motion information of a current block may be derived using motion information of a selected merge candidate.
  • the encoding apparatus 100 configures the (A)MVP candidate list, which will be described later, and (A) the motion vector predictor (MVP) candidates included in the MVP candidate list.
  • the motion vector of the selected MVP candidate can be used as the MVP of the current block.
  • a motion vector indicating a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and among the MVP candidates, a motion vector having the smallest difference from the motion vector of the current block may be used.
  • the MVP candidate to have may be the selected MVP candidate.
  • a motion vector difference (MVD) which is a difference obtained by subtracting MVP from the motion vector of the current block, may be derived.
  • information about the MVD may be signaled to the decoding device 200.
  • the value of the reference picture index may be configured and reference signal index information may be separately signaled to the decoding apparatus 200.
  • the encoding apparatus 100 may derive residual samples based on the predicted samples (S1220). The encoding apparatus 100 may derive residual samples through comparison of original samples and prediction samples of the current block.
  • the encoding apparatus 100 encodes video information including prediction information and residual information (S1230).
  • the encoding apparatus 100 may output encoded image information in the form of a bitstream.
  • the prediction information is information related to a prediction procedure and may include prediction mode information (eg, skip flag, merge flag, or mode index) and motion information.
  • the motion information may include candidate selection information (eg, merge index, mvp flag, or mvp index) that is information for deriving a motion vector.
  • the motion information may include information on the MVD and/or reference picture index information.
  • the motion information may include information indicating whether L0 prediction, L1 prediction, or bi prediction is applied.
  • the residual information is information about residual samples.
  • the residual information may include information about quantized transform coefficients for residual samples.
  • the output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or may be delivered to a decoding device through a network.
  • the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is to derive the same prediction result as that performed by the decoding apparatus 200 in the encoding apparatus 100, because it is possible to increase coding efficiency. Accordingly, the encoding apparatus 100 may store the reconstructed picture (or reconstructed samples, reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
  • FIG. 14 and 15 illustrate a video/video decoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in a decoding apparatus.
  • the decoding apparatus 200 may perform an operation corresponding to an operation performed in the encoding apparatus 100.
  • the decoding apparatus 200 may perform prediction on the current block and derive prediction samples based on the received prediction information.
  • the decoding apparatus 200 may determine a prediction mode for the current block based on the received prediction information (S1410). The decoding apparatus 200 may determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
  • the decoding apparatus 200 may determine whether merge mode is applied to the current block or (A)MVP mode is determined based on a merge flag. Alternatively, the decoding apparatus 200 may select one of various inter prediction mode candidates based on the mode index.
  • the inter prediction mode candidates may include skip mode, merge mode and/or (A)MVP mode, or various inter prediction modes described below.
  • the decoding apparatus 200 derives motion information of the current block based on the determined inter prediction mode (S1420). For example, when the skip mode or the merge mode is applied to the current block, the decoding apparatus 200 may configure a merge candidate list, which will be described later, and select one of the merge candidates included in the merge candidate list. . The selection of the merge candidate may be performed based on a merge index. Motion information of a current block may be derived from motion information of a selected merge candidate. Motion information of the selected merge candidate may be used as motion information of the current block.
  • the decoding apparatus 200 configures the (A)MVP candidate list, which will be described later, and (A) the MVP candidate selected from among the MVP candidates included in the MVP candidate list.
  • the motion vector of can be used as the MVP of the current block.
  • the selection of the MVP may be performed based on the selection information (MVP flag or MVP index) described above.
  • the decoding apparatus 200 may derive the MVD of the current block based on information about the MVD, and may derive a motion vector of the current block based on the MVP and MVD of the current block.
  • the decoding apparatus 200 may derive a reference picture index of the current block based on the reference picture index information.
  • the picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
  • motion information of the current block may be derived without configuring a candidate list, and in this case, motion information of the current block may be derived according to a procedure disclosed in a prediction mode, which will be described later.
  • the candidate list configuration as described above may be omitted.
  • the decoding apparatus 200 may generate prediction samples for the current block based on the motion information of the current block (S1430). In this case, the decoding apparatus 200 may derive a reference picture based on the reference picture index of the current block, and derive predictive samples of the current block using samples of the reference block indicated by the motion vector of the current block on the reference picture. . In this case, as described later, a prediction sample filtering procedure for all or part of the prediction samples of the current block may be further performed depending on the case.
  • the inter prediction unit 260 of the decoding apparatus 200 may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263, and the prediction mode determination unit
  • the prediction mode for the current block is determined based on the prediction mode information received at 181, and the motion information (motion vector) of the current block based on the information on the motion information received from the motion information deriving unit 182. And/or a reference picture index), and predicted samples of the current block may be derived from the predicted sample deriving unit 183.
  • the decoding apparatus 200 generates residual samples for the current block based on the received residual information (S1440).
  • the decoding apparatus 200 may generate reconstructed samples for the current block based on the predicted samples and residual samples, and generate a reconstructed picture based on the reconstructed samples. (S1450). As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
  • the inter prediction procedure may include a step of determining an inter prediction mode, a step of deriving motion information according to the determined prediction mode, and performing a prediction (generating a predictive sample) based on the derived motion information.
  • inter prediction modes may be used for prediction of a current block in a picture.
  • various modes such as a merge mode, a skip mode, an MVP mode, and an affine mode may be used.
  • Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, and the like may be further used as ancillary modes.
  • the affine mode may also be called aaffine motion prediction mode.
  • the MVP mode may also be called AMVP (advanced motion vector prediction) mode.
  • Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device 200.
  • the prediction mode information may be included in the bitstream and received by the decoding apparatus 200.
  • the prediction mode information may include index information indicating one of a plurality of candidate modes.
  • the inter prediction mode may be indicated through hierarchical signaling of flag information.
  • the prediction mode information may include one or more flags.
  • the encoding apparatus 100 signals whether a skip mode is applied by signaling a skip flag, and indicates whether a merge mode is applied by signaling a merge flag when a skip mode is not applied, and when a merge mode is not applied. It may be indicated that the MVP mode is applied or may further signal a flag for additional classification.
  • the affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on a merge mode or an MVP mode.
  • the affine mode may be configured as one candidate of the merge candidate list or the MVP candidate list, as described later.
  • the encoding apparatus 100 or the decoding apparatus 200 may perform inter prediction using motion information of a current block.
  • the encoding apparatus 100 may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus 100 may search for a similar reference block having high correlation within a predetermined search range in a reference picture by using a original block in the original picture for the current block in a fractional pixel unit, and through this, motion information Can be derived.
  • the similarity of the block can be derived based on the difference of phase-based sample values.
  • the similarity of a block may be calculated based on a sum of absolute difference (SAD) between a current block (or a template of the current block) and a reference block (or a template of a reference block).
  • SAD sum of absolute difference
  • motion information may be derived based on a reference block having the smallest SAD in the search area.
  • the derived motion information may be signaled to the decoding apparatus according to various methods based on the inter prediction mode.
  • the encoding apparatus 100 may indicate motion information of the current prediction block by transmitting flag information indicating that the merge mode is used and a merge index indicating which prediction blocks are used.
  • the encoding apparatus 100 must search a merge candidate block used to derive motion information of a current prediction block in order to perform a merge mode. For example, up to five merge candidate blocks may be used, but the present specification is not limited thereto. In addition, the maximum number of merge candidate blocks may be transmitted in the slice header, and the present specification is not limited thereto. After finding the merge candidate blocks, the encoding apparatus 100 may generate a merge candidate list, and may select a merge candidate block having the smallest cost as a final merge candidate block.
  • This specification provides various embodiments of a merge candidate block constituting a merge candidate list.
  • the merge candidate list may use 5 merge candidate blocks, for example. For example, four spatial merge candidates and one temporal merge candidate can be used.
  • FIG. 16 shows an example of a spatial merge candidate configuration for a current block according to an embodiment of the present specification.
  • a left neighboring block (A1), a bottom-left neighboring block (A2), a top-right neighboring block (B0), and an upper neighboring block (B1) ), at least one of a top-left neighboring block B2 may be used.
  • the merge candidate list for the current block may be configured based on the procedure shown in FIG. 17.
  • FIG 17 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
  • the coding apparatus searches for spatial neighboring blocks of the current block and inserts the derived spatial merge candidates into the merge candidate list (S1710).
  • the spatial peripheral blocks may include blocks around the lower left corner of the current block, blocks around the left corner, blocks around the upper right corner, blocks around the upper corner, and blocks around the upper left corner.
  • additional peripheral blocks such as a right peripheral block, a lower peripheral block, and a lower right peripheral block may be further used as the spatial peripheral blocks.
  • the coding apparatus may detect available blocks by searching for spatial neighboring blocks based on priority, and derive motion information of the detected blocks as spatial merge candidates.
  • the encoding apparatus 100 or the decoding apparatus 200 searches the five blocks shown in FIG. 11 in the order of A1, B1, B0, A0, B2, sequentially indexes available candidates, and merges candidates It can be configured as a list.
  • the coding apparatus searches for temporal neighboring blocks of the current block and inserts the derived temporal merge candidate into the merge candidate list (S1720).
  • the temporal peripheral block may be located on a reference picture that is a different picture from the current picture in which the current block is located.
  • the reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a coll picture.
  • the temporal neighboring blocks may be searched in the order of the lower right corner peripheral block and the lower right center block of the co-located block for the current block on the call picture. Meanwhile, when motion data compression is applied, specific motion information may be stored as a representative motion information for each predetermined storage unit in a call picture.
  • the predetermined storage unit may be predetermined in units of, for example, 16x16 sample units, or 8x8 sample units, or size information for a predetermined storage unit may be signaled from the encoding device 100 to the decoding device 200. have.
  • motion information of a temporal peripheral block may be replaced with representative motion information of a predetermined storage unit in which the temporal peripheral block is located.
  • a temporal merge candidate may be derived based on motion information of a prediction block. For example, if the constant storage unit is 2nx2n sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> n) ⁇ n), (yTnb >> n) Motion information of the prediction block located at ⁇ n)) may be used for temporal merge candidates.
  • the constant storage unit is 16x16 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 4) ⁇ 4), (yTnb >> 4) Motion information of the prediction block located at ⁇ 4)) can be used for temporal merge candidates.
  • the constant storage unit is 8x8 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 3) ⁇ 3), (yTnb >> 3 ) ⁇ 3)) motion information of the prediction block located at may be used for temporal merge candidate.
  • the coding apparatus may check whether the number of current merge candidates is smaller than the maximum number of merge candidates (S1730).
  • the maximum number of merge candidates may be predefined or signaled from the encoding device 100 to the decoding device 200.
  • the encoding apparatus 100 may generate information on the number of maximum merge candidates, encode, and transmit the encoded information to the decoding apparatus 200 in the form of a bitstream.
  • the subsequent candidate addition process may not proceed.
  • the coding apparatus inserts an additional merge candidate into the merge candidate list (S1740).
  • Additional merge candidates are, for example, adaptive temporal motion vector prediction (ATMVP), combined bi-predictive merge candidates (if the slice type of the current slice is of type B) and/or zero vector merge. Candidates may be included.
  • ATMVP adaptive temporal motion vector prediction
  • MVP candidate list shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
  • a motion vector corresponding to a reconstructed spatial neighboring block eg, the neighboring block of FIG. 16
  • a motion vector corresponding to a temporal neighboring block or Col block
  • a motion vector predictor (MVP) candidate list may be generated. That is, the motion vector of the reconstructed spatial neighboring block and/or the motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate.
  • the prediction information may include selection information (eg, an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the list.
  • the prediction unit may select a motion vector predictor of the current block from among motion vector predictor candidates included in the motion vector candidate list, using the selection information.
  • the prediction unit of the encoding apparatus 100 may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, encode it, and output it in the form of a bitstream. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block.
  • the prediction unit of the decoding apparatus may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor.
  • the prediction unit of the decoding apparatus may obtain or derive a reference picture index indicating the reference picture from the information on the prediction.
  • the motion vector predictor candidate list may be configured as shown in FIG. 18.
  • the coding apparatus searches for a spatial candidate block for motion vector prediction and inserts it into the prediction candidate list (S1810).
  • the coding apparatus may search for neighboring blocks according to a predetermined search order, and add information of neighboring blocks satisfying the condition for the spatial candidate block to the prediction candidate list (MVP candidate list).
  • the coding apparatus After constructing the spatial candidate block list, the coding apparatus compares the number of spatial candidate lists included in the prediction candidate list with a preset reference number (eg, 2) (S1820). If the number of spatial candidate lists included in the prediction candidate list is greater than or equal to the reference number (eg, 2), the coding apparatus may end the construction of the prediction candidate list.
  • a preset reference number eg, 2
  • the coding device searches for the temporal candidate block and inserts it into the prediction candidate list (S1830), and the temporal candidate block is used If it is not possible, the zero motion vector is added to the prediction candidate list (S1840).
  • the predicted block for the current block may be derived based on the motion information derived according to the prediction mode.
  • the predicted block may include predictive samples (predictive sample array) of the current block.
  • an interpolation procedure may be performed, and through this, predictive samples of the current block may be derived based on reference samples in a fractional sample unit in a reference picture. .
  • prediction samples may be generated based on a motion vector per sample/subblock.
  • prediction samples derived based on first direction prediction eg, L0 prediction
  • prediction samples derived based on second direction prediction eg, L1 prediction
  • the final prediction samples can be derived through weighted sum (per phase).
  • reconstruction samples and reconstruction pictures may be generated based on the derived prediction samples, and then procedures such as in-loop filtering may be performed.
  • the embodiments described below may be performed at the decoding stage, or may be performed at the encoding stage within a range corresponding to the decoding stage operation.
  • the encoding device may first derive information signaled to the decoding device, encode the information, and transmit the encoded information to the decoding device.
  • the encoding device may configure motion-related information as shown in the following table, and encode each unit of syntax elements, and transmit it to the decoding device in the form of a bitstream.
  • MVP may be applied.
  • the merge with MVD (MMVD) technique can improve accuracy by adjusting the size and direction of a motion vector with respect to a selected candidate among candidates configured with a merge candidate list construction method.
  • the coding apparatus may determine a specific candidate from the merge candidate list as a base candidate. When the number of available base candidates is two, the first candidate and the second candidate in the list can be used as base candidates.
  • the encoding apparatus 100 may transmit information on the selected base candidate by signaling a base candidate index.
  • the number of base candidates may be variously set, and if the number of base candidates is 1, the base candidate index may not be used. Table 3 below shows an example of the base candidate index.
  • the motion vector corresponding to the first candidate is determined as the base candidate in the currently configured merge candidate list (or MVP candidate list), and if the base candidate index is 1, the currently configured merge candidate list ( Alternatively, a motion vector corresponding to the second candidate in the MVP candidate list) may be determined as a base candidate.
  • the encoding apparatus 100 may be refined by signaling a size (MMVD length) and a direction (MMVD code) applied to a motion vector corresponding to a base candidate, where the length index (MMVD length index) is applied to the motion vector.
  • the size of the applied MVD is indicated, and the direction index (MMVD code index) indicates the direction of the MVD applied to the motion vector.
  • Table 4 below shows the size of the MVD (MMVD offset) according to the length index (MMVD length index), and Table 5 shows the direction of the MVD according to the direction index (MMVD code index).
  • FIG 19 shows an example of an MMVD discovery process according to an embodiment of the present specification.
  • a motion search method in MMVD may be expressed as shown in FIG. 19.
  • a motion vector in the L1 direction may be derived using a mirroring scheme for the L0 motion vector.
  • the embodiments of the present specification provide a method and apparatus for efficiently applying the MMVD technique.
  • AMVR adaptive motion vector resolution
  • AMVR technology is an index reflecting the characteristics of motion of each image or block, especially the size of motion
  • the embodiment of the present specification enables the adaptation of the distance table in MMVD by using the imv_idx value.
  • Table 6 shows a table of MMVD offset values for the MMVD length index according to this embodiment.
  • different MMVD offsets are allocated for each MMVD length index according to imv_idx. That is, in case 1, imv_idx is 0, the base motion vector may be adjusted by a distance of 1/4-pel to 2-pel. In addition, in case 2, when imv_idx is 1, the base motion vector may be adjusted by a distance of 1/2-pel to 4-pel. Finally, in case 3, when imv_idx is 2, the base motion vector may be adjusted by a distance of 1-pel to 8-pel.
  • the number of candidates and candidate values in the distance table described in this specification only represent one example, and other numbers or different values may be used.
  • the AMVR index may be determined based on the resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index.
  • the AMVR index may be determined based on AMVR information (AMVR index) of spatial or temporal neighboring blocks used in the process of generating a merge or MVP candidate list of the current block.
  • AMVR mode is applied in AMVP and is not used in merge/skip mode. Therefore, the AMVR index may be separately set in the merge/skip mode to determine the above-described AMVR mode-based length table determination method. That is, when the current block is in the merge/skip mode, the AMVR index (imv_idx) of the neighboring block is set and stored so that AMVR can be applied when configuring candidates for MMVD.
  • the coding device performs context modeling using imv_idx of the left or upper neighboring block in the parsing process, MMVD in order to prevent imv_idx of the neighboring block stored in the decoding process of the merge/skip mode from being applied in the parsing process
  • the AMVR index of the block to which is applied is distinguished from the AMVR index of the block to which AMVP is applied by naming it as a separate syntax element (eg, imv_idc).
  • the following embodiment provides a method of storing an AMVR index (imv_idc) in the process of constructing an MVP candidate list for a block to which merge/skip mode is applied.
  • an AMVR index (imv_idc)
  • MMVD a base motion vector corresponding to a selected candidate among MVP candidates configured in a decoding process of a block to which merge/skip mode is applied is adjusted, and according to characteristics of adjacent blocks (resolution or AMVR index of MVD) in a candidate list configuration process
  • the AMVR index can be set as follows.
  • the AMVR index of the adjacent blocks is used.
  • a default value (eg 0) is used.
  • HMVP is a method of using prediction information (motion vector, reference picture index) of another block that has already been decoded (restored) in the current picture as information for prediction of the current block, where HVMP candidate is a spatial candidate, After the temporal candidate, it may be added to the merge candidate list.
  • the corresponding AMVR index is used, and in other cases, the larger AMVR index value is used.
  • FIG 20 shows an example of triangular prediction units according to an embodiment of the present specification.
  • the AMVR index value of adjacent blocks can be stored to propagate the merge/skip mode afterwards.
  • one CU coding unit
  • PUs triangular shaped prediction units
  • each PU can be predicted by uni-prediction.
  • a candidate list for unidirectional prediction may be constructed in a manner similar to a general merge/skip mode.
  • one CU is composed of two PUs (Cand0, Cand1), so the AMVR index of the corresponding block (CU) can be determined by considering all of the AMVR indexes of the two blocks (PU). Can.
  • the default value (eg 0) is used.
  • the AMVR index of adjacent blocks can be stored so that the AMVR index value is propagated to the merge/skip mode later.
  • the M/H mode is a technique in which intra prediction and inter prediction are combined in the merge/skip mode, and signals both indexes for the intra mode and the merge mode.
  • the candidate list is constructed in a similar manner to the normal merge/skip mode, and when the M/H mode is applied, the AMVR index can be set for the corresponding block as follows.
  • the AMVR index of the adjacent block is used.
  • the default value (eg 0) is used.
  • HMVP candidates i) use the AMVR index matching the candidates stored in the HMVP buffer, or ii) always use the default value (eg 0).
  • L0 candidate (L0 block) and L1 candidate (L1 block) use the common AMVR index when they have the same AMVR index; otherwise, use the default value (eg 0) Or, ii) When the L0 candidate (L0 block) and the L1 candidate (L1 block) have the same AMVR index, a common AMVR index is used, and in other cases, a larger AMVR index is used.
  • the default value (eg 0) is used.
  • the AMVR index may be updated based on the MMVD length (offset). Also, the updated AMVR index may be reused as the AMVR index of at least one block processed after the current block.
  • the AMVR index of the base motion vector for MMVD can be derived, and the distance of the motion vector for refinement can be determined by selecting the MMVD length table based on the derived AMVR index.
  • a distance value such as 1-pel or 4-pel can be selected among the candidates in the table, so the AMVR index is selected based on the length selected in the MMVD process. Can be updated. This is because the MMVD length also plays the role of AMVR. Accordingly, the AMVR index can be updated according to the selected MMVD length as shown in Table 7 below.
  • the AMVR index of the base motion vector may be updated to 2.
  • the MMVD distance is determined to be a value of 1-pel or more, this is similar to the MMVD offset candidate values corresponding to Case 2 in Table 6 (when AMVR index (imv_idc) is 1) (possibility of corresponding to Case 2 in Table 6) Because it is large) it can be updated to 1.
  • the AMVR index is determined to indicate the first MMVD set
  • the MMVD range index is determined to indicate the second MMVD set index.
  • the first MMVD set has a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
  • the magnitude of the x and y values of the base motion vector of the MMVD may have an effect similar to that of the AMVR of the block in deriving the distance for refinement.
  • the present embodiment provides a method of determining the MMVD length table according to the value of the base motion vector.
  • Table 8 below is another example of a table showing the relationship between the MMVD length index and the MMVD offset values, and shows a method of determining the MMVD length table according to the value of the base motion vector.
  • Case 1 has the following conditions.
  • the distance may be adjusted to a distance of 1/4-pel to 2-pel corresponding to Case 3.
  • the number of candidates and the candidate values in the distance table described in this specification are only examples, and it is natural that other numbers or different values may be applied.
  • Case 1 to Case 3 described above may be modified and applied as follows. That is, if one of the candidates to which bi-directional prediction is applied has a motion vector in units of 4-pel or 1-pel as in the following conditions, it may be determined that the condition is satisfied.
  • Case 1 may be as follows.
  • This embodiment may be applied when AMVR is not used, or may be used regardless of whether AMVR is applied.
  • the MMVD length table is determined according to the AMVR index
  • the MMVD is based on the pixel unit of the motion vector as in this embodiment.
  • the length table can be determined.
  • the range of the MMVD offset applied to the motion vector may be determined based on the resolution of the position coordinates indicated by the AMVR index and the base motion vector. For example, when the AMVR index is 0, the range of the MMVD offset applied to the motion vector for prediction of the current block may be determined based on the position coordinate indicated by the motion vector.
  • the position coordinates may include a horizontal position (x coordinate) and/or a vertical position (y coordinate) from an arbitrary position in the picture or block (eg, the position of the upper left pixel).
  • the size of the current block may be considered in the process of applying the MMVD by reflecting the characteristics of the current block.
  • the table for the MMVD offset value may be determined in consideration of at least one of the AMVR mode, the size of the x, y values of the base motion vector, or the size of the current block.
  • the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block. For example, the following method may be considered.
  • AMVR index (imv_idc) is 0 and wxh> 256 (hereinafter, w corresponds to the width of the current block, h corresponds to the height of the current block), the MMVD length table of ⁇ 2, 4, 8, 16 ⁇ is used, and Otherwise, Table 6 or Table 8 is used.
  • the MMVD length table of ⁇ 2, 4, 8, 16 ⁇ is used, otherwise Table 6 or Table 8 is used.
  • the threshold value compared to the used block size may be changed, and the width and height may be considered simultaneously, or the width x height may be considered. It is also natural that AMVR indexes and/or base motion vectors can be considered together.
  • One embodiment of the present specification may determine the MMVD candidate set based on the size of the base motion vector of the MMVD (horizontal (x) size and/or vertical (y) size).
  • the magnitude of the x and y values of the base motion vector of the MMVD can be used to derive an effect similar to the AMVR in deriving the distance for MMVD refinement.
  • Table 7 shows an example in which different distance tables are allocated according to x and y values of the base motion vector according to an embodiment of the present specification.
  • FIG. 21 shows an example of a flowchart for determining a set of MMVD candidates based on the size of a motion vector according to an embodiment of the present specification.
  • the first MMVD candidate set corresponding to Case 1 (1-pel, 2-pel, 4-pel, 8-pel) Can be used. If the motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, the second set of MMVD candidates corresponding to Case 2 (1/2-pel, 1-pel, 2- pel, 4-pel) can be used. If the motion vector MV is smaller than the second reference value T2, a third MMVD candidate set corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) is used. Can.
  • first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
  • T1 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
  • T2 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
  • L0_x is the horizontal size (x value) of the motion vector with respect to the first prediction direction (L0)
  • L0_y is the vertical size (y value) of the motion vector with respect to the first prediction direction (L0)
  • L1_x is the second The horizontal direction magnitude (x value) of the motion vector with respect to the prediction direction L1
  • L1_y represents the vertical direction magnitude (y value) of the motion vector with respect to the second prediction direction L1.
  • L0 or L1 motion vectors may be considered and may be expressed as follows.
  • an x or y value of each of the L0 or L1 direction motion vectors may be considered.
  • 22 and 23 show examples of flowcharts for determining a set of MMVD candidates based on the size and block size of a motion vector according to an embodiment of the present specification.
  • An embodiment of the present specification may determine the MMVD candidate set based on the size of the base motion vector of the MMVD (horizontal (x) size and/or vertical (y) size) and block size.
  • Table 10 shows an example in which different distance tables are allocated according to the size and block size of the base motion vector according to the present embodiment. Cases according to the base motion vector and block size may be expressed as shown in FIGS. 22 and 23.
  • the base motion vector MV when the base motion vector MV is greater than the first reference value T1, if the block size BS is greater than the first block size reference value BS_T1, the first MMVD candidate set corresponding to Case 1 If (1-pel, 2-pel, 4-pel, 8-pel) is used, and the block size (BS) is less than or equal to the first block size reference value (BS_T1), the third MMVD candidate set corresponding to Case 3 ( 1/4-pel, 1/2-pel, 1-pel, 2-pel) can be used.
  • the base motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2 if the block size BS is greater than the second block size reference value BS_T2, Case 2 A second MMVD candidate set corresponding to (1/2-pel, 1-pel, 2-pel, 4-pel) is used, and if the block size (BS) is less than or equal to the second block size reference value (BS_T2), Case A third MMVD candidate set corresponding to 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used. If the base motion vector MV is less than or equal to the second second reference value T2, a third set of MMVD candidates corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2- pel) can be used.
  • the base motion vector MV is greater than the first reference value T1
  • the block size BS is greater than the first block size reference value BS_T1
  • the first MMVD candidate set corresponding to Case 1 If (1-pel, 2-pel, 4-pel, 8-pel) is used, and the block size (BS) is less than or equal to the first block size reference value (BS_T1), the second set of MMVD candidates corresponding to Case 2 ( 1/2-pel, 1-pel, 2-pel, 4-pel) can be used.
  • the base motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2 if the block size BS is greater than the second block size reference value BS_T2, Case 2 A second MMVD candidate set corresponding to (1/2-pel, 1-pel, 2-pel, 4-pel) is used, and if the block size (BS) is less than or equal to the second block size reference value (BS_T2), Case A third MMVD candidate set corresponding to 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used. If the base motion vector MV is less than or equal to the second second reference value T2, a third set of MMVD candidates corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2- pel) can be used.
  • the first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
  • T1 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
  • T2 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
  • first and second block size reference values BS_T1 and T2 may be set as follows, but this is only an example and may be changed.
  • L0_x is the horizontal size (x value) of the motion vector with respect to the first prediction direction (L0)
  • L0_y is the vertical size (y value) of the motion vector with respect to the first prediction direction (L0)
  • L1_x is the second The horizontal direction magnitude (x value) of the motion vector with respect to the prediction direction L1
  • L1_y represents the vertical direction magnitude (y value) of the motion vector with respect to the second prediction direction L1.
  • L0 or L1 motion vectors may be considered and may be expressed as follows.
  • an x or y value of each of the L0 or L1 direction motion vectors may be considered.
  • the bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the size and block size of the motion vector as in this embodiment.
  • FIG. 24 illustrates an example of a flow chart for determining an MMVD candidate set based on the resolution of a motion vector according to an embodiment of the present specification.
  • the MMVD candidate set may be determined based on the pixel resolution of coordinates indicated by the motion vector.
  • Table 11 shows an example of a distance table based on the resolution of the coordinates indicated by the motion vector.
  • the second MMVD candidate set corresponding to Case 2 (1/2-pel, 1-pel, 2-pel, 4-pel) may be used.
  • a third MMVD candidate set corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used.
  • the motion vector when the motion vector is not 0, it may be determined as follows.
  • the following is an example of the case where the base motion vector is bi-directional prediction, and a similar method can be applied to uni-directional prediction.
  • a method for determining whether the motion vector has a resolution of 4-pel units may be as follows. The following is an example of the case where the base motion vector is bi-directional prediction, and a similar method can be used when uni-directional prediction is applied.
  • 64 and 16 may be applied when the motion vector has a precision of 1/16, but this is only an example and may vary according to a video processing system.
  • the bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the resolution of the pixel indicated by the motion vector as in this embodiment.
  • 25 and 26 illustrate examples of flowcharts for determining a set of MMVD candidates based on the size and resolution of a motion vector according to an embodiment of the present specification.
  • the MMVD candidate set may be determined based on the size of the motion vector and the resolution of the pixel coordinates indicated by the resolution of the motion vector.
  • the MMVD distance table can be determined as follows, considering the size of the x and y values of the base motion vector of the MMVD and the motion vector resolution.
  • Table 12 shows an example in which different distance tables are allocated according to the size of the base motion vector and the resolution of the base motion vector. Case according to the base motion vector value and resolution may be set as shown in FIG. 25 or FIG. 26.
  • the third set of MMVD candidates corresponding to Case 3 can be used.
  • the direct vector (MV) is less than or equal to the second reference value T2
  • a third set of MMVD candidates corresponding to Case 3 (1/4-pel, (1/2-pel, 1-pel, 2-pel) ) Can be used.
  • the first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
  • T1 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
  • T2 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
  • the reference values 32 and 16 for the motion vector resolution can be applied when the motion vector has an accuracy of 1/16, which means that it has an accuracy of 2-pel and 1-pel, respectively, but this is only one example. Its value can vary.
  • the bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the size and resolution of the motion vector as in this embodiment.
  • One embodiment of the present specification provides a method for reducing signaling overhead by scaling an MMVD offset based on at least one of a motion vector or block size.
  • mmvd_merge_flag means a starting point for MVD derived from a merge candidate list.
  • mmvd_distance_idx represents the distance from the point of lapse (MMVD distance), and the MMVD distance is predefined in the range of 1 to 127 (1/4 pel to 32 pel) as shown in Table 14 (substantially the same as Table 4) (pre-defined) ).
  • mmvd_direction_idx indicates the direction from the stop point, and the direction is defined as Table 15 (substantially the same as Table 5).
  • MMVD offset (MmvdOffset) can be derived as follows.
  • MmvdOffset[ x0 ][ y0 ][ 0] (MmvdDistance[ x0 ][ y0] ⁇ 2) * MmvdSign[ x0 ][ y0 ][0]
  • MmvdOffset[ x0 ][ y0 ][ 1] (MmvdDistance[ x0 ][ y0] ⁇ 2) * MmvdSign[ x0 ][ y0 ][1]
  • the actual movement distance from the given movement distance index is further adjusted in consideration of the following methods.
  • the motion distance in MMVD is determined by the size of the base motion vector and the width and height of the block.
  • the MMVD distance is controlled by the left shift 2 because a motion vector indicating a distance position is used and a coding block having a large block size has coarse motion.
  • the MMVD distance is controlled by the left shift 1 because a coding block having a small block size and coded using the size of a motion vector indicating a close position has a grain motion.
  • Table 17 below shows the specific conditions of the proposed method.
  • the motion distance is determined by the motion vector resolution. Generally, since a coding block coded using a motion vector indicating an integer position has coarse motion, the MMVD distance is controlled by the left shift 2. In the same way, since a coding block coded with a motion vector indicating a fractional position has a grain motion, the MMVD distance is controlled by left shift 1. Method 2 may be performed as shown in Table 18 below when the x or y component for L0 or L1 is not zero.
  • MVD (MvmdOffset) from the starting point for MMVD can be changed as follows.
  • MmvdOffset[ x0 ][ y0 ][ 0] (distance ⁇ 2) * MmvdSign[ x0 ][ y0 ][0]
  • MmvdOffset[ x0 ][ y0 ][ 1] (distance ⁇ 2) * MmvdSign[ x0 ][ y0 ][1]
  • Signaling overhead required to transmit the MMVD distance index can be reduced by performing scaling for the MMVD offset based on the motion vector or block size as in this embodiment.
  • the conditions related to the scaling of the above-described MMVD offset may be variously set as shown in Tables 19 to 26 below.
  • the scaling method of the MMVD offset considering condition 1 (x, y component and block size in the reference direction) can be expressed as shown in Table 20.
  • the scaling method of the MMVD offset considering condition 2 (x (or y) component and block size in each reference direction) may be expressed as Table 21.
  • x (or y) component is always considered, or the x and y components can be considered adaptively according to the block size.
  • x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis.
  • the scaling method of the MMVD offset considering condition 3 (only the x (or y) component in each reference direction) can be expressed as Table 22.
  • x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis.
  • the meaning of considering each x and y component includes both x and y, or both x and y.
  • the reference value (threshold) T1 may be changed according to an embodiment.
  • a method of scaling the MMVD offset in consideration of condition 4 may be expressed as Table 22 below.
  • motion information in one direction may be considered without considering both L0 and L1 lists. It is natural that combinations with conditions 1 to 3 are possible when using this method. Also, only the x or y component in one direction may be considered, and the x and y components may be considered adaptively depending on the size of the block and the direction of the motion vector. In addition, each comparison item can be changed to'or' or'and' condition, and the reference value can also be changed.
  • the MMVD offset can be scaled considering both x and y components, and can be expressed as Table 24 below.
  • a method for scaling the MMVD offset in consideration of the x and y resolution of the base MV can be expressed as Table 25 below.
  • the method of scaling the MMVD offset according to the resolution of the motion vector in consideration of condition 1 may be expressed as Table 26 below.
  • a method of scaling the MMVD offset according to the resolution of the motion vector in consideration of condition 2 may be expressed as shown in Table 27 below.
  • x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis.
  • the meaning of considering each x and y component includes both x and y, or both x and y.
  • the reference value (threshold) T1 may be changed according to an embodiment.
  • motion information in one direction may be considered without considering both L0 and L1 lists. It is natural that combinations with conditions 1 to 3 are possible when using this method. Also, only the x or y component in one direction may be considered, and the x and y components may be considered adaptively depending on the size of the block and the direction of the motion vector. In addition, each comparison item can be changed to'or' or'and' condition, and the reference value can also be changed.
  • FIG. 27 is a flowchart for processing a video signal according to an embodiment of the present disclosure
  • FIG. 27A shows an example of a video signal decoding method
  • FIG. 27B an example of a video signal encoding method.
  • the operations of FIGS. 27A and 27B may be performed by the inter prediction unit 180 of the encoding device 100 or the inter prediction unit 260 of the decoding device 200.
  • the operations of FIGS. 27A and 27B may be performed by the processor 510 of the video signal processing apparatus 500.
  • the decoding apparatus 200 obtains at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on the merge index (S2710). For example, the decoding apparatus 200 constructs a merge candidate list from the spatial neighboring blocks A0, A1, B0, B1, and B2 of FIG. 16 and temporal neighboring blocks, and is indicated by the merge index in the merge candidate list Decide which candidates to merge.
  • the decoding apparatus 200 may obtain information (reference picture index) for a motion vector and a reference picture corresponding to a merge candidate.
  • step S2720 the decoding apparatus 200 determines an MMVD offset applied to at least one motion vector based on the MMVD length index.
  • the MMVD offset represents a value for refinement of a motion vector obtained based on a merge index.
  • the MMVD length index indicates an index indicating one of a plurality of MMVD offset candidate values.
  • the decoding apparatus 200 determines a first offset value associated with the length index, and based on at least one of the at least one motion vector or the size of the current block, the first offset A second offset value may be determined by scaling the value by a scale value, and the second offset value may be determined as an MMVD offset.
  • the decoding apparatus 200 considers the magnitude (MV) of the motion vector and the width (W) and height (H) of the current block to shift values for scaling the MMVD offset (eg, 0, 1, 2) can be determined.
  • the scale value may be determined based on at least one of the size of at least one motion vector and the resolution of coordinates indicated by the at least one motion vector.
  • the decoding apparatus 200 determines the shift value for scaling the MMVD offset in consideration of the magnitude (MV) of the motion vector, as shown in Table 17, or the MMVD offset in consideration of the resolution of the motion vector as shown in Table 18.
  • the shift value for scaling can be determined.
  • the first offset value may mean a value indicated by the MMVD length index in a table previously defined as in Table 14 or Table 16.
  • At least one motion vector is composed of a horizontal component (x component) and a vertical component (y component), and an MMVD offset may be applied to at least one of the horizontal component or the vertical component. Further, in determining the condition for scaling the MMVD offset, both the horizontal component and the vertical component of the motion vector may be considered, or only one of the horizontal component and the vertical component may be considered.
  • the at least one motion vector includes a first motion vector (L0 motion vector) associated with the first reference picture list (L0) and a second motion vector (L1 motion vector) associated with the second reference picture list (L1).
  • a second offset value may be determined based on at least one of the first motion vector or the second motion vector. That is, as a condition for scaling the MMVD offset, both the L0 motion vector and the L1 motion vector may be considered, or only one of the L1 motion vector or the L1 motion vector may be considered.
  • the decoding apparatus 200 generates a prediction sample of the current block based on at least one motion vector to which an MMVD offset is applied and a reference picture associated with the merge index.
  • the decoding apparatus 200 determines the sign applied to the x or y value of the MMVD offset using the MMVD direction index, applies the MMVD offset to the sign determined by the MMVD direction index, and applies the MMVD sign.
  • An offset value may be added to a motion vector, and a prediction sample may be generated using a motion vector to which an MMVD offset is applied.
  • step S2760 the encoding apparatus 100 determines at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block.
  • the encoding apparatus 100 determines an MMVD offset applied to at least one motion vector. For example, the encoding apparatus 100 constructs a merge candidate list from the spatial neighboring blocks A0, A1, B0, B1, and B2 of FIG. 16 and temporal neighboring blocks, and is indicated by the merge index in the merge candidate list Decide which candidates to merge.
  • the encoding apparatus 200 may generate/code information (reference picture index) for a motion vector and a reference picture corresponding to a merge candidate.
  • the encoding apparatus 100 performs prediction on the current block based on at least one motion vector to which the MMVD offset is applied and at least one reference picture.
  • the MMVD offset represents a value for refinement of a motion vector obtained based on a merge index.
  • the encoding apparatus 100 may generate/code an MMVD length index, and the MMVD length index indicates an index indicating one of a plurality of MMVD offset candidate values.
  • the encoding apparatus 100 determines the sign applied to the x or y value of the MMVD offset, applies the determined sign to the MMVD offset, adds the signed MMVD offset value to the motion vector, and the MMVD offset A predictive sample can be generated using this applied motion vector.
  • the encoding apparatus 100 codes information related to prediction.
  • the prediction-related information includes at least one motion vector, a merge index (eg, merge index) associated with the at least one reference picture, and an MMVD distance index (eg, mmvd_distance_idx) indicating an MMVD offset value. can do.
  • information related to prediction may code information related to a sign applied to an MMVD offset (eg, mmvd_direction_idx).
  • the encoding apparatus 100 determines a first offset value associated with the MMVD length index, and determines the first offset value based on the at least one motion vector.
  • the second offset value can be determined by scaling by the scale value, and the second offset value can be determined as the MMVD offset.
  • the scale value may be determined based on at least one of the size of at least one motion vector and the resolution of coordinates indicated by the at least one motion vector. For example, the encoding apparatus 200 determines the shift value for scaling the MMVD offset in consideration of the magnitude (MV) of the motion vector, as shown in Table 17, or considers the resolution of the motion vector, as shown in Table 18, of the MMVD offset. The shift value for scaling can be determined.
  • the first offset value may mean a value indicated by the MMVD length index in a table previously defined as in Table 14 or Table 16.
  • At least one motion vector is composed of a horizontal component (x component) and a vertical component (y component), and an MMVD offset may be applied to at least one of the horizontal component or the vertical component. Further, in determining the condition for scaling the MMVD offset, both the horizontal component and the vertical component of the motion vector may be considered, or only one of the horizontal component and the vertical component may be considered.
  • the at least one motion vector includes a first motion vector (L0 motion vector) associated with the first reference picture list (L0) and a second motion vector (L1 motion vector) associated with the second reference picture list (L1).
  • a second offset value may be determined based on at least one of the first motion vector or the second motion vector. That is, as a condition for scaling the MMVD offset, both the L0 motion vector and the L1 motion vector may be considered, or only one of the L1 motion vector or the L1 motion vector may be considered.
  • the embodiments described herein may be implemented and implemented on a processor, microprocessor, controller, or chip.
  • the functional units shown in each figure may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
  • the processing method to which the present specification is applied may be produced in the form of a computer-executable program, and may be stored in a computer-readable recording medium.
  • Multimedia data having a data structure according to the present specification may also be stored in a computer-readable recording medium.
  • the computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored.
  • the computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device.
  • the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet).
  • the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
  • embodiments of the present specification may be implemented as a computer program product using program codes, and the program codes may be executed on a computer by the embodiments of the present specification.
  • the program code can be stored on a computer readable carrier.
  • the decoding device and encoding device to which the present specification is applied may be included in a digital device.
  • the term "digital device" includes all digital devices capable of performing at least one of transmission, reception, processing, and output, for example, of data, content, and services.
  • the processing of the data, content, service, etc. by the digital device includes an operation of encoding and/or decoding data, content, service, and the like.
  • These digital devices are paired or connected (hereinafter referred to as'pairing') with other digital devices, external servers, etc. through a wired/wireless network to transmit and receive data. Convert it accordingly.
  • Digital devices include, for example, fixed devices such as network TV, HBBTV (Hybrid Broadcast Broadband TV), smart TV (Smart TV), IPTV (internet protocol television), PC (Personal Computer), and the like. , PDA (Personal Digital Assistant), smart phones (Smart Phone), tablet PCs (Tablet PC), notebooks, mobile devices (mobile devices or handheld devices).
  • HBBTV Hybrid Broadcast Broadband TV
  • Smart TV Smart TV
  • IPTV Internet protocol television
  • PC Personal Computer
  • PDA Personal Digital Assistant
  • smart phones Smart Phone
  • Tablett PC Tablett PC
  • notebooks mobile devices
  • mobile devices mobile devices or handheld devices.
  • a digital TV is illustrated in FIG. 31 and a mobile device in FIG. 30, which will be described later, for convenience.
  • wired/wireless network refers to a communication network that supports various communication standards or protocols for interconnection and/or data transmission and reception between digital devices or digital devices and external servers.
  • Such a wired/wireless network may include both current and future communication networks to be supported by the standard and communication protocols therefor, such as Universal Serial Bus (USB), Composite Video Banking Sync (CVBS), component, and S-Video.
  • USB Universal Serial Bus
  • CVBS Composite Video Banking Sync
  • component component
  • S-Video S-Video
  • Wi-Fi Direct can be formed by a communication standard for a wireless connection.
  • DVI Digital Visual Interface
  • HDMI High Definition Multimedia Interface
  • RGB High Definition Multimedia Interface
  • D-SUB and Bluetooth
  • RFID Radio Frequency Identification
  • IrDA Infrared Data Association
  • UWB Ultra Wideband
  • ZigBee Digital Living Network Alliance
  • DLNA Wireless LAN
  • Wi-Fi Wireless broadband
  • Wibro World Interoperability for Microwave (Wimax) Access
  • HSDPA High Speed Downlink Packet Access
  • LTE Long Term Evolution
  • Wi-Fi Direct can be formed by a communication standard for a wireless connection.
  • a digital device in the case of merely referring to a digital device in the present specification, it may mean a fixed device or a mobile device or include both depending on context.
  • the digital device is an intelligent device that supports, for example, a broadcast reception function, a computer function or support, and at least one external input, e-mail, web browsing through a wired/wireless network described above ( It can support web browsing, banking, games, and applications.
  • the digital device may include an interface for supporting at least one input or control means (hereinafter referred to as an input means) such as a handwritten input device, a touch screen, and a space remote control.
  • the digital device can use a standardized general-purpose operating system (OS). For example, a digital device can add, delete, modify, and update various applications on a general-purpose OS kernel. You can configure and provide a user-friendly environment.
  • OS general-purpose operating system
  • the external input described in this specification includes an external input device, that is, all input means or digital devices connected to the above-mentioned digital device by wire/wireless and capable of transmitting/receiving related data through it.
  • the external input is, for example, a high-definition multimedia interface (HDMI), a game device such as a play station or an X-box, a smart phone, a tablet PC, a printer, a digital digital device such as a smart TV. Includes all devices.
  • HDMI high-definition multimedia interface
  • server means a client, that is, includes all digital devices or systems that supply data to the digital devices described above, and is called a processor.
  • a server include a web page or a portal server providing web content, an advertising server providing advertising data, a content server providing content, and an SNS Social Network Service) may include an SNS server providing a service, a service server provided by a manufacturer, or a manufacturing server.
  • the "channel (channel)" described herein means a path (path), means (means), etc. for transmitting and receiving data, for example, a broadcasting channel (broadcasting channel).
  • the broadcast channel is expressed in terms of a physical channel, a virtual channel, and a logical channel according to the activation of digital broadcasting.
  • a broadcast channel can be called a broadcast network.
  • the broadcast channel refers to a channel for providing or accessing broadcast content provided by a broadcasting station, and the broadcast content is mainly based on real-time broadcasting and is also called a live channel. .
  • the medium for broadcasting has become more diversified, and non-real time broadcasting is also activated in addition to real-time broadcasting, so the live channel is not only real-time broadcasting, but in some cases, non-real-time broadcasting. It may also be understood as a term meaning the entire channel.
  • arbitrary channel is further defined in relation to a channel other than the above-described broadcast channel.
  • the arbitrary channel may be provided together with a service guide such as an electronic program guide (EPG) along with a broadcast channel, or a service guide, a GUI (Graphic User Interface) or an OSD screen (On-Screen Display) with only any channel. screen).
  • EPG electronic program guide
  • GUI Graphic User Interface
  • OSD screen On-Screen Display
  • a random channel is a channel randomly allocated by a receiver, and a channel number that is not basically overlapped with a channel number for expressing the broadcast channel is allocated.
  • the receiver receives a broadcast signal that transmits broadcast content and signaling information therefor through the tuned channel.
  • the receiver parses channel information from the signaling information, and configures a channel browser, an EPG, and the like based on the parsed channel information and provides it to the user.
  • the receiver responds accordingly.
  • the broadcast channel is a content previously promised between the transmitting and receiving terminals, when a random channel is repeatedly allocated with the broadcast channel, it may cause confusion or a confusion of the user. .
  • the random channel number is not duplicated with the broadcast channel number as described above, there is still a confusion in the channel surfing process of the user, and it is required to allocate the random channel number in consideration of this.
  • any channel according to the present specification can also be implemented to be accessed as a broadcast channel in the same manner in response to a user's request to switch a channel through an input means in the same way as a conventional broadcast channel.
  • the random channel number is a type in which characters are written in parallel, such as random channel-1, random channel-2, and the like, for a convenience of discrimination or identification between a user's random channel access and a broadcast channel number. It can be defined and marked as.
  • the display of an arbitrary channel number may be realized in the form of a character in parallel as in random channel-1, or in the form of a number in the receiver, as in the number of the broadcast channel.
  • an arbitrary channel number may be provided in a numeric form, such as a broadcast channel, and a channel number may be defined and displayed in various ways distinguishable from a broadcast channel, such as video channel-1, title-1, and video-1. have.
  • the digital device executes a web browser for a web service, and provides various types of web pages to the user.
  • the web page includes a web page including a video content
  • the video is processed separately or independently from the web page.
  • the separated video can be implemented by allocating an arbitrary channel number as described above, providing it through a service guide, etc., and outputting it according to a channel switching request in a process of viewing a service guide or a broadcast channel.
  • predetermined content, images, audio, items, etc. are separately processed from the broadcast content, games, and applications themselves, and for playback, processing, etc. Any channel number can be assigned and implemented as described above.
  • FIG. 28 is a diagram schematically showing an example of a service system including a digital device.
  • Service systems including digital devices include a content provider (CP) 2810, a service provider (SP) 2820, a network provider (NP) 2830, and a home network end user (HNED). ) (Customer) 2840.
  • the HNED 2840 is, for example, a client 2800, that is, a digital device.
  • the content provider 2810 produces and provides various content. As shown in FIG. 34 as such a content provider 2810, terrestrial broadcaster, cable SO (System Operator) or MSO (Multiple SO), satellite broadcaster (satellite broadcaster) , Various Internet broadcasters, and private content providers (Private CPs). Meanwhile, the content provider 2810 provides various applications in addition to broadcast content.
  • the service provider 2820 provides the content provided by the content provider 2810 as a service package to the HNED 2840.
  • the service provider 2820 of FIG. 34 packages the first terrestrial broadcast, the second terrestrial broadcast, the cable MSO, the satellite broadcast, various Internet broadcasts, applications, etc., and provides them to the HNED 2840.
  • the service provider 2820 provides services to the client 300 in a uni-cast or multi-cast manner. Meanwhile, the service provider 2820 may transmit data to a plurality of pre-registered clients 2800 at a time, and for this, an Internet Group Management Protocol (IGMP) protocol may be used.
  • IGMP Internet Group Management Protocol
  • the above-described content provider 2810 and service provider 2820 may be identical or single entities.
  • the content provided by the content provider 2810 may be service packaged and provided to the HNED 2840 to perform the function of the service provider 2820 together or vice versa.
  • the network provider 2830 provides a network for data exchange between the content provider 2810 or/and the service provider 2820 and the client 2800.
  • the client 2800 can establish a home network to transmit and receive data.
  • the content provider 2810 or/and the service provider 2820 in the service system may use conditional access or content protection means to protect transmitted content.
  • the client 300 may use processing means such as a cable card (POD: Point of Deployment), DCAS (Downloadable CAS), etc. in response to the restriction reception or content protection.
  • POD Point of Deployment
  • DCAS Downloadable CAS
  • the client 2800 may also use a bidirectional service through a network (or communication network). In this case, rather, the client 2800 may perform the function of a content provider, and the existing service provider 2820 may receive it and transmit it back to another client.
  • 29 is a block diagram illustrating a digital device according to an embodiment. 29, for example, may correspond to the client 2800 of FIG. 28, and refers to the digital device described above.
  • the digital device 2900 includes a network interface 2901, a TCP/IP manager 2902, a service delivery manager 2903, an SI decoder 2904, Demultiplexer (demux) 2905, audio decoder 2906, video decoder 2907, display A/V and OSD module 2908, service control manager control manager (2909), service discovery manager (service discovery manager) 2910, SI & metadata database (SI&Metadata DB) 2911, metadata manager 2912, service manager 2913, UI And a manager 2914 and the like.
  • SI& metadata database SI&Metadata DB
  • the network interface unit 2901 receives or transmits Internet protocol (IP) packets through a network. That is, the network interface unit 2901 receives services, content, and the like from the service provider 3420 through a network network.
  • IP Internet protocol
  • the TCP/IP manager 2902 is configured to transmit packets between IP packets received by the digital device 2900 and IP packets transmitted by the digital device 2900, that is, between a source and a destination. Get involved. And the TCP/IP manager 2902 classifies the received packet(s) to correspond to an appropriate protocol, and the service delivery manager 2905, the service discovery manager 2910, the service control manager 2909, and the metadata manager 2912 ), and the like.
  • the service delivery manager 2901 is responsible for controlling received service data. For example, the service delivery manager 2901 may use RTP/RTCP when controlling real-time streaming data.
  • the service delivery manager 2930 parses the received data packet according to RTP and transmits it to the demultiplexer 2905 or control of the service manager 2913 According to the SI & metadata database 2911.
  • the service delivery manager 2930 uses the RTCP to feed back the network reception information to a server providing a service.
  • the demultiplexing unit 2905 demultiplexes the received packets into audio, video, and system information (SI) data, and transmits them to the audio/video decoder 2906/2907 and the SI decoder 2904, respectively.
  • SI system information
  • the SI decoder 2904 decodes service information such as program specific information (PSI), program and system information protocol (PSIP), and digital video broadcasting-service information (DVB-SI).
  • PSI program specific information
  • PSIP program and system information protocol
  • DVB-SI digital video broadcasting-service information
  • the SI decoder 2904 stores the decoded service informations in, for example, the SI & metadata database 2911.
  • the service information stored in this way may be read and used by a corresponding configuration, for example, by a user's request.
  • the audio/video decoder 2906/2907 decodes each audio data and video data demultiplexed by the demultiplexing unit 405.
  • the audio data and video data thus decoded are provided to the user through the display unit 2908.
  • the application manager may include, for example, a UI manager 2914 and a service manager 2913.
  • the application manager may manage the overall state of the digital device 2900, provide a user interface, and manage other managers.
  • the UI manager 2914 provides a graphical user interface (GUI) for a user using an on-screen display (OSD) or the like, and receives key input from a user to perform device operation according to the input. For example, when the UI manager 2914 receives a key input for channel selection from a user, the UI manager 2914 transmits the key input signal to the service manager 2913.
  • GUI graphical user interface
  • OSD on-screen display
  • the service manager 2913 controls a manager associated with a service, such as a service delivery manager 2930, a service discovery manager 2910, a service control manager 2909, and a metadata manager 2912.
  • the service manager 2913 creates a channel map and selects a channel using the channel map according to a key input received from the user interface manager 2914. Then, the service manager 2913 receives the channel service information from the SI decoder 2904 and sets the audio/video PID (packet identifier) of the selected channel to the demultiplexer 2905.
  • the PID set in this way is used in the demultiplexing process described above. Accordingly, the demultiplexer 2905 filters the audio data, video data, and SI data using the PID.
  • the service discovery manager 2910 provides information necessary to select a service provider that provides a service. When a signal regarding channel selection is received from the service manager 2913, the service discovery manager 2910 finds a service using the information.
  • the service control manager 2909 is responsible for selecting and controlling services.
  • the service control manager 2909 uses IGMP or RTSP when a user selects a live broadcasting service such as a conventional broadcasting method, and selects a service such as video on demand (VOD).
  • the RTSP is used to select and control services.
  • the RTSP protocol may provide a trick mode for real-time streaming.
  • the service control manager 2909 may initialize and manage a session through the IMS gateway 2950 using an IP multimedia subsystem (IMS) and a session initiation protocol (SIP).
  • IMS IP multimedia subsystem
  • SIP session initiation protocol
  • the protocols are one embodiment, and other protocols may be used according to implementation examples.
  • the metadata manager 2912 manages metadata associated with a service and stores the metadata in the SI & metadata database 2911.
  • the SI & metadata database 2911 stores service information decoded by the SI decoder 2904, metadata managed by the metadata manager 2912, and information necessary to select a service provider provided by the service discovery manager 2910. To save.
  • the SI & metadata database 2911 may store set-up data and the like for the system.
  • the SI & metadata database 2911 may be implemented using non-volatile RAM (NVRAM), flash memory, or the like.
  • NVRAM non-volatile RAM
  • the IMS gateway 2950 is a gateway that collects functions necessary for accessing an IMS-based IPTV service.
  • FIG. 30 is a configuration block diagram illustrating another embodiment of a digital device.
  • FIG. 30 illustrates a block diagram of a mobile device as another embodiment of a digital device.
  • the mobile device 3000 includes a wireless communication unit 3010, an audio/video (A/V) input unit 3020, a user input unit 3030, a sensing unit 3040, and an output unit 3050.
  • a memory 3060, an interface unit 3070, a control unit 3080, and a power supply unit 3090 may be included.
  • the components shown in FIG. 36 are not essential, so a mobile device with more or fewer components may be implemented.
  • the wireless communication unit 3010 may include one or more modules that enable wireless communication between the mobile device 3000 and the wireless communication system or between the mobile device and the network where the mobile device is located.
  • the wireless communication unit 3010 may include a broadcast reception module 3011, a mobile communication module 3012, a wireless Internet module 3013, a short-range communication module 3014, and a location information module 3015. .
  • the broadcast receiving module 3011 receives a broadcast signal and/or broadcast-related information from an external broadcast management server through a broadcast channel.
  • the broadcast channel may include a satellite channel and a terrestrial channel.
  • the broadcast management server may mean a server that generates and transmits broadcast signals and/or broadcast-related information or a server that receives previously generated broadcast signals and/or broadcast-related information and transmits them to a terminal.
  • the broadcast signal may include a TV broadcast signal, a radio broadcast signal, and a data broadcast signal, and may also include a TV broadcast signal or a radio broadcast signal combined with a data broadcast signal.
  • the broadcast related information may mean information related to a broadcast channel, broadcast program, or broadcast service provider. Broadcast-related information may also be provided through a mobile communication network. In this case, it may be received by the mobile communication module 3012.
  • Broadcast-related information may exist in various forms, for example, an electronic program guide (EPG) or an electronic service guide (ESG).
  • EPG electronic program guide
  • ESG electronic service guide
  • Broadcast receiving module 3011 for example, ATSC, DVB-T (digital video broadcasting-terrestrial), DVB-S (satellite), MediaFLO (media forward link only), DVB-H (handheld), ISDB-T (Digital broadcast signals can be received using digital broadcast systems such as integrated services digital broadcast-terrestrial.
  • the broadcast receiving module 3011 may be configured to be suitable for other broadcasting systems as well as the digital broadcasting system described above.
  • the broadcast signal and/or broadcast-related information received through the broadcast receiving module 3011 may be stored in the memory 3060.
  • the mobile communication module 3012 transmits and receives wireless signals to and from at least one of a base station, an external terminal, and a server on a mobile communication network.
  • the wireless signal may include various types of data according to transmission and reception of a voice signal, a video call signal, or a text/multimedia message.
  • the wireless Internet module 3013 includes a module for wireless Internet access, and may be built in or external to the mobile device 3000.
  • wireless Internet technology wireless LAN (WLAN) (Wi-Fi), wireless broadband (Wibro), world interoperability for microwave access (Wimax), and high speed downlink packet access (HSDPA) may be used.
  • WLAN wireless LAN
  • Wibro wireless broadband
  • Wimax wireless broadband
  • HSDPA high speed downlink packet access
  • the short-range communication module 3014 refers to a module for short-range communication.
  • Bluetooth radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, RS-232, RS-485, etc. may be used as short range communication technology.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra wideband
  • ZigBee ZigBee
  • RS-232 RS-485, etc.
  • the location information module 3015 is a module for obtaining location information of the mobile device 3000, and may use a global positioning system (GPS) module as an example.
  • GPS global positioning system
  • the A/V input unit 3020 is for audio or/and video signal input, and may include a camera 3021, a microphone 3022, and the like.
  • the camera 3021 processes image frames such as still images or moving pictures obtained by an image sensor in a video call mode or a shooting mode.
  • the processed image frame may be displayed on the display portion 3051.
  • the image frame processed by the camera 3021 may be stored in the memory 3060 or transmitted to the outside through the wireless communication unit 3010. Two or more cameras 3021 may be provided depending on the use environment.
  • the microphone 3022 receives an external sound signal by a microphone in a call mode or a recording mode, a voice recognition mode, and processes it as electrical voice data.
  • the processed voice data may be converted and output in a form that can be transmitted to the mobile communication base station through the mobile communication module 3012 in the call mode.
  • the microphone 3022 may be implemented with various noise reduction algorithms for removing noise generated in the process of receiving an external sound signal.
  • the user input unit 3030 generates input data for the user to control the operation of the terminal.
  • the user input unit 3030 may be configured of a key pad, a dome switch, a touch pad (static pressure/power outage), a jog wheel, a jog switch, or the like.
  • the sensing unit 3040 displays the current state of the mobile device 3000, such as the open/closed state of the mobile device 3000, the location of the mobile device 3000, the presence or absence of user contact, the orientation of the mobile device, and acceleration/deceleration of the mobile device. It senses and generates a sensing signal for controlling the operation of the mobile device 3000. For example, when the mobile device 3000 is moved or tilted, the position or tilt of the mobile device may be sensed. In addition, whether power is supplied to the power supply unit 3090 or whether external devices are coupled to the interface unit 3070 may be sensed. Meanwhile, the sensing unit 3040 may include a proximity sensor 3041 including near field communication (NFC).
  • NFC near field communication
  • the output unit 3050 is for generating output related to vision, hearing, or tactile sense, and may include a display unit 3051, an audio output module 3052, an alarm unit 3053, and a haptic module 3054. have.
  • the display unit 3051 displays (outputs) information processed by the mobile device 3000. For example, when the mobile device is in a call mode, a user interface (UI) or a graphic user interface (GUI) related to the call is displayed. When the mobile device 3000 is in a video call mode or a photographing mode, a photographed and/or received image or UI, GUI is displayed.
  • UI user interface
  • GUI graphic user interface
  • the display portion 3051 includes a liquid crystal display (LCD), a thin film transistor-liquid crystal display (TFT LCD), an organic light-emitting diode (OLED), and a flexible display ( flexible display), and a 3D display.
  • LCD liquid crystal display
  • TFT LCD thin film transistor-liquid crystal display
  • OLED organic light-emitting diode
  • flexible display flexible display
  • 3D display 3D display
  • Some of these displays may be of a transparent type or a light transmissive type so that the outside can be seen through them. This may be called a transparent display, and a typical example of the transparent display is TOLED (transparent OLED).
  • the rear structure of the display portion 3051 may also be configured as a light transmissive structure. With this structure, the user can see an object located behind the terminal body through an area occupied by the display unit 3051 of the terminal body.
  • Two or more display units 3051 may be present depending on the implementation form of the mobile device 3000.
  • a plurality of display units may be spaced apart from one surface or integrally disposed on the mobile device 3000, or may be respectively disposed on different surfaces.
  • the display unit 3051 When the display unit 3051 and a sensor that senses a touch operation (hereinafter referred to as a'touch sensor') form a mutual layer structure (hereinafter referred to as a'touch screen'), the display unit 3051 inputs other than an output device. It can also be used as a device.
  • the touch sensor may have, for example, a form of a touch film, a touch sheet, or a touch pad.
  • the touch sensor may be configured to convert a change in pressure applied to a specific portion of the display portion 3051 or capacitance generated in a specific portion of the display portion 3051 into an electrical input signal.
  • the touch sensor may be configured to detect not only the touched position and area, but also pressure at the time of touch.
  • the corresponding signal(s) is sent to the touch controller.
  • the touch controller processes the signal(s) and then transmits corresponding data to the controller 3080. Accordingly, the control unit 3080 can know which area of the display unit 3051 is touched, and the like.
  • a proximity sensor 3041 may be disposed in an inner area of the mobile device surrounded by the touch screen or near the touch screen.
  • the proximity sensor refers to a sensor that detects the presence or absence of an object approaching a predetermined detection surface or an object in the vicinity using mechanical force or infrared light without mechanical contact.
  • Proximity sensors have a longer lifespan and higher utilization than contact sensors.
  • the proximity sensor examples include a transmission type photoelectric sensor, a direct reflection type photoelectric sensor, a mirror reflection type photoelectric sensor, a high frequency oscillation type proximity sensor, a capacitive type proximity sensor, a magnetic type proximity sensor, and an infrared proximity sensor.
  • the touch screen When the touch screen is capacitive, it is configured to detect the proximity of the pointer due to a change in the electric field according to the proximity of the pointer. In this case, the touch screen (touch sensor) may be classified as a proximity sensor.
  • proximity touch the act of allowing the pointer to be recognized as being positioned on the touch screen without being touched by the pointer on the touch screen
  • contact touch the act of actually touching the pointer
  • the location on the touch screen that is the proximity touch with the pointer means a location where the pointer is perpendicular to the touch screen when the pointer is touched close.
  • the proximity sensor detects a proximity touch and a proximity touch pattern (eg, proximity touch distance, proximity touch direction, proximity touch speed, proximity touch time, proximity touch position, proximity touch movement state, etc.). Information corresponding to the sensed proximity touch operation and the proximity touch pattern may be output on the touch screen.
  • a proximity touch pattern eg, proximity touch distance, proximity touch direction, proximity touch speed, proximity touch time, proximity touch position, proximity touch movement state, etc.
  • the audio output module 3052 may output audio data received from the wireless communication unit 3010 or stored in the memory 3060 in a call signal reception, call mode or recording mode, voice recognition mode, broadcast reception mode, or the like.
  • the sound output module 3052 may also output sound signals related to functions (for example, call signal reception sound, message reception sound, etc.) performed by the mobile device 3000.
  • the sound output module 3052 may include a receiver, a speaker, and a buzzer.
  • the alarm unit 3053 outputs a signal for notifying the occurrence of the event of the mobile device 3000. Examples of events generated in the mobile device include call signal reception, message reception, key signal input, and touch input.
  • the alarm unit 3053 may also output a signal for notifying the occurrence of an event in a form other than a video signal or an audio signal, for example, vibration.
  • the video signal or the audio signal may also be output through the display unit 3051 or the audio output module 3052, so that the display unit and the audio output modules 3051 and 3052 may be classified as part of the alarm unit 3053.
  • the haptic module 3054 generates various tactile effects that the user can feel.
  • a typical example of the tactile effect generated by the haptic module 3054 is vibration.
  • the intensity and pattern of vibration generated by the haptic module 3054 can be controlled. For example, different vibrations may be synthesized and output or sequentially output.
  • the haptic module 3054 in addition to vibration, is a pin array that vertically moves with respect to the contact surface of the skin, stimulation of the ejection force or inhalation force of the air through the ejection or intake, grazing on the skin surface, contact of the electrode, electrostatic force, etc.
  • Various tactile effects can be generated, such as the effect of the product and the effect of reproducing the feeling of cold and warm using an element capable of absorbing heat or generating heat.
  • the haptic module 3054 can not only deliver the tactile effect through direct contact, but also implement it so that the user can feel the tactile effect through muscle sensations such as fingers or arms. Two or more haptic modules 3054 may be provided according to a configuration aspect of the mobile device 3000.
  • the memory 3060 may store a program for the operation of the control unit 3080, and may temporarily store input/output data (eg, a phone book, message, still image, video, etc.).
  • the memory 3060 may store data related to various patterns of vibration and sound output when a touch is input on the touch screen.
  • the memory 3060 is a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (for example, SD or XD memory, etc.), Random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, It may include at least one type of storage medium among magnetic disks and optical disks.
  • the mobile device 3000 may operate in relation to a web storage that performs a storage function of the memory 3060 on the Internet.
  • the interface unit 3070 serves as a passage with all external devices connected to the mobile device 3000.
  • the interface unit 3070 receives data from an external device, receives power, transfers it to each component inside the mobile device 3000, or allows data inside the mobile device 3000 to be transmitted to the external device.
  • wired/wireless headset port, external charger port, wired/wireless data port, memory card port, port for connecting devices equipped with an identification module, audio input/output (I/O) port, A video I/O port, an earphone port, and the like may be included in the interface unit 3070.
  • the identification module is a chip that stores various information for authenticating the usage rights of the mobile device 3000, a user identification module (UIM), a subscriber identification module (SIM), and a universal user authentication module ( universal subscriber identity module, USIM).
  • the device provided with the identification module (hereinafter referred to as an'identification device') may be manufactured in a smart card format. Therefore, the identification device may be connected to the terminal 3000 through the port.
  • the interface unit 3070 When the mobile terminal 3000 is connected to an external cradle, the interface unit 3070 becomes a passage through which power from the cradle is supplied to the mobile terminal 3000, or various command signals input from the cradle by the user. It can be a passage to the mobile terminal.
  • Various command signals or power input from the cradle may be operated as signals for recognizing that the mobile terminal is correctly mounted on the cradle.
  • the control unit 3080 typically controls the overall operation of the mobile device. For example, it performs related control and processing for voice calls, data communication, video calls, and the like.
  • the control unit 3080 may include a multimedia module 3081 for multimedia playback.
  • the multimedia module 3081 may be implemented in the control unit 3080, or may be implemented separately from the control unit 3080.
  • the control unit 3080, particularly the multimedia module 3081 may include the above-described encoding device 100 and/or decoding device 200.
  • the controller 3080 may perform a pattern recognition process capable of recognizing handwriting input or picture drawing input performed on a touch screen as characters and images, respectively.
  • the power supply unit 3090 receives external power and internal power under the control of the control unit 3080 and supplies power required for the operation of each component.
  • the embodiments described herein include application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), It may be implemented using at least one of a processor, a controller, micro-controllers, microprocessors, and electrical units for performing other functions.
  • ASICs application specific integrated circuits
  • DSPs digital signal processors
  • DSPDs digital signal processing devices
  • PLDs programmable logic devices
  • FPGAs field programmable gate arrays
  • It may be implemented using at least one of a processor, a controller, micro-controllers, microprocessors, and electrical units for performing other functions.
  • the embodiments described herein may include a control unit ( 3080) can be implemented by itself.
  • embodiments such as procedures and functions described herein may be implemented as separate software modules.
  • Each of the software modules can perform one or more functions and operations described herein.
  • Software code can be implemented in a software application written in an appropriate programming language.
  • the software code is stored in the memory 3060 and can be executed by the control unit 3080.
  • 31 is a configuration block diagram illustrating another embodiment of a digital device.
  • the digital device 3100 include a broadcast receiving unit 3105, an external device interface unit 3135, a storage unit 3140, a user input interface unit 3150, a control unit 3170, a display unit 3180, and audio. It may include an output unit 3185, a power supply unit 3190 and a photographing unit (not shown).
  • the broadcast reception unit 3105 may include at least one tuner 3110, a demodulation unit 3120, and a network interface unit 3130. However, in some cases, the broadcast receiving unit 3105 includes a tuner 3110 and a demodulator 3120, but may not include the network interface unit 3130, and vice versa.
  • a multiplexer is provided to multiplex the signal demodulated by the demodulator 3120 via the tuner 3110 and the signal received through the network interface unit 3130. It might be.
  • a demultiplexer may be provided to demultiplex the multiplexed signal or demultiplex the demodulated signal or the signal that has passed through the network interface unit 3130. have.
  • the tuner 3110 receives an RF broadcast signal by tuning a channel selected by a user or all pre-stored channels among radio frequency (RF) broadcast signals received through an antenna. In addition, the tuner 3110 converts the received RF broadcast signal into an intermediate frequency (IF) signal or a baseband signal.
  • IF intermediate frequency
  • the tuner 3110 can process both digital broadcast signals or analog broadcast signals.
  • the analog baseband video or audio signal (CVBS/SIF) output from the tuner 3110 may be directly input to the controller 3170.
  • the tuner 3110 may receive a single carrier RF broadcast signal according to an advanced television system committee (ATSC) scheme or a multiple carrier RF broadcast signal according to a digital video broadcasting (DVB) scheme.
  • ATSC advanced television system committee
  • DVD digital video broadcasting
  • the tuner 3110 may sequentially tune and receive RF broadcast signals of all broadcast channels stored through a channel storage function among RF broadcast signals received through an antenna and convert them into an intermediate frequency signal or a baseband signal. .
  • the demodulator 3120 receives and demodulates the digital IF signal DIF converted by the tuner 3110. For example, when the digital IF signal output from the tuner 3110 is an ATSC method, the demodulator 3120 performs 8-vestigal side band (8-VSB) demodulation, for example. Also, the demodulator 3120 may perform channel decoding. To this end, the demodulator 3120 includes a trellis decoder, a de-interleaver, a Reed-Solomon decoder, and the like, trellis decoding, deinterleaving, and Reed Soloman decoding can be performed.
  • 8-VSB 8-vestigal side band
  • the demodulator 3120 when the digital IF signal output from the tuner 3110 is a DVB method, the demodulator 3120 performs, for example, coded orthogonal frequency division modulation (COFDMA) demodulation.
  • the demodulator 3120 may perform channel decoding.
  • the demodulator 3120 may include a convolution decoder, a deinterleaver, and a read-soloman decoder, and perform convolutional decoding, deinterleaving, and read soloman decoding.
  • the demodulator 3120 may output a stream signal TS after demodulation and channel decoding.
  • the stream signal may be a signal in which a video signal, an audio signal or a data signal is multiplexed.
  • the stream signal may be an MPEG-2 transport stream (TS) in which an MPEG-2 standard video signal and a Dolby AC-3 standard audio signal are multiplexed.
  • the MPEG-2 TS may include a header of 4 bytes and a payload of 184 bytes.
  • the above-described demodulation unit 3120 may be provided separately according to the ATSC method and the DVB method. That is, the digital device may separately include an ATSC demodulator and a DVB demodulator.
  • the stream signal output from the demodulator 3120 may be input to the controller 3170.
  • the control unit 3170 may control demultiplexing, video/audio signal processing, and the like, and control an image output through the display unit 3180 and an audio output unit through the audio output unit 3185.
  • the external device interface unit 3135 provides an environment in which various external devices are interfaced to the digital device 3100.
  • the external device interface unit 3135 may include an A/V input/output unit (not shown) or a wireless communication unit (not shown).
  • the external device interface unit 3135 includes digital versatile disk (DVD), blu-ray, game devices, cameras, camcorders, computers (laptops, tablets), smartphones, Bluetooth devices, and cloud It can be connected to external devices such as (cloud) and wired/wirelessly.
  • the external device interface unit 3135 transmits a video, audio, or data (including image) signal input from the outside through the connected external device to the controller 3170 of the digital device.
  • the control unit 3170 may control the processed image, audio, or data signal to be output to a connected external device.
  • the external device interface unit 3135 may further include an A/V input/output unit (not shown) or a wireless communication unit (not shown).
  • A/V input/output unit USB terminal, CVBS (composite video banking sync) terminal, component terminal, S-video terminal (analog), DVI ( digital visual interface (HDMI) terminal, a high definition multimedia interface (HDMI) terminal, an RGB terminal, and a D-SUB terminal.
  • CVBS composite video banking sync
  • component terminal S-video terminal (analog)
  • DVI digital visual interface (HDMI) terminal
  • HDMI high definition multimedia interface
  • RGB terminal an RGB terminal
  • D-SUB terminal D-SUB terminal
  • the wireless communication unit may perform short-range wireless communication with other electronic devices.
  • the digital device 3100 includes, for example, Bluetooth, radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, digital living network alliance (DLNA). Networks may be connected to other electronic devices according to a communication protocol.
  • RFID radio frequency identification
  • IrDA infrared data association
  • UWB ultra wideband
  • ZigBee wireless living network alliance
  • DLNA digital living network alliance
  • the external device interface unit 3135 may be connected to at least one of various set-top boxes and various terminals described above, and perform input/output operations with the set-top box.
  • the external device interface unit 3135 may receive an application or a list of applications in an adjacent external device and transmit it to the control unit 3170 or the storage unit 3140.
  • the network interface unit 3130 provides an interface for connecting the digital device 3100 with a wired/wireless network including an Internet network.
  • the network interface unit 3130 may include, for example, an Ethernet terminal or the like for connection with a wired network, and, for example, a wireless LAN (WLAN) (Wi-) for connection with a wireless network.
  • WLAN wireless LAN
  • Wi- wireless broadband
  • Wimax world interoperability for microwave access
  • HSDPA high speed downlink packet access
  • the network interface unit 3130 may transmit or receive data with other users or other digital devices through a connected network or another network linked to the connected network.
  • some content data stored in the digital device 3100 may be transmitted to another user registered in advance in the digital device 3100 or to a selected user or selected digital device among other digital devices.
  • the network interface unit 3130 may access a predetermined web page through a connected network or another network linked to the connected network. That is, it is possible to connect to a predetermined web page through a network and transmit or receive data with the corresponding server.
  • content or data provided by a content provider or a network operator may be received. That is, it is possible to receive content such as a movie, advertisement, game, VOD, broadcast signal and related information provided by a content provider or a network provider through a network.
  • the network interface unit 3130 may select and receive a desired application from among applications that are open to the public through a network.
  • the storage unit 3140 may store programs for processing and controlling each signal in the control unit 3170, or may store signal-processed video, audio, or data signals.
  • the storage unit 3140 may perform a function for temporarily storing an image, audio, or data signal input from the external device interface unit 3135 or the network interface unit 3130.
  • the storage unit 3140 may store information regarding a predetermined broadcast channel through a channel memory function.
  • the storage unit 3140 may store an application or a list of applications input from the external device interface unit 3135 or the network interface unit 3130.
  • the storage unit 3140 may store various platforms, which will be described later.
  • the storage unit 3140 includes, for example, a flash memory type, a hard disk type, a multimedia card micro type, and a card type memory (for example, SD or XD) Memory, etc.), RAM (RAM), and ROM (EEPROM, etc.).
  • the digital device 3100 may play and provide content files (video files, still image files, music files, document files, application files, etc.) stored in the storage unit 3140 to the user.
  • FIG 31 illustrates an embodiment in which the storage unit 3140 is provided separately from the control unit 3170, but the scope of the present specification is not limited thereto. That is, the storage unit 3140 may be included in the control unit 3170.
  • the user input interface unit 3150 transmits a signal input by the user to the control unit 3170 or a signal from the control unit 3170 to the user.
  • the user input interface unit 3150 controls power on/off, channel selection, and screen setting from the remote control device 3200 according to various communication methods such as RF communication method and infrared (IR) communication method.
  • the signal may be received and processed, or may be processed to transmit the control signal of the control unit 3170 to the remote control device 3200.
  • the user input interface unit 3150 may transmit a control signal input from a local key (not shown) such as a power key, a channel key, a volume key, and a set value to the controller 3170.
  • a local key such as a power key, a channel key, a volume key, and a set value
  • the user input interface unit 3150 transmits a control signal input from a sensing unit (not shown) that senses a user's gesture to the control unit 3170, or senses a signal from the control unit 3170.
  • the sensing unit may include a touch sensor, a voice sensor, a position sensor, and a motion sensor.
  • the control unit 3170 de-multiplexes the stream input through the tuner 3110, the demodulator 3120, or the external device interface unit 3135 or processes the demultiplexed signals to generate a signal for video or audio output. And output.
  • the control unit 3170 may include the aforementioned encoding device and/or decoding device.
  • the image signal processed by the control unit 3170 may be input to the display unit 3180 and displayed as an image corresponding to the corresponding image signal.
  • the image signal processed by the control unit 3170 may be input to an external output device through the external device interface unit 3135.
  • the audio signal processed by the control unit 3170 may be audio output to the audio output unit 3185. Also, the audio signal processed by the control unit 3170 may be input to the external output device through the external device interface unit 3135.
  • control unit 3170 may include a demultiplexing unit, an image processing unit, and the like.
  • the control unit 3170 may control the overall operation of the digital device 3100. For example, the control unit 3170 may control the tuner 3110 to tune the RF broadcast corresponding to a channel selected by a user or a pre-stored channel.
  • the control unit 3170 may control the digital device 3100 by a user command input through the user input interface unit 3150 or an internal program. In particular, it is possible to access a network and download a desired application or application list into the digital device 3100.
  • control unit 3170 controls the tuner 3110 so that a signal of a selected channel is input according to a predetermined channel selection command received through the user input interface unit 3150. And it processes the video, audio or data signal of the selected channel.
  • the control unit 3170 allows the channel information, etc. selected by the user to be output through the display unit 3180 or the audio output unit 3185 along with the processed image or audio signal.
  • control unit 3170 may be input from an external device input through the external device interface unit 3135, for example, a camera or camcorder, according to an external device image playback command received through the user input interface unit 3150.
  • the video signal or the audio signal can be output through the display unit 3180 or the audio output unit 3185.
  • control unit 3170 may control the display unit 3180 to display an image.
  • It can be controlled to be displayed on the display unit 3180.
  • the image displayed on the display unit 3180 may be a still image or a video, and may be a 2D video or a 3D video.
  • control unit 3170 may control to play the content.
  • the content at this time may be content stored in the digital device 3100, received broadcast content, or external input content input from the outside.
  • the content may be at least one of a broadcast image, an external input image, an audio file, a still image, a connected web screen, and a document file.
  • the controller 3170 may control to display a list of applications or applications that can be downloaded from the digital device 3100 or from an external network.
  • the control unit 3170 may control to install and operate an application downloaded from an external network along with various user interfaces. Also, an image related to an application to be executed can be controlled to be displayed on the display unit 3180 by a user's selection.
  • a channel browsing processing unit for generating a thumbnail image corresponding to a channel signal or an external input signal is further provided.
  • the channel browsing processing unit receives a stream signal (TS) output from the demodulator 3120 or a stream signal output from the external device interface unit 3135, extracts an image from the input stream signal, and generates a thumbnail image.
  • TS stream signal
  • the generated thumbnail image can be input to the control unit 3170 as it is or encoded.
  • the generated thumbnail image may be encoded in a stream form and input to the controller 3170.
  • the controller 3170 may display a list of thumbnails having a plurality of thumbnail images on the display unit 3180 using the input thumbnail images. Meanwhile, thumbnail images in the thumbnail list may be updated sequentially or simultaneously. Accordingly, the user can easily grasp the contents of a plurality of broadcast channels.
  • the display unit 3180 converts an image signal, a data signal, an OSD signal processed by the control unit 3170, or an image signal or data signal received from the external device interface unit 3135 into R, G, and B signals, respectively. Generate a drive signal.
  • the display unit 3180 may be a PDP, LCD, OLED, flexible display, 3D display, or the like.
  • the display unit 3180 may be configured as a touch screen and used as an input device in addition to an output device.
  • the audio output unit 3185 receives a signal processed by the controller 3170, for example, a stereo signal, a 3.1 channel signal, or a 5.1 channel signal, and outputs the audio.
  • the audio output unit 3185 may be implemented as various types of speakers.
  • a sensing unit having at least one of a touch sensor, a voice sensor, a position sensor, and a motion sensor may be further provided in the digital device 3100. .
  • the signal detected by the sensing unit may be transmitted to the control unit 3170 through the user input interface unit 3150.
  • a photographing unit (not shown) for photographing a user may be further provided. Image information photographed by the photographing unit (not shown) may be input to the control unit 3170.
  • the control unit 3170 may detect a user's gesture by individually or in combination with an image captured by the photographing unit (not shown) or a detected signal from the sensing unit (not shown).
  • the power supply unit 3190 supplies corresponding power throughout the digital device 3100.
  • control unit 3170 that can be implemented in the form of a system on chip (SOC), a display unit 3180 for image display, and an audio output unit 3185 for audio output.
  • SOC system on chip
  • display unit 3180 for image display
  • audio output unit 3185 for audio output.
  • the power supply unit 3190 may include a converter (not shown) that converts AC power into DC power.
  • a PWM-operable inverter (not shown) may be further provided for driving luminance or dimming. have.
  • the remote control device 3200 transmits a user input to the user input interface unit 3150.
  • the remote control device 3200 Bluetooth (bluetooth), RF (radio frequency) communication, infrared (IR) communication, UWB (Ultra Wideband), ZigBee (ZigBee) method can be used.
  • the remote control device 3200 may receive an image, audio, or data signal output from the user input interface unit 3150, display it on the remote control device 3200, or output voice or vibration.
  • the digital device 3100 described above may be a digital broadcast receiver capable of processing a fixed or mobile ATSC or DVB digital broadcast signal.
  • the digital device may omit some components or further include components not illustrated, as necessary.
  • the digital device does not have a tuner and a demodulator, and may receive and play content through a network interface unit or an external device interface unit.
  • FIGS. 29 to 31 are block diagrams illustrating a detailed configuration of the control unit of FIGS. 29 to 31 to illustrate one embodiment.
  • control unit examples include a voice processing unit and a data processing unit.
  • the demultiplexing unit 3210 demultiplexes the input stream.
  • the demultiplexer 3210 may demultiplex the input MPEG-2 TS video, audio, and data signals.
  • the stream signal input to the demultiplexer 3210 may be a stream signal output from a tuner or demodulator or an external device interface.
  • the image processing unit 3220 performs image processing of the demultiplexed image signal.
  • the image processing unit 3220 may include an image decoder 3225 and a scaler 3235.
  • the video decoder 3225 decodes the demultiplexed video signal, and the scaler 3235 scales the resolution of the decoded video signal to be output from the display unit.
  • the video decoder 3225 may support various standards.
  • the video decoder 3225 performs the function of the MPEG-2 decoder when the video signal is encoded in the MPEG-2 standard, and the video signal is encoded in the digital multimedia broadcasting (DMB) method or the H.264 standard.
  • DMB digital multimedia broadcasting
  • H.264 the function of the H.264 decoder can be performed.
  • the video signal decoded by the video processing unit 3220 is input to the mixer 3250.
  • the OSD generation unit 3240 generates OSD data according to a user input or by itself. For example, the OSD generating unit 3240 generates data for displaying various data on the screen of the display unit in the form of a graphic or text based on the control signal of the user input interface unit.
  • the generated OSD data includes various data such as a user interface screen of a digital device, various menu screens, widgets, icons, and viewing rate information.
  • the OSD generator 3240 may generate data for displaying subtitles of broadcast images or broadcast information based on EPG.
  • the mixer 3250 mixes the OSD data generated by the OSD generator 3240 and the image signal processed by the image processor to provide the formatter 3260. Because the decoded video signal and the OSD data are mixed, the OSD is displayed overlaid on a broadcast video or an external input video.
  • a frame rate converter (FRC) 3255 converts a frame rate of an input video.
  • the frame rate converting unit 3255 may convert the input 60 Hz image frame rate to have a frame rate of, for example, 120 Hz or 240 Hz according to the output frequency of the display unit.
  • various methods may exist in the method for converting the frame rate. For example, when converting the frame rate from 60 Hz to 120 Hz, the frame rate converter 3255 inserts the same first frame between the first frame and the second frame, or predicts the first frame from the first frame and the second frame. It can be converted by inserting 3 frames.
  • the frame rate converter 3255 converts the frame rate from 60 Hz to 240 Hz, three or more identical frames or predicted frames may be inserted and converted between existing frames. Meanwhile, when a separate frame conversion is not performed, the frame rate conversion unit 3255 may be bypassed.
  • the formatter 3260 changes the output of the input frame rate conversion unit 3255 to match the output format of the display unit.
  • the formatter 3260 may output R, G, and B data signals, and the R, G, and B data signals may be output as low voltage differential signaling (LVDS) or mini-LVDS Can be.
  • LVDS low voltage differential signaling
  • the formatter 3260 may support 3D service through the display unit by configuring and outputting a 3D format according to the output format of the display unit.
  • the voice processing unit (not shown) in the control unit may perform voice processing of the demultiplexed voice signal.
  • the voice processing unit (not shown) may support various audio formats. For example, even when an audio signal is encoded in formats such as MPEG-2, MPEG-4, AAC, HE-AAC, AC-3, BSAC, a decoder corresponding thereto may be provided and processed.
  • the voice processing unit (not shown) in the control unit may process a base, treble, volume control, and the like.
  • the data processing unit (not shown) in the control unit may perform data processing of the demultiplexed data signal.
  • the data processing unit can decode the demultiplexed data signal even when it is encoded.
  • the encoded data signal may be EPG information including broadcast information such as a start time and an end time of a broadcast program broadcast on each channel.
  • each component may be integrated, added, or omitted according to specifications of a digital device that is actually implemented. That is, if necessary, two or more components may be combined into one component, or one component may be subdivided into two or more components.
  • the function performed in each block is for describing an embodiment of the present specification, and the specific operation or device does not limit the scope of rights of the present specification.
  • the digital device may be an image signal processing device that performs signal processing of an image stored in the device or an input image.
  • the display unit 3180 and the audio output unit 3185 shown in FIG. 37 are excluded from the set-top box (STB), the above-described DVD player, Blu-ray player, game device, computer And the like can be further exemplified.
  • FIG 33 is a diagram illustrating an example in which a screen of a digital device displays a main image and a sub image simultaneously according to an embodiment.
  • the digital device may simultaneously display the main image 3310 and the auxiliary image 3320 on the screen 3300.
  • the main image 3310 may be referred to as a first image, and the auxiliary image 3320 may be referred to as a second image.
  • the main image 3310 and the auxiliary image 3320 may include a video, a still image, an electronic program guide (EPG), a graphical user interface (GUI), an on-screen display (OSD), and the like.
  • EPG electronic program guide
  • GUI graphical user interface
  • OSD on-screen display
  • the main image 3310 may mean an image that is relatively smaller in size than the screen 3300 of the electronic device while being displayed simultaneously with the auxiliary image 3320 on the screen 3300 of the electronic device, as a picture in picture (PIP). Also referred to as.
  • PIP picture in picture
  • the main image 3310 is shown as being displayed on the upper left of the screen 3300 of the digital device, but the location where the main image 3310 is displayed is not limited thereto, and the main image 3310 is a digital device. Can be displayed at any location within the screen 3300.
  • the main image 3310 and the auxiliary image 3320 may be directly or indirectly related to each other.
  • the main video 3310 is a streaming video
  • the auxiliary video 3320 may be a GUI that sequentially displays thumbnails of videos including information similar to the streaming video.
  • the main image 3310 may be a broadcasted image
  • the auxiliary image 3320 may be an EPG.
  • the main image 3310 may be a broadcast image
  • the auxiliary image 3320 may be a GUI. Examples of the main image 3310 and the auxiliary image 3320 are not limited thereto.
  • the main image 3310 is a broadcast image received through a broadcasting channel
  • the auxiliary image 3320 may be information related to a broadcast image received through a broadcast channel.
  • the information related to the broadcast video received through the broadcast channel may include, for example, EPG information including a comprehensive channel schedule, broadcast program detailed information, and broadcast program review information, but is not limited thereto.
  • the main image 3310 is a broadcast image received through a broadcast channel
  • the auxiliary image 3320 may be an image generated based on information pre-stored in a digital device.
  • the image generated based on the information pre-stored in the digital device may include, for example, a basic user interface (UI) of the EPG, basic channel information, a video resolution manipulation UI, and a bedtime reservation UI. Does not work.
  • UI basic user interface
  • the main image 3310 is a broadcast image received through a broadcast channel
  • the auxiliary image 3320 may be information related to a broadcast image received through a network.
  • the information related to the broadcast image received through the network may be, for example, information obtained through a network-based search engine. More specifically, for example, information related to a character currently being displayed on the main image 3310 may be obtained through a network-based search engine.
  • information related to a broadcast image received through a network may be obtained by using, for example, an artificial intelligence (AI) system.
  • AI artificial intelligence
  • an estimated-location in map of a place currently being displayed on the main image 3310 can be obtained using a network-based deep-learning, and digital The device may receive information about the estimated location on the map of the place currently being displayed on the main image 3310 through the network.
  • the digital device may receive at least one of image information of the main image 3310 and image information of the auxiliary image 3320 from the outside.
  • the video information of the main video 3310 includes, for example, a broadcast signal received through a broadcasting channel, a source code information of the main video 3310, and a main received through a network network. IP packet (internet protocol packet) information of the image 3310 may be included, but is not limited thereto.
  • the video information of the secondary video 3320 includes, for example, a broadcast signal received through a broadcast channel, source code information of the secondary video 3320, IP packet information of the secondary video 3320 received through a network, etc. It may include, but is not limited to.
  • the digital device may decode and use video information of the main video 3310 or video information of the secondary video 3320 received from the outside. However, in some cases, the digital device may store image information of the main image 3310 or image information of the auxiliary image 3320 itself.
  • the digital device may display the main image 3310 and the auxiliary image 3320 on the screen 3300 of the digital device based on the image information of the main image 3310 and information related to the auxiliary image 3320.
  • the decoding apparatus 200 of a digital device includes a main image decoding apparatus and an auxiliary image decoding apparatus, and the main image decoding apparatus and the auxiliary image decoding apparatus respectively include image information and auxiliary images 3320 of the main image 3310.
  • Can decode video information includes a main image renderer (first renderer) and an auxiliary image renderer (second renderer), and the main image renderer displays the main image 3310 on the screen 3300 of the digital device based on the information decoded by the main image decoding device. ), and the auxiliary image renderer may display the auxiliary image 3320 on the second area of the screen 3300 of the digital device based on the information decoded by the auxiliary image decoding device. .
  • the decoding apparatus 200 of the digital device may decode image information of the main image 3310 and image information of the auxiliary image 3320. Based on the information decoded by the decoding apparatus 200, the renderer may process the main image 3310 and the auxiliary image 3320 together to be simultaneously displayed on the screen 3300 of the digital device.
  • the decoding of the first image may follow the decoding procedure in the decoding apparatus 200 according to FIG. 3 described above.
  • decoding the first image may include deriving prediction samples for the current block based on inter or intra prediction, and residual samples for the current block based on the received residual information. And generating reconstructed samples based on predictive samples and/or residual samples.
  • decoding the first image may include performing an in-loop filtering procedure on a reconstructed picture including reconstructed samples.
  • the auxiliary image may be an electronic program guide (EPG), an on screen display (OSD), or a graphical user interface (GUI).
  • EPG electronic program guide
  • OSD on screen display
  • GUI graphical user interface
  • the video information may be received through a broadcast network, and information regarding the auxiliary video may be received through the broadcast network.
  • the image information may be received through a communication network, and information regarding the auxiliary image may be received through the communication network.
  • the image information may be received through a broadcast network, and information regarding the auxiliary image may be received through a communication network.
  • the image information may be received through a broadcasting network or a communication network, and information regarding the auxiliary image may be stored in a storage medium in the digital device.
  • an embodiment of the present specification may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above.
  • the software code can be stored in memory and driven by a processor.
  • the memory is located inside or outside the processor, and can exchange data with the processor by various known means.

Abstract

According to an embodiment of the present specification, provided are a method and device for processing a video signal by using inter prediction. A video signal processing method according to an embodiment of the present specification includes: a step for acquiring at least one motion vector for the inter prediction of the current block from at least one surrounding block adjacent to the current block on the basis of a merge index; a step for determining a merge with motion vector difference (MMVD) offset to be applied to the at least one motion vector on the basis of an MMVD distance index; and a step for generating a prediction sample of the current block on the basis of the at least one motion vector to which the MMVD offset has been applied and a reference picture related to the merge index. The step for determining an MMVD offset includes: a step for determining a first offset value related to the distance index; a step for determining a second offset value by scaling the first offset value by a scale value on the basis of at least one among the at least one motion vector or the size of the current block; and a step for determining the second offset value as the MMVD offset. According to the present specification, the signaling overhead of the MMVD distance index may be reduced by reducing the bit distance of the MMVD distance index and adaptively scaling the MMVD offset.

Description

화면간 예측을 사용하여 비디오 신호를 처리하기 위한 방법 및 장치Method and apparatus for processing video signal using inter prediction
본 명세서의 실시예는 화면간 예측(inter prediction)을 사용하여 비디오 신호를 처리하는 방법 및 장치에 관한 것으로서, 보다 구체적으로 MMVD(merge with motion vector difference)가 적용된 머지 모드를 사용한 화면간 예측을 수행하기 위한 방법 및 장치에 관한 것이다.An embodiment of the present disclosure relates to a method and apparatus for processing a video signal using inter prediction, and more specifically, performs inter-screen prediction using merge mode to which a merge with motion vector difference (MMVD) is applied. It relates to a method and apparatus for.
압축 부호화란 디지털화한 정보를 통신 회선을 통해 전송하거나, 저장 매체에 적합한 형태로 저장하기 위한 일련의 신호 처리 기술을 의미한다. 영상, 이미지, 음성 등의 미디어가 압축 부호화의 대상이 될 수 있으며, 특히 영상을 대상으로 압축 부호화를 수행하는 기술을 비디오 영상 압축이라고 일컫는다.Compression coding refers to a series of signal processing techniques for transmitting digitized information through a communication line or storing it in a form suitable for a storage medium. Media such as video, image, and audio may be the subject of compression encoding, and a technique for performing compression encoding on an image is referred to as video image compression.
차세대 비디오 컨텐츠는 고해상도(high spatial resolution), 고프레임율(high frame rate) 및 영상 표현의 고차원화(high dimensionality of scene representation)라는 특징을 갖게 될 것이다. 그러한 컨텐츠를 처리하기 위해서는 메모리 저장(memory storage), 메모리 액세스율(memory access rate) 및 처리 전력(processing power) 측면에서 엄청난 증가를 가져올 것이다.Next-generation video content will be characterized by high spatial resolution, high frame rate, and high dimensionality of scene representation. In order to process such content, it will bring a huge increase in terms of memory storage, memory access rate and processing power.
따라서, 차세대 영상 컨텐츠를 보다 효율적으로 처리하기 위한 코딩 툴을 디자인할 필요가 있다. 특히, HEVC(high efficiency video coding) 표준 이후의 비디오 코덱 표준은 보다 자원을 효율적으로 사용하면서 정확하게 예측 샘플을 생성할 수 있는 예측 기술을 요구한다.Therefore, it is necessary to design a coding tool to process next-generation video content more efficiently. In particular, the video codec standard after the high efficiency video coding (HEVC) standard requires a prediction technique capable of generating prediction samples accurately while using resources more efficiently.
본 명세서의 실시예는 머지 모드의 적용시 움직임 벡터의 정확도를 향상시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.An embodiment of the present specification provides a video signal processing method and apparatus capable of improving the accuracy of a motion vector when applying merge mode.
또한, 본 명세서의 실시예는 MMVD(merge with motion vector difference) 기법을 적용하는 과정에서 시그널링 오버헤드(signaling overhead)를 감소시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.In addition, an embodiment of the present specification provides a video signal processing method and apparatus capable of reducing signaling overhead in the process of applying a merge with motion vector difference (MMVD) technique.
본 명세서에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The technical problems to be achieved in the present specification are not limited to the technical problems mentioned above, and other technical problems that are not mentioned will be clearly understood by those skilled in the art from the description below. Will be able to.
본 명세서의 실시예는 화면간 예측(inter prediction)을 사용하여 비디오 신호를 처리하기 위한 방법 및 장치를 제공한다. 본 명세서의 일 실시예에 따른 비디오 신호의 디코딩 방법은, 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하는 단계와, MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하는 단계와, 상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하며, 상기 MMVD 오프셋을 결정하는 단계는, 상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하는 단계와, 상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하는 단계와, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하는 단계를 포함한다.Embodiments of the present specification provide a method and apparatus for processing a video signal using inter prediction. A decoding method of a video signal according to an embodiment of the present specification includes obtaining at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, Determining an MMVD offset applied to the at least one motion vector based on a merge with motion vector difference (MMVD) distance index, and a reference associated with the merge index and at least one motion vector to which the MMVD offset is applied Generating a prediction sample of the current block based on a picture, and determining the MMVD offset comprises: determining a first offset value associated with the length index, and the at least one motion vector or the And determining a second offset value by scaling the first offset value by a scale value based on at least one of the size of the current block, and determining the second offset value as an MMVD offset.
일 실시예에 따르면, 상기 현재 블록의 예측 샘플을 생성하는 단계는, 상기 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하는 단계와, 상기 MMVD 오프셋에 상기 MMVD 방향 인덱스에 대응하는 부호를 적용하는 단계와, 상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하는 단계를 포함할 수 있다.According to an embodiment, generating the prediction sample of the current block may include obtaining an MMVD direction index indicating the sign of the MMVD offset, and applying a code corresponding to the MMVD direction index to the MMVD offset. And adding the MMVD offset to which the sign is applied to the motion vector.
일 실시예에서, 상기 스케일 값은 상기 적어도 하나의 움직임 벡터의 크기, 상기 적어도 하나의 움직임 벡터의 해상도 중 적어도 하나에 기반하여 결정될 수 있다.In one embodiment, the scale value may be determined based on at least one of the size of the at least one motion vector and the resolution of the at least one motion vector.
일 실시예에서, 상기 제1 오프셋 값은 기 정의된(pre-defined) 오프셋 후보 값들 중에서 상기 MMVD 길이 인덱스에 의해 지시될 수 있다.In one embodiment, the first offset value may be indicated by the MMVD length index among pre-defined offset candidate values.
일 실시예에서, 상기 적어도 하나의 움직임 벡터는, 수평 방향 성분 및 수직 방향 성분으로 구성되고, 상기 MMVD 오프셋은 상기 수평 방향 성분 또는 수직 방향 성분 중 적어도 하나에 적용될 수 있다.In one embodiment, the at least one motion vector is composed of a horizontal component and a vertical component, and the MMVD offset may be applied to at least one of the horizontal component or vertical component.
일 실시예에서, 상기 적어도 하나의 움직임 벡터는, 제1 참조 픽처 리스트와 관련된 제1 움직임 벡터 및 제2 참조 픽처 리스트와 관련된 제2 움직임 벡터를 포함하고, 상기 제2 오프셋 값은, 상기 제1 움직임 벡터 또는 상기 제2 움직임 벡터 중 적어도 하나에 기반하여 결정될 수 있다.In one embodiment, the at least one motion vector includes a first motion vector associated with a first reference picture list and a second motion vector associated with a second reference picture list, and the second offset value is the first It may be determined based on at least one of a motion vector or the second motion vector.
본 명세서의 일 실시예에 따른 비디오 신호의 인코딩 방법은, 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처를 결정하는 단계와, 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD(merge with motion vector difference) 오프셋을 결정하는 단계와, 상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처에 기반하여 상기 현재 블록에 대한 예측을 수행하는 단계와, 상기 예측과 관련된 정보를 코딩하는 단계를 포함하고, 상기 예측과 관련된 정보는, 상기 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처와 관련된 머지 인덱스, 및 상기 MMVD 오프셋 값을 지시하는 MMVD 길이(distance) 인덱스를 포함하고, 상기 예측을 수행하는 단계는, 상기 MMVD 길이 인덱스와 관련된 제1 오프셋 값을 결정하는 단계와, 상기 적어도 하나의 움직임 벡터에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하는 단계와, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하는 단계를 포함한다.The encoding method of a video signal according to an embodiment of the present specification includes determining at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block; , Determining a merge with motion vector difference (MMVD) offset applied to the at least one motion vector, and based on at least one motion vector to which the MMVD offset is applied and the at least one reference picture. Performing prediction, and coding the information related to the prediction, wherein the information related to the prediction includes: a merge index associated with the at least one motion vector and the at least one reference picture, and the MMVD offset value Including the MMVD distance index indicating the, and performing the prediction, determining a first offset value associated with the MMVD length index, and the first offset based on the at least one motion vector And determining a second offset value by scaling the value by a scale value, and determining the second offset value as an MMVD offset.
본 명세서의 일 실시예에 따른 비디오 신호의 디코딩을 위한 장치는, 상기 비디오 신호를 저장하는 메모리와, 상기 메모리와 결합되어 상기 비디오 신호를 처리하는 프로세서를 포함한다. 상기 프로세서는, 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하고, MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, 상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 설정된다. 또한, 상기 프로세서는, 상기 MMVD 오프셋을 결정하기 위하여, 상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, 상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 설정된다.An apparatus for decoding a video signal according to an embodiment of the present specification includes a memory storing the video signal and a processor coupled with the memory to process the video signal. The processor acquires at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index, and merges with motion vector difference (MMVD) distance index It is configured to determine an MMVD offset applied to the at least one motion vector based on, and to generate a prediction sample of the current block based on the reference picture associated with the merge index and the at least one motion vector applied with the MMVD offset. . In addition, the processor determines a first offset value associated with the length index to determine the MMVD offset, and the first offset value based on at least one of the at least one motion vector or the size of the current block. It is set to determine a second offset value by scaling by a scale value, and to determine the second offset value as an MMVD offset.
본 명세서의 일 실시예에 따른 비디오 신호의 인코딩을 위한 장치는, 상기 비디오 신호를 저장하는 메모리와, 상기 메모리와 결합되어 상기 비디오 신호를 처리하는 프로세서를 포함한다. 상기 프로세서는, 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처를 결정하고, 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD(merge with motion vector difference) 오프셋을 결정하고, 상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처에 기반하여 상기 현재 블록에 대한 예측을 수행하고, 상기 예측과 관련된 정보를 코딩하도록 설정되고, 상기 예측과 관련된 정보는, 상기 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처와 관련된 머지 인덱스, 및 상기 MMVD 오프셋 값을 지시하는 MMVD 길이(distance) 인덱스를 포함한다. 또한, 상기 프로세서는, 상기 예측을 수행하기 위하여, 상기 MMVD 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, 상기 적어도 하나의 움직임 벡터에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 설정된다.An apparatus for encoding a video signal according to an embodiment of the present specification includes a memory storing the video signal and a processor coupled with the memory to process the video signal. The processor determines at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block, and merges MMVD (Merge) applied to the at least one motion vector with motion vector difference) to determine an offset, perform prediction on the current block based on the at least one motion vector to which the MMVD offset is applied, and the at least one reference picture, and code information related to the prediction, , The prediction-related information includes a merge index associated with the at least one motion vector and the at least one reference picture, and an MMVD distance index indicating the MMVD offset value. In addition, the processor determines a first offset value associated with the MMVD length index, and scales the first offset value by a scale value based on the at least one motion vector to perform the prediction. And a second offset value as an MMVD offset.
본 명세서의 일 실시예는 하나 또는 그 이상의 명령어들을 저장하는 비-일시적 컴퓨터-판독가능한 매체(non-transitory computer-readable medium)를 제공한다. 하나 또는 그 이상의 프로세서들에 의해 실행되는 상기 하나 또는 그 이상의 명령어들은, 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하고, MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, 상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 상기 비디오 신호 처리 장치를 제어한다. 또한, 상기 하나 또는 그 이상의 명령어들은, 상기 MMVD 오프셋을 결정하기 위하여, 상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, 상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 상기 비디오 신호 처리 장치를 제어한다. One embodiment of the present specification provides a non-transitory computer-readable medium storing one or more instructions. The one or more instructions executed by one or more processors acquire at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index. A MMVD offset applied to the at least one motion vector is determined based on a merge index (MMVD) distance index, and a reference picture associated with the merge index and at least one motion vector applied with the MMVD offset. The video signal processing apparatus is controlled to generate a prediction sample of the current block based on the. In addition, the one or more instructions may determine a first offset value associated with the length index to determine the MMVD offset, and based on at least one of the at least one motion vector or the size of the current block. The video signal processing apparatus is controlled to determine a second offset value by scaling the first offset value by a scale value, and to determine the second offset value as an MMVD offset.
본 명세서의 실시예에 따르면, MMVD(merge with motion vector difference) 기법이 적용된 머지 모드를 사용하여 예측을 수행함으로써 움직임 벡터의 정확도를 향상시킬 수 있다.According to an embodiment of the present specification, accuracy of a motion vector may be improved by performing prediction using a merge mode to which a merge with motion vector difference (MMVD) technique is applied.
또한, 본 명세서의 실시예에 따르면, MMVD 기법을 적용하는 과정에서 MMVD 길이 인덱스의 비트 길이를 감소시키고 움직임 벡터에 기반하여 MMVD 오프셋을 조절함으로써 시그널링 오버헤드(signaling overhead)를 감소시킬 수 있는 비디오 신호 처리 방법 및 장치를 제공한다.In addition, according to an embodiment of the present specification, in the process of applying the MMVD technique, a video signal capable of reducing signaling overhead by reducing the bit length of the MMVD length index and adjusting the MMVD offset based on the motion vector. A method and apparatus for processing are provided.
본 명세서에서 얻을 수 있는 효과는 이상에서 언급한 효과로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 명세서가 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtained in the present specification are not limited to the above-mentioned effects, and other effects not mentioned may be clearly understood by those skilled in the art from the following description. .
본 명세서에 관한 이해를 돕기 위해 상세한 설명의 일부로 포함되는, 첨부 도면은 본 명세서에 대한 실시예를 제공하고, 상세한 설명과 함께 본 명세서의 기술적 특징을 설명한다.BRIEF DESCRIPTION OF THE DRAWINGS The accompanying drawings, which are included as part of the detailed description to aid understanding of the present specification, provide embodiments of the present specification, and describe the technical features of the present specification together with the detailed description.
도 1은 본 명세서의 실시예에 따른 비디오 코딩 시스템의 예를 도시한다.1 shows an example of a video coding system according to an embodiment of the present specification.
도 2는 본 명세서의 실시예에 따른 비디오/이미지 신호의 인코딩을 위한 인코딩 장치의 개략적인 블록도를 나타낸다. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
도 3은 본 명세서의 실시예로서, 영상 신호의 디코딩을 위한 디코딩 장치의 개략적인 블록도를 나타낸다. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 구조도의 예를 도시한다. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
도 5는 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 장치의 블록도의 예를 도시한다.5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification.
도 6은 본 명세서의 실시예에 따른 CTU(coding tree unit)들로 분할된 픽처의 예를 도시한다.6 shows an example of a picture divided into coding tree units (CTUs) according to an embodiment of the present specification.
도 7은 본 명세서의 실시예에 따른 멀티타입 트리 분할 모드들의 예를 도시한다.7 shows an example of multi-type tree splitting modes according to an embodiment of the present specification.
도 8은 본 명세서의 실시예에 따른 멀티타입 트리를 수반한 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘의 예를 나타낸다.8 illustrates an example of a signaling mechanism of partition partition information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
도 9는 본 명세서의 실시예에 따른 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU가 다중 CU(coding unit)들로 분할되는 것을 예시적으로 도시한다.9 exemplarily shows that a CTU is divided into multiple coding units (CUs) based on a quadtree and nested multi-type tree structure according to an embodiment of the present specification.
도 10는 본 명세서의 실시예에 따른 128x128 코딩 블록에 대하여 TT(ternary tree) 분할이 제한되는 경우의 예를 도시한다.10 shows an example of a case where TT (ternary tree) partitioning is restricted for a 128x128 coding block according to an embodiment of the present specification.
도 11은 본 명세서의 실시예에 따른 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들의 예를 도시한다.11 illustrates examples of redundant partition patterns that may occur in binary tree partition and ternary tree partition according to an embodiment of the present disclosure.
도 12 및 도 13은 본 명세서의 실시예에 따른 인터 예측에 기반한 비디오/영상 인코딩 절차 및 인코딩 장치 내 인터 예측부를 도시한다.12 and 13 illustrate a video/video encoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in an encoding device.
도 14 및 도 15는 본 명세서의 실시예에 따른 인터 예측에 기반한 비디오/영상 디코딩 절차 및 디코딩 장치 내 인터 예측부를 도시한다.14 and 15 illustrate a video/video decoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in a decoding apparatus.
도 16은 본 명세서의 실시예에 따른 현재 블록에 대한 공간적 머지 후보 구성의 예를 도시한다.16 shows an example of a spatial merge candidate configuration for a current block according to an embodiment of the present specification.
도 17는 본 명세서의 실시예에 따른 머지 후보 리스트 구성을 위한 흐름도의 예를 도시한다.17 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
도 18은 예측 후보 리스트(MVP 후보 리스트)를 구성하기 위한 흐름도의 예를 도시한다. 18 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
도 19는 본 명세서의 실시예에 따른 MMVD 탐색 프로세스의 예를 도시한다.19 shows an example of an MMVD discovery process according to an embodiment of the present specification.
도 20은 본 명세서의 실시예에 따른 삼각 예측 유닛들(triangular prediction units)의 예를 도시한다.20 shows an example of triangular prediction units according to an embodiment of the present specification.
도 21은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.21 shows an example of a flowchart for determining a set of MMVD candidates based on the size of a motion vector according to an embodiment of the present specification.
도 22 및 도 23은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기 및 블록 사이즈에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.22 and 23 show examples of flowcharts for determining a set of MMVD candidates based on the size and block size of a motion vector according to an embodiment of the present specification.
도 24는 본 명세서의 일 실시예에 따른 움직임 벡터의 해상도에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.24 illustrates an example of a flow chart for determining an MMVD candidate set based on the resolution of a motion vector according to an embodiment of the present specification.
도 25 및 도 26은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기 및 해상도에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.25 and 26 illustrate examples of flowcharts for determining a set of MMVD candidates based on the size and resolution of a motion vector according to an embodiment of the present specification.
도 27은 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 흐름도로서, 도 27a는 비디오 신호의 디코딩 방법, 도 27b는 비디오 신호의 인코딩 방법의 예를 도시한다.27 is a flowchart for processing a video signal according to an embodiment of the present disclosure, and FIG. 27A shows an example of a video signal decoding method and FIG. 27B an example of a video signal encoding method.
도 28은 디지털 기기를 포함한 서비스 시스템(service system)의 일 예를 개략적으로 나타낸 도면이다.28 is a diagram schematically showing an example of a service system including a digital device.
도 29는 디지털 기기의 일 실시예를 설명하기 위해 도시한 구성 블록도이다.29 is a block diagram illustrating a digital device according to an embodiment.
도 30은 디지털 기기의 다른 실시예를 설명하기 위해 도시한 구성 블록도이다.30 is a configuration block diagram illustrating another embodiment of a digital device.
도 31은 디지털 기기의 또 다른 실시 예를 설명하기 위해 도시한 구성 블록도이다.31 is a configuration block diagram illustrating another embodiment of a digital device.
도 32는 도 29 내지 도 31의 제어부의 상세 구성의 일 실시예를 설명하기 위해 도시한 구성 블록도이다.32 is a block diagram illustrating a detailed configuration of the control unit of FIGS. 29 to 31 to illustrate one embodiment.
도 33은 일 실시예에 따른 디지털 기기의 스크린이 메인 영상(main image)과 보조 영상(sub image)을 동시에 디스플레이 하는 일 예시를 도시하는 도면이다.33 is a diagram illustrating an example in which a screen of a digital device displays a main image and a sub image simultaneously according to an embodiment.
이하, 본 명세서에 따른 바람직한 실시 형태를 첨부된 도면을 참조하여 상세하게 설명한다. 첨부된 도면과 함께 이하에 개시될 상세한 설명은 본 명세서의 예시적인 실시형태를 설명하고자 하는 것이며, 본 명세서가 실시될 수 있는 유일한 실시형태를 나타내고자 하는 것이 아니다. 이하의 상세한 설명은 본 명세서의 완전한 이해를 제공하기 위해서 구체적 세부사항을 포함한다. 그러나, 당업자는 본 명세서가 이러한 구체적 세부사항 없이도 실시될 수 있음을 안다. Hereinafter, preferred embodiments according to the present specification will be described in detail with reference to the accompanying drawings. DETAILED DESCRIPTION The following detailed description, together with the accompanying drawings, is intended to describe exemplary embodiments of the present specification, and is not intended to represent the only embodiments in which the present specification may be practiced. The following detailed description includes specific details to provide a thorough understanding of the specification. However, one skilled in the art knows that the present specification can be practiced without these specific details.
몇몇 경우, 본 명세서의 개념이 모호해지는 것을 피하기 위하여 공지의 구조 및 장치는 생략되거나, 각 구조 및 장치의 핵심기능을 중심으로 한 블록도 형식으로 도시될 수 있다. In some cases, in order to avoid obscuring the concept of the present specification, well-known structures and devices may be omitted, or block diagrams centering on core functions of each structure and device may be illustrated.
아울러, 본 명세서에서 사용되는 용어는 가능한 한 현재 널리 사용되는 일반적인 용어를 선택하였으나, 특정한 경우는 출원인이 임의로 선정한 용어를 사용하여 설명한다. 그러한 경우에는 해당 부분의 상세 설명에서 그 의미를 명확히 기재하므로, 본 명세서의 설명에서 사용된 용어의 명칭만으로 단순 해석되어서는 안 될 것이며 그 해당 용어의 의미까지 파악하여 해석되어야 함을 밝혀두고자 한다.In addition, the terminology used in the present specification has been selected as a general terminology that is currently widely used as much as possible, but in a specific case, the term is arbitrarily selected by the applicant. In such a case, since the meaning is clearly described in the detailed description of the relevant part, it should not be interpreted simply by the name of the term used in the description of this specification, and the meaning of the term should be understood and interpreted. .
이하의 설명에서 사용되는 특정 용어들은 본 명세서의 이해를 돕기 위해서 제공된 것이며, 이러한 특정 용어의 사용은 본 명세서의 기술적 사상을 벗어나지 않는 범위에서 다른 형태로 변경될 수 있다. 예를 들어, 신호, 데이터, 샘플, 픽처, 슬라이스, 타일, 프레임, 블록의 경우 각 코딩 과정에서 적절하게 대체되어 해석될 수 있을 것이다.Certain terms used in the following description are provided to help understanding of the present specification, and the use of these specific terms may be changed to other forms without departing from the technical spirit of the present specification. For example, signals, data, samples, pictures, slices, tiles, frames, and blocks may be interpreted by appropriately replacing each coding process.
이하 본 명세서에서 '처리 유닛'은 예측, 변환 및/또는 양자화 등과 같은 인코딩/디코딩의 처리 과정이 수행되는 단위를 의미한다. 또한, 처리 유닛은 휘도(luma) 성분에 대한 단위와 색차(chroma) 성분에 대한 단위를 포함하는 의미로 해석될 수 있다. 예를 들어, 처리 유닛은 블록(block), 코딩 유닛(coding unit, CU), 예측 유닛(prediction unit, PU) 또는 변환 블록(transform unit, TU)에 해당될 수 있다. Hereinafter, in the present specification, the'processing unit' refers to a unit in which encoding/decoding processing such as prediction, transformation, and/or quantization is performed. Also, the processing unit may be interpreted to include a unit for a luminance component and a unit for a chroma component. For example, the processing unit may correspond to a block, a coding unit (CU), a prediction unit (PU), or a transform unit (TU).
또한, 처리 유닛은 휘도 성분에 대한 단위 또는 색차 성분에 대한 단위로 해석될 수 있다. 예를 들어, 처리 유닛은 휘도 성분에 대한 CTB(coding tree block), CB(coding block), PU 또는 TB(transform block)에 해당될 수 있다. 또는, 처리 유닛은 색차 성분에 대한 CTB, CB, PU 또는 TB에 해당할 수 있다. 또한, 이에 한정되는 것은 아니며 처리 유닛은 휘도 성분에 대한 단위와 색차 성분에 대한 단위를 포함하는 의미로 해석될 수도 있다. Further, the processing unit may be interpreted as a unit for a luminance component or a unit for a color difference component. For example, the processing unit may correspond to a coding tree block (CTB), a coding block (CB), a PU or a transform block (TB) for the luminance component. Alternatively, the processing unit may correspond to CTB, CB, PU or TB for the color difference component. Further, the present invention is not limited thereto, and the processing unit may be interpreted to include a unit for a luminance component and a unit for a color difference component.
또한, 처리 유닛은 반드시 정사각형의 블록으로 한정되는 것은 아니며, 3개 이상의 꼭지점을 가지는 다각형 형태로 구성될 수도 있다. In addition, the processing unit is not necessarily limited to square blocks, and may be configured in a polygonal shape having three or more vertices.
또한, 이하 본 명세서에서 픽셀, 화소, 또는 계수(변환 계수 또는 1차 변환을 거친 변환 계수)는 샘플로 통칭된다. 그리고, 샘플을 이용한다는 것은 픽셀 값, 화소 값, 또는 계수(변환 계수 또는 1차 변환을 거친 변환 계수) 등을 이용한다는 것을 의미할 수 있다. In addition, in the present specification, pixels, pixels, or coefficients (transformation coefficients or transform coefficients that have undergone first-order transformation) are hereinafter collectively referred to as samples. And, using a sample may mean using a pixel value, a pixel value, or a coefficient (a transform coefficient or a transform coefficient that has undergone first-order transformation).
도 1은 본 명세서의 실시예에 따른 비디오 코딩 시스템의 예를 도시한다.1 shows an example of a video coding system according to an embodiment of the present specification.
비디오 코딩 시스템은 소스 디바이스(10) 및 수신 디바이스(20)를 포함할 수 있다. 소스 디바이스(10)는 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스(20)로 전달할 수 있다. The video coding system can include a source device 10 and a receiving device 20. The source device 10 may transmit the encoded video/video information or data to the receiving device 20 through a digital storage medium or a network in a file or streaming form.
소스 디바이스(10)는 비디오 소스(11), 인코딩 장치(12), 송신기(13)를 포함할 수 있다. 수신 디바이스(20)는 수신기(21), 디코딩 장치(22) 및 렌더러(23)를 포함할 수 있다. 인코딩 장치(10)는 비디오/영상 인코딩 장치라고 불릴 수 있고, 디코딩 장치(20)는 비디오/영상 디코딩 장치라고 불릴 수 있다. 송신기(13)는 인코딩 장치(12)에 포함될 수 있다. 수신기(21)는 디코딩 장치(22)에 포함될 수 있다. 렌더러(23)는 디스플레이부를 포함할 수도 있고, 디스플레이부는 별개의 디바이스 또는 외부 컴포넌트로 구성될 수도 있다. The source device 10 may include a video source 11, an encoding device 12, and a transmitter 13. The receiving device 20 may include a receiver 21, a decoding device 22 and a renderer 23. The encoding device 10 may be referred to as a video/video encoding device, and the decoding device 20 may be referred to as a video/video decoding device. The transmitter 13 may be included in the encoding device 12. The receiver 21 may be included in the decoding device 22. The renderer 23 may include a display unit, and the display unit may be configured as a separate device or an external component.
비디오 소스는 비디오/영상의 캡쳐, 합성 또는 생성 과정 등을 통하여 비디오/영상을 획득할 수 있다. 비디오 소스는 비디오/영상 캡쳐 디바이스 및/또는 비디오/영상 생성 디바이스를 포함할 수 있다. 비디오/영상 캡쳐 디바이스는 예를 들어, 하나 이상의 카메라, 이전에 캡쳐된 비디오/영상을 포함하는 비디오/영상 아카이브 등을 포함할 수 있다. 비디오/영상 생성 디바이스는 예를 들어 컴퓨터, 태블렛 및 스마트폰 등을 포함할 수 있으며 (전자적으로) 비디오/영상을 생성할 수 있다. 예를 들어, 컴퓨터 등을 통하여 가상의 비디오/영상이 생성될 수 있으며, 이 경우 관련 데이터가 생성되는 과정으로 비디오/영상 캡쳐 과정이 갈음될 수 있다.The video source may acquire a video/image through a capture, synthesis, or generation process of the video/image. The video source may include a video/image capture device and/or a video/image generation device. The video/image capture device may include, for example, one or more cameras, a video/image archive including previously captured video/images, and the like. The video/image generating device may include, for example, a computer, a tablet and a smartphone, and may (electronically) generate a video/image. For example, a virtual video/image may be generated through a computer or the like, and in this case, a video/image capture process may be replaced by a process in which related data is generated.
인코딩 장치(12)는 입력 비디오/영상을 인코딩할 수 있다. 인코딩 장치(12)는 압축 및 코딩 효율을 위하여 예측, 변환, 양자화 등 일련의 절차를 수행할 수 있다. 인코딩된 데이터(인코딩된 비디오/영상 정보)는 비트스트림(bitstream) 형태로 출력될 수 있다.The encoding device 12 may encode an input video/image. The encoding apparatus 12 may perform a series of procedures such as prediction, transformation, and quantization for compression and coding efficiency. The encoded data (encoded video/image information) may be output in the form of a bitstream.
전송부(13)는 비트스트림 형태로 출력된 인코딩된 비디오/영상 정보 또는 데이터를 파일 또는 스트리밍 형태로 디지털 저장매체 또는 네트워크를 통하여 수신 디바이스의 수신부로 전달할 수 있다. 디지털 저장 매체는 USB(universal serial bus), SD(secure digital), CD(compact disk), DVD(digital video disk), 블루레이(bluray), HDD(hard disk drive), SSD(solid state drive)와 같은 다양한 저장 매체를 포함할 수 있다. 전송부(13)는 미리 정해진 파일 포멧을 통하여 미디어 파일을 생성하기 위한 엘레먼트를 포함할 수 있고, 방송/통신 네트워크를 통한 전송을 위한 엘레멘트를 포함할 수 있다. 수신기(21)는 비트스트림을 추출하여 디코딩 장치(22)로 전달할 수 있다.The transmitting unit 13 may transmit the encoded video/video information or data output in the form of a bitstream to a receiving unit of a receiving device through a digital storage medium or a network in a file or streaming format. Digital storage media include universal serial bus (USB), secure digital (SD), compact disk (CD), digital video disk (DVD), bluray, hard disk drive (HDD), and solid state drive (SSD). It may include various storage media. The transmission unit 13 may include an element for generating a media file through a predetermined file format, and may include an element for transmission through a broadcast/communication network. The receiver 21 may extract the bitstream and transmit it to the decoding device 22.
디코딩 장치(22)는 인코딩 장치(12)의 동작에 대응하는 역양자화, 역변환, 예측 등 일련의 절차를 수행하여 비디오/영상을 디코딩할 수 있다. The decoding apparatus 22 may decode a video/image by performing a series of procedures such as inverse quantization, inverse transformation, and prediction corresponding to the operation of the encoding apparatus 12.
렌더러(23)는 디코딩된 비디오/영상을 렌더링할 수 있다. 렌더링된 비디오/영상은 디스플레이부를 통하여 디스플레이될 수 있다.The renderer 23 may render the decoded video/image. The rendered video/image may be displayed through the display unit.
도 2는 본 명세서의 실시예에 따른 비디오/이미지 신호의 인코딩을 위한 인코딩 장치의 개략적인 블록도를 나타낸다. 2 shows a schematic block diagram of an encoding apparatus for encoding a video/image signal according to an embodiment of the present specification.
도 2를 참조하면, 인코딩 장치(100)는 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 메모리(170), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)를 포함할 수 있다. 인터 예측부(180) 및 인트라 예측부(185)는 예측부로 통칭될 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150)는 레지듀얼(residual) 처리부에 포함될 수 있다. 레지듀얼 처리부는 감산부(115)를 더 포함할 수도 있다. 상술한 영상 분할부(110), 감산부(115), 변환부(120), 양자화부(130), 역양자화부(140), 역변환부(150), 가산부(155), 필터링부(160), 인터 예측부(180), 인트라 예측부(185) 및 엔트로피 인코딩부(190)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 인코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 메모리(170)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 메모리 또는 디지털 저장 매체)에 의하여 구성될 수 있고, 메모리(170)는 DPB(decoded picture buffer)(175)를 포함할 수 있다.Referring to FIG. 2, the encoding apparatus 100 includes an image division unit 110, a subtraction unit 115, a conversion unit 120, a quantization unit 130, an inverse quantization unit 140, and an inverse conversion unit 150, It may include an adder 155, a filtering unit 160, a memory 170, an inter prediction unit 180, an intra prediction unit 185, and an entropy encoding unit 190. The inter prediction unit 180 and the intra prediction unit 185 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The transform unit 120, the quantization unit 130, the inverse quantization unit 140, and the inverse transform unit 150 may be included in a residual processing unit. The residual processing unit may further include a subtraction unit 115. The above-described image segmentation unit 110, subtraction unit 115, conversion unit 120, quantization unit 130, inverse quantization unit 140, inverse conversion unit 150, addition unit 155, filtering unit 160 ), the inter prediction unit 180, the intra prediction unit 185 and the entropy encoding unit 190 may be configured by one hardware component (for example, an encoder or processor) according to an embodiment. Also, the memory 170 may be configured by one hardware component (for example, a memory or digital storage medium) according to an embodiment, and the memory 170 may include a decoded picture buffer (DPB) 175. .
영상 분할부(110)는 인코딩 장치(100)에 입력된 입력 영상(또는, 픽쳐, 프레임)를 하나 이상의 처리 유닛(processing unit)으로 분할할 수 있다. 일 예로, 처리 유닛은 코딩 유닛(CU)이라고 불릴 수 있다. 이 경우 코딩 유닛은 코딩 트리 유닛(coding tree unit, CTU) 또는 최대 코딩 유닛(largest coding unit, LCU)으로부터 QTBT(Quad-tree binary-tree) 구조에 따라 재귀적으로(recursively) 분할될 수 있다. 예를 들어, 하나의 코딩 유닛은 쿼드 트리 구조 및/또는 바이너리 트리 구조를 기반으로 하위(deeper) 뎁스의 복수의 코딩 유닛들로 분할될 수 있다. 이 경우 예를 들어 쿼드 트리 구조가 먼저 적용되고 바이너리 트리 구조가 나중에 적용될 수 있다. 또는 바이너리 트리 구조가 먼저 적용될 수도 있다. 더 이상 분할되지 않는 최종 코딩 유닛을 기반으로 본 명세서에 따른 코딩 절차가 수행될 수 있다. 이 경우 영상 특성에 따른 코딩 효율 등을 기반으로, 최대 코딩 유닛이 바로 최종 코딩 유닛으로 사용될 수 있고, 또는 필요에 따라 코딩 유닛은 재귀적으로(recursively) 보다 하위 뎁스의 코딩 유닛들로 분할되어 최적의 사이즈의 코딩 유닛이 최종 코딩 유닛으로 사용될 수 있다. 여기서 코딩 절차라 함은 후술하는 예측, 변환, 및 복원 등의 절차를 포함할 수 있다. 다른 예로, 처리 유닛은 예측 유닛(PU) 또는 변환 유닛(TU)을 더 포함할 수 있다. 이 경우 예측 유닛 및 변환 유닛은 각각 상술한 최종 코딩 유닛으로부터 분할 또는 파티셔닝될 수 있다. 상기 예측 유닛은 샘플 예측의 단위일 수 있고, 상기 변환 유닛은 변환 계수를 유도하는 단위 및/또는 변환 계수로부터 레지듀얼 신호(residual signal)를 유도하는 단위일 수 있다. The image division unit 110 may divide the input image (or picture, frame) input to the encoding apparatus 100 into one or more processing units. As an example, the processing unit may be referred to as a coding unit (CU). In this case, the coding unit may be recursively divided according to a quad-tree binary-tree (QTBT) structure from a coding tree unit (CTU) or a largest coding unit (LCU). For example, one coding unit may be divided into a plurality of coding units of a deeper depth based on a quad tree structure and/or a binary tree structure. In this case, for example, a quad tree structure may be applied first, and a binary tree structure may be applied later. Alternatively, a binary tree structure may be applied first. The coding procedure according to the present specification may be performed based on the final coding unit that is no longer split. In this case, the maximum coding unit may be directly used as the final coding unit based on coding efficiency according to image characteristics, or the coding unit may be recursively divided into coding units having a lower depth than optimal if necessary. The coding unit of the size of can be used as the final coding unit. Here, the coding procedure may include procedures such as prediction, transformation, and reconstruction, which will be described later. As another example, the processing unit may further include a prediction unit (PU) or a transformation unit (TU). In this case, the prediction unit and transform unit may be partitioned or partitioned from the above-described final coding unit, respectively. The prediction unit may be a unit of sample prediction, and the transformation unit may be a unit for deriving a transform coefficient and/or a unit for deriving a residual signal from the transform coefficient.
유닛은 경우에 따라서 블록(block) 또는 영역(area) 등의 용어와 혼용하여 사용될 수 있다. 일반적인 경우, MxN 블록은 M개의 열과 N개의 행으로 이루어진 샘플들 또는 변환 계수(transform coefficient)들의 집합을 나타낼 수 있다. 샘플은 일반적으로 픽셀 또는 픽셀의 값을 나타낼 수 있으며, 휘도(luma) 성분의 픽셀/픽셀값만을 나타낼 수도 있고, 채도(chroma) 성분의 픽셀/픽셀 값만을 나타낼 수도 있다. 샘플은 하나의 픽처(또는 영상)을 픽셀(pixel) 또는 펠(pel)에 대응하는 용어로서 사용될 수 있다.The unit may be used interchangeably with terms such as a block or area in some cases. In a general case, the MxN block may represent samples of M columns and N rows or a set of transform coefficients. The sample may generally represent a pixel or a pixel value, and may indicate only a pixel/pixel value of a luma component or only a pixel/pixel value of a saturation component. The sample may be used as a term for one picture (or image) corresponding to a pixel or pel.
인코딩 장치(100)는 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)를 감산하여 레지듀얼 신호(잔여 블록, 잔여 샘플 어레이)를 생성할 수 있고, 생성된 레지듀얼 신호는 변환부(120)로 전송된다. 이 경우 도시된 바와 같이 인코딩 장치(100) 내에서 입력 영상 신호(원본 블록, 원본 샘플 어레이)에서 예측 신호(예측 블록, 예측 샘플 어레이)를 감산하는 유닛은 감산부(115)라고 불릴 수 있다. 예측부는 처리 대상 블록(이하, 현재 블록이라 함)에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 블록 또는 CU 단위로 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있다. 예측부는 각 예측 모드에 대한 설명에서 후술하는 바와 같이 예측 모드 정보와 같이 예측에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 예측에 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The encoding apparatus 100 subtracts a prediction signal (a predicted block, a prediction sample array) output from the inter prediction unit 180 or the intra prediction unit 185 from the input image signal (original block, original sample array) A signal (remaining block, residual sample array) may be generated, and the generated residual signal is transmitted to the converter 120. In this case, as illustrated, a unit that subtracts a prediction signal (a prediction block, a prediction sample array) from an input video signal (original block, original sample array) in the encoding apparatus 100 may be referred to as a subtraction unit 115. The prediction unit may perform prediction on a block to be processed (hereinafter, referred to as a current block) and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied in units of blocks or CUs. The prediction unit may generate various pieces of information about prediction, such as prediction mode information, as described later in the description of each prediction mode, and transmit them to the entropy encoding unit 190. The prediction information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
인트라 예측부(185)는 현재 픽처 내의 샘플들을 참조하여 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 상기 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 떨어져서 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 비방향성 모드는 예를 들어 DC 모드 및 플래너 모드(planar 모드)를 포함할 수 있다. 방향성 모드는 예측 방향의 세밀한 정도에 따라 예를 들어 33개의 방향성 예측 모드 또는 65개의 방향성 예측 모드를 포함할 수 있다. 다만, 이는 예시로서 설정에 따라 그 이상 또는 그 이하의 개수의 방향성 예측 모드들이 사용될 수 있다. 인트라 예측부(185)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 185 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or may be located apart depending on a prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The non-directional mode may include, for example, a DC mode and a planar mode (planar mode). The directional mode may include, for example, 33 directional prediction modes or 65 directional prediction modes depending on the degree of detail of the prediction direction. However, this is an example, and more or less directional prediction modes may be used depending on the setting. The intra prediction unit 185 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
인터 예측부(180)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 참조 블록을 포함하는 참조 픽처와 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 인터 예측부(180)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 사용되는지를 지시하는 정보를 생성할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 인터 예측부(180)는 주변 블록의 움직임 정보를 현재 블록의 움직임 정보로 이용할 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)을 시그널링함으로써 현재 블록의 움직임 벡터를 지시할 수 있다.The inter prediction unit 180 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. At this time, to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.) information. In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a name such as a collocated reference block or a colCU, and the reference picture including the temporal neighboring block may also be called a collocated picture (colPic). . For example, the inter prediction unit 180 constructs a motion information candidate list based on neighboring blocks, and generates information indicating which candidate is used to derive the motion vector and/or reference picture index of the current block. can do. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, the inter prediction unit 180 may use motion information of neighboring blocks as motion information of the current block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In the motion vector prediction (MVP) mode, the motion vector of the current block is obtained by using the motion vector of the neighboring block as a motion vector predictor and signaling a motion vector difference. I can order.
인터 예측부(180) 또는 인트라 예측부(185)를 통해 생성된 예측 신호는 복원 신호를 생성하기 위해 이용되거나 레지듀얼 신호를 생성하기 위해 이용될 수 있다. The prediction signal generated by the inter prediction unit 180 or the intra prediction unit 185 may be used to generate a reconstructed signal or may be used to generate a residual signal.
변환부(120)는 레지듀얼 신호에 변환 기법을 적용하여 변환 계수들(transform coefficients)를 생성할 수 있다. 예를 들어, 변환 기법은 DCT(discrete cosine transform), DST(discrete sine transform), KLT(Karhunen-Loeve transform), GBT(graph-based transform), 또는 CNT(conditionally non-linear transform) 중 적어도 하나를 포함할 수 있다. 여기서, GBT는 픽셀 간의 관계 정보를 그래프로 표현한다고 할 때 이 그래프로부터 얻어진 변환을 의미한다. CNT는 이전에 복원된 모든 픽셀(all previously reconstructed pixel)를 이용하여 예측 신호를 생성하고 그에 기초하여 획득되는 변환을 의미한다. 또한, 변환 과정은 정사각형의 동일한 크기를 갖는 픽셀 블록에 적용될 수도 있고, 정사각형이 아닌 가변 크기의 블록에도 적용될 수 있다.The transform unit 120 may generate transform coefficients by applying a transform technique to the residual signal. For example, the transformation technique may include at least one of a discrete cosine transform (DCT), a discrete sine transform (DST), a Karhunen-Loeve transform (KLT), a graph-based transform (GBT), or a conditionally non-linear transform (CNT). It can contain. Here, GBT means a transformation obtained from this graph when it is said that the relationship information between pixels is graphically represented. CNT means a transform obtained by generating a prediction signal using all previously reconstructed pixels and based on it. Also, the transform process may be applied to pixel blocks having the same size of a square, or may be applied to blocks of variable sizes other than squares.
양자화부(130)는 변환 계수들을 양자화하여 엔트로피 인코딩부(190)로 전송되고, 엔트로피 인코딩부(190)는 양자화된 신호(양자화된 변환 계수들에 관한 정보)를 인코딩하여 비트스트림으로 출력할 수 있다. 양자화된 변환 계수들에 관한 정보는 레지듀얼 정보라고 불릴 수 있다. 양자화부(130)는 계수 스캔 순서(scan order)를 기반으로 블록 형태의 양자화된 변환 계수들을 1차원 벡터 형태로 재정렬할 수 있고, 1차원 벡터 형태의 양자화된 변환 계수들을 기반으로 상기 양자화된 변환 계수들에 관한 정보를 생성할 수도 있다. 엔트로피 인코딩부(190)는 예를 들어 지수 골롬(exponential Golomb), CAVLC(context-adaptive variable length coding), CABAC(context-adaptive binary arithmetic coding)과 같은 다양한 인코딩 방법을 수행할 수 있다. 엔트로피 인코딩부(190)는 양자화된 변환 계수들 외 비디오/이미지 복원에 필요한 정보들(예컨대 신택스 요소들(syntax elements)의 값 등)을 함께 또는 별도로 인코딩할 수도 있다. 인코딩된 정보(예: 비디오/영상 정보)는 비트스트림 형태로 NAL(network abstraction layer) 유닛 단위로 전송 또는 저장될 수 있다. 비트스트림은 네트워크를 통하여 전송될 수 있고, 또는 디지털 저장매체에 저장될 수 있다. 여기서 네트워크는 방송망 및/또는 통신망 등을 포함할 수 있고, 디지털 저장매체는 USB, SD, CD, DVD, 블루레이, HDD, SSD 등 다양한 저장매체를 포함할 수 있다. 엔트로피 인코딩부(190)로부터 출력된 신호는 전송하는 전송부(미도시) 및/또는 저장하는 저장부(미도시)가 인코딩 장치(100)의 내/외부 엘리먼트로서 구성될 수 있고, 또는 전송부는 엔트로피 인코딩부(190)의 구성요소일 수도 있다.The quantization unit 130 quantizes the transform coefficients and transmits them to the entropy encoding unit 190, and the entropy encoding unit 190 encodes a quantized signal (information about quantized transform coefficients) and outputs it as a bitstream. have. Information about quantized transform coefficients may be referred to as residual information. The quantization unit 130 may rearrange the block-type quantized transform coefficients into a one-dimensional vector form based on a coefficient scan order, and the quantized transform based on the one-dimensional vector form quantized transform coefficients Information about coefficients may be generated. The entropy encoding unit 190 may perform various encoding methods such as exponential Golomb (CAVLC), context-adaptive variable length coding (CAVLC), and context-adaptive binary arithmetic coding (CABAC). The entropy encoding unit 190 may encode information necessary for video/image reconstruction (eg, values of syntax elements) together with the quantized transform coefficients together or separately. The encoded information (eg, video/video information) may be transmitted or stored in the unit of a network abstraction layer (NAL) unit in the form of a bitstream. The bitstream can be transmitted over a network, or it can be stored on a digital storage medium. Here, the network may include a broadcasting network and/or a communication network, and the digital storage medium may include various storage media such as USB, SD, CD, DVD, Blu-ray, HDD, SSD. The signal output from the entropy encoding unit 190 may be configured as an internal/external element of the encoding device 100 by a transmitting unit (not shown) and/or a storing unit (not shown) for storing, or the transmitting unit It may be a component of the entropy encoding unit 190.
양자화부(130)로부터 출력된 양자화된 변환 계수들은 예측 신호를 생성하기 위해 이용될 수 있다. 예를 들어, 양자화된 변환 계수들에 대하여 루프 내의 역양자화부(140) 및 역변환부(150)를 통해 역양자화 및 역변환을 적용함으로써 레지듀얼 신호가 복원될 수 있다. 가산부(155)는 복원된 레지듀얼 신호를 인터 예측부(180) 또는 인트라 예측부(185)로부터 출력된 예측 신호에 더함으로써 복원(reconstructed) 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)가 생성될 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다. 가산부(155)는 복원부 또는 복원 블록 생성부로 지칭될 수 있다. 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The quantized transform coefficients output from the quantization unit 130 may be used to generate a prediction signal. For example, the residual signal may be reconstructed by applying inverse quantization and inverse transform through the inverse quantization unit 140 and the inverse transform unit 150 in the loop to the quantized transform coefficients. The adder 155 adds the reconstructed residual signal to the predicted signal output from the inter predictor 180 or the intra predictor 185, so that the reconstructed signal (restored picture, reconstructed block, reconstructed sample array) Can be generated. If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block. The adding unit 155 may be referred to as a restoration unit or a restoration block generation unit. The reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
필터링부(160)는 복원 신호에 필터링을 적용하여 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(160)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 복호 픽처 버퍼(170)에 전송할 수 있다. 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset), 적응적 루프 필터(adaptive loop filter), 양방향 필터(bilateral filter)를 포함할 수 있다. 필터링부(160)는 각 필터링 방법에 대한 설명에서 후술하는 바와 같이 필터링에 관한 다양한 정보를 생성하여 엔트로피 인코딩부(190)로 전달할 수 있다. 필터링 관한 정보는 엔트로피 인코딩부(190)에서 인코딩되어 비트스트림 형태로 출력될 수 있다. The filtering unit 160 may apply subjective/objective filtering to improve the subjective/objective image quality. For example, the filtering unit 160 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 170. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset, adaptive loop filter, and bilateral filter. The filtering unit 160 may generate various information regarding filtering as described later in the description of each filtering method and transmit it to the entropy encoding unit 190. The filtering information may be encoded by the entropy encoding unit 190 and output in the form of a bitstream.
복호 픽처 버퍼(170)에 전송된 수정된 복원 픽처는 인터 예측부(180)에서 참조 픽처로 사용될 수 있다. 인코딩 장치(100)는 이를 통하여 인터 예측이 적용되는 경우, 인코딩 장치(100)와 디코딩 장치(200)에서의 예측 미스매치를 피할 수 있고, 부호화 효율도 향상시킬 수 있다. The corrected reconstructed picture transmitted to the decoded picture buffer 170 may be used as a reference picture in the inter prediction unit 180. When the inter prediction is applied through the encoding apparatus 100, prediction mismatches in the encoding apparatus 100 and the decoding apparatus 200 may be avoided, and encoding efficiency may be improved.
복호 픽처 버퍼(170)는 수정된 복원 픽처를 인터 예측부(180)에서의 참조 픽처로 사용하기 위해 저장할 수 있다.The decoded picture buffer 170 may store the corrected reconstructed picture for use as a reference picture in the inter prediction unit 180.
도 3은 본 명세서의 실시예로서, 영상 신호의 디코딩을 위한 디코딩 장치의 개략적인 블록도를 나타낸다. 3 is an embodiment of the present specification, and shows a schematic block diagram of a decoding apparatus for decoding a video signal.
도 3을 참조하면, 디코딩 장치(200)는 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 메모리(250), 인터 예측부(260) 및 인트라 예측부(265)를 포함하여 구성될 수 있다. 인터 예측부(260) 및 인트라 예측부(265)는 예측부로 통칭될 수 있다. 즉, 예측부는 인터 예측부(180) 및 인트라 예측부(185)를 포함할 수 있다. 역양자화부(220)와 역변환부(230)는 레지듀얼 처리부로 통칭될 수 있다. 즉, 레지듀얼 처리부는 역양자화부(220)와 역변환부(230)을 포함할 수 있다. 엔트로피 디코딩부(210), 역양자화부(220), 역변환부(230), 가산부(235), 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)는 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 디코더 또는 프로세서)에 의하여 구성될 수 있다. 또한 복호 픽처 버퍼(250)은 실시예에 따라 하나의 하드웨어 컴포넌트(예를 들어 메모리 또는 디지털 저장 매체)에 의하여 구현될 수 있다. 또한, 메모리(250)는 DPB(175)를 포함할 수 있고, 디지털 저장 매체에 의해 구성될 수도 있다.Referring to FIG. 3, the decoding apparatus 200 includes an entropy decoding unit 210, an inverse quantization unit 220, an inverse conversion unit 230, an addition unit 235, a filtering unit 240, a memory 250, and an inter It may be configured to include a prediction unit 260 and the intra prediction unit 265. The inter prediction unit 260 and the intra prediction unit 265 may be collectively referred to as a prediction unit. That is, the prediction unit may include an inter prediction unit 180 and an intra prediction unit 185. The inverse quantization unit 220 and the inverse conversion unit 230 may be collectively referred to as a residual processing unit. That is, the residual processing unit may include an inverse quantization unit 220 and an inverse conversion unit 230. The entropy decoding unit 210, the inverse quantization unit 220, the inverse transform unit 230, the adding unit 235, the filtering unit 240, the inter prediction unit 260, and the intra prediction unit 265, according to the embodiment It can be configured by one hardware component (eg, a decoder or processor). Also, the decoded picture buffer 250 may be implemented by one hardware component (eg, a memory or digital storage medium) according to an embodiment. Also, the memory 250 may include the DPB 175 and may be configured by a digital storage medium.
비디오/이미지 정보를 포함하는 비트스트림이 입력되면, 디코딩 장치(200)는 도 2의 인코딩 장치(100)에서 비디오/이미지 정보가 처리된 프로세스에 대응하여 영상을 복원할 수 있다. 예를 들어, 디코딩 장치(200)는 인코딩 장치(100)에서 적용된 처리 유닛을 이용하여 디코딩을 수행할 수 있다. 따라서 디코딩시 처리 유닛은, 예를 들어, 코딩 유닛일 수 있고, 코딩 유닛은 코딩 트리 유닛 또는 최대 코딩 유닛으로부터 쿼드 트리 구조 및/또는 바이너리 트리 구조에 따라 분할될 수 있다. 그리고, 디코딩 장치(200)를 통해 디코딩 및 출력된 복원 영상 신호는 재생 장치를 통해 재생될 수 있다.When a bitstream including video/image information is input, the decoding apparatus 200 may restore an image in response to a process in which the video/image information is processed by the encoding apparatus 100 of FIG. 2. For example, the decoding apparatus 200 may perform decoding using a processing unit applied by the encoding apparatus 100. Thus, in decoding, the processing unit may be, for example, a coding unit, and the coding unit may be divided according to a quad tree structure and/or a binary tree structure from a coding tree unit or a largest coding unit. Then, the decoded video signal decoded and output through the decoding device 200 may be reproduced through the reproduction device.
디코딩 장치(200)는 도 2의 인코딩 장치(100)로부터 출력된 신호를 비트스트림 형태로 수신할 수 있고, 수신된 신호는 엔트로피 디코딩부(210)를 통해 디코딩될 수 있다. 예를 들어, 엔트로피 디코딩부(210)는 비트스트림을 파싱하여 영상 복원(또는 픽처 복원)에 필요한 정보(예: 비디오/영상 정보)를 도출할 수 있다. 예컨대, 엔트로피 디코딩부(210)는 지수 골롬 부호화, CAVLC 또는 CABAC 등의 코딩 방법을 기초로 비트스트림 내 정보를 디코딩하고, 영상 복원에 필요한 신택스 엘리먼트의 값, 레지듀얼에 관한 변환 계수의 양자화된 값 들을 출력할 수 있다. 보다 상세하게, CABAC 엔트로피 디코딩 방법은, 비트스트림에서 각 구문 요소에 해당하는 빈(bin)을 수신하고, 디코딩 대상 구문 요소 정보와 주변 및 디코딩 대상 블록의 디코딩 정보 혹은 이전 단계에서 디코딩된 심볼/빈의 정보를 이용하여 문맥(context) 모델을 결정하고, 결정된 문맥 모델에 따라 빈의 발생 확률을 예측하여 빈의 산술 디코딩(arithmetic decoding)를 수행하여 각 구문 요소의 값에 해당하는 심볼을 생성할 수 있다. 이때, CABAC 엔트로피 디코딩 방법은 문맥 모델 결정 후 다음 심볼/빈의 문맥 모델을 위해 디코딩된 심볼/빈의 정보를 이용하여 문맥 모델을 업데이트할 수 있다. 엔트로피 디코딩부(210)에서 디코딩된 정보 중 예측에 관한 정보는 예측부(인터 예측부(260) 및 인트라 예측부(265))로 제공되고, 엔트로피 디코딩부(210)에서 엔트로피 디코딩이 수행된 레지듀얼 값, 즉 양자화된 변환 계수들 및 관련 파라미터 정보는 역양자화부(220)로 입력될 수 있다. 또한, 엔트로피 디코딩부(210)에서 디코딩된 정보 중 필터링에 관한 정보는 필터링부(240)로 제공될 수 있다. 한편, 인코딩 장치(100)로부터 출력된 신호를 수신하는 수신부(미도시)가 디코딩 장치(200)의 내/외부 엘리먼트로서 더 구성될 수 있고, 또는 수신부는 엔트로피 디코딩부(210)의 구성요소일 수도 있다. The decoding apparatus 200 may receive the signal output from the encoding apparatus 100 of FIG. 2 in the form of a bitstream, and the received signal may be decoded through the entropy decoding unit 210. For example, the entropy decoding unit 210 may parse the bitstream to derive information (eg, video/image information) necessary for image reconstruction (or picture reconstruction). For example, the entropy decoding unit 210 decodes information in a bitstream based on a coding method such as exponential Golomb coding, CAVLC, or CABAC, and quantizes a value of a syntax element necessary for image reconstruction and a transform coefficient for residual. Can output In more detail, the CABAC entropy decoding method receives bins corresponding to each syntax element in a bitstream, and decodes syntax information of the decoding target syntax element and surrounding and decoding target blocks, or symbols/bins decoded in the previous step. The context model is determined using the information of, and the probability of occurrence of the bin is predicted according to the determined context model to perform arithmetic decoding of the bin to generate a symbol corresponding to the value of each syntax element. have. At this time, the CABAC entropy decoding method may update the context model using the decoded symbol/bin information for the next symbol/bin context model after determining the context model. Among the information decoded by the entropy decoding unit 210, information regarding prediction is provided to the prediction unit (inter prediction unit 260 and intra prediction unit 265), and the entropy decoding unit 210 performs entropy decoding. The dual value, that is, quantized transform coefficients and related parameter information may be input to the inverse quantization unit 220. Also, information related to filtering among information decoded by the entropy decoding unit 210 may be provided to the filtering unit 240. Meanwhile, a receiving unit (not shown) receiving a signal output from the encoding apparatus 100 may be further configured as an internal/external element of the decoding apparatus 200, or the receiving unit may be a component of the entropy decoding unit 210. It may be.
역양자화부(220)에서는 양자화된 변환 계수들을 역양자화함으로써 변환 계수들을 출력할 수 있다. 역양자화부(220)는 양자화된 변환 계수들을 2차원의 블록 형태로 재정렬할 수 있다. 이 경우 인코딩 장치(100)에서 수행된 계수 스캔 순서에 기반하여 재정렬이 수행될 수 있다. 역양자화부(220)는 양자화 파라미터(예를 들어, 양자화 스텝 사이즈 정보)를 이용하여 양자화된 변환 계수들에 대한 역양자화를 수행하고, 변환 계수(transform coefficient)를 획득할 수 있다. The inverse quantization unit 220 may output transform coefficients by inverse quantizing the quantized transform coefficients. The inverse quantization unit 220 may rearrange the quantized transform coefficients in a two-dimensional block form. In this case, reordering may be performed based on the coefficient scan order performed by the encoding apparatus 100. The inverse quantization unit 220 may perform inverse quantization on quantized transform coefficients using a quantization parameter (eg, quantization step size information), and obtain a transform coefficient.
역변환부(230)는 변환 계수에 대한 역변환을 적용함으로써 레지듀얼 신호(레지듀얼 블록, 레지듀얼 샘플 어레이)를 출력할 수 있다. The inverse transform unit 230 may output a residual signal (residual block, residual sample array) by applying an inverse transform to the transform coefficient.
예측부는 현재 블록에 대한 예측을 수행하고, 현재 블록에 대한 예측 샘플들을 포함하는 예측된 블록(predicted block)을 생성할 수 있다. 예측부는 엔트로피 디코딩부(210)로부터 출력된 예측에 관한 정보에 기반하여 현재 블록에 인트라 예측이 적용되는지 또는 인터 예측이 적용되는지 결정할 수 있고, 구체적인 인트라/인터 예측 모드를 결정할 수 있다. The prediction unit may perform prediction on the current block and generate a predicted block including prediction samples for the current block. The prediction unit may determine whether intra prediction or inter prediction is applied to the current block based on information about prediction output from the entropy decoding unit 210, and may determine a specific intra/inter prediction mode.
인트라 예측부(265)는 현재 픽처 내의 샘플들을 참조함으로써 현재 블록을 예측할 수 있다. 참조되는 샘플들은 예측 모드에 따라 현재 블록의 주변(neighbor)에 위치할 수 있고, 또는 이격되어 위치할 수도 있다. 인트라 예측에서 예측 모드들은 복수의 비방향성 모드와 복수의 방향성 모드를 포함할 수 있다. 인트라 예측부(265)는 주변 블록에 적용된 예측 모드를 이용하여, 현재 블록에 적용되는 예측 모드를 결정할 수도 있다.The intra prediction unit 265 may predict the current block by referring to samples in the current picture. The referenced samples may be located in the neighborhood of the current block or spaced apart according to the prediction mode. In intra prediction, prediction modes may include a plurality of non-directional modes and a plurality of directional modes. The intra prediction unit 265 may determine a prediction mode applied to the current block using a prediction mode applied to neighboring blocks.
인터 예측부(260)는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 움직임 정보를 블록, 서브블록, 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 방향(L0 예측, L1 예측, Bi 예측 등)에 대한 정보를 더 포함할 수 있다. 인터 예측의 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 예를 들어, 인터 예측부(260)는 주변 블록들을 기반으로 움직임 정보 후보 리스트를 구성하고, 수신된 후보 선택 정보를 기반으로 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출할 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예측에 관한 정보는 현재 블록에 대한 인터 예측의 모드를 지시하는 정보를 포함할 수 있다. The inter prediction unit 260 may derive the predicted block for the current block based on a reference block (reference sample array) specified by a motion vector on the reference picture. At this time, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include information on the inter prediction direction (L0 prediction, L1 prediction, Bi prediction, etc.). In the case of inter prediction, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. For example, the inter prediction unit 260 may construct a motion information candidate list based on neighboring blocks, and derive a motion vector and/or reference picture index of the current block based on the received candidate selection information. Inter prediction may be performed based on various prediction modes, and information on prediction may include information indicating a mode of inter prediction for a current block.
가산부(235)는 획득된 레지듀얼 신호를 인터 예측부(260) 또는 인트라 예측부(265)로부터 출력된 예측 신호(예측된 블록, 예측 샘플 어레이)에 더함으로써 복원 신호(복원 픽처, 복원 블록, 복원 샘플 어레이)를 생성할 수 있다. 스킵 모드가 적용된 경우와 같이 처리 대상 블록에 대한 레지듀얼이 없는 경우, 예측된 블록이 복원 블록으로 사용될 수 있다.The adding unit 235 adds the obtained residual signal to the prediction signal (predicted block, prediction sample array) output from the inter prediction unit 260 or the intra prediction unit 265, thereby restoring signals (restored pictures, reconstructed blocks). , A reconstructed sample array). If there is no residual for the block to be processed, such as when the skip mode is applied, the predicted block may be used as a reconstructed block.
가산부(235)는 복원부 또는 복원 블록 생성부라고 불릴 수 있다. 생성된 복원 신호는 현재 픽처 내 다음 처리 대상 블록의 인트라 예측을 위하여 사용될 수 있고, 후술하는 바와 같이 필터링을 거쳐서 다음 픽처의 인터 예측을 위하여 사용될 수도 있다. The adding unit 235 may be called a restoration unit or a restoration block generation unit. The generated reconstructed signal may be used for intra prediction of a next processing target block in a current picture, or may be used for inter prediction of a next picture through filtering as described below.
필터링부(240)는 복원 신호에 필터링을 적용함으로써 주관적/객관적 화질을 향상시킬 수 있다. 예를 들어 필터링부(240)는 복원 픽처에 다양한 필터링 방법을 적용하여 수정된(modified) 복원 픽처를 생성할 수 있고, 수정된 복원 픽처를 복호 픽처 버퍼(250)에 전송할 수 있다. 다양한 필터링 방법은 예를 들어, 디블록킹 필터링, 샘플 적응적 오프셋(sample adaptive offset, SAO), 적응적 루프 필터(adaptive loop filter, ALF), 양방향 필터(bilateral filter) 등을 포함할 수 있다. The filtering unit 240 may improve subjective/objective image quality by applying filtering to the reconstructed signal. For example, the filtering unit 240 may generate a modified reconstructed picture by applying various filtering methods to the reconstructed picture, and may transmit the modified reconstructed picture to the decoded picture buffer 250. Various filtering methods may include, for example, deblocking filtering, sample adaptive offset (SAO), adaptive loop filter (ALF), bilateral filter, and the like.
복호 픽쳐 버퍼(250)에 전송된 수정된 복원 픽처는 인터 예측부(260)에 의해 참조 픽쳐로 사용될 수 있다.The corrected reconstructed picture transmitted to the decoded picture buffer 250 may be used as a reference picture by the inter prediction unit 260.
본 명세서에서, 인코딩 장치(100)의 필터링부(160), 인터 예측부(180) 및 인트라 예측부(185)에서 설명된 실시예들은 각각 디코딩 장치의 필터링부(240), 인터 예측부(260) 및 인트라 예측부(265)에도 동일 또는 대응되도록 적용될 수 있다.In the present specification, the embodiments described in the filtering unit 160, the inter prediction unit 180, and the intra prediction unit 185 of the encoding device 100 are respectively the filtering unit 240 and the inter prediction unit 260 of the decoding device. ) And the intra prediction unit 265 may be applied to the same or corresponding.
도 4는 본 명세서의 실시예에 따른 컨텐츠 스트리밍 시스템의 구조도의 예를 도시한다. 4 shows an example of a structural diagram of a content streaming system according to an embodiment of the present specification.
본 명세서가 적용되는 컨텐츠 스트리밍 시스템은 크게 인코딩 서버(410), 스트리밍 서버(420), 웹 서버(430), 미디어 저장소(440), 사용자 장치(450) 및 멀티미디어 입력 장치(460)를 포함할 수 있다.The content streaming system to which the present specification is applied may largely include an encoding server 410, a streaming server 420, a web server 430, a media storage 440, a user device 450, and a multimedia input device 460. have.
인코딩 서버(410)는 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치들로부터 입력된 컨텐츠를 디지털 데이터로 압축하여 비트스트림을 생성하고 이를 스트리밍 서버(420)로 전송할 수 있다. 다른 예로, 스마트폰, 카메라, 캠코더 등과 같은 멀티미디어 입력 장치(460)들이 비트스트림을 직접 생성하는 경우, 인코딩 서버(410)는 생략될 수 있다.The encoding server 410 may compress content input from multimedia input devices such as a smartphone, camera, camcorder, etc. into digital data to generate a bitstream and transmit it to the streaming server 420. As another example, when multimedia input devices 460 such as a smartphone, camera, and camcorder directly generate a bitstream, the encoding server 410 may be omitted.
비트스트림은 본 명세서가 적용되는 인코딩 방법 또는 비트스트림 생성 방법에 의해 생성될 수 있고, 스트리밍 서버(420)는 비트스트림을 전송 또는 수신하는 과정에서 일시적으로 비트스트림을 저장할 수 있다.The bitstream may be generated by an encoding method or a bitstream generation method to which the present specification is applied, and the streaming server 420 may temporarily store the bitstream in the process of transmitting or receiving the bitstream.
스트리밍 서버(420)는 웹 서버(430)를 통한 사용자 요청에 기초하여 멀티미디어 데이터를 사용자 장치(450)에 전송하고, 웹 서버(430)는 사용자에게 어떠한 서비스가 있는지를 알려주는 매개체 역할을 한다. 사용자가 웹 서버(430)에 원하는 서비스를 요청하면, 웹 서버(430)는 이를 스트리밍 서버(420)에 전달하고, 스트리밍 서버(420)는 사용자에게 멀티미디어 데이터를 전송한다. 이때, 컨텐츠 스트리밍 시스템은 별도의 제어 서버를 포함할 수 있고, 이 경우 제어 서버는 컨텐츠 스트리밍 시스템 내 각 장치 간 명령/응답을 제어하는 역할을 한다.The streaming server 420 transmits multimedia data to the user device 450 based on a user request through the web server 430, and the web server 430 serves as an intermediary to inform the user of the service. When a user requests a desired service from the web server 430, the web server 430 delivers it to the streaming server 420, and the streaming server 420 transmits multimedia data to the user. At this time, the content streaming system may include a separate control server, in which case the control server serves to control commands/responses between devices in the content streaming system.
스트리밍 서버(420)는 미디어 저장소(440) 및/또는 인코딩 서버(410)로부터 컨텐츠를 수신할 수 있다. 예를 들어, 스트리밍 서버(420)는 인코딩 서버(410)로부터 컨텐츠를 실시간으로 수신할 수 있다. 이 경우, 원활한 스트리밍 서비스를 제공하기 위하여 스트리밍 서버(420)는 비트스트림을 일정 시간동안 저장할 수 있다. Streaming server 420 may receive content from media storage 440 and/or encoding server 410. For example, the streaming server 420 may receive content in real time from the encoding server 410. In this case, in order to provide a smooth streaming service, the streaming server 420 may store the bitstream for a predetermined time.
예를 들어, 사용자 장치(450)는, 휴대폰, 스마트 폰(smart phone), 노트북 컴퓨터(laptop computer), 디지털방송용 단말기, PDA(personal digital assistants), PMP(portable multimedia player), 네비게이션, 슬레이트 PC(slate PC), 태블릿 PC(tablet PC), 울트라북(ultrabook), 웨어러블 디바이스(wearable device, 예를 들어, 워치형 단말기(smartwatch), 글래스형 단말기(smart glass), HMD(head mounted display), 디지털 TV, 데스크탑 컴퓨터, 디지털 사이니지를 포함할 수 있다.For example, the user device 450 includes a mobile phone, a smart phone, a laptop computer, a terminal for digital broadcasting, a personal digital assistants (PDA), a portable multimedia player (PMP), navigation, a slate PC ( slate PC), tablet PC (tablet PC), ultrabook (ultrabook), wearable device (wearable device, for example, a smart watch (smartwatch), glass type (smart glass), HMD (head mounted display), digital TVs, desktop computers, and digital signage.
컨텐츠 스트리밍 시스템 내 각 서버들은 분산 서버로 운영될 수 있으며, 이 경우 각 서버에서 수신하는 데이터는 분산 처리될 수 있다.Each server in the content streaming system can be operated as a distributed server, and in this case, data received from each server can be distributed.
도 5는 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 장치의 블록도의 예를 도시한다. 도 5의 비디오 신호 처리 장치는 도 2의 인코딩 장치(100) 또는 도 3의 디코딩 장치(200)에 해당할 수 있다.5 shows an example of a block diagram of an apparatus for processing a video signal according to an embodiment of the present specification. The video signal processing apparatus of FIG. 5 may correspond to the encoding apparatus 100 of FIG. 2 or the decoding apparatus 200 of FIG. 3.
본 명세서의 실시예에 따른 비디오 신호 처리 장치(500)는, 비디오 신호를 저장하는 메모리(520)와, 상기 메모리와 결합되면서 비디오 신호를 처리하는 프로세서(510)를 포함할 수 있다.The video signal processing apparatus 500 according to the embodiment of the present specification may include a memory 520 for storing a video signal, and a processor 510 for processing a video signal while being combined with the memory.
본 명세서의 실시예에 따른 프로세서(510)는 비디오 신호의 처리를 위한 적어도 하나의 프로세싱 회로로 구성될 수 있으며, 비디오 신호를 인코딩 또는 디코딩을 위한 명령어들을 실행함으로써 영상 신호를 처리할 수 있다. 즉, 프로세서(510)는 이하 설명되는 인코딩 또는 디코딩 방법들을 실행함으로써 원본 비디오 신호를 인코딩하거나 인코딩된 비디오 신호를 디코딩할 수 있다.The processor 510 according to an embodiment of the present disclosure may be configured with at least one processing circuit for processing a video signal, and may process a video signal by executing instructions for encoding or decoding the video signal. That is, the processor 510 may encode the original video signal or decode the encoded video signal by executing the encoding or decoding methods described below.
본 문서에 따른 비디오/영상 코딩 방법은 다양한 세부 기술들에 기반하여 수행될 수 있으며, 각각의 세부 기술들을 개략적으로 설명하면 다음과 같다. 이하 설명되는 기술들은 상술한 및/또는 후술되는 비디오/영상 인코딩/디코딩 절차에서의 예측, 레지듀얼 처리(변환, 양자화 등), 신텍스 요소 코딩, 필터링, 파티셔닝/분할 등의 관련 절차에 연관될 수 있음은 당업자에게 자명하다.The video/image coding method according to this document may be performed based on various detailed technologies, and the detailed description of each technique is as follows. The techniques described below may be related to related procedures such as prediction, residual processing (transformation, quantization, etc.), syntax element coding, filtering, partitioning/segmentation, etc. in the video/image encoding/decoding procedure described above and/or described below. It is apparent to those skilled in the art.
픽처들은 코딩 트리 유닛들(CTUs)의 시퀀스로 분할될(divided into a sequence) 수 있다. CTU는 코딩 트리 블록(CTB)에 대응될 수 있다. 혹은 CTU는 루마 샘플들의 코딩 트리 블록과, 대응하는 크로마 샘플들의 두개의 코딩 트리 블록들을 포함할 수 있다. 다시 말하면, 세가지 샘플 어레이를 포함하는 픽처에 대하여, CTU는 루마 샘플들의 NxN 블록과 크로마 샘플들의 두개의 대응 블록들을 포함할 수 있다.Pictures may be divided into a sequence of coding tree units (CTUs). The CTU may correspond to a coding tree block (CTB). Alternatively, the CTU may include a coding tree block of luma samples and two coding tree blocks of corresponding chroma samples. In other words, for a picture that includes three sample arrays, the CTU may include two NxN blocks of luma samples and two corresponding blocks of chroma samples.
블록 분할(Block Partitioning)Block partitioning
도 6은 본 명세서의 실시예에 따른 CTU(coding tree unit)들로 분할된 픽처의 예를 도시한다.6 shows an example of a picture divided into coding tree units (CTUs) according to an embodiment of the present specification.
도 6을 참조하면, 하나의 픽처는 일정한 크기를 갖는 복수 개의 CTU들로 분할될 수 있다. 코딩 및 예측을 위한 CTU의 최대 허용 사이즈는 변환을 위한 CTU의 최대 허용 사이즈와 다를 수 있다. 예를 들어, CTU 내 루마 블록의 최대 허용 사이즈는 (비록 루마 CTU들의 최대 사이즈가 64x64인 경우에도) 128x128일 수 있다.Referring to FIG. 6, one picture may be divided into a plurality of CTUs having a constant size. The maximum allowable size of the CTU for coding and prediction may be different from the maximum allowable size of the CTU for transformation. For example, the maximum allowable size of the luma block in the CTU may be 128x128 (even if the maximum size of the luma CTUs is 64x64).
도 7은 본 명세서의 실시예에 따른 멀티타입 트리 분할 모드들의 예를 도시한다.7 shows an example of multi-type tree splitting modes according to an embodiment of the present specification.
CTU는 쿼드트리(quad-tree, QT) 구조를 기반으로 CU들로 분할될 수 있다. 쿼드트리 구조는 쿼터너리(quaternary) 트리 구조라고 불릴 수 있다. 이는 다양한 국지적 특징(local characteristic)을 반영하기 위함이다. 한편, 본 문서에서 CTU는 쿼드트리 뿐 아니라 바이너리 트리(binary-tree, BT) 및 터너리 트리(ternary-tree, TT)을 포함하는 멀티타입 트리 구조 분할에 기반하여 분할될 수 있다. 이하, QTBT 구조라 함은 쿼드트리 및 바이너리 트리 기반 분할 구조를 포함할 수 있고, QTBTTT라 함은 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수 있다. 또한, QTBT 구조는 쿼드트리, 바이너리 트리 및 터너리 트리 기반 분할 구조를 포함할 수도 있다. 코딩 트리 구조에서, CU는 정사각형 또는 직사각형 모양을 가질 수 있다. CTU는 먼저 쿼드트리 구조로 분할될 수 있다. 이후 쿼드트리 구조의 리프 노드들은 멀티타입 트리 구조에 의하여 더 분할될 수 있다. 예를 들어 도 6에서 도시된 것과 같이, 멀티타입 트리 구조는 개략적으로 4개의 분할 타입을 포함할 수 있다.CTU may be divided into CUs based on a quad-tree (QT) structure. The quadtree structure may be referred to as a quaternary tree structure. This is to reflect various local characteristics. Meanwhile, in this document, the CTU can be divided based on the division of a multi-type tree structure including a binary tree (BT) and a ternary tree (TT) as well as a quad tree. Hereinafter, the QTBT structure may include a quadtree and binary tree based split structure, and the QTBTTT may include a quadtree, binary tree and ternary tree based split structure. In addition, the QTBT structure may include a quadtree, binary tree, and ternary tree based splitting structure. In the coding tree structure, the CU can have a square or rectangular shape. The CTU can be first divided into a quadtree structure. Thereafter, leaf nodes having a quadtree structure may be further divided by a multi-type tree structure. For example, as shown in FIG. 6, the multi-type tree structure may schematically include four division types.
도 6에 나타난 4개의 분할 타입은 수직 바이너리 분할(vertical binary splitting, SPLIT_BT_VER), 수평 바이너리 분할(horizontal binary splitting, SPLIT_BT_HOR), 수직 터너리 분할(vertical ternary splitting, SPLIT_TT_VER), 수평 터너리 분할(horizontal ternary splitting, SPLIT_TT_HOR)을 포함할 수 있다. 멀티타입 트리 구조의 리프 노드들은 CU들로 지칭될 수 있다. 이러한 CU들은 예측 및 변환 절차를 위한 단위로서 사용될 수 있다. 본 명세서의 실시예에서 CU, PU, TU는 동일한 블록 사이즈를 가질 수 있다. 다만, 최대 허용 변환 길이(maximum supported transform length)가 CU의 컬러 성분(colour component)의 너비 또는 높이보다 작은 경우에는 CU와 TU가 서로 다른 블록 사이즈를 가질 수 있다.The four split types shown in FIG. 6 are vertical binary splitting (SPLIT_BT_VER), horizontal binary splitting (SPLIT_BT_HOR), vertical ternary splitting (SPLIT_TT_VER), horizontal ternary splitting (horizontal ternary) splitting, SPLIT_TT_HOR). Leaf nodes of a multitype tree structure may be referred to as CUs. These CUs can be used as a unit for prediction and transformation procedures. In embodiments of the present specification, CU, PU, and TU may have the same block size. However, when the maximum supported transform length is smaller than the width or height of the color component of the CU, the CU and the TU may have different block sizes.
도 8은 본 명세서의 실시예에 따른 멀티타입 트리를 수반한 쿼드트리(quadtree with nested multi-type tree) 구조의 파티션 분할 정보의 시그널링 메커니즘의 예를 나타낸다.8 illustrates an example of a signaling mechanism of partition partition information of a quadtree with nested multi-type tree structure according to an embodiment of the present specification.
여기서, CTU는 쿼드트리의 루트(root)로 취급되며, 쿼드트리 구조로 처음으로 분할된다. 각 쿼드트리 리프 노드는 이후 멀티타입 트리 구조로 더 분할될 수 있다. 멀티타입 트리 구조에서, 제1 플래그(예: mtt_split_cu_flag)가 해당 노드가 추가적으로 분할되는지 여부를 지시하기 위하여 시그널링된다. 만약 해당 노드가 추가적으로 분할되는 경우, 제2 플래그(예: mtt_split_cu_vertical_flag)가 분할 방향(splitting direction)을 지시하기 위하여 시그널링될 수 있다. 그 후 제3 플래그(예: mtt_split_cu_binary_flag)가 분할 타입이 바이너리 분할인지 터너리 분할인지 여부를 지시하기 위하여 시그널링될 수 있다. 예를 들어, mtt_split_cu_vertical_flag 및 mtt_split_cu_binary_flag를 기반으로, CU의 멀티타입 트리 분할 모드(multi-type tree splitting mode, MttSplitMode)가 다음 표 1과 같이 도출될 수 있다.Here, the CTU is treated as a root of a quadtree, and is first divided into a quadtree structure. Each quadtree leaf node can then be further divided into a multitype tree structure. In the multi-type tree structure, a first flag (eg, mtt_split_cu_flag) is signaled to indicate whether the corresponding node is additionally divided. If the corresponding node is additionally divided, a second flag (eg, mtt_split_cu_vertical_flag) may be signaled to indicate a splitting direction. Thereafter, a third flag (eg, mtt_split_cu_binary_flag) may be signaled to indicate whether the partition type is binary partition or ternary partition. For example, based on mtt_split_cu_vertical_flag and mtt_split_cu_binary_flag, a multi-type tree splitting mode (MttSplitMode) of a CU may be derived as shown in Table 1 below.
Figure PCTKR2020000067-appb-img-000001
Figure PCTKR2020000067-appb-img-000001
도 9는 본 명세서의 실시예에 따른 쿼드트리 및 수반되는 멀티타입 트리(quadtree and nested multi-type tree) 구조를 기반으로 CTU가 다중 CU(coding unit)들로 분할되는 것을 예시적으로 도시한다.9 exemplarily shows that a CTU is divided into multiple coding units (CUs) based on a quadtree and nested multi-type tree structure according to an embodiment of the present specification.
여기서, 볼드 블록 엣지들(bold block edges)는 쿼드트리 분할을, 나머지 엣지들은 멀티타입 트리 분할을 나타낸다. 멀티타입 트리를 수반한 쿼드트리 파티션은 컨텐츠-적응적 코딩 트리 구조를 제공할 수 있다. CU는 코딩 블록(CB)에 대응될 수 있다. 혹은 CU는 루마 샘플들의 코딩 블록과, 대응하는 크로마 샘플들의 두개의 코딩 블록들을 포함할 수 있다. CU의 사이즈는 CTU만큼 클 수도 있고, 또는 루마 샘플 단위에서 4x4 단위로 구성될 수도 있다. 예를 들어, 4:2:0 컬러 포맷(또는 크로마 포맷)인 경우, 최대 크로마 CB 사이즈는 64x64이고 최소 크로마 CB 사이즈는 2x2일 수 있다.Here, bold block edges represent quadtree partitioning, and the remaining edges represent multitype tree partitioning. A quadtree partition with a multitype tree can provide a content-adaptive coding tree structure. The CU may correspond to a coding block (CB). Alternatively, the CU may include a coding block of luma samples and two coding blocks of corresponding chroma samples. The size of the CU may be as large as the CTU, or may be configured in 4x4 units in luma sample units. For example, in the case of a 4:2:0 color format (or chroma format), the maximum chroma CB size may be 64x64 and the minimum chroma CB size may be 2x2.
본 문서에서 예를 들어, 최대 허용 루마 TB 사이즈는 64x64이고, 최대 허용 크로마 TB 사이즈는 32x32일 수 있다. 만약 트리 구조에 따라 분할된 CB의 너비 또는 높이가 최대 변환 너비 또는 높이보다 큰 경우, 해당 CB는 자동적으로(또는 묵시적으로) 수평 및 수직 방향의 TB 사이즈 제한을 만족할 때까지 분할될 수 있다. In this document, for example, the maximum allowed luma TB size may be 64x64 and the maximum allowed chroma TB size may be 32x32. If the width or height of the CB divided according to the tree structure is greater than the maximum conversion width or height, the CB may be automatically (or implicitly) divided until the horizontal and vertical TB size limitations are satisfied.
한편, 멀티타입 트리를 수반한 쿼드트리 코딩 트리 스킴(scheme)을 위하여, 다음 파라미터들이 SPS(sequence parameter set) 신택스 요소로 정의 및 식별될 수 있다.Meanwhile, for a quadtree coding tree scheme involving a multitype tree, the following parameters may be defined and identified as a sequence parameter set (SPS) syntax element.
- CTU size: 쿼터너리 트리의 루트 노드(the root node size of a quaternary tree)-CTU size: the root node size of a quaternary tree
- MinQTSize: 최소의 허용된 쿼터너리 트리 리프 노드 사이즈(the minimum allowed quaternary tree leaf node size)-MinQTSize: the minimum allowed quaternary tree leaf node size
- MaxBtSize: 최소의 허용된 이진 트리 루트 노드 사이즈(the maximum allowed binary tree root node size)-MaxBtSize: the maximum allowed binary tree root node size
- MaxTtSize: 최소의 허용된 터너리 트리 루트 노드 사이즈(the maximum allowed ternary tree root node size)-MaxTtSize: the maximum allowed ternary tree root node size
- MaxMttDepth: 쿼드트리 리프로부터 분할되는 멀티 타입 트리의 최대 허용된 계층적 깊이(the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf)-MaxMttDepth: the maximum allowed hierarchy depth of multi-type tree splitting from a quadtree leaf
- MinBtSize: 최소의 허용된 이진 트리 리프 노드 사이즈(the minimum allowed binary tree leaf node size)-MinBtSize: the minimum allowed binary tree leaf node size
- MinTtSize: 최소의 허용된 터너리 트리 리프 노드 사이즈(the minimum allowed ternary tree leaf node size)-MinTtSize: the minimum allowed ternary tree leaf node size
멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조의 일 예로, CTU 사이즈는 128x128 루마 샘플들 및 두개의 대응하는 크로마 샘플들의 64x64 블록들로 설정될 수 있다(4:2:0 크로마 포맷에서). 이 경우, MinOTSize는 16x16으로 설정되고, MaxBtSize는 128x128로 설정되고, MaxTtSzie는 64x64로 설정되고, (너비와 높이에 대한) MinBtSize 및 MinTtSize는 4x4로, 그리고 MaxMttDepth는 4로 설정될 수 있다. 쿼드트리 분할은 CTU에 적용되어 쿼드트리 리프 노드들을 생성할 수 있다. 쿼드트리 리프 노드는 리프 QT 노드라고 불릴 수 있다. 쿼드트리 리프 노드들은 16x16 사이즈 (즉, MinOTSize)로부터 128x128 사이즈(즉, CTU 사이즈)를 가질 수 있다. 만약 리프 QT 노드가 128x128인 경우, 추가적으로 바이너리 트리/터너리 트리로 분할되지 않을 수 있다. 이는 이 경우 분할되더라도 MaxBtsize 및 MaxTtszie(즉, 64x64)를 초과하기 때문이다. 이 외의 경우, 리프 QT 노드는 멀티타입 트리로 추가적으로 분할될 수 있다. 그러므로, 리프 QT 노드는 멀티타입 트리에 대한 루트 노드(root node)이고, 리프 QT 노드는 멀티타입 트리 뎁스(mttDepth) 0 값을 가질 수 있다. 만약, 멀티타입 트리 뎁스가 MaxMttdepth(예: 4)에 도달한 경우, 더 이상 추가 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 너비가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수평 분할은 고려되지 않을 수 있다. 만약, 멀티타입 트리 노드의 높이가 MinBtSize와 같고, 2xMinTtSize보다 작거나 같을 때, 더 이상 추가적인 수직 분할은 고려되지 않을 수 있다.As an example of a quadtree coding tree structure with a multitype tree, the CTU size can be set to 64x64 blocks of 128x128 luma samples and two corresponding chroma samples (in 4:2:0 chroma format). In this case, MinOTSize can be set to 16x16, MaxBtSize is set to 128x128, MaxTtSzie can be set to 64x64, MinBtSize and MinTtSize (for width and height) can be set to 4x4, and MaxMttDepth can be set to 4. Quadtree splitting can be applied to CTU to generate quadtree leaf nodes. The quadtree leaf node may be referred to as a leaf QT node. Quadtree leaf nodes may have a size of 16x16 (ie MinOTSize) to a size of 128x128 (ie CTU size). If the leaf QT node is 128x128, it may not be additionally divided into a binary tree/ternary tree. This is because, even in this case, it exceeds MaxBtsize and MaxTtszie (ie, 64x64). In other cases, the leaf QT node may be further divided into a multi-type tree. Therefore, a leaf QT node is a root node for a multitype tree, and a leaf QT node may have a multitype tree depth (mttDepth) 0 value. If the multi-type tree depth reaches MaxMttdepth (eg 4), further partitioning may not be considered. If the width of the multi-type tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional horizontal partitioning may no longer be considered. If the height of the multitype tree node is equal to MinBtSize and less than or equal to 2xMinTtSize, additional vertical splitting may no longer be considered.
하드웨어 디코더에서의 64x64 루마 블록 및 32x32 크로마 파이프라인 디자인을 허용하기 위하여, TT 분할은 특정 경우 금지될(forbidden) 수 있다. 예를 들어, 루마 코딩 블록의 너비 또는 높이가 64보다 큰 경우, 도 9에 도시된 바와 같이, TT 분할이 금지될 수 있다. 또한 예를 들어, 크로마 코딩 블록의 너비 또는 높이가 32보다 큰 경우 TT 분할은 금지될 수 있다.To allow for the 64x64 luma block and 32x32 chroma pipeline design in the hardware decoder, TT segmentation can be forbidden in certain cases. For example, if the width or height of the luma coding block is greater than 64, as shown in FIG. 9, TT splitting may be prohibited. Also, for example, if the width or height of the chroma coding block is greater than 32, TT splitting may be prohibited.
도 10는 본 명세서의 실시예에 따른 128x128 코딩 블록에 대하여 TT(ternary tree) 분할이 제한되는 경우의 예를 도시한다.10 shows an example of a case where TT (ternary tree) partitioning is restricted for a 128x128 coding block according to an embodiment of the present specification.
본 문서에서, 코딩 트리 스킴은 루마 및 크로마 블록이 개별적(separate) 블록 트리 구조를 가지는 것을 지원할 수 있다. P 및 B 슬라이스들에 대하여, 하나의 CTU 내 루마 및 크로마 CTB들은 동일한 코딩 트리 구조를 갖도록 제한될 수 있다. 그러나, I 슬라이스들에 대하여, 루마 및 크로마 블록들은 서로 개별적 블록 트리 구조를 가질 수 있다. 만약 개별적 블록 트리 모드가 적용되는 경우, 루마 CTB는 특정 코딩 트리 구조를 기반으로 CU들로 분할되고, 크로마 CTB는 다른 코딩 트리 구조를 기반으로 크로마 CU들로 분할될 수 있다. 이는, I 슬라이스 내 CU는 루마 성분의 코딩 블록 또는 두 크로마 성분들의 코딩 블록들로 구성되고, P 또는 B 슬라이스의 CU는 세가지 컬러 성분의 블록들로 구성될 수 있음을 의미할 수 있다.In this document, the coding tree scheme can support luma and chroma blocks having a separate block tree structure. For P and B slices, luma and chroma CTBs in one CTU can be restricted to have the same coding tree structure. However, for I slices, luma and chroma blocks may have a separate block tree structure from each other. If the individual block tree mode is applied, the luma CTB may be divided into CUs based on a specific coding tree structure, and the chroma CTB may be divided into chroma CUs based on another coding tree structure. This may mean that a CU in an I slice is composed of a coding block of luma components or coding blocks of two chroma components, and a CU of a P or B slice can be composed of blocks of three color components.
상술한 "트리 구조를 사용한 CTU의 분할(Partitioning of the CTUs using a tree structure)"에서 멀티타입 트리를 수반한 쿼드트리 코딩 트리 구조에 대하여 설명하였으나, CU가 분할되는 구조는 이에 한정되지 않는다. 예를 들어, BT 구조 및 TT 구조는 다수 분할 트리(multiple partitioning tree, MPT) 구조에 포함되는 개념으로 해석될 수 있고, CU는 QT 구조 및 MPT 구조를 통해 분할된다고 해석할 수 있다. QT 구조 및 MPT 구조를 통해 CU가 분할되는 일 예에서, QT 구조의 리프 노드가 몇 개의 블록으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예: MPT_split_type) 및 QT 구조의 리프 노드가 수직과 수평 중 어느 방향으로 분할되는지에 관한 정보를 포함하는 신택스 요소(예: MPT_split_mode)가 시그널링 됨으로써 분할 구조가 결정될 수 있다.In the above-described "Partitioning of the CTUs using a tree structure", the quadtree coding tree structure with a multi-type tree has been described, but the structure in which the CU is divided is not limited to this. For example, the BT structure and the TT structure may be interpreted as a concept included in a multiple partitioning tree (MPT) structure, and a CU may be divided through a QT structure and an MPT structure. In an example in which a CU is split through a QT structure and an MPT structure, a syntax element (eg, MPT_split_type) including information about how many blocks a leaf node of the QT structure is divided into, and a leaf node of the QT structure are vertical and horizontal. The splitting structure may be determined by signaling a syntax element (eg, MPT_split_mode) including information on which direction to split.
또 다른 예에서, CU는 QT 구조, BT 구조 또는 TT 구조와 다른 방법으로 분할될 수 있다. 즉, QT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 크기로 분할되거나, BT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/2 크기로 분할되거나, TT 구조에 따라 하위 뎁스의 CU가 상위 뎁스의 CU의 1/4 또는 1/2 크기로 분할되는 것과 달리, 하위 뎁스의 CU는 경우에 따라 상위 뎁스의 CU의 1/5, 1/3, 3/8, 3/5, 2/3 또는 5/8 크기로 분할될 수 있으며, CU가 분할되는 방법은 이에 한정되지 않는다.In another example, the CU may be divided in a different way from the QT structure, BT structure or TT structure. That is, according to the QT structure, the CU of the lower depth is divided into 1/4 the size of the CU of the upper depth, or the CU of the lower depth is divided into 1/2 the size of the CU of the upper depth according to the BT structure, or according to the TT structure Unlike the CU of the lower depth, which is divided into 1/4 or 1/2 the size of the CU of the upper depth, the CU of the lower depth may be 1/5, 1/3, 3/8, 3 of the CU of the upper depth depending on the case. It may be divided into /5, 2/3, or 5/8 size, and the method in which the CU is divided is not limited thereto.
만약 트리 노드 블록의 부분(portion)이 하단(bottom) 또는 오른쪽(right) 픽처 경계(boundary)를 초과하는(exceeds) 경우, 해당 트리 노드 블록은 모든 코딩된 CU의 모든 샘플들이 상기 픽처 경계들 내에 위치하도록 제한될 수 있다. 이 경우 예를 들어 아래 표 2와 같은 분할 규칙이 적용될 수 있다.If the portion of the tree node block exceeds the bottom or right picture boundary, the tree node block includes all samples of all coded CUs within the picture boundaries. It can be restricted to be located. In this case, for example, the division rule as shown in Table 2 below may be applied.
Figure PCTKR2020000067-appb-img-000002
Figure PCTKR2020000067-appb-img-000002
도 11은 본 명세서의 실시예에 따른 바이너리 트리 분할 및 터너리 트리 분할에서 발생할 수 있는 리던던트 분할 패턴들의 예를 도시한다.11 illustrates examples of redundant partition patterns that may occur in binary tree partition and ternary tree partition according to an embodiment of the present disclosure.
멀티타입 트리를 수반한 쿼드트리 코딩 블록 구조는 매우 유연한 블록 파티셔닝 구조를 제공할 수 있다. 멀티타입 트리에 지원되는 분할 타입들 때문에, 다른 분할 패턴들이 경우에 따라서 잠재적으로 동일한 코딩 블록 구조 결과를 가져올 수 잇다. 이러한 리던던트(redundant)한 분할 패턴들의 발생을 제한함으로써 파티셔닝 정보의 데이터량을 줄일 수 있다.The quadtree coding block structure with a multi-type tree can provide a very flexible block partitioning structure. Due to the division types supported in the multitype tree, different division patterns can potentially result in the same coding block structure in some cases. By limiting the occurrence of such redundant partition patterns, the data amount of partitioning information can be reduced.
도 11에 도시된 바와 같이, 2단계 레벨의 한 방향에 대한 연속적인 바이너리 분할(two levels of consecutive binary splits in one direction)은, 터너리 분할 이후 센터 파티션에 대한 바이너리 분할과 동일한 코딩 블록 구조를 갖는다. 이러한 경우, 터너리 트리 분할의 센터 파티션에 대한 바이너리 트리 분할(in the given direction)은 금지된다. 이러한 금지는 모든 픽처들의 CU들에 대하여 적용될 수 있다. 이러한 특정 분할이 금지되는 경우, 대응하는 신택스 요소들의 시그널링은 이러한 금지되는 경우를 반영하여 수정될 수 있고, 이를 통하여 파티셔닝을 위하여 시그널링되는 비트수를 줄일 수 있다. 예를 들어, 도 10에 도시된 예와 같이, CU의 센터 파티션에 대한 바이너리 트리 분할이 금지되는 경우, 분할이 바이너리 분할인지 터너리 분할인지 여부를 가리키는 mtt_split_cu_binary_flag 신택스 요소는 시그널링되지 않고, 그 값은 0으로 디코더에 의하여 추론될 수 있다.As shown in FIG. 11, two levels of consecutive binary splits in one direction have the same coding block structure as binary partitions for the center partition after ternary splitting. . In this case, binary tree partitioning to the center partition of the ternary tree partitioning is prohibited. This prohibition can be applied to CUs of all pictures. When such a specific division is prohibited, signaling of the corresponding syntax elements can be modified to reflect this prohibited case, thereby reducing the number of bits signaled for partitioning. For example, as in the example shown in FIG. 10, when binary tree partitioning for the center partition of the CU is prohibited, the mtt_split_cu_binary_flag syntax element indicating whether the partition is a binary partition or a ternary partition is not signaled, and its value is It can be inferred by the decoder to zero.
화면간 예측(Inter Prediction)Inter Prediction
이하, 본 명세서의 실시예에 따른 인터 예측 기법에 대하여 설명하도록 한다. 이하 설명되는 인터 예측은 도 2의 인코딩 장치(100)의 인터 예측부(180) 또는 도 3의 디코딩 장치(200)의 인터 예측부(260)에 의해 수행될 수 있다.Hereinafter, an inter prediction technique according to an embodiment of the present specification will be described. The inter prediction described below may be performed by the inter prediction unit 180 of the encoding apparatus 100 of FIG. 2 or the inter prediction unit 260 of the decoding apparatus 200 of FIG. 3.
인코딩 장치(100)/디코딩 장치(200)의 예측부는 블록 단위로 인터 예측을 수행하여 예측 샘플을 도출할 수 있다. 인터 예측은 현재 픽처 이외의 픽처(들)의 데이터 요소들(예: 샘플값들, 또는 움직임 정보 등)에 의존적인 방법으로 도출되는 예측을 나타낼 수 있다(Inter prediction can be a prediction derived in a manner that is dependent on data elements (e.g., sample values or motion information) of picture(s) other than the current picture). 현재 블록에 인터 예측이 적용되는 경우, 참조 픽처 인덱스가 가리키는 참조 픽처 상에서 움직임 벡터에 의해 특정되는 참조 블록(참조 샘플 어레이)을 기반으로, 현재 블록에 대한 예측된 블록(예측 샘플 어레이)을 유도할 수 있다. 이때, 인터 예측 모드에서 전송되는 움직임 정보의 양을 줄이기 위해 주변 블록과 현재 블록 간의 움직임 정보의 상관성에 기초하여 현재 블록의 움직임 정보를 블록, 서브블록 또는 샘플 단위로 예측할 수 있다. 움직임 정보는 움직임 벡터 및 참조 픽처 인덱스를 포함할 수 있다. 움직임 정보는 인터 예측 타입(L0 예측, L1 예측, Bi 예측 등) 정보를 더 포함할 수 있다. 인터 예측이 적용되는 경우, 주변 블록은 현재 픽처 내에 존재하는 공간적 주변 블록(spatial neighboring block)과 참조 픽처에 존재하는 시간적 주변 블록(temporal neighboring block)을 포함할 수 있다. 참조 블록을 포함하는 참조 픽처와 시간적 주변 블록을 포함하는 참조 픽처는 동일할 수도 있고, 다를 수도 있다. 시간적 주변 블록은 동일 위치 참조 블록(collocated reference block), 동일 위치 CU(colCU) 등의 이름으로 불릴 수 있으며, 시간적 주변 블록을 포함하는 참조 픽처는 동일 위치 픽처(collocated picture, colPic)라고 불릴 수도 있다. 예를 들어, 현재 블록의 주변 블록들을 기반으로 움직임 정보 후보 리스트가 구성될 수 있고, 현재 블록의 움직임 벡터 및/또는 참조 픽처 인덱스를 도출하기 위하여 어떤 후보가 선택(사용)되는지를 지시하는 플래그 또는 인덱스 정보가 시그널링될 수 있다. 다양한 예측 모드를 기반으로 인터 예측이 수행될 수 있으며, 예를 들어 스킵 모드와 머지 모드의 경우에, 현재 블록의 움직임 정보는 선택된 주변 블록의 움직임 정보와 같을 수 있다. 스킵 모드의 경우, 머지 모드와 달리 레지듀얼 신호가 전송되지 않을 수 있다. 움직임 정보 예측(motion vector prediction, MVP) 모드의 경우, 선택된 주변 블록의 움직임 벡터를 움직임 벡터 예측자(motion vector predictor)로 이용하고, 움직임 벡터 차분(motion vector difference)은 시그널링될 수 있다. 이 경우 움직임 벡터 예측자 및 움직임 벡터 차분의 합을 이용하여 상기 현재 블록의 움직임 벡터를 도출할 수 있다.The prediction unit of the encoding apparatus 100 / decoding apparatus 200 may perform inter prediction in block units to derive prediction samples. Inter prediction may represent prediction derived in a manner dependent on data elements (eg, sample values, or motion information) of a picture(s) other than the current picture (Inter prediction can be a prediction derived in a manner that is dependent on data elements (eg, sample values or motion information) of picture(s) other than the current picture). When inter prediction is applied to a current block, based on a reference block (reference sample array) specified by a motion vector on a reference picture indicated by the reference picture index, a predicted block (predictive sample array) for the current block is derived. Can. In this case, in order to reduce the amount of motion information transmitted in the inter prediction mode, motion information of the current block may be predicted in units of blocks, subblocks, or samples based on the correlation of motion information between a neighboring block and a current block. The motion information may include a motion vector and a reference picture index. The motion information may further include inter prediction type (L0 prediction, L1 prediction, Bi prediction, etc.) information. When inter prediction is applied, the neighboring block may include a spatial neighboring block existing in the current picture and a temporal neighboring block present in the reference picture. The reference picture including the reference block and the reference picture including the temporal neighboring block may be the same or different. The temporal neighboring block may be called a name such as a collocated reference block or a colCU, and the reference picture including the temporal neighboring block may also be called a collocated picture (colPic). . For example, a motion information candidate list may be constructed based on neighboring blocks of the current block, and a flag indicating which candidate is selected (used) to derive a motion vector and/or reference picture index of the current block, or Index information may be signaled. Inter prediction may be performed based on various prediction modes. For example, in the case of the skip mode and the merge mode, motion information of a current block may be the same as motion information of a selected neighboring block. In the skip mode, unlike the merge mode, the residual signal may not be transmitted. In a motion vector prediction (MVP) mode, a motion vector of a selected neighboring block is used as a motion vector predictor, and a motion vector difference can be signaled. In this case, the motion vector of the current block may be derived using the sum of the motion vector predictor and the motion vector difference.
도 12 및 도 13은 본 명세서의 실시예에 따른 인터 예측에 기반한 비디오/영상 인코딩 절차 및 인코딩 장치 내 인터 예측부를 도시한다.12 and 13 illustrate a video/video encoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in an encoding device.
인코딩 장치(100)는 현재 블록에 대한 인터 예측을 수행한다(S1210). 인코딩 장치(100)는 현재 블록의 인터 예측 모드 및 움직임 정보를 도출하고, 현재 블록의 예측 샘플들을 생성할 수 있다. 여기서 인터 예측 모드 결정, 움직임 정보 도출 및 예측 샘플들 생성 절차는 동시에 수행될 수도 있고, 어느 한 절차가 다른 절차보다 먼저 수행될 수도 있다. 예를 들어, 인코딩 장치(100)의 인터 예측부(180)는 예측 모드 결정부(181), 움직임 정보 도출부(182), 예측 샘플 도출부(183)를 포함할 수 있으며, 예측 모드 결정부(181)에서 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(182)에서 현재 블록의 움직임 정보를 도출하고, 예측 샘플 도출부(183)에서 현재 블록의 예측 샘플들을 도출할 수 있다. 예를 들어, 인코딩 장치(100)의 인터 예측부(180)는 움직임 추정(motion estimation)을 통하여 참조 픽처들의 일정 영역(서치 영역) 내에서 상기 현재 블록과 유사한 블록을 서치하고, 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이를 기반으로 상기 참조 블록이 위치하는 참조 픽처를 가리키는 참조 픽처 인덱스를 도출하고, 참조 블록과 현재 블록의 위치 차이를 기반으로 움직임 벡터를 도출할 수 있다. 인코딩 장치(100)는 다양한 예측 모드들 중 현재 블록에 대하여 적용되는 모드를 결정할 수 있다. 인코딩 장치(100)는 다양한 예측 모드들에 대한 RD 비용(cost)을 비교하고 현재 블록에 대한 최적의 예측 모드를 결정할 수 있다. The encoding apparatus 100 performs inter prediction on the current block (S1210). The encoding apparatus 100 may derive the inter prediction mode and motion information of the current block, and generate prediction samples of the current block. Here, the procedure for determining the inter prediction mode, deriving motion information, and generating prediction samples may be performed simultaneously, or one procedure may be performed before the other procedure. For example, the inter prediction unit 180 of the encoding apparatus 100 may include a prediction mode determination unit 181, a motion information derivation unit 182, and a prediction sample derivation unit 183, and the prediction mode determination unit The prediction mode for the current block may be determined at 181, the motion information of the current block may be derived from the motion information derivation unit 182, and prediction samples of the current block may be derived by the prediction sample derivation unit 183. For example, the inter prediction unit 180 of the encoding apparatus 100 searches a block similar to the current block in a certain area (search area) of reference pictures through motion estimation, and It is possible to derive a reference block whose difference is less than or equal to a certain criterion. Based on this, a reference picture index indicating a reference picture in which the reference block is located may be derived, and a motion vector may be derived based on a position difference between the reference block and the current block. The encoding apparatus 100 may determine a mode applied to the current block among various prediction modes. The encoding apparatus 100 may compare the RD cost for various prediction modes and determine an optimal prediction mode for the current block.
예를 들어, 인코딩 장치(100)는 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 머지 후보 리스트에 포함된 머지 후보들이 가리키는 참조 블록들 중 현재 블록과 중 현재 블록과의 차이가 최소 또는 일정 기준 이하인 참조 블록을 도출할 수 있다. 이 경우 도출된 참조 블록과 연관된 머지 후보가 선택되며, 선택된 머지 후보를 가리키는 머지 인덱스 정보가 생성되어 디코딩 장치(200)로 시그널링될 수 있다. 선택된 머지 후보의 움직임 정보를 이용하여 현재 블록의 움직임 정보가 도출될 수 있다. For example, when the skip mode or the merge mode is applied to the current block, the encoding apparatus 100 configures a merge candidate list, which will be described later, and the current block among the reference blocks indicated by the merge candidates included in the merge candidate list. It is possible to derive a reference block with a difference from a current block or a minimum or a predetermined criterion. In this case, a merge candidate associated with the derived reference block is selected, and merge index information indicating the selected merge candidate may be generated and signaled to the decoding apparatus 200. Motion information of a current block may be derived using motion information of a selected merge candidate.
다른 예로, 인코딩 장치(100)는 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, (A)MVP 후보 리스트에 포함된 MVP(motion vector predictor) 후보들 중 선택된 MVP 후보의 움직임 벡터를 현재 블록의 MVP로 이용할 수 있다. 이 경우, 예를 들어, 상술한 움직임 추정에 의하여 도출된 참조 블록을 가리키는 움직임 벡터가 현재 블록의 움직임 벡터로 이용될 수 있으며, MVP 후보들 중 현재 블록의 움직임 벡터와의 차이가 가장 작은 움직임 벡터를 갖는 MVP 후보가 선택된 MVP 후보가 될 있다. 현재 블록의 움직임 벡터에서 MVP를 뺀 차분인 MVD(motion vector difference)가 도출될 수 있다. 이 경우 MVD에 관한 정보가 디코딩 장치(200)로 시그널링될 수 있다. 또한, (A)MVP 모드가 적용되는 경우, 참조 픽처 인덱스의 값은 참조 픽처 인덱스 정보 구성되어 별도로 디코딩 장치(200)로 시그널링될 수 있다. As another example, when the (A)MVP mode is applied to the current block, the encoding apparatus 100 configures the (A)MVP candidate list, which will be described later, and (A) the motion vector predictor (MVP) candidates included in the MVP candidate list. The motion vector of the selected MVP candidate can be used as the MVP of the current block. In this case, for example, a motion vector indicating a reference block derived by the above-described motion estimation may be used as the motion vector of the current block, and among the MVP candidates, a motion vector having the smallest difference from the motion vector of the current block may be used. The MVP candidate to have may be the selected MVP candidate. A motion vector difference (MVD), which is a difference obtained by subtracting MVP from the motion vector of the current block, may be derived. In this case, information about the MVD may be signaled to the decoding device 200. In addition, when the (A)MVP mode is applied, the value of the reference picture index may be configured and reference signal index information may be separately signaled to the decoding apparatus 200.
인코딩 장치(100)는 예측 샘플들을 기반으로 레지듀얼 샘플들을 도출할 수 있다(S1220). 인코딩 장치(100)는 현재 블록의 원본 샘플들과 예측 샘플들의 비교를 통하여 레지듀얼 샘플들을 도출할 수 있다.The encoding apparatus 100 may derive residual samples based on the predicted samples (S1220). The encoding apparatus 100 may derive residual samples through comparison of original samples and prediction samples of the current block.
인코딩 장치(100)는 예측 정보 및 레지듀얼 정보를 포함하는 영상 정보를 인코딩한다(S1230). 인코딩 장치(100)는 인코딩된 영상 정보를 비트스트림 형태로 출력할 수 있다. 예측 정보는 예측 절차에 관련된 정보들로서 예측 모드 정보(예: skip flag, merge flag, 또는 mode index) 및 움직임 정보를 포함할 수 있다. 움직임 정보는 움직임 벡터를 도출하기 위한 정보인 후보 선택 정보(예: merge index, mvp flag, 또는 mvp index)를 포함할 수 있다. 또한 움직임 정보는 상술한 MVD에 관한 정보 및/또는 참조 픽처 인덱스 정보를 포함할 수 있다. 또한 움직임 정보는 L0 예측, L1 예측, 또는 쌍(bi) 예측이 적용되는지 여부를 나타내는 정보를 포함할 수 있다. 레지듀얼 정보는 레지듀얼 샘플들에 관한 정보이다. 레지듀얼 정보는 레지듀얼 샘플들에 대한 양자화된 변환 계수들에 관한 정보를 포함할 수 있다. The encoding apparatus 100 encodes video information including prediction information and residual information (S1230). The encoding apparatus 100 may output encoded image information in the form of a bitstream. The prediction information is information related to a prediction procedure and may include prediction mode information (eg, skip flag, merge flag, or mode index) and motion information. The motion information may include candidate selection information (eg, merge index, mvp flag, or mvp index) that is information for deriving a motion vector. In addition, the motion information may include information on the MVD and/or reference picture index information. Also, the motion information may include information indicating whether L0 prediction, L1 prediction, or bi prediction is applied. The residual information is information about residual samples. The residual information may include information about quantized transform coefficients for residual samples.
출력된 비트스트림은 (디지털) 저장매체에 저장되어 디코딩 장치로 전달될 수 있고, 또는 네트워크를 통하여 디코딩 장치로 전달될 수도 있다. The output bitstream may be stored in a (digital) storage medium and transmitted to a decoding device, or may be delivered to a decoding device through a network.
한편, 상술한 바와 같이 인코딩 장치는 상기 참조 샘플들 및 상기 레지듀얼 샘플들을 기반으로 복원 픽처(복원 샘플들 및 복원 블록 포함)를 생성할 수 있다. 이는 디코딩 장치(200)에서 수행되는 것과 동일한 예측 결과를 인코딩 장치(100)에서 도출하기 위함이며, 이를 통하여 코딩 효율을 높일 수 있기 때문이다. 따라서, 인코딩 장치(100)는 복원 픽처(또는 복원 샘플들, 복원 블록)을 메모리에 저장하고, 인터 예측을 위한 참조 픽처로 활용할 수 있다. 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다.Meanwhile, as described above, the encoding apparatus may generate a reconstructed picture (including reconstructed samples and reconstructed blocks) based on the reference samples and the residual samples. This is to derive the same prediction result as that performed by the decoding apparatus 200 in the encoding apparatus 100, because it is possible to increase coding efficiency. Accordingly, the encoding apparatus 100 may store the reconstructed picture (or reconstructed samples, reconstructed block) in a memory and use it as a reference picture for inter prediction. As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
도 14 및 도 15는 본 명세서의 실시예에 따른 인터 예측에 기반한 비디오/영상 디코딩 절차 및 디코딩 장치 내 인터 예측부를 도시한다.14 and 15 illustrate a video/video decoding procedure based on inter prediction according to an embodiment of the present specification and an inter prediction unit in a decoding apparatus.
디코딩 장치(200)는 인코딩 장치(100)에서 수행된 동작과 대응되는 동작을 수행할 수 있다. 디코딩 장치(200)는 수신된 예측 정보를 기반으로 현재 블록에 예측을 수행하고 예측 샘플들을 도출할 수 있다. The decoding apparatus 200 may perform an operation corresponding to an operation performed in the encoding apparatus 100. The decoding apparatus 200 may perform prediction on the current block and derive prediction samples based on the received prediction information.
구체적으로 디코딩 장치(200)는 수신된 예측 정보를 기반으로 현재 블록에 대한 예측 모드를 결정할 수 있다(S1410). 디코딩 장치(200)는 예측 정보 내의 예측 모드 정보를 기반으로 현재 블록에 어떤 인터 예측 모드가 적용되는지 결정할 수 있다. Specifically, the decoding apparatus 200 may determine a prediction mode for the current block based on the received prediction information (S1410). The decoding apparatus 200 may determine which inter prediction mode is applied to the current block based on the prediction mode information in the prediction information.
예를 들어, 디코딩 장치(200)는 머지 플래그(merge flag)를 기반으로 현재 블록에 머지 모드가 적용되지 또는 (A)MVP 모드가 결정되는지 여부를 결정할 수 있다. 또는 디코딩 장치(200)는 모드 인덱스(mode index)를 기반으로 다양한 인터 예측 모드 후보들 중 하나를 선택할 수 있다. 인터 예측 모드 후보들은 스킵 모드, 머지 모드 및/또는 (A)MVP 모드를 포함할 수 있고, 또는 후술하는 다양한 인터 예측 모드들을 포함할 수 있다. For example, the decoding apparatus 200 may determine whether merge mode is applied to the current block or (A)MVP mode is determined based on a merge flag. Alternatively, the decoding apparatus 200 may select one of various inter prediction mode candidates based on the mode index. The inter prediction mode candidates may include skip mode, merge mode and/or (A)MVP mode, or various inter prediction modes described below.
디코딩 장치(200)는 결정된 인터 예측 모드를 기반으로 현재 블록의 움직임 정보를 도출한다(S1420). 예를 들어, 디코딩 장치(200)는 현재 블록에 스킵 모드 또는 머지 모드가 적용되는 경우, 후술하는 머지 후보 리스트를 구성하고, 머지 후보 리스트에 포함된 머지 후보들이 중 하나의 머지 후보를 선택할 수 있다. 머지 후보의 선택은 머지 인덱스(merge index)를 기반으로 수행될 수 있다. 선택된 머지 후보의 움직임 정보로부터 현재 블록의 움직임 정보가 도출할 수 있다. 선택된 머지 후보의 움직임 정보가 현재 블록의 움직임 정보로 이용될 수 있다. The decoding apparatus 200 derives motion information of the current block based on the determined inter prediction mode (S1420). For example, when the skip mode or the merge mode is applied to the current block, the decoding apparatus 200 may configure a merge candidate list, which will be described later, and select one of the merge candidates included in the merge candidate list. . The selection of the merge candidate may be performed based on a merge index. Motion information of a current block may be derived from motion information of a selected merge candidate. Motion information of the selected merge candidate may be used as motion information of the current block.
다른 예로, 디코딩 장치(200)는, 현재 블록에 (A)MVP 모드가 적용되는 경우, 후술하는 (A)MVP 후보 리스트를 구성하고, (A)MVP 후보 리스트에 포함된 MVP 후보들 중 선택된 MVP 후보의 움직임 벡터를 현재 블록의 MVP로 이용할 수 있다. MVP의 선택은 상술한 선택 정보(MVP 플래그 또는 MVP 인덱스)를 기반으로 수행될 수 있다. 이 경우 디코딩 장치(200)는 MVD에 관한 정보를 기반으로 상기 현재 블록의 MVD를 도출할 수 있으며, 현재 블록의 MVP와 MVD를 기반으로 현재 블록의 움직임 벡터를 도출할 수 있다. 또한, 디코딩 장치(200)는 참조 픽처 인덱스 정보를 기반으로 현재 블록의 참조 픽처 인덱스를 도출할 수 있다. 현재 블록에 관한 참조 픽처 리스트 내에서 참조 픽처 인덱스가 가리키는 픽처가 현재 블록의 인터 예측을 위하여 참조되는 참조 픽처로 도출될 수 있다. As another example, when the (A)MVP mode is applied to the current block, the decoding apparatus 200 configures the (A)MVP candidate list, which will be described later, and (A) the MVP candidate selected from among the MVP candidates included in the MVP candidate list. The motion vector of can be used as the MVP of the current block. The selection of the MVP may be performed based on the selection information (MVP flag or MVP index) described above. In this case, the decoding apparatus 200 may derive the MVD of the current block based on information about the MVD, and may derive a motion vector of the current block based on the MVP and MVD of the current block. Also, the decoding apparatus 200 may derive a reference picture index of the current block based on the reference picture index information. The picture indicated by the reference picture index in the reference picture list for the current block may be derived as a reference picture referenced for inter prediction of the current block.
한편, 후술하는 바와 같이 후보 리스트 구성 없이 상기 현재 블록의 움직임 정보가 도출될 수 있으며, 이 경우 후술하는 예측 모드에서 개시된 절차에 따라 현재 블록의 움직임 정보가 도출될 수 있다. 이 경우 상술한 바와 같은 후보 리스트 구성은 생략될 수 있다.Meanwhile, as described below, motion information of the current block may be derived without configuring a candidate list, and in this case, motion information of the current block may be derived according to a procedure disclosed in a prediction mode, which will be described later. In this case, the candidate list configuration as described above may be omitted.
디코딩 장치(200)는 현재 블록의 움직임 정보를 기반으로 현재 블록에 대한 예측 샘플들을 생성할 수 있다(S1430). 이 경우 디코딩 장치(200)는 현재 블록의 참조 픽처 인덱스를 기반으로 참조 픽처를 도출하고, 현재 블록의 움직임 벡터가 참조 픽처 상에서 가리키는 참조 블록의 샘플들을 이용하여 현재 블록의 예측 샘플들을 도출할 수 있다. 이 경우 후술하는 바와 같이 경우에 따라 현재 블록의 예측 샘플들 중 전부 또는 일부에 대한 예측 샘플 필터링 절차가 더 수행될 수 있다. The decoding apparatus 200 may generate prediction samples for the current block based on the motion information of the current block (S1430). In this case, the decoding apparatus 200 may derive a reference picture based on the reference picture index of the current block, and derive predictive samples of the current block using samples of the reference block indicated by the motion vector of the current block on the reference picture. . In this case, as described later, a prediction sample filtering procedure for all or part of the prediction samples of the current block may be further performed depending on the case.
예를 들어, 디코딩 장치(200)의 인터 예측부(260)는 예측 모드 결정부(261), 움직임 정보 도출부(262), 예측 샘플 도출부(263)를 포함할 수 있으며, 예측 모드 결정부(181)에서 수신된 예측 모드 정보를 기반으로 상기 현재 블록에 대한 예측 모드를 결정하고, 움직임 정보 도출부(182)에서 수신된 움직임 정보에 관한 정보를 기반으로 상기 현재 블록의 움직임 정보(움직임 벡터 및/또는 참조 픽처 인덱스 등)를 도출하고, 예측 샘플 도출부(183)에서 상기 현재 블록의 예측 샘플들을 도출할 수 있다.For example, the inter prediction unit 260 of the decoding apparatus 200 may include a prediction mode determination unit 261, a motion information derivation unit 262, and a prediction sample derivation unit 263, and the prediction mode determination unit The prediction mode for the current block is determined based on the prediction mode information received at 181, and the motion information (motion vector) of the current block based on the information on the motion information received from the motion information deriving unit 182. And/or a reference picture index), and predicted samples of the current block may be derived from the predicted sample deriving unit 183.
디코딩 장치(200)는 수신된 레지듀얼 정보를 기반으로 상기 현재 블록에 대한 레지듀얼 샘플들을 생성한다(S1440). 디코딩 장치(200)는 예측 샘플들 및 레지듀얼 샘플들을 기반으로 현재 블록에 대한 복원 샘플들을 생성하고, 이를 기반으로 복원 픽처를 생성할 수 있다. (S1450). 이후 상기 복원 픽처에 인루프 필터링 절차 등이 더 적용될 수 있음은 상술한 바와 같다. The decoding apparatus 200 generates residual samples for the current block based on the received residual information (S1440). The decoding apparatus 200 may generate reconstructed samples for the current block based on the predicted samples and residual samples, and generate a reconstructed picture based on the reconstructed samples. (S1450). As described above, an in-loop filtering procedure may be further applied to the reconstructed picture.
상술한 바와 같이 인터 예측 절차는 인터 예측 모드 결정 단계, 결정된 예측 모드에 따른 움직임 정보 도출 단계, 도출된 움직임 정보에 기반한 예측 수행(예측 샘플 생성) 단계를 포함할 수 있다.As described above, the inter prediction procedure may include a step of determining an inter prediction mode, a step of deriving motion information according to the determined prediction mode, and performing a prediction (generating a predictive sample) based on the derived motion information.
픽처 내 현재 블록의 예측을 위하여 다양한 인터 예측 모드가 사용될 수 있다. 예를 들어, 머지 모드, 스킵 모드, MVP 모드, 어파인(Affine) 모드 등 다양한 모드가 사용될 수 있다. DMVR(decoder side motion vector refinement) 모드, AMVR(adaptive motion vector resolution) 모드 등이 부수적인 모드로 더 사용될 수 있다. 어파인 모드는 어파인 움직임 예측(affine motion prediction) 모드라고 불릴 수도 있다. MVP 모드는 AMVP(advanced motion vector prediction) 모드라고 불릴 수도 있다. Various inter prediction modes may be used for prediction of a current block in a picture. For example, various modes such as a merge mode, a skip mode, an MVP mode, and an affine mode may be used. Decoder side motion vector refinement (DMVR) mode, adaptive motion vector resolution (AMVR) mode, and the like may be further used as ancillary modes. The affine mode may also be called aaffine motion prediction mode. The MVP mode may also be called AMVP (advanced motion vector prediction) mode.
현재 블록의 인터 예측 모드를 가리키는 예측 모드 정보가 인코딩 장치로부터 디코딩 장치(200)로 시그널링될 수 있다. 예측 모드 정보는 비트스트림에 포함되어 디코딩 장치(200)에서 수신될 수 있다. 예측 모드 정보는 다수의 후보 모드들 중 하나를 지시하는 인덱스 정보를 포함할 수 있다. 또는, 플래그 정보의 계층적 시그널링을 통하여 인터 예측 모드를 지시할 수도 있다. 이 경우 예측 모드 정보는 하나 이상의 플래그들을 포함할 수 있다. 예를 들어, 인코딩 장치(100)는 스킵 플래그를 시그널링하여 스킵 모드 적용 여부를 지시하고, 스킵 모드가 적용 안되는 경우에 머지 플래그를 시그널링하여 머지 모드 적용 여부를 지시하고, 머지 모드가 적용 안되는 경우에 MVP 모드 적용되는 것으로 지시하거나 추가적인 구분을 위한 플래그를 더 시그널링할 수도 있다. 어파인 모드는 독립적인 모드로 시그널링될 수도 있고, 또는 머지 모드 또는 MVP 모드 등에 종속적인 모드로 시그널링될 수도 있다. 예를 들어, 어파인 모드는 후술하는 바와 같이 머지 후보 리스트 또는 MVP 후보 리스트의 하나의 후보로 구성될 수도 있다.Prediction mode information indicating the inter prediction mode of the current block may be signaled from the encoding device to the decoding device 200. The prediction mode information may be included in the bitstream and received by the decoding apparatus 200. The prediction mode information may include index information indicating one of a plurality of candidate modes. Alternatively, the inter prediction mode may be indicated through hierarchical signaling of flag information. In this case, the prediction mode information may include one or more flags. For example, the encoding apparatus 100 signals whether a skip mode is applied by signaling a skip flag, and indicates whether a merge mode is applied by signaling a merge flag when a skip mode is not applied, and when a merge mode is not applied. It may be indicated that the MVP mode is applied or may further signal a flag for additional classification. The affine mode may be signaled as an independent mode, or may be signaled as a mode dependent on a merge mode or an MVP mode. For example, the affine mode may be configured as one candidate of the merge candidate list or the MVP candidate list, as described later.
인코딩 장치(100) 또는 디코딩 장치(200)는 현재 블록의 움직임 정보를 이용하여 인터 예측을 수행할 수 있다. 인코딩 장치(100)는 움직임 추정(motion estimation) 절차를 통하여 현재 블록에 대한 최적의 움직임 정보를 도출할 수 있다. 예를 들어, 인코딩 장치(100)는 현재 블록에 대한 원본 픽처 내 원본 블록을 이용하여 상관성이 높은 유사한 참조 블록을 참조 픽처 내의 정해진 탐색 범위 내에서 분수 픽셀 단위로 탐색할 수 있고, 이를 통하여 움직임 정보를 도출할 수 있다. 블록의 유사성은 위상(phase) 기반 샘플 값들의 차를 기반으로 도출될 수 있다. 예를 들어, 블록의 유사성은 현재 블록(또는 현재 블록의 템플릿)과 참조 블록(또는 참조 블록의 템플릿) 간 SAD(sum of absolute difference)를 기반으로 계산될 수 있다. 이 경우 탐색 영역 내 SAD가 가장 작은 참조 블록을 기반으로 움직임 정보를 도출할 수 있다. 도출된 움직임 정보는 인터 예측 모드 기반으로 여러 방법에 따라 디코딩 장치로 시그널링될 수 있다.The encoding apparatus 100 or the decoding apparatus 200 may perform inter prediction using motion information of a current block. The encoding apparatus 100 may derive optimal motion information for the current block through a motion estimation procedure. For example, the encoding apparatus 100 may search for a similar reference block having high correlation within a predetermined search range in a reference picture by using a original block in the original picture for the current block in a fractional pixel unit, and through this, motion information Can be derived. The similarity of the block can be derived based on the difference of phase-based sample values. For example, the similarity of a block may be calculated based on a sum of absolute difference (SAD) between a current block (or a template of the current block) and a reference block (or a template of a reference block). In this case, motion information may be derived based on a reference block having the smallest SAD in the search area. The derived motion information may be signaled to the decoding apparatus according to various methods based on the inter prediction mode.
머지 모드(merge mode)가 적용되는 경우, 현재 예측 블록의 움직임 정보가 직접적으로 전송되지 않고, 주변 예측 블록의 움직임 정보를 이용하여 현재 예측 블록의 움직임 정보를 유도하게 된다. 따라서, 인코딩 장치(100)는 머지 모드를 이용하였음을 알려주는 플래그 정보 및 주변의 어떤 예측 블록을 이용하였는지를 알려주는 머지 인덱스를 전송함으로써 현재 예측 블록의 움직임 정보를 지시할 수 있다.When the merge mode is applied, motion information of a current prediction block is not directly transmitted, and motion information of a current prediction block is derived using motion information of a neighboring prediction block. Accordingly, the encoding apparatus 100 may indicate motion information of the current prediction block by transmitting flag information indicating that the merge mode is used and a merge index indicating which prediction blocks are used.
인코딩 장치(100)는 머지 모드를 수행하기 위해서 현재 예측 블록의 움직임 정보를 유도하기 위해 이용되는 머지 후보 블록(merge candidate block)을 서치하여야 한다. 예를 들어, 머지 후보 블록은 최대 5개까지 이용될 수 있으나, 본 명세서는 이에 한정되지 않는다. 그리고, 머지 후보 블록의 최대 개수는 슬라이스 헤더에서 전송될 수 있으며, 본 명세서는 이에 한정되지 않는다. 머지 후보 블록들을 찾은 후, 인코딩 장치(100)는 머지 후보 리스트를 생성할 수 있고, 이들 중 가장 작은 비용을 갖는 머지 후보 블록을 최종 머지 후보 블록으로 선택할 수 있다.The encoding apparatus 100 must search a merge candidate block used to derive motion information of a current prediction block in order to perform a merge mode. For example, up to five merge candidate blocks may be used, but the present specification is not limited thereto. In addition, the maximum number of merge candidate blocks may be transmitted in the slice header, and the present specification is not limited thereto. After finding the merge candidate blocks, the encoding apparatus 100 may generate a merge candidate list, and may select a merge candidate block having the smallest cost as a final merge candidate block.
본 명세서는 머지 후보 리스트를 구성하는 머지 후보 블록에 대한 다양한 실시예를 제공한다.This specification provides various embodiments of a merge candidate block constituting a merge candidate list.
머지 후보 리스트는 예를 들어 5개의 머지 후보 블록을 이용할 수 있다. 예를 들어, 4개의 공간적 머지 후보(spatial merge candidate)와 1개의 시간적 머지 후보(temporal merge candidate)를 이용할 수 있다. The merge candidate list may use 5 merge candidate blocks, for example. For example, four spatial merge candidates and one temporal merge candidate can be used.
도 16은 본 명세서의 실시예에 따른 현재 블록에 대한 공간적 머지 후보 구성의 예를 도시한다.16 shows an example of a spatial merge candidate configuration for a current block according to an embodiment of the present specification.
도 16을 참조하면, 현재 블록의 예측을 위하여 좌측 이웃 블록(A1), 좌하측(bottom-left) 이웃 블록(A2), 우상측(top-right) 이웃 블록(B0), 상측 이웃 블록(B1), 좌상측(top-left) 이웃 블록(B2) 중 적어도 하나가 사용될 수 있다. 현재 블록에 대한 머지 후보 리스트는 도 17과 같은 절차를 기반으로 구성될 수 있다.Referring to FIG. 16, for prediction of a current block, a left neighboring block (A1), a bottom-left neighboring block (A2), a top-right neighboring block (B0), and an upper neighboring block (B1) ), at least one of a top-left neighboring block B2 may be used. The merge candidate list for the current block may be configured based on the procedure shown in FIG. 17.
도 17는 본 명세서의 실시예에 따른 머지 후보 리스트 구성을 위한 흐름도의 예를 도시한다.17 shows an example of a flowchart for configuring a merge candidate list according to an embodiment of the present specification.
코딩 장치(인코딩 장치(100) 또는 디코딩 장치(200))는 현재 블록의 공간적 주변 블록들을 탐색하여 도출된 공간적 머지 후보들을 머지 후보 리스트에 삽입한다(S1710). 예를 들어, 공간적 주변 블록들은 현재 블록의 좌하측 코너 주변 블록, 좌측 주변 블록, 우상측 코너 주변 블록, 상측 주변 블록, 좌상측 코너 주변 블록들을 포함할 수 있다. 다만, 이는 예시로서 상술한 공간적 주변 블록들 이외에도 우측 주변 블록, 하측 주변 블록, 우하측 주변 블록 등 추가적인 주변 블록들이 더 상기 공간적 주변 블록들로 사용될 수 있다. 코딩 장치는 공간적 주변 블록들을 우선순위를 기반으로 탐색하여 가용한 블록들을 검출하고, 검출된 블록들의 움직임 정보를 공간적 머지 후보들로 도출할 수 있다. 예를 들어, 인코딩 장치(100) 또는 디코딩 장치(200)는 도 11에 도시된 5개의 블록들을 A1, B1, B0, A0, B2의 순서대로 탐색하여, 가용한 후보들을 순차적으로 인덱싱하여 머지 후보 리스트로 구성할 수 있다. The coding apparatus (encoding apparatus 100 or decoding apparatus 200) searches for spatial neighboring blocks of the current block and inserts the derived spatial merge candidates into the merge candidate list (S1710). For example, the spatial peripheral blocks may include blocks around the lower left corner of the current block, blocks around the left corner, blocks around the upper right corner, blocks around the upper corner, and blocks around the upper left corner. However, as an example, in addition to the spatial peripheral blocks described above, additional peripheral blocks such as a right peripheral block, a lower peripheral block, and a lower right peripheral block may be further used as the spatial peripheral blocks. The coding apparatus may detect available blocks by searching for spatial neighboring blocks based on priority, and derive motion information of the detected blocks as spatial merge candidates. For example, the encoding apparatus 100 or the decoding apparatus 200 searches the five blocks shown in FIG. 11 in the order of A1, B1, B0, A0, B2, sequentially indexes available candidates, and merges candidates It can be configured as a list.
코딩 장치는 현재 블록의 시간적 주변 블록을 탐색하여 도출된 시간적 머지 후보를 상기 머지 후보 리스트에 삽입한다(S1720). 시간적 주변 블록은 현재 블록이 위치하는 현재 픽처와 다른 픽처인 참조 픽처 상에 위치할 수 있다. 시간적 주변 블록이 위치하는 참조 픽처는 동일 위치 픽처(collocated picture) 또는 콜 픽처(col picture)라고 불릴 수 있다. 시간적 주변 블록은 콜 픽처 상에서의 현재 블록에 대한 동일 위치 블록(co-located block)의 우하측 코너 주변 블록 및 우하측 센터 블록의 순서로 탐색될 수 있다. 한편, 움직임 데이터 압축(motion data compression)이 적용되는 경우, 콜 픽처에 일정 저장 단위마다 특정 움직임 정보를 대표 움직임 정보로 저장할 수 있다. 이 경우 상기 일정 저장 단위 내의 모든 블록에 대한 움직임 정보를 저장할 필요가 없으며 이를 통하여 움직임 데이터 압축 효과를 얻을 수 있다. 이 경우, 일정 저장 단위는 예를 들어 16x16 샘플 단위, 또는 8x8 샘플 단위 등으로 미리 정해질 수도 있고, 또는 인코딩 장치(100)로부터 디코딩 장치(200)로 일정 저장 단위에 대한 사이즈 정보가 시그널링될 수도 있다. 움직임 데이터 압축이 적용되는 경우 시간적 주변 블록의 움직임 정보는 시간적 주변 블록이 위치하는 일정 저장 단위의 대표 움직임 정보로 대체될 수 있다. 즉, 이 경우 구현 측면에서 보면, 시간적 주변 블록의 좌표에 위치하는 예측 블록이 아닌, 시간적 주변 블록의 좌표(좌상단 샘플 포지션)를 기반으로 일정 값만큼 산술적 우측 시프트 후 산술적 좌측 시프트 한 위치를 커버하는 예측 블록의 움직임 정보를 기반으로 시간적 머지 후보가 도출될 수 있다. 예를 들어, 일정 저장 단위가 2nx2n 샘플 단위인 경우, 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb >> n) << n), (yTnb >> n) << n))에 위치하는 예측 블록의 움직임 정보가 시간적 머지 후보를 위하여 사용될 수 있다. 구체적으로 예를 들어, 일정 저장 단위가 16x16 샘플 단위인 경우, 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb >> 4) << 4), (yTnb >> 4) << 4))에 위치하는 예측 블록의 움직임 정보가 시간적 머지 후보를 위하여 사용될 수 있다. 또는 예를 들어, 일정 저장 단위가 8x8 샘플 단위인 경우, 시간적 주변 블록의 좌표가 (xTnb, yTnb)라 하면, 수정된 위치인 ((xTnb >> 3) << 3), (yTnb >> 3) << 3))에 위치하는 예측 블록의 움직임 정보가 시간적 머지 후보를 위하여 사용될 수 있다.The coding apparatus searches for temporal neighboring blocks of the current block and inserts the derived temporal merge candidate into the merge candidate list (S1720). The temporal peripheral block may be located on a reference picture that is a different picture from the current picture in which the current block is located. The reference picture in which the temporal neighboring block is located may be referred to as a collocated picture or a coll picture. The temporal neighboring blocks may be searched in the order of the lower right corner peripheral block and the lower right center block of the co-located block for the current block on the call picture. Meanwhile, when motion data compression is applied, specific motion information may be stored as a representative motion information for each predetermined storage unit in a call picture. In this case, there is no need to store motion information for all blocks in the predetermined storage unit, thereby obtaining a motion data compression effect. In this case, the predetermined storage unit may be predetermined in units of, for example, 16x16 sample units, or 8x8 sample units, or size information for a predetermined storage unit may be signaled from the encoding device 100 to the decoding device 200. have. When motion data compression is applied, motion information of a temporal peripheral block may be replaced with representative motion information of a predetermined storage unit in which the temporal peripheral block is located. That is, in this case, from an implementation point of view, an arithmetic right shift by a certain value based on the coordinates (top left sample position) of the temporal neighboring block, rather than the prediction block located in the coordinates of the temporal neighboring block, and then covers the position of the arithmetic left shift A temporal merge candidate may be derived based on motion information of a prediction block. For example, if the constant storage unit is 2nx2n sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> n) << n), (yTnb >> n) Motion information of the prediction block located at << n)) may be used for temporal merge candidates. Specifically, for example, if the constant storage unit is 16x16 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 4) << 4), (yTnb >> 4) Motion information of the prediction block located at << 4)) can be used for temporal merge candidates. Or, for example, if the constant storage unit is 8x8 sample units, and the coordinates of the temporal peripheral block are (xTnb, yTnb), the corrected position ((xTnb >> 3) << 3), (yTnb >> 3 ) << 3)) motion information of the prediction block located at may be used for temporal merge candidate.
코딩 장치는 현재 머지 후보들의 개수가 최대 머지 후보들의 개수보다 작은지 여부를 확인할 수 있다(S1730). 최대 머지 후보들의 개수는 미리 정의되거나 인코딩 장치(100)에서 디코딩 장치(200)로 시그널링될 수 있다. 예를 들어, 인코딩 장치(100)는 최대 머지 후보들의 개수에 관한 정보를 생성하고, 인코딩하여 비트스트림 형태로 디코딩 장치(200)로 전달할 수 있다. 최대 머지 후보들의 개수가 다 채워지면 이후의 후보 추가 과정은 진행하지 않을 수 있다. The coding apparatus may check whether the number of current merge candidates is smaller than the maximum number of merge candidates (S1730). The maximum number of merge candidates may be predefined or signaled from the encoding device 100 to the decoding device 200. For example, the encoding apparatus 100 may generate information on the number of maximum merge candidates, encode, and transmit the encoded information to the decoding apparatus 200 in the form of a bitstream. When the maximum number of merge candidates is filled, the subsequent candidate addition process may not proceed.
확인 결과 현재 머지 후보들의 개수가 상기 최대 머지 후보들의 개수보다 작은 경우, 코딩 장치는 추가 머지 후보를 머지 후보 리스트에 삽입한다(S1740). 추가 머지 후보는 예를 들어 ATMVP(adaptive temporal motion vector prediction), 결합된 양방향 예측(combined bi-predictive) 머지 후보(현재 슬라이스의 슬라이스 타입이 B 타입인 경우) 및/또는 영 벡터(zero vector) 머지 후보를 포함할 수 있다. As a result of checking, if the number of current merge candidates is smaller than the number of maximum merge candidates, the coding apparatus inserts an additional merge candidate into the merge candidate list (S1740). Additional merge candidates are, for example, adaptive temporal motion vector prediction (ATMVP), combined bi-predictive merge candidates (if the slice type of the current slice is of type B) and/or zero vector merge. Candidates may be included.
도 18은 예측 후보 리스트(MVP 후보 리스트)를 구성하기 위한 흐름도의 예를 도시한다. 18 shows an example of a flowchart for constructing a prediction candidate list (MVP candidate list).
MVP(motion vector prediction) 모드가 적용되는 경우, 복원된 공간적 주변 블록(예를 들어, 도 16의 주변 블록)의 움직임 벡터 및/또는 시간적 주변 블록(또는 Col 블록)에 대응하는 움직임 벡터를 이용하여, 움직임 벡터 예측자(motion vector predictor, MVP) 후보 리스트가 생성될 수 있다. 즉, 복원된 공간적 주변 블록의 움직임 벡터 및/또는 시간적 주변 블록에 대응하는 움직임 벡터는 움직임 벡터 예측자 후보로 사용될 수 있다. 상기 예측에 관한 정보는 상기 리스트에 포함된 움직임 벡터 예측자 후보들 중에서 선택된 최적의 움직임 벡터 예측자 후보를 지시하는 선택 정보(예: MVP 플래그 또는 MVP 인덱스)를 포함할 수 있다. 이 때, 예측부는 상기 선택 정보를 이용하여, 움직임 벡터 후보 리스트에 포함된 움직임 벡터 예측자 후보들 중에서, 현재 블록의 움직임 벡터 예측자를 선택할 수 있다. 인코딩 장치(100)의 예측부는 현재 블록의 움직임 벡터와 움직임 벡터 예측자 간의 움직임 벡터 차분(MVD)을 구할 수 있고, 이를 인코딩하여 비트스트림 형태로 출력할 수 있다. 즉, MVD는 현재 블록의 움직임 벡터에서 상기 움직임 벡터 예측자를 뺀 값으로 구해질 수 있다. 이 때, 디코딩 장치의 예측부는 상기 예측에 관한 정보에 포함된 움직임 벡터 차분을 획득하고, 상기 움직임 벡터 차분과 상기 움직임 벡터 예측자의 가산을 통해 현재 블록의 상기 움직임 벡터를 도출할 수 있다. 디코딩 장치의 예측부는 참조 픽처를 지시하는 참조 픽처 인덱스 등을 상기 예측에 관한 정보로부터 획득 또는 유도할 수 있다. 예를 들어, 움직임 벡터 예측자 후보 리스트는 도 18과 같이 구성될 수 있다.When a motion vector prediction (MVP) mode is applied, a motion vector corresponding to a reconstructed spatial neighboring block (eg, the neighboring block of FIG. 16) and/or a motion vector corresponding to a temporal neighboring block (or Col block) is used. , A motion vector predictor (MVP) candidate list may be generated. That is, the motion vector of the reconstructed spatial neighboring block and/or the motion vector corresponding to the temporal neighboring block may be used as a motion vector predictor candidate. The prediction information may include selection information (eg, an MVP flag or an MVP index) indicating an optimal motion vector predictor candidate selected from among motion vector predictor candidates included in the list. At this time, the prediction unit may select a motion vector predictor of the current block from among motion vector predictor candidates included in the motion vector candidate list, using the selection information. The prediction unit of the encoding apparatus 100 may obtain a motion vector difference (MVD) between a motion vector of a current block and a motion vector predictor, encode it, and output it in the form of a bitstream. That is, the MVD can be obtained by subtracting the motion vector predictor from the motion vector of the current block. At this time, the prediction unit of the decoding apparatus may obtain a motion vector difference included in the information about the prediction, and derive the motion vector of the current block through addition of the motion vector difference and the motion vector predictor. The prediction unit of the decoding apparatus may obtain or derive a reference picture index indicating the reference picture from the information on the prediction. For example, the motion vector predictor candidate list may be configured as shown in FIG. 18.
도 18을 참조하면, 코딩 장치는 움직임 벡터 예측을 위한 공간적 후보 블록을 탐색하여 예측 후보 리스트에 삽입한다(S1810). 예를 들어, 코딩 장치는 정해진 탐색 순서에 따라 주변 블록들에 대한 탐색을 수행하고, 공간적 후보 블록에 대한 조건을 만족하는 주변 블록의 정보를 예측 후보 리스트(MVP 후보 리스트)에 추가할 수 있다.Referring to FIG. 18, the coding apparatus searches for a spatial candidate block for motion vector prediction and inserts it into the prediction candidate list (S1810). For example, the coding apparatus may search for neighboring blocks according to a predetermined search order, and add information of neighboring blocks satisfying the condition for the spatial candidate block to the prediction candidate list (MVP candidate list).
공간적 후보 블록 리스트를 구성한 후, 코딩 장치는 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수와 기 설정된 기준 개수(예: 2)를 비교한다(S1820). 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수가 기준 개수(예: 2)보다 크거나 같은 경우, 코딩 장치는 예측 후보 리스트의 구성을 종료할 수 있다. After constructing the spatial candidate block list, the coding apparatus compares the number of spatial candidate lists included in the prediction candidate list with a preset reference number (eg, 2) (S1820). If the number of spatial candidate lists included in the prediction candidate list is greater than or equal to the reference number (eg, 2), the coding apparatus may end the construction of the prediction candidate list.
그러나, 예측 후보 리스트에 포함된 공간적 후보 리스트의 개수가 기준 개수(예: 2)보다 작은 경우, 코딩 장치는 시간적 후보 블록을 탐색하여 예측 후보 리스트에 추가 삽입하고(S1830), 시간적 후보 블록이 사용 불가능한 경우, 제로 움직임 벡터를 예측 후보 리스트에 추가한다(S1840).However, when the number of spatial candidate lists included in the prediction candidate list is smaller than the reference number (eg, 2), the coding device searches for the temporal candidate block and inserts it into the prediction candidate list (S1830), and the temporal candidate block is used If it is not possible, the zero motion vector is added to the prediction candidate list (S1840).
예측 모드에 따라 도출된 움직임 정보를 기반으로 현재 블록에 대한 예측된 블록이 도출될 수 있다. 예측된 블록은 현재 블록의 예측 샘플들(예측 샘플 어레이)을 포함할 수 있다. 현재 블록의 움직임 벡터가 분수 샘플 단위를 가리키는 경우, 보간(interpolation) 절차가 수행될 수 있으며, 이를 통하여 참조 픽처 내에서 분수 샘플 단위의 참조 샘플들을 기반으로 상기 현재 블록의 예측 샘플들이 도출될 수 있다. 현재 블록에 어파인(affine) 인터 예측이 적용되는 경우, 샘플/서브블록 단위 움직임 벡터(motion vector)에 기반하여 예측 샘플들이 생성될 수 있다. 양방향(bi-direction) 예측이 적용되는 경우, 제1 방향 예측(예: L0 예측)을 기반으로 도출된 예측 샘플들과 제2 방향 예측(예: L1 예측)을 기반으로 도출된 예측 샘플들의 (위상에 따른) 가중합을 통하여 최종 예측 샘플들이 도출될 수 있다. 도출된 예측 샘플들을 기반으로 복원 샘플들 및 복원 픽처가 생성될 수 있고, 이후 인루프 필터링 등의 절차가 수행될 수 있음은 전술한 바와 같다.The predicted block for the current block may be derived based on the motion information derived according to the prediction mode. The predicted block may include predictive samples (predictive sample array) of the current block. When the motion vector of the current block indicates a fractional sample unit, an interpolation procedure may be performed, and through this, predictive samples of the current block may be derived based on reference samples in a fractional sample unit in a reference picture. . When affine inter prediction is applied to the current block, prediction samples may be generated based on a motion vector per sample/subblock. When bi-direction prediction is applied, prediction samples derived based on first direction prediction (eg, L0 prediction) and prediction samples derived based on second direction prediction (eg, L1 prediction) ( The final prediction samples can be derived through weighted sum (per phase). As described above, reconstruction samples and reconstruction pictures may be generated based on the derived prediction samples, and then procedures such as in-loop filtering may be performed.
이하, 본 명세서의 실시예에 따른 MMVD 기법이 적용된 머지 모드를 사용하여 인터 예측을 수행하기 위한 실시예를 설명하도록 한다.Hereinafter, an embodiment for performing inter prediction using a merge mode to which an MMVD technique according to an embodiment of the present disclosure is applied will be described.
아래 설명되는 실시예들은 디코딩 단에서 수행될 수 있으며, 디코딩 단 동작에 대응되는 범위 내에서 인코딩 단에서 수행될 수도 있다. 예를 들어, 인코딩 장치는 디코딩 장치로 시그널링되는 정보를 먼저 도출하고, 해당 정보를 인코딩하여 디코딩 장치로 전달할 수 있다.The embodiments described below may be performed at the decoding stage, or may be performed at the encoding stage within a range corresponding to the decoding stage operation. For example, the encoding device may first derive information signaled to the decoding device, encode the information, and transmit the encoded information to the decoding device.
인코딩 장치는 움직임 관련 정보를 다음 표와 같이 구성하고 각 신텍스 요소 단위로 인코딩하여 비트스트림 형태로 디코딩 장치로 전달할 수 있다.The encoding device may configure motion-related information as shown in the following table, and encode each unit of syntax elements, and transmit it to the decoding device in the form of a bitstream.
머지(merge) 모드 또는 스킵(skip) 모드에서 움직임 벡터의 정확도를 향상시키기 위하여 MVP와 같은 개선(refinement) 기술이 적용될 수 있다. MMVD(merge with MVD) 기술은 머지 후보 리스트 구성 방법으로 구성된 후보 중 선택된 후보에 대하여 움직임 벡터의 크기 및 방향을 조절함으로써 정확도를 높일 수 있다.In order to improve the accuracy of a motion vector in a merge mode or a skip mode, a refinement technique such as MVP may be applied. The merge with MVD (MMVD) technique can improve accuracy by adjusting the size and direction of a motion vector with respect to a selected candidate among candidates configured with a merge candidate list construction method.
코딩 장치는 머지 후보 리스트 중 특정 후보를 베이스 후보(base candidate)로 결정할 수 있다. 사용가능한 베이스 후보의 개수가 2개일 때 리스트의 첫번째 후보와 두번째 후보가 베이스 후보로서 사용될 수 있다. 인코딩 장치(100)는 베이스 후보 인덱스(base candidate index)를 시그널링 함으로써 선택된 베이스 후보에 대한 정보를 전송할 수 있다. 베이스 후보의 개수는 다양하게 설정될 수 있으며, 베이스 후보의 개수가 1이면 베이스 후보 인덱스는 사용되지 않을 수 있다. 아래의 표 3은 베이스 후보 인덱스의 예를 나타낸다.The coding apparatus may determine a specific candidate from the merge candidate list as a base candidate. When the number of available base candidates is two, the first candidate and the second candidate in the list can be used as base candidates. The encoding apparatus 100 may transmit information on the selected base candidate by signaling a base candidate index. The number of base candidates may be variously set, and if the number of base candidates is 1, the base candidate index may not be used. Table 3 below shows an example of the base candidate index.
Figure PCTKR2020000067-appb-img-000003
Figure PCTKR2020000067-appb-img-000003
표 3을 참조하면, 베이스 후보 인덱스가 0이면 현재 구성된 머지 후보 리스트(또는 MVP 후보 리스트)에서 첫번째 후보에 해당하는 움직임 벡터가 베이스 후보로서 결정되고, 베이스 후보 인덱스가 1이면 현재 구성된 머지 후보 리스트(또는 MVP 후보 리스트)에서 두번째 후보에 해당하는 움직임 벡터가 베이스 후보로서 결정될 수 있다.Referring to Table 3, if the base candidate index is 0, the motion vector corresponding to the first candidate is determined as the base candidate in the currently configured merge candidate list (or MVP candidate list), and if the base candidate index is 1, the currently configured merge candidate list ( Alternatively, a motion vector corresponding to the second candidate in the MVP candidate list) may be determined as a base candidate.
인코딩 장치(100)는 베이스 후보에 해당하는 움직임 벡터에 적용되는 크기(MMVD 길이)와 방향(MMVD 부호)을 시그널링함으로써 개선(refinement)할 수 있는데, 이때 길이 인덱스(MMVD 길이 인덱스)는 움직임 벡터에 적용되는 MVD의 크기를 지시하고, 방향 인덱스(MMVD 부호 인덱스)는 움직임 벡터에 적용되는 MVD의 방향을 나타낸다. 아래의 표 4는 길이 인덱스(MMVD 길이 인덱스)에 따른 MVD의 크기(MMVD 오프셋)를 나타내고, 표 5는 방향 인덱스(MMVD 부호 인덱스)에 따른 MVD의 방향을 나타낸다.The encoding apparatus 100 may be refined by signaling a size (MMVD length) and a direction (MMVD code) applied to a motion vector corresponding to a base candidate, where the length index (MMVD length index) is applied to the motion vector. The size of the applied MVD is indicated, and the direction index (MMVD code index) indicates the direction of the MVD applied to the motion vector. Table 4 below shows the size of the MVD (MMVD offset) according to the length index (MMVD length index), and Table 5 shows the direction of the MVD according to the direction index (MMVD code index).
Figure PCTKR2020000067-appb-img-000004
Figure PCTKR2020000067-appb-img-000004
Figure PCTKR2020000067-appb-img-000005
Figure PCTKR2020000067-appb-img-000005
도 19는 본 명세서의 실시예에 따른 MMVD 탐색 프로세스의 예를 도시한다.19 shows an example of an MMVD discovery process according to an embodiment of the present specification.
베이스 후보, 거리 인덱스, 방향 인덱스를 고려할 때 MMVD에서의 움직임 탐색 방법은 도 19와 같이 표현될 수 있다. 특히, 양방향 예측의 경우 L0 움직임 벡터에 미러링 기법(mirroring scheme)을 사용하여 L1 방향의 움직임 벡터가 유도될 수 있다.When considering a base candidate, a distance index, and a direction index, a motion search method in MMVD may be expressed as shown in FIG. 19. In particular, in the case of bidirectional prediction, a motion vector in the L1 direction may be derived using a mirroring scheme for the L0 motion vector.
도 19를 참조하면, L0 참조 픽처에 대한 움직임 벡터에 대하여 +s, +2s와 같은 MMVD 오프셋이 적용되는 경우, 현재 픽처를 기준으로 L0 참조 픽처로부터 시간적으로 반대 방향에 위치한 L1 참조 픽처에 대하여 미러링이 적용될 수 있다.Referring to FIG. 19, when an MMVD offset such as +s and +2s is applied to a motion vector for an L0 reference picture, mirroring is performed for an L1 reference picture temporally opposite from the L0 reference picture based on the current picture. This can be applied.
MMVD에서 사용되는 시그널링 방법에 의하여, 2개의 베이스 후보, 8개의 MMVD 길이 인덱스, 4개의 MMVD 부호 인덱스를 고려할 때, 움직임 벡터의 개선을 위한 MVD 후보는 총 64개이다. 이는 인코더 복잡도를 증가시킬 뿐만 아니라 효율적으로 움직임 벡터의 크기와 방향이 고려되었다고 보기 어려우므로, 본 명세서의 실시예는 효율적으로 MMVD 기법을 적용하기 위한 방법 및 장치를 제공한다.According to the signaling method used in MMVD, when considering two base candidates, eight MMVD length indexes, and four MMVD code indexes, there are a total of 64 MVD candidates for motion vector improvement. This not only increases the encoder complexity, but it is difficult to efficiently consider the size and direction of the motion vector, so the embodiments of the present specification provide a method and apparatus for efficiently applying the MMVD technique.
AMVP 모드에서 MVD를 효과적으로 시그널링하기 위하여 AMVR(adaptive motion vector resolution) 기술이 적용되었다. 움직임 벡터의 크기가 큰 경우 움직임 벡터의 시그널링을 위하여 많은 비트가 요구되므로, 전송을 위해 필요한 비트를 감소시키기 위하여 1-정수 화소(1-integer pixel) 또는 4-정수 화소(4-integer pixel)를 갖는 MVD를 1/4 또는 1/16로 다운스케일링(down-scaling)하는 동작이 수행될 수 있다. AMVR 인덱스(imv_idx)가 0이면 인코딩 장치(100)는 AMVR의 적용 없이 MVD를 시그널링하며, imv_idx가 1이면 1-정수 화소의 MVD가 1/4만큼 스케일링되어 시그널링 되며, imv_idex가 2이면 4-정수 화소의 MVD가 1/16만큼 스케일링되어 시그널링될 수 있다.In order to effectively signal MVD in AMVP mode, adaptive motion vector resolution (AMVR) technology has been applied. When the size of the motion vector is large, many bits are required for signaling of the motion vector, so to reduce the bits required for transmission, a 1-integer pixel or a 4-integer pixel is used. An operation of down-scaling the MVD having 1/4 or 1/16 may be performed. If the AMVR index (imv_idx) is 0, the encoding device 100 signals MVD without applying AMVR, and if imv_idx is 1, the MVD of 1-integer pixels is scaled by 1/4 and signaled, and if imv_idex is 2, 4-integer The MVD of the pixel may be signaled by being scaled by 1/16.
AMVR 기술은 영상 또는 블록별 움직임의 특징, 특히 움직임의 크기의 경향을 반영하는 지표가 되므로, 본 명세서의 실시예는 imv_idx 값을 사용하여 MMVD에서 거리 테이블을 적응적으로 선택할 수 있도록 함으로써 거리 테이블의 인덱스 오버헤드를 감소시키고 압축 성능을 향상시킬 수 있는 방법을 제안한다.Since AMVR technology is an index reflecting the characteristics of motion of each image or block, especially the size of motion, the embodiment of the present specification enables the adaptation of the distance table in MMVD by using the imv_idx value. We propose a method that can reduce index overhead and improve compression performance.
Figure PCTKR2020000067-appb-img-000006
Figure PCTKR2020000067-appb-img-000006
표 6은 본 실시예에 따른 MMVD 길이 인덱스에 대한 MMVD 오프셋 값의 테이블을 나타낸다. 표 6에 따르면, imv_idx에 따라 MMVD 길이 인덱스별로 다른 MMVD 오프셋이 할당된다. 즉, Case 1은 imv_idx가 0인 경우로서, 베이스 움직임 벡터가 1/4-pel 내지 2-pel의 거리만큼 조절될 수 있다. 또한, Case 2는 imv_idx가 1인 경우로서, 베이스 움직임 벡터가 1/2-pel 내지 4-pel의 거리만큼 조절될 수 있다. 마지막으로, Case 3은 imv_idx가 2인 경우로서 베이스 움직임 벡터가 1-pel 내지 8-pel의 거리만큼 조절될 수 있다. 본 명세서에서 설명되는 거리 테이블 내의 후보 개수와 후보 값은 하나의 예를 나타낼 뿐이며, 다른 개수 또는 다른 값이 사용될 수 있다.Table 6 shows a table of MMVD offset values for the MMVD length index according to this embodiment. According to Table 6, different MMVD offsets are allocated for each MMVD length index according to imv_idx. That is, in case 1, imv_idx is 0, the base motion vector may be adjusted by a distance of 1/4-pel to 2-pel. In addition, in case 2, when imv_idx is 1, the base motion vector may be adjusted by a distance of 1/2-pel to 4-pel. Finally, in case 3, when imv_idx is 2, the base motion vector may be adjusted by a distance of 1-pel to 8-pel. The number of candidates and candidate values in the distance table described in this specification only represent one example, and other numbers or different values may be used.
일 실시예에서, AMVR 인덱스는 머지 인덱스와 관련된 주변 블록의 움직임 벡터에 적용되는 MVD(motion vector difference)의 해상도(resolution)에 기반하여 결정될 수 있다. 예를 들어, AMVR 인덱스는 현재 블록의 머지 또는 MVP 후보 리스트 생성 과정에서 사용되는 공간적 또는 시간적 주변 블록의 AMVR 정보(AMVR 인덱스)에 기반하여 결정될 수 있다.In one embodiment, the AMVR index may be determined based on the resolution of a motion vector difference (MVD) applied to a motion vector of a neighboring block associated with the merge index. For example, the AMVR index may be determined based on AMVR information (AMVR index) of spatial or temporal neighboring blocks used in the process of generating a merge or MVP candidate list of the current block.
AMVR 모드는 AMVP에서 적용되며, 머지/스킵 모드에서 사용되지 않는다. 따라서, 상술한 AMVR 모드 기반 길이 테이블 결정 방법을 결정하기 위하여 머지/스킵 모드에서 AMVR 인덱스를 따로 설정할 수 있다. 즉, 현재 블록이 머지/스킵 모드일 때, 주변 블록의 AMVR 인덱스(imv_idx)를 설정하고 저장함으로써 MMVD를 위한 후보 구성시 AMVR을 적용할 수 있도록 한다. 이때, 코딩 장치는 파싱 과정에서 좌측 또는 상측 주변 블록의 imv_idx를 사용하여 컨텍스트 모델링을 수행하므로, 머지/스킵 모드가 적용된 블록의 디코딩 과정에서 저장된 주변 블록의 imv_idx가 파싱 과정에 적용되지 않도록 하기 위하여 MMVD가 적용된 블록의 AMVR 인덱스를 별도의 신택스 요소(예: imv_idc)로 명명함으로써 AMVP가 적용된 블록의 AMVR 인덱스와 구분할 수 있다.AMVR mode is applied in AMVP and is not used in merge/skip mode. Therefore, the AMVR index may be separately set in the merge/skip mode to determine the above-described AMVR mode-based length table determination method. That is, when the current block is in the merge/skip mode, the AMVR index (imv_idx) of the neighboring block is set and stored so that AMVR can be applied when configuring candidates for MMVD. At this time, since the coding device performs context modeling using imv_idx of the left or upper neighboring block in the parsing process, MMVD in order to prevent imv_idx of the neighboring block stored in the decoding process of the merge/skip mode from being applied in the parsing process The AMVR index of the block to which is applied is distinguished from the AMVR index of the block to which AMVP is applied by naming it as a separate syntax element (eg, imv_idc).
이하의 실시예는 머지/스킵 모드가 적용된 블록에 대한 MVP 후보 리스트를 구성하는 과정에서 AMVR 인덱스(imv_idc)를 저장하는 방법을 제공한다. MMVD에 따르면, 머지/스킵 모드가 적용된 블록의 디코딩 과정에서 구성된 MVP 후보 중 선택된 후보에 해당하는 베이스 움직임 벡터가 조절되며, 후보 리스트 구성 과정에서 인접 블록의 특징(MVD의 해상도 또는 AMVR 인덱스)에 따라 AMVR 인덱스가 아래와 같이 설정될 수 있다.The following embodiment provides a method of storing an AMVR index (imv_idc) in the process of constructing an MVP candidate list for a block to which merge/skip mode is applied. According to MMVD, a base motion vector corresponding to a selected candidate among MVP candidates configured in a decoding process of a block to which merge/skip mode is applied is adjusted, and according to characteristics of adjacent blocks (resolution or AMVR index of MVD) in a candidate list configuration process The AMVR index can be set as follows.
- 공간적으로 인접한 블록에 대하여, 해당 인접 블록의 AMVR 인덱스를 사용한다.-For spatially adjacent blocks, the AMVR index of the adjacent blocks is used.
- 시간적으로 인접한 블록에 대하여, 디폴트(default) 값(예: 0)를 사용한다.-For temporally adjacent blocks, a default value (eg 0) is used.
- HMVP(history-based motion vector predictor)가 적용된 주변 블록에 대하여, HMVP 버퍼에 저장된 후보들에 매칭되는 AMVR 인덱스를 사용하거나, HMVP 후보인 경우 항상 디폴트 값(예: 0)을 사용한다. 본 문서에서, HMVP는 현재 블록의 예측을 위한 정보로서 현재 픽처 내에서 이미 디코딩된(복원된) 다른 블록의 예측 정보(움직임 벡터, 참조 픽처 인덱스)를 사용하는 방법으로서, HVMP 후보는 공간적 후보, 시간적 후보 이후 머지 후보 리스트에 추가될 수 있다.-For a neighbor block to which a history-based motion vector predictor (HMVP) is applied, an AMVR index matching candidates stored in the HMVP buffer is used, or in the case of an HMVP candidate, a default value (eg, 0) is always used. In this document, HMVP is a method of using prediction information (motion vector, reference picture index) of another block that has already been decoded (restored) in the current picture as information for prediction of the current block, where HVMP candidate is a spatial candidate, After the temporal candidate, it may be added to the merge candidate list.
- 쌍(pairwise) 후보에 대하여, L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)의 후보가 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)가 다른 AMVR 인덱스를 갖는 경우 디폴트 값(예: 0)을 사용한다.-For pairwise candidates, when the candidates of the L0 motion vector (L0 block) and the L1 motion vector (L1 block) have the same AMVR index, a common AMVR index is used, and the L0 motion vector (L0 block) and L1 If the motion vector (L1 block) has a different AMVR index, the default value (eg 0) is used.
- L0 움직임 벡터(L0 블록)와 L1 움직임 벡터(L1 블록)의 후보가 동일한 AMVR 인덱스를 갖는 경우 해당 AMVR 인덱스를 사용하고, 다른 경우 둘 중 큰 AMVR 인덱스 값을 사용한다.-When the candidates of the L0 motion vector (L0 block) and the L1 motion vector (L1 block) have the same AMVR index, the corresponding AMVR index is used, and in other cases, the larger AMVR index value is used.
- 제로 벡터의 경우, 디폴트 값(예: 0)을 사용한다.-For zero vector, use the default value (eg 0).
상술한 방법이 모두 적용되거나, 일부만이 적용될 수 있음은 당연하다.It is natural that all of the above-described methods may be applied, or only a part may be applied.
도 20은 본 명세서의 실시예에 따른 삼각 예측 유닛들(triangular prediction units)의 예를 도시한다.20 shows an example of triangular prediction units according to an embodiment of the present specification.
또한, 삼각(triangular) 모드의 후보 리스트를 구성할 때 인접한 블록의 AMVR 인덱스를 저장함으로써 AMVR 인덱스 값이 이후 머지/스킵 모드에 전파(propagate)되도록 할 수 있다. 이때 삼각 모드는, 도 20과 같이 하나의 CU(coding unit)를 2개의 삼각형 모양의 PU(prediction unit)로 분할하고, 각 PU는 단방향 예측(uni-prediction)에 의해 예측이 수행될 수 있다. 각 PU에 대하여 일반적인 머지/스킵 모드와 유사한 방식에 의해 단방향 예측을 위한 후보 리스트가 구성될 수 있다. 삼각 모드가 적용될 때 하나의 CU는 2개의 PU(Cand0, Cand1)로 구성되므로 해당 블록(CU)의 AMVR 인덱스는 2개의 블록(PU)들의 AMVR 인덱스를 모두 고려하여 결정될 수 있으며, 구체적으로 아래와 같을 수 있다.In addition, when constructing a triangular mode candidate list, the AMVR index value of adjacent blocks can be stored to propagate the merge/skip mode afterwards. At this time, in the triangular mode, as shown in FIG. 20, one CU (coding unit) is divided into two triangular shaped prediction units (PUs), and each PU can be predicted by uni-prediction. For each PU, a candidate list for unidirectional prediction may be constructed in a manner similar to a general merge/skip mode. When a triangular mode is applied, one CU is composed of two PUs (Cand0, Cand1), so the AMVR index of the corresponding block (CU) can be determined by considering all of the AMVR indexes of the two blocks (PU). Can.
- Cand0의 AMVR 인덱스를 사용한다.-Use AMVR index of Cand0.
- Cand1의 AMVR 인덱스를 사용한다.-Use AMVR index of Cand1.
- Cand0와 Cand1의 AMVR 인덱스가 같을 때 해당 값을 사용한다.-When Cand0 and Cand1 have the same AMVR index, the corresponding value is used.
- Cand0와 Cand1의 AMVR 인덱스가 다르면 디폴트 값(예: 0)을 사용한다.-If the AMVR index of Cand0 and Cand1 are different, the default value (eg 0) is used.
- Cand0와 Cand1의 AMVR 인덱스가 다르면 큰 값을 사용한다-If AMVR index of Cand0 and Cand1 are different, use a larger value.
상술한 방법들이 모두 적용되거나 일부가 적용될 수 있음은 당연하다.It is natural that all or some of the above-described methods may be applied.
또한, 다중 가설(multi-hypothesis, M/H) 모드의 후보 리스트를 구성할 때 인접한 블록의 AMVR 인덱스를 저장함으로써 AMVR 인덱스 값이 이후 머지/스킵 모드에 전파되도록 할 수 있다. 이때 M/H 모드는, 머지/스킵 모드에서 인트라 예측과 인터 예측이 결합된 기술로서, 인트라 모드와 머지 모드를 위한 인덱스를 모두 시그널링한다. 일반 머지/스킵 모드와 유사한 방법으로 후보 리스트를 구성하며 M/H 모드가 적용될 때 해당 블록에 대해 아래와 같이 AMVR 인덱스를 설정할 수 있다.In addition, when constructing a candidate list in a multi-hypothesis (M/H) mode, the AMVR index of adjacent blocks can be stored so that the AMVR index value is propagated to the merge/skip mode later. At this time, the M/H mode is a technique in which intra prediction and inter prediction are combined in the merge/skip mode, and signals both indexes for the intra mode and the merge mode. The candidate list is constructed in a similar manner to the normal merge/skip mode, and when the M/H mode is applied, the AMVR index can be set for the corresponding block as follows.
- 공간적으로 인접한 블록일 때, 해당 인접 블록의 AMVR 인덱스를 사용한다.-When the block is spatially adjacent, the AMVR index of the adjacent block is used.
- 시간적으로 인접한 블록일 때, 디폴트 값(예: 0)를 사용한다.-When the block is temporally adjacent, the default value (eg 0) is used.
- HMVP 후보일 때, i) HMVP 버퍼에 저장된 후보들에 매칭되는 AMVR 인덱스를 사용하거나, ii) 항상 디폴트 값(예: 0)을 사용한다.-For HMVP candidates, i) use the AMVR index matching the candidates stored in the HMVP buffer, or ii) always use the default value (eg 0).
- 쌍(pairwise) 후보일 때, i) L0 후보(L0 블록)와 L1 후보(L1 블록)이 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, 다른 경우 디폴트 값(예: 0)을 사용하거나, ii) L0 후보(L0 블록)와 L1 후보(L1 블록)이 동일한 AMVR 인덱스를 갖는 경우 공통의 AMVR 인덱스를 사용하고, 다른 경우 둘 중 큰 AMVR 인덱스를 사용한다.-When pairwise, i) L0 candidate (L0 block) and L1 candidate (L1 block) use the common AMVR index when they have the same AMVR index; otherwise, use the default value (eg 0) Or, ii) When the L0 candidate (L0 block) and the L1 candidate (L1 block) have the same AMVR index, a common AMVR index is used, and in other cases, a larger AMVR index is used.
- 제로 벡터에 대하여, 디폴트 값(예: 0)을 사용한다.-For the zero vector, the default value (eg 0) is used.
상술한 방법들 모드 적용되거나, 일부가 적용될 수 있음은 당연한다.It is natural that the above-described methods may be applied or some may be applied.
본 발명의 일 실시예에 따르면, AMVR 인덱스는 MMVD 길이(오프셋)에 기반하여 업데이트될 수 있다. 또한, 업데이트된 AMVR 인덱스는 현재 블록 이후 처리되는 적어도 하나의 블록의 AMVR 인덱스로서 재사용될 수 있다. 상술한 방법을 사용하여 MMVD를 위한 베이스 움직임 벡터의 AMVR 인덱스를 유도할 수 있으며, 유도된 AMVR 인덱스를 기준으로 MMVD 길이 테이블을 선택함으로써 정제(refinement)를 위한 움직임 벡터의 거리가 결정될 수 있다. 그러나, 베이스 움직임 벡터의 AMVR 인덱스를 기준으로 MMVD 길이 테이블이 선택되었다 하더라도 해당 테이블 내 후보 중 1-pel 또는 4-pel과 같은 거리값이 선택될 수 있으므로 MMVD 과정에서 선택된 길이를 기준으로 AMVR 인덱스를 업데이트할 수 있다. MMVD 길이 역시 AMVR의 역할을 하기 때문이다. 따라서, 아래 표 7과 같이 선택된 MMVD 길이에 따라 AMVR 인덱스를 업데이트할 수 있다.According to an embodiment of the present invention, the AMVR index may be updated based on the MMVD length (offset). Also, the updated AMVR index may be reused as the AMVR index of at least one block processed after the current block. Using the above-described method, the AMVR index of the base motion vector for MMVD can be derived, and the distance of the motion vector for refinement can be determined by selecting the MMVD length table based on the derived AMVR index. However, even if the MMVD length table is selected based on the AMVR index of the base motion vector, a distance value such as 1-pel or 4-pel can be selected among the candidates in the table, so the AMVR index is selected based on the length selected in the MMVD process. Can be updated. This is because the MMVD length also plays the role of AMVR. Accordingly, the AMVR index can be updated according to the selected MMVD length as shown in Table 7 below.
Figure PCTKR2020000067-appb-img-000007
Figure PCTKR2020000067-appb-img-000007
즉, MMVD 길이가 4-pel 또는 8-pel로 결정되었다면 이는 표 6에서 Case 3(AMVR 인덱스(imv_idc)가 2인 경우)에 대응하는 MMVD 오프셋 후보 값들과 유사하므로(표 6의 Case 3에 해당할 가능성이 크므로), 베이스 움직임 벡터의 AMVR 인덱스가 0이라 하더라도 2로 업데이트될 수 있다. 또한, MMVD 거리가 1-pel 이상의 값으로 결정되면 이는 표 6에서 Case 2(AMVR 인덱스(imv_idc)가 1인 경우)에 대응하는 MMVD 오프셋 후보 값들과 유사하므로(표 6의 Case 2에 해당할 가능성이 크므로) 1로 업데이트될 수 있다.That is, if the MMVD length is determined to be 4-pel or 8-pel, this is similar to the MMVD offset candidate values corresponding to Case 3 (when AMVR index (imv_idc) is 2) in Table 6 (corresponds to Case 3 in Table 6). Since the probability of doing so is large), the AMVR index of the base motion vector may be updated to 2. In addition, if the MMVD distance is determined to be a value of 1-pel or more, this is similar to the MMVD offset candidate values corresponding to Case 2 in Table 6 (when AMVR index (imv_idc) is 1) (possibility of corresponding to Case 2 in Table 6) Because it is large) it can be updated to 1.
즉, MMVD 오프셋이 기준 값보다 크거나 같으면, AMVR 인덱스는 제1 MMVD 집합을 지시하도록 결정되고, MMVD 오프셋의 크기가 기준 값보다 작으면, 상기 MMVD 범위 인덱스는 제2 MMVD 집합 인덱스를 지시하도록 결정되며, 제1 MMVD 집합은 동일한 MMVD 길이 인덱스에 대하여 제2 MMVD 집합의 MMVD 오프셋보다 큰 값을 갖는다.That is, if the MMVD offset is greater than or equal to the reference value, the AMVR index is determined to indicate the first MMVD set, and if the size of the MMVD offset is less than the reference value, the MMVD range index is determined to indicate the second MMVD set index. The first MMVD set has a value greater than the MMVD offset of the second MMVD set for the same MMVD length index.
MMVD의 베이스 움직임 벡터의 x, y 값의 크기는 개선(refinement)을 위한 거리를 유도함에 있어 블록의 AMVR과 유사한 효과를 가질 수 있다. 또한, AMVR 인덱스가 적용되지 않는 경우라 하더라도 다른 툴에 의존적이지 않다는 장점이 있다. 따라서, 본 실시예는 베이스 움직임 벡터의 값에 따라 MMVD 길이 테이블을 결정하는 방법을 제공한다. 아래의 표 8은 MMVD 길이 인덱스와 MMVD 오프셋 값들의 관계를 나타내는 테이블의 다른 예로서, 베이스 움직임 벡터의 값에 따라 MMVD 길이 테이블을 결정하는 방법을 나타낸다.The magnitude of the x and y values of the base motion vector of the MMVD may have an effect similar to that of the AMVR of the block in deriving the distance for refinement. In addition, even if the AMVR index is not applied, there is an advantage that it is not dependent on other tools. Accordingly, the present embodiment provides a method of determining the MMVD length table according to the value of the base motion vector. Table 8 below is another example of a table showing the relationship between the MMVD length index and the MMVD offset values, and shows a method of determining the MMVD length table according to the value of the base motion vector.
Figure PCTKR2020000067-appb-img-000008
Figure PCTKR2020000067-appb-img-000008
Case 1은 아래의 조건을 갖는다. Case 1 has the following conditions.
- 양방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When bidirectional prediction is applied and 4-pel motion vectors are used
(L0_x % 16 == 0 && L0_y % 16 == 0 && L1_x % 16 == 0 && L1_y % 16 == 0)(L0_x% 16 == 0 && L0_y% 16 == 0 && L1_x% 16 == 0 && L1_y% 16 == 0)
- 단방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and 4-pel unit motion vector is used
(LX_x % 16 == 0 && LX_y % 16 == 0, X = 0, 1)(LX_x% 16 == 0 && LX_y% 16 == 0, X = 0, 1)
Case 1의 조건이 만족되면 1-pel ~ 8-pel의 거리로 조절(refine)된다. If the condition of Case 1 is satisfied, it is adjusted to a distance of 1-pel to 8-pel.
Case 1이 만족되지 못하는 경우, Case 2에 대한 조건은 아래와 같다.If Case 1 is not satisfied, the conditions for Case 2 are as follows.
- 양방향 예측이 적용되고, 1-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 1-pel unit motion vector is used
(L0_x % 4 == 0 && L0_y % 4 == 0 && L1_x % 4 == 0 && L1_y % 4 == 0)(L0_x% 4 == 0 && L0_y% 4 == 0 && L1_x% 4 == 0 && L1_y% 4 == 0)
- 단방향 예측이 적용되고, 1-pel 안위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and a motion vector of 1-pel comfort is used
(LX_x % 4 == 0 && LX_y % 4 == 0, X = 0, 1)(LX_x% 4 == 0 && LX_y% 4 == 0, X = 0, 1)
Case 2의 조건이 만족되면 1/2-pel ~ 4-pel의 거리로 조절(refine)된다. If the condition of Case 2 is satisfied, it is adjusted to a distance of 1/2-pel to 4-pel.
Case 1, Case 2가 만족되지 않는 경우, Case 3에 해당하는 1/4-pel ~ 2-pel의 거리로 조절(refine)될 수 있다. 본 명세서에서 설명되는 거리 테이블 내의 후보 개수와 후보 값은 하나의 예에 불과하며, 다른 개수 또는 다른 값이 적용될 수 있음은 당연하다. If Case 1 and Case 2 are not satisfied, the distance may be adjusted to a distance of 1/4-pel to 2-pel corresponding to Case 3. The number of candidates and the candidate values in the distance table described in this specification are only examples, and it is natural that other numbers or different values may be applied.
상술한 Case 1 내지 Case 3은 아래와 같이 변형되어 적용될 수 있다. 즉, 양방향 예측이 적용되는 후보 중 한쪽 방향이라도 아래 조건과 같이 4-pel 또는 1-pel 단위의 움직임 벡터를 가지면 조건이 만족되는 것으로 결정될 수 있다. Case 1 to Case 3 described above may be modified and applied as follows. That is, if one of the candidates to which bi-directional prediction is applied has a motion vector in units of 4-pel or 1-pel as in the following conditions, it may be determined that the condition is satisfied.
예를 들어, Case 1의 조건은 아래와 같을 수 있다.For example, the condition of Case 1 may be as follows.
- 양방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When bidirectional prediction is applied and 4-pel motion vectors are used
((L0_x % 16 == 0 && L0_y % 16 == 0) || (L1_x % 16 == 0 && L1_y % 16 == 0))((L0_x% 16 == 0 && L0_y% 16 == 0)||(L1_x% 16 == 0 && L1_y% 16 == 0))
- 단방향 예측이 적용되고, 4-pel 단위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and 4-pel unit motion vector is used
(LX_x % 16 == 0 && LX_y % 16 == 0, X = 0, 1)(LX_x% 16 == 0 && LX_y% 16 == 0, X = 0, 1)
Case 1의 조건이 만족되면 1-pel ~ 8-pel의 거리로 조절(refine)된다. If the condition of Case 1 is satisfied, it is adjusted to a distance of 1-pel to 8-pel.
Case 1이 만족되지 못하는 경우, Case 2에 대한 조건은 아래와 같다.If Case 1 is not satisfied, the conditions for Case 2 are as follows.
- 양방향 예측이 적용되고, 1-pel 단위의 움직임 벡터가 사용되는 경우-When bi-directional prediction is applied and 1-pel unit motion vector is used
(((L0_x % 4 == 0 && L0_y % 4 == 0) || (L1_x % 4 == 0 && L1_y % 4 == 0))(((L0_x% 4 == 0 && L0_y% 4 == 0)) (L1_x% 4 == 0 && L1_y% 4 == 0))
- 단방향 예측이 적용되고, 1-pel 안위의 움직임 벡터가 사용되는 경우-When unidirectional prediction is applied and a motion vector of 1-pel comfort is used
(LX_x % 4 == 0 && LX_y % 4 == 0, X = 0, 1)(LX_x% 4 == 0 && LX_y% 4 == 0, X = 0, 1)
Case 2의 조건이 만족되면 1/2-pel ~ 4-pel의 거리로 조절(refine)된다. If the condition of Case 2 is satisfied, it is adjusted to a distance of 1/2-pel to 4-pel.
본 실시예는 AMVR이 사용되지 않는 경우 적용되거나, AMVR 적용 여부와 관계없이 사용될 수 있다. 또한, AMVR 이 적용되는 경우(imv_dic = 1, 2) AMVR 인덱스에 따라 MMVD 길이 테이블이 결정되고, AMVR이 적용되지 않는 경우(imv_idc = 0) 본 실시예와 같이 움직임 벡터의 픽셀 단위에 기반하여 MMVD 길이 테이블이 결정될 수 있다. This embodiment may be applied when AMVR is not used, or may be used regardless of whether AMVR is applied. In addition, when the AMVR is applied (imv_dic = 1, 2), the MMVD length table is determined according to the AMVR index, and when the AMVR is not applied (imv_idc = 0), the MMVD is based on the pixel unit of the motion vector as in this embodiment. The length table can be determined.
즉, AMVR 인덱스 및 베이스 움직임 벡터에 의해 지시되는 위치 좌표의 해상도에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다. 예를 들어, AMVR 인덱스가 0인 경우, 현재 블록의 예측을 위한 움직임 벡터에 적용되는 MMVD 오프셋의 범위는 움직임 벡터에 의해 지시되는 위치 좌표에 기반하여 결정될 수 있다. 여기서, 위치 좌표는, 픽처 또는 블록 내 임의의 위치(예: 좌상단 픽셀의 위치)로부터 수평 방향 위치(x 좌표) 및/또는 수직 방향 위치(y 좌표)를 포함할 수 있다.That is, the range of the MMVD offset applied to the motion vector may be determined based on the resolution of the position coordinates indicated by the AMVR index and the base motion vector. For example, when the AMVR index is 0, the range of the MMVD offset applied to the motion vector for prediction of the current block may be determined based on the position coordinate indicated by the motion vector. Here, the position coordinates may include a horizontal position (x coordinate) and/or a vertical position (y coordinate) from an arbitrary position in the picture or block (eg, the position of the upper left pixel).
본 명세서의 일 실시예에 따르면, 현재 블록의 특성을 반영하여, MMVD를 적용하는 과정에서 현재 블록의 크기가 고려될 수 있다. AMVR 모드, 베이스 움직임 벡터의 x, y 값의 크기, 또는 현재 블록의 사이즈 중 적어도 하나를 고려하여 MMVD 오프셋 값에 대한 테이블이 결정될 수 있다. According to an embodiment of the present specification, the size of the current block may be considered in the process of applying the MMVD by reflecting the characteristics of the current block. The table for the MMVD offset value may be determined in consideration of at least one of the AMVR mode, the size of the x, y values of the base motion vector, or the size of the current block.
즉, AMVR 인덱스 및 현재 블록의 사이즈에 기반하여 움직임 벡터에 적용되는 MMVD 오프셋의 범위가 결정될 수 있다. 예를 들어, 아래와 같은 방법이 고려될 수 있다.That is, the range of the MMVD offset applied to the motion vector may be determined based on the AMVR index and the size of the current block. For example, the following method may be considered.
- AMVR 인덱스(imv_idc)가 0이고 w x h > 256 일 때(이하, w는 현재 블록의 폭, h는 현재 블록의 높이에 해당함) {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 6 또는 표 8이 사용됨.-When AMVR index (imv_idc) is 0 and wxh> 256 (hereinafter, w corresponds to the width of the current block, h corresponds to the height of the current block), the MMVD length table of {2, 4, 8, 16} is used, and Otherwise, Table 6 or Table 8 is used.
- AMVR 인덱스가 0이고 w > 16 && h > 16일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 6 또는 표 8이 사용됨.-When AMVR index is 0 and w> 16 && h> 16, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 6 or Table 8 is used.
- AMVR 인덱스가 0보다 크고 w x h > 256 일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 6 또는 표 8이 사용됨.-When the AMVR index is greater than 0 and w x h> 256, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 6 or Table 8 is used.
- AMVR 인덱스가 0보다 크고 w > 16 && h > 16일 때 {2, 4, 8, 16}의 MMVD 길이 테이블이 사용되고, 그 외에는 표 6 또는 표 8이 사용됨.-When the AMVR index is greater than 0 and w> 16 && h> 16, the MMVD length table of {2, 4, 8, 16} is used, otherwise Table 6 or Table 8 is used.
여기서, 사용된 블록 크기와 비교되는 기준값(threshold)는 변경될 수 있으며, 폭, 높이가 동시에 고려되거나 폭 x 높이가 고려될 수 있다. 또한, AMVR 인덱스 및/또는 베이스 움직임 벡터가 함께 고려될 수 있음은 당연하다.Here, the threshold value compared to the used block size may be changed, and the width and height may be considered simultaneously, or the width x height may be considered. It is also natural that AMVR indexes and/or base motion vectors can be considered together.
본 명세서의 일 실시예는 MMVD의 베이스 움직임 벡터의 크기(수평 방향(x) 크기 및/또는 수직 방향(y) 크기)에 기반하여 MMVD 후보 집합을 결정할 수 있다. MMVD의 베이스 움직임 벡터의 x, y 값의 크기는 MMVD 조절(refinement)을 위한 거리를 유도함에 있어 AMVR과 유사한 효과를 도출하기 위해 사용될 수 있다.One embodiment of the present specification may determine the MMVD candidate set based on the size of the base motion vector of the MMVD (horizontal (x) size and/or vertical (y) size). The magnitude of the x and y values of the base motion vector of the MMVD can be used to derive an effect similar to the AMVR in deriving the distance for MMVD refinement.
Figure PCTKR2020000067-appb-img-000009
Figure PCTKR2020000067-appb-img-000009
표 7은 본 명세서의 실시예에 따라 베이스 움직임 벡터의 x, y 값에 따라 다른 거리 테이블이 할당되는 경우의 예를 나타낸다. Table 7 shows an example in which different distance tables are allocated according to x and y values of the base motion vector according to an embodiment of the present specification.
도 21은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.21 shows an example of a flowchart for determining a set of MMVD candidates based on the size of a motion vector according to an embodiment of the present specification.
도 21에 도시된 바와 같이, 움직임 벡터(MV)가 제1 기준 값(T1)보다 크면 Case 1에 해당하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용될 수 있다. 움직임 벡터(MV)가 제1 기준 값(T1)보다 작거나 같고 제2 기준 값(T2)보다 크면, Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용될 수 있다. 움직임 벡터(MV)가 제2 기준 값(T2)보다 작으면, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.As illustrated in FIG. 21, when the motion vector MV is greater than the first reference value T1, the first MMVD candidate set corresponding to Case 1 (1-pel, 2-pel, 4-pel, 8-pel) Can be used. If the motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, the second set of MMVD candidates corresponding to Case 2 (1/2-pel, 1-pel, 2- pel, 4-pel) can be used. If the motion vector MV is smaller than the second reference value T2, a third MMVD candidate set corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) is used. Can.
일 예로, 제1 기준 값(T1) 및 제2 기준 값(T2)은 아래와 같이 설정될 수 있으며, 구현에 따라 다양한 값이 사용될 수 있다.For example, the first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
T1 = 128 (1/16 precision이 적용되는 경우, 128(8-pel), 1/4 precision이 적용되는 경우 64(8-pel))T1 = 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
T2 = 16 (1/16 precision이 적용되는 경우 16(1-pel), 1/4 precision 적용되는 경우 4(1-pel))T2 = 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
움직임 벡터(MV)와 제1 기준 값(T1) 또는 제2 기준 값(T2)과의 비교에 대한 설명은 아래와 같다. 양방향 예측(bi-directional prediction)이 사용되는 경우, 아래와 같이 L0, L1 움직임 벡터의 x, y가 모두 고려될 수 있다.The description of the comparison between the motion vector MV and the first reference value T1 or the second reference value T2 is as follows. When bi-directional prediction is used, both x and y of the L0 and L1 motion vectors can be considered as follows.
(L0_x > T1 && L0_y > T1 && L1_x > T1 && L1_y >T1)(L0_x> T1 && L0_y> T1 && L1_x> T1 && L1_y >T1)
L0_x는 제1 예측 방향(L0)에 대한 움직임 벡터의 수평 방향 크기(x 값), L0_y는 제1 예측 방향(L0)에 대한 움직임 벡터의 수직 방향 크기(y 값)을 나타내며, L1_x는 제2 예측 방향(L1)에 대한 움직임 벡터의 수평 방향 크기(x 값), L1_y는 제2 예측 방향(L1)에 대한 움직임 벡터의 수직 방향 크기(y 값)를 나타낸다.L0_x is the horizontal size (x value) of the motion vector with respect to the first prediction direction (L0), L0_y is the vertical size (y value) of the motion vector with respect to the first prediction direction (L0), and L1_x is the second The horizontal direction magnitude (x value) of the motion vector with respect to the prediction direction L1, L1_y represents the vertical direction magnitude (y value) of the motion vector with respect to the second prediction direction L1.
단방향 예측(uni-directional prediction) (LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x, y 값이 고려될 수 있다.When uni-directional prediction (LX, X = 0, 1) is applied, x and y values of the base motion vector may be considered.
(LX_x > T1 && LX_y > T1)(LX_x> T1 && LX_y> T1)
LX_x는 제1 또는 제2 예측 방향(LX, X = 0, 1)에 대한 움직임 벡터의 수평 방향 크기(x 값), LX_y는 제1 또는 제2 예측 방향(LX, X = 0, 1)에 대한 움직임 벡터의 수직 방향 크기(y 값)를 나타낸다.LX_x is the horizontal direction magnitude (x value) of the motion vector with respect to the first or second prediction direction (LX, X = 0, 1), and LX_y is the first or second prediction direction (LX, X = 0, 1). Represents the magnitude (y value) of the vertical motion vector.
또한, 양방향 예측이 적용되는 경우, L0 또는 L1 움직임 벡터가 고려될 수 있으며, 아래와 같이 표현될 수 있다.In addition, when bi-directional prediction is applied, L0 or L1 motion vectors may be considered and may be expressed as follows.
(L0_x > T1 && L0_y > T1) || (L1_x > T1 && L1_y >T1)(L0_x> T1 && L0_y> T1) || (L1_x> T1 && L1_y >T1)
마찬가지로, 단방향 예측(LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x, y 값이 고려될 수 있다.Similarly, when unidirectional prediction (LX, X = 0, 1) is applied, the x and y values of the base motion vector can be considered.
(LX_x > T1 && LX_y > T1)(LX_x> T1 && LX_y> T1)
또한, 양방향 예측이 적용되는 경우, L0 또는 L1 방향 움직임 벡터 각각의 x 또는 y 값이 고려될 수 있다.In addition, when bi-directional prediction is applied, an x or y value of each of the L0 or L1 direction motion vectors may be considered.
L0_x > T1 || L0_y > T1 || L1_x > T1 || L1_y >T1L0_x> T1 || L0_y> T1 || L1_x> T1 || L1_y >T1
마찬가지로, 단방향 예측(LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x 또는 y 값이 고려될 수 있다.Similarly, when unidirectional prediction (LX, X = 0, 1) is applied, the x or y value of the base motion vector can be considered.
LX_x > T1 || LX_y > T1LX_x> T1 || LX_y> T1
도 22 및 도 23은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기 및 블록 사이즈에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.22 and 23 show examples of flowcharts for determining a set of MMVD candidates based on the size and block size of a motion vector according to an embodiment of the present specification.
본 명세서의 일 실시예는 MMVD의 베이스 움직임 벡터의 크기(수평 방향(x) 크기 및/또는 수직 방향(y) 크기) 및 블록 사이즈에 기반하여 MMVD 후보 집합을 결정할 수 있다. An embodiment of the present specification may determine the MMVD candidate set based on the size of the base motion vector of the MMVD (horizontal (x) size and/or vertical (y) size) and block size.
Figure PCTKR2020000067-appb-img-000010
Figure PCTKR2020000067-appb-img-000010
표 10은 본 실시예에 따른 베이스 움직임 벡터의 크기와 블록 크기에 따라 다른 거리 테이블이 할당되는 경우의 예를 나타낸다. 베이스 움직임 벡터 및 블록 크기에 따른 케이스는 도 22 및 도 23과 같이 표현될 수 있다.Table 10 shows an example in which different distance tables are allocated according to the size and block size of the base motion vector according to the present embodiment. Cases according to the base motion vector and block size may be expressed as shown in FIGS. 22 and 23.
도 22에 따르면, 베이스 움직임 벡터(MV)가 제1 기준 값(T1)보다 클 때, 블록 사이즈(BS)가 제1 블록 사이즈 기준 값(BS_T1)보다 크면 Case 1에 해당하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용되고, 블록 사이즈(BS)가 제1 블록 사이즈 기준 값(BS_T1)보다 작거나 같으면 Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.According to FIG. 22, when the base motion vector MV is greater than the first reference value T1, if the block size BS is greater than the first block size reference value BS_T1, the first MMVD candidate set corresponding to Case 1 If (1-pel, 2-pel, 4-pel, 8-pel) is used, and the block size (BS) is less than or equal to the first block size reference value (BS_T1), the third MMVD candidate set corresponding to Case 3 ( 1/4-pel, 1/2-pel, 1-pel, 2-pel) can be used.
또한, 베이스 움직임 벡터(MV)가 제1 기준 값(T1)보다 작거나 같고 제2 기준 값(T2)보다 클 때, 블록 사이즈(BS)가 제2 블록 사이즈 기준 값(BS_T2)보다 크면 Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용되고, 블록 사이즈(BS)가 제2 블록 사이즈 기준 값(BS_T2)보다 작거나 같으면 Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다. 베이스 움직임 벡터(MV)가 제2 제2 기준 값(T2)보다 작거나 같으면, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.Further, when the base motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, if the block size BS is greater than the second block size reference value BS_T2, Case 2 A second MMVD candidate set corresponding to (1/2-pel, 1-pel, 2-pel, 4-pel) is used, and if the block size (BS) is less than or equal to the second block size reference value (BS_T2), Case A third MMVD candidate set corresponding to 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used. If the base motion vector MV is less than or equal to the second second reference value T2, a third set of MMVD candidates corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2- pel) can be used.
도 23에 따르면, 베이스 움직임 벡터(MV)가 제1 기준 값(T1)보다 클 때, 블록 사이즈(BS)가 제1 블록 사이즈 기준 값(BS_T1)보다 크면 Case 1에 해당하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용되고, 블록 사이즈(BS)가 제1 블록 사이즈 기준 값(BS_T1)보다 작거나 같으면 Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용될 수 있다.According to FIG. 23, when the base motion vector MV is greater than the first reference value T1, if the block size BS is greater than the first block size reference value BS_T1, the first MMVD candidate set corresponding to Case 1 If (1-pel, 2-pel, 4-pel, 8-pel) is used, and the block size (BS) is less than or equal to the first block size reference value (BS_T1), the second set of MMVD candidates corresponding to Case 2 ( 1/2-pel, 1-pel, 2-pel, 4-pel) can be used.
또한, 베이스 움직임 벡터(MV)가 제1 기준 값(T1)보다 작거나 같고 제2 기준 값(T2)보다 클 때, 블록 사이즈(BS)가 제2 블록 사이즈 기준 값(BS_T2)보다 크면 Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용되고, 블록 사이즈(BS)가 제2 블록 사이즈 기준 값(BS_T2)보다 작거나 같으면 Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다. 베이스 움직임 벡터(MV)가 제2 제2 기준 값(T2)보다 작거나 같으면, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.Further, when the base motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, if the block size BS is greater than the second block size reference value BS_T2, Case 2 A second MMVD candidate set corresponding to (1/2-pel, 1-pel, 2-pel, 4-pel) is used, and if the block size (BS) is less than or equal to the second block size reference value (BS_T2), Case A third MMVD candidate set corresponding to 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used. If the base motion vector MV is less than or equal to the second second reference value T2, a third set of MMVD candidates corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2- pel) can be used.
이 때, 제1 기준 값(T1) 및 제2 기준 값(T2)은 아래와 같이 설정될 수 있으며, 구현에 따라 다양한 값이 사용될 수 있다.At this time, the first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
T1 = 128 (1/16 precision이 적용되는 경우, 128(8-pel), 1/4 precision이 적용되는 경우 64(8-pel))T1 = 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
T2 = 16 (1/16 precision이 적용되는 경우 16(1-pel), 1/4 precision 적용되는 경우 4(1-pel))T2 = 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
또한, 제1, 제2 블록 사이즈 기준 값(BS_T1, T2)는 아래와 같이 설정될 수 있으나, 이는 하나의 예에 불과하며 변경될 수 있다.In addition, the first and second block size reference values BS_T1 and T2 may be set as follows, but this is only an example and may be changed.
BS_T1 = 32BS_T1 = 32
BS_T2 = 16BS_T2 = 16
움직임 벡터(MV)와 제1 기준 값(T1) 또는 제2 기준 값(T2)과의 비교에 대한 설명은 아래와 같다. 양방향 예측(bi-directional prediction)이 사용되는 경우, 아래와 같이 L0, L1 움직임 벡터의 x, y가 모두 고려될 수 있다.The description of the comparison between the motion vector MV and the first reference value T1 or the second reference value T2 is as follows. When bi-directional prediction is used, both x and y of the L0 and L1 motion vectors can be considered as follows.
(L0_x > T1 && L0_y > T1 && L1_x > T1 && L1_y >T1)(L0_x> T1 && L0_y> T1 && L1_x> T1 && L1_y >T1)
L0_x는 제1 예측 방향(L0)에 대한 움직임 벡터의 수평 방향 크기(x 값), L0_y는 제1 예측 방향(L0)에 대한 움직임 벡터의 수직 방향 크기(y 값)을 나타내며, L1_x는 제2 예측 방향(L1)에 대한 움직임 벡터의 수평 방향 크기(x 값), L1_y는 제2 예측 방향(L1)에 대한 움직임 벡터의 수직 방향 크기(y 값)를 나타낸다.L0_x is the horizontal size (x value) of the motion vector with respect to the first prediction direction (L0), L0_y is the vertical size (y value) of the motion vector with respect to the first prediction direction (L0), and L1_x is the second The horizontal direction magnitude (x value) of the motion vector with respect to the prediction direction L1, L1_y represents the vertical direction magnitude (y value) of the motion vector with respect to the second prediction direction L1.
단방향 예측(uni-directional prediction) (LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x, y 값이 고려될 수 있다.When uni-directional prediction (LX, X = 0, 1) is applied, x and y values of the base motion vector may be considered.
(LX_x > T1 && LX_y > T1)(LX_x> T1 && LX_y> T1)
LX_x는 제1 또는 제2 예측 방향(LX, X = 0, 1)에 대한 움직임 벡터의 수평 방향 크기(x 값), LX_y는 제1 또는 제2 예측 방향(LX, X = 0, 1)에 대한 움직임 벡터의 수직 방향 크기(y 값)를 나타낸다.LX_x is the horizontal direction magnitude (x value) of the motion vector with respect to the first or second prediction direction (LX, X = 0, 1), and LX_y is the first or second prediction direction (LX, X = 0, 1). Represents the magnitude (y value) of the vertical motion vector.
또한, 양방향 예측이 적용되는 경우, L0 또는 L1 움직임 벡터가 고려될 수 있으며, 아래와 같이 표현될 수 있다.In addition, when bi-directional prediction is applied, L0 or L1 motion vectors may be considered and may be expressed as follows.
(L0_x > T1 && L0_y > T1) || (L1_x > T1 && L1_y >T1)(L0_x> T1 && L0_y> T1) || (L1_x> T1 && L1_y >T1)
마찬가지로, 단방향 예측(LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x, y 값이 고려될 수 있다.Similarly, when unidirectional prediction (LX, X = 0, 1) is applied, the x and y values of the base motion vector can be considered.
(LX_x > T1 && LX_y > T1)(LX_x> T1 && LX_y> T1)
또한, 양방향 예측이 적용되는 경우, L0 또는 L1 방향 움직임 벡터 각각의 x 또는 y 값이 고려될 수 있다.In addition, when bi-directional prediction is applied, an x or y value of each of the L0 or L1 direction motion vectors may be considered.
L0_x > T1 || L0_y > T1 || L1_x > T1 || L1_y >T1L0_x> T1 || L0_y> T1 || L1_x> T1 || L1_y >T1
마찬가지로, 단방향 예측(LX, X = 0, 1)이 적용되는 경우, 베이스 움직임 벡터의 x 또는 y 값이 고려될 수 있다.Similarly, when unidirectional prediction (LX, X = 0, 1) is applied, the x or y value of the base motion vector can be considered.
LX_x > T1 || LX_y > T1LX_x> T1 || LX_y> T1
본 실시예와 같이 움직임 벡터의 크기와 블록 사이즈에 기반하여 MMVD 후보 집합을 결정함으로써 MMVD 길이 인덱스의 비트 길이를 감소시킬 수 있다.The bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the size and block size of the motion vector as in this embodiment.
도 24는 본 명세서의 일 실시예에 따른 움직임 벡터의 해상도에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.24 illustrates an example of a flow chart for determining an MMVD candidate set based on the resolution of a motion vector according to an embodiment of the present specification.
본 명세서의 일 실시예에 따르면, MMVD 후보 집합은 움직임 벡터에 의해 지시되는 좌표의 픽셀 해상도에 기반하여 결정될 수 있다. According to one embodiment of the present specification, the MMVD candidate set may be determined based on the pixel resolution of coordinates indicated by the motion vector.
Figure PCTKR2020000067-appb-img-000011
Figure PCTKR2020000067-appb-img-000011
표 11은 움직임 벡터에 의해 지시되는 좌표의 해상도에 기반한 거리 테이블의 예를 나타낸다.Table 11 shows an example of a distance table based on the resolution of the coordinates indicated by the motion vector.
도 24에 따르면, 움직임 벡터가 0이 아닐 때, 움직임 벡터가 4-pel 단위의 해상도를 가질 때(MV % 64 = 0) Case 1에 대응하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용되고, 움직임 벡터가 4-pel 단위의 해상도를 갖지 않고 (MV % 64 != 0) 움직임 벡터가 1-pel 단위의 해상도를 가지면(MV % 16 == 0) Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용될 수 있다. 그 외의 경우, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, 1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.According to FIG. 24, when the motion vector is not 0, when the motion vector has a resolution of 4-pel units (MV% 64 = 0), the first set of MMVD candidates corresponding to Case 1 (1-pel, 2-pel , 4-pel, 8-pel) are used, and if the motion vector does not have a resolution of 4-pel units (MV% 64 != 0) and the motion vector has a resolution of 1-pel units (MV% 16 == 0 ) The second MMVD candidate set corresponding to Case 2 (1/2-pel, 1-pel, 2-pel, 4-pel) may be used. In other cases, a third MMVD candidate set corresponding to Case 3 (1/4-pel, 1/2-pel, 1-pel, 2-pel) may be used.
여기서, 움직임 벡터가 0이 아닌 경우는 아래와 같이 결정될 수 있다. 아래는 베이스 움직임 벡터가 양방향 예측인 경우의 예이며, 단방향 예측의 경우에도 유사한 방법이 적용될 수 있다.Here, when the motion vector is not 0, it may be determined as follows. The following is an example of the case where the base motion vector is bi-directional prediction, and a similar method can be applied to uni-directional prediction.
L0_x != 0 && L0_y != 0 && L1_x != 0 && L1_y != 0 또는,L0_x != 0 && L0_y != 0 && L1_x != 0 && L1_y != 0 or,
(L0_x != 0 && L0_y != 0) || (L1_x != 0 && L1_y != 0) 또는,(L0_x != 0 && L0_y != 0) || (L1_x != 0 && L1_y != 0) or
L0_x != 0 || L0_y != 0 || L1_x != 0 || L1_y != 0L0_x != 0 || L0_y != 0 || L1_x != 0 || L1_y != 0
움직임 벡터가 4-pel 단위의 해상도를 가지는 지 여부를 결정하기 위한 방법은 아래와 같을 수 있다. 아래는 베이스 움직임 벡터가 양방향 예측인 경우의 예를 표현하였으며, 단방향 예측이 적용되는 경우에도 유사한 방법이 사용될 수 있다.A method for determining whether the motion vector has a resolution of 4-pel units may be as follows. The following is an example of the case where the base motion vector is bi-directional prediction, and a similar method can be used when uni-directional prediction is applied.
L0_x % 64 == 0 && L0_y % 64 == 0 && L1_x % 64 == 0 && L1_y % 64 == 0 또는, L0_x% 64 == 0 && L0_y% 64 == 0 && L1_x% 64 == 0 && L1_y% 64 == 0 or,
(L0_x % 64 == 0 && L0_y % 64 == 0) || (L1_x % 64 == 0 && L1_y % 64 == 0) 또는,(L0_x% 64 == 0 && L0_y% 64 == 0) || (L1_x% 64 == 0 && L1_y% 64 == 0) or,
(L0_x % 64 == 0) || (L0_y % 64 == 0) || (L1_x % 64 == 0) || (L1_y % 64 == 0)(L0_x% 64 == 0) || (L0_y% 64 == 0) || (L1_x% 64 == 0) || (L1_y% 64 == 0)
이 때, 64, 16은 움직임 벡터가 1/16의 정확도(precision)을 가질 때 적용될 수 있으나, 이는 하나의 예시에 불과하며 비디오 처리 시스템에 따라 다양할 수 있다.In this case, 64 and 16 may be applied when the motion vector has a precision of 1/16, but this is only an example and may vary according to a video processing system.
본 실시예와 같이 움직임 벡터에 의해 지시되는 픽셀의 해상도에 기반하여 MMVD 후보 집합을 결정함으로써 MMVD 길이 인덱스의 비트 길이를 감소시킬 수 있다.The bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the resolution of the pixel indicated by the motion vector as in this embodiment.
도 25 및 도 26은 본 명세서의 일 실시예에 따른 움직임 벡터의 크기 및 해상도에 기반하여 MMVD 후보 집합을 결정하기 위한 흐름도의 예를 도시한다.25 and 26 illustrate examples of flowcharts for determining a set of MMVD candidates based on the size and resolution of a motion vector according to an embodiment of the present specification.
본 명세서의 일 실시예에 따르면, 움직임 벡터의 크기 및 움직임 벡터의 해상도에 의해 지시되는 픽셀 좌표의 해상도에 기반하여 MMVD 후보 집합을 결정할 수 있다. MMVD의 베이스 움직임 벡터의 x, y 값의 크기와 움직임 벡터 해상도를 고려하여 아래와 같이 MMVD 거리 테이블이 결정될 수 있다.According to one embodiment of the present specification, the MMVD candidate set may be determined based on the size of the motion vector and the resolution of the pixel coordinates indicated by the resolution of the motion vector. The MMVD distance table can be determined as follows, considering the size of the x and y values of the base motion vector of the MMVD and the motion vector resolution.
Figure PCTKR2020000067-appb-img-000012
Figure PCTKR2020000067-appb-img-000012
표 12는 베이스 움직임 벡터의 크기와 베이스 움직임 벡터의 해상도에 따라 다른 거리 테이블이 할당된 경우의 예를 나타낸다. 베이스 움직임 벡터 값 및 해상도에 따른 Case는 도 25 또는 도 26과 같이 설정될 수 있다.Table 12 shows an example in which different distance tables are allocated according to the size of the base motion vector and the resolution of the base motion vector. Case according to the base motion vector value and resolution may be set as shown in FIG. 25 or FIG. 26.
도 25에 따르면, 움직임 벡터(MV)가 제1 기준 값(T1)보다 클 때, 움직임 벡터의 해상도 2-pel 단위의 해상도를 가지면(MV % 32 == 0) Case 1에 해당하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용되고, 그렇지 않으면(MV % 32 != 0) Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, (1/2-pel, 1-pel, 2-pel)이 사용될 수 있다. 또한, 움직임 벡터(MV)가 제1 기준 값(T1)보다 작거나 같고 제2 기준 값(T2)보다 클 때, 1-pel 단위의 해상도를 가지면(MV % 16 == 0) Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용되고, 그렇지 않으면(MV % != 16) Case 3에 해당하는 제3 MMVD 후보 집합이 사용될 수 있다. 직임 벡터(MV)가 제2 기준 값(T2)보다 작거나 같을 때, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, (1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.According to FIG. 25, when the motion vector MV is greater than the first reference value T1, when the resolution of the motion vector is 2-pel (MV% 32 == 0), the first MMVD corresponding to Case 1 The candidate set (1-pel, 2-pel, 4-pel, 8-pel) is used, otherwise (MV% 32 != 0), the third MMVD candidate set corresponding to Case 3 (1/4-pel, ( 1/2-pel, 1-pel, 2-pel may be used, and when the motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, 1 If the resolution is -pel (MV% 16 == 0), the second set of MMVD candidates (1/2-pel, 1-pel, 2-pel, 4-pel) corresponding to Case 2 is used, otherwise ( MV% != 16) A third MMVD candidate set corresponding to Case 3. A third MMVD candidate set corresponding to Case 3 may be used when the direct vector (MV) is less than or equal to the second reference value (T2). (1/4-pel, (1/2-pel, 1-pel, 2-pel) can be used.
도 26에 따르면, 움직임 벡터(MV)가 제1 기준 값(T1)보다 클 때, 움직임 벡터의 해상도 2-pel 단위의 해상도를 가지면(MV % 32 == 0) Case 1에 해당하는 제1 MMVD 후보 집합(1-pel, 2-pel, 4-pel, 8-pel)이 사용되고, 그렇지 않으면(MV % 32 != 0) Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용될 수 있다. 또한, 움직임 벡터(MV)가 제1 기준 값(T1)보다 작거나 같고 제2 기준 값(T2)보다 클 때, 1-pel 단위의 해상도를 가지면(MV % 16 == 0) Case 2에 해당하는 제2 MMVD 후보 집합(1/2-pel, 1-pel, 2-pel, 4-pel)이 사용되고, 그렇지 않으면(MV % != 16) Case 3에 해당하는 제3 MMVD 후보 집합이 사용될 수 있다. 직임 벡터(MV)가 제2 기준 값(T2)보다 작거나 같을 때, Case 3에 해당하는 제3 MMVD 후보 집합(1/4-pel, (1/2-pel, 1-pel, 2-pel)이 사용될 수 있다.According to FIG. 26, when the motion vector MV is greater than the first reference value T1, when the resolution of the motion vector is 2-pel (MV% 32 == 0), the first MMVD corresponding to Case 1 The candidate set (1-pel, 2-pel, 4-pel, 8-pel) is used, otherwise (MV% 32 != 0), the second MMVD candidate set corresponding to Case 2 (1/2-pel, 1 -pel, 2-pel, 4-pel) can be used. In addition, when the motion vector MV is less than or equal to the first reference value T1 and greater than the second reference value T2, when the resolution of 1-pel unit is obtained (MV% 16 == 0), it corresponds to Case 2 The second set of MMVD candidates (1/2-pel, 1-pel, 2-pel, 4-pel) is used, otherwise (MV% != 16), the third set of MMVD candidates corresponding to Case 3 can be used. have. When the direct vector (MV) is less than or equal to the second reference value T2, a third set of MMVD candidates corresponding to Case 3 (1/4-pel, (1/2-pel, 1-pel, 2-pel) ) Can be used.
이 때, 제1 기준 값(T1) 및 제2 기준 값(T2)은 아래와 같이 설정될 수 있으며, 구현에 따라 다양한 값이 사용될 수 있다.At this time, the first reference value T1 and the second reference value T2 may be set as follows, and various values may be used depending on the implementation.
T1 = 128 (1/16 precision이 적용되는 경우, 128(8-pel), 1/4 precision이 적용되는 경우 64(8-pel))T1 = 128 (128(8-pel) when 1/16 precision is applied, 64(8-pel) when 1/4 precision is applied)
T2 = 16 (1/16 precision이 적용되는 경우 16(1-pel), 1/4 precision 적용되는 경우 4(1-pel))T2 = 16 (16(1-pel) when 1/16 precision is applied, 4(1-pel) when 1/4 precision is applied)
여기서, 움직임 벡터 해상도에 대한 기준 값 32, 16은 움직임 벡터가 1/16의 정확도를 가질 때 적용될 수 있으며, 실제 각각 2-pel, 1-pel의 정확도를 가짐을 의미하나, 이는 하나의 예일뿐이며 그 값은 달라질 수 있다.Here, the reference values 32 and 16 for the motion vector resolution can be applied when the motion vector has an accuracy of 1/16, which means that it has an accuracy of 2-pel and 1-pel, respectively, but this is only one example. Its value can vary.
본 실시예와 같이 움직임 벡터의 크기 및 해상도에 기반하여 MMVD 후보 집합을 결정함으로써 MMVD 길이 인덱스의 비트 길이를 감소시킬 수 있다.The bit length of the MMVD length index can be reduced by determining the MMVD candidate set based on the size and resolution of the motion vector as in this embodiment.
본 명세서의 일 실시예는 움직임 벡터 또는 블록 사이즈 중 적어도 하나에 기반하여 MMVD 오프셋을 스케일링 함으로써 시그널링 오버헤드를 감소시킬 수 있는 방법을 제공한다.One embodiment of the present specification provides a method for reducing signaling overhead by scaling an MMVD offset based on at least one of a motion vector or block size.
현재 논의되는 MMVD를 구현하기 위한 신택스는 아래의 표 13과 같이 소개된다.The syntax for implementing the MMVD currently discussed is introduced as shown in Table 13 below.
Figure PCTKR2020000067-appb-img-000013
Figure PCTKR2020000067-appb-img-000013
여기서, mmvd_merge_flag는 머지 후보 리스트로부터 도출되는 MVD에 대한 시작점을 의미한다. mmvd_distance_idx는 시잠점으로부터의 거리(MMVD 거리)를 나타내고, MMVD 거리는 표 14(표 4와 실질적으로 동일)와 같이 1~127(1/4 pel ~ 32 pel)의 범위에서 기 정의된다(pre-defined). mmvd_direction_idx는 시잠점으로부터의 방향을 나타내며, 방향은 표 15(표 5와 실질적으로 동일)와 같이 정의된다.Here, mmvd_merge_flag means a starting point for MVD derived from a merge candidate list. mmvd_distance_idx represents the distance from the point of lapse (MMVD distance), and the MMVD distance is predefined in the range of 1 to 127 (1/4 pel to 32 pel) as shown in Table 14 (substantially the same as Table 4) (pre-defined) ). mmvd_direction_idx indicates the direction from the stop point, and the direction is defined as Table 15 (substantially the same as Table 5).
Figure PCTKR2020000067-appb-img-000014
Figure PCTKR2020000067-appb-img-000014
Figure PCTKR2020000067-appb-img-000015
Figure PCTKR2020000067-appb-img-000015
표 14와 표 15에 나타난 MMVD 거리(MmvdDistance)와 MMVD 부호(MmvdSign)로부터, 아래와 같이 MMVD 오프셋(MmvdOffset)이 도출될 수 있다.From the MMVD distance (MmvdDistance) and MMVD sign (MmvdSign) shown in Table 14 and Table 15, the MMVD offset (MmvdOffset) can be derived as follows.
MmvdOffset[ x0 ][ y0 ][ 0 ] = ( MmvdDistance[ x0 ][ y0 ] << 2 ) * MmvdSign[ x0 ][ y0 ][0]MmvdOffset[ x0 ][ y0 ][ 0] = (MmvdDistance[ x0 ][ y0] << 2) * MmvdSign[ x0 ][ y0 ][0]
MmvdOffset[ x0 ][ y0 ][ 1 ] = ( MmvdDistance[ x0 ][ y0 ] << 2 ) * MmvdSign[ x0 ][ y0 ][1]MmvdOffset[ x0 ][ y0 ][ 1] = (MmvdDistance[ x0 ][ y0] << 2) * MmvdSign[ x0 ][ y0 ][1]
상술한 바와 같이, 현재 MMVD 방식에서 2개의 시작점, 8개의 움직임 거리, 그리고 4개의 움직임 방향으로부터 64개의 조합들이 MMVD를 위한 후보들로서 사용될 수 있다. 후보들의 개수를 감소시키기 위하여, 본 명세서의 실시예에서 제안되는 방법이 MMVD에 적용될 수 있다. 아래의 표 16은 후보들의 개수를 절반만큼 감소되는 움직임 거리 후보들을 나타낸다.As described above, in the current MMVD scheme, 64 combinations from 2 starting points, 8 movement distances, and 4 movement directions can be used as candidates for MMVD. To reduce the number of candidates, the method proposed in the embodiments of the present specification can be applied to MMVD. Table 16 below shows motion distance candidates in which the number of candidates is reduced by half.
Figure PCTKR2020000067-appb-img-000016
Figure PCTKR2020000067-appb-img-000016
본 실시예에서, 주어짐 움직임 거리 인덱스로부터의 실제의 움직임 거리는 아래의 방법들을 고려하여 추가적으로 조절된다.In this embodiment, the actual movement distance from the given movement distance index is further adjusted in consideration of the following methods.
방법 1: 베이스 움직임 벡터 및 블록 사이즈의 크기를 고려Method 1: Consider the size of the base motion vector and block size
방법 1에서, 움직임 벡터의 크기 및 블록 사이즈는 움직임의 경향(tendency)를 추정하기 위한 유용한 지시자이기 때문에 MMVD에서 움직임 거리는 베이스 움직임 벡터의 크기와 블록의 너비 및 높이에 의해 결정된다. 일반적으로, 거리 위치를 지시하는 움직임 벡터를 사용하고 큰 블록 사이즈를 갖는 코딩 블록은 큰(coarse) 움직임을 가지기 때문에, MMVD 거리는 좌측 시프트 2 만큼 제어된다. 동일한 방식으로, 가까운 위치를 지시하는 움직임 벡터의 크기를 사용하여 코딩되고 작은 블록 사이즈를 갖는 코딩 블록은 더 작은(grain) 움직임을 가지기 때문에, MMVD거리는 좌측 시프트 1 만큼 제어된다. 아래의 표 17은 제안되는 방법의 구체적인 조건을 도시한다.In method 1, since the motion vector size and block size are useful indicators for estimating the tendency of motion, the motion distance in MMVD is determined by the size of the base motion vector and the width and height of the block. In general, the MMVD distance is controlled by the left shift 2 because a motion vector indicating a distance position is used and a coding block having a large block size has coarse motion. In the same way, the MMVD distance is controlled by the left shift 1 because a coding block having a small block size and coded using the size of a motion vector indicating a close position has a grain motion. Table 17 below shows the specific conditions of the proposed method.
Figure PCTKR2020000067-appb-img-000017
Figure PCTKR2020000067-appb-img-000017
방법 2: 베이스 움직임 벡터의 해상도Method 2: Resolution of the base motion vector
MMVD에서 움직임 거리는 움직임 벡터 해상도에 의해 결정된다. 일반적으로, 정수 위치를 지시하는 움직임 벡터를 사용하여 코딩된 코딩 블록은 큰(coarse) 움직임을 가지므로, MMVD 거리는 좌측 시프트 2 만큼 제어된다. 동일한 방식으로, 분수 위치를 지시하는 움직임 벡터로 코딩되는 코딩 블록은 작은(grain) 움직임을 가지므로, MMVD 거리는 좌측 시프트 1 만큼 제어된다. 방법 2는 L0 또는 L1에 대한 x 또는 y 성분이 0이 아닐 때 아래의 표 18과 같이 수행될 수 있다.In MMVD, the motion distance is determined by the motion vector resolution. Generally, since a coding block coded using a motion vector indicating an integer position has coarse motion, the MMVD distance is controlled by the left shift 2. In the same way, since a coding block coded with a motion vector indicating a fractional position has a grain motion, the MMVD distance is controlled by left shift 1. Method 2 may be performed as shown in Table 18 below when the x or y component for L0 or L1 is not zero.
Figure PCTKR2020000067-appb-img-000018
Figure PCTKR2020000067-appb-img-000018
표 17 또는 표 18에서 도출되는 거리를 사용하여, MMVD에 대한 시작점으로부터의 MVD(MvmdOffset)가 아래와 같이 변경될 수 있다.Using the distance derived from Table 17 or Table 18, MVD (MvmdOffset) from the starting point for MMVD can be changed as follows.
MmvdOffset[ x0 ][ y0 ][ 0 ] = ( distance << 2 ) * MmvdSign[ x0 ][ y0 ][0]MmvdOffset[ x0 ][ y0 ][ 0] = (distance << 2) * MmvdSign[ x0 ][ y0 ][0]
MmvdOffset[ x0 ][ y0 ][ 1 ] = ( distance << 2 ) * MmvdSign[ x0 ][ y0 ][1]MmvdOffset[ x0 ][ y0 ][ 1] = (distance << 2) * MmvdSign[ x0 ][ y0 ][1]
본 실시예와 같이 움직임 벡터 또는 블록 사이즈에 기반하여 MMVD 오프셋에 대한 스케일링을 수행함으로써 MMVD 거리 인덱스를 전송하기 위하여 필요한 시그널링 오버헤드를 감소시킬 수 있다.Signaling overhead required to transmit the MMVD distance index can be reduced by performing scaling for the MMVD offset based on the motion vector or block size as in this embodiment.
상술한 MMVD 오프셋의 스케일링과 관련된 조건은 아래의 표 19 내지 26과 같이 다양하게 설정될 수 있다.The conditions related to the scaling of the above-described MMVD offset may be variously set as shown in Tables 19 to 26 below.
상술한 실시예에서 고려된 베이스 MV의 x, y 크기(magnitude) 체크를 위한 조건은 아래의 표 19와 같이 간략화될 수 있다.Conditions for checking the x and y magnitude of the base MV considered in the above-described embodiment may be simplified as shown in Table 19 below.
Figure PCTKR2020000067-appb-img-000019
Figure PCTKR2020000067-appb-img-000019
조건 1(참조 방향의 x, y 성분과 블록 사이즈)를 고려한 MMVD 오프셋의 스케일링 방법은 표 20과 같이 표현될 수 있다.The scaling method of the MMVD offset considering condition 1 (x, y component and block size in the reference direction) can be expressed as shown in Table 20.
Figure PCTKR2020000067-appb-img-000020
Figure PCTKR2020000067-appb-img-000020
또한, 조건 2(각 참조 방향의 x(또는 y) 성분과 블록 사이즈)를 고려한 MMVD 오프셋의 스케일링 방법은 표 21과 같이 표현될 수 있다.In addition, the scaling method of the MMVD offset considering condition 2 (x (or y) component and block size in each reference direction) may be expressed as Table 21.
Figure PCTKR2020000067-appb-img-000021
Figure PCTKR2020000067-appb-img-000021
이때, MMVD 오프셋 스케일링을 위한 조건으로서 항상 x(또는 y) 성분만을 고려하거나 블록의 크기에 따라 적응적으로 x, y 성분을 고려할 수 있다. 또한, MMVD가 적용되는 방향에 따라 선택적으로 x 또는 y 성분을 고려할 수 있다. 예를 들어, MMVD를 위한 방향이 x 축으로 결정된 경우 x 성분만이 고려되고, MMVD 방향이 y 축으로 결정된 경우 y 성분만이 고려될 수 있다.At this time, as a condition for MMVD offset scaling, only the x (or y) component is always considered, or the x and y components can be considered adaptively according to the block size. In addition, x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis.
조건 3(각 참조 방향의 x(또는 y) 성분만)을 고려한 MMVD 오프셋의 스케일링 방법은 표 22와 같이 표현될 수 있다.The scaling method of the MMVD offset considering condition 3 (only the x (or y) component in each reference direction) can be expressed as Table 22.
Figure PCTKR2020000067-appb-img-000022
Figure PCTKR2020000067-appb-img-000022
이때, MMVD 오프셋 스케일링을 위한 조건으로서 항상 x(또는 y) 성분만을 고려하거나 블록의 크기에 따라 적응적으로 x, y 성분을 고려할 수 있다. 또한, MMVD가 적용되는 방향에 따라 선택적으로 x 또는 y 성분을 고려할 수 있다. 예를 들어, MMVD를 위한 방향이 x 축으로 결정된 경우 x 성분만이 고려되고, MMVD 방향이 y 축으로 결정된 경우 y 성분만이 고려될 수 있다. 본 문서에서, 각 x, y 성분을 고려한다는 것의 의미는 x와 y를 모두 고려하거나, x와 y 중 하나를 고려한다는 것을 모두 포함한다. 또한, 기준 값(threshold)(T1)은 실시예에 따라 변경될 수 있다.At this time, as a condition for MMVD offset scaling, only the x (or y) component is always considered, or the x and y components can be considered adaptively according to the block size. In addition, x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis. In this document, the meaning of considering each x and y component includes both x and y, or both x and y. In addition, the reference value (threshold) T1 may be changed according to an embodiment.
또한, 조건 4(한쪽 참조 방향의 x, y 성분 및 블록 사이즈)를 고려하여 MMVD 오프셋을 스케일링하는 방법은 아래의 표 22와 같이 표현될 수 있다.Also, a method of scaling the MMVD offset in consideration of condition 4 (x, y components and block size in one reference direction) may be expressed as Table 22 below.
Figure PCTKR2020000067-appb-img-000023
Figure PCTKR2020000067-appb-img-000023
MMVD 오프셋의 스케일링을 위하여 L0, L1 리스트를 모두 고려하지 않고 한쪽 방향의 움직임 정보를 고려할 수 있다. 본 방법을 이용할 때 조건 1~3과 조합이 가능함은 당연하다. 또한, 한쪽 방향의 x 혹은 y 성분만이 고려될 수 있으며, 블록의 크기 및 움직임 벡터의 방향에 따라 x, y 성분이 적응적으로 고려될 수 있다. 또한, 각 비교 항목은 'or' 혹은 'and' 조건으로 변경될 수 있으며 기준 값 또한 변경될 수 있다.For scaling the MMVD offset, motion information in one direction may be considered without considering both L0 and L1 lists. It is natural that combinations with conditions 1 to 3 are possible when using this method. Also, only the x or y component in one direction may be considered, and the x and y components may be considered adaptively depending on the size of the block and the direction of the motion vector. In addition, each comparison item can be changed to'or' or'and' condition, and the reference value can also be changed.
MMVD 방향이 대각(diagonal) 방향을 지원하면, x, y 성분을 모두 고려하여 MMVD 오프셋을 스케일링할 수 있으며, 아래의 표 24와 같이 표현될 수 있다.If the MMVD direction supports a diagonal direction, the MMVD offset can be scaled considering both x and y components, and can be expressed as Table 24 below.
Figure PCTKR2020000067-appb-img-000024
Figure PCTKR2020000067-appb-img-000024
상술한 바와 같이, 베이스 MV의 x, y 해상도(resolution)를 고려하여 MMVD 오프셋을 스케일링하기 위한 방법은 아래의 표 25와 같이 표현될 수 있다.As described above, a method for scaling the MMVD offset in consideration of the x and y resolution of the base MV can be expressed as Table 25 below.
Figure PCTKR2020000067-appb-img-000025
Figure PCTKR2020000067-appb-img-000025
조건 1(각 참조 방향의 x, y 성분)를 고려하여 움직임 벡터의 해상도에 따라 MMVD 오프셋을 스케일링하는 방법은 아래의 표 26과 같이 표현될 수 있다.The method of scaling the MMVD offset according to the resolution of the motion vector in consideration of condition 1 (x and y components in each reference direction) may be expressed as Table 26 below.
Figure PCTKR2020000067-appb-img-000026
Figure PCTKR2020000067-appb-img-000026
또한, 조건 2(각 참조 방향의 x(y) 성분)를 고려하여 움직임 벡터의 해상도에 따라 MMVD 오프셋을 스케일링하는 방법은 아래의 표 27과 같이 표현될 수 있다.Also, a method of scaling the MMVD offset according to the resolution of the motion vector in consideration of condition 2 (the x(y) component in each reference direction) may be expressed as shown in Table 27 below.
Figure PCTKR2020000067-appb-img-000027
Figure PCTKR2020000067-appb-img-000027
이때, MMVD 오프셋 스케일링을 위한 조건으로서 항상 x(또는 y) 성분만을 고려하거나 블록의 크기에 따라 적응적으로 x, y 성분을 고려할 수 있다. 또한, MMVD가 적용되는 방향에 따라 선택적으로 x 또는 y 성분을 고려할 수 있다. 예를 들어, MMVD를 위한 방향이 x 축으로 결정된 경우 x 성분만이 고려되고, MMVD 방향이 y 축으로 결정된 경우 y 성분만이 고려될 수 있다. 본 문서에서, 각 x, y 성분을 고려한다는 것의 의미는 x와 y를 모두 고려하거나, x와 y 중 하나를 고려한다는 것을 모두 포함한다. 또한, 기준 값(threshold)(T1)은 실시예에 따라 변경될 수 있다.At this time, as a condition for MMVD offset scaling, only the x (or y) component is always considered, or the x and y components can be considered adaptively according to the block size. In addition, x or y components may be selectively considered according to the direction in which the MMVD is applied. For example, only the x component may be considered when the direction for the MMVD is determined on the x-axis, and only the y component may be considered when the MMVD direction is determined on the y-axis. In this document, the meaning of considering each x and y component includes both x and y, or both x and y. In addition, the reference value (threshold) T1 may be changed according to an embodiment.
또한, 조건 2(한쪽 방향의 x, y 성분)를 고려하여 움직임 벡터의 해상도에 따라 MMVD 오프셋을 스케일링하는 방법은 아래의 표 28과 같이 표현될 수 있다.In addition, considering the condition 2 (x, y components in one direction), a method of scaling the MMVD offset according to the resolution of the motion vector can be expressed as Table 28 below.
Figure PCTKR2020000067-appb-img-000028
Figure PCTKR2020000067-appb-img-000028
MMVD 오프셋의 스케일링을 위하여 L0, L1 리스트를 모두 고려하지 않고 한쪽 방향의 움직임 정보를 고려할 수 있다. 본 방법을 이용할 때 조건 1~3과 조합이 가능함은 당연하다. 또한, 한쪽 방향의 x 혹은 y 성분만이 고려될 수 있으며, 블록의 크기 및 움직임 벡터의 방향에 따라 x, y 성분이 적응적으로 고려될 수 있다. 또한, 각 비교 항목은 'or' 혹은 'and' 조건으로 변경될 수 있으며 기준 값 또한 변경될 수 있다.For scaling the MMVD offset, motion information in one direction may be considered without considering both L0 and L1 lists. It is natural that combinations with conditions 1 to 3 are possible when using this method. Also, only the x or y component in one direction may be considered, and the x and y components may be considered adaptively depending on the size of the block and the direction of the motion vector. In addition, each comparison item can be changed to'or' or'and' condition, and the reference value can also be changed.
도 27은 본 명세서의 실시예에 따른 비디오 신호를 처리하기 위한 흐름도로서, 도 27a는 비디오 신호의 디코딩 방법, 도 27b는 비디오 신호의 인코딩 방법의 예를 도시한다. 도 27a 및 27b의 동작들은 인코딩 장치(100)의 인터 예측부(180) 또는 디코딩 장치(200)의 인터 예측부(260)의해 수행될 수 있다. 또한, 도 27a 및 도 27b의 동작들은 비디오 신호 처리 장치(500)의 프로세서(510)에 의해 수행될 수 있다. 27 is a flowchart for processing a video signal according to an embodiment of the present disclosure, and FIG. 27A shows an example of a video signal decoding method and FIG. 27B an example of a video signal encoding method. The operations of FIGS. 27A and 27B may be performed by the inter prediction unit 180 of the encoding device 100 or the inter prediction unit 260 of the decoding device 200. In addition, the operations of FIGS. 27A and 27B may be performed by the processor 510 of the video signal processing apparatus 500.
도 27a를 참고하면, 디코딩 장치(200)는 머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득한다(S2710). 예를 들어, 디코딩 장치(200)는 도 16의 공간적 주변 블록들(A0, A1, B0, B1, B2) 및 시간적 주변 블록들로부터 머지 후보 리스트를 구성하고, 머지 후보 리스트에서 머지 인덱스에 의해 지시되는 머지 후보를 결정한다. 디코딩 장치(200)는 머지 후보에 해당하는 움직임 벡터 및 참조 픽처에 대한 정보(참조 픽처 인덱스)를 획득할 수 있다.Referring to FIG. 27A, the decoding apparatus 200 obtains at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on the merge index (S2710). For example, the decoding apparatus 200 constructs a merge candidate list from the spatial neighboring blocks A0, A1, B0, B1, and B2 of FIG. 16 and temporal neighboring blocks, and is indicated by the merge index in the merge candidate list Decide which candidates to merge. The decoding apparatus 200 may obtain information (reference picture index) for a motion vector and a reference picture corresponding to a merge candidate.
S2720 단계에서, 디코딩 장치(200)는 MMVD 길이 인덱스에 기반하여 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정한다. MMVD 오프셋은 머지 인덱스에 기반하여 획득된 움직임 벡터의 조절(refinement)를 위한 값을 나타낸다. MMVD 길이 인덱스는 복수개의 MMVD 오프셋 후보 값들 중 하나를 지시하는 인덱스를 나타낸다.In step S2720, the decoding apparatus 200 determines an MMVD offset applied to at least one motion vector based on the MMVD length index. The MMVD offset represents a value for refinement of a motion vector obtained based on a merge index. The MMVD length index indicates an index indicating one of a plurality of MMVD offset candidate values.
본 명세서의 실시예에 따르면, 디코딩 장치(200)는, 상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, 상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, 상기 제2 오프셋 값을 MMVD 오프셋으로서 결정할 수 있다. 예를 들어, 디코딩 장치(200)는 표 17과 같이 움직임 벡터의 크기(MV)와 현재 블록의 너비(W) 및 높이(H)를 고려하여 MMVD 오프셋의 스케일링을 위한 시프트 값(예: 0, 1, 2)을 결정할 수 있다.According to an embodiment of the present disclosure, the decoding apparatus 200 determines a first offset value associated with the length index, and based on at least one of the at least one motion vector or the size of the current block, the first offset A second offset value may be determined by scaling the value by a scale value, and the second offset value may be determined as an MMVD offset. For example, as shown in Table 17, the decoding apparatus 200 considers the magnitude (MV) of the motion vector and the width (W) and height (H) of the current block to shift values for scaling the MMVD offset (eg, 0, 1, 2) can be determined.
일 실시예에서, 스케일 값은 적어도 하나의 움직임 벡터의 크기, 상기 적어도 하나의 움직임 벡터에 의해 지시되는 좌표의 해상도 중 적어도 하나에 기반하여 결정될 수 있다. 예를 들어, 디코딩 장치(200)는 표 17과 같이 움직임 벡터의 크기(MV)를 고려하여 MMVD 오프셋의 스케일링을 위한 시프트 값을 결정하거나, 표 18와 같이 움직임 벡터의 해상도를 고려하여 MMVD 오프셋의 스케일링을 위한 시프트 값을 결정할 수 있다.In one embodiment, the scale value may be determined based on at least one of the size of at least one motion vector and the resolution of coordinates indicated by the at least one motion vector. For example, the decoding apparatus 200 determines the shift value for scaling the MMVD offset in consideration of the magnitude (MV) of the motion vector, as shown in Table 17, or the MMVD offset in consideration of the resolution of the motion vector as shown in Table 18. The shift value for scaling can be determined.
일 실시예에서, 제1 오프셋 값은 표 14 또는 표 16과 같이 사전에 정의된 테이블에서 MMVD 길이 인덱스에 의해 지시되는 값을 의미할 수 있다.In one embodiment, the first offset value may mean a value indicated by the MMVD length index in a table previously defined as in Table 14 or Table 16.
또한, 적어도 하나의 움직임 벡터는 수평 방향 성분(x 성분) 및 수직 방향 성분(y 성분)으로 구성되고, MMVD 오프셋은 상기 수평 방향 성분 또는 수직 방향 성분 중 적어도 하나에 적용될 수 있다. 또한, MMVD 오프셋의 스케일링을 위한 조건을 판단함에 있어 움직임 벡터의 수평 방향 성분과 수직 방향 성분이 모두 고려되거나, 수평 방향 성분과 수직 방향 성분 중 하나만이 고려될 수 있다. Further, at least one motion vector is composed of a horizontal component (x component) and a vertical component (y component), and an MMVD offset may be applied to at least one of the horizontal component or the vertical component. Further, in determining the condition for scaling the MMVD offset, both the horizontal component and the vertical component of the motion vector may be considered, or only one of the horizontal component and the vertical component may be considered.
일 실시예에서, 적어도 하나의 움직임 벡터는 제1 참조 픽처 리스트(L0)와 관련된 제1 움직임 벡터(L0 움직임 벡터) 및 제2 참조 픽처 리스트(L1)와 관련된 제2 움직임 벡터(L1 움직임 벡터)를 포함하고, 제2 오프셋 값은 제1 움직임 벡터 또는 제2 움직임 벡터 중 적어도 하나에 기반하여 결정될 수 있다. 즉, MMVD 오프셋을 스케일링하기 위한 조건은 L0 움직임 벡터와 L1 움직임 벡터를 모두 고려하거나, L1 움직임 벡터 또는 L1 움직임 벡터 중 하나만이 고려될 수 있다.In one embodiment, the at least one motion vector includes a first motion vector (L0 motion vector) associated with the first reference picture list (L0) and a second motion vector (L1 motion vector) associated with the second reference picture list (L1). And a second offset value may be determined based on at least one of the first motion vector or the second motion vector. That is, as a condition for scaling the MMVD offset, both the L0 motion vector and the L1 motion vector may be considered, or only one of the L1 motion vector or the L1 motion vector may be considered.
S2730 단계에서, 디코딩 장치(200)는 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성한다. 여기서, 디코딩 장치(200)는 MMVD 방향 인덱스를 사용하여, MMVD 오프셋의 x 값 또는 y 값에 적용되는 부호를 결정하고, MMVD 방향 인덱스에 의해 결정되는 부호를 MMVD 오프셋을 적용하고, 부호가 적용된 MMVD 오프셋 값을 움직임 벡터에 더하고, MMVD 오프셋이 적용된 움직임 벡터를 사용하여 예측 샘플을 생성할 수 있다.In operation S2730, the decoding apparatus 200 generates a prediction sample of the current block based on at least one motion vector to which an MMVD offset is applied and a reference picture associated with the merge index. Here, the decoding apparatus 200 determines the sign applied to the x or y value of the MMVD offset using the MMVD direction index, applies the MMVD offset to the sign determined by the MMVD direction index, and applies the MMVD sign. An offset value may be added to a motion vector, and a prediction sample may be generated using a motion vector to which an MMVD offset is applied.
도 27b는 도 27a에 대응하는 인코딩 방법을 도시한다. 도 27b를 참고하면, S2760 단계에서, 인코딩 장치(100)는 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처를 결정한다. 27B shows an encoding method corresponding to FIG. 27A. Referring to FIG. 27B, in step S2760, the encoding apparatus 100 determines at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block.
S2770 단계에서, 인코딩 장치(100)는 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정한다. 예를 들어, 인코딩 장치(100)는 도 16의 공간적 주변 블록들(A0, A1, B0, B1, B2) 및 시간적 주변 블록들로부터 머지 후보 리스트를 구성하고, 머지 후보 리스트에서 머지 인덱스에 의해 지시되는 머지 후보를 결정한다. 인코딩 장치(200)는 머지 후보에 해당하는 움직임 벡터 및 참조 픽처에 대한 정보(참조 픽처 인덱스)를 생성/코딩할 수 있다.In step S2770, the encoding apparatus 100 determines an MMVD offset applied to at least one motion vector. For example, the encoding apparatus 100 constructs a merge candidate list from the spatial neighboring blocks A0, A1, B0, B1, and B2 of FIG. 16 and temporal neighboring blocks, and is indicated by the merge index in the merge candidate list Decide which candidates to merge. The encoding apparatus 200 may generate/code information (reference picture index) for a motion vector and a reference picture corresponding to a merge candidate.
S2780 단계에서, 인코딩 장치(100)는 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처에 기반하여 현재 블록에 대한 예측을 수행한다. MMVD 오프셋은 머지 인덱스에 기반하여 획득된 움직임 벡터의 조절(refinement)를 위한 값을 나타낸다. 인코딩 장치(100)는 MMVD 길이 인덱스를 생성/코딩할 수 있으며, MMVD 길이 인덱스는 복수개의 MMVD 오프셋 후보 값들 중 하나를 지시하는 인덱스를 나타낸다.In operation S2780, the encoding apparatus 100 performs prediction on the current block based on at least one motion vector to which the MMVD offset is applied and at least one reference picture. The MMVD offset represents a value for refinement of a motion vector obtained based on a merge index. The encoding apparatus 100 may generate/code an MMVD length index, and the MMVD length index indicates an index indicating one of a plurality of MMVD offset candidate values.
일 실시예에서, 인코딩 장치(100)는 MMVD 오프셋의 x 값 또는 y 값에 적용되는 부호를 결정하고, 결정된 부호를 MMVD 오프셋을 적용하고, 부호가 적용된 MMVD 오프셋 값을 움직임 벡터에 더하고, MMVD 오프셋이 적용된 움직임 벡터를 사용하여 예측 샘플을 생성할 수 있다. In one embodiment, the encoding apparatus 100 determines the sign applied to the x or y value of the MMVD offset, applies the determined sign to the MMVD offset, adds the signed MMVD offset value to the motion vector, and the MMVD offset A predictive sample can be generated using this applied motion vector.
S2790 단계에서, 인코딩 장치(100)는 예측과 관련된 정보를 코딩한다. 여기서, 예측과 관련된 정보는 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처와 관련된 머지 인덱스(예: merge index), 그리고 MMVD 오프셋 값을 지시하는 MMVD 길이(distance) 인덱스(예: mmvd_distance_idx)를 포함할 수 있다. 또한, 예측과 관련된 정보는 MMVD 오프셋에 적용된 부호에 관한 정보(예: mmvd_direction_idx)를 코딩할 수 있다.In operation S2790, the encoding apparatus 100 codes information related to prediction. Here, the prediction-related information includes at least one motion vector, a merge index (eg, merge index) associated with the at least one reference picture, and an MMVD distance index (eg, mmvd_distance_idx) indicating an MMVD offset value. can do. In addition, information related to prediction may code information related to a sign applied to an MMVD offset (eg, mmvd_direction_idx).
특히, 본 명세서의 실시예에 따른 MMVD 오프셋을 결정하기 위하여, 인코딩 장치(100)는 MMVD 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, 상기 적어도 하나의 움직임 벡터에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, 제2 오프셋 값을 MMVD 오프셋으로서 결정할 수 있다.In particular, in order to determine the MMVD offset according to an embodiment of the present specification, the encoding apparatus 100 determines a first offset value associated with the MMVD length index, and determines the first offset value based on the at least one motion vector. The second offset value can be determined by scaling by the scale value, and the second offset value can be determined as the MMVD offset.
일 실시예에서, 스케일 값은 적어도 하나의 움직임 벡터의 크기, 상기 적어도 하나의 움직임 벡터에 의해 지시되는 좌표의 해상도 중 적어도 하나에 기반하여 결정될 수 있다. 예를 들어, 인코딩 장치(200)는 표 17과 같이 움직임 벡터의 크기(MV)를 고려하여 MMVD 오프셋의 스케일링을 위한 시프트 값을 결정하거나, 표 18와 같이 움직임 벡터의 해상도를 고려하여 MMVD 오프셋의 스케일링을 위한 시프트 값을 결정할 수 있다.In one embodiment, the scale value may be determined based on at least one of the size of at least one motion vector and the resolution of coordinates indicated by the at least one motion vector. For example, the encoding apparatus 200 determines the shift value for scaling the MMVD offset in consideration of the magnitude (MV) of the motion vector, as shown in Table 17, or considers the resolution of the motion vector, as shown in Table 18, of the MMVD offset. The shift value for scaling can be determined.
일 실시예에서, 제1 오프셋 값은 표 14 또는 표 16과 같이 사전에 정의된 테이블에서 MMVD 길이 인덱스에 의해 지시되는 값을 의미할 수 있다.In one embodiment, the first offset value may mean a value indicated by the MMVD length index in a table previously defined as in Table 14 or Table 16.
또한, 적어도 하나의 움직임 벡터는 수평 방향 성분(x 성분) 및 수직 방향 성분(y 성분)으로 구성되고, MMVD 오프셋은 상기 수평 방향 성분 또는 수직 방향 성분 중 적어도 하나에 적용될 수 있다. 또한, MMVD 오프셋의 스케일링을 위한 조건을 판단함에 있어 움직임 벡터의 수평 방향 성분과 수직 방향 성분이 모두 고려되거나, 수평 방향 성분과 수직 방향 성분 중 하나만이 고려될 수 있다. Further, at least one motion vector is composed of a horizontal component (x component) and a vertical component (y component), and an MMVD offset may be applied to at least one of the horizontal component or the vertical component. Further, in determining the condition for scaling the MMVD offset, both the horizontal component and the vertical component of the motion vector may be considered, or only one of the horizontal component and the vertical component may be considered.
일 실시예에서, 적어도 하나의 움직임 벡터는 제1 참조 픽처 리스트(L0)와 관련된 제1 움직임 벡터(L0 움직임 벡터) 및 제2 참조 픽처 리스트(L1)와 관련된 제2 움직임 벡터(L1 움직임 벡터)를 포함하고, 제2 오프셋 값은 제1 움직임 벡터 또는 제2 움직임 벡터 중 적어도 하나에 기반하여 결정될 수 있다. 즉, MMVD 오프셋을 스케일링하기 위한 조건은 L0 움직임 벡터와 L1 움직임 벡터를 모두 고려하거나, L1 움직임 벡터 또는 L1 움직임 벡터 중 하나만이 고려될 수 있다.In one embodiment, the at least one motion vector includes a first motion vector (L0 motion vector) associated with the first reference picture list (L0) and a second motion vector (L1 motion vector) associated with the second reference picture list (L1). And a second offset value may be determined based on at least one of the first motion vector or the second motion vector. That is, as a condition for scaling the MMVD offset, both the L0 motion vector and the L1 motion vector may be considered, or only one of the L1 motion vector or the L1 motion vector may be considered.
본 명세서에서 설명한 실시예들은 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다. 예를 들어, 각 도면에서 도시한 기능 유닛들은 컴퓨터, 프로세서, 마이크로 프로세서, 컨트롤러 또는 칩 상에서 구현되어 수행될 수 있다.The embodiments described herein may be implemented and implemented on a processor, microprocessor, controller, or chip. For example, the functional units shown in each figure may be implemented and implemented on a computer, processor, microprocessor, controller, or chip.
본 명세서가 적용되는 처리 방법은 컴퓨터로 실행되는 프로그램의 형태로 생산될 수 있으며, 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 본 명세서에 따른 데이터 구조를 가지는 멀티미디어 데이터도 또한 컴퓨터가 판독할 수 있는 기록 매체에 저장될 수 있다. 상기 컴퓨터가 판독할 수 있는 기록 매체는 컴퓨터로 읽을 수 있는 데이터가 저장되는 모든 종류의 저장 장치 및 분산 저장 장치를 포함한다. 상기 컴퓨터가 판독할 수 있는 기록 매체는, 예를 들어, 블루레이 디스크(BD), 범용 직렬 버스(USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, 자기 테이프, 플로피 디스크 및 광학적 데이터 저장 장치를 포함할 수 있다. 또한, 상기 컴퓨터가 판독할 수 있는 기록 매체는 반송파(예를 들어, 인터넷을 통한 전송)의 형태로 구현된 미디어를 포함한다. 또한, 인코딩 방법으로 생성된 비트스트림이 컴퓨터가 판독할 수 있는 기록 매체에 저장되거나 유무선 통신 네트워크를 통해 전송될 수 있다.The processing method to which the present specification is applied may be produced in the form of a computer-executable program, and may be stored in a computer-readable recording medium. Multimedia data having a data structure according to the present specification may also be stored in a computer-readable recording medium. The computer-readable recording medium includes all kinds of storage devices and distributed storage devices in which computer-readable data is stored. The computer-readable recording medium includes, for example, Blu-ray Disc (BD), Universal Serial Bus (USB), ROM, PROM, EPROM, EEPROM, RAM, CD-ROM, magnetic tape, floppy disk and optical. It may include a data storage device. In addition, the computer-readable recording medium includes media implemented in the form of a carrier wave (for example, transmission via the Internet). In addition, the bitstream generated by the encoding method may be stored in a computer-readable recording medium or transmitted through a wired or wireless communication network.
또한, 본 명세서의 실시예는 프로그램 코드에 의한 컴퓨터 프로그램 제품으로 구현될 수 있고, 상기 프로그램 코드는 본 명세서의 실시예에 의해 컴퓨터에서 수행될 수 있다. 상기 프로그램 코드는 컴퓨터에 의해 판독가능한 캐리어 상에 저장될 수 있다.Further, the embodiments of the present specification may be implemented as a computer program product using program codes, and the program codes may be executed on a computer by the embodiments of the present specification. The program code can be stored on a computer readable carrier.
본 명세서가 적용되는 디코딩 장치 및 인코딩 장치는 디지털 기기(digital device)에 포함될 수 있다. "디지털 기기(digital device)"라 함은 예를 들어, 데이터, 컨텐트, 서비스 등을 송신, 수신, 처리 및 출력 중 적어도 하나를 수행 가능한 모든 디지털 기기를 포함한다. 여기서, 디지털 기기가 데이터, 컨텐트, 서비스 등을 처리하는 것은, 데이터, 컨텐트, 서비스 등을 인코딩 및/또는 디코딩하는 동작을 포함한다. 이러한 디지털 기기는, 유/무선 네트워크(wire/wireless network)를 통하여 다른 디지털 기기, 외부 서버(external server) 등과 페어링 또는 연결(pairing or connecting)(이하 '페어링')되어 데이터를 송수신하며, 필요에 따라 변환(converting)한다.The decoding device and encoding device to which the present specification is applied may be included in a digital device. The term "digital device" includes all digital devices capable of performing at least one of transmission, reception, processing, and output, for example, of data, content, and services. Here, the processing of the data, content, service, etc. by the digital device includes an operation of encoding and/or decoding data, content, service, and the like. These digital devices are paired or connected (hereinafter referred to as'pairing') with other digital devices, external servers, etc. through a wired/wireless network to transmit and receive data. Convert it accordingly.
디지털 기기는 예를 들어, 네트워크 TV(network TV), HBBTV(Hybrid Broadcast Broadband TV), 스마트 TV(Smart TV), IPTV(internet protocol television), PC(Personal Computer) 등과 같은 고정형 기기(standing device)와, PDA(Personal Digital Assistant), 스마트 폰(Smart Phone), 태블릿 PC(Tablet PC), 노트북 등과 같은 모바일 기기(mobile device or handheld device)를 모두 포함한다. 본 명세서에서는 편의상 후술하는 도 31에서는 디지털 TV를, 도 30에서는 모바일 기기를 디지털 기기의 실시예로 도시하고 설명한다.Digital devices include, for example, fixed devices such as network TV, HBBTV (Hybrid Broadcast Broadband TV), smart TV (Smart TV), IPTV (internet protocol television), PC (Personal Computer), and the like. , PDA (Personal Digital Assistant), smart phones (Smart Phone), tablet PCs (Tablet PC), notebooks, mobile devices (mobile devices or handheld devices). For convenience, a digital TV is illustrated in FIG. 31 and a mobile device in FIG. 30, which will be described later, for convenience.
한편, 본 명세서에서 기술되는 "유/무선 네트워크"라 함은, 디지털 기기들 또는 디지털 기기와 외부 서버 사이에서 상호 연결 또는/및 데이터 송수신을 위해 다양한 통신 규격 내지 프로토콜을 지원하는 통신 네트워크를 통칭한다. 이러한 유/무선 네트워크는 규격에 의해 현재 또는 향후 지원될 통신 네트워크와 그를 위한 통신 프로토콜을 모두 포함할 수 있는바 예컨대, USB(Universal Serial Bus), CVBS(Composite Video Banking Sync), 컴포넌트, S-비디오(아날로그), DVI(Digital Visual Interface), HDMI(High Definition Multimedia Interface), RGB, D-SUB와 같은 유선 연결을 위한 통신 규격 내지 프로토콜과, 블루투스(Bluetooth), RFID(Radio Frequency Identification), 적외선 통신(IrDA, infrared Data Association), UWB(Ultra Wideband), 지그비(ZigBee), DLNA(Digital Living Network Alliance), WLAN(Wireless LAN)(Wi-Fi), Wibro(Wireless broadband), Wimax(World Interoperability for Microwave Access), HSDPA(High Speed Downlink Packet Access), LTE(Long Term Evolution), Wi-Fi 다이렉트(Direct)와 같은 무선 연결을 위한 통신 규격에 의하여 형성될 수 있다.Meanwhile, the term "wired/wireless network" described herein refers to a communication network that supports various communication standards or protocols for interconnection and/or data transmission and reception between digital devices or digital devices and external servers. . Such a wired/wireless network may include both current and future communication networks to be supported by the standard and communication protocols therefor, such as Universal Serial Bus (USB), Composite Video Banking Sync (CVBS), component, and S-Video. (Analog), communication standards or protocols for wired connections such as DVI (Digital Visual Interface), HDMI (High Definition Multimedia Interface), RGB, D-SUB, and Bluetooth, RFID (Radio Frequency Identification), and infrared communication (Infrared Data Association (IrDA), Ultra Wideband (UWB), ZigBee, Digital Living Network Alliance (DLNA), Wireless LAN (WLAN) (Wi-Fi), Wireless broadband (Wibro), World Interoperability for Microwave (Wimax) Access), HSDPA (High Speed Downlink Packet Access), LTE (Long Term Evolution), Wi-Fi Direct (Direct) can be formed by a communication standard for a wireless connection.
이하 본 명세서에서 단지 디지털 기기로 명명하는 경우에는 문맥에 따라 고정형 기기 또는 모바일 기기를 의미하거나 양자를 모두 포함하는 의미일 수도 있다.Hereinafter, in the case of merely referring to a digital device in the present specification, it may mean a fixed device or a mobile device or include both depending on context.
한편, 디지털 기기는 예컨대, 방송 수신 기능, 컴퓨터 기능 내지 지원, 적어도 하나의 외부 입력(external input)을 지원하는 지능형 기기로서, 상술한 유/무선 네트워크를 통해 이메일(e-mail), 웹 브라우징(web browsing), 뱅킹(banking), 게임(game), 애플리케이션(application) 등을 지원할 수 있다. 더불어, 상기 디지털 기기는, 수기 방식의 입력 장치, 터치 스크린(touch screen), 공간 리모콘 등 적어도 하나의 입력 또는 제어 수단(이하 입력수단)을 지원하기 위한 인터페이스(interface)를 구비할 수 있다. 디지털 기기는, 표준화된 범용 OS(operating system)를 이용할 수 있다. 예를 들어, 디지털 기기는 범용의 OS 커널(kernel) 상에 다양한 애플리케이션(application)을 추가(adding), 삭제(deleting), 수정(amending), 업데이트(updating) 등을 할 수 있으며, 그를 통해 더욱 사용자 친화적인(user-friendly) 환경을 구성하여 제공할 수 있다.Meanwhile, the digital device is an intelligent device that supports, for example, a broadcast reception function, a computer function or support, and at least one external input, e-mail, web browsing through a wired/wireless network described above ( It can support web browsing, banking, games, and applications. In addition, the digital device may include an interface for supporting at least one input or control means (hereinafter referred to as an input means) such as a handwritten input device, a touch screen, and a space remote control. The digital device can use a standardized general-purpose operating system (OS). For example, a digital device can add, delete, modify, and update various applications on a general-purpose OS kernel. You can configure and provide a user-friendly environment.
한편, 본 명세서에서 기술되는 외부 입력은, 외부 입력 기기 즉, 상술한 디지털 기기와 유/무선으로 연결되어 그를 통해 관련 데이터를 송/수신하여 처리 가능한 모든 입력 수단 내지 디지털 기기를 포함한다. 여기서, 상기 외부 입력은 예를 들어, HDMI(High Definition Multimedia Interface), 플레이 스테이션(play station)이나 엑스 박스(X-Box)와 같은 게임 기기, 스마트 폰, 태블릿 PC, 프린터기, 스마트 TV와 같은 디지털 기기들을 모두 포함한다.On the other hand, the external input described in this specification includes an external input device, that is, all input means or digital devices connected to the above-mentioned digital device by wire/wireless and capable of transmitting/receiving related data through it. Here, the external input is, for example, a high-definition multimedia interface (HDMI), a game device such as a play station or an X-box, a smart phone, a tablet PC, a printer, a digital digital device such as a smart TV. Includes all devices.
또한, 본 명세서에서 기술되는 "서버(server)"라 함은, 클라이언트(client), 즉, 상술한 디지털 기기로 데이터를 공급하는 모든 디지털 기기 내지 시스템을 포함하는 의미로, 프로세서(processor)로 불리기도 한다. 이러한 서버로는 예컨대, 웹 페이지 내지 웹 컨텐트를 제공하는 포털 서버(portal server), 광고 데이터(advertising data)를 제공하는 광고 서버(advertising server), 컨텐트를 제공하는 컨텐트 서버(content server), SNS(Social Network Service) 서비스를 제공하는 SNS 서버(SNS server), 제조업체에서 제공하는 서비스 서버(service server or manufacturing server) 등이 포함될 수 있다.In addition, the term "server (server)" described in this specification means a client, that is, includes all digital devices or systems that supply data to the digital devices described above, and is called a processor. Also. Examples of such a server include a web page or a portal server providing web content, an advertising server providing advertising data, a content server providing content, and an SNS Social Network Service) may include an SNS server providing a service, a service server provided by a manufacturer, or a manufacturing server.
그 밖에, 본 명세서 기술되는 "채널(channel)"이라 함은, 데이터를 송수신하기 위한 경로(path), 수단(means) 등을 의미하는 것으로, 방송 채널(broadcasting channel)을 예로 들 수 있다. 여기서, 방송 채널은 디지털 방송의 활성화에 따라 피지컬 채널(physical channel), 가상 채널(virtual channel), 논리 채널(logical channel)등의 용어로 표현된다. 방송 채널은 방송망이라 불릴 수 있다. 이와 같이, 방송 채널은 방송국에서 제공하는 방송 컨텐트를 제공 또는 수신기에서 접근하기 위한 채널을 말하는 것으로, 상기 방송 컨텐트는 주로 실시간 방송(real-time broadcasting)에 기초하는바 라이브 채널(live channel)이라고도 한다. 다만, 최근에는 방송을 위한 매체(medium)가 더욱 다양화되어 실시간 방송 이외에 비실시간(non-real time) 방송도 활성화되고 있어 라이브 채널은 단지 실시간 방송뿐만 아니라 경우에 따라서는 비실시간 방송을 포함한 방송 채널 전체를 의미하는 용어로 이해될 수도 있다.In addition, the "channel (channel)" described herein means a path (path), means (means), etc. for transmitting and receiving data, for example, a broadcasting channel (broadcasting channel). Here, the broadcast channel is expressed in terms of a physical channel, a virtual channel, and a logical channel according to the activation of digital broadcasting. A broadcast channel can be called a broadcast network. As described above, the broadcast channel refers to a channel for providing or accessing broadcast content provided by a broadcasting station, and the broadcast content is mainly based on real-time broadcasting and is also called a live channel. . However, recently, the medium for broadcasting has become more diversified, and non-real time broadcasting is also activated in addition to real-time broadcasting, so the live channel is not only real-time broadcasting, but in some cases, non-real-time broadcasting. It may also be understood as a term meaning the entire channel.
본 명세에서는 상술한 방송 채널 이외에 채널과 관련하여 "임의 채널(arbitrary channel)"를 더 정의한다. 상기 임의 채널은, 방송 채널과 함께 EPG(Electronic Program Guide)와 같은 서비스 가이드(service guide)와 함께 제공될 수도 있고, 임의 채널만으로 서비스 가이드, GUI(Graphic User Interface) 또는 OSD 화면(On-Screen Display screen)를 구성/제공될 수도 있다.In this specification, "arbitrary channel" is further defined in relation to a channel other than the above-described broadcast channel. The arbitrary channel may be provided together with a service guide such as an electronic program guide (EPG) along with a broadcast channel, or a service guide, a GUI (Graphic User Interface) or an OSD screen (On-Screen Display) with only any channel. screen).
한편, 송수신기 사이에 미리 약속된 채널 넘버를 가지는 방송 채널과 달리, 임의 채널은 수신기에서 임의로 할당하는 채널로서 상기 방송 채널을 표현하기 위한 채널 넘버와는 기본적으로 중복되지 않는 채널 넘버가 할당된다. 예컨대, 수신기는 특정 방송 채널을 튜닝하면, 튜닝된 채널을 통하여 방송 컨텐트와 그를 위한 시그널링 정보(signaling information)를 전송하는 방송 신호를 수신한다. 여기서, 수신기는 상기 시그널링 정보로부터 채널 정보를 파싱(parsing)하고, 파싱된 채널 정보에 기초하여 채널 브라우저(channel browser), EPG 등을 구성하여 사용자에게 제공한다. 사용자는 입력 수단을 통해 채널 전환 요청을 하면, 수신기는 그에 대응하는 방식이다.On the other hand, unlike a broadcast channel having a predetermined channel number between transceivers, a random channel is a channel randomly allocated by a receiver, and a channel number that is not basically overlapped with a channel number for expressing the broadcast channel is allocated. For example, when a specific broadcast channel is tuned, the receiver receives a broadcast signal that transmits broadcast content and signaling information therefor through the tuned channel. Here, the receiver parses channel information from the signaling information, and configures a channel browser, an EPG, and the like based on the parsed channel information and provides it to the user. When the user makes a channel change request through the input means, the receiver responds accordingly.
이와 같이, 방송 채널은 송수신단 사이에 미리 약속된 내용이므로, 임의 채널을 방송 채널과 중복 할당하는 경우에는 사용자의 혼동을 초래하거나 혼동 가능성이 존재하므로, 전술한 바와 같이 중복 할당하지 않는 것이 바람직하다. 한편, 상기와 같이 임의 채널 넘버를 방송 채널 넘버와 중복 할당하지 않더라도 사용자의 채널 서핑 과정에서 여전히 혼동 우려가 있는바, 이를 고려하여 임의 채널 넘버를 할당하는 것이 요구된다. 왜냐하면, 본 명세서에 따른 임의 채널 역시, 종래 방송 채널과 동일하게 입력 수단을 통한 사용자의 채널 전환 요청에 따라 동일한 방식으로 대응하여 방송 채널처럼 접근되도록 구현할 수 있기 때문이다. 따라서, 임의 채널 넘버는, 사용자의 임의 채널 접근 편의와 방송 채널 넘버와의 구분 내지 식별 편의를 위하여, 방송 채널과 같이 숫자 형태가 아닌 임의 채널-1, 임의 채널-2 등과 같이 문자가 병기된 형태로 정의하고 표시할 수 있다. 한편, 이 경우, 비록 임의 채널 넘버의 표시는 임의 채널-1과 같이 문자가 병기된 형태이나 수신기 내부적으로는 상기 방송 채널의 넘버와 같이 숫자 형태로 인식하고 구현될 수 있다. 그 밖에, 임의 채널 넘버는, 방송 채널과 같이 숫자 형태로 제공될 수도 있으며, 동영상 채널-1, 타이틀-1, 비디오-1 등과 같이 방송 채널과 구분 가능한 다양한 방식으로 채널 넘버를 정의하고 표시할 수도 있다.As described above, since the broadcast channel is a content previously promised between the transmitting and receiving terminals, when a random channel is repeatedly allocated with the broadcast channel, it may cause confusion or a confusion of the user. . On the other hand, even if the random channel number is not duplicated with the broadcast channel number as described above, there is still a confusion in the channel surfing process of the user, and it is required to allocate the random channel number in consideration of this. This is because any channel according to the present specification can also be implemented to be accessed as a broadcast channel in the same manner in response to a user's request to switch a channel through an input means in the same way as a conventional broadcast channel. Accordingly, the random channel number is a type in which characters are written in parallel, such as random channel-1, random channel-2, and the like, for a convenience of discrimination or identification between a user's random channel access and a broadcast channel number. It can be defined and marked as. On the other hand, in this case, although the display of an arbitrary channel number may be realized in the form of a character in parallel as in random channel-1, or in the form of a number in the receiver, as in the number of the broadcast channel. In addition, an arbitrary channel number may be provided in a numeric form, such as a broadcast channel, and a channel number may be defined and displayed in various ways distinguishable from a broadcast channel, such as video channel-1, title-1, and video-1. have.
디지털 기기는, 웹 서비스(web service)를 위해 웹 브라우저(web browser)를 실행하여 다양한 형태의 웹 페이지(web page)를 사용자에게 제공한다. 여기서, 상기 웹 페이지에는 동영상(video content)이 포함된 웹 페이지도 포함되는데, 본 명세서에서는 동영상을 웹 페이지로부터 별도로 또는 독립적으로 분리하여 처리한다. 그리고 상기 분리되는 동영상은, 전술한 임의 채널 넘버를 할당하고, 서비스 가이드 등을 통해 제공하고, 사용자가 서비스 가이드나 방송 채널 시청 과정에서 채널 전환 요청에 따라 출력되도록 구현할 수 있다. 그 밖에, 웹 서비스 이외에도 방송 컨텐트, 게임, 애플리케이션 등의 서비스에 대해서도, 소정 컨텐트, 이미지, 오디오, 항목 등을 상기 방송 컨텐트, 게임, 애플리케이션 자체로부터 독립적으로 분리 처리하고, 그 재생, 처리 등을 위해 임의 채널 넘버를 할당하고 상술한 바와 같이, 구현할 수 있다.The digital device executes a web browser for a web service, and provides various types of web pages to the user. Here, the web page includes a web page including a video content, and in this specification, the video is processed separately or independently from the web page. In addition, the separated video can be implemented by allocating an arbitrary channel number as described above, providing it through a service guide, etc., and outputting it according to a channel switching request in a process of viewing a service guide or a broadcast channel. In addition, for services such as broadcast content, games, and applications, in addition to web services, predetermined content, images, audio, items, etc. are separately processed from the broadcast content, games, and applications themselves, and for playback, processing, etc. Any channel number can be assigned and implemented as described above.
도 28은 디지털 기기를 포함한 서비스 시스템(service system)의 일 예를 개략적으로 나타낸 도면이다.28 is a diagram schematically showing an example of a service system including a digital device.
디지털 기기를 포함한 서비스 시스템은, 컨텐트 제공자(Content Provider; CP)(2810), 서비스 제공자(Service Provider; SP)(2820), 네트워크 제공자(Network Provider; NP)(2830) 및 HNED(Home Network End User)(Customer)(2840)를 포함한다. 여기서, HNED(2840)는 예를 들어, 클라이언트(2800) 즉, 디지털 기기이다. 컨텐트 제공자(2810)는, 각종 컨텐트를 제작하여 제공한다. 이러한 컨텐트 제공자(2810)로 도 34에 도시된 바와 같이, 지상파 방송 송출자(terrestrial broadcaster), 케이블 방송 사업자(cable SO (System Operator)) 또는 MSO (Multiple SO), 위성 방송 송출자(satellite broadcaster), 다양한 인터넷 방송 송출자(Internet broadcaster), 개인 컨텐트 제공자들(Private CPs) 등을 예시할 수 있다. 한편, 컨텐트 제공자(2810)는, 방송 컨텐트 외에도 다양한 애플리케이션 등을 제공한다.Service systems including digital devices include a content provider (CP) 2810, a service provider (SP) 2820, a network provider (NP) 2830, and a home network end user (HNED). ) (Customer) 2840. Here, the HNED 2840 is, for example, a client 2800, that is, a digital device. The content provider 2810 produces and provides various content. As shown in FIG. 34 as such a content provider 2810, terrestrial broadcaster, cable SO (System Operator) or MSO (Multiple SO), satellite broadcaster (satellite broadcaster) , Various Internet broadcasters, and private content providers (Private CPs). Meanwhile, the content provider 2810 provides various applications in addition to broadcast content.
서비스 제공자(2820)는, 컨텐트 제공자(2810)가 제공하는 컨텐트를 서비스 패키지화하여 HNED(2840)로 제공한다. 예를 들어, 도 34의 서비스 제공자(2820)는, 제1 지상파 방송, 제2 지상파 방송, 케이블 MSO, 위성 방송, 다양한 인터넷 방송, 애플리케이션 등을 패키지화하여 HNED(2840)에게 제공한다.The service provider 2820 provides the content provided by the content provider 2810 as a service package to the HNED 2840. For example, the service provider 2820 of FIG. 34 packages the first terrestrial broadcast, the second terrestrial broadcast, the cable MSO, the satellite broadcast, various Internet broadcasts, applications, etc., and provides them to the HNED 2840.
서비스 제공자(2820)는, 유니-캐스트(uni-cast) 또는 멀티-캐스트(multi-cast) 방식으로 클라이언트(300)에 서비스를 제공한다. 한편, 서비스 제공자(2820)는 데이터를 미리 등록된 다수의 클라이언트(2800)로 한꺼번에 전송할 수 있는데, 이를 위해 IGMP(Internet Group Management Protocol) 프로토콜 등을 이용할 수 있다.The service provider 2820 provides services to the client 300 in a uni-cast or multi-cast manner. Meanwhile, the service provider 2820 may transmit data to a plurality of pre-registered clients 2800 at a time, and for this, an Internet Group Management Protocol (IGMP) protocol may be used.
상술한 컨텐트 제공자(2810)와 서비스 제공자(2820)는, 동일한 개체(same or single entity)일 수 있다. 예를 들어, 컨텐트 제공자(2810)가 제작한 컨텐트를 서비스 패키지화하여 HNED(2840)로 제공함으로써 서비스 제공자(2820)의 기능도 함께 수행하거나 그 반대일 수도 있다.The above-described content provider 2810 and service provider 2820 may be identical or single entities. For example, the content provided by the content provider 2810 may be service packaged and provided to the HNED 2840 to perform the function of the service provider 2820 together or vice versa.
네트워크 제공자(2830)는, 컨텐트 제공자(2810) 또는/및 서비스 제공자(2820)와 클라이언트(2800) 사이의 데이터 교환을 위한 네트워크 망을 제공한다.The network provider 2830 provides a network for data exchange between the content provider 2810 or/and the service provider 2820 and the client 2800.
클라이언트(2800)는, 홈 네트워크를 구축하여 데이터를 송수신할 수 있다.The client 2800 can establish a home network to transmit and receive data.
한편, 서비스 시스템 내 컨텐트 제공자(2810) 또는/및 서비스 제공자(2820)는 전송되는 컨텐트의 보호를 위해 제한 수신(conditional access) 또는 컨텐트 보호(content protection) 수단을 이용할 수 있다. 이 경우, 클라이언트(300)는 상기 제한 수신이나 컨텐트 보호에 대응하여 케이블카드(CableCARD)(POD: Point of Deployment), DCAS(Downloadable CAS) 등과 같은 처리 수단을 이용할 수 있다.Meanwhile, the content provider 2810 or/and the service provider 2820 in the service system may use conditional access or content protection means to protect transmitted content. In this case, the client 300 may use processing means such as a cable card (POD: Point of Deployment), DCAS (Downloadable CAS), etc. in response to the restriction reception or content protection.
그 밖에, 클라이언트(2800)도 네트워크 망(또는 통신 망)을 통해, 양방향 서비스를 이용할 수 있다. 이러한 경우, 오히려 클라이언트(2800)가 컨텐트 제공자의 기능을 수행할 수도 있으며, 기존 서비스 제공자(2820)는 이를 수신하여 다시 다른 클라이언트로 전송할 수도 있다.In addition, the client 2800 may also use a bidirectional service through a network (or communication network). In this case, rather, the client 2800 may perform the function of a content provider, and the existing service provider 2820 may receive it and transmit it back to another client.
도 29는 디지털 기기의 일 실시예를 설명하기 위해 도시한 구성 블록도이다. 도 29는, 예를 들어, 도 28의 클라이언트(2800)에 해당할 수 있으며, 전술한 디지털 기기를 의미한다.29 is a block diagram illustrating a digital device according to an embodiment. 29, for example, may correspond to the client 2800 of FIG. 28, and refers to the digital device described above.
디지털 기기(2900)는, 네트워크 인터페이스부(network interface)(2901), TCP/IP 매니저(TCP/IP manager)(2902), 서비스 전달 매니저(service delivery manager)(2903), SI 디코더(2904), 역다중화부(demux)(2905), 오디오 디코더(audio decoder)(2906), 비디오 디코더(video decoder)(2907), 디스플레이부(display A/V and OSD module)(2908), 서비스 제어 매니저(service control manager)(2909), 서비스 디스커버리 매니저(service discovery manager)(2910), SI & 메타데이터 데이터베이스(SI&Metadata DB)(2911), 메타데이터 매니저(metadata manager)(2912), 서비스 매니저(2913), UI 매니저(2914) 등을 포함하여 구성된다.The digital device 2900 includes a network interface 2901, a TCP/IP manager 2902, a service delivery manager 2903, an SI decoder 2904, Demultiplexer (demux) 2905, audio decoder 2906, video decoder 2907, display A/V and OSD module 2908, service control manager control manager (2909), service discovery manager (service discovery manager) 2910, SI & metadata database (SI&Metadata DB) 2911, metadata manager 2912, service manager 2913, UI And a manager 2914 and the like.
네트워크 인터페이스부(2901)는, 네트워크 망을 통하여 IP 패킷들(internet protocol (IP) packets)을 수신하거나 전송한다. 즉, 네트워크 인터페이스부(2901)는 네트워크 망을 통해 서비스 제공자(3420)로부터 서비스, 컨텐트 등을 수신한다.The network interface unit 2901 receives or transmits Internet protocol (IP) packets through a network. That is, the network interface unit 2901 receives services, content, and the like from the service provider 3420 through a network network.
TCP/IP 매니저(2902)는, 디지털 기기(2900)로 수신되는 IP 패킷들과 디지털 기기(2900)가 전송하는 IP 패킷들에 대하여 즉, 소스(source)와 목적지(destination) 사이의 패킷 전달에 관여한다. 그리고 TCP/IP 매니저(2902)는 수신된 패킷(들)을 적절한 프로토콜에 대응되도록 분류하고, 서비스 전달 매니저(2905), 서비스 디스커버리 매니저(2910), 서비스 제어 매니저(2909), 메타데이터 매니저(2912) 등으로 분류된 패킷(들)을 출력한다. 서비스 전달 매니저(2903)는, 수신되는 서비스 데이터의 제어를 담당한다. 예를 들어, 서비스 전달 매니저(2903)는 실시간 스트리밍(real-time streaming) 데이터를 제어하는 경우에는 RTP/RTCP를 사용할 수 있다. 상기 실시간 스트리밍 데이터를 RTP를 사용하여 전송하는 경우, 서비스 전달 매니저(2903)는 상기 수신된 데이터 패킷을 RTP에 따라 파싱(parsing)하여 역다중화부(2905)에 전송하거나 서비스 매니저(2913)의 제어에 따라 SI & 메타데이터 데이터베이스(2911)에 저장한다. 그리고 서비스 전달 매니저(2903)는 RTCP를 이용하여 상기 네트워크 수신 정보를 서비스를 제공하는 서버 측에 피드백(feedback) 한다. 역다중화부(2905)는, 수신된 패킷을 오디오, 비디오, SI(system information) 데이터 등으로 역다중화하여 각각 오디오/비디오 디코더(2906/2907), SI 디코더(2904)에 전송한다.The TCP/IP manager 2902 is configured to transmit packets between IP packets received by the digital device 2900 and IP packets transmitted by the digital device 2900, that is, between a source and a destination. Get involved. And the TCP/IP manager 2902 classifies the received packet(s) to correspond to an appropriate protocol, and the service delivery manager 2905, the service discovery manager 2910, the service control manager 2909, and the metadata manager 2912 ), and the like. The service delivery manager 2901 is responsible for controlling received service data. For example, the service delivery manager 2901 may use RTP/RTCP when controlling real-time streaming data. When the real-time streaming data is transmitted using RTP, the service delivery manager 2930 parses the received data packet according to RTP and transmits it to the demultiplexer 2905 or control of the service manager 2913 According to the SI & metadata database 2911. In addition, the service delivery manager 2930 uses the RTCP to feed back the network reception information to a server providing a service. The demultiplexing unit 2905 demultiplexes the received packets into audio, video, and system information (SI) data, and transmits them to the audio/video decoder 2906/2907 and the SI decoder 2904, respectively.
SI 디코더(2904)는 예를 들어, PSI(program specific information), PSIP(program and system information protocol), DVB-SI(digital video broadcasting-service information) 등의 서비스 정보를 디코딩한다.The SI decoder 2904 decodes service information such as program specific information (PSI), program and system information protocol (PSIP), and digital video broadcasting-service information (DVB-SI).
또한, SI 디코더(2904)는, 디코딩된 서비스 정보들을 예를 들어, SI & 메타데이터 데이터베이스(2911)에 저장한다. 이렇게 저장된 서비스 정보는 예를 들어, 사용자의 요청 등에 의해 해당 구성에 의해 독출되어 이용될 수 있다.Further, the SI decoder 2904 stores the decoded service informations in, for example, the SI & metadata database 2911. The service information stored in this way may be read and used by a corresponding configuration, for example, by a user's request.
오디오/비디오 디코더(2906/2907)는, 역다중화부(405)에서 역다중화된 각 오디오 데이터와 비디오 데이터를 디코딩한다. 이렇게 디코딩된 오디오 데이터 및 비디오 데이터는 디스플레이부(2908)를 통하여 사용자에게 제공된다.The audio/video decoder 2906/2907 decodes each audio data and video data demultiplexed by the demultiplexing unit 405. The audio data and video data thus decoded are provided to the user through the display unit 2908.
애플리케이션 매니저는 예를 들어, UI 매니저(2914)와 서비스 매니저(2913)를 포함하여 구성될 수 있다. 애플리케이션 매니저는, 디지털 기기(2900)의 전반적인 상태를 관리하고 사용자 인터페이스를 제공하며, 다른 매니저를 관리할 수 있다.The application manager may include, for example, a UI manager 2914 and a service manager 2913. The application manager may manage the overall state of the digital device 2900, provide a user interface, and manage other managers.
UI 매니저(2914)는, 사용자를 위한 GUI(graphic user interface)를 OSD(on screen display) 등을 이용하여 제공하며, 사용자로부터 키 입력을 받아 상기 입력에 따른 기기 동작을 수행한다. 예를 들어, UI 매니저(2914)는 사용자로부터 채널 선택에 관한 키 입력을 받으면 상기 키 입력 신호를 서비스 매니저(2913)에 전송한다.The UI manager 2914 provides a graphical user interface (GUI) for a user using an on-screen display (OSD) or the like, and receives key input from a user to perform device operation according to the input. For example, when the UI manager 2914 receives a key input for channel selection from a user, the UI manager 2914 transmits the key input signal to the service manager 2913.
서비스 매니저(2913)는, 서비스 전달 매니저(2903), 서비스 디스커버리 매니저(2910), 서비스 제어 매니저(2909), 메타데이터 매니저(2912) 등 서비스와 연관된 매니저를 제어한다.The service manager 2913 controls a manager associated with a service, such as a service delivery manager 2930, a service discovery manager 2910, a service control manager 2909, and a metadata manager 2912.
또한, 서비스 매니저(2913)는, 채널 맵(channel map)을 만들고 사용자 인터페이스 매니저(2914)로부터 수신한 키 입력에 따라 상기 채널 맵을 이용하여 채널을 선택하다. 그리고 서비스 매니저(2913)는 SI 디코더(2904)로부터 채널의 서비스 정보를 전송받아 선택된 채널의 오디오/비디오 PID(packet identifier)를 역다중화부(2905)에 설정한다. 이렇게 설정되는 PID는 상술한 역다중화 과정에 이용된다. 따라서, 역다중화부(2905)는 상기 PID를 이용하여 오디오 데이터, 비디오 데이터 및 SI 데이터를 필터링(filtering) 한다.In addition, the service manager 2913 creates a channel map and selects a channel using the channel map according to a key input received from the user interface manager 2914. Then, the service manager 2913 receives the channel service information from the SI decoder 2904 and sets the audio/video PID (packet identifier) of the selected channel to the demultiplexer 2905. The PID set in this way is used in the demultiplexing process described above. Accordingly, the demultiplexer 2905 filters the audio data, video data, and SI data using the PID.
서비스 디스커버리 매니저(2910)는, 서비스를 제공하는 서비스 제공자를 선택하는데 필요한 정보를 제공한다. 서비스 매니저(2913)로부터 채널 선택에 관한 신호를 수신하면, 서비스 디스커버리 매니저(2910)는 상기 정보를 이용하여 서비스를 찾는다.The service discovery manager 2910 provides information necessary to select a service provider that provides a service. When a signal regarding channel selection is received from the service manager 2913, the service discovery manager 2910 finds a service using the information.
서비스 제어 매니저(2909)는, 서비스의 선택과 제어를 담당한다. 예를 들어, 서비스 제어 매니저(2909)는 사용자가 기존의 방송 방식과 같은 생방송(live broadcasting) 서비스를 선택하는 경우 IGMP 또는 RTSP 등을 사용하고, VOD(video on demand)와 같은 서비스를 선택하는 경우에는 RTSP를 사용하여 서비스의 선택, 제어를 수행한다. 상기 RTSP 프로토콜은 실시간 스트리밍에 대해 트릭 모드(trick mode)를 제공할 수 있다. 또한, 서비스 제어 매니저(2909)는 IMS(IP multimedia subsystem), SIP(session initiation protocol)를 이용하여 IMS 게이트웨이(2950)를 통하는 세션을 초기화하고 관리할 수 있다. 프로토콜들은 일 실시 예이며, 구현 예에 따라 다른 프로토콜을 사용할 수도 있다.The service control manager 2909 is responsible for selecting and controlling services. For example, the service control manager 2909 uses IGMP or RTSP when a user selects a live broadcasting service such as a conventional broadcasting method, and selects a service such as video on demand (VOD). The RTSP is used to select and control services. The RTSP protocol may provide a trick mode for real-time streaming. In addition, the service control manager 2909 may initialize and manage a session through the IMS gateway 2950 using an IP multimedia subsystem (IMS) and a session initiation protocol (SIP). The protocols are one embodiment, and other protocols may be used according to implementation examples.
메타데이터 매니저(2912)는, 서비스와 연관된 메타데이터를 관리하고 상기 메타데이터를 SI & 메타데이터 데이터 베이스(2911)에 저장한다.The metadata manager 2912 manages metadata associated with a service and stores the metadata in the SI & metadata database 2911.
SI & 메타데이터 데이터베이스(2911)는, SI 디코더(2904)가 디코딩한 서비스 정보, 메타데이터 매니저(2912)가 관리하는 메타데이터 및 서비스 디스커버리 매니저(2910)가 제공하는 서비스 제공자를 선택하는데 필요한 정보를 저장한다. 또한, SI & 메타데이터 데이터베이스(2911)는 시스템에 대한 세트-업 데이터 등을 저장할 수 있다.The SI & metadata database 2911 stores service information decoded by the SI decoder 2904, metadata managed by the metadata manager 2912, and information necessary to select a service provider provided by the service discovery manager 2910. To save. In addition, the SI & metadata database 2911 may store set-up data and the like for the system.
SI & 메타데이터 데이터베이스(2911)는, 비휘발성 메모리(non-volatile RAM, NVRAM) 또는 플래시 메모리(flash memory) 등을 사용하여 구현될 수도 있다.The SI & metadata database 2911 may be implemented using non-volatile RAM (NVRAM), flash memory, or the like.
한편, IMS 게이트웨이(2950)는, IMS 기반의 IPTV 서비스에 접근하기 위해 필요한 기능들을 모아 놓은 게이트웨이이다.Meanwhile, the IMS gateway 2950 is a gateway that collects functions necessary for accessing an IMS-based IPTV service.
도 30은 디지털 기기의 다른 실시예를 설명하기 위해 도시한 구성 블록도이다. 특히, 도 30은 디지털 기기의 다른 실시예로서 모바일 기기의 구성 블록도를 예시한 것이다.30 is a configuration block diagram illustrating another embodiment of a digital device. In particular, FIG. 30 illustrates a block diagram of a mobile device as another embodiment of a digital device.
도 30을 참조하면, 모바일 기기(3000)는, 무선 통신부(3010), A/V(audio/video) 입력부(3020), 사용자 입력부(3030), 센싱부(3040), 출력부(3050), 메모리(3060), 인터페이스부(3070), 제어부(3080) 및 전원 공급부(3090) 등을 포함할 수 있다. 도 36에 도시된 구성요소들이 필수적인 것은 아니어서, 그보다 많은 구성요소들을 갖거나 그보다 적은 구성요소들을 갖는 모바일 기기가 구현될 수도 있다.Referring to FIG. 30, the mobile device 3000 includes a wireless communication unit 3010, an audio/video (A/V) input unit 3020, a user input unit 3030, a sensing unit 3040, and an output unit 3050. A memory 3060, an interface unit 3070, a control unit 3080, and a power supply unit 3090 may be included. The components shown in FIG. 36 are not essential, so a mobile device with more or fewer components may be implemented.
무선 통신부(3010)는, 모바일 기기(3000)와 무선 통신 시스템 사이 또는 모바일 기기와, 모바일 기기가 위치한 네트워크 사이의 무선 통신을 가능하게 하는 하나 또는 그 이상의 모듈을 포함할 수 있다. 예를 들어, 무선 통신부(3010)는 방송 수신 모듈(3011), 이동통신 모듈(3012), 무선 인터넷 모듈(3013), 근거리 통신 모듈(3014) 및 위치 정보 모듈(3015) 등을 포함할 수 있다.The wireless communication unit 3010 may include one or more modules that enable wireless communication between the mobile device 3000 and the wireless communication system or between the mobile device and the network where the mobile device is located. For example, the wireless communication unit 3010 may include a broadcast reception module 3011, a mobile communication module 3012, a wireless Internet module 3013, a short-range communication module 3014, and a location information module 3015. .
방송 수신 모듈(3011)은, 방송 채널을 통하여 외부의 방송 관리 서버로부터 방송 신호 및/또는 방송 관련된 정보를 수신한다. 여기서, 방송 채널은 위성 채널, 지상파 채널을 포함할 수 있다. 방송 관리 서버는, 방송 신호 및/또는 방송 관련 정보를 생성하여 송신하는 서버 또는 기 생성된 방송 신호 및/또는 방송 관련 정보를 제공받아 단말기에 송신하는 서버를 의미할 수 있다. 방송 신호는, TV 방송 신호, 라디오 방송 신호, 데이터 방송 신호를 포함할 뿐만 아니라, TV 방송 신호 또는 라디오 방송 신호에 데이터 방송 신호가 결합한 형태의 방송 신호도 포함할 수 있다.The broadcast receiving module 3011 receives a broadcast signal and/or broadcast-related information from an external broadcast management server through a broadcast channel. Here, the broadcast channel may include a satellite channel and a terrestrial channel. The broadcast management server may mean a server that generates and transmits broadcast signals and/or broadcast-related information or a server that receives previously generated broadcast signals and/or broadcast-related information and transmits them to a terminal. The broadcast signal may include a TV broadcast signal, a radio broadcast signal, and a data broadcast signal, and may also include a TV broadcast signal or a radio broadcast signal combined with a data broadcast signal.
방송 관련 정보는, 방송 채널, 방송 프로그램 또는 방송 서비스 제공자에 관련한 정보를 의미할 수 있다. 방송 관련 정보는, 이동통신망을 통하여도 제공될 수 있다. 이러한 경우에는 이동통신 모듈(3012)에 의해 수신될 수 있다.The broadcast related information may mean information related to a broadcast channel, broadcast program, or broadcast service provider. Broadcast-related information may also be provided through a mobile communication network. In this case, it may be received by the mobile communication module 3012.
방송 관련 정보는 다양한 형태 예를 들어, EPG(electronic program guide) 또는 ESG(electronic service guide) 등의 형태로 존재할 수 있다.Broadcast-related information may exist in various forms, for example, an electronic program guide (EPG) or an electronic service guide (ESG).
방송 수신 모듈(3011)은 예를 들어, ATSC, DVB-T(digital video broadcasting-terrestrial), DVB-S(satellite), MediaFLO(media forward link only), DVB-H(handheld), ISDB-T(integrated services digital broadcast-terrestrial) 등 디지털 방송 시스템을 이용하여 디지털 방송 신호를 수신할 수 있다. 물론, 방송 수신 모듈(3011)은, 상술한 디지털 방송 시스템뿐만 아니라 다른 방송 시스템에 적합하도록 구성될 수도 있다. Broadcast receiving module 3011, for example, ATSC, DVB-T (digital video broadcasting-terrestrial), DVB-S (satellite), MediaFLO (media forward link only), DVB-H (handheld), ISDB-T ( Digital broadcast signals can be received using digital broadcast systems such as integrated services digital broadcast-terrestrial. Of course, the broadcast receiving module 3011 may be configured to be suitable for other broadcasting systems as well as the digital broadcasting system described above.
방송 수신 모듈(3011)을 통해 수신된 방송 신호 및/또는 방송 관련 정보는, 메모리(3060)에 저장될 수 있다.The broadcast signal and/or broadcast-related information received through the broadcast receiving module 3011 may be stored in the memory 3060.
이동통신 모듈(3012)은, 이동 통신망 상에서 기지국, 외부 단말, 서버 중 적어도 하나와 무선 신호를 송수신한다. 무선 신호는, 음성 신호, 화상 통화 신호 또는 문자/멀티미디어 메시지 송수신에 따른 다양한 형태의 데이터를 포함할 수 있다.The mobile communication module 3012 transmits and receives wireless signals to and from at least one of a base station, an external terminal, and a server on a mobile communication network. The wireless signal may include various types of data according to transmission and reception of a voice signal, a video call signal, or a text/multimedia message.
무선 인터넷 모듈(3013)은, 무선 인터넷 접속을 위한 모듈을 포함하여, 모바일 기기(3000)에 내장되거나 외장될 수 있다. 무선 인터넷 기술로는 WLAN(wireless LAN)(Wi-Fi), Wibro(wireless broadband), Wimax(world interoperability for microwave access), HSDPA(high speed downlink packet access) 등이 이용될 수 있다.The wireless Internet module 3013 includes a module for wireless Internet access, and may be built in or external to the mobile device 3000. As wireless Internet technology, wireless LAN (WLAN) (Wi-Fi), wireless broadband (Wibro), world interoperability for microwave access (Wimax), and high speed downlink packet access (HSDPA) may be used.
근거리 통신 모듈(3014)은, 근거리 통신을 위한 모듈을 말한다. 근거리 통신(short range communication) 기술로 블루투스(Bluetooth), RFID(radio frequency Identification), 적외선 통신(IrDA, infrared data association), UWB(ultra wideband), ZigBee, RS-232, RS-485 등이 이용될 수 있다.The short-range communication module 3014 refers to a module for short-range communication. Bluetooth, radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, RS-232, RS-485, etc. may be used as short range communication technology. Can.
위치정보 모듈(3015)은, 모바일 기기(3000)의 위치정보 획득을 위한 모듈로서, GPS(global position system) 모듈을 예로 할 수 있다.The location information module 3015 is a module for obtaining location information of the mobile device 3000, and may use a global positioning system (GPS) module as an example.
A/V 입력부(3020)는, 오디오 또는/및 비디오 신호 입력을 위한 것으로, 이에는 카메라(3021)와 마이크(3022) 등이 포함될 수 있다. 카메라(3021)는, 화상통화 모드 또는 촬영 모드에서 이미지 센서에 의해 얻어지는 정지영상 또는 동영상 등의 화상 프레임을 처리한다. 처리된 화상 프레임은 디스플레이부(3051)에 표시될 수 있다.The A/V input unit 3020 is for audio or/and video signal input, and may include a camera 3021, a microphone 3022, and the like. The camera 3021 processes image frames such as still images or moving pictures obtained by an image sensor in a video call mode or a shooting mode. The processed image frame may be displayed on the display portion 3051.
카메라(3021)에서 처리된 화상 프레임은, 메모리(3060)에 저장되거나 무선 통신부(3010)를 통하여 외부로 전송될 수 있다. 카메라(3021)는, 사용 환경에 따라 2개 이상이 구비될 수도 있다.The image frame processed by the camera 3021 may be stored in the memory 3060 or transmitted to the outside through the wireless communication unit 3010. Two or more cameras 3021 may be provided depending on the use environment.
마이크(3022)는, 통화 모드 또는 녹음 모드, 음성인식 모드 등에서 마이크로폰(microphone)에 의해 외부의 음향 신호를 입력받아 전기적인 음성 데이터로 처리한다. 처리된 음성 데이터는, 통화 모드인 경우 이동통신 모듈(3012)을 통하여 이동통신 기지국으로 송신 가능한 형태로 변환되어 출력될 수 있다. 마이크(3022)에는 외부의 음향 신호를 입력받는 과정에서 발생하는 잡음(noise)을 제거하기 위한 다양한 잡음 제거 알고리즘이 구현될 수 있다.The microphone 3022 receives an external sound signal by a microphone in a call mode or a recording mode, a voice recognition mode, and processes it as electrical voice data. The processed voice data may be converted and output in a form that can be transmitted to the mobile communication base station through the mobile communication module 3012 in the call mode. The microphone 3022 may be implemented with various noise reduction algorithms for removing noise generated in the process of receiving an external sound signal.
사용자 입력부(3030)는, 사용자가 단말기의 동작 제어를 위한 입력 데이터를 발생시킨다. 사용자 입력부(3030)는, 키 패드(key pad), 돔 스위치(dome switch), 터치 패드(정압/정전), 조그 휠(jog wheel), 조그 스위치(jog switch) 등으로 구성될 수 있다.The user input unit 3030 generates input data for the user to control the operation of the terminal. The user input unit 3030 may be configured of a key pad, a dome switch, a touch pad (static pressure/power outage), a jog wheel, a jog switch, or the like.
센싱부(3040)는, 모바일 기기(3000)의 개폐 상태, 모바일 기기(3000)의 위치, 사용자 접촉 유무, 모바일 기기의 방위, 모바일 기기의 가속/감속 등과 같이 모바일 기기(3000)의 현재 상태를 감지하여 모바일 기기(3000)의 동작 제어를 위한 센싱 신호를 발생시킨다. 예를 들어, 모바일 기기(3000)가 이동되거나 기울어진 경우 모바일 기기의 위치 내지 기울기 등을 센싱할 수 있다. 또한, 전원 공급부(3090)의 전원 공급 여부, 인터페이스부(3070)의 외부 기기 결합 여부 등도 센싱할 수도 있다. 한편, 센싱부(3040)는, NFC(near field communication)를 포함한 근접 센서(3041)를 포함할 수 있다.The sensing unit 3040 displays the current state of the mobile device 3000, such as the open/closed state of the mobile device 3000, the location of the mobile device 3000, the presence or absence of user contact, the orientation of the mobile device, and acceleration/deceleration of the mobile device. It senses and generates a sensing signal for controlling the operation of the mobile device 3000. For example, when the mobile device 3000 is moved or tilted, the position or tilt of the mobile device may be sensed. In addition, whether power is supplied to the power supply unit 3090 or whether external devices are coupled to the interface unit 3070 may be sensed. Meanwhile, the sensing unit 3040 may include a proximity sensor 3041 including near field communication (NFC).
출력부(3050)는, 시각, 청각 또는 촉각 등과 관련된 출력을 발생시키기 위한 것으로, 디스플레이부(3051), 음향 출력 모듈(3052), 알람부(3053), 및 햅틱 모듈(3054) 등이 포함될 수 있다.The output unit 3050 is for generating output related to vision, hearing, or tactile sense, and may include a display unit 3051, an audio output module 3052, an alarm unit 3053, and a haptic module 3054. have.
디스플레이부(3051)는, 모바일 기기(3000)에서 처리되는 정보를 표시(출력)한다. 예를 들어, 모바일 기기가 통화 모드인 경우 통화와 관련된 UI(user interface) 또는 GUI(graphic user interface)를 표시한다. 모바일 기기(3000)가 화상 통화 모드 또는 촬영 모드인 경우에는, 촬영 또는/및 수신된 영상 또는 UI, GUI를 표시한다.The display unit 3051 displays (outputs) information processed by the mobile device 3000. For example, when the mobile device is in a call mode, a user interface (UI) or a graphic user interface (GUI) related to the call is displayed. When the mobile device 3000 is in a video call mode or a photographing mode, a photographed and/or received image or UI, GUI is displayed.
디스플레이부(3051)는, 액정 디스플레이(liquid crystal display, LCD), 박막 트랜지스터 액정 디스플레이(thin film transistor-liquid crystal display, TFT LCD), 유기 발광 다이오드(organic light-emitting diode, OLED), 플렉시블 디스플레이(flexible display), 3차원 디스플레이(3D display) 중에서 적어도 하나를 포함할 수 있다.The display portion 3051 includes a liquid crystal display (LCD), a thin film transistor-liquid crystal display (TFT LCD), an organic light-emitting diode (OLED), and a flexible display ( flexible display), and a 3D display.
이들 중 일부 디스플레이는 그를 통해 외부를 볼 수 있도록 투명형 또는 광투과형으로 구성될 수 있다. 이는 투명 디스플레이라 호칭될 수 있는데, 상기 투명 디스플레이의 대표적인 예로는 TOLED(transparent OLED) 등이 있다. 디스플레이부(3051)의 후방 구조 또한 광 투과형 구조로 구성될 수 있다. 이러한 구조에 의하여, 사용자는 단말기 바디의 디스플레이부(3051)가 차지하는 영역을 통해 단말기 바디(body)의 후방에 위치한 사물을 볼 수 있다.Some of these displays may be of a transparent type or a light transmissive type so that the outside can be seen through them. This may be called a transparent display, and a typical example of the transparent display is TOLED (transparent OLED). The rear structure of the display portion 3051 may also be configured as a light transmissive structure. With this structure, the user can see an object located behind the terminal body through an area occupied by the display unit 3051 of the terminal body.
모바일 기기(3000)의 구현 형태에 따라 디스플레이부(3051)가 2개 이상 존재할 수 있다. 예를 들어, 모바일 기기(3000)에는 복수의 디스플레이부들이 하나의 면에 이격되거나 일체로 배치될 수 있고, 또한 서로 다른 면에 각각 배치될 수도 있다.Two or more display units 3051 may be present depending on the implementation form of the mobile device 3000. For example, a plurality of display units may be spaced apart from one surface or integrally disposed on the mobile device 3000, or may be respectively disposed on different surfaces.
디스플레이부(3051)와 터치 동작을 감지하는 센서(이하 '터치 센서'라 함)가 상호 레이어 구조를 이루는 경우(이하, '터치 스크린'이라 함)에, 디스플레이부(3051)는 출력 장치 이외에 입력 장치로도 사용될 수 있다. 터치 센서는, 예를 들어, 터치 필름, 터치 시트, 터치 패드 등의 형태를 가질 수 있다.When the display unit 3051 and a sensor that senses a touch operation (hereinafter referred to as a'touch sensor') form a mutual layer structure (hereinafter referred to as a'touch screen'), the display unit 3051 inputs other than an output device. It can also be used as a device. The touch sensor may have, for example, a form of a touch film, a touch sheet, or a touch pad.
터치 센서는 디스플레이부(3051)의 특정 부위에 가해진 압력 또는 디스플레이부(3051)의 특정 부위에 발생하는 정전 용량 등의 변화를 전기적인 입력신호로 변환하도록 구성될 수 있다. 터치 센서는 터치 되는 위치 및 면적뿐만 아니라, 터치 시의 압력까지도 검출할 수 있도록 구성될 수 있다.The touch sensor may be configured to convert a change in pressure applied to a specific portion of the display portion 3051 or capacitance generated in a specific portion of the display portion 3051 into an electrical input signal. The touch sensor may be configured to detect not only the touched position and area, but also pressure at the time of touch.
터치 센서에 대한 터치 입력이 있는 경우, 그에 대응하는 신호(들)는 터치 제어기로 보내진다. 터치 제어기는 그 신호(들)를 처리한 다음 대응하는 데이터를 제어부(3080)로 전송한다. 이로써, 제어부(3080)는 디스플레이부(3051)의 어느 영역이 터치 되었는지 여부 등을 알 수 있게 된다.If there is a touch input to the touch sensor, the corresponding signal(s) is sent to the touch controller. The touch controller processes the signal(s) and then transmits corresponding data to the controller 3080. Accordingly, the control unit 3080 can know which area of the display unit 3051 is touched, and the like.
터치스크린에 의해 감싸지는 모바일 기기의 내부 영역 또는 상기 터치 스크린의 근처에 근접 센서(3041)가 배치될 수 있다. 상기 근접 센서는 소정의 검출면에 접근하는 물체, 혹은 근방에 존재하는 물체의 유무를 전자계의 힘 또는 적외선을 이용하여 기계적 접촉이 없이 검출하는 센서를 말한다. 근접 센서는 접촉식 센서보다는 그 수명이 길며 그 활용도 또한 높다.A proximity sensor 3041 may be disposed in an inner area of the mobile device surrounded by the touch screen or near the touch screen. The proximity sensor refers to a sensor that detects the presence or absence of an object approaching a predetermined detection surface or an object in the vicinity using mechanical force or infrared light without mechanical contact. Proximity sensors have a longer lifespan and higher utilization than contact sensors.
근접 센서의 예로는 투과형 광전 센서, 직접 반사형 광전 센서, 미러 반사형 광전 센서, 고주파 발진형 근접 센서, 정전용량형 근접 센서, 자기형 근접 센서, 적외선 근접 센서 등이 있다. 상기 터치스크린이 정전식인 경우에는 상기 포인터의 근접에 따른 전계의 변화로 포인터의 근접을 검출하도록 구성된다. 이 경우 터치 스크린(터치 센서)은 근접 센서로 분류될 수도 있다.Examples of the proximity sensor include a transmission type photoelectric sensor, a direct reflection type photoelectric sensor, a mirror reflection type photoelectric sensor, a high frequency oscillation type proximity sensor, a capacitive type proximity sensor, a magnetic type proximity sensor, and an infrared proximity sensor. When the touch screen is capacitive, it is configured to detect the proximity of the pointer due to a change in the electric field according to the proximity of the pointer. In this case, the touch screen (touch sensor) may be classified as a proximity sensor.
이하에서는 설명의 편의를 위해, 터치스크린 상에 포인터가 접촉되지 않으면서 근접되어 포인터가 터치스크린 상에 위치함이 인식되도록 하는 행위를 "근접 터치(proximity touch)"라고 칭하고, 상기 터치스크린 상에 포인터가 실제로 접촉되는 행위를 "접촉 터치(contact touch)"라고 칭한다. 터치스크린 상에서 포인터로 근접 터치가 되는 위치라 함은, 포인터가 근접 터치될 때 포인터가 터치스크린에 대해 수직으로 대응되는 위치를 의미한다.Hereinafter, for convenience of description, the act of allowing the pointer to be recognized as being positioned on the touch screen without being touched by the pointer on the touch screen is referred to as “proximity touch”, and on the touch screen The act of actually touching the pointer is referred to as "contact touch." The location on the touch screen that is the proximity touch with the pointer means a location where the pointer is perpendicular to the touch screen when the pointer is touched close.
근접 센서는, 근접 터치와, 근접 터치 패턴(예를 들어, 근접 터치 거리, 근접 터치 방향, 근접 터치 속도, 근접 터치 시간, 근접 터치 위치, 근접 터치 이동 상태 등)을 감지한다. 감지된 근접 터치 동작 및 근접 터치 패턴에 상응하는 정보는 터치 스크린상에 출력될 수 있다.The proximity sensor detects a proximity touch and a proximity touch pattern (eg, proximity touch distance, proximity touch direction, proximity touch speed, proximity touch time, proximity touch position, proximity touch movement state, etc.). Information corresponding to the sensed proximity touch operation and the proximity touch pattern may be output on the touch screen.
음향 출력 모듈(3052)은, 호 신호 수신, 통화 모드 또는 녹음 모드, 음성인식 모드, 방송수신 모드 등에서 무선 통신부(3010)로부터 수신되거나 메모리(3060)에 저장된 오디오 데이터를 출력할 수 있다. 음향 출력 모듈(3052)은 모바일 기기(3000)에서 수행되는 기능(예를 들어, 호신호 수신음, 메시지 수신음 등)과 관련된 음향 신호를 출력하기도 한다. 이러한 음향 출력 모듈(3052)에는 리시버(receiver), 스피커(speaker), 버저(buzzer) 등이 포함될 수 있다.The audio output module 3052 may output audio data received from the wireless communication unit 3010 or stored in the memory 3060 in a call signal reception, call mode or recording mode, voice recognition mode, broadcast reception mode, or the like. The sound output module 3052 may also output sound signals related to functions (for example, call signal reception sound, message reception sound, etc.) performed by the mobile device 3000. The sound output module 3052 may include a receiver, a speaker, and a buzzer.
알람부(3053)는, 모바일 기기(3000)의 이벤트 발생을 알리기 위한 신호를 출력한다. 모바일 기기에서 발생되는 이벤트의 예로는 호 신호 수신, 메시지 수신, 키 신호 입력, 터치 입력 등이 있다. 알람부(3053)는, 비디오 신호나 오디오 신호 이외에 다른 형태, 예를 들어 진동으로 이벤트 발생을 알리기 위한 신호를 출력할 수도 있다.The alarm unit 3053 outputs a signal for notifying the occurrence of the event of the mobile device 3000. Examples of events generated in the mobile device include call signal reception, message reception, key signal input, and touch input. The alarm unit 3053 may also output a signal for notifying the occurrence of an event in a form other than a video signal or an audio signal, for example, vibration.
비디오 신호나 오디오 신호는 디스플레이부(3051)나 음성 출력 모듈(3052)을 통해서도 출력될 수 있어서, 디스플레이부 및 음성 출력 모듈(3051,3052)은 알람부(3053)의 일부로 분류될 수도 있다.The video signal or the audio signal may also be output through the display unit 3051 or the audio output module 3052, so that the display unit and the audio output modules 3051 and 3052 may be classified as part of the alarm unit 3053.
햅틱 모듈(haptic module)(3054)은, 사용자가 느낄 수 있는 다양한 촉각 효과를 발생시킨다. 햅틱 모듈(3054)이 발생시키는 촉각 효과의 대표적인 예로는 진동이 있다. 햅택 모듈(3054)이 발생하는 진동의 세기와 패턴 등은 제어 가능하다. 예를 들어, 서로 다른 진동을 합성하여 출력하거나 순차적으로 출력할 수도 있다.The haptic module 3054 generates various tactile effects that the user can feel. A typical example of the tactile effect generated by the haptic module 3054 is vibration. The intensity and pattern of vibration generated by the haptic module 3054 can be controlled. For example, different vibrations may be synthesized and output or sequentially output.
햅틱 모듈(3054)은, 진동 외에도, 접촉 피부면에 대해 수직 운동하는 핀 배열, 분사구나 흡입구를 통한 공기의 분사력이나 흡입력, 피부 표면에 대한 스침, 전극(electrode)의 접촉, 정전기력 등의 자극에 의한 효과와, 흡열이나 발열 가능한 소자를 이용한 냉온감 재현에 의한 효과 등 다양한 촉각 효과를 발생시킬 수 있다.The haptic module 3054, in addition to vibration, is a pin array that vertically moves with respect to the contact surface of the skin, stimulation of the ejection force or inhalation force of the air through the ejection or intake, grazing on the skin surface, contact of the electrode, electrostatic force, etc. Various tactile effects can be generated, such as the effect of the product and the effect of reproducing the feeling of cold and warm using an element capable of absorbing heat or generating heat.
햅틱 모듈(3054)은, 직접적인 접촉을 통해 촉각 효과의 전달할 수 있을 뿐만 아니라, 사용자가 손가락이나 팔 등의 근 감각을 통해 촉각 효과를 느낄 수 있도록 구현할 수도 있다. 햅틱 모듈(3054)은, 모바일 기기(3000)의 구성 태양에 따라 2개 이상이 구비될 수 있다.The haptic module 3054 can not only deliver the tactile effect through direct contact, but also implement it so that the user can feel the tactile effect through muscle sensations such as fingers or arms. Two or more haptic modules 3054 may be provided according to a configuration aspect of the mobile device 3000.
메모리(3060)는, 제어부(3080)의 동작을 위한 프로그램을 저장할 수 있고, 입/출력되는 데이터들(예를 들어, 폰북, 메시지, 정지영상, 동영상 등)을 임시 저장할 수도 있다. 메모리(3060)는 상기 터치스크린 상의 터치 입력시 출력되는 다양한 패턴의 진동 및 음향에 관한 데이터를 저장할 수 있다.The memory 3060 may store a program for the operation of the control unit 3080, and may temporarily store input/output data (eg, a phone book, message, still image, video, etc.). The memory 3060 may store data related to various patterns of vibration and sound output when a touch is input on the touch screen.
메모리(3060)는, 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(random access memory, RAM), SRAM(static random access memory), 롬(read-only memory, ROM), EEPROM(electrically erasable programmable read-only memory), PROM(programmable read-only memory), 자기 메모리, 자기 디스크, 광디스크 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. 모바일 기기(3000)는 인터넷(internet)상에서 메모리(3060)의 저장 기능을 수행하는 웹 스토리지(web storage)와 관련되어 동작할 수도 있다.The memory 3060 is a flash memory type, a hard disk type, a multimedia card micro type, a card type memory (for example, SD or XD memory, etc.), Random access memory (RAM), static random access memory (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read-only memory (PROM), magnetic memory, It may include at least one type of storage medium among magnetic disks and optical disks. The mobile device 3000 may operate in relation to a web storage that performs a storage function of the memory 3060 on the Internet.
인터페이스부(3070)는, 모바일 기기(3000)에 연결되는 모든 외부기기와의 통로 역할을 한다. 인터페이스부(3070)는 외부 기기로부터 데이터를 전송받거나, 전원을 공급받아 모바일 기기(3000) 내부의 각 구성 요소에 전달하거나, 모바일 기기(3000) 내부의 데이터가 외부 기기로 전송되도록 한다. 예를 들어, 유/무선 헤드셋 포트, 외부 충전기 포트, 유/무선 데이터 포트, 메모리 카드(memory card) 포트, 식별 모듈이 구비된 장치를 연결하는 포트, 오디오 I/O(input/output) 포트, 비디오 I/O 포트, 이어폰 포트 등이 인터페이스부(3070)에 포함될 수 있다.The interface unit 3070 serves as a passage with all external devices connected to the mobile device 3000. The interface unit 3070 receives data from an external device, receives power, transfers it to each component inside the mobile device 3000, or allows data inside the mobile device 3000 to be transmitted to the external device. For example, wired/wireless headset port, external charger port, wired/wireless data port, memory card port, port for connecting devices equipped with an identification module, audio input/output (I/O) port, A video I/O port, an earphone port, and the like may be included in the interface unit 3070.
식별 모듈은 모바일 기기(3000)의 사용 권한을 인증하기 위한 각종 정보를 저장한 칩으로서, 사용자 인증 모듈(user identify module, UIM), 가입자 인증 모듈(subscriber identify module, SIM), 범용 사용자 인증 모듈(universal subscriber identity module, USIM) 등을 포함할 수 있다. 식별 모듈이 구비된 장치(이하 '식별 장치')는, 스마트 카드(smart card) 형식으로 제작될 수 있다. 따라서 식별 장치는 포트를 통하여 단말기(3000)와 연결될 수 있다.The identification module is a chip that stores various information for authenticating the usage rights of the mobile device 3000, a user identification module (UIM), a subscriber identification module (SIM), and a universal user authentication module ( universal subscriber identity module, USIM). The device provided with the identification module (hereinafter referred to as an'identification device') may be manufactured in a smart card format. Therefore, the identification device may be connected to the terminal 3000 through the port.
인터페이스부(3070)는, 이동단말기(3000)가 외부 크래들(cradle)과 연결될 때, 크래들로부터의 전원이 이동단말기(3000)에 공급되는 통로가 되거나, 사용자에 의해 크래들에서 입력되는 각종 명령 신호가 이동단말기로 전달되는 통로가 될 수 있다. 크래들로부터 입력되는 각종 명령 신호 또는 전원은, 이동단말기가 크래들에 정확히 장착되었음을 인지하기 위한 신호로 동작될 수도 있다.When the mobile terminal 3000 is connected to an external cradle, the interface unit 3070 becomes a passage through which power from the cradle is supplied to the mobile terminal 3000, or various command signals input from the cradle by the user. It can be a passage to the mobile terminal. Various command signals or power input from the cradle may be operated as signals for recognizing that the mobile terminal is correctly mounted on the cradle.
제어부(3080)는, 통상적으로 모바일 기기의 전반적인 동작을 제어한다. 예를 들어, 음성 통화, 데이터 통신, 화상 통화 등을 위한 관련된 제어 및 처리를 수행한다. 제어부(3080)는, 멀티 미디어 재생을 위한 멀티미디어 모듈(3081)을 구비할 수도 있다. 멀티미디어 모듈(3081)은, 제어부(3080) 내에 구현될 수도 있고, 제어부(3080)와 별도로 구현될 수도 있다. 제어부(3080), 특히 멀티미디어 모듈(3081)은 전술한 인코딩 장치(100) 및/또는 디코딩 장치(200)를 포함할 수 있다. The control unit 3080 typically controls the overall operation of the mobile device. For example, it performs related control and processing for voice calls, data communication, video calls, and the like. The control unit 3080 may include a multimedia module 3081 for multimedia playback. The multimedia module 3081 may be implemented in the control unit 3080, or may be implemented separately from the control unit 3080. The control unit 3080, particularly the multimedia module 3081, may include the above-described encoding device 100 and/or decoding device 200.
제어부(3080)는, 터치스크린 상에서 행해지는 필기 입력 또는 그림 그리기 입력을 각각 문자 및 이미지로 인식할 수 있는 패턴 인식 처리를 행할 수 있다.The controller 3080 may perform a pattern recognition process capable of recognizing handwriting input or picture drawing input performed on a touch screen as characters and images, respectively.
전원 공급부(3090)는, 제어부(3080)의 제어에 의해 외부의 전원, 내부의 전원을 인가받아 각 구성요소들의 동작에 필요한 전원을 공급한다.The power supply unit 3090 receives external power and internal power under the control of the control unit 3080 and supplies power required for the operation of each component.
여기에 설명되는 다양한 실시예는 예를 들어, 소프트웨어, 하드웨어 또는 이들의 조합된 것을 이용하여 컴퓨터 또는 이와 유사한 장치로 읽을 수 있는 기록매체 내에서 구현될 수 있다.Various embodiments described herein can be implemented in a computer- or similar device-readable recording medium using, for example, software, hardware, or a combination thereof.
하드웨어적인 구현에 의하면, 여기에 설명되는 실시예는 ASICs(application specific integrated circuits), DSPs(digital signal processors), DSPDs(digital signal processing devices), PLDs(programmable logic devices), FPGAs(field programmable gate arrays, 프로세서, 제어기, 마이크로 컨트롤러(micro-controllers), 마이크로 프로세서(microprocessors), 기타 기능 수행을 위한 전기적인 유닛 중 적어도 하나를 이용하여 구현될수 있다. 일부의 경우에 본 명세서에서 설명되는 실시예들이 제어부(3080) 자체로 구현될 수 있다.According to a hardware implementation, the embodiments described herein include application specific integrated circuits (ASICs), digital signal processors (DSPs), digital signal processing devices (DSPDs), programmable logic devices (PLDs), field programmable gate arrays (FPGAs), It may be implemented using at least one of a processor, a controller, micro-controllers, microprocessors, and electrical units for performing other functions.In some cases, the embodiments described herein may include a control unit ( 3080) can be implemented by itself.
소프트웨어적인 구현에 의하면, 본 명세서에서 설명되는 절차 및 기능과 같은 실시예들은 별도의 소프트웨어 모듈들로 구현될 수 있다. 소프트웨어 모듈들 각각은 본 명세서에서 설명되는 하나 이상의 기능 및 작동을 수행할 수 있다. 적절한 프로그램 언어로 쓰여진 소프트웨어 애플리케이션으로 소프트웨어 코드가 구현될 수 있다. 여기서, 소프트웨어 코드는, 메모리(3060)에 저장되고, 제어부(3080)에 의해 실행될 수 있다.According to the software implementation, embodiments such as procedures and functions described herein may be implemented as separate software modules. Each of the software modules can perform one or more functions and operations described herein. Software code can be implemented in a software application written in an appropriate programming language. Here, the software code is stored in the memory 3060 and can be executed by the control unit 3080.
도 31은 디지털 기기의 또 다른 실시 예를 설명하기 위해 도시한 구성 블록도이다.31 is a configuration block diagram illustrating another embodiment of a digital device.
디지털 기기(3100)의 다른 예는, 방송 수신부(3105), 외부장치 인터페이스부(3135), 저장부(3140), 사용자 입력 인터페이스부(3150), 제어부(3170), 디스플레이부(3180), 오디오 출력부(3185), 전원공급부(3190) 및 촬영부(미도시)를 포함할 수 있다. 여기서, 방송 수신부(3105)는, 적어도 하나의 튜너(3110), 복조부(3120) 및 네트워크 인터페이스부(3130)를 포함할 수 있다. 다만, 경우에 따라, 방송 수신부(3105)는 튜너(3110)와 복조부(3120)는 구비하나 네트워크 인터페이스부(3130)는 포함하지 않을 수 있으며 그 반대의 경우일 수도 있다. 또한, 방송 수신부(3105)는 도시되진 않았으나, 다중화부(multiplexer)를 구비하여 튜너(3110)를 거쳐 복조부(3120)에서 복조된 신호와 네트워크 인터페이스부(3130)를 거쳐 수신된 신호를 다중화할 수도 있다. 그 밖에 방송 수신부(3105)는 역시 도시되진 않았으나, 역다중화부(demultiplexer)를 구비하여 상기 다중화된 신호를 역다중화 하거나 상기 복조된 신호 또는 상기 네트워크 인터페이스부(3130)를 거친 신호를 역다중화할 수 있다.Other examples of the digital device 3100 include a broadcast receiving unit 3105, an external device interface unit 3135, a storage unit 3140, a user input interface unit 3150, a control unit 3170, a display unit 3180, and audio. It may include an output unit 3185, a power supply unit 3190 and a photographing unit (not shown). Here, the broadcast reception unit 3105 may include at least one tuner 3110, a demodulation unit 3120, and a network interface unit 3130. However, in some cases, the broadcast receiving unit 3105 includes a tuner 3110 and a demodulator 3120, but may not include the network interface unit 3130, and vice versa. Also, although the broadcast receiving unit 3105 is not illustrated, a multiplexer is provided to multiplex the signal demodulated by the demodulator 3120 via the tuner 3110 and the signal received through the network interface unit 3130. It might be. In addition, although the broadcast receiving unit 3105 is not shown, a demultiplexer may be provided to demultiplex the multiplexed signal or demultiplex the demodulated signal or the signal that has passed through the network interface unit 3130. have.
튜너(3110)는, 안테나를 통해 수신되는 RF(radio frequency) 방송 신호 중 사용자에 의해 선택된 채널 또는 기저장된 모든 채널을 튜닝하여 RF 방송 신호를 수신한다. 또한, 튜너(3110)는, 수신된 RF 방송 신호를 중간 주파수(intermediate frequency, IF) 신호 혹은 베이스밴드(baseband) 신호로 변환한다.The tuner 3110 receives an RF broadcast signal by tuning a channel selected by a user or all pre-stored channels among radio frequency (RF) broadcast signals received through an antenna. In addition, the tuner 3110 converts the received RF broadcast signal into an intermediate frequency (IF) signal or a baseband signal.
예를 들어, 수신된 RF 방송 신호가 디지털 방송 신호이면 디지털 IF 신호(DIF)로 변환하고, 아날로그 방송 신호이면 아날로그 베이스밴드 영상 또는 음성 신호(CVBS/SIF)로 변환한다. 즉, 튜너(3110)는 디지털 방송 신호 또는 아날로그 방송 신호를 모두 처리할 수 있다. 튜너(3110)에서 출력되는 아날로그 베이스 밴드 영상 또는 음성 신호(CVBS/SIF)는 제어부(3170)로 직접 입력될 수 있다.For example, if the received RF broadcast signal is a digital broadcast signal, it is converted into a digital IF signal (DIF), and if it is an analog broadcast signal, it is converted into an analog baseband video or audio signal (CVBS/SIF). That is, the tuner 3110 can process both digital broadcast signals or analog broadcast signals. The analog baseband video or audio signal (CVBS/SIF) output from the tuner 3110 may be directly input to the controller 3170.
또한, 튜너(3110)는, ATSC(advanced television system committee) 방식에 따른 단일 캐리어의 RF 방송 신호 또는 DVB(digital video broadcasting) 방식에 따른 복수 캐리어의 RF 방송 신호를 수신할 수 있다.In addition, the tuner 3110 may receive a single carrier RF broadcast signal according to an advanced television system committee (ATSC) scheme or a multiple carrier RF broadcast signal according to a digital video broadcasting (DVB) scheme.
한편, 튜너(3110)는, 안테나를 통해 수신되는 RF 방송 신호 중 채널 기억 기능을 통하여 저장된 모든 방송 채널의 RF 방송 신호를 순차로 튜닝 및 수신하여 이를 중간 주파수 신호 혹은 베이스 밴드 신호로 변환할 수 있다.Meanwhile, the tuner 3110 may sequentially tune and receive RF broadcast signals of all broadcast channels stored through a channel storage function among RF broadcast signals received through an antenna and convert them into an intermediate frequency signal or a baseband signal. .
복조부(3120)는, 튜너(3110)에서 변환된 디지털 IF 신호(DIF)를 수신하여 복조한다. 예를 들어, 튜너(3110)에서 출력되는 디지털 IF 신호가 ATSC 방식인 경우, 복조부(3120)는 예컨대, 8-VSB(8-vestigal side band) 복조를 수행한다. 또한, 복조부(3120)는 채널 복호화를 수행할 수도 있다. 이를 위해 복조부(3120)는 트렐리스 디코더(trellis decoder), 디인터리버(de-interleaver), 및 리드 솔로먼 디코더(Reed-Solomon decoder) 등을 구비하여, 트렐리스 복호화, 디인터리빙, 및 리드 솔로먼 복호화를 수행할 수 있다.The demodulator 3120 receives and demodulates the digital IF signal DIF converted by the tuner 3110. For example, when the digital IF signal output from the tuner 3110 is an ATSC method, the demodulator 3120 performs 8-vestigal side band (8-VSB) demodulation, for example. Also, the demodulator 3120 may perform channel decoding. To this end, the demodulator 3120 includes a trellis decoder, a de-interleaver, a Reed-Solomon decoder, and the like, trellis decoding, deinterleaving, and Reed Soloman decoding can be performed.
예를 들어, 튜너(3110)에서 출력되는 디지털 IF 신호가 DVB 방식인 경우, 복조부(3120)는 예컨대, COFDMA(coded orthogonal frequency division modulation) 복조를 수행한다. 또한, 복조부(3120)는, 채널 복호화를 수행할 수도 있다. 이를 위해, 복조부(3120)는, 컨벌루션 디코더(convolution decoder), 디인터리버, 및 리드-솔로먼 디코더 등을 구비하여, 컨벌루션 복호화, 디인터리빙, 및 리드 솔로먼 복호화를 수행할 수 있다.For example, when the digital IF signal output from the tuner 3110 is a DVB method, the demodulator 3120 performs, for example, coded orthogonal frequency division modulation (COFDMA) demodulation. In addition, the demodulator 3120 may perform channel decoding. To this end, the demodulator 3120 may include a convolution decoder, a deinterleaver, and a read-soloman decoder, and perform convolutional decoding, deinterleaving, and read soloman decoding.
복조부(3120)는, 복조 및 채널 복호화를 수행한 후 스트림 신호(TS)를 출력할 수 있다. 이때, 스트림 신호는 영상 신호, 음성 신호 또는 데이터 신호가 다중화된 신호일 수 있다. 일 예로, 스트림 신호는 MPEG-2 규격의 영상 신호, 돌비(Dolby) AC-3 규격의 음성 신호 등이 다중화된 MPEG-2 TS(transport stream)일 수 있다. 구체적으로 MPEG-2 TS는, 4 바이트(byte)의 헤더(header)와 184 바이트의 페이로드(payload)를 포함할 수 있다.The demodulator 3120 may output a stream signal TS after demodulation and channel decoding. In this case, the stream signal may be a signal in which a video signal, an audio signal or a data signal is multiplexed. For example, the stream signal may be an MPEG-2 transport stream (TS) in which an MPEG-2 standard video signal and a Dolby AC-3 standard audio signal are multiplexed. Specifically, the MPEG-2 TS may include a header of 4 bytes and a payload of 184 bytes.
한편, 상술한 복조부(3120)는, ATSC 방식과, DVB 방식에 따라 각각 별개로 구비되는 것이 가능하다. 즉, 디지털 기기는 ATSC 복조부와 DVB 복조부를 각각 별개로 구비할 수 있다.On the other hand, the above-described demodulation unit 3120 may be provided separately according to the ATSC method and the DVB method. That is, the digital device may separately include an ATSC demodulator and a DVB demodulator.
복조부(3120)에서 출력한 스트림 신호는 제어부(3170)로 입력될 수 있다. 제어부(3170)는 역다중화, 영상/음성 신호 처리 등을 제어하고, 디스플레이부(3180)를 통해 영상을, 오디오 출력부(3185)를 통해 음성의 출력을 제어할 수 있다.The stream signal output from the demodulator 3120 may be input to the controller 3170. The control unit 3170 may control demultiplexing, video/audio signal processing, and the like, and control an image output through the display unit 3180 and an audio output unit through the audio output unit 3185.
외부장치 인터페이스부(3135)는 디지털 기기(3100)에 다양한 외부장치가 인터페이싱 되도록 환경을 제공한다. 이를 위해, 외부장치 인터페이스부(3135)는, A/V 입출력부(미도시) 또는 무선 통신부(미도시)를 포함할 수 있다.The external device interface unit 3135 provides an environment in which various external devices are interfaced to the digital device 3100. To this end, the external device interface unit 3135 may include an A/V input/output unit (not shown) or a wireless communication unit (not shown).
외부장치 인터페이스부(3135)는, DVD(digital versatile disk), 블루-레이(blu-ray), 게임기기, 카메라, 캠코더, 컴퓨터(노트북, 태블릿), 스마트폰, 블루투스 기기(bluetooth device), 클라우드(cloud) 등과 같은 외부 장치와 유/무선으로 접속될 수 있다. 외부장치 인터페이스부(3135)는 연결된 외부 장치를 통하여 외부에서 입력되는 영상, 음성 또는 데이터(이미지 포함) 신호를 디지털 기기의 제어부(3170)로 전달한다. 제어부(3170)는 처리된 영상, 음성 또는 데이터 신호를 연결된 외부 장치로 출력되도록 제어할 수 있다. 이를 위해, 외부장치 인터페이스부(3135)는, A/V 입출력부(미도시) 또는 무선 통신부(미도시)를 더 포함할 수 있다.The external device interface unit 3135 includes digital versatile disk (DVD), blu-ray, game devices, cameras, camcorders, computers (laptops, tablets), smartphones, Bluetooth devices, and cloud It can be connected to external devices such as (cloud) and wired/wirelessly. The external device interface unit 3135 transmits a video, audio, or data (including image) signal input from the outside through the connected external device to the controller 3170 of the digital device. The control unit 3170 may control the processed image, audio, or data signal to be output to a connected external device. To this end, the external device interface unit 3135 may further include an A/V input/output unit (not shown) or a wireless communication unit (not shown).
A/V 입출력부는, 외부 장치의 영상 및 음성 신호를 디지털 기기(3100)로 입력할 수 있도록, USB 단자, CVBS(composite video banking sync) 단자, 컴포넌트 단자, S-비디오 단자(아날로그), DVI(digital visual interface) 단자, HDMI(high definition multimedia interface) 단자, RGB 단자, D-SUB 단자 등을 포함할 수 있다.A/V input/output unit, USB terminal, CVBS (composite video banking sync) terminal, component terminal, S-video terminal (analog), DVI ( digital visual interface (HDMI) terminal, a high definition multimedia interface (HDMI) terminal, an RGB terminal, and a D-SUB terminal.
무선 통신부는, 다른 전자기기와 근거리 무선 통신을 수행할 수 있다. 디지털 기기(3100)는 예를 들어, 블루투스(bluetooth), RFID(radio frequency identification), 적외선 통신(IrDA, infrared data association), UWB(ultra wideband), 지그비(ZigBee), DLNA(digital living network alliance) 등의 통신 프로토콜에 따라 다른 전자기기와 네트워크 연결될 수 있다.The wireless communication unit may perform short-range wireless communication with other electronic devices. The digital device 3100 includes, for example, Bluetooth, radio frequency identification (RFID), infrared data association (IrDA), ultra wideband (UWB), ZigBee, digital living network alliance (DLNA). Networks may be connected to other electronic devices according to a communication protocol.
또한, 외부장치 인터페이스부(3135)는, 다양한 셋톱-박스와 상술한 각종 단자 중 적어도 하나를 통해 접속되어, 셋톱-박스와 입력/출력 동작을 수행할 수도 있다.In addition, the external device interface unit 3135 may be connected to at least one of various set-top boxes and various terminals described above, and perform input/output operations with the set-top box.
한편, 외부장치 인터페이스부(3135)는, 인접하는 외부장치 내의 애플리케이션 또는 애플리케이션 목록을 수신하여, 제어부(3170) 또는 저장부(3140)로 전달할 수 있다.On the other hand, the external device interface unit 3135 may receive an application or a list of applications in an adjacent external device and transmit it to the control unit 3170 or the storage unit 3140.
네트워크 인터페이스부(3130)는, 디지털 기기(3100)를 인터넷 망을 포함하는 유/무선 네트워크와 연결하기 위한 인터페이스를 제공한다. 네트워크 인터페이스부(3130)는, 유선 네트워크와의 접속을 위해 예를 들어, 이더넷(ethernet) 단자 등을 구비할 수 있으며, 무선 네트워크와의 접속을 위해 예를 들어, WLAN(wireless LAN)(Wi-Fi), Wibro(wireless broadband), Wimax(world interoperability for microwave access), HSDPA(high speed downlink packet access) 통신 규격 등을 이용할 수 있다.The network interface unit 3130 provides an interface for connecting the digital device 3100 with a wired/wireless network including an Internet network. The network interface unit 3130 may include, for example, an Ethernet terminal or the like for connection with a wired network, and, for example, a wireless LAN (WLAN) (Wi-) for connection with a wireless network. Fi), wireless broadband (Wibro), world interoperability for microwave access (Wimax), and high speed downlink packet access (HSDPA) communication standards.
네트워크 인터페이스부(3130)는, 접속된 네트워크 또는 접속된 네트워크에 링크된 다른 네트워크를 통해, 다른 사용자 또는 다른 디지털 기기와 데이터를 송신 또는 수신할 수 있다. 특히, 디지털 기기(3100)에 미리 등록된 다른 사용자 또는 다른 디지털 기기 중 선택된 사용자 또는 선택된 디지털 기기에, 디지털 기기(3100)에 저장된 일부의 컨텐트 데이터를 송신할 수 있다.The network interface unit 3130 may transmit or receive data with other users or other digital devices through a connected network or another network linked to the connected network. In particular, some content data stored in the digital device 3100 may be transmitted to another user registered in advance in the digital device 3100 or to a selected user or selected digital device among other digital devices.
한편, 네트워크 인터페이스부(3130)는, 접속된 네트워크 또는 접속된 네트워크에 링크된 다른 네트워크를 통해, 소정 웹 페이지에 접속할 수 있다. 즉, 네트워크를 통해 소정 웹 페이지에 접속하여, 해당 서버와 데이터를 송신 또는 수신할 수 있다. 그 외, 컨텐트 제공자 또는 네트워크 운영자가 제공하는 컨텐트 또는 데이터들을 수신할 수 있다. 즉, 네트워크를 통하여 컨텐트 제공자 또는 네트워크 제공자로부터 제공되는 영화, 광고, 게임, VOD, 방송 신호 등의 컨텐트 및 그와 관련된 정보를 수신할 수 있다. 또한, 네트워크 운영자가 제공하는 펌웨어(firmware)의 업데이트 정보 및 업데이트 파일을 수신할 수 있다. 또한, 인터넷 또는 컨텐트 제공자 또는 네트워크 운영자에게 데이터들을 송신할 수 있다.On the other hand, the network interface unit 3130 may access a predetermined web page through a connected network or another network linked to the connected network. That is, it is possible to connect to a predetermined web page through a network and transmit or receive data with the corresponding server. In addition, content or data provided by a content provider or a network operator may be received. That is, it is possible to receive content such as a movie, advertisement, game, VOD, broadcast signal and related information provided by a content provider or a network provider through a network. Further, it is possible to receive update information and update files of firmware provided by a network operator. It can also send data to the Internet or content providers or network operators.
또한, 네트워크 인터페이스부(3130)는, 네트워크를 통해, 공중에 공개(open)된 애플리케이션들 중 원하는 애플리케이션을 선택하여 수신할 수 있다.Also, the network interface unit 3130 may select and receive a desired application from among applications that are open to the public through a network.
저장부(3140)는, 제어부(3170) 내의 각 신호 처리 및 제어를 위한 프로그램을 저장할 수도 있고, 신호 처리된 영상, 음성 또는 데이터 신호를 저장할 수도 있다.The storage unit 3140 may store programs for processing and controlling each signal in the control unit 3170, or may store signal-processed video, audio, or data signals.
또한, 저장부(3140)는 외부장치 인터페이스부(3135) 또는 네트워크 인터페이스부(3130)로부터 입력되는 영상, 음성, 또는 데이터 신호의 임시 저장을 위한 기능을 수행할 수도 있다. 저장부(3140)는, 채널 기억 기능을 통하여 소정 방송 채널에 관한 정보를 저장할 수 있다.Also, the storage unit 3140 may perform a function for temporarily storing an image, audio, or data signal input from the external device interface unit 3135 or the network interface unit 3130. The storage unit 3140 may store information regarding a predetermined broadcast channel through a channel memory function.
저장부(3140)는, 외부장치 인터페이스부(3135) 또는 네트워크 인터페이스부(3130)로부터 입력되는 애플리케이션 또는 애플리케이션 목록을 저장할 수 있다.The storage unit 3140 may store an application or a list of applications input from the external device interface unit 3135 or the network interface unit 3130.
또한, 저장부(3140)는, 후술하여 설명하는 다양한 플랫폼(platform)을 저장할 수도 있다.Also, the storage unit 3140 may store various platforms, which will be described later.
저장부(3140)는, 예를 들어 플래시 메모리 타입(flash memory type), 하드디스크 타입(hard disk type), 멀티미디어 카드 마이크로 타입(multimedia card micro type), 카드 타입의 메모리(예를 들어 SD 또는 XD 메모리 등), 램(RAM), 롬(EEPROM 등) 중 적어도 하나의 타입의 저장매체를 포함할 수 있다. 디지털 기기(3100)는, 저장부(3140) 내에 저장되어 있는 컨텐트 파일(동영상 파일, 정지영상 파일, 음악 파일, 문서 파일, 애플리케이션 파일 등)을 재생하여 사용자에게 제공할 수 있다.The storage unit 3140 includes, for example, a flash memory type, a hard disk type, a multimedia card micro type, and a card type memory (for example, SD or XD) Memory, etc.), RAM (RAM), and ROM (EEPROM, etc.). The digital device 3100 may play and provide content files (video files, still image files, music files, document files, application files, etc.) stored in the storage unit 3140 to the user.
도 31은 저장부(3140)가 제어부(3170)와 별도로 구비된 실시 예를 도시하고 있으나, 본 명세서의 범위는 이에 한정되지 않는다. 즉, 저장부(3140)는 제어부(3170) 내에 포함될 수도 있다.31 illustrates an embodiment in which the storage unit 3140 is provided separately from the control unit 3170, but the scope of the present specification is not limited thereto. That is, the storage unit 3140 may be included in the control unit 3170.
사용자 입력 인터페이스부(3150)는, 사용자가 입력한 신호를 제어부(3170)로 전달하거나, 제어부(3170)의 신호를 사용자에게 전달한다.The user input interface unit 3150 transmits a signal input by the user to the control unit 3170 or a signal from the control unit 3170 to the user.
예를 들어, 사용자 입력 인터페이스부(3150)는, RF 통신 방식, 적외선(IR) 통신 방식 등 다양한 통신 방식에 따라, 원격제어장치(3200)로부터 전원 온/오프, 채널 선택, 화면 설정 등의 제어 신호를 수신하여 처리하거나, 제어부(3170)의 제어 신호를 원격제어장치(3200)로 송신하도록 처리할 수 있다.For example, the user input interface unit 3150 controls power on/off, channel selection, and screen setting from the remote control device 3200 according to various communication methods such as RF communication method and infrared (IR) communication method. The signal may be received and processed, or may be processed to transmit the control signal of the control unit 3170 to the remote control device 3200.
또한, 사용자 입력 인터페이스부(3150)는, 전원 키, 채널 키, 볼륨 키, 설정치 등의 로컬 키(미도시)에서 입력되는 제어 신호를 제어부(3170)에 전달할 수 있다.Also, the user input interface unit 3150 may transmit a control signal input from a local key (not shown) such as a power key, a channel key, a volume key, and a set value to the controller 3170.
사용자 입력 인터페이스부(3150)는, 사용자의 제스처(gesture)를 센싱(sensing)하는 센싱부(미도시)로부터 입력되는 제어 신호를 제어부(3170)에 전달하거나, 제어부(3170)의 신호를 센싱부(미도시)로 송신할 수 있다. 여기서, 센싱부(미도시)는, 터치 센서, 음성 센서, 위치 센서, 동작 센서 등을 포함할 수 있다.The user input interface unit 3150 transmits a control signal input from a sensing unit (not shown) that senses a user's gesture to the control unit 3170, or senses a signal from the control unit 3170. (Not shown). Here, the sensing unit (not shown) may include a touch sensor, a voice sensor, a position sensor, and a motion sensor.
제어부(3170)는, 튜너(3110), 복조부(3120) 또는 외부장치 인터페이스부(3135)를 통하여 입력되는 스트림을 역다중화하거나 역다중화된 신호들을 처리하여, 영상 또는 음성 출력을 위한 신호를 생성 및 출력할 수 있다. 제어부(3170)는 전술한 인코딩 장치 및/또는 디코딩 장치를 포함할 수 있다.The control unit 3170 de-multiplexes the stream input through the tuner 3110, the demodulator 3120, or the external device interface unit 3135 or processes the demultiplexed signals to generate a signal for video or audio output. And output. The control unit 3170 may include the aforementioned encoding device and/or decoding device.
제어부(3170)에서 처리된 영상 신호는, 디스플레이부(3180)로 입력되어 해당 영상 신호에 대응하는 영상으로 표시될 수 있다. 또한, 제어부(3170)에서 영상 처리된 영상 신호는 외부장치 인터페이스부(3135)를 통하여 외부 출력 장치로 입력될 수 있다.The image signal processed by the control unit 3170 may be input to the display unit 3180 and displayed as an image corresponding to the corresponding image signal. In addition, the image signal processed by the control unit 3170 may be input to an external output device through the external device interface unit 3135.
제어부(3170)에서 처리된 음성 신호는 오디오 출력부(3185)로 오디오 출력될 수 있다. 또한, 제어부(3170)에서 처리된 음성 신호는 외부장치 인터페이스부(3135)를 통하여 외부 출력장치로 입력될 수 있다.The audio signal processed by the control unit 3170 may be audio output to the audio output unit 3185. Also, the audio signal processed by the control unit 3170 may be input to the external output device through the external device interface unit 3135.
도 31에서는 도시되어 있지 않으나, 제어부(3170)는 역다중화부, 영상처리부 등을 포함할 수 있다.Although not shown in FIG. 31, the control unit 3170 may include a demultiplexing unit, an image processing unit, and the like.
제어부(3170)는, 디지털 기기(3100)의 전반적인 동작을 제어할 수 있다. 예를 들어, 제어부(3170)는, 튜너(3110)를 제어하여, 사용자가 선택한 채널 또는 기저장된 채널에 해당하는 RF 방송을 튜닝(tuning)하도록 제어할 수 있다.The control unit 3170 may control the overall operation of the digital device 3100. For example, the control unit 3170 may control the tuner 3110 to tune the RF broadcast corresponding to a channel selected by a user or a pre-stored channel.
제어부(3170)는, 사용자 입력 인터페이스부(3150)를 통하여 입력된 사용자 명령 또는 내부 프로그램에 의하여 디지털 기기(3100)를 제어할 수 있다. 특히, 네트워크에 접속하여 사용자가 원하는 애플리케이션 또는 애플리케이션 목록을 디지털 기기(3100) 내로 다운로드 받을 수 있도록 할 수 있다.The control unit 3170 may control the digital device 3100 by a user command input through the user input interface unit 3150 or an internal program. In particular, it is possible to access a network and download a desired application or application list into the digital device 3100.
예를 들어, 제어부(3170)는, 사용자 입력 인터페이스부(3150)를 통하여 수신한 소정 채널 선택 명령에 따라 선택한 채널의 신호가 입력되도록 튜너(3110)를 제어한다. 그리고 선택한 채널의 영상, 음성 또는 데이터 신호를 처리한다. 제어부(3170)는, 사용자가 선택한 채널 정보 등이 처리한 영상 또는 음성신호와 함께 디스플레이부(3180) 또는 오디오 출력부(3185)를 통하여 출력될 수 있도록 한다.For example, the control unit 3170 controls the tuner 3110 so that a signal of a selected channel is input according to a predetermined channel selection command received through the user input interface unit 3150. And it processes the video, audio or data signal of the selected channel. The control unit 3170 allows the channel information, etc. selected by the user to be output through the display unit 3180 or the audio output unit 3185 along with the processed image or audio signal.
다른 예로, 제어부(3170)는, 사용자 입력 인터페이스부(3150)를 통하여 수신한 외부장치 영상 재생 명령에 따라, 외부장치 인터페이스부(3135)를 통하여 입력되는 외부 장치, 예를 들어, 카메라 또는 캠코더로부터의, 영상 신호 또는 음성 신호가 디스플레이부(3180) 또는 오디오 출력부(3185)를 통해 출력될 수 있도록 한다.As another example, the control unit 3170 may be input from an external device input through the external device interface unit 3135, for example, a camera or camcorder, according to an external device image playback command received through the user input interface unit 3150. The video signal or the audio signal can be output through the display unit 3180 or the audio output unit 3185.
한편, 제어부(3170)는, 영상을 표시하도록 디스플레이부(3180)를 제어할 수 있다. 예를 들어, 튜너(3110)를 통해 입력되는 방송 영상, 또는 외부장치 인터페이스부(3135)를 통해 입력되는 외부 입력 영상, 또는 네트워크 인터페이스부를 통해 입력되는 영상, 또는 저장부(3140)에 저장된 영상을, 디스플레이부(3180)에 표시하도록 제어할 수 있다. 이때, 디스플레이부(3180)에 표시되는 영상은, 정지 영상 또는 동영상일 수 있으며, 2D 영상 또는 3D 영상일 수 있다.Meanwhile, the control unit 3170 may control the display unit 3180 to display an image. For example, a broadcast image input through the tuner 3110, an external input image input through the external device interface unit 3135, an image input through the network interface unit, or an image stored in the storage unit 3140. , It can be controlled to be displayed on the display unit 3180. At this time, the image displayed on the display unit 3180 may be a still image or a video, and may be a 2D video or a 3D video.
또한, 제어부(3170)는, 컨텐트를 재생하도록 제어할 수 있다. 이때의 컨텐트는, 디지털 기기(3100) 내에 저장된 컨텐트, 또는 수신된 방송 컨텐트, 외부로부터 입력되는 외부 입력 컨텐트일 수 있다. 컨텐트는, 방송 영상, 외부 입력 영상, 오디오 파일, 정지 영상, 접속된 웹 화면, 및 문서 파일 중 적어도 하나일 수 있다.Also, the control unit 3170 may control to play the content. The content at this time may be content stored in the digital device 3100, received broadcast content, or external input content input from the outside. The content may be at least one of a broadcast image, an external input image, an audio file, a still image, a connected web screen, and a document file.
한편, 제어부(3170)는, 애플리케이션 보기 항목에 진입하는 경우, 디지털 기기(3100) 내 또는 외부 네트워크로부터 다운로드 가능한 애플리케이션 또는 애플리케이션 목록을 표시하도록 제어할 수 있다.Meanwhile, when entering the application view item, the controller 3170 may control to display a list of applications or applications that can be downloaded from the digital device 3100 or from an external network.
제어부(3170)는, 다양한 사용자 인터페이스와 더불어, 외부 네트워크로부터 다운로드 되는 애플리케이션을 설치 및 구동하도록 제어할 수 있다. 또한, 사용자의 선택에 의해, 실행되는 애플리케이션에 관련된 영상이 디스플레이부(3180)에 표시되도록 제어할 수 있다.The control unit 3170 may control to install and operate an application downloaded from an external network along with various user interfaces. Also, an image related to an application to be executed can be controlled to be displayed on the display unit 3180 by a user's selection.
한편, 도면에 도시하지 않았지만, 채널 신호 또는 외부 입력 신호에 대응하는 썸네일 이미지를 생성하는 채널 브라우징 처리부가 더 구비되는 것도 가능하다.On the other hand, although not shown in the drawing, it is also possible that a channel browsing processing unit for generating a thumbnail image corresponding to a channel signal or an external input signal is further provided.
채널 브라우징 처리부는, 복조부(3120)에서 출력한 스트림 신호(TS) 또는 외부장치 인터페이스부(3135)에서 출력한 스트림 신호 등을 입력받아, 입력되는 스트림 신호로부터 영상을 추출하여 썸네일 영상을 생성할 수 있다.The channel browsing processing unit receives a stream signal (TS) output from the demodulator 3120 or a stream signal output from the external device interface unit 3135, extracts an image from the input stream signal, and generates a thumbnail image. Can.
생성된 썸네일 영상은 그대로 또는 부호화되어 제어부(3170)로 입력될 수 있다. 또한, 생성된 썸네일 영상은 스트림 형태로 부호화되어 제어부(3170)로 입력되는 것도 가능하다. 제어부(3170)는 입력된 썸네일 영상을 이용하여 복수의 썸네일 영상을 구비하는 썸네일 리스트를 디스플레이부(3180)에 표시할 수 있다. 한편, 이러한 썸네일 리스트 내의 썸네일 영상들은 차례로 또는 동시에 업데이트 될 수 있다. 이에 따라 사용자는 복수의 방송 채널의 내용을 간편하게 파악할 수 있게 된다.The generated thumbnail image can be input to the control unit 3170 as it is or encoded. In addition, the generated thumbnail image may be encoded in a stream form and input to the controller 3170. The controller 3170 may display a list of thumbnails having a plurality of thumbnail images on the display unit 3180 using the input thumbnail images. Meanwhile, thumbnail images in the thumbnail list may be updated sequentially or simultaneously. Accordingly, the user can easily grasp the contents of a plurality of broadcast channels.
디스플레이부(3180)는, 제어부(3170)에서 처리된 영상 신호, 데이터 신호, OSD 신호 또는 외부장치 인터페이스부(3135)에서 수신되는 영상 신호, 데이터 신호 등을 각각 R, G, B 신호로 변환하여 구동 신호를 생성한다.The display unit 3180 converts an image signal, a data signal, an OSD signal processed by the control unit 3170, or an image signal or data signal received from the external device interface unit 3135 into R, G, and B signals, respectively. Generate a drive signal.
디스플레이부(3180)는 PDP, LCD, OLED, 플렉시블 디스플레이(flexible display), 3차원 디스플레이(3D display) 등이 가능할 수 있다.The display unit 3180 may be a PDP, LCD, OLED, flexible display, 3D display, or the like.
한편, 디스플레이부(3180)는, 터치 스크린으로 구성되어 출력 장치 이외에 입력 장치로 사용되는 것도 가능하다.Meanwhile, the display unit 3180 may be configured as a touch screen and used as an input device in addition to an output device.
오디오 출력부(3185)는, 제어부(3170)에서 음성 처리된 신호, 예를 들어, 스테레오 신호, 3.1 채널 신호 또는 5.1 채널 신호를 입력받아 음성으로 출력한다. 음성 출력부(3185)는 다양한 형태의 스피커로 구현될 수 있다.The audio output unit 3185 receives a signal processed by the controller 3170, for example, a stereo signal, a 3.1 channel signal, or a 5.1 channel signal, and outputs the audio. The audio output unit 3185 may be implemented as various types of speakers.
한편, 사용자의 제스처를 감지하기 위해, 상술한 바와 같이, 터치 센서, 음성 센서, 위치 센서, 동작 센서 중 적어도 하나를 구비하는 센싱부(미도시)가 디지털 기기(3100)에 더 구비될 수 있다. 센싱부(미도시)에서 감지된 신호는 사용자입력 인터페이스부(3150)를 통해 제어부(3170)로 전달될 수 있다.Meanwhile, in order to sense a user's gesture, as described above, a sensing unit (not shown) having at least one of a touch sensor, a voice sensor, a position sensor, and a motion sensor may be further provided in the digital device 3100. . The signal detected by the sensing unit (not shown) may be transmitted to the control unit 3170 through the user input interface unit 3150.
한편, 사용자를 촬영하는 촬영부(미도시)가 더 구비될 수 있다. 촬영부(미도시)에서 촬영된 영상 정보는 제어부(3170)에 입력될 수 있다.Meanwhile, a photographing unit (not shown) for photographing a user may be further provided. Image information photographed by the photographing unit (not shown) may be input to the control unit 3170.
제어부(3170)는, 촬영부(미도시)로부터 촬영된 영상, 또는 센싱부(미도시)로부터의 감지된 신호를 각각 또는 조합하여 사용자의 제스처를 감지할 수도 있다.The control unit 3170 may detect a user's gesture by individually or in combination with an image captured by the photographing unit (not shown) or a detected signal from the sensing unit (not shown).
전원 공급부(3190)는, 디지털 기기(3100) 전반에 걸쳐 해당 전원을 공급한다.The power supply unit 3190 supplies corresponding power throughout the digital device 3100.
특히, 시스템 온 칩(system on chip, SOC)의 형태로 구현될 수 있는 제어부(3170)와, 영상 표시를 위한 디스플레이부(3180), 및 오디오 출력을 위한 오디오 출력부(3185)에 전원을 공급할 수 있다.Particularly, power is supplied to a control unit 3170 that can be implemented in the form of a system on chip (SOC), a display unit 3180 for image display, and an audio output unit 3185 for audio output. Can.
이를 위해, 전원 공급부(3190)는, 교류 전원을 직류 전원으로 변환하는 컨버터(미도시)를 구비할 수 있다. 한편, 예를 들어, 디스플레이부(3180)가 다수의 백라이트 램프를 구비하는 액정패널로서 구현되는 경우, 휘도 가변 또는 디밍(dimming) 구동을 위해, PWM 동작 가능한 인버터(미도시)를 더 구비할 수도 있다.To this end, the power supply unit 3190 may include a converter (not shown) that converts AC power into DC power. On the other hand, for example, when the display unit 3180 is implemented as a liquid crystal panel having a plurality of backlight lamps, a PWM-operable inverter (not shown) may be further provided for driving luminance or dimming. have.
원격제어장치(3200)는, 사용자 입력을 사용자입력 인터페이스부(3150)로 송신한다. 이를 위해, 원격제어장치(3200)는, 블루투스(bluetooth), RF(radio frequency) 통신, 적외선(IR) 통신, UWB(Ultra Wideband), 지그비(ZigBee) 방식 등을 사용할 수 있다.The remote control device 3200 transmits a user input to the user input interface unit 3150. To this end, the remote control device 3200, Bluetooth (bluetooth), RF (radio frequency) communication, infrared (IR) communication, UWB (Ultra Wideband), ZigBee (ZigBee) method can be used.
또한, 원격제어장치(3200)는, 사용자입력 인터페이스부(3150)에서 출력한 영상, 음성 또는 데이터 신호 등을 수신하여, 이를 원격제어장치(3200)에서 표시하거나 음성 또는 진동을 출력할 수 있다.Also, the remote control device 3200 may receive an image, audio, or data signal output from the user input interface unit 3150, display it on the remote control device 3200, or output voice or vibration.
상술한 디지털 기기(3100)는, 고정형 또는 이동형의 ATSC 방식 또는 DVB 방식의 디지털 방송 신호의 처리가 가능한 디지털 방송 수신기일 수 있다.The digital device 3100 described above may be a digital broadcast receiver capable of processing a fixed or mobile ATSC or DVB digital broadcast signal.
그 밖에 본 명세서에 따른 디지털 기기는 도시된 구성 중 필요에 따라 일부 구성을 생략하거나 반대로 도시되진 않은 구성을 더 포함할 수도 있다. 한편, 디지털 기기는 상술한 바와 달리, 튜너와 복조부를 구비하지 않고, 네트워크 인터페이스부 또는 외부장치 인터페이스부를 통해서 컨텐트를 수신하여 재생할 수도 있다.In addition, the digital device according to the present specification may omit some components or further include components not illustrated, as necessary. On the other hand, as described above, the digital device does not have a tuner and a demodulator, and may receive and play content through a network interface unit or an external device interface unit.
도 32는 도 29 내지 도 31의 제어부의 상세 구성의 일 실시예를 설명하기 위해 도시한 구성 블록도이다.32 is a block diagram illustrating a detailed configuration of the control unit of FIGS. 29 to 31 to illustrate one embodiment.
제어부의 일 예는, 역다중화부(3210), 영상 처리부(3220), OSD(on-screen display) 생성부(3240), 믹서(mixer)(3250), 프레임 레이트 변환부(frame rate converter, FRC)(3255), 및 포맷터(formatter)(3260)를 포함할 수 있다. 그 외 상기 제어부는 도시되진 않았으나 음성 처리부와 데이터 처리부를 더 포함할 수 있다.Examples of the control unit, demultiplexing unit 3210, image processing unit 3220, on-screen display (OSD) generation unit 3240, mixer (mixer) 3250, frame rate converter (frame rate converter, FRC) ) 3255, and a formatter 3260. In addition, although not illustrated, the control unit may further include a voice processing unit and a data processing unit.
역다중화부(3210)는, 입력되는 스트림을 역다중화한다. 예를 들어, 역다중화부(3210)는 입력되는 MPEG-2 TS 영상, 음성 및 데이터 신호로 역다중화할 수 있다. 여기서, 역다중화부(3210)에 입력되는 스트림 신호는, 튜너 또는 복조부 또는 외부장치 인터페이스부에서 출력되는 스트림 신호일 수 있다.The demultiplexing unit 3210 demultiplexes the input stream. For example, the demultiplexer 3210 may demultiplex the input MPEG-2 TS video, audio, and data signals. Here, the stream signal input to the demultiplexer 3210 may be a stream signal output from a tuner or demodulator or an external device interface.
영상 처리부(3220)는, 역다중화된 영상 신호의 영상 처리를 수행한다. 이를 위해, 영상 처리부(3220)는, 영상 디코더(3225) 및 스케일러(3235)를 구비할 수 있다.The image processing unit 3220 performs image processing of the demultiplexed image signal. To this end, the image processing unit 3220 may include an image decoder 3225 and a scaler 3235.
영상 디코더(3225)는 역다중화된 영상 신호를 복호하며, 스케일러(3235)는 복호된 영상 신호의 해상도를 디스플레이부에서 출력 가능하도록 스케일링(scaling)한다.The video decoder 3225 decodes the demultiplexed video signal, and the scaler 3235 scales the resolution of the decoded video signal to be output from the display unit.
영상 디코더(3225)는 다양한 규격을 지원할 수 있다. 예를 들어, 영상 디코더(3225)는 영상 신호가 MPEG-2 규격으로 부호화된 경우에는 MPEG-2 디코더의 기능을 수행하고, 영상 신호가 DMB(digital multimedia broadcasting) 방식 또는 H.264 규격으로 부호화된 경우에는 H.264 디코더의 기능을 수행할 수 있다.The video decoder 3225 may support various standards. For example, the video decoder 3225 performs the function of the MPEG-2 decoder when the video signal is encoded in the MPEG-2 standard, and the video signal is encoded in the digital multimedia broadcasting (DMB) method or the H.264 standard. In this case, the function of the H.264 decoder can be performed.
한편, 영상 처리부(3220)에서 복호된 영상 신호는, 믹서(3250)로 입력된다.Meanwhile, the video signal decoded by the video processing unit 3220 is input to the mixer 3250.
OSD 생성부(3240)는, 사용자 입력에 따라 또는 자체적으로 OSD 데이터를 생성한다. 예를 들어, OSD 생성부(3240)는 사용자입력 인터페이스부의 제어 신호에 기초하여 디스플레이부의 화면에 각종 데이터를 그래픽(graphic)이나 텍스트(text) 형태로 표시하기 위한 데이터를 생성한다. 생성되는 OSD 데이터는, 디지털 기기의 사용자 인터페이스 화면, 다양한 메뉴 화면, 위젯(widget), 아이콘(icon), 시청률 정보(viewing rate information) 등의 다양한 데이터를 포함한다.The OSD generation unit 3240 generates OSD data according to a user input or by itself. For example, the OSD generating unit 3240 generates data for displaying various data on the screen of the display unit in the form of a graphic or text based on the control signal of the user input interface unit. The generated OSD data includes various data such as a user interface screen of a digital device, various menu screens, widgets, icons, and viewing rate information.
OSD 생성부(3240)는, 방송 영상의 자막 또는 EPG에 기반한 방송 정보를 표시하기 위한 데이터를 생성할 수도 있다.The OSD generator 3240 may generate data for displaying subtitles of broadcast images or broadcast information based on EPG.
믹서(3250)는, OSD 생성부(3240)에서 생성된 OSD 데이터와 영상 처리부에서 영상 처리된 영상 신호를 믹싱하여 포맷터(3260)로 제공한다. 복호된 영상 신호와 OSD 데이터가 믹싱됨으로 인하여, 방송 영상 또는 외부 입력 영상 상에 OSD가 오버레이(overlay) 되어 표시된다.The mixer 3250 mixes the OSD data generated by the OSD generator 3240 and the image signal processed by the image processor to provide the formatter 3260. Because the decoded video signal and the OSD data are mixed, the OSD is displayed overlaid on a broadcast video or an external input video.
프레임 레이트 변환부(FRC)(3255)는, 입력되는 영상의 프레임 레이트(frame rate)를 변환한다. 예를 들어, 프레임 레이트 변환부(3255)는 입력되는 60Hz 영상의 프레임 레이트를 디스플레이부의 출력 주파수에 따라 예를 들어, 120Hz 또는 240Hz의 프레임 레이트를 가지도록 변환할 수 있다. 상기와 같이, 프레임 레이트를 변환하는 방법에는 다양한 방법이 존재할 수 있다. 일 예로, 프레임 레이트 변환부(3255)는 프레임 레이트를 60Hz에서 120Hz로 변환하는 경우, 제1 프레임과 제2 프레임 사이에 동일한 제1 프레임을 삽입하거나, 제1 프레임과 제2 프레임으로부터 예측된 제3 프레임을 삽입함으로써 변환할 수 있다. 다른 예로, 프레임 레이트 변환부(3255)는 프레임 레이트를 60Hz에서 240Hz로 변환하는 경우, 기존 프레임 사이에 동일한 프레임 또는 예측된 프레임을 3개 더 삽입하여 변환할 수 있다. 한편, 별도의 프레임 변환을 수행하지 않는 경우에는 프레임 레이트 변환부(3255)를 바이패스(bypass) 할 수도 있다.A frame rate converter (FRC) 3255 converts a frame rate of an input video. For example, the frame rate converting unit 3255 may convert the input 60 Hz image frame rate to have a frame rate of, for example, 120 Hz or 240 Hz according to the output frequency of the display unit. As described above, various methods may exist in the method for converting the frame rate. For example, when converting the frame rate from 60 Hz to 120 Hz, the frame rate converter 3255 inserts the same first frame between the first frame and the second frame, or predicts the first frame from the first frame and the second frame. It can be converted by inserting 3 frames. As another example, when the frame rate converter 3255 converts the frame rate from 60 Hz to 240 Hz, three or more identical frames or predicted frames may be inserted and converted between existing frames. Meanwhile, when a separate frame conversion is not performed, the frame rate conversion unit 3255 may be bypassed.
포맷터(3260)는, 입력되는 프레임 레이트 변환부(3255)의 출력을 디스플레이부의 출력 포맷에 맞게 변경한다. 예를 들어, 포맷터(3260)는 R, G, B 데이터 신호를 출력할 수 있으며, 이러한 R, G, B 데이터 신호는, 낮은 전압 차분 신호(low voltage differential signaling, LVDS) 또는 mini-LVDS로 출력될 수 있다. 또한, 포맷터(3260)는 입력되는 프레임 레이트 변환부(3255)의 출력이 3D 영상 신호인 경우에는 디스플레이부의 출력 포맷에 맞게 3D 형태로 구성하여 출력함으로써, 디스플레이부를 통해 3D 서비스를 지원할 수도 있다.The formatter 3260 changes the output of the input frame rate conversion unit 3255 to match the output format of the display unit. For example, the formatter 3260 may output R, G, and B data signals, and the R, G, and B data signals may be output as low voltage differential signaling (LVDS) or mini-LVDS Can be. In addition, when the output of the input frame rate conversion unit 3255 is a 3D video signal, the formatter 3260 may support 3D service through the display unit by configuring and outputting a 3D format according to the output format of the display unit.
한편, 제어부 내 음성 처리부(미도시)는, 역다중화된 음성 신호의 음성 처리를 수행할 수 있다. 이러한 음성 처리부(미도시)는 다양한 오디오 포맷을 처리하도록 지원할 수 있다. 일 예로, 음성 신호가 MPEG-2, MPEG-4, AAC, HE-AAC, AC-3, BSAC 등의 포맷으로 부호화된 경우에도 이에 대응되는 디코더를 구비하여 처리할 수 있다.Meanwhile, the voice processing unit (not shown) in the control unit may perform voice processing of the demultiplexed voice signal. The voice processing unit (not shown) may support various audio formats. For example, even when an audio signal is encoded in formats such as MPEG-2, MPEG-4, AAC, HE-AAC, AC-3, BSAC, a decoder corresponding thereto may be provided and processed.
또한, 제어부 내 음성 처리부(미도시)는, 베이스(base), 트레블(treble), 음량 조절 등을 처리할 수 있다.In addition, the voice processing unit (not shown) in the control unit may process a base, treble, volume control, and the like.
제어부 내 데이터 처리부(미도시)는, 역다중화된 데이터 신호의 데이터 처리를 수행할 수 있다. 예를 들어, 데이터 처리부는 역다중화된 데이터 신호가 부호화된 경우에도 이를 복호할 수 있다. 여기서, 부호화된 데이터 신호로는, 각 채널에서 방영되는 방송 프로그램의 시작시각, 종료시각 등의 방송 정보가 포함된 EPG 정보일 수 있다.The data processing unit (not shown) in the control unit may perform data processing of the demultiplexed data signal. For example, the data processing unit can decode the demultiplexed data signal even when it is encoded. Here, the encoded data signal may be EPG information including broadcast information such as a start time and an end time of a broadcast program broadcast on each channel.
한편, 상술한 디지털 기기는 본 명세서에 따른 예시로서, 각 구성요소는 실제 구현되는 디지털 기기의 사양에 따라 통합, 추가, 또는 생략될 수 있다. 즉, 필요에 따라, 2 이상의 구성요소가 하나의 구성요소로 합쳐지거나 하나의 구성요소가 2 이상의 구성요소로 세분화될 수 있다. 또한, 각 블록에서 수행하는 기능은 본 명세서의 실시예를 설명하기 위한 것이며, 그 구체적인 동작이나 장치는 본 명세서의 권리범위를 제한하지 아니한다.Meanwhile, the above-described digital device is an example according to the present specification, and each component may be integrated, added, or omitted according to specifications of a digital device that is actually implemented. That is, if necessary, two or more components may be combined into one component, or one component may be subdivided into two or more components. In addition, the function performed in each block is for describing an embodiment of the present specification, and the specific operation or device does not limit the scope of rights of the present specification.
한편, 디지털 기기는, 장치 내에 저장된 영상 또는 입력되는 영상의 신호 처리를 수행하는 영상신호 처리장치일 수 있다. 영상신호 처리장치의 다른 예로는, 도 37에서 도시된 디스플레이부(3180)와 오디오 출력부(3185)가 제외된 셋톱-박스(STB), 상술한 DVD 플레이어, 블루-레이 플레이어, 게임기기, 컴퓨터 등이 더 예시될 수 있다.Meanwhile, the digital device may be an image signal processing device that performs signal processing of an image stored in the device or an input image. As another example of the image signal processing apparatus, the display unit 3180 and the audio output unit 3185 shown in FIG. 37 are excluded from the set-top box (STB), the above-described DVD player, Blu-ray player, game device, computer And the like can be further exemplified.
도 33은 일 실시예에 따른 디지털 기기의 스크린이 메인 영상(main image)과 보조 영상(sub image)을 동시에 디스플레이 하는 일 예시를 도시하는 도면이다.33 is a diagram illustrating an example in which a screen of a digital device displays a main image and a sub image simultaneously according to an embodiment.
일 실시예에 따른 디지털 기기는 스크린(3300)에 메인 영상(3310)과 보조 영상(3320)을 동시에 디스플레이 할 수 있다. 메인 영상(3310)은 제1 영상이라 불릴 수 있고, 보조 영상(3320)은 제2 영상이라 불릴 수 있다. 메인 영상(3310)과 보조 영상(3320)은 동영상, 스틸 이미지, EPG(electronic program guide), GUI(graphical user interface), OSD(on-screen display) 등을 포함할 수 있고, 이에 한정되지 않는다. 메인 영상(3310)은 전자 장치의 스크린(3300)에 보조 영상(3320)과 동시에 디스플레이 되면서 전자 장치의 스크린(3300) 보다 크기가 상대적으로 작은 영상을 의미할 수 있으며, PIP(picture in picture)로 지칭되기도 한다. 도 33에서는 메인 영상(3310)이 디지털 기기의 스크린(3300)의 좌측 상단에 디스플레이 되는 것으로 도시되어 있으나, 메인 영상(3310)이 디스플레이 되는 위치는 이에 한정되지 않고, 메인 영상(3310)은 디지털 기기의 스크린(3300) 내의 임의의 위치에서 디스플레이 될 수 있다. The digital device according to an embodiment may simultaneously display the main image 3310 and the auxiliary image 3320 on the screen 3300. The main image 3310 may be referred to as a first image, and the auxiliary image 3320 may be referred to as a second image. The main image 3310 and the auxiliary image 3320 may include a video, a still image, an electronic program guide (EPG), a graphical user interface (GUI), an on-screen display (OSD), and the like. The main image 3310 may mean an image that is relatively smaller in size than the screen 3300 of the electronic device while being displayed simultaneously with the auxiliary image 3320 on the screen 3300 of the electronic device, as a picture in picture (PIP). Also referred to as. In FIG. 33, the main image 3310 is shown as being displayed on the upper left of the screen 3300 of the digital device, but the location where the main image 3310 is displayed is not limited thereto, and the main image 3310 is a digital device. Can be displayed at any location within the screen 3300.
메인 영상(3310)과 보조 영상(3320)은 상호 직접 또는 간접적으로 관련될 수 있다. 일 예시로, 메인 영상(3310)은 스트리밍(streaming) 동영상이고, 보조 영상(3320)은 스트리밍 동영상과 유사한 정보를 포함하는 동영상들의 썸네일(thumbnail)들을 순차로 디스플레이 하는 GUI일 수 있다. 다른 예시로, 메인 영상(3310)은 방송 영상(broadcasted image)이고, 보조 영상(3320)은 EPG일 수 있다. 또 다른 예시로, 메인 영상(3310)은 방송 영상이고, 보조 영상(3320)은 GUI일 수 있다. 메인 영상(3310)과 보조 영상(3320)의 예시는 이에 한정되지 않는다.The main image 3310 and the auxiliary image 3320 may be directly or indirectly related to each other. As an example, the main video 3310 is a streaming video, and the auxiliary video 3320 may be a GUI that sequentially displays thumbnails of videos including information similar to the streaming video. As another example, the main image 3310 may be a broadcasted image, and the auxiliary image 3320 may be an EPG. As another example, the main image 3310 may be a broadcast image, and the auxiliary image 3320 may be a GUI. Examples of the main image 3310 and the auxiliary image 3320 are not limited thereto.
일 실시예에서, 메인 영상(3310)은 방송 채널(broadcasting channel)을 통해 수신한 방송 영상(broadcasting image)이고, 보조 영상(3320)은 방송 채널을 통해 수신한 방송 영상과 관련된 정보일 수 있다. 방송 채널을 통해 수신한 방송 영상과 관련된 정보는, 예를 들어 종합 채널 편성표, 방송 프로그램 상세 정보 등을 포함하는 EPG 정보, 방송 프로그램 다시 보기 정보 등을 포함할 수 있으며, 이에 한정되지 않는다.In one embodiment, the main image 3310 is a broadcast image received through a broadcasting channel, and the auxiliary image 3320 may be information related to a broadcast image received through a broadcast channel. The information related to the broadcast video received through the broadcast channel may include, for example, EPG information including a comprehensive channel schedule, broadcast program detailed information, and broadcast program review information, but is not limited thereto.
다른 일 실시예에서, 메인 영상(3310)은 방송 채널을 통해 수신한 방송 영상이고, 보조 영상(3320)은 디지털 기기에 기저장된 정보에 기초하여 생성된 영상일 수 있다. 디지털 기기에 기 저장된 정보에 기초하여 생성된 영상은, 예를 들어 EPG의 기본 UI(User Interface), 기본 채널 정보, 영상 해상도(resolution) 조작 UI, 취침 예약 UI 등을 포함할 수 있으며, 이에 한정되지 않는다.In another embodiment, the main image 3310 is a broadcast image received through a broadcast channel, and the auxiliary image 3320 may be an image generated based on information pre-stored in a digital device. The image generated based on the information pre-stored in the digital device may include, for example, a basic user interface (UI) of the EPG, basic channel information, a video resolution manipulation UI, and a bedtime reservation UI. Does not work.
또 다른 일 실시예에서, 메인 영상(3310)은 방송 채널을 통해 수신한 방송 영상이고, 보조 영상(3320)은 네트워크 망을 통해 수신한, 방송 영상과 관련된 정보일 수 있다. 네트워크망을 통해 수신한, 방송 영상과 관련된 정보는, 예를 들어 네트워크에 기반한 검색 엔진을 통해 획득된 정보일 수 있다. 보다 구체적으로 예를 들면, 네트워크에 기반한 검색 엔진을 통해 현재 메인 영상(3310)에 디스플레이 되고 있는 등장 인물과 관련된 정보가 획득될 수 있다. In another embodiment, the main image 3310 is a broadcast image received through a broadcast channel, and the auxiliary image 3320 may be information related to a broadcast image received through a network. The information related to the broadcast image received through the network may be, for example, information obtained through a network-based search engine. More specifically, for example, information related to a character currently being displayed on the main image 3310 may be obtained through a network-based search engine.
그러나 예시는 이에 한정되지 않으며, 네트워크망을 통해 수신한, 방송 영상과 관련된 정보는 예를 들어 인공지능(artificial intelligence, AI) 시스템을 사용함으로써 획득될 수 있다. 보다 구체적으로 예를 들면, 네트워크에 기반한 딥러닝(deep-learning)을 이용하여 현재 메인 영상(3310)에 디스플레이 되고 있는 장소의 지도상 추정 위치(estimated-location in map)가 획득될 수 있고, 디지털 기기는 네트워크 망을 통하여, 현재 메인 영상(3310)에 디스플레이 되고 있는 장소의 지도상 추정 위치에 관한 정보를 수신할 수 있다.However, the example is not limited to this, and information related to a broadcast image received through a network may be obtained by using, for example, an artificial intelligence (AI) system. More specifically, for example, an estimated-location in map of a place currently being displayed on the main image 3310 can be obtained using a network-based deep-learning, and digital The device may receive information about the estimated location on the map of the place currently being displayed on the main image 3310 through the network.
일 실시예에 따른 디지털 기기는 외부로부터 메인 영상(3310)의 영상 정보 및 보조 영상(3320)의 영상 정보 중 적어도 하나를 수신할 수 있다. 메인 영상(3310)의 영상 정보는 예를 들어 방송 채널(broadcasting channel)을 통해 수신한 방송 신호(broadcasting signal), 메인 영상(3310)의 소스 코드(source code) 정보, 네트워크 망을 통해 수신한 메인 영상(3310)의 IP 패킷(internet protocol packet) 정보 등을 포함할 수 있으며, 이에 한정되지 않는다. 마찬가지로, 보조 영상(3320)의 영상 정보는, 예를 들어 방송 채널을 통해 수신한 방송 신호, 보조 영상(3320)의 소스 코드 정보, 네트워크 망을 통해 수신한 보조 영상(3320)의 IP 패킷 정보 등을 포함할 수 있으며, 이에 한정되지 않는다. 디지털 기기는 외부로부터 수신된 메인 영상(3310)의 영상 정보 또는 보조 영상(3320)의 영상 정보를 디코딩하여 이용할 수 있다. 다만, 경우에 따라서 디지털 기기는 메인 영상(3310)의 영상 정보 또는 보조 영상(3320)의 영상 정보를 내부에 자체적으로 저장하고 있을 수도 있다.The digital device according to an embodiment may receive at least one of image information of the main image 3310 and image information of the auxiliary image 3320 from the outside. The video information of the main video 3310 includes, for example, a broadcast signal received through a broadcasting channel, a source code information of the main video 3310, and a main received through a network network. IP packet (internet protocol packet) information of the image 3310 may be included, but is not limited thereto. Similarly, the video information of the secondary video 3320 includes, for example, a broadcast signal received through a broadcast channel, source code information of the secondary video 3320, IP packet information of the secondary video 3320 received through a network, etc. It may include, but is not limited to. The digital device may decode and use video information of the main video 3310 or video information of the secondary video 3320 received from the outside. However, in some cases, the digital device may store image information of the main image 3310 or image information of the auxiliary image 3320 itself.
디지털 기기는 메인 영상(3310)의 영상 정보 및 보조 영상(3320)과 관련된 정보에 기초하여, 메인 영상(3310)과 보조 영상(3320)을 디지털 기기의 스크린(3300)에 디스플레이 할 수 있다. The digital device may display the main image 3310 and the auxiliary image 3320 on the screen 3300 of the digital device based on the image information of the main image 3310 and information related to the auxiliary image 3320.
일 예시에서, 디지털 기기의 디코딩 장치(200)는 메인 영상 디코딩 장치와 보조 영상 디코딩 장치를 포함하고, 메인 영상 디코딩 장치와 보조 영상 디코딩 장치는 각각 메인 영상(3310)의 영상 정보와 보조 영상(3320)의 영상 정보를 디코딩 할 수 있다. 렌더러는 메인 영상 렌더러(제1 렌더러)와 보조 영상 렌더러(제2 렌더러)를 포함하고, 메인 영상 렌더러는 메인 영상 디코딩 장치에서 디코딩 된 정보에 기초하여 메인 영상(3310)을 디지털 기기의 스크린(3300)의 제1 영역에 디스플레이되도록 할 수 있고, 보조 영상 렌더러는 보조 영상 디코딩 장치에서 디코딩 된 정보에 기초하여 보조 영상(3320)을 디지털 기기의 스크린(3300)의 제2 영역에 디스플레이되도록 할 수 있다.In one example, the decoding apparatus 200 of a digital device includes a main image decoding apparatus and an auxiliary image decoding apparatus, and the main image decoding apparatus and the auxiliary image decoding apparatus respectively include image information and auxiliary images 3320 of the main image 3310. ) Can decode video information. The renderer includes a main image renderer (first renderer) and an auxiliary image renderer (second renderer), and the main image renderer displays the main image 3310 on the screen 3300 of the digital device based on the information decoded by the main image decoding device. ), and the auxiliary image renderer may display the auxiliary image 3320 on the second area of the screen 3300 of the digital device based on the information decoded by the auxiliary image decoding device. .
또 다른 예시에서, 디지털 기기의 디코딩 장치(200)는 메인 영상(3310)의 영상 정보와 보조 영상(3320)의 영상 정보를 디코딩 할 수 있다. 디코딩 장치(200)에서 디코딩된 정보에 기초하여, 렌더러는 메인 영상(3310) 및 보조 영상(3320)을 함께 처리하여 동시에 디지털 기기의 스크린(3300)에 디스플레이되도록 할 수 있다.In another example, the decoding apparatus 200 of the digital device may decode image information of the main image 3310 and image information of the auxiliary image 3320. Based on the information decoded by the decoding apparatus 200, the renderer may process the main image 3310 and the auxiliary image 3320 together to be simultaneously displayed on the screen 3300 of the digital device.
즉, 본 문서에 따르면, 디지털 기기에서 영상 서비스 처리 방법을 제공할 수 있다. 상기 영상 서비스 처리 방법에 따르면, 영상 정보를 수신하는 단계, 상기 영상 정보를 기반으로 (메인) 영상을 디코딩하는 단계, 디코딩된 영상을 디스플레이 내 제1 영역에 렌더링 또는 디스플레이하는 단계, 디스플레이 내 제2 영역에 보조 영상을 렌더링 또는 디스플레이하는 단계를 포함할 수 있다. 이 경우 제1 영상을 디코딩하는 단계는, 상술한 도 3에 따른 디코딩 장치(200)에서의 디코딩 절차를 따를 수 있다. 예를 들어, 상술한 바와 같이, 제1 영상을 디코딩하는 단계는 인터 또는 인트라 예측을 기반으로 현재 블록에 대한 예측 샘플들을 도출하는 단계, 수신된 레지듀얼 정보를 기반으로 현재 블록에 대한 레지듀얼 샘플들을 도출하는 단계(생략 가능) 및 예측 샘플들 및/또는 레지듀얼 샘플들을 기반으로 복원 샘플들을 생성하는 단계를 포함할 수 있다. 추가적으로 제1 영상을 디코딩하는 단계는 복원 샘플들을 포함하는 복원 픽처에 인루프 필터링 절차를 수행하는 것을 포함할 수도 있다. That is, according to this document, it is possible to provide a video service processing method in a digital device. According to the image service processing method, receiving image information, decoding a (main) image based on the image information, rendering or displaying the decoded image in a first area on the display, and displaying a second image And rendering or displaying the auxiliary image in the region. In this case, the decoding of the first image may follow the decoding procedure in the decoding apparatus 200 according to FIG. 3 described above. For example, as described above, decoding the first image may include deriving prediction samples for the current block based on inter or intra prediction, and residual samples for the current block based on the received residual information. And generating reconstructed samples based on predictive samples and/or residual samples. Additionally, decoding the first image may include performing an in-loop filtering procedure on a reconstructed picture including reconstructed samples.
예를 들어, 상기 보조 영상은 EPG(electronic program guide), OSD(on screen display), 또는 GUI(graphic user interface)일 수 있다. 예를 들어, 상기 영상 정보는 방송망(broadcast network)를 통하여 수신되고, 상기 보조 영상에 관한 정보는 상기 방송망을 통하여 수신될 수 있다. 예를 들어, 상기 영상 정보는 통신망(communication network)를 통하여 수신되고, 상기 보조 영상에 관한 정보는 상기 통신망을 통하여 수신될 수 있다. 예를 들어, 상기 영상 정보는 방송망을 통하여 수신되고, 상기 보조 영상에 관한 정보는 통신망을 통하여 수신될 수 있다. 예를 들어, 상기 영상 정보는 방송망 또는 통신망을 통하여 수신되고, 상기 보조 영상에 관한 정보는 상기 디지털 기기 내의 저장매체에 저장되어 있을 수 있다.For example, the auxiliary image may be an electronic program guide (EPG), an on screen display (OSD), or a graphical user interface (GUI). For example, the video information may be received through a broadcast network, and information regarding the auxiliary video may be received through the broadcast network. For example, the image information may be received through a communication network, and information regarding the auxiliary image may be received through the communication network. For example, the image information may be received through a broadcast network, and information regarding the auxiliary image may be received through a communication network. For example, the image information may be received through a broadcasting network or a communication network, and information regarding the auxiliary image may be stored in a storage medium in the digital device.
이상에서 설명된 실시예들은 본 명세서의 구성요소들과 특징들이 소정 형태로 결합된 것들이다. 각 구성요소 또는 특징은 별도의 명시적 언급이 없는 한 선택적인 것으로 고려되어야 한다. 각 구성요소 또는 특징은 다른 구성요소나 특징과 결합되지 않은 형태로 실시될 수 있다. 또한, 일부 구성요소들 및/또는 특징들을 결합하여 본 명세서의 실시예를 구성하는 것도 가능하다. 본 명세서의 실시예들에서 설명되는 동작들의 순서는 변경될 수 있다. 어느 실시예의 일부 구성이나 특징은 다른 실시예에 포함될 수 있고, 또는 다른 실시예의 대응하는 구성 또는 특징과 교체될 수 있다. 특허청구범위에서 명시적인 인용 관계가 있지 않은 청구항들을 결합하여 실시예를 구성하거나 출원 후의 보정에 의해 새로운 청구항으로 포함시킬 수 있음은 자명하다.The embodiments described above are those in which the components and features of the present specification are combined in a predetermined form. Each component or feature should be considered optional unless stated otherwise. Each component or feature may be implemented in a form that is not combined with other components or features. In addition, it is also possible to constitute an embodiment of the present specification by combining some components and/or features. The order of the operations described in the embodiments herein can be changed. Some configurations or features of one embodiment may be included in other embodiments, or may be replaced with corresponding configurations or features of other embodiments. It is obvious that the claims may not be explicitly included in the claims, and the embodiments may be combined or included as new claims by amendment after filing.
펌웨어나 소프트웨어에 의한 구현의 경우, 본 명세서의 일 실시예는 이상에서 설명된 기능 또는 동작들을 수행하는 모듈, 절차, 함수 등의 형태로 구현될 수 있다. 소프트웨어 코드는 메모리에 저장되어 프로세서에 의해 구동될 수 있다. 상기 메모리는 상기 프로세서 내부 또는 외부에 위치하여, 이미 공지된 다양한 수단에 의해 상기 프로세서와 데이터를 주고받을 수 있다.In the case of implementation by firmware or software, an embodiment of the present specification may be implemented in the form of a module, procedure, function, etc. that performs the functions or operations described above. The software code can be stored in memory and driven by a processor. The memory is located inside or outside the processor, and can exchange data with the processor by various known means.
본 명세서는 본 명세서의 필수적 특징을 벗어나지 않는 범위에서 다른 특정한 형태로 구체화될 수 있음은 당업자에게 자명하다. 따라서, 상술한 상세한 설명은 모든 면에서 제한적으로 해석되어서는 아니 되고 예시적인 것으로 고려되어야 한다. 본 명세서의 범위는 첨부된 청구항의 합리적 해석에 의해 결정되어야 하고, 본 명세서의 등가적 범위 내에서의 모든 변경은 본 명세서의 범위에 포함된다. It will be apparent to those skilled in the art that the present specification may be embodied in other specific forms without departing from essential features of the present specification. Therefore, the above detailed description should not be construed as limiting in all respects, but should be considered illustrative. The scope of the present specification should be determined by rational interpretation of the appended claims, and all changes within the equivalent scope of the present specification are included in the scope of the present specification.
이상, 전술한 본 발명의 바람직한 실시예는, 예시의 목적을 위해 개시된 것으로, 당업자라면 이하 첨부된 특허청구범위에 개시된 본 발명의 기술적 사상과 그 기술적 범위 내에서, 다양한 다른 실시예들을 개량, 변경, 대체 또는 부가 등이 가능할 것이다.The preferred embodiments of the present invention described above are disclosed for the purpose of illustration, and those skilled in the art can improve and change various other embodiments within the technical spirit and the technical scope of the present invention disclosed in the appended claims. , Replacement or addition may be possible.

Claims (15)

  1. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 디코딩하기 위한 방법으로서, A method for decoding a video signal using inter prediction,
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하는 단계;Obtaining at least one motion vector for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block based on a merge index;
    MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하는 단계; 및Determining an MMVD offset applied to the at least one motion vector based on a merge index of motion vector difference (MMVD) distance; And
    상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성하는 단계를 포함하며,Generating a prediction sample of the current block based on at least one motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 MMVD 오프셋을 결정하는 단계는,Determining the MMVD offset,
    상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하는 단계;Determining a first offset value associated with the length index;
    상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하는 단계; 및 Determining a second offset value by scaling the first offset value by a scale value based on at least one of the at least one motion vector or the size of the current block; And
    상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하는 단계를 포함하는 것을 특징으로 하는 방법.And determining the second offset value as an MMVD offset.
  2. 제1항에 있어서,According to claim 1,
    상기 현재 블록의 예측 샘플을 생성하는 단계는,Generating a prediction sample of the current block,
    상기 MMVD 오프셋의 부호를 지시하는 MMVD 방향 인덱스를 획득하는 단계; Obtaining an MMVD direction index indicating the sign of the MMVD offset;
    상기 MMVD 오프셋에 상기 MMVD 방향 인덱스에 대응하는 부호를 적용하는 단계; 및 Applying a sign corresponding to the MMVD direction index to the MMVD offset; And
    상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하는 단계를 포함하는 것을 특징으로 하는 방법. And adding the MMVD offset to which the sign is applied to the motion vector.
  3. 제1항에 있어서,According to claim 1,
    상기 스케일 값은,The scale value is,
    상기 적어도 하나의 움직임 벡터의 크기, 상기 적어도 하나의 움직임 벡터의 해상도 중 적어도 하나에 기반하여 결정되는 것을 특징으로 하는 방법.The method is characterized in that it is determined based on at least one of the size of the at least one motion vector and the resolution of the at least one motion vector.
  4. 제1항에 있어서,According to claim 1,
    상기 제1 오프셋 값은 기 정의된(pre-defined) 오프셋 후보 값들 중에서 상기 MMVD 길이 인덱스에 의해 지시되는 것을 특징으로 하는 방법.The method of claim 1, wherein the first offset value is indicated by the MMVD length index among pre-defined offset candidate values.
  5. 제1항에 있어서,According to claim 1,
    상기 적어도 하나의 움직임 벡터는, 수평 방향 성분 및 수직 방향 성분으로 구성되고,The at least one motion vector is composed of a horizontal component and a vertical component,
    상기 MMVD 오프셋은 상기 수평 방향 성분 또는 수직 방향 성분 중 적어도 하나에 적용되는 것을 특징으로 하는 방법.The MMVD offset is characterized in that applied to at least one of the horizontal component or the vertical component.
  6. 제1항에 있어서,According to claim 1,
    상기 적어도 하나의 움직임 벡터는, 제1 참조 픽처 리스트와 관련된 제1 움직임 벡터 및 제2 참조 픽처 리스트와 관련된 제2 움직임 벡터를 포함하고,The at least one motion vector includes a first motion vector associated with the first reference picture list and a second motion vector associated with the second reference picture list,
    상기 제2 오프셋 값은, 상기 제1 움직임 벡터 또는 상기 제2 움직임 벡터 중 적어도 하나에 기반하여 결정되는 것을 특징으로 하는 방법.The second offset value is determined based on at least one of the first motion vector or the second motion vector.
  7. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 인코딩하기 위한 방법으로서, A method for encoding a video signal using inter prediction,
    현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처를 결정하는 단계;Determining at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block;
    상기 적어도 하나의 움직임 벡터에 적용되는 MMVD(merge with motion vector difference) 오프셋을 결정하는 단계;Determining a merge with motion vector difference (MMVD) offset applied to the at least one motion vector;
    상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처에 기반하여 상기 현재 블록에 대한 예측을 수행하는 단계; 및Performing prediction on the current block based on at least one motion vector to which the MMVD offset is applied and the at least one reference picture; And
    상기 예측과 관련된 정보를 코딩하는 단계를 포함하고,Coding the information related to the prediction,
    상기 예측과 관련된 정보는, 상기 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처와 관련된 머지 인덱스, 및 상기 MMVD 오프셋 값을 지시하는 MMVD 길이(distance) 인덱스를 포함하고,The information related to the prediction includes a merge index associated with the at least one motion vector and the at least one reference picture, and an MMVD distance index indicating the MMVD offset value,
    상기 예측을 수행하는 단계는,The step of performing the prediction,
    상기 MMVD 길이 인덱스와 관련된 제1 오프셋 값을 결정하는 단계;Determining a first offset value associated with the MMVD length index;
    상기 적어도 하나의 움직임 벡터에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하는 단계; 및 Determining a second offset value by scaling the first offset value by a scale value based on the at least one motion vector; And
    상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하는 단계를 포함하는 것을 특징으로 하는 방법.And determining the second offset value as an MMVD offset.
  8. 제7항에 있어서,The method of claim 7,
    상기 예측을 수행하는 단계는,The step of performing the prediction,
    상기 MMVD 오프셋의 부호를 결정하는 단계; Determining a sign of the MMVD offset;
    상기 MMVD 오프셋에 상기 부호를 적용하는 단계; 및 Applying the sign to the MMVD offset; And
    상기 부호가 적용된 MMVD 오프셋을 상기 움직임 벡터에 더하는 단계를 포함하고, And adding the MMVD offset to which the sign is applied to the motion vector,
    상기 예측과 관련된 정보는, 상기 MMVD 오프셋의 부호와 관련된 MMVD 방향 인덱스를 더 포함하는 것을 특징으로 하는 방법. The information related to the prediction, further comprising an MMVD direction index associated with the sign of the MMVD offset.
  9. 제7항에 있어서,The method of claim 7,
    상기 스케일 값은,The scale value is,
    상기 적어도 하나의 움직임 벡터의 크기, 상기 적어도 하나의 움직임 벡터의 해상도 중 적어도 하나에 기반하여 결정되는 것을 특징으로 하는 방법.The method is characterized in that it is determined based on at least one of the size of the at least one motion vector and the resolution of the at least one motion vector.
  10. 제1항에 있어서,According to claim 1,
    상기 제1 오프셋 값은, 기 정의된(pre-defined) 오프셋 후보 값들 중에서 상기 MMVD 길이 인덱스에 의해 지시되는 것을 특징으로 하는 방법.And the first offset value is indicated by the MMVD length index among pre-defined offset candidate values.
  11. 제7항에 있어서,The method of claim 7,
    상기 적어도 하나의 움직임 벡터는, 수평 방향 성분 및 수직 방향 성분으로 구성되고,The at least one motion vector is composed of a horizontal component and a vertical component,
    상기 MMVD 오프셋은 상기 수평 방향 성분 또는 수직 방향 성분 중 적어도 하나에 적용되는 것을 특징으로 하는 방법.The MMVD offset is characterized in that applied to at least one of the horizontal component or the vertical component.
  12. 제7항에 있어서,The method of claim 7,
    상기 적어도 하나의 움직임 벡터는, 제1 참조 픽처 리스트와 관련된 제1 움직임 벡터 및 제2 참조 픽처 리스트와 관련된 제2 움직임 벡터를 포함하고,The at least one motion vector includes a first motion vector associated with the first reference picture list and a second motion vector associated with the second reference picture list,
    상기 제2 오프셋 값은, 상기 제1 움직임 벡터 또는 상기 제2 움직임 벡터 중 적어도 하나에 기반하여 결정되는 것을 특징으로 하는 방법.The second offset value is determined based on at least one of the first motion vector or the second motion vector.
  13. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 디코딩하기 위한 장치으로서, An apparatus for decoding a video signal using inter prediction, comprising:
    상기 비디오 신호를 저장하는 메모리; 및A memory for storing the video signal; And
    상기 메모리와 결합되어 상기 비디오 신호를 처리하는 프로세서를 포함하고,And a processor coupled to the memory to process the video signal,
    상기 프로세서는,The processor,
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하고, At least one motion vector for inter-frame prediction of the current block is obtained from at least one neighboring block adjacent to the current block based on the merge index,
    MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, Determine an MMVD offset applied to the at least one motion vector based on a merge index (MMVD) distance index,
    상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 설정되고,It is configured to generate a prediction sample of the current block based on at least one motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 프로세서는, 상기 MMVD 오프셋을 결정하기 위하여,The processor, to determine the MMVD offset,
    상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, Determine a first offset value associated with the length index,
    상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, Determining a second offset value by scaling the first offset value by a scale value based on at least one of the at least one motion vector or the size of the current block,
    상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 설정되는 것을 특징으로 하는 장치. And set to determine the second offset value as an MMVD offset.
  14. 화면간 예측(inter prediction)을 사용하여 비디오 신호를 인코딩하기 위한 장치로서, An apparatus for encoding a video signal using inter prediction, comprising:
    상기 비디오 신호를 저장하는 메모리; 및A memory for storing the video signal; And
    상기 메모리와 결합되어 상기 비디오 신호를 처리하는 프로세서를 포함하고,And a processor coupled to the memory to process the video signal,
    상기 프로세서는,The processor,
    현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터 및 적어도 하나의 참조 픽처를 결정하고,Determining at least one motion vector and at least one reference picture for inter-frame prediction of the current block from at least one neighboring block adjacent to the current block,
    상기 적어도 하나의 움직임 벡터에 적용되는 MMVD(merge with motion vector difference) 오프셋을 결정하고, Determine a merge with motion vector difference (MMVD) offset applied to the at least one motion vector,
    상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처에 기반하여 상기 현재 블록에 대한 예측을 수행하고,Prediction of the current block is performed based on at least one motion vector to which the MMVD offset is applied and the at least one reference picture,
    상기 예측과 관련된 정보를 코딩하도록 설정되고,Is set to code information related to the prediction,
    상기 예측과 관련된 정보는, 상기 적어도 하나의 움직임 벡터 및 상기 적어도 하나의 참조 픽처와 관련된 머지 인덱스, 및 상기 MMVD 오프셋 값을 지시하는 MMVD 길이(distance) 인덱스를 포함하고,The information related to the prediction includes a merge index associated with the at least one motion vector and the at least one reference picture, and an MMVD distance index indicating the MMVD offset value,
    상기 프로세서는, 상기 예측을 수행하기 위하여, The processor, in order to perform the prediction,
    상기 MMVD 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, Determine a first offset value associated with the MMVD length index,
    상기 적어도 하나의 움직임 벡터에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, Determining a second offset value by scaling the first offset value by a scale value based on the at least one motion vector,
    상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 설정되는 것을 특징으로 하는 장치.And set to determine the second offset value as an MMVD offset.
  15. 하나 또는 그 이상의 명령어들을 저장하는 비-일시적 컴퓨터-판독가능한 매체(non-transitory computer-readable medium)로서, 하나 또는 그 이상의 프로세서들에 의해 실행되는 상기 하나 또는 그 이상의 명령어들은,A non-transitory computer-readable medium that stores one or more instructions, wherein the one or more instructions executed by one or more processors are:
    머지 인덱스에 기반하여 현재 블록과 인접한 적어도 하나의 주변 블록으로부터 상기 현재 블록의 화면간 예측을 위한 적어도 하나의 움직임 벡터를 획득하고, At least one motion vector for inter-frame prediction of the current block is obtained from at least one neighboring block adjacent to the current block based on the merge index,
    MMVD(merge with motion vector difference) 길이(distance) 인덱스에 기반하여 상기 적어도 하나의 움직임 벡터에 적용되는 MMVD 오프셋을 결정하고, Determine an MMVD offset applied to the at least one motion vector based on a merge index (MMVD) distance index,
    상기 MMVD 오프셋이 적용된 적어도 하나의 움직임 벡터 및 상기 머지 인덱스와 관련된 참조 픽처에 기반하여 상기 현재 블록의 예측 샘플을 생성도록 상기 비디오 신호 처리 장치를 제어하고,Controlling the video signal processing apparatus to generate a prediction sample of the current block based on at least one motion vector to which the MMVD offset is applied and a reference picture associated with the merge index,
    상기 하나 또는 그 이상의 명령어들은, 상기 MMVD 오프셋을 결정하기 위하여,The one or more instructions, to determine the MMVD offset,
    상기 길이 인덱스와 관련된 제1 오프셋 값을 결정하고, Determine a first offset value associated with the length index,
    상기 적어도 하나의 움직임 벡터 또는 상기 현재 블록의 사이즈 중 적어도 하나에 기반하여 상기 제1 오프셋 값을 스케일 값만큼 스케일링함으로써 제2 오프셋 값을 결정하고, Determining a second offset value by scaling the first offset value by a scale value based on at least one of the at least one motion vector or the size of the current block,
    상기 제2 오프셋 값을 MMVD 오프셋으로서 결정하도록 상기 비디오 신호 처리 장치를 제어하는 것을 특징으로 하는 비-일시적 컴퓨터-판독가능한 매체. And controlling the video signal processing apparatus to determine the second offset value as an MMVD offset.
PCT/KR2020/000067 2019-01-02 2020-01-02 Method and device for processing video signal by using inter prediction WO2020141910A1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
US201962787748P 2019-01-02 2019-01-02
US62/787,748 2019-01-02
US201962808863P 2019-02-22 2019-02-22
US62/808,863 2019-02-22

Publications (1)

Publication Number Publication Date
WO2020141910A1 true WO2020141910A1 (en) 2020-07-09

Family

ID=71407019

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/KR2020/000067 WO2020141910A1 (en) 2019-01-02 2020-01-02 Method and device for processing video signal by using inter prediction

Country Status (1)

Country Link
WO (1) WO2020141910A1 (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160234499A1 (en) * 2011-06-10 2016-08-11 Mediatek Inc. Method and Apparatus of Scalable Video Coding
KR20170078672A (en) * 2014-10-31 2017-07-07 삼성전자주식회사 Video coding apparatus and video decoding apparatus using high-precision skip coding and method thereof
KR20180006961A (en) * 2015-05-15 2018-01-19 후아웨이 테크놀러지 컴퍼니 리미티드 A video picture coding method, a video picture decoding method, a coding device, and a decoding device
KR20180135092A (en) * 2011-01-07 2018-12-19 엘지전자 주식회사 Method for encoding and decoding image information and device using same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20180135092A (en) * 2011-01-07 2018-12-19 엘지전자 주식회사 Method for encoding and decoding image information and device using same
US20160234499A1 (en) * 2011-06-10 2016-08-11 Mediatek Inc. Method and Apparatus of Scalable Video Coding
KR20170078672A (en) * 2014-10-31 2017-07-07 삼성전자주식회사 Video coding apparatus and video decoding apparatus using high-precision skip coding and method thereof
KR20180006961A (en) * 2015-05-15 2018-01-19 후아웨이 테크놀러지 컴퍼니 리미티드 A video picture coding method, a video picture decoding method, a coding device, and a decoding device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
SEUNGSOO JEONG: "CE4 Ultimate motion vector expression in J0024 (Test 4.2 .9", JVET-K0115-V4, JOINT VIDEO EXPERTS TEAM (JVET) OF ITU-T SG 16 WP 3 AND ISO/IEC JTC 1/SC 29/WG 11, 11TH MEETING, 12 July 2018 (2018-07-12), Ljubljana, SI, pages 1 - 7, XP030199509 *

Similar Documents

Publication Publication Date Title
WO2020122640A1 (en) Method and device for processing video signal on basis of history-based motion vector prediction
WO2020141914A1 (en) Method and apparatus for processing video signal on basis of history-based motion vector prediction
WO2020197083A1 (en) Method and device for inter prediction on basis of dmvr and bdof
WO2020117018A1 (en) Method and device for processing video signal on basis of inter prediction
WO2020060376A1 (en) Method and apparatus for processing video signals using inter prediction
WO2020197084A1 (en) Dmvr-based inter prediction method and apparatus
WO2015137783A1 (en) Method and device for configuring merge candidate list for decoding and encoding of interlayer video
WO2021040481A1 (en) Cross component filtering-based image coding device and method
WO2020141911A1 (en) Device and method for processing video signal by using inter prediction
WO2020117016A1 (en) Method and device for processing video signal on basis of inter-prediction
WO2021040480A1 (en) In-loop filtering-based video coding device and method
WO2020071871A1 (en) Method and apparatus for processing image service
WO2019194514A1 (en) Image processing method based on inter prediction mode, and device therefor
WO2020009449A1 (en) Method and apparatus for processing video signal by using affine prediction
WO2020141913A1 (en) Method and apparatus for processing video signal on basis of inter prediction
WO2020256400A1 (en) Luma mapping- and chroma scaling-based video or image coding
WO2020060312A1 (en) Method and device for processing image signal
WO2014163453A1 (en) Interlayer video encoding method and apparatus and interlayer video decoding method and apparatus for compensating luminance difference
WO2020141915A1 (en) Method and device for processing video signals on basis of history-based motion vector prediction
WO2020117013A1 (en) Method and apparatus for processing video signal on basis of inter prediction
WO2020141853A1 (en) Method and apparatus for processing video signal on basis of inter prediction
WO2021040482A1 (en) Adaptive loop filtering-based image coding device and method
WO2020262962A1 (en) Method and apparatus for encoding/decoding video using maximum size limitation of chroma transform block, and method for transmitting bitstream
WO2020262931A1 (en) Signaling method and device for merge data syntax in video/image coding system
WO2020141935A1 (en) Device and method for processing video signal on basis of inter prediction

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

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20736230

Country of ref document: EP

Kind code of ref document: A1