KR100901030B1 - Method for coding moving picture - Google Patents

Method for coding moving picture Download PDF

Info

Publication number
KR100901030B1
KR100901030B1 KR1020020026054A KR20020026054A KR100901030B1 KR 100901030 B1 KR100901030 B1 KR 100901030B1 KR 1020020026054 A KR1020020026054 A KR 1020020026054A KR 20020026054 A KR20020026054 A KR 20020026054A KR 100901030 B1 KR100901030 B1 KR 100901030B1
Authority
KR
South Korea
Prior art keywords
picture
coded
scene
motion vector
coding
Prior art date
Application number
KR1020020026054A
Other languages
Korean (ko)
Other versions
KR20030088543A (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 엘지전자 주식회사
Priority to KR1020020026054A priority Critical patent/KR100901030B1/en
Publication of KR20030088543A publication Critical patent/KR20030088543A/en
Application granted granted Critical
Publication of KR100901030B1 publication Critical patent/KR100901030B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/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/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/87Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving scene cut or scene change detection in combination with video compression

Landscapes

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

Abstract

본 발명은 장면 변환이 반복적인 픽쳐을 코딩할 때, 코딩되는 비트 율을 적게 함으로써 코딩 효율을 향상시킨 동영상 코딩방법을 개시한다. 개시된 본 발명은 동영상 시퀀스의 쌍방향 예측 부호화 픽쳐를 코딩할 때 서브 시퀀트 순방향 예측 부호화 픽쳐의 장면 변환 여부를 판단하는 단계; 상기 순방향 예측 부호화 픽쳐의 장면 변환에 따라 롱 텀 픽쳐 또는 숏 텀 픽쳐를 참조하는 단계; 및 상기 순방향 예측 부호화 픽쳐가 롱 텀 픽쳐를 참조하거나 숏 텀 픽쳐를 참조하는 경우에 다이렉트 모드에서 각각의 순방향 모션 벡터와 역방향 모션 벡터를 구하는 단계를 포함하는 것을 특징으로 한다.The present invention discloses a moving picture coding method in which coding efficiency is improved by reducing a coded bit rate when a scene transformation codes repetitive pictures. The disclosed invention comprises the steps of: determining whether to transform a scene of a subsequence forward predictive encoded picture when coding a bidirectional predictive encoded picture of a video sequence; Referring to a long term picture or a short term picture according to a scene transformation of the forward predictive coded picture; And when the forward predictive coded picture refers to the long term picture or the short term picture, obtaining each forward motion vector and a reverse motion vector in the direct mode.

여기서, 상기 순방향 예측 부호화 픽쳐가 롱 텀 픽쳐를 참조하여 다이렉트 모드의 매크로 블록 예측 값을 구한 경우, 다이렉트 모드에서 순방향 모션벡터 MVf=MV를 구하고, 역방향 모션벡터 MVb=0값을 구하는 것을 특징으로 한다.Here, when the forward predictive coded picture obtains the macroblock prediction value in the direct mode by referring to the long term picture, the forward motion vector MV f = MV is calculated in the direct mode, and the reverse motion vector MV b = 0 is obtained. It is done.

Description

동영상 코딩방법{METHOD FOR CODING MOVING PICTURE}Video coding method {METHOD FOR CODING MOVING PICTURE}

도 1a는 종래 기술에 따라 동영상 코딩 시스템에서 쌍방향 예측 부호화 픽쳐를 사용하는 경우에 픽쳐가 디스플레이되는 순서를 도시한 도면.1A is a diagram illustrating an order in which pictures are displayed when a bidirectional predictive coded picture is used in a video coding system according to the related art.

도 1b는 종래 기술에 따라 동영상 코딩 시스템에서 쌍방향 예측 부호화 픽쳐를 사용하여 디지털 픽쳐를 코딩하는 순서를 도시한 도면. 1B is a diagram illustrating a sequence of coding a digital picture using a bidirectional predictive coded picture in a video coding system according to the prior art.

도 2는 본 발명에 따른 장면 변환을 하는 시퀀스의 순방향 예측 부호화 픽쳐 코딩방법을 설명하기 위한 도면.2 is a view for explaining a method of coding a forward predictive coded picture of a sequence for scene transformation according to the present invention;

도 3은 본 발명에 따른 장면 변환을 하는 시퀀스의 쌍방향 예측 부호화 픽쳐 코딩방법을 설명하기 위한 도면.3 is a diagram for describing a bidirectional predictive coded picture coding method of a sequence for scene transformation according to the present invention;

도 4는 본 발명에 따라 두 개의 쌍방향 예측 부호화 픽쳐를 삽입하여 코딩하는 방법을 설명하기 위한 도면.4 is a diagram illustrating a method of inserting and coding two bi-predictive coded pictures according to the present invention.

*도면의 주요 부분에 대한 부호의 설명** Description of the symbols for the main parts of the drawings *

I: 인트라 부호화 픽쳐 P: 순방향 예측 부호화 픽쳐I: intra coded picture P: forward predictive coded picture

B: 쌍방향 예측 부호화 픽쳐 MV: 모션 벡터B: bidirectional predictive coded picture MV: motion vector

본 발명은 동영상 코딩방법에 관한 것으로, 보다 구체적으로는 쌍방향 예측 부호화 픽쳐를 코딩할 때 서브 시퀀스 픽쳐인 순방향 예측 부호화 픽쳐의 장면 변환 여부를 판단하여 코딩함으로써 쌍방향 예측 부호화 픽쳐의 코딩 효율을 향상 시킬 수 있는 동영상 코딩방법에 관한 것이다.The present invention relates to a video coding method. More specifically, when coding a bi-prediction coded picture, the coding efficiency of the bi-prediction coded picture can be improved by judging and coding a scene transform of a forward predictive coded picture which is a subsequence picture. The present invention relates to a video coding method.

최근, 디지털 비디오 전송형태는 텔레비젼과, 오디오, 비디오 및/또는 데이터서비스를 고객의 가정으로 제공하기 위한 전송형태가 증가적으로 대중화되고 있다. 부가적으로, 디지털비디오는 새롭고 확장된 프로그램 신청을 제공하기 위해, 전통적인 아날로그 텔레비전 방송보다 더 높은 이미지 품질을 제공할 수 있다.In recent years, digital video transmission has been increasingly popular for providing television, audio, video and / or data services to a customer's home. In addition, digital video can provide higher image quality than traditional analog television broadcasts, to provide new and expanded program applications.

또한, 상기와 같은 디지털 비디오 픽쳐를 전송하기 위하여는, 이용 가능한 밴드 폭 내에서 데이터 압축기술을 이용할 필요가 있다. 특히, 현재의 기술은 픽셀 또는 픽셀의 블록간의 상호관계를 이용하지만, 공간적 압축기술은 인접 픽셀들, 또는 픽쳐 프레임에서의 픽셀의 블록간의 상호관계를 이용한다.In addition, in order to transmit such a digital video picture, it is necessary to use a data compression technique within the available bandwidth. In particular, current techniques utilize the interrelationship between pixels or blocks of pixels, while spatial compression techniques utilize interrelationships between adjacent pixels, or blocks of pixels in a picture frame.

그러나, 동영상 픽쳐 프레임의 시퀀스를 최적으로 압축하여 코딩하는데 에는 시퀀스에서 장면 변화 여부를 검출할 수 있는 것이 바람직하다. 왜냐하면, 뉴스, 스포츠 방송, 인터뷰와 같은 클로즈업 대화(close-up conversation)장면, 또는 다자간 픽쳐 회의(multi-point video conference)와 같은 디지털 비디오 픽쳐는 시간에 따라 지속적으로 부분 적으로나 전체적으로 장면이 변화하고 있기 때문이다.However, in order to optimally compress and code a sequence of video picture frames, it is desirable to be able to detect whether a scene has changed in the sequence. Because digital video pictures, such as close-up conversations such as news, sports broadcasts, and interviews, or multi-point video conferences, the scenes change partly or entirely over time. Because there is.

장면 변화가 검출될 때 마다 동영상 픽쳐의 코딩 방법은 그에 따라 변화된다. 예를 들어, 새로운 장면의 제 1 프레임 과 이전 장면의 마지막 프레임간의 현재의 상호관계의 감소확률이 있기 때문에 장면변화가 검출될 때, 동작보상은 일시 적으로 연기될 수 있다. 더욱이, 픽쳐(예컨대 I, P 또는 B화상)의 특정 형태는 장면변화정보에 근거해서 선택될 수 있다.Each time a scene change is detected, the coding method of the moving picture is changed accordingly. For example, when there is a reduction probability of the current correlation between the first frame of the new scene and the last frame of the previous scene, the motion compensation may be temporarily deferred when the scene change is detected. Moreover, a particular type of picture (e.g., I, P or B picture) can be selected based on the scene change information.

상기 I ,P 및 B 픽쳐는 MPEG-2 표준에서 정의되는 것으로 사용되는데, I 픽쳐은 인트라 부호화 픽쳐 또는 픽쳐 프레임 내의 부호화 픽쳐로 정의된다. 그리고, P 픽쳐는 Predictive Picture 부호화 픽쳐 또는 픽쳐 프레임간 순방향 예측 부호화 픽쳐로 정의되고, B 픽쳐는 Bidirectionally Predictive 부호화 픽쳐 또는 쌍방향 예측 부호화 픽쳐로 정의된다.The I, P, and B pictures are used as defined in the MPEG-2 standard, which is defined as an intra coded picture or a coded picture within a picture frame. The P picture is defined as a predictive picture coded picture or a picture inter-frame forward predictive coded picture, and the B picture is defined as a bidirectionally predictive coded picture or a bidirectional predictive coded picture.

도 1a는 종래 기술에 따라 동영상 코딩 시스템에서 쌍방향 예측 부호화 픽쳐를 사용하는 경우에 픽쳐가 디스플레이되는 순서를 도시한 도면이다.FIG. 1A is a diagram illustrating an order in which pictures are displayed when a bidirectional predictive coded picture is used in a video coding system according to the related art.

도 1a에 도시된 바와 같이, 시간적으로 디스플레이 되는 픽쳐 중 전체적으로 장면 변화가 발생한 경우에 처음으로 인트라 화상이 디스플레이 되면, 두 장의 쌍방향 예측(Bidirectionally Predictive) 부호화 픽쳐를 사용할 경우에 상기 인트라(Intra) 픽쳐 다음으로 계속해서 차례대로 첫 번째 및 두 번째에 쌍방향 예측 부호화 픽쳐가 디스플레이 된다. 상기의 쌍방향 예측 부호화 픽쳐가 디스플레이 된 후, 상기 디스플레이되는 첫 번째 또는 두 번째 쌍방향 예측 부호화 픽쳐의 서브 시퀀스 순방향 예측 부호화 픽쳐를 세 번째에서 디스플레이된다.As shown in FIG. 1A, when an intra picture is displayed for the first time when a scene change occurs overall among pictures displayed in time, an intra picture is used when two bidirectionally predictive coded pictures are used. Continually, the bidirectional predictive coded pictures are displayed in the first and second order. After the bidirectional predictive encoded picture is displayed, the subsequence forward predictive encoded picture of the displayed first or second bidirectional predictive encoded picture is displayed in the third.

상기에서 설명한 단계와 같은 방법으로 다음 단계도 이루어지는데, 상기 세 번째 서브 시퀀스 순방향 예측 부호화 픽쳐가 디스플레이되면, 네 번째 및 다섯 번째의 쌍방향 예측 부호와 픽쳐가 디스플레이되고, 계속해서 서브 시퀀스 순방향 예측 부호화 픽쳐가 디스플레이된다. In the same manner as described above, the following steps are also performed: when the third subsequence forward predictive coded picture is displayed, the fourth and fifth bidirectional predictive codes and pictures are displayed, and then the subsequence forward predictive coded picture is continued. Is displayed.                         

하지만, 디스플레이되는 동영상 픽쳐를 코딩하는 순서는 디스플레이 순서와 동일하지 않는데, 도 1b는 종래 기술에 따라 동영상 코딩 시스템에서 쌍방향 예측 부호화 픽쳐를 사용하여 동영상 픽쳐를 코딩하는 순서를 도시한 도면이다.However, the order of coding the displayed video picture is not the same as the display order. FIG. 1B is a diagram illustrating an order of coding a video picture using a bidirectional predictive coded picture in a video coding system according to the related art.

도 1b에 도시된 바와 같이, 장면 변환 후 어떠한 다른 화상을 참조하지 않은 인트라 픽쳐가 코딩되면, 먼저 디스플레이되는 두 장의 쌍방향 예측 부호화 픽쳐보다 항상 상기 두 장의 쌍방향 예측 부호화 픽쳐의 서브 시퀀스 순방향 예측 부호화 픽쳐가 먼저 코딩된다.As shown in Fig. 1B, if an intra picture is coded that does not refer to any other picture after scene transformation, the subsequence forward predictive coded picture of the two bi-predictive coded pictures is always displayed before the two displayed bi-predictive coded pictures. First coded.

상기 쌍방향 예측 부호화 픽쳐를 사용하여 코딩할 때, 이를 저 비트(bit) 코딩에 적용할 경우에는 코딩되는 픽쳐에 목차 정보를 제시할 필요가 없는 다이렉트 예측 모드가 다수 선택되어 진다. 또한, 고 비트 코딩에 적용할 경우에는 코딩되는 픽쳐에 목차 정보를 제시하는 것은 필수적이지만, 픽쳐의 예측 정확성이 높은 양방향 예측모드가 대부분 선택되어 순방향 예측 부호화 픽쳐의 코딩보다 훨씬 높은 코딩 효율을 갖게된다.When coding using the bi-prediction coded picture, when it is applied to low bit coding, a number of direct prediction modes are selected in which the table of contents information is not required to be coded. In addition, when applying to high bit coding, it is essential to present table of contents information to a picture to be coded, but most bidirectional prediction modes having high prediction accuracy of a picture are selected, and thus have much higher coding efficiency than coding of a forward predictive coded picture. .

압축 동영상 픽쳐의 예측에 사용되는 인트라 모드, 순방향 예측 모드, 역방향 예측 모드, 쌍방향 예측 모드 및 다이렉트 예측 모드 중에서 특히, 다이렉트 예측 모드인 경우에는 쌍방향 예측 부호화 픽쳐의 현재 매크로 블록과 동일 위치에 존재하는 서브 시퀀트 순방향 예측 부호화 픽쳐의 매크로 블록이 참조하는 모션 벡터로부터 다이렉트 모드의 순방향 모션 벡터와 역방향 모션 벡터를 계산한다. A sub-mode that is located at the same position as the current macroblock of the bidirectional predictive coded picture among intra mode, forward predictive mode, reverse predictive mode, bidirectional predictive mode, and direct predictive mode, particularly in the case of the direct predictive mode used for predicting a compressed video picture. The forward motion vector and the reverse motion vector of the direct mode are calculated from the motion vectors referenced by the macro blocks of the sequential forward predictive coded pictures.

그런 다음, 상기 순방향 모션 벡터와 역방향 모션 벡터를 계산한 값들을 사용하여 각각의 방향에 따라 움직임 보상 값을 얻고, 최종적으로 두 개의 움직임 보 상 값을 평균하거나 보간 연산하여 코딩하고자 하는 매크로블록의 예측 값을 얻는다.Then, the motion compensation value is obtained according to each direction by using the calculated values of the forward motion vector and the reverse motion vector, and finally the prediction of the macroblock to be coded by averaging or interpolating the two motion compensation values Get the value.

그러나, 일반적으로 동영상 픽쳐가 디스플레이 되면 장면 전체가 변환되는 경우와 장면의 특정 일부분만이 변환되는 경우가 있는데, 장면 전체가 변환되는 경우에는 변환된 장면의 모든 매크로 블록들이 인트라 모드로 코딩되는 픽쳐을 갖게되고, 장면의 일부분만이 변환되는 경우에는 변환이 발생한 영역의 매크로 블록만 인트라 모드로 코딩되게 된다.In general, however, when a video picture is displayed, the entire scene is converted and only a specific part of the scene is converted. When the whole scene is converted, all macro blocks of the converted scene have a picture coded in an intra mode. When only a part of the scene is transformed, only the macro block of the region where the transformation occurs is coded in the intra mode.

상기와 같은 방법으로 코딩을 할 경우에는 인터 모드에서 코딩할 때보다 높은 비트 량을 필요로 하는 인트라 모드 코딩을 장면 변환이 자주 발생하는 시퀀스의 저 비트율 코딩에 적용할 경우 코딩 과정에서 불량이 초래될 문제가 발생한다.In the case of coding in the above manner, if the intra mode coding requiring a higher bit amount than the coding in the inter mode is applied to the low bit rate coding of a sequence in which scene transformation occurs frequently, the coding process may cause a defect. A problem arises.

본 발명은, 동영상 압축 픽쳐에서 장면 변환이 전체적으로 발생하든지 부분적으로 발생할 때 프레임 버퍼에 저장되어 있는 장시간 유지 픽쳐들을 참조하여 다이렉트 모드에서 순방향 모션 벡터와 역방향 모션 벡터를 구하여 쌍방향 예측 부호화 픽쳐를 코딩하여 코딩 효율을 높일 수 있는 동영상 코딩방법을 제공함에 그 목적이 있다.The present invention obtains a forward motion vector and a backward motion vector in a direct mode by referring to long-term holding pictures stored in a frame buffer when a scene transformation occurs in whole or in part in a moving picture compressed picture, and then codes a bidirectional predictive coded picture. The purpose is to provide a video coding method that can increase the efficiency.

상기한 목적을 달성하기 위한, 본 발명에 따른 동영상 코딩방법은,In order to achieve the above object, a video coding method according to the present invention,

동영상 시퀀스의 쌍방향 예측 부호화 픽쳐를 코딩할 때 서브 시퀀트 순방향 예측 부호화 픽쳐의 장면 변환 여부를 판단하는 단계; Determining whether to transform a scene of the sub-sequential forward predictive encoded picture when coding the bidirectional predictive encoded picture of the moving picture sequence;                     

상기 순방향 예측 부호화 픽쳐의 장면 변환에 따라 롱 텀 픽쳐 또는 숏 텀 픽쳐를 참조하는 단계; 및Referring to a long term picture or a short term picture according to a scene transformation of the forward predictive coded picture; And

상기 순방향 예측 부호화 픽쳐가 롱 텀 픽쳐를 참조하거나 숏 텀 픽쳐를 참조하는 경우에 다이렉트 모드에서 각각의 순방향 모션 벡터와 역방향 모션 벡터를 구하는 단계를 포함하는 것을 특징으로 한다.And obtaining a forward motion vector and a reverse motion vector in the direct mode when the forward predictive coded picture refers to the long term picture or the short term picture.

여기서, 상기 순방향 예측 부호화 픽쳐가 롱 텀 픽쳐를 참조하여 다이렉트 모드의 매크로 블록 예측 값을 구한 경우, 다이렉트 모드에서 순방향 모션벡터 MVf=MV를 구하고, 역방향 모션벡터 MVb=0 값을 구하고, 상기 순방향 예측 부호화 픽쳐가 숏 텀 픽쳐를 참조하는 경우, 상기 서브 시퀀트 순방향 예측 부호화 픽쳐가 상기 숏 텀 픽쳐로부터 참조하는 영상까지의 모션 벡터의 시간 거리(TB)와, 상기 서브 시퀀트 순방향 예측 부호화 픽쳐가 상기 숏 텀 픽쳐로 부터 참조하는 영상으로부터 코딩할 상기 쌍방향 예측 부호화 영상의 매크로 블록까지의 시간 거리(TRD)를 사용하여 다이렉트 모드의 순방향 모션 벡터와 역방향 모션 벡터를 구하는 것을 특징으로 한다.Here, when the forward predictive coded picture obtains the macroblock prediction value of the direct mode by referring to the long term picture, the forward motion vector MV f = MV is obtained in the direct mode, and the backward motion vector MV b = 0 is obtained. When a forward predictive coded picture refers to a short term picture, a time distance T B of a motion vector from the short sequence picture to the video referenced by the subsequence forward predictive coded picture, and the subsequential forward predictive coding A forward motion vector and a backward motion vector in a direct mode are obtained by using a time distance TR D from a picture referred to by the picture to the short term picture to a macroblock of the bidirectional predictively encoded picture to be coded.

그리고, 장면 변환이 있는 순방향 예측 부호화 픽쳐를 다이렉트 모드에서 순방향 모션 벡터와 역방향 모션 벡터를 구하기 위해In order to obtain the forward motion vector and the reverse motion vector in the direct mode, the forward predictive coded picture with scene transformation is used.

MVf=(N1*MV)/DMV f = (N 1 * MV) / D

MVb=N2*MV/D를 사용하여 With MV b = N 2 * MV / D

(여기서, N1, N2, D는 각각의 모션 벡터를 구하기 위하여 정의되는 소정의 인자)Where N 1 , N 2 , and D are predetermined factors defined to obtain respective motion vectors)

상기 장면 변환이 있는 픽쳐가 롱텀 픽쳐를 참조하는 경우에는 N1=1, N2=0, D=1로 결정하고 디코더로 전송하여 순방향 모션 벡터 MVf=MV,와 역방향 모션 벡터 MVb=0를 구하는 것을 특징으로 한다.When the picture with the scene change refers to the long term picture, it is determined that N 1 = 1, N 2 = 0, D = 1 and transmitted to the decoder to forward motion vector MV f = MV, and reverse motion vector MV b = 0. It is characterized by obtaining.

여기서, 상기 순방향 예측 부호화 픽쳐인 서브 시퀀트 픽쳐를 롱 텀 다이렉트 순방향 및 역방향 모션 벡터를 구한 경우 다이렉트 순방향 모션 벡터 MVf=MV, MV=0으로 구하고, 상기 서브 시퀀트 순방향 예측 부호화 픽쳐가 숏텀 픽쳐로부터 모션 벡터를 구한 경우에는 N1=TRB, N2=TRB-TRD 및 D=TRD로 설정하여 Here, when the long sequence direct forward and reverse motion vectors of the subsequence picture that is the forward predictive coded picture are obtained, a direct forward motion vector MV f = MV and MV = 0 is obtained, and the subsequence forward predictive coded picture is a short term picture. In the case of obtaining a motion vector from, set N 1 = TR B , N 2 = TR B -TR D and D = TR D

MVf=(TRB*MV)/TRD,MV f = (TR B * MV) / TR D ,

MVb=(TRB-TRD*MV)/TRD로 구하는 것을 특징으로 한다.It is characterized by obtaining MV b = (TR B -TR D * MV) / TR D.

본 발명에 의하면, 반복적으로 장면이 변환하는 동영상 픽쳐를 코딩할 때 서브 시퀀트 순방향 예측 부호화 픽쳐가 다이렉트 예측 모드에서 모션 벡터를 구할 수 있도록하고, 롱 텀 픽쳐로 부터 픽쳐를 참조할 수 있도록 하여 전체적인 코딩 효율을 향상시킬 수 있는 이점이 있다. According to the present invention, when coding a moving picture that is repeatedly transformed by a scene, the subsequential forward predictive coded picture can obtain a motion vector in the direct prediction mode, and can refer to the picture from the long term picture so that the overall There is an advantage to improve the coding efficiency.

이하, 첨부한 도면에 의거하여 본 발명의 바람직한 실시 예를 자세히 설명하도록 한다.Hereinafter, preferred embodiments of the present invention will be described in detail with reference to the accompanying drawings.

본 발명의 실시 예 설명에 들어가기 전에 반복적으로 변환하는 동영상 픽쳐 에서 픽쳐 전체에서 변환이 발생하는 픽쳐를 장면 컷 픽쳐(scene cut picture)이라고 하고, 픽쳐 일부에서 변환이 발생하는 픽쳐를 부분 장면 변환 픽쳐(partial scene change picture)라고 정의한다.Before entering the description of an embodiment of the present invention, a picture in which a transformation occurs in the entire picture in a moving picture that is repeatedly converted is called a scene cut picture, and a picture in which the conversion occurs in a part of the picture is called a partial scene change picture ( partial scene change picture).

그리고, 동영상 픽쳐가 장시간 보유되고, 장면 컷 픽쳐 또는 부분 장면 변환 픽쳐를 저장하는 버퍼를 장시간 픽쳐 유지 버퍼(롱 텀 버퍼: long-term buffer)라고 하고, 반대로 동영상 픽쳐 장면을 비교적 짧은 시간 전에 코딩된 픽쳐를 보유하는 버퍼를 단시간 픽쳐 유지 버퍼(숏 텀 버퍼:short-term buffer)라고 한다.In addition, a buffer that holds a moving picture for a long time and stores a scene cut picture or a partial scene conversion picture is called a long-term picture holding buffer (long-term buffer), and conversely, a moving picture picture scene is coded before a relatively short time. The buffer holding the picture is called a short-term picture holding buffer (short-term buffer).

도 2는 본 발명에 따른 장면 변환을 하는 시퀀스의 순방향 예측 부호화 픽쳐 코딩방법을 설명하기 위한 도면이다.2 is a diagram for describing a method of coding a forward predictive coded picture of a sequence for scene transformation according to the present invention.

도 2에 도시된 바와 같이, 먼저 쌍방향 예측 부호화 픽쳐를 코딩하기 전에 모든 서브 시퀀트 순방향 예측 부호화 픽쳐의 장면 컷 픽쳐 또는 부분 장면 변환 픽쳐가 발생하였는지를 판단한다. 이는 시스템의 인코더에서 검출한 다음 그 정보를 디코딩부로 넘겨주는 방식으로 진행된다.As shown in FIG. 2, it is first determined whether scene cut pictures or partial scene transform pictures of all subsequential forward predictive encoded pictures have occurred before coding the bidirectional predictive encoded pictures. This is done by detecting at the encoder of the system and passing the information to the decoding unit.

상기 인코더에서는 상기 순방향 예측 부호화 픽쳐가 상기 장면 변환 픽쳐 또는 부분 장면 변환 픽쳐으로 판단되면, 장시간 픽쳐 유지 버퍼(롱 텀 버퍼)에 저장되어 있는 순방향 예측 부호화 픽쳐 또는 단시간 픽쳐 유지 버퍼(숏 텀 버퍼)에 저장되어 있는 순방향 예측 부호화 픽쳐로 부터 움직임 추정(motion estimation) 및 움직임 보상(motion compensation)을 통한 코딩을 실행하게 된다.In the encoder, if the forward predictive encoded picture is determined to be the scene transformed picture or the partial scene transformed picture, the encoder predicts the forward predictive encoded picture or the short term picture retaining buffer (short term buffer) stored in the long term picture maintaining buffer (long term buffer). Coding is performed through motion estimation and motion compensation from the stored forward predictive coded pictures.

상기 단시간 픽쳐 유지 버퍼(숏 텀 버퍼)는 먼저 입력된 픽쳐를 먼저 출력하는 순차 출력 방식에(FIFO: First In First Out) 따라 이미 코딩된 픽쳐들이 저장 되어 있는 공간으로서, 시간적으로 바로 이전에 코딩된 순방향 예측 부호화 픽쳐들을 저장한다.The short-term picture holding buffer (short-term buffer) is a space in which already coded pictures are stored according to a FIFO (First In First Out) outputting the first inputted picture first. Stores forward predictive coded pictures.

상기 장시간 픽쳐 유지 버퍼는 시퀀스의 첫 번째 픽쳐, 즉 인트라 픽쳐와, 상기 장면 컷 픽쳐 및 부분 장면 변환 픽쳐를 저장하는 공간으로서, 만약 장면 컷 픽쳐 및 부분 장면 변환 픽쳐가 장시간 픽쳐 유지 버퍼에 존재하지 않는다면 새로이 추가적으로 저장되어 진다. 그리고, 상기 장면 컷 픽쳐는 인트라 픽쳐(Intra picture)로 코딩되어지고 상기 부분 장면 변환 픽쳐는 변환이 있는 영역만 인트라 모드(intra mode)로 코딩되어 진다.The long picture retention buffer is a space for storing the first picture of the sequence, that is, an intra picture, the scene cut picture and the partial scene change picture, and if the scene cut picture and the partial scene change picture are not present in the long picture retention buffer, Newly stored. In addition, the scene cut picture is coded as an intra picture, and the partial scene transform picture is coded in an intra mode only in an area in which a transform is performed.

따라서, 도 2에 도시된 것을 참조하면, 장면 셋 A의 첫 번째 장면 컷 픽쳐인 인트라 픽쳐와 장면 셋 B의 첫 번째 장면 컷 픽쳐(P50) 및 첫 번째 부분 장면 변환 픽쳐(P120)는 상기 장시간 픽쳐 유지 버퍼에 저장된다.Therefore, referring to FIG. 2, the intra picture, which is the first scene cut picture of scene set A, the first scene cut picture P50, and the first partial scene transform picture P120 of scene set B are the long time picture. It is stored in the retention buffer.

예를 들어, 현재 코딩을 위한 쌍방향 예측 부호화 픽쳐의 서브 시퀀트 순방향 예측 부호화 픽쳐가 도면에서 도시된 부분에서 두 번째 장면 셋 B에 해당하는 장면 컷 픽쳐(P200)라면, 이전에 코딩되었던 단시간 픽쳐 유지 버퍼(short-term buffer)에 저장된 픽쳐들은 두 번째 장면 셋 A에 존재하기 때문에 상기 장면 컷 픽쳐(P200)는 장시간 픽쳐 유지 버퍼에 저장되어 있는 순방향 예측 부호화 픽쳐들(P50, P120)을 참조하여 코딩하게 된다.For example, if the sub-sequence forward-prediction coded picture of the bi-prediction coded picture for current coding is the scene cut picture P200 corresponding to the second scene set B in the portion shown in the figure, the short-time picture that was previously coded is maintained. Since the pictures stored in the short-term buffer are present in the second scene set A, the scene cut picture P200 is coded by referring to the forward predictive coded pictures P50 and P120 stored in the picture holding buffer for a long time. Done.

그러므로, 원칙적으로는 장면 컷 픽쳐이므로 인트라 모드에 의하여 코딩되어 비트 율이 증가해야하지만, 상기 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장된 픽쳐을 참조하므로, 인터 모드로 코딩하게 되어 코딩할 때의 비트 율이 증가하 지 않게 된다.Therefore, in principle, the bit rate should be increased by being coded by the intra mode because it is a scene cut picture, but since it refers to the picture stored in the long-term picture holding buffer, it is coded by the inter mode to code the bit. The rate will not increase.

또한, 예를 들어 현재 코딩을 위한 순방향 예측 부호화 픽쳐가 부분 장면 변환 픽쳐(P250)일 경우에는, 장면 변환이 발생하지 않은 매크로 블록은 바로 이전에 저장되어 있는 픽쳐를 참조하여 코딩하므로, 단시간 픽쳐 유지 버퍼(short-term buffer)에서 저장되어 있는 순방향 예측 부호화 픽쳐들(P249, P248, P247)을 참조하여 인터 모드로 코딩한다.Also, for example, when the forward predictive coded picture for the current coding is the partial scene transform picture P250, since the macro block in which the scene change has not occurred is coded by referring to the picture stored before, the short time picture is maintained. Coding is performed in the inter mode with reference to the forward predictive coded pictures P249, P248, and P247 stored in a short-term buffer.

또한, 장면 변환이 있는 영역에서의 매크로 블록은 상기 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장되어 있는 순방향 예측 부호화 픽쳐들(P50, P120)을 참조하여 인터 모드로 코딩한다.In addition, the macro block in the region having the scene transformation is coded in the inter mode with reference to the forward predictive coded pictures P50 and P120 stored in the long-term picture holding buffer.

그리고 코딩할 쌍방향 예측 부호화 픽쳐의 서브 시퀀트 순방향 예측 부호화 픽쳐가 장면 컷 픽쳐 또는 부분 장면 변환 픽쳐 어느 것도 아닐 경우에는 바로 이전에 저장된 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐를 참조하여 코딩하게된다. If the sub-sequential forward-prediction coded picture of the bi-prediction coded picture to be coded is neither a scene cut picture nor a partial scene transform picture, the sub-sequential forward predictive coded picture is coded by referring to a picture stored in the short-term picture maintaining buffer previously stored.

하지만, 상기 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐 중에서 상기 코딩할 쌍방향 예측 부호화 픽쳐의 서브 시퀀트 순방향 부호화 픽쳐의 장면 컷 영역 내에 존재할 경우와 그렇치 않을 경우로 구분되어 코딩하여야 한다.However, coding is performed separately from the pictures stored in the short-term picture maintaining buffer in the scene cut region of the sub-sequence forward-coded picture of the bidirectional predictive-coded picture to be coded, or when not.

첫 번째, 상기 코딩할 쌍방향 예측 부호화 픽쳐의 서브 시퀀트 순방향 예측 부호화 픽쳐가 참조할 상기 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐 중 일부가 다른 장면 셋에 존재할 경우에는 다른 장면 셋에 속하는 픽쳐는 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장되어 있는 픽쳐를 참조하여 코딩한다. First, when some of the pictures stored in the short-term picture maintaining buffer to be referenced by the sub-sequence forward-prediction coded picture to be coded exist in another scene set, a picture belonging to another scene set is a long picture. Coding is performed by referring to a picture stored in a long-term buffer.                     

예를 들면, 동영상 코딩 시스템에서 참조 픽쳐 프레임의 수를 5개로 제한 한 경우에 도 2에 도시된 바와 같이, 장면 변환이 없는 장면 셋 B내의 P202는 단시간 픽쳐 유지 버퍼에 저장되어 있는 P201, P200, P199, P198, P197 등을 참조하는데, 이중 상기 P201, P200만 동일한 장면 셋 B에 속하므로 두 개만 참조하여 코딩을 실시한다.For example, in the case of limiting the number of reference picture frames to five in the video coding system, as shown in FIG. 2, P202 in scene set B without scene transformation is stored in the short-term picture holding buffer P201, P200, Reference is made to P199, P198, P197, etc. Of these, since only P201 and P200 belong to the same scene set B, only two of them are coded.

상기 5개의 참조 픽쳐 제한을 따르기 위하여 장시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐(P50, P120)를 참조함으로써 코딩 효율을 높일 수 있다. 따라서, 결과적으로 P202가 단시간 픽쳐 유지 버퍼와 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장되어 있는 4개의 픽쳐를 참조하므로 코딩 효율이 향상된다.Coding efficiency can be improved by referring to pictures P50 and P120 stored in a picture sustain buffer for a long time in order to comply with the five reference picture limitations. Therefore, as a result, since P202 refers to four pictures stored in the short-term picture retention buffer and the long-term picture retention buffer, the coding efficiency is improved.

두 번째로, 상기 코딩할 쌍방향 예측 부호화 픽쳐의 서브 시퀀트 순방향 예측 부호화 픽쳐가 참조할 상기 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐들이 모두 동일한 장면 셋에 존재할 경우에는 장시간 픽쳐 유지 버퍼(long-term buffer)를 참조할 필요 없이 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐들만 참조하여 코딩하면 된다.Second, when all pictures stored in the short-term picture retention buffer to be referenced by the sub-sequence forward-prediction coded picture to be coded exist in the same scene set, a long-term picture retention buffer Note that only the pictures stored in the short-term picture retention buffer need to be coded with reference to the reference.

상기에서와 같이 서브 시퀀스의 순방향 예측 부호화 픽쳐의 코딩이 끝나면, 쌍방향 예측 부호화 픽쳐 코딩을 진행한다.As described above, when coding of the forward predictive coded picture of the subsequence is completed, bidirectional predictive coded picture coding is performed.

도 3은 본 발명에 따른 장면 변환을 하는 시퀀스의 쌍방향 예측 부호화 픽쳐 코딩방법을 설명하기 위한 도면이다.3 is a diagram for describing a bidirectional predictive coded picture coding method of a sequence for scene transformation according to the present invention.

도 3에 도시된 바와 같이, 먼저, 코딩이 끝난 순방향 예측 부호화 픽쳐을 쌍방향 예측 부호화 픽쳐를 코딩하기 전에 서브 시퀀스 순방향 예측 부호화 픽쳐의 장시간 픽쳐 유지 버퍼(롱 텀 버퍼:long-term buffer) 또는 단시간 픽쳐 유지 버퍼(숏 텀 버퍼:short-term buffer)에 저장되어 있는 픽쳐를 참조하였는지를 검출한다.As shown in FIG. 3, first, a long-term picture retention buffer (long-term buffer) or a short-term picture retention of a subsequential forward-prediction coded picture is coded before coding the coded forward-prediction picture. Detects whether the picture stored in the buffer (short-term buffer) is referenced.

왜냐하면, 상기 서브 시퀀스 순방향 예측 부호화 픽쳐가 상기 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장되어 있는 픽쳐를 참조하여 코딩하였다면, 코딩할 상기 쌍방향 예측 부호화 픽쳐를 코딩할 때, 상기 장시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐를 포함하여 인트라 예측 모드, 순방향 예측 모드, 역방향 예측 모드, 쌍방향 예측 모드 및 다이렉트 예측 모드에 의한 코딩을 실시한다.If the subsequence forward-prediction coded picture is coded with reference to a picture stored in the long-term picture retention buffer, when coding the bidirectional predictive-coded picture to be coded, the long-term picture retention buffer is coded. Coding by intra prediction mode, forward prediction mode, backward prediction mode, bidirectional prediction mode, and direct prediction mode is performed including the stored picture.

상기 서브 시퀀스 순방향 예측 부호화 픽쳐가 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장된 픽쳐로 부터 모션 벡터를 구했다면, 상기 다이렉트 예측 모드에서 순방향 모션 벡터는 상기 서브 스퀀스 순방향 예측 부호화 픽쳐의 모션 벡터를 그대로 사용하여 순방향 움직임 보상을 하고 역방향 모션 벡터는 0으로 하여 역방향 움직임 보상을 한다. 그런 다음, 최종적으로 두 움직임 보상 값의 평균을 구하여 매크로 블록의 예측 값을 예측한다.If the subsequence forward predictive coded picture obtains a motion vector from a picture stored in a long-term picture holding buffer, in the direct prediction mode, a forward motion vector is used to determine the motion vector of the subsequence forward predictive coded picture. Forward motion compensation is used as it is and reverse motion compensation is performed by setting the backward motion vector to zero. Then, finally, two motion compensation values are averaged to predict the prediction value of the macro block.

도 4는 본 발명에 따라 두 개의 쌍방향 예측 부호화 픽쳐를 삽입하여 코딩하는 방법을 설명하기 위한 도면이다.4 is a diagram for describing a method of inserting and coding two bidirectional predictive coded pictures according to the present invention.

도 4에 도시된 바와 같이, 서브 시퀀스 순방향 예측 부호화 픽쳐(P200)가 인코더부로 부터 장면 변환을 검출 받아 코딩을 실시할 때, 장시간 픽쳐 유지 버퍼(롱 텀 버퍼:long-term buffer)에 저장되어 있는 픽쳐로 부터 모션 벡터를 구했다면, 쌍방향 예측 부호화 픽쳐가 B1일 때, 도 3에서와 같이, P200이 장시간 픽쳐 유 지 버퍼에 저장된 순방향 예측 부호화 픽쳐를 이용했음을 알게 된다.As shown in FIG. 4, when the sub-sequence forward-prediction coded picture P200 detects a scene transformation from the encoder unit and performs coding, the sub-sequential forward-prediction coded picture P200 is stored in a long time picture holding buffer (long-term buffer). If the motion vector is obtained from the picture, when the bidirectional predictive coded picture is B1, as shown in FIG. 3, P200 uses the forward predictive coded picture stored in the picture sustain buffer for a long time.

따라서, 상기 다이렉트 예측 모드는 상기 장시간 픽쳐 유지 버퍼(롱 텀 버퍼)에 저장되어 있는 픽쳐(P50)로부터 순방향 모션 벡터를 구하고, 순방향 움직임 보상을 하게된다. 그리고, 상기 서브 시퀀스 순방향 예측 부호화 픽쳐(P200)로부터 역방향 모션 벡터 및 역방향 움직임 보상을 하여 매크로 블록의 예측 값을 얻게 된다.Accordingly, the direct prediction mode obtains a forward motion vector from the picture P50 stored in the long time picture sustain buffer (long term buffer) and compensates for forward motion. In addition, a backward motion vector and backward motion compensation are performed from the sub-sequence forward-prediction coded picture P200 to obtain a prediction value of a macroblock.

그러나, B1는 P200라 하는 장면 셋에 포함되므로, 대부분의 매크로 블록을 단시간 픽쳐 유지 버퍼로부터 움직임 보상을 하는 순방향 예측모드를 최종적으로 선택할 것이다.However, since B 1 is included in a scene set called P200, it will finally select a forward prediction mode in which most macro blocks are motion compensated from the short-term picture holding buffer.

이와 달리 쌍방향 예측 부호화 픽쳐가 B2일 때 도 3에서와 같이, 서브 시퀀스 순방향 예측 부호화 픽쳐(P200)가 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장된 픽쳐(P50)를 이용했음을 판단되면, 다이렉트 예측 모드에서 모션 벡터는 P50으로부터 구하고, 상기 서브 시퀀스 순방향 예측 부호화 픽쳐로부터 역방향 모션 벡터를 구해 양방향으로부터 움직임 보상 값을 평균하여 매크로 블록의 예측 값을 예측한다.In contrast, when the bidirectional predictive coded picture is B 2 , as shown in FIG. 3, when it is determined that the sub-sequence forward predictive coded picture P200 uses the picture P50 stored in the long-term buffer, the direct In the prediction mode, a motion vector is obtained from P50, a backward motion vector is obtained from the subsequential forward prediction coded picture, and motion compensation values are averaged from both directions to predict a prediction value of a macroblock.

도 4에서와 같이, 쌍방향 예측 부호화 픽쳐 B2는 P50, P200과 동일한 장면 셋 B에 존재하므로 다이렉트 예측 모드가 최종적인 예측 모드로써 선택되어 질 것이다. 즉 코딩되는 픽쳐에 정보 목차를 필요로하지 않기 때문에 비트 율을 줄일 수 있어 코딩 효율을 향상시킨다. 특히, 동영상 코딩방법에서 순방향 모션 벡터와 역 방향 모션 벡터를 다음과 같이 구한다.As shown in FIG. 4, since the bidirectional predictive coded picture B2 exists in the same scene set B as P50 and P200, the direct prediction mode will be selected as the final prediction mode. That is, since the information to be coded is not required for the coded picture, the bit rate can be reduced, thereby improving coding efficiency. In particular, in the video coding method, the forward motion vector and the reverse motion vector are obtained as follows.

일반적으로 MVf 와 MVb를 구하는 식은 다음과 같다.In general, the formula for MV f and MV b is as follows.

MVf=(N1*MV)/D.......(식 1)MV f = (N 1 * MV) / D ....... (Equation 1)

MVb=(N2*MV)/D.......(식 2)MV b = (N 2 * MV) / D ....... (Equation 2)

여기서, MV는 코딩할 쌍방향 예측 부호화 픽쳐의 서브 시퀀스 순방향 예측 부호화 픽쳐(P200)가 장시간 픽쳐 유지 버퍼에서 참조한 저장 픽쳐로 부터 구한 모션 벡터이고, MVf는 코딩할 쌍방향 예측 부호화 픽쳐로 부터 장시간 픽쳐 유지 버퍼에 저장되어 있는 참조 픽쳐까지의 다이렉트 예측 모드에서의 구한 순방향 모션 벡터이며, MVb는 코딩할 쌍방향 예측 부호화 픽쳐로 부터 서브 시퀀스 순방향 예측 부호화 픽쳐까지의 다이렉트 예측 모드에서의 역방향 모션 벡터를 나타낸다.Here, MV is a motion vector obtained by the subsequence forward-prediction coded picture (P200) of the bidirectional predictive coded picture to be coded from the stored picture referred to in the long-term picture retention buffer, and MV f is a long-term picture retained from the bidirectional predictive coded picture to be coded. A forward motion vector obtained in the direct prediction mode up to the reference picture stored in the buffer, and MV b represents a backward motion vector in the direct prediction mode from the bidirectional predictive coded picture to be coded to the subsequence forward predictive coded picture.

또한, N1=TRB, N2=TRB-TRD, D=TRD를 나타낸다. 상기 TRD 서브 시퀀스 순방향 예측 부호화 픽쳐이 참조하는 참조 픽쳐와 상기 서브 시퀀스 순방향 예측 부호화 픽쳐간의 시간 거리이고, TRB는 상기 서브 시퀀스 순방향 예측 부호화 픽쳐가 참조하는 레퍼런스 픽쳐로부터 현재 쌍방향 예측 부호화 픽쳐까지의 시간 거리를 나타낸다.N 1 = TR B , N 2 = TR B -TR D , and D = TR D. The time distance between the reference picture referred to by the TR D subsequence prediction coded picture and the subsequence forward prediction coded picture, and TR B is the time from the reference picture referred to by the subsequence forward prediction coded picture to the current bidirectional predictive coded picture. Indicates distance.

하지만, 장면 변환이 발생한 픽쳐와 그 픽쳐가 참조한 픽쳐가 장시간 픽쳐 유지 버퍼에 저장된 픽쳐일 경우에는 상기 TRD와 TRB는 의미가 없어진다. 왜냐하면, TRD와 TRB는 일반적으로 다이렉트 예측 모드에서의 순방향, 역방향 모션 벡터는 서브 시퀀스 순방향 예측 부호화 픽쳐와 상기 서브 시퀀스 순방향 예측 부호화 픽쳐가 참조한 픽쳐 프레임 사이에 연속적인 움직임을 고려하여, 삽입되는 쌍방향 예측 부호화 픽쳐에서도 여전히 움직임이 존재할 것이라 판단하여 두 픽쳐 사이에 시간적 거리를 유도한 것이기 때문이다.However, the TR D and the TR B become meaningless when the picture where the scene change has occurred and the picture referred to by the picture are pictures stored in the picture sustain buffer for a long time. Because TR D and TR B are generally the forward and reverse motion vectors in the direct prediction mode, the sub-sequential forward prediction coded picture is inserted in consideration of the continuous motion between the sub-frame forward prediction coded picture and the picture frame referred to by the sub-sequence forward prediction coded picture. This is because it is determined that there will still be motion even in the bidirectional predictive coded picture, thereby inducing a temporal distance between the two pictures.

장면 변환에 의한 장시간 픽쳐 유지 버퍼에 저장된 픽쳐를 참조하여 구하였을 경우에는 두 픽쳐들의 움직임이 존재하는 것은 사실이지만, 다른 장면 셋까지 포함된 시간적 거리를 나타내므로 위의 식 1과 식 2로는 모션 벡터를 구할 수 없다.It is true that the motions of two pictures exist when referring to a picture stored in a long-term picture retention buffer due to scene transformation. Cannot be obtained.

따라서, 본 발명에서 쌍방향 예측 부호화 픽쳐를 코딩할 때에는 상기 서브 스퀀스 순방향 예측 부호화 픽쳐와 유사도가 매우 높을 것이라고 가정하고, 다이렉트 예측 모드의 순방향 및 역방향 모션 벡터를 각각 MV 및 0으로 근사화 하여 사용한다.Therefore, in the present invention, it is assumed that the similarity with the subsequence forward predictive coded picture is very high when coding the bidirectional predictive coded picture, and the forward and reverse motion vectors of the direct prediction mode are approximated to MV and 0, respectively.

그러므로, 동영상 코딩에 적용되는 경우, 장면 변환이 발생한 픽쳐와 그 픽쳐가 장기간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐를 참조한 경우에는 상기 식 1과 식2를 이용하여 MVf과 MVb이 다음과 같이 나타내진다.Therefore, when applied to video coding, when a picture that has undergone scene transformation and a picture stored in the picture holding buffer for a long time are referred to, MV f and MV b are expressed as follows using Equations 1 and 2 above. Lose.

여기서, N1=1, N2=0, D=1로 결정하여 디코더에 전송한 후 다이렉트 모드에서 순방향 및 역방향 모션 벡터를 구할 수 있다.Here, after determining N 1 = 1, N 2 = 0, and D = 1 and transmitting the same to the decoder, the forward and reverse motion vectors may be obtained in the direct mode.

MVf=MV.........(식 3) MV f = MV ......... (Equation 3)

MVb=0 ..........(식 4)MV b = 0 .......... (Equation 4)

다음으로, 상기 서브 시퀀스 순방향 예측 부호화 픽쳐에 존재하는 쌍방향 예측 부호화 픽쳐와 동일한 위치의 매크로 블록이 단시간 픽쳐 유지 버퍼(short-term buffer)에 저장되어 있는 픽쳐로 부터 모션 벡터를 구했을 경우에는, 일반적인 방법에 따라 상기 식 1 과 식 2를 사용하여 다이렉트 순방향 및 역방향 모션 벡터를 구한 다음, 각각의 방향에 따른 움직임 보상 값의 평균값 또는 보간 연산을 통해 매크로 블록의 예측 값을 얻는다.Next, when a macroblock at the same position as the bidirectional predictive coded picture present in the subsequential forward predictive coded picture is obtained from a picture stored in a short-term picture holding buffer, a general method is used. In accordance with Equation 1 and Equation 2, direct forward and reverse motion vectors are obtained, and then the predicted value of the macroblock is obtained through an average value or interpolation of motion compensation values in each direction.

일반적으로 상기 서브 시퀀스 순방향 예측 부호화 픽쳐가 장면 변환 없는 픽쳐이거나, 부분 장면 변환이 없는 픽쳐일 때 발생된다.In general, the sub-sequence forward-prediction coded picture is generated when a picture without scene transformation or a picture without partial scene transformation.

만일, 서브 시퀀트 순방향 예측 부호화 픽쳐가 부분 장면 변환 픽쳐일 경우, 장면 변환이 발생한 영역에서는 장시간 픽쳐 유지 버퍼(long-term buffer)에 저장되어 있는 픽쳐로 부터 움직임 보상이 이루어지지만, 장면 변환이 없는 영역에서는 단시간 픽쳐 유지 픽쳐로 부터 움직임 보상이 이루어질 것이다. 그러므로 쌍방향 예측 부호화 픽쳐의 다이렉트 예측 모드를 통하여 매크로 블록 예측 값을 구할 때, 다이렉트 예측 모드의 순방향 모션 벡터는 장기간 픽쳐 유지 버퍼 또는 단시간 픽쳐 유지 버퍼에 저장되어 있는 픽쳐로 부터 픽쳐를 참조하여 다이렉트 모드에서 모션 벡터를 구한다.If the subsequence forward predictive coded picture is a partial scene transformed picture, motion compensation is performed from the picture stored in the long-term buffer in the region where the scene change occurs, but without scene change. In the region, motion compensation will be made from the short-term picture holding picture. Therefore, when the macroblock prediction value is obtained through the direct prediction mode of the bidirectional predictive coded picture, the forward motion vector of the direct prediction mode is referred to the picture from the picture stored in the long-term picture retention buffer or the short-term picture retention buffer in the direct mode. Find the motion vector.

이상에서 자세히 설명된 바와 같이, 본 발명은 서브 시퀀스 순방향 예측 부 호화 픽쳐에 장면 컷 픽쳐 또는 부분 장면 변환 픽쳐가 발생할 경우, 인터 모드 에의한 코딩을 할 수 있도록 하여 쌍방향 예측 부호화 픽쳐의 코딩 효율을 향상시킨 효과가 있다.As described in detail above, the present invention improves the coding efficiency of a bidirectional predictive coded picture by enabling inter mode coding when a scene cut picture or a partial scene transform picture occurs in a subsequence forward predictive encoded picture. It is effective.

아울러, 장면 변환이 있는 경우에 서브 시퀀스 순방향 예측 부호화 픽쳐를 코딩한 후에, 쌍방향 예측 부호화 픽쳐를 코딩화할 때 다이렉트 예측 모드가 많이 선택되도록 하여 코딩 비트율을 낮출 수 있는 이점이 있다.In addition, after coding a sub-sequence forward-prediction coded picture when there is a scene transformation, when coding a bi-prediction coded picture, many direct prediction modes are selected, thereby reducing the coding bit rate.

본 발명은 상기한 실시 예에 한정되지 않고, 이하 청구 범위에서 청구하는 본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변경 실시가 가능할 것이다.The present invention is not limited to the above-described embodiments, and various changes can be made by those skilled in the art without departing from the gist of the present invention as claimed in the following claims.

Claims (5)

쌍방향 예측 부호화 매크로블록을 포함하는 비트 스트림을 생성하는 인코딩 방법에 있어서, An encoding method for generating a bit stream including a bidirectional predictive encoding macroblock, 상기 쌍방향 예측 부호화 매크로블록을 인코딩할 때, 쌍예측 부호화 매크로블록의 예측 모드를, When encoding the bidirectional predictive coded macroblock, the prediction mode of the bi-predictive coded macroblock, 상기 쌍방향 예측 부호화 매크로블록의 동일 위치에 존재하는 매크로블록이 참조하는 픽쳐가 롱텀 참조 픽쳐이면,If the picture referred to by the macroblock existing at the same position of the bidirectional predictive encoded macroblock is a long term reference picture, 상기 동일 위치에 존재하는 매크로블록의 움직임 벡터를 획득하는 단계;Obtaining a motion vector of a macroblock existing at the same location; 상기 쌍방향 예측 부호화 매크로블록의 제 1움직임 벡터를 상기 획득된 동일 위치에 있는 블록의 움직임 벡터로 결정하고, 제 2 움직임 벡터를 0으로 결정하는 단계; 및Determining a first motion vector of the bidirectional predictive encoded macroblock as the motion vector of the obtained co-located block, and determining a second motion vector as zero; And 상기 결정된 쌍방향 예측 부호화 매크로블록의 제1 움직임 벡터 및 제2 움직임 벡터를 사용하여 상기 쌍방향 예측 부호화 매크로블록을 디코딩하는 단계를 포함하는 디코딩 방법에 의해 디코딩되는 다이렉트 예측 모드로 설정하는 단계를 포함하는 것을 특징으로 하는 인코딩 방법.Setting the direct prediction mode to be decoded by a decoding method comprising decoding the bidirectional predictive encoded macroblock using the determined first and second motion vectors of the bidirectional predictive encoded macroblock. Characterized by the encoding method. 삭제delete 삭제delete 삭제delete 삭제delete
KR1020020026054A 2002-05-11 2002-05-11 Method for coding moving picture KR100901030B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020026054A KR100901030B1 (en) 2002-05-11 2002-05-11 Method for coding moving picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020026054A KR100901030B1 (en) 2002-05-11 2002-05-11 Method for coding moving picture

Publications (2)

Publication Number Publication Date
KR20030088543A KR20030088543A (en) 2003-11-20
KR100901030B1 true KR100901030B1 (en) 2009-06-04

Family

ID=32382457

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020026054A KR100901030B1 (en) 2002-05-11 2002-05-11 Method for coding moving picture

Country Status (1)

Country Link
KR (1) KR100901030B1 (en)

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100668463B1 (en) * 2004-12-31 2007-01-12 엠큐브웍스(주) Method for Selecting Multiple Reference Frame in Moving Pictures Data Encoding
AU2012329550B2 (en) * 2011-10-27 2016-09-08 Sun Patent Trust Image encoding method, image decoding method, image encoding apparatus, and image decoding apparatus
SG10201801332XA (en) 2011-10-28 2018-04-27 Samsung Electronics Co Ltd Method for inter prediction and device therefor, and method for motion compensation and device therefor
CN104041042B (en) 2011-10-28 2018-10-23 太阳专利托管公司 Image encoding method, picture decoding method, picture coding device and picture decoding apparatus
EP2773111B1 (en) 2011-10-28 2020-01-01 Sun Patent Trust Image encoding method, image decoding method, image encoding device, and image decoding device
CN112073735B (en) * 2020-11-16 2021-02-02 北京世纪好未来教育科技有限公司 Video information processing method and device, electronic equipment and storage medium

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH1051784A (en) * 1996-07-30 1998-02-20 Sanyo Electric Co Ltd Dynamic image coder
JPH10229563A (en) * 1997-02-13 1998-08-25 Sanyo Electric Co Ltd Moving image encoding method and moving image encoder
JP2002010263A (en) * 2000-06-20 2002-01-11 Mitsubishi Electric Corp Motion picture encoding apparatus and its method
JP2002125238A (en) * 1992-01-29 2002-04-26 Mitsubishi Electric Corp High efficiency coder

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2002125238A (en) * 1992-01-29 2002-04-26 Mitsubishi Electric Corp High efficiency coder
JPH1051784A (en) * 1996-07-30 1998-02-20 Sanyo Electric Co Ltd Dynamic image coder
JPH10229563A (en) * 1997-02-13 1998-08-25 Sanyo Electric Co Ltd Moving image encoding method and moving image encoder
JP2002010263A (en) * 2000-06-20 2002-01-11 Mitsubishi Electric Corp Motion picture encoding apparatus and its method

Also Published As

Publication number Publication date
KR20030088543A (en) 2003-11-20

Similar Documents

Publication Publication Date Title
US9872039B2 (en) Method of determining motion vectors for bi-predictive image block
US8073048B2 (en) Method and apparatus for minimizing number of reference pictures used for inter-coding
JPH09154137A (en) Method and apparatus for compressing video information usingmovement-dependent estimation
KR100901030B1 (en) Method for coding moving picture
US20070127565A1 (en) Video encoding method and device

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
LAPS Lapse due to unpaid annual fee