KR0148146B1 - Apparatus for loss-prevention of important image data - Google Patents

Apparatus for loss-prevention of important image data

Info

Publication number
KR0148146B1
KR0148146B1 KR1019940002920A KR19940002920A KR0148146B1 KR 0148146 B1 KR0148146 B1 KR 0148146B1 KR 1019940002920 A KR1019940002920 A KR 1019940002920A KR 19940002920 A KR19940002920 A KR 19940002920A KR 0148146 B1 KR0148146 B1 KR 0148146B1
Authority
KR
South Korea
Prior art keywords
image data
data
buffer
amount
screen
Prior art date
Application number
KR1019940002920A
Other languages
Korean (ko)
Other versions
KR950026268A (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 KR1019940002920A priority Critical patent/KR0148146B1/en
Publication of KR950026268A publication Critical patent/KR950026268A/en
Application granted granted Critical
Publication of KR0148146B1 publication Critical patent/KR0148146B1/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/85Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression
    • H04N19/89Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using pre-processing or post-processing specially adapted for video compression involving methods or arrangements for detection of transmission errors at the decoder
    • 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
    • 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
    • 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/59Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving spatial sub-sampling or interpolation, e.g. alteration of picture size or resolution

Abstract

본 발명은 디지탈영상데이타 복호화장치에 관한 것이다. 보다 상세히 설명하면 편집된 영상데이타를 복호시 복호화측의 버퍼에서는 오버플로우가 많이 발생된다. 버퍼에서 오버플로우가 발생하면 그 이후에 유입되는 영상데이타는 모두 버리게 된다. 이때, 중요한 영상데이타가 손실되어 화질에 악영향을 미친다. 이를 방지하기 위하여 버퍼에 저장되어 있는 데이타량과 영상데이타헤더정보에 의한 데이타량을 비교하여 그 오차값을 검출하고, 버퍼에 저장되어 있는 데이타량이 영상데이타헤더정보에 의한 데이타량보다 많은 오차값인 경우 이 오차값과 가장 유사한 데이타량을 갖는 양방향예측부호화하면의 데이타를 검색하여 이를 미리 제거하는 중요영상데이타의 손실방지장치에 관한 것이다. 따라서, 양방향예측부호화화면의 데이타보다 중요한 인트라모드부호화화면 또는 전방예측부호화화면의 데이타가 손실되는 것을 방지할 수 있다.The present invention relates to a digital image data decoding apparatus. In more detail, when decoding the edited video data, a lot of overflow occurs in the buffer of the decoding side. If an overflow occurs in the buffer, all incoming video data is discarded. At this time, important video data is lost, which adversely affects image quality. To prevent this, compare the amount of data stored in the buffer with the amount of data by the image data header information, and detect the error value.The amount of data stored in the buffer is larger than the amount of data by the image data header information. In this case, the present invention relates to an apparatus for preventing loss of important video data, which searches for and removes data of bidirectional predictive encoding data having a data amount most similar to the error value in advance. Therefore, it is possible to prevent the loss of the data of the intra mode encoded screen or the forward predicted encoded screen, which is more important than the data of the bidirectional predicted encoded screen.

Description

중요영상데이타의 손실방지장치Loss prevention device of important video data

제1도는 일반적인 영상신호의 부호화/복호화장치를 나타낸 블럭도.1 is a block diagram showing an apparatus for encoding / decoding a general video signal.

제2도는 제1(a)도의 부호화장치에서 부호화되어 제1(b)도의 복호화장치로 전송되는 연속되는 화면데이타를 설명하기 위한 개념도.FIG. 2 is a conceptual diagram illustrating continuous screen data encoded by the encoding apparatus of FIG. 1 (a) and transmitted to the decoding apparatus of FIG. 1 (b).

제3도는 본 발명에 의한 중요영상데이타의 손실방지장치를 나타낸 블럭도.3 is a block diagram showing an apparatus for preventing the loss of important video data according to the present invention.

제4도는 제3도 장치에 의한 복호화측버퍼(Buffer)상태를 설명하기 위한 설명도.4 is an explanatory diagram for explaining a decoding side buffer (Buffer) state by the apparatus of FIG.

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

20 : 복호화측버퍼 30 : 헤더정보검출부(가상버퍼데이타량산출부)20: decoding side buffer 30: header information detection unit (virtual buffer data calculation unit)

31 : 비교기 32 : 버퍼데이타량산출부31: comparator 32: buffer data amount calculation unit

33 : 제거유무결정부 34 : B화면검색부33: removal elimination unit 34: B screen search unit

35 : B화면데이타량산출부 36 : B화면데이타량제거부35: B screen data amount calculation unit 36: B screen data amount removal unit

본 발명은 중요영상데이타의 손실방지장치에 관한 것으로, 특히 서로 다른 두개의 영상비트스트림(Bit stream)을 편집한 영상비트스트림 복호시 복호화측버퍼(Buffer)에서 발생되는 오버플로우(Overflow)를 방지하여 중요한 영상비트스트림이 손실되는 것을 방지할 수 있는 중요영상데이타의 손실방지장치에 관한 것이다.The present invention relates to an apparatus for preventing the loss of important video data, and in particular, to prevent an overflow occurring in the decoding side buffer when decoding two different bit streams. The present invention relates to a loss prevention apparatus of important video data which can prevent the loss of important video bitstreams.

최근에는 화질의 개선을 위하여 영상신호를 디지탈데이타로 부호화하여 전송하고 전송된 디지탈데이타를 다시 복호화하여 처리하는 방식이 보편화되었다. 하지만, 영상신호를 디지탈데이타로 부호화하는 경우 그 데이타량이 상당히 많다. 따라서, 디지탈영상신호에 포함되어 있는 용장성데이타(Redundancy Data)를 제거하기 위해 변환부호화, DPCM(Differential Pulse Code Modulation), 벡터양자화, 가변장부호화(Variable Length Coding)등을 행한다.Recently, in order to improve image quality, a method of encoding and transmitting a video signal to digital data and decoding and processing the transmitted digital data again has become common. However, when the video signal is encoded by digital data, the data amount is considerably large. Therefore, conversion encoding, differential pulse code modulation (DPCM), vector quantization, variable length coding, etc., are performed to remove redundancy data included in the digital video signal.

제1도(a)도는 일반적인 영상신호의 부호화장치를 나타낸 블럭도이다. 일반적으로 영상신호를 부호화하는 장치는 NxN블력에 대해 DCT방식의 변환을 수행한 후 변환계수를 양자화시키는 수단과, 양자화된 데이타를 가변장부호화하여 데이타량을 더욱 압축시키는 수단과, 가변장부호화된 영상데이타를 저장하였다가 다시 일정속도로 복호측으로 전송하는 부호화측버퍼와, 양자화된 데이타를 역양자화 및 역변환하여 재구성된 화면과 부호화할 블륵으로부터 움직임예측 및 움직임보상을 수행하는 수단으로 구성된다.FIG. 1 (a) is a block diagram showing an apparatus for encoding a general video signal. In general, an apparatus for encoding a video signal includes means for quantizing a transform coefficient after performing a DCT transform on an N × N capable force, means for further compressing the amount of data by variable length encoding the quantized data, and variable length encoding. It consists of an encoding side buffer that stores image data and transmits it to the decoding side at a constant speed, and means for performing motion prediction and motion compensation from a reconstructed picture and a block to be encoded by inverse quantization and inverse transformation of quantized data.

좀더 구체적으로 설명하면, 입력단(10)으로 NxN크기의 블록영상데이타(일반적으로 N1xN2블록이나, N1=N2=N으로 가정함)가 인가된다. 입력단(10)을 통해 인가되는 블록데이타는 제 1가산기(A1)에서 소정의 궤환데이타와 감산되어 오차데이타를 산출한다. 이 오차데이타는 NxN변환부(11)에서 주파수영역의 데이타로 변환된다. 양자화부(12)는 소정의 양자화과정을 통해 변환계수들을 일정레벨의 대표값들로 바꾸어준다. 즉, 양자화부(12)는 부호화측버퍼(14)에서 궤환되는 양자화레벨(Q Level)신호를 공급받고, 이에 따라 NxN변환부(11)의 출력데이타를 양자화시킨다.In more detail, NxN-sized block image data (generally N 1 xN 2 blocks or N 1 = N 2 = N) is applied to the input terminal 10. The block data applied through the input terminal 10 is subtracted from the predetermined feedback data by the first adder A1 to calculate error data. This error data is converted into data in the frequency domain by the NxN converter 11. The quantization unit 12 converts the transform coefficients into representative values of a predetermined level through a predetermined quantization process. That is, the quantization unit 12 receives a quantization level (Q Level) signal fed back from the encoding side buffer 14, thereby quantizing the output data of the NxN converter 11.

가변장부호화부(13)는 양자화된 양자화계수들에 대해 그 통계적특성에 따라 가변장부호화하여 영상데이타를 더욱 압축시킨다. 가변장부호화된 영상데이타는 비트스트림형태로 부호화측버퍼(14)에 공급된다. 부호화측버퍼(14)는 가변장부호화부(13)에서 공급되는 비트스트림형태의 영상데이타를 저장하였다가 일정속도로 복호화측으로 전송한다. 또한, 부호화측버퍼(14)는 오버플로우나 언더플로우가 발생되지 않도록 입력데이타량을 조절하기 위해 양자화부에 양자화레벨(Q Level)신호를 공급한다.The variable length encoder 13 compresses the image data by variable length encoding the quantized coefficients according to their statistical characteristics. Variable-length encoded video data is supplied to the encoding side buffer 14 in the form of a bit stream. The encoding side buffer 14 stores the bit stream type image data supplied from the variable length encoding unit 13 and transmits the image data to the decoding side at a constant speed. In addition, the encoding side buffer 14 supplies a quantization level (Q Level) signal to the quantization unit to adjust the amount of input data so that overflow or underflow does not occur.

한편, 일반적으로 화면과 화면간에는 유사한 부분이 많으므로, 약간의 움직임이 있는 화면인 경우, 그 움직임을 추정하여 동벡터(MV)를 산출하고, 이 동벡터를 이용하여 데이타를 보상하여 준다. 이러한 동보상을 수행하기 위해 역양자화부(15)와 NxN역변환부(16)에서는 양자화부(12)에서 양자화된 양자화계수를 역양자화하고 NxN역변환시킨다. NxN역변환부(16)에서 출력되는 영상데이타는 소정의 궤환데이타와 제 2가산기(A2)에서 가산되어 프레임메모리(17)에 저장됨으로써 화면을 재구성한다. 그러면, 동추정부(18)에서는 입력단(10)에서 인가되는 NxN블록데이타와 가장 유사한 패턴의 블록데이타를 프레임메모리(17)에 저장된 프레임데이타에서 찾아 2개 블록간의 움직임을 나타내는 동벡터(MV)를 산출한다. 이 동벡터는 복호화측과 동보상부(19)로 전송된다. 동보상부(19)는 프레임메모리(17)의 프레임데이타에서 동벡터에 상응하는 블록데이타를 독출하여 제 1가산기(A1)로 공급한다. 그러면, 제1가산기(A1)는 입력단(10)에서 인가되는 블록데이타와 동보상부(19)에서 공급되는 블록데이타간의 차 데이타를 산출한다. 이 차 데이타는 NxN변환, 양자화과정을 거쳐 가변장부호화되어 부호화측버퍼(14)에 저장되었다가 복호화측으로 전송된다. 여기에서, 2개의 스위치(SW1,SW2)는 부호화되는 화상이 실제의 화상과 달라지는 것을 방지하기 위해 프레임단위 또는 소정의 블록단위로 데이타를 리프레쉬(Refresh)시키기 위한 리프레쉬스위치이다. 즉, 이 스위치에 의해 인트라모드 또는 인터모드의 부호화모드가 결정된다.On the other hand, in general, since there are many similar parts between the screen and the screen, in the case of a screen having a slight movement, the motion vector is calculated by estimating the motion, and the data is compensated using the motion vector. In order to perform such dynamic compensation, the inverse quantization unit 15 and the NxN inverse transform unit 16 dequantize the quantized coefficients quantized by the quantization unit 12 and perform NxN inverse transformation. The video data output from the NxN inverse transform unit 16 is added to the predetermined feedback data by the second adder A2 and stored in the frame memory 17 to reconstruct the screen. Then, in the tracking unit 18, block data having a pattern most similar to the NxN block data applied from the input terminal 10 is found in the frame data stored in the frame memory 17, and the motion vector MV representing the movement between two blocks is obtained. Calculate. This moving vector is transmitted to the decoding side and the compensating unit 19. The compensating unit 19 reads block data corresponding to the motion vector from the frame data of the frame memory 17 and supplies it to the first adder A1. Then, the first adder A1 calculates the difference data between the block data applied from the input terminal 10 and the block data supplied from the dynamic compensator 19. The difference data is variably encoded by NxN conversion and quantization, stored in the encoding side buffer 14, and then transmitted to the decoding side. Here, the two switches SW1 and SW2 are refresh switches for refreshing data in a frame unit or a predetermined block unit in order to prevent the encoded image from being different from the actual image. In other words, this switch determines the encoding mode of the intra mode or the inter mode.

제1(b)도는 일반적인 영상신호의 복호화장치를 개략적으로 나타낸 블럭도이다. 도시된 바와같이 복호화측버퍼와, 가변장복호화부와, 역양자화부와, NxN역변환부와, 가산기와 프레임메모리를 구비하고 있다. 부호화측에서 일정속도로 전송되어오는 영상데이타는 복호화측버퍼(20)에서 저장된다. 가변장복호화부(21)는 구성할 화면의 영상데이타를 복호화측버퍼(20)에서 추출하여 가변장부호화의 역과정을 통해 복호화한다. 복호화된 영상데이타는 역양자화부(22)로 입력되고, 역양자화부(22)는 영상데이타를 주파수영역의 변환계수로 역양자화시킨다. NxN역변환부(23)는 역양자화부(22)에서 공급되는 주파수영역의 변환계수를 공간영역의 영상데이타로 변환시킨다. 또한, 부호화측의 동추정부(18)에서 전송되는 동벡터에 상응하는 프레임메모리(24)에 저장된 프레임데이타는 가산기(A)로 공급되어 NxN역변환부(23)에서 발생되는 공간영역의 영상데이타와 조합되어 디스플레이부로 전송된다.FIG. 1 (b) is a block diagram schematically illustrating an apparatus for decoding a general video signal. As shown, a decoding side buffer, a variable long decoding unit, an inverse quantization unit, an NxN inverse transform unit, an adder and a frame memory are provided. The image data transmitted at a constant speed from the encoding side is stored in the decoding side buffer 20. The variable length decoding unit 21 extracts the image data of the screen to be constructed from the decoding side buffer 20 and decodes the data through the reverse process of variable length encoding. The decoded image data is input to the inverse quantization unit 22, and the inverse quantization unit 22 inversely quantizes the image data using the transform coefficient of the frequency domain. The NxN inverse transform unit 23 converts the transform coefficient of the frequency domain supplied from the inverse quantizer 22 into image data of the spatial domain. In addition, frame data stored in the frame memory 24 corresponding to the motion vector transmitted from the encoding tracking unit 18 on the encoding side is supplied to the adder A to generate image data of the spatial domain generated by the NxN inverse transform unit 23. Are combined and sent to the display.

제2도는 제1(a)도의 부호화장치에서 부호화되어 제1(b)도의 복호화장치로 전송되는 연속되는 화면데이타를 설명하기 위한 개념도이다. 도시된 바와 같이 다수의 I화면, B화면, P화면이 소정순서대로 배열되어 있다.FIG. 2 is a conceptual diagram illustrating continuous screen data encoded by the encoding apparatus of FIG. 1 (a) and transmitted to the decoding apparatus of FIG. 1 (b). As shown, a plurality of I screens, B screens, and P screens are arranged in a predetermined order.

I화면은 한 화면의 모든 블록데이타가 인트라모드로 부호화된 화면이다. 즉, I화면은 한 화면내의 영상데이타가 앞뒤의 다른 화면과는 무관하게 블럭별로 NxN변환, 양자화과정을 거쳐 가변장부호화된 화면이다. I화면은 다른 화면과의 차분값을 부호화한 화면보다는 원래의 영상에 가까운 화면이다. I화면은 화면간의 차분값을 부호화한 화면보다 부호화효율은 떨어지지만 이를 각 화면사이사이에 넣어서 복호화측으로 전송하면 복호화측에서는 랜덤 엑세스나 고속재생이 가능하다.The I screen is a screen in which all block data of one screen is encoded in the intra mode. That is, the I screen is a variable length coded screen through NxN conversion and quantization for each block irrespective of the other screens before and after the image data in one screen. The I screen is a screen closer to the original image than a screen obtained by encoding difference values with other screens. The coding efficiency is lower than that of the screen encoding the difference value between the screens. However, if the screen is inserted between the screens and transmitted to the decoding side, the decoding side can perform random access or high speed playback.

P화면은 전방예측부호화화면이다. 즉, P화면은 움직임추정 및 움직임 보상을 하여 생성된 이전화면과의 차분값을 부호화한 화면데이타와 원래의 화면을 부호화한 화면데이타중 일정크기의 블록단위로 적절한 화면데이타를 선택하여 구성된 화면이다.The P screen is the forward predictive encoding screen. That is, the P screen is a screen configured by selecting appropriate screen data in unit of block size among screen data encoding difference value from previous screen generated by motion estimation and motion compensation and screen data encoding original screen. .

B화면은 양방향예측부호화 화면이다. 즉, B화면은 B화면 전후의 I,P화면 또는 그 보간화면에 대하여 움직임보상하여 생성된 화면들과의 차분값을 부호화한 화면데이타와 원래의 화면을 부호화한 화면데이타중 일정크기의 블록단위로 적절한 화면데이타를 선택하여 구성된 화면이다. B화면은 자체화면재생이외에 다른 화면재생에 전혀 사용되지 않으므로 복호화측에서 B화면의 데이타가 손실되더라도 I 또는 P화면의 데이타가 손실되는 경우보다 그 영향이 적다. 이러한 I,P,B화면은 소정의 순서대로 부호화되어 복호화측으로 전송된다. 일반적으로 부호화되는 화면의 순서와 복호화측으로 전송되는 화면의 순서는 다르다. 부호기에서 처음의 화멘데이타는 I화면으로 부호화된다. 그 다음의 화면데이타는 P화면으로 부호화된다. B화면은 I화면과 P화면의 화면데이타를 기초로 하여 부호화된다. 즉, 부호기에서의 부호화순서는 IPBBPBB...의 형태로 이루어진다. 하지만, 부호화된 화면데이타의 전송순서는 도시된 바와같이 IBBPBBP...의 형태로 이루어진다. 즉, 부호기에서 그 순서가 바꾸어진다.Screen B is a bidirectional predictive encoding screen. That is, the screen B is a block unit of a predetermined size of the screen data encoding the difference value between the I, P screen before and after the B screen or the screens generated by motion compensation for the interpolation screen and the screen data encoding the original screen. This screen is composed by selecting appropriate screen data. Since the B screen is not used for any other screen reproduction other than the own screen reproduction, even if the data of the B screen is lost on the decoding side, the effect is less than that of the I or P screen. These I, P, and B pictures are encoded in a predetermined order and transmitted to the decoding side. In general, the order of pictures to be encoded is different from the order of pictures to be transmitted to the decoding side. In the encoder, the first fragment data is encoded into an I picture. The next screen data is encoded into a P screen. The B picture is encoded based on the screen data of the I picture and the P picture. That is, the encoding order in the encoder is in the form of IPBBPBB ... However, the transmission order of the encoded picture data is in the form of IBBPBBP ... as shown. In other words, the order in the encoder is changed.

I,B,P등의 각 화면의 데이타는 부호기에서 비트스트림(Bit Stream)형태로 발생된다. 부호기에서 발생되는 비트스트림의 발생속도는 일정치 않다. 따라서 부호기에서 발생되는 비트스트림은 부호화측의 버퍼에 저장된 후 버퍼에 의해 일정속도로 복호화측으로 전송되게 된다.Data of each screen such as I, B, and P is generated in the form of a bit stream in the encoder. The rate of occurrence of the bitstream generated by the encoder is not constant. Therefore, the bitstream generated by the encoder is stored in the buffer of the encoding side and then transmitted to the decoding side by the buffer at a constant speed.

부호화측에서 전송되는 비트스트림은 복호화측의 버퍼에 일정속도로 저장된다. 복호화측의 버퍼에 저장된 비트스트림은 복호기에 의해 일정량씩 추출되어 복호과정을 거쳐 각각의 화면을 구성하게 된다. 이때, 부호기에서는 각 화면의 비트스트림 앞부분(헤더정보)에 해당화면 복호화시 복호화측의 버퍼에 저장되어 있어야할 데이타량에 대한 정보(가상버퍼데이타량)를 기록하게 되어 있다. 편집되지 않은 비트스트림에서는 일정시점에서 매화면마다 실제 버퍼에 채워져 있는 데이타량과 헤더정보에 의한 버퍼에 채워져 있어야 할 데이타량은 일치하게 되어 있다. 하지만, 여러개의 서로 다른 비트스트림을 사용하여 편집하는 경우 서로 다른 비트스트림이 접속되는 불연속부가 생기게 된다.The bitstream transmitted from the encoding side is stored at a constant speed in the buffer at the decoding side. The bitstreams stored in the buffer of the decoding side are extracted by a predetermined amount by the decoder to form respective screens through the decoding process. At this time, the encoder records information (virtual buffer data amount) of the data amount to be stored in the decoding side buffer at the time of decoding the corresponding picture in the front part (header information) of the bit stream of each screen. In an unedited bitstream, the amount of data that is filled in the actual buffer and the amount of data that should be filled in the buffer by the header information at each point of time coincide. However, when editing using several different bitstreams, there are discontinuities where different bitstreams are connected.

예를들어, a영상의 비트스트림과 b영상의 비트스트림을 사용하여 c영상의 비트스트림으로 편집하는 경우가 있다. 이경우, c영상 비트스트림은 일정부분까지는 a영상 비트스트림이 사용되고, 그 다음 일정부분까지는 b영상 비트스트림이 사용되고, 그 다음 일정부분까지는 다시 a영상 비트스트림이 사용되는 식으로 a,b영상 비트스트림이 교대로 사용될 수 있다. a영상 비트스트림과 b영상 비트스트림이 접속되는 부분은 비트스트림 불연속부가된다. 일정시점까지 a영상 비트스트림을 사용하여 화면을 구성하다가 갑자기 b영상 비트스트림을 사용하게 되면 복호화측의 버퍼에서는화면구성을 위하여 일정량의 a영상 비트스트림이 빠져나가야 할 부분에 그보다 많거나 작은 량의 b영상 비트스트림이 빠져나가게 된다. 따라서, 일정시점의 그 부분에서는 실제 버퍼에 채워져 있는 데이타량과 헤더정보에 의한 버퍼에 채워져 있어야 데이타량은 불일치하게 된다. 이렇게 되면 버퍼에서 오퍼플로우나 언더플로우가 발생될 가능성이 매우 높아지며, 실제로 그러한 경우가 많이 발생된다. 복호화측버퍼에서 오버플로우가 발생되는 경우 신규로 유입되는 비트스트림을 버리게 된다. 이때 B화면 데이타가 아닌 I화면이나 P화면데이타의 비트스트림을 부득이 버리는 경우가 발생된다. I화면이나 P화면데이타가 손실되게 되면 화질이 매우 떨어지게 된다.For example, there is a case where a bitstream of a picture and a bitstream of a picture of b are edited into a bitstream of a picture of c. In this case, the c picture bitstream is used as a video bitstream up to a certain portion, then the b picture bitstream is used up to a predetermined portion, and then the a video bitstream is used up to a predetermined portion. This can be used alternately. The portion where the a video bitstream and the b video bitstream are connected becomes a bitstream discontinuity. If a video bitstream is used to compose a screen until a certain point, and then suddenly b video bitstream is used, a larger amount or smaller amount of a video bitstream must be escaped in a buffer at the decoding side for the screen composition. b The image bit stream is exited. Therefore, at that point in time, the amount of data that is filled in the actual buffer does not match the amount of data that must be filled in the buffer by the header information. This increases the likelihood that an overflow or underflow will occur in the buffer, and in practice there are many cases. When overflow occurs in the decryption side buffer, the newly introduced bitstream is discarded. At this time, a bit stream of I picture or P picture data, which is not B picture data, is inevitable. If the I or P picture data is lost, the picture quality will be very poor.

본 발명의 목적은 편집된 영상데이타 복호시, 복호측의 버퍼에서 오버플로우가 발생할 가능성을 예측하여 B화면데이타를 선택적으로 제거함으로써 오버플로우를 방지하여 I화면이나 P화면의 데이타가 손실되는 것을 방지하여 화질의 열화를 줄일 수 있는 중요영상데이타의 손실방지장치를 제공하는데 있다.An object of the present invention is to predict the possibility of overflow in the buffer on the decoding side when decoding the edited video data, thereby selectively removing the B screen data, thereby preventing the overflow of data of the I screen or the P screen. It is to provide a loss prevention device of important video data that can reduce deterioration of image quality.

이와같은 본 발명의 목적은 부호화되어 전송되는 디지탈영상데이타를 복호화측버퍼에 저장한 후 복호화하는 장치에 있어서, 전송되는 영상데이타로부터 상기 버퍼에 저장되어 있어야 할 제 1영상데이타량의 정보(가상버퍼 데이타량)를 검출하고, 상기 제 1영상데이타량과 상기 버퍼에 실질적으로 저장되어 있는 제 2영상데이타량을 비교하여 그 오차값을 검출하는 수단, 상기 오차값 검출수단으로부터 상기 제 2영상데이타량이 상기 제 1영상데이타량보다 많아서 오차량이 검출될 때, 전송되는 영상데이타들중 화질에 가장 영향을 적게 미치며 상기 오차값과 유사한 데이타량의 영상데이타들을 선택하여 제거하는 수단, 및 상기 오차값 검출수단에 의해 검출된 오차값의 유무에 따라 상기 버퍼를 영상데이타의 입력단과 영상데이타 제거수단의 출력단중 어느 하나와 연결하기 위한 선택스위치부를 포함하는 것을 특징으로 하는 중요영상데이타의 손실방지장치에 의해 달성된다.As described above, an object of the present invention is to store digital video data encoded and transmitted in a decoding side buffer, and then to decode the information. The information of the first video data amount to be stored in the buffer from the transmitted video data (virtual buffer) Data amount), and means for comparing the first image data amount with the second image data amount substantially stored in the buffer to detect an error value thereof, and the second image data amount from the error value detection means. Means for selecting and removing image data having a data amount similar to the error value having the least influence on the image quality among the transmitted image data when the error amount is detected because the amount is greater than the first image data, and the error value detection According to the presence or absence of the error value detected by the means, the buffer is input to the image data and the output terminal of the image data removal means. Is accomplished by either a critical characterized in that it comprises a selection switch for connecting the image data loss protection.

이하, 첨부된 도면을 참조하여 본 발명의 일 실시예를 상세하게 설명한다.Hereinafter, with reference to the accompanying drawings will be described in detail an embodiment of the present invention.

제3도는 본 발명에 의한 중요영상데이타의 손실방지장치를 나타낸 블럭도이다. 도시된 바와 같이 부호화측으로부터 비트스트림형태의 영상데이타가 전송되어 오면 헤더정보검출부(30)는 비트스트림에 실려있는 복호화측 버퍼(20)에 저장되어 있어야 할 데이타량에 대한 정보를 검출하여 비교기(31)로 공급한다. 이때, 버퍼데이타량산출부(32)는 복호화측버퍼(20)에 채워져 있는 데이타량을 산출하여 비교기(31)로 공급한다. 그러면, 비교기(31)에서는 헤더정보검출부(30)에 의한 데이타량과 버퍼데이타량산출부(32)에 의한 데이타량의 오차값을 산출하여 제거유무결정부(33)로 공급한다. 또한, 비교기(31)에서는 오차값의 유무에 따라 스위치(SW)를 작동시킨다.3 is a block diagram showing an apparatus for preventing loss of important video data according to the present invention. As shown in the figure, when image data in a bitstream form is transmitted from the encoding side, the header information detector 30 detects information on the amount of data to be stored in the decoding side buffer 20 loaded in the bitstream and compares the comparator ( 31). At this time, the buffer data amount calculating unit 32 calculates the amount of data filled in the decoding side buffer 20 and supplies it to the comparator 31. Then, the comparator 31 calculates an error value between the amount of data by the header information detection unit 30 and the amount of data by the buffer data amount calculating unit 32 and supplies it to the removal determining unit 33. In addition, the comparator 31 operates the switch SW in accordance with the presence or absence of an error value.

한편, 부호화측에서 비트스트림형태의 영상데이타가 전송되어 오면 B화면검색부(34)는 B화면데이타를 검색하여 B화면데이타량산출부(35)로 공급한다. 그러면, B화면데이타량산출부(35)는 각각의 화면데이타중 B화면의 데이타량만을 산출하여 제거유무결정부(33)로 공급한다. 제거유무결정부(33)는 B화면데이타중 비교기(31)에서 공급되는 오차값의 절대값을 최소화할 수 있는 B화면데이타를 지정하여 B화면데이타량제거부(36)로 그 정보를 보낸다. B화면데이타량제거부(36)는 지정된 B화면데이타를 제거하고 나머지는 복호화측버퍼(20)쪽으로 보낸다.On the other hand, when the image data in the bitstream form is transmitted from the encoding side, the B screen search unit 34 searches for the B screen data and supplies it to the B screen data quantity calculation unit 35. Then, the B screen data amount calculation unit 35 calculates only the data amount of the B screen of each screen data and supplies it to the removal existence determining unit 33. The removal existence determination unit 33 designates B screen data that can minimize the absolute value of the error value supplied from the comparator 31 among the B screen data, and sends the information to the B screen data removal unit 36. The B screen data removal unit 36 removes the designated B screen data and sends the rest to the decoding side buffer 20.

제4도는 제3도 장치에 의한 복호화측버퍼상태를 설명하기 위한 설명도이다. 제4(a)도에는 시간축과 버퍼데이타량축을 갖는 직각좌표 평면에 서로 다른 비트스트림 a,b의 시간에 따른 변화량을 각각 도시하였다.4 is an explanatory diagram for explaining a decoding side buffer state by the apparatus of FIG. In FIG. 4 (a), changes in time of different bitstreams a and b are shown on a rectangular coordinate plane having a time axis and a buffer data amount axis.

일정기울기를 갖고 시간의 변화에 따라 데이타량이 증가하는 부분은 버퍼에 데이타가 유입되는 상태를 나타낸 것이다. 일정기울기를 갖는 것은 부호화측의 버퍼에서 데이타를 일정속도로 전송하기 때문이다. 일정시점 iT,(i+1)T,(i+2)T,...에서 버퍼의 데이타량이 수직으로 감소하는 부분은 화면을 구성하기 위한 데이타가 버퍼에서 동시에 빠져나가는 것을 가정하고 도시한 것이다. 즉, iT,(i+1)T,(i+2)T,...시점에서 동시에 빠져나가는 데이타량은 하나의 화면에 해당하는 데이타량이다. 예를 들어, (i+3)T시점에 버퍼에서 빠져나가는 데이타가 I화면의 데이타라면 (i+3)T시점에서 수직으로 감소하는 데이타량이 I화면의 데이타량이다.The portion where the amount of data increases with the change of time with a constant slope indicates the state where the data flows into the buffer. The reason for having a constant slope is that data is transmitted at a constant speed in the buffer on the encoding side. The vertical decrease in the amount of data in the buffer at a certain point in time iT, (i + 1) T, (i + 2) T, ... is assuming that the data to compose the screen is simultaneously drawn out of the buffer. . That is, the amount of data simultaneously exiting from iT, (i + 1) T, (i + 2) T, ... is the amount of data corresponding to one screen. For example, if the data exiting the buffer at (i + 3) T is the data of the I screen, the amount of data that decreases vertically at the (i + 3) T time is the data amount of the I screen.

제4(b)도는 버퍼에서 빠져나가는 데이타량을 각각 표시한 것이다. 도시된 바와같이 굵은 선으로 표시한 것이 제4(a)도의 a비트스트림에 대한 것이고, 가는 선으로 표시한 것이 제4(a)도의 b비트스트림에 대한 것이다. 일정시점 iT,(i+1)T,(i+2)T,...에서 버퍼에서 빠져나가는 a,b비트스트림의 데이타량은 서로 다르다. 예를 들어 (i+3)T시점에서 버퍼에서 빠져나가는 a,b비트스트림의 데이타량의 차이는 q이다.FIG. 4 (b) shows the amount of data exiting the buffer, respectively. As shown in bold, the bold line is for the a bit stream in FIG. 4 (a) and the thin line is for the b bit stream in FIG. 4 (a). The data amounts of the a and b bit streams exiting the buffer at different time points iT, (i + 1) T, (i + 2) T, ... are different. For example, the difference in the amount of data in the a and b bit streams exiting the buffer at (i + 3) T is q.

제4(c)도는 a,b비트스트림으로 편집된 c비트스트림의 버퍼에서의 시간에 따른 변화량을 도시한 것이다. 즉, (i+2)T시점까지는 a비트스트림을 사용하고, 그 이후에는 b비트스트림을 사용한 c비트스트림에 대한 것을 나타낸 것이다.FIG. 4 (c) shows the amount of change with time in the buffer of the c bit stream edited into the a and b bit streams. That is, it shows that a bitstream is used until the (i + 2) T time point, and after that, the cbitstream using the bbitstream.

도시된 바와같이 (i+2)T까지는 실선으로 표시되어 있고, 그 이후에는 점선과 실선으로 각각 나타나 있다. 여기서, 점선으로 표시된 부분은 본 발명에 의하지 않은 일반적인 경우를 나타낸 것이고, 실선으로 표시된 부분은 본 발명에 의한 경우를 나타낸 것이다. iT,(i+1)T,(i+2)T시점에 버퍼에서 빠져나가는 데이타량은 제4(b)도의 iT,(i+1)T,(i+2)T시점에 버퍼에서 빠져나가는 a비트스트림의 데이타량과 각각 동일하다. (i+3)T시점 이후의 점선으로 표시한 부분의 경우, (i+3)T,(i+4)T,(i+5)T시점에 버퍼에서 빠져나가는 데이타량은 제4(b)도의 해당시점에 버퍼에서 빠져나가는 b비트스트림의 량과 각각 동일하다. 즉 (i+3)T시점에서는 제4(b)도의 a비트스트림량만큼 버퍼에서 빠져나가야 될 부분에 제4(b)도의 b비트스트림량만큼만 빠져나가게 된다. 따라서(i+3)T시점에서는 제4(b)도의 q만큼의 데이타가 더 남게 되고 그 이후의 일정시점에서 부호화측에 전송되어오는 화면단위의 비트스트림 앞쪽에 기록되어 있는 정보에 의한 버퍼에 채워져 있어야 할 데이타량과 실제의 버퍼에 채워져 있는 데이타량은 제4(b)도의 q만큼 불일치하게 된다. 이에 따라 버퍼에서 오버플로우가 발생될 가능성이 높아지고, 오버플로우가 발생되면 그 이후 버퍼로 유입되는 비트스트림은 I,P,B화면 구분없이 화면단위로 버리게 된다. 이때, (i+3)T시점에서 버퍼에 채워져 있는 데이타량과 (i+3)T시점직후에 버퍼에 유입될 비트스트림의 앞쪽에 기록되어 있는 버퍼에 채워져 있어야 할 데이타량의 오차값(q)을 검출하고, 이후에 버퍼에 유입될 비트스트림중 오차값(q)과 가장 유사한 양을 갖는 B화면데이타를 선택하여 미리 제거하면 실선으로 표시한 것과 같이 되고 오버플로우는 발생되지 않는다. (i+3)T와 (i+4)T사이의 수직으로 감소하는 부분만큼이 제거되는 B화면데이타량이고, 오차값(q)과 유사한 값을 갖는다.As shown, up to (i + 2) T is indicated by a solid line, followed by dashed lines and solid lines, respectively. Here, the part indicated by a dotted line represents a general case not according to the present invention, and the part indicated by a solid line represents the case according to the present invention. The amount of data exiting the buffer at time iT, (i + 1) T, (i + 2) T is out of the buffer at time iT, (i + 1) T, (i + 2) T in FIG. 4 (b). It is equal to the data amount of the outgoing a bitstream. In the case of the portion indicated by the dotted line after the (i + 3) T time, the amount of data to be removed from the buffer at the (i + 3) T, (i + 4) T and (i + 5) T time is the fourth (b). This is equal to the amount of b-bit streams exiting the buffer at that time. That is, at the point (i + 3) T, only the amount of b-bit streams of FIG. 4 (b) exits from the portion to be escaped from the buffer by the amount of a-bit streams of FIG. 4 (b). Therefore, at time point (i + 3) T, as much data as q in FIG. 4 (b) remains, and at a later point in time, the data is stored in the buffer by the information recorded in front of the bitstream of the screen unit transmitted to the encoding side. The amount of data to be filled and the amount of data filled in the actual buffer are inconsistent by q in FIG. 4 (b). As a result, the possibility of overflow in the buffer increases, and when an overflow occurs, the bitstream flowing into the buffer thereafter is discarded in units of screens without distinguishing between I, P, and B screens. At this time, the error value (q) of the amount of data to be filled in the buffer at (i + 3) T and the amount of data to be filled in the buffer recorded in front of the bitstream to be introduced into the buffer immediately after (i + 3) T ), And after selecting and removing the B picture data having the amount most similar to the error value q among the bit streams to be introduced into the buffer in advance, it is as indicated by the solid line and no overflow occurs. The amount of B picture data to be removed by the vertically decreasing portion between (i + 3) T and (i + 4) T, and has a value similar to the error value q.

편집되는 부분이 많더라도 위의 과정을 되풀이함으로써 버퍼에서 오버플로우가 발생되는 것을 방지할 수 있다. 따라서, I나 P화면의 데이타가 손실되는 것을 방지할 수 있고 편집으로 인한 화질의 열화를 줄일 수 있다.Even if there is a lot of editing, you can prevent the overflow from happening in the buffer by repeating the above process. Therefore, it is possible to prevent the loss of the data of the I or P screen and to reduce the deterioration of image quality due to editing.

Claims (5)

부호화되어 전송되는 디지탈영상데이타를 복호화측버퍼에 저장한 후 복호화하는 장치에 있어서, 전송되는 영상데이타로부터 상기 버퍼에 저장되어 있어야 할 제 1영상데이타량의 정보(가상버퍼데이타량)를 검출하고, 상기 제 1영상데이타량과 상기 버퍼에 실질적으로 저장되어 있는 제 2영상데이타량을 비교하여 그 오차값을 검출하는 수단; 상기 오차값 검출수단으로부터 상기 제 2영상데이타량이 상기 제 1영상데이타량보다 많아서 오차량이 검출될 때, 전송되는 영상데이타들중 화질에 가장 적게 영향을 미치며 상기 오차값과 유사한 데이타량의 영상데이타를 선택하여 제거하는 수단; 및 상기 오차값 검출수단에 의해 검출된 오차값의 유무에 따라 상기 버퍼를 영상데이타의 입력단과 영상데이타제거수단의 출력단중 어느 하나와 연결하기 위한 선택스위치부를 포함하는 것을 특징으로 하는 중요영상데이타의 손실방지장치.A device for decoding and storing digital image data encoded and transmitted in a decoding side buffer, comprising: detecting information (virtual buffer data amount) of a first image data amount to be stored in the buffer from the transmitted image data, Means for comparing the first image data amount with the second image data amount substantially stored in the buffer and detecting an error value thereof; When the error amount is detected because the second image data amount is larger than the first image data amount from the error value detecting means, the image data having the smallest influence on the image quality among the transmitted image data and similar to the error value is detected. Means for selecting and removing; And a selection switch unit for connecting the buffer to one of an input terminal of the image data and an output terminal of the image data removing unit according to the presence or absence of the error value detected by the error value detecting unit. Loss prevention device. 제1항에 있어서, 상기 오차값을 검출하는 수단은 상기 제 1영상데이타량에 대한 정보를 검출하는 정보검출부와, 상기 버퍼에 저장되어 있는 제 2영상데이타량을 산출하는 버퍼데이타량산출부, 및 상기 제 1영상데이타량과 제 2영상데이타량을 비교하여 상기 오차값을 검출하는 비교기를 구비하는 것을 특징으로 하는 중요영상데이타의 손실방지장치.2. The apparatus of claim 1, wherein the means for detecting the error value comprises: an information detector for detecting information on the first image data amount, a buffer data amount calculation portion for calculating a second image data amount stored in the buffer; And a comparator for comparing the first image data amount and the second image data amount to detect the error value. 제1항에 있어서, 상기 영상데이타제거수단은 화질에 가장 적게 영향을 미치는 영상데이타군들의 데이타량을 산출하는 영상데이타량산출부와, 상기 영상데이타량산출부에서 산출된 상기 영상데이타군들의 데이타량과 상기 검출수단에 의해 검출된 상기 오차값을 비교하여 제거해야할 영상데이타군을 결정하여 주는 제거유무결정부, 및 상기 제거유무결정부에서 결정된 영상데이타군을 제거하는 영상데이타제거부를 구비하는 것을 특징으로 하는 중요영상데이타의 손실방지장치.2. The image data removing unit of claim 1, wherein the image data removing unit comprises: an image data amount calculating unit for calculating a data amount of image data groups having the least effect on image quality, and the data of the image data groups calculated by the image data amount calculating unit. And a removal / determination unit for determining an image data group to be removed by comparing the amount and the error value detected by the detection means, and an image data removal unit for removing the image data group determined by the removal / non-determination unit. Loss prevention device of important image data characterized by. 제1항에 있어서, 제거되기 위한 영상데이타군은 양방향예측부호화 화면데이타인 것을 특징으로 하는 중요영상데이타의 손실방지장치.The apparatus of claim 1, wherein the image data group to be removed is bidirectional predictive encoding screen data. 제1항에 있어서, 상기 제거수단에 의해 제거되는 영상데이타군은 화면단위의 영상데이타인 것을 특징으로 하는 중요영상데이타의 손실방지장치.The apparatus of claim 1, wherein the image data group removed by the removing means is image data in units of screens.
KR1019940002920A 1994-02-18 1994-02-18 Apparatus for loss-prevention of important image data KR0148146B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019940002920A KR0148146B1 (en) 1994-02-18 1994-02-18 Apparatus for loss-prevention of important image data

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019940002920A KR0148146B1 (en) 1994-02-18 1994-02-18 Apparatus for loss-prevention of important image data

Publications (2)

Publication Number Publication Date
KR950026268A KR950026268A (en) 1995-09-18
KR0148146B1 true KR0148146B1 (en) 1998-09-15

Family

ID=19377395

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019940002920A KR0148146B1 (en) 1994-02-18 1994-02-18 Apparatus for loss-prevention of important image data

Country Status (1)

Country Link
KR (1) KR0148146B1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6061399A (en) * 1997-05-28 2000-05-09 Sarnoff Corporation Method and apparatus for information stream frame synchronization

Also Published As

Publication number Publication date
KR950026268A (en) 1995-09-18

Similar Documents

Publication Publication Date Title
US7313184B2 (en) Video data compression apparatus and method of same
US20050002458A1 (en) Spatial scalable compression
EP1010330B1 (en) Transcoding
US6393059B1 (en) Conversion of video data bit stream
JP3856262B2 (en) Motion compensation encoding apparatus, motion compensation encoding method, and motion compensation code recording medium
US20060133475A1 (en) Video coding
US20030067984A1 (en) Apparatus and method of coding/decoding moving picture and storage medium for storing coded moving picture data
US5103307A (en) Interframe predictive coding/decoding system for varying interval between independent frames
KR100415494B1 (en) Image encoding method and apparatus, recording apparatus, video signal encoding apparatus, processing apparatus and method, video data processing apparatus and method
US6795498B1 (en) Decoding apparatus, decoding method, encoding apparatus, encoding method, image processing system, and image processing method
JP2000059790A (en) Dynamic image code string converter and method therefor
JPH08111870A (en) Method and device for re-coding image information
KR0162203B1 (en) Adaptive encoding method and device using quantization step size
KR100202538B1 (en) Mpeg video codec
US20070025438A1 (en) Elastic storage
KR0148146B1 (en) Apparatus for loss-prevention of important image data
JPH11243548A (en) Method and device for encoding and decoding image sequence
KR0172902B1 (en) Mpeg encoder
JPH0951538A (en) Encoding method for image signal
KR0128858B1 (en) Apparatus for deciding frame type
KR100317355B1 (en) System for encoding motion picture video signals
JPH06319124A (en) Picture data converter and its inverter
KR0123083B1 (en) Packet data structure for packet full image encoder and decoder
KR100237307B1 (en) Dual speed decoding apparatus
KR0123092B1 (en) Method and apparatus for coding a code indicating picture starting location

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
FPAY Annual fee payment

Payment date: 20110428

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee