KR20180107007A - Method and apparatus for processing a video signal - Google Patents

Method and apparatus for processing a video signal Download PDF

Info

Publication number
KR20180107007A
KR20180107007A KR1020180032620A KR20180032620A KR20180107007A KR 20180107007 A KR20180107007 A KR 20180107007A KR 1020180032620 A KR1020180032620 A KR 1020180032620A KR 20180032620 A KR20180032620 A KR 20180032620A KR 20180107007 A KR20180107007 A KR 20180107007A
Authority
KR
South Korea
Prior art keywords
viewport
information
unit
prediction
view port
Prior art date
Application number
KR1020180032620A
Other languages
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 KR20180107007A publication Critical patent/KR20180107007A/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/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/597Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding specially adapted for multi-view video sequence encoding
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/12Selection from among a plurality of transforms or standards, e.g. selection between discrete cosine transform [DCT] and sub-band transform or selection between H.263 and H.264
    • H04N19/122Selection of transform size, e.g. 8x8 or 2x4x8 DCT; Selection of sub-band transforms of varying structure or type
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/167Position within a video image, e.g. region of interest [ROI]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/172Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a picture, frame or field
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/40Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using video transcoding, i.e. partial or full decoding of a coded input stream followed by re-encoding of the decoded output stream
    • 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

Abstract

The present invention relates to a method and an apparatus for processing a video signal. An image decoding method according to the present invention can comprise the steps of: decoding viewport related information from a bit stream; restoring a 360-degree video; and setting a viewport on the restored 360-degree video based on the viewport-related information, wherein the view port-related information can include information of the number of viewports. Therefore, the efficiency of encoding/decoding of the 360-degree video is improved.

Description

비디오 신호 처리 방법 및 장치{METHOD AND APPARATUS FOR PROCESSING A VIDEO SIGNAL}TECHNICAL FIELD [0001] The present invention relates to a video signal processing method and apparatus,

본 발명은 비디오 신호 처리 방법 및 장치에 관한 것이다.The present invention relates to a video signal processing method and apparatus.

최근 HD(High Definition) 영상 및 UHD(Ultra High Definition) 영상과 같은 고해상도, 고품질의 영상에 대한 수요가 다양한 응용 분야에서 증가하고 있다. 영상 데이터가 고해상도, 고품질이 될수록 기존의 영상 데이터에 비해 상대적으로 데이터량이 증가하기 때문에 기존의 유무선 광대역 회선과 같은 매체를 이용하여 영상 데이터를 전송하거나 기존의 저장 매체를 이용해 저장하는 경우, 전송 비용과 저장 비용이 증가하게 된다. 영상 데이터가 고해상도, 고품질화 됨에 따라 발생하는 이러한 문제들을 해결하기 위해서는 고효율의 영상 압축 기술들이 활용될 수 있다.Recently, the demand for high resolution and high quality images such as high definition (HD) image and ultra high definition (UHD) image is increasing in various applications. As the image data has high resolution and high quality, the amount of data increases relative to the existing image data. Therefore, when the image data is transmitted using a medium such as a wired / wireless broadband line or stored using an existing storage medium, The storage cost is increased. High-efficiency image compression techniques can be utilized to solve such problems as image data becomes high-resolution and high-quality.

영상 압축 기술로 현재 픽쳐의 이전 또는 이후 픽쳐로부터 현재 픽쳐에 포함된 화소값을 예측하는 화면 간 예측 기술, 현재 픽쳐 내의 화소 정보를 이용하여 현재 픽쳐에 포함된 화소값을 예측하는 화면 내 예측 기술, 출현 빈도가 높은 값에 짧은 부호를 할당하고 출현 빈도가 낮은 값에 긴 부호를 할당하는 엔트로피 부호화 기술 등 다양한 기술이 존재하고 이러한 영상 압축 기술을 이용해 영상 데이터를 효과적으로 압축하여 전송 또는 저장할 수 있다.An inter picture prediction technique for predicting a pixel value included in a current picture from a previous or a subsequent picture of a current picture by an image compression technique, an intra picture prediction technique for predicting a pixel value included in a current picture using pixel information in the current picture, There are various techniques such as an entropy encoding technique in which a short code is assigned to a value having a high appearance frequency and a long code is assigned to a value having a low appearance frequency. Image data can be effectively compressed and transmitted or stored using such an image compression technique.

한편, 고해상도 영상에 대한 수요가 증가함과 함께, 새로운 영상 서비스로서 입체 영상 컨텐츠에 대한 수요도 함께 증가하고 있다. 고해상도 및 초고해상도의 입체 영상 콘텐츠를 효과적으로 제공하기 위한 비디오 압축 기술에 대하여 논의가 진행되고 있다.On the other hand, demand for high-resolution images is increasing, and demand for stereoscopic image content as a new image service is also increasing. Video compression techniques are being discussed to effectively provide high resolution and ultra-high resolution stereoscopic content.

본 발명은 뷰 포트 정보를 부호화/복호화하여, 360도 비디오의 부호화/복호화 효율을 향상시키는 것에 목적이 있다. An object of the present invention is to improve coding / decoding efficiency of 360-degree video by encoding / decoding view port information.

본 발명은 360도 비디오에 복수의 뷰 포트를 설정할 수 있도록 하는 것에 목적이 있다. It is an object of the present invention to allow a plurality of view ports to be set in 360-degree video.

본 발명은 뷰 포트의 회전 정보를 부호화/복호화하여, 360도 비디오의 부호화/복호화 효율을 향상시키는 것에 목적이 있다. An object of the present invention is to improve coding / decoding efficiency of 360-degree video by encoding / decoding rotation information of a view port.

본 발명에서 이루고자 하는 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급하지 않은 또 다른 기술적 과제들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory and are not restrictive of the invention, unless further departing from the spirit and scope of the invention as defined by the appended claims. It will be possible.

본 발명에 따른 영상 복호화 방법 및 장치는, 비트스트림으로부터 뷰 포트 관련 정보를 복호화하고, 360도 비디오를 복원하고, 상기 뷰 포트 관련 정보를 기초로, 상기 복원된 360도 비디오에 뷰 포트를 설정할 수 있다.The video decoding method and apparatus according to the present invention decodes viewport-related information from a bitstream, restores 360-degree video, and sets a viewport on the restored 360-degree video based on the viewport-related information have.

본 발명에 따른 영상 부호화 방법 및 장치는, 360도 비디오에 뷰 포트를 설정하고, 상기 360도 비디오 및 상기 뷰 포트 관련 정보를 부호화할 수 있다.The image encoding method and apparatus according to the present invention can set a view port to 360-degree video and encode the 360-degree video and the view port related information.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 뷰 포트 관련 정보는, 뷰 포트의 개수 정보를 포함할 수 있다.In the image decoding / encoding method and apparatus according to the present invention, the view port related information may include the view port number information.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 뷰 포트의 개수 정보가 복수개의 뷰 포트가 존재함을 나타내는 경우, 상기 뷰 포트 관련 정보는, 복수개 뷰 포트 각각의 위치 정보 및 범위 정보를 더 포함할 수 있다.In the video decoding / encoding method and apparatus according to the present invention, when the number information of the view port indicates that a plurality of view ports exist, the view port related information includes position information and range information of each of the plurality of view ports .

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 복수개의 뷰 포트 중 제1 뷰 포트의 위치 정보는 기준 뷰 포트의 위치 정보와의 차분값을 나타내고, 상기 제1 뷰 포트의 범위 정보는 상기 기준 뷰 포트의 범위 정보와의 차분값을 나타낼 수 있다.In the image decoding / encoding method and apparatus according to the present invention, the position information of the first viewport among the plurality of viewports represents a difference value from the position information of the reference viewport, and the range information of the first viewport is And the difference value with the range information of the reference view port.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 기준 뷰 포트는 상기 복수개의 뷰 포트 중 특정 뷰 포트 인덱스를 가질 수 있다.In the video decoding / encoding method and apparatus according to the present invention, the reference view port may have a specific view port index among the plurality of viewports.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 기준 뷰 포트는, 상기 제1 뷰 포트의 이전 뷰 포트일 수 있다.In the video decoding / coding method and apparatus according to the present invention, the reference view port may be a previous viewport of the first viewport.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 뷰 포트 관련 정보는, 뷰 포트의 회전 정보를 더 포함할 수 있다.In the image decoding / encoding method and apparatus according to the present invention, the view port related information may further include rotation information of a view port.

본 발명에 따른 영상 복호화/부호화 방법 및 장치에 있어서, 상기 뷰 포트의 회전 정보는, Yaw 방향에 따른 회전 각도, Pitch 방향에 따른 회전 각도 또는 Roll 방향에 따른 회전 각도 중 적어도 하나를 포함할 수 있다.In the image decoding / encoding method and apparatus according to the present invention, the rotation information of the view port may include at least one of a rotation angle in the Yaw direction, a rotation angle in the Pitch direction, or a rotation angle in the Roll direction .

본 발명에 대하여 위에서 간략하게 요약된 특징들은 후술하는 본 발명의 상세한 설명의 예시적인 양상일 뿐이며, 본 발명의 범위를 제한하는 것은 아니다.The features briefly summarized above for the present invention are only illustrative aspects of the detailed description of the invention which are described below and do not limit the scope of the invention.

본 발명에 의하면, 뷰 포트 정보를 부호화/복호화하여, 360도 비디오의 부호화/복호화 효율을 향상시킬 수 있는 이점이 있다.According to the present invention, there is an advantage that coding / decoding efficiency of 360-degree video can be improved by encoding / decoding view port information.

본 발명에 의하면, 360도 비디오에 복수의 뷰 포트를 설정할 수 있어, 360도 비디오 플레이시 사용자 편의성을 제공할 수 있는 이점이 있다.According to the present invention, a plurality of view ports can be set in 360-degree video, which is advantageous in that it can provide user convenience during 360-degree video play.

본 발명에 의하면, 뷰 포트의 회전 정보를 부호화/복호화하여, 360도 비디오의 부호화/복호화 효율을 향상시킬 수 있는 이점이 있다.According to the present invention, there is an advantage that coding / decoding efficiency of 360-degree video can be improved by encoding / decoding rotation information of the view port.

본 발명에서 얻을 수 있는 효과는 이상에서 언급한 효과들로 제한되지 않으며, 언급하지 않은 또 다른 효과들은 아래의 기재로부터 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자에게 명확하게 이해될 수 있을 것이다.The effects obtained by the present invention are not limited to the above-mentioned effects, and other effects not mentioned can be clearly understood by those skilled in the art from the following description will be.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다.
도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.
도 3은 코딩 블록이 화면 간 예측으로 부호화되었을 때, 코딩 블록에 적용될 수 있는 파티션 모드를 예시한 도면이다.
도 4 내지 도 6은 파노라믹 영상 생성을 위한 카메라 장치를 예시한 도면이다.
도 7은 360도 비디오 데이터 생성 장치 및 360도 비디오 플레이 장치의 블록도이다.
도 8은 360도 비디오 데이터 생성 장치 및 360도 비디오 플레이 장치의 동작을 나타낸 흐름도이다.
도 9는 등장방형도법을 이용한 2D 투영 방법을 나타낸 것이다.
도 10은 정육면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.
도 11은 이십면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.
도 12는 정팔면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.
도 13은 절삭형 피라미드 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.
도 14는 페이스 2D 좌표 및 3차원 좌표간 변환을 설명하기 위해 예시한 도면이다.
도 15는 뷰 포트 모드를 설명하기 위한 도면이다.
도 16은 뷰 포트의 위치 및 크기가 특정되는 예를 나타낸 도면이다.
도 17는 비트스트림에 부호화되는 뷰 포트와 관련된 신택스를 나타낸 도면이다.
도 18은 뷰 포트 개수를 나타내는 신택스가 부호화되는 예를 나타낸 도면이다.
도 19는 기준 뷰 포트를 이용하여 현재 뷰 포트 정보를 유도하는 예를 나타낸 도면이다.
도 20은 구의 회전과 관련된 정보가 부호화되는 예를 나타낸 도면이다.
1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.
2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.
3 is a diagram illustrating a partition mode that can be applied to a coding block when a coding block is coded by inter-picture prediction.
4 to 6 are views illustrating a camera apparatus for generating a panoramic image.
7 is a block diagram of a 360-degree video data generation apparatus and a 360-degree video play apparatus.
8 is a flowchart showing the operation of a 360-degree video data generation apparatus and a 360-degree video play apparatus.
Figure 9 shows a 2D projection method using the isometric quadrature method.
10 shows a 2D projection method using a cube projection method.
11 shows a 2D projection method using a bipartite projection technique.
12 shows a 2D projection method using an octahedral projection technique.
13 shows a 2D projection method using a cutting pyramid projection technique.
14 is a diagram illustrating the conversion between face 2D coordinates and three-dimensional coordinates.
15 is a view for explaining the view port mode.
16 is a view showing an example in which the position and size of the view port are specified.
17 is a diagram showing a syntax related to a view port encoded in a bitstream.
18 is a diagram showing an example in which a syntax indicating the number of viewports is coded.
19 is a view showing an example of deriving current viewport information using a reference viewport.
20 is a diagram showing an example in which information related to rotation of a sphere is encoded.

본 발명은 다양한 변경을 가할 수 있고 여러 가지 실시예를 가질 수 있는 바, 특정 실시예들을 도면에 예시하고 상세한 설명에 상세하게 설명하고자 한다. 그러나, 이는 본 발명을 특정한 실시 형태에 대해 한정하려는 것이 아니며, 본 발명의 사상 및 기술 범위에 포함되는 모든 변경, 균등물 내지 대체물을 포함하는 것으로 이해되어야 한다. 각 도면을 설명하면서 유사한 참조부호를 유사한 구성요소에 대해 사용하였다.While the invention is susceptible to various modifications and alternative forms, specific embodiments thereof are shown by way of example in the drawings and will herein be described in detail. It should be understood, however, that the invention is not intended to be limited to the particular embodiments, but includes all modifications, equivalents, and alternatives falling within the spirit and scope of the invention. Like reference numerals are used for like elements in describing each drawing.

제1, 제2 등의 용어는 다양한 구성요소들을 설명하는데 사용될 수 있지만, 상기 구성요소들은 상기 용어들에 의해 한정되어서는 안 된다. 상기 용어들은 하나의 구성요소를 다른 구성요소로부터 구별하는 목적으로만 사용된다. 예를 들어, 본 발명의 권리 범위를 벗어나지 않으면서 제1 구성요소는 제2 구성요소로 명명될 수 있고, 유사하게 제2 구성요소도 제1 구성요소로 명명될 수 있다. 및/또는 이라는 용어는 복수의 관련된 기재된 항목들의 조합 또는 복수의 관련된 기재된 항목들 중의 어느 항목을 포함한다.The terms first, second, etc. may be used to describe various components, but the components should not be limited by the terms. The terms are used only for the purpose of distinguishing one component from another. For example, without departing from the scope of the present invention, the first component may be referred to as a second component, and similarly, the second component may also be referred to as a first component. And / or < / RTI > includes any combination of a plurality of related listed items or any of a plurality of related listed items.

어떤 구성요소가 다른 구성요소에 "연결되어" 있다거나 "접속되어"있다고 언급된 때에는, 그 다른 구성요소에 직접적으로 연결되어 있거나 또는 접속되어 있을 수도 있지만, 중간에 다른 구성요소가 존재할 수도 있다고 이해되어야 할 것이다. 반면에, 어떤 구성요소가 다른 구성요소에 "직접 연결되어"있다거나 "직접 접속되어"있다고 언급된 때에는, 중간에 다른 구성요소가 존재하지 않는 것으로 이해되어야 할 것이다.It is to be understood that when an element is referred to as being "connected" or "connected" to another element, it may be directly connected or connected to the other element, . On the other hand, when an element is referred to as being "directly connected" or "directly connected" to another element, it should be understood that there are no other elements in between.

본 출원에서 사용한 용어는 단지 특정한 실시예를 설명하기 위해 사용된 것으로, 본 발명을 한정하려는 의도가 아니다. 단수의 표현은 문맥상 명백하게 다르게 뜻하지 않는 한, 복수의 표현을 포함한다. 본 출원에서, "포함하다" 또는 "가지다" 등의 용어는 명세서상에 기재된 특징, 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것이 존재함을 지정하려는 것이지, 하나 또는 그 이상의 다른 특징들이나 숫자, 단계, 동작, 구성요소, 부품 또는 이들을 조합한 것들의 존재 또는 부가 가능성을 미리 배제하지 않는 것으로 이해되어야 한다.The terminology used in this application is used only to describe a specific embodiment and is not intended to limit the invention. The singular expressions include plural expressions unless the context clearly dictates otherwise. In the present application, the terms "comprises" or "having" and the like are used to specify that there is a feature, a number, a step, an operation, an element, a component or a combination thereof described in the specification, But do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, or combinations thereof.

이하, 첨부한 도면들을 참조하여, 본 발명의 바람직한 실시예를 보다 상세하게 설명하고자 한다. 이하, 도면상의 동일한 구성요소에 대해서는 동일한 참조부호를 사용하고 동일한 구성요소에 대해서 중복된 설명은 생략한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings. Hereinafter, the same reference numerals will be used for the same constituent elements in the drawings, and redundant explanations for the same constituent elements will be omitted.

도 1은 본 발명의 일실시예에 따른 영상 부호화 장치를 나타낸 블록도이다. 1 is a block diagram illustrating an image encoding apparatus according to an embodiment of the present invention.

도 1을 참조하면, 영상 부호화 장치(100)는 픽쳐 분할부(110), 예측부(120, 125), 변환부(130), 양자화부(135), 재정렬부(160), 엔트로피 부호화부(165), 역양자화부(140), 역변환부(145), 필터부(150) 및 메모리(155)를 포함할 수 있다.1, the image encoding apparatus 100 includes a picture division unit 110, prediction units 120 and 125, a transform unit 130, a quantization unit 135, a reordering unit 160, an entropy encoding unit An inverse quantization unit 140, an inverse transform unit 145, a filter unit 150, and a memory 155. [

도 1에 나타난 각 구성부들은 영상 부호화 장치에서 서로 다른 특징적인 기능들을 나타내기 위해 독립적으로 도시한 것으로, 각 구성부들이 분리된 하드웨어나 하나의 소프트웨어 구성단위로 이루어짐을 의미하지 않는다. 즉, 각 구성부는 설명의 편의상 각각의 구성부로 나열하여 포함한 것으로 각 구성부 중 적어도 두 개의 구성부가 합쳐져 하나의 구성부로 이루어지거나, 하나의 구성부가 복수개의 구성부로 나뉘어져 기능을 수행할 수 있고 이러한 각 구성부의 통합된 실시예 및 분리된 실시예도 본 발명의 본질에서 벗어나지 않는 한 본 발명의 권리범위에 포함된다.Each of the components shown in FIG. 1 is shown independently to represent different characteristic functions in the image encoding apparatus, and does not mean that each component is composed of separate hardware or one software configuration unit. That is, each constituent unit is included in each constituent unit for convenience of explanation, and at least two constituent units of the constituent units may be combined to form one constituent unit, or one constituent unit may be divided into a plurality of constituent units to perform a function. The integrated embodiments and separate embodiments of the components are also included within the scope of the present invention, unless they depart from the essence of the present invention.

또한, 일부의 구성 요소는 본 발명에서 본질적인 기능을 수행하는 필수적인 구성 요소는 아니고 단지 성능을 향상시키기 위한 선택적 구성 요소일 수 있다. 본 발명은 단지 성능 향상을 위해 사용되는 구성 요소를 제외한 본 발명의 본질을 구현하는데 필수적인 구성부만을 포함하여 구현될 수 있고, 단지 성능 향상을 위해 사용되는 선택적 구성 요소를 제외한 필수 구성 요소만을 포함한 구조도 본 발명의 권리범위에 포함된다.In addition, some of the components are not essential components to perform essential functions in the present invention, but may be optional components only to improve performance. The present invention can be implemented only with components essential for realizing the essence of the present invention, except for the components used for the performance improvement, and can be implemented by only including the essential components except the optional components used for performance improvement Are also included in the scope of the present invention.

픽쳐 분할부(110)는 입력된 픽쳐를 적어도 하나의 처리 단위로 분할할 수 있다. 이때, 처리 단위는 예측 단위(Prediction Unit: PU)일 수도 있고, 변환 단위(Transform Unit: TU)일 수도 있으며, 부호화 단위(Coding Unit: CU)일 수도 있다. 픽쳐 분할부(110)에서는 하나의 픽쳐에 대해 복수의 부호화 단위, 예측 단위 및 변환 단위의 조합으로 분할하고 소정의 기준(예를 들어, 비용 함수)으로 하나의 부호화 단위, 예측 단위 및 변환 단위 조합을 선택하여 픽쳐를 부호화 할 수 있다.The picture division unit 110 may divide the input picture into at least one processing unit. At this time, the processing unit may be a prediction unit (PU), a transform unit (TU), or a coding unit (CU). The picture division unit 110 divides one picture into a plurality of coding units, a prediction unit, and a combination of conversion units, and generates a coding unit, a prediction unit, and a conversion unit combination So that the picture can be encoded.

예를 들어, 하나의 픽쳐는 복수개의 부호화 단위로 분할될 수 있다. 픽쳐에서 부호화 단위를 분할하기 위해서는 쿼드 트리 구조(Quad Tree Structure)와 같은 재귀적인 트리 구조를 사용할 수 있는데 하나의 영상 또는 최대 크기 부호화 단위(largest coding unit)를 루트로 하여 다른 부호화 단위로 분할되는 부호화 유닛은 분할된 부호화 단위의 개수만큼의 자식 노드를 가지고 분할될 수 있다. 일정한 제한에 따라 더 이상 분할되지 않는 부호화 단위는 리프 노드가 된다. 즉, 하나의 코딩 유닛에 대하여 정방형 분할만이 가능하다고 가정하는 경우, 하나의 부호화 단위는 최대 4개의 다른 부호화 단위로 분할될 수 있다.For example, one picture may be divided into a plurality of coding units. In order to divide a coding unit in a picture, a recursive tree structure such as a quad tree structure can be used. In a coding or decoding scheme in which one picture or a largest coding unit is used as a root and divided into other coding units A unit can be divided with as many child nodes as the number of divided coding units. Under certain constraints, an encoding unit that is no longer segmented becomes a leaf node. That is, when it is assumed that only one square division is possible for one coding unit, one coding unit can be divided into a maximum of four different coding units.

이하, 본 발명의 실시예에서는 부호화 단위는 부호화를 수행하는 단위의 의미로 사용할 수도 있고, 복호화를 수행하는 단위의 의미로 사용할 수도 있다.Hereinafter, in the embodiment of the present invention, a coding unit may be used as a unit for performing coding, or may be used as a unit for performing decoding.

예측 단위는 하나의 부호화 단위 내에서 동일한 크기의 적어도 하나의 정사각형 또는 직사각형 등의 형태를 가지고 분할된 것일 수도 있고, 하나의 부호화 단위 내에서 분할된 예측 단위 중 어느 하나의 예측 단위가 다른 하나의 예측 단위와 상이한 형태 및/또는 크기를 가지도록 분할된 것일 수도 있다.The prediction unit may be one divided into at least one square or rectangular shape having the same size in one coding unit, and one of the prediction units in one coding unit may be divided into another prediction Or may have a shape and / or size different from the unit.

부호화 단위를 기초로 인트라 예측을 수행하는 예측 단위를 생성시 최소 부호화 단위가 아닌 경우, 복수의 예측 단위 NxN 으로 분할하지 않고 인트라 예측을 수행할 수 있다.If a prediction unit performing intra prediction on the basis of an encoding unit is not the minimum encoding unit at the time of generation, intraprediction can be performed without dividing the prediction unit into a plurality of prediction units NxN.

예측부(120, 125)는 인터 예측을 수행하는 인터 예측부(120)와 인트라 예측을 수행하는 인트라 예측부(125)를 포함할 수 있다. 예측 단위에 대해 인터 예측을 사용할 것인지 또는 인트라 예측을 수행할 것인지를 결정하고, 각 예측 방법에 따른 구체적인 정보(예컨대, 인트라 예측 모드, 모션 벡터, 참조 픽쳐 등)를 결정할 수 있다. 이때, 예측이 수행되는 처리 단위와 예측 방법 및 구체적인 내용이 정해지는 처리 단위는 다를 수 있다. 예컨대, 예측의 방법과 예측 모드 등은 예측 단위로 결정되고, 예측의 수행은 변환 단위로 수행될 수도 있다. 생성된 예측 블록과 원본 블록 사이의 잔차값(잔차 블록)은 변환부(130)로 입력될 수 있다. 또한, 예측을 위해 사용한 예측 모드 정보, 모션 벡터 정보 등은 잔차값과 함께 엔트로피 부호화부(165)에서 부호화되어 복호화기에 전달될 수 있다. 특정한 부호화 모드를 사용할 경우, 예측부(120, 125)를 통해 예측 블록을 생성하지 않고, 원본 블록을 그대로 부호화하여 복호화부에 전송하는 것도 가능하다.The prediction units 120 and 125 may include an inter prediction unit 120 for performing inter prediction and an intra prediction unit 125 for performing intra prediction. It is possible to determine whether to use inter prediction or intra prediction for a prediction unit and to determine concrete information (e.g., intra prediction mode, motion vector, reference picture, etc.) according to each prediction method. At this time, the processing unit in which the prediction is performed may be different from the processing unit in which the prediction method and the concrete contents are determined. For example, the method of prediction, the prediction mode and the like are determined as a prediction unit, and the execution of the prediction may be performed in a conversion unit. The residual value (residual block) between the generated prediction block and the original block can be input to the conversion unit 130. [ In addition, the prediction mode information, motion vector information, and the like used for prediction can be encoded by the entropy encoding unit 165 together with the residual value and transmitted to the decoder. When a particular encoding mode is used, it is also possible to directly encode the original block and transmit it to the decoding unit without generating a prediction block through the prediction units 120 and 125.

인터 예측부(120)는 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐의 정보를 기초로 예측 단위를 예측할 수도 있고, 경우에 따라서는 현재 픽쳐 내의 부호화가 완료된 일부 영역의 정보를 기초로 예측 단위를 예측할 수도 있다. 인터 예측부(120)는 참조 픽쳐 보간부, 모션 예측부, 움직임 보상부를 포함할 수 있다. The inter-prediction unit 120 may predict a prediction unit based on information of at least one of a previous picture or a following picture of the current picture, and may predict a prediction unit based on information of a partially- Unit may be predicted. The inter prediction unit 120 may include a reference picture interpolation unit, a motion prediction unit, and a motion compensation unit.

참조 픽쳐 보간부에서는 메모리(155)로부터 참조 픽쳐 정보를 제공받고 참조 픽쳐에서 정수 화소 이하의 화소 정보를 생성할 수 있다. 휘도 화소의 경우, 1/4 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 8탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다. 색차 신호의 경우 1/8 화소 단위로 정수 화소 이하의 화소 정보를 생성하기 위해 필터 계수를 달리하는 DCT 기반의 4탭 보간 필터(DCT-based Interpolation Filter)가 사용될 수 있다.In the reference picture interpolating section, the reference picture information is supplied from the memory 155 and pixel information of an integer pixel or less can be generated in the reference picture. In the case of a luminance pixel, a DCT-based interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of quarter pixels. In the case of a color difference signal, a DCT-based 4-tap interpolation filter having a different filter coefficient may be used to generate pixel information of an integer number of pixels or less in units of 1/8 pixel.

모션 예측부는 참조 픽쳐 보간부에 의해 보간된 참조 픽쳐를 기초로 모션 예측을 수행할 수 있다. 모션 벡터를 산출하기 위한 방법으로 FBMA(Full search-based Block Matching Algorithm), TSS(Three Step Search), NTS(New Three-Step Search Algorithm) 등 다양한 방법이 사용될 수 있다. 모션 벡터는 보간된 화소를 기초로 1/2 또는 1/4 화소 단위의 모션 벡터값을 가질 수 있다. 모션 예측부에서는 모션 예측 방법을 다르게 하여 현재 예측 단위를 예측할 수 있다. 모션 예측 방법으로 스킵(Skip) 방법, 머지(Merge) 방법, AMVP(Advanced Motion Vector Prediction) 방법, 인트라 블록 카피(Intra Block Copy) 방법 등 다양한 방법이 사용될 수 있다.The motion prediction unit may perform motion prediction based on the reference picture interpolated by the reference picture interpolating unit. Various methods such as Full Search-based Block Matching Algorithm (FBMA), Three Step Search (TSS), and New Three-Step Search Algorithm (NTS) can be used as methods for calculating motion vectors. The motion vector may have a motion vector value of 1/2 or 1/4 pixel unit based on the interpolated pixel. The motion prediction unit can predict the current prediction unit by making the motion prediction method different. Various methods such as a skip method, a merge method, an AMVP (Advanced Motion Vector Prediction) method, and an Intra Block Copy method can be used as the motion prediction method.

인트라 예측부(125)는 현재 픽쳐 내의 화소 정보인 현재 블록 주변의 참조 픽셀 정보를 기초로 예측 단위를 생성할 수 있다. 현재 예측 단위의 주변 블록이 인터 예측을 수행한 블록이어서, 참조 픽셀이 인터 예측을 수행한 픽셀일 경우, 인터 예측을 수행한 블록에 포함되는 참조 픽셀을 주변의 인트라 예측을 수행한 블록의 참조 픽셀 정보로 대체하여 사용할 수 있다. 즉, 참조 픽셀이 가용하지 않는 경우, 가용하지 않은 참조 픽셀 정보를 가용한 참조 픽셀 중 적어도 하나의 참조 픽셀로 대체하여 사용할 수 있다.The intra prediction unit 125 can generate a prediction unit based on reference pixel information around the current block which is pixel information in the current picture. In the case where the neighboring block of the current prediction unit is the block in which the inter prediction is performed so that the reference pixel is the pixel performing the inter prediction, the reference pixel included in the block in which the inter prediction is performed is referred to as the reference pixel Information. That is, when the reference pixel is not available, the reference pixel information that is not available may be replaced by at least one reference pixel among the available reference pixels.

인트라 예측에서 예측 모드는 참조 픽셀 정보를 예측 방향에 따라 사용하는 방향성 예측 모드와 예측을 수행시 방향성 정보를 사용하지 않는 비방향성 모드를 가질 수 있다. 휘도 정보를 예측하기 위한 모드와 색차 정보를 예측하기 위한 모드가 상이할 수 있고, 색차 정보를 예측하기 위해 휘도 정보를 예측하기 위해 사용된 인트라 예측 모드 정보 또는 예측된 휘도 신호 정보를 활용할 수 있다.In intra prediction, the prediction mode may have a directional prediction mode in which reference pixel information is used according to a prediction direction, and a non-directional mode in which direction information is not used in prediction. The mode for predicting the luminance information may be different from the mode for predicting the chrominance information and the intra prediction mode information or predicted luminance signal information used for predicting the luminance information may be utilized to predict the chrominance information.

인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행할 수 있다. 그러나 인트라 예측을 수행할 때 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 인트라 예측을 사용할 수 있다.When intraprediction is performed, when the size of the prediction unit is the same as the size of the conversion unit, intra prediction is performed on the prediction unit based on pixels existing on the left side of the prediction unit, pixels existing on the upper left side, Can be performed. However, when intra prediction is performed, when the size of the prediction unit differs from the size of the conversion unit, intraprediction can be performed using the reference pixel based on the conversion unit. It is also possible to use intraprediction using NxN partitioning only for the minimum encoding unit.

인트라 예측 방법은 예측 모드에 따라 참조 화소에 AIS(Adaptive Intra Smoothing) 필터를 적용한 후 예측 블록을 생성할 수 있다. 참조 화소에 적용되는 AIS 필터의 종류는 상이할 수 있다. 인트라 예측 방법을 수행하기 위해 현재 예측 단위의 인트라 예측 모드는 현재 예측 단위의 주변에 존재하는 예측 단위의 인트라 예측 모드로부터 예측할 수 있다. 주변 예측 단위로부터 예측된 모드 정보를 이용하여 현재 예측 단위의 예측 모드를 예측하는 경우, 현재 예측 단위와 주변 예측 단위의 인트라 예측 모드가 동일하면 소정의 플래그 정보를 이용하여 현재 예측 단위와 주변 예측 단위의 예측 모드가 동일하다는 정보를 전송할 수 있고, 만약 현재 예측 단위와 주변 예측 단위의 예측 모드가 상이하면 엔트로피 부호화를 수행하여 현재 블록의 예측 모드 정보를 부호화할 수 있다.The intra prediction method can generate a prediction block after applying an AIS (Adaptive Intra Smoothing) filter to the reference pixel according to the prediction mode. The type of the AIS filter applied to the reference pixel may be different. In order to perform the intra prediction method, the intra prediction mode of the current prediction unit can be predicted from the intra prediction mode of the prediction unit existing around the current prediction unit. In the case where the prediction mode of the current prediction unit is predicted using the mode information predicted from the peripheral prediction unit, if the intra prediction mode of the current prediction unit is the same as the intra prediction mode of the current prediction unit, The prediction mode information of the current block can be encoded by performing entropy encoding if the prediction mode of the current prediction unit is different from the prediction mode of the neighbor prediction unit.

또한, 예측부(120, 125)에서 생성된 예측 단위를 기초로 예측을 수행한 예측 단위와 예측 단위의 원본 블록과 차이값인 잔차값(Residual) 정보를 포함하는 잔차 블록이 생성될 수 있다. 생성된 잔차 블록은 변환부(130)로 입력될 수 있다. In addition, a residual block including a prediction unit that has been predicted based on the prediction unit generated by the prediction units 120 and 125 and a residual value that is a difference value from the original block of the prediction unit may be generated. The generated residual block may be input to the transform unit 130. [

변환부(130)에서는 원본 블록과 예측부(120, 125)를 통해 생성된 예측 단위의 잔차값(residual)정보를 포함한 잔차 블록을 DCT(Discrete Cosine Transform), DST(Discrete Sine Transform), KLT와 같은 변환 방법을 사용하여 변환시킬 수 있다. 잔차 블록을 변환하기 위해 DCT를 적용할지, DST를 적용할지 또는 KLT를 적용할지는 잔차 블록을 생성하기 위해 사용된 예측 단위의 인트라 예측 모드 정보를 기초로 결정할 수 있다. The transform unit 130 transforms the residual block including the residual information of the prediction unit generated through the original block and the predictors 120 and 125 into a DCT (Discrete Cosine Transform), a DST (Discrete Sine Transform), a KLT You can convert using the same conversion method. The decision to apply the DCT, DST, or KLT to transform the residual block may be based on the intra prediction mode information of the prediction unit used to generate the residual block.

양자화부(135)는 변환부(130)에서 주파수 영역으로 변환된 값들을 양자화할 수 있다. 블록에 따라 또는 영상의 중요도에 따라 양자화 계수는 변할 수 있다. 양자화부(135)에서 산출된 값은 역양자화부(140)와 재정렬부(160)에 제공될 수 있다.The quantization unit 135 may quantize the values converted into the frequency domain by the conversion unit 130. [ The quantization factor may vary depending on the block or the importance of the image. The values calculated by the quantization unit 135 may be provided to the inverse quantization unit 140 and the reorder unit 160.

재정렬부(160)는 양자화된 잔차값에 대해 계수값의 재정렬을 수행할 수 있다.The reordering unit 160 can reorder the coefficient values with respect to the quantized residual values.

재정렬부(160)는 계수 스캐닝(Coefficient Scanning) 방법을 통해 2차원의 블록 형태 계수를 1차원의 벡터 형태로 변경할 수 있다. 예를 들어, 재정렬부(160)에서는 지그-재그 스캔(Zig-Zag Scan)방법을 이용하여 DC 계수부터 고주파수 영역의 계수까지 스캔하여 1차원 벡터 형태로 변경시킬 수 있다. 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔 대신 2차원의 블록 형태 계수를 열 방향으로 스캔하는 수직 스캔, 2차원의 블록 형태 계수를 행 방향으로 스캔하는 수평 스캔이 사용될 수도 있다. 즉, 변환 단위의 크기 및 인트라 예측 모드에 따라 지그-재그 스캔, 수직 방향 스캔 및 수평 방향 스캔 중 어떠한 스캔 방법이 사용될지 여부를 결정할 수 있다.The reordering unit 160 may change the two-dimensional block type coefficient to a one-dimensional vector form through a coefficient scanning method. For example, the rearranging unit 160 may scan a DC coefficient to a coefficient in a high frequency region using a Zig-Zag scan method, and change the DC coefficient to a one-dimensional vector form. Instead of the jig-jag scan, a vertical scan may be used to scan two-dimensional block type coefficients in a column direction, and a horizontal scan to scan a two-dimensional block type coefficient in a row direction depending on the size of the conversion unit and the intra prediction mode. That is, it is possible to determine whether any scanning method among the jig-jag scan, the vertical direction scan and the horizontal direction scan is used according to the size of the conversion unit and the intra prediction mode.

엔트로피 부호화부(165)는 재정렬부(160)에 의해 산출된 값들을 기초로 엔트로피 부호화를 수행할 수 있다. 엔트로피 부호화는 예를 들어, 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 부호화 방법을 사용할 수 있다. The entropy encoding unit 165 may perform entropy encoding based on the values calculated by the reordering unit 160. For entropy encoding, various encoding methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be used.

엔트로피 부호화부(165)는 재정렬부(160) 및 예측부(120, 125)로부터 부호화 단위의 잔차값 계수 정보 및 블록 타입 정보, 예측 모드 정보, 분할 단위 정보, 예측 단위 정보 및 전송 단위 정보, 모션 벡터 정보, 참조 프레임 정보, 블록의 보간 정보, 필터링 정보 등 다양한 정보를 부호화할 수 있다. The entropy encoding unit 165 receives the residual value count information of the encoding unit, the block type information, the prediction mode information, the division unit information, the prediction unit information and the transmission unit information, and the motion information of the motion unit from the reordering unit 160 and the prediction units 120 and 125 Vector information, reference frame information, interpolation information of a block, filtering information, and the like.

엔트로피 부호화부(165)에서는 재정렬부(160)에서 입력된 부호화 단위의 계수값을 엔트로피 부호화할 수 있다.The entropy encoding unit 165 can entropy-encode the coefficient value of the encoding unit input by the reordering unit 160. [

역양자화부(140) 및 역변환부(145)에서는 양자화부(135)에서 양자화된 값들을 역양자화하고 변환부(130)에서 변환된 값들을 역변환한다. 역양자화부(140) 및 역변환부(145)에서 생성된 잔차값(Residual)은 예측부(120, 125)에 포함된 움직임 추정부, 움직임 보상부 및 인트라 예측부를 통해서 예측된 예측 단위와 합쳐져 복원 블록(Reconstructed Block)을 생성할 수 있다. The inverse quantization unit 140 and the inverse transformation unit 145 inverse quantize the quantized values in the quantization unit 135 and inversely transform the converted values in the conversion unit 130. [ The residual value generated by the inverse quantization unit 140 and the inverse transform unit 145 is combined with the prediction unit predicted through the motion estimation unit, the motion compensation unit and the intra prediction unit included in the prediction units 120 and 125, A block (Reconstructed Block) can be generated.

필터부(150)는 디블록킹 필터, 오프셋 보정부, ALF(Adaptive Loop Filter)중 적어도 하나를 포함할 수 있다.The filter unit 150 may include at least one of a deblocking filter, an offset correction unit, and an adaptive loop filter (ALF).

디블록킹 필터는 복원된 픽쳐에서 블록간의 경계로 인해 생긴 블록 왜곡을 제거할 수 있다. 디블록킹을 수행할지 여부를 판단하기 위해 블록에 포함된 몇 개의 열 또는 행에 포함된 픽셀을 기초로 현재 블록에 디블록킹 필터 적용할지 여부를 판단할 수 있다. 블록에 디블록킹 필터를 적용하는 경우 필요한 디블록킹 필터링 강도에 따라 강한 필터(Strong Filter) 또는 약한 필터(Weak Filter)를 적용할 수 있다. 또한 디블록킹 필터를 적용함에 있어 수직 필터링 및 수평 필터링 수행시 수평 방향 필터링 및 수직 방향 필터링이 병행 처리되도록 할 수 있다.The deblocking filter can remove block distortion caused by the boundary between the blocks in the reconstructed picture. It may be determined whether to apply a deblocking filter to the current block based on pixels included in a few columns or rows included in the block to determine whether to perform deblocking. When a deblocking filter is applied to a block, a strong filter or a weak filter may be applied according to the deblocking filtering strength required. In applying the deblocking filter, horizontal filtering and vertical filtering may be performed concurrently in performing vertical filtering and horizontal filtering.

오프셋 보정부는 디블록킹을 수행한 영상에 대해 픽셀 단위로 원본 영상과의 오프셋을 보정할 수 있다. 특정 픽쳐에 대한 오프셋 보정을 수행하기 위해 영상에 포함된 픽셀을 일정한 수의 영역으로 구분한 후 오프셋을 수행할 영역을 결정하고 해당 영역에 오프셋을 적용하는 방법 또는 각 픽셀의 에지 정보를 고려하여 오프셋을 적용하는 방법을 사용할 수 있다.The offset correction unit may correct the offset of the deblocked image with respect to the original image in units of pixels. In order to perform offset correction for a specific picture, pixels included in an image are divided into a predetermined number of areas, and then an area to be offset is determined and an offset is applied to the area. Alternatively, Can be used.

ALF(Adaptive Loop Filtering)는 필터링한 복원 영상과 원래의 영상을 비교한 값을 기초로 수행될 수 있다. 영상에 포함된 픽셀을 소정의 그룹으로 나눈 후 해당 그룹에 적용될 하나의 필터를 결정하여 그룹마다 차별적으로 필터링을 수행할 수 있다. ALF를 적용할지 여부에 관련된 정보는 휘도 신호는 부호화 단위(Coding Unit, CU) 별로 전송될 수 있고, 각각의 블록에 따라 적용될 ALF 필터의 모양 및 필터 계수는 달라질 수 있다. 또한, 적용 대상 블록의 특성에 상관없이 동일한 형태(고정된 형태)의 ALF 필터가 적용될 수도 있다. Adaptive Loop Filtering (ALF) can be performed based on a comparison between the filtered reconstructed image and the original image. After dividing the pixels included in the image into a predetermined group, one filter to be applied to the group may be determined and different filtering may be performed for each group. The information related to whether to apply the ALF may be transmitted for each coding unit (CU), and the shape and the filter coefficient of the ALF filter to be applied may be changed according to each block. Also, an ALF filter of the same type (fixed form) may be applied irrespective of the characteristics of the application target block.

메모리(155)는 필터부(150)를 통해 산출된 복원 블록 또는 픽쳐를 저장할 수 있고, 저장된 복원 블록 또는 픽쳐는 인터 예측을 수행 시 예측부(120, 125)에 제공될 수 있다.The memory 155 may store the reconstructed block or picture calculated through the filter unit 150 and the reconstructed block or picture stored therein may be provided to the predictor 120 or 125 when the inter prediction is performed.

도 2는 본 발명의 일실시예에 따른 영상 복호화 장치를 나타낸 블록도이다.2 is a block diagram illustrating an image decoding apparatus according to an embodiment of the present invention.

도 2를 참조하면, 영상 복호화기(200)는 엔트로피 복호화부(210), 재정렬부(215), 역양자화부(220), 역변환부(225), 예측부(230, 235), 필터부(240), 메모리(245)가 포함될 수 있다.2, the image decoder 200 includes an entropy decoding unit 210, a reordering unit 215, an inverse quantization unit 220, an inverse transform unit 225, prediction units 230 and 235, 240, and a memory 245 may be included.

영상 부호화기에서 영상 비트스트림이 입력된 경우, 입력된 비트스트림은 영상 부호화기와 반대의 절차로 복호화될 수 있다.When an image bitstream is input in the image encoder, the input bitstream may be decoded in a procedure opposite to that of the image encoder.

엔트로피 복호화부(210)는 영상 부호화기의 엔트로피 부호화부에서 엔트로피 부호화를 수행한 것과 반대의 절차로 엔트로피 복호화를 수행할 수 있다. 예를 들어, 영상 부호화기에서 수행된 방법에 대응하여 지수 골롬(Exponential Golomb), CAVLC(Context-Adaptive Variable Length Coding), CABAC(Context-Adaptive Binary Arithmetic Coding)과 같은 다양한 방법이 적용될 수 있다. The entropy decoding unit 210 can perform entropy decoding in a procedure opposite to that in which entropy encoding is performed in the entropy encoding unit of the image encoder. For example, various methods such as Exponential Golomb, Context-Adaptive Variable Length Coding (CAVLC), and Context-Adaptive Binary Arithmetic Coding (CABAC) may be applied in accordance with the method performed by the image encoder.

엔트로피 복호화부(210)에서는 부호화기에서 수행된 인트라 예측 및 인터 예측에 관련된 정보를 복호화할 수 있다.The entropy decoding unit 210 may decode information related to intra prediction and inter prediction performed in the encoder.

재정렬부(215)는 엔트로피 복호화부(210)에서 엔트로피 복호화된 비트스트림을 부호화부에서 재정렬한 방법을 기초로 재정렬을 수행할 수 있다. 1차원 벡터 형태로 표현된 계수들을 다시 2차원의 블록 형태의 계수로 복원하여 재정렬할 수 있다. 재정렬부(215)에서는 부호화부에서 수행된 계수 스캐닝에 관련된 정보를 제공받고 해당 부호화부에서 수행된 스캐닝 순서에 기초하여 역으로 스캐닝하는 방법을 통해 재정렬을 수행할 수 있다.The reordering unit 215 can perform reordering based on a method in which the entropy decoding unit 210 rearranges the entropy-decoded bitstreams in the encoding unit. The coefficients represented by the one-dimensional vector form can be rearranged by restoring the coefficients of the two-dimensional block form again. The reordering unit 215 can perform reordering by receiving information related to the coefficient scanning performed by the encoding unit and performing a reverse scanning based on the scanning order performed by the encoding unit.

역양자화부(220)는 부호화기에서 제공된 양자화 파라미터와 재정렬된 블록의 계수값을 기초로 역양자화를 수행할 수 있다. The inverse quantization unit 220 can perform inverse quantization based on the quantization parameters provided by the encoder and the coefficient values of the re-arranged blocks.

역변환부(225)는 영상 부호화기에서 수행한 양자화 결과에 대해 변환부에서 수행한 변환 즉, DCT, DST, 및 KLT에 대해 역변환 즉, 역 DCT, 역 DST 및 역 KLT를 수행할 수 있다. 역변환은 영상 부호화기에서 결정된 전송 단위를 기초로 수행될 수 있다. 영상 복호화기의 역변환부(225)에서는 예측 방법, 현재 블록의 크기 및 예측 방향 등 복수의 정보에 따라 변환 기법(예를 들어, DCT, DST, KLT)이 선택적으로 수행될 수 있다.The inverse transform unit 225 may perform an inverse DCT, an inverse DST, and an inverse KLT on the DCT, DST, and KLT transformations performed by the transform unit on the quantization result performed by the image encoder. The inverse transform can be performed based on the transmission unit determined by the image encoder. In the inverse transform unit 225 of the image decoder, a transform technique (e.g., DCT, DST, KLT) may be selectively performed according to a plurality of information such as a prediction method, a size of a current block, and a prediction direction.

예측부(230, 235)는 엔트로피 복호화부(210)에서 제공된 예측 블록 생성 관련 정보와 메모리(245)에서 제공된 이전에 복호화된 블록 또는 픽쳐 정보를 기초로 예측 블록을 생성할 수 있다. The prediction units 230 and 235 can generate a prediction block based on the prediction block generation related information provided by the entropy decoding unit 210 and the previously decoded block or picture information provided in the memory 245. [

전술한 바와 같이 영상 부호화기에서의 동작과 동일하게 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 동일할 경우, 예측 단위의 좌측에 존재하는 픽셀, 좌측 상단에 존재하는 픽셀, 상단에 존재하는 픽셀을 기초로 예측 단위에 대한 인트라 예측을 수행하지만, 인트라 예측을 수행시 예측 단위의 크기와 변환 단위의 크기가 상이할 경우, 변환 단위를 기초로 한 참조 픽셀을 이용하여 인트라 예측을 수행할 수 있다. 또한, 최소 부호화 단위에 대해서만 NxN 분할을 사용하는 인트라 예측을 사용할 수도 있다.As described above, when intra prediction is performed in the same manner as in the image encoder, when the size of the prediction unit is the same as the size of the conversion unit, pixels existing on the left side of the prediction unit, pixels existing on the upper left side, However, when the size of the prediction unit differs from the size of the prediction unit in intra prediction, intraprediction is performed using a reference pixel based on the conversion unit . It is also possible to use intra prediction using NxN division only for the minimum coding unit.

예측부(230, 235)는 예측 단위 판별부, 인터 예측부 및 인트라 예측부를 포함할 수 있다. 예측 단위 판별부는 엔트로피 복호화부(210)에서 입력되는 예측 단위 정보, 인트라 예측 방법의 예측 모드 정보, 인터 예측 방법의 모션 예측 관련 정보 등 다양한 정보를 입력 받고 현재 부호화 단위에서 예측 단위를 구분하고, 예측 단위가 인터 예측을 수행하는지 아니면 인트라 예측을 수행하는지 여부를 판별할 수 있다. 인터 예측부(230)는 영상 부호화기에서 제공된 현재 예측 단위의 인터 예측에 필요한 정보를 이용해 현재 예측 단위가 포함된 현재 픽쳐의 이전 픽쳐 또는 이후 픽쳐 중 적어도 하나의 픽쳐에 포함된 정보를 기초로 현재 예측 단위에 대한 인터 예측을 수행할 수 있다. 또는, 현재 예측 단위가 포함된 현재 픽쳐 내에서 기-복원된 일부 영역의 정보를 기초로 인터 예측을 수행할 수도 있다.The prediction units 230 and 235 may include a prediction unit determination unit, an inter prediction unit, and an intra prediction unit. The prediction unit determination unit receives various information such as prediction unit information input from the entropy decoding unit 210, prediction mode information of the intra prediction method, motion prediction related information of the inter prediction method, and identifies prediction units in the current coding unit. It is possible to determine whether the unit performs inter prediction or intra prediction. The inter prediction unit 230 predicts the current prediction based on the information included in at least one of the previous picture of the current picture or the following picture including the current prediction unit by using information necessary for inter prediction of the current prediction unit provided by the image encoder, Unit can be performed. Alternatively, the inter prediction may be performed on the basis of the information of the partial region previously reconstructed in the current picture including the current prediction unit.

인터 예측을 수행하기 위해 부호화 단위를 기준으로 해당 부호화 단위에 포함된 예측 단위의 모션 예측 방법이 스킵 모드(Skip Mode), 머지 모드(Merge 모드), AMVP 모드(AMVP Mode), 인트라 블록 카피 모드 중 어떠한 방법인지 여부를 판단할 수 있다.In order to perform inter prediction, a motion prediction method of a prediction unit included in a corresponding encoding unit on the basis of an encoding unit includes a skip mode, a merge mode, an AMVP mode, and an intra block copy mode It is possible to judge whether or not it is any method.

인트라 예측부(235)는 현재 픽쳐 내의 화소 정보를 기초로 예측 블록을 생성할 수 있다. 예측 단위가 인트라 예측을 수행한 예측 단위인 경우, 영상 부호화기에서 제공된 예측 단위의 인트라 예측 모드 정보를 기초로 인트라 예측을 수행할 수 있다. 인트라 예측부(235)에는 AIS(Adaptive Intra Smoothing) 필터, 참조 화소 보간부, DC 필터를 포함할 수 있다. AIS 필터는 현재 블록의 참조 화소에 필터링을 수행하는 부분으로써 현재 예측 단위의 예측 모드에 따라 필터의 적용 여부를 결정하여 적용할 수 있다. 영상 부호화기에서 제공된 예측 단위의 예측 모드 및 AIS 필터 정보를 이용하여 현재 블록의 참조 화소에 AIS 필터링을 수행할 수 있다. 현재 블록의 예측 모드가 AIS 필터링을 수행하지 않는 모드일 경우, AIS 필터는 적용되지 않을 수 있다.The intra prediction unit 235 can generate a prediction block based on the pixel information in the current picture. If the prediction unit is a prediction unit that performs intra prediction, the intra prediction can be performed based on the intra prediction mode information of the prediction unit provided by the image encoder. The intraprediction unit 235 may include an AIS (Adaptive Intra Smoothing) filter, a reference pixel interpolator, and a DC filter. The AIS filter performs filtering on the reference pixels of the current block and can determine whether to apply the filter according to the prediction mode of the current prediction unit. The AIS filtering can be performed on the reference pixel of the current block using the prediction mode of the prediction unit provided in the image encoder and the AIS filter information. When the prediction mode of the current block is a mode in which AIS filtering is not performed, the AIS filter may not be applied.

참조 화소 보간부는 예측 단위의 예측 모드가 참조 화소를 보간한 화소값을 기초로 인트라 예측을 수행하는 예측 단위일 경우, 참조 화소를 보간하여 정수값 이하의 화소 단위의 참조 화소를 생성할 수 있다. 현재 예측 단위의 예측 모드가 참조 화소를 보간하지 않고 예측 블록을 생성하는 예측 모드일 경우 참조 화소는 보간되지 않을 수 있다. DC 필터는 현재 블록의 예측 모드가 DC 모드일 경우 필터링을 통해서 예측 블록을 생성할 수 있다.The reference pixel interpolator may interpolate the reference pixels to generate reference pixels in units of pixels less than or equal to an integer value when the prediction mode of the prediction unit is a prediction unit that performs intra prediction based on pixel values obtained by interpolating reference pixels. The reference pixel may not be interpolated in the prediction mode in which the prediction mode of the current prediction unit generates the prediction block without interpolating the reference pixel. The DC filter can generate a prediction block through filtering when the prediction mode of the current block is the DC mode.

복원된 블록 또는 픽쳐는 필터부(240)로 제공될 수 있다. 필터부(240)는 디블록킹 필터, 오프셋 보정부, ALF를 포함할 수 있다.The restored block or picture may be provided to the filter unit 240. The filter unit 240 may include a deblocking filter, an offset correction unit, and an ALF.

영상 부호화기로부터 해당 블록 또는 픽쳐에 디블록킹 필터를 적용하였는지 여부에 대한 정보 및 디블록킹 필터를 적용하였을 경우, 강한 필터를 적용하였는지 또는 약한 필터를 적용하였는지에 대한 정보를 제공받을 수 있다. 영상 복호화기의 디블록킹 필터에서는 영상 부호화기에서 제공된 디블록킹 필터 관련 정보를 제공받고 영상 복호화기에서 해당 블록에 대한 디블록킹 필터링을 수행할 수 있다. When information on whether a deblocking filter is applied to a corresponding block or picture from the image encoder or a deblocking filter is applied, information on whether a strong filter or a weak filter is applied can be provided. In the deblocking filter of the video decoder, the deblocking filter related information provided by the video encoder is provided, and the video decoder can perform deblocking filtering for the corresponding block.

오프셋 보정부는 부호화시 영상에 적용된 오프셋 보정의 종류 및 오프셋 값 정보 등을 기초로 복원된 영상에 오프셋 보정을 수행할 수 있다.The offset correction unit may perform offset correction on the reconstructed image based on the type of offset correction applied to the image and the offset value information during encoding.

ALF는 부호화기로부터 제공된 ALF 적용 여부 정보, ALF 계수 정보 등을 기초로 부호화 단위에 적용될 수 있다. 이러한 ALF 정보는 특정한 파라메터 셋에 포함되어 제공될 수 있다.The ALF can be applied to an encoding unit on the basis of ALF application information and ALF coefficient information provided from an encoder. Such ALF information may be provided in a specific parameter set.

메모리(245)는 복원된 픽쳐 또는 블록을 저장하여 참조 픽쳐 또는 참조 블록으로 사용할 수 있도록 할 수 있고 또한 복원된 픽쳐를 출력부로 제공할 수 있다. The memory 245 may store the reconstructed picture or block to be used as a reference picture or a reference block, and may also provide the reconstructed picture to the output unit.

전술한 바와 같이 이하, 본 발명의 실시예에서는 설명의 편의상 코딩 유닛(Coding Unit)을 부호화 단위라는 용어로 사용하지만, 부호화뿐만 아니라 복호화를 수행하는 단위가 될 수도 있다.As described above, in the embodiment of the present invention, a coding unit (coding unit) is used as a coding unit for convenience of explanation, but it may be a unit for performing not only coding but also decoding.

또한, 현재 블록은, 부호화/복호화 대상 블록을 나타내는 것으로, 부호화/복호화 단계에 따라, 코딩 트리 블록(또는 코딩 트리 유닛), 부호화 블록(또는 부호화 유닛), 변환 블록(또는 변환 유닛) 또는 예측 블록(또는 예측 유닛) 등을 나타내는 것일 수 있다. 본 명세서에서, '유닛'은 특정 부호화/복호화 프로세스를 수행하기 위한 기본 단위를 나타내고, '블록'은 소정 크기의 샘플 어레이를 나타낼 수 있다. 별도의 구분이 없는 한, '블록'과 '유닛'은 동등한 의미로 사용될 수 있다. 예컨대, 후술되는 실시예에서, 부호화 블록(코딩 블록) 및 부호화 유닛(코딩 유닛)은 상호 동등한 의미인 것으로 이해될 수 있다. The current block indicates a block to be coded / decoded. Depending on the coding / decoding step, the current block includes a coding tree block (or coding tree unit), a coding block (or coding unit), a transform block (Or prediction unit), and the like. In this specification, 'unit' represents a basic unit for performing a specific encoding / decoding process, and 'block' may represent a sample array of a predetermined size. Unless otherwise indicated, the terms 'block' and 'unit' may be used interchangeably. For example, in the embodiments described below, it can be understood that the encoding block (coding block) and the encoding unit (coding unit) have mutually equivalent meanings.

하나의 픽쳐는 정방형 또는 비정방형의 기본 블록으로 분할되어 부호화/복호화될 수 있다. 이때, 기본 블록은, 코딩 트리 유닛(Coding Tree Unit)이라 호칭될 수 있다. 코딩 트리 유닛은, 시퀀스 또는 슬라이스에서 허용하는 가장 큰 크기의 코딩 유닛으로 정의될 수도 있다. 코딩 트리 유닛이 정방형 또는 비정방형인지 여부 또는 코딩 트리 유닛의 크기와 관련한 정보는 시퀀스 파라미터 셋트, 픽처 파라미터 셋트 또는 슬라이스 헤더 등을 통해 시그널링될 수 있다. 코딩 트리 유닛은 더 작은 크기의 파티션으로 분할될 수 있다. 이때, 코딩 트리 유닛을 분할함으로써 생성된 파티션을 뎁스 1이라 할 경우, 뎁스 1인 파티션을 분할함으로써 생성된 파티션은 뎁스 2로 정의될 수 있다. 즉, 코딩 트리 유닛 내 뎁스 k인 파티션을 분할함으로써 생성된 파티션은 뎁스 k+1을 갖는 것으로 정의될 수 있다.One picture may be divided into a square block or a non-square basic block and then encoded / decoded. At this time, the basic block may be referred to as a coding tree unit. The coding tree unit may be defined as a coding unit of the largest size allowed in a sequence or a slice. Information regarding whether the coding tree unit is square or non-square or about the size of the coding tree unit can be signaled through a sequence parameter set, a picture parameter set, or a slice header. The coding tree unit can be divided into smaller size partitions. In this case, if the partition generated by dividing the coding tree unit is depth 1, the partition created by dividing the partition having depth 1 can be defined as depth 2. That is, the partition created by dividing the partition having the depth k in the coding tree unit can be defined as having the depth k + 1.

코딩 트리 유닛이 분할됨에 따라 생성된 임의 크기의 파티션을 코딩 유닛이라 정의할 수 있다. 코딩 유닛은 재귀적으로 분할되거나, 예측, 양자화, 변환 또는 인루프 필터링 등을 수행하기 위한 기본 단위로 분할될 수 있다. 일 예로, 코딩 유닛이 분할됨에 따라 생성된 임의 크기의 파티션은 코딩 유닛으로 정의되거나, 예측, 양자화, 변환 또는 인루프 필터링 등을 수행하기 위한 기본 단위인 변환 유닛 또는 예측 유닛으로 정의될 수 있다.A partition of arbitrary size generated as the coding tree unit is divided can be defined as a coding unit. The coding unit may be recursively divided or divided into basic units for performing prediction, quantization, transformation, or in-loop filtering, and the like. In one example, a partition of arbitrary size generated as a coding unit is divided may be defined as a coding unit, or may be defined as a conversion unit or a prediction unit, which is a basic unit for performing prediction, quantization, conversion or in-loop filtering and the like.

또는, 코딩 블록이 결정되면, 코딩 블록의 예측 분할을 통해 코딩 블록과 동일한 크기 또는 코딩 블록보다 작은 크기를 갖는 예측 블록(Prediction Block)을 결정할 수 있다. 코딩 블록의 예측 분할은 코딩 블록의 분할 형태를 나타내는 파티션 모드(Part_mode)에 의해 수행될 수 있다. 예측 블록의 크기 또는 형태는 코딩 블록의 파티션 모드에 따라 결정될 수 있다. 코딩 블록의 분할 형태는 파티션 후보 중 어느 하나를 특정하는 정보를 통해 결정될 수 있다. 이때, 코딩 블록이 이용할 수 있는 파티션 후보에는 코딩 블록의 크기, 형태 또는 부호화 모드 등에 따라 비대칭 파티션 형태(예컨대, nLx2N, nRx2N, 2NxnU, 2NxnD)가 포함될 수 있다. 일 예로, 코딩 블록이 이용할 수 있는 파티션 후보는 현재 블록의 부호화 모드에 따라 결정될 수 있다. 일 예로, 도 3은 코딩 블록이 화면 간 예측으로 부호화되었을 때, 코딩 블록에 적용될 수 있는 파티션 모드를 예시한 도면이다. Alternatively, if a coding block is determined, a prediction block having the same size as the coding block or smaller than the coding block can be determined through predictive division of the coding block. Predictive partitioning of the coded block can be performed by a partition mode (Part_mode) indicating the partition type of the coded block. The size or shape of the prediction block may be determined according to the partition mode of the coding block. The division type of the coding block can be determined through information specifying any one of the partition candidates. At this time, the partition candidates available to the coding block may include an asymmetric partition type (for example, nLx2N, nRx2N, 2NxnU, 2NxnD) depending on the size, type, coding mode or the like of the coding block. In one example, the partition candidate available to the coding block may be determined according to the coding mode of the current block. For example, FIG. 3 illustrates a partition mode that can be applied to a coding block when the coding block is coded by inter-picture prediction.

코딩 블록이 화면 간 예측으로 부호화된 경우, 코딩 블록에는 도 3에 도시된 예에서와 같이, 8개의 파티션 모드 중 어느 하나가 적용될 수 있다. When the coding block is coded by the inter-picture prediction, one of eight partitioning modes can be applied to the coding block, as in the example shown in Fig.

반면, 코딩 블록이 화면 내 예측으로 부호화된 경우, 코딩 블록에는 파티션 모드 PART_2Nx2N 또는 PART_NxN 이 적용될 수 있다. On the other hand, when the coding block is coded by the intra prediction, the coding mode can be applied to the partition mode PART_2Nx2N or PART_NxN.

PART_NxN은 코딩 블록이 최소 크기를 갖는 경우 적용될 수 있다. 여기서, 코딩 블록의 최소 크기는 부호화기 및 복호화기에서 기 정의된 것일 수 있다. 또는, 코딩 블록의 최소 크기에 관한 정보는 비트스트림을 통해 시그널링될 수도 있다. 일 예로, 코딩 블록의 최소 크기는 슬라이스 헤더를 통해 시그널링되고, 이에 따라, 슬라이스별로 코딩 블록의 최소 크기가 정의될 수 있다. PART_NxN may be applied when the coding block has a minimum size. Here, the minimum size of the coding block may be one previously defined in the encoder and the decoder. Alternatively, information regarding the minimum size of the coding block may be signaled via the bitstream. In one example, the minimum size of the coding block is signaled through the slice header, so that the minimum size of the coding block per slice can be defined.

다른 예로, 코딩 블록이 이용할 수 있는 파티션 후보는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수도 있다. 일 예로, 코딩 블록이 이용할 수 있는 파티션 후보의 개수 또는 종류는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수 있다. In another example, the partition candidates available to the coding block may be determined differently depending on at least one of the size or type of the coding block. In one example, the number or type of partition candidates available to the coding block may be differently determined according to at least one of the size or type of the coding block.

또는, 코딩 블록이 이용할 수 있는 파티션 후보들 중 비대칭 파티션 후보들의 종류 또는 개수를 코딩 블록의 크기 또는 형태에 따라 제한할 수도 있다. 일 예로, 코딩 블록이 이용할 수 있는 비대칭 파티션 후보의 개수 또는 종류는 코딩 블록의 크기 또는 형태 중 적어도 하나에 따라 상이하게 결정될 수 있다.Alternatively, the type or number of asymmetric partition candidates among the partition candidates available to the coding block may be limited depending on the size or type of the coding block. In one example, the number or type of asymmetric partition candidates available to the coding block may be differently determined according to at least one of the size or type of the coding block.

일반적으로, 예측 블록의 크기는 64x64 부터 4x4의 크기를 가질 수 있다. 단, 코딩 블록이 화면 간 예측으로 부호화된 경우, 움직임 보상을 수행할 때, 메모리 대역폭(memory bandwidth)을 줄이기 위해, 예측 블록이 4x4 크기를 갖지 않도록 할 수 있다. In general, the size of the prediction block may have a size from 64x64 to 4x4. However, when the coding block is coded by inter-picture prediction, it is possible to prevent the prediction block from having a 4x4 size in order to reduce the memory bandwidth when performing motion compensation.

카메라의 화각에 따라 카메라가 촬영한 비디오의 시야는 제한된다. 이를 극복하기 위해, 복수의 카메라를 이용하여 영상을 촬영하고, 촬영된 영상을 스티칭하여 하나의 비디오 또는 하나의 비트스트림을 구성할 수 있다. 일 예로, 도 4 내지 도 6은 복수개의 카메라를 이용하여 동시에 상하, 좌우 또는 전후방을 촬영하는 예를 나타낸다. 이처럼, 복수의 비디오를 스티칭하여 생성된 비디오를 파노라믹 비디오라 호칭할 수 있다. 특히, 소정의 중심축을 기준으로 회전 자유도(Degree of Freedom)를 갖는 영상을 360도 비디오라 호칭할 수 있다. 예컨대, 360도 비디오는 Yaw, Roll, Pitch 중 적어도 하나에 대한 회전 자유도를 갖는 영상일 수 있다.Depending on the angle of view of the camera, the view of the video captured by the camera is limited. In order to overcome this problem, it is possible to capture a video using a plurality of cameras and stitch the photographed video to form one video or one bit stream. For example, FIGS. 4 to 6 show an example in which a plurality of cameras are used to photograph up and down, right and left, or front and back at the same time. As described above, a video generated by stitching a plurality of videos can be referred to as a panoramic video. In particular, an image having a degree of freedom (Degree of Freedom) based on a predetermined center axis can be referred to as a 360-degree video. For example, the 360 degree video may be an image having rotational degrees of freedom for at least one of Yaw, Roll, and Pitch.

360도 비디오를 획득하기 위한 카메라 구조(또는 카메라 배치)는, 도 4에 도시된 예에서와 같이, 원형 배열을 띠거나, 도 5의 (a)에 도시된 예에서와 같이 일차원 수직/수평 배치 또는 도 5의 (b)에 도시된 예에서와 같이 이차원 배치(즉, 수직 배치와 수평 배치가 혼합된 형태)를 띨 수 있다. 또는, 도 6에 도시된 예에서와 같이, 구형 디바이스에 복수개의 카메라를 장착한 형태를 띨 수도 있다.The camera structure (or camera arrangement) for acquiring 360-degree video may have a circular arrangement, as in the example shown in Fig. 4, or a one-dimensional vertical / horizontal arrangement as in the example shown in Fig. Or a two-dimensional arrangement (i.e., a combination of vertical arrangement and horizontal arrangement) as in the example shown in Fig. 5 (b). Alternatively, as in the example shown in Fig. 6, a plurality of cameras may be mounted on the spherical device.

후술되는 실시예는, 360도 비디오를 중심으로 설명할 것이나, 360도 비디오가 아닌 파노라믹 비디오에도 후술되는 실시예를 적용하는 것은 본 발명의 기술적 범주에 포함된다 할 것이다.The embodiments described below will be described with reference to 360-degree video, but it will be within the technical scope of the present invention to apply the embodiments described below to panoramic video that is not 360-degree video.

도 7은 360도 비디오 데이터 생성 장치 및 360도 비디오 플레이 장치의 블록도이고, 도 8은 360도 비디오 데이터 생성 장치 및 360도 비디오 플레이 장치의 동작을 나타낸 흐름도이다.FIG. 7 is a block diagram of a 360-degree video data generation apparatus and a 360-degree video play apparatus, and FIG. 8 is a flowchart illustrating operations of a 360-degree video data generation apparatus and a 360-degree video data apparatus.

도 7을 참조하면, 360도 비디오 데이터 생성 장치는, 투영부(710), 프레임 패킹부(720), 인코딩부(730) 및 전송부(740)를 포함하고, 360도 비디오 플레이 장치는, 파일 파싱부(750), 디코딩부(760), 프레임 디패킹부(770) 및 역투영부(780)를 포함할 수 있다. 도 7에 도시된 인코딩부 및 디코딩부는 각각 도 1 및 도 2에 도시된 영상 부호화 장치 및 영상 복호화 장치에 대응하는 것일 수 있다.7, the 360-degree video data generation apparatus includes a projection unit 710, a frame packing unit 720, an encoding unit 730, and a transmission unit 740, A parsing unit 750, a decoding unit 760, a frame deblocking unit 770, and an inverse decoding unit 780. The encoding unit and the decoding unit shown in FIG. 7 may correspond to the image encoding apparatus and the image decoding apparatus shown in FIG. 1 and FIG. 2, respectively.

데이터 생성 장치는, 복수의 카메라로 촬영된 영상을 스티칭함으로써 생성된 360도 영상의 투영 변환 기법을 결정할 수 있다. 투사부(710)에서는, 결정된 투영 변환 기법에 따라, 360도 비디오의 3D 형태를 결정하고, 결정된 3D 형태에 따라, 360도 비디오를 2D 평면상에 투영할 수 있다(S801). 여기서, 투영 변환 기법은, 360도 비디오의 3D 형태 및 2D 평면상에 360도 비디오가 전개되는 양상을 나타낼 수 있다. 360도 영상은 투영 변환 기법에 따라, 3D 공간상에서, 구, 원통, 정육면체, 정팔면체 또는 정이십면체 등의 형태를 갖는 것으로 근사될 수 있다. 투영 변환 기법에 따라, 360도 비디오를 2D 평면에 투영하여 생성된 영상을 360도 투사 영상이라 호칭할 수 있다.The data generation apparatus can determine a projection transformation technique of a 360-degree image generated by stitching an image photographed by a plurality of cameras. In the projection unit 710, the 3D shape of the 360-degree video is determined according to the determined projection transformation technique, and the 360-degree video is projected on the 2D plane according to the determined 3D shape (S801). Here, the projection transformation technique can represent a 3D shape of 360-degree video and an aspect in which 360-degree video is developed on the 2D plane. 360 degree images can be approximated to have shapes such as spheres, cylinders, cubes, octahedrons, or regular twins, etc., in 3D space according to projection transformation techniques. According to the projection transformation technique, an image generated by projecting a 360-degree video onto a 2D plane can be referred to as a 360-degree projection image.

360도 투사 영상은 투영 변환 기법에 따라 적어도 하나의 페이스로 구성될 수 있다. 일 예로, 360도 비디오가 다면체로 근사되는 경우, 다면체를 구성하는 각각의 면을 페이스라 정의할 수 있다. 또는, 다면체를 구성하는 특정면을 복수 영역으로 분할하고, 분할된 각 영역이 별개의 페이스를 구성하도록 설정할 수도 있다. 구 형태로 근사되는 360도 비디오도, 투영 변환 기법에 따라 복수의 페이스를 가질 수 있다. The 360 degree projection image may be composed of at least one face according to the projection transformation technique. For example, when a 360-degree video is approximated as a polyhedron, each face constituting the polyhedron can be defined as a pace. Alternatively, the specific surface constituting the polyhedron may be divided into a plurality of regions, and each divided region may be configured to form a separate face. 360 degree video, which approximates spherical shape, can have multiple faces according to the projection transformation technique.

360도 비디오에 대한 부호화/복호화 효율을 높이기 위해, 프레임 패킹부(720)에서 프레임 패킹(Frame Packing)이 수행될 수 있다(S802). 프레임 패킹은, 페이스의 재정렬, 크기 변경, 와핑(Warping), 회전 또는 플리핑(flipping) 중 적어도 하나를 포함할 수 있다. 프레임 패킹을 통해, 360도 투사 영상을 부호화/복호화 효율이 높은 형태(예컨대, 직사각형)로 변환하거나, 페이스들 사이의 불연속 데이터를 제거할 수 있다. 프레임 패킹을 프레임 재정렬 또는 리전 와이즈 패킹(Region-wise Packing)이라 호칭할 수도 있다. 프레임 패킹은 360도 투사 영상에 대한 부호화/복호화 효율을 향상시키기 위해 선택적으로 수행될 수도 있다.Frame packing may be performed in the frame packing unit 720 in order to increase the encoding / decoding efficiency of the 360-degree video (S802). The frame packing may include at least one of rearranging, resizing, warping, rotating, or flipping the face. Through the frame packing, the 360 degree projection image can be converted into a form having a high encoding / decoding efficiency (for example, a rectangle) or discontinuous data between faces can be removed. The frame packing may also be referred to as frame reordering or Region-wise Packing. The frame packing may be selectively performed to improve the coding / decoding efficiency for the 360 degree projection image.

인코딩부(730)에서는, 360도 투사 영상 또는 프레임 패킹이 수행된 360도 투사 영상에 대해 부호화를 수행할 수 있다(S803). 이때, 인코딩부(730)는, 360도 비디오에 대한 투영 변환 기법을 나타내는 정보를 부호화할 수 있다. 여기서, 투영 변환 기법을 나타내는 정보는, 복수의 투영 변환 기법 중 어느 하나를 나타내는 인덱스 정보일 수 있다.In the encoding unit 730, the 360-degree projection image or the 360-degree projection image in which the frame packing is performed may be encoded (S803). At this time, the encoding unit 730 may encode information indicating a projection transformation technique for 360-degree video. Here, the information indicating the projection transformation technique may be index information indicating any one of a plurality of projection transformation techniques.

또한, 인코딩부(730)는, 360도 비디오에 대한 프레임 패킹과 관련된 정보를 부호화할 수 있다. 여기서, 프레임 패킹과 관련된 정보는, 프레임 패킹이 수행되었는지 여부, 페이스의 개수, 페이스의 위치, 페이스의 크기, 페이스의 형태 또는 페이스의 회전 정보 중 적어도 하나를 포함할 수 있다.In addition, the encoding unit 730 can encode information related to frame packing for 360-degree video. Here, the information related to the frame packing may include at least one of whether or not frame packing has been performed, the number of paces, the position of the pace, the size of the pace, the shape of the pace, or the rotation information of the pace.

전송부(740)에서는 캡슐화(Encapsulation)하고, 캡슐화된 데이터를 플레이어 단말로 전송할 수 있다(S804).The transmitter 740 encapsulates the encapsulated data and transmits the encapsulated data to the player terminal (S804).

파일 파싱부(750)는, 컨텐트 제공 장치로부터 수신한 파일을 파싱(Parsing)할 수 있다(S805). 디코딩부(760)에서는, 파싱된 데이터를 이용하여 360도 투사 영상을 디코딩할 수 있다(S806). The file parsing unit 750 can parse the file received from the content providing apparatus (S805). In the decoding unit 760, the 360-degree projection image can be decoded using the parsed data (S806).

360도 투사 영상에 프레임 패킹이 수행된 경우, 프레임 디패킹부(760)는, 컨텐트 제공 측에서 수행된 프레임 패킹과 반대인 프레임 디패킹(Region-wise depacking)을 수행할 수 있다(S807). 프레임 디패킹은, 프레임 패킹된 360도 투사 영상을, 프레임 패킹이 수행되기 이전으로 복원하는 것일 수 있다. 예컨대, 프레임 디패킹은, 데이터 생성 장치에서 수행된 페이스의 재정렬, 크기 변경, 와핑(Warping), 회전 또는 플리핑(flipping)을 역으로 수행하는 것일 수 있다.If frame packing is performed on the 360-degree projection image, the frame deblocking unit 760 may perform a frame de-packing (Region-wise depacking), which is opposite to the frame packing performed on the content providing side (S807). The frame de-packing may be to restore the frame-packed 360 degree projection image to before the frame packing is performed. For example, frame de-packing may be to reverse the pacing, resizing, warping, rotation, or flipping performed at the data generating device.

역투영부(780)는, 360도 비디오의 투영 변환 기법에 따라, 2D 평면상의 360도 투사 영상을 3D 형태로 역투영(Inverse Projection)할 수 있다(S808).The inverse transformation unit 780 can perform inverse projection on the 360 degree projection image on the 2D plane in 3D form according to the projection transformation technique of 360 degree video (S808).

투영 변환 기법은, 등장방형도법(ERP, Equirectangular Procection), 정육면체 투영 변환(Cube Map Projection, CMP), 이십면체 투영 변환(Icosahedral Projection, ISP), 정팔면체 투영 변환(Octahedron Projection, OHP), 절삭형 피라미드 투영 변환(Truncated Pyramid Projection, TPP), SSP(Shpere Segment Projection), ECP(Equatorial cylindrical projection) 또는 RSP(rotated sphere projection) 중 적어도 하나를 포함할 수 있다.Projection transformation techniques include ERP, Equirectangular Procction, Cube Map Projection (CMP), Icosahedral Projection (ISP), Octahedron Projection (OHP), Cutting Pyramid And may include at least one of Truncated Pyramid Projection (TPP), Shpere Segment Projection (SSP), Equatorial Cylindrical Projection (ECP), and Rotated Sphere Projection (RSP).

도 9는 등장방형도법을 이용한 2D 투영 방법을 나타낸 것이다.Figure 9 shows a 2D projection method using the isometric quadrature method.

등장방형도법은 구에 대응하는 픽셀을 N:1의 종횡비를 갖는 직사각형으로 투영하는 방법으로, 가장 널리 사용되는 2D 변환 기법이다. 여기서, N은 2일 수도 있고, 2 이하 또는 2 이상의 실수일 수도 있다. 등장형도법을 이용할 경우, 구의 극으로 갈수록 2D 평면 상에서 단위 길이에 대응하는 구의 실제 길이가 짧아진다. 예컨대, 2D 평면 상의 단위 길이 양끝의 좌표가 구의 적도 부근에서는 20cm의 거리 차이에 상응하는 반면, 구의 극 부근에서는 5cm의 거리 차이에 상응할 수 있다. 이에 따라, 등장방형도법은, 구의 극 부근에서는 영상 왜곡이 커 부호화 효율이 낮아지는 단점이 있다.The isometric method is a method of projecting a pixel corresponding to a sphere into a rectangle having an aspect ratio of N: 1, which is the most widely used 2D transformation technique. Here, N may be 2, or may be 2 or less or 2 or more real numbers. When using the isometrical method, the actual length of the sphere corresponding to the unit length on the 2D plane becomes shorter as the sphere becomes closer to the sphere. For example, the coordinates of both ends of the unit length on the 2D plane may correspond to a distance difference of 20 cm in the vicinity of the sphere of the sphere, and a distance difference of 5 cm in the vicinity of the sphere of the sphere. As a result, the isochronous quadrature method has a disadvantage in that the image is distorted in the vicinity of the sphere and the coding efficiency is lowered.

도 10은 정육면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.10 shows a 2D projection method using a cube projection method.

정육면체 투영 기법은, 360도 비디오를 정육면체로 근사한 뒤, 정육면체를 2D로 투영 변환하는 것이다. 360도 비디오를 정육면체로 투영할 경우, 하나의 페이스(face)(또는 면(plane))는 4개의 페이스와 인접하도록 구성된다. 각 페이스 간 연속성이 높아, 정육면체 투영 방법은 등장방형도법에 비해 부호화 효율이 높은 이점이 있다. 360도 비디오를 2D로 투영 변환한 이후, 2D 투영 변환된 영상을 사각형 형태로 재정렬하여 부호화/복호화를 수행할 수도 있다. The cube projection method approximates a 360 degree video with a cube and then transforms the cube into 2D. When projecting a 360 degree video into a cube, one face (or plane) is configured to be adjacent to the four faces. Since the continuity between faces is high, the cube projection method has an advantage in that the coding efficiency is higher than that of the isotropic square method. After the 360 degree video is projected and converted into 2D, the 2D projection converted image may be rearranged into a rectangular shape to perform encoding / decoding.

도 11은 이십면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.11 shows a 2D projection method using a bipartite projection technique.

이십면체 투영 기법은, 360도 비디오를 이십면체로 근사하고, 이를 2D로 투영 변환하는 방법이다. 이십면체 투영 기법은 페이스간 연속성이 강한 특징이 있다. 도 11에 도시된 예에서와 같이, 2D 투영 변환된 영상 내 페이스들을 재정렬하여 부호화/복호화를 수행할 수도 있다.The trilateral projection method is a method of approximating a 360-degree video to a twenty-sided shape and transforming it into 2D. The twin-sided projection technique has a strong continuity between faces. As in the example shown in FIG. 11, it is also possible to perform coding / decoding by rearranging the faces in the 2D projection-converted image.

도 12는 정팔면체 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.12 shows a 2D projection method using an octahedral projection technique.

정팔면체 투영 방법은, 360도 비디오를 정팔면체로 근사하고, 이를 2D로 투영 변환하는 방법이다. 정팔면체 투영 기법은 페이스간 연속성이 강한 특징이 있다. 도 12에 도시된 예에서와 같이, 2D 투영 변환된 영상 내 페이스들을 재정렬하여 부호화/복호화를 수행할 수도 있다.The octahedron projection method is a method of approximating a 360 degree video to an octahedron and transforming it into 2D. The octahedral projection technique is characterized by strong continuity between faces. As in the example shown in FIG. 12, it is possible to perform encoding / decoding by rearranging the faces in the 2D projection-converted image.

도 13은 절삭형 피라미드 투영 기법을 이용한 2D 투영 방법을 나타낸 것이다.13 shows a 2D projection method using a cutting pyramid projection technique.

절삭형 피라미드 투영 기법은, 360도 비디오를 절삭형 피라미드로 근사하고, 이를 2D로 투영 변환하는 방법이다. 절삭형 피라미드 투영 기법 하에서, 특정 시점의 페이스는 이웃하는 페이스와 상이한 크기를 갖도록 프레임 패킹이 수행될 수 있다. 예컨대, 도 13에 도시된 예에서와 같이, Front 페이스는 측면 페이스 및 Back 페이스보다 큰 크기를 가질 수 있다. 절삭형 피라미드 투영 기법을 이용할 경우, 특정 시점의 영상 데이터가 커, 특정 시점의 부호화/복호화 효율이 타 시점에 비해 높은 이점이 있다. The truncated pyramid projection technique is a method of approximating a 360 degree video with a cutting pyramid and transforming it into 2D. Under the truncated pyramid projection technique, frame packing may be performed such that the face at a particular point in time has a different size from the neighboring face. For example, as in the example shown in FIG. 13, the Front face may have a larger size than the side face and the back face. When the cutting-type pyramid projection technique is used, the image data at a specific point in time is large, and the encoding / decoding efficiency at a specific point of time is higher than other points.

SSP는 구 형태의 360도 비디오를 고위도 지역 및 중위도 지역으로 나누어, 2D 투영 변환을 수행하는 방법이다. 구체적으로, SSP를 따를 경우, 구 상의 남북 2개의 고위도 지역을 2D 평면 상의 2개의 원으로 매핑시키고, 구 상의 중위도 지역을 ERP와 같이 2D 평면 상의 직사각형으로 매핑시킬 수 있다.The SSP is a method of performing 2D projection transformation by dividing spherical 360 degree video into high latitude regions and mid-latitude regions. Specifically, if you follow the SSP, you can map two high-latitude regions of the north and south of the sphere to two circles on the 2D plane, and map the mid-latitude region of the sphere to a rectangle on the 2D plane like ERP.

ECP는 구 형태의 360도 비디오를 원통 형으로 변환한 뒤, 원통 형의 360도 비디오를 2D 투영 변환하는 방법이다. 구체적으로, ECP를 따를 경우, 원통의 윗면 및 아랫면을 2D 평면상의 2개의 원으로 매핑시키고, 원통의 몸통을 2D 평면 상의 직사각형으로 매핑시킬 수 있다. ECP is a method of transforming spherical 360 degree video into cylindrical shape and then 2D cylindrical projection of 360 degree video. Specifically, when the ECP is followed, the upper and lower surfaces of the cylinder can be mapped to two circles on the 2D plane, and the body of the cylinder can be mapped to a rectangle on the 2D plane.

RSP는 테니스공을 감싸는 구 형태의 360도 비디오를 2D 평면 상의 2개의 타원으로 투영 변환하는 방법을 나타낸다. The RSP represents a method of projecting and transforming a sphere-shaped 360-degree video around a tennis ball into two ellipses on a 2D plane.

360도 투사 영상의 각 샘플은, 페이스 2D 좌표로 식별될 수 있다. 페이스 2D 좌표는, 샘플이 위치한 페이스를 식별하기 위한 인덱스 f, 360도 투사 영상에서의 샘플 그리드를 나타내는 좌표 (m, n)을 포함될 수 있다. Each sample of the 360 degree projection image can be identified by face 2D coordinates. The face 2D coordinates may include an index f for identifying the face where the sample is located, and coordinates (m, n) representing a sample grid in the 360 degree projection image.

페이스 2D 좌표 및 3차원 좌표간 변환을 통해, 2D 투영 변환 및 영상 렌더링이 수행될 수 있다. 일 예로, 도 14는 페이스 2D 좌표 및 3차원 좌표간 변환을 설명하기 위해 예시한 도면이다. ERP에 기초하여 360도 투사 영상이 생성된 경우, 하기 수학식 1 내지 3을 이용하여, 3차원 좌표 (x, y, z) 및 페이스 2D 좌표 (f, m, n) 간 변환이 수행될 수 있다.Through the conversion between face 2D coordinates and three-dimensional coordinates, 2D projection transformation and image rendering can be performed. For example, FIG. 14 is a diagram illustrating the conversion between face 2D coordinates and three-dimensional coordinates. (X, y, z) and the face 2D coordinates (f, m, n) can be performed using the following equations (1) have.

Figure pat00001
Figure pat00001

Figure pat00002
Figure pat00002

Figure pat00003
Figure pat00003

Figure pat00004
Figure pat00004

Figure pat00005
Figure pat00005

360도 투사 영상에서 현재 픽처는 적어도 하나 이상의 페이스를 포함할 수 있다. 이때, 페이스의 개수는 투영 방법에 따라, 1, 2, 3, 4 또는 그 이상의 자연수일 수 있다. 페이스 2D 좌표 중 f는 페이스 개수보다 같거나 작은 값으로 설정될 수 있다. 현재 픽처는 동일한 시간적 순서 또는 출력 순서(POC)를 갖는 적어도 하나 이상의 페이스를 포함할 수 있다.In the 360 degree projection image, the current picture may include at least one face. At this time, the number of faces may be 1, 2, 3, 4 or more natural numbers, depending on the projection method. In the face 2D coordinates, f may be set to a value equal to or less than the number of faces. The current picture may include at least one pace having the same temporal order or output order (POC).

또는, 현재 픽처를 구성하는 페이스의 개수는 고정적 혹은 가변적일 수 있다. 예컨대, 현재 픽처를 구성하는 페이스의 개수는 소정의 문턱값을 넘지 않도록 제한될 수 있다. 여기서, 문턱값은 부호화기 및 복호화기에서 기 약속된 고정된 값일 수 있다. 또는, 하나의 픽처를 구성하는 페이스의 최대 개수에 관한 정보를 비트스트림을 통해 시그널링할 수도 있다. Alternatively, the number of paces constituting the current picture may be fixed or variable. For example, the number of paces constituting the current picture may be limited so as not to exceed a predetermined threshold value. Here, the threshold value may be a fixed value promised in the encoder and the decoder. Alternatively, information regarding the maximum number of paces constituting one picture may be signaled through the bit stream.

페이스들은 투영 방법에 따라, 현재 픽처를 수평 라인, 수직 라인 또는 대각 방향 라인 중 적어도 하나를 이용하여 구획함으로써 결정될 수 있다. Paces can be determined by partitioning the current picture using at least one of horizontal, vertical, or diagonal lines, depending on the projection method.

픽처 내 각 페이스들에는, 각 페이스들을 식별하기 위한 인덱스가 할당될 수 있다. 각 페이스는 타일(tile) 또는 슬라이스(slice) 등과 같이 병렬처리가 가능할 수 있다. 이에 따라, 현재 블록의 인트라 예측 또는 인터 예측을 수행할 때, 현재 블록과 상이한 페이스에 속하는 이웃 블록은, 이용 불가능한 것으로 판단될 수 있다.Each face in the picture may be assigned an index to identify each face. Each face may be capable of parallel processing, such as a tile or a slice. Accordingly, when intra prediction or inter prediction of the current block is performed, a neighboring block belonging to a different face from the current block can be judged as unavailable.

병렬 처리가 허용되지 않는 페이스들(또는 비 병렬처리 영역)을 정의하거나, 상호 의존성을 갖는 페이스들이 정의될 수도 있다. 예컨대, 병렬 처리가 허용되지 않는 페이스들 또는 상호 의존성을 갖는 페이스들은, 병렬 부호화/복호화되는 대신, 순차적으로 부호화/복호화될 수 있다. 이에 따라, 현재 블록과 상이한 페이스에 속하는 이웃 블록이라 하더라도, 페이스간 병렬처리 가능 여부 또는 의존성 등에 따라, 현재 블록의 인트라 예측 또는 인터 예측 시 이용 가능한 것으로 판단될 수도 있다.Pairs that do not allow parallel processing (or non-parallel processing regions) may be defined, or interdependent paces may be defined. For example, paces for which parallel processing is not allowed or interdependent paces may be sequentially encoded / decoded instead of being parallel-encoded / decoded. Accordingly, even if the neighboring block belongs to a different pace than the current block, the neighboring block may be determined to be available for intra prediction or inter prediction of the current block, depending on whether inter-face parallel processing is possible or dependency.

후술되는 실시예에서, 특정 투사 방법을 기초로 실시예가 설명되고 있다 하더라도, 특정 투사 방법 이외의 투사 방법에도, 후술되는 실시예가 확장 적용될 수 있다 할 것이다.In the embodiments described below, although the embodiment is described based on the specific projection method, the embodiments described later may be extended to the projection method other than the specific projection method.

사람의 시야각은 대략 120도 정도로 한정되어 있기 때문에, 사용자가 360도 비디오 전체를 한번에 볼 수는 없다. 제한된 시야각으로 인해, 사용자는 360도 비디오의 부분 영상만을 시청하게 된다. 360도 비디오의 전체 영역 중 사용자의 시청 영역에 대응하는 부분 영상을 뷰 포트(View port)라 정의할 수 있다. 플레이 장치는 360도 영상을 복호화하고, 360도 비디오에서 뷰 포트에 대응하는 부분을 렌더링할 수 있다.Since the human viewing angle is limited to about 120 degrees, the user can not see the entire 360 degree video at a time. Due to the limited viewing angle, the user only sees a partial image of the 360 degree video. A partial image corresponding to the viewing area of the user in the entire area of the 360-degree video can be defined as a view port. The play device may decode the 360 degree image and render the portion corresponding to the viewport in the 360 degree video.

뷰 포트는 유동성에 따라, 정적 뷰 포트(Static View port) 및 동적 뷰 포트(Dynamic View port)로 분류될 수 있다. 정적 뷰 포트는 위치 변화가 없는 뷰 포트를 의미하고, 동적 뷰 포트는 사용자의 시선이 변화함에 따라 위치가 변하는 뷰 포트를 의미한다. 360도 비디오의 시퀀스 전체에 대해 정적 뷰 포트를 사용하는 경우는 드물고, 대부분 사용자의 시선 움직임에 따라 위치가 변화하는 동적 뷰 포트를 사용한다.The viewport can be classified into a static view port and a dynamic view port according to fluidity. The static viewport refers to a viewport with no positional change, and the dynamic viewport refers to a viewport whose position changes as the user's gaze changes. A static viewport is rarely used for a whole sequence of 360-degree video, and a dynamic viewport whose position changes according to the user's gaze movement is used.

360도 비디오에서 사용자가 주의 깊게 시청해야 하는 영역이 설정될 수 있다. 일 예로, 컨텐트 제작자가, 360도 비디오에서 중점적으로 시청해야 하는 뷰 포트 궤적을 설정할 수 있다. 360도 비디오에 제작자 또는 시청자가 관심을 가질 만한 영역에 대응하는 뷰 포트를 관심 영역(Region of Interest, ROI), 추천 뷰 포트(Recommended View port) 또는 디렉터스 컷(Director's Cut) 등으로 호칭할 수 있다.An area that a user should watch carefully in a 360 degree video can be set. As an example, a content producer can set the viewport trajectory that must be watched centrally in 360 degree video. A 360-degree video may refer to a viewport corresponding to an area that a producer or a viewer may be interested in as a region of interest (ROI), a recommended view port, or a director's cut .

뷰 포트를 고려하여, 360도 비디오의 일부만을 부호화할 수도 있다. 일 예로, 360도 비디오 중에서 뷰 포트를 중심으로 360도 비디오를 부호화할 수 있다. 여기서, 뷰 포트를 중심으로 360도 비디오를 부호화하는 것의 의미는, 뷰 포트에 대응하는 사각 영역, 뷰 포트를 포함하는 소정 크기 영역 또는 뷰 포트를 포함하는 타일/슬라이스를 부호화하는 것을 의미할 수 있다.Considering the view port, only a part of the 360 degree video can be encoded. As an example, 360 degree video can be encoded around a view port in a 360 degree video. Here, the meaning of encoding a 360-degree video around the viewport may mean encoding a tile / slice that includes a rectangular area corresponding to the viewport, a predetermined size area including the viewport, or a viewport .

일 예로, 360도 비디오의 전체 영역 중 관심 영역을 중심으로 360도 비디오를 부호화할 수 있다. 관심 영역을 중심으로 360도 비디오를 부호화하는 것을 관심 영역 모드(ROI mode)라 호칭할 수 있다.For example, 360 degrees of video can be encoded centered on the region of interest of the entire region of the 360 degree video. The encoding of the 360 degree video around the region of interest may be referred to as ROI mode.

또는, 360도 비디오 전체를 부호화 및 복호화한 뒤, 복호화된 360도 영상에서 뷰 포트에 해당하는 부분 영상만을 추출하고, 추출된 부분 영상을 재부호화할 수도 있다. 이처럼, 360도 비디오 전체를 부호화 및 복호화한 뒤, 복호화된 360도 영상에서 뷰 포트에 해당하는 부분만을 재부호화하는 것을 뷰 포트 모드(View Port mode)라 호칭할 수 있다.Alternatively, the entire 360-degree video may be encoded and decoded, and then only the partial image corresponding to the view port may be extracted from the decoded 360-degree image, and the extracted partial image may be re-encoded. As described above, the re-encoding of only the portion corresponding to the view port in the decoded 360-degree image after encoding and decoding the entire 360-degree video can be referred to as a view port mode.

관심 영역 모드에서는 사용자의 시선이 향하는 영역을 시청하는 대신 컨텐트 제작자가 제공하는 관심 영역을 시청하게 되는 한계가 존재한다. 그러나, 뷰 포트 모드에서는, 시청자의 시선 움직임을 따라 동적 뷰 포트를 제공해 줄 수 있는 이점이 있다. There is a limitation in watching the area of interest provided by the content creator instead of viewing the area of the user's gaze in the ROI mode. However, in the view port mode, there is an advantage that a dynamic viewport can be provided in accordance with a viewer's gaze movement.

도 15는 뷰 포트 모드를 설명하기 위한 도면이다.15 is a view for explaining the view port mode.

도 15에 도시된 예에서, 서버의 부호화기(Encoder A, 1510)에서는 360도 비디오 전체를 부호화할 수 있다. 부호화된 360도 비디오는 네트워크를 통해 중간 노드로 전송될 수 있다.In the example shown in FIG. 15, the encoder of the server (Encoder A 1510) can encode the whole 360 degree video. The encoded 360 degree video can be transmitted over the network to the intermediate node.

서버가 360도 비디오 전체에 대한 비트스트림을 송신하면, 중간 노드의 복호화기(Decoder A, 1520))는 서버로부터 수신한 비트스트림을 통해 360도 비디오 전체를 복호화할 수 있다. 여기서, 중간 노드는, MMT 전송 규격을 따르는 미디어 인지 네트워크 요소(Media Aware Network Element, MANE)를 포함할 수 있다. 그리고, 중간 노드의 직선 영역 추출기(1530)는, 플레이 장치로부터 뷰 포트와 관련한 위치 데이터를 수신하고, 복호화된 360도 비디오에서 뷰 포트에 대응하는 사각 형태의 영역을 추출할 수 있다. 뷰 포트에 대응하는 사각 형태의 영역이 추출되면, 중간 노드의 부호화기(Encoder B, 1540)는, 추출된 사각 형태의 부분 영상을 부호화하고, 네트워크를 통해 부호화된 부분 영상의 비트스트림을 전송할 수 있다.If the server transmits a bitstream for the entire 360 degree video, the intermediate node decoder (Decoder A, 1520) can decode the entire 360 degree video through the bitstream received from the server. Here, the intermediate node may include a Media Aware Network Element (MANE) conforming to the MMT transmission standard. The linear region extractor 1530 of the intermediate node can receive the position data related to the view port from the play device and extract the rectangular area corresponding to the view port from the decoded 360 degree video. When a rectangular region corresponding to the view port is extracted, the encoder (B) 1540 of the intermediate node encodes the extracted rectangular image and transmits a bitstream of the encoded partial image through the network .

플레이 장치의 복호화기(Decoder B, 1550)는, 네트워크를 통해 수신된 부분 영상에 대한 비트스트림을 수신하고, 수신된 부분 영상을 복호화할 수 있다. 플레이 장치는 360도 비디오에서 뷰 포트에 대응하는 영역을 출력할 수 있다.Decoder B 1550 of the play apparatus can receive a bitstream of a partial image received via a network and decode the received partial image. The play device can output the area corresponding to the view port in the 360-degree video.

상술한 예에서와 같이, 뷰 포트에 대응하는 부분 영상을 인코딩/디코딩/렌더링하기 위해, 뷰 포트의 위치, 크기 또는 넓이 등을 특정할 필요가 있다. 뷰 포트의 위치 및 크기(또는 넓이) 등은, 뷰 포트의 좌표, 뷰 포트의 너비 및 높이, 및 소정의 중심축과 뷰 포트 사이의 각도 중 적어도 하나에 기초하여 정의될 수 있다. 일 예로, 뷰 포트의 위치 및 크기는 뷰 포트의 중심점 및 뷰 포트의 중심점과 뷰 포트 경계 사이의 각도차에 의해 결정될 수 있다. As in the above example, in order to encode / decode / render the partial image corresponding to the view port, it is necessary to specify the position, size or area of the viewport. The position and size (or width) of the viewport and the like can be defined based on at least one of the coordinates of the viewport, the width and height of the viewport, and the angle between the predetermined center axis and the viewport. In one example, the location and size of the viewport can be determined by the angular difference between the viewport center point and the viewport center point and viewport boundary.

뷰 포트의 중심점은, z축을 중심으로 하는 회전각 Yaw, x축을 중심으로 하는 회전각 Pitch 및 z축을 중심으로 하는 회전각 Roll을 포함하는 구 좌표에 의해 특정될 수 있다. 또한, 뷰 포트의 너비 및 높이는, 뷰 포트의 범위를 나타내는 정보에 의해 특정될 수 있다. 여기서, 뷰 포트의 범위는, 뷰 포트의 좌측 경계 및 우측 경계 사이의 각도를 나타내는 Yaw 범위 및 뷰 포트의 상단 경계 및 하단 경계 사이의 각도를 나타내는 Pitch 범위를 포함할 수 있다.The center point of the viewport can be specified by spherical coordinates including a rotation angle Yaw about the z axis, a rotation angle Pitch about the x axis, and a rotation angle Roll about the z axis. In addition, the width and height of the viewport can be specified by information indicating the range of the viewport. Here, the range of the view port may include a Yaw range indicating the angle between the left boundary and the right boundary of the view port, and a pitch range indicating an angle between the upper boundary and the lower boundary of the view port.

도 16은 뷰 포트의 위치 및 크기가 특정되는 예를 나타낸 도면이다.16 is a view showing an example in which the position and size of the view port are specified.

설명의 편의를 위해, 뷰 포트 중심점의 위치 및 뷰 포트의 범위는 도 16의 (a)에 도시된 예에서와 같이, (Yaw, Picth, Roll)로 나타나는 구 좌표를 이용하여 정의되는 것으로 가정한다.For convenience of explanation, it is assumed that the position of the viewport center point and the range of the viewport are defined using spherical coordinates represented by (Yaw, Picth, Roll) as in the example shown in Fig. 16 (a) .

도 16의 (b)에 도시된 예에서와 같이, 뷰 포트의 위치 및 크기는, 뷰 포트의 중심점과 뷰 포트 범위에 의해 특정될 수 있다. 일 예로, 뷰 포트의 위치 및 크기는, 뷰 포트의 중심 좌표 (Yaw, Roll, Pitch)와, Yaw 범위 (Yaw range) 및 Pitch 범위(Pitch range)에 의해 특정될 수 있다. 여기서, Yaw 범위를 이용하여 뷰 포트의 좌우 범위를 특정하고, Pitch 범위를 이용하여 뷰 포트의 상하 범위를 특정할 수 있다. As in the example shown in FIG. 16 (b), the position and size of the viewport can be specified by the viewport center point and the viewport range. For example, the position and size of the viewport can be specified by the coordinates (Yaw, Roll, Pitch) of the viewport, the Yaw range, and the pitch range. Here, the Yaw range is used to specify the left and right range of the viewport, and the pitch range can be used to specify the upper and lower range of the viewport.

360도 영상을 부호화하는 영상 부호화 장치는, 뷰 포트의 위치 및 크기를 특정하기 위해 뷰 포트 관련 정보를 부호화하고, 비트스트림을 통해 영상 복호화 장치로 전송할 수 있다. 여기서, 뷰 포트 관련 정보는, 뷰 포트 중심점의 위치를 나타내는 정보 및 뷰 포트 범위를 특정하기 위한 정보를 포함할 수 있다. 뿐만 아니라, 뷰 포트 관련 정보는, 각도 정밀도 관련 정보, 뷰 포트가 적용되는 픽처 범위를 결정하기 위한 정보 및 뷰 포트와 관련한 인코딩 모드 정보 중 적어도 하나를 더 포함할 수 있다.The image encoding apparatus for encoding a 360-degree image can encode viewport-related information to specify the position and size of the viewport, and transmit the encoded image to the image decoding apparatus through a bitstream. Here, the view port related information may include information indicating the position of the view port center point and information for specifying the view port range. In addition, the view port related information may further include at least one of angle precision related information, information for determining a picture range to which the view port is applied, and encoding mode information related to the view port.

도 17는 비트스트림에 부호화되는 뷰 포트와 관련된 신택스를 나타낸 도면이다.17 is a diagram showing a syntax related to a view port encoded in a bitstream.

영상 부호화 장치는, 각도 정밀도를 나타내는 정보를 부호화할 수 있다. 일 예로, 도 17에 도시된 예에서, spherical_viewport_precision은 각도 정밀도를 나타내는 신택스일 수 있다. 각도 정밀도는, spherical_viewport_precision의 값에 10-2를 곱한값으로 설정될 수 있다. 일 예로, spherical_viewport_precision의 값이 1이면, 각도 정밀도는 0.01도로 설정될 수 있다. 이는, 뷰 포트의 위치 및 범위를 0.01도 단위로 표시할 수 있음을 나타낸다.The image encoding apparatus can encode information indicating the angle accuracy. In one example, in the example shown in Fig. 17, spherical_viewport_precision may be a syntax indicating angular precision. The angle precision can be set to a value obtained by multiplying the value of spherical_viewport_precision by 10 -2 . In one example, if the value of spherical_viewport_precision is 1, the angular precision can be set to 0.01 degrees. This indicates that the position and range of the viewport can be displayed in units of 0.01 degree.

또는, 시그널링되는 정보를 기초하여, 복수개의 각도 정밀도 후보 중 하나를 선택할 수도 있다. 예컨대, spherical_viewport_precision은 복수개의 각도 정밀도 후보 중 어느 하나를 특정하는 인덱스일 수 있다.Alternatively, based on the signaled information, one of a plurality of angular precision candidates may be selected. For example, spherical_viewport_precision may be an index specifying any one of a plurality of angular precision candidates.

영상 부호화 장치는, 뷰 포트의 중심점을 나타내는 정보를 부호화할 수 있다. 일 예로, 도 17에 도시된 예에서, spherical_viewport_yaw는 뷰 포트 중심점의 Yaw 좌표를, spherical_viewport_pitch는 뷰 포트 중심점의 Pitch 좌표를, spherical_viewport_roll은 뷰 포트 중심점의 Roll 좌표를 나타낼 수 있다.The image encoding apparatus can encode information indicating the center point of the view port. For example, in the example shown in FIG. 17, spherical_viewport_yaw indicates the Yaw coordinate of the viewport center point, spherical_viewport_pitch indicates the Pitch coordinate of the viewport center point, and spherical_viewport_roll indicates the Roll coordinate of the viewport center point.

영상 부호화 장치는, 뷰 포트 범위를 특정하기 위한 정보를 부호화할 수 있다. 일 예로, 도 17에 도시된 예에서, spherical_viewport_range_yaw는 뷰 포트의 좌우 범위(즉, Yaw 범위)를 특정하기 위한 것이고, spherical_viewport_range_pitch는 뷰 포트의 상하 범위(즉, Pitch 범위)를 특정하기 위한 것이다.The image encoding apparatus can encode information for specifying the viewport range. 17, spherical_viewport_range_yaw is for specifying the left and right range (i.e., Yaw range) of the viewport, and spherical_viewport_range_pitch is for specifying the upper and lower range (i.e., the pitch range) of the viewport.

spherical_viewport_range_yaw 및 spherical_viewport_range_pictch는 뷰 포트 중심점으로부터 뷰 포트의 일측 경계까지의 각도를 나타낼 수 있다. 일 예로, spherical_viewport_range_yaw는 뷰 포트의 중심으로부터 뷰 포트의 좌측 또는 우측 경계까지의 각도를 나타내고, spherical_viewport_range_pictch는 뷰 포트의 중심으로부터 뷰 포트의 상단 또는 하단 경계까지의 각도를 나타낼 수 있다. 이 경우, Yaw 범위는 spherical_viewport_range_yaw에 의해 지정된 영역의 좌우 대칭 영역까지 확장되고, Pitch 범위는 spherical_viewport_range_pitch에 의해 지정된 영역의 상하 대칭 영역까지 확장될 수 있다. 위와 같이, 뷰 포트 범위의 절반에 해당하는 정보를 부호화함으로써, 뷰 포트 범위를 결정하는데 요구되는 비트량을 감소시킬 수 있다.spherical_viewport_range_yaw and spherical_viewport_range_pictch may represent angles from the viewport center point to one side of the viewport. For example, spherical_viewport_range_yaw represents the angle from the center of the viewport to the left or right border of the viewport, and spherical_viewport_range_pictch may represent the angle from the center of the viewport to the top or bottom border of the viewport. In this case, the Yaw range extends to the left and right symmetrical areas of the area specified by spherical_viewport_range_yaw, and the pitch range can be extended to the upper and lower symmetrical areas of the area designated by spherical_viewport_range_pitch. As described above, by encoding information corresponding to half of the view port range, it is possible to reduce the amount of bits required to determine the view port range.

수학식 4 및 수학식 5는 뷰 포트와 관련된 신택스에 의거 하프(Half) 뷰 포트 범위를 유도하는 예를 나타낸 것이다.Equations (4) and (5) show an example of deriving a Half view port range based on the syntax associated with the view port.

Figure pat00006
Figure pat00006

Figure pat00007
Figure pat00007

spherical_viewport_precision의 값이 1이고, spherical_viewport_range_yaw 값이 4000, spherical_viewport_range_pitch 값이 5000인 경우, 하프 Yaw 범위는 40, 하프 Pitch 범위는 50으로 유도될 수 있다. 이에 따라, 뷰 포트는 뷰 포트의 중심점을 기준으로 좌우 -40도부터 40도 사이의 Yaw 영역 및 뷰 포트의 중심점을 기준으로 상하 -50도부터 50도 사이의 Pitch 영역으로 정의될 수 있다.If the value of spherical_viewport_precision is 1, the value of spherical_viewport_range_yaw is 4000, and the value of spherical_viewport_range_pitch is 5000, the half Yaw range can be derived to 40 and the half pitch range to 50. [ Accordingly, the view port can be defined as a yaw area between -40 ° and 40 ° from the center point of the viewport, and a pitch area between -50 ° and 50 ° from the center point of the viewport.

다른 예로, spherical_viewport_range_yaw 및 spherical_viewport_range_pictch가 뷰 포트의 양측 경계 사이의 각도를 나타내도록 설정할 수도 있다. 예컨대, spherical_viewport_range_yaw 값에 각도 정밀도를 곱한 값을 Yaw 범위로 유도하거나, spherical_viewport_range_pitch 값에 각도 정밀도를 곱한 값을 Pitch 범위로 유도할 수 있다.As another example, spherical_viewport_range_yaw and spherical_viewport_range_pictch may be set to represent angles between the two side boundaries of the viewport. For example, a value obtained by multiplying the spherical_viewport_range_yaw value by the angular precision may be induced to the Yaw range, or a value obtained by multiplying the spherical_viewport_range_pitch value by the angular precision may be derived to the Pitch range.

영상 부호화 장치는 뷰 포트 정보가 적용되는 픽처 범위를 나타내는 정보를 부호화할 수 있다. 일 예로, 도 17에 도시된 예에서, spherical_viewport_persistence_flag는 뷰 포트 정보가 현재 픽처에만 적용되는지 또는 다른 픽처에도 적용되는지 여부를 나타내는 신택스이다. 예컨대, spherical_viewport_persistence_flag의 값이 0인 경우(또는 1인 경우), 현재 픽처에서만 뷰 포트 관련 신택스(예컨대, 각도 정밀도, 뷰 포트 중심점 및 뷰 포트 범위 관련 정보)가 적용될 수 있다. 반면, spherical_viewport_persistence_flag의 값이 1인 경우(또는 0인 경우), 새로운 뷰 포트 관련 신택스가 등장하기 전까지 현재 픽처의 뷰 포트 관련 신택스를 다른 픽처에 적용할 수 있다. 여기서, 다른 픽처는 현재 픽처와 상이한 출력 순서(예컨대, Picture Order Count, POC) 또는 디코딩 순서를 갖는 픽처일 수 있다. 예를 들어, spherical_viewport_persistence_flag가 1인 경우, 현재 픽처의 뷰 포트 관련 신택스는 현재 픽처보다 큰 POC 또는 현재 픽처보다 이후에 디코딩되는 픽처에 적용될 수 있다. The image encoding apparatus can encode information indicating a picture range to which the view port information is applied. For example, in the example shown in FIG. 17, spherical_viewport_persistence_flag is a syntax indicating whether viewport information is applied to the current picture or to another picture. For example, if the value of spherical_viewport_persistence_flag is 0 (or 1), viewport related syntax (e.g., angle precision, viewport center point, and viewport range related information) may be applied only to the current picture. On the other hand, if the value of spherical_viewport_persistence_flag is 1 (or 0), the viewport related syntax of the current picture can be applied to another picture until a new viewport related syntax appears. Here, another picture may be a picture having an output order (e.g., Picture Order Count, POC) or a decoding order different from the current picture. For example, if the spherical_viewport_persistence_flag is 1, the viewport related syntax of the current picture can be applied to a POC larger than the current picture or a picture to be decoded later than the current picture.

영상 부호화 장치는 인코딩 모드와 관련된 정보를 부호화할 수 있다. 일 예로, 도 17에 도시된 예에서, spherical_viewport_mode는, 현재 시퀀스 또는 현재 픽처의 인코딩 모드를 나타낼 수 있다. 예컨대, spherical_viewport_mode가 0(또는 1)인 것은, 현재 시퀀스 또는 현재 픽처에 관심 영역 모드가 적용됨을 나타낼 수 있고, spherical_viewport_mode가 1(또는 0)인 것은, 현재 시퀀스 또는 현재 픽처에 뷰 포트 모드가 적용됨을 나타낼 수 있다.The image encoding apparatus can encode information related to the encoding mode. As an example, in the example shown in Fig. 17, spherical_viewport_mode may indicate the encoding mode of the current sequence or the current picture. For example, a spherical viewport_mode of 0 (or 1) may indicate that the region of interest is applied to the current sequence or the current picture, and spherical_viewport_mode of 1 (or 0) indicates that the viewport mode is applied to the current sequence or the current picture .

도 17에 도시된 예에서, 각도 정밀도에 대한 부호화/복호화를 생략하고, 부호화 장치 및 복호화 장치에서 기 정의된 각도 정밀도를 이용할 수도 있다.In the example shown in Fig. 17, encoding / decoding for angle accuracy may be omitted, and the angular precision already defined in the encoder and decoder may be used.

도 17에 도시된 뷰 포트 관련 정보들은, SEI (Supplementary Enhancement Information) 메시지, 시퀀스 헤더, 픽처 헤더 또는 슬라이스 헤더 중 적어도 하나를 통해 부호화될 수 있다.The view port related information shown in FIG. 17 can be encoded through at least one of a Supplementary Enhancement Information (SEI) message, a sequence header, a picture header, or a slice header.

하나의 픽처에 복수개의 뷰 포트를 설정하는 것도 가능하다. 뷰 포트 모드를 예로 들어 설명하면, 360도 비디오를 복수의 시청자가 시청하는 경우, 복수 시청자의 뷰 포트는 상이할 수 있다. 이 경우, 중간 노드는 복호화가 완료된 360도 비디오로부터 각 시청자의 뷰 포트에 대응하는 부분 영역을 재인코딩하고, 재인코딩된 복수 부분 영상을 각 플레이 장치에 전송할 수 있다.It is also possible to set a plurality of viewports in one picture. Taking the viewport mode as an example, when a plurality of viewers view 360-degree video, the viewports of a plurality of viewers may be different. In this case, the intermediate node can re-encode the partial area corresponding to the view port of each viewer from the decoded 360-degree video and transmit the re-encoded plural partial images to each play device.

또는, 360도 비디오에 복수의 관심 영역을 설정할 수도 있다. 예컨대, 스포츠 경기에 복수의 관심 영역이 설정되어 있는 경우, 시청자는 복수개 관심 영역 중 어느 하나를 선택하고, 선택된 관심 영역에 대응하는 부분 영상을 시청할 수 있다. 관심 영역 모드에서, 인코딩 장치는 각 관심 영역 각각에 대응하는 부분 영상을 부호화하고, 사용자가 선택한 관심 영역에 따라, 부호화된 복수의 부분 영상 중 어느 하나를 플레이 장치로 전송할 수 있다.Alternatively, a plurality of regions of interest may be set in the 360 degree video. For example, when a plurality of interest areas are set in a sports game, the viewer can select one of a plurality of interest areas and watch a partial image corresponding to the selected interest area. In the ROI mode, the encoding apparatus encodes a partial image corresponding to each ROI, and may transmit any one of the plurality of encoded partial images to the play apparatus according to the ROI selected by the user.

복수개의 뷰 포트가 사용 가능한 경우, 뷰 포트 정보는 뷰 포트 개수에 관한 정보를 더 포함할 수 있다. 이 경우, 영상 부호화 장치는, 뷰 포트 개수에 관한 정보를 더 부호화할 수 있다.If multiple viewports are available, the viewport information may further include information about the number of viewports. In this case, the image encoding apparatus can further encode information on the number of viewports.

도 18은 뷰 포트 개수를 나타내는 신택스가 부호화되는 예를 나타낸 도면이다.18 is a diagram showing an example in which a syntax indicating the number of viewports is coded.

영상 부호화 장치는, 뷰 포트의 개수를 나타내는 정보를 부호화할 수 있다. 일 예로, 도 18에 도시된 예에서, viewport_num은 뷰 포트의 개수를 나타낼 수 있다. 도시된 예에서와 달리, 뷰 포트의 개수에서 기 정의된 정수를 차감한 신택스를 부호화하는 것도 가능하다. 예를 들어, viewport_num_minus1은 뷰 포트의 개수에서 1을 차감한 값을 나타낼 수 있다.The image encoding apparatus can encode information indicating the number of viewports. As an example, in the example shown in FIG. 18, viewport_num may represent the number of viewports. Unlike the illustrated example, it is also possible to encode a syntax obtained by subtracting a predefined integer from the number of viewports. For example, viewport_num_minus1 can represent a value obtained by subtracting 1 from the number of viewports.

상기 뷰 포트의 개수는, 현재 픽처에서 허용 가능한 뷰 포트의 최대 개수 또는 최소 개수 중 적어도 하나를 나타낼 수 있다. 또는, 상기 뷰 포트의 개수는, 현재 픽처를 포함하는 시퀀스, 시간적 레이어, 픽처 또는 슬라이스 중 적어도 하나의 레벨에서 적용되는 개수를 나타낼 수도 있다.The number of viewports may represent at least one of a maximum number or a minimum number of viewports that can be accepted in the current picture. Alternatively, the number of viewports may represent a number applied to at least one of a sequence including a current picture, a temporal layer, a picture, or a slice.

복수개의 뷰 포트가 사용되는 경우, 각 뷰 포트의 위치 및 범위 정보가 부호화될 수 있다. 복수 뷰 포트에 대해 상이한 뷰 포트 인덱스(viewport_idx)가 할당되고, 뷰 포트 인덱스별로 위치 및 범위 정보가 부호화될 수 있다.When a plurality of viewports are used, the position and range information of each viewport can be encoded. A different viewport index (viewport_idx) is assigned to the multiple viewport, and location and range information can be encoded for each viewport index.

일 예로, 도 18에 도시된 예에서, spherical_viewport_yaw[viewport_idx], spherical_viewport_pitch[viewport_idx] 및 spherical_viewport_roll[viewport_idx]는 각각 뷰 포트 인덱스가 [viewport_idx]인 뷰 포트의 중심점 구 좌표 (Yaw, Pitch, Roll)을 나타낸다.18, spherical viewport_yaw [viewport_idx], spherical_viewport_pitch [viewport_idx], and spherical_viewport_roll [viewport_idx] represent center point spherical coordinates (Yaw, Pitch, Roll) of a viewport whose viewport index is [viewport_idx] .

또한, spherical_viewport_range_yaw[viewport_idx] 및 spherical_viewport_range_pitch[viewport_idx]는 각각 뷰 포트 인덱스가 [viewport_idx]인 뷰 포트의 Yaw 범위 및 Pitch 범위를 결정하기 위해 사용된다.In addition, spherical_viewport_range_yaw [viewport_idx] and spherical_viewport_range_pitch [viewport_idx] are used to determine the Yaw range and the pitch range of the viewport whose viewport index is [viewport_idx], respectively.

영상 복호화 장치는 뷰 포트의 개수를 나타내는 정보를 복호화하고, 뷰 포트의 개수가 복수개인 경우, 각 뷰 포트의 위치 및 범위 정보를 복호화하여, 각 뷰 포트의 위치 및 크기를 결정할 수 있다.The image decoding apparatus decodes information indicating the number of viewports. When there are a plurality of viewports, the position and size information of each viewport can be decoded to determine the position and size of each viewport.

도시되지는 않았지만, 복수개의 뷰 포트가 허용되는지 여부를 나타내는 정보(예컨대, 플래그)가 비트스트림을 통해 시그널링될 수도 있다.Although not shown, information (e.g., a flag) indicating whether a plurality of viewports are allowed may be signaled through the bitstream.

복수개의 뷰 포트가 존재하는 경우, 뷰 포트 각각의 정보를 독립적으로 부호화할 수 있다. 일 예로, 도 18에 도시된 예에서는, 복수개의 뷰 포트 각각에 대해 위치 정보 및 범위 정보가 시그널링되는 것으로 설명하였다.When there are a plurality of viewports, information of each viewport can be independently encoded. For example, in the example shown in Fig. 18, it has been described that the position information and the range information are signaled for each of the plurality of view ports.

다른 예로, 기 부호화/복호화된 뷰 포트 또는 기 정의된 뷰 포트를 이용하여 새로운 뷰 포트 정보를 부호화/복호화할 수도 있다. 구체적으로, 복수개의 뷰 포트 중 기준 뷰 포트를 선정한 뒤, 기준 뷰 포트 정보를 이용하여, 현재 뷰 포트 정보를 유도할 수 있다. 여기서, 기준 뷰 포트로부터 유도되는 현재 뷰 포트 정보는 도 17 및 도 18을 통해 설명한 뷰 포트 관련 신택스 중 적어도 하나를 포함할 수 있다.As another example, the new viewport information may be encoded / decoded using a pre-encoded / decoded viewport or pre-defined viewport. Specifically, after selecting a reference viewport among a plurality of viewports, current viewport information can be derived using the reference viewport information. Here, the current viewport information derived from the reference viewport may include at least one of the viewport related syntaxes described with reference to FIG. 17 and FIG.

기준 뷰 포트는 복수개의 뷰 포트 중 부호화 또는 복호화의 기준이 되는 뷰 포트를 의미할 수 있다. 일 예로, 기준 뷰 포트는, 픽처 내 최초로 부호화 또는 복호화되는 뷰 포트, 픽처 내 특정 위치의 뷰 포트 또는 뷰 포트 인덱스가 소정값(예컨대, 0)인 뷰 포트를 의미할 수 있다. 기준 뷰 포트를 결정하기 위한 특정 위치는 영상 부호화 장치 및 영상 복호화 장치에서 기 정의된 것일 수 있다. 또는, 기준 뷰 포트를 결정하기 위한 특정 위치를 나타내는 정보가 비트스트림을 통해 시그널링될 수도 있다. The reference view port may refer to a view port that is a reference for encoding or decoding among a plurality of viewports. For example, the reference viewport may refer to a viewport that is first coded or decoded in a picture, a viewport at a specific position in a picture, or a viewport whose viewport index is a predetermined value (e.g., 0). The specific position for determining the reference view port may be predefined in the image encoding apparatus and the image decoding apparatus. Alternatively, information indicating a specific location for determining the reference view port may be signaled via the bitstream.

또는, 현재 뷰 포트에 인접한 인접 뷰 포트, 현재 뷰 포트 이전에 부호화/복호화된 뷰 포트를 기준 뷰 포트로 설정할 수도 있다.Alternatively, adjacent viewports adjacent to the current viewport, and viewports coded / decoded prior to the current viewport may be set as reference viewports.

기준 뷰 포트의 개수는 하나일 수도 있고, 또는 그 이상일 수도 있다. The number of reference view ports may be one or more.

도 19는 기준 뷰 포트를 이용하여 현재 뷰 포트 정보를 유도하는 예를 나타낸 도면이다.19 is a view showing an example of deriving current viewport information using a reference viewport.

뷰 포트 모드 또는 관심 영역 모드에서 복수개의 뷰 포트를 지원하는 경우, 영상 부호화 장치는, 기준 뷰 포트 또는 특정 뷰 포트에 관한 정보를 부호화하고, 기준 뷰 포트를 제외한 잔여 뷰 포트에 대해서는, 기준 뷰 포트와의 차분값을 부호화할 수 있다.In a case where a plurality of view ports are supported in the view port mode or the ROI mode, the image encoding apparatus encodes information on the reference viewport or the specific viewport, and for the remaining viewports except for the reference viewport, Can be encoded.

일 예로, 도 19에 도시된 예에서, spherical_viewport_yaw[0], spherical_viewport_pitch[0] 및 spherical_viewport_roll[0]은 인덱스 [0]인 뷰 포트의 중심점 좌표를 나타낼 수 있다. 아울러, spherical_viewport_range_yaw[0] 및 spherical_viewport_range_pitch[0]는 인덱스 [0]인 뷰 포트의 하프 Yaw 범위 및 하프 Pitch 범위를 나타낼 수 있다.For example, in the example shown in Fig. 19, spherical_viewport_yaw [0], spherical_viewport_pitch [0] and spherical_viewport_roll [0] may represent the coordinates of the center point of the viewport that is index [0]. In addition, spherical_viewport_range_yaw [0] and spherical_viewport_range_pitch [0] can represent the half Yaw range and the half pitch range of the view port which is index [0].

잔여 뷰 포트에 대한 정보는 기준 뷰 포트 정보와의 차분값으로 부호화될 수 있다. 일 예로, 도 19에 도시된 예에서, delta_viewport_yaw, delta_viewport_pitch 및 delta_viewport_roll는 기준 뷰 포트의 중심점과 현재 뷰 포트의 중심점 사이의 좌표차를 나타낼 수 있다. 뷰 포트가 뷰 포트 인덱스 [0]을 갖는 뷰 포트가 기준 뷰 포트일 때, [viewport_idx]를 갖는 뷰 포트의 delta_viewport_yaw, delta_viewport_pitch 및 delta_viewport_roll는 다음 수학식 6과 같이 정의될 수 있다.Information about the remaining view port can be encoded as a difference value from the reference view port information. For example, in the example shown in FIG. 19, delta_viewport_yaw, delta_viewport_pitch, and delta_viewport_roll may represent the coordinate difference between the center point of the reference viewport and the center point of the current viewport. When the viewport having the viewport index [0] is the reference viewport, the delta_viewport_yaw, delta_viewport_pitch, and delta_viewport_roll of the viewport having the [viewport_idx] can be defined as shown in Equation (6).

Figure pat00008
Figure pat00008

Figure pat00009
Figure pat00009

Figure pat00010
Figure pat00010

또한, 도 19에 도시된 예에서, delta_viewport_range_yaw 및 delta_viewport_range_pitch는 기준 뷰 포트와 현재 뷰 포트 사이의 하프 Yaw 범위 차분값 및 하프 Pitch 범위 차분값을 나타낼 수 있다. 일 예로, [viewport_idx]를 갖는 뷰 포트의 delta_viewport_range_yaw 및 delta_viewport_range_pitch는 다음 수학식 7과 같이 정의될 수 있다.In the example shown in FIG. 19, delta_viewport_range_yaw and delta_viewport_range_pitch may represent a half Yaw range difference value and a half pitch range difference value between the reference viewport and the current viewport. For example, the delta_viewport_range_yaw and the delta_viewport_range_pitch of the viewport having [viewport_idx] can be defined as shown in Equation (7).

Figure pat00011
Figure pat00011

Figure pat00012
Figure pat00012

다른 예로, 현재 뷰 포트의 이전 뷰 포트(즉, 뷰 포트 인덱스가 현재 인덱스보다 1이 낮은 뷰 포트)를 기준 뷰 포트로 설정할 수도 있다. 이 경우, [viewport_idx]를 갖는 뷰 포트의 delta_viewport_yaw, delta_viewport_pitch 및 delta_viewport_roll는 다음 수학식 8과 같이 [viewport_idx-1]을 갖는 뷰 포트와의 차분값으로 정의될 수 있다.As another example, a previous viewport of the current viewport (i.e., a viewport whose viewport index is one less than the current index) may be set as the reference viewport. In this case, the delta_viewport_yaw, delta_viewport_pitch, and delta_viewport_roll of the viewport having the [viewport_idx] can be defined as the difference values from the viewport having the [viewport_idx-1] as shown in the following equation (8).

Figure pat00013
Figure pat00013

Figure pat00014
Figure pat00014

Figure pat00015
Figure pat00015

아울러, [viewport_idx]를 갖는 뷰 포트의 delta_viewport_range_yaw 및 delta_viewport_range_pitch는 다음 수학식 9와 같이 [viewport_idx-1]을 갖는 뷰 포트와의 차분값으로 정의될 수 있다.In addition, delta_viewport_range_yaw and delta_viewport_range_pitch of the viewport having [viewport_idx] can be defined as the difference value with respect to the viewport having [viewport_idx-1] as shown in the following Equation (9).

Figure pat00016
Figure pat00016

Figure pat00017
Figure pat00017

영상 복호화 장치는, 기준 뷰 포트에 대한 위치 및 범위 정보와 현재 뷰 포트에 대한 위치 및 범위 차분값을 합하여 현재 뷰 포트의 위치 및 범위를 결정할 수 있다.The video decoding apparatus can determine the position and the range of the current viewport by summing the position and range information for the reference viewport and the position and range difference values for the current viewport.

뷰 포트 단위로 3차원 회전을 적용한 뒤, 영상을 부호화/복호화할 수 있다. 구체적으로, 뷰 포트의 초기 위치에서, Yaw, Pitch 또는 Roll 중 적어도 하나의 방향으로 구를 회전하여, 최종 뷰 포트의 위치를 획득할 수 있다. After three-dimensional rotation is applied in units of view ports, the image can be encoded / decoded. Specifically, at the initial position of the viewport, the sphere may be rotated in at least one direction of Yaw, Pitch, or Roll to obtain the position of the final viewport.

영상 부호화 장치는 뷰 포트의 회전과 관련된 정보를 비트스트림에 부호화할 수 있다. 영상 복호화 장치는, 뷰 포트의 위치 및 범위 정보에 기초하여 설정된 뷰 포트에 복호화된 뷰 포트 회전 정보를 적용하여 회전된 뷰 포트를 획득할 수 있다.The image encoding apparatus can encode information related to the rotation of the view port into a bit stream. The video decoding apparatus can obtain the rotated viewport by applying the decoded viewport rotation information to the viewport set based on the viewport position and range information.

도 20은 구의 회전과 관련된 정보가 부호화되는 예를 나타낸 도면이다.20 is a diagram showing an example in which information related to rotation of a sphere is encoded.

영상 부호화 장치는, 회전 각도 정밀도를 나타내는 정보를 부호화할 수 있다. 일 예로, 도 20에 도시된 예에서, spherical_viewport_orientation_precision은 회전 각도 정밀도를 나타내는 신택스일 수 있다. 회전 각도 정밀도는 뷰 포트의 회전각을 나타내는 신택스에 적용될 수 있다. 회전 각도 정밀도는, spherical_viewport_orientation_precision의 값에 10-2를 곱한값으로 설정될 수 있다. 일 예로, spherical_viewport_orientation_precision의 값이 1이면, 각도 정밀도는 0.01도로 설정될 수 있다. 이는, 뷰 포트의 회전 각도를 0.01도 단위로 표시할 수 있음을 나타낸다.The image encoding apparatus can encode information indicating the rotation angle accuracy. As an example, in the example shown in Fig. 20, spherical_viewport_orientation_precision may be a syntax indicating rotation angle accuracy. The rotation angle accuracy can be applied to the syntax indicating the rotation angle of the view port. The rotation angle accuracy can be set to a value obtained by multiplying the value of spherical_viewport_orientation_precision by 10 -2 . For example, if the value of spherical_viewport_orientation_precision is 1, the angular precision can be set to 0.01 degrees. This indicates that the rotation angle of the view port can be expressed in units of 0.01 degree.

또는, 시그널링되는 정보를 기초하여, 복수개의 회전 각도 정밀도 후보 중 하나를 선택할 수도 있다. 예컨대, spherical_viewport_orientation_precision은 복수개의 회전 각도 정밀도 후보 중 어느 하나를 특정하는 인덱스일 수 있다.Alternatively, based on the signaled information, one of a plurality of rotation angle accuracy candidates may be selected. For example, the spherical_viewport_orientation_precision may be an index that specifies any one of a plurality of rotation angle precision candidates.

영상 부호화 장치는, 뷰 포트의 회전 각도를 나타내는 정보를 부호화할 수 있다. 일 예로, 도 20에 도시된 예에서, spherical_viewport_orientation_yaw는 뷰 포트의 Yaw 방향 회전 정도, spherical_viewport_orientation_pitch는 뷰 포트의 Pitch 방향 회전 정도, spherical_viewport_orientation_roll은 뷰 포트의 Roll 방향 회전 정도를 나타낼 수 있다.The image encoding apparatus can encode information indicating the rotation angle of the view port. For example, in the example shown in FIG. 20, spherical_viewport_orientation_yaw indicates the degree of rotation of the view port in the Yaw direction, spherical_viewport_orientation_pitch indicates the degree of rotation of the viewport in the pitch direction, and spherical_viewport_orientation_roll indicates the degree of rotation of the viewport in the roll direction.

회전 각도 정밀도 및 뷰 포트 회전 정보를 이용하여 뷰 포트의 회전 각도를 특정할 수 있다. 일 예로, 수학식 10은 뷰 포트 회전각을 유도하는 예를 나타낸 것이다.Rotation angle accuracy and view port rotation information can be used to specify the rotation angle of the view port. For example, Equation 10 shows an example of deriving the view port rotation angle.

Figure pat00018
Figure pat00018

Figure pat00019
Figure pat00019

Figure pat00020
Figure pat00020

도시되지는 않았지만, 뷰 포트가 회전되는지 여부를 나타내는 정보를 더 부호화할 수도 있다. 뷰 포트의 회전 정보는, 뷰 포트가 회전되는지 여부를 나타내는 정보에 기초하여 선택적으로 시그널링될 수 있다.Although not shown, information indicating whether or not the viewport is rotated may be further encoded. The rotation information of the view port can be selectively signaled based on information indicating whether or not the view port is rotated.

도 20에 도시된 예에서, 회전 각도 정밀도에 대한 부호화/복호화를 생략하고, 부호화 장치 및 복호화 장치에서 기 정의된 회전 각도 정밀도를 이용할 수도 있다. 또는, 회전 각도 정밀도에 대한 부호화/복호화를 생략하고, 각도 정밀도와 동일하게 회전 각도 정밀도를 설정하는 것도 가능하다.In the example shown in Fig. 20, encoding / decoding for rotation angle accuracy may be omitted, and the rotation angle accuracy defined in the encoding apparatus and the decryption apparatus may be used. Alternatively, it is also possible to omit encoding / decoding of the rotation angle accuracy and set the rotation angle accuracy to the same degree as the angle accuracy.

도 20에 도시된 예에서, spherical_viewport_orientation_yaw, spherical_viewport_orientation_pitch 및 spherical_viewport_orientation_roll는 회전 방향 및 회전 각도를 동시에 나타낸다. 일 예로, spherical_viewport_orientation_yaw는 Yaw에 대한 회전 각도를 나타낸다. 회전 방향 및 회전 각도를 모두 나타내는 신택스를 부호화하는 대신, 회전 방향 및 회전 각도를 분리된 정보로 부호화하는 것도 가능하다. 일 예로, 뷰 포트가 소정 방향으로 회전하였는지 여부를 나타내는 정보를 부호화한 뒤, 뷰 포트가 소정 방향으로 회전한 것으로 판단되면 소정 방향에 대한 회전 각도를 나타내는 정보를 부호화할 수 있다. 예컨대, spherical_viewport_yaw_oriented_flag는 뷰 포트가 Yaw 방향으로 회전하였는지 여부를 나타내는 플래그일 수 있다. 상기 플래그가 1인 경우, 뷰 포트의 Yaw 방향 회전 각도를 나타내는 spherical_viewport_orientation_yaw가 추가로 시그널링될 수 있다.In the example shown in Fig. 20, spherical_viewport_orientation_yaw, spherical_viewport_orientation_pitch, and spherical_viewport_orientation_roll simultaneously indicate the rotation direction and the rotation angle. In one example, spherical_viewport_orientation_yaw represents the rotation angle with respect to Yaw. Instead of encoding the syntax indicating both the rotation direction and the rotation angle, it is also possible to encode the rotation direction and the rotation angle into separate information. For example, after information indicating whether the view port rotates in a predetermined direction is encoded, information indicating a rotation angle with respect to the predetermined direction may be encoded when it is determined that the view port is rotated in a predetermined direction. For example, the spherical_viewport_yaw_oriented_flag may be a flag indicating whether the view port is rotated in the Yaw direction. If the flag is 1, a spherical_viewport_orientation_yaw indicating the rotation angle of the view port in the Yaw direction may be further signaled.

상술한 실시예는 일련의 단계 또는 순서도를 기초로 설명되고 있으나, 이는 발명의 시계열적 순서를 한정한 것은 아니며, 필요에 따라 동시에 수행되거나 다른 순서로 수행될 수 있다. 또한, 상술한 실시예에서 블록도를 구성하는 구성요소(예를 들어, 유닛, 모듈 등) 각각은 하드웨어 장치 또는 소프트웨어로 구현될 수도 있고, 복수의 구성요소가 결합하여 하나의 하드웨어 장치 또는 소프트웨어로 구현될 수도 있다. 상술한 실시예는 다양한 컴퓨터 구성요소를 통하여 수행될 수 있는 프로그램 명령어의 형태로 구현되어 컴퓨터 판독 가능한 기록 매체에 기록될 수 있다. 상기 컴퓨터 판독 가능한 기록 매체는 프로그램 명령어, 데이터 파일, 데이터 구조 등을 단독으로 또는 조합하여 포함할 수 있다. 컴퓨터 판독 가능한 기록 매체의 예에는, 하드 디스크, 플로피 디스크 및 자기 테이프와 같은 자기 매체, CD-ROM, DVD와 같은 광기록 매체, 플롭티컬 디스크(floptical disk)와 같은 자기-광 매체(magneto-optical media), 및 ROM, RAM, 플래시 메모리 등과 같은 프로그램 명령어를 저장하고 수행하도록 특별히 구성된 하드웨어 장치가 포함된다. 상기 하드웨어 장치는 본 발명에 따른 처리를 수행하기 위해 하나 이상의 소프트웨어 모듈로서 작동하도록 구성될 수 있으며, 그 역도 마찬가지이다.Although the above-described embodiments have been described on the basis of a series of steps or flowcharts, they do not limit the time-series order of the invention, and may be performed simultaneously or in different orders as necessary. Further, in the above-described embodiments, each of the components (for example, units, modules, etc.) constituting the block diagram may be implemented by a hardware device or software, and a plurality of components may be combined into one hardware device or software . The above-described embodiments may be implemented in the form of program instructions that may be executed through various computer components and recorded in a computer-readable recording medium. The computer-readable recording medium may include program commands, data files, data structures, and the like, alone or in combination. Examples of computer-readable recording media include magnetic media such as hard disks, floppy disks and magnetic tape, optical recording media such as CD-ROMs and DVDs, magneto-optical media such as floptical disks, media, and hardware devices specifically configured to store and execute program instructions such as ROM, RAM, flash memory, and the like. The hardware device may be configured to operate as one or more software modules for performing the processing according to the present invention, and vice versa.

Claims (15)

비트스트림으로부터 뷰 포트 관련 정보를 복호화하는 단계;
360도 비디오를 복원하는 단계; 및
상기 뷰 포트 관련 정보를 기초로, 상기 복원된 360도 비디오에 뷰 포트를 설정하는 단계를 포함하되,
상기 뷰 포트 관련 정보는, 뷰 포트의 개수 정보를 포함하는 것을 특징으로 하는, 영상 복호화 방법.
Decoding the viewport related information from the bitstream;
Restoring the 360 degree video; And
And setting a viewport on the restored 360 degree video based on the viewport related information,
Wherein the viewport related information includes information on the number of viewports.
제1 항에 있어서,
상기 뷰 포트의 개수 정보가 복수개의 뷰 포트가 존재함을 나타내는 경우,
상기 뷰 포트 관련 정보는, 복수개 뷰 포트 각각의 위치 정보 및 범위 정보를 더 포함하는 것을 특징으로 하는, 영상 복호화 방법.
The method according to claim 1,
If the number information of the view port indicates that a plurality of viewports exist,
Wherein the viewport related information further includes positional information and range information of each of a plurality of viewports.
제2 항에 있어서,
상기 복수개의 뷰 포트 중 제1 뷰 포트의 위치 정보는 기준 뷰 포트의 위치 정보와의 차분값을 나타내고, 상기 제1 뷰 포트의 범위 정보는 상기 기준 뷰 포트의 범위 정보와의 차분값을 나타내는 것을 특징으로 하는, 영상 복호화 방법.
3. The method of claim 2,
The position information of the first viewport among the plurality of viewports represents a difference value from the position information of the reference viewport and the range information of the first viewport represents a difference value from the range information of the reference viewport Wherein the video decoding method comprises the steps of:
제3 항에 있어서,
상기 기준 뷰 포트는 상기 복수개의 뷰 포트 중 특정 뷰 포트 인덱스를 갖는 것을 특징으로 하는, 영상 복호화 방법.
The method of claim 3,
Wherein the reference view port has a specific view port index among the plurality of view ports.
제3 항에 있어서,
상기 기준 뷰 포트는, 상기 제1 뷰 포트의 이전 뷰 포트인 것을 특징으로 하는, 영상 복호화 방법.
The method of claim 3,
Wherein the reference view port is a previous viewport of the first viewport.
제1 항에 있어서,
상기 뷰 포트 관련 정보는, 뷰 포트의 회전 정보를 더 포함하는 것을 특징으로 하는, 영상 복호화 방법.
The method according to claim 1,
Wherein the viewport related information further includes rotation information of a viewport.
제6 항에 있어서,
상기 뷰 포트의 회전 정보는, Yaw 방향에 따른 회전 각도, Pitch 방향에 따른 회전 각도 또는 Roll 방향에 따른 회전 각도 중 적어도 하나를 포함하는 것을 특징으로 하는, 영상 복호화 방법.
The method according to claim 6,
Wherein the rotation information of the view port includes at least one of a rotation angle in the Yaw direction, a rotation angle in the Pitch direction, and a rotation angle in the Roll direction.
비트스트림으로부터 뷰 포트 관련 정보를 복호화하는 단계;
360도 비디오에 뷰 포트를 설정하는 단계; 및
상기 360도 비디오 및 상기 뷰 포트 관련 정보를 부호화하는 단계를 포함하되,
상기 뷰 포트 관련 정보는, 뷰 포트의 개수 정보를 포함하는 것을 특징으로 하는, 영상 부호화 방법.
Decoding the viewport related information from the bitstream;
Setting a viewport to the 360-degree video; And
Encoding the 360-degree video and the viewport related information,
Wherein the viewport related information includes information on the number of viewports.
제8 항에 있어서,
상기 뷰 포트의 개수 정보가 복수개의 뷰 포트가 존재함을 나타내는 경우,
상기 뷰 포트 관련 정보는, 복수개 뷰 포트 각각의 위치 정보 및 범위 정보를 더 포함하는 것을 특징으로 하는, 영상 부호화 방법.
9. The method of claim 8,
If the number information of the view port indicates that a plurality of viewports exist,
Wherein the viewport related information further includes position information and range information of each of the plurality of viewports.
제9 항에 있어서,
상기 복수개의 뷰 포트 중 제1 뷰 포트의 위치 정보는 기준 뷰 포트의 위치 정보와의 차분값을 나타내고, 상기 제1 뷰 포트의 범위 정보는 상기 기준 뷰 포트의 범위 정보와의 차분값을 나타내는 것을 특징으로 하는, 영상 부호화 방법.
10. The method of claim 9,
The position information of the first viewport among the plurality of viewports represents a difference value from the position information of the reference viewport and the range information of the first viewport represents a difference value from the range information of the reference viewport Characterized in that the method comprises the steps of:
제10 항에 있어서,
상기 기준 뷰 포트는 상기 복수개의 뷰 포트 중 특정 뷰 포트 인덱스를 갖는 것을 특징으로 하는, 영상 부호화 방법.
11. The method of claim 10,
Wherein the reference view port has a specific view port index among the plurality of view ports.
제10 항에 있어서,
상기 기준 뷰 포트는, 상기 제1 뷰 포트의 이전 뷰 포트인 것을 특징으로 하는, 영상 부호화 방법.
11. The method of claim 10,
Wherein the reference viewport is a previous viewport of the first viewport.
제8 항에 있어서,
상기 뷰 포트 관련 정보는, 뷰 포트의 회전 정보를 더 포함하는 것을 특징으로 하는, 영상 부호화 방법.
9. The method of claim 8,
Wherein the viewport related information further includes rotation information of a viewport.
제13 항에 있어서,
상기 뷰 포트의 회전 정보는, Yaw 방향에 따른 회전 각도, Pitch 방향에 따른 회전 각도 또는 Roll 방향에 따른 회전 각도 중 적어도 하나를 포함하는 것을 특징으로 하는, 영상 부호화 방법.
14. The method of claim 13,
Wherein the rotation information of the view port includes at least one of a rotation angle in the Yaw direction, a rotation angle in the Pitch direction, and a rotation angle in the Roll direction.
비트스트림으로부터 뷰 포트 관련 정보를 복호화하는 단계;
360도 비디오에 뷰 포트를 설정하는 단계; 및
상기 360도 비디오 및 상기 뷰 포트 관련 정보를 부호화하는 단계를 포함하여 인코딩되고,
상기 뷰 포트 관련 정보는, 뷰 포트의 개수 정보를 포함하는 것을 특징으로 하는, 인코딩된 비트스트림을 저장하는 컴퓨팅 장치로 읽기 가능한 기록 매체.
Decoding the viewport related information from the bitstream;
Setting a viewport to the 360-degree video; And
Encoding the 360-degree video and the viewport-related information,
Wherein the viewport-related information includes information about the number of viewports. 20. A recording medium readable by a computing device storing an encoded bitstream.
KR1020180032620A 2017-03-21 2018-03-21 Method and apparatus for processing a video signal KR20180107007A (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR1020170035279 2017-03-21
KR1020170035280 2017-03-21
KR20170035279 2017-03-21
KR20170035280 2017-03-21

Publications (1)

Publication Number Publication Date
KR20180107007A true KR20180107007A (en) 2018-10-01

Family

ID=63586093

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180032620A KR20180107007A (en) 2017-03-21 2018-03-21 Method and apparatus for processing a video signal

Country Status (2)

Country Link
KR (1) KR20180107007A (en)
WO (1) WO2018174542A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020071724A1 (en) * 2018-10-04 2020-04-09 Lg Electronics Inc. An apparatus for transmitting a video, a method for transmitting a video, an apparatus for receiving a video, and a method for receiving a video
KR20210045871A (en) * 2019-10-17 2021-04-27 세종대학교산학협력단 A method and an apparatus for extracting viewport

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP2039169A2 (en) * 2006-07-06 2009-03-25 Thomson Licensing Method and apparatus for decoupling frame number and/or picture order count (poc) for multi-view video encoding and decoding
CN106210856B (en) * 2016-07-26 2019-06-18 武汉斗鱼网络科技有限公司 The method and system of 3D panoramic video are watched on internet video live broadcasting platform

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020071724A1 (en) * 2018-10-04 2020-04-09 Lg Electronics Inc. An apparatus for transmitting a video, a method for transmitting a video, an apparatus for receiving a video, and a method for receiving a video
KR20210045871A (en) * 2019-10-17 2021-04-27 세종대학교산학협력단 A method and an apparatus for extracting viewport

Also Published As

Publication number Publication date
WO2018174542A1 (en) 2018-09-27

Similar Documents

Publication Publication Date Title
US11539882B2 (en) Method and apparatus for reconstructing 360-degree image according to projection format
CN109691110B (en) Method and apparatus for encoding/decoding synchronous multi-view video using spatial layout information
KR20180073499A (en) Method and apparatus for processing a video signal
KR102014240B1 (en) A method for seletively decoding a syncronized multi view video by using spatial layout information
KR20190080805A (en) Method and apparatus for encoding/decoding image and recording medium for storing bitstream
US10863198B2 (en) Intra-prediction method and device in image coding system for 360-degree video
KR20160003334A (en) Method and apparatus of texture image compression in 3d video coding
US20240107065A1 (en) Method and apparatus of encoding/decoding image data based on tree structure-based block division
KR20180080117A (en) Method and apparatus for processing a video signal
KR102342874B1 (en) Video decoding method and apparatus using projection type-based quantization parameters in video coding system for 360 degree video
US20200267385A1 (en) Method for processing synchronised image, and apparatus therefor
KR20180131454A (en) Method and apparatus for processing a video signal
KR102443381B1 (en) Method and apparatus for processing a video signal
KR20180107001A (en) Method and apparatus for processing a video signal
KR20180107007A (en) Method and apparatus for processing a video signal
US20200374558A1 (en) Image decoding method and device using rotation parameters in image coding system for 360-degree video
KR20190113655A (en) Method and apparatus for processing video signal
KR20180107006A (en) Method and apparatus for processing a video signal
KR102537024B1 (en) A method for encoding/decoding a virtual reality video
KR20180080120A (en) Method and apparatus for processing a video signal
KR20190110042A (en) Method and apparatus for processing video signal
KR20190033029A (en) Method and apparatus for processing a video signal
KR20190024766A (en) Method and apparatus for processing a video signal
KR20190033456A (en) Method and apparatus for processing a video signal
KR20190113651A (en) Method and apparatus for processing video signal