KR20040031868A - Method for coding moving picture - Google Patents

Method for coding moving picture Download PDF

Info

Publication number
KR20040031868A
KR20040031868A KR1020020061003A KR20020061003A KR20040031868A KR 20040031868 A KR20040031868 A KR 20040031868A KR 1020020061003 A KR1020020061003 A KR 1020020061003A KR 20020061003 A KR20020061003 A KR 20020061003A KR 20040031868 A KR20040031868 A KR 20040031868A
Authority
KR
South Korea
Prior art keywords
intra
encoding
encoded
video
coefficients
Prior art date
Application number
KR1020020061003A
Other languages
Korean (ko)
Inventor
정영안
Original Assignee
엘지전자 주식회사
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 엘지전자 주식회사 filed Critical 엘지전자 주식회사
Priority to KR1020020061003A priority Critical patent/KR20040031868A/en
Publication of KR20040031868A publication Critical patent/KR20040031868A/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/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/132Sampling, masking or truncation of coding units, e.g. adaptive resampling, frame skipping, frame interpolation or high-frequency transform coefficient masking
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/107Selection of coding mode or of prediction mode between spatial and temporal predictive coding, e.g. picture refresh
    • 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/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation
    • H04N19/423Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements
    • H04N19/426Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation characterised by memory arrangements using memory downsizing methods
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/60Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding

Landscapes

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

Abstract

PURPOSE: A method for encoding motion pictures is provided to reduce an amount of encoding calculation with reducing the size of a memory necessary for encoding by storing only coefficient values of macro blocks for intra coding. CONSTITUTION: If video signals are applied to an encoder, the video signals are transformed through DCT(Discrete Cosine Transform) and quantized to be encoded by macro blocks(S501). Among the encoded video signals, only vertical and horizontal DC and AC coefficients of first ends of the macro block to be directly used for intra prediction are stored(S502). Intra mode prediction is progressed by using the DC and AC coefficients(S503). In video frames applied thereafter, only intra macro blocks are selectively encoded(S504).

Description

동영상 부호화 방법{METHOD FOR CODING MOVING PICTURE}Video coding method {METHOD FOR CODING MOVING PICTURE}

본 발명은 동영상 부호화 방법에 관한 것으로, 보다 구체적으로는 영상 신호를 인트라 부호화 할 때, 메모리 부하와 부피를 줄이면서, 계산량을 줄일 수 있는 동영상 부호화 방법에 관한 것이다.The present invention relates to a video encoding method, and more particularly, to a video encoding method capable of reducing the amount of calculation while reducing the memory load and volume when intra coding an image signal.

현재, 그리고 미래의 통신 환경은 유선과 무선의 영역 구분이나, 지역이나 국가의 구분을 초월할 만큼 급변하고 있으며, 특히 IMT-2000 등으로 대별되는 미래 통신환경은 영상과 음성은 물론 사용자가 필요로 하는 다양한 정보를 실시간으로 또는 종합적으로 제공하는 환경으로 구축되어 가는 추세이다.The current and future communication environment is rapidly changing beyond the distinction between wired and wireless areas, and between regions and countries.In particular, future communication environments such as IMT-2000 require users as well as video and audio. The trend is to build an environment that provides a variety of information in real time or comprehensively.

또한, 개인 휴대 통신 시스템의 발달은 현재 셀룰러폰이나 PCS등에서도 단순히 음성통신만을 수행하던 차원에서 벗어나서 문자 정보의 전송은 물론, 개인 휴대 통신 단말기를 이용해서 무선으로 인터넷에 접속하여 다양한 정보를 취득할 수 있는 정도까지 도달해 있다.In addition, the development of a personal mobile communication system is not only a voice communication even in a cellular phone or a PCS, but also transmits text information as well as wirelessly accesses the Internet using a personal mobile communication terminal to acquire various information. Reached to the extent possible.

더구나, 동영상을 디지털 데이터로 가공하여 실시간으로 전송하고 또 이 것을 수신하여 디스플레이 하는 디지털 텔레비전 시스템은 종전에 단순히 영상(음성)만을 송출하는 차원에서 한 걸음 더 나아가, 디지털 정보가 가지는 이점을 극대화하기 위한 일련의 연구와 그 성과가 가시적으로 나타나고 있다.Moreover, the digital television system that processes video in digital data, transmits it in real time, and receives and displays it is one step further in order to maximize the benefits of digital information. A series of studies and their achievements are visible.

특히, 영상신호를 디지털 데이터로 압축가공하고, 이 것을 보다 빠른 속도와 보다 풍부한 정보량으로 고속, 고화질의 실시간 전송을 위한 연구는 그 성과가 이미 나타나고 있으며, 상당한 수준에서 상용화가 이루어지고 또 이루어질 전망이며, 이러한 디지털 동영상 정보의 송출과 수신이 위성방송을 비롯하여 지상파 방송 시스템(때로는 유선 방송 시스템)으로 제공되는 단계에 와 있다.In particular, the research on compressing and processing video signals into digital data and real-time transmission of high-speed and high-definition data at higher speeds and richer amounts of information has already been made, and the commercialization is expected to be made at a considerable level. In addition, the transmission and reception of such digital video information is being provided to terrestrial broadcasting systems (sometimes cable broadcasting systems) including satellite broadcasting.

최근 디지털 신호처리 기술의 발전에 힘입어 제한된 대역폭의 전송 채널을통해 많은 양의 동영상 정보를 압축, 전송하는 방식들이 개발되어 왔으나, 전송 채널상의 오류가 발생하면 복원 영상의 화질이 크게 저하되는 문제가 생긴다.Recently, with the development of digital signal processing technology, methods of compressing and transmitting a large amount of video information through a limited bandwidth transmission channel have been developed. However, when an error occurs on the transmission channel, the quality of the reconstructed image is greatly reduced. Occurs.

이때 제한된 대역폭을 최대한으로 이용하기 위해 오류 정정 부호를 사용하지 않고, 정상적으로 복원된 주변의 정보들로부터 잃어버린 정보를 보완하여 원 영상에 가깝게 복구하는 오류 은폐 기법들이 연구되고 있다.At this time, error concealment techniques have been studied to recover near to the original image by supplementing the lost information from the neighboring information that is normally restored without using an error correction code to maximize the limited bandwidth.

특히 MPEG(Moving Picture Experts Group)과 같은 경우 에러(error)가 발생하면 다음 동기 신호인 슬라이스 헤더를 찾을 때까지의 모든 정보를 손실하게 된다. 또한, 움직임 보상 부호화기법을 이용하기 때문에 손상된 부분의 영향이 이후 계속된 여러 장의 프레임에 걸쳐 계속된다.In particular, in the case of an MPEG (Moving Picture Experts Group), when an error occurs, all information until the next sync signal is found is lost. In addition, since the motion compensation encoding technique is used, the influence of the damaged portion is continued over the subsequent frames.

본 발명은 비디오 데이터의 빠른 인코딩과 화질개선을 가능하게 할 수 있는 하드웨어 엑셀레이터 구조에 최적화된 모션 판단 값과 인트라 모드 압축 알고리듬을 적용한 IMT-2000 화상단말기이다. 무선화상 통신을 위하여 일반적으로 사용되어지는 엠펙(MPEG) 압축 방식의 모션 판단 값은 가장 많은 계산 량을 가지며 화질과 비트(bit)량에 직접적인 영향을 미치므로 매우 중요하다고 할 수 있다.The present invention is an IMT-2000 video terminal applying a motion determination value and an intra mode compression algorithm optimized for a hardware accelerator structure capable of enabling fast encoding and quality improvement of video data. Motion decision value of MPEG compression method, which is generally used for wireless image communication, is the most important because it has the largest amount of computation and directly affects the quality and the amount of bits.

따라서 모션 판단 값에 관한 많은 연구가 끊임없이 이루어 졌으며, 최근에는 모션 판단 값을 다이아몬드 서치 패턴(diamond search pattern)을 이용하여 풀 서치(full search)와 거의 비슷한 화질과 비트 량을 가지며 가장 범용 적으로 쓰이는 트리 스텝 서치(three step search) 방식이 사용되고 있다.Therefore, many studies on motion judgments have been made continuously, and recently, the motion judgments have the same image quality and bit rate as the full search using the diamond search pattern, and are most commonly used. A three step search method is used.

