KR20190091178A - Image processing device and method for operating image processing device - Google Patents

Image processing device and method for operating image processing device Download PDF

Info

Publication number
KR20190091178A
KR20190091178A KR1020180041781A KR20180041781A KR20190091178A KR 20190091178 A KR20190091178 A KR 20190091178A KR 1020180041781 A KR1020180041781 A KR 1020180041781A KR 20180041781 A KR20180041781 A KR 20180041781A KR 20190091178 A KR20190091178 A KR 20190091178A
Authority
KR
South Korea
Prior art keywords
entry
data
image data
determined
entries
Prior art date
Application number
KR1020180041781A
Other languages
Korean (ko)
Other versions
KR102543449B1 (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 SG10201809263UA priority Critical patent/SG10201809263UA/en
Priority to US16/205,900 priority patent/US11190810B2/en
Priority to TW107143583A priority patent/TW201941615A/en
Priority to CN201910038891.2A priority patent/CN110087074A/en
Publication of KR20190091178A publication Critical patent/KR20190091178A/en
Application granted granted Critical
Publication of KR102543449B1 publication Critical patent/KR102543449B1/en

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/134Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or criterion affecting or controlling the adaptive coding
    • H04N19/146Data rate or code amount at the encoder output
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/124Quantisation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/102Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the element, parameter or selection affected or controlled by the adaptive coding
    • H04N19/13Adaptive entropy coding, e.g. adaptive variable length coding [AVLC] or context adaptive binary arithmetic coding [CABAC]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/169Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding
    • H04N19/17Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object
    • H04N19/176Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding characterised by the coding unit, i.e. the structural portion or semantic portion of the video signal being the object or the subject of the adaptive coding the unit being an image region, e.g. an object the region being a block, e.g. a macroblock
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/42Methods or arrangements for coding, decoding, compressing or decompressing digital video signals characterised by implementation details or hardware specially adapted for video compression or decompression, e.g. dedicated software implementation

Abstract

An image processing apparatus and a method for operating the image processing apparatus are provided. The image processing apparatus includes a multimedia IP for processing image data; a memory accessed by the multimedia IP; and a frame buffer compressor (FBC) for compressing the image data to generate compressed data and storing the compressed data in the memory. The frame buffer compressor includes a compression management module that determines a combination of a QP table and an entropy table and controls the compression of the image data according to the determined combination of the QP table and the entropy table. It is possible to perform optimized image data compression.

Description

이미지 처리 장치 및 이미지 처리 장치의 동작 방법{IMAGE PROCESSING DEVICE AND METHOD FOR OPERATING IMAGE PROCESSING DEVICE}IMAGE PROCESSING DEVICE AND METHOD FOR OPERATING IMAGE PROCESSING DEVICE}

본 발명은 이미지 처리 장치 및 이미지 처리 장치의 동작 방법에 관한 것이다.The present invention relates to an image processing apparatus and an operating method of the image processing apparatus.

비디오 고해상도 영상 및 고프레임율(high-frame rate) 영상의 필요성이 대두되면서 이미지 처리 장치의 여러 멀티미디어 IP(Intellectual Property)가 메모리에 액세스(access)되는 양 즉, 밴드위스(bandwidth)가 크게 증가하게 되었다.As the need for video high-resolution images and high-frame rate images has emerged, the amount of access to memory, i.e., bandwidth, of various multimedia IPs of the image processing apparatus has been greatly increased. It became.

밴드위스가 증가하게 되면 이미지 처리 장치의 처리 능력이 한계에 도달하여 비디오 영상의 녹화 및 재생 동작시에 속도가 저하되는 문제가 발생할 수 있다.When the band whistle is increased, the processing power of the image processing apparatus reaches a limit, and thus, a problem may occur that the speed decreases during recording and playback of a video image.

이에 따라서, 멀티미디어 IP가 메모리에 액세스할 때, 데이터의 크기를 압축하는 방식이 고려되고 있다. 예를 들어, 메모리에 데이터를 라이트(write)하기 전에 데이터를 압축(compress)하고, 메모리에서 데이터를 리드(read)하기 전에는 압축된 데이터를 압축 해제(decompress)할 수 있다.Accordingly, a method of compressing the size of data when the multimedia IP accesses the memory is considered. For example, the data may be compressed before writing data to the memory, and the compressed data may be decompressed before the data is read from the memory.

본 발명이 해결하고자 하는 기술적 과제는 최적화된 이미지 데이터 압축을 수행하는 이미지 처리 장치를 제공하는 것이다.SUMMARY OF THE INVENTION The present invention has been made in an effort to provide an image processing apparatus that performs optimized image data compression.

본 발명이 해결하고자 하는 다른 기술적 과제는 최적화된 이미지 데이터 압축을 수행하는 이미지 처리 장치의 동작 방법을 제공하는 것이다.Another technical problem to be solved by the present invention is to provide an operating method of an image processing apparatus that performs optimized image data compression.

본 발명의 기술적 과제들은 이상에서 언급한 기술적 과제들로 제한되지 않으며, 언급되지 않은 또 다른 기술적 과제들은 아래의 기재로부터 해당 기술 분야의 통상의 기술자에게 명확하게 이해될 수 있을 것이다.Technical problems of the present invention are not limited to the technical problems mentioned above, and other technical problems not mentioned will be clearly understood by those skilled in the art from the following description.

상기 기술적 과제를 달성하기 위한 본 발명의 일 실시예에 따른 이미지 처리 장치는, 이미지 데이터를 처리하는 멀티미디어 IP; 상기 멀티미디어 IP에 의해 액세스(access)되는 메모리 및; 상기 이미지 데이터에 대해 압축을 수행하여 압축 데이터를 생성하고, 압축 데이터를 상기 메모리에 저장하는 프레임 버퍼 컴프레서(Frame Buffer Compressor, FBC)를 포함하고, 상기 프레임 버퍼 컴프레서는, QP 테이블 및 엔트로피 테이블의 조합을 결정하고 결정된 상기 QP 테이블 및 상기 엔트로피 테이블의 조합에 따라 상기 이미지 데이터의 압축을 제어하는 압축 관리 모듈을 포함한다.According to an aspect of the present invention, there is provided an image processing apparatus including: a multimedia IP for processing image data; Memory accessed by the multimedia IP; Compression is performed on the image data to generate compressed data, and includes a frame buffer compressor (FBC) for storing the compressed data in the memory, wherein the frame buffer compressor is a combination of a QP table and an entropy table. And a compression management module for controlling compression of the image data according to the determined combination of the QP table and the entropy table.

상기 기술적 과제를 달성하기 위한 본 발명의 다른 실시예에 따른 이미지 처리 장치는, 이미지 데이터를 처리하는 멀티미디어 IP; 상기 멀티미디어 IP에 의해 액세스되는 메모리 및; 상기 이미지 데이터에 대해 압축을 수행하여 압축 데이터를 생성하고, 압축 데이터를 상기 메모리에 저장하는 프레임 버퍼 컴프레서를 포함하고, 상기 프레임 버퍼 컴프레서는, 최대 16 개의 엔트리를 포함하는 QP 테이블 및 최대 4 개의 k값에 의해 결정되는 엔트로피 테이블을 결정하고, 결정된 상기 QP 테이블 및 상기 엔트로피 테이블의 조합에 따라 상기 이미지 데이터의 압축을 제어하는 압축 관리 모듈을 포함한다.According to another aspect of the present invention, there is provided an image processing apparatus including a multimedia IP for processing image data; Memory accessed by the multimedia IP; Compressing the image data to generate compressed data and storing the compressed data in the memory, the frame buffer compressor comprising: a QP table including up to 16 entries and up to 4 k And a compression management module that determines an entropy table determined by a value and controls compression of the image data according to the determined combination of the QP table and the entropy table.

상기 기술적 과제를 달성하기 위한 본 발명의 다른 실시예에 따른 이미지 처리 장치의 동작 방법은, 이미지 데이터에 대해 예측을 수행하고, 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하고, 상기 결정된 상기 QP 테이블을 이용하여 상기 예측이 완료된 이미지 데이터에 대해 양자화를 수행하고, 미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정하고, 상기 결정된 상기 엔트로피 테이블을 이용하여 상기 양자화가 완료된 이미지 데이터에 대해 엔트로피 코딩을 수행하여 압축 데이터를 생성하는 것을 포함한다.According to another aspect of the present invention, there is provided a method of operating an image processing apparatus, including performing prediction on image data, determining a QP table including a predetermined number of entries, and determining the determined QP. Quantization is performed on the image data on which the prediction is completed using a table, an entropy table is determined using a predetermined number of k values, and entropy coding is performed on the quantized image data using the determined entropy table. Performing compression to generate compressed data.

기타 실시예들의 구체적인 사항들은 상세한 설명 및 도면들에 포함되어 있다.Specific details of other embodiments are included in the detailed description and the drawings.

도 1 내지 도 3은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치를 설명하기 위한 블록도이다.
도 4는 도 1 내지 도 3의 프레임 버퍼 컴프레서를 세부적으로 설명하기 위한 블록도이다.
도 5는 도 4의 인코더를 세부적으로 설명하기 위한 블록도이다.
도 6은 도 4의 디코더를 세부적으로 설명하기 위한 블록도이다.
도 7 내지 도 10은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치의 동작을 설명하기 위한 개략도이다.
도 11 내지 도 14는 본 발명의 몇몇 실시예들에 이미지 처리 장치의 동작을 설명하기 위한 개략도이다.
도 15는 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치 및 이미지 처리 장치의 동작 방법에 의한 유리한 효과를 설명하기 위한 도면이다.
도 16은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치의 동작 방법을 설명하기 위한 흐름도이다.
1 to 3 are block diagrams illustrating an image processing apparatus according to some embodiments of the present invention.
4 is a block diagram illustrating in detail the frame buffer compressor of FIGS. 1 to 3.
FIG. 5 is a block diagram illustrating in detail the encoder of FIG. 4.
FIG. 6 is a block diagram for describing the decoder of FIG. 4 in detail.
7 to 10 are schematic diagrams for describing an operation of an image processing apparatus according to some embodiments of the present disclosure.
11 through 14 are schematic diagrams for describing an operation of an image processing apparatus in some embodiments of the present disclosure.
FIG. 15 is a view for explaining an advantageous effect by an image processing apparatus and an operating method of the image processing apparatus according to some embodiments of the present disclosure.
16 is a flowchart illustrating a method of operating an image processing apparatus according to some embodiments of the present disclosure.

도 1 내지 도 3은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치를 설명하기 위한 블록도이다.1 to 3 are block diagrams illustrating an image processing apparatus according to some embodiments of the present invention.

도 1을 참조하면, 본 발명의 몇몇 실시예에 따른 이미지 처리 장치는 멀티미디어 IP(Intellectual Property)(100), 프레임 버퍼 컴프레서(Frame Buffer Compressor, FBC)(200), 메모리(300) 및 시스템 버스(400)를 포함한다.Referring to FIG. 1, an image processing apparatus according to some embodiments of the present disclosure may include a multimedia IP (100), a frame buffer compressor (FBC) 200, a memory 300, and a system bus. 400).

멀티미디어 IP(100)는 이미지 처리 장치의 이미지 처리를 직접적으로 수행하는 파트일 수 있다. 즉, 멀티미디어 IP(100)는 비디오 영상의 캠코딩(camcoding), 플레이백(play back) 등 영상의 녹화와 재생을 수행하기 위한 여러 모듈을 의미할 수 있다.The multimedia IP 100 may be a part that directly performs image processing of the image processing apparatus. In other words, the multimedia IP 100 may refer to various modules for recording and playing back images such as camcoding and playing back video images.

멀티미디어 IP(100)는 카메라 등 외부로부터 제1 데이터를 수신하여 제2 데이터로 변환시킬 수 있다. 이 때, 상기 제1 데이터는 동영상 또는 이미지 로(raw) 데이터일 수 있다. 상기 제2 데이터는 멀티미디어 IP(100)에 의해서 생성된 데이터로서 멀티미디어 IP(100)가 처리중인 데이터도 포함할 수 있다. 즉, 멀티미디어 IP(100)는 여러 단계를 거쳐 상기 제2 데이터를 메모리(300)에 저장하고, 다시 갱신하는 것을 반복할 수 있다. 상기 제2 데이터는 이러한 단계 중에 있는 모든 데이터를 포함할 수 있다. 다만, 상기 제2 데이터는 메모리(300)에 저장될 때 제3 데이터의 형태로 저장될 수 있으므로, 메모리(300)에 상기 제2 데이터는 메모리(300)에 저장되기전 또는 메모리(300)에서 리드된 이후의 데이터를 의미할 수 있다. 이에 대해서는 추후에 더 자세히 설명한다.The multimedia IP 100 may receive first data from an external device such as a camera and convert the first data into second data. In this case, the first data may be moving image or image raw data. The second data is data generated by the multimedia IP 100 and may also include data being processed by the multimedia IP 100. That is, the multimedia IP 100 may repeat the step of storing the second data in the memory 300 and updating again through various steps. The second data may include all data in this step. However, since the second data may be stored in the form of third data when the second data is stored in the memory 300, the second data in the memory 300 may be stored before or in the memory 300. It may mean data after being read. This will be explained in more detail later.

구체적으로, 멀티미디어 IP(100)는 이미지 신호 프로세서(ISP)(110), 흔들림 보정 모듈(G2D)(120), 멀티 포맷 코덱(MFC)(130), GPU(140) 및 디스플레이(150)를 포함할 수 있다. 단, 본 실시예가 이에 제한되는 것은 아니다. 즉, 멀티미디어 IP(100)는 상술한 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150) 중 적어도 일부만을 포함할 수도 있다. 즉, 멀티미디어 IP(100)는 동영상이나 이미지를 처리하기 위해서 메모리(300)에 액세스해야하는 처리 모듈을 의미할 수 있다.Specifically, the multimedia IP 100 includes an image signal processor (ISP) 110, a shake correction module (G2D) 120, a multi-format codec (MFC) 130, a GPU 140, and a display 150. can do. However, the present embodiment is not limited thereto. That is, the multimedia IP 100 may include only at least some of the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 described above. That is, the multimedia IP 100 may refer to a processing module that needs to access the memory 300 in order to process a video or an image.

이미지 신호 프로세서(110)는 상기 제1 데이터를 받아 이를 전처리하여 상기 제2 데이터로 변환시킬 수 있다. 이 때, 상기 제1 데이터는 RGB 방식의 이미지 소스 데이터일 수 있다. 예를 들어, 이미지 신호 프로세서(110)는 RGB 방식의 상기 제1 데이터를 YUV 방식의 상기 제2 데이터로 변환할 수 있다.The image signal processor 110 may receive the first data and preprocess it to convert the second data into the second data. In this case, the first data may be RGB image source data. For example, the image signal processor 110 may convert the first data of the RGB method into the second data of the YUV method.

이 때, RGB 방식의 데이터란, 빛의 3원색을 기반으로 색을 표현한 데이터 포맷을 의미한다. 즉, 빨강(RED), 초록(GREEN), 파랑(BLUE) 세 종류의 색을 이용하여 이미지를 표현하는 방식이다. 이에 반해서, YUV 방식은 밝기 즉, 휘도(luma) 신호와 색차(chroma) 신호를 분리해서 표현하는 데이터 포맷을 의미한다. 즉, Y는 휘도 신호를 의미하고, U(Cb)와 V(Cr)는 각각 색차 신호를 의미한다. U는 휘도 신호와 청색 신호 성분의 차를 의미하고, V는 휘도 신호와 적색 신호 성분의 차를 의미한다.In this case, the RGB data refers to a data format in which colors are expressed based on three primary colors of light. That is, the image is expressed by using three kinds of colors, RED, GREEN, and BLUE. In contrast, the YUV method refers to a data format that expresses brightness, that is, a luminance signal and a chroma signal separately. That is, Y denotes a luminance signal, and U (Cb) and V (Cr) each mean a color difference signal. U means the difference between the luminance signal and the blue signal component, and V means the difference between the luminance signal and the red signal component.

이러한 YUV 방식의 데이터는 예를 들어, Y=0.3R+0.59G +0.11B, U=(B-Y)x0.493, V=(R-Y)x0.877와 같은 변환식을 이용하여 RGB 방식의 데이터로부터 변환되어 획득될 수 있다.The YUV data is converted from RGB data using a conversion equation such as Y = 0.3R + 0.59G + 0.11B, U = (BY) x0.493, V = (RY) x0.877. Can be obtained.

사람의 눈은 휘도 신호에는 민감하지만 색 신호에는 덜 민감하므로, YUV 방식의 데이터는 RGB 방식의 데이터에 비해서 압축이 더 용이할 수 있다. 이에 따라서, 이미지 신호 프로세서(110)는 RGB 방식의 상기 제1 데이터를 YUV 방식의 상기 제2 데이터로 변환할 수 있다.Since the human eye is sensitive to luminance signals but less sensitive to color signals, YUV data may be easier to compress than RGB data. Accordingly, the image signal processor 110 may convert the first data of the RGB method into the second data of the YUV method.

이미지 신호 프로세서(110)는 상기 제1 데이터를 상기 제2 데이터로 변환한 뒤에 메모리(300)에 저장할 수 있다.The image signal processor 110 may convert the first data into the second data and then store the first data in the memory 300.

흔들림 보정 모듈(120)은 이미지 혹은 동영상 데이터의 흔들림 보정을 수행할 수 있다. 흔들림 보정 모듈(120)은 상기 제1 데이터 혹은 메모리(300)에 저장된 상기 제2 데이터를 리드(read)하여 흔들림 보정을 수행할 수 있다. 이 때, 흔들림 보정이란, 동영상 데이터에서 카메라의 흔들림을 감지하여 이를 제거하는 것을 의미한다.The shake correction module 120 may perform shake correction of image or video data. The shake correction module 120 may perform shake correction by reading the first data or the second data stored in the memory 300. In this case, the shake correction means detecting and removing the shake of the camera from the video data.

흔들림 보정 모듈(120)은 상기 제1 데이터 또는 상기 제2 데이터의 흔들림을 보정하여 새로운 상기 제2 데이터를 생성 또는 갱신하고, 이를 메모리(300)에 저장할 수 있다.The shake correction module 120 may generate or update new second data by correcting shake of the first data or the second data, and store the new second data in the memory 300.

멀티 포맷 코덱(130)은 동영상 데이터를 압축하는 코덱일 수 있다. 일반적으로, 동영상 데이터는 크기가 매우 크므로, 이의 크기를 줄이는 압축 모듈이 필요하다. 동영상 데이터는 복수의 프레임 간의 연관관계를 통해서 압축이 가능하고, 이를 수행하는 것이 멀티 포맷 코덱(130)일 수 있다. 멀티 포맷 코덱(130)은 제1 데이터 또는 메모리(300)에 저장된 상기 제2 데이터를 리드(read)하여 압축할 수 있다.The multi-format codec 130 may be a codec that compresses video data. In general, video data is very large, so a compression module is needed to reduce its size. The video data may be compressed through an association between a plurality of frames, and the multi-format codec 130 may perform the same. The multi-format codec 130 may read and compress the first data or the second data stored in the memory 300.

멀티 포맷 코덱(130)은 상기 제1 데이터 또는 상기 제2 데이터를 압축하여 새로운 제2 데이터를 생성하거나 상기 제2 데이터를 갱신하고, 이를 메모리(300)에 저장할 수 있다.The multi-format codec 130 may compress the first data or the second data to generate new second data or update the second data, and store the same in the memory 300.

GPU(Graphics Processing Unit)(140)는 이차원 혹은 3차원 그래픽의 연산 및 생성을 할 수 있다. GPU(140)는 상기 제1 데이터 혹은 메모리(300)에 저장된 상기 제2 데이터를 연산 처리할 수 있다. GPU(140) 그래픽 데이터의 처리에 특화되어 병렬적으로 그래픽 데이터를 처리할 수 있다.The graphics processing unit (GPU) 140 may perform calculation and generation of two-dimensional or three-dimensional graphics. The GPU 140 may process the first data or the second data stored in the memory 300. The GPU 140 may be specialized in processing graphic data, and may process graphic data in parallel.

GPU(140)는 상기 제1 데이터 또는 상기 제2 데이터를 압축하여 새로운 제2 데이터를 생성하거나 상기 제2 데이터를 갱신하고, 이를 메모리(300)에 저장할 수 있다.The GPU 140 may compress the first data or the second data to generate new second data or update the second data, and store the second data in the memory 300.

디스플레이(150)는 메모리(300)에 저장된 상기 제2 데이터를 화면에 표시할 수 있다. 디스플레이(150)는 다른 멀티미디어 IP(100) 즉, 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130) 및 GPU(140)가 처리한 이미지 데이터 즉, 상기 제2 데이터를 화면에 표시할 수 있다. 단, 본 실시예가 이에 제한되는 것은 아니다.The display 150 may display the second data stored in the memory 300 on the screen. The display 150 displays image data processed by another multimedia IP 100, that is, the image signal processor 110, the shake correction module 120, the multi-format codec 130, and the GPU 140, that is, the second data. Can be displayed on the screen. However, the present embodiment is not limited thereto.

멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)는 각각 개별적으로 동작할 수 있다. 즉, 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)는 각각 메모리(300)에 개별적으로 액세스하여 데이터를 라이트 또는 리드할 수 있다.The image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 may operate individually. That is, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 may each individually access the memory 300 to write or read data. have.

프레임 버퍼 컴프레서(200)는 멀티미디어 IP(100)가 메모리(300)에 개별적으로 액세스하기 전에 상기 제2 데이터를 압축하여 상기 제3 데이터로 변환시킨다. 프레임 버퍼 컴프레서(200)는 상기 제3 데이터를 멀티미디어 IP(100)로 다시 전송하고, 멀티미디어 IP(100)는 상기 제3 데이터를 메모리(300)로 전송할 수 있다.The frame buffer compressor 200 compresses the second data and converts the second data into the third data before the multimedia IP 100 individually accesses the memory 300. The frame buffer compressor 200 may transmit the third data to the multimedia IP 100 again, and the multimedia IP 100 may transmit the third data to the memory 300.

이에 따라서, 메모리(300)에는 프레임 버퍼 컴프레서(200)에 의해서 압축된 상기 제3 데이터가 저장될 수 있다. 반대로, 메모리(300)에 저장된 상기 제3 데이터는 멀티미디어 IP(100)에 의해서 로드되고, 프레임 버퍼 컴프레서(200)로 전송될 수 있다. 프레임 버퍼 컴프레서(200)는 상기 제3 데이터를 압축 해제(decompress)하여 상기 제2 데이터로 변환시킬 수 있다. 프레임 버퍼 컴프레서(200)는 상기 제2 데이터를 다시 멀티미디어 IP(100)로 전송할 수 있다.Accordingly, the third data compressed by the frame buffer compressor 200 may be stored in the memory 300. On the contrary, the third data stored in the memory 300 may be loaded by the multimedia IP 100 and transmitted to the frame buffer compressor 200. The frame buffer compressor 200 may decompress the third data and convert the third data into the second data. The frame buffer compressor 200 may transmit the second data to the multimedia IP 100 again.

즉, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)가 개별적으로 메모리(300)에 액세스할 때마다 프레임 버퍼 컴프레서(200)가 상기 제2 데이터를 상기 제3 데이터로 압축하여 메모리(300)에 전달할 수 있다. 반대로, 메모리(300)에서 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)로 데이터 요청이 있을 때마다 프레임 버퍼 컴프레서(200)는 상기 제3 데이터를 상기 제2 데이터로 압축 해제하여 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)로 각각 전송할 수 있다.That is, each time the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 access the memory 300 individually. The frame buffer compressor 200 may compress the second data into the third data and transmit the compressed data to the memory 300. Conversely, whenever there is a data request from the memory 300 to the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100. The frame buffer compressor 200 decompresses the third data into the second data to decode the image signal processor 110, the shake correction module 120, the multi-format codec 130, and the GPU 140 of the multimedia IP 100. ) And the display 150, respectively.

메모리(300)는 프레임 버퍼 컴프레서(200)가 생성한 상기 제3 데이터를 저장하고, 저장된 상기 제3 데이터를 프레임 버퍼 컴프레서(200)가 압축 해제할 수 있도록 프레임 버퍼 컴프레서(200)에 제공할 수 있다.The memory 300 may store the third data generated by the frame buffer compressor 200 and provide the stored third data to the frame buffer compressor 200 so that the frame buffer compressor 200 can decompress the stored third data. have.

시스템 버스(400)는 멀티미디어 IP(100)와 메모리(300)가 각각 연결될 수 있다. 구체적으로, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)는 개별적으로 시스템 버스(400)에 연결될 수 있다. 시스템 버스(400)는 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)와 메모리(300)가 서로 데이터를 전송하는 경로가 될 수 있다.The system bus 400 may be connected to the multimedia IP 100 and the memory 300, respectively. In detail, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 may be individually connected to the system bus 400. have. The system bus 400 is the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140 and the display 150 and the memory 300 of the multimedia IP (100) data each other It can be a path for transmitting.

프레임 버퍼 컴프레서(200)는 시스템 버스(400)와는 연결되지 않고, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)가 각각 메모리에 액세스할 때 상기 제2 데이터를 상기 제3 데이터로, 상기 제3 데이터를 상기 제2 데이터로 변환시키는 작업을 할 수 있다.The frame buffer compressor 200 is not connected to the system bus 400, but the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140 and the display of the multimedia IP 100. When the 150 accesses the memory, the second data may be converted into the third data, and the third data may be converted into the second data.

다음으로 도 2를 참조하면, 본 발명의 몇몇 실시예에 따른 이미지 처리 장치의 프레임 버퍼 컴프레서(200)는 시스템 버스(400)와 직접 연결될 수 있다. Next, referring to FIG. 2, the frame buffer compressor 200 of the image processing apparatus according to some embodiments of the present disclosure may be directly connected to the system bus 400.

프레임 버퍼 컴프레서(200)는 멀티미디어 IP(100)와는 직접적으로 연결되지는 않고, 시스템 버스(400)를 통해서 서로 연결될 수 있다. 구체적으로, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)가 각각 시스템 버스(400)를 통해서 프레임 버퍼 컴프레서(200)와 데이터를 서로 전송하고, 이를 통해서 메모리(300)에 데이터를 전송할 수 있다. The frame buffer compressors 200 may not be directly connected to the multimedia IP 100 but may be connected to each other through the system bus 400. In detail, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 are frame buffered through the system bus 400, respectively. The compressor 200 and the data may be transmitted to each other, and data may be transmitted to the memory 300 through this.

즉, 압축 과정에서는 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)가 각각 시스템 버스(400)를 통해서 프레임 버퍼 컴프레서(200)로 상기 제2 데이터를 전송할 수 있다. 이어서, 프레임 버퍼 컴프레서(200) 상기 제2 데이터를 상기 제3 데이터로 압축하고, 이를 다시 메모리(300)에 시스템 버스(400)를 통해서 전송할 수 있다.That is, in the compression process, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 are respectively connected through the system bus 400. The second data may be transmitted to the frame buffer compressor 200. Subsequently, the frame buffer compressor 200 may compress the second data into the third data and transmit the same to the memory 300 through the system bus 400.

마찬가지로, 압축 해제 과정에서도 메모리(300)에 저장된 상기 제3 데이터를 시스템 버스(400)를 통해서 프레임 버퍼 컴프레서(200)가 전송받고, 이를 상기 제2 데이터로 압축 해제할 수 있다. 이어서, 프레임 버퍼 컴프레서(200)가 시스템 버스(400)를 통해서, 상기 제2 데이터를 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)로 각각 전송할 수 있다.Similarly, in the decompression process, the frame buffer compressor 200 receives the third data stored in the memory 300 through the system bus 400, and decompresses the third data into the second data. Subsequently, the frame buffer compressor 200 transmits the second data through the system bus 400 to the image signal processor 110, the shake correction module 120, the multi-format codec 130, and the GPU of the multimedia IP 100. 140 and the display 150, respectively.

다음으로 도 3을 참조하면, 본 발명의 몇몇 실시예에 따른 이미지 처리 장치는 메모리(300)와 시스템 버스(400)가 프레임 버퍼 컴프레서(200)를 통해서 서로 연결될 수 있다. Next, referring to FIG. 3, in the image processing apparatus according to some embodiments of the present disclosure, the memory 300 and the system bus 400 may be connected to each other through the frame buffer compressor 200.

즉, 메모리(300)는 시스템 버스(400)에 직접적으로 연결되지 못하고, 프레임 버퍼 컴프레서(200)를 통해서만 시스템 버스(400)에 연결될 수 있다. 또한, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)는 시스템 버스(400)와 직접 연결될 수 있다. 따라서, 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)는 프레임 버퍼 컴프레서(200)를 거쳐서만 메모리(300)에 액세스할 수 있다.That is, the memory 300 may not be directly connected to the system bus 400, but may be connected to the system bus 400 only through the frame buffer compressor 200. In addition, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 may be directly connected to the system bus 400. Accordingly, the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 may pass through the frame buffer compressor 200 only through the memory ( 300).

본 명세서에서 제2 데이터는 이미지 데이터(10)로, 제3 데이터는 압축 데이터(20)로도 참조하기로 한다.In the present specification, the second data is referred to as the image data 10 and the third data as the compressed data 20.

도 4는 도 1 내지 도 3의 프레임 버퍼 컴프레서를 세부적으로 설명하기 위한 블록도이다.4 is a block diagram illustrating in detail the frame buffer compressor of FIGS. 1 to 3.

도 4를 참조하면, 프레임 버퍼 컴프레서(200)는 인코더(210) 및 디코더(220)를 포함할 수 있다.Referring to FIG. 4, the frame buffer compressor 200 may include an encoder 210 and a decoder 220.

인코더(210)는 멀티미디어 IP(100)로부터 이미지 데이터(10)를 받아 압축 데이터(20)를 생성할 수 있다. 이 때, 이미지 데이터(10)는 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)로부터 각각 전송될 수 있다. 압축 데이터(20)는 멀티미디어 IP(100) 및 시스템 버스(400)를 통해서 메모리(300)로 전송될 수 있다.The encoder 210 may generate the compressed data 20 by receiving the image data 10 from the multimedia IP 100. In this case, the image data 10 may be transmitted from the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100, respectively. have. The compressed data 20 may be transmitted to the memory 300 through the multimedia IP 100 and the system bus 400.

반대로, 디코더(220)는 메모리(300)에 저장된 압축 데이터(20)를 이미지 데이터(10)로 압축 해제할 수 있다. 이미지 데이터(10)는 멀티미디어 IP로 전달될 수 있다. 이 때, 이미지 데이터(10)는 멀티미디어 IP(100)의 이미지 신호 프로세서(110), 흔들림 보정 모듈(120), 멀티 포맷 코덱(130), GPU(140) 및 디스플레이(150)로 각각 전달될 수 있다.In contrast, the decoder 220 may decompress the compressed data 20 stored in the memory 300 into the image data 10. Image data 10 may be transferred to the multimedia IP. In this case, the image data 10 may be transferred to the image signal processor 110, the shake correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100, respectively. have.

도 5는 도 4의 인코더를 세부적으로 설명하기 위한 블록도이다.FIG. 5 is a block diagram illustrating in detail the encoder of FIG. 4.

도 5를 참조하면, 인코더(210)는 제1 모드 셀렉터(219), 예측 모듈(211), 양자화 모듈(213), 엔트로피 인코딩 모듈(215) 및 패딩 모듈(217)을 포함한다.Referring to FIG. 5, the encoder 210 includes a first mode selector 219, a prediction module 211, a quantization module 213, an entropy encoding module 215, and a padding module 217.

제1 모드 셀렉터(219)는 인코더(210)가 무손실(loseless) 모드로 동작할 지, 손실(lossy) 모드로 동작할 지를 결정할 수 있다. 제1 모드 셀렉터(219)에 따라서, 인코더(210)가 무손실 모드로 동작하는 경우에는, 이미지 데이터(10)는 도 3의 무손실 경로(Lossless)를 따라서 압축되고, 인코더(210)가 손실 모드로 동작하는 경우에는, 이미지 데이터(10)는 손실 경로(Lossy)를 따라서 압축될 수 있다.The first mode selector 219 may determine whether the encoder 210 operates in a lossless mode or a lossy mode. According to the first mode selector 219, when the encoder 210 operates in the lossless mode, the image data 10 is compressed along the lossless path of FIG. 3, and the encoder 210 is in the lossy mode. In operation, the image data 10 may be compressed along a lossy path Losssy.

제1 모드 셀렉터(219)는 멀티미디어 IP(100)로부터 무손실 압축을 할것인지 손실 압축을 할 것인지를 결정하는 신호를 수신할 수 있다. 이 때, 무손실 압축이란, 데이터의 손실 없이 압축하는 것을 의미하고, 데이터에 따라서 압축률이 달라지는 방식을 의미한다. 이와 달리 손실 압축이란, 데이터가 일부 손실되는 압축으로서, 무손실 압축에 비해서 압축률이 더 높고, 미리 설정한 고정된 압축률을 가질 수 있다.The first mode selector 219 may receive a signal from the multimedia IP 100 to determine whether to perform lossless compression or lossy compression. In this case, lossless compression means compression without loss of data, and means a method in which a compression ratio varies depending on data. On the other hand, lossy compression is a compression in which some data is lost and may have a higher compression ratio than a lossless compression, and may have a predetermined fixed compression ratio.

제1 모드 셀렉터(219)는 무손실 모드인 경우에는 무손실 경로(Lossless)를 따라서, 예측 모듈(211), 엔트로피 인코딩 모듈(215) 및 패딩 모듈(217)로 이미지 데이터(10)를 유도할 수 있다. 반대로, 제1 모드 셀렉터(219)는 손실 모드인 경우에는 손실 경로(Lossy)를 따라서, 예측 모듈(211), 양자화 모듈(213) 및 엔트로피 인코딩 모듈(215)로 이미지 데이터(10)를 유도할 수 있다.In the case of the lossless mode, the first mode selector 219 may induce the image data 10 to the prediction module 211, the entropy encoding module 215, and the padding module 217 along a lossless path. . In contrast, the first mode selector 219 may induce the image data 10 to the prediction module 211, the quantization module 213, and the entropy encoding module 215 along the lossy path in the lossy mode. Can be.

예측 모듈(211)은 이미지 데이터(10)를 예측 데이터와 잔차 데이터로 나누어 표현할 수 있다. 예를 들어, 하나의 픽셀이 0~255의 값을 가지고 있는 경우에는 이를 표현하기 위해서 픽셀당 8bit의 데이터가 필요할 수 있다. 이에 대해서, 인접한 픽셀이 유사한 값을 가지는 경우에는 인접한 픽셀과의 차이 즉, 잔차만을 표현하여도 데이터의 손실은 없고, 표현하기 위한 데이터 bit의 수는 대폭 감소할 수 있다. 예를 들어, (253, 254, 255)의 값을 가지는 픽셀이 연속한 경우에는 예측 데이터를 253으로 한다면, (253(예측), 1(잔차), 2(잔차))의 잔차 데이터 표현으로 충분하고, 이러한 잔차 데이터 표현을 위한 픽셀당 bit수는 2bit로 매우 작아질 수 있다.The prediction module 211 may express the image data 10 by dividing the prediction data and the residual data. For example, if one pixel has a value of 0 to 255, 8 bits of data per pixel may be required to express it. On the other hand, when the adjacent pixels have similar values, there is no loss of data even when only the difference with the adjacent pixels, that is, the residual, is expressed, and the number of data bits to be represented can be greatly reduced. For example, if the prediction data is 253 when the pixels having the value of (253, 254, 255) are continuous, the residual data representation of (253 (prediction), 1 (residual), 2 (residual)) is sufficient. In addition, the number of bits per pixel for representing the residual data may be very small, 2 bits.

따라서, 예측 모듈(211)은 이미지 데이터(10)를 예측 데이터와 잔차 데이터로 나누어 전체적인 이미지 데이터(10)의 크기를 압축할 수 있다. 물론, 예측 데이터를 무엇으로 하는지에 대해서는 여러가지 방법이 가능할 수 있다.Therefore, the prediction module 211 may compress the size of the overall image data 10 by dividing the image data 10 into the prediction data and the residual data. Of course, various methods may be possible regarding what to use prediction data.

예측 모듈(211)은 픽셀 단위로 예측을 수행하거나, 블록 단위로 예측을 수행할 수 있다. 이 때, 블록이란 복수의 인접한 픽셀이 이루는 영역을 의미할 수 있다.The prediction module 211 may perform prediction in units of pixels or may perform prediction in units of blocks. In this case, the block may mean an area formed by a plurality of adjacent pixels.

양자화 모듈(213)은 예측 모듈(211)에 의해서 압축된 이미지 데이터(10)를 추가적으로 더 압축할 수 있다. 양자화 모듈(213)은 미리 설정된 양자화 계수를 통해서, 이미지 데이터(10)의 하위 비트를 제거할 수 있다. 구체적으로, 데이터를 양자화 계수를 곱함으로써 그 대표값을 선택하되, 소수점 이하를 버림으로서 손실이 발생할 수는 있다. 픽셀 데이터의 값이 0 내지 28-1(=255)사이라면, 양자화 계수는 1/(2n-1)(여기서, n은 8 이하의 정수)로 정의될 수 있다. 단, 본 실시예가 이에 제한되는 것은 아니다.The quantization module 213 may further compress the image data 10 compressed by the prediction module 211. The quantization module 213 may remove the lower bits of the image data 10 through preset quantization coefficients. Specifically, the data may be multiplied by a quantization coefficient to select its representative value, but loss may occur by rounding off the decimal point. If the value of the pixel data is 0 to 28-1 (= 255), the quantization coefficient may be defined as 1 / (2n-1), where n is an integer of 8 or less. However, the present embodiment is not limited thereto.

이 때, 제거된 하위 비트는 추후에 복원되지 않아 손실될 수 있다. 따라서, 양자화 모듈(213)은 손실 모드에서만 활용될 수 있다. 다만 손실 모드는 무손실 모드에 비해서 압축률이 상대적으로 높을 수 있고, 미리 설정된 고정 압축률을 가질 수 있어 추후에 압축률에 대한 정보다 별도로 필요하지 않을 수 있다.At this time, the removed lower bits may not be recovered later and may be lost. Thus, quantization module 213 may be utilized only in lossy mode. However, the lossy mode may have a relatively higher compression rate than the lossless mode, and may have a predetermined fixed compression rate, so that information on the compression rate may not be necessary later.

엔트로피 인코딩 모듈(215)은 손실 모드에서의 양자화 모듈(213)에 의해서 압축된 이미지 데이터(10) 또는 무손실 모드에서의 예측 모듈(211)에 의해서 압축된 이미지 데이터(10)를 엔트로피 코딩을 통해서 압축할 수 있다. 이 때, 엔트로피 코딩은 빈도수에 따라서 비트수를 할당하는 방식을 활용할 수 있다.The entropy encoding module 215 compresses the image data 10 compressed by the quantization module 213 in lossy mode or the image data 10 compressed by the prediction module 211 in lossless mode through entropy coding. can do. At this time, entropy coding may utilize a method of allocating the number of bits according to the frequency.

엔트로피 인코딩 모듈(215)은 허프만 코딩(Huffman coding)을 사용하여 이미지 데이터(10)를 압축할 수 있다. 또는, 엔트로피 인코딩 모듈(215)은 익스포넨셜 골룸 코딩(exponential golomb coding) 또는 골룸 라이스 코딩(golomb rice coding)을 통해서 이미지 데이터(10)를 압축할 수 있다. 이 때, 엔트로피 인코딩 모듈(215)은 k값을 통해서 테이블을 생성할 수 있어 간단하게 이미지 데이터(10)를 압축할 수 있다.The entropy encoding module 215 may compress the image data 10 using Huffman coding. Alternatively, the entropy encoding module 215 may compress the image data 10 through exponential golomb coding or golomb rice coding. At this time, the entropy encoding module 215 may generate a table through the k value, thereby simply compressing the image data 10.

패딩 모듈(217)은 무손실 모드에서 엔트로피 인코딩 모듈(215)에 의해서 압축된 이미지 데이터(10)에 패딩(padding)을 수행할 수 있다. 여기서, 패딩이란 특정한 크기에 맞추기 위해서 무의미한 데이터를 추가하는 것을 의미할 수 있다. 이에 대해서는 추후에 더 자세히 설명한다.The padding module 217 may pad the image data 10 compressed by the entropy encoding module 215 in the lossless mode. Here, padding may mean adding meaningless data to fit a specific size. This will be explained in more detail later.

패딩 모듈(217)은 무손실 모드뿐만 아니라 손실 모드에서도 활성화될 수 있다. 손실 모드에서는 이미지 데이터(10)가 양자화 모듈(213)에 의해서 압축될 때 목적하였던 압축률보다 더 많이 압축될 수 있다. 이러한 경우에 손실 모드에서도 패딩 모듈(217)을 거쳐 압축 데이터(20)로 변환되어 메모리(300)로 전송될 수 있다.The padding module 217 can be activated in a lossy mode as well as a lossless mode. In lossy mode, the image data 10 may be compressed more than the intended compression rate when compressed by the quantization module 213. In this case, the data may be converted into the compressed data 20 through the padding module 217 and transmitted to the memory 300 even in the loss mode.

압축 관리 모듈(218)은 양자화 및 엔트로피 코딩에 각각 사용되는 QP 테이블 및 엔트로피 테이블의 조합을 결정하고, 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축을 제어한다.The compression management module 218 determines a combination of the QP table and the entropy table used for quantization and entropy coding, respectively, and controls the compression of the image data 10 according to the determined combination of the QP table and the entropy table.

이 경우 제1 모드 셀렉터(219)는 인코더(210)가 손실(lossy) 모드로 동작하는 것으로 결정하고, 이에 따라, 이미지 데이터(10)는 도 5의 손실 경로(Lossy)를 따라서 압축된다. 즉, 압축 관리 모듈(218)이 QP 테이블 및 엔트로피 테이블의 조합을 결정하고 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축하는 것은, 프레임 버퍼 컴프레서(200)가 손실 압축 알고리즘(lossy compression algorithm)을 이용하여 이미지 데이터(10)에 대한 압축을 수행하는 경우가 전제된다.In this case, the first mode selector 219 determines that the encoder 210 operates in a lossy mode, so that the image data 10 is compressed along the lossy path of FIG. 5. That is, the compression management module 218 determines the combination of the QP table and the entropy table and compresses the image data 10 according to the determined combination of the QP table and the entropy table, so that the frame buffer compressor 200 uses the lossy compression algorithm ( It is assumed that compression is performed on the image data 10 using a lossy compression algorithm.

구체적으로, QP 테이블은 하나 이상의 엔트리를 포함하고, 각각의 엔트리는 이미지 데이터(10)를 양자화하기 위해 사용되는 양자화 계수를 포함할 수 있다. 상기 QP 테이블, 양자화 계수와 같은 개념은 이미지 압축 기술로서 이미 공지된 내용에 해당하므로 본 명세서에서는 그 구체적인 설명을 생략하도록 한다.In particular, the QP table may include one or more entries, and each entry may include quantization coefficients used to quantize the image data 10. Concepts such as the QP table and the quantization coefficients correspond to contents already known as image compression techniques, and thus detailed description thereof will be omitted.

한편, 엔트로피 테이블은 엔트로피 코딩 알고리즘을 수행하기 위해 k값을 통해 식별되는 복수의 코드 테이블을 의미하며, 본 발명의 몇몇의 실시예에서 사용될 수 있는 엔트로피 테이블은 지수 골롬 코드(exponential golomb code) 및 골롬 라이스 코드(golomb rice code) 중 적어도 하나를 포함할 수 있다. 엔트로피 코딩, 지수 골롬 코딩 알고리즘, 골롬 라이스 코딩 알고리즘 등에 관한 개념은 데이터 압축 기술로서 이미 공지된 내용에 해당하므로 본 명세서에서는 그 구체적인 설명을 생략하도록 한다.Meanwhile, the entropy table refers to a plurality of code tables identified through k values for performing an entropy coding algorithm, and entropy tables that can be used in some embodiments of the present invention include exponential golomb codes and golombs. It may include at least one of the rice rice (golomb rice code). Concepts related to entropy coding, exponential Golomb coding algorithm, and Golomb rice coding algorithm, etc. correspond to the contents already known as data compression techniques, and thus, detailed description thereof will be omitted.

압축 관리 모듈(218)은 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하고, 프레임 버퍼 컴프레서(200)는 상기 결정된 QP 테이블을 이용하여 예측이 완료된 이미지 데이터(10)에 대해 양자화를 수행한다. 또한 압축 관리 모듈(218)은 미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정하고, 프레임 버퍼 컴프레서(200)는 상기 결정된 엔트로피 테이블을 이용하여 양자화가 완료된 이미지 데이터(10)에 대해 엔트로피 코딩을 수행한다. 즉, 프레임 버퍼 컴프레서(200)는, 압축 관리 모듈(218)에 의해 결정된 상기 QP 테이블 및 상기 엔트로피 테이블의 조합에 기반하여 압축 데이터(20)를 생성한다.The compression management module 218 determines a QP table including a predetermined number of entries, and the frame buffer compressor 200 performs quantization on the predicted image data 10 using the determined QP table. In addition, the compression management module 218 determines the entropy table by using a predetermined number of k values, and the frame buffer compressor 200 performs entropy coding on the quantized image data 10 by using the determined entropy table. To perform. That is, the frame buffer compressor 200 generates the compressed data 20 based on the combination of the QP table and the entropy table determined by the compression management module 218.

이후, 프레임 버퍼 컴프레서(200)는 생성한 압축 데이터(20)를 메모리(300)에 라이트(write)할 수 있다. 또한, 프레임 버퍼 컴프레서(200)는, 메모리(300)로부터 압축 데이터(20)를 리드(read)하고, 리드한 압축 데이터(20)를 압축 해제하여 멀티미디어 IP(100)에 제공할 수 있다.Thereafter, the frame buffer compressor 200 may write the generated compressed data 20 to the memory 300. The frame buffer compressor 200 may read the compressed data 20 from the memory 300, decompress the read compressed data 20, and provide the compressed data 20 to the multimedia IP 100.

이와 같은 동작을 수행하는 압축 관리 모듈(218)에 대한 더욱 세부적인 내용은 도 7 내지 도 16을 참조하여 후술하도록 한다.More details of the compression management module 218 performing such an operation will be described later with reference to FIGS. 7 to 16.

도 6은 도 4의 디코더를 세부적으로 설명하기 위한 블록도이다.FIG. 6 is a block diagram for describing the decoder of FIG. 4 in detail.

도 6을 참조하면, 디코더(220)는 제2 모드 셀렉터(229), 언패딩 모듈(227), 엔트로피 디코딩 모듈(225), 역양자화 모듈(223) 및 예측 보상 모듈(221)을 포함한다.Referring to FIG. 6, the decoder 220 includes a second mode selector 229, an unpadding module 227, an entropy decoding module 225, an inverse quantization module 223, and a prediction compensation module 221.

제2 모드 셀렉터(229)는 메모리(300)에 저장된 압축 데이터(20)가 무손실 압축되었는지 손실 압축되었는지를 판단할 수 있다. 이 때, 제2 모드 셀렉터(229)는 헤더의 유무를 통해서 무손실 모드 및 손실 모드 중 어느 모드에 의해서 압축 데이터(20)가 압축되었는지를 판단할 수 있다. 이에 대해서는 추후에 더 자세히 설명한다.The second mode selector 229 may determine whether the compressed data 20 stored in the memory 300 is losslessly compressed or lossy compressed. In this case, the second mode selector 229 may determine whether the compressed data 20 is compressed by a lossless mode or a lossy mode based on the presence or absence of a header. This will be explained in more detail later.

제2 모드 셀렉터(229)는 무손실 모드인 경우에는 무손실 경로(Lossless)를 따라서, 언패딩 모듈(227), 엔트로피 디코딩 모듈(225) 및 예측 보상 모듈(221)로 압축 데이터(20)를 유도할 수 있다. 반대로, 제2 모드 셀렉터(229)는 손실 모드인 경우에는 손실 경로(Lossy)를 따라서, 엔트로피 디코딩 모듈(225), 역양자화 모듈(223) 및 예측 보상 모듈(221)로 압축 데이터(20)를 유도할 수 있다.In the case of the lossless mode, the second mode selector 229 may induce the compressed data 20 to the unpadding module 227, the entropy decoding module 225, and the prediction compensation module 221 along a lossless path. Can be. On the contrary, in the loss mode, the second mode selector 229 transmits the compressed data 20 to the entropy decoding module 225, the dequantization module 223, and the prediction compensation module 221 along the loss path Lossy. Can be induced.

언패딩 모듈(227)은 인코더(210)의 패딩 모듈(217)에 의해서 패딩된 데이터의 패딩된 부분을 제거할 수 있다.The unpadding module 227 may remove the padded portion of the data padded by the padding module 217 of the encoder 210.

엔트로피 디코딩 모듈(225)은 엔트로피 인코딩 모듈(215)에 의해서 압축된 데이터를 압축 해제할 수 있다. 엔트로피 디코딩 모듈(225)은 허프만 코딩, 익스포넨셜 골룸 코딩 또는 골룸 라이스 코딩을 통해서 압축 해제를 수행할 수 있다. 압축 데이터(20)는 k값을 포함하고 있으므로, 엔트로피 디코딩 모듈(225)은 상기 k값을 이용하여 디코딩을 수행할 수 있다.The entropy decoding module 225 may decompress the data compressed by the entropy encoding module 215. The entropy decoding module 225 may perform decompression through Huffman coding, expansive Gollum coding, or Gollum rice coding. Since the compressed data 20 includes a k value, the entropy decoding module 225 may perform decoding using the k value.

역양자화 모듈(223)은 양자화 모듈(213)에 의해서 압축된 데이터를 압축 해제할 수 있다. 역양자화 모듈(223)은 양자화 모듈(213)에서 정해진 양자화 계수를 이용하여 압축된 압축 데이터(20)를 복원할 수 있으나, 압축 과정에서 손실된 부분까지 완벽하게 복원할 수는 없다. 따라서, 역양자화 모듈(223)은 손실 모드에서만 활용될 수 있다.The inverse quantization module 223 may decompress data compressed by the quantization module 213. The inverse quantization module 223 may restore the compressed data 20 compressed by using the quantization coefficients defined by the quantization module 213, but may not completely restore the portion lost in the compression process. Thus, inverse quantization module 223 can only be utilized in lossy mode.

예측 보상 모듈(221)은 예측 모듈(211)에 의해서 예측 데이터와 잔차 데이터로 표현된 데이터를 복원할 수 있다. 예측 보상 모듈(221)은 예를 들어, (253(예측), 1(잔차), 2(잔차))의 잔차 데이터 표현을 (253, 254, 255)으로 변환시킬 수 있다.The prediction compensation module 221 may restore the data represented by the prediction data and the residual data by the prediction module 211. The prediction compensation module 221 may convert, for example, the residual data representation of (253 (prediction), 1 (residual), 2 (residual)) to (253, 254, 255).

예측 보상 모듈(221)은 예측 모듈(211)에 따라 픽셀 단위 또는 블록 단위로 수행된 예측을 복원할 수 있다. 이에 따라서, 압축 데이터(20)가 복원 혹은 압축 해제되어 멀티미디어 IP(100)로 전송될 수 있다.The prediction compensation module 221 may reconstruct the prediction performed in the pixel unit or the block unit according to the prediction module 211. Accordingly, the compressed data 20 may be restored or decompressed and transmitted to the multimedia IP 100.

압축 해제 관리 모듈(228)은 도 5와 관련하여 앞서 설명한 압축 관리 모듈(218)이 이미지 데이터(10)의 압축을 수행하기 위해 결정했던 QP 테이블 및 엔트로피 테이블의 조합이, 압축 데이터(20)를 압축 해제할 때에 적절하게 반영될 수 있는 작업을 수행할 수 있다.The decompression management module 228 is a combination of the QP table and the entropy table that the compression management module 218 described above with respect to FIG. When decompressing, you can perform tasks that can be properly reflected.

이제 도 7 내지 도 16를 참조하여, 앞서 설명한 이미지 처리 장치의 동작을 설명하도록 한다.7 to 16, the operation of the image processing apparatus described above will be described.

도 7 내지 도 10은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치의 동작을 설명하기 위한 개략도이다.7 to 10 are schematic diagrams for describing an operation of an image processing apparatus according to some embodiments of the present disclosure.

도 7을 참조하면, 압축 관리 모듈(218)은 미리 결정된 개수의 엔트리를 포함하는 QP 테이블(230)을 결정할 수 있다. 본 실시예에서, 압축 관리 모듈(218)은 8 단계의 양자화가 가능하도록 하는 8 개의 엔트리를 갖는 QP 테이블(230)을 결정할 수 있다.Referring to FIG. 7, the compression management module 218 may determine a QP table 230 including a predetermined number of entries. In this embodiment, the compression management module 218 may determine a QP table 230 having eight entries that enable eight levels of quantization.

QP 테이블(230)은 제1 엔트리 및 제2 엔트리를 포함한다. 여기서 제1 엔트리는 인덱스 0에 해당하는 양자화 계수이고, 제2 엔트리는 인덱스 7에 해당하는 양자화 계수이다. 그리고 QP 테이블(230)은 제1 엔트리와 제2 엔트리 사이에 하나 이상의 제3 엔트리를 포함한다. 본 실시예에서 하나 이상의 제3 엔트리는 인덱스 1 내지 6에 해당하는 양자화 계수에 해당한다.QP table 230 includes a first entry and a second entry. Here, the first entry is a quantization coefficient corresponding to index 0, and the second entry is a quantization coefficient corresponding to index 7. And QP table 230 includes one or more third entries between the first entry and the second entry. In the present embodiment, one or more third entries correspond to quantization coefficients corresponding to indices 1 to 6.

제1 엔트리는 미리 정해진 제1 값으로 결정된다. 본 실시예에서 미리 정해진 제1 값은 "MaxShiftValue"라고 표시하도록 한다. 상기 제1 값은 본 발명의 다양한 실시예에 따른 이미지 처리 장치 또는 이미지 처리 장치의 동작 방법을 실제로 구현함에 있어서 필요에 따라 임의로 정해질 수 있는 상수 값이다.The first entry is determined to be a first predetermined value. In the present embodiment, the first predetermined value is expressed as "MaxShiftValue". The first value is a constant value that may be arbitrarily determined as needed in actual implementation of the image processing apparatus or the method of operating the image processing apparatus according to various embodiments of the present disclosure.

제1 엔트리가 제1 값으로 결정되고 나면, 제2 엔트리는 다음과 같은 식에 의해 결정될 수 있다.After the first entry is determined to be the first value, the second entry may be determined by the following equation.

MaxShiftValue >> BitDepth * (1 - CompressionRatio)MaxShiftValue >> BitDepth * (1-CompressionRatio)

여기서, MaxShiftValue는 앞서 설명한 제1 값이고, BitDepth는 이미지 데이터(10)의 비트 뎁스(bit depth)이고, CompressionRatio는 압축률을 나타낸다.Here, MaxShiftValue is the first value described above, BitDepth is a bit depth of the image data 10, and CompressionRatio is a compression rate.

즉, 압축 관리 모듈(218)은 제1 값이 동일하고 목표하는 압축률이 동일한 경우, 이미지 데이터(10)의 비트 뎁스에 따라 QP 테이블(230)의 최종 값을 다르게 설정할 수 있다.That is, when the first value is the same and the target compression rate is the same, the compression management module 218 may set the final value of the QP table 230 differently according to the bit depth of the image data 10.

이와 같이 제1 엔트리가 제1 값으로 결정되고, 제2 엔트리가 제2 값으로 결정된 후, 제3 엔트리는 샘플링(sampling)을 통해 결정될 수 있다. 즉, 제3 엔트리는 미리 결정된 개수의 엔트리를 포함하는 QP 테이블(230)에서, 제1 엔트리 및 제2 엔트리를 제외한 나머지 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록 샘플링될 수 있다.As such, after the first entry is determined as the first value and the second entry is determined as the second value, the third entry may be determined through sampling. That is, the third entry may be sampled in the QP table 230 including a predetermined number of entries so that, for the remaining third entries except the first entry and the second entry, the quantization coefficients are properly distributed.

한편, 압축 관리 모듈(218)은 미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정할 수 있다. 본 발명의 몇몇의 실시예에서, 엔트로피 테이블은 최대 4 개 이하의 k값에 의해 결정될 수 있다.Meanwhile, the compression management module 218 may determine the entropy table by using a predetermined number of k values. In some embodiments of the invention, the entropy table may be determined by up to four k values.

구체적으로, 엔트로피 테이블은, 제1 비트 뎁스를 갖는 이미지 데이터(10)에 대해 n, n+1, n+2, n+3(단, n은 0 이상의 정수)의 k값에 의해 결정되고, 상기 제1 비트 뎁스보다 큰 제2 비트 뎁스를 갖는 이미지 데이터(10)에 대해 n+a, n+a+1, n+a+2, n+a+3(단, a는 1 이상의 정수)의 k값에 의해 결정될 수 있다.Specifically, the entropy table is determined by k values of n, n + 1, n + 2, n + 3 (where n is an integer of 0 or more) with respect to the image data 10 having the first bit depth, N + a, n + a + 1, n + a + 2, and n + a + 3 for image data 10 having a second bit depth greater than the first bit depth, where a is an integer of 1 or more Can be determined by the value of k.

예를 들어, 엔트로피 테이블은, 8 비트의 제1 비트 뎁스를 갖는 이미지 데이터에 대해서는 0, 1, 2, 3의 k값에 의해 결정될 수 있고, 10 비트의 제2 비트 뎁스를 갖는 이미지 데이터에 대해서는 1, 2, 3, 4의 k값에 의해 결정될 수 있다.For example, the entropy table may be determined by k values of 0, 1, 2, 3 for image data having a first bit depth of 8 bits, and for image data having a second bit depth of 10 bits. It can be determined by k values of 1, 2, 3, and 4.

즉, 압축 관리 모듈(218)은 이미지 데이터(10)의 비트 뎁스에 따라 예컨대 4 개의 연속된 k값들을 다르게 설정할 수 있다.That is, the compression management module 218 may set, for example, four consecutive k values differently according to the bit depth of the image data 10.

이미지 데이터(10)의 블록 기반의 손실 압축을 수행하는 경우, 앞서 설명한 바와 같이, 예측, 양자화 및 엔트로피 코딩의 단계가 수행된다. 양자화의 경우, 양자화 계수들을 포함하는 QP 테이블이 더 많은 엔트리를 가질수록 더 정교하게 압축을 수행할 수는 있으나, 한편으로는 다수의 엔트리를 갖는 QP 테이블을 유지하기 위해 메모리 자원이 소모되고, 프레임 버퍼 컨트롤러(200)의 인코더(210)와 디코더(220) 사이에서 주고 받는 압축 데이터(20)의 스트림의 헤더의 비트 수가 커질 수 있다. 특히, 이미지 데이터(10)에 대해 블록 단위로 압축을 수행하는 환경에서는 압축 데이터(20)의 스트림의 헤더가 1 비트만 증가하여도 전체 이미지 사이즈를 고려한다면 상당한 양의 밴드위스가 소모될 수 있다.When performing block based lossy compression of the image data 10, as described above, the steps of prediction, quantization and entropy coding are performed. In the case of quantization, the more detailed the QP table containing the quantization coefficients can perform compression, but on the other hand, memory resources are consumed to maintain the QP table with multiple entries, and the frame The number of bits of the header of the stream of compressed data 20 exchanged between the encoder 210 and the decoder 220 of the buffer controller 200 may be increased. In particular, in an environment in which image data 10 is compressed in block units, a significant amount of bandwidth may be consumed considering the total image size even if the header of the stream of compressed data 20 increases only one bit. .

또한, 엔트로피 코딩의 경우, 잔차 신호(residual)의 분포는 예컨대 8 비트의 비트 뎁스를 갖는 이미지 데이터의 경우와, 예컨대 10 비트의 비트 뎁스를 같은 이미지 데이터의 경우, 다르기 때문에, 엔트로피 코딩에 사용되는 엔트로피 테이블 역시 이에 따라 다르게 결정될 필요가 있다. 예컨대, 8 비트의 비트 뎁스를 갖는 이미지 데이터의 경우보다 10 비트의 비트 뎁스를 같은 이미지 데이터의 경우에 엔트로피 테이블 엔트리의 값이 0으로 몰리는 경향이 낮아지게 되므로, 비트 뎁스에 따라 k값이 다르게 결정될 필요가 있다.Further, in the case of entropy coding, the distribution of the residual signal is used for entropy coding because, for example, the image data having a bit depth of 8 bits is different from the case of image data having a bit depth of 10 bits, for example. The entropy table also needs to be determined differently accordingly. For example, the value of the entropy table entry tends to be reduced to zero in the case of image data having the same bit depth of 10 bits than in the case of image data having a bit depth of 8 bits, so that the k value may be determined differently according to the bit depth. There is a need.

따라서, 압축 품질이 양호하면서도 적절한 사이즈의 QP 테이블을 결정하고, 잔차 신호의 분포를 고려하여 적절한 k값을 선정하여 엔트로피 테이블을 결정함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다. Accordingly, by determining a QP table having a good compression quality and having an appropriate size and determining an entropy table by selecting an appropriate k value in consideration of the distribution of the residual signal, the frame buffer compressor can be increased while increasing the compression performance of the image data 10. Bandwidth between the 200 and the memory 300 can be saved.

본 발명의 몇몇의 실시예에서, 압축 관리 모듈(218)은 최대 16 개의 엔트리를 포함하는 QP 테이블을 결정할 수 있다. 또한, 본 발명의 몇몇의 실시예에서, 압축 관리 모듈(218)은 8 개 이상의 엔트리를 포함하는 QP 테이블을 결정할 수 있다.In some embodiments of the invention, compression management module 218 may determine a QP table that includes up to 16 entries. In addition, in some embodiments of the present invention, compression management module 218 may determine a QP table that includes eight or more entries.

다음으로 도 8을 참조하면, 압축 관리 모듈(218)은 8 개의 엔트리를 포함하는 QP 테이블(232)을 결정한다.Referring next to FIG. 8, the compression management module 218 determines a QP table 232 containing eight entries.

QP 테이블(232)의 제1 엔트리는 4096으로 결정되었다고 가정하자. 압축 관리 모듈(218)은 다음과 같이 제1 값에 해당하는 4096에 대해 BitDepth * (1 - CompressionRatio) 만큼 비트 시프트(bit shift) 연산을 수행한다.Assume that the first entry of the QP table 232 is determined to be 4096. The compression management module 218 performs a bit shift operation on the 4096 corresponding to the first value by BitDepth * (1-CompressionRatio) as follows.

4096 >> 8 X (1 - 0.5) = 2564096 >> 8 X (1-0.5) = 256

여기서 8은 이미지 데이터(10)의 비트 뎁스에 해당하는 값이고, 0.5는 목표하는 압축률에 해당하는 값이다.8 is a value corresponding to a bit depth of the image data 10, and 0.5 is a value corresponding to a target compression ratio.

이와 같이 제1 엔트리가 4096으로 결정되고, 제2 엔트리가 256으로 결정된 후, 제3 엔트리는 샘플링을 통해 결정될 수 있다. 즉, 제3 엔트리는 8 개의 엔트리를 포함하는 QP 테이블(232)에서, 제1 엔트리 4096 및 제2 엔트리 256을 제외한 나머지 인덱스 1 내지 6에 해당하는 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록, 예컨대 1365, 819, 585, 455, 372, 315로 결정될 수 있다. 이와 같이 결정된 QP 테이블(242)의 엔트리들은 예컨대 MaxShiftValue 값인 4096으로 나누어서 양자화 계수로 사용될 수도 있다.As such, after the first entry is determined as 4096 and the second entry is determined as 256, the third entry may be determined through sampling. That is, the third entry may be appropriately distributed in the QP table 232 including eight entries for the third entry corresponding to the indexes 1 to 6 except for the first entry 4096 and the second entry 256. For example, 1365, 819, 585, 455, 372, 315. The entries of the QP table 242 thus determined may be used as quantization coefficients by dividing, for example, by 4096, which is a MaxShiftValue value.

한편, 압축 관리 모듈(218)은 이미지 데이터(10)가 8 비트의 비트 뎁스를 갖는 경우 k값을 0, 1, 2, 3으로 결정하고, 이미지 데이터(10)가 10 비트의 비트 뎁스를 갖는 경우 k값을 1, 2, 3, 4로 결정할 수 있다.Meanwhile, the compression management module 218 determines k values as 0, 1, 2, and 3 when the image data 10 has an 8-bit bit depth, and the image data 10 has a bit depth of 10 bits. In this case, we can determine k as 1, 2, 3, or 4.

이와 같이 압축 관리 모듈(218)이 양자화 및 엔트로피 코딩에 각각 사용되는 QP 테이블 및 엔트로피 테이블의 조합을 결정하고, 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축을 제어함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다.In this way, the compression management module 218 determines the combination of the QP table and the entropy table used for quantization and entropy coding, respectively, and controls the compression of the image data 10 according to the determined combination of the QP table and the entropy table. While improving the compression performance of the data 10, it is possible to save the band whistle between the frame buffer compressor 200 and the memory 300.

다음으로 도 9를 참조하면, 압축 관리 모듈(218)은 8 개의 엔트리를 포함하는 QP 테이블(234)을 결정한다.Referring next to FIG. 9, the compression management module 218 determines a QP table 234 comprising eight entries.

QP 테이블(234)의 제1 엔트리는 4096으로 결정되었다고 가정하자. 압축 관리 모듈(218)은 다음과 같이 제1 값에 해당하는 4096에 대해 BitDepth * (1 - CompressionRatio) 만큼 비트 시프트 연산을 수행한다.Assume that the first entry of the QP table 234 is determined to be 4096. The compression management module 218 performs a bit shift operation on the 4096 corresponding to the first value by BitDepth * (1-CompressionRatio) as follows.

4096 >> 10 X (1 - 0.5) = 1284096 >> 10 X (1-0.5) = 128

여기서 10은 이미지 데이터(10)의 비트 뎁스에 해당하는 값이고, 0.5는 목표하는 압축률에 해당하는 값이다.10 is a value corresponding to a bit depth of the image data 10, and 0.5 is a value corresponding to a target compression ratio.

이와 같이 제1 엔트리가 4096으로 결정되고, 제2 엔트리가 128로 결정된 후, 제3 엔트리는 샘플링을 통해 결정될 수 있다. 즉, 제3 엔트리는 8 개의 엔트리를 포함하는 QP 테이블(234)에서, 제1 엔트리 4096 및 제2 엔트리 128을 제외한 나머지 인덱스 1 내지 6에 해당하는 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록, 예컨대 819, 455, 293, 216, 171, 146으로 결정될 수 있다. 이와 같이 결정된 QP 테이블(242)의 엔트리들은 예컨대 MaxShiftValue 값인 4096으로 나누어서 양자화 계수로 사용될 수도 있다.As such, after the first entry is determined as 4096 and the second entry is determined as 128, the third entry may be determined through sampling. That is, the third entry is a QP table 234 including eight entries so that the quantization coefficients are properly distributed to the third entries corresponding to the indices 1 to 6 except for the first entry 4096 and the second entry 128. For example, 819, 455, 293, 216, 171, 146. The entries of the QP table 242 thus determined may be used as quantization coefficients by dividing, for example, by 4096, which is a MaxShiftValue value.

한편, 압축 관리 모듈(218)은 이미지 데이터(10)가 8 비트의 비트 뎁스를 갖는 경우 k값을 0, 1, 2, 3으로 결정하고, 이미지 데이터(10)가 10 비트의 비트 뎁스를 갖는 경우 k값을 1, 2, 3, 4로 결정할 수 있다.Meanwhile, the compression management module 218 determines k values as 0, 1, 2, and 3 when the image data 10 has an 8-bit bit depth, and the image data 10 has a bit depth of 10 bits. In this case, we can determine k as 1, 2, 3, or 4.

이와 같이 압축 관리 모듈(218)이 양자화 및 엔트로피 코딩에 각각 사용되는 QP 테이블 및 엔트로피 테이블의 조합을 결정하고, 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축을 제어함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다.In this way, the compression management module 218 determines the combination of the QP table and the entropy table used for quantization and entropy coding, respectively, and controls the compression of the image data 10 according to the determined combination of the QP table and the entropy table. While improving the compression performance of the data 10, it is possible to save the band whistle between the frame buffer compressor 200 and the memory 300.

이어서 도 10을 참조하면, 위와 같은 과정을 통해 프레임 버퍼 컴프레서(200)의 인코더(210)로부터 생성된 압축 비트 스트림(236)은 4 비트의 QP 테이블 정보와, 2 비트의 k값 정보를 포함하는 헤더를 포함하고, 헤더에 이어서 압축 데이터(20)를 압축 바이너리로서 포함한다.10, the compressed bit stream 236 generated from the encoder 210 of the frame buffer compressor 200 through the above process includes four bits of QP table information and two bits of k value information. A header, followed by the compressed data 20 as compressed binary.

도 11 내지 도 14는 본 발명의 몇몇 실시예들에 이미지 처리 장치의 동작을 설명하기 위한 개략도이다.11 through 14 are schematic diagrams for describing an operation of an image processing apparatus in some embodiments of the present disclosure.

도 11을 참조하면, 압축 관리 모듈(218)은 미리 결정된 개수의 엔트리를 포함하는 QP 테이블(240)을 결정할 수 있다. 본 실시예에서, 압축 관리 모듈(218)은 16 단계의 양자화가 가능하도록 하는 16 개의 엔트리를 갖는 QP 테이블(240)을 결정할 수 있다.Referring to FIG. 11, the compression management module 218 may determine a QP table 240 including a predetermined number of entries. In this embodiment, the compression management module 218 can determine the QP table 240 with 16 entries to enable 16 levels of quantization.

QP 테이블(240)은 제1 엔트리 및 제2 엔트리를 포함한다. 여기서 제1 엔트리는 인덱스 0에 해당하는 양자화 계수이고, 제2 엔트리는 인덱스 15에 해당하는 양자화 계수이다. 그리고 QP 테이블(240)은 제1 엔트리와 제2 엔트리 사이에 하나 이상의 제3 엔트리를 포함한다. 본 실시예에서 하나 이상의 제3 엔트리는 인덱스 1 내지 14에 해당하는 양자화 계수에 해당한다.QP table 240 includes a first entry and a second entry. Here, the first entry is a quantization coefficient corresponding to index 0, and the second entry is a quantization coefficient corresponding to index 15. And QP table 240 includes one or more third entries between the first entry and the second entry. In this embodiment, the one or more third entries correspond to quantization coefficients corresponding to the indices 1 to 14.

제1 엔트리가 제1 값으로 결정되고, 제2 엔트리가 제2 값으로 결정된 후, 제3 엔트리는 샘플링을 통해 결정될 수 있다. 즉, 제3 엔트리는 미리 결정된 개수의 엔트리를 포함하는 QP 테이블(240)에서, 제1 엔트리 및 제2 엔트리를 제외한 나머지 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록 샘플링될 수 있다.After the first entry is determined to be the first value and the second entry is determined to be the second value, the third entry may be determined through sampling. That is, the third entry may be sampled in the QP table 240 including the predetermined number of entries so that the quantization coefficients are properly distributed for the third entry except the first entry and the second entry.

한편, 압축 관리 모듈(218)은 미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정할 수 있다. 본 발명의 몇몇의 실시예에서, 엔트로피 테이블은 최대 4 개 이하의 k값에 의해 결정될 수 있다.Meanwhile, the compression management module 218 may determine the entropy table by using a predetermined number of k values. In some embodiments of the invention, the entropy table may be determined by up to four k values.

예를 들어, 엔트로피 테이블은, 8 비트의 제1 비트 뎁스를 갖는 이미지 데이터에 대해서는 0, 1, 2, 3의 k값에 의해 결정될 수 있고, 10 비트의 제2 비트 뎁스를 갖는 이미지 데이터에 대해서는 1, 2, 3, 4의 k값에 의해 결정될 수 있다.For example, the entropy table may be determined by k values of 0, 1, 2, 3 for image data having a first bit depth of 8 bits, and for image data having a second bit depth of 10 bits. It can be determined by k values of 1, 2, 3, and 4.

즉, 압축 관리 모듈(218)은 이미지 데이터(10)의 비트 뎁스에 따라 예컨대 4 개의 연속된 k값들을 다르게 설정할 수 있다.That is, the compression management module 218 may set, for example, four consecutive k values differently according to the bit depth of the image data 10.

다음으로 도 12를 참조하면, 압축 관리 모듈(218)은 16 개의 엔트리를 포함하는 QP 테이블(242)을 결정한다.Next, referring to FIG. 12, the compression management module 218 determines a QP table 242 including 16 entries.

QP 테이블(242)의 제1 엔트리는 4096으로 결정되었다고 가정하자. 압축 관리 모듈(218)은 다음과 같이 제1 값에 해당하는 4096에 대해 BitDepth * (1 - CompressionRatio) 만큼 비트 시프트 연산을 수행한다.Assume that the first entry of the QP table 242 is determined to be 4096. The compression management module 218 performs a bit shift operation on the 4096 corresponding to the first value by BitDepth * (1-CompressionRatio) as follows.

4096 >> 8 X (1 - 0.5) = 2564096 >> 8 X (1-0.5) = 256

여기서 8은 이미지 데이터(10)의 비트 뎁스에 해당하는 값이고, 0.5는 목표하는 압축률에 해당하는 값이다.8 is a value corresponding to a bit depth of the image data 10, and 0.5 is a value corresponding to a target compression ratio.

이와 같이 제1 엔트리가 4096으로 결정되고, 제2 엔트리가 256으로 결정된 후, 제3 엔트리는 샘플링을 통해 결정될 수 있다. 즉, 제3 엔트리는 8 개의 엔트리를 포함하는 QP 테이블(232)에서, 제1 엔트리 4096 및 제2 엔트리 256을 제외한 나머지 인덱스 1 내지 14에 해당하는 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록, 예컨대 2048, 1365, 1024, 819, 683, 585, 512, 455, 410, 372, 341, 315, 293, 273으로 결정될 수 있다. 이와 같이 결정된 QP 테이블(242)의 엔트리들은 예컨대 MaxShiftValue 값인 4096으로 나누어서 양자화 계수로 사용될 수도 있다.As such, after the first entry is determined as 4096 and the second entry is determined as 256, the third entry may be determined through sampling. That is, the third entry is a QP table 232 including eight entries so that the quantization coefficients are properly distributed to the third entries corresponding to the indices 1 to 14 except for the first entry 4096 and the second entry 256. For example, 2048, 1365, 1024, 819, 683, 585, 512, 455, 410, 372, 341, 315, 293, 273. The entries of the QP table 242 thus determined may be used as quantization coefficients by dividing, for example, by 4096, which is a MaxShiftValue value.

한편, 압축 관리 모듈(218)은 이미지 데이터(10)가 8 비트의 비트 뎁스를 갖는 경우 k값을 0, 1, 2, 3으로 결정하고, 이미지 데이터(10)가 10 비트의 비트 뎁스를 갖는 경우 k값을 1, 2, 3, 4로 결정할 수 있다.Meanwhile, the compression management module 218 determines k values as 0, 1, 2, and 3 when the image data 10 has an 8-bit bit depth, and the image data 10 has a bit depth of 10 bits. In this case, we can determine k as 1, 2, 3, or 4.

이와 같이 압축 관리 모듈(218)이 양자화 및 엔트로피 코딩에 각각 사용되는 QP 테이블 및 엔트로피 테이블의 조합을 결정하고, 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축을 제어함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다.In this way, the compression management module 218 determines the combination of the QP table and the entropy table used for quantization and entropy coding, respectively, and controls the compression of the image data 10 according to the determined combination of the QP table and the entropy table. While improving the compression performance of the data 10, it is possible to save the band whistle between the frame buffer compressor 200 and the memory 300.

다음으로 도 13를 참조하면, 압축 관리 모듈(218)은 8 개의 엔트리를 포함하는 QP 테이블(244)을 결정한다.Referring next to FIG. 13, the compression management module 218 determines a QP table 244 including eight entries.

QP 테이블(244)의 제1 엔트리는 4096으로 결정되었다고 가정하자. 압축 관리 모듈(218)은 다음과 같이 제1 값에 해당하는 4096에 대해 BitDepth * (1 - CompressionRatio) 만큼 비트 시프트 연산을 수행한다.Assume that the first entry of the QP table 244 is determined to be 4096. The compression management module 218 performs a bit shift operation on the 4096 corresponding to the first value by BitDepth * (1-CompressionRatio) as follows.

4096 >> 10 X (1 - 0.5) = 1284096 >> 10 X (1-0.5) = 128

여기서 10은 이미지 데이터(10)의 비트 뎁스에 해당하는 값이고, 0.5는 목표하는 압축률에 해당하는 값이다.10 is a value corresponding to a bit depth of the image data 10, and 0.5 is a value corresponding to a target compression ratio.

이와 같이 제1 엔트리가 4096으로 결정되고, 제2 엔트리가 128로 결정된 후, 제3 엔트리는 샘플링을 통해 결정될 수 있다. 즉, 제3 엔트리는 8 개의 엔트리를 포함하는 QP 테이블(234)에서, 제1 엔트리 4096 및 제2 엔트리 128을 제외한 나머지 인덱스 1 내지 14에 해당하는 제3 엔트리에 대해, 양자화 계수가 적절히 분포하도록, 예컨대 1365, 819, 585, 455, 372, 315, 273, 228, 205, 186, 171, 158, 146, 137로 결정될 수 있다. 이와 같이 결정된 QP 테이블(242)의 엔트리들은 예컨대 MaxShiftValue 값인 4096으로 나누어서 양자화 계수로 사용될 수도 있다.As such, after the first entry is determined as 4096 and the second entry is determined as 128, the third entry may be determined through sampling. That is, the third entry is a QP table 234 including eight entries so that, for the third entry corresponding to the indices 1 to 14 except for the first entry 4096 and the second entry 128, the quantization coefficients are properly distributed. For example, 1365, 819, 585, 455, 372, 315, 273, 228, 205, 186, 171, 158, 146, 137. The entries of the QP table 242 thus determined may be used as quantization coefficients by dividing, for example, by 4096, which is a MaxShiftValue value.

한편, 압축 관리 모듈(218)은 이미지 데이터(10)가 8 비트의 비트 뎁스를 갖는 경우 k값을 0, 1, 2, 3으로 결정하고, 이미지 데이터(10)가 10 비트의 비트 뎁스를 갖는 경우 k값을 1, 2, 3, 4로 결정할 수 있다.Meanwhile, the compression management module 218 determines k values as 0, 1, 2, and 3 when the image data 10 has an 8-bit bit depth, and the image data 10 has a bit depth of 10 bits. In this case, we can determine k as 1, 2, 3, or 4.

이와 같이 압축 관리 모듈(218)이 양자화 및 엔트로피 코딩에 각각 사용되는 QP 테이블 및 엔트로피 테이블의 조합을 결정하고, 결정된 QP 테이블 및 엔트로피 테이블의 조합에 따라 이미지 데이터(10)의 압축을 제어함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다.In this way, the compression management module 218 determines the combination of the QP table and the entropy table used for quantization and entropy coding, respectively, and controls the compression of the image data 10 according to the determined combination of the QP table and the entropy table. While improving the compression performance of the data 10, it is possible to save the band whistle between the frame buffer compressor 200 and the memory 300.

이어서 도 14를 참조하면, 위와 같은 과정을 통해 프레임 버퍼 컴프레서(200)의 인코더(210)로부터 생성된 압축 비트 스트림(246)은 4 비트의 QP 테이블 정보와, 2 비트의 k값 정보를 포함하는 헤더를 포함하고, 헤더에 이어서 압축 데이터(20)를 압축 바이너리로서 포함한다.14, the compressed bit stream 246 generated from the encoder 210 of the frame buffer compressor 200 through the above process includes four bits of QP table information and two bits of k value information. A header, followed by the compressed data 20 as compressed binary.

도 15는 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치 및 이미지 처리 장치의 동작 방법에 의한 유리한 효과를 설명하기 위한 도면이다.FIG. 15 is a view for explaining an advantageous effect by an image processing apparatus and an operating method of the image processing apparatus according to some embodiments of the present disclosure.

도 15를 참조하면, QP 테이블의 엔트리의 개수가 12이고, k값의 개수가 4개인 경우 가장 양호한 PSNR 게인을 나타내고 있다.Referring to FIG. 15, the best PSNR gain is shown when the number of entries in the QP table is 12 and the number of k values is four.

즉, 압축 품질이 양호하면서도 적절한 사이즈의 QP 테이블을 결정하고, 잔차 신호의 분포를 고려하여 적절한 k값을 선정하여 엔트로피 테이블을 결정함으로써, 이미지 데이터(10)의 압축 성능을 높이면서도, 프레임 버퍼 컴프레서(200)와 메모리(300) 사이의 밴드위스를 절약할 수 있다.That is, by determining a QP table having a good compression quality and having an appropriate size, and determining an entropy table by selecting an appropriate k value in consideration of the distribution of the residual signal, the frame buffer compressor can be increased while increasing the compression performance of the image data 10. Bandwidth between the 200 and the memory 300 can be saved.

도 16은 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치의 동작 방법을 설명하기 위한 흐름도이다.16 is a flowchart illustrating a method of operating an image processing apparatus according to some embodiments of the present disclosure.

도 16을 참조하면, 본 발명의 몇몇 실시예들에 따른 이미지 처리 장치의 동작 방법은, 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정(S1601)하는 것을 포함한다.Referring to FIG. 16, a method of operating an image processing apparatus according to some embodiments of the present disclosure includes determining a QP table including a predetermined number of entries (S1601).

본 발명의 몇몇의 실시예에서, 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은, 최대 16 개의 엔트리를 포함하는 QP 테이블을 결정하는 것을 포함할 수 있다. 또한, 본 발명의 몇몇의 실시예에서, 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은, 8 개 이상의 엔트리를 포함하는 QP 테이블을 결정하는 것을 포함할 수 있다.In some embodiments of the invention, determining the QP table comprising a predetermined number of entries may include determining a QP table comprising up to 16 entries. Further, in some embodiments of the present invention, determining the QP table that includes a predetermined number of entries may include determining the QP table that includes eight or more entries.

또한 상기 방법은, 결정된 QP 테이블을 이용하여, 예측이 완료된 이미지 데이터에 대해 양자화를 수행(S1603)하는 것을 포함한다.In addition, the method may include performing quantization on the predicted image data using the determined QP table (S1603).

또한 상기 방법은, 미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정(S1605)하는 것을 포함한다.The method also includes determining an entropy table (S1605) using a predetermined number of k values.

본 발명의 몇몇의 실시예에서, 엔트로피 테이블을 결정하는 것은, 최대 4 개 이하의 k값을 이용하여 상기 엔트로피 테이블을 결정하는 것을 포함할 수 있다.In some embodiments of the invention, determining the entropy table may include determining the entropy table using up to four k values or less.

또한 상기 방법은, 결정된 상기 엔트로피 테이블을 이용하여, 양자화가 완료된 이미지 데이터에 대해 엔트로피 코딩을 수행하여 압축 데이터를 생성(S1607)하는 것을 포함한다.The method may further include generating compressed data by performing entropy coding on the quantized image data using the determined entropy table (S1607).

이상 첨부된 도면을 참조하여 본 발명의 실시예들을 설명하였으나, 본 발명은 상기 실시예들에 한정되는 것이 아니라 서로 다른 다양한 형태로 제조될 수 있으며, 본 발명이 속하는 기술분야에서 통상의 지식을 가진 자는 본 발명의 기술적 사상이나 필수적인 특징을 변경하지 않고서 다른 구체적인 형태로 실시될 수 있다는 것을 이해할 수 있을 것이다. 그러므로 이상에서 기술한 실시예들은 모든 면에서 예시적인 것이며 한정적이 아닌 것으로 이해해야만 한다.Although the embodiments of the present invention have been described above with reference to the accompanying drawings, the present invention is not limited to the above embodiments but may be manufactured in various forms, and having ordinary skill in the art to which the present invention pertains. It will be understood by those skilled in the art that the present invention may be embodied in other specific forms without changing the technical spirit or essential features of the present invention. It is therefore to be understood that the above-described embodiments are illustrative in all aspects and not restrictive.

100: 멀티미디어 IP
200: 프레임 버퍼 컴프레서
300: 메모리
100: Multimedia IP
200: frame buffer compressor
300: memory

Claims (20)

이미지 데이터를 처리하는 멀티미디어 IP;
상기 멀티미디어 IP에 의해 액세스(access)되는 메모리 및;
상기 이미지 데이터에 대해 압축을 수행하여 압축 데이터를 생성하고, 압축 데이터를 상기 메모리에 저장하는 프레임 버퍼 컴프레서(Frame Buffer Compressor, FBC)를 포함하고,
상기 프레임 버퍼 컴프레서는, QP 테이블 및 엔트로피 테이블의 조합을 결정하고 결정된 상기 QP 테이블 및 상기 엔트로피 테이블의 조합에 따라 상기 이미지 데이터의 압축을 제어하는 압축 관리 모듈을 포함하는 이미지 처리 장치.
Multimedia IP for processing image data;
Memory accessed by the multimedia IP;
A frame buffer compressor (FBC) for compressing the image data to generate compressed data and storing the compressed data in the memory;
The frame buffer compressor includes a compression management module that determines a combination of a QP table and an entropy table and controls the compression of the image data according to the determined combination of the QP table and the entropy table.
제1항에 있어서,
상기 QP 테이블은 제1 엔트리 및 제2 엔트리를 포함하고,
상기 제1 엔트리는 미리 정해진 제1 값으로 결정되고,
상기 제2 엔트리는 다음과 같은 식에 의해 결정되는 이미지 처리 장치:
MaxShiftValue >> BitDepth * (1 - CompressionRatio)
여기서, MaxShiftValue는 제1 값이고, BitDepth는 이미지 데이터의 비트 뎁스이고, CompressionRatio는 압축률을 나타냄.
The method of claim 1,
The QP table includes a first entry and a second entry,
The first entry is determined to be a predetermined first value,
The second entry is an image processing apparatus determined by the following equation:
MaxShiftValue >> BitDepth * (1-CompressionRatio)
Where MaxShiftValue is the first value, BitDepth is the bit depth of the image data, and CompressionRatio represents the compression rate.
제2항에 있어서,
상기 QP 테이블은 상기 제1 엔트리와 상기 제2 엔트리 사이에 하나 이상의 제3 엔트리를 포함하고,
상기 제3 엔트리는 샘플링(sampling)을 통해 결정되는 이미지 처리 장치.
The method of claim 2,
The QP table includes one or more third entries between the first entry and the second entry,
And the third entry is determined through sampling.
제1항에 있어서,
상기 QP 테이블은 최대 16 개의 엔트리를 포함하는 이미지 처리 장치.
The method of claim 1,
And the QP table includes up to 16 entries.
제4항에 있어서,
상기 QP 테이블은 8 개 이상의 엔트리를 포함하는 이미지 처리 장치.
The method of claim 4, wherein
And the QP table comprises eight or more entries.
제1항에 있어서,
상기 엔트로피 테이블은 최대 4 개 이하의 k값에 의해 결정되는 이미지 처리 장치.
The method of claim 1,
And the entropy table is determined by a maximum of four k values or less.
제6항에 있어서,
상기 엔트로피 테이블은,
제1 비트 뎁스를 갖는 이미지 데이터에 대해 n, n+1, n+2, n+3(단, n은 0 이상의 정수)의 k값에 의해 결정되고,
상기 제1 비트 뎁스보다 큰 제2 비트 뎁스를 갖는 이미지 데이터에 대해 n+a, n+a+1, n+a+2, n+a+3(단, a는 1 이상의 정수)의 k값에 의해 결정되는 이미지 처리 장치.
The method of claim 6,
The entropy table is,
For image data having a first bit depth, it is determined by k values of n, n + 1, n + 2, n + 3 (where n is an integer of 0 or more),
K values of n + a, n + a + 1, n + a + 2, n + a + 3 (where a is an integer of 1 or more) for image data having a second bit depth greater than the first bit depth Image processing apparatus determined by.
제1항에 있어서,
상기 엔트로피 테이블은 지수 골롬 코드(exponential golomb code) 및 골롬 라이스 코드(golomb rice code) 중 적어도 하나를 포함하는 이미지 처리 장치.
The method of claim 1,
The entropy table includes at least one of an exponential golomb code and a golomb rice code.
이미지 데이터를 처리하는 멀티미디어 IP;
상기 멀티미디어 IP에 의해 액세스(access)되는 메모리 및;
상기 이미지 데이터에 대해 압축을 수행하여 압축 데이터를 생성하고, 압축 데이터를 상기 메모리에 저장하는 프레임 버퍼 컴프레서(Frame Buffer Compressor, FBC)를 포함하고,
상기 프레임 버퍼 컴프레서는, 최대 16 개의 엔트리를 포함하는 QP 테이블 및 최대 4 개의 k값에 의해 결정되는 엔트로피 테이블을 결정하고, 결정된 상기 QP 테이블 및 상기 엔트로피 테이블의 조합에 따라 상기 이미지 데이터의 압축을 제어하는 압축 관리 모듈을 포함하는 이미지 처리 장치.
Multimedia IP for processing image data;
Memory accessed by the multimedia IP;
A frame buffer compressor (FBC) for compressing the image data to generate compressed data and storing the compressed data in the memory;
The frame buffer compressor determines an entropy table determined by a QP table including up to 16 entries and up to 4 k values, and controls compression of the image data according to the determined combination of the QP table and the entropy table. An image processing apparatus comprising a compression management module.
제9항에 있어서,
상기 QP 테이블은 제1 엔트리 및 제2 엔트리를 포함하고,
상기 제1 엔트리는 미리 정해진 제1 값으로 결정되고,
상기 제2 엔트리는 다음과 같은 식에 의해 결정되는 이미지 처리 장치:
MaxShiftValue >> BitDepth * (1 - CompressionRatio)
여기서, MaxShiftValue는 제1 값이고, BitDepth는 이미지 데이터의 비트 뎁스이고, CompressionRatio는 압축률을 나타냄.
10. The method of claim 9,
The QP table includes a first entry and a second entry,
The first entry is determined to be a predetermined first value,
The second entry is an image processing apparatus determined by the following equation:
MaxShiftValue >> BitDepth * (1-CompressionRatio)
Where MaxShiftValue is the first value, BitDepth is the bit depth of the image data, and CompressionRatio represents the compression rate.
제10항에 있어서,
상기 QP 테이블은 상기 제1 엔트리와 상기 제2 엔트리 사이에 하나 이상의 제3 엔트리를 포함하고,
상기 제3 엔트리는 샘플링(sampling)을 통해 결정되는 이미지 처리 장치.
The method of claim 10,
The QP table includes one or more third entries between the first entry and the second entry,
And the third entry is determined through sampling.
제9항에 있어서,
상기 QP 테이블은 8 개 이상의 엔트리를 포함하는 이미지 처리 장치.
10. The method of claim 9,
And the QP table comprises eight or more entries.
제9항에 있어서,
상기 엔트로피 테이블은,
제1 비트 뎁스를 갖는 이미지 데이터에 대해 n, n+1, n+2, n+3(단, n은 0 이상의 정수)의 k값에 의해 결정되고,
상기 제1 비트 뎁스보다 큰 제2 비트 뎁스를 갖는 이미지 데이터에 대해 n+a, n+a+1, n+a+2, n+a+3(단, a는 1 이상의 정수)의 k값에 의해 결정되는 이미지 처리 장치.
10. The method of claim 9,
The entropy table is,
For image data having a first bit depth, it is determined by k values of n, n + 1, n + 2, n + 3 (where n is an integer of 0 or more),
K values of n + a, n + a + 1, n + a + 2, n + a + 3 (where a is an integer of 1 or more) for image data having a second bit depth greater than the first bit depth Image processing apparatus determined by.
이미지 데이터에 대해 예측을 수행하고,
미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하고,
상기 결정된 상기 QP 테이블을 이용하여 상기 예측이 완료된 이미지 데이터에 대해 양자화를 수행하고,
미리 결정된 개수의 k값을 이용하여 엔트로피 테이블을 결정하고,
상기 결정된 상기 엔트로피 테이블을 이용하여 상기 양자화가 완료된 이미지 데이터에 대해 엔트로피 코딩을 수행하여 압축 데이터를 생성하는 것을 포함하는 이미지 처리 장치의 동작 방법.
Perform predictions on image data,
Determine a QP table that includes a predetermined number of entries,
Perform quantization on the image data on which the prediction is completed using the determined QP table,
The entropy table is determined using a predetermined number of k values,
And generating compressed data by performing entropy coding on the quantized image data using the determined entropy table.
제14항에 있어서,
상기 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은,
최대 16 개의 엔트리를 포함하는 QP 테이블을 결정하는 것을 포함하는 이미지 처리 장치의 동작 방법.
The method of claim 14,
Determining a QP table comprising the predetermined number of entries,
A method of operating an image processing apparatus comprising determining a QP table comprising a maximum of 16 entries.
제15항에 있어서,
상기 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은,
8 개 이상의 엔트리를 포함하는 QP 테이블을 결정하는 것을 포함하는 이미지 처리 장치.
16. The method of claim 15,
Determining a QP table comprising the predetermined number of entries,
And determining a QP table comprising eight or more entries.
제14항에 있어서,
상기 QP 테이블은 제1 엔트리 및 제2 엔트리를 포함하고,
상기 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은,
상기 제1 엔트리를 미리 정해진 제1 값으로 결정하고,
상기 제2 엔트리를 다음과 같은 식에 의해 결정하는 것을 포함하는 이미지 처리 장치의 동작 방법:
MaxShiftValue >> BitDepth * (1 - CompressionRatio)
여기서, MaxShiftValue는 제1 값이고, BitDepth는 이미지 데이터의 비트 뎁스이고, CompressionRatio는 압축률을 나타냄.
The method of claim 14,
The QP table includes a first entry and a second entry,
Determining a QP table comprising the predetermined number of entries,
Determine the first entry as a first predetermined value,
A method of operating an image processing apparatus comprising determining the second entry by the following equation:
MaxShiftValue >> BitDepth * (1-CompressionRatio)
Where MaxShiftValue is the first value, BitDepth is the bit depth of the image data, and CompressionRatio represents the compression rate.
제17항에 있어서,
상기 QP 테이블은 상기 제1 엔트리와 상기 제2 엔트리 사이에 하나 이상의 제3 엔트리를 포함하고,
상기 미리 결정된 개수의 엔트리를 포함하는 QP 테이블을 결정하는 것은,
상기 제3 엔트리를 샘플링(sampling)을 통해 결정하는 것을 포함하는 이미지 처리 장치의 동작 방법.
The method of claim 17,
The QP table includes one or more third entries between the first entry and the second entry,
Determining a QP table comprising the predetermined number of entries,
And determining the third entry by sampling.
제14항에 있어서,
상기 엔트로피 테이블을 결정하는 것은,
최대 4 개 이하의 k값을 이용하여 상기 엔트로피 테이블을 결정하는 것을 포함하는 이미지 처리 장치의 동작 방법.
The method of claim 14,
Determining the entropy table,
And determining the entropy table using up to four k values.
제14항에 있어서,
상기 엔트로피 테이블을 결정하는 것은,
제1 비트 뎁스를 갖는 이미지 데이터에 대해 n, n+1, n+2, n+3(단, n은 0 이상의 정수)의 k값을 이용하여 상기 엔트로피 테이블을 결정하고,
상기 제1 비트 뎁스보다 큰 제2 비트 뎁스를 갖는 이미지 데이터에 대해 n+a, n+a+1, n+a+2, n+a+3(단, a는 1 이상의 정수)의 k값을 이용하여 상기 엔트로피 테이블을 결정하는 것을 포함하는 이미지 처리 장치의 동작 방법.
The method of claim 14,
Determining the entropy table,
The entropy table is determined using k values of n, n + 1, n + 2, and n + 3 (where n is an integer of 0 or more) for image data having a first bit depth,
K values of n + a, n + a + 1, n + a + 2, n + a + 3 (where a is an integer of 1 or more) for image data having a second bit depth greater than the first bit depth And determining the entropy table by using.
KR1020180041781A 2018-01-26 2018-04-10 Image processing device and method for operating image processing device KR102543449B1 (en)

Priority Applications (4)

Application Number Priority Date Filing Date Title
SG10201809263UA SG10201809263UA (en) 2018-01-26 2018-10-19 Image processing device and method for operating image processing device
US16/205,900 US11190810B2 (en) 2018-01-26 2018-11-30 Device and method for compressing image data using quantization parameter and entropy tables
TW107143583A TW201941615A (en) 2018-01-26 2018-12-05 Image processing device and method for operating image processing device
CN201910038891.2A CN110087074A (en) 2018-01-26 2019-01-16 Image processing apparatus and method for operating image processing apparatus

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
KR1020180010083 2018-01-26
KR20180010083 2018-01-26

Publications (2)

Publication Number Publication Date
KR20190091178A true KR20190091178A (en) 2019-08-05
KR102543449B1 KR102543449B1 (en) 2023-06-14

Family

ID=67615996

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1020180041781A KR102543449B1 (en) 2018-01-26 2018-04-10 Image processing device and method for operating image processing device

Country Status (3)

Country Link
KR (1) KR102543449B1 (en)
SG (1) SG10201809263UA (en)
TW (1) TW201941615A (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366240B2 (en) * 2003-03-17 2008-04-29 Stmicroelectronics Asia Pacific Pte Ltd. Decoder and method of decoding using pseudo two pass decoding and one pass encoding
KR20160040709A (en) * 2013-09-09 2016-04-14 애플 인크. Chroma quantization in video coding

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US7366240B2 (en) * 2003-03-17 2008-04-29 Stmicroelectronics Asia Pacific Pte Ltd. Decoder and method of decoding using pseudo two pass decoding and one pass encoding
KR20160040709A (en) * 2013-09-09 2016-04-14 애플 인크. Chroma quantization in video coding

Also Published As

Publication number Publication date
KR102543449B1 (en) 2023-06-14
TW201941615A (en) 2019-10-16
SG10201809263UA (en) 2019-08-27

Similar Documents

Publication Publication Date Title
US8908982B2 (en) Image encoding device and image encoding method
US11445160B2 (en) Image processing device and method for operating image processing device
US10887616B2 (en) Image processing devices having enhanced frame buffer compressors therein
US20210250575A1 (en) Image processing device
CN116489360A (en) Image coding and decoding method and device
US11190810B2 (en) Device and method for compressing image data using quantization parameter and entropy tables
US11153586B2 (en) Image processing device and frame buffer compressor
US20210344900A1 (en) Image processing device
US11735222B2 (en) Frame buffer compressing circuitry and image processing apparatus
KR102543449B1 (en) Image processing device and method for operating image processing device
TWI820063B (en) Image processing device and method for operating image processing device
KR102465206B1 (en) Image processing device
KR101757464B1 (en) Method and Apparatus for Encoding and Method and Apparatus for Decoding
US20220201340A1 (en) Image processing device and method for operating image processing device
TWI795480B (en) Image processing device for performing data decompression and image processing device for performing data compression
US20220201060A1 (en) Image processing device and method for operating image processing device
WO2023138391A1 (en) Coefficient decoding method and apparatus, and image decoder and electronic device

Legal Events

Date Code Title Description
E701 Decision to grant or registration of patent right