KR100370059B1 - Video codec and method for transmitting/receiving video data using the same - Google Patents

Video codec and method for transmitting/receiving video data using the same Download PDF

Info

Publication number
KR100370059B1
KR100370059B1 KR10-1999-0054842A KR19990054842A KR100370059B1 KR 100370059 B1 KR100370059 B1 KR 100370059B1 KR 19990054842 A KR19990054842 A KR 19990054842A KR 100370059 B1 KR100370059 B1 KR 100370059B1
Authority
KR
South Korea
Prior art keywords
image frame
channel buffer
state information
buffer
encoded
Prior art date
Application number
KR10-1999-0054842A
Other languages
Korean (ko)
Other versions
KR20010054171A (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 KR10-1999-0054842A priority Critical patent/KR100370059B1/en
Publication of KR20010054171A publication Critical patent/KR20010054171A/en
Application granted granted Critical
Publication of KR100370059B1 publication Critical patent/KR100370059B1/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/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/46Embedding additional information in the video signal during the compression process
    • 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
    • H04N19/625Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using transform coding using discrete cosine transform [DCT]

Abstract

본 발명은 무선 환경에서 안정적으로 영상 데이터를 전송하는데 적당하도록 한 비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법에 관한 것이다. 이와 같은 본 발명에 따른 영상 데이터 송수신 방법은 영상 프레임을 입력하는 단계와, 상기 입력된 영상 프레임을 이산 코사인 변환하여 압축하는 단계와, 상기 압축된 영상프레임을 부호화하는 단계와, 상기 부호화된 영상 프레임에서 픽처 스타트 코드를 검출하고, 검출한 픽처 스타트 코드와 기 저장된 픽처 스타트 코드의 비교결과에 따라 부호화 채널 버퍼의 상태 정보를 검출하는 단계와, 상기 검출한 부호화 채널 버퍼의 상태 정보를 상기 부호화된 영상 프레임에 삽입하여 전송하는 단계와, 상기 영상 프레임을 수신하는 단계와, 상기 수신된 영상 프레임에서 픽처 스타트 코드를 검출하여 기 저장된 픽처 스타트 코드와 비교하고, 상기 비교결과에 따라 상기 영상 프레임을 전송한 전송측 부호화 채널 버퍼의 상태 정보를 검출하는 단계와, 상기 검출된 상태 정보에 따라 가변 길이 복호화기의 동작 속도를 조절하는 단계와,상기 조절된 동작 속도에 따라 상기 복호화 채널 버퍼의 상태를 조절하여 상기 수신된 영상 프레임을 복호하는 단계로 이루지므로써 복호화기의 채널 버퍼 상태를 최적화하여 일정 품질의 영상 서비스를 제공하는 효과가 있다.The present invention relates to a video codec and a video data transmission / reception method using the same, which is suitable for stably transmitting video data in a wireless environment. The image data transmission and reception method according to the present invention includes the steps of inputting an image frame, compressing the input image frame by discrete cosine transform, encoding the compressed image frame, and encoding the encoded image frame. Detecting a picture start code at step S, and detecting state information of an encoded channel buffer according to a comparison result of the detected picture start code and a pre-stored picture start code, and detecting the state information of the detected coded channel buffer by using the encoded image. Inserting a frame into a frame, receiving the image frame, detecting a picture start code from the received image frame, comparing the picture start code with a pre-stored picture start code, and transmitting the image frame according to the comparison result Detecting status information of a transmission-side encoded channel buffer; Adjusting the operating speed of the variable length decoding according to the state information submitted and,By adjusting the state of the decoding channel buffer according to the adjusted operation speed Decoding the received video frame has an effect of optimizing the channel buffer state of the decoder to provide a video service of a certain quality.

Description

비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법{Video codec and method for transmitting/receiving video data using the same}Video codec and method for transmitting / receiving video data using the same}

본 발명은 비디오 코덱에 관한 것으로, 특히 무선 환경에서 안정적으로 영상 데이터를 전송하는데 적당하도록 한 비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법에 관한 것이다.The present invention relates to a video codec, and more particularly, to a video codec and a video data transmission / reception method using the same, which is suitable for transmitting image data stably in a wireless environment.

현재 기술 표준화 작업이 진행중인 차세대 이동 통신(IMT-2000)에서는 영상 단말기를 이용하여 영상 서비스를 제공하게 된다. 이는 차세대 이동 통신이 종래 이동 통신과는 달리 광대역 주파수를 사용하기 때문에 가능하다. 이때 차세대 이동 통신을 위해 개발중인 영상 단말기는 영상 데이터를 부호 및 복호화할 수 있도록 부호화기 및 복호화기로 구성되는 비디오 코덱(Video codec)이 필수적으로 구비되며 이 비디오 코덱에 관한 기술 표준은 ITU-T의 H.263에 정의되어 있다.(ITU-T Recommendation H.263, DRAFT H.263 27 January, 1998 참조)The next generation mobile communication (IMT-2000), which is currently undergoing technical standardization, will provide a video service using a video terminal. This is possible because next generation mobile communication uses wideband frequency unlike conventional mobile communication. At this time, the video terminal under development for the next generation mobile communication is essentially equipped with a video codec composed of an encoder and a decoder so as to code and decode video data. The technical standard for the video codec is H of ITU-T. Defined in .263 (see ITU-T Recommendation H.263, DRAFT H.263 27 January, 1998).

지금부터는 ITU-T의 H.263에 정의된 비디오 코덱의 동작을 설명한다.The following describes the operation of the video codec defined in H.263 of the ITU-T.

도 1은 종래 기술에 따른 부호화기를 나타낸 블록 구성도이다.1 is a block diagram illustrating an encoder according to the prior art.

도 1을 참조하면, 종래 부호화기는 입력된 영상 프레임(Frame)에 대한 움직임 보상과 이산 코사인 변환과 양자화를 수행하여 영상을 압축하는 코어부(Core part)(100)와, 압축된 영상 프레임을 보다 적은 비트양으로 부호화하는 가변 길이 부호화기(VLC)(110)와, 최종 부호화된 영상 프레임을 고정 데이터 전송률로 전송하기 위한 부호화 채널 버퍼(120)로 구성된다. 여기서 코어부(Core part)(100)는 영상 프레임을 이산 코사인 변환하는 DCT부(101)와, 영상 프레임을 양자화하는 양자화부(103)와, 양자화된 영상 프레임을 역양자화하는 역양자화부(104)와, 역이산 코사인 변환하는 IDCT부(105)와, 역양자화된 영상 프레임이 저장되는 프레임 메모리(106)와, 양자화된 영상 프레임과 초기 영상 프레임과의 움직임 차이를 추정 및 보상하는 움직임 보상부(107) 및 움직임 추정부(108)로 구성된다.Referring to FIG. 1, a conventional encoder may further include a core part 100 compressing an image by performing motion compensation, discrete cosine transform, and quantization on an input image frame, and a compressed image frame. A variable length encoder (VLC) 110 for encoding a small bit amount and an encoding channel buffer 120 for transmitting a final coded video frame at a fixed data rate. The core part 100 may include a DCT unit 101 for discrete cosine transforming an image frame, a quantization unit 103 for quantizing the image frame, and an inverse quantization unit 104 for inverse quantization of the quantized image frame. ), An IDCT unit 105 for inverse discrete cosine transform, a frame memory 106 for storing an inverse quantized image frame, and a motion compensation unit for estimating and compensating for a motion difference between the quantized image frame and the initial image frame. 107 and the motion estimation unit 108.

이와 같이 구성되는 부호화기의 동작은 다음과 같다.The operation of the encoder configured as described above is as follows.

우선, 코어부(100)의 DCT부(101)는 영상 프레임을 입력받아 이산 코사인 변환하여 압축하고 양자화부(103)는 압축된 영상 데이터의 고주파 항을 버리는 양자화를 실시한다. 이어 가변 길이 부호화기(VLC)(110)는 양자화된 영상 데이터를 다양한 비트 길이의 비트열로 최종 부호화 한다. 이때 부호화된 최종 비트열은 부호화 채널 버퍼(120)에 임시 저장된 후 통신 채널을 통해 수신측 복호화기로 전송된다.First, the DCT unit 101 of the core unit 100 receives an image frame and compresses it by performing discrete cosine transform, and the quantization unit 103 performs quantization to discard high frequency terms of the compressed image data. Next, the variable length encoder (VLC) 110 finally encodes the quantized image data into bit strings having various bit lengths. In this case, the encoded final bit string is temporarily stored in the encoding channel buffer 120 and then transmitted to the receiving side decoder through a communication channel.

도 2는 종래 기술에 따른 복호화기를 나타낸 블록 구성도이다.2 is a block diagram illustrating a decoder according to the prior art.

도 2를 참조하면, 종래 복호화기는 영상 프레임을 입력받는 복호화 채널 버퍼(200)와, 복호화 채널 버퍼(200)에 입력된 영상 프레임을 복호하는 가변 길이 복호화기(VLD)(210)와, 가변 길이 복호화기(210)에서 출력되는 영상 프레임을 역양자화 및 역이산 코사인 변환하여 영상 압축을 복원하는 코어부(Core part)(220)로 구성된다. 여기서 코어부(220)는 역양자화부(221)와, IDCT부(222)와, 프레임 메모리(224)와, 움직임 보상부(223)로 구성된다.Referring to FIG. 2, the conventional decoder includes a decoding channel buffer 200 for receiving an image frame, a variable length decoder (VLD) 210 for decoding an image frame input to the decoding channel buffer 200, and a variable length. It is composed of a core part (220) for restoring image compression by inverse quantization and inverse discrete cosine transform the image frame output from the decoder (210). The core unit 220 includes an inverse quantization unit 221, an IDCT unit 222, a frame memory 224, and a motion compensation unit 223.

이와 같이 구성되는 복호화기의 동작은 다음과 같다.The operation of the decoder configured as described above is as follows.

우선, 복호화 채널 버퍼(200)는 무선 채널을 통해 전송된 영상 프레임을 입력받아 저장한다. 그리고 가변 길이 복호화기(VLD)(210) 및 코어부(220)는 복호화 채널 버퍼(200)에 영상 프레임이 일정 수준으로 입력되어 저장되면 저장된 영상 프레임을 역양자화 및 역이산 코사인 변환(IDCT)하여 원 영상으로 복원한다.First, the decoding channel buffer 200 receives and stores an image frame transmitted through a wireless channel. The variable length decoder (VLD) 210 and the core unit 220 inversely quantize and inverse discrete cosine transform (IDCT) the stored image frame when the image frame is input and stored at a predetermined level in the decoding channel buffer 200. Restore the original image.

지금까지 설명한 종래 부호화기에서 부호화 채널 버퍼(120)는 가변길이 부호화기(110)에서 발생하는 가변 비트율의 영상 데이터를 통신 채널을 통해 고정 비트율로 전송하기 위해서 존재하는 버퍼이다. 따라서 부호화 채널 버퍼(120)는 어느 순간에 가변 길이 부호화기(110)로부터 평균 이상의 영상 데이터가 출력되었을 때 버퍼 내의 데이터가 넘치는 현상인 오버 플로우(Overflow) 및 가변 길이 부호화기(110)로부터 평균 이하의 영상 데이터가 출력되었을 때 버퍼 내의 데이터가 고갈되는 현상인 언더 플로우(Underflow)가 발생하지 않도록 충분한 크기를 갖는다.In the conventional encoder described above, the encoding channel buffer 120 is a buffer that exists to transmit the variable bit rate image data generated by the variable length encoder 110 at a fixed bit rate through a communication channel. Therefore, the encoding channel buffer 120 overflows, which is a phenomenon in which data in the buffer overflows when the image data of the average length is output from the variable length encoder 110 at a moment, and the image below the average size from the variable length encoder 110. It has a sufficient size so that underflow, a phenomenon in which data in a buffer is depleted when data is output, does not occur.

그러나 부호화기는 부호화 채널 버퍼(20)의 크기가 크지 않더라도 전송률 제어기(100)를 이용하여 영상 데이터의 출력 변화에 따른 제어를 실시하기 때문에 부호화 채널 버퍼(120)에 오버 플로우 및 언더 플로우는 발생하지 않는다.However, since the encoder performs control according to the output change of the image data using the rate controller 100 even if the size of the encoding channel buffer 20 is not large, overflow and underflow do not occur in the encoding channel buffer 120. .

반면에 복호화기는 전송률 제어기가 구비되지 않는다. 따라서 복호화기는 복호화 동작 이전에 부호화 채널 버퍼(120)의 상태와 자신의 복호화 채널 버퍼(200)의 상태를 서로 동기시키므로써 복호화 채널 버퍼(200)의 상태를 제어한다.On the other hand, the decoder does not have a rate controller. Therefore, the decoder controls the state of the decoding channel buffer 200 by synchronizing the state of the encoding channel buffer 120 with the state of its decoding channel buffer 200 before the decoding operation.

보다 상세히 설명하면, 부호화기와 복호화기는 채널 버퍼에 영상 데이터가 중간 정도로 채워지게 되면 동작을 시작한다. 따라서 부호화기는 부호화 채널버퍼(120)에 영상 데이터가 중간 정도로 채워지면 통신 채널을 통해 영상 데이터의 전송을 시작하고 마찬가지로 복호화기도 복호화 채널 버퍼(200)에 영상 데이터가 중간 정도로 채워지면 영상 데이터의 복호화를 시작한다.In more detail, the encoder and the decoder start to operate when the image data is half-filled in the channel buffer. Therefore, the encoder starts to transmit the image data through the communication channel when the image data is half-filled in the encoding channel buffer 120. Similarly, the decoder also decodes the image data when the image data is half-filled in the decoding channel buffer 200. To start.

따라서 종래 비디오 코덱은 부호화기에서 전송률 제어기를 이용하여 부호화 채널 버퍼의 상태를 조절하면 그에 따라 복호화기의 복호화 채널 버퍼도 함께 상태가 조절된다.Therefore, in the conventional video codec, when the encoder adjusts the state of an encoding channel buffer using a rate controller, the decoder also adjusts the state of the decoding channel buffer.

도 3a 내지 도 3c는 종래 부호화 채널 버퍼와 복호화 채널 버퍼의 동작 상태를 나타낸 도면이다.3A to 3C are diagrams illustrating operation states of a conventional encoding channel buffer and a decoding channel buffer.

도 3a를 참조하면, 전술한 바와 같이 부호화기와 복호화기의 채널 버퍼는 서로 동기가 이루어져 동작한다. 이때 초기 상태에서는 서로 동일한 양, 즉 중간 정도의 영상 데이터가 채워지면 동작을 시작한다.Referring to FIG. 3A, as described above, the channel buffers of the encoder and the decoder operate in synchronization with each other. At this time, the operation starts when the same amount, that is, intermediate image data is filled.

도 3b를 참조하면, 초기 상태 이후 부호화기에서 어느 순간에 많은 양의 영상 데이터를 발생하게 되면 부호화 채널 버퍼는 중간 이상으로 채워지게 된다. 그러면 상대적으로 복호화기는 평균 이상의 속도로 영상 데이터를 복호하게 되고 그에 따라 복호화 채널 버퍼는 중간 이하로 비게된다.Referring to FIG. 3B, when a large amount of image data is generated at an instant in an encoder after an initial state, an encoding channel buffer is filled with a medium or more. The decoder then relatively decodes the image data at a rate above average, thus freeing the decoding channel buffer below halfway.

도 3c를 참조하면, 도 3b와는 달리 부호화기에서 어느 순간에 적은 양의 영상 데이터를 발생하게 되면 부호화 채널 버퍼는 중간 이하로 비게된다. 그러면 상대적으로 복호화기는 평균 이하의 속도로 영상 데이터를 복호하게 되고 그에 따라 복호화 채널 버퍼는 중간 이상으로 채워진다. 이와 같이 동작을 할 때, 부호화기의 버퍼를 제어하여 오버 플로우나 언더 플로우를 막으면, 복호화기가 부호화기의 상태에 따라 움직이므로 복호화기 채널 버퍼 역시 안정적으로 동작하게 된다.Referring to FIG. 3C, unlike FIG. 3B, when a small amount of image data is generated at an instant in an encoder, the encoding channel buffer is emptied to the middle or less. The decoder then relatively decodes the image data at a sub-average rate so that the decoding channel buffer is filled with more than halfway. In this operation, if the encoder buffer is controlled to prevent overflow or underflow, the decoder channel buffer also operates stably because the decoder moves according to the state of the encoder.

그러나 이와 같은 종래 부호화기와 복호화기의 동작은 통신 채널의 특성을 고려하지 않은 기술이므로 다음과 같은 문제점이 발생한다.However, since the operation of the conventional encoder and decoder does not consider the characteristics of the communication channel, the following problems occur.

통신 채널은 그 특성상 채널 에러율(BER)이 높기 때문에 통신 채널을 통해 전송되는 영상 데이터는 에러가 발생하여 전체적으로 깨질 가능성이 높다.Since the communication channel has a high channel error rate (BER), video data transmitted through the communication channel is likely to be broken due to an error.

이러한 상황이 발생하면 종래 부호화기는 일정 시간동안 영상 데이터를 전송하지 않고 동작을 중지하게 되고 그에 따라 복호화기의 채널 버퍼는 영상 데이터가 비게되는 언더 플로우가 발생한다.When such a situation occurs, the conventional encoder stops the operation without transmitting the image data for a predetermined time, and accordingly, an underflow of the image buffer becomes empty in the channel buffer of the decoder.

이와 같은 언더 플로우는 복호화기의 오동작을 야기시킴으로써 종래 비디오 코덱을 영상 단말기에 그대로 적용할 경우 사용자에게 일정한 품질의 영상 서비스를 제공하지 못한다.Underflow like this If a conventional video codec is applied to a video terminal as it causes malfunction of the decoder, it cannot provide a video service of a certain quality.

따라서, 본 발명의 목적은 이상에서 언급한 종래 기술의 문제점을 감안하여 안출한 것으로서, 채널 버퍼의 동작을 안정화시켜 비디오 코덱의 동작을 최적화하는 비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법을 제공하기 위한 것이다.Accordingly, an object of the present invention is to provide a video codec and a video data transmission / reception method using the same, which are devised in view of the above-mentioned problems of the related art, which stabilizes the operation of a channel buffer to optimize the operation of a video codec. .

이상과 같은 목적을 달성하기 위한 본 발명의 일 특징에 따르면, 비디오 코덱은 입력되는 영상 프레임을 이산 코사인 변환하여 압축하는 코어부와, 상기 압축된 영상 프레임을 부호화하고, 상기 코어부에서 출력된 영상 프레임에 더미(Dummy) 부호 영역을 첨가하는 가변 길이 부호화기와, 상기 부호화된 영상 프레임을 저장하는 부호화 채널 버퍼와, 상기 부호화 채널 버퍼로부터의 영상 프레임을 수신하고, 수신된 영상 프레임에서 픽처 스타트 코드를 검출하여 내부에 기 저장된 픽처 스타트 코드와 비교함으로써 상기 부호화 채널 버퍼의 상태를 감지하고, 상기 영상 프레임의 더미 부호 영역에 상기 감지된 부호화 채널 버퍼의 상태 정보를 삽입하는 버퍼 상태 삽입기를 포함하여 구성되는 부호화기와, 상기 부호화기에서 전송된 영상 프레임에서 픽처 스타트 코드를 검출하여 내부에 기 저장된 픽처 스타트 코드와 비교하고, 상기 비교 결과에 따라 상기 영상 프레임을 전송한 전송측 부호화 채널 버퍼의 상태 정보를 검출하는 버퍼 상태 검출기와, 상기 검출된 상태 정보에 따라 상기 부호화 채널 버퍼의 상태와 동기를 이루어 동작하는 복호화 채널 버퍼와, 상기 검출된 상태 정보에 따라 상기 복호화 채널 버퍼에 대한 복호화 속도를 상기 부호화 채널 버퍼의 상태와 동기되어 동작하도록 조정하는 가변 길이 복호화기와, 상기 가변 길이 복호화기에서 출력되는 영상 프레임을 움직임 보상 및 역이산 코사인 변환하여 복원하는 코어부를 포함하여 구성되는 복호화기로 구성된다.According to an aspect of the present invention for achieving the above object, the video codec is a core unit for discrete cosine transform the input image frame and compresses, the compressed image frame is encoded, the image output from the core unit A variable length encoder for adding a dummy code region to a frame, an encoding channel buffer for storing the encoded image frame, an image frame from the encoding channel buffer, and receiving a picture start code from the received image frame And a buffer state inserter for detecting the state of the encoded channel buffer by detecting and comparing the stored picture start code with a pre-stored picture start code, and inserting the detected state of the encoded channel buffer into a dummy code region of the image frame. An encoder and a picture in an image frame transmitted from the encoder A buffer status detector that detects a tart code and compares it with a pre-stored picture start code, and detects state information of a transmission-side encoded channel buffer that has transmitted the video frame according to the comparison result, and according to the detected state information. A decoding channel buffer operating in synchronization with the state of the encoding channel buffer, and a variable length decoder for adjusting a decoding speed of the decoding channel buffer in synchronization with the state of the encoding channel buffer according to the detected state information. And a core unit configured to restore the image frame output from the variable length decoder by motion compensation and inverse discrete cosine transform.

이상과 같은 다른 목적을 달성하기 위한 본 발명의 다른 특징에 따르면, 영상 데이터 송수신 방법은 영상 프레임을 입력하는 단계와, 상기 입력된 영상 프레임을 이산 코사인 변환하여 압축하는 단계와, 상기 압축된 영상프레임을 부호화하는 단계와, 상기 부호화된 영상 프레임에서 픽처 스타트 코드를 검출하고, 검출한 픽처 스타트 코드와 기 저장된 픽처 스타트 코드의 비교결과에 따라 부호화 채널 버퍼의 상태 정보를 검출하는 단계와, 상기 검출한 부호화 채널 버퍼의 상태 정보를 상기 부호화된 영상 프레임에 삽입하여 전송하는 단계와; 상기 영상 프레임을 수신하는 단계와, 상기 수신된 영상 프레임에서 픽처 스타트 코드를 검출하여 기 저장된 픽처 스타트 코드와 비교하고, 상기 비교결과에 따라 상기 영상 프레임을 전송한 전송측 부호화 채널 버퍼의 상태 정보를 검출하는 단계와, 상기 검출된 상태 정보에 따라 가변 길이 복호화기의 동작 속도를 조절하는 단계와,상기 조절된 동작 속도에 따라 상기 복호화 채널 버퍼의 상태를 조절하여 상기 수신된 영상 프레임을 복호하는 단계로 이루어진다.According to another aspect of the present invention for achieving the above object, the image data transmission and reception method comprises the steps of inputting an image frame, compressing the input image frame by discrete cosine transform, and the compressed image frame Detecting a picture start code in the encoded image frame, detecting state information of an encoding channel buffer according to a comparison result of the detected picture start code and a pre-stored picture start code, and detecting the picture start code. Inserting state information of an encoding channel buffer into the encoded image frame and transmitting the state information; Receiving the video frame, detecting a picture start code in the received picture frame, comparing the picture start code with a pre-stored picture start code, and comparing the state information of the transmission-side encoded channel buffer that transmitted the picture frame according to the comparison result. Detecting, and adjusting an operation speed of the variable length decoder according to the detected state information.,By adjusting the state of the decoding channel buffer according to the adjusted operation speed And decoding the received video frame.

도 1은 종래 기술에 따른 부호화기를 나타낸 블록 구성도.1 is a block diagram showing an encoder according to the prior art.

도 2는 종래 기술에 따른 복호화기를 나타낸 블록 구성도.2 is a block diagram illustrating a decoder according to the prior art.

도 3a 내지 도 3c는 종래 부호화 채널 버퍼와 복호화 채널 버퍼의 동작 상태를 나타낸 도면.3A to 3C are diagrams illustrating operation states of a conventional encoding channel buffer and a decoding channel buffer.

도 4a는 본 발명의 제 1 실시예에 따른 부호화기를 나타낸 블록 구성도.4A is a block diagram illustrating an encoder according to a first embodiment of the present invention.

도 4b는 본 발명의 제 1 실시예에 따른 복호화기를 나타낸 블록 구성도.4B is a block diagram illustrating a decoder in accordance with a first embodiment of the present invention.

도 5a는 본 발명의 제 2 실시예에 따른 부호화기를 나타낸 블록 구성도.5A is a block diagram illustrating an encoder according to a second embodiment of the present invention.

도 5b는 본 발명의 제 2 실시예에 따른 복호화기를 나타낸 블록 구성도.5B is a block diagram illustrating a decoder in accordance with a second embodiment of the present invention.

도 6은 도 5a에 나타낸 버퍼 상태 삽입기의 상세 회로도.FIG. 6 is a detailed circuit diagram of the buffer state inserter shown in FIG. 5A. FIG.

도 7a는 종래 영상 프레임의 구조를 나타낸 도면.7A illustrates the structure of a conventional video frame.

도 7b는 본 발명에 따른 영상 프레임의 구조를 나타낸 도면.7b is a diagram showing the structure of an image frame according to the present invention;

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

400, 405 : 코어부(Core part) 401 : 가변 길이 부호화기(VLC)400, 405: core part 401: variable length encoder (VLC)

402 : 부호화 채널 버퍼 403 : 복호화 채널 버퍼402: encoding channel buffer 403: decoding channel buffer

404 : 가변 길이 복호화기(VLD)404 variable length decoder (VLD)

이하 본 발명의 바람직한 일 실시 예에 따른 구성 및 작용을 첨부된 도면을 참조하여 설명한다.Hereinafter, a configuration and an operation according to an exemplary embodiment of the present invention will be described with reference to the accompanying drawings.

본 발명에서는 부호화기와 복호화기의 채널 버퍼를 안정화시켜 일정 품질의 영상 서비스를 제공하는 비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법을 제안한다.The present invention proposes a video codec and a method for transmitting and receiving video data using the same, which provides a video service having a certain quality by stabilizing a channel buffer of an encoder and a decoder.

이를 위해 본 발명에서는 부호화기의 채널 버퍼 상태를 복호화기로 제공하여 복호화기가 무선 채널을 통해 전송된 영상 프레임의 오류 발생 여부에 관계없이 채널 버퍼를 안정화시켜 최적화된 복호화를 수행할 수 있도록 한다.To this end, the present invention provides a channel buffer state of the encoder to the decoder so that the decoder can perform optimized decoding by stabilizing the channel buffer regardless of whether an error occurs in an image frame transmitted through a wireless channel.

이와 같이 부호화기의 채널 버퍼 상태를 복호화기로 알리기 위하여 본 발명에 따른 부호화기는 영상 프레임의 부호화시 버퍼 상태 정보(Channel Buffer Status, 이하 CBS로 약칭함)를 영상 프레임에 추가로 삽입하여 복호화기로 전송하고, 복호화기에서는 전송된 영상 프레임으로부터 CBS를 검출하여 부호화기의 채널 버퍼 상태를 감지한 후 그에 따라 자신의 채널 버퍼 상태를 부호화기의 채널 버퍼상태와 동기시켜 동작한다.In order to inform the decoder of the channel buffer status of the encoder as described above, the encoder according to the present invention additionally inserts buffer status information (hereinafter, abbreviated as CBS) into the video frame and encodes the video frame to the decoder, and sends the same to the decoder. The decoder detects the channel buffer state of the encoder by detecting the CBS from the transmitted image frame, and operates the channel buffer state of the encoder according to the channel buffer state of the encoder.

여기서 본 발명에서는 두 가지 방법으로 CBS의 삽입을 구현할 수 있으며 이하 제 1 실시예 및 제 2 실시예에서 상세히 설명한다.Herein, in the present invention, the insertion of the CBS can be implemented in two ways, which will be described in detail in the first and second embodiments.

제 1 실시예First embodiment

제 1 실시예에서는 비디오 코덱에 별도의 하드웨어를 추가하지 않고 부호화기에서 자체적으로 영상 프레임에 CBS를 삽입하여 전송하고, 복호화기에서 전송된 영상 프레임으로부터 삽입된 CBS를 검출하는 비디오 코덱 및 영상 데이터 전송 방법을 제안한다.In the first embodiment, a video codec and an image data transmission method for inserting and transmitting a CBS in an image frame by an encoder by itself without adding additional hardware to the video codec and detecting the inserted CBS from the image frame transmitted by the decoder. Suggest.

도 4a는 본 발명의 제 1 실시예에 따른 부호화기를 나타낸 블록 구성도이다.4A is a block diagram illustrating an encoder according to a first embodiment of the present invention.

도 4a를 참조하면, 제 1 실시예에 따른 부호화기는 입력된 영상 프레임에 대한 움직임 보상과 이산 코사인 변환과 양자화를 수행하여 영상을 압축하는 코어부(400)와, 부호화 채널 버퍼(402)에 대한 CBS를 영상 프레임에 삽입하는 가변 길이 부호화기(401)와, 자신의 상태를 가변 길이 부호화기(401)로 알리는 부호화 채널 버퍼(402)로 구성된다.Referring to FIG. 4A, the encoder according to the first embodiment compresses an image by performing motion compensation, discrete cosine transform, and quantization on an input image frame, and an encoding channel buffer 402. It consists of a variable length encoder 401 for inserting a CBS into an image frame, and an encoding channel buffer 402 for informing its state to the variable length encoder 401.

여기서 코어부(400)는 종래와 동일한 기능을 수행하고, 가변 길이 부호화기(401)는 부호화 채널 버퍼(402)에서 제공하는 상태 정보에 따라 영상 프레임에 부호화 채널 버퍼(402)의 상태를 나타내는 CBS를 추가로 삽입한다. 이때 가변 길이 부호화기(401)는 CBS를 주기적으로 영상 프레임에 삽입한다. 바람직하게 본 발명에 따른 가변 길이 부호화기(401)는 각 영상 프레임마다 CBS를 삽입한다.In this case, the core unit 400 performs the same function as in the related art, and the variable length encoder 401 applies a CBS indicating the state of the encoding channel buffer 402 to an image frame according to the state information provided by the encoding channel buffer 402. Insert additionally. At this time, the variable length encoder 401 periodically inserts the CBS into the image frame. Preferably, the variable length encoder 401 inserts a CBS for each image frame.

이와 같이 제 1 실시예에서 제안하는 부호화기는 부호화 채널 버퍼(402)에서 자신의 상태 정보를 가변 길이 부호화기(401)로 제공하고 그에 따라 가변 길이 부호화기(401)가 CBS를 영상 프레임에 삽입한다.As described above, the encoder proposed in the first embodiment provides its state information to the variable length encoder 401 in the encoding channel buffer 402, and the variable length encoder 401 inserts the CBS into the image frame.

도 4b는 본 발명의 제 1 실시예에 따른 복호화기를 나타낸 블록 구성도이다.4B is a block diagram illustrating a decoder in accordance with a first embodiment of the present invention.

도 4b를 참조하면, 제 1 실시예에 따른 복호화기는 부호화된 영상 프레임을 수신하는 복호화 채널 버퍼(403)와, 부호화된 영상 프레임을 복호화하는 가변 길이 복호화기(404)와, 가변 길이 복호화기(404)에서 출력되는 영상 프레임을 역이산 코사인 변환 및 역양자화하여 복원하는 코어부(405)로 구성된다.Referring to FIG. 4B, the decoder according to the first embodiment includes a decoding channel buffer 403 for receiving an encoded image frame, a variable length decoder 404 for decoding the encoded image frame, and a variable length decoder ( And a core unit 405 for restoring by inverse discrete cosine transforming and inverse quantization of the image frame output from the 404.

여기서 가변 길이 복호화기(404)는 수신된 영상 프레임으로부터 CBS를 검출하여 부호화 채널 버퍼(402)의 상태를 감지한다. 그리고 감지된 부호화 채널 버퍼(402)의 상태 정보를 복호화 채널 버퍼(403)로 제공하므로써 복호화 채널 버퍼(403)가 부호화 채널 버퍼(402)의 상태와 동기를 이루어 동작하도록 제어한다.Here, the variable length decoder 404 detects the CBS from the received image frame and detects the state of the encoding channel buffer 402. The decoding channel buffer 403 operates in synchronization with the state of the encoding channel buffer 402 by providing the detected state information of the encoding channel buffer 402 to the decoding channel buffer 403.

즉 복호화기는 복호화 채널 버퍼(403)의 상태가 영상 프레임으로부터 검출된 부호화 채널 버퍼(402)의 상태와 비교해 볼 때 언더 플로우(Underflow) 상태이면 복호화 채널 버퍼(403)에 대한 복호화 동작을 일시 중단하고, 반면에 오버 플로우(Overfolw) 상태이면 복호화 채널 버퍼(403)에 대한 복호화 속도를 증가시킴으로써 복호화 채널 버퍼(403)의 상태가 부호화 채널 버퍼(402)의 상태와 동기가 이루어지도록 한다.That is, the decoder suspends the decoding operation on the decoding channel buffer 403 when the decoding channel buffer 403 is in an underflow state when compared with the status of the encoding channel buffer 402 detected from the image frame. On the other hand, in an overflow state, the decoding speed of the decoding channel buffer 403 is increased so that the decoding channel buffer 403 is synchronized with the encoding channel buffer 402.

이러한 동작은 영상 프레임에 삽입되어 있는 CBS로부터 영상 프레임의 부호화시 부호화 채널 버퍼(402)의 상태를 감지할 수 있으므로 가능하다.This operation is possible because the state of the encoding channel buffer 402 can be detected when encoding the image frame from the CBS inserted in the image frame.

이와 같이 제 1 실시예에서 제안하는 복호화기는 가변 길이 복호화기(404)에서 수신된 영상 프레임으로부터 부호화 채널 버퍼(402)의 상태를 검출하고 그에 따라 복호화 채널 버퍼(403)의 동작을 적응시킨다.As described above, the decoder proposed in the first embodiment detects the state of the encoding channel buffer 402 from the image frame received by the variable length decoder 404 and adapts the operation of the decoding channel buffer 403 accordingly.

부호화 채널 버퍼(402)에서 자신의 상태 정보를 가변 길이 부호화기(401)로 제공하고 그에 따라 가변 길이 부호화기(401)가 CBS를 영상 프레임에 삽입한다.The encoding channel buffer 402 provides its state information to the variable length encoder 401, and the variable length encoder 401 inserts the CBS into the image frame.

제 2 실시예Second embodiment

제 2 실시예에서는 부호화 채널 버퍼의 상태를 복호화기로 알리기 위하여 비디오 코덱에 별도의 하드웨어를 추가하는 비디오 코덱 및 영상 데이터 전송 방법을 제안한다.The second embodiment proposes a video codec and a video data transmission method in which additional hardware is added to a video codec to inform a decoder of a state of an encoding channel buffer.

도 5a는 본 발명의 제 2 실시예에 따른 부호화기를 나타낸 블록 구성도이다.5A is a block diagram illustrating an encoder according to a second embodiment of the present invention.

도 5a를 참조하면, 제 2 실시예에 따른 부호화기는 영상 프레임에 대한 움직임 보상과 이산 코사인 변환과 양자화를 수행하여 영상을 압축하는 코어부(500)와, 압축된 영상 프레임을 보다 적은 데이터량으로 부호화하는 가변 길이 부호화기(501)와, 최종 부호화된 영상 프레임을 고정 데이터 전송률로 전송하기 위한 부호화 채널 버퍼(502)와, 부호화 채널 버퍼(502)의 상태에 따라 CBS를 영상 프레임에 삽입하는 버퍼 상태 삽입기(503)로 구성된다.Referring to FIG. 5A, the encoder according to the second embodiment compresses an image by performing motion compensation, discrete cosine transform, and quantization on an image frame, and compresses the compressed image frame with a smaller data amount. A variable length encoder 501 for encoding, an encoding channel buffer 502 for transmitting the last encoded image frame at a fixed data rate, and a buffer state for inserting CBS into the image frame according to the states of the encoding channel buffer 502. It is composed of an inserter 503.

이와 같이 구성되는 부호화기의 동작을 설명하면 우선 가변 길이 부호화기(501)는 코어부(500)에서 압축되어 출력되는 영상 프레임의 PSC 코드 이후에 일정 영역을 갖는 더미 부호를 첨가한다.Referring to the operation of the encoder configured as described above, the variable length encoder 501 first adds a dummy code having a predetermined area after the PSC code of the image frame compressed and output from the core unit 500.

그러면 버퍼 상태 삽입기(503)는 각 영상 프레임의 PSC 코드를 검출하고, 검출된 PSC 코드 이후에 이미 첨가되어 있는 더미 부호 영역에 CBS 부호를 삽입한다. 이때 버퍼 상태 삽입기(503)는 부호화 채널 버퍼(502)로부터 제공되는 버퍼 상태 정보에 따라 부호화 채널 버퍼(502)의 상태를 감지한다.The buffer state inserter 503 then detects the PSC code of each image frame, and inserts the CBS code into the dummy code area already added after the detected PSC code. In this case, the buffer state inserter 503 detects the state of the encoding channel buffer 502 according to the buffer state information provided from the encoding channel buffer 502.

이와 같이 제 2 실시예에서 제안하는 부호화기는 부호화 채널 버퍼(502)에서 자신의 상태 정보를 버퍼 상태 삽입기(503)로 제공하고 그에 따라 버퍼 상태 삽입기(503)가 CBS를 영상 프레임에 삽입한다.As described above, the encoder proposed in the second embodiment provides its state information to the buffer state inserter 503 in the encoding channel buffer 502, and the buffer state inserter 503 inserts the CBS into the image frame. .

도 5b는 본 발명의 제 2 실시예에 따른 복호화기를 나타낸 블록 구성도이다.5B is a block diagram illustrating a decoder in accordance with a second embodiment of the present invention.

도 5b를 참조하면, 제 2 실시예에 따른 복호화기는 영상 프레임으로부터 CBS를 검출하고 그에 따른 부호화 채널 버퍼(502)의 상태 정보를 복호화 채널 버퍼(505)로 제공하는 버퍼 상태 검출기(504)와, 버퍼 상태 검출기(504)에서 제공하는 부호화 채널 버퍼(502)의 상태 정보에 따라 부호화 채널 버퍼(502)와 동기를 이루어 동작하는 복호화 채널 버퍼(505)와, 버퍼 상태 검출기(504)에서 제공하는 부호화 채널 버퍼(502)의 상태 정보에 따라 복호화 채널 버퍼(505)에 입력된 영상 프레임의 복호화 속도를 조정하는 가변 길이 복호화기(506)와, 가변 길이 복호화기(506)에서 출력되는 영상 프레임을 역양자화 및 역이산 코사인 변환하는 코어부(507)로 구성된다.Referring to FIG. 5B, the decoder according to the second embodiment detects a CBS from an image frame and provides a buffer state detector 504 for providing the state information of the encoding channel buffer 502 to the decoding channel buffer 505. The decoding channel buffer 505 operating in synchronization with the encoding channel buffer 502 according to the state information of the encoding channel buffer 502 provided by the buffer state detector 504, and the encoding provided by the buffer state detector 504. The variable length decoder 506 adjusts the decoding speed of the image frame input to the decoding channel buffer 505 according to the state information of the channel buffer 502, and the image frame output from the variable length decoder 506 is reversed. It consists of a core portion 507 for quantization and inverse discrete cosine transform.

이와 같이 구성되는 복호화기의 동작은 다음과 같다.The operation of the decoder configured as described above is as follows.

우선 버퍼 상태 검출기(504)는 부호화기로부터 전송된 영상 프레임을 수신한 후 수신된 영상 프레임으로부터 부호화 채널 버퍼(502)의 상태를 나타내는 CBS를검출한다.First, the buffer state detector 504 receives an image frame transmitted from the encoder, and then detects a CBS indicating the state of the encoding channel buffer 502 from the received image frame.

이때 CBS는 영상 프레임의 PSC 코드 다음에 위치하므로 버퍼 상태 검출기(504)는 각 영상 프레임의 PSC 코드를 찾아 CBS를 검출한다.In this case, since the CBS is positioned after the PSC code of the image frame, the buffer status detector 504 detects the CBS by finding the PSC code of each image frame.

이어 버퍼 상태 검출기(504)는 검출된 CBS를 읽은 후 그에 따라 부호화 채널 버퍼(502)의 상태 정보를 복호화 채널 버퍼(505)로 제공한다.The buffer state detector 504 reads the detected CBS and then provides the state information of the encoding channel buffer 502 to the decoding channel buffer 505 accordingly.

그러면 복호화 채널 버퍼(505)는 버퍼 상태 검출기(504)로부터 제공되는 부호화 채널 버퍼(502)의 상태 정보에 따라 부호화 채널 버퍼(502)와 동기를 이루어 동작한다.The decoding channel buffer 505 then operates in synchronization with the encoding channel buffer 502 according to the state information of the encoding channel buffer 502 provided from the buffer state detector 504.

이때 가변 길이 복호화기(506)는 검출된 부호화 채널 버퍼(502)의 상태 정보에 따라 복호화 채널 버퍼(502)에 대한 복호화 속도를 조정한다.In this case, the variable length decoder 506 adjusts the decoding speed of the decoding channel buffer 502 according to the detected state information of the encoding channel buffer 502.

이와 같이 이와 같이 제 2 실시예에서 제안하는 복호화기는 버퍼 상태 검출기(504)에서 수신된 영상 프레임으로부터 부호화 채널 버퍼(502)의 상태를 검출하고 그에 따라 복호화 채널 버퍼(505)의 동작을 적응시킨다.As described above, the decoder proposed in the second embodiment detects the state of the encoding channel buffer 502 from the image frame received by the buffer state detector 504 and adapts the operation of the decoding channel buffer 505 accordingly.

도 6은 도 5a에 나타낸 버퍼 상태 삽입기의 상세 회로도이다.FIG. 6 is a detailed circuit diagram of the buffer state inserter shown in FIG. 5A.

도 6을 참조하면, 버퍼 상태 삽입기는 PSC 코드를 저장하는 PSC 코드 레지스터(Picture Start Code Register)(600)와, 영상 데이터의 PSC 코드를 검출하기 위한 비교기(601)와, 영상 프레임에 CBS를 삽입하는 CBS 삽입기(602)로 구성된다.Referring to FIG. 6, the buffer state inserter inserts a PSC code register (Picture Start Code Register) 600 storing a PSC code, a comparator 601 for detecting a PSC code of image data, and inserts a CBS into an image frame. Consisting of a CBS inserter 602.

이와 같이 구성되는 버퍼 상태 삽입기의 동작은 다음과 같다.The operation of the buffer state inserter configured as described above is as follows.

우선 PSC 코드 레지스터(600)는 PSC 코드를 저장한다. 그리고 영상 프레임이 입력되면 비교기(601)는 PSC 코드 레지스터(600)로부터 제공되는 PSC 코드와 입력된 영상 프레임을 비교하여 영상 프레임의 PSC 코드를 검출한다.First, the PSC code register 600 stores a PSC code. When the image frame is input, the comparator 601 detects the PSC code of the image frame by comparing the input image frame with the PSC code provided from the PSC code register 600.

영상 프레임의 PSC 코드가 검출되면, CBS 삽입기(602)는 PSC 코드의 검출 시점에 부호화 채널 버퍼(502)의 상태를 나타내는 CBS를 영상 프레임에 삽입한다. 이때 CBS는 가변 길이 부호화기(501)에서 더미 부호를 전송한 영역에 삽입된다. 바람직하게 본 발명에서는 PSC 코드 이후에 CBS를 삽입한다.When the PSC code of the video frame is detected, the CBS inserter 602 inserts a CBS indicating the state of the encoding channel buffer 502 into the video frame at the time of detecting the PSC code. At this time, the CBS is inserted into a region where the dummy code is transmitted by the variable length encoder 501. In the present invention, the CBS is inserted after the PSC code.

한편 복호화기의 버퍼 상태 검출기(504)는 버퍼 상태 삽입기(503)와 동일한 구성을 갖는다.Meanwhile, the buffer state detector 504 of the decoder has the same configuration as the buffer state inserter 503.

즉 PSC 코드를 저장하는 PSC 코드 레지스터(미도시)와, 비교기(미도시)와, CBS 검출기(미도시)가 구성되어 전송된 영상 프레임으로부터 PSC 코드를 찾은 후 그에 따른 CBS 코드를 검출한다.That is, a PSC code register (not shown) that stores a PSC code, a comparator (not shown), and a CBS detector (not shown) are configured to find the PSC code from the transmitted image frame, and then detect the corresponding CBS code.

도 7a는 종래 영상 프레임의 구조를 나타낸 도면이고, 도 7b는 본 발명에 따른 영상 프레임의 구조를 나타낸 도면이다.7A is a diagram illustrating the structure of a conventional image frame, and FIG. 7B is a diagram illustrating the structure of an image frame according to the present invention.

도 7a 내지 도 7b를 참조하면, 종래 영상 프레임의 헤더 정보는 H.263에 정의된 바와 같이 도 7a와 같은 구성을 갖는다. 여기서 본 발명에서는 PSC 코드 이후에 부호화 채널 버퍼의 상태를 나타내는 CBS 부호를 삽입하므로 본 발명에 따른 영상 프레임의 구조는 도 7b와 같다.7A to 7B, header information of a conventional video frame has a configuration as shown in FIG. 7A as defined in H.263. In the present invention, since the CBS code indicating the state of the encoding channel buffer is inserted after the PSC code, the structure of an image frame according to the present invention is shown in FIG. 7B.

한편 제 1 실시예에서는 부호화기에서의 CBS 삽입 시간과 복호화기에서의 CBS 검출 시간에 소정 차이가 발생할 수 있다.Meanwhile, in the first embodiment, a predetermined difference may occur between the CBS insertion time in the encoder and the CBS detection time in the decoder.

즉, 제 1 실시예에서는 가변 길이 부호화기에서 직접 CBS를 영상 프레임에 삽입하고, 가변 길이 복호화기에서 직접 CBS를 검출하므로 CBS의 삽입 시점과 검출시점은 부호화 채널 버퍼의 통과 시간, 무선 채널 통과 시간 및 복호화 채널 버퍼의 통과 시간만큼 존재하는 것이다.That is, in the first embodiment, since the CBS is directly inserted into the image frame and the CBS is directly detected by the variable length decoder, the insertion time and the detection time of the CBS are determined by the pass time of the encoding channel buffer, the radio channel pass time, It exists as long as the pass time of the decoding channel buffer.

따라서 복호화기에서 CBS를 검출하는 시점에는 실질적인 부호화 채널 버퍼의 상태와 검출된 부호화 채널 버퍼의 상태가 상이할 수도 있는 단점이 있다.Accordingly, there is a disadvantage in that the actual encoding channel buffer state and the detected encoding channel buffer state may be different at the time when the decoder detects the CBS.

반면에 제 2 실시예에서는 CBS의 삽입 및 검출을 별도의 하드웨어를 이용하여 처리하므로 CBS의 삽입 시점과 검출 시점은 무선 채널의 통과 시간으로 줄어든다. 이는 CBS의 삽입 시점과 검출 시점이 최소한의 차이를 갖게 되는 것을 의미하므로 실질적인 부호화 채널 버퍼의 상태와 검출된 부호화 채널 버퍼의 상태는 서로 비슷하다.On the other hand, in the second embodiment, since the insertion and detection of the CBS is processed using separate hardware, the insertion time and the detection time of the CBS are reduced to the passage time of the radio channel. This means that the insertion time and the detection time of the CBS have a minimum difference. Therefore, the actual coding channel buffer state and the detected coding channel buffer state are mutually different. Similar.

이상의 설명에서와 같이 본 발명에 따른 비디오 코덱 및 그를 이용한 영상 데이터 송수신 방법에 의하면 복호화기에 부호화기의 채널 버퍼 상태를 정기적으로 알리므로써 복호화기의 채널 버퍼 상태를 최적화하여 일정 품질의 영상 서비스를 제공하는 효과가 있다.As described above, according to the video codec and the image data transmitting / receiving method using the same according to the present invention, the decoder periodically informs the channel buffer state of the encoder, thereby optimizing the channel buffer state of the decoder to provide a video service of a certain quality. There is.

특히 본 발명에 따른 비디오 코덱이 무선 채널을 통해 영상 데이터를 전송하는 영상 단말기에 적용될 경우에 영상 프레임의 오류 여부에 상관없이 복호화기의 채널 버퍼 상태를 최적화하므로써 복호화기의 오동작을 방지하는 탁월한 효과가 있다.In particular, when the video codec according to the present invention is applied to a video terminal transmitting video data through a wireless channel, an excellent effect of preventing the decoder from malfunctioning by optimizing the channel buffer state of the decoder regardless of whether there is an error in the video frame is obtained. have.

이상 설명한 내용을 통해 당업자라면 본 발명의 기술 사상을 일탈하지 아니하는 범위에서 다양한 변경 및 수정이 가능함을 알 수 있을 것이다.Those skilled in the art will appreciate that various changes and modifications can be made without departing from the spirit of the present invention.

따라서, 본 발명의 기술적 범위는 실시예에 기재된 내용으로 한정하는 것이 아니라 특허 청구 범위에 의해서 정해져야 한다.Therefore, the technical scope of the present invention should not be limited to the contents described in the examples, but should be defined by the claims.

Claims (7)

입력되는 영상 프레임을 이산 코사인 변환하여 압축하는 코어부와, 상기 압축된 영상 프레임을 부호화하고, 상기 코어부에서 출력된 영상 프레임에 더미(Dummy) 부호 영역을 첨가하는 가변 길이 부호화기와, 상기 부호화된 영상 프레임을 저장하는 부호화 채널 버퍼와, 상기 부호화 채널 버퍼로부터의 영상 프레임을 수신하고, 수신된 영상 프레임에서 픽처 스타트 코드를 검출하여 내부에 기 저장된 픽처 스타트 코드와 비교함으로써 상기 부호화 채널 버퍼의 상태를 감지하고, 상기 영상 프레임의 더미 부호 영역에 상기 감지된 부호화 채널 버퍼의 상태 정보를 삽입하는 버퍼 상태 삽입기를 포함하는 부호화기와;A core unit for discrete-cosine transforming and compressing an input image frame, a variable length encoder for encoding the compressed image frame, and adding a dummy code region to the image frame output from the core unit, and Receives an encoded channel buffer storing an image frame and an image frame from the encoded channel buffer, detects a picture start code from the received image frame, and compares the state of the encoded channel buffer with a prestored picture start code. An encoder including a buffer state inserter for sensing and inserting state information of the detected encoded channel buffer into a dummy code region of the image frame; 상기 부호화기에서 전송된 영상 프레임에서 픽처 스타트 코드를 검출하여 내부에 기 저장된 픽처 스타트 코드와 비교하고, 상기 비교 결과에 따라 상기 영상 프레임을 전송한 전송측 부호화 채널 버퍼의 상태 정보를 검출하는 버퍼 상태 검출기와, 상기 검출된 상태 정보에 따라 상기 부호화 채널 버퍼의 상태와 동기를 이루어 동작하는 복호화 채널 버퍼와, 상기 검출된 상태 정보에 따라 상기 복호화 채널 버퍼에 대한 복호화 속도를 상기 부호화 채널 버퍼의 상태와 동기되어 동작하도록 조정하는 가변 길이 복호화기와, 상기 가변 길이 복호화기에서 출력되는 영상 프레임을 움직임 보상 및 역이산 코사인 변환하여 복원하는 코어부를 포함하는 복호화기로 구성됨을 특징으로 하는 비디오 코덱.A buffer state detector which detects a picture start code from an image frame transmitted from the encoder and compares the picture start code with a prestored picture start code, and detects state information of a transmission-side encoded channel buffer that transmitted the image frame according to the comparison result. And a decoding channel buffer operating in synchronization with a state of the encoding channel buffer according to the detected state information, and a decoding rate for the decoding channel buffer according to the detected state information is synchronized with a state of the encoding channel buffer. And a decoder including a core for reconstructing and reconstructing a video frame output from the variable length decoder by motion compensation and inverse discrete cosine transform. 삭제delete 영상 프레임을 입력하는 단계와,Inputting an image frame; 상기 입력된 영상 프레임을 이산 코사인 변환하여 압축하는 단계와,Compressing the input image frame by discrete cosine transform; 상기 압축된 영상프레임을 부호화하는 단계와,Encoding the compressed video frame; 상기 부호화된 영상 프레임에서 픽처 스타트 코드를 검출하고, 검출한 픽처 스타트 코드와 기 저장된 픽처 스타트 코드의 비교결과에 따라 부호화 채널 버퍼의 상태 정보를 검출하는 단계와,Detecting a picture start code from the encoded image frame and detecting state information of an encoding channel buffer according to a result of comparing the detected picture start code with a pre-stored picture start code; 상기 검출한 부호화 채널 버퍼의 상태 정보를 상기 부호화된 영상 프레임에 삽입하여 전송하는 단계와;Inserting and transmitting state information of the detected encoded channel buffer into the encoded image frame; 상기 영상 프레임을 수신하는 단계와,Receiving the image frame; 상기 수신된 영상 프레임에서 픽처 스타트 코드를 검출하여 기 저장된 픽처 스타트 코드와 비교하고, 상기 비교결과에 따라 상기 영상 프레임을 전송한 전송측 부호화 채널 버퍼의 상태 정보를 검출하는 단계와,Detecting a picture start code from the received picture frame, comparing the picture start code with a pre-stored picture start code, and detecting state information of a transmission-side encoded channel buffer transmitting the picture frame according to the comparison result; 상기 검출된 상태 정보에 따라 가변 길이 복호화기의 동작 속도를 조절하는 단계와, Adjusting an operation speed of a variable length decoder according to the detected state information ; 상기 조절된 동작 속도에 따라 상기 복호화 채널 버퍼의 상태를 조절하여 상기 수신된 영상 프레임을 복호하는 단계로 이루어지는 것을 특징으로 하는 영상 데이터 송수신 방법.By adjusting the state of the decoding channel buffer according to the adjusted operation speed And decoding the received video frame. 제 3 항에 있어서, 상기 압축된 영상 프레임에 더미 부호 영역을 생성하여 첨가하는 단계와,The method of claim 3, further comprising: generating and adding a dummy code region to the compressed image frame; 상기 첨가된 더미 부호 영역에 상기 부호화 채널 버퍼에 대한 상태 정보를 삽입하여 전송하는 단계로 이루어지는 것을 특징으로 하는 영상 데이터 송수신 방법.And inserting and transmitting state information about the encoded channel buffer in the added dummy code region. 삭제delete 입력되는 영상프레임을 이산 코사인 변환하여 압축하는 코어부와;A core unit for compressing the input image frame by discrete cosine transform; 입력되는 데이터의 양에 따라 상태정보를 출력하는 부호화 채널 버퍼와;An encoding channel buffer configured to output state information according to the amount of input data; 상기 코어부에서 출력된 영상 프레임을 부호화하고 상기 부호화 채널 버퍼로부터 출력된 상태 정보에 따라 부호화된 데이터에 버퍼상태정보를 삽입하는 가변길이 부호화기를 포함하는 부호화기와;An encoder including a variable length encoder encoding the image frame output from the core unit and inserting buffer state information into the encoded data according to the state information output from the encoding channel buffer; 상기 부호화기로부터 입력된 영상 프레임을 저장하는 복호화 채널버퍼와;A decoded channel buffer for storing the image frame input from the encoder; 상기 복호화 채널버퍼로부터 상기 부호화기의 버퍼상태정보가 저장된 영상 프레임을 입력받아 상기 복호화 채널버퍼의 상태와 비교하여 복호화동작을 제어하는 가변길이 복호화기와;A variable length decoder configured to receive an image frame in which buffer state information of the encoder is stored from the decoded channel buffer and to compare a state of the decoded channel buffer to control a decoding operation; 상기 가변길이 복호화기로부터 입력된 영상 프레임을 역이산 코사인 변화 및 역양자화하여 복원하는 코어부를 포함하는 복호화기로 구성된 것을 특징으로 하는 비디오 코덱.And a decoder comprising a core unit for reconstructing and inversely quantizing inverse discrete cosine the image frame inputted from the variable length decoder. 입력되는 영상프레임을 이산 코사인 변환하여 압축하는 단계와;Compressing the input image frame by discrete cosine transform; 부호화 채널버퍼에 입력되는 데이터의 양에 따라 상태정보를 출력하는 단계와;Outputting state information according to the amount of data input to the encoded channel buffer; 상기 압축된 영상 프레임을 부호화하고 상기 부호화된 데이터에 부호화 채널버퍼의 버퍼상태정보를 삽입하여 전송하는 단계와;Encoding the compressed image frame and inserting buffer state information of an encoded channel buffer into the encoded data and transmitting the encoded image frame; 상기 부호화된 영상 프레임을 수신받아 상기 버퍼상태정보를 이용하여 복호화동작을 제어하는 단계와;Receiving the encoded image frame and controlling a decoding operation by using the buffer state information; 상기 복호화된 데이터를 역이산 코사인 변화 및 역양자화하여 복원하는 단계를 포함하는 것을 특징으로 하는 영상 데이터 송수신방법.And reconstructing the decoded data by inverse discrete cosine change and inverse quantization.
KR10-1999-0054842A 1999-12-03 1999-12-03 Video codec and method for transmitting/receiving video data using the same KR100370059B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR10-1999-0054842A KR100370059B1 (en) 1999-12-03 1999-12-03 Video codec and method for transmitting/receiving video data using the same

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR10-1999-0054842A KR100370059B1 (en) 1999-12-03 1999-12-03 Video codec and method for transmitting/receiving video data using the same

Publications (2)

Publication Number Publication Date
KR20010054171A KR20010054171A (en) 2001-07-02
KR100370059B1 true KR100370059B1 (en) 2003-01-30

Family

ID=19623489

Family Applications (1)

Application Number Title Priority Date Filing Date
KR10-1999-0054842A KR100370059B1 (en) 1999-12-03 1999-12-03 Video codec and method for transmitting/receiving video data using the same

Country Status (1)

Country Link
KR (1) KR100370059B1 (en)

Families Citing this family (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20050121067A (en) 2004-06-21 2005-12-26 삼성전자주식회사 Wireless communication system using wireless channel and wireless communication method thereof
KR101523590B1 (en) * 2009-01-09 2015-05-29 한국전자통신연구원 Method for controlling codec mode in All-IP network and Terminal using the same

Also Published As

Publication number Publication date
KR20010054171A (en) 2001-07-02

Similar Documents

Publication Publication Date Title
US4833535A (en) Image transmission apparatus
US9036698B2 (en) Method and system for rate control during video transcoding
US7809065B2 (en) Picture encoding system conversion device and encoding rate conversion device
US8542730B2 (en) Fast macroblock delta QP decision
US6002802A (en) Video encoding and decoding apparatus
EP1684526A2 (en) Transcoder device for transcoding compressed and encoded bitstream of motion picture in syntax level and motion picture communication system
US10484688B2 (en) Method and apparatus for encoding processing blocks of a frame of a sequence of video frames using skip scheme
KR100486524B1 (en) Shortening apparatus for delay time in video codec
WO1999059344A1 (en) Conditional masking for video encoder
US6956971B1 (en) Terminal and method for transporting still picture
US6580755B1 (en) Apparatus and method for encoding
EP1654807A2 (en) Method and apparatus for selection of bit budget adjustment in dual pass encoding
KR100370059B1 (en) Video codec and method for transmitting/receiving video data using the same
JPH10174098A (en) Video data compressor and its method
KR100393991B1 (en) Video decoder and its method for buffer control
KR20040031949A (en) Method for moving picture encoding and decoding
US20040258163A1 (en) Video communication system and video coding method
WO2002019709A1 (en) Dual priority video transmission for mobile applications
JP2003244706A (en) Image encoded data conversion apparatus and conversion method, and conversion program
KR100926826B1 (en) Apparatus and method of transcoding for error resilience for beforehand of video bit-stream
KR20040054749A (en) Compression
KR0123100B1 (en) Encoder for adaptive fast play control and fast play method using it
KR100327414B1 (en) Video coder and its method for controling buffer
KR100323752B1 (en) Method and Telephone for still picture transport
Hurd et al. Achieving idempotence in near-lossless JPEG-LS

Legal Events

Date Code Title Description
A201 Request for examination
E902 Notification of reason for refusal
AMND Amendment
N231 Notification of change of applicant
E601 Decision to refuse application
J201 Request for trial against refusal decision
AMND Amendment
B701 Decision to grant
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20121227

Year of fee payment: 11

FPAY Annual fee payment

Payment date: 20131224

Year of fee payment: 12

FPAY Annual fee payment

Payment date: 20141224

Year of fee payment: 13

LAPS Lapse due to unpaid annual fee