도 1은 본 발명에 따른 동영상 인코더 시스템을 도시한 도면이다.1 is a diagram illustrating a video encoder system according to the present invention.

도 1에 도시된 바와 같이, 실제 물체를 촬영한 아날로그 비디오 신호가 들어오면 이를 디지털 변환한 후, 부호화하기 위하여 코딩 작업이 이루어진다. 디지털 비디오 신호로 변환된 영상 신호는 DCT(Discrete Cosine Transform: 1)에서 이산여현변환이 이루어지고, 주파수 형태로 변환된 영상 신호는 양자화부(3)에서 양자화 가된 다음 VLC(Variable Length Coding: 10)에서 엔트로피화 과정을 거쳐 외부로 송신된다.As shown in FIG. 1, when an analog video signal photographing a real object is received, a digital conversion is performed, and a coding operation is performed to encode the same. The video signal converted into a digital video signal is subjected to discrete cosine transform in DCT (Discrete Cosine Transform: 1), and the video signal converted into frequency form is quantized in quantization unit 3 and then VLC (Variable Length Coding: 10). ) Is transmitted to the outside through entropy process.

이때, 부호화되는 디지털 영상이 인터 모드(Inter mode)인 경우에는 모션 예측기(Motion Predict: 9)로부터 이전 영상을 예측할 수 있는 모션 벡터를 생성한다. 영상 프레임 들로부터 움직임을 추정할 수 있도록 부호화 영상을 외부로 송신하기 위한 엔트로피 과정과 함께 양자화한 영상 데이터를 다시 역양자화부(5)에서 역양자화하고, 그런 다음 역DCT(7)에서 역이산여현변환을 하여 재구성된 영상을 영상 메모리(8)에 저장한다.In this case, when the encoded digital image is in the inter mode, a motion vector capable of predicting the previous image is generated from a motion predictor 9. The dequantized image data is inversely quantized by the inverse quantization unit 5 together with an entropy process for transmitting an encoded image to the outside to estimate the motion from the image frames, and then inverse discrete cosine in the inverse DCT 7. The reconstructed image is stored in the image memory 8 by the conversion.

또한, 부호화되는 영상이 최초 영상으로서 상기 영상 메모리(8)에 저장되어 있는 것이 아닐 경우에는 인트라 예측을 위하여 부호화를 실시한다.If the video to be encoded is not the first video stored in the video memory 8, encoding is performed for intra prediction.

상기 인트라 예측은 부호화되는 영상 프레임 내의 매크로 블록들을 참조하여 디코더에서 디코딩을 할 수 있도록 하기 위함이다.The intra prediction is to enable decoding at the decoder by referring to macroblocks in an image frame to be encoded.

도 2는 종래 기술에 따른 인트라 모드 부호화 과정을 설명하기 위한 도면이다.2 is a diagram for describing an intra mode encoding process according to the prior art.

도 2에 도시된 바와 같이, 영상 신호가 이산여현변환, 양자화에 의하여 부호화가 되면, 가변장 부호화를 거쳐 외부로 송신되지만, 이후 인가되는 영상 신호의 인트라 모드 예측을 위하여 역이산여현변환, 역양자화를 거쳐 메모리에 저장을 한다.As shown in FIG. 2, when an image signal is encoded by discrete cosine transform and quantization, it is transmitted to the outside through variable length encoding, but thereafter, an inverse discrete cosine transform and inverse quantization is performed for intra mode prediction of an applied image signal. Save to memory via.

인트라 모드는 부호화되는 영상 프레임 내의 매크로 블록만으로 예측을 실시하여 부호화를 하기 때문에, 인터 모드에 비하여 계산량이 많고, 많은 메모리를 차지한다.In the intra mode, since the prediction is performed by encoding only macroblocks in a video frame to be encoded, the calculation mode is larger than that of the inter mode, and takes up a lot of memory.

먼저 인트라 모드 부호화는 영상 프레임 내의 매크로 블록 단위로 이루어지기 때문에 전체 영상 프레임에 해당하는 메모리를 할당한 다음, 부호화를 진행할 매크로 블록의 인접 매크로 블록과 윗단의 매크로 블록의 DC와 AC 값을 이용하여 예측을 진행한다.Since intra-mode encoding is performed in units of macroblocks in an image frame, memory corresponding to the entire image frame is allocated, and then predicted using DC and AC values of adjacent macroblocks and macroblocks in the macroblock to be encoded. Proceed.

이와 같은 과정은 H.263 표준에서는 GOB 단위로 스캔 방식으로 차례로 부호화를 하도록 하는데, 도시된 것과 같이 X 매크로 블록인 인접한 A 매크로 블록과 C 매크로 블록의 저장된 메모리 계수 값을 이용하여 인트라 부호화를 진행한다.In this process, the H.263 standard encodes the scans in GOB units one by one. As shown, intra encoding is performed using stored memory coefficient values of adjacent A macroblocks and C macroblocks, which are X macroblocks. .

그리고 계속해서 Y 매크로 블록을 부호화할 때, 상기 인트라 부호화한 X 매크로 블록과 윗단의 D 매크로 블록의 계수 값을 이용하여 부호화 예측을 진행한다.Subsequently, when encoding the Y macroblock, encoding prediction is performed using coefficient values of the intra-encoded X macroblock and the upper D macroblock.

그러나, 상기와 같이 영상 신호를 부호화 할 때는 부호화되는 영상 프레임 각각에 대하여 화면 전체의 화소 값들에 대한 메모리를 할당 한 다음, 현재 부호화할 매크로 블록의 윗단 매크로 블록과 인접 매크로 블록의 계수로부터 DC와 AC 값을 비교하여 예측 방향을 결정하도록 하고 있다.However, when encoding an image signal as described above, a memory for pixel values of the entire screen is allocated to each of the encoded image frames, and then DC and AC are calculated from coefficients of the upper macro block and the adjacent macro block of the macro block to be currently encoded. The values are compared to determine the prediction direction.

이로 인하여 메모리에 부하가 많이 걸릴 뿐만 아니라, 부호화 로딩과 저장을 위한 계산량이 증가되는 문제가 있다.As a result, not only the memory is heavily loaded, but also the amount of computation for encoding loading and storing is increased.

또한, 메모리 크기와 계산량의 증가로 인하여 코덱의 부피가 증가하여 최근소형화 단말기에서 사용하기에는 어려운 문제가 있다.In addition, the volume of the codec is increased due to the increase in the memory size and the amount of computation, which makes it difficult to use in recent miniaturization terminals.

본 발명은, 영상 신호를 부호화 할 때 인트라 예측을 위하여 매크로 블록 내의 계수 값들만 저장하여 이후, 인트라 예측을 위한 정보로 사용하도록 함으로써 부호화 과정에서 필요로 하는 메모리 크기와 계산량을 줄일 수 있는 동영상 부호화 방법을 제공함에 그 목적이 있다.According to the present invention, when encoding an image signal, only a coefficient value in a macro block is stored for intra prediction, and then used as information for intra prediction, thereby reducing a memory size and a calculation amount required for the encoding process. The purpose is to provide.

도 1은 종래 기술에 따른 동영상 인코더 시스템을 도시한 도면.1 illustrates a video encoder system according to the prior art.

도 2는 종래 기술에 따른 인트라 모드 부호화 과정을 설명하기 위한 도면.2 is a view for explaining an intra mode encoding process according to the prior art.

도 3은 본 발명에 따라 인트라 부호화를 위하여 매크로 블록 내의 계수들을 저장하는 과정을 설명하기 위한 도면.3 is a diagram for explaining a process of storing coefficients in a macro block for intra coding according to the present invention;

도 4는 본 발명에 따라 영상 프레임 내의 매크로 블록들 중에서 선택적으로 매크로 블록의 계수들을 저장하는 모습을 설명하기 위한 도면.FIG. 4 is a view for explaining how to selectively store coefficients of a macro block among macro blocks in an image frame according to the present invention; FIG.

도 5는 본 발명에 따른 동영상 부호화 방법을 설명하기 위한 플로 챠트.5 is a flowchart for explaining a video encoding method according to the present invention.

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

1: DCT3: 양자화부1: DCT3: quantization unit

5: 역 양자화부7: 역DCT5: inverse quantization unit 7: inverse DCT

8: 영상 메모리9: 모션 예측기8: Image Memory 9: Motion Predictor

10:VLC10: VLC

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

영상 신호를 이산여현변환, 양자화를 하며 매크로 블록 단위로 부호화를 하는 단계;Performing discrete cosine transform and quantization of the video signal and encoding the macroblock in macroblock units;

상기 부호화된 영상 신호중 인트라 모드 예측을 위하여 매크로 블록 내의 블록들 중 첫단의 수직, 수평의 DC 성분과 AC 성분만을 저장하는 단계; 및Storing only the vertical and horizontal DC and AC components of the first stage of the blocks in the macroblock for intra mode prediction of the encoded image signal; And

상기 저장된 블록들의 수평, 수직 DC 성분과 AC 성분을 이용하여 이후 인가되는 영상 신호를 인트라 부호화하는 단계;를 포함하는 것을 특징으로 한다.And intra-coding the image signal applied afterwards by using horizontal and vertical DC components and AC components of the stored blocks.

여기서, 상기 인트라 부호화를 위한 매크로 블록의 윗단과 인접단의 수직, 수평 DC, 계수만을 저장하고, 상기 영상 신호의 첫 영상 프레임 이후에는 인트라 부호화된 매크로 블록의 DC, AC 계수만을 선택적으로 저장하여 인트라 부호화 과정에서 사용하는 것을 특징으로 한다.Here, only the vertical, horizontal DC and coefficients of the upper and adjacent ends of the macroblock for intra coding are stored, and after the first image frame of the video signal, only the DC and AC coefficients of the intra-encoded macroblock are selectively stored to be intra It is characterized by the use in the encoding process.

본 발명에 의하면, 영상 신호를 인트라 부호화 할 때, 매크로 블록 단위의 DC와 AC 계수만을 인트라 예측을 위하여 사용함으로써, 메모리 할당량을 줄이면서계산량을 줄일 수 있는 효과가 있다.According to the present invention, when intra coding an image signal, only DC and AC coefficients in macroblock units are used for intra prediction, thereby reducing the amount of computation while reducing the memory allocation.

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

도 3은 본 발명에 따라 인트라 부호화를 위하여 매크로 블록 내의 계수들을 저장하는 과정을 설명하기 위한 도면이다.3 is a diagram illustrating a process of storing coefficients in a macro block for intra coding according to the present invention.

도 3에 도시된 바와 같이, 영상 프레임을 구성하는 매크로 블록은 4개의 8*8 화소 블록들과 2개의 색차 블록으로 이루어져 있다. 본 발명에서는 인트라 모드 부호화를 진행할 영상 프레임 내의 모드 화소들의 값에 해당하는 메모리를 할당한 다음에, 인접한 매크로 블록들로부터 인트라 예측을 진행하는 것이 아니라, 인트라 부호화 예측을 위하여 필요한 매크로 블록들의 DC, AC 계수 값들만 메모리에 저장하도록 하여 메모리 크기를 크게 줄였다.As shown in FIG. 3, the macro block constituting the image frame includes four 8 * 8 pixel blocks and two color difference blocks. In the present invention, after allocating a memory corresponding to a value of mode pixels in an image frame to be intra-mode encoded, intra prediction is performed from adjacent macroblocks, and DC, AC of macroblocks required for intra-coding prediction is performed. Only the coefficient values are stored in memory, which greatly reduces the memory size.

즉, 인트라 모드 부호화를 위하여 매크로 블록 내의 6개의 화소 블록들 중에서 인트라 예측을 위하여 사용되는 첫단의 수직, 수평 DC, AC 계수 값만을 저장하도록 하였다.That is, for intra mode encoding, only the first vertical, horizontal DC and AC coefficient values used for intra prediction are stored among the six pixel blocks in the macro block.

하나의 매크로 블록 내의 6개의 화소 블록들에 대한 수평 방향 계수 값들은 도시된 바와 같이, DC, AC 계수 값을 포함한 48개의 화소 계수 값만을 저장하고, 수직 방향 계수 값들도 마찬가지로 DC, AC 계수 값을 포함한 48개의 화소 계수 값만을 저장한다.The horizontal coefficient values for the six pixel blocks in one macro block store only 48 pixel coefficient values including DC and AC coefficient values as shown, and the vertical coefficient values similarly include DC and AC coefficient values. Only the 48 pixel count values included are stored.

따라서, 종래에는 인트라 모드 부호화를 위하여 영상 프레임 내의 전체 매크로 블록들에 대한 메모리를 할당한, 다음, 각각의 매크로 블록 내의 DC, AC 계수값을 이용하여 인트라 예측을 하였지만, 본 발명에서는 실제 사용되는 DC, AC 계수 값만을 메모리에 저장하여 인트라 예측을 하도록 하였다.Therefore, conventionally, memory for all macro blocks in an image frame is allocated for intra mode encoding, and then intra prediction is performed using DC and AC coefficient values in each macro block. However, in the present invention, DC is actually used. In addition, only the AC coefficient values are stored in memory for intra prediction.

이와 같이, 인트라 부호화 시에 메모리를 할당하면 QCIF 영상 포맷(1/4CIF)인 경우에는 종래에는 38016 크기의 메모리를 할당하였지만, 본 발명에서는 1056 크기의 메모리를 할당할 수 있어 크기를 현저히 줄였다.Thus, when the memory is allocated during intra coding, in the case of the QCIF video format (1 / 4CIF), the memory of 38016 size is conventionally allocated, but in the present invention, the memory of 1056 size can be allocated, and the size is significantly reduced.

또한, 인트라 부호화시 저장되어 있는 계수만을 로딩하고, 예측을 하므로 부화화 시간이 단축되고, 계산량이 줄어드는 이점이 있다.In addition, since only the coefficients stored during intra encoding are loaded and predicted, the incubation time is shortened and the amount of calculation is reduced.

도 4는 본 발명에 따라 영상 프레임 내의 매크로 블록들 중에서 선택적으로 매크로 블록의 계수들을 저장하는 모습을 설명하기 위한 도면이다.FIG. 4 is a diagram for describing a method of selectively storing coefficients of a macro block among macro blocks in an image frame according to the present invention.

도 4에 도시된 바와 같이, 첫 번째 영상 신호 이후 계속해서 영상 프레임이 들어올 경우에는 상기 영상 프레임 내에 포함되어 있는 매크로 블록들은 인트라 부호화할 것이 있거나, 인트라 부호화할 것으로 구분된다.As shown in FIG. 4, when an image frame continues to be input after the first image signal, macro blocks included in the image frame may be intra coded or intra coded.

상기 영상 프레임 내의 인트라 부호화 매크로 블록만을 선별적으로 선택하여 계수 값을 저장함으로써, 메모리 수를 또한 크게 감소시킬 수 있게 된다.By selectively selecting only intra-coded macroblocks in the video frame to store coefficient values, the number of memories can also be significantly reduced.

아울러, 선택된 매크로 블록의 저장된 계수를 이용하여 이후 인트라 모드 예측을 할 때 사용함으로써 부호화 계산량을 줄일 수 있게 된다.In addition, by using the stored coefficients of the selected macro block to perform intra mode prediction later, the amount of encoding computation can be reduced.

도 5는 본 발명에 따른 동영상 부호화 방법을 설명하기 위한 플로 챠트이다.5 is a flowchart for explaining a video encoding method according to the present invention.

도 5에 도시된 바와 같이, 인코더에서는 인트라 모드 부호화와 인터 모드 부호화를 진행하는데, 인터 모드 부호화는 이전 부호화 영상 신호를 그대로 사용하여 부호화량을 줄이도록 하는 부호화 방식이고, 인트라 모드 부호화는 참조할 부호화영상이 없는 최초 부호화된 영상 신호를 예측하는 방식이다.As shown in FIG. 5, the encoder performs intra mode encoding and inter mode encoding. An inter mode encoding is an encoding method for reducing an encoding amount by using a previous encoded video signal as it is, and intra mode encoding is an encoding to be referred to. It is a method of predicting the first encoded video signal having no video.

상기 인코더에 영상 신호가 인가되면, 이산여현변환, 양자화가 진행되며, 최초 영상 프레임인 경우에는 디코더에서 참조할 영상이 존재하지 않으므로, 영상 프레임 내의 매크로 블록들로부터 예측하도록 부호화를 진행한다.(S501)When an image signal is applied to the encoder, discrete cosine transform and quantization are performed. In the case of the first image frame, since there is no image to be referred to by the decoder, encoding is performed to predict from macroblocks in the image frame. )

본 발명에서는 인트라 모드 부호화시에 부호화된 영상 신호로부터 영상 프레임 전체에 대한 메모리를 할당하지 않고, 인트라 예측시에 직접 사용되는 매크로 블록들의 DC, AC 값의 계수만을 저장한다.(S502)In the present invention, the memory for the entire image frame is not allocated from the encoded video signal during intra mode encoding, and only the coefficients of DC and AC values of macro blocks directly used during intra prediction are stored (S502).

상기 매크로 블록의 계수 값들을 이용하여 인트라 모드 예측을 진행하고, 이후에 인가되는 부호화 영상 신호에서는 인트라 부호화 매크로 블록에 대해서만, 계수 값을 저장하여 계산량을 줄였다.(S503)Intra mode prediction is performed using the coefficient values of the macro block, and in the encoded video signal applied later, only the intra coded macro block is stored, thereby reducing the amount of calculation.

또한, 이후 인가되는 영상 프레임 중에서 인트라 매크로 블록에 대하여 선택적으로 부호화를 실시함으로써, 이후 인트라 모드 부호화 계산량을 줄였다.(S504)In addition, the intra macroblock is selectively encoded in an image frame that is subsequently applied, thereby reducing the amount of intra-mode encoding. (S504)

이상에서 자세히 설명된 바와 같이, 본 발명은 인트라 부호화를 위하여 매크로 블록들의 계수 값만을 저장하도록 함으로써, 부호화시에 필요한 메모리 크기를 줄이면서, 부호화 계산량을 줄인 효과가 있다.As described in detail above, the present invention stores only coefficient values of macroblocks for intra encoding, thereby reducing the amount of encoding computation while reducing the memory size required for encoding.

또한, 영상 프레임 내에 포함되어 있는 매크로 블록들 중에서 인트라 부호화된 매크로 블록의 계수만을 선택적으로 부호화 할 수 있어, 이후 부호화 과정에서도 부호화 메모리와 계산량을 줄일 수 있는 효과가 있다.In addition, only coefficients of an intra-encoded macroblock may be selectively encoded among macroblocks included in an image frame, thereby reducing encoding memory and computation amount in a subsequent encoding process.

본 발명은 상기한 실시 예에 한정되지 않고, 이하 청구 범위에서 청구하는본 발명의 요지를 벗어남이 없이 당해 발명이 속하는 분야에서 통상의 지식을 가진 자라면 누구든지 다양한 변경 실시가 가능할 것이다.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 (3)

영상 신호를 이산여현변환, 양자화를 하며 매크로 블록 단위로 부호화를 하는 단계;Performing discrete cosine transform and quantization of the video signal and encoding the macroblock in macroblock units; 상기 부호화된 영상 신호중 인트라 모드 예측을 위하여 매크로 블록 내의 블록들 중 첫단의 수직, 수평의 DC 성분과 AC 성분만을 저장하는 단계; 및Storing only the vertical and horizontal DC and AC components of the first stage of the blocks in the macroblock for intra mode prediction of the encoded image signal; And 상기 저장된 블록들의 수평, 수직 DC 성분과 AC 성분을 이용하여 이후 인가되는 영상 신호를 인트라 부호화하는 단계;를 포함하는 것을 특징으로 하는 동영상 부호화 방법.And intra-encoding an image signal that is subsequently applied by using horizontal and vertical DC components and AC components of the stored blocks. 제 1 항에 있어서,The method of claim 1, 상기 인트라 부호화를 위한 매크로 블록의 윗단과 인접단의 수직, 수평 DC, 계수 만을 저장하는 것을 특징으로 하는 동영상 부호화 방법.And only vertical, horizontal DC, and coefficients of the upper and adjacent ends of the macroblock for intra coding are stored. 제 1 항에 있어서,The method of claim 1, 상기 영상 신호의 첫 영상 프레임 이후에는 인트라 부호화된 매크로 블록의 DC, AC 계수 만을 선택적으로 저장하여 인트라 부호화 과정에서 사용하는 것을 특징으로 하는 동영상 부호화 방법.And after the first image frame of the image signal, only DC and AC coefficients of the intra-encoded macroblock are selectively stored and used in the intra encoding process.
KR1020020061003A 2002-10-07 2002-10-07 Method for coding moving picture KR20040031868A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1020020061003A KR20040031868A (en) 2002-10-07 2002-10-07 Method for coding moving picture

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1020020061003A KR20040031868A (en) 2002-10-07 2002-10-07 Method for coding moving picture

Publications (1)

Publication Number Publication Date
KR20040031868A true KR20040031868A (en) 2004-04-14

Family

ID=37331911

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020020061003A KR20040031868A (en) 2002-10-07 2002-10-07 Method for coding moving picture

Country Status (1)

Country Link
KR (1) KR20040031868A (en)

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990036018A (en) * 1996-05-28 1999-05-25 모리시타 요이찌 Picture prediction coding apparatus and method, Picture prediction decoding apparatus and method, and recording medium
KR20000015558A (en) * 1998-08-31 2000-03-15 전주범 An image coding device using a space correlativity and a method thereof
KR20030037507A (en) * 2001-11-06 2003-05-14 (주)씨앤에스 테크놀로지 Reconstruction Circuit and Method of DCT AC/DC Coefficient in MPEG-4
KR20030066225A (en) * 2002-02-05 2003-08-09 (주)씨앤에스 테크놀로지 Method for decoding of MPEG-4 video

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR19990036018A (en) * 1996-05-28 1999-05-25 모리시타 요이찌 Picture prediction coding apparatus and method, Picture prediction decoding apparatus and method, and recording medium
KR20000015558A (en) * 1998-08-31 2000-03-15 전주범 An image coding device using a space correlativity and a method thereof
KR20030037507A (en) * 2001-11-06 2003-05-14 (주)씨앤에스 테크놀로지 Reconstruction Circuit and Method of DCT AC/DC Coefficient in MPEG-4
KR20030066225A (en) * 2002-02-05 2003-08-09 (주)씨앤에스 테크놀로지 Method for decoding of MPEG-4 video

Similar Documents

Publication Publication Date Title
RU2409005C2 (en) Method of scalable coding and decoding of video signal
JP4820559B2 (en) Video data encoding and decoding method and apparatus
KR100680452B1 (en) Method and apparatus for updating motion vector memory
KR20040036943A (en) Image encoding device, image encoding method, image decoding device, image decoding method, and communication device
EP1908291A1 (en) Method, module, device and system for rate control provision for video encoders capable of variable bit rate encoding
JP2005110083A (en) Data processing apparatus and method, and coding apparatus
JP3651706B2 (en) Video encoding device
EP1820350A1 (en) Method of coding and decoding moving picture
US8326060B2 (en) Video decoding method and video decoder based on motion-vector data and transform coefficients data
KR100770873B1 (en) Method and apparatus of controling bit rate in image encoding
KR100627494B1 (en) Moving picture encoder and method for c0ding moving picture using the same
KR100586103B1 (en) Method for moving picture coding
KR20040046320A (en) Method for moving picture coding
KR20040031868A (en) Method for coding moving picture
KR100626651B1 (en) Selective Fine Granular Scalable Coding Apparatus and Method thereof
KR20040032286A (en) Method for moving picture coding
KR20040039809A (en) Moving picture encoder and method for coding using the same
KR100627493B1 (en) Moving picture encoder and method for coding using the same
KR20040062109A (en) Method for moving picture coding
KR20040046055A (en) Method for electrical transmission bit rate control of moving picture
KR20040031948A (en) Method for moving picture decoding
KR20040039808A (en) Method for prediction moving vector
KR20040047045A (en) Method for moving picture decoding
KR20040062110A (en) Moving picture encoder and method for coding using the same
JP2012060423A (en) Video encoder

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
E601 Decision to refuse application