KR19990009352A - Compression coding apparatus and method - Google Patents

Compression coding apparatus and method Download PDF

Info

Publication number
KR19990009352A
KR19990009352A KR1019970031725A KR19970031725A KR19990009352A KR 19990009352 A KR19990009352 A KR 19990009352A KR 1019970031725 A KR1019970031725 A KR 1019970031725A KR 19970031725 A KR19970031725 A KR 19970031725A KR 19990009352 A KR19990009352 A KR 19990009352A
Authority
KR
South Korea
Prior art keywords
step size
quantization step
quantization
dct
dct block
Prior art date
Application number
KR1019970031725A
Other languages
Korean (ko)
Other versions
KR100269113B1 (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 KR1019970031725A priority Critical patent/KR100269113B1/en
Publication of KR19990009352A publication Critical patent/KR19990009352A/en
Application granted granted Critical
Publication of KR100269113B1 publication Critical patent/KR100269113B1/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/50Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding
    • H04N19/503Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using predictive coding involving temporal prediction
    • H04N19/51Motion estimation or motion compensation
    • 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

Abstract

본 발명은 인트라(Intra) 부호화에 있어서 양자화 스텝사이즈 설정 장치 및 방법에 관한 것이다. 본 발명의 목적을 위하여 입력 영상 데이터의 복잡도에 따라 슬라이스 단위로 제1양자화스텝사이즈를 생성하는 제1과정, 입력 영상 데이터를 DCT하여 양자화된 영상 데이터 DCT 블록을 영상 특성에 따라 복수개의 영역별로 구분하는 제2과정, 상기 제2과정에서 각 영역별 DCT 개수에 따라 상기 제1과정의 제1양자화스텝사이즈를 가감한 제2양자화스텝사이즈로 양자화를 수행하는 제3과정을 포함한다. 본 발명에 의하면, 피드백 루프(Feedback Loop)가 존재하지 않음으로 버퍼제어가 필요하지 않으며, 인트라 프레임 코딩을 함으로서 인터 프레임을 위한 장치가 필요하지 않아 하드웨어 사이즈를 감소시키며 인트라 프레임 코딩에 의한 프레임 단위의 편집이 용이한 이점이 있다.The present invention relates to an apparatus and method for setting a quantization step size in intra coding. For the purposes of the present invention, a first process of generating a first quantization step size in units of slices according to the complexity of input image data, and DCT the input image data to classify the quantized image data DCT block into a plurality of regions according to image characteristics. And a third process of performing quantization at a second quantization step size obtained by subtracting the first quantization step size of the first process according to the number of DCTs in each region in the second process. According to the present invention, since there is no feedback loop, no buffer control is required, and since intra frame coding does not require an apparatus for inter frame, hardware size is reduced and intra frame coding is performed. There is an advantage that it is easy to edit.

Description

압축 부호화 장치 및 방법Compression coding apparatus and method

본 발명은 압축 부호화 장치 및 방법에 관한 것으로서, 특히 MPEG-2의 인트라(Intra) 부호화에 있어서 양자화 스텝사이즈 설정 장치 및 방법에 관한 것이다. 일반적으로 MPEG-2는 비트율 4 - 10 Mbits/sec의 데이터량으로서 NTSC, PAL, SECAM등의 기존 방송 화질 또는 CCIR601의 디지털 텔레비젼 화질을 기본 목표로하고 있다.The present invention relates to a compression encoding apparatus and method, and more particularly, to an apparatus and method for setting a quantization step size in intra encoding of MPEG-2. In general, MPEG-2 has a data rate of 4-10 Mbits / sec, and aims at existing broadcast picture quality of NTSC, PAL, SECAM, or digital TV picture quality of CCIR601.

도 1은 일반적인 MPEG-2의 압축 부호화 장치의 블록도이며, 입력되는 영상 신호를 필터링하는 전처리기(112), 영상간 예측을 위한 이동 추정기(ME)(114), 프레임 단위로 저장하는 프레임 메모리(124), 추정된 움직임 벡터를 이용해 움직임을 보상하는 움직임 보상기(MC)(126), 공간 중보성을 얻기 위해 8 × 8 블록에 대해 DCT(Discrete Cosine Transform) 변환하는 DCT기(116), 공간 중복성을 제거하는 양자화기(Q)(118), 역양자화하는 역양자화기(120), 역 DCT하는 IDCT(122), 통계적 중복성을 제거하기 위한 VLC(Variable Length Coding)(128), 전송률 조정을 위한 순방향 분석기(132), 데이터를 전송하기 위한 버퍼(130)로 구성된다.1 is a block diagram of a typical MPEG-2 compression encoding apparatus, a preprocessor 112 for filtering an input video signal, a motion estimator (ME) 114 for inter-image prediction, and a frame memory stored in units of frames 124, a motion compensator (MC) 126 that compensates for motion using the estimated motion vector, a DCT device 116 that transforms a DCT (Discrete Cosine Transform) for 8 × 8 blocks to obtain spatial interpolation, space Quantizer (Q) 118 to remove redundancy, inverse quantizer 120 to dequantize, IDCT 122 to inverse DCT, variable length coding (VLC) 128 to remove statistical redundancy, rate adjustment Forward analyzer 132, a buffer for transmitting data 130 is configured.

도 1에 도시된 바와 같이 MPEG-2의 압축 부호화는 인트라(Intra), 인터(Inter) 프레임 코딩을 채택하고 있다. 인트라 프레임 코딩은 예측 부호화를 행하지 않고 DCT기(116)에서 DCT를 행한 후 양자화기(118), VLC기(128)를 통해 부호화된다. 인터 프레임 코딩은 예측 부호화를 행하며, P(Predictive) 프레임 코딩과 B(Bidirectional) 코딩을 포함하고 있다. 예측 부호화는 이동 추정기(ME)(114), 프레임 메모리(124), 움직임 보상기(MC)(126)를 통해 화상간의 움직임을 검출하여 움직임 벡터를 부호화한다. 따라서 P 프레임은 I 프레임을 기본으로 움직임 벡터를 검출하고, B 프레임은 P 프레임 및 I 프레임을 기본으로 움직임 벡터를 검출한다. 또한 버퍼(130)에서 발생하는 데이터량은 입력되는 영상의 특성에 따라 프레임간 및 프레임내의 매크로 블록별로 불규칙하게 발생한다. 이와 같이 불규칙하게 발생되는 데이터를 고화질을 유지하며 일정한 전송 속도를 갖는 전송로를 통해서 전송하기 위해서는 순방향 분석기(132)에서 전송률 조정이 필요하며, 피드백 루프를 구성하여 양자화 스케일 벡터인 MQUANT(Modified quantizer) 값을 조정한다. 이 MQUANT는 화질을 결정하는 중요한 요소중의 하나인 양자화 스텝 사이즈이다. MPEG-2에서는 양자화 스텝 사이즈를 결정하기 위해 다음의 3단계를 거친다. 제1단계는 글로벌 복잡도(Activity) 측정에 의하여 전체 복잡도를 구하게 되고 각각의 I,B,P 픽쳐에 대하여 이전에 발생한 비트량과 현재의 목표 비트율, 및 1개의 GOP(Group Of Picture)내에 남아있는 각각의 픽쳐수에 대하여 비트할당이 이루어진다. 제2단계는 현재 버퍼(130)의 내용(Fullness)에 따라서 매크로 블록 단위의 기준 MQUANT값이 결정된다. 제3단계는 현재 매크로 블록의 복잡도가 계산되고 정규화되어 기준 MQUANT값과 곱해져 실제 매크로 블록에 적용되는 MQUANT값을 계산하여 양자화에 적용된다. 이와 같이 MPEG-2의 부호화 과정은 인터 프레임 코딩을 수행하고, I,B,P 픽쳐의 발생 비트로 인한 피드백 루프 때문에 프레임 단위의 편집이 불가능하고 하드웨어도 복잡해지는 단점이 있다.As shown in FIG. 1, compression coding of MPEG-2 employs intra frame and inter frame coding. Intra-frame coding is performed through the quantizer 118 and the VLC machine 128 after performing DCT in the DCT apparatus 116 without performing predictive encoding. Inter-frame coding performs predictive coding and includes P (Predictive) frame coding and Bidirectional (B) coding. The predictive encoding encodes a motion vector by detecting a motion between images through a motion estimator (ME) 114, a frame memory 124, and a motion compensator (MC) 126. Therefore, the P frame detects a motion vector based on the I frame, and the B frame detects a motion vector based on the P frame and the I frame. In addition, the amount of data generated in the buffer 130 is irregularly generated between frames and macroblocks within the frame according to the characteristics of the input image. In order to transmit the irregularly generated data through a transmission line having a constant transmission speed while maintaining high quality, a rate adjustment is required in the forward analyzer 132, and a feedback loop is formed to form a quantized scale vector, MQUANT (Modified quantizer). Adjust the value. This MQUANT is a quantization step size, which is one of the important factors for determining image quality. In MPEG-2, three steps are used to determine the quantization step size. In the first step, the overall complexity is obtained by measuring the global complexity, and the bit rate previously generated for each I, B, and P picture, the current target bit rate, and remaining in one group of picture (GOP) are obtained. Bit allocation is made for each picture number. In the second step, a reference MQUANT value in macroblock units is determined according to the fullness of the current buffer 130. In the third step, the complexity of the current macroblock is calculated, normalized, multiplied by a reference MQUANT value, and applied to quantization by calculating an MQUANT value applied to the actual macroblock. As described above, the encoding process of MPEG-2 performs inter-frame coding, and it is impossible to edit frame by frame due to a feedback loop due to generated bits of I, B, and P pictures, and hardware has a disadvantage.

본 발명이 이루고자하는 기술적과제는 인트라 프레임 부호화 장치로서 슬라이스 단위의 복잡도에 의해 제1MQUANT를 구하고, 제1MQUANT와 DCT계수에 대해 복수개의 영역으로 나누어 구해진 제2MQUANT를 이용하여 최종 양자화스텝사이즈를 결정하는 장치를 제공하는 데있다.The technical problem to be achieved by the present invention is an intra frame encoding apparatus that obtains a first MQUANT according to the complexity of a slice unit and determines a final quantization step size by using a second MQUANT obtained by dividing the first MQUANT and the DCT coefficient into a plurality of regions. To provide it.

본 발명이 이루고자하는 다른 기술적과제는 인트라 프레임 부호화 방법으로서 슬라이스 단위의 복잡도에 의해 제1MQUANT를 구하고, 제1MQUANT와 DCT계수에 대해 복수개의 영역으로 나누어 구해진 제2MQUANT를 이용하여 최종 양자화스텝사이즈를 결정하는 방법을 제공하는 데있다.Another technical problem to be solved by the present invention is an intra frame encoding method, in which a first MQUANT is obtained by the complexity of a slice unit, and a final quantization step size is determined using a second MQUANT obtained by dividing the first MQUANT and a DCT coefficient into a plurality of regions. Is to provide a way.

도 1은 일반적인 MPEG-2의 압축 부호화 장치의 블록도이다.1 is a block diagram of a general compression encoding apparatus of MPEG-2.

도 2는 본 발명에 따른 압축 부호화 장치를 보이는 블록도이다.2 is a block diagram showing a compression encoding apparatus according to the present invention.

도 3은 통상적인 한 개의 매크로블럭(Macro Block)에 대한 4:2:0 영상 포맷도이다.FIG. 3 is a 4: 2: 0 picture format diagram for a conventional macroblock.

도 4는 통상적인 한 프레임의 슬라이스(Slice) 포맷도이다.4 is a typical slice format diagram of one frame.

도 5a는 로우(Low) DCT 블록 계수 포맷도이다.5A is a low DCT block coefficient format diagram.

도 5b는 수평(Horizontal) 에지(Edge) DCT 블록 계수 포맷도이다.5B is a horizontal edge DCT block coefficient format diagram.

도 5c는 수직(Vertical) 에지(Edge) DCT 블록 계수 포맷도이다.5C is a vertical edge DCT block coefficient format diagram.

도 5d는 대각(Diagonal) 에지(Edge) DCT 블록 계수 포맷도이다.5D is a Diagonal Edge DCT block coefficient format diagram.

도 5e는 하이(High) DCT 블록 계수 포맷도이다.5E is a high DCT block coefficient format diagram.

도 6은 본 발명에 따른 압축 부호화 방법의 흐름도이다.6 is a flowchart of a compression encoding method according to the present invention.

상기의 기술적 과제를 해결하기 위하여 본 발명은 MPEG-2의 압축 부호화 장치에 있어서, 입력되는 영상 데이터의 슬라이스 단위에 대한 복잡도로 산출되는 제1양자화스텝사이즈에 의해 양자화하는 제1양자화 수단; 상기 복잡도에 따라 매크로 블록 단위로 목표 비트를 계산하는 목표비트계산수단; 상기 제1양자화수단에 의해 양자화된 영상 데이터 DCT 블록을 특성에 따라 복수개의 영역별로 구분하는 DCT블록상태결정수단; 상기 DCT 블록 결정수단에서 결정된 DCT 블록의 영역에 따른 양자화스텝사이즈를 구하는 제2양자화스텝사이즈발생수단; 상기 제2양자화스텝사이즈발생수단의 양자화스텝사이즈에 따라 상기 이산 여현 변환된 영상 데이터를 양자화하는 제2양자화수단을 포함하는 것을 특징으로 하는 압축 부호화 장치이다.In order to solve the above technical problem, the present invention provides an MPEG-2 compression encoding apparatus comprising: first quantization means for quantizing by a first quantization step size calculated with a complexity of a slice unit of input video data; Target bit calculating means for calculating a target bit in units of macro blocks according to the complexity; DCT block state determination means for classifying the image data DCT block quantized by the first quantization means into a plurality of regions according to characteristics; Second quantization step size generation means for obtaining a quantization step size according to the area of the DCT block determined by the DCT block determination means; And second quantization means for quantizing the discrete cosine-converted image data according to the quantization step size of the second quantization step size generating means.

상기의 다른 기술적 과제를 해결하기 위하여 본 발명은 압축 부호화 방법에 있어서, 입력 영상 데이터의 복잡도에 따라 슬라이스 단위로 제1양자화스텝사이즈를 생성하는 제1과정; 입력 영상 데이터를 DCT하여 양자화된 영상 데이터 DCT 블록을 영상 특성에 따라 복수개의 영역별로 구분하는 제2과정; 상기 제2과정에서 각 영역별 DCT 개수에 따라 상기 제1과정의 제1양자화스텝사이즈를 가감한 제2양자화스텝사이즈로 양자화를 수행하는 제3과정을 포함하는 것을 특징으로 하는 압축 부호화 방법이다.In accordance with another aspect of the present invention, there is provided a compression encoding method, comprising: a first process of generating a first quantization step size in units of slices according to a complexity of input image data; Dividing the quantized image data DCT block into a plurality of regions according to image characteristics by DCT the input image data; And a third process of performing quantization according to the number of DCTs of each region in the second process by a second quantization step size obtained by subtracting the first quantization step size of the first process.

이하에서 첨부된 도면을 참조하여 본 발명의 바람직한 실시예를 상세히 설명한다.Hereinafter, exemplary embodiments of the present invention will be described in detail with reference to the accompanying drawings.

도 2는 본 발명에 따른 압축 부호화 장치를 보이는 블록도이며, 전처리기(210), 복잡도 계산기(212), DCT기(214), 제1MQUANT 발생기(215), 제1양자화기(216), DCT 블록상태결정기(218), 목표 비트 계산기(220), 제2양자화기(222), 제2MQUANT 발생기(224), VLC(226), 가산기(227), 뺄셈기(228), MQUANT 가감기(230)로 구성된다.2 is a block diagram illustrating a compression encoding apparatus according to the present invention, and includes a preprocessor 210, a complexity calculator 212, a DCT generator 214, a first MQUANT generator 215, a first quantizer 216, and a DCT. Block state determiner 218, target bit calculator 220, second quantizer 222, second MQUANT generator 224, VLC 226, adder 227, subtractor 228, MQUANT adder 230 It is composed of

도 3은 통상적인 한 개의 매크로블럭(Macro Block)에 대한 4:2:0 영상 포맷도이며, 4개의 휘도 성분(Y1,Y2,Y3,Y4)과 2개의 색차 성분(Cb,Cr)으로 구성된다.3 is a 4: 2: 0 image format diagram of a conventional macro block, and is composed of four luminance components (Y1, Y2, Y3, and Y4) and two color difference components (Cb and Cr). do.

도 4는 통상적인 한 프레임의 슬라이스(Slice) 포맷도이다.4 is a typical slice format diagram of one frame.

도 5a는 로우(Low) DCT 블록 계수 포맷도이며, 도 5b는 수평(Horizontal) 엣지(Edge) DCT 블록 계수 포맷도이며, 도 5c는 수직(Vertical) 엣지(Edge) DCT 블록 계수 포맷도이며, 도 5d는 대각(Diagonal) 엣지(Edge) DCT 블록 계수 포맷도이며, 도 5e는 하이(High) DCT 블록 계수 포맷도이다.5A is a low DCT block coefficient format diagram, FIG. 5B is a horizontal edge DCT block coefficient format diagram, FIG. 5C is a vertical edge DCT block coefficient format diagram, FIG. 5D is a diagram of a diagonal edge DCT block coefficient format, and FIG. 5E is a diagram of a high DCT block coefficient format.

도 2에 도시된 바와 같이 먼저, 전처리기(210)는 도 4에 도시된 아날로그-디지탈 변환된 4:2:0의 영상 데이터에 대하여 휘도 신호(Y1,Y2,Y3,Y4)를 대역 제한하기 위하여 로우패스필터링한다. 이때의 로우패스필터링은 원하는 비트 레이트(bit rate)에 고정장 부호화를 할 때 미리 대역 제한을 하기 위하여 사용된다. 복잡도(Activity) 계산부(212)는 전처리기(210)로부터 입력되는 한 프레임의 영상 데이터를 매크로 블록 단위로 복잡도를 계산한다. 이때의 복잡도는 공간 영역상의 데이터에 대한 1 DCT 블록의 데이터에 대한 평균값을 구하여 (픽셀-평균값)2로 구해진다. 제1MQUANT 발생부(215)는 복잡도 계산기(212)에서 계산된 복잡도에 의해 도 4에 도시된 슬라이스 단위로 적용될 초기 양자화 스텝사이즈인 제1MQUANT를 발생한다. 제1MQUANT 발생부(215)의 제1MQUANT는 슬라이스 단위의 복잡도로 구해지며 제1양자화기(216)에서 각각의 매크로 블록 단위로 양자화할시 동일한 1슬라이스내에 양자화 스텝사이즈로서 적용된다. 즉, 제1MQUANT는 슬라이스 개수 × (slice mean_act / mean_act) + α이며, mean_act는 한 프레임에 대한 전체 복잡도이며, slice mean_act는 한 슬라이스에 대한 슬라이스 복잡도이며, α는 제1MQUANT값의 최적값을 위한 실험치로서 α=2.5이다. 다음 DCT기(214)는 MPEG-2의 TM5의 수식을 적용하며, 전처리기(210)로부터 프리필터링되고 난후의 영상 데이터를 이산 여현 변환한다. 즉 DCT는 공간 영역의 영상 데이터를 주파수 영역으로 변환하고 TM5에서 제안하고 있는 지그재그(zig-zag) 방법을 사용한다. 제1양자화기(216)는 DCT기(214)로부터 DCT된 영상 데이터를 제1MQUANT 발생부(215)에서 구해진 초기 MQUANT에 따라 양자화를 수행한다. 이때의 양자화기도 TM5에서 제안하고 있으며 전체 영상 데이터에 대하여 동일한 MQUANT에 의해 양자화를 수행한다. DCT 블록 상태 결정부(218)는 제1양자화기(216)로부터 출력되는 매크로 블록 단위에 대한 각각의 DCT 블록에 대하여 로우(Low), 에지(Edge), 하이(High)의 특성을 결정하게 된다. 즉, 단순한 영역, 복잡한 영역, 에지가 있는 영역으로 구분하여 각각에 대해 MQUANT에 가중치를 부여함으로서 시각적으로 화질이 개선되도록하였다. 도 5a는 로우 DCT 블록을 판정할 때 사용되는 DCT 계수의 개수를 나타내고 있다. 이때의 DCT 계수는 지그-재그순으로 1,2,3,4,5,6,7,8,9(빗금친 분분)의 계수에 대하여 합산하게 된다. 도 5b는 수직 에지 DCT 블록을 판정할 때 사용되는 DCT 계수의 개수를 나타내고 있다. 이때의 DCT 계수는 지그-재그순으로 1,2,4,5,6,7,14,15,27(빗금친 분분)의 계수에 대하여 합산하게 된다. 도 5c는 수평 에지 DCT 블록을 판정할 때 사용되는 DCT 계수의 개수를 나타내고 있다. 이때의 DCT 계수는 지그-재그순으로 1,2,3,4,8,9,10,20,21(빗금친 분분)의 계수에 대하여 합산하게 된다. 도 5d는 대각선 에지 DCT 블록을 판정할 때 사용되는 DCT 계수의 개수를 나타내고 있다. 이때의 DCT 계수는 지그-재그순으로 1,2,4,12,24,39,51,58,63(빗금친 분분)의 계수에 대하여 합산하게 된다. 도 5e는 하이 DCT 블록을 판정할 때 사용되는 DCT 계수의 개수를 나타내고 있다. 이때의 DCT 계수는 지그-재그순으로 분분)의 계수에 대하여 합산하게 된다. DCT블럭 결정기(218)는 각각의 DCT 계수로 구한 계수의 합에 대하여 로우, 에지,하이의 DCT 블록으로 나타내게 된다. 이때는 로우 계수의 합산과 3개의 에지(수평 수직,대각선) 계수의 합산과 하이 계수의 합산에 2로 나눈값과를 비교하여 가장 큰 값을 갖는 경우에 대해 그 DCT블럭의 특성을 결정짖는다. 도 3에 도시된 바와 같이 한 개의 매크로블럭은 4개의 휘도(Y1,Y2,Y3,Y4) DCT 블록으로 구성되어 있으므로 4개의 휘도 DCT 블록에 대해 구한다.As shown in FIG. 2, first, the preprocessor 210 band-limits the luminance signals Y1, Y2, Y3, and Y4 for the analog-digital converted 4: 2: 0 image data shown in FIG. Low pass filtering In this case, low pass filtering is used for band limitation in advance when fixed-length encoding is performed at a desired bit rate. The complexity calculator 212 calculates the complexity of the image data of one frame input from the preprocessor 210 in macroblock units. The complexity at this time is calculated as (pixel-average value) 2 by obtaining an average value of data of one DCT block with respect to data on a spatial domain. The first MQUANT generation unit 215 generates the first MQUANT, which is an initial quantization step size to be applied in the slice unit shown in FIG. 4 based on the complexity calculated by the complexity calculator 212. The first MQUANT of the first MQUANT generating unit 215 is obtained in a slice unit complexity and is applied as a quantization step size within the same slice when quantizing each macro block unit in the first quantizer 216. That is, 1 MQUANT is the number of slices × (slice mean_act / mean_act) + α, mean_act is the total complexity for one frame, slice mean_act is the slice complexity for one slice, and α is an experimental value for the optimal value of the first MQUANT value. Α = 2.5. Next, the DCT device 214 applies the equation of TM5 of MPEG-2, and discrete cosine transforms the image data after being prefiltered from the preprocessor 210. In other words, the DCT converts the image data in the spatial domain into the frequency domain and uses the zig-zag method proposed by TM5. The first quantizer 216 performs quantization on the image data DCT obtained from the DCT generator 214 according to the initial MQUANT obtained by the first MQUANT generator 215. The quantizer at this time is also proposed by TM5, and quantization is performed by the same MQUANT for all image data. The DCT block state determination unit 218 determines the characteristics of the low, edge, and high for each DCT block for the macro block unit output from the first quantizer 216. . In other words, the image quality is visually improved by assigning weights to MQUANTs by dividing them into simple areas, complex areas, and edged areas. 5A shows the number of DCT coefficients used when determining a low DCT block. At this time, the DCT coefficients are added to the coefficients of 1,2,3,4,5,6,7,8,9 (hatched fractions) in a zigzag order. 5B shows the number of DCT coefficients used when determining the vertical edge DCT block. At this time, the DCT coefficients are summed in the zigzag order with respect to the coefficients of 1,2,4,5,6,7,14,15,27 (hatched fractions). 5C shows the number of DCT coefficients used when determining a horizontal edge DCT block. The DCT coefficients at this time are summed in the zigzag order with respect to the coefficients of 1,2,3,4,8,9,10,20,21 (hatched fractions). 5D shows the number of DCT coefficients used when determining a diagonal edge DCT block. At this time, the DCT coefficients are summed in a zigzag order with respect to the coefficients of 1,2,4,12,24,39,51,58,63 (hatched fractions). 5E shows the number of DCT coefficients used when determining a high DCT block. The DCT coefficients at this time are added to the coefficients in the zig-zag order. The DCT block determiner 218 is represented by a DCT block of low, edge, and high for the sum of the coefficients obtained by the respective DCT coefficients. At this time, the sum of the low coefficients, the sum of the three edge (horizontal vertical, diagonal) coefficients and the sum of the high coefficients divided by two are compared to determine the characteristics of the DCT block for the case having the largest value. As shown in FIG. 3, one macroblock is composed of four luminance (Y1, Y2, Y3, Y4) DCT blocks, and thus, four luminance DCT blocks are obtained.

목표 비트 계산기(220)는 복잡도 계산부(212)에서 구해진 복잡도에 따라 목표 비트를 할당하게 되는 데 각 매크로 블록 단위의 복잡도와 전체 한프레임의 복잡도의 비율에 따라 한프레임당 주어진 비트 레이트에 대하여 목표 비트를 할당한다. 즉, 목표 비트 = min_activity[mb] / mean_act × (비트율(bit_rate)/30)로 계산되어지며, 여기서 min_activity[mb]는 매크로 블록내에 가장 작은 DCT 블록의 복잡도이며, 이때 할당되어진 비트는 매크로 블록 단위로 양자화되고 가변장 부호화(VLC:Variable Length Coding)되어 발생하는 목표 비트(Target Bit)이다.The target bit calculator 220 allocates a target bit according to the complexity obtained by the complexity calculator 212. The target bit calculator 220 targets a given bit rate per frame according to the ratio of the complexity of each macroblock unit and the complexity of the entire frame. Allocates bits. In other words, the target bit = min_activity [mb] / mean_act × (bit_rate / 30), where min_activity [mb] is the complexity of the smallest DCT block in the macroblock, and the allocated bits are in macroblock units. Is a target bit generated by quantized by VLC and variable length coding (VLC).

제2MQUANT발생기(224)는 DCT 블록 상태 결정기(218)로부터 구해진 로우, 에지, 하이 DCT 블록의 개수와 제1MQUANT 발생기(215)에서 발생하는 제1MQUANT에 대하여 다음과 같이 제2MQUANT를 구하게 된다. 즉, 제2MQUANT = ((로우 DCT 블록 개수/4) × 제1MQUANT) - ((에지 DCT 블록 개수/2) × 제1MQUANT) + (하이 DCT 블록 개수 /2 ) × 제1MQUANT이다.The second MQUANT generator 224 obtains the second MQUANT with respect to the number of low, edge, and high DCT blocks obtained from the DCT block state determiner 218 and the first MQUANT generated by the first MQUANT generator 215 as follows. That is, 2MQUANT = ((number of low DCT blocks / 4) x 1MQUANT)-((number of edge DCT blocks / 2) x 1MQUANT) + (number of high DCT blocks / 2) x 1MQUANT.

제2양자화기(222)는 제2MQUANT로하여 DCT(214)기에서 출력되는 DCT된 영상 데이터를 양자화한다. 이때 사용되는 양자화기는 TM5에서 정의된다. VLC기(226)는 제2양자화기(222)를 통하여 양자화된 직류(DC) 및 교류(AC) 계수에 대하여 가변장 부호화를 수행하며, 직류(DC)에 대해서는 DPCM(Differential Pulse Code Modulation) 을 거치고나서 가변장 부호화를 수행한다. VLC기(228)에서 출력되는 데이터가 부호화기의 실제 비트의 발생량이다. 뺄셈기(228)는 VLC기(226)에서 출력되는 비트와 목표 비트 계산기(220)의 매크로블럭단위의 목표 비트를 뺄셈하여 잉여 비트를 발생한다. 이 잉여 비트는 목표비트계산기(220)에 가해져 다음 매크로블럭의 목표 비트에 부가된다. MQUANT 가감기(230)는 뺄셈기(228)에서 발생되는 잉여 비트에 따라서 MQUANT값을 가감한다. 표 1은 가감하게 되는 MQUANT에 대한 일예를 나타낸다.The second quantizer 222 quantizes the DCT image data outputted from the DCT 214 using the second MQUANT. The quantizer used here is defined in TM5. The VLC device 226 performs variable length coding on the DC and AC coefficients quantized through the second quantizer 222, and performs differential pulse code modulation (DPCM) on the DC. After this, variable length coding is performed. The data output from the VLC machine 228 is an amount of actual bits generated by the encoder. The subtractor 228 subtracts the bit output from the VLC machine 226 and the target bit in macroblock units of the target bit calculator 220 to generate a surplus bit. This excess bit is added to the target bit calculator 220 and added to the target bit of the next macroblock. The MQUANT adder 230 adds or subtracts the MQUANT value according to the surplus bits generated by the subtractor 228. Table 1 shows an example for MQUANT to be added or subtracted.

잉여비트Surplus bits 가감 MQUANTAcceleration MQUANT 잉여비트 0Surplus bit 0 -1-One 0잉여비트50Surplus bit 50 +1+1 50잉여비트10050 Surplus Bits 100 +2+2 100잉여비트200100 Surplus Bits 200 +3+3

또한 MQUANT 가감기(230)에서 발생된 표 1에 나타난 MQUANT의 가감값과 제1MQUANT 발생기(224)에서 발생된 제2MQUANT는 덧셈기(227)에서 더해져 제2양자화기(224)에서 실제로 사용될 양자화 스텝 사이즈인 MQUANT로 사용된다.In addition, the MQUANT deceleration value shown in Table 1 generated by the MQUANT decelerator 230 and the second MQUANT generated by the first MQUANT generator 224 are added by the adder 227 to actually use the quantization step size used in the second quantizer 224. Used as MQUANT.

도 6은 본 발명에 따른 압축 부호화 방법의 흐름도이다.6 is a flowchart of a compression encoding method according to the present invention.

610과정은 입력되는 영상 데이터를 대역 제한하기 위한 전처리 과정이다. 620과정은 입력 영상에 따른 복잡도(Activity)를 계산하는 과정이다. 630과정은 입력 영상에 따른 복잡도를 계산하여 제1양자화스텝사이즈(MQUANT)를 계산하는 과정이다. 640과정은 630과정에서 계산된 제1양자화스텝사이즈에 의해 영상 데이터를 제1양자화하는 과정이다. 650과정은 640과정에서 양자화된 영상 데이터 DCT 블록의 특성별로 가중치를 부여하기 위하여 로우,에지, 하이의 영역으로 구분하는 과정이다. 660과정은 650과정에서 구분된 DCT 블록의 로우,에지, 하이 상태의 DCT 개수와 제1양자화스텝사이즈(MQUANT)를 연산하여 제2양자화스텝사이즈를 구하는 과정이다. 670과정은 660과정에서 구한 제2양자화스텝사이즈에 의해 영상 데이터를 제2양자화하는 과정이다. 666과정은 620과정에서 계산된 복잡도에 따라 매크로 블록 단위로 목표 비트를 계산하는 과정이다. 680과정은 부호화 장치에서 발생되는 비트와 666과정에서 계산된 목표 비트의 차를 구하는 과정이다. 690과정은 상기 660과정에서의 제2양자화스텝사이즈에 666과정에서 잉여비트에 따른 양자화 스텝사이즈 가감값을 더한 양자화스텝사이즈에 의하여 다음 매크로 블록에서 제2양자화를 수행하는 과정이다.Operation 610 is a preprocessing process for band-limiting the input image data. In step 620, a complexity is calculated according to the input image. In operation 630, the first quantization step size MQUANT may be calculated by calculating a complexity according to the input image. Operation 640 is a process of first quantizing the image data using the first quantization step size calculated in operation 630. The process 650 is a process of dividing the regions of the low, edge, and high in order to assign weights to the characteristics of the quantized image data DCT block in step 640. In step 660, the second quantization step size is obtained by calculating the number of DCTs in the low, edge, and high states and the first quantization step size (MQUANT) of the DCT blocks. Operation 670 is a process of second quantization of the image data by the second quantization step size obtained in operation 660. In step 666, the target bit is calculated in macroblock units according to the complexity calculated in step 620. Step 680 is a process of obtaining a difference between a bit generated in the encoding apparatus and a target bit calculated in step 666. In step 690, the second quantization step is performed in the next macro block by the quantization step size obtained by adding the second quantization step size in step 660 to the quantization step size of the surplus bits in step 666.

상술한 바와 같이 본 발명에 의하면, 피드백 루프(Feedback Loop)가 존재하지 않음으로 버퍼제어가 필요하지 않으며, 인트라 프레임 코딩을 함으로서 인터 프레임을 위한 장치가 필요하지 않아 하드웨어 사이즈를 감소시키며 인트라 프레임 코딩에 의한 프레임 단위의 편집이 용이한 이점이 있다.As described above, according to the present invention, since a feedback loop does not exist, buffer control is not required, and an intra frame coding apparatus does not require an apparatus for inter frame, thereby reducing hardware size and improving intra frame coding. There is an advantage that the frame-by-frame editing is easy.

Claims (11)

압축 부호화 장치에 있어서,In the compression coding apparatus, 입력되는 영상 데이터의 슬라이스 단위에 대한 복잡도로 산출되는 제1양자화스텝사이즈에 의해 양자화하는 제1양자화 수단;First quantization means for quantizing by a first quantization step size calculated with a complexity for a slice unit of input image data; 상기 복잡도에 따라 매크로 블록 단위로 목표 비트를 계산하는 목표비트계산수단;Target bit calculating means for calculating a target bit in units of macro blocks according to the complexity; 상기 제1양자화수단에 의해 양자화된 영상 데이터 DCT 블록을 특성에 따라 복수개의 영역별로 구분하는 DCT블록상태결정수단;DCT block state determination means for classifying the image data DCT block quantized by the first quantization means into a plurality of regions according to characteristics; 상기 제1양자화스텝사이즈를 상기 DCT 블록 결정수단에서 결정된 DCT 블록의 영역에 따라 가감한 제2양자화스텝사이즈를 구하는 제2양자화스텝사이즈발생수단;Second quantization step size generating means for obtaining a second quantization step size obtained by subtracting the first quantization step size according to the area of the DCT block determined by the DCT block determining means; 상기 제2양자화스텝사이즈발생수단의 양자화스텝사이즈에 따라 상기 이산 여현 변환된 영상 데이터를 양자화하는 제2양자화수단을 포함하는 것을 특징으로 하는 압축 부호화 장치.And second quantization means for quantizing the discrete cosine transformed video data according to the quantization step size of the second quantization step size generating means. 제1항에 있어서, 입력 영상 데이터에 대해서 프리필터링하여 영상 대역을 한정하는 전처리수단을 더 포함하는 것을 특징으로 하는 압축 부호화 장치.The compression encoding apparatus according to claim 1, further comprising preprocessing means for prefiltering input image data to define an image band. 제1항에 있어서, 전체 발생 비트와 상기 목표비트계산수단의 목표 비트의 차인 잉여비트에 따라 제1양자화스텝사이즈를 가감하는 양자화스텝사이즈 가감수단;2. The apparatus according to claim 1, further comprising: quantization step size adding / decreasing means for adding or subtracting a first quantization step size in accordance with a surplus bit that is a difference between all generated bits and a target bit of the target bit calculating means; 상기 양자화스텝사이즈 가감수단의 양자화스텝사이즈 가감값과 상기 제2양자화스텝사이즈발생수단에서 발생한 제2양자화스텝사이즈를 더하여 상기 제2양자화부의 양자화 스텝사이즈로 설정되는 가산수단을 더 포함하는 것을 특징으로 하는 압축 부호화 장치.And adding means for setting a quantization step size of said second quantization unit by adding a quantization step size decrement value of said quantization step size decrement means and a second quantization step size generated by said second quantization step size generation means. Compression encoding device. 제3항에 있어서, 상기 양자화스텝사이즈 가감수단의 잉여 비트는 다음 매크로 블록의 목표비트로 사용되는 것임을 특징으로 하는 압축 부호화 장치.4. The compression coding apparatus according to claim 3, wherein the surplus bits of said quantization step size adding / reducing means are used as target bits of a next macro block. 제1항에 있어서, 상기 제1양자화 수단의 제1양자화스텝사이즈(MQUANT)는 슬라이스 개수 × (slice mean_act / mean_act) + α, mean_act는 한 프레임에 대한 전체 복잡도이며, slice mean_act는 한 슬라이스에 대한 슬라이스 복잡도이며, α는 제1MQUANT값의 최적값을 위한 실험치임을 특징으로 하는 압축 부호화 장치.The method of claim 1, wherein the first quantization step size (MQUANT) of the first quantization means is the number of slices × (slice mean_act / mean_act) + α, mean_act is the overall complexity for one frame, slice mean_act is for one slice Compression encoding apparatus characterized in that the slice complexity, α is an experimental value for the optimum value of the first MQUANT value. 제1항에 있어서, 목표비트계산수단의 목표비트는 min_activity[mb] / mean_act × (비트율(bit_rate)/30)로 계산되어지며, 여기서 min_activity[mb]는 매크로 블록내에 가장 작은 DCT 블록의 복잡도임을 특징으로 하는 압축 부호화 장치.The target bit of the target bit calculating means is calculated by min_activity [mb] / mean_act × (bit_rate / 30), where min_activity [mb] is the complexity of the smallest DCT block in the macroblock. Compression coding apparatus characterized by the above-mentioned. 제1항에 있어서, 상기 DCT블록상태결정수단은 DCT 블록 단위로 로우 DCT 블록, 에지 DCT 블록, 하이 DCT 블록으로 구분하는 것을 특징으로 하는 압축 부호화 장치.The compression encoding apparatus according to claim 1, wherein the DCT block state determining means divides the low DCT block, the edge DCT block, and the high DCT block in units of DCT blocks. 상기 제7항에 있어서, 에지 DCT 블록은 수평, 수직, 대각선 에지 블록인것을 특징으로 하는 압축 부호화 장치.The compression encoding apparatus of claim 7, wherein the edge DCT block is a horizontal, vertical, or diagonal edge block. 제1항에 있어서, 상기 제2양자화스텝사이즈발생수단의 양자화스텝사이즈는 ((로우 DCT 블록 개수 / 4) × 제1양자화스텝사이즈) - ((에지 DCT 블록 개수/ 2) × 제1양자화스텝사이즈) + (하이 DCT 블록 개수 /2 ) × 제1양자화스텝사이즈로 계산되는 것을 특징으로 하는 압축 부호화 장치.The method of claim 1, wherein the quantization step size of the second quantization step size generating means is ((number of low DCT blocks / 4) x first quantization step size)-((number of edge DCT blocks / 2) x first quantization step Size) + (high DCT block number / 2) x The first quantization step size is calculated. 압축 부호화 방법에 있어서,In the compression coding method, 입력 영상 데이터의 복잡도에 따라 슬라이스 단위로 제1양자화스텝사이즈를 생성하는 제1과정;Generating a first quantization step size in slice units according to the complexity of the input image data; 입력 영상 데이터를 DCT하여 양자화된 영상 데이터 DCT 블록을 영상 특성에 따라 복수개의 영역별로 구분하는 제2과정;Dividing the quantized image data DCT block into a plurality of regions according to image characteristics by DCT the input image data; 상기 제2과정에서 각 영역별 DCT 개수에 따라 상기 제1과정의 제1양자화스텝사이즈를 가감한 제2양자화스텝사이즈로 양자화를 수행하는 제3과정을 포함하는 것을 특징으로 하는 압축 부후화 방법.And a third process of performing quantization at a second quantization step size obtained by subtracting the first quantization step size of the first process according to the number of DCTs in each region in the second process. 제1항에 있어서, 상기 복잡도에 따라 매크로 블록 단위로 목표 비트를 계산하는 과정;The method of claim 1, further comprising: calculating a target bit in macroblock units according to the complexity; 전체 양자화하여 발생된 비트와 상기 과정에서 계산된 목표 비트의 차인 잉여비트에 따라 양자화 스텝사이즈의 가감값을 구하는 과정;Obtaining an added or subtracted value of the quantization step size according to a surplus bit, which is a difference between the bits generated by the total quantization and the target bit calculated in the process; 상기과정에서 구한 양자화 스텝사이즈의 가감값에 따라 상기 제3과정의 제2양자화스텝사이즈를 가감하여 제2양자화를 수행하는 과정을 더 포함하는 것을 특징으로 하는 압축 부호화 방법.And performing a second quantization by adding or subtracting the second quantization step size of the third process according to the value of the quantization step size obtained in the above process.
KR1019970031725A 1997-07-09 1997-07-09 Compression coding apparatus and method KR100269113B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019970031725A KR100269113B1 (en) 1997-07-09 1997-07-09 Compression coding apparatus and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019970031725A KR100269113B1 (en) 1997-07-09 1997-07-09 Compression coding apparatus and method

Publications (2)

Publication Number Publication Date
KR19990009352A true KR19990009352A (en) 1999-02-05
KR100269113B1 KR100269113B1 (en) 2000-10-16

Family

ID=19513826

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019970031725A KR100269113B1 (en) 1997-07-09 1997-07-09 Compression coding apparatus and method

Country Status (1)

Country Link
KR (1) KR100269113B1 (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR20030009575A (en) * 2001-06-26 2003-02-05 박광훈 Rate control apparatus and method using neural-net classifier for moving picture coding
KR20040007818A (en) * 2002-07-11 2004-01-28 삼성전자주식회사 Method for controlling DCT computational quantity for encoding motion image and apparatus thereof
KR100438856B1 (en) * 2001-06-14 2004-07-05 엘지전자 주식회사 By lively table quantum/requantum making for method and status
KR100486524B1 (en) * 2002-07-04 2005-05-03 엘지전자 주식회사 Shortening apparatus for delay time in video codec
US7451080B2 (en) 2004-07-22 2008-11-11 Samsung Electronics Co., Ltd. Controlling apparatus and method for bit rate

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR200490694Y1 (en) 2017-07-26 2020-01-22 (주)포인트닉스 Tightening apparatus for implant with structure for anti-loosing and implant assembly including the same

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR100438856B1 (en) * 2001-06-14 2004-07-05 엘지전자 주식회사 By lively table quantum/requantum making for method and status
KR20030009575A (en) * 2001-06-26 2003-02-05 박광훈 Rate control apparatus and method using neural-net classifier for moving picture coding
KR100486524B1 (en) * 2002-07-04 2005-05-03 엘지전자 주식회사 Shortening apparatus for delay time in video codec
KR20040007818A (en) * 2002-07-11 2004-01-28 삼성전자주식회사 Method for controlling DCT computational quantity for encoding motion image and apparatus thereof
US7451080B2 (en) 2004-07-22 2008-11-11 Samsung Electronics Co., Ltd. Controlling apparatus and method for bit rate

Also Published As

Publication number Publication date
KR100269113B1 (en) 2000-10-16

Similar Documents

Publication Publication Date Title
US6259733B1 (en) Pre-processing of bit rate allocation in a multi-channel video encoder
JP3748717B2 (en) Video encoding device
KR100243430B1 (en) Method of adaptive quantization control
US5933532A (en) Video data compression apparatus and method of same
KR101089325B1 (en) Encoding method, decoding method, and encoding apparatus for a digital picture sequence
US7095784B2 (en) Method and apparatus for moving picture compression rate control using bit allocation with initial quantization step size estimation at picture level
EP0755610A1 (en) Method and device for transcoding video signals
JPH04196976A (en) Image encoding device
JPH0898179A (en) Picture encoding device
KR20060131699A (en) Method for processing image data
JPH05252507A (en) Motion video compression system using adaptive bit allocation and quantization
US8165202B1 (en) Video compression rate
JPH11234668A (en) Video coder
KR100269113B1 (en) Compression coding apparatus and method
JP2001028753A (en) Dynamic image coder and its method
EP0982951A1 (en) Picture compression process
JP3313118B2 (en) Complexity judgment device
KR100247966B1 (en) Compression coding apparatus and method
JP2900927B2 (en) Encoding method and encoding device
KR100809013B1 (en) Apparatus for coding complexity-scalable moving image and method thereof
JP3800965B2 (en) Data rate converter
JP3144573B2 (en) Video signal transmission equipment
KR20010104058A (en) Adaptive quantizer according to DCT mode in MPEG2 encoder
JP3918208B2 (en) Video data compression apparatus and method
JPH0918873A (en) Image encoding method and device and image recording medium

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: 20080627

Year of fee payment: 9

LAPS Lapse due to unpaid annual fee