KR102622150B1 - Bidirectional inter-frame prediction method and device - Google Patents

Bidirectional inter-frame prediction method and device Download PDF

Info

Publication number
KR102622150B1
KR102622150B1 KR1020237013341A KR20237013341A KR102622150B1 KR 102622150 B1 KR102622150 B1 KR 102622150B1 KR 1020237013341 A KR1020237013341 A KR 1020237013341A KR 20237013341 A KR20237013341 A KR 20237013341A KR 102622150 B1 KR102622150 B1 KR 102622150B1
Authority
KR
South Korea
Prior art keywords
reference frame
motion vector
picture block
current picture
motion information
Prior art date
Application number
KR1020237013341A
Other languages
Korean (ko)
Other versions
KR20230054916A (en
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 KR20230054916A publication Critical patent/KR20230054916A/en
Application granted granted Critical
Publication of KR102622150B1 publication Critical patent/KR102622150B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/577Motion compensation with bidirectional frame interpolation, i.e. using B-pictures
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/103Selection of coding mode or of prediction mode
    • H04N19/105Selection of the reference unit for prediction within a chosen coding or prediction mode, e.g. adaptive choice of position and number of pixels used for prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/136Incoming video signal characteristics or properties
    • H04N19/137Motion inside a coding unit, e.g. average field, frame or block difference
    • H04N19/139Analysis of motion vectors, e.g. their magnitude, direction, variance or reliability
    • 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/157Assigned coding mode, i.e. the coding mode being predefined or preselected to be further used for selection of another element or parameter
    • H04N19/159Prediction type, e.g. intra-frame, inter-frame or bidirectional frame prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • H04N19/513Processing of motion vectors
    • H04N19/517Processing of motion vectors by encoding
    • H04N19/52Processing of motion vectors by encoding by predictive encoding
    • 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

Landscapes

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

Abstract

본 출원의 실시예는 비디오 픽처 코딩 기술의 분야에 관한 것으로, 코딩 효율을 향상시키기 위한 양방향 인터 예측 방법 및 장치를 개시한다. 본 방법은, 지시 정보를 획득하는 단계 - 상기 지시 정보는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계; 및 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 단계를 포함한다.Embodiments of the present application relate to the field of video picture coding technology, and disclose a bidirectional inter prediction method and apparatus for improving coding efficiency. The method includes obtaining instruction information, wherein the instruction information is used to instruct determining second motion information based on first motion information, and the first motion information is motion information of the current picture block in the first direction. , and the second motion information is motion information of the current picture block in the second direction -; determining second motion information based on the first motion information; and determining a prediction sample of the current picture block based on the first motion information and the second motion information.

Description

양방향 인터 예측 방법 및 장치{BIDIRECTIONAL INTER-FRAME PREDICTION METHOD AND DEVICE}BIDIRECTIONAL INTER-FRAME PREDICTION METHOD AND DEVICE}

본 출원은 "양방향 프레임 간 예측 방법 및 장치"의 명칭을 가지고 2018년 3월 29일에 출원된 중국특허출원 제201810274457.X호를 우선권으로 주장하며, 그것은 전체로서 본 명세서에 통합된다.This application claims priority from Chinese Patent Application No. 201810274457.

본 출원의 실시예들은 비디오 픽처 코딩 기술의 분야에 관한 것으로서, 구체적으로는 양방향 인터 예측 방법 및 장치에 관한 것이다.Embodiments of the present application relate to the field of video picture coding technology, and specifically to a bidirectional inter prediction method and apparatus.

비디오 코딩 기술에서, 현재 픽처 블록의 예측 픽처 블록은 오직 하나의 참조 픽처 블록에 기초하여 생성되거나(일방향 인터 예측이라고 함), 또는 현재 픽처 블록의 예측 픽처 블록은 적어도 2개의 참조 픽처 블록에 기초하여 생성(양방향 인터 예측이라고 함)될 수 있다. 적어도 2개의 참조 픽처 블록은 동일한 참조 프레임 또는 상이한 참조 프레임으로부터의 것일 수 있다.In video coding techniques, the predicted picture block of the current picture block is generated based on only one reference picture block (called one-way inter prediction), or the predicted picture block of the current picture block is generated based on at least two reference picture blocks. can be generated (called two-way inter prediction). The at least two reference picture blocks may be from the same reference frame or different reference frames.

디코더 및 인코더가 동일한 참조 픽처 블록을 사용할 수 있도록 하기 위해, 인코더는 비트스트림 내에 각 픽처 블록의 움직임 정보를 디코더에 보내야 한다. 일반적으로, 현재 픽처 블록의 움직임 정보는 참조 프레임 인덱스 값, 움직임 벡터 예측자(MVP: Motion Vector Predictor) 플래그, 및 움직임 벡터 차(MVD: Motion Vector Difference)를 포함한다. 디코더는 그 참조 프레임 인덱스 값, MVP 플래그 및 MVD에 기초하여, 선택된 참조 프레임 내에서 정확한 참조 픽처 블록을 찾을 수 있다.In order for the decoder and encoder to use the same reference picture block, the encoder must send the motion information of each picture block in the bitstream to the decoder. Generally, motion information of the current picture block includes a reference frame index value, a motion vector predictor (MVP) flag, and a motion vector difference (MVD). The decoder can find the correct reference picture block within the selected reference frame based on its reference frame index value, MVP flag, and MVD.

이에 따라, 양방향 인터 예측에서는, 인코더가 각 방향에서 각 픽처 블록의 움직임 정보를 디코더에 보내야 한다. 결과적으로, 움직임 정보가 상대적으로 큰 전송 자원을 차지한다. 이로 인해 전송 자원의 효과적인 이용, 전송 레이트, 그리고 코딩 압축 효율을 저하시킨다. Accordingly, in bidirectional inter prediction, the encoder must send motion information of each picture block in each direction to the decoder. As a result, motion information occupies relatively large transmission resources. This reduces effective use of transmission resources, transmission rate, and coding compression efficiency.

본 출원의 실시예들은, 움직임 정보가 상대적으로 큰 전송 자원을 차지함으로써 전송 자원의 효과적인 활용, 전송 레이트 및 코딩 압축 효율이 저하되는 문제를 해결하기 위한, 양방향 인터 예측 방법 및 장치를 제공한다.Embodiments of the present application provide a bidirectional inter-prediction method and device to solve the problem that effective utilization of transmission resources, transmission rate, and coding compression efficiency are reduced due to motion information occupying relatively large transmission resources.

본 출원의 실시예들은, 움직임 정보가 상대적으로 큰 전송 자원을 차지함으로써 전송 자원의 효과적인 활용, 전송 레이트 및 코딩 압축 효율이 저하되는 문제를 해결하기 위한, 양방향 인터 예측 방법 및 장치를 제공한다.Embodiments of the present application provide a bidirectional inter-prediction method and device to solve the problem that effective utilization of transmission resources, transmission rate, and coding compression efficiency are reduced due to motion information occupying relatively large transmission resources.

상술한 목적으로 달성하기 위해, 다음과 같은 기술적 해결책이 본 출원의 실시예에서 사용된다.In order to achieve the above-mentioned objectives, the following technical solutions are used in the embodiments of the present application.

제1 측면에 따르면, 양방향 인터 예측 방법이 제공된다. 이 방법은: 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용되는 지시 정보를 획득하는 단계 - 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제1 움직임 정보를 획득하는 단계; 획득된 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계; 및 획득된 제1 움직임 정보 및 결정된 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 단계를 포함한다.According to a first aspect, a bidirectional inter prediction method is provided. The method includes: obtaining instruction information used to instruct to determine second motion information based on first motion information, wherein the first motion information is motion information of the current picture block in the first direction, and second The motion information is motion information of the current picture block in the second direction -; Obtaining first motion information; determining second motion information based on the obtained first motion information; and determining a prediction sample of the current picture block based on the obtained first motion information and the determined second motion information.

본 출원에서 제공된 양방향 인터 예측 방법에 따르면, 지시 정보가 획득된 후, 제2 움직임 정보가 제1 움직임 정보에 기초하여 결정된다. 이런 방식에서는, 비트스트림이 지시 정보 및 제1 움직임 정보만 포함할 필요가 있고, 제2 움직임 정보는 더 이상 포함할 필요가 없다. 비트스트림이 각 방향의 각 픽처 블록의 움직임 정보를 포함하는 종래 기술에 비해, 본 출원에서 제공되는 양방향 인터 예측 방법은 비트스트림에 포함되는 움직임 정보를 효과적으로 감소시키고, 전송 자원의 효과적인 활용, 전송 레이트 및 코딩 레이트를 향상시킨다.According to the bidirectional inter prediction method provided in the present application, after the indication information is obtained, the second motion information is determined based on the first motion information. In this way, the bitstream only needs to contain indication information and first motion information, and no longer needs to contain second motion information. Compared to the prior art in which the bitstream includes motion information of each picture block in each direction, the bidirectional inter prediction method provided in the present application effectively reduces the motion information included in the bitstream, effectively utilizes transmission resources, and improves the transmission rate. and improves the coding rate.

선택적으로, 본 출원의 가능한 구현예에서, " 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계"를 위한 방법은: 제1 움직임 정보에서 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하는 단계 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하는 단계 - 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 움직임 정보 내에 있는 제1 움직임 벡터 예측자 플래그 및 제1 움직임 벡터 차에 기초하여 제1 움직임 벡터를 결정하는 단계 - 제1 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 움직임 벡터임 -; 및 다음 수식:Optionally, in a possible implementation of the present application, the method for “determining second motion information based on the first motion information” includes: obtaining an index value of the first reference frame in the first motion information; 1 determining the sequence number of the first reference frame based on the index value of the reference frame and the first reference frame list, where the first reference frame is a reference frame of the current picture block in the first direction, and The index value is the number of the first reference frame in the first reference frame list -; Obtaining an index value of a second reference frame, and determining a sequence number of the second reference frame based on the index value of the second reference frame and the second reference frame list, wherein the second reference frame is the current sequence number in the second direction. It is a reference frame of a picture block, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list -; determining a first motion vector based on the first motion vector predictor flag and the first motion vector difference in the first motion information, where the first motion vector is the motion vector of the current picture block in the first direction; and the following formula:

에 따라 제2 움직임 정보 내의 제2 움직임 벡터를 도출하는 단계를 포함하는 것이다.It includes deriving a second motion vector within the second motion information according to.

위 수식에서, mv_IY는 제2 움직임 벡터를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, mv_IX는 제1 움직임 벡터를 나타내며, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.In the above formula, mv_IY represents the second motion vector, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and mv_IX represents the sequence number of the first reference frame. Indicates 1 motion vector, and the second motion vector is the motion vector of the current picture block in the second direction.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, " 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계"를 위한 방법은: 제1 움직임 정보에서 제1 참조 프레임의 인덱스 값을 획득하는 단계 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하는 단계 - 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 움직임 정보 내에 있는 제1 움직임 벡터 예측자 플래그 및 제1 움직임 벡터 차에 기초하여 제1 움직임 벡터를 결정하는 단계 - 제1 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 움직임 벡터임 -; 및 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임(forward reference frame)이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임(backward reference frame)인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 경우, 다음 수식:Optionally, in another possible implementation of the present application, the method for “determining second motion information based on first motion information” includes: obtaining an index value of the first reference frame from the first motion information. Step - the first reference frame is the reference frame of the current picture block in the first direction, and the index value of the first reference frame is the number of the first reference frame in the first reference frame list; Obtaining an index value of a second reference frame - the second reference frame is a reference frame of the current picture block in the second direction, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list. lim -; determining a first motion vector based on the first motion vector predictor flag and the first motion vector difference in the first motion information, where the first motion vector is the motion vector of the current picture block in the first direction; and when the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a backward reference frame of the current picture block a reference frame and the second reference frame is a forward reference frame of the current picture block, or the first reference frame and the second reference frame are each a forward reference frame of the current picture block, or the first reference frame and the second reference frame If each is a reverse reference frame of the current picture block, the following formula:

에 따라 제2 움직임 정보 내의 제2 움직임 벡터를 도출하는 단계를 포함하는 것이다.It includes deriving a second motion vector within the second motion information according to.

이 수식에서, mv_IY는 제2 움직임 벡터를 나타내고, mv_IX는 제1 움직임 벡터를 나타내며, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.In this formula, mv_IY represents the second motion vector, mv_IX represents the first motion vector, and the second motion vector is the motion vector of the current picture block in the second direction.

"제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 것"과 ""제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임인 것" 양쪽 모두, “The first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block” and “The first reference frame is a backward reference frame of the current picture block and the second reference frame is "is the forward reference frame of the current picture block" both,

수식 로 나타내어지거나, 또는 수식 로 나타내어질 수 있다.formula It is expressed as, or a formula It can be expressed as

또한, "제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 것"과 "제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 것" 양쪽 모두, 수식 로 나타내어질 수 있다.In addition, both "the first reference frame and the second reference frame are each a forward reference frame of the current picture block" and "the first reference frame and the second reference frame are each a backward reference frame of the current picture block", formula It can be expressed as

POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타낸다.POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, and POC_listY represents the sequence number of the second reference frame.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, " 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계"를 위한 방법은: 제1 움직임 정보 내에 있는 제1 움직임 벡터 차 및 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하는 단계 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하며, 제2 참조 프레임의 인덱스 값 및 제2 후보 예측된 움직임 벡터 리스트(candidate predicted motion vector list)에 기초하여 제2 예측된 움직임 벡터(predicted motion vector)를 결정하는 단계 - 제2 예측된 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이며, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 다음 수식:Optionally, in another possible implementation of the present application, the method for “determining second motion information based on the first motion information” includes: a first motion vector difference within the first motion information and a first reference Obtaining an index value of a frame, and determining a sequence number of a first reference frame based on the index value of the first reference frame and the first reference frame list, wherein the first reference frame is an index value of the current picture block in the first direction. It is a reference frame, and the index value of the first reference frame is the number of the first reference frame in the first reference frame list -; Obtain the index value of the second reference frame, determine the sequence number of the second reference frame based on the index value of the second reference frame and the second reference frame list, and calculate the index value of the second reference frame and the second candidate prediction. Determining a second predicted motion vector based on the candidate predicted motion vector list - the second predicted motion vector is the predicted motion vector of the current picture block in the second direction. and the second reference frame is a reference frame of the current picture block in the second direction, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list. The following formula:

에 따라, 제2 움직임 정보 내의 제2 움직임 벡터 차를 계산하는 단계 - 여기서, mvd_IY는 제2 움직임 벡터 차를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, mvd_IX는 제1 움직임 벡터 차를 나타냄 -; 및 제2 예측된 움직임 벡터 및 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정하는 단계 - 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터임 -를 포함하는 것이다.Accordingly, calculating a second motion vector difference in the second motion information - where mvd_IY represents the second motion vector difference, POC_Cur represents the sequence number of the current frame, and POC_listX represents the sequence number of the first reference frame. indicates, POC_listY indicates the sequence number of the second reference frame, and mvd_IX indicates the first motion vector difference -; and determining a second motion vector based on the second predicted motion vector and the second motion vector difference, wherein the second motion vector is a motion vector of the current picture block in the second direction.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, " 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하는 단계"를 위한 방법은: 제1 움직임 정보 내에 있는 제1 움직임 벡터 및 제1 참조 프레임의 인덱스 값을 획득하는 단계 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 후보 예측된 움직임 벡터 리스트에 기초하여 제2 예측된 움직임 벡터를 결정하는 단계 - 제2 예측된 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이며, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 경우, 다음 수식:Optionally, in another possible implementation of the present application, the method for “determining second motion information based on the first motion information” includes: a first motion vector within the first motion information and a first reference frame; obtaining an index value of - the first reference frame is a reference frame of the current picture block in the first direction, and the index value of the first reference frame is the number of the first reference frame in the first reference frame list; Obtaining an index value of a second reference frame, and determining a second predicted motion vector based on the index value of the second reference frame and the second candidate predicted motion vector list, wherein the second predicted motion vector is the second predicted motion vector. is the predicted motion vector of the current picture block in the direction, the second reference frame is the reference frame of the current picture block in the second direction, and the index value of the second reference frame is the index of the second reference frame in the second reference frame list. Number -; If the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a backward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block is a forward reference frame of, or if the first reference frame and the second reference frame are each a forward reference frame of the current picture block, or if the first reference frame and the second reference frame are each a backward reference frame of the current picture block. , the following formula:

에 따라 제2 움직임 정보 내의 제2 움직임 벡터 차를 계산하는 단계 - 여기서, mvd_IY는 제2 움직임 벡터 차를 나타내고, mvd_IX는 제1 움직임 벡터 차를 나타냄 -; 및 제2 예측된 움직임 벡터 및 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정하는 단계 - 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터임 -를 포함하는 것이다.calculating a second motion vector difference in the second motion information according to where mvd_IY represents the second motion vector difference and mvd_IX represents the first motion vector difference; and determining a second motion vector based on the second predicted motion vector and the second motion vector difference, wherein the second motion vector is a motion vector of the current picture block in the second direction.

마찬가지로, Likewise,

"제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 것"과 ""제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임인 것" 양쪽 모두, “The first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block” and “The first reference frame is a backward reference frame of the current picture block and the second reference frame is "is the forward reference frame of the current picture block" both,

수식 로 나타내어지거나, 또는 수식 로 나타내어질 수 있다. 이것은 본 출원에서 구체적으로 한정되는 것은 아니다.formula It is expressed as, or a formula It can be expressed as This is not specifically limited in this application.

"제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 것"과 "제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 것" 양쪽 모두, 수식 로 나타내어질 수 있다.Both “the first reference frame and the second reference frame are each a forward reference frame of the current picture block” and “the first reference frame and the second reference frame are each a backward reference frame of the current picture block”, the formula It can be expressed as

POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타낸다.POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, and POC_listY represents the sequence number of the second reference frame.

본 출원에서 제공하는 양방향 인터 예측 방법은: 제1 움직임 벡터에 기초하여 제2 움직임 벡터를 결정하는 것이거나, 또는 제1 움직임 벡터 차에 기초하여 제2 움직임 벡터 차를 결정하고 그 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정하는 것일 수 있다.The bi-directional inter prediction method provided by this application is: determining a second motion vector based on a first motion vector, or determining a second motion vector difference based on the first motion vector difference and determining the second motion vector The second motion vector may be determined based on the difference.

선택적으로, 본 출원의 또 다른 가능한 구현에에서, "제2 참조 프레임의 인덱스 값을 획득하기" 위한 방법은: 수식 에 따라, 현재 프레임의 시퀀스 번호 및 제1 참조 프레임의 시퀀스 번호에 기초하여 제1 시퀀스 번호를 계산하는 단계 - 여기서, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY0는 제1 시퀀스 번호를 나타냄 -; 및 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하는 경우, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제1 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하는 단계를 포함하는 것이다.Optionally, in another possible implementation of the present application, the method for “obtaining the index value of the second reference frame” is: Accordingly, calculating a first sequence number based on the sequence number of the current frame and the sequence number of the first reference frame, where POC_Cur represents the sequence number of the current frame and POC_listX represents the sequence number of the first reference frame. represents, and POC_listY0 represents the first sequence number -; And when the second reference frame list includes the first sequence number, determining the number of the reference frame indicated by the first sequence number in the second reference frame list as the index value of the second reference frame.

선택적으로, 본 출원의 또 다른 가능한 구현에에서, "제2 참조 프레임의 인덱스 값을 획득하기" 위한 방법은: 수식 에 따라 현재 프레임의 시퀀스 번호 및 제1 참조 프레임의 시퀀스 번호에 기초하여 제2 시퀀스 번호를 계산하는 단계 - 여기서, 는 제2 시퀀스 번호를 나타냄 -; 및 제2 참조 프레임 리스트가 제2 시퀀스 번호를 포함하는 경우, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제2 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하는 단계를 포함하는 것이다.Optionally, in another possible implementation of the present application, the method for “obtaining the index value of the second reference frame” is: calculating a second sequence number based on the sequence number of the current frame and the sequence number of the first reference frame, wherein: represents the second sequence number -; And when the second reference frame list includes the second sequence number, determining the number of the reference frame indicated by the second sequence number in the second reference frame list as the index value of the second reference frame.

선택적으로, 본 출원의 또 다른 가능한 구현에에서, "제2 참조 프레임의 인덱스 값을 획득하기" 위한 방법은: 수식 에 따라, 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 제3 시퀀스 번호를 계산하는 단계 - 여기서, 는 제3 시퀀스 번호임 -; 및 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제3 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하는 단계를 포함하는 것이다.Optionally, in another possible implementation of the present application, the method for “obtaining the index value of the second reference frame” is: Accordingly, calculating a third sequence number based on the sequence number of the first reference frame and the sequence number of the current frame, wherein: is the third sequence number -; and determining, as an index value of the second reference frame, the number of the reference frame indicated by the third sequence number in the second reference frame list.

선택적으로, 본 출원의 또 다른 가능한 구현에에서, "제2 참조 프레임의 인덱스 값을 획득하기" 위한 방법은: 수식 에 따라 제1 참조 프레임의 시퀀스 번호와 현재 프레임의 시퀀스 번호에 기초하여 제1 시퀀스 번호를 계산하는 것이고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY0는 제1 시퀀스 번호를 나타낸다. 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하는 경우, 제2 참조 프레임에서 제2 시퀀스 번호가 나타내는 참조 프레임의 번호가 제2 참조 프레임의 인덱스 값으로서 결정된다. 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하지 않는 경우, 제2 시퀀스 번호는 수식 에 따라 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 계산되고, , 는 제2 시퀀스 번호를 나타낸다. 제2 참조 프레임 리스트가 제2 참조 번호를 포함하는 경우, 제2 참조 프레임 리스트에서 제2 시퀀스 번호가 나타내는 참조 프레임의 번호가 제2 참조 프레임의 인덱스 값으로서 결정된다. 제2 참조 프레임 리스트가 제2 시퀀스 번호를 포함하지 않는 경우, 제3 시퀀스 번호가 수식 에 따라 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 계산되고, 는 제3 시퀀스 번호이고, 제2 참조 프레임 리스트에서 제3 시퀀스 번호가 나타내는 참조 프레임의 번호가 제2 참조 프레임의 인덱스 값으로서 결정된다.Optionally, in another possible implementation of the present application, the method for “obtaining the index value of the second reference frame” is: Accordingly, the first sequence number is calculated based on the sequence number of the first reference frame and the sequence number of the current frame, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, and POC_listY0 represents the first sequence number. When the second reference frame list includes the first sequence number, the number of the reference frame indicated by the second sequence number in the second reference frame is determined as the index value of the second reference frame. If the second reference frame list does not contain the first sequence number, the second sequence number is Calculated based on the sequence number of the first reference frame and the sequence number of the current frame, represents the second sequence number. When the second reference frame list includes a second reference number, the number of the reference frame indicated by the second sequence number in the second reference frame list is determined as the index value of the second reference frame. If the second reference frame list does not contain the second sequence number, the third sequence number is is calculated based on the sequence number of the first reference frame and the sequence number of the current frame, is the third sequence number, and the number of the reference frame indicated by the third sequence number in the second reference frame list is determined as the index value of the second reference frame.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, "제2 참조 프레임의 인덱스 값을 획득하기" 위한 방법은 비트스트림을 파싱하여 제2 참조 프레임의 인덱스 값을 획득하는 것이다.Optionally, in another possible implementation of the present application, the method for “obtaining the index value of the second reference frame” is to obtain the index value of the second reference frame by parsing the bitstream.

본 출원에서 "제2 참조 프레임의 인덱스 값을 획득하기" 위한 여러 방법이 있을 수 있다는 것을 알 수 있다. 제2 참조 프레임의 인덱스 값을 획득하기 위해 사용되는 구체적인 방법은 실제 요건에 따라 결정되거나 또는 미리 설정될 수 있다.It can be seen that there may be several methods for “obtaining the index value of the second reference frame” in this application. The specific method used to obtain the index value of the second reference frame may be determined according to actual requirements or may be set in advance.

제2 측면에 따르면, 양방향 인터 예측 장치가 제공된다. 양방향 인터 예측 장치는 획득 유닛 및 결정 유닛을 포함한다.According to a second aspect, a bidirectional inter prediction device is provided. The bidirectional inter prediction device includes an acquisition unit and a decision unit.

구체적으로, 획득 유닛은, 지시 정보를 획득하고 제1 움직임 정보를 획득하도록 구성되며, 지시 정보는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이다. 결정 유닛은, 획득 유닛에 의해 획득된 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고, 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하도록 구성된다. Specifically, the acquisition unit is configured to acquire instruction information and obtain first motion information, the instruction information is used to instruct to determine the second motion information based on the first motion information, and the first motion information is used to determine the second motion information. This is motion information of the current picture block in the first direction, and the second motion information is motion information of the current picture block in the second direction. The determination unit is configured to determine the second motion information based on the first motion information obtained by the acquisition unit, and determine the prediction sample of the current picture block based on the first motion information and the second motion information.

선택적으로, 본 출원의 가능한 구현예에서, 결정 유닛은 구체적으로, 제1 움직임 정보에서 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하며 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하며 - 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 움직임 정보 내에 있는 제1 움직임 벡터 예측자 플래그 및 제1 움직임 벡터 차에 기초하여 제1 움직임 벡터를 결정하고 - 제1 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 움직임 벡터임 -; 그리고 다음 수식:Optionally, in a possible implementation of the present application, the decision unit specifically obtains the index value of the first reference frame in the first motion information and makes the first reference frame based on the index value of the first reference frame and the first reference frame list. 1 Determine the sequence number of the reference frame, wherein the first reference frame is a reference frame of the current picture block in the first direction, and the index value of the first reference frame is the number of the first reference frame in the first reference frame list. ; Obtain the index value of the second reference frame, and determine the sequence number of the second reference frame based on the index value of the second reference frame and the second reference frame list, wherein the second reference frame is the current picture in the second direction. It is a reference frame of a block, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list -; determine a first motion vector based on the first motion vector predictor flag and the first motion vector difference in the first motion information, where the first motion vector is the motion vector of the current picture block in the first direction; And the following formula:

에 따라 제2 움직임 정보 내의 제2 움직임 벡터를 도출하도록 구성되고,Configured to derive a second motion vector in the second motion information according to,

여기서, mv_IY는 제2 움직임 벡터를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, mv_IX는 제1 움직임 벡터를 나타내며, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.Here, mv_IY represents the second motion vector, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and mv_IX represents the first motion represents a vector, and the second motion vector is the motion vector of the current picture block in the second direction.

선택적으로, 본 출원의 또 다른 구현예에서, 결정 유닛은 구체적으로, 제1 움직임 정보에서 제1 참조 프레임의 인덱스 값을 획득하고 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하며 - 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 움직임 정보 내에 있는 제1 움직임 벡터 예측자 플래그 및 제1 움직임 벡터 차에 기초하여 제1 움직임 벡터를 결정하고 - 제1 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 움직임 벡터임 -; 및 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임(forward reference frame)이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임(backward reference frame)인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 경우, 다음 수식:Optionally, in another implementation of the present application, the decision unit specifically obtains an index value of a first reference frame in the first motion information, wherein the first reference frame is a reference frame of the current picture block in the first direction. , and the index value of the first reference frame is the number of the first reference frame in the first reference frame list -; Obtain the index value of the second reference frame - the second reference frame is the reference frame of the current picture block in the second direction, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list. -; determine a first motion vector based on the first motion vector predictor flag and the first motion vector difference in the first motion information, where the first motion vector is the motion vector of the current picture block in the first direction; and when the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a backward reference frame of the current picture block a reference frame and the second reference frame is a forward reference frame of the current picture block, or the first reference frame and the second reference frame are each a forward reference frame of the current picture block, or the first reference frame and the second reference frame If each is a reverse reference frame of the current picture block, the following formula:

에 따라 제2 움직임 정보 내의 제2 움직임 벡터를 도출하도록 구성되고, 여기서, mv_IY는 제2 움직임 벡터를 나타내고, mv_IX는 제1 움직임 벡터를 나타내며, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다. and configured to derive a second motion vector in the second motion information according to, where mv_IY represents the second motion vector, mv_IX represents the first motion vector, and the second motion vector is the current picture block in the second direction. is the motion vector of .

선택적으로, 본 출원의 또 다른 가능한 구현예에서, 결정 유닛은 구체적으로, 제1 움직임 정보 내에 있는 제1 움직임 벡터 차 및 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하며 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하며, 제2 참조 프레임의 인덱스 값 및 제2 후보 예측된 움직임 벡터 리스트에 기초하여 제2 예측된 움직임 벡터를 결정하며 - 제2 예측된 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이며, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 다음 수식:Optionally, in another possible implementation of the present application, the determination unit specifically obtains the first motion vector difference in the first motion information and the index value of the first reference frame, the index value of the first reference frame and Determine the sequence number of the first reference frame based on the first reference frame list, wherein the first reference frame is a reference frame of the current picture block in the first direction, and the index value of the first reference frame is the first reference frame list. Is the number of the first reference frame within -; Obtain the index value of the second reference frame, determine the sequence number of the second reference frame based on the index value of the second reference frame and the second reference frame list, and calculate the index value of the second reference frame and the second candidate prediction. Determine a second predicted motion vector based on the motion vector list, wherein the second predicted motion vector is the predicted motion vector of the current picture block in the second direction, and the second reference frame is the predicted motion vector of the current picture block in the second direction. It is a reference frame of a picture block, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list -; The following formula:

에 따라, 제2 움직임 정보 내의 제2 움직임 벡터 차를 계산하고 - 여기서, mvd_IY는 제2 움직임 벡터 차를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, mvd_IX는 제1 움직임 벡터 차를 나타냄 -; 그리고 제2 예측된 움직임 벡터 및 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정하도록 구성되고, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.Accordingly, calculate the second motion vector difference in the second motion information - where mvd_IY represents the second motion vector difference, POC_Cur represents the sequence number of the current frame, and POC_listX represents the sequence number of the first reference frame. , POC_listY represents the sequence number of the second reference frame, mvd_IX represents the first motion vector difference -; and determine a second motion vector based on the second predicted motion vector and the second motion vector difference, where the second motion vector is a motion vector of the current picture block in the second direction.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, 결정 유닛은 구체적으로, 제1 움직임 정보 내에 있는 제1 움직임 벡터 및 제1 참조 프레임의 인덱스 값을 획득하고 - 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제1 참조 프레임의 인덱스 값은 제1 참조 프레임 리스트 내의 제1 참조 프레임의 번호임 -; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 후보 예측된 움직임 벡터 리스트에 기초하여 제2 예측된 움직임 벡터를 결정하며 - 제2 예측된 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이며, 제2 참조 프레임의 인덱스 값은 제2 참조 프레임 리스트 내의 제2 참조 프레임의 번호임 -; 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이면서 제2 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임이 각각 현재 픽처 블록의 역방향 참조 프레임인 경우, 다음 수식:Optionally, in another possible implementation of the present application, the decision unit specifically obtains an index value of a first motion vector and a first reference frame in the first motion information, wherein the first reference frame is in the first direction. is the reference frame of the current picture block, and the index value of the first reference frame is the number of the first reference frame in the first reference frame list -; Obtain an index value of the second reference frame, and determine a second predicted motion vector based on the index value of the second reference frame and the second candidate predicted motion vector list, wherein the second predicted motion vector is in the second direction. is the predicted motion vector of the current picture block in, the second reference frame is the reference frame of the current picture block in the second direction, and the index value of the second reference frame is the number of the second reference frame in the second reference frame list. lim -; If the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a backward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block is a forward reference frame of, or if the first reference frame and the second reference frame are each a forward reference frame of the current picture block, or if the first reference frame and the second reference frame are each a backward reference frame of the current picture block. , the following formula:

에 따라 제2 움직임 정보에서 제2 움직임 벡터 차를 계산하고 - 여기서, mvd_IY는 제2 움직임 벡터 차를 나타내고, mvd_IX는 제1 움직임 벡터 차를 나타냄 -; 그리고 제2 예측된 움직임 벡터 및 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정하도록 구성되고, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.Calculate a second motion vector difference from the second motion information according to - where mvd_IY represents the second motion vector difference, and mvd_IX represents the first motion vector difference -; and determine a second motion vector based on the second predicted motion vector and the second motion vector difference, where the second motion vector is a motion vector of the current picture block in the second direction.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, 획득 유닛은 구체적으로, 수식 에 따라, 현재 프레임의 시퀀스 번호 및 제1 참조 프레임의 시퀀스 번호에 기초하여 제1 시퀀스 번호를 계산하고 - 여기서, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY0는 제1 시퀀스 번호를 나타냄 -; 그리고 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하는 경우, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제1 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하도록 구성된다.Optionally, in another possible implementation of the present application, the acquisition unit specifically has the formula: Accordingly, calculate the first sequence number based on the sequence number of the current frame and the sequence number of the first reference frame - where POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, and , POC_listY0 indicates the first sequence number -; And when the second reference frame list includes the first sequence number, it is configured to determine, as an index value of the second reference frame, the number of the reference frame indicated by the first sequence number in the second reference frame list.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, 획득 유닛은 구체적으로, 수식 에 따라 현재 프레임의 시퀀스 번호 및 제1 참조 프레임의 시퀀스 번호에 기초하여 제2 시퀀스 번호를 계산하고 - 여기서, 는 제2 시퀀스 번호를 나타냄 -; 그리고 제2 참조 프레임 리스트가 제2 시퀀스 번호를 포함하는 경우, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제2 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하도록 구성된다.Optionally, in another possible implementation of the present application, the acquisition unit specifically has the formula: Calculate a second sequence number based on the sequence number of the current frame and the sequence number of the first reference frame according to - where: represents the second sequence number -; And when the second reference frame list includes the second sequence number, it is configured to determine, as an index value of the second reference frame, the number of the reference frame indicated by the second sequence number in the second reference frame list.

선택적으로, 본 출원의 또 다른 가능한 구현예에서, 획득 유닛은 구체적으로, 수식 에 따라, 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 제3 시퀀스 번호를 계산하고 - 여기서, 는 제3 시퀀스 번호임 -; 그리고 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트에서 제3 시퀀스 번호가 나타내는 참조 프레임의 번호를 결정하도록 구성된다.Optionally, in another possible implementation of the present application, the acquisition unit specifically has the formula: Accordingly, a third sequence number is calculated based on the sequence number of the first reference frame and the sequence number of the current frame, where: is the third sequence number -; And, as an index value of the second reference frame, it is configured to determine the number of the reference frame indicated by the third sequence number in the second reference frame list.

제3 측면에 따르면, 양방향 인터 예측 방법이 제공된다. 양방향 인터 예측 방법을 위한 여러 구현예가 있다.According to a third aspect, a bidirectional inter prediction method is provided. There are several implementation examples for bidirectional inter prediction methods.

일 구현예는, 비트스트림을 파싱(parsing)하여 제1 식별자를 획득하고 - 제1 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지를 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제1 식별자의 값이 미리 설정된 제1 값이면, 제1 움직임 정보를 획득하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 획득하며; 그리고 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플(prediction samples)을 결정하는 것이다.One implementation includes parsing a bitstream to obtain a first identifier - the first identifier is used to indicate whether to determine second motion information based on the first motion information, and the first motion information is used to indicate whether to determine the second motion information based on the first motion information. It is motion information of the current picture block in the direction, and the second motion information is motion information of the current picture block in the second direction -; If the value of the first identifier is a preset first value, first motion information is acquired, and second motion information is acquired based on the first motion information; And prediction samples of the current picture block are determined based on the first motion information and the second motion information.

또 다른 구현예는, 비트스트림을 파싱하여 제2 식별자를 획득하고 - 제2 식별자는 움직임 정보 도출 알고리즘(motion information derivation algorithm)을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용됨 -; 제2 식별자의 값이 미리 설정된 제2 값이면, 제3 식별자를 획득하며 - 제3 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지를 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제3 식별자의 값이 미리 설정된 제3 값이면, 제1 움직임 정보를 획득하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 획득하며; 그리고 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 것이다.Another implementation includes parsing the bitstream to obtain a second identifier, where the second identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm; If the value of the second identifier is a preset second value, a third identifier is obtained - the third identifier is used to indicate whether to determine the second motion information based on the first motion information, and the first motion information is used to determine the first motion information. It is motion information of the current picture block in the direction, and the second motion information is motion information of the current picture block in the second direction -; If the value of the third identifier is a preset third value, first motion information is acquired, and second motion information is acquired based on the first motion information; And the prediction sample of the current picture block is determined based on the first motion information and the second motion information.

또 다른 구현예는, 비트스트림을 파싱하여 제2 식별자를 획득하고 - 제2 식별자는 움직임 정보 도출 알고리즘(motion information derivation algorithm)을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용됨 -; 제2 식별자의 값이 미리 설정된 제2 값이면, 제1 움직임 정보를 획득하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 획득하며 - 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 그리고 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 것이다.Another implementation includes parsing the bitstream to obtain a second identifier, where the second identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm; If the value of the second identifier is a preset second value, first motion information is obtained, and second motion information is obtained based on the first motion information - the first motion information is the current picture block in the first direction. It is motion information, and the second motion information is motion information of the current picture block in the second direction -; And the prediction sample of the current picture block is determined based on the first motion information and the second motion information.

또 다른 구현예는, 비트스트림을 파싱하여 제4 식별자를 획득하고 - 제4 식별자는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용됨 -; 제4 식별자의 값이 미리 설정된 제4 값이면, 제1 참조 프레임 리스트 및 제2 참조 프레임 리스트에 기초하여 제1 참조 프레임의 인덱스 값 및 제2 참조 프레임의 인덱스 값을 결정하며 - 제1 참조 프레임 리스트는 제1 방향에서의 현재 픽처 블록의 참조 프레임 리스트이고, 제2 참조 프레임 리스트는 제2 방향에서의 현재 픽처 블록의 참조 프레임 리스트이며, 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임임 -; 제1 움직임 벡터 차 및 제1 움직임 벡터 예측자 플래그를 획득하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고 - 제1 움직임 정보는 제1 참조 프레임의 인덱스 값, 제1 움직임 벡터 차, 및 제1 움직임 벡터 예측자 플래그를 포함하고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 및 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 것이다.Another implementation includes parsing the bitstream to obtain a fourth identifier, where the fourth identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm; If the value of the fourth identifier is a preset fourth value, the index value of the first reference frame and the index value of the second reference frame are determined based on the first reference frame list and the second reference frame list - the first reference frame The list is a list of reference frames of the current picture block in the first direction, the second reference frame list is the list of reference frames of the current picture block in the second direction, and the first reference frame is the list of reference frames of the current picture block in the first direction. is a reference frame, and the second reference frame is a reference frame of the current picture block in the second direction -; Obtain a first motion vector difference and a first motion vector predictor flag, and determine second motion information based on the first motion information, where the first motion information includes an index value of the first reference frame, the first motion vector difference, , and a first motion vector predictor flag, wherein the second motion information is motion information of the current picture block in the second direction; and determining a prediction sample of the current picture block based on the first motion information and the second motion information.

또 다른 구현예는, 비트스트림의 파싱하여 제1 식별자를 획득하고 - 제1 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지를 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제1 식별자의 값이 미리 설정된 제8 값이면, 제5 식별자를 획득하고 - 제5 식별자는 제2 움직임 정보에 기초하여 제1 움직임 정보를 결정할지 지시하기 위해 사용됨 -; 제5 식별자가 미리 설정된 제5 값이면, 제2 움직임 정보를 획득하고, 제2 움직임 정보에 기초하여 제1 움직임 정보를 결정하고; 그리고 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 것이다.Another implementation includes parsing the bitstream to obtain a first identifier, wherein the first identifier is used to indicate whether to determine second motion information based on the first motion information, and the first motion information is used in the first direction. is motion information of the current picture block, and the second motion information is motion information of the current picture block in the second direction -; If the value of the first identifier is a preset eighth value, obtain a fifth identifier - the fifth identifier is used to indicate whether to determine the first motion information based on the second motion information -; If the fifth identifier is a preset fifth value, obtain second motion information and determine first motion information based on the second motion information; And the prediction sample of the current picture block is determined based on the first motion information and the second motion information.

또 다른 구현예는, 비트스트림의 파싱하여 제2 식별자를 획득하고 - 제2 식별자는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지 지시하는 데 사용됨 -; 제2 식별자가 미리 설정된 제2 값이면, 제3 식별자를 획득하고 - 제3 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보임 -; 제3 식별자의 값이 미리 설정된 제6 값이면, 제2 움직임 정보를 획득하고, 제2 움직임 정보에 기초하여 제1 움직임 정보를 결정하고; 그리고 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하는 것이다.Another implementation includes parsing the bitstream to obtain a second identifier - the second identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm; If the second identifier is a preset second value, obtain a third identifier - the third identifier is used to indicate whether to determine the second motion information based on the first motion information, and the first motion information is used in the first direction. is motion information of the current picture block, and the second motion information is motion information of the current picture block in the second direction -; If the value of the third identifier is a preset sixth value, obtain second motion information and determine first motion information based on the second motion information; And the prediction sample of the current picture block is determined based on the first motion information and the second motion information.

제1 식별자 내지 제4 식별자에 대한 구체적인 설명에 대해서는 이하를 참조할 수 있다.For detailed descriptions of the first to fourth identifiers, please refer to the following.

본 출원에서 제공된 양방향 인터 예측 방법에서, 비트스트림을 파싱하여 식별자를 획득한 후, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지는 그 식별자의 값에 기초하여 결정된다. 제1 움직임 정보에 기초하여 제2 움직임 정보가 결정되어야 한다고 결정된 후, 제1 움직임 정보가 획득되고, 그런 다음 제2 움직임 정보가 획득된 제1 움직임 정보에 기초하여 결정된다. 이 방식에서는, 비트스트림이 오직 대응하는 식별자 및 제1 움직임 정보만 포함하면 되고, 제2 움직임 정보는 더 이상 포함할 필요가 없다. 비트스트림이 각 방향에서의 각 픽처 블록의 움직임 정보를 포함하는 종래 기술에 비해, 본 출원에서 제공된 양방향 인터 예측 방법은 비트스트림에 포함되는 움직임 정보를 효과적으로 감소시키고, 전송 자원의 효과적인 활용, 전송 레이트 및 코딩 레이트를 향상시킨다.In the bidirectional inter prediction method provided in this application, after parsing a bitstream to obtain an identifier, whether to determine the second motion information based on the first motion information is determined based on the value of the identifier. After it is determined that the second motion information should be determined based on the first motion information, the first motion information is obtained, and then the second motion information is determined based on the obtained first motion information. In this way, the bitstream only needs to include the corresponding identifier and first motion information, and no longer needs to include the second motion information. Compared to the prior art in which the bitstream includes motion information of each picture block in each direction, the bi-directional inter prediction method provided in the present application effectively reduces the motion information included in the bitstream, effectively utilizes transmission resources, and improves the transmission rate. and improves the coding rate.

제4 측면에 따르면, 양방향 인터 예측 장치가 제공된다. 이 양방향 인터 예측 장치는 획득 유닛 및 결정 유닛을 포함한다.According to a fourth aspect, a bidirectional inter prediction device is provided. This bi-directional inter prediction device includes an acquisition unit and a decision unit.

구체적으로, 일 구현예에서, 획득 유닛은, 비트스트림을 파싱(parsing)하여 제1 식별자를 획득하고, 제1 식별자의 값이 미리 설정된 제1 값이면, 제1 움직임 정보를 획득하도록 구성되고, 제1 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지를 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이다. 결정 유닛은, 획득 유닛에 의해 획득된 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고, 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플(prediction samples)을 결정하도록 구성된다.Specifically, in one implementation, the acquisition unit is configured to parse a bitstream to obtain a first identifier, and if the value of the first identifier is a preset first value, obtain first motion information; The first identifier is used to indicate whether to determine the second motion information based on the first motion information, the first motion information is motion information of the current picture block in the first direction, and the second motion information is in the second direction. This is the motion information of the current picture block. The determination unit determines the second motion information based on the first motion information obtained by the acquisition unit, and determines prediction samples of the current picture block based on the first motion information and the second motion information. It is composed.

또 다른 구현예에서, 획득 유닛은, 비트스트림을 파싱하여 제2 식별자를 획득하고, 제2 식별자의 값이 미리 설정된 제2 값이면, 제3 식별자를 획득하며, 제3 식별자의 값이 미리 설정된 제3 값이면, 제1 움직임 정보를 획득하도록 구성되고, 제2 식별자는 움직임 정보 도출 알고리즘(motion information derivation algorithm)을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용되고, 제3 식별자는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지를 지시하는 데 사용되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이다. 결정 유닛은 획득 유닛에 의해 획득된 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고, 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하도록 구성된다.In another implementation, the acquisition unit acquires a second identifier by parsing the bitstream, and if the value of the second identifier is a preset second value, obtain a third identifier, and if the value of the third identifier is a preset second value, the acquisition unit acquires a second identifier. If it is a third value, it is configured to obtain first motion information, the second identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm, and the third identifier is used to indicate whether to calculate motion information of the current picture block. It is used to indicate whether to determine second motion information based on the first motion information, the first motion information is motion information of the current picture block in the first direction, and the second motion information is the current picture block in the second direction. This is the movement information. The determination unit is configured to determine the second motion information based on the first motion information obtained by the acquisition unit, and determine the prediction sample of the current picture block based on the first motion information and the second motion information.

또 다른 구현예에서, 획득 유닛은 비트스트림을 파싱하여 제2 식별자를 획득하고, 제2 식별자의 값이 미리 설정된 제2 값이면, 제1 움직임 정보를 획득하도록 구성되고, 제2 식별자는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용된다. 결정 유닛은, 획득 유닛에 의해 획득된 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고, 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하도록 구성되고, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이다.In another implementation, the acquisition unit is configured to parse the bitstream to obtain a second identifier, and if the value of the second identifier is a preset second value, obtain the first motion information, and the second identifier is the motion information. It is used to indicate whether to calculate the motion information of the current picture block using the derivation algorithm. The determination unit is configured to determine the second motion information based on the first motion information obtained by the acquisition unit, and determine the prediction sample of the current picture block based on the first motion information and the second motion information, 1 motion information is motion information of the current picture block in the first direction, and second motion information is motion information of the current picture block in the second direction.

또 다른 구현예에서, 획득 유닛은, 비트스트림을 파싱하여 제4 식별자를 획득하도록 구성되고, 제4 식별자는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산할지를 지시하는 데 사용된다. 결정 유닛은 제4 식별자의 값이 미리 설정된 제4 값이면, 제1 참조 프레임 리스트 및 제2 참조 프레임 리스트에 기초하여 제1 참조 프레임의 인덱스 값 및 제2 참조 프레임의 인덱스 값을 결정하도록 구성되고, 제1 참조 프레임 리스트는 제1 방향에서의 현재 픽처 블록의 참조 프레임 리스트이고, 제2 참조 프레임 리스트는 제2 방향에서의 현재 픽처 블록의 참조 프레임 리스트이며, 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이다. 획득 유닛은 추가로 제1 움직임 벡터 차 및 제1 움직임 벡터 예측자 플래그를 획득하도록 구성된다. 결정 유닛은 추가로 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고, 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정하도록 구성되고, 제1 움직임 정보는 제1 참조 프레임의 인덱스 값, 제1 움직임 벡터 차, 및 제1 움직임 벡터 예측자 플래그를 포함하고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이다.In another implementation, the acquisition unit is configured to parse the bitstream to obtain a fourth identifier, and the fourth identifier is used to indicate whether to calculate motion information of the current picture block using a motion information derivation algorithm. If the value of the fourth identifier is a preset fourth value, the determination unit is configured to determine the index value of the first reference frame and the index value of the second reference frame based on the first reference frame list and the second reference frame list; , the first reference frame list is a reference frame list of the current picture block in the first direction, the second reference frame list is a reference frame list of the current picture block in the second direction, and the first reference frame is a list of reference frames in the first direction. is the reference frame of the current picture block, and the second reference frame is the reference frame of the current picture block in the second direction. The acquisition unit is further configured to acquire the first motion vector difference and the first motion vector predictor flag. The determination unit is further configured to determine second motion information based on the first motion information, and determine a prediction sample of the current picture block based on the first motion information and the second motion information, and the first motion information is configured to determine the second motion information based on the first motion information. It includes an index value of 1 reference frame, a first motion vector difference, and a first motion vector predictor flag, and the second motion information is motion information of the current picture block in the second direction.

제5 측면에 따르면, 단말이 제공된다. 이 단말은 하나 이상의 프로세서, 메모리, 및 통신 인터페이스를 포함한다. 메모리와 통신 인터페이스는 하나 이상의 프로세서에 연결된다. 메모리는 컴퓨터 프로그램 코드를 저장하도록 구성된다. 컴퓨터 프로그램 코드는 명령을 포함한다. 하나 이상의 프로세서가 그 명령을 실행하는 때, 단말은 제1 측면 또는 제1 측면의 가능한 구현예들 중 하나에 따른 양방향 인터 예측 방법을 수행하거나 또는 제3 측면 또는 제3 측면의 가능한 구현예들 중 어느 하나에 따른 양방향 인터 예측 방법을 수행한다.According to the fifth aspect, a terminal is provided. This terminal includes one or more processors, memory, and communication interfaces. Memory and communication interfaces are connected to one or more processors. The memory is configured to store computer program code. Computer program code contains instructions. When one or more processors execute the instruction, the terminal performs the bidirectional inter prediction method according to the first aspect or one of the possible implementations of the first aspect or the third aspect or one of the possible implementations of the third aspect. A two-way inter prediction method according to either one is performed.

제7 측면에 따르면, 비디오 디코더가 제공되고, 이것은 비휘발성 저장 매체 및 중앙 처리 유닛을 포함한다. 비휘발성 저장 매체는 실행 가능한 프로그램을 저장한다. 중앙 처리 유닛은 비휘발성 저장 매체에 연결되고, 실행 가능한 프로그램을 실행하여 제1 측면 또는 제1 측면의 가능한 구현예들 중 어느 하나에 따른 양방향 인터 예측 방법을 수행하거나 또는 제3 측면 또는 제3 측면의 가능한 구현예들 중 어느 하나에 따른 양방향 인터 예측 방법을 수행한다.According to a seventh aspect, a video decoder is provided, comprising a non-volatile storage medium and a central processing unit. Non-volatile storage media store executable programs. The central processing unit is coupled to a non-volatile storage medium and executes an executable program to perform a bi-directional inter prediction method according to the first aspect or any of the possible implementations of the first aspect or the third aspect or the third aspect. Perform a bidirectional inter prediction method according to any one of the possible implementation examples.

제7 측면에 따르면, 디코더가 제공된다. 이 디코더는 제2 측면에서의 양방향 인터 예측 장치 및 재구성 모듈을 포함하고, 재구성 모듈은 양방향 인터 예측 장치가 획득한 예측 샘플들에 기초하여 현재 픽처 블록의 재구성된 샘플 값을 결정하도록 구성된다. 또는 이 디코더는 제4 측면에서의 양방향 인터 예측 장치 및 재구성 모듈을 포함하고, 재구성 모듈은 양방향 인터 예측 장치가 획득한 예측 샘플들에 기초하여 현재 픽처 블록의 재구성된 샘플 값을 결정하도록 구성된다.According to a seventh aspect, a decoder is provided. The decoder includes a bidirectional inter prediction device and a reconstruction module in the second side, and the reconstruction module is configured to determine a reconstructed sample value of the current picture block based on prediction samples obtained by the bidirectional inter prediction device. Alternatively, the decoder includes a bidirectional inter prediction device and a reconstruction module in the fourth aspect, and the reconstruction module is configured to determine a reconstructed sample value of the current picture block based on prediction samples obtained by the bidirectional inter prediction device.

제8 측면에 따르면, 컴퓨터 판독 가능한 저장 매체가 제공된다. 컴퓨터 판독 가능한 저장 매체는 명령을 저장한다. 이 명령이 제5 측면의 단말에서 실행된 때, 이 단말은 제1 측면 또는 제1 측면의 가능한 구현예 중 어느 하나에 따른 양방향 인터 예측 방법을 수행하도록 이네이블되거나, 또는 제3 측면 또는 제3 측면의 가능한 구현예 중 어느 하나에 따른 양방향 인터 예측 방법을 수행하도록 이네이블된다.According to an eighth aspect, a computer-readable storage medium is provided. A computer-readable storage medium stores instructions. When this instruction is executed in the terminal of the fifth side, this terminal is enabled to perform the bidirectional inter prediction method according to the first side or any of the possible implementations of the first side, or the third side or the third side. Enabled to perform a bi-directional inter prediction method according to any of the possible implementations of the aspect.

제9 측면에 따르면, 명령을 포함하는 컴퓨터 프로그램 제품이 제공된다. 컴퓨터 프로그램 제품이 제5 측면의 단말에서 실행된 때, 그 단말은 제1 측면 또는 제1 측면의 가능한 구현예 중 어느 하나에 따른 양방향 인터 예측 방법을 수행하도록 이네이블되거나, 또는 제3 측면 또는 제3 측면의 가능한 구현예 중 어느 하나에 따른 양방향 인터 예측 방법을 수행하도록 이네이블된다.According to a ninth aspect, a computer program product including instructions is provided. When the computer program product is executed on a terminal of the fifth aspect, the terminal is enabled to perform the bi-directional inter prediction method according to the first aspect or any of the possible implementations of the first aspect, or the third aspect or the Enabled to perform a bi-directional inter prediction method according to any one of the three possible implementations of the aspect.

본 출원에서, 양방항 인터 예측 장치의 이름은 장치나 기능 모듈에 대해 제한을 가하지 않는다. 실제 구현에서, 이 장치나 기능 모듈은 다른 이름을 가질 수도 있다. 만일 그 장치나 기능 모듈의 기능이 본 출원에서의 기능과 유사하면, 그 장치나 기능 모듈은 본 출원의 청구범위 또는 그 균등의 범위에 포함된다.In this application, the name of the bidirectional inter prediction device does not impose any restrictions on the device or functional module. In actual implementation, this device or functional module may have a different name. If the function of the device or functional module is similar to the function in the present application, the device or functional module is included in the scope of the claims or equivalents of the present application.

제5 측면 내지 제9 측면, 그리고 제5 측면 내지 제9 측면의 구현예들에 대한 보다 상세한 설명은, 제1 측면 및 제1 측면의 구현예에 대한 상세한 설명 또는 제3 측면 또는 제3 측면의 구현예에 대한 상세한 설명을 참조할 수 있다. 또, 제5 측면 내지 제9 측면, 그리고 제5 측면 내지 제9 측면의 구현예들에 대한 유리한 효과에 대해, 제1 측면 및 제1 측면의 구현예에 대한 유리한 효과의 분석 또는 제3 측면 또는 제3 측면의 구현예에 대한 유리한 효과의 분석을 참조할 수 있으므로, 여기서 그 상세에 대해서는 다시 설명하지 않는다.A more detailed description of the fifth to ninth aspects, and embodiments of the fifth to ninth aspects, includes a detailed description of the first aspect and embodiments of the first aspect, or a third aspect or a detailed description of the embodiments of the third aspect. Please refer to the detailed description of the implementation example. In addition, with respect to the fifth to ninth aspects and the beneficial effects to the embodiments of the fifth to ninth aspects, the analysis of the beneficial effects to the embodiments of the first aspect and the first aspect or the third aspect or Reference can be made to the analysis of advantageous effects for the embodiments of the third aspect, so the details will not be described again here.

본 출원에서 이들 측면들과 다른 측면들은 이하의 설명에서 보다 간결하고 이해하기 쉬울 것이다.These and other aspects of the present application will be more concise and easier to understand in the following description.

도 1은 본 출원의 실시예에 따른 비디오 코딩 시스템의 개략 구조도이다.
도 2는 본 출원의 실시예에 따른 비디오 인코더의 개략 구조도이다.
도 3은 본 출원의 실시예에 따른 비디오 디코더의 개략 구조도이다.
도 4는 본 출원의 실시예에 따른 양방향 인터 예측 방법의 개략 흐름도이다.
도 5는 본 출원의 실시예에 따른 양방향 인터 예측 장치의 제1 개략 구조도이다.
도 6은 본 출원의 실시예에 따른 양방향 인터 예측 장치의 제2 개략 구조도이다.
1 is a schematic structural diagram of a video coding system according to an embodiment of the present application.
Figure 2 is a schematic structural diagram of a video encoder according to an embodiment of the present application.
Figure 3 is a schematic structural diagram of a video decoder according to an embodiment of the present application.
Figure 4 is a schematic flowchart of a bidirectional inter prediction method according to an embodiment of the present application.
Figure 5 is a first schematic structural diagram of a bidirectional inter prediction device according to an embodiment of the present application.
Figure 6 is a second schematic structural diagram of a bidirectional inter prediction device according to an embodiment of the present application.

본 출원의 명세서, 청구범위, 및 첨부 도면에서 "제1", "제2", "제3", "제4", "제5" 등은 상이한 대상을 구분하기 위한 것이며 특정 순서를 나타내는 것은 아니다.In the specification, claims, and accompanying drawings of this application, “first,” “second,” “third,” “fourth,” “fifth,” etc. are used to distinguish different objects and do not indicate a specific order. no.

본 출원의 실시예에서, "예", "예시" 또는 "예컨대"는 예시, 예증, 설명을 한다는 것을 나타낸다. 본 출원의 실시예에서 "예", "예시" 또는 "예컨대"로서 설명되는 실시예 또는 설계 방식은 모두 다른 실시예 또는 설계 방식보다 더 나은 장점을 가지거나 더 바람직한 것으로서 설명되어서는 안 된다. 정확하게는, "예", "예시" 또는 "예컨대" 등의 사용은 구체적인 방법에서 관련된 개념을 제시하기 위한 것이다.In the embodiments of this application, “example,” “example,” or “for example,” refers to illustration, illustration, or description. None of the embodiments or design schemes described as “examples,” “examples,” or “for example” in the embodiments of the present application should be described as having better advantages or being more preferable than other embodiments or design schemes. Precisely, the use of “example,” “example,” or “for example,” is intended to present related concepts in a specific manner.

본 출원의 실시예의 이해를 돕기 위해, 본 출원의 실시예에서의 관련 요소를 먼저 여기서 설명한다.To facilitate understanding of the embodiments of the present application, related elements in the embodiments of the present application are first described here.

픽처 인코딩(picture encoding): 픽처 시퀀스를 비트스트림으로 압축하는 프로세스Picture encoding: The process of compressing a picture sequence into a bitstream.

픽처 디코딩(picture decoding): 비트스트림을 특정 구문 규칙(syntax rule) 및 특정 처리 방법에 따라 재구성된 픽처로 재구성하는 프로세스Picture decoding: The process of reconstructing a bitstream into a reconstructed picture according to specific syntax rules and specific processing methods.

현재, 비디오 픽처 인코딩 프로세스는 다음과 같다. 먼저 인코더가 오리지널 픽처의 프레임을 서로 중첩하지 않는 여러 부분으로 분할한다. 여기서 각 부분은 픽처 블록으로 사용된다. 그런 다음, 인코더는 각 픽처 블록에 대해 예측(Prediction), 변환(Transform), 및 양자화(Quantization)를 수행하여, 픽처 블록에 대응하는 비트스트림을 획득한다. 여기서, 예측은 픽처 블록의 예측 블록을 획득하기 위해 사용되며, 이로써 픽처 블록과 그 픽처 블록의 예측 블록 간의 차(또는 잔차(residual) 또는 잔차 블록이라고도 함)만 인코딩하여 전송함으로써 전송 오버헤드를 감소시킬 수 있다. 마지막으로, 인코더는 픽처 블록에 대응하는 비트스트림을 디코더에 보낸다.Currently, the video picture encoding process is as follows. First, the encoder divides the frame of the original picture into several non-overlapping parts. Here, each part is used as a picture block. Then, the encoder performs prediction, transformation, and quantization on each picture block to obtain a bitstream corresponding to the picture block. Here, prediction is used to obtain a prediction block of a picture block, thereby reducing transmission overhead by encoding and transmitting only the difference (also called residual or residual block) between a picture block and its prediction block. You can do it. Finally, the encoder sends the bitstream corresponding to the picture block to the decoder.

이에 대응하여, 비트스트림을 수신한 후, 디코더는 비디오 디코딩 프로세스를 수행한다. 구체적으로, 디코더는 수신한 비트스트림에 대해 예측, 역양자화, 및 역변환을 수행하여 재구성된 픽처 블록(또는 재구성 후 픽처 블록이라고도 한다)을 획득한다. 이 프로세스는 픽처 재구성 프로세스라고도 한다. 그런 다음, 디코더는 각 픽처 블록의 재구성된 블록을 오리지널 픽처로 조립하여 오리지널 픽처의 재구성된 픽처를 획득하고, 그 재구성된 픽처를 재생한다.Correspondingly, after receiving the bitstream, the decoder performs a video decoding process. Specifically, the decoder performs prediction, inverse quantization, and inverse transformation on the received bitstream to obtain a reconstructed picture block (also referred to as a post-reconstruction picture block). This process is also called the picture reconstruction process. Then, the decoder assembles the reconstructed block of each picture block into the original picture to obtain a reconstructed picture of the original picture, and plays the reconstructed picture.

기존의 비디오 픽처 코딩 기술은 인트라 예측 및 인터 예측을 포함한다. 인트라 예측은 현재 프레임과 그 현재 프레임의 참조 프레임 간의 상호관계를 이용하여 픽처 블록을 코딩/디코딩함으로써 이루어지는 예측이다. 현재 프레임은 하나 이상의 참조 프레임을 가질 수 있다. 구체적으로, 현재 픽처 블록의 예측 픽처 블록은 현재 픽처 블록의 참조 프레임 내의 샘플들에 기초하여 생성된다.Existing video picture coding techniques include intra prediction and inter prediction. Intra prediction is prediction made by coding/decoding a picture block using the correlation between the current frame and the reference frame of the current frame. The current frame may have one or more reference frames. Specifically, the predicted picture block of the current picture block is generated based on samples within the reference frame of the current picture block.

일반적으로, 현재 픽처 블록의 예측 픽처 블록은 오직 하나의 참조 픽처 블록에 기초하여서만 생성되거나, 현재 픽처 블록의 예측 픽처 블록은 적어도 2개의 참조 픽처 블록에 기초하여 생성될 수 있다. 참조 픽처 블록에 기초하여 현재 픽처 블록의 예측 픽처 블록을 생성하는 것을 일방향 예측이라고 하고, 적어도 2개의 픽처 블록에 기초하여 현재 픽처 블록의 예측 픽처 블록을 생성하는 것을 양방향 예측이라고 한다. 양방향 인터 예측에서 적어도 2개의 참조 픽처 블록은 동일한 참조 프레임 또는 상이한 참조 프레임으로부터 온 것일 수 있다. 다시 말해, 본 출원에서 "방향"은 일반화된 정의이다. 본 출원에서 일 방향은 하나의 참조 픽처 블록에 대응한다. 이하에서 제1 방향 및 제2 방향은 상이한 참조 픽처 블록에 대응한다. 2개의 참조 픽처 블록은 현재 픽처 블록의 순방향 참조 프레임/역방향 참조 프레임에 포함되어 있을 수도 있다. 또는 하나의 참조 픽처 블록은 현재 픽처 블록의 순방향 참조 프레임에 포함되고, 다른 참조 픽처 블록은 현재 픽처 블록의 역방향 참조 프레임에 포함되어 있을 수 있다.In general, the prediction picture block of the current picture block may be generated based on only one reference picture block, or the prediction picture block of the current picture block may be generated based on at least two reference picture blocks. Generating a predictive picture block of the current picture block based on a reference picture block is called unidirectional prediction, and generating a predictive picture block of the current picture block based on at least two picture blocks is called bidirectional prediction. In bidirectional inter prediction, at least two reference picture blocks may be from the same reference frame or different reference frames. In other words, “direction” in this application is a generalized definition. In this application, one direction corresponds to one reference picture block. Hereinafter, the first direction and the second direction correspond to different reference picture blocks. The two reference picture blocks may be included in the forward reference frame/backward reference frame of the current picture block. Alternatively, one reference picture block may be included in the forward reference frame of the current picture block, and another reference picture block may be included in the backward reference frame of the current picture block.

선택적으로, 양방향 인터 예측은, 현재 비디오 프레임 및 현재 비디오 프레임 전에 인코딩되고 재생되는 비디오 프레임 간의 상호관계, 및 현재 비디오 프레임 및 현재 비디오 프레임 전에 인코딩되고 현재 비디오 프레임 후에 재생되는 비디오 프레임 간의 상호관계를 이용하여 수행되는 인터 예측일 수 있다.Optionally, two-way inter prediction utilizes a correlation between the current video frame and a video frame encoded and played before the current video frame, and a correlation between the current video frame and a video frame encoded before the current video frame and played after the current video frame. It may be inter prediction performed by:

양방향 인터 예측은 순방향 인터 예측과 역방향 인터 예측으로 통상 불리는 2개 방향에서의 인터 예측을 포함한다. 순방향 인터 예측은 현재 비디오 프레임과 이 현재 비디오 프레임에 앞서 인코딩되고 재생되는 비디오 프레임 간의 상호관계를 이용하여 수행된다. 역방향 인터 예측은 현재 비디오 프레임과 이 현재 비디오 프레임 전에 인코딩되고 현재 비디오 프레임 후에 재생되는 비디오 프레임 간의 상호관계를 이용하여 수행된다.Bidirectional inter prediction includes inter prediction in two directions, commonly referred to as forward inter prediction and backward inter prediction. Forward inter prediction is performed using the correlation between the current video frame and video frames encoded and played prior to the current video frame. Backward inter prediction is performed using the correlation between the current video frame and video frames encoded before the current video frame and played after the current video frame.

순방향 인터 예측은 순방향 참조 프레임 리스트 L0에 대응하고, 역방향 인터 예측은 역방향 참조 프레임 리스트 L1에 대응한다. 2개의 참조 프레임 리스트는 동일 수량의 참조 프레임 또는 상이한 수량의 참조 프레임을 포함할 수 있다.Forward inter prediction corresponds to the forward reference frame list L0, and backward inter prediction corresponds to the backward reference frame list L1. The two reference frame lists may contain the same number of reference frames or a different number of reference frames.

움직임 보상(MC: Motion Compensation)은 참조 픽처 블록을 이용하여 현재 픽처 블록을 예측하는 프로세스이다.Motion compensation (MC: Motion Compensation) is a process of predicting the current picture block using a reference picture block.

대부분의 인코딩 프레임워크에서, 비디오 시퀀스는 일련의 픽처를 포함하고, 픽처는 적어도 하나의 슬라이스로 분할되며, 각 슬라이스는 또한 픽처 블록으로 분할된다. 비디오 인코딩/디코딩은 픽처 블록에 의해 수행된다. 인코딩/디코딩 처리는 픽처의 좌상 코너 위치에서 시작하여 왼쪽에서 오른쪽으로 그리고 위에서 아래 열로 한 행(row)씩 수행된다. 여기서, 픽처 블록은 비디오 코딩 표준 H.264에서의 매크로 블록(MB: Macro Block)일 수도 있고, 또는 고효율 비디오 코딩(HEVC: High Efficiency Video Coding) 표준에서의 코딩 유닛(CU: Coding Unit)일 수도 있다. 이것은 본 출원의 실시예에서 특별히 한정되지 않는다.In most encoding frameworks, a video sequence contains a series of pictures, and the pictures are partitioned into at least one slice, and each slice is also partitioned into picture blocks. Video encoding/decoding is performed by picture blocks. The encoding/decoding process is performed row by row from left to right and from top to bottom, starting from the upper left corner of the picture. Here, the picture block may be a macro block (MB) in the video coding standard H.264, or a coding unit (CU) in the High Efficiency Video Coding (HEVC) standard. there is. This is not particularly limited in the embodiments of this application.

본 출원에서, 인코딩/디코딩되고 있는 픽처 블록을 현재 픽처 블록이라고 하고, 현재 픽처 블록이 위치한 픽처를 현재 프레임이라고 한다.In this application, the picture block being encoded/decoded is called the current picture block, and the picture in which the current picture block is located is called the current frame.

일반적으로, 현재 프레임은 일방향 예측 프레임(P 프레임)이거나, 또는 양방향 예측 프레임(B 프레임)일 수 있다. 현재 프레임이 P 프레임인 경우, 현재 프레임은 하나의 참조 프레임 리스트를 가진다. 현재 프레임이 B 프레임인 경우, 현재 프레임은 2개의 참조 프레임 리스트를 가지고, 이 2개의 리스트는 통상 L0 및 L1로 각각 지칭된다. 각 참조 프레임 리스트는 현재 프레임의 참조 프레임으로서 사용되는 적어도 하나의 재구성된 프레임을 포함한다. 이 참조 프레임은 현재 프레임의 인터 예측을 위한 참조 샘플을 제공하는 데 사용된다.In general, the current frame may be a one-way prediction frame (P frame) or a two-way prediction frame (B frame). If the current frame is a P frame, the current frame has one reference frame list. When the current frame is a B frame, the current frame has two reference frame lists, and these two lists are usually referred to as L0 and L1, respectively. Each reference frame list includes at least one reconstructed frame that is used as a reference frame for the current frame. This reference frame is used to provide reference samples for inter prediction of the current frame.

현재 프레임에서, 현재 픽처 블록의 이웃하는 픽처 블록(예컨대, 현재 블록의 왼쪽, 위쪽, 오른쪽)이 이미 인코딩/디코딩되었을 수 있고, 재구성된 픽처가 획득된다. 이웃하는 픽처 블록을 재구성된 픽처 블록이라고도 한다. 재구성된 픽처 블록의 재구성된 샘플 및 코딩 모드와 같은 정보가 사용 가능하게 된다.In the current frame, neighboring picture blocks of the current picture block (e.g., to the left, above, right of the current block) may have already been encoded/decoded, and a reconstructed picture is obtained. Neighboring picture blocks are also called reconstructed picture blocks. Information such as reconstructed samples and coding mode of the reconstructed picture block becomes available.

현재 프레임이 인코딩/디코딩되기에 앞서 인코딩/디코딩된 프레임을 재구성된 프레임이라고 한다. A frame encoded/decoded before the current frame is encoded/decoded is called a reconstructed frame.

움직임 벡터(MV, Motion Vector)는 인터 예측 프로세스에서 중요한 파라미터이고, 현재 픽처 블록에 대한 인코딩된 픽처 블록의 공간적 변이(spatial displacement)를 나타낸다. 통상, 움직임 벡터는 움직임 탐색과 같은 움직임 추정(ME, Motion Estimation) 방법을 이용하여 획득될 수 있다. 예비적인 인터 예측 기술(preliminary inter prediction technology)에서, 인코더는 비트스트림 내에서 현재 픽처 블록의 움직임 벡터를 전송하고, 이로써 디코더는 현재 픽처 블록의 예측 샘플을 재생하여, 재구성된 블록을 획득한다. 인코딩 효율을 더욱 향상시키기 위해, 참조 움직임 벡터를 이용하여 움직임 벡터를 차분을 이용하여 인코딩(differentially encoding)하는 방법이 후에 제공되는데, 구체적으로, 오직 움직임 벡터 차(MVD, Motion Vector Difference)만이 인코딩된다.Motion vector (MV) is an important parameter in the inter prediction process and represents the spatial displacement of the encoded picture block with respect to the current picture block. Typically, a motion vector can be obtained using a motion estimation (ME) method such as motion search. In preliminary inter prediction technology, the encoder transmits the motion vector of the current picture block within the bitstream, thereby causing the decoder to reproduce the prediction sample of the current picture block to obtain a reconstructed block. To further improve encoding efficiency, a method of differentially encoding a motion vector using a reference motion vector is provided later. Specifically, only the motion vector difference (MVD) is encoded. .

디코더 및 인코더가 도일한 참조 픽처 블록을 이용할 수 있도록 하기 위해, 인코더는 각 픽처 블록의 움직임 정보를 비트스트림 내에서 디코더에 보낼 필요가 있다. 인코더가 각 픽처 블록의 움직임 벡터를 바로 인코딩하면, 큰 전송 자원이 소비된다. 공간적으로 이웃하는 픽처 블록의 움직임 벡터는 강하게 상호 연관되어 있고, 현재 픽처 블록의 움직임 벡터는 인코딩된 이웃 픽처 블록의 움직임 벡터에 기초하여 예측될 수 있다. 예측을 통해 획득된 움직임 벡터를 MVP라고 하며, 현재 픽처 블록과 MVP 간의 차를 MVD라고 한다.In order for the decoder and encoder to use the same reference picture block, the encoder needs to send the motion information of each picture block to the decoder within the bitstream. If the encoder directly encodes the motion vector of each picture block, large transmission resources are consumed. The motion vectors of spatially neighboring picture blocks are strongly correlated, and the motion vector of the current picture block can be predicted based on the motion vector of the encoded neighboring picture block. The motion vector obtained through prediction is called MVP, and the difference between the current picture block and MVP is called MVD.

비디오 코딩 표준 H.264에서는, 예측 정밀도를 향상시키기 위해 움직임 추정 프로세스에서 복수 참조 프레임 예측을 사용한다. 구체적으로, 복수의 재구성된 프레임을 저장하는 버퍼가 생성되고, 그 버터 내의 모든 재구성된 프레임은 움직임 보상을 위해 최적의 참조 픽처 블록을 위해 탐색 되며, 이로써 시간적 리던던시(temporal redundency)를 더 잘 제거할 수 있다. 비디오 코딩 표준 H.264에서는, 인터 예측에 2개의 버터를 사용한다: 참조 프레임 리스트 0(참조 리스트 0) 및 참조 프레임 리스트 1(참조 리스트 1). 각 리스트 내에서의 최적 참조 블록이 위치한 참조 프레임이 인덱스 값에 의해 표시되는데, 즉, ref_idx_l0 및 ref_idx_l1이다. 각 참조 프레임 리스트에서, 참조 픽처 블록의 움직임 정보는 참조 프레임 인덱스 값(ref_idx_l0 또는 ref_idx_l1), MVP 플래그, 및 MVD를 포함한다. 디코더는 참조 프레임 인덱스 값, MVP 플래그, MVD에 기초하여 선택된 참조 프레임 내에서 올바른 참조 픽처 블록을 찾을 수 있다. In the video coding standard H.264, multiple reference frame prediction is used in the motion estimation process to improve prediction precision. Specifically, a buffer is created to store multiple reconstructed frames, and all reconstructed frames within that buffer are searched for optimal reference picture blocks for motion compensation, thereby better eliminating temporal redundancy. You can. In the video coding standard H.264, two butters are used for inter prediction: Reference Frame List 0 (Reference List 0) and Reference Frame List 1 (Reference List 1). The reference frame in which the optimal reference block in each list is located is indicated by the index value, that is, ref_idx_l0 and ref_idx_l1. In each reference frame list, the motion information of the reference picture block includes a reference frame index value (ref_idx_l0 or ref_idx_l1), MVP flag, and MVD. The decoder can find the correct reference picture block within the selected reference frame based on the reference frame index value, MVP flag, and MVD.

현재, HEVC 표준에서 자주 사용되는 인터 예측 모드는 AMVP(Advanced Motion Vector Prediction), 병합(Merge) 모드, 비전환 움직임 모델 예측 모드(non-translational motion model prediction mode)이다.Currently, inter prediction modes frequently used in the HEVC standard are Advanced Motion Vector Prediction (AMVP), Merge mode, and non-translational motion model prediction mode.

AMVP 모드에서, 인코더는 현재 픽처 블록에 공간적으로 시간적으로 인접한 인코딩된 픽처 블록의 움직임 벡터를 이용하여 후보 움직임 벡터 리스트를 구성하고, 후보 움직임 벡터 리스트 내의 최적 움직임 벡터를 레이트-왜곡 비용(rate-distortion cost)에 기초하여 현재 픽처 블록의 MVP로서 결정한다. 추가로, 인코더는 MVP를 중심으로 이웃에서 움직임 탐색을 수행하여, 현재 픽처 블록의 움직임 벡터를 획득한다. 인코더는 후보 움직임 벡터 리스트 내에서의 MVP의 인덱스 값(즉, MVP 플래그), 참조 프레임 인덱스 값 및 MVD를 디코더에 전송한다.In AMVP mode, the encoder constructs a candidate motion vector list using the motion vectors of encoded picture blocks that are spatially and temporally adjacent to the current picture block, and calculates the optimal motion vector in the candidate motion vector list with a rate-distortion cost. Based on the cost, the MVP of the current picture block is determined. Additionally, the encoder performs motion search in the neighbors centered on the MVP to obtain the motion vector of the current picture block. The encoder transmits the index value of the MVP in the candidate motion vector list (i.e., MVP flag), the reference frame index value, and the MVD to the decoder.

병합 모드에서, 인코더는 현재 픽처 블록에 공간적으로 또는 시간적으로 인접하는 인코딩된 픽처 블록의 움직임 정보를 이용하여 후보 움직임 정보 리스트를 구성하고, 레이트-왜곡 비용에 기초하여 현재 픽처 블록의 움직임 정보로서 후보 움직임 정보 리스트 내에서 최적 움직임 정보를 결정한다. 인코더는 후보 움직임 정보 리스트 내의 최적 움직임 정보의 위치의 인덱스 값을 디코더에 전송한다.In merge mode, the encoder constructs a candidate motion information list using the motion information of the encoded picture block that is spatially or temporally adjacent to the current picture block, and selects the candidate motion information as the motion information of the current picture block based on the rate-distortion cost. Determine optimal motion information within the motion information list. The encoder transmits the index value of the position of optimal motion information in the candidate motion information list to the decoder.

비전환 움직임 모델 예측 모드에서는, 인코더 및 디코더가 동일한 움직임 모델을 이용하여 현재 픽처 블록의 모든 서브블록의 움직임 정보를 도출하고, 모든 버스블록의 움직임 정보에 기초한 움직임 보상을 수행하여 예측 픽처 블록을 획득한다. 이것은 예측 효율을 향상시킨다. 인코더 및 디코더에 의해 자주 사용되는 움직임 모델은 4-파라미터 아핀 모델(affine model), 6-파라미터 아핀 모델, 또는 8-파라미터 바이리니어 모델(bilinear model)이다.In the non-switched motion model prediction mode, the encoder and decoder use the same motion model to derive motion information of all subblocks of the current picture block and perform motion compensation based on the motion information of all bus blocks to obtain a predicted picture block. do. This improves prediction efficiency. Motion models frequently used by encoders and decoders are the 4-parameter affine model, 6-parameter affine model, or 8-parameter bilinear model.

예컨대, 4-파라미터 아핀 변환 모델은 현재 픽처 블록의 좌상 코너에 있는 샘플에 대한 2개의 샘플의 좌표 및 그 2개의 샘플의 움직임 벡터에 의해 나타내어질 수 있다. 여기서, 움직임 모델 파라미터를 나타내기 위해 사용하는 샘플을 제어점이라고 한다. 현재 픽처 블록의 좌상 코너(0,0)에 있는 샘플 및 현재 픽처 블록의 우상 코너(W,0)에 있는 샘플이 제어점이고, 헌재 픽처 블록의 좌상 코너 및 우상 코더의 샘플들의 움직임 벡터들은 각각 이고, 현재 픽처 블록의 각 서브블록의 움직임 정보는 다음 수신 (1)에 따라 획득된다. 이하의 수신 (1)에서, 는 현재 픽처 블록의 좌상 코너에 있는 샘플에 대한 서브블록의 좌표이고, 는 그 서브블록의 움직임 벡터이며, W는 현재 픽처 블록의 폭이다. For example, a 4-parameter affine transformation model can be represented by the coordinates of two samples and the motion vectors of the two samples relative to the sample in the upper left corner of the current picture block. Here, samples used to represent motion model parameters are called control points. The sample in the upper left corner (0,0) of the current picture block and the sample in the upper right corner (W,0) of the current picture block are the control points, and the motion vectors of the samples in the upper left corner of the constitutional picture block and the upper right coder are respectively and , and the motion information of each subblock of the current picture block is obtained according to the following reception (1). In reception (1) below, is the coordinate of the subblock for the sample in the upper left corner of the current picture block, is the motion vector of that subblock, and W is the width of the current picture block.

(1) (One)

예컨대, 6-파라미터 아핀 변환 모델은 현재 픽처 블록의 좌상 코너에 있는 샘플에 대한 3개의 샘플의 좌표 및 3개의 샘플의 움직임 벡터를 이용하여 나타내어진다. 현재 픽처 블록의 좌상 코너(0,0)의 샘플, 현재 픽처 블록의 우상 코너(W,0)의 샘플, 및 현재 픽처 블록의 좌하 코너(0,H)의 샘플, 그리고 현재 픽처 블록의 좌상 코너, 우상 코너, 및 좌하 코너의 샘플들의 움직임 벡터들이 각각, , , 및 이면, 현재 픽처 블록의 각 서브블록의 움직임 정보는 다음 수식 (2)에 따라 획득된다. 다음 수식 (2)에서, 는 현재 픽처 블록의 좌상 코너의 샘플에 대한 서브블록의 좌표이고, 는 그 서브블록의 움직임 벡터이며, W 및 H는 각각 현재 픽처 블록의 폭 및 높이이다.For example, a 6-parameter affine transformation model is expressed using the coordinates of 3 samples and the motion vector of 3 samples for the sample in the upper left corner of the current picture block. A sample from the upper left corner (0,0) of the current picture block, a sample from the upper right corner (W,0) of the current picture block, and a sample from the lower left corner (0,H) of the current picture block, and a sample from the upper left corner of the current picture block. , the motion vectors of the samples in the upper right corner and lower left corner are respectively, , , and If so, the motion information of each subblock of the current picture block is obtained according to the following equation (2). In the following formula (2), is the coordinate of the subblock for the sample of the upper left corner of the current picture block, is the motion vector of that subblock, and W and H are the width and height of the current picture block, respectively.

(2) (2)

예컨대, 8-파라미터 바이리니어 모델은 현재 픽처 블록의 좌상 코너의 샘플에 대한 4개의 샘플의 좌표 및 그 4개의 샘플의 움직임 벡터를 이용하여 나타내어질 수 있다. 현재 픽처 블록의 좌상 코너(0,0)의 샘플, 현재 픽처 블록의 우상 코너(W,0)의 샘플, 현재 픽처 블록의 좌하 코너(0,H)의 샘플, 및 현재 픽처 블록의 우하 코너(W,H)의 샘플이 제어점이고, 현재 픽처 블록의 좌상 코너, 우상 코너, 좌하 코너, 우하 코너의 샘플들의 움직임 벡터들이 각각, , , , 및 이면, 현재 픽처 블록의 각 서브블록의 움직임 정보는 다음 수식 (3)에 따라 획득된다. 다음 수식 (3)에서, 는 현재 픽처 블록의 좌상 코너의 샘플에 대한 서브블록의 좌표이고, 는 그 서브블록의 움직임 벡터이며, W 및 H는 각각 현재 픽처 블록의 폭 및 높이이다.For example, an 8-parameter bilinear model can be expressed using the coordinates of four samples for the sample of the upper left corner of the current picture block and the motion vectors of the four samples. A sample of the upper left corner (0,0) of the current picture block, a sample of the upper right corner (W,0) of the current picture block, a sample of the lower left corner (0,H) of the current picture block, and a sample of the lower right corner of the current picture block ( The samples of W, H) are the control points, and the motion vectors of the samples of the upper left corner, upper right corner, lower left corner, and lower right corner of the current picture block are respectively, , , , and If so, the motion information of each subblock of the current picture block is obtained according to the following equation (3). In the following formula (3), is the coordinate of the subblock for the sample of the upper left corner of the current picture block, is the motion vector of that subblock, and W and H are the width and height of the current picture block, respectively.

(3) (3)

상술한 인터 예측 모드 중 어느 하나에서, 인터 예측이 양방향 인터 예측이면, 인코더가 각 방향에서의 각 픽처 블록의 움직임 정보를 디코더에 보내야 한다는 것을 알 수 있다. 결과적으로, 움직임 정보는 상대적으로 큰 전송 자원을 점유한다. 이로 인해 전송 자원의 효과적인 이용, 전송 레이트, 및 코딩 압축 효율을 저하시킨다.In any of the above-described inter prediction modes, it can be seen that if inter prediction is bidirectional inter prediction, the encoder must send motion information of each picture block in each direction to the decoder. As a result, motion information occupies relatively large transmission resources. This reduces effective use of transmission resources, transmission rate, and coding compression efficiency.

이러한 문제를 해결하기 위해, 본 출원은 양방항 인터 예측 방법을 제공한다. 이 양방향 인터 예측 방법에서는, 인코더가 제1 방향에서의 현재 픽처 블록의 움직임 정보를 디코더에 보내고, 디코더는, 제1 방향에서의 현재 픽처 블록의 움직임 정보를 수신한 후, 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산한다. 이런 식으로, 제1 방향에서의 현재 픽처 블록의 움직임 정보 및 제2 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플들이 계산될 수 있다.To solve this problem, this application provides a two-way inter prediction method. In this two-way inter prediction method, the encoder sends the motion information of the current picture block in the first direction to the decoder, and the decoder receives the motion information of the current picture block in the first direction, and then sends the motion information of the current picture block in the first direction to the decoder. Motion information of the current picture block in the second direction is calculated based on motion information of the picture block. In this way, prediction samples of the current picture block may be calculated based on motion information of the current picture block in the first direction and motion information of the current picture block in the second direction.

본 출원에서 제공되는 양방향 인터 예측 방법은 양방향 인터 예측 장치, 비디오 코딩 장치, 비디오 코덱, 또는 다른 비디오 코딩 기능을 가진 장치에 의해 수행된다.The bidirectional inter prediction method provided in this application is performed by a bidirectional inter prediction device, a video coding device, a video codec, or a device with another video coding function.

본 출원에서 제공되는 양방향 인터 예측 방법은 비디오 코딩 시스템에 적용 가능하다. 비디오 코딩 시스템에서는, 비디오 인코더(100) 및 비디오 디코더(200)가 본 출원에서 제공된 양방향 인터 예측 방법의 예에 따라 현재 픽처 블록의 움직임 정보를 계산하도록 구성된다. 구체적으로, 제2 방향에서의 현재 픽처 블록의 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 계산되고, 이로써 현재 픽처 블록의 예측 샘플들이 제1 방향에서의 현재 픽처 블록의 움직임 정보 및 제2 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 결정된다. 이러한 방식에서, 비디오 인코더(100) 및 비디오 디코더(200) 간에는 제1 방향에서의 현재 픽처 블록의 움직임 정보만이 전송될 필요가 있다. 이것은 전송 자원 이용 및 코딩 압축 효율을 효과적으로 향상시킨다.The bidirectional inter prediction method provided in this application is applicable to a video coding system. In the video coding system, the video encoder 100 and the video decoder 200 are configured to calculate motion information of the current picture block according to the example of the bidirectional inter prediction method provided in this application. Specifically, the motion information of the current picture block in the second direction is calculated based on the motion information of the current picture block in the first direction, so that the prediction samples of the current picture block are calculated based on the motion information of the current picture block in the first direction. information and motion information of the current picture block in the second direction. In this way, only motion information of the current picture block in the first direction needs to be transmitted between the video encoder 100 and the video decoder 200. This effectively improves transmission resource utilization and coding compression efficiency.

도 1은 비디오 코딩 시스템(1)의 구조를 보여준다. 도 1에 도시된 바와 같이, 비디오 코딩 시스템(1)은 발원지 장치(10) 및 목적지 장치(20)를 포함한다. 발원지 장치(10)는 인코딩된 비디오 데이터를 생성한다. 발원지 장치(10)를 비디오 인코딩 장치 또는 비디오 인코딩 기기라고도 한다. 목적지 장치(20)는 발원지 장치(10)에 의해 생성된 인코딩된 비디오 데이터를 디코딩한다. 목적지 장치(20)를 또한 비디오 디코딩 장치 또는 비디오 디코딩 기기라고도 한다. 발원지 장치(10) 및/또는 목적지 장치(20)는 적어도 하나의 프로세서와, 그 적어도 하나의 프로세서에 연결된 메모리를 포함할 수 있다. 메모리는, 제한되는 것은 아니지만, ROM, RAM, EEPROM, 플래시 메모리, 또는 컴퓨터에 의해 액세스될 수 있는 데이터 구조 또는 명령의 형태로 필요한 프로그램 코드를 저장하도록 구성된 다른 어떤 형태의 매체일 수 있다. 이것은 본 출원에 특히 한정되는 것은 아니다.Figure 1 shows the structure of the video coding system 1. As shown in Figure 1, the video coding system 1 includes a source device 10 and a destination device 20. Source device 10 generates encoded video data. The source device 10 is also called a video encoding device or video encoding device. Destination device 20 decodes the encoded video data generated by source device 10. The destination device 20 is also called a video decoding device or video decoding device. The source device 10 and/or the destination device 20 may include at least one processor and a memory connected to the at least one processor. Memory may be, but is not limited to, ROM, RAM, EEPROM, flash memory, or any other form of media configured to store the necessary program code in the form of data structures or instructions that can be accessed by the computer. This is not particularly limited to this application.

발원지 장치(10) 및 목적지 장치(20)는, 데스크톱 컴퓨터, 모바일 컴퓨팅 장치, 노트북(예컨대, 랩톱) 컴퓨터, 태블릿 컴퓨터, 셋톱 박스, 스마트폰과 같은 핸드헬드 전화기, 텔레비전세트, 카메라, 디스플레이 장치, 디지털 미디어 플레이어, 비디오 게임 콘솔, 차량 탑재 컴퓨터 또는 이와 유사한 장치를 포함하는 다양한 장치를 포함할 수 있다.Source device 10 and destination device 20 may include desktop computers, mobile computing devices, notebook (e.g., laptop) computers, tablet computers, set-top boxes, handheld telephones such as smartphones, television sets, cameras, display devices, It may include a variety of devices, including digital media players, video game consoles, vehicle-mounted computers, or similar devices.

목적지 장치(20)는 링크(30)를 통해 발원지 장치(10)로부터 인코딩된 비디오 데이터를 수신할 수 있다. 링크(30)는 인코딩된 비디오 데이터를 발원지 장치(10)로부터 목적지 장치(20)로 전송할 수 있는 하나 이상의 매체 및/또는 장치를 포함할 수 있다. 예컨대, 링크(30)는 발원지 장치(10)가 실시간으로 목적지 장치(20)에 인코딩된 비디오 데이터를 직접 전송할 수 있도록 하는 하나 이상의 통신 매체를 포함할 수 있다. 이 예에서, 발원지 장치(10)는 통신 표준(예컨대, 무선 통신 프로토콜)에 따라 인코딩된 비디오 데이터를 변조하고, 변조된 비디오 데이터를 목적지 장치(20)에 전송할 수 있다. 하나 이상의 통신 매체는 무선 및/또는 유선 통신 매체로서, 예컨대, 무선 주파수(RF) 스펙트럼, 또는 하나 이상의 물리 전송 케이블을 포함할 수 있다. 하나 이상의 통신 매체는 패킷-기반 네트워크의 일부를 구성할 수 있고, 패킷-기반 네트워크는, 예컨대, LAN, WAN, 또는 글로벌 네트워크(예컨대 인터넷)이다. 하나 이상의 통신 매체는 라우터, 스위치, 기지국, 또는 발원지 장치(10)에서 목적지 장치(20)로의 통신을 구현하는 다른 장치를 포함할 수 있다.Destination device 20 may receive encoded video data from source device 10 via link 30. Link 30 may include one or more media and/or devices capable of transmitting encoded video data from source device 10 to destination device 20. For example, link 30 may include one or more communication media that allows source device 10 to transmit encoded video data directly to destination device 20 in real time. In this example, source device 10 may modulate encoded video data according to a communication standard (e.g., a wireless communication protocol) and transmit the modulated video data to destination device 20. The one or more communication media may be wireless and/or wired, such as radio frequency (RF) spectrum, or one or more physical transmission cables. One or more communication media may form part of a packet-based network, such as a LAN, WAN, or global network (such as the Internet). One or more communication media may include a router, switch, base station, or other device that implements communication from source device 10 to destination device 20.

또 다른 예에서, 인코딩된 비디오 데이터는 출력 인터페이스(140)를 통해 저장 장치(40)로 출력될 수 있다. 마찬가지로, 인코딩된 비디오 데이터는 입력 인터페이스(240)를 통해 저장 장치(40)로부터 액세스될 수 있다. 저장 장치(40)는 블루레이 디스크, DVD, CD-ROM, 플래시 메모리, 또는 인코딩된 비디오 데이터를 저장하도록 구성된 다른 적절한 디지털 저장 매체와 같은 여러 종류의 로컬 액세스 가능한 데이터 자장 매체를 포함할 수 있다.In another example, encoded video data may be output to storage device 40 through output interface 140. Likewise, encoded video data may be accessed from storage device 40 via input interface 240. Storage device 40 may include any type of locally accessible data storage medium, such as a Blu-ray disk, DVD, CD-ROM, flash memory, or other suitable digital storage medium configured to store encoded video data.

또 다른 예에서, 저장 장치(40)는 파일 서버 또는 발원지 장치(10)에 의해 생성된 인코딩된 비디오 데이터를 저장하는 다른 중간 저장 장치에 대응할 수 있다. 이 예에서, 목적지 장치(20)는 스트리밍 전송 또는 다운로딩을 통해 저장 장치(40)로부터 저장된 비디오 데이터를 획득할 수 있다. 파일 서버는 인코딩된 비디오 데이터를 저장하고 인코딩된 비디오 데이터를 목적지 장치(20)에 전송할 수 있는 서버라면 어떤 형태라도 된다. 예컨대, 파일 서버는 WWW 서버(예컨대 웹사이트에 사용되는), FTP 서버, NAS 장치 및 로컬 디스크 드라이브를 포함할 수 있다.In another example, storage device 40 may correspond to a file server or other intermediate storage device that stores encoded video data generated by source device 10. In this example, destination device 20 may obtain stored video data from storage device 40 through streaming transmission or downloading. The file server may be any server capable of storing encoded video data and transmitting the encoded video data to the destination device 20. For example, file servers may include WWW servers (such as those used for websites), FTP servers, NAS devices, and local disk drives.

목적지 장치(20)는 임의의 표준 데이터 연결(예컨대 인터넷 연결)을 통해 인코딩된 비디오 데이터에 액세스할 수 있다. 예시적인 형태의 데이터 연결은 파일 서버에 저장된 인코딩된 비디오 데이터에 액세스하기에 적합한 무선 채널 또는 유선 연결(예컨대, 케이블 모뎀), 또는 그 조합을 포함한다. 인코딩된 비디오 데이터는 파일 서버에서 스트리밍 방식으로, 또는 다운로딩을 통해, 또는 그 조합으로 전송될 수 있다.Destination device 20 may access the encoded video data over any standard data connection (eg, an Internet connection). Exemplary types of data connections include wireless channels or wired connections (eg, cable modems) suitable for accessing encoded video data stored on a file server, or a combination thereof. Encoded video data may be transmitted streaming from a file server, via downloading, or a combination thereof.

본 출원의 양방향 인터 예측 방법은 무선 애플리케이션 시나리오에 한정되지 않는다. 예컨대, 본 출원의 양방향 인터 예측 방법은 다음의 애플리케이션, 즉 공중 텔레비전 방송(over-the-air television broadcasting), 케이블 텔레비전 전송, 위성 텔레비전 전송, 스트리밍 비디오 전송(예컨대, 인터넷을 통해), 데이터 저장 매체에 저장된 비디오 데이터의 인코딩, 데이터 자장 매체에 저장된 비디오 데이터의 디코딩, 또는 다른 애플리케이션과 같은 다수의 멀티미디어 애플리케이션을 지원하기 위한 비디오 코딩에 적용될 수 있다. 몇몇 예에서, 비디오 코딩 시스템(1)은 일방향 또는 양방향 비디오 전송을 지원하도록 구성될 수도 있고, 스트리밍 비디오 전송, 비디오 재생, 비디오 방송 및/또는 비디오 전화와 같은 애플리케이션을 지원하도록 구성될 수 있다.The two-way inter prediction method of the present application is not limited to wireless application scenarios. For example, the two-way inter prediction method of the present application may be used in the following applications: over-the-air television broadcasting, cable television transmission, satellite television transmission, streaming video transmission (e.g., via the Internet), and data storage media. It can be applied to video coding to support a number of multimedia applications, such as encoding of video data stored in a data storage medium, decoding of video data stored in a data magnetic medium, or other applications. In some examples, video coding system 1 may be configured to support one-way or two-way video transmission, and may be configured to support applications such as streaming video transmission, video playback, video broadcasting, and/or video telephony.

도 1에 도시된 비디오 코딩 시스템(1)은 단지 비디오 코딩 시스템의 일례에 불과하고, 본 출원에서의 비디오 코딩 시스템을 한정하는 것이 아님을 밝혀둔다. 본 출원에서 제공되는 양방향 인터 예측 방법은 또한, 인코딩 장치와 디코딩 장치 간에 데이터 통신이 없는 시나리오에도 적용될 수 있다. 다른 예에서, 인코딩할 비디오 데이터 또는 인코딩된 비디오 데이터가 로컬 메모리에서 조회되거나, 스트리밍 방식으로 네트워크상에서 전송될 수 있거나 기타 등등의 경우가 있을 수 있다. 비디오 디코딩 장치는 또한 메모리로부터 인코딩된 비디오 데이터를 획득하고, 그 인코딩된 비디오 데이터를 디코딩할 수 있다.It should be noted that the video coding system 1 shown in FIG. 1 is only an example of a video coding system and does not limit the video coding system in this application. The bidirectional inter prediction method provided in this application can also be applied to scenarios where there is no data communication between the encoding device and the decoding device. In other examples, the video data to be encoded or encoded video data may be retrieved from local memory, transmitted over a network in a streaming manner, or so forth. The video decoding device may also obtain encoded video data from memory and decode the encoded video data.

도 1에서, 발원지 장치(10)는 비디오 소스(101), 비디오 인코더(102), 및 출력 인터페이스(103)를 포함한다. 어떤 예에서는, 출력 인터페이스(103)는 레귤레이터/복조기 (모뎀) 및/또는 전송기를 포함할 수 있다. 비디오 소스(101)는 비디오 촬상 장치(예컨대, 카메라), 미리 촬상된 비디오 데이터를 포함하는 비디오 아치브(archive), 및/또는 비디오 데이터를 생성하기 위한 컴퓨터 그래픽 시스템, 또는 이들 비디오 데이터 소스의 조합을 포함할 수 있다.In Figure 1, the source device 10 includes a video source 101, a video encoder 102, and an output interface 103. In some examples, output interface 103 may include a regulator/demodulator (modem) and/or transmitter. Video source 101 may be a video imaging device (e.g., a camera), a video archive containing pre-imaged video data, and/or a computer graphics system for generating video data, or a combination of these video data sources. may include.

비디오 인코더(102)는 비디오 소스(101)로부터의 비디오 데이터를 인코딩할 수 있다. 어떤 예에서, 발원지 장치(10)는 인코딩된 비디오 데이터를 출력 인터페이스(103)를 통해 목적지 장치(20)로 바로 전송한다. 다른 예에서, 다르게는 인코딩된 비디오 데이터가 저장 장치(40)에 저장될 수 있고, 이로써 이후에 목적지 장치(20)가 디코딩 및/또는 재생을 위해 인코딩된 비디오 데이터에 액세스할 수 있다. Video encoder 102 may encode video data from video source 101. In some examples, source device 10 transmits the encoded video data directly to destination device 20 via output interface 103. In another example, otherwise encoded video data may be stored in storage device 40 so that destination device 20 can later access the encoded video data for decoding and/or playback.

도 1의 예에서, 목적지 장치(20)는 디스플레이 장치(201), 비디오 디코더(202) 및 입력 인터페이스(203)를 포함한다. 어떤 예에서, 입력 인터페이스(203)는 수신기 및/또는 모뎀을 포함한다. 입력 인터페이스(203)는 링크(30)를 통해 및/또는 저장 장치(40)로부터 인코딩된 비디오 데이터를 수신할 수 있다. 디스플레이 장치(201)는 목적지 장치(20)와 통합되거나 또는 목적지 장치(20) 외부에 배치될 수 있다. 통상, 디스플레이 장치(201)는 디코딩된 비디오 데이터를 표시한다. 디스플레이 장치(201)는 여러 타입의 디스플레이 장치를 포함할 수 있는데, 예컨대, LCD, 플라즈마 디스플레이, 유기 발광 다이오드 디스플레이, 또는 임의의 종류의 디스플레이 장치가 있다.In the example of Figure 1, destination device 20 includes a display device 201, a video decoder 202, and an input interface 203. In some examples, input interface 203 includes a receiver and/or modem. Input interface 203 may receive encoded video data via link 30 and/or from storage device 40 . The display device 201 may be integrated with the destination device 20 or may be placed external to the destination device 20 . Typically, the display device 201 displays decoded video data. Display device 201 may include several types of display devices, such as LCD, plasma display, organic light emitting diode display, or any type of display device.

선택적으로, 비디오 인코더(102)와 비디오 디코더(202)는 각각 오디오 인코더 및 오디오 디코더와 통합될 수 있고, 공통의 데이터 스트림 또는 별도의 데이터 스트림 내의 오디오와 비디오 모두를 인코딩하기 위해, 적절한 멀티플렉서-디멀티플렉서 유닛 또는 다른 하드웨어 및 소프트웨어를 포함할 수 있다.Optionally, video encoder 102 and video decoder 202 may be integrated with an audio encoder and an audio decoder, respectively, and a suitable multiplexer-demultiplexer to encode both audio and video within a common data stream or separate data streams. It may include units or other hardware and software.

비디오 인코더(102) 및 비디오 디코더(202)는 적어도 하나의 마이크로프로세서, 디지털 신호 처리기(DSP, Digital Signal Processor), ASIC(Application-Specific Integrated Circuit), FPGA(Field Programmable Gate Array), 이산 로직(discrete logic), 하드웨어 또는 이들의 임의의 조합을 포함할 수 있다. 본 출원에서 제공되는 양방향 인터 예측 방법이 소프트웨어를 이용하여 구현되면, 그 소프트웨어를 위해 사용되는 명령은 적절한 비휘발성 컴퓨터 판독 가능한 저장 매체에 저장되고, 적어도 하나의 프로세서는 그 명령을 하드웨어에서 실행하여 본 출원을 구현하는 데 사용된다. 이상의 것들 중 어느 것이든(하드웨어, 소프트웨어, 하드웨어와 소프트웨어의 조합 등을 포함하여) 적어도 하나의 프로세서로서 간주될 수 있다. 비디오 인코더(102)는 인코더 내에 포함될 수 있고, 비디오 디코더(202)는 디코더 내에 포함될 수 있으며, 인코더 또는 디코더는 대응하는 장치 내의 인코더/디코더(코덱) 조합의 일부일 수 있다.The video encoder 102 and the video decoder 202 include at least one microprocessor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field programmable gate array (FPGA), and discrete logic. logic), hardware, or any combination thereof. If the bidirectional inter prediction method provided in the present application is implemented using software, instructions used for the software are stored in a suitable non-volatile computer-readable storage medium, and at least one processor executes the instructions in hardware. Used to implement the application. Any of the above (including hardware, software, combinations of hardware and software, etc.) may be considered at least one processor. Video encoder 102 may be included within an encoder, video decoder 202 may be included within a decoder, and the encoder or decoder may be part of an encoder/decoder (codec) combination within a corresponding device.

본 출원에서 비디오 인코더(102) 및 비디오 디코더(202)는 비디오 압축 표준(예컨대, HEVC)에 따른 동작을 수행할 수도 있고, 다른 산업 표준에 따른 동작을 수행할 수도 있다. 이것은 본 출원에서 특히 한정되지 않는다.In the present application, the video encoder 102 and the video decoder 202 may perform operations according to a video compression standard (eg, HEVC) or may perform operations according to other industry standards. This is not particularly limited in this application.

비디오 인코더(102)는, 현재 픽처 블록에 대해 양방향 움직임 추정을 수행하여, 제1 방향에서의 현재 픽처 블록의 움직임 정보를 결정하고, 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산하도록 구성된다. 여기서, 비디오 인코더(102)는 제1 방향에서의 현재 픽처 블록의 움직임 정보 및 제2 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 현재 픽처 블록의 예측 픽처 블록을 결정한다. 또한, 비디오 인코더(102)는, 현재 픽처 블록과 이 현재 픽처 블록의 예측 픽처 블록 간의 잔차(residual)에 대해 변환 및 양자화와 같은 동작을 수행하여, 비트스트림을 생성하고, 이 비트스트림을 비디오 디코더(202)에 보낸다. 비트스트림은 제1 방향에서의 현재 픽처 블록의 움직임 정보와, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용되는 지시 정보를 포함한다. 이 지시 정보는 상이한 식별자들을 이용하여 나타내어질 수 있다. 지시 정보를 나타내는 방법에 대해, 이하의 설명을 참조할 수 있다.The video encoder 102 performs bidirectional motion estimation on the current picture block, determines motion information of the current picture block in the first direction, and generates a second motion information based on the motion information of the current picture block in the first direction. It is configured to calculate motion information of the current picture block in the direction. Here, the video encoder 102 determines a predicted picture block of the current picture block based on motion information of the current picture block in the first direction and motion information of the current picture block in the second direction. In addition, the video encoder 102 performs operations such as transformation and quantization on the residual between the current picture block and the prediction picture block of the current picture block to generate a bitstream, and sends this bitstream to the video decoder. Send to (202). The bitstream includes motion information of the current picture block in the first direction and instruction information used to instruct the second motion information to be determined based on the first motion information. This indication information may be indicated using different identifiers. For how to display instruction information, please refer to the description below.

선택적으로, 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산하기 위한, 비디오 인코더(102)에 의해 사용되는 방법은: 비디오 인코더(102)가 제1 방향에서의 현재 픽처 블록의 움직임 벡터에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 벡터를 결정하거나; 또는 비디오 인코더(102)가 제1 방향에서의 현재 픽처 블록의 움직임 벡터 차에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 벡터 차를 결정하고, 제2 방향에서의 현재 픽처 블록의 움직임 벡터 차와 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터에 기초하여, 제2 방향에서의 현재 픽처 블록의 움직임 벡터를 결정하는 것이다.Optionally, the method used by video encoder 102 to calculate motion information of the current picture block in the second direction based on motion information of the current picture block in the first direction is: video encoder 102 determine the motion vector of the current picture block in the second direction based on the motion vector of the current picture block in the first direction; Or, the video encoder 102 determines the motion vector difference of the current picture block in the second direction based on the motion vector difference of the current picture block in the first direction, and the motion vector difference of the current picture block in the second direction and determining the motion vector of the current picture block in the second direction based on the predicted motion vector of the current picture block in the second direction.

도 4를 참조한다. 비디오 디코더(202)는: 비트스트림을 획득하고, 그 비트스트림을 파싱하여, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록, 다시 말해 한 방향에서의 움직임 정보에 기초하여 다른 방향에서의 움직임 정보를 도출 및 계산할 것을 결정하도록 지시하는 데 사용되는 지시 정보를 획득하며(S400) - 여기서 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이며, 제1 방향과 제2 방향은 상이함 -; 제1 움직임 정보를 획득하고(S401); 획득한 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하고(S402); 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정(S403)하도록 구성된다.See Figure 4. The video decoder 202: obtains a bitstream, parses the bitstream, and determines second motion information based on first motion information, that is, based on motion information in one direction and motion information in another direction. Obtains instruction information used to determine whether to derive and calculate motion information (S400) - where the first motion information is motion information of the current picture block in the first direction, and the second motion information is the motion information in the second direction. This is the motion information of the current picture block, and the first direction and the second direction are different -; Obtain first motion information (S401); Determine second motion information based on the obtained first motion information (S402); It is configured to determine a prediction sample of the current picture block based on the first motion information and the second motion information (S403).

제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산하기 위한, 비디오 디코더(202)가 사용하는 방법은: 비디오 디코더(202)가 제1 방향에서의 현재 픽처 블록의 움직임 벡터에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 벡터를 결정하거나; 또는 비디오 디코더(202)가 제1 방향에서의 현재 픽처 블록의 움직임 벡터 차에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 벡터 차를 결정하고, 제2 방향에서의 현재 픽처 블록의 움직임 벡터 차 및 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 벡터를 결정하는 것일 수 있다.The method used by the video decoder 202 to calculate motion information of the current picture block in the second direction based on the motion information of the current picture block in the first direction is: determine the motion vector of the current picture block in the second direction based on the motion vector of the current picture block in; Or, the video decoder 202 determines the motion vector difference of the current picture block in the second direction based on the motion vector difference of the current picture block in the first direction, and the motion vector difference of the current picture block in the second direction and determining the motion vector of the current picture block in the second direction based on the predicted motion vector of the current picture block in the second direction.

도 2는 본 출원의 일 실시예에 따른 비디오 인코더(102)의 개략 구조도이다. 도 2에 도시된 바와 같이, 비디오 인코더(102)는 비디오를 후처리 엔티티(41)에 출력하도록 구성된다. 후처리 엔티티(41)는 비디오 인코더(102)로부터의 인코딩된 비디오 데이터를 처리할 수 있는 비디오 엔티티의 일례를 나타내며, 예컨대 MANE(media aware network element) 또는 슬라이싱 장치/에디팅 장치이다. 어떤 경우, 후처리 엔티티(41)는 네트워크 엔티티의 일례일 수 있다. 어떤 비디오 인코딩 시스템에서, 후처리 엔티티(41) 및 비디오 인코더(102)는 별개의 장치의 구성요소일 수 있다. 다른 경우, 후처리 엔티티(41)에 대해 설명된 기능이 비디오 인코더(102)를 포함하는 동일 장치에 의해 수행될 수 있다. 일례에서, 후처리 엔티티(41)는 도 1의 저장 장치(40)의 일례이다.Figure 2 is a schematic structural diagram of a video encoder 102 according to an embodiment of the present application. As shown in Figure 2, video encoder 102 is configured to output video to post-processing entity 41. Post-processing entity 41 represents an example of a video entity capable of processing encoded video data from video encoder 102, such as a media aware network element (MANE) or a slicing device/editing device. In some cases, post-processing entity 41 may be an example of a network entity. In some video encoding systems, post-processing entity 41 and video encoder 102 may be components of separate devices. In other cases, the functions described for post-processing entity 41 may be performed by the same device including video encoder 102. In one example, post-processing entity 41 is an example of storage device 40 of FIG. 1 .

비디오 인코더(102)는 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 도출하고 계산하고, 또한 제1 방향에서의 현재 픽처 블록의 움직임 정보 및 제2 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 현재 픽처 블록의 예측 픽처 블록을 결정하여, 양방향 인터 예측 인코딩을 완성한다.The video encoder 102 derives and calculates motion information of the current picture block in the second direction based on motion information of the current picture block in the first direction, and also provides motion information of the current picture block in the first direction and A predictive picture block of the current picture block is determined based on motion information of the current picture block in the second direction, thereby completing bidirectional inter prediction encoding.

도 2에 도시된 바와 같이, 비디오 인코더(102)는 변환기(301), 양자화기(302), 엔트로피 인코더(303), 필터(306), 메모리(307), 예측 처리 유닛(308), 감산기(312)를 포함한다. 예측 처리 유닛(308)은 인트라 예측기(309) 및 인터 예측기(310)를 포함한다. 픽처 블록을 재구성하기 위해, 비디오 인코더(102)는 또한 역양자화기(304), 역변환기(305), 및 합산기(311)를 포함한다. 필터(306)는 하나 이상의 루프 필터, 예컨대, 디블로킹 필터(deblocking filter), 적응형 루프 필터(adaptive loop filter), 및 샘플 적응형 오프셋 필터(sample adaptive offset filter)를 나타내도록 특정될 수 있다.As shown in Figure 2, the video encoder 102 includes a converter 301, a quantizer 302, an entropy encoder 303, a filter 306, a memory 307, a prediction processing unit 308, and a subtractor ( 312). Prediction processing unit 308 includes an intra predictor 309 and an inter predictor 310. To reconstruct picture blocks, video encoder 102 also includes an inverse quantizer 304, an inverse transformer 305, and a summer 311. Filter 306 may be specified to represent one or more loop filters, such as a deblocking filter, an adaptive loop filter, and a sample adaptive offset filter.

메모리(307)는 비디오 인코더(102)의 구성요소에 의해 인코딩되는 비디오 데이터를 저장한다. 메모리(307)에 저장된 비디오 데이터는 비디오 소스(101)로부터 얻어질 수 있다. 메모리(307)는 인트라 또는 인터 모드에서 비디오 데이터를 인코딩하기 위해 비디오 인코더(102)에 의해 사용되는 참조 비디오 데이터를 저장하는 참조 픽처 메모리일 수 있다. 메모리(307)는 SDRAM(synchronous RAM), MRAM(magnetoresistive RAM), RRAM(resistive RAM), 또는 다른 타입의 메모리 장치를 포함하는 DRAM일 수 있다.Memory 307 stores video data encoded by components of video encoder 102. Video data stored in memory 307 may be obtained from video source 101. Memory 307 may be a reference picture memory that stores reference video data used by video encoder 102 to encode video data in intra or inter mode. Memory 307 may be DRAM, including synchronous RAM (SDRAM), magnetoresistive RAM (MRAM), resistive RAM (RRAM), or other types of memory devices.

비디오 인코더(102)는 비디오 데이터를 수신하고 비디오 데이터 메모리에 그 비디오 데이터를 저장한다. 파티셔닝 유닛(partitioning unit)은 비디오 데이터를 여러 픽처 블록으로 나누고, 이들 픽처 블록들은 다시 더 작은 블록으로 분할되며, 예컨대 사진트리(quad-tree) 구조 또는 이진트리(binary-tree) 구조에 따른 픽처 블록 분할이다. 이 분할은 또한 슬라이스, 타일, 또는 다른 더 큰 유닛으로의 분할을 포함할 수 있다. 비디오 인코더(102)는 통상 인코딩할 비디오 슬라이스 내의 픽처 블록을 인코딩하기 위한 구성요소이다. 슬라이스는 복수의 픽처 블록으로 분할된다(그리고 타일이라고 부르기도 하는 픽처 블록 세트로 분할되기도 한다).Video encoder 102 receives video data and stores the video data in video data memory. The partitioning unit divides the video data into several picture blocks, and these picture blocks are further divided into smaller blocks, such as picture blocks according to a quad-tree structure or binary-tree structure. It is a division. This division may also include division into slices, tiles, or other larger units. The video encoder 102 is typically a component for encoding picture blocks within a video slice to be encoded. A slice is divided into multiple picture blocks (and also into sets of picture blocks, also called tiles).

예측 처리 유닛(308) 내의 인트라 예측기(309)는, 공간적 리던던시를 제거하기 위해, 현재 픽처 블록과 같은 프레임 또는 슬라이스 내의 하나 이상의 이웃하는 픽처 블록에 대비하여 현재 픽처 블록에 대한 인트라 예측 인코딩을 수행할 수 있다. 예측 처리 유닛(308) 내의 인터 예측기(310)는 시간적 리던던시를 제거하기 위해, 하나 이상의 참조 픽처 내의 하나 이상의 예측 픽처 블록에 대비하여 현재 픽처 블록에 대한 인터 예측 인코딩을 수행할 수 있다.The intra predictor 309 in the prediction processing unit 308 may perform intra prediction encoding for the current picture block relative to one or more neighboring picture blocks within the same frame or slice as the current picture block to remove spatial redundancy. You can. The inter predictor 310 in the prediction processing unit 308 may perform inter prediction encoding on the current picture block against one or more prediction picture blocks in one or more reference pictures to remove temporal redundancy.

예측 처리 유닛(308)은, 감산기(312)가 잔차 블록을 생성할 수 있게 인트라 코딩되고 인터 코딩된, 획득한 픽처 블록을 제공하고, 또 합산기(311)가 참조 픽처로서 사용되는 인코딩된 블록을 재구성할 수 있게 잔차 블록을 제공할 수 있다.The prediction processing unit 308 provides the obtained picture blocks, intra-coded and inter-coded, for the subtractor 312 to generate a residual block, and the encoded block to be used as a reference picture by the summer 311. A residual block can be provided to reconstruct.

예측 처리 유닛(308)이 인터 예측 및 인트라 예측을 통해 현재 픽처 블록의 예측 픽처 블록을 생성한 후, 비디오 인코더(102)는, 인코딩할 현재 픽처 블록에서 예측 픽처 블록을 빼는 것에 의해 잔차 픽처 블록을 생성한다. 감산기(312)는 이 빼기 연산을 수행하는 하나 이상의 구성요소를 나타낸다. 잔차 블록 내의 잔차 비디오 데이터는 하나 이상의 변환 유닛(TU, Transform Unit)에 포함되고 변환기(301)에 적용된다. 변환기(301)는 잔차 비디오 데이터를 이산 코사인 변환(DCT)과 같은 변환 또는 개념적으로 유사한 변환을 통해 잔차 변환 계수로 변환한다. 변환기(301)는 잔차 비디오 데이터를 샘플 값 도메인에서 변환 도메인, 예컨대 주파수 도메인으로 변환한다.After the prediction processing unit 308 generates a prediction picture block of the current picture block through inter-prediction and intra-prediction, the video encoder 102 generates a residual picture block by subtracting the prediction picture block from the current picture block to be encoded. Create. Subtractor 312 represents one or more components that perform this subtraction operation. The residual video data in the residual block is included in one or more transform units (TUs) and applied to the transformer 301. Transformer 301 converts the residual video data into residual transform coefficients through a transform such as discrete cosine transform (DCT) or a conceptually similar transform. The converter 301 converts the residual video data from the sample value domain to a transform domain, such as a frequency domain.

변환기(301)는 획득된 변환 계수를 양자화기(302)로 보낸다. 양자화기(302)는 변환 계수를 양자화하여 비트 레이트를 더욱 줄인다. 어떤 예에서, 양자화기(302)는 또한 양자화된 변환 계수를 포함하는 행렬을 스캔한다. 다르게는, 엔트로피 인코더(303)가 스캐닝을 수행할 수 있다.The converter 301 sends the obtained transform coefficient to the quantizer 302. Quantizer 302 quantizes the transform coefficients to further reduce the bit rate. In some examples, quantizer 302 also scans a matrix containing quantized transform coefficients. Alternatively, the entropy encoder 303 may perform scanning.

양자화 후, 엔트로피 인코더(303)는 양자화된 변환 계수에 대해 엔트로피 코딩을 수행한다. 예컨대, 엔트로피 인코더(303)는 CAVLC(context-adaptive variable-length coding), CABAC(context based adaptive binary arithmetic coding) 또는 다른 엔트로피 코딩 방법이나 기술을 수행할 수 있다. 엔트로피 인코더(303)가 엔트로피 코딩을 수행한 후, 인코딩된 비트스트림은 비디오 디코더(202)로 보내지거나, 또는 나중에 보내거나 또는 나중에 비디오 디코더(202)에 의해 조회될 수 있도록 보관(archive)될 수 있다. 엔트로피 인코더(303)는 또한 인코딩할 현재 픽처 블록의 구문 요소(syntactic element)에 대해 엔트로피 코딩을 수행할 수 있다.After quantization, the entropy encoder 303 performs entropy coding on the quantized transform coefficient. For example, the entropy encoder 303 may perform context-adaptive variable-length coding (CAVLC), context-based adaptive binary arithmetic coding (CABAC), or other entropy coding methods or techniques. After the entropy encoder 303 performs entropy coding, the encoded bitstream can be sent to the video decoder 202, or archived for later sending or for later retrieval by the video decoder 202. there is. The entropy encoder 303 may also perform entropy coding on syntactic elements of the current picture block to be encoded.

역양자화기(304) 및 역변환기(305)는 각각 역양자화 및 역변환을 수행하여, 샘플 도메인 내에서 잔차 블록을 재구성하는데, 예컨대 이것은 참조 픽처의 참조 블록으로서 사용된다. 합산기(311)는 재구성된 잔차 블록을 인터 예측기(310) 또는 인트라 예측기(309)에 의해 생성된 예측 픽처 블록에 가산하여, 재구성된 픽처 블록을 재구성한다. 픽처 블록의 예측 픽처 블록은 픽처 블록의 참조 픽처 블록을 처리(예컨대 보간(interpolating)과 같은 처리)하여 획득될 수 있다.The inverse quantizer 304 and the inverse transformer 305 perform inverse quantization and inverse transformation, respectively, to reconstruct a residual block within the sample domain, for example, which is used as a reference block of a reference picture. The summer 311 adds the reconstructed residual block to the predicted picture block generated by the inter predictor 310 or the intra predictor 309 to reconstruct the reconstructed picture block. A predicted picture block of a picture block may be obtained by processing (eg, processing such as interpolating) a reference picture block of the picture block.

비디오 스트림을 인코딩하기 위해 비디오 인코더(102)의 다른 구조적 변형예들이 사용될 수 있다. 예컨대, 일부 픽처 블록 또는 픽처 프레임에 대해, 비디오 인코더(102)는 잔차 신호를 직접 양자화할 수 있고, 이에 따라, 변환기(301) 및 역변환기(305)에 의한 처리는 필요하지 않게 된다. 다르게는, 일부 픽처 블록 또는 픽처 프레임에 대해, 비디오 인코더(102)는 잔차 데이터를 생성하지 않으며, 이에 따라 변환기(301) 및 양자화기(302), 역양자화기(304), 및 역변환기(305)는 필요하지 않게 된다. 다르게는, 비디오 인코더(102)는 재구성된 픽처 블록을 참조 블록으로서 바로 저장할 수 있고, 이에 따라 필터(306)에 의한 처리가 필요하지 않게 된다. 다르게는, 비디오 인코더(102)에서 양자화기(302) 및 역양자화기(304)가 결합될 수 있다.Other structural variations of video encoder 102 may be used to encode the video stream. For example, for some picture blocks or picture frames, video encoder 102 can quantize the residual signal directly, so that processing by transformer 301 and inverse transformer 305 is not necessary. Alternatively, for some picture blocks or picture frames, video encoder 102 does not generate residual data, and thus transformer 301 and quantizer 302, inverse quantizer 304, and inverse transformer 305 ) is no longer needed. Alternatively, video encoder 102 can directly store the reconstructed picture block as a reference block, thereby eliminating the need for processing by filter 306. Alternatively, quantizer 302 and inverse quantizer 304 may be combined in video encoder 102.

도 3은 본 출원의 일 실시예에 따른 비디오 디코더(202)의 개략 구조도이다. 도 3에 도시된 바와 같이, 비디오 디코더(202)는 엔트로피 디코더(401), 역양자화기(402), 역변환기(403), 필터(404), 메모리(405), 예측 처리 유닛(406), 및 합산기(409)를 포함한다. 예측 처리 유닛(406)은 인트라 예측기(407) 및 인터 예측기(408)를 포함한다. 어떤 예에서, 비디오 디코더(202)는 도 2에서의 비디오 인코더(102)에 대해 설명한 인코딩 프로세스를 대략 역으로 하는 디코딩 프로세스를 수행할 수 있다.Figure 3 is a schematic structural diagram of a video decoder 202 according to an embodiment of the present application. As shown in Figure 3, the video decoder 202 includes an entropy decoder 401, an inverse quantizer 402, an inverse transformer 403, a filter 404, a memory 405, a prediction processing unit 406, and a summer 409. The prediction processing unit 406 includes an intra predictor 407 and an inter predictor 408. In some examples, video decoder 202 may perform a decoding process that is roughly reverse the encoding process described for video encoder 102 in Figure 2.

디코딩 프로세스에서, 비디오 디코더(202)는 비디오 인코더(102)로부터 비트스트림을 수신한다. 비디오 디코더(202)는 네트워크 엔티티(42)로부터 비디오 데이터를 수신할 수 있고, 선택적으로 비디오 데이터를 비디오 데이터 메모리(도시되지 않음)에 저장할 수 있다. 비디오 데이터 메모리는 비디오 디코더(202)의 구성요소에 의해 디코딩될 비디오 데이터, 예컨대 인코딩된 비트스트림을 저장한다. 비디오 데이터 메모리에 저장된 비디오 데이터는, 예컨대, 유선 또는 무선 네트워크 통신을 통해 카메라 또는 저장 장치(40)와 같은 로컬 비디오 소스로부터 획득되거나 또는 물리 데이터 저장 매체에 액세스하여 획득될 수 있다. 비디오 데이터 메모리가 도 3에 도시되어 있지는 않지만, 비디오 데이터 메모리 및 메모리(405)는 동일한 메모리일 수도 있고, 별개로 구성된 메모리일 수도 있다. 비디오 데이터 메모리 및 메모리(405) 각각은, 예컨대, SDRAM, MRAM, RRAM, 또는 다른 형태의 메모리 장치를 포함하는 DRAM과 같은, 여러 형태의 메모리 장치 중 임의의 하나에 의해 구축될 수 있다. 여러 예에서, 비디오 데이터 메모리는 비디오 디코더(202)의 다른 구성요소와 함께 칩에 집적될 수도 있고, 다른 구성요소에 대해 칩 밖에 배치될 수도 있다.In the decoding process, video decoder 202 receives a bitstream from video encoder 102. Video decoder 202 may receive video data from network entity 42 and optionally store the video data in video data memory (not shown). Video data memory stores video data, such as an encoded bitstream, to be decoded by components of video decoder 202. Video data stored in the video data memory may be obtained from a local video source, such as a camera or storage device 40, for example, through wired or wireless network communication, or by accessing a physical data storage medium. Although the video data memory is not shown in FIG. 3, the video data memory and memory 405 may be the same memory or may be separately configured memories. Each of the video data memory and memory 405 may be constructed by any one of several types of memory devices, such as DRAM, including SDRAM, MRAM, RRAM, or other types of memory devices. In various examples, the video data memory may be integrated on a chip with other components of video decoder 202, or may be located off-chip relative to other components.

네트워크 엔티티(42)는, 예컨대 서버, MANE, 비디오 에디터/슬라이서, 또는 상술한 기술 중 하나 이상을 구현하도록 구성된 다른 유사한 장치일 수 있다. 네트워크 엔티티(42)는, 예컨대, 비디오 인코더(102)와 같은 비디오 인코더를 포함할 수도 있고 포함하지 않을 수도 있다. 네트워크 엔티티(42)는 비트스트림을 비디오 디코더(22)에 보내고, 네트워크 엔티티(42)는 본 출원에서 설명한 기술들 중 일부를 구현할 수 있다. 일부 비디오 디코딩 시스템에서, 네트워크 엔티티(42) 및 비디오 디코더(202)는 분리된 장치의 구성요소일 수 있다. 다른 경우에, 네트워크 엔티티(42)에 대해 설명된 기능들이 비디오 디코더(202)를 포함하는 동일 장치에 의해 수행될 수 있다. 어떤 경우에는, 네트워크 엔티티(42)가 도 1의 저장 장치(40)의 예일 수 있다.Network entity 42 may be, for example, a server, MANE, video editor/slicer, or other similar device configured to implement one or more of the techniques described above. Network entity 42 may or may not include a video encoder, such as video encoder 102, for example. Network entity 42 sends a bitstream to video decoder 22, and network entity 42 may implement some of the techniques described in this application. In some video decoding systems, network entity 42 and video decoder 202 may be components of separate devices. In other cases, the functions described for network entity 42 may be performed by the same device including video decoder 202. In some cases, network entity 42 may be an example of storage device 40 of FIG. 1 .

비디오 디코더(202)의 엔트로피 디코더(401)는 비트스트림에 대해 엔트로피 디코딩을 수행하여, 양자화된 계수 및 몇몇 구문 요소를 생성한다. 엔트로피 디코더(401)는 구문 요소를 필터(404)에 전달한다. 비디오 디코더(202)는 구문 요소들 또는 하나의 구문 요소를 비디오 슬라이스 레벨에서 및/또는 픽처 블록 레벨에서 수신할 수 있다. 본 출원에서, 일례로서, 구문 요소(syntactic element)는 현재 픽처 블록과 관련된 지시 정보를 포함할 수 있고, 지시 정보는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용된다. 추가로, 어떤 예에서는, 비디오 인코더(102)가, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정할지 지시하는 특정 구문 요소를 통지하는 신호를 전송할 수도 있다.The entropy decoder 401 of the video decoder 202 performs entropy decoding on the bitstream, generating quantized coefficients and some syntax elements. Entropy decoder 401 passes syntax elements to filter 404. Video decoder 202 may receive syntax elements or a syntax element at the video slice level and/or at the picture block level. In the present application, as an example, a syntactic element may include indication information related to the current picture block, and the indication information is used to instruct determining the second motion information based on the first motion information. Additionally, in some examples, video encoder 102 may transmit a signal notifying certain syntax elements that indicate whether to determine second motion information based on first motion information.

역양자화기(402)는 비트스트림 내에 제공되고 엔트로피 디코드(401)에 의해 디코딩된 양자화된 변환 계수에 대해 역양자화를 수행한다. 역양자화 프로세스는: 비디오 슬라이스 내 각 픽처 블록에 대해 비디오 인코더(102)에 의해 계산된 양자화 파라미터를 이용하여 적용할 양자화 정도(quantization degree)를 결정하고, 마찬가지로 적용할 역양자화 정도를 결정하는 것을 포함한다. 역변환(403)은 역DCT, 역정수변환(inverse integer transform), 또는 개념적으로 유사한 역변환 프로세스와 같은 역변환을 변환 계수에 대해 수행하여, 샘플 도메인 잔차 블록을 생성한다.The inverse quantizer 402 performs inverse quantization on the quantized transform coefficients provided in the bitstream and decoded by the entropy decode 401. The inverse quantization process includes: determining the quantization degree to be applied using the quantization parameter calculated by the video encoder 102 for each picture block in the video slice, and similarly determining the degree of inverse quantization to be applied. do. Inverse transform 403 performs an inverse transform, such as an inverse DCT, an inverse integer transform, or a conceptually similar inverse transform process, on the transform coefficients to generate a sample domain residual block.

예측 처리 유닛(406)은 현재 픽처 블록에 대한 예측 픽처 블록 또는 현재 픽처 블록의 서브블록에 대한 예측 픽처 블록을 생성하고, 비디오 디코더(202)는 역변환기(403)로부터의 잔차 블록을 예측 처리 유닛(406)에 의해 생성된 대응하는 예측 픽처 블록과 더해서 재구성된 블록, 다시 말해 디코딩된 픽처 블록을 획득한다. 합산기(409)(재구성기(409)라고도 한다)는 더하기 연산을 수행하는 컴포넌트를 나타낸다. 필요에 따라, 필터(디코딩 루프 내에서 또는 디코딩 루프 뒤에)를 추가로 사용하여 샘플을 스무드하게 하거나(smoothen), 또는 다른 방법으로 비디오 품질을 향상시킬 수 있다. 필터(404)는 하나 이상의 루프 필터, 예컨대, 디블록킹(deblocking) 필터, 적응형 루프 필터(ALF: adaptive loop filter), 및 샘플 적응형 오프셋(SAO: sample adaptive offset) 필터일 수 있다.The prediction processing unit 406 generates a prediction picture block for the current picture block or a prediction picture block for a subblock of the current picture block, and the video decoder 202 generates a residual block from the inverse transformer 403 into the prediction processing unit. In addition to the corresponding prediction picture block generated by 406, a reconstructed block, that is, a decoded picture block, is obtained. Summer 409 (also called reconstructor 409) represents the component that performs the addition operation. Optionally, additional filters (within or after the decoding loop) can be used to smoothen the samples or otherwise improve video quality. Filter 404 may be one or more loop filters, such as a deblocking filter, an adaptive loop filter (ALF), and a sample adaptive offset (SAO) filter.

다른 다양한 구조의 비디오 디코더(202)를 사용하여 비트스트림을 디코딩할 수 있다는 점을 이해해야 한다. 예컨대, 일부 픽처 블록이나 픽처 프레임에 대해, 비디오 디코더(202)의 엔트로피 디코더(401)가 디코딩을 통해 양자화된 계수를 획득하지 않고, 이에 따라 역양자화기(402) 및 역변환기(403)에 의한 처리가 필요하지 않게 된다. 예컨대, 비디오 디코더(202) 내의 역양자화기(402) 및 역변환기(403)는 통합될 수 있다.It should be understood that the video decoder 202 of various other structures may be used to decode the bitstream. For example, for some picture blocks or picture frames, the entropy decoder 401 of the video decoder 202 does not obtain quantized coefficients through decoding, and accordingly, the inverse quantizer 402 and the inverse transformer 403 No processing is required. For example, inverse quantizer 402 and inverse transformer 403 within video decoder 202 may be integrated.

도 1에 도시된 비디오 코딩 시스템(1), 도 2에 도시된 비디오 인코더(102) 및 도 3에 도시된 비디오 디코더(202)에 기초하여, 이하에서는 본 출원에서 제공된 양방향 인터 예측 방법을 보다 상세하게 설명한다.Based on the video coding system 1 shown in FIG. 1, the video encoder 102 shown in FIG. 2, and the video decoder 202 shown in FIG. 3, the bidirectional inter prediction method provided in the present application is described in more detail below. Explain clearly.

도 4는 본 출원의 실시예에 따른 양방향 인터 예측 방법의 개략 흐름도이다. 도 4에 도시된 방법은 양방향 인터 예측 장치에 의해 수행된다. 양방향 인터 예측 장치는 도 1의 비디오 디코더(202)일 수 있다. 도 4에 대해, 양방향 예측 장치가 비디오 디코더(202)인 예를 가지고 설명한다.Figure 4 is a schematic flowchart of a bidirectional inter prediction method according to an embodiment of the present application. The method shown in Figure 4 is performed by a bidirectional inter prediction device. The bidirectional inter prediction device may be video decoder 202 of FIG. 1. 4 will be described using an example in which the bidirectional prediction device is the video decoder 202.

도 4에 도시된 바와 같이, 본 출원의 실시예인 양방향 예측 방법은 다음 단계를 포함한다.As shown in FIG. 4, the bidirectional prediction method according to an embodiment of the present application includes the following steps.

S400: 비디오 디코더(202)가 획득된 비트스트림을 파싱하고 지시 정보를 획득한다.S400: The video decoder 202 parses the obtained bitstream and obtains indication information.

선택적으로, 비디오 디코더(202)는 비트스트림을 파싱하여, 그 비트스트림 내의 구문 요소(syntactic element)의 값에 기초하여 현재 프레임의 현재 픽처 블록에 대해 인터 예측을 수행하기 위해 사용된 인터 예측 모드를 결정한다. 인터 예측 모드가 양방향 인터 예측 모드인 경우, 비디오 디코더(202)는 지시 정보를 획득한다.Optionally, video decoder 202 parses the bitstream and determines the inter prediction mode used to perform inter prediction on the current picture block of the current frame based on the values of syntactic elements within the bitstream. decide When the inter prediction mode is a bidirectional inter prediction mode, the video decoder 202 obtains indication information.

비디오 디코더(202)는 비디오 인코더(102)가 전송한 인코딩된 비트스트림을 수신하거나, 또는 저장 장치(40)로부터 인코딩된 비트스트림을 획득할 수 있다.The video decoder 202 may receive the encoded bitstream transmitted by the video encoder 102 or obtain the encoded bitstream from the storage device 40.

선택적으로, 본 출원의 본 실시예에서 비디오 디코더(202)는 구문 요소(inter_pred_idc)의 값에 기초하여, 현재 프레임 내의 현재 픽처 블록에 대해 인터 예측을 수행하기 위해 사용된 인터 예측 모드를 결정한다. 상술한 설명으로부터, 인터 예측은 일방향 인터 예측 및 양방향 인터 예측을 포함한다. 선택적으로, 구문 요소(inter_pred_idc)의 값이 0이면, 비디오 디코더(202)는 현재 프레임 내의 현재 픽처 블록에 대해 인터 예측을 수행하기 위해 사용된 인터 예측 모드가 순방향 인터 예측인 것으로 결정한다. 구문 요소(inter_pred_idc)의 값이 1인 경우, 비디오 디코더(202)는 현재 프레임 내의 현재 픽처 블록에 대해 인터 예측을 수행하기 위해 사용된 인터 예측 모드가 역방향 인터 예측인 것으로 결정한다. 구문 요소(inter_pred_idc)의 값이 2인 경우, 비디오 디코더(202)는 현재 프레임 내의 현재 픽처 블록에 대해 인터 예측을 수행하기 위해 사용된 인터 예측 모드가 양방향 인터 예측인 것으로 결정한다.Optionally, in this embodiment of the present application, the video decoder 202 determines the inter prediction mode used to perform inter prediction on the current picture block in the current frame, based on the value of the syntax element (inter_pred_idc). From the above description, inter prediction includes one-way inter prediction and two-way inter prediction. Optionally, if the value of the syntax element (inter_pred_idc) is 0, the video decoder 202 determines that the inter prediction mode used to perform inter prediction for the current picture block in the current frame is forward inter prediction. If the value of the syntax element (inter_pred_idc) is 1, the video decoder 202 determines that the inter prediction mode used to perform inter prediction on the current picture block in the current frame is backward inter prediction. If the value of the syntax element (inter_pred_idc) is 2, the video decoder 202 determines that the inter prediction mode used to perform inter prediction on the current picture block in the current frame is bidirectional inter prediction.

선택적으로, 구문 요소(inter_pred_idc)의 값이 2인 것으로 결정한 후, 비디오 디코더(202)는 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하도록 지시하는 데 사용되는 지시 정보를 획득한다. 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 움직임 정보이고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 움직임 정보이며, 제1 방향 및 제2 방향은 서로 다르다.Optionally, after determining that the value of the syntax element (inter_pred_idc) is 2, the video decoder 202 obtains instruction information used to instruct the video decoder 202 to determine the second motion information based on the first motion information. The first motion information is motion information of the current picture block in the first direction, and the second motion information is motion information of the current picture block in the second direction, and the first direction and the second direction are different from each other.

본 출원에서 픽처 블록은 비디오 인코딩 또는 비디오 디코딩을 수행하기 위한 기본 단위이며, 예컨대, 코딩 유닛(CU: coding unit)이거나, 또는 예측 동작을 수행하기 위한 기본 단위, 예컨대, 예측 유닛(PU: prediction unit)일 수 있다. 그러나 본 출원의 본 실시예에서 이들에 구체적으로 한정되는 것은 아니다.In the present application, a picture block is a basic unit for performing video encoding or video decoding, for example, a coding unit (CU), or a basic unit for performing a prediction operation, for example, a prediction unit (PU). ) can be. However, this embodiment of the present application is not specifically limited to these.

픽처 블록이 비디오 인코딩 또는 비디오 디코딩을 수행하는 기본 단위인 경우, 본 출원의 본 실시예에서 현재 픽처 블록은 적어도 하나의 서브블록을 포함한다. 이에 따라, 제1 움직임 정보는 제1 방향에서의 현재 픽처 블록의 적어도 하나의 서브블록 각각의 움직임 정보를 포함하고, 제2 움직임 정보는 제2 방향에서의 현재 픽처 블록의 적어도 하나의 서브블록 각각의 움직임 정보를 포함하며, 지시 정보는, 제1 방향에서의 서브블록의 움직임 정보에 기초하여 제2 방향에서의 서브블록의 움직임 정보를 결정하도록 지시하는 데 사용된다.When a picture block is a basic unit for performing video encoding or video decoding, in this embodiment of the present application, the current picture block includes at least one subblock. Accordingly, the first motion information includes motion information for each of at least one subblock of the current picture block in the first direction, and the second motion information includes motion information for each of at least one subblock of the current picture block in the second direction. It includes motion information, and the instruction information is used to instruct to determine motion information of the subblock in the second direction based on motion information of the subblock in the first direction.

비디오 디코더(202)는 여러 방법으로 지시 정보를 획득할 수 있다.Video decoder 202 can obtain instruction information in several ways.

제1 구현예에서, 비디오 디코더(202)는 제1 식별자를 파싱한다. 제1 식별자의 값이 미리 설정된 제1 값인 경우, 비디오 디코더(202)는 제1 움직임 정보를 파싱하기로 결정하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. 다시 말해, 비디오 디코더(202)는 지시 정보를 획득한다. 제1 식별자의 값이 미리 설정된 제8 값인 경우, 비디오 디코더(202)는 비트스트림을 파싱하여 제5 식별자를 획득한다. 제5 식별자의 값이 미리 설정된 제5 값인 경우, 비디오 디코더(202)는 제2 움직임 정보를 파싱하기로 결정하고, 제2 움직임 정보에 기초하여 제2 움직임 정보를 계산한다. 제5 식별자의 값이 미리 설정된 제9 값인 경우, 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보를 획득한다. 미리 설정된 제1 값 및 미리 설정된 제5 값은 같을 수도 있고 서로 다를 수도 있다. 이것은 본 출원의 본 실시예에서 한정되는 것은 아니다.In a first implementation, video decoder 202 parses the first identifier. When the value of the first identifier is a preset first value, the video decoder 202 determines to parse the first motion information and determines the second motion information based on the first motion information. In other words, the video decoder 202 obtains instruction information. When the value of the first identifier is the preset eighth value, the video decoder 202 parses the bitstream to obtain the fifth identifier. When the value of the fifth identifier is a preset fifth value, the video decoder 202 determines to parse the second motion information and calculates the second motion information based on the second motion information. When the value of the fifth identifier is the preset ninth value, the video decoder 202 obtains first motion information and second motion information. The preset first value and the preset fifth value may be the same or different from each other. This is not limited to this embodiment of the present application.

예컨대, 제1 식별자는 mv_derived_flag_I0이고, 제5 식별자는 mv_derived_flag_i1이며, 미리 설정된 제1 값 및 미리 설정된 제5 값은 모두 1이며, 미리 설정된 제8 값 및 미리 설정된 제9 값은 0이다. 비디오 디코더(202)는 먼저 mv_derived_flag_I0을 파싱한다. mv_derived_flag_I0의 값이 1이면, 비디오 디코더(202)는 제1 움직임 정보를 파싱하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. mv_derived_flag_I0의 값이 0이면, 비디오 디코더(202)는 mv_derived_flag_I1을 파싱한다. mv_derived_flag_I1의 값이 1이면, 비디오 디코더(202)는 제2 움직임 정보를 파싱하고, 제2 움직임 정보에 기초하여 제1 움직임 정보를 계산한다. mv_derived_flag_I0의 값 및 mv_derived_flag_I1의 값 모두가 0인 경우, 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보를 파싱한다.For example, the first identifier is mv_derived_flag_I0, the fifth identifier is mv_derived_flag_i1, the first preset value and the preset fifth value are both 1, and the eighth preset value and the ninth preset value are 0. Video decoder 202 first parses mv_derived_flag_I0. If the value of mv_derived_flag_I0 is 1, the video decoder 202 parses the first motion information and determines the second motion information based on the first motion information. If the value of mv_derived_flag_I0 is 0, the video decoder 202 parses mv_derived_flag_I1. If the value of mv_derived_flag_I1 is 1, the video decoder 202 parses the second motion information and calculates the first motion information based on the second motion information. When both the value of mv_derived_flag_I0 and the value of mv_derived_flag_I1 are 0, the video decoder 202 parses the first motion information and the second motion information.

제2 구현예에서, 비디오 디코더(202)는 제2 식별자를 파싱한다. 제2 식별자의 값이 미리 설정된 제2 값인 경우, 비디오 디코더(202)는 움직임 정보 도출 알고리즘(motion information derivation algorithm)을 이용하여 현재 픽처 블록의 움직임 정보를 계산하기로 결정한다. 그런 다음, 비디오 디코더(202)는 제3 식별자를 파싱한다. 제3 식별자의 값이 미리 설정된 값이면, 비디오 디코더(202)는 제1 움직임 정보를 파싱하기로 결정하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. 다시 말해, 비디오 디코더(202)는 지시 정보를 획득한다. 제3 식별자의 값이 미리 설정된 제6 값인 경우, 비디오 디코더(202)는 제2 움직임 정보를 파싱하기로 결정하고, 제2 움직임 정보에 기초하여 제1 움직임 정보를 계산한다.In a second implementation, video decoder 202 parses the second identifier. When the value of the second identifier is a preset second value, the video decoder 202 determines to calculate motion information of the current picture block using a motion information derivation algorithm. Video decoder 202 then parses the third identifier. If the value of the third identifier is a preset value, the video decoder 202 determines to parse the first motion information and determines the second motion information based on the first motion information. In other words, the video decoder 202 obtains instruction information. When the value of the third identifier is the preset sixth value, the video decoder 202 determines to parse the second motion information and calculates the first motion information based on the second motion information.

예컨대, 제2 식별자는 derived_mv_flag이고, 제3 식별자는 derived_mv_direction이며, 미리 설정된 제3 값은 1이고, 미리 설정된 제6 값은 0이다. 비디오 디코더(202)는 먼저 dervied_mv_flag를 파싱한다. derived_mv_flag의 값이 1이면, 비디오 디코더(202)는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산하기로 결정한다. derived_mv_flag의 값이 0이면, 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보를 파싱한다. derived_mv_direction의 값이 1이면, 비디오 디코더(202)는 제1 움직임 정보를 파싱하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. derived_mv_direction의 값이 0이면, 비디오 디코더(202)는 제2 움직임 정보를 파싱하고, 제2 움직임 정보에 기초하여 제1 움직임 정보를 계산한다.For example, the second identifier is derived_mv_flag, the third identifier is derived_mv_direction, the third preset value is 1, and the sixth preset value is 0. Video decoder 202 first parses dervied_mv_flag. If the value of derived_mv_flag is 1, the video decoder 202 determines to calculate motion information of the current picture block using a motion information derivation algorithm. If the value of derived_mv_flag is 0, the video decoder 202 parses the first motion information and the second motion information. If the value of derived_mv_direction is 1, the video decoder 202 parses the first motion information and determines the second motion information based on the first motion information. If the value of derived_mv_direction is 0, the video decoder 202 parses the second motion information and calculates the first motion information based on the second motion information.

제3 구현에에서, 비디오 디코더(202)는 제2 식별자를 파싱한다. 제2 식별자의 값이 미리 설정된 제2 값이면, 비디오 디코더(202)는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산하기로 결정한다. 그런 다음, 비디오 디코더(202)는 미리 설정된 도출된 방향(derived direction)에 기초하여, 제1 움직임 정보를 파싱하기로 결정하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. 다시 말해, 비디오 디코더(202)는 지시 정보를 획득한다. 다시 말해, 본 구현예에서는, "제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다는 것"이 미리 설정된다. 제2 식별자의 값이 미리 설정된 제7 값이면, 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보를 파싱한다.In a third implementation, video decoder 202 parses the second identifier. If the value of the second identifier is a preset second value, the video decoder 202 determines to calculate motion information of the current picture block using a motion information derivation algorithm. Then, the video decoder 202 determines to parse the first motion information based on a preset derived direction and determines the second motion information based on the first motion information. In other words, the video decoder 202 obtains instruction information. In other words, in this implementation, “determining the second motion information based on the first motion information” is preset. If the value of the second identifier is the preset seventh value, the video decoder 202 parses the first motion information and the second motion information.

예컨대, 제2 식별자는 derived_mv_flag이고, 미리 설정된 제2 값은 1이며, 미리 설정된 제7 값은 0이다. 비디오 디코더(202)는 derived_mv_flag를 파싱한다. derived_mv_flag의 값이 1이면, 비디오 디코더(202)는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산하기로 결정한다. 또한, 비디오 디코더(202)는 제1 움직임 정보를 파싱하기로 결정하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. derived_mv_flag의 값이 0이면, 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보를 파싱한다.For example, the second identifier is derived_mv_flag, the second preset value is 1, and the seventh preset value is 0. Video decoder 202 parses derived_mv_flag. If the value of derived_mv_flag is 1, the video decoder 202 determines to calculate motion information of the current picture block using a motion information derivation algorithm. Additionally, the video decoder 202 determines to parse the first motion information and determines the second motion information based on the first motion information. If the value of derived_mv_flag is 0, the video decoder 202 parses the first motion information and the second motion information.

제4 구현에에서, 비디오 디코더(202)는 제4 식별자(예컨대, mv_derived_flag_I0)를 파싱한다. 제4 식별자의 값이 미리 설정된 제4 값이면, 비디오 디코더(202)는 움직임 정보 도출 알고리즘을 이용하여 현재 픽처 블록의 움직임 정보를 계산하기로 결정하고, 제1 참조 프레임 리스트 및 제2 참조 프레임 리스트에 기초하여 변수 dervied_ref_num를 계산한다. 이 변수는 제1 참조 프레임 및 제2 참조 프레임에 의해 구성될 수 있는 미러형(mirroed)/선형(linear) 참조 프레임 쌍의 수량을 나타낸다. 참조 프레임 쌍의 수량이 1이면, 비디오 디코더(202)는 직접 참조 프레임 인덱스 값을 결정한다. 그런 다음, 비디오 디코더(202)는 미리 설정된 도출된 방향에 기초하여 제1 움직임 정보를 파싱하고, 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다. 다시 말해, 비디오 디코더(202)는 지시 정보를 획득한다. 제1 참조 프레임 리스트는 제1 방향에서의 현재 픽처 블록의 참조 프레임 리스트이고, 제2 참조 프레임 리스트는 제2 방향에서의 현재 픽처 블록의 참조 프레임 리스트이며, 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이다. 본 출원의 본 실시예에서 참조 프레임 인덱스 값은 대응하는 참조 프레임 리스트 내의 참조 프레임의 번호이다.In a fourth implementation, video decoder 202 parses the fourth identifier (e.g., mv_derived_flag_I0). If the value of the fourth identifier is a preset fourth value, the video decoder 202 determines to calculate the motion information of the current picture block using the motion information derivation algorithm, and calculates the motion information of the current picture block using the first reference frame list and the second reference frame list. Calculate the variable dervied_ref_num based on . This variable represents the quantity of mirrored/linear reference frame pairs that can be constituted by a first reference frame and a second reference frame. If the number of reference frame pairs is 1, the video decoder 202 directly determines the reference frame index value. Then, the video decoder 202 parses the first motion information based on the preset derived direction and determines the second motion information based on the first motion information. In other words, the video decoder 202 obtains instruction information. The first reference frame list is a reference frame list of the current picture block in the first direction, the second reference frame list is a reference frame list of the current picture block in the second direction, and the first reference frame is a list of reference frames in the first direction. It is a reference frame of the current picture block, and the second reference frame is a reference frame of the current picture block in the second direction. In this embodiment of the present application, the reference frame index value is the number of a reference frame in the corresponding reference frame list.

예컨대, 현재 프레임의 시퀀스 번호는 4이고, 제1 참조 프레임 리스트는 {2,0}이며, 제2 참조 프레임 리스트는 {6,7}이고, 이하의 조건 B 또는 조건 C에 기초하여, 제1 참조 프레임 리스트에서 시퀀스 번호가 2인 참조 프레임과 제2 참조 프레임 리스트에서 시퀀스 번호가 6인 참조 프레임이 참조 프레임 쌍을 이룰 수 있다고 결정한다. 이 경우, 제1 참조 프레임의 인덱스 값 및 제2 참조 프레임의 인덱스 값은 모두 0이다.For example, the sequence number of the current frame is 4, the first reference frame list is {2,0}, the second reference frame list is {6,7}, and based on Condition B or Condition C below, the first It is determined that a reference frame with a sequence number of 2 in the reference frame list and a reference frame with a sequence number of 6 in the second reference frame list can form a reference frame pair. In this case, the index value of the first reference frame and the index value of the second reference frame are both 0.

예컨대, 현재 프레임의 시퀀스 번호는 4이고, 제1 참조 프레임 리스트는 {2,0}이며, 제2 참조 프레임 리스트는 {6,7}이며, 이하의 조건 B 또는 조건 C에 기초하여, 제1 참조 프레임 리스트에서 시퀀스 번호가 2인 참조 프레임과 제2 참조 프레임 리스트에서 시퀀스 번호가 6인 참조 프레임이 참조 프레임 쌍을 이룰 수 있고, 또 제1 참조 프레임 리스트에서 시퀀스 번호가 0인 참조 프레임과 제2 참조 프레임 리스트에서 시퀀스 번호가 7인 참조 프레임도 참조 프레임 쌍을 이룰 수 있다고 결정한다. 이 경우, 비디오 디코더(202)는 참조 프레임 인덱스 값을 파싱할 필요가 있다.For example, the sequence number of the current frame is 4, the first reference frame list is {2,0}, the second reference frame list is {6,7}, and based on Condition B or Condition C below, the first A reference frame with a sequence number of 2 in the reference frame list and a reference frame with a sequence number of 6 in the second reference frame list may form a reference frame pair, and a reference frame with a sequence number of 0 in the first reference frame list and the second reference frame may form a reference frame pair. 2 It is determined that the reference frame with sequence number 7 in the reference frame list can also form a reference frame pair. In this case, the video decoder 202 needs to parse the reference frame index value.

나아가, 인터 예측 모드가 양방향 인터 예측 모드인 것으로 결정한 때, 비디오 디코더(202)는 나아가 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하는지를 결정한다. 여기서, 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하면, 비디오 디코더(202)는 지시 정보를 획득한다. 구체적으로, S401의 프로세스가 다음과 같이 된다: 인터 예측 모드가 양방향 인터 예측 모드이고 현재 프레임의 피처 정보가 미리 설정된 제1 조건을 충족하는 것으로 결정한 때 비디오 디코더(202)가 지시 정보를 획득한다.Furthermore, when determining that the inter prediction mode is a bidirectional inter prediction mode, the video decoder 202 further determines whether the feature information of the current frame satisfies a preset condition. Here, if the feature information of the current frame satisfies a preset condition, the video decoder 202 obtains indication information. Specifically, the process in S401 is as follows: the video decoder 202 obtains the indication information when it is determined that the inter prediction mode is a bidirectional inter prediction mode and the feature information of the current frame satisfies the first preset condition.

현재 프레임의 피처 정보는 시퀀스 번호, 시간적 레벨 ID(TID: temporal level ID), 또는 참조 프레임의 수량 중 적어도 하나를 포함한다. 비디오 디코더(202)에 의해 획득된 비트스트림은 시퀀스 파라미터 세트(SPS: sequence parameter set), 픽처 파라미터 세트(PPS, picture parameter set), 슬라이스 헤더(slice header), 또는 슬라이스 세그먼트 헤더(slice segment header), 및 인코딩된 픽처 데이터를 포함한다. 그러면, 비디오 디코더(202)는 현재 프레임의 피처 정보를 획득하기 위해 비트스트림을 파싱한다.The feature information of the current frame includes at least one of a sequence number, a temporal level ID (TID), or a quantity of a reference frame. The bitstream obtained by the video decoder 202 includes a sequence parameter set (SPS), a picture parameter set (PPS), a slice header, or a slice segment header. , and encoded picture data. Then, the video decoder 202 parses the bitstream to obtain feature information of the current frame.

미리 설정된 조건은 다음 조건 중 적어도 하나를 포함한다:Preset conditions include at least one of the following conditions:

조건 A: 현재 픽처 블록이 적어도 2개의 참조 프레임을 가진다.Condition A: The current picture block has at least two reference frames.

조건 B: 현재 프레임의 시퀀스 번호, 제1 참조 프레임의 시퀀스 번호, 제2 참조 프레임의 시퀀스 번호가 다음 수식을 만족한다:Condition B: The sequence number of the current frame, the sequence number of the first reference frame, and the sequence number of the second reference frame satisfy the following formula:

이 수식에서, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이다.In this formula, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and the first reference frame is the current picture in the first direction. It is a reference frame of the block, and the second reference frame is a reference frame of the current picture block in the second direction.

조건 C: 현재 프레임의 시퀀스 번호, 제1 참조 프레임의 시퀀스 번호, 제2 참조 프레임의 시퀀스 번호가 다음 수식을 만족한다:Condition C: The sequence number of the current frame, the sequence number of the first reference frame, and the sequence number of the second reference frame satisfy the following formula:

이 수식에서, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, 제1 참조 프레임은 제1 방향에서의 현재 픽처 블록의 참조 프레임이고, 제2 참조 프레임은 제2 방향에서의 현재 픽처 블록의 참조 프레임이다.In this formula, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and the first reference frame is the current picture in the first direction. It is a reference frame of the block, and the second reference frame is a reference frame of the current picture block in the second direction.

조건 D: 현재 프레임의 TID가 미리 설정된 값과 같거나 그보다 크다.Condition D: The TID of the current frame is equal to or greater than the preset value.

본 출원의 본 실시예에서 미리 설정된 조건은 미리 설정되거나 또는 더 상위의 계층 구문, 예컨대 SPS, PPS, 슬라이스 헤더 또는 슬라이스 세그먼트 헤더와 같은 파라미터 세트에 특정되어 있을 수 있다. 이것은 본 출원의 본 실시예에서 한정되는 것은 아니다.In this embodiment of the present application, the preset condition may be preset or may be specific to a parameter set such as a higher layer syntax, such as SPS, PPS, slice header, or slice segment header. This is not limited to this embodiment of the present application.

구체적으로, 조건 B(또는 조건 C)에서, 비디오 디코더(202)는 제1 참조 프레임 리스트 및 제2 참조 프레임 리스트 각각으로부터 하나의 참조 프레임 시퀀스 번호를 획득하고, 획득한 참조 프레임 시퀀스 번호와 현재 프레임의 시퀀스 번호가 조건 B 또는 조건 C를 충족하는지 결정한다. 조건 B(또는 조건 C)가 충족되면 지시 정보를 획득한다.Specifically, in condition B (or condition C), the video decoder 202 obtains one reference frame sequence number from each of the first reference frame list and the second reference frame list, and combines the obtained reference frame sequence number and the current frame Determine whether the sequence number satisfies condition B or condition C. When condition B (or condition C) is met, instruction information is obtained.

본 출원의 본 실시예에서, 인터 예측 모드가 양방향 인터 예측 모드이고 또 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하는 것으로 결정한 때, 비디오 디코더(202)가 지시 정보를 획득하기 위해 사용하는 방법은, 인터 예측 모드가 양방향 인터 예측 모드인 것으로 결정한 때 비디오 디코더(202)가 지시 정보를 획득하기 위해 사용하는 방법과 동일하다.In this embodiment of the present application, when the inter prediction mode is a bidirectional inter prediction mode and it is determined that the feature information of the current frame satisfies the preset condition, the method used by the video decoder 202 to obtain the indication information is , is the same as the method that the video decoder 202 uses to obtain indication information when determining that the inter prediction mode is a bidirectional inter prediction mode.

상술한 설명에 기초하여, 표 1은, 비디오 디코더(202)가 인터 예측 모드가 양방향 인터 예측 모드이고 또 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하는 것으로 결정한 때, 제1 구현예에서의 지시 정보를 획득하는 경우에 사용되는 구문 표(syntac table)이다.Based on the above description, Table 1 shows the instructions in the first implementation when the video decoder 202 determines that the inter prediction mode is a bidirectional inter prediction mode and the feature information of the current frame satisfies the preset condition. This is a syntac table used when obtaining information.

표 1에서, x0 및 y0는 각각 현재 픽처 블록의 좌상 코너에 대한 현재 픽처 블록에서의 서브블록의 수평 좌표 오프셋 및 수직 좌표 오프셋을 나타내고, nPbW는 현재 픽처 블록의 폭을 나타내며, nPbH는 현재 픽처 블록의 높이를 나타낸다. inter_pred_idc[x0][y0]의 값이 PRED_L0인 경우, 이것은 현재 서브블록의 인터 예측이 순방향 예측임을 나타낸다. inter_pred_idc[x0][y0]의 값이 PRD_L1인 경우, 이것은 현재 서브블록의 인터 예측이 역방향 예측임을 나타낸다. inter_pred_idc[x0][y0]의 값이 PRED_BI인 경우, 이것은 현재 서브블록의 인터 예측이 양방향 예측임을 나타낸다.In Table 1, x0 and y0 represent the horizontal coordinate offset and vertical coordinate offset of the subblock in the current picture block with respect to the upper left corner of the current picture block, respectively, nPbW represents the width of the current picture block, and nPbH is the width of the current picture block. indicates the height of If the value of inter_pred_idc[x0][y0] is PRED_L0, this indicates that inter prediction of the current subblock is forward prediction. If the value of inter_pred_idc[x0][y0] is PRD_L1, this indicates that inter prediction of the current subblock is backward prediction. If the value of inter_pred_idc[x0][y0] is PRED_BI, this indicates that inter prediction of the current subblock is bidirectional prediction.

양방향 인터 예측(즉, inter_pred_idc[x0][y0]==PRED_BI)의 경우, 미리 설정된 조건(들)이 충족되면, mb_derived_flag_I0[x0][y0]가 파싱된다. mv_derived_flag_I0의 값이 미리 설정된 제1 값이 아니면, mb_derived_flag_I1[x0][y0]가 파싱된다. mv_derived_flag_I0의 값이 미리 설정된 제1 값이거나 또는 mv_derived_flag_I1[x0][y0]의 값이 미리 설정된 제5 값인 경우, 현재 픽처 블록의 서브블록의 움직임 정보가 결정되는데, 구체적으로 참조 프레임 인덱스 값 ref_idx_l0[x0][y0], 움직임 벡터 예측자 플래그 mvp_l0_flag[x0][y0], 및 움직임 벡터 차 mvd_coding( x0,y0,0)가 결정된다.For bidirectional inter prediction (i.e. inter_pred_idc[x0][y0]==PRED_BI), if the preset condition(s) are met, mb_derived_flag_I0[x0][y0] is parsed. If the value of mv_derived_flag_I0 is not the preset first value, mb_derived_flag_I1[x0][y0] is parsed. If the value of mv_derived_flag_I0 is a preset first value or the value of mv_derived_flag_I1[x0][y0] is a preset fifth value, the motion information of the subblock of the current picture block is determined, specifically the reference frame index value ref_idx_l0[x0 ][y0], motion vector predictor flag mvp_l0_flag[x0][y0], and motion vector difference mvd_coding(x0,y0,0) are determined.

표 1Table 1

prediction_unit(x0, y0, nPbW, nPbH) {prediction_unit(x0, y0, nPbW, nPbH) {

......

/* motion vector coding *//* motion vector coding */

if( slice_type==B )if(slice_type==B)

inter_pred_idc[x0][y0]inter_pred_idc[x0][y0]

if( inter_pred_idc[x0][y0]==PRED_L0 ) {if(inter_pred_idc[x0][y0]==PRED_L0) {

if( num_ref_idx_l0_active_minus1 > 0 )if( num_ref_idx_l0_active_minus1 > 0 )

ref_idx_l0[x0][y0]ref_idx_l0[x0][y0]

mvd_coding( x0, y0, 0 )mvd_coding(x0, y0, 0)

mvp_l0_flag[x0][y0]mvp_l0_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_L1 ) {if(inter_pred_idc[x0][y0]==PRED_L1) {

if( num_ref_idx_l1_active_minus1 > 0 )if( num_ref_idx_l1_active_minus1 > 0 )

ref_idx_l1[x0][y0]ref_idx_l1[x0][y0]

mvd_coding( x0, y0, 1)mvd_coding(x0, y0, 1)

mvp_l1_flag[x0][y0]mvp_l1_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_BI ) {if( inter_pred_idc[x0][y0]==PRED_BI) {

if( conditions ) {if(conditions) {

mv_derived_flag_l0[x0][y0]mv_derived_flag_l0[x0][y0]

if( !mv_derived_flag_l0[x0][y0]) {if(!mv_derived_flag_l0[x0][y0]) {

mv_derived_flag_l1[x0][y0]mv_derived_flag_l1[x0][y0]

}}

if( !mv_derived_flag_l0[x0][y0]) {if(!mv_derived_flag_l0[x0][y0]) {

if( num_ref_idx_l0_active_minus1 > 0 )if( num_ref_idx_l0_active_minus1 > 0 )

ref_idx_l0[x0][y0]ref_idx_l0[x0][y0]

mvd_coding( x0, y0, 0 )mvd_coding(x0, y0, 0)

mvp_l0_flag[x0][y0]mvp_l0_flag[x0][y0]

}}

if( !mv_derived_flag_l1[x0][y0]) {if(!mv_derived_flag_l1[x0][y0]) {

if( num_ref_idx_l1_active_minus1 > 0 )if( num_ref_idx_l1_active_minus1 > 0 )

ref_idx_l1[x0][y0]ref_idx_l1[x0][y0]

mvd_coding(x0, y0, 0 )mvd_coding(x0, y0, 0 )

mvp_l1_flag[x0][y0]mvp_l1_flag[x0][y0]

}}

}}

상술한 설명에 기초하여, 표 2는 비디오 디코더(202)가 인터 예측 모드가 양방향 인터 예측 모드이고 또 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하는 것으로 결정한 때, 제3 구현예에서의 지시 정보를 획득하는 경우에 사용되는 구문 표(syntac table)이다.Based on the above description, Table 2 shows indication information in the third implementation when the video decoder 202 determines that the inter prediction mode is a bidirectional inter prediction mode and that the feature information of the current frame satisfies the preset condition. This is a syntac table used when obtaining .

표 2에서, 양방향 인터 예측(다시 말해 inter_pred_idc[x0][y0]==PRED_BI)의 경우, 미리 설정된 조건(들)이 충족되면, derived_mv_flag[x0][y0]가 파싱된다. derived_mv_flag[x0][y0]의 값이 미리 설정된 제2 값이면, 현재 픽처 블록의 서브블록의 움직임 정보가 결정되는데, 구체적으로는, 참조 프레임 인덱스 값 ref_idx_lx[x0][y0], 움직임 벡터 예측자 플래그 mvp_lx_flag[x0][y0], 및 움직임 벡터 차 mvd_coding( x0,y0,x)가 결정된다.In Table 2, for bidirectional inter prediction (i.e. inter_pred_idc[x0][y0]==PRED_BI), if the preset condition(s) are met, derived_mv_flag[x0][y0] is parsed. If the value of derived_mv_flag[x0][y0] is a preset second value, the motion information of the subblock of the current picture block is determined, specifically, the reference frame index value ref_idx_lx[x0][y0], the motion vector predictor The flag mvp_lx_flag[x0][y0] and the motion vector difference mvd_coding(x0,y0,x) are determined.

표 2Table 2

prediction_unit(x0, y0, nPbW, nPbH) {prediction_unit(x0, y0, nPbW, nPbH) {

......

/* motion vector coding *//* motion vector coding */

if( slice_type==B )if(slice_type==B)

inter_pred_idc[x0][y0]inter_pred_idc[x0][y0]

if( inter_pred_idc[x0][y0]==PRED_L0 ) {if(inter_pred_idc[x0][y0]==PRED_L0) {

if( num_ref_idx_l0_active_minus1 > 0 )if( num_ref_idx_l0_active_minus1 > 0 )

ref_idx_l0[x0][y0]ref_idx_l0[x0][y0]

mvd_coding( x0, y0, 0 )mvd_coding(x0, y0, 0)

mvp_l0_flag[x0][y0]mvp_l0_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_L1 ) {if(inter_pred_idc[x0][y0]==PRED_L1) {

if( num_ref_idx_l1_active_minus1 > 0 )if( num_ref_idx_l1_active_minus1 > 0 )

ref_idx_l1[x0][y0]ref_idx_l1[x0][y0]

mvd_coding( x0, y0, 1)mvd_coding(x0, y0, 1)

mvp_l1_flag[x0][y0]mvp_l1_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_BI ) {if( inter_pred_idc[x0][y0]==PRED_BI) {

if( conditions ) {if(conditions) {

derived_mv_flag[ x0 ][ y0 ]derived_mv_flag[ x0 ][ y0 ]

if( derived_mv_flag[x0][y0] ) {if(derived_mv_flag[x0][y0] ) {

if( num_ref_idx_lx_active_minus1 > 0 )if( num_ref_idx_lx_active_minus1 > 0 )

ref_idx_lx[ x0 ][ y0 ]ref_idx_lx[x0][y0]

mvd_coding( x0, y0, x )mvd_coding(x0, y0, x)

mvp_lx_flag[ x0 ][ y0 ]mvp_lx_flag[x0][y0]

} else {} else {

......

}}

}}

상술한 설명에 기초하여, 표 3은 비디오 디코더(202)가 인터 예측 모드가 양방향 인터 예측 모드이고 또 현재 프레임의 피처 정보가 미리 설정된 제1 조건을 충족하는 것으로 결정한 때, 제4 구현예에서의 지시 정보를 획득하는 경우에 사용되는 구문 표(syntac table)이다.Based on the above description, Table 3 shows the data in the fourth implementation when the video decoder 202 determines that the inter prediction mode is a bidirectional inter prediction mode and that the feature information of the current frame satisfies the preset first condition. This is a syntac table used when obtaining instruction information.

표 3에서, 양방향 인터 예측(다시 말해 inter_pred_idc[x0][y0]==PRED_BI)의 경우, 미리 설정된 조건(들)이 충족되면, derived_mv_flag[x0][y0]가 파싱된다. derived_mv_flag[x0][y0]의 값이 미리 설정된 제4 값이면, derived_ref_num가 결정되고, derived_ref_num이 1보다 크면 현재 픽처 블록의 서브블록의 움직임 정보가 결정되는데, 구체적으로는, 참조 프레임 인덱스 값 ref_idx_lx[x0][y0], 움직임 벡터 예측자 플래그 mvp_lx_flag[x0][y0], 및 움직임 벡터 차 mvd_coding( x0,y0,x)가 결정된다.In Table 3, for bidirectional inter prediction (i.e. inter_pred_idc[x0][y0]==PRED_BI), if the preset condition(s) are met, derived_mv_flag[x0][y0] is parsed. If the value of derived_mv_flag[x0][y0] is a preset fourth value, derived_ref_num is determined, and if derived_ref_num is greater than 1, motion information of the subblock of the current picture block is determined. Specifically, the reference frame index value ref_idx_lx[ x0][y0], motion vector predictor flag mvp_lx_flag[x0][y0], and motion vector difference mvd_coding(x0,y0,x) are determined.

표 3Table 3

prediction_unit(x0, y0, nPbW, nPbH) {prediction_unit(x0, y0, nPbW, nPbH) {

......

/* motion vector coding *//* motion vector coding */

if( slice_type==B )if(slice_type==B)

inter_pred_idc[x0][y0]inter_pred_idc[x0][y0]

if( inter_pred_idc[x0][y0]==PRED_L0 ) {if(inter_pred_idc[x0][y0]==PRED_L0) {

if( num_ref_idx_l0_active_minus1 > 0 )if( num_ref_idx_l0_active_minus1 > 0 )

ref_idx_l0[x0][y0]ref_idx_l0[x0][y0]

mvd_coding( x0, y0, 0 )mvd_coding(x0, y0, 0)

mvp_l0_flag[x0][y0]mvp_l0_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_L1 ) {if(inter_pred_idc[x0][y0]==PRED_L1) {

if( num_ref_idx_l1_active_minus1 > 0 )if( num_ref_idx_l1_active_minus1 > 0 )

ref_idx_l1[x0][y0]ref_idx_l1[x0][y0]

mvd_coding( x0, y0, 1)mvd_coding(x0, y0, 1)

mvp_l1_flag[x0][y0]mvp_l1_flag[x0][y0]

}}

if( inter_pred_idc[x0][y0]==PRED_BI ) {if( inter_pred_idc[x0][y0]==PRED_BI) {

if( conditions ) {if(conditions) {

derived_mv_flag[x0][y0]derived_mv_flag[x0][y0]

if( derived_mv_flag[x0][y0] ) {if(derived_mv_flag[x0][y0] ) {

if( num_ref_idx_lx_active_minus1 > 0 && derived_ref_num > 1)if( num_ref_idx_lx_active_minus1 > 0 && derived_ref_num > 1)

*ref_idx_lx[x0][y0] * ref_idx_lx[x0][y0]

mvd_coding(x0, y0, x )mvd_coding(x0, y0, x )

mvp_lx_flag[x0][y0]mvp_lx_flag[x0][y0]

} else {} else {

......

}}

}}

제1 식별자, 제2 식별자, 제3 식별자, 및 제4 식별자는 모두 미리 설정될 수도 있고, 또는 상위 계층 구문에서, 예컨대, SPS, PPS, 슬라이스 헤더, 또는 슬라이스 세그먼트 헤더와 같은 파라미터 세트에서 특정될 수 있다. 이것은 본 출원의 본 실시예에서 한정되는 것은 아니다.The first identifier, second identifier, third identifier, and fourth identifier may all be preset or may be specified in a higher layer syntax, e.g., in a parameter set such as SPS, PPS, slice header, or slice segment header. You can. This is not limited to this embodiment of the present application.

비디오 디코더(202)는, 인터 예측 모드가 양방향 인터 예측 모드이고, 현재 프레임의 피처 정보가 미리 설정된 조건을 충족하면, 지시 정보를 획득한다. 이로써 비디오 디코더(202)의 디코딩 레이트가 향상되고 정보 리던던시가 감소한다.The video decoder 202 obtains indication information when the inter prediction mode is a bidirectional inter prediction mode and feature information of the current frame satisfies a preset condition. This improves the decoding rate of the video decoder 202 and reduces information redundancy.

S401: 비디오 디코더(202)가 제1 움직임 정보를 획득한다.S401: The video decoder 202 acquires first motion information.

선택적으로, 비디오 디코더(202)는 비트스트림을 파싱하여 제1 참조 프레임의 인덱스 값, 제1 움직임 벡터 예측자 플래그, 및 제1 움직임 벡터 차를 획득한다. 즉, 제1 움직임 정보를 획득한다. 제1 움직임 벡터 예측자 플래그는, 제1 후보 움직임 벡터 리스트 내의 제1 예측된 움직임 벡터의 인덱스 값을 지시하는 데 사용되는 것이고, 제1 예측된 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 예측된 움직임 벡터이고, 제1 움직임 벡터 차는 제1 예측된 움직임 벡터 및 제2 움직임 벡터 간의 차이며, 제1 움직임 벡터는 제1 방향에서의 현재 픽처 블록의 움직임 벡터이다.Optionally, the video decoder 202 parses the bitstream to obtain an index value of the first reference frame, a first motion vector predictor flag, and a first motion vector difference. That is, first motion information is acquired. The first motion vector predictor flag is used to indicate the index value of the first predicted motion vector in the first candidate motion vector list, and the first predicted motion vector is the prediction of the current picture block in the first direction. The first motion vector difference is the difference between the first predicted motion vector and the second motion vector, and the first motion vector is the motion vector of the current picture block in the first direction.

표 1 내지 표 3에 도시된 구문 표 각각에서, 비디오 디코더(202)는 제1 방향에서의 현재 픽처 블록의 서브블록의 움직임 정보를 결정한다.In each of the syntax tables shown in Tables 1 to 3, the video decoder 202 determines motion information of a subblock of the current picture block in the first direction.

S402: 비디오 디코더(202)가 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다.S402: The video decoder 202 determines second motion information based on the first motion information.

제1 구현예에서, 비디오 디코더(202)가 제2 움직임 정보를 결정하기 위해 사용하는 방법은 다음과 같다: 비디오 디코더(202)가 제1 움직임 정보에서 제1 참조 프레임의 인덱스 값을 선택하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하며; 미리 설정된 수식에 따라 제1 참조 프레임의 시퀀스 번호와 현재 프레임의 시퀀스 번호에 기초하여 제2 참조 프레임의 시퀀스 번호를 계산하고; 제2 참조 프레임의 시퀀스 번호와 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 인덱스 값을 결정하며; 제2 참조 프레임의 인덱스 값 및 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정한다.In a first implementation, the method that the video decoder 202 uses to determine the second motion information is as follows: the video decoder 202 selects the index value of the first reference frame from the first motion information; determine the sequence number of the first reference frame based on the index value of the first reference frame and the first reference frame list; calculate the sequence number of the second reference frame based on the sequence number of the first reference frame and the sequence number of the current frame according to a preset formula; determine the index value of the second reference frame based on the sequence number of the second reference frame and the second reference frame list; Second motion information is determined based on the index value of the second reference frame and the first motion information.

여기서, 미리 설정된 수식이란 일 수 있다. POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타낸다.Here, the preset formula is It can be. POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, and POC_listY represents the sequence number of the second reference frame.

예컨대, 현재 프레임의 시퀀스 번호가 4이고, 제1 참조 프레임의 시퀀스 번호는 2이고, 제2 참조 프레임 리스트가 [6,8]이고, 수식 에 따라 제2 참조 프레임의 시퀀스 번호가 6인 것으로 결정되면, 비디오 디코더(202)는 제2 참조 프레임의 인덱스 값 ref_IY_idx은 0인 것으로 결정한다.For example, the sequence number of the current frame is 4, the sequence number of the first reference frame is 2, the second reference frame list is [6,8], and the formula If the sequence number of the second reference frame is determined to be 6, the video decoder 202 determines that the index value ref_IY_idx of the second reference frame is 0.

선택적으로, 다르게는 미리 설정된 수식이 일 수 있다. 제2 참조 프레임 리스트에서의 복수의 참조 프레임 시퀀스 번호가 이 수식을 충족하면, 비디오 디코더(202)는 먼저 최솟값 를 가진 참조 프레임을 선택하고, 그런 다음 최솟값 를 가진 참조 프레임을 선택하여, 제2 참조 프레임의 인덱스 값을 결정한다. abs는 절대값 함수이다.Optionally, an alternatively preset formula It can be. If a plurality of reference frame sequence numbers in the second reference frame list satisfy this formula, the video decoder 202 first selects the minimum Choose a reference frame with , and then find the minimum By selecting a reference frame with , the index value of the second reference frame is determined. abs is an absolute value function.

예컨대, 현재 프레임의 시퀀스 번호가 4이고, 제1 참조 프레임의 시퀀스 번호가 2이고, 제2 참조 프레임 리스트가 [5,7,8]이고, 수식 에 따라, 제2 참조 프레임의 시퀀스 번호가 5인 것으로 결정되면, 비디오 디코더(202)는 제2 참조 프레임의 인덱스 값 ref_IY_idx는 0인 것으로 결정한다.For example, the sequence number of the current frame is 4, the sequence number of the first reference frame is 2, the second reference frame list is [5,7,8], and the formula Accordingly, if the sequence number of the second reference frame is determined to be 5, the video decoder 202 determines that the index value ref_IY_idx of the second reference frame is 0.

선택적으로, 미리 설정된 수식은, 다르게는, 일 수 있다. 제2 참조 프레임 리스트 내의 복수의 참조 프레임 시퀀스 번호가 이 수식을 만족하는 경우, 비디오 디코더(202)는 먼저 최솟값 를 가진 참조 프레임을 선택하고, 그런 다음 최솟값 를 가진 참조 프레임을 선택하여, 제2 참조 프레임의 인덱스 값을 결정한다. abs는 절대값 함수이다.Optionally, a preset formula may alternatively be: It can be. If a plurality of reference frame sequence numbers in the second reference frame list satisfy this formula, the video decoder 202 first selects the minimum Choose a reference frame with , and then find the minimum By selecting a reference frame with , the index value of the second reference frame is determined. abs is an absolute value function.

예컨대, 현재 프레임의 시퀀스 번호가 4이고, 제1 참조 프레임의 시퀀스 번호가 2이고, 제2 참조 프레임 리스트가 [3,2,1,0]이고, 수식 에 따라, 제2 참조 프레임의 시퀀스 번호가 3인 것으로 결정되면, 비디오 디코더(202)는 제2 참조 프레임의 인덱스 값 ref_IY_idx는 0인 것으로 결정한다.For example, the sequence number of the current frame is 4, the sequence number of the first reference frame is 2, the second reference frame list is [3,2,1,0], and the formula Accordingly, if the sequence number of the second reference frame is determined to be 3, the video decoder 202 determines that the index value ref_IY_idx of the second reference frame is 0.

선택적으로, 미리 설정된 수식은, 다르게는, , 및 일 수 있다. 이 경우, 비디오 디코더(202)가 제2 참조 프레임의 인덱스 값을 결정하기 위해 사용하는 방법은 구체적으로 다음과 같다: 수식 를 이용하여 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 제1 시퀀스 번호를 계산하고 - 여기서, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내며, POC_listY0은 제1 시퀀스 번호를 나타냄 -; 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하는 경우, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트 내에서 제1 시퀀스 번호에 의해 나타내어지는 참조 프레임의 번호를 결정하거나; 또는 제2 참조 프레임 리스트가 제1 시퀀스 번호를 포함하지 않는 경우, 를 이용하여 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 제2 시퀀스 번호를 계산하고 - 여기서, POC_listY0'는 제2 시퀀스 번호를 나타냄 -, 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트 내에서 제2 시퀀스 번호에 의해 나타내어지는 참조 프레임의 번호를 결정하거나, 또는 제2 참조 프레임 리스트가 제2 시퀀스 번호를 포함하지 않는 경우, 수식 를 이용하여 제1 참조 프레임의 시퀀스 번호 및 현재 프레임의 시퀀스 번호에 기초하여 제3 시퀀스 번호를 계산하고 - 여기서, POC_listY0"는 제3 참조 번호를 나타냄 -, 그리고 제2 참조 프레임의 인덱스 값으로서, 제2 참조 프레임 리스트 내에서 제3 시퀀스 번호에 의해 나타내어지는 참조 프레임의 번호를 결정한다.Optionally, a preset formula may alternatively be: , and It can be. In this case, the method that the video decoder 202 uses to determine the index value of the second reference frame is specifically as follows: Calculate the first sequence number based on the sequence number of the first reference frame and the sequence number of the current frame using - where POC_Cur represents the sequence number of the current frame, and POC_listX represents the sequence number of the first reference frame. , POC_listY0 indicates the first sequence number -; When the second reference frame list includes the first sequence number, determine, as the index value of the second reference frame, the number of the reference frame indicated by the first sequence number in the second reference frame list; or if the second reference frame list does not contain the first sequence number, Calculate a second sequence number based on the sequence number of the first reference frame and the sequence number of the current frame using - where POC_listY0' represents the second sequence number -, as an index value of the second reference frame, 2 Determine the number of the reference frame indicated by the second sequence number in the reference frame list, or, if the second reference frame list does not contain the second sequence number, the formula Calculate a third sequence number based on the sequence number of the first reference frame and the sequence number of the current frame using - where POC_listY0" represents the third reference number -, and as an index value of the second reference frame, The number of the reference frame indicated by the third sequence number in the second reference frame list is determined.

제2 구현예에서, 제2 움직임 정보를 결정하기 위해 비디오 디코더(202)가 사용하는 방법은 다음과 같다: 비디오 디코더(202)가 비트스트림을 파싱하여 제2 참조 프레임의 인덱스 값을 획득하고, 제1 움직임 정보 및 제2 참조 프레임의 인덱스 값에 기초하여 제2 움직임 정보를 결정한다. 제2 참조 프레임의 인덱스 값은 미리 설정될 수도 있고, 파라미터 세트 내에, 예컨대, SPS, PPS, 슬라이스 헤더, 또는 슬라이스 세그먼트 헤더 내에서 특정될 수도 있다. 이것은 본 출원의 본 실시예에서 한정되지 않는다.In a second implementation, the method used by the video decoder 202 to determine the second motion information is as follows: the video decoder 202 parses the bitstream to obtain the index value of the second reference frame; Second motion information is determined based on the index value of the first motion information and the second reference frame. The index value of the second reference frame may be preset or specified within a parameter set, eg, within an SPS, PPS, slice header, or slice segment header. This is not limited to this embodiment of the present application.

제1 구현예 및 제2 구현예 모두에서, 비디오 디코더(202)는 제1 움직임 정보 및 제2 참조 프레임의 인덱스 값에 기초하여 제2 움직임 정보를 결정한다는 것을 알 수 있다.It can be seen that in both the first and second implementations, the video decoder 202 determines the second motion information based on the first motion information and the index value of the second reference frame.

선택적으로, 비디오 디코더(202)는 제2 방향에서의 현재 픽처 블록의 모든 움직임 정보를 계산하거나, 또는 제2 방향에서의 현재 픽처 블록의 일부 움직임 정보를 계산할 수 있다.Optionally, video decoder 202 may calculate all motion information of the current picture block in the second direction, or calculate partial motion information of the current picture block in the second direction.

이하에서는 비디오 디코더(202)가 제1 움직임 정보 및 제2 참조 프레임의 인덱스 값에 기초하여 제2 움직임 정보를 결정하는 프로세스를 설명한다.Hereinafter, a process by which the video decoder 202 determines the second motion information based on the index value of the first motion information and the second reference frame will be described.

선택적으로, 비디오 디코더(202)가 제1 움직임 정보 및 제2 참조 프레임의 인덱스 값에 기초하여 제2 움직임 정보를 결정하기 위해 사용하는 방법은 다음과 같다: 제1 움직임 정보에서의 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임 리스트 및 제1 참조 프레임의 인덱스 값에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하며; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임 리스트 및 제2 참조 프레임의 인덱스 값에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하고; 제1 움직임 정보 내에 있는 제1 움직임 벡터 플래그 및 제1 움직임 벡터 차에 기초하여 제1 움직임 벡터(제1 방향에서의 현재 픽처 블록의 움직임 벡터)를 결정하고; 다음 수식에 따라 제2 움직임 정보의 제2 움직임 벡터를 도출한다.Optionally, the method that the video decoder 202 uses to determine the second motion information based on the index value of the first motion information and the second reference frame is as follows: the first reference frame in the first motion information Obtain the index value of and determine the sequence number of the first reference frame based on the first reference frame list and the index value of the first reference frame; Obtain the index value of the second reference frame, and determine the sequence number of the second reference frame based on the second reference frame list and the index value of the second reference frame; determine a first motion vector (a motion vector of the current picture block in the first direction) based on the first motion vector flag and the first motion vector difference in the first motion information; The second motion vector of the second motion information is derived according to the following formula.

위 수식에서, mv_IY는 제2 움직임 벡터를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내며, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내며, mv_IX는 제1 움직임 벡터를 나타내고, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터이다.In the above formula, mv_IY represents the second motion vector, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and mv_IX represents the sequence number of the first reference frame. 1 represents a motion vector, and the second motion vector is the motion vector of the current picture block in the second direction.

비디오 디코더(202)는, 인코더가 AMVP 모드 또는 병합 모드(merge mode)로 후보 움직임 정보 리스트를 구축하는 것과 같은 방식으로 후보 움직임 정보를 구축하고, 제1 움직임 벡터 예측 플래그에 기초하여 후보 움직임 정보 리스트 내의 제1 예측된 움직임 벡터를 결정한다. 이 방식에서, 비디오 디코더(202)는 제1 움직임 벡터로서 제1 예측된 움직임 벡터와 제1 움직임 벡터 차의 합을 결정할 수 있다.The video decoder 202 builds candidate motion information in the same way that the encoder builds a candidate motion information list in AMVP mode or merge mode, and builds a candidate motion information list based on the first motion vector prediction flag. Determine the first predicted motion vector in In this way, video decoder 202 can determine the sum of the first predicted motion vector and the first motion vector difference as the first motion vector.

선택적으로, 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이고, 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이고 제2 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 역방향 참조 프레임인 경우, 비디오 디코더(202)는 mv_IY=-mv_IX를 바로 설정할 수 있다.Optionally, if the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a forward reference frame of the current picture block and the second reference frame is a forward reference frame of the current picture block, or if each of the first reference frame and the second reference frame is a forward reference frame of the current picture block, or if each of the first reference frame and the second reference frame is a forward reference frame of the current picture block If it is a reference frame, the video decoder 202 can immediately set mv_IY=-mv_IX.

예컨대, "제1 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임이고 제2 참조 프레임은 현재 픽처 블록의 역방향 참조 프레임인 경우"와 "제1 참조 프레임은 현재 픽처 블록의 역방향 참조 프레임이고 제2 참조 프레임은 현재 픽처 블록의 순방향 참조 프레임인 경우" 모두 수식 를 이용하여 나타내어지거나 또는 수식 를 이용하여 나타내어질 수 있다.For example, “if the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block” and “if the first reference frame is a backward reference frame of the current picture block and the second reference frame is is the forward reference frame of the current picture block" all formulas Expressed using or a formula It can be expressed using .

"제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 순방향 참조 프레임인 경우" 및 "제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 역방향 참조 프레임인 경우" 모두, 수식 에 의해 나타내어질 수 있다.For both “if each of the first reference frame and the second reference frame is a forward reference frame of the current picture block” and “if each of the first reference frame and the second reference frame is a backward reference frame of the current picture block”, the formula It can be expressed by .

선택적으로, 비디오 디코더(202)가 제2 참조 프레임의 인덱스 값 및 제2 움직임 정보에 기초하여 제2 움직임 정보를 결정하기 위해 사용하는 방법은 다음과 같다: 제1 움직임 정보 내에 있는 제1 움직임 벡터 차 및 제1 참조 프레임의 인덱스 값을 획득하고, 제1 참조 프레임의 인덱스 값 및 제1 참조 프레임 리스트에 기초하여 제1 참조 프레임의 시퀀스 번호를 결정하고; 제2 참조 프레임의 인덱스 값을 획득하고, 제2 참조 프레임의 인덱스 값 및 제2 참조 프레임 리스트에 기초하여 제2 참조 프레임의 시퀀스 번호를 결정하며, 제2 참조 프레임의 시퀀스 번호 및 제2 후보 예측된 움직임 벡터 리스트에 기초하여 제2 예측된 움직임 벡터를 결정하고 - 여기서, 제2 예측된 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 예측된 움직임 벡터임 -; 다음 수식에 따라 제2 움직임 정보의 제2 움직임 벡터 차를 도출하고Optionally, the method that the video decoder 202 uses to determine the second motion information based on the index value of the second reference frame and the second motion information is as follows: The first motion vector in the first motion information Obtain the index value of the difference and the first reference frame, and determine the sequence number of the first reference frame based on the index value of the first reference frame and the first reference frame list; Obtain the index value of the second reference frame, determine the sequence number of the second reference frame based on the index value of the second reference frame and the second reference frame list, and determine the sequence number of the second reference frame and the second candidate prediction. determine a second predicted motion vector based on the motion vector list, where the second predicted motion vector is the predicted motion vector of the current picture block in the second direction; Derive the second motion vector difference of the second motion information according to the following formula,

- 여기서, mvd_IY는 제2 움직임 벡터 차를 나타내고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내며, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내며, mvd_IX는 제1 움직임 벡터 차를 나타냄 -; 제2 예측된 움직임 벡터 및 제2 움직임 벡터 차에 기초하여 제2 움직임 벡터를 결정한다 - 여기서, 제2 움직임 벡터는 제2 방향에서의 현재 픽처 블록의 움직임 벡터임 -.- Here, mvd_IY represents the second motion vector difference, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and mvd_IX represents the sequence number of the first reference frame. 1 represents the motion vector difference -; Determine a second motion vector based on the second predicted motion vector and the second motion vector difference, where the second motion vector is the motion vector of the current picture block in the second direction.

선택적으로, 제1 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임이고, 제2 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임인 경우, 또는 제1 참조 프레임이 현재 픽처 블록의 역방향 참조 프레임이고 제2 참조 프레임이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 순방향 참조 프레임인 경우, 또는 제1 참조 프레임 및 제2 참조 프레임 각각이 현재 픽처 블록의 역방향 참조 프레임인 경우, 비디오 디코더(202)는 직접 mvd_IY=-mvd_IX로 설정할 수 있다.Optionally, if the first reference frame is a forward reference frame of the current picture block and the second reference frame is a backward reference frame of the current picture block, or if the first reference frame is a forward reference frame of the current picture block and the second reference frame is a forward reference frame of the current picture block, or if each of the first reference frame and the second reference frame is a forward reference frame of the current picture block, or if each of the first reference frame and the second reference frame is a forward reference frame of the current picture block If it is a reference frame, the video decoder 202 can directly set mvd_IY=-mvd_IX.

예컨대, , 또는 , 또는 인 경우, 비디오 디코더(202)는 직접 mvd_IY=-mvd_IX로 설정한다.for example, , or , or If , the video decoder 202 directly sets mvd_IY=-mvd_IX.

S403: 비디오 디코더(202)는 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정한다.S403: The video decoder 202 determines a prediction sample of the current picture block based on the first motion information and the second motion information.

선택적으로, 비디오 디코더(202)는 S402에서 제1 움직임 벡터 및 제2 움직임 벡터를 결정한다. 이 방식에서, 비디오 디코더(202)는 제1 움직임 벡터 및 제1 참조 프레임 리스트에 기초하여 제1 참조 픽처 블록을 결정하고, 제2 움직임 벡터 및 제2 참조 프레임 리스트에 기초하여 제2 참조 픽처 블록을 결정할 수 있다. 나아가, 비디오 디코더(202)는 제1 참조 픽처 블록 및 제2 참조 픽처 블록에 기초하여 현재 픽처 블록의 예측 샘플을 결정한다. 다시 말해, 비디오 디코더(202)는 움직임 보상 프로세스를 완성한다.Optionally, video decoder 202 determines a first motion vector and a second motion vector at S402. In this way, the video decoder 202 determines a first reference picture block based on a first motion vector and a first reference frame list, and a second reference picture block based on the second motion vector and the second reference frame list. can be decided. Furthermore, the video decoder 202 determines a prediction sample of the current picture block based on the first reference picture block and the second reference picture block. In other words, video decoder 202 completes the motion compensation process.

비디오 디코더(202)가 제1 참조 픽처 블록 및 제2 참조 픽처 블록에 기초하여 현재 픽처 블록의 예측 샘플을 결정하기 위해 사용하는 방법은 임의의 기존의 방법을 참고할 수 있다. 이것은 본 출원의 본 실시예에서 특히 한정되는 것은 아니다.The method used by the video decoder 202 to determine the prediction sample of the current picture block based on the first reference picture block and the second reference picture block may refer to any existing method. This is not particularly limited in this embodiment of the present application.

본 출원의 본 실시예에서 제공되는 양방향 인터 예측 방법에서, 비디오 디코더(202)는 인코딩된 비트스트림에서 오직 제1 움직임 정보만을 획득할 수 있다. 제1 움직임 정보를 획득한 후, 비디오 디코더(202)는 제1 움직임 정보에 기초하여 제2 움직임 정보를 계산하고, 나아가 제1 움직임 정보 및 제2 움직임 정보에 기초하여 현재 픽처 블록의 예측 샘플을 결정한다. 본 출원에서 제공된 방법에 따르면, 더 이상 모든 방향에서의 각 픽처 블록의 움직임 정보가 전송될 필요는 없고, 이것은 종래 기술과 다른 점이다. 이로써 전송되는 움직임 정보의 양을 효과적으로 줄일 수 있고, 전송 자원의 효과적인 이용, 전송 레이트 및 코딩 압축 효율을 개선시킬 수 있다.In the bi-directional inter prediction method provided in this embodiment of the present application, the video decoder 202 can obtain only first motion information from the encoded bitstream. After obtaining the first motion information, the video decoder 202 calculates second motion information based on the first motion information, and further calculates a prediction sample of the current picture block based on the first motion information and the second motion information. decide According to the method provided in the present application, motion information of each picture block in all directions no longer needs to be transmitted, which is different from the prior art. This can effectively reduce the amount of transmitted motion information, improve effective use of transmission resources, transmission rate, and coding compression efficiency.

도 4에서의 양방향 인터 예측 방법은 현재 픽처 블록에 대해 설명되며, 즉 인터 예측은 AMVP 모드에 기초하여 현재 픽처 블록에 대해 수행되는 것으로 이해될 수 있다.The bidirectional inter prediction method in FIG. 4 is explained with respect to the current picture block, that is, it can be understood that inter prediction is performed on the current picture block based on AMVP mode.

본 출원에서 제공되는 양방향 인터 예측 방법은 또한 비병진(non-translational) 움직임 모델 예측 모드, 예컨대, 4-파라미터 아핀 변환 움직임 모델, 6-파라미터 아핀 변환 움직임 모델, 또는 8-파라미터 바이리니어 움직임 모델에 적용될 수 있다. 이 시나리오에서, 현재 픽처 블록은 적어도 하나의 서브블록을 포함하고, 현재 픽처 블록의 움직임 정보는 현재 픽처 블록의 모든 서브블록 각각의 움직임 정보를 포함한다. 비디오 디코더(202)가 각 서브블록의 움직임 정보(제1 방향에서의 움직임 정보 및 제2 방향에서의 움직임 정보)를 결정하기 위해 사용하는 방법은 비디오 디코더(202)가 현재 픽처 블록의 움직임 정보를 결정하기 위해 사용하는 방법과 유사하다.The bi-directional inter prediction method provided in the present application can also be used in a non-translational motion model prediction mode, such as a 4-parameter affine transformation motion model, a 6-parameter affine transformation motion model, or an 8-parameter bilinear motion model. It can be applied. In this scenario, the current picture block includes at least one subblock, and the motion information of the current picture block includes motion information for each of all subblocks of the current picture block. The method that the video decoder 202 uses to determine the motion information of each subblock (motion information in the first direction and motion information in the second direction) is that the video decoder 202 determines the motion information of the current picture block. It is similar to the method used to make decisions.

비병진 움직임 모델 예측 모드에서, 비디오 디코더(202)는 다음 수식:In the non-translational motion model prediction mode, video decoder 202 uses the following equation:

에 따라 제1 방향에서의 i번째 제어점의 움직임 벡터에 기초하여 제2 방향에서의 i번째 제어점의 움직임 벡터를 계산한다.Accordingly, the motion vector of the ith control point in the second direction is calculated based on the motion vector of the ith control point in the first direction.

상술한 수식에서, mvi_IY는 제2 방향에서의 i번째 제어점의 움직임 벡터를 나타내고, mvi_IX는 제1 방향서의 i번째 제어점의 움직임 벡터를 나타내며, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타낸다.In the above formula, mvi_IY represents the motion vector of the ith control point in the second direction, mvi_IX represents the motion vector of the ith control point in the first direction, POC_Cur represents the sequence number of the current frame, and POC_listX represents the 1 indicates the sequence number of the reference frame, and POC_listY indicates the sequence number of the second reference frame.

이에 따라, 비디오 디코더(202)는 다음 수식:Accordingly, the video decoder 202 uses the following equation:

을 이용하여 제1 방향에서의 i번째 제어점의 움직임 벡터 차에 기초하여 제2 방향에서의 i번째 제어점의 움직임 벡터 차를 계산한다.Calculate the motion vector difference of the ith control point in the second direction based on the motion vector difference of the ith control point in the first direction using .

상술한 수식에서, mvi_IY는 제2 방향에서의 i번째 제어점의 움직임 벡터를 나타내고, mvi_IX는 제1 방향에서의 i번째 제어점의 움직임 벡터를 나타내며, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타낸다.In the above formula, mvi_IY represents the motion vector of the ith control point in the second direction, mvi_IX represents the motion vector of the ith control point in the first direction, POC_Cur represents the sequence number of the current frame, and POC_listX represents the 1 indicates the sequence number of the reference frame, and POC_listY indicates the sequence number of the second reference frame.

비디오 디코더(202)와 비교하여, 본 출원의 본 실시예에서의 비디오 인코더(102)는 현재 픽처 블록에 대해 양방향 움직임 추정을 수행하여, 제1 방향에서의 현재 픽처 블록의 움직임 정보를 결정하고, 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산한다. 이러한 방식에서, 비디오 인코더(102)는 제1 방향에서의 현재 픽처 블록의 움직임 정보 및 제2 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 현재 픽처 블록의 예측 픽처 블록을 결정한다. 그런 다음, 비디오 인코더(102)는 현재 픽처 블록의 예측 픽처 블록 및 현재 픽처 블록 간의 잔차에 대해 변환 및 양자화와 같은 동작을 수행하여 비트스트림을 생성하고, 그 비트스트림을 비디오 디코더(202)에 보낸다. 비트스트림은 제1 방향에서의 현재 픽처 블록의 움직임 정보를 포함한다.Compared with the video decoder 202, the video encoder 102 in this embodiment of the present application performs bidirectional motion estimation on the current picture block to determine motion information of the current picture block in the first direction, Motion information of the current picture block in the second direction is calculated based on motion information of the current picture block in the first direction. In this way, the video encoder 102 determines a predictive picture block of the current picture block based on the motion information of the current picture block in the first direction and the motion information of the current picture block in the second direction. Then, the video encoder 102 generates a bitstream by performing operations such as transformation and quantization on the residual between the current picture block and the prediction picture block of the current picture block, and sends the bitstream to the video decoder 202. . The bitstream includes motion information of the current picture block in the first direction.

비디오 인코더(102)가 제1 방향에서의 현재 픽처 블록의 움직임 정보에 기초하여 제2 방향에서의 현재 픽처 블록의 움직임 정보를 계산하기 위해 사용하는 방법에 대해, 비디오 디코더(202)가 제1 움직임 정보에 기초하여 제2 움직임 정보를 결정하기 위해 사용하는 방법을 참조할 수 있다. 다시 말해, S402에 대한 설명을 참조할 수 있다. 따라서 상세한 설명에 대해서는 본 출원에서 다시 설명하지 않는다.Regarding the method that the video encoder 102 uses to calculate the motion information of the current picture block in the second direction based on the motion information of the current picture block in the first direction, the video decoder 202 determines the first motion A method used to determine the second motion information based on the information may be referred to. In other words, you can refer to the description of S402. Therefore, the detailed description will not be described again in this application.

결론적으로, 본 출원에서 제공되는 양방향 인터 예측 방법에 따르면, 양방향 인터 예측 동안, 더 이상 모든 방향에서의 각 픽처 블록의 움직임 정보가 전송될 필요가 없으며, 한 방향에서의 움직임 정보만 전송되면 된다. 이로써, 전송되는 움직임 정보의 양을 감소시킬 수 있고, 전송 자원의 효과적 이용, 전송 레이트 및 코딩 압축 효율을 개선시킬 수 있다.In conclusion, according to the bidirectional inter prediction method provided in this application, during bidirectional inter prediction, motion information of each picture block in all directions no longer needs to be transmitted, and only motion information in one direction needs to be transmitted. As a result, the amount of transmitted motion information can be reduced, effective use of transmission resources, transmission rate, and coding compression efficiency can be improved.

본 출원의 일 실시예는 양방향 인터 예측 장치를 제공한다. 양방향 인터 예측 장치는 비디오 디코더일 수 있다. 구체적으로, 양방향 인터 예측 장치는 상술한 양방향 인터 예측 방법에서 비디오 디코더(202)가 수행하는 단계들을 수행하도록 구성된다. 본 출원에서 제공된 양방향 인터 예측 장치는 대응하는 단계를 위한 모듈을 포함할 수 있다.One embodiment of the present application provides a bidirectional inter prediction device. The bidirectional inter prediction device may be a video decoder. Specifically, the bidirectional inter prediction device is configured to perform the steps performed by the video decoder 202 in the bidirectional inter prediction method described above. The bidirectional inter prediction device provided in the present application may include modules for the corresponding steps.

본 출원의 실시예들에서, 양방향 인터 예측 장치는 상술한 방법 예들에 기초한 기능 모듈로 분할될 수 있다. 예컨대, 각 기능 모듈은 대응하는 기능에 따라 분할함으로써 얻어지거나, 둘 이상의 기능이 하나의 처리 모듈에 통합될 수 있다. 통합 모듈은 하드웨어의 형태로 구현될 수도 있고, 또는 소프트웨어 기능 모듈의 형태로 구현될 수도 있다. 본 출원의 실시예에서, 모듈 분할은 예시적이며, 단지 논리적 기능 분할일 뿐이다. 실제 구현에서, 다른 분할 방식을 사용할 수도 있다.In embodiments of the present application, the bidirectional inter prediction device may be divided into functional modules based on the method examples described above. For example, each functional module can be obtained by dividing according to its corresponding function, or two or more functions can be integrated into one processing module. The integrated module may be implemented in the form of hardware or in the form of a software function module. In the embodiments of the present application, the module division is exemplary and is only a logical function division. In actual implementation, other partitioning schemes may be used.

대응하는 기능에 따른 분할로 각 기능 모듈을 획득한 경우, 도 5는 상술한 실시예에서의 양방향 인터 예측 장치의 가능한 개략 구조도이다. 도 5에 도시된 바와 같이, 양방향 인터 예측 장치(5)는 획득 유닛(50) 및 결정 유닛(51)을 포함한다.When each function module is obtained by division according to the corresponding function, Figure 5 is a possible schematic structural diagram of the bidirectional inter prediction device in the above-described embodiment. As shown in Figure 5, the bi-directional inter prediction device 5 includes an acquisition unit 50 and a decision unit 51.

획득 모듈(50)은 양방향 인터 예측 장치가 상술한 실시예에서 S400, S401 등을 수행하는 것을 지원하도록 구성되거나, 및/또는 본 명세서에서 설명한 기술의 다른 프로세스에서 사용된다.Acquisition module 50 is configured to support a bi-directional inter prediction device performing S400, S401, etc. in the embodiments described above, and/or used in other processes of the techniques described herein.

결정 유닛(51)은 양방향 인터 예측 장치가 상술한 실시예에서 S402, 403 등을 수행하는 것을 지원하도록 구성되거나, 및/또는 본 명세서에서 설명한 기술의 다른 프로세스에서 사용된다.Decision unit 51 is configured to support a bi-directional inter prediction device performing S402, 403, etc. in the above-described embodiments, and/or used in other processes of the techniques described herein.

상술한 방법 실시예에서의 단계에 대한 모든 관련 내용이 대응하는 기능 모듈의 설명에서 인용될 수 있다. 상세에 대해서는 여기에 다시 설명하지 않는다.All relevant content for the steps in the above-described method embodiments can be cited in the description of the corresponding functional module. Details will not be described again here.

확실한 것은, 본 출원의 본 실시예에서 제공된 양방향 인터 예측 장치가, 한정되는 것은 아니지만, 상술한 모듈을 포함한다는 것이다. 예컨대, 양방향 인터 예측 장치가 추가로 저장 유닛(52)을 포함할 수 있다.What is certain is that the bidirectional inter prediction device provided in this embodiment of the present application includes, but is not limited to, the above-described modules. For example, a bidirectional inter prediction device may additionally include a storage unit 52 .

저장 유닛(52)은 양방향 인터 예측 장치의 프로그램 코드 및 데이터를 저장하도록 구성된다.The storage unit 52 is configured to store program codes and data of the bidirectional inter prediction device.

통합 유닛이 사용되는 경우, 도 6은 본 출원의 실시예들에서 제공되는 양방향 인터 예측 장치의 개략적인 구조도이다. 도 6에 도시된 바와 같이, 양방향 인터 예측 장치(6)는 처리 모듈(60) 및 통신 모듈(61)을 포함한다. 처리 모듈(60)은 양방향 인터 예측 장치의 동작을 제어하고 관리하도록 구성되는데, 예컨대, 획득 유닛(50) 및 결정 유닛(51)에 의해 수행되는 단계들을 수행하도록 구성되거나, 및/또는 본 명세서에서 설명하는 기술의 다른 프로세스를 수행하도록 구성된다. 통신 모듈(61)은 양방향 인터 예측 장치와 다른 장치 간의 상호작용을 지원하도록 구성된다. 도 6에 도시된 바와 같이, 양방향 인터 예측 장치는 추가로 저장 모듈(62)을 포함할 수 있다. 저장 모듈(62)은 양방향 인터 예측 장치의 프로그램 코드 및 데이터를 저장, 예컨대, 저장 유닛(52)에 의해 저장되는 것을 저장하도록 구성된다.When an integrated unit is used, Figure 6 is a schematic structural diagram of a bidirectional inter prediction device provided in embodiments of the present application. As shown in FIG. 6, the bidirectional inter prediction device 6 includes a processing module 60 and a communication module 61. The processing module 60 is configured to control and manage the operation of the bi-directional inter prediction device, e.g., to perform the steps performed by the acquisition unit 50 and the decision unit 51, and/or as described herein. The techniques described are configured to perform different processes. The communication module 61 is configured to support interaction between the two-way inter prediction device and other devices. As shown in FIG. 6, the bidirectional inter prediction device may additionally include a storage module 62. The storage module 62 is configured to store program codes and data of the bi-directional inter prediction device, e.g., stored by the storage unit 52.

처리 모듈(60)은 프로세서 또는 컨트롤러일 수 있으며, 예컨대, 중앙 처리 유닛(CPU), 범용 프로세서, 디지털 신호 프로세서(DSP), ASIC, FPGA, 또는 다른 프로그래머블 로직 장치, 트랜지스터 로직 장치, 하드웨어 컴포넌트, 또는 이들의 조합일 수 있다. 프로세서 또는 컨트롤러는 본 출원에서 개시된 내용을 참조하여 설명된 다양한 예시적인 논리 블록, 모듈, 회로일 수 있다. 프로세서는, 다르게는, 연산 기능을 구현하기 위한 조합, 예컨대, 하나 이상의 프로세서의 조합, 또는 DSP와 마이크로 프로세서의 조합일 수 있다. 통신 모듈(61)은 송수신기, RF 회로, 통신 인터페이스 등일 수 있다. 저장 모듈(62)은 메모리일 수 있다.Processing module 60 may be a processor or controller, such as a central processing unit (CPU), general purpose processor, digital signal processor (DSP), ASIC, FPGA, or other programmable logic device, transistor logic device, hardware component, or It could be a combination of these. A processor or controller may be any of various example logical blocks, modules, or circuits described with reference to the disclosure in this application. A processor may, alternatively, be a combination for implementing computational functions, such as a combination of one or more processors, or a combination of a DSP and a microprocessor. The communication module 61 may be a transceiver, RF circuit, communication interface, etc. Storage module 62 may be memory.

상술한 방법 실시예들에서의 시나리오의 모든 관련 내용은 대응하는 기능 모듈의 기능 설명에 대해 인용될 수 있다. 따라서 상세에 대해 여기서 다시 설명하지 않는다.All relevant content of the scenario in the above-described method embodiments can be cited for the functional description of the corresponding functional module. Therefore, the details will not be described again here.

양방향 인터 예측 장치(5) 및 양방향 인터 예측 장치(6) 모두 도 4에 도시된 양방향 인터 예측 방법을 수행할 수 있다. 구체적으로, 양방향 인터 예측 장치(5) 및 양방향 인터 예측 장치(6)는 비디오 디코딩 장치 또는 비디오 코딩 기능을 가진 다른 장치일 수 있다. 양방향 인터 예측 장치(5) 및 양방향 인터 예측 장치(6)는 디코딩 프로세스에서 픽처 예측을 수행하도록 구성될 수 있다.Both the bidirectional inter prediction device 5 and the bidirectional inter prediction device 6 can perform the bidirectional inter prediction method shown in FIG. 4. Specifically, the bidirectional inter prediction device 5 and the bidirectional inter prediction device 6 may be a video decoding device or another device with a video coding function. The bidirectional inter prediction device 5 and the bidirectional inter prediction device 6 may be configured to perform picture prediction in the decoding process.

본 출원은 또한 단말을 제공한다. 단말은 하나 이상의 프로세서, 메모리 및 통신 인터페이스를 포함한다. 메모리 및 통신 인터페이스는 하나 이상의 프로세서에 연결된다. 메모리는 컴퓨터 프로그램 코드를 저장하도록 구성된다. 컴퓨터 프로그램 코드는 명령을 포함한다. 하나 이상의 프로세서가 명령을 수행한 때, 단말은 본 출원의 실시예들에서 양방향 인터 예측 방법을 수행한다.This application also provides a terminal. The terminal includes one or more processors, memory, and communication interfaces. Memory and communication interfaces are coupled to one or more processors. The memory is configured to store computer program code. Computer program code contains instructions. When one or more processors perform an instruction, the terminal performs a bidirectional inter prediction method in the embodiments of the present application.

단말은 비디오 표시 장치, 스마트폰, 휴대형 컴퓨터, 또는 비디오를 처리하거나 표시할 수 있는 다른 장치일 수 있다.The terminal may be a video display device, smartphone, portable computer, or other device capable of processing or displaying video.

본 출원은 또한 비휘발성 저장 매체 및 중앙 처리 유닛을 포함하는 비디오 디코더를 제공한다. 비휘발성 저장 매체는 실행 가능한 프로그램을 저장한다. 중앙 처리 유닛은 비휘발성 저장 매체에 연결되고, 실행 가능한 프로그램을 실행하여 본 출원의 실시예에서의 양방향 인터 예측 방법을 수행한다.The present application also provides a video decoder comprising a non-volatile storage medium and a central processing unit. Non-volatile storage media store executable programs. The central processing unit is coupled to a non-volatile storage medium and executes an executable program to perform the bidirectional inter prediction method in embodiments of the present application.

본 출원은 또한 디코더를 제공한다. 디코더는 본 출원의 실시예에서의 양방향 인터 예측 장치(양방향 인터 예측 장치(5) 및 양방향 인터 예측 장치(6)), 및 재구성 모듈을 포함한다. 재구성 모듈은 양방향 인터 예측 장치에 의해 획득된 예측 샘플들에 기초하여 현재 픽처 블록의 재구성된 샘플 값을 결정하도록 구성된다.This application also provides a decoder. The decoder includes a bidirectional inter prediction device (bidirectional inter prediction device 5 and bidirectional inter prediction device 6) in the embodiment of the present application, and a reconstruction module. The reconstruction module is configured to determine a reconstructed sample value of the current picture block based on prediction samples obtained by the bi-directional inter prediction device.

본 출원의 또 다른 실시예는 컴퓨터 판독 가능한 저장 매체를 제공한다. 컴퓨터 판독 가능한 저장 매체는 하나 이상의 프로그램 코드를 포함한다. 이 하나 이상의 프로그램 코드는 명령을 포함한다. 단말의 프로세서가 이 프로그램 코드를 실행하면, 단말은 도 4에 도시된 양방향 인터 예측 방법을 수행한다.Another embodiment of the present application provides a computer-readable storage medium. A computer-readable storage medium includes one or more program codes. This one or more program codes contain instructions. When the terminal's processor executes this program code, the terminal performs the bidirectional inter prediction method shown in FIG. 4.

본 출원의 또 다른 실시예에서, 컴퓨터 프로그램 제폼이 제공된다. 컴퓨터 프로그램 제품은 컴퓨터 실행 가능한 명령을 포함한다. 컴퓨터 실행 가능한 명령은 컴퓨터 판독 가능한 저장 매체에 저장된다. 단말의 적어도 하나의 프로세서는 컴퓨터 판독 가능한 저장 매체로부터 컴퓨터 실행 가능한 명령을 판독한다. 적어도 하나의 프로세서는 그 컴퓨터 실행 가능한 명령을 실행하여, 단말이 도 4에 도시된 양방향 인터 예측 방법에서의 비디오 디코더(202)에 의해 수행되는 단계들을 수행할 수 있게 한다.In another embodiment of the present application, a computer program form is provided. A computer program product includes computer executable instructions. Computer-executable instructions are stored in a computer-readable storage medium. At least one processor of the terminal reads computer-executable instructions from a computer-readable storage medium. The at least one processor executes computer-executable instructions to enable the terminal to perform steps performed by video decoder 202 in the bi-directional inter prediction method shown in FIG. 4.

상술한 실시예들의 전체 또는 일부는 소프트웨어, 하드웨어, 펌웨어, 또는 이들의 조합에 의해 구현될 수 있다. 소프트웨어 프로그램을 사용하여 실시예를 구현하는 경우, 그 실시예는 전체 또는 일부가 컴퓨터 프로그램 제품의 형태로 구현될 수 있다. 컴퓨터 프로그램 제품은 하나 이상의 컴퓨터 명령을 포함한다. 컴퓨터 프로그램 명령이 컴퓨터에서 로딩되고 실행되는 때, 본 출원의 실시예에 따른 처리 절차 또는 기능 전체 또는 일부가 재생된다.All or part of the above-described embodiments may be implemented by software, hardware, firmware, or a combination thereof. When an embodiment is implemented using a software program, the embodiment may be implemented in whole or in part in the form of a computer program product. A computer program product includes one or more computer instructions. When computer program instructions are loaded and executed on a computer, all or part of the processing procedures or functions according to embodiments of the present application are reproduced.

컴퓨터는 범용 컴퓨터, 특수 목적 컴퓨터, 컴퓨터 네트워크 또는 다른 프로그래머블 장치일 수 있다. 컴퓨터 명령은 컴퓨터 판독 가능한 저장 매체에 저장되거나 컴퓨터 판독 가능한 저장 매체로부터 다른 컴퓨터 판독 가능한 저장 매체로 전송될 수 있다. 예컨대, 컴퓨터 명령은 웹사이트, 컴퓨터, 서버 또는 데이터 센터로부터 다른 웹사이트, 컴퓨터, 서버 또는 데이터 센터로, 유선(예컨대, 동축 케이블, 광 섬유, 또는 디지털 가입자선(DSL, Digital Subscriber Line)) 또는 무선(예컨대, 적외선, 또는 마이크로파) 방식으로 전송될 수 있다. 컴퓨터 판독 가능한 저장 매체는 컴퓨터에 의해 액세스 가능한 임의의 사용 가능한 매체이거나, 또는 서버 또는 데이터 센터, 하나 이상의 사용 가능한 매체를 통합한 데이터 저장 장치일 수 있다. 사용 가능한 매체란, 자기 매체(예컨대, 플로피 디스크, 하드 디스크, 또는 자기 테이프), 광학 매체(예컨대, DVD), 반도체 매체(예컨대, SSD(solid state di나) 등일 수 있다.The computer may be a general-purpose computer, special-purpose computer, computer network, or other programmable device. Computer instructions may be stored in a computer-readable storage medium or transmitted from a computer-readable storage medium to another computer-readable storage medium. For example, computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center, over a wire (e.g., coaxial cable, fiber optic, or Digital Subscriber Line (DSL)) or It may be transmitted wirelessly (eg, infrared or microwave). A computer-readable storage medium may be any available medium that can be accessed by a computer, or may be a server or data center, a data storage device incorporating one or more available media. Usable media may be magnetic media (eg, floppy disk, hard disk, or magnetic tape), optical media (eg, DVD), semiconductor media (eg, solid state disk (SSD)), etc.

구현예에 대한 상술한 설명은, 설명의 간략함과 편의를 위해, 상술한 기능 모듈의 분할이 예시적인 것임을 통상의 기술자라면 쉽게 이해할 것이다. 실제 적용에서, 상술한 기능들은 상이한 기능 모듈에 할당될 수 있고, 요건에 따라 구현될 수 있다. 즉, 장치의 내부 구조는 상술한 기능의 전부 또는 일부를 구현하기 위해 상이한 기능 모듈로 분할될 수 있다.Those skilled in the art will easily understand that the above description of the implementation example shows that the division of the above-described functional modules is exemplary for the sake of simplicity and convenience of description. In actual application, the above-described functions can be assigned to different functional modules and implemented according to requirements. That is, the internal structure of the device may be divided into different functional modules to implement all or part of the above-described functions.

본 출원에서 제공된 여러 실시예에서, 개시된 장치 및 방법은 다른 방식으로 구현될 수도 있음을 이해해야 한다. 예컨대, 상술한 장치 실시예는 단지 예시일 뿐이다. 예컨대, 모듈 또는 유닛 분할은 단지 논리 기능 분할이며 실제 구현에서 다르게 분할될 수 있다. 예컨대, 복수의 유닛 또는 컴포넌트는 다른 장치에 결합 또는 통합될 수 있거나, 또는 일부 특징은 무시되거나 수행되지 않을 수 있다. 또한, 표시되거나 설명된 상호 연결 또는 직접적인 결합 또는 통신 연결은 임의의 인터페이스를 통해 구현될 수 있다. 전기적, 기계적 또는 다른 형태로 장치들 또는 유닛들 간에 간접적인 결합 또는 통신 연결을 구현할 수 있다.It should be understood that in the various embodiments provided in this application, the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are merely examples. For example, module or unit division is just a logical function division and may be divided differently in actual implementation. For example, multiple units or components may be combined or integrated into another device, or some features may be ignored or not performed. Additionally, the interconnections or direct couplings or communication connections shown or described may be implemented via any interface. Indirect coupling or communication connections between devices or units may be implemented in electrical, mechanical or other forms.

별개의 부분으로 설명된 유닛들은 물리적으로 분리될 수도 아닐 수도 있고, 유닛으로 표시된 부분들은 하나 이상의 물리적 유닛일 수도 있고, 하나의 장소에 위치할 수도 있고, 또는 다른 장소에 분산되어 있을 수도 있다. 그 유닛들의 전부 또는 일부는 실시예의 기술적 해결 수단의 목적을 달성하기 위해 실제 요건에 따라 선택될 수 있다.Units described as separate parts may or may not be physically separated, and parts indicated as units may be one or more physical units, located in one location, or distributed in different locations. All or part of the units may be selected according to actual requirements to achieve the purpose of the technical solutions of the embodiments.

또한, 본 출원의 실시예에서의 기능 유닛은 하나의 처리 유닛에 통합되거나, 또는 유닛 각각이 물리적으로 독단적으로 존재하거나, 또는 둘 이상의 유닛이 하나의 유닛으로 통합될 수 있다. 통합된 유닛은 하드웨어로 구현될 수도 있고, 또는 소프트웨어 기능 유닛의 형태로 구현될 수도 있다.Additionally, the functional units in the embodiments of the present application may be integrated into one processing unit, each unit may physically exist independently, or two or more units may be integrated into one unit. The integrated unit may be implemented in hardware or in the form of a software functional unit.

통합 유닛이 소프트웨어 기능 유닛의 형태로 구현되고 독립적인 제품으로서 판매 또는 사용되는 경우, 이 통합 유닛은 판독 가능한 저장 매체 내에 저장될 수 있다. 이와 같은 이해에 기초하면, 본 출원의 실시예에서의 기술적 해결 수단은 필수적으로, 종래 기술에 대해 공헌하는 부분, 또는 기술적 해결 수단의 전부 또는 일부가 소프트웨어 제품의 형태로 구현될 수 있다. 소프트웨어 제품은 저장 매체에 저장되고, 장치(단일 칩 마이크로컴퓨터, 칩 등) 또는 프로세서에 명령하여 본 출원의 실시예에서 설명된 방법의 단계 중 일부 또는 전부를 수생하도록 하는 여러 명령을 포함한다. 상술한 저장 매체는, 프로그램 코드를 저장할 수 있다면 어떤 매체든 포함하며, 예컨대, USB 플래시 드라이브, 제거 가능한 하드 디스크, ROM, RAM, 자기 디스크 또는 광학 디스크이다.When the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, the integrated unit may be stored in a readable storage medium. Based on this understanding, the technical solution in the embodiments of the present application essentially contributes to the prior art, or all or part of the technical solution can be implemented in the form of a software product. The software product is stored on a storage medium and includes several instructions for instructing a device (single chip microcomputer, chip, etc.) or processor to perform some or all of the steps of the methods described in the embodiments of the present application. The above-mentioned storage medium includes any medium that can store program code, such as a USB flash drive, a removable hard disk, ROM, RAM, magnetic disk, or optical disk.

상술한 설명은 단지 본 출원의 특정 구현예에 불과하며, 본 출원의 보호 범위를 제한하는 것이 아니다. 본 출원에서 개시된 기술적 범위 내에서의 변형 또는 대체는 본 출원의 보호 범위에 포함되어야 한다. 따라서, 본 출원의 보호 범위는 청구범위의 보호 범위에 의해 정해져야 한다.The above description is only a specific implementation example of the present application and does not limit the scope of protection of the present application. Any modification or replacement within the technical scope disclosed in this application shall be included in the protection scope of this application. Therefore, the scope of protection of this application should be determined by the scope of protection of the claims.

Claims (17)

양방향 인터 예측에 적용되는 인코딩 방법으로서,
현재 픽처 블록의 제1 움직임 벡터 차이를 결정하는 단계;
제1 식별자를 결정하는 단계 - 상기 제1 식별자의 값이 제1 값인 경우, 상기 제1 식별자는 상기 현재 픽처 블록의 제2 움직임 벡터 차이가 인 경우의 제1 움직임 벡터 차이에 기초하는 것을 나타내는 데 사용되고, 상기 제1 움직임 벡터 차이는 제1 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, 상기 제2 움직임 벡터 차이는 제2 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, 상기 제1 참조 프레임은 상기 제1 방향에서의 상기 현재 픽처 블록의 참조 프레임이며, 상기 제2 참조 프레임은 상기 제2 방향에서의 상기 현재 픽처 블록의 참조 프레임임 -; 및
상기 제1 식별자 및 상기 제1 움직임 벡터 차이를 비트스트림으로 인코딩하는 단계
를 포함하고,
상기 제2 움직임 벡터 차이는 다음 수식:

에 따라 획득되고,
는 상기 제2 움직임 벡터 차이를 나타내고, 는 상기 제1 움직임 벡터 차이를 나타내는, 인코딩 방법.
An encoding method applied to two-way inter prediction, comprising:
determining a first motion vector difference of the current picture block;
Determining a first identifier - if the value of the first identifier is a first value, the first identifier is the second motion vector difference of the current picture block. is used to indicate that it is based on a first motion vector difference, where the first motion vector difference belongs to the motion information of the current picture block in a first direction, and the second motion vector difference is in the second direction. It belongs to the motion information of the current picture block, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and the first reference frame is is a reference frame of the current picture block in the first direction, and the second reference frame is a reference frame of the current picture block in the second direction; and
Encoding the first identifier and the first motion vector difference into a bitstream.
Including,
The second motion vector difference is expressed by the following equation:

Obtained according to,
represents the second motion vector difference, represents the first motion vector difference.
제1항에 있어서,
상기 현재 픽처 블록의 제1 움직임 벡터 차이를 결정하는 단계는,
제1 움직임 벡터를 결정하고, 제1 예측된 움직임 벡터를 획득하는 단계; 및
상기 제1 움직임 벡터 및 상기 제1 예측된 움직임 벡터에 기초하여 상기 제1 움직임 벡터 차이를 결정하는 단계
를 포함하는, 인코딩 방법.
According to paragraph 1,
The step of determining the first motion vector difference of the current picture block includes:
determining a first motion vector and obtaining a first predicted motion vector; and
determining the first motion vector difference based on the first motion vector and the first predicted motion vector.
Encoding method, including.
제2항에 있어서,
제2 예측된 움직임 벡터를 획득하는 단계;
상기 제2 예측된 움직임 벡터와 상기 제2 움직임 벡터 차이에 기초하여 제2 움직임 벡터를 결정하는 단계; 및
상기 제1 움직임 벡터와 상기 제2 움직임 벡터에 기초하여 상기 현재 픽처 블록의 예측 샘플을 결정하는 단계
를 더 포함하고,
상기 제1 예측된 움직임 벡터와 상기 제1 움직임 벡터는 상기 제1 방향에 대응하고, 상기 제2 예측된 움직임 벡터와 상기 제2 움직임 벡터는 상기 제2 방향에 대응하는, 인코딩 방법.
According to paragraph 2,
obtaining a second predicted motion vector;
determining a second motion vector based on the second predicted motion vector and the second motion vector difference; and
Determining a prediction sample of the current picture block based on the first motion vector and the second motion vector.
It further includes,
The first predicted motion vector and the first motion vector correspond to the first direction, and the second predicted motion vector and the second motion vector correspond to the second direction.
제3항에 있어서,
상기 현재 픽처 블록은 상기 제1 방향에서 제1 참조 프레임 리스트와 상기 제2 방향에서 제2 참조 프레임 리스트를 포함하고,
상기 제1 움직임 벡터와 상기 제2 움직임 벡터에 기초하여 상기 현재 픽처 블록의 예측 샘플을 결정하는 단계는,
상기 제1 참조 프레임 리스트의 참조 프레임 인덱스와 상기 제2 참조 프레임 리스트의 참조 프레임 인덱스를 획득하는 단계;
상기 제1 참조 프레임 리스트의 참조 프레임 인덱스, 상기 제1 움직임 벡터 및 상기 제1 참조 프레임 리스트에 기초하여 제1 참조 픽처 블록을 결정하는 단계;
상기 제2 참조 프레임 리스트의 참조 프레임 인덱스, 상기 제2 움직임 벡터 및 상기 제2 참조 프레임 리스트에 기초하여 제2 참조 픽처 블록을 결정하는 단계; 및
상기 제1 참조 픽처 블록과 상기 제2 참조 픽처 블록에 기초하여 상기 현재 픽처 블록의 예측 샘플을 결정하는 단계
를 포함하는, 인코딩 방법.
According to paragraph 3,
The current picture block includes a first reference frame list in the first direction and a second reference frame list in the second direction,
Determining a prediction sample of the current picture block based on the first motion vector and the second motion vector includes:
Obtaining a reference frame index of the first reference frame list and a reference frame index of the second reference frame list;
determining a first reference picture block based on a reference frame index of the first reference frame list, the first motion vector, and the first reference frame list;
determining a second reference picture block based on a reference frame index of the second reference frame list, the second motion vector, and the second reference frame list; and
Determining a prediction sample of the current picture block based on the first reference picture block and the second reference picture block.
Encoding method, including.
제1항에 있어서,
상기 제1 식별자를 비트스트림으로 인코딩하는 단계 전에, 상기 현재 픽처 블록이 위치하는 현재 프레임의 시퀀스 번호가 미리 설정된 조건을 만족한다고 결정하는 단계
를 더 포함하고,
상기 미리 설정된 조건은 상기 현재 프레임의 시퀀스 번호가 제1 참조 프레임의 시퀀스 번호와 제2 참조 프레임의 시퀀스 번호 사이에 있고, 상기 제1 참조 프레임이 상기 제1 참조 프레임 리스트에 속하며, 상기 제2 참조 프레임이 상기 제2 참조 프레임 리스트에 속하는 조건을 포함하는, 인코딩 방법.
According to paragraph 1,
Before encoding the first identifier into a bitstream, determining that the sequence number of the current frame in which the current picture block is located satisfies a preset condition.
It further includes,
The preset condition is that the sequence number of the current frame is between the sequence number of the first reference frame and the sequence number of the second reference frame, the first reference frame belongs to the first reference frame list, and the second reference frame An encoding method comprising a condition that a frame belongs to the second reference frame list.
제1항에 있어서,
상기 제1 식별자의 값이 제2 값인 경우, 상기 현재 픽처 블록의 제2 움직임 벡터 차이를 결정하고, 다른 제2 움직임 벡터 차이를 상기 비트스트림으로 인코딩하는 단계
를 더 포함하는 인코딩 방법.
According to paragraph 1,
When the value of the first identifier is a second value, determining a second motion vector difference of the current picture block and encoding another second motion vector difference into the bitstream.
An encoding method further comprising:
양방향 인터 예측 인코딩 장치로서,
현재 픽처 블록의 제1 움직임 벡터 차이를 결정하도록 구성된 획득 유닛;
제1 식별자를 결정하도록 구성된 결정 유닛 - 상기 제1 식별자의 값이 제1 값인 경우, 상기 제1 식별자는 상기 현재 픽처 블록의 제2 움직임 벡터 차이가 인 경우의 제1 움직임 벡터 차이에 기초하여 결정될 수 있음을 나타내는 데 사용되고, 상기 제1 움직임 벡터 차이는 제1 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, 상기 제2 움직임 벡터 차이는 제2 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, 상기 제1 참조 프레임은 상기 제1 방향에서의 상기 현재 픽처 블록의 참조 프레임이며, 상기 제2 참조 프레임은 상기 제2 방향에서의 상기 현재 픽처 블록의 참조 프레임임 -; 및
상기 제1 식별자 및 상기 제1 움직임 벡터 차이를 비트스트림으로 인코딩하도록 구성된 인코딩 유닛
을 포함하고,
상기 결정 유닛은 구체적으로, 다음 수식:

에 따라 상기 제2 움직임 벡터 차이를 획득하도록 구성되고,
는 상기 제2 움직임 벡터 차이를 나타내고, 는 상기 제1 움직임 벡터 차이를 나타내는, 양방향 인터 예측 인코딩 장치.
A bidirectional inter-prediction encoding device, comprising:
an acquisition unit configured to determine a first motion vector difference of the current picture block;
a determination unit configured to determine a first identifier, wherein when the value of the first identifier is a first value, the first identifier determines that the second motion vector difference of the current picture block is It is used to indicate that the decision may be made based on the first motion vector difference in the case where the first motion vector difference belongs to the motion information of the current picture block in the first direction, and the second motion vector difference is the second motion vector difference. belongs to the motion information of the current picture block in the direction, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and the first the reference frame is a reference frame of the current picture block in the first direction, and the second reference frame is a reference frame of the current picture block in the second direction; and
an encoding unit configured to encode the first identifier and the first motion vector difference into a bitstream
Including,
The determination unit specifically has the following formula:

configured to obtain the second motion vector difference according to,
represents the second motion vector difference, represents the first motion vector difference, bidirectional inter prediction encoding device.
제7항에 있어서,
상기 획득 유닛은 구체적으로,
제1 움직임 벡터를 결정하고, 제1 예측된 움직임 벡터를 획득하고;
상기 제1 움직임 벡터 및 상기 제1 예측된 움직임 벡터에 기초하여 상기 제1 움직임 벡터 차이를 결정하도록 구성되는, 양방향 인터 예측 인코딩 장치.
In clause 7,
The acquisition unit is specifically,
determine a first motion vector, obtain a first predicted motion vector;
Bidirectional inter prediction encoding device, configured to determine the first motion vector difference based on the first motion vector and the first predicted motion vector.
제8항에 있어서,
상기 획득 유닛은 또한, 제2 예측된 움직임 벡터를 획득하고, 상기 제2 예측된 움직임 벡터와 상기 제2 움직임 벡터 차이에 기초하여 제2 움직임 벡터를 결정하도록 구성되고,
상기 양방향 인터 예측 인코딩 장치는 상기 제1 움직임 벡터 및 상기 제2 움직임 벡터에 기초하여 상기 현재 픽처 블록의 예측 샘플을 결정하도록 구성된 예측 유닛을 더 포함하고,
상기 제1 예측된 움직임 벡터와 상기 제1 움직임 벡터는 상기 제1 방향에 대응하고, 상기 제2 예측된 움직임 벡터와 상기 제2 움직임 벡터는 상기 제2 방향에 대응하는, 양방향 인터 예측 인코딩 장치.
According to clause 8,
The acquisition unit is also configured to obtain a second predicted motion vector and determine the second motion vector based on the difference between the second predicted motion vector and the second motion vector,
The bidirectional inter prediction encoding device further includes a prediction unit configured to determine a prediction sample of the current picture block based on the first motion vector and the second motion vector,
The first predicted motion vector and the first motion vector correspond to the first direction, and the second predicted motion vector and the second motion vector correspond to the second direction.
제9항에 있어서,
상기 현재 픽처 블록은 상기 제1 방향에서 제1 참조 프레임 리스트와 상기 제2 방향에서 제2 참조 프레임 리스트를 포함하고,
상기 예측 유닛은 구체적으로,
상기 제1 참조 프레임 리스트의 참조 프레임 인덱스와 상기 제2 참조 프레임 리스트의 참조 프레임 인덱스를 획득하고;
상기 제1 참조 프레임 리스트의 참조 프레임 인덱스, 상기 제1 움직임 벡터 및 상기 제1 참조 프레임 리스트에 기초하여 제1 참조 픽처 블록을 결정하고;
상기 제2 참조 프레임 리스트의 참조 프레임 인덱스, 상기 제2 움직임 벡터 및 상기 제2 참조 프레임 리스트에 기초하여 제2 참조 픽처 블록을 결정하며;
상기 제1 참조 픽처 블록과 상기 제2 참조 픽처 블록에 기초하여 상기 현재 픽처 블록의 예측 샘플을 결정하도록 구성되는, 양방향 인터 예측 인코딩 장치.
According to clause 9,
The current picture block includes a first reference frame list in the first direction and a second reference frame list in the second direction,
The prediction unit is specifically,
Obtain a reference frame index of the first reference frame list and a reference frame index of the second reference frame list;
determine a first reference picture block based on a reference frame index of the first reference frame list, the first motion vector, and the first reference frame list;
determine a second reference picture block based on a reference frame index of the second reference frame list, the second motion vector, and the second reference frame list;
Bidirectional inter-prediction encoding device, configured to determine a prediction sample of the current picture block based on the first reference picture block and the second reference picture block.
제7항에 있어서,
상기 인코딩 유닛이 상기 제1 식별자를 비트스트림으로 인코딩하기 전에, 상기 현재 픽처 블록이 위치하는 현재 프레임의 시퀀스 번호가 미리 설정된 조건을 만족한다고 결정하도록 구성된 판단 유닛을 포함하고,
상기 미리 설정된 조건은 상기 현재 프레임의 시퀀스 번호가 제1 참조 프레임의 시퀀스 번호와 제2 참조 프레임의 시퀀스 번호 사이에 있고, 상기 제1 참조 프레임이 상기 제1 참조 프레임 리스트에 속하며, 상기 제2 참조 프레임이 상기 제2 참조 프레임 리스트에 속하는 조건을 포함하는, 양방향 인터 예측 인코딩 장치.
In clause 7,
A determination unit configured to determine that a sequence number of a current frame in which the current picture block is located satisfies a preset condition, before the encoding unit encodes the first identifier into a bitstream,
The preset condition is that the sequence number of the current frame is between the sequence number of the first reference frame and the sequence number of the second reference frame, the first reference frame belongs to the first reference frame list, and the second reference frame Bidirectional inter-prediction encoding device, comprising a condition that a frame belongs to the second reference frame list.
제7항에 있어서,
상기 획득 유닛은 또한, 상기 제1 식별자의 값이 제2 값인 경우, 상기 현재 픽처 블록의 제2 움직임 벡터 차이를 결정하고, 다른 제2 움직임 벡터 차이를 상기 비트스트림으로 인코딩하도록 구성되는, 양방향 인터 예측 인코딩 장치.
In clause 7,
The acquisition unit is further configured to determine a second motion vector difference of the current picture block when the value of the first identifier is a second value, and encode another second motion vector difference into the bitstream. Predictive encoding device.
저장 매체로서,
상기 저장 매체는 제1항 내지 제6항 중 어느 한 항에 따른 인코딩 방법을 사용하여 생성된 비트스트림을 포함하는, 저장 매체.
As a storage medium,
The storage medium includes a bitstream generated using the encoding method according to any one of claims 1 to 6.
프로세서, 메모리, 통신 인터페이스 및 버스를 포함하는 이미지 처리 장치로서,
상기 프로세서는 상기 버스를 사용하여 상기 메모리와 상기 통신 인터페이스에 연결되고,
상기 메모리는 명령어를 저장하도록 구성되고,
상기 프로세서는 상기 명령어를 실행하도록 구성되고, 상기 프로세서가 상기 메모리에 저장된 명령어를 실행할 때, 상기 프로세서는 제1항 내지 제6항 중 어느 한 항에 따른 인코딩 방법을 수행할 수 있는, 이미지 처리 장치.
An image processing device comprising a processor, memory, communication interface, and bus,
the processor is connected to the memory and the communication interface using the bus,
The memory is configured to store instructions,
The processor is configured to execute the instruction, and when the processor executes the instruction stored in the memory, the processor is capable of performing the encoding method according to any one of claims 1 to 6. .
비디오 신호에 대한 인코딩된 비트스트림을 저장하는 저장 매체로서,
상기 인코딩된 비트스트림은 복수의 구문 요소를 포함하고,
상기 복수의 구문 요소는 제1 식별자 및 제1 움직임 벡터 차이를 포함하고,
상기 제1 식별자의 값이 제1 값인 경우, 상기 제1 식별자는 현재 픽처 블록의 제2 움직임 벡터 차이가 인 경우의 제1 움직임 벡터 차이에 기초하여 결정될 수 있음을 나타내는 데 사용되고, 상기 제1 움직임 벡터 차이는 제1 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, 상기 제2 움직임 벡터 차이는 제2 방향에서 상기 현재 픽처 블록의 움직임 정보에 속하고, POC_Cur은 현재 프레임의 시퀀스 번호를 나타내고, POC_listX는 제1 참조 프레임의 시퀀스 번호를 나타내고, POC_listY는 제2 참조 프레임의 시퀀스 번호를 나타내고, 상기 제1 참조 프레임은 상기 제1 방향에서의 상기 현재 픽처 블록의 참조 프레임이며, 상기 제2 참조 프레임은 상기 제2 방향에서의 상기 현재 픽처 블록의 참조 프레임이고,
상기 제2 움직임 벡터 차이는 다음 수식:

에 따라 획득되고,
는 상기 제2 움직임 벡터 차이를 나타내고, 는 상기 제1 움직임 벡터 차이를 나타내는, 저장 매체.
A storage medium for storing an encoded bitstream for a video signal,
The encoded bitstream includes a plurality of syntax elements,
the plurality of syntax elements include a first identifier and a first motion vector difference,
If the value of the first identifier is the first value, the first identifier is the second motion vector difference of the current picture block. It is used to indicate that the decision may be made based on the first motion vector difference in the case where the first motion vector difference belongs to the motion information of the current picture block in the first direction, and the second motion vector difference is the second motion vector difference. belongs to the motion information of the current picture block in the direction, POC_Cur represents the sequence number of the current frame, POC_listX represents the sequence number of the first reference frame, POC_listY represents the sequence number of the second reference frame, and the first The reference frame is a reference frame of the current picture block in the first direction, and the second reference frame is a reference frame of the current picture block in the second direction,
The second motion vector difference is expressed by the following equation:

Obtained according to,
represents the second motion vector difference, represents the first motion vector difference, storage medium.
삭제delete 삭제delete
KR1020237013341A 2018-03-29 2019-01-11 Bidirectional inter-frame prediction method and device KR102622150B1 (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810274457.X 2018-03-29
CN201810274457.XA CN110324637B (en) 2018-03-29 2018-03-29 Bidirectional inter-frame prediction method and device
PCT/CN2019/071471 WO2019184556A1 (en) 2018-03-29 2019-01-11 Bidirectional inter-frame prediction method and device
KR1020207029639A KR102525178B1 (en) 2018-03-29 2019-01-11 Bi-directional inter prediction method and apparatus

Related Parent Applications (1)

Application Number Title Priority Date Filing Date
KR1020207029639A Division KR102525178B1 (en) 2018-03-29 2019-01-11 Bi-directional inter prediction method and apparatus

Publications (2)

Publication Number Publication Date
KR20230054916A KR20230054916A (en) 2023-04-25
KR102622150B1 true KR102622150B1 (en) 2024-01-05

Family

ID=68062196

Family Applications (2)

Application Number Title Priority Date Filing Date
KR1020237013341A KR102622150B1 (en) 2018-03-29 2019-01-11 Bidirectional inter-frame prediction method and device
KR1020207029639A KR102525178B1 (en) 2018-03-29 2019-01-11 Bi-directional inter prediction method and apparatus

Family Applications After (1)

Application Number Title Priority Date Filing Date
KR1020207029639A KR102525178B1 (en) 2018-03-29 2019-01-11 Bi-directional inter prediction method and apparatus

Country Status (14)

Country Link
US (4) US11350122B2 (en)
EP (1) EP3771211A4 (en)
JP (2) JP7143435B2 (en)
KR (2) KR102622150B1 (en)
CN (6) CN117560506A (en)
AU (1) AU2019240981B2 (en)
BR (1) BR112020018923A2 (en)
CA (1) CA3095220C (en)
MX (1) MX2020010174A (en)
PH (1) PH12020551544A1 (en)
RU (1) RU2762262C1 (en)
SG (1) SG11202009509VA (en)
WO (1) WO2019184556A1 (en)
ZA (1) ZA202006408B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN117560506A (en) * 2018-03-29 2024-02-13 华为技术有限公司 Bidirectional inter-frame prediction method and device
CN113873249B (en) * 2020-06-30 2023-02-28 杭州海康威视数字技术股份有限公司 Encoding and decoding method, device and equipment
CN114071159B (en) * 2020-07-29 2023-06-30 Oppo广东移动通信有限公司 Inter prediction method, encoder, decoder, and computer-readable storage medium
CN116320428A (en) * 2021-12-20 2023-06-23 维沃移动通信有限公司 Inter-frame prediction method and terminal

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160286230A1 (en) * 2015-03-27 2016-09-29 Qualcomm Incorporated Motion information derivation mode determination in video coding

Family Cites Families (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
ES2353423T3 (en) * 2002-10-04 2011-03-02 Lg Electronics, Inc. DIRECT MODE MOTION VECTOR CALCULATION SYSTEM FOR IMAGES B.
CN1225127C (en) * 2003-09-12 2005-10-26 中国科学院计算技术研究所 A coding/decoding end bothway prediction method for video coding
US8917769B2 (en) 2009-07-03 2014-12-23 Intel Corporation Methods and systems to estimate motion based on reconstructed reference frames at a video decoder
KR20110071047A (en) * 2009-12-20 2011-06-28 엘지전자 주식회사 A method and an apparatus for decoding a video signal
CN104967857B (en) 2010-01-19 2019-08-23 三星电子株式会社 The method and apparatus that image is encoded/decoded
JP5281597B2 (en) * 2010-02-04 2013-09-04 日本電信電話株式会社 Motion vector prediction method, motion vector prediction apparatus, and motion vector prediction program
US9503743B2 (en) * 2010-05-12 2016-11-22 Thomson Licensing Methods and apparatus for uni-prediction of self-derivation of motion estimation
KR101873767B1 (en) * 2010-05-26 2018-07-03 엘지전자 주식회사 Method and apparatus for processing a video signal
US9398308B2 (en) * 2010-07-28 2016-07-19 Qualcomm Incorporated Coding motion prediction direction in video coding
CN107483943B (en) * 2011-02-09 2020-04-03 Lg 电子株式会社 Video encoding apparatus, video decoding apparatus, and method of deriving motion vector thereof
US9288501B2 (en) * 2011-03-08 2016-03-15 Qualcomm Incorporated Motion vector predictors (MVPs) for bi-predictive inter mode in video coding
WO2013006386A1 (en) 2011-07-01 2013-01-10 General Instrument Corporation Motion vector prediction design simplification
MX2014005115A (en) * 2011-10-28 2014-08-27 Samsung Electronics Co Ltd Method for inter prediction and device therefor, and method for motion compensation and device therefor.
JP2013106312A (en) * 2011-11-16 2013-05-30 Jvc Kenwood Corp Image encoder, image encoding method and image encoding program
CN103188490A (en) * 2011-12-29 2013-07-03 朱洪波 Combination compensation mode in video coding process
KR102070431B1 (en) 2012-01-19 2020-01-28 삼성전자주식회사 Method and apparatus for encoding video with restricting bi-directional prediction and block merging, method and apparatus for decoding video
MX2014012452A (en) 2012-04-15 2015-01-12 Samsung Electronics Co Ltd Method and apparatus for determining reference images for inter prediction.
RU2647674C1 (en) 2012-07-02 2018-03-16 Самсунг Электроникс Ко., Лтд. Method and apparatus for encoding video and method and apparatus for decoding video, determining the list of reference external prediction image depending on the unit size
JP6120707B2 (en) * 2013-07-08 2017-04-26 ルネサスエレクトロニクス株式会社 Video encoding apparatus and operation method thereof
CN104427345B (en) * 2013-09-11 2019-01-08 华为技术有限公司 Acquisition methods, acquisition device, Video Codec and its method of motion vector
CN111193930B (en) * 2013-12-16 2021-11-30 浙江大学 Method and device for coding and decoding forward double-hypothesis coding image block
GB2524476B (en) 2014-03-14 2016-04-27 Canon Kk Method, device and computer program for optimizing transmission of motion vector related information when transmitting a video stream
CN107113424B (en) 2014-11-18 2019-11-22 联发科技股份有限公司 With the Video coding and coding/decoding method of the block of inter-frame forecast mode coding
CN112929659B (en) * 2015-10-13 2023-12-26 三星电子株式会社 Method and apparatus for encoding or decoding image
EP3439303B1 (en) * 2016-04-28 2020-12-30 LG Electronics Inc. -1- Inter prediction mode-based image processing method and apparatus therefor
KR102338356B1 (en) 2016-05-24 2021-12-13 한국전자통신연구원 A method for encoding/decoding a video and a readable medium therefor
US10462462B2 (en) * 2016-09-29 2019-10-29 Qualcomm Incorporated Motion vector difference coding technique for video coding
US20180192071A1 (en) * 2017-01-05 2018-07-05 Mediatek Inc. Decoder-side motion vector restoration for video coding
CN117560506A (en) * 2018-03-29 2024-02-13 华为技术有限公司 Bidirectional inter-frame prediction method and device

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160286230A1 (en) * 2015-03-27 2016-09-29 Qualcomm Incorporated Motion information derivation mode determination in video coding

Also Published As

Publication number Publication date
CN112040244B (en) 2021-06-29
JP2022179516A (en) 2022-12-02
US11924458B2 (en) 2024-03-05
KR20230054916A (en) 2023-04-25
KR102525178B1 (en) 2023-04-21
US20220286703A1 (en) 2022-09-08
EP3771211A4 (en) 2021-05-05
US11838535B2 (en) 2023-12-05
CA3095220A1 (en) 2019-10-03
CN113315975B (en) 2022-12-06
US20220256184A1 (en) 2022-08-11
CN113315975A (en) 2021-08-27
KR20200131317A (en) 2020-11-23
WO2019184556A1 (en) 2019-10-03
US20240171765A1 (en) 2024-05-23
JP7143435B2 (en) 2022-09-28
US20210021853A1 (en) 2021-01-21
AU2019240981B2 (en) 2023-02-02
CN112040244A (en) 2020-12-04
BR112020018923A2 (en) 2020-12-29
AU2019240981A1 (en) 2020-10-15
JP2021519548A (en) 2021-08-10
ZA202006408B (en) 2022-09-28
CA3095220C (en) 2023-12-12
SG11202009509VA (en) 2020-10-29
EP3771211A1 (en) 2021-01-27
CN110324637A (en) 2019-10-11
CN117560505A (en) 2024-02-13
CN110324637B (en) 2023-11-17
CN117560506A (en) 2024-02-13
RU2762262C1 (en) 2021-12-17
US11350122B2 (en) 2022-05-31
MX2020010174A (en) 2020-10-28
PH12020551544A1 (en) 2021-06-07
CN117528116A (en) 2024-02-06

Similar Documents

Publication Publication Date Title
KR102622150B1 (en) Bidirectional inter-frame prediction method and device
US11659161B2 (en) Reference frame obtaining method and apparatus applied to bidirectional inter prediction
KR20210022101A (en) Motion vector prediction method and related device
RU2818520C2 (en) Bidirectional inter-prediction method and device
CN115442616A (en) Video decoding method and device

Legal Events

Date Code Title Description
A107 Divisional application of patent
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant