TWI820063B - 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
TWI820063B
TWI820063B TW107144252A TW107144252A TWI820063B TW I820063 B TWI820063 B TW I820063B TW 107144252 A TW107144252 A TW 107144252A TW 107144252 A TW107144252 A TW 107144252A TW I820063 B TWI820063 B TW I820063B
Authority
TW
Taiwan
Prior art keywords
component
bits
data
target bits
processing device
Prior art date
Application number
TW107144252A
Other languages
Chinese (zh)
Other versions
TW201941594A (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 南韓商三星電子股份有限公司
Publication of TW201941594A publication Critical patent/TW201941594A/en
Application granted granted Critical
Publication of TWI820063B publication Critical patent/TWI820063B/en

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N19/00Methods or arrangements for coding, decoding, compressing or decompressing digital video signals
    • H04N19/10Methods or arrangements for coding, decoding, compressing or decompressing digital video signals using adaptive coding
    • H04N19/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/186Methods 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 a colour or a chrominance component
    • 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/182Methods 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 a pixel

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Compression Or Coding Systems Of Tv Signals (AREA)
  • Ultra Sonic Daignosis Equipment (AREA)
  • Sewing Machines And Sewing (AREA)
  • Image Processing (AREA)

Abstract

An image processing device and method for operating image processing device are provided. The image processing device includes a multimedia intellectual property (IP) block which processes image data including a first component and a second component; a memory; and a frame buffer compressor (FBC) which compresses the image data to generate compressed data and stores the compressed data in the memory. The frame buffer compressor includes a logic circuit which controls a compression sequence of the first component and the second component of the image data.

Description

影像處理裝置及影像處理裝置的操作方法Image processing device and operating method of the image processing device

本揭露是關於一種影像處理裝置及影像處理裝置的操作方法。The present disclosure relates to an image processing device and an operating method of the image processing device.

越來越多的應用需要高解析度的視訊影像及高圖框率的影像。因此,從藉由影像處理裝置的各種多媒體智慧財產權(Intellectual Property;IP)區塊儲存這些影像的記憶體(亦即,帶寬)存取的資料的量已大大增加。More and more applications require high-resolution video images and high frame rate images. As a result, the amount of data accessed from the memory (ie, bandwidth) used to store these images through various multimedia Intellectual Property (IP) blocks of image processing devices has greatly increased.

每個影像處理裝置的處理能力有限。當帶寬增加時,影像處理裝置的處理能力可能達到此極限。因此,影像處理裝置的使用者可能在記錄或播放視訊影像時經歷速度降低。Each image processing device has limited processing capabilities. When the bandwidth increases, the processing capability of the image processing device may reach this limit. Therefore, users of image processing devices may experience slowdowns when recording or playing back video images.

本揭露的態樣提供一種影像處理裝置,所述影像處理裝置執行具有極佳壓縮品質的影像資料的壓縮。Aspects of the present disclosure provide an image processing device that performs compression of image data with excellent compression quality.

本揭露的另一態樣提供一種影像處理裝置的操作方法,所述影像處理裝置執行具有極佳壓縮品質的影像資料的壓縮。Another aspect of the present disclosure provides a method of operating an image processing device that performs compression of image data with excellent compression quality.

根據本揭露的態樣,提供一種影像處理裝置,所述影像處理裝置包含:多媒體智慧財產權(IP)區塊,經配置以處理包含第一分量及第二分量的影像資料;記憶體;以及圖框緩衝壓縮器(frame buffer compressor;FBC),經配置以壓縮所述影像資料,以生成壓縮資料並將所述壓縮資料儲存於所述記憶體中,其中所述圖框緩衝壓縮器包含邏輯電路,所述邏輯電路經配置以控制所述影像資料的所述第一分量及所述第二分量的壓縮順序。According to aspects of the present disclosure, an image processing device is provided. The image processing device includes: a multimedia intellectual property (IP) block configured to process image data including a first component and a second component; a memory; and an image. A frame buffer compressor (FBC) configured to compress the image data to generate compressed data and store the compressed data in the memory, wherein the frame buffer compressor includes a logic circuit , the logic circuit is configured to control the compression order of the first component and the second component of the image data.

根據本揭露的另一態樣,提供一種影像處理裝置,所述影像處理裝置包含:多媒體智慧財產權(IP)區塊,經配置以處理符合YUV格式的影像資料;記憶體;以及圖框緩衝壓縮器(FBC),經配置以壓縮所述影像資料,以生成壓縮資料並將所述壓縮資料儲存於所述記憶體中,其中所述圖框緩衝壓縮器包含邏輯電路,所述邏輯電路經配置以控制壓縮順序,以使得在壓縮包含所述影像資料的所述YUV格式的Y分量的明度分量之前執行包含所述影像資料的所述YUV格式的Cb分量及Cr分量的色度分量的壓縮。According to another aspect of the present disclosure, an image processing device is provided. The image processing device includes: a multimedia intellectual property (IP) block configured to process image data conforming to the YUV format; a memory; and frame buffer compression. A processor (FBC) configured to compress the image data to generate compressed data and store the compressed data in the memory, wherein the frame buffer compressor includes logic circuitry configured to The compression sequence is controlled so that the chroma components including the Cb component and the Cr component of the YUV format of the image data are compressed before compressing the luminance component including the Y component of the YUV format of the image data.

根據本揭露的另一態樣,提供一種影像處理裝置的操作方法,包含:基於符合YUV格式的影像資料的目標壓縮比來計算總目標位元;計算用於壓縮包含所述YUV格式的Cb分量及Cr分量的色度分量的色度分量目標位元;分配所述色度分量目標位元,以壓縮所述色度分量;使用所述色度分量的壓縮資料的色度分量使用位元來計算包含所述YUV格式的Y分量的明度分量的明度分量目標位元;分配所述明度分量目標位元,以壓縮所述明度分量;以及當所述明度分量的所述壓縮資料的所述明度分量使用位元及所述色度分量使用位元的總和小於所述總目標位元時,在所述明度分量的所述壓縮資料之後添加虛擬位元。According to another aspect of the present disclosure, an operating method of an image processing device is provided, including: calculating the total target bits based on a target compression ratio of image data conforming to the YUV format; calculating a Cb component for compressing the YUV format and the chroma component target bits of the chroma component of the Cr component; allocate the chroma component target bits to compress the chroma component; use the chroma component usage bits of the compressed data of the chroma component to Calculating a luma component target bit including a luma component of the Y component of the YUV format; allocating the luma component target bits to compress the luma component; and when the luma component of the compressed data is When the sum of component usage bits and the chrominance component usage bits is less than the total target bits, dummy bits are added after the compressed data of the luma component.

本揭露的態樣不限於上文所提及的態樣,且所屬領域中具通常知識者根據以下描述清楚地理解未提及的另一態樣。Aspects of the present disclosure are not limited to the above-mentioned aspects, and those with ordinary skill in the art will clearly understand other aspects not mentioned based on the following description.

圖1至圖3是用於解釋根據本發明概念的例示性實施例的影像處理裝置的方塊圖。1 to 3 are block diagrams for explaining an image processing device according to an exemplary embodiment of the inventive concept.

參考圖1,根據本發明概念的例示性實施例的影像處理裝置包含多媒體IP(智慧財產權)100(例如IP區塊以及IP核心、電路等)、圖框緩衝壓縮器(FBC)200(例如電路、數位信號處理器等)、記憶體300以及系統匯流排400。Referring to FIG. 1 , an image processing device according to an exemplary embodiment of the inventive concept includes a multimedia IP (intellectual property) 100 (such as IP blocks and IP cores, circuits, etc.), a frame buffer compressor (FBC) 200 (such as a circuit , digital signal processor, etc.), memory 300 and system bus 400.

在實施例中,多媒體IP 100為影像處理裝置的一部分,其直接執行影像處理裝置的影像處理。多媒體IP 100可包含用於記錄及再現影像(例如視訊影像的攝像編碼及回放)的多個模組。In the embodiment, the multimedia IP 100 is a part of the image processing device, and directly performs image processing of the image processing device. The multimedia IP 100 may include multiple modules for recording and reproducing images, such as camera encoding and playback of video images.

多媒體IP 100從例如攝像機的外部源接收第一資料(例如影像資料),並將第一資料轉換為第二資料。舉例而言,第一資料可為移動影像資料或原始影像資料。第二資料為由多媒體IP 100生成的資料,且可包含由處理第一資料的多媒體IP 100產生的資料。多媒體IP 100可反覆地將第二資料儲存於記憶體300中,並經由多個步驟更新第二資料。第二資料可包含這些步驟中使用的所有資料。第二資料可以第三資料的形式儲存於記憶體300中。因此,第二資料可為在儲存於記憶體300中之前或從記憶體300讀取之後的資料。此將在下文中更詳細地解釋。The multimedia IP 100 receives first data (eg, image data) from an external source, such as a camera, and converts the first data into second data. For example, the first data may be moving image data or original image data. The second data is data generated by the multimedia IP 100 and may include data generated by the multimedia IP 100 that processes the first data. The multimedia IP 100 can repeatedly store the second data in the memory 300 and update the second data through multiple steps. The secondary data can include all data used in these steps. The second data may be stored in the memory 300 in the form of third data. Therefore, the second data may be data before being stored in the memory 300 or after being read from the memory 300 . This is explained in more detail below.

在例示性實施例中,多媒體IP 100包含影像信號處理器ISP 110、振盪校正模組G2D 120、多格式編解碼器MFC 130、GPU 140以及顯示器150。然而,本發明概念不限於此。亦即,多媒體IP 100可包含影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150中之至少一者。多媒體IP 100可藉由處理模組(例如處理器)實施,所述處理模組存取記憶體300以處理表示移動影像或靜態影像的資料。In an exemplary embodiment, the multimedia IP 100 includes an image signal processor ISP 110, an oscillation correction module G2D 120, a multi-format codec MFC 130, a GPU 140, and a display 150. However, the inventive concept is not limited thereto. That is, the multimedia IP 100 may include at least one of the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140, and the display 150. Multimedia IP 100 may be implemented by a processing module (eg, a processor) that accesses memory 300 to process data representing moving images or still images.

影像信號處理器110接收第一資料,並預處理第一資料,以將第一資料轉換為第二資料。在例示性實施例中,第一資料為RGB類型的影像源資料。舉例而言,影像信號處理器110可將RGB類型的第一資料轉換為YUV類型的第二資料。The image signal processor 110 receives the first data and pre-processes the first data to convert the first data into second data. In an exemplary embodiment, the first data is RGB type image source data. For example, the image signal processor 110 may convert the first data of RGB type into the second data of YUV type.

在實施例中,RGB類型的資料意謂表示基於三種光原色的色彩的資料格式。亦即,其為使用三種類型的色彩即紅色(RED)、綠色(GREEN)以及藍色(BLUE)表示影像的類型。對比而言,YUV類型意謂單獨表示亮度的資料類型,亦即,明度信號及色度信號。亦即,Y意謂明度信號,且U(Cb)及V(Cr)分別意謂色度信號。U意謂明度信號與藍色信號分量之間的差,且V意謂明度信號與紅色信號分量之間的差。In embodiments, RGB type data means a data format representing colors based on three primary colors of light. That is, it is a type that expresses images using three types of colors, namely red (RED), green (GREEN), and blue (BLUE). In contrast, the YUV type means a data type that represents brightness alone, that is, a luma signal and a chrominance signal. That is, Y means a brightness signal, and U(Cb) and V(Cr) respectively mean a chrominance 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類型的資料可藉由使用轉換公式轉換RGB類型的資料來獲得。舉例而言,可使用例如Y = 0.3R+0.59G+0.11B、U = (B-Y)x0.493、V = (R-Y)x0.877等轉換公式來將RGB類型的資料轉換為YUV類型的資料。YUV type data can be obtained by converting RGB type data using conversion formulas. For example, you can use conversion formulas such as Y = 0.3R+0.59G+0.11B, U = (B-Y)x0.493, V = (R-Y)x0.877, etc. to convert RGB type data into YUV type data. .

由於人眼對明度信號敏感,而對色彩信號較不敏感,因此相較RGB類型的資料,可更容易壓縮YUV類型的資料。因此,影像信號處理器110可將RGB類型的第一資料轉換為YUV類型的第二資料。Since the human eye is sensitive to brightness signals and less sensitive to color signals, it is easier to compress YUV type data than RGB type data. Therefore, the image signal processor 110 can convert the first data of RGB type into the second data of YUV type.

影像信號處理器110將第一資料轉換為第二資料,並接著將第二資料儲存於記憶體300中。The image signal processor 110 converts the first data into second data, and then stores the second data in the memory 300 .

振盪校正模組120可執行靜態影像資料或移動影像資料的振盪校正。振盪校正模組120可藉由讀取儲存於記憶體300中的第一資料或第二資料來執行振盪校正。在實施例中,振盪校正意謂偵測來自移動影像資料的攝像機的振盪以及移除來自移動影像資料的振盪。The oscillation correction module 120 can perform oscillation correction of static image data or moving image data. The oscillation correction module 120 may perform oscillation correction by reading the first data or the second data stored in the memory 300 . In an embodiment, oscillation correction means detecting oscillations of a camera from moving image data and removing oscillations from moving image data.

振盪校正模組120可校正第一資料或第二資料的振盪,以更新第一資料或第二資料並將經更新資料儲存於記憶體300中。The oscillation correction module 120 can correct the oscillation of the first data or the second data to update the first data or the second data and store the updated data in the memory 300 .

多格式編解碼器130可為壓縮移動影像資料的編解碼器。一般而言,由於移動影像資料的尺寸非常大,因此減小其尺寸的壓縮模組為必需的。移動影像資料可經由多個圖框之間的關聯來壓縮,且此壓縮可藉由多格式編解碼器130執行。多格式編解碼器130可讀取並壓縮儲存於記憶體300中的第一資料或第二資料。The multi-format codec 130 may be a codec for compressing moving image data. Generally speaking, since the size of mobile image data is very large, compression modules that reduce its size are necessary. Moving image data can be compressed through the association between multiple frames, and this compression can be performed by the multi-format codec 130. The multi-format codec 130 can read and compress the first data or the second data stored in the memory 300 .

多格式編解碼器130可壓縮第一資料或第二資料,以生成新的第二資料或更新第二資料,以將其儲存於記憶體300中。The multi-format codec 130 can compress the first data or the second data to generate new second data or update the second data to store it in the memory 300 .

圖形處理單元(Graphics Processing Unit;GPU)140可執行二維圖形或三維圖形的的算術處理及產生。GPU 140可對儲存於記憶體300中的第一資料或第二資料進行算術處理。GPU 140可特定用於圖形資料處理,以並行地處理圖形資料。The Graphics Processing Unit (GPU) 140 can perform arithmetic processing and generation of two-dimensional graphics or three-dimensional graphics. The GPU 140 can perform arithmetic processing on the first data or the second data stored in the memory 300 . The GPU 140 may be specifically used for graphics data processing to process graphics data in parallel.

GPU 140可壓縮第一資料或第二資料,以生成經更新第一資料或經更新第二資料,並將經更新資料儲存於記憶體300中。The GPU 140 may compress the first data or the second data to generate updated first data or updated second data, and store the updated data in the memory 300 .

顯示器150可將儲存於記憶體300中的第二資料顯示在螢幕上。顯示器150可顯示藉由多媒體IP 100的組件處理的影像資料,所述組件為影像信號處理器110、振盪校正模組120、多格式編解碼器130以及GPU 140。然而,本發明概念不限於這些實例。The display 150 can display the second data stored in the memory 300 on the screen. The display 150 may display image data processed by components of the multimedia IP 100, including the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, and the GPU 140. However, the inventive concept is not limited to these examples.

多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150可分別單獨地操作。亦即,影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150可單獨地存取記憶體300,以寫入或讀取資料。The image signal processor 110, oscillation correction module 120, multi-format codec 130, GPU 140 and display 150 of the multimedia IP 100 can operate independently. That is, the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140 and the display 150 can individually access the memory 300 to write or read data.

在實施例中,圖框緩衝壓縮器200壓縮第二資料,以在多媒體IP 100單獨地存取記憶體300之前將第二資料轉換為第三資料。圖框緩衝壓縮器200將第三資料傳輸至多媒體IP 100,且多媒體IP 100將第三資料傳輸至記憶體300。In an embodiment, the frame buffer compressor 200 compresses the second data to convert the second data into third data before the multimedia IP 100 separately accesses the memory 300 . The frame buffer compressor 200 transmits the third data to the multimedia IP 100, and the multimedia IP 100 transmits the third data to the memory 300.

因此,將由圖框緩衝壓縮器200壓縮的第三資料儲存於記憶體300中。相反,儲存於記憶體300中的第三資料可藉由多媒體IP 100加載,並被傳輸至圖框緩衝壓縮器200。在實施例中,圖框緩衝壓縮器200解壓縮第三資料,以將第三資料轉換為第二資料。圖框緩衝壓縮器200可將第二資料(亦即解壓資料)傳輸至多媒體IP 100。Therefore, the third data compressed by the frame buffer compressor 200 is stored in the memory 300 . On the contrary, the third data stored in the memory 300 can be loaded by the multimedia IP 100 and transmitted to the frame buffer compressor 200 . In an embodiment, the frame buffer compressor 200 decompresses the third data to convert the third data into the second data. The frame buffer compressor 200 can transmit the second data (ie, the decompressed data) to the multimedia IP 100 .

在實施例中,每當多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150單獨地存取記憶體300時,圖框緩衝壓縮器200即將第二資料壓縮為第三資料,並將第三資料傳送至記憶體300。舉例而言,在多媒體IP 100的組件中的一個生成第二資料並將第二資料儲存於記憶體300後,圖框緩衝壓縮器200可壓縮所儲存資料,並將壓縮資料儲存至記憶體300中。在實施例中,每次將資料請求自記憶體300傳輸至多媒體IP的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150時,圖框緩衝壓縮器200將第三資料解壓縮為第二資料,並將第二資料分別傳輸至多媒體IP 100的影像資料處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150。In an embodiment, whenever the image signal processor 110 , oscillation correction module 120 , multi-format codec 130 , GPU 140 and display 150 of the multimedia IP 100 individually access the memory 300 , the frame buffer compressor 200 That is, the second data is compressed into third data, and the third data is transferred to the memory 300 . For example, after one of the components of the multimedia IP 100 generates the second data and stores the second data in the memory 300 , the frame buffer compressor 200 can compress the stored data and store the compressed data in the memory 300 middle. In an embodiment, each time a data request is transmitted from the memory 300 to the multimedia IP's image signal processor 110 , oscillation correction module 120 , multi-format codec 130 , GPU 140 and display 150 , the frame buffer compressor 200 decompresses the third data into second data, and transmits the second data to the image data processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140 and the display 150 of the multimedia IP 100 respectively.

記憶體300儲存由圖框緩衝壓縮器200生成的第三資料,且可將所儲存第三資料提供至圖框緩衝壓縮器200,以使得圖框緩衝壓縮器200可解壓縮第三資料。The memory 300 stores the third data generated by the frame buffer compressor 200, and can provide the stored third data to the frame buffer compressor 200, so that the frame buffer compressor 200 can decompress the third data.

在實施例中,多媒體IP 100及記憶體300連接至系統匯流排400。具體而言,多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150可單獨地連接至系統匯流排400。系統匯流排400可為一路徑,多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140、顯示器150以及記憶體300經由所述路徑彼此傳送資料。In an embodiment, multimedia IP 100 and memory 300 are connected to system bus 400 . Specifically, the image signal processor 110 , the oscillation 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 . The system bus 400 may be a path through which the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140, the display 150 and the memory 300 of the multimedia IP 100 transmit data to each other.

圖框緩衝壓縮器200不連接至系統匯流排400,且當多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150分別存取記憶體時,且執行將第二資料轉換為第三資料以及將第三資料轉換為第二資料的操作。The frame buffer compressor 200 is not connected to the system bus 400, and when the image signal processor 110, oscillation correction module 120, multi-format codec 130, GPU 140 and display 150 of the multimedia IP 100 respectively access the memory , and perform operations of converting the second data into third data and converting the third data into second data.

接著,參考圖2,根據本發明概念的例示性實施例的影像處理裝置的圖框緩衝壓縮器200直接連接至系統匯流排400。Next, referring to FIG. 2 , the frame buffer compressor 200 of the image processing device according to an exemplary embodiment of the inventive concept is directly connected to the system bus 400 .

圖框緩衝壓縮器200不直接連接至多媒體IP 100,且經由系統匯流排400連接至多媒體IP 100。具體而言,多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150中的每一者可經由系統匯流排400將資料傳輸至圖框緩衝壓縮器200及從圖框緩衝壓縮器200傳輸資料,且因此可將資料傳輸至記憶體300。The frame buffer compressor 200 is not directly connected to the multimedia IP 100 but is connected to the multimedia IP 100 via the system bus 400 . Specifically, each of the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140 and the display 150 of the multimedia IP 100 can transmit data to the frame buffer via the system bus 400 The compressor 200 transfers data to and from the frame buffer compressor 200 and thus the data can be transferred to the memory 300 .

亦即,在壓縮過程中,多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150中的每一者可經由系統匯流排400將第二資料傳輸至圖框緩衝壓縮器200。接著,圖框緩衝壓縮器200可將第二資料壓縮為第三資料,且經由系統匯流排400將第三資料傳輸至記憶體300。That is, during the compression process, each of the image signal processor 110 , the oscillation correction module 120 , the multi-format codec 130 , the GPU 140 and the display 150 of the multimedia IP 100 can transmit the second video signal to the computer via the system bus 400 The data is transferred to the frame buffer compressor 200. Then, the frame buffer compressor 200 may compress the second data into third data, and transmit the third data to the memory 300 via the system bus 400 .

同樣,即使在解壓縮過程中,圖框緩衝壓縮器200可經由系統匯流排400接收儲存於記憶體300中的第三資料,且可將其解壓縮為第二資料。接著,圖框緩衝壓縮器200可經由系統匯流排400將第二資料傳輸至多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150。Similarly, even during the decompression process, the frame buffer compressor 200 can receive the third data stored in the memory 300 via the system bus 400 and can decompress it into the second data. Then, the frame buffer compressor 200 may transmit the second data to the image signal processor 110, oscillation correction module 120, multi-format codec 130, GPU 140 and display 150 of the multimedia IP 100 via the system bus 400.

參考圖3,在根據本發明概念的例示性實施例的影像處理裝置中,記憶體300及系統匯流排400經由圖框緩衝壓縮器200彼此連接。Referring to FIG. 3 , in an image processing device according to an exemplary embodiment of the inventive concept, a memory 300 and a system bus 400 are connected to each other via a 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 is not directly connected to the system bus 400 , but is only connected to the system bus 400 via the frame buffer compressor 200 . In addition, the image signal processor 110 , oscillation correction module 120 , multi-format codec 130 , GPU 140 and display 150 of the multimedia IP 100 are directly connected to the system bus 400 . Therefore, the image signal processor 110 , oscillation correction module 120 , multi-format codec 130 , GPU 140 and display 150 of the multimedia IP 100 only access the memory 300 through the frame buffer compressor 200 .

在本發明書中,第二資料被稱為影像資料10,且第三資料被稱為壓縮資料20。In the present invention, the second data is called image data 10 and the third data is called compressed data 20 .

圖4是用於詳細解釋圖1至圖3的圖框緩衝壓縮器的方塊圖。FIG. 4 is a block diagram for explaining the frame buffer compressor of FIGS. 1 to 3 in detail.

參考圖4,圖框緩衝壓縮器200包含編碼器210(例如編碼電路)及解碼器220(例如解碼電路)。Referring to FIG. 4 , the frame buffer compressor 200 includes an encoder 210 (eg, encoding circuit) and a decoder 220 (eg, decoding circuit).

編碼器210可從多媒體IP 100接收影像資料10,以生成壓縮資料20。可從多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150中的每一者傳輸影像資料10。可經由多媒體IP 100及系統匯流排400將壓縮資料20傳輸至記憶體300。The encoder 210 may receive the image data 10 from the multimedia IP 100 to generate the compressed data 20 . The image data 10 may be transmitted from each of the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140 and the display 150 of the multimedia IP 100. The compressed data 20 can be transmitted to the memory 300 via the multimedia IP 100 and the system bus 400.

相反,解碼器220可將儲存於記憶體300中的壓縮資料20解壓縮為影像資料10。可將影像資料10傳送至多媒體IP 100。可將影像資料10傳輸至多媒體IP 100的影像信號處理器110、振盪校正模組120、多格式編解碼器130、GPU 140以及顯示器150中的每一者。On the contrary, the decoder 220 can decompress the compressed data 20 stored in the memory 300 into the image data 10 . The image data 10 can be transmitted to the multimedia IP 100. The image data 10 may be transmitted to each of the image signal processor 110, the oscillation correction module 120, the multi-format codec 130, the GPU 140 and the display 150 of the multimedia IP 100.

圖5是用於詳細解釋圖4的編碼器的方塊圖。FIG. 5 is a block diagram for explaining the encoder of FIG. 4 in detail.

參考圖5,編碼器210包含第一模式選擇器219(例如邏輯電路)、預測模組211(例如邏輯電路)、量化模組213(例如邏輯電路)、熵編碼模組215(例如邏輯電路)以及填補模組217(例如邏輯電路)。Referring to FIG. 5 , the encoder 210 includes a first mode selector 219 (eg, a logic circuit), a prediction module 211 (eg, a logic circuit), a quantization module 213 (eg, a logic circuit), and an entropy encoding module 215 (eg, a logic circuit). and padding modules 217 (e.g. logic circuits).

在實施例中,第一模式選擇器219判定編碼器210是否在無損模式或有損模式下操作。當編碼器210根據第一模式選擇器219在無損模式下操作時,沿圖5的無損路徑(Lossless)壓縮影像資料10,且當編碼器210在有損模式下操作時,沿有損路徑(Lossy)壓縮影像資料10。In an embodiment, the first mode selector 219 determines whether the encoder 210 is operating in a lossless mode or a lossy mode. When the encoder 210 operates in the lossless mode according to the first mode selector 219, the image data 10 is compressed along the lossless path (Lossless) of FIG. 5, and when the encoder 210 operates in the lossy mode, the image data 10 is compressed along the lossy path (Lossless). Lossy) compressed image data 10.

第一模式選擇器219可從多媒體IP 100接收信號,其用於判定是否執行無損壓縮或執行有損壓縮。無損壓縮意謂無資料損失的壓縮。壓縮比可視經無損壓縮的資料而變化。不同於無損壓縮,有損壓縮為資料部分損失的壓縮。相較無損壓縮,有損壓縮的壓縮比更高,且可具有提前設定的固定壓縮比。The first mode selector 219 may receive a signal from the multimedia IP 100 for determining whether to perform lossless compression or perform lossy compression. Lossless compression means compression without data loss. The compression ratio may vary depending on the lossless compressed data. Unlike lossless compression, lossy compression is compression in which part of the data is lost. Compared with lossless compression, lossy compression has a higher compression ratio and can have a fixed compression ratio set in advance.

在無損模式的情況下,第一模式選擇器219使得影像資料10能夠沿無損路徑(Lossless)流動至預測模組211、熵編碼模組215以及填補模組217。相反,在有損模式下,第一模式選擇器219使得影像資料10能夠沿有損路徑(Lossy)流動至預測模組211、量化模組213以及熵編碼模組215。In the case of the lossless mode, the first mode selector 219 enables the image data 10 to flow along the lossless path to the prediction module 211, the entropy coding module 215 and the padding module 217. On the contrary, in the lossy mode, the first mode selector 219 enables the image data 10 to flow along the lossy path (Lossy) to the prediction module 211 , the quantization module 213 and the entropy coding module 215 .

預測模組211可藉由將影像資料10分為預測資料及殘餘資料來壓縮影像資料10。預測資料及殘餘資料一起比影像資料10佔據的空間更小。在實施例中,預測資料為影像資料的一個像素的影像資料,且殘餘資料是從與一個像素相鄰的影像資料的像素的預測資料及影像資料之間的差產生。舉例而言,若一個像素的影像資料具有0與255之間的差,則可能需要8個位元來表示此值。當相鄰像素與一個像素的影像資料具有類似值時,相鄰像素中的每一者的殘餘資料比預測資料小得多,且因此可大大減少表示影像資料的資料位元的數目。舉例而言,當具有值253、254以及255的像素為連續的,若預測資料設定為253,則表示(253(預測)、1(殘餘)以及2(殘餘))的殘餘資料為足夠的,且用於表現這些殘餘資料的每個像素的位元的數目可從8位元大大減小為2位元。舉例而言,253、254以及255的資料的24位元歸因於8位元的253 (11111101)的預測資料、254-251 = 1 (01)的2位元的殘餘資料以及255-253=2 (10)的2位元的殘餘資料可減小為12位元。The prediction module 211 can compress the image data 10 by dividing the image data 10 into prediction data and residual data. The prediction data and residual data together occupy less space than the image data 10 . In an embodiment, the prediction data is the image data of one pixel of the image data, and the residual data is generated from the difference between the prediction data and the image data of the pixel of the image data adjacent to one pixel. For example, if a pixel's image data has a difference between 0 and 255, 8 bits may be needed to represent this value. When neighboring pixels have similar values to one pixel's image data, the residual data for each of the neighboring pixels is much smaller than the predicted data, and therefore the number of data bits representing the image data can be greatly reduced. For example, when pixels with values 253, 254, and 255 are consecutive, if the prediction data is set to 253, it means that the residual data of (253 (prediction), 1 (residual), and 2 (residual)) is sufficient, And the number of bits per pixel used to represent these residual data can be greatly reduced from 8 bits to 2 bits. For example, 24 bits of data for 253, 254, and 255 are due to 8 bits of predicted data for 253 (11111101), 2 bits of residual data for 254-251 = 1 (01), and 255-253= The 2-bit residual data of 2(10) can be reduced to 12 bits.

因此,預測模組211可藉由將影像資料10分為預測資料及殘餘資料來壓縮影像資料10的總尺寸。各種方法可用於設定預測資料的類型。Therefore, the prediction module 211 can compress the total size of the image data 10 by dividing the image data 10 into prediction data and residual data. Various methods are available for setting the type of forecast data.

預測模組211可基於像素執行預測,或可基於區塊執行預測。在此情況下,區塊可意謂由多個相鄰像素形成的區域。舉例而言,基於像素的預測可意謂所有殘餘資料從像素中的一個產生,且基於區塊的預測可意謂針對每一區塊從對應於區塊的像素產生殘餘資料。The prediction module 211 may perform prediction on a pixel basis or may perform prediction on a block basis. In this case, a block may mean an area formed by a plurality of adjacent pixels. For example, pixel-based prediction may mean that all residual data is generated from one of the pixels, and block-based prediction may mean that for each block, residual data is generated from the pixel corresponding to the block.

量化模組213可進一步壓縮由預測模組211壓縮的影像資料10。在例示性實施例中,量化模組213經由預設量化係數移除影像資料10的較低位元。具體而言,藉由將資料乘以量化係數來選擇代表值,但藉由截斷小數部分可能發生損失。若像素資料的值在0與28 -1 (= 255)之間,則量化係數可定義為/(2n -1)12(n-1)(其中,n為等於或小於8的整數)。然而,本發明實施例不限於此。舉例而言,若預測資料為253 (11111101),則預測資料可藉由移除較低2位元從8位元減小為6位元,其產生(111111) 252的預測資料。The quantization module 213 can further compress the image data 10 compressed by the prediction module 211 . In an exemplary embodiment, the quantization module 213 removes lower bits of the image data 10 through the preset quantization coefficient. Specifically, representative values are selected by multiplying the data by a quantization coefficient, but losses may occur by truncating the decimal part. If the value of the pixel data is between 0 and 2 8 -1 (= 255), the quantization coefficient can be defined as /(2 n -1)12(n-1) (where n is an integer equal to or less than 8) . However, embodiments of the present invention are not limited thereto. For example, if the prediction data is 253 (11111101), the prediction data can be reduced from 8 bits to 6 bits by removing the lower 2 bits, which results in prediction data of (111111) 252.

然而,經移除較低位元稍後未恢復,且因此丟失。因此,僅在有損模式下採用量化模組213。然而,由於有損模式相較無損模式具有相對更高的壓縮比,且可具有提前設定的固定壓縮比,因此稍後不單獨需要關於壓縮比的資訊。However, the removed lower bits are not later restored and are therefore lost. Therefore, the quantization module 213 is only used in lossy mode. However, since the lossy mode has a relatively higher compression ratio than the lossless mode and can have a fixed compression ratio set in advance, information about the compression ratio is not needed separately later.

熵編碼模組215可壓縮在有損模式下由量化模組213壓縮的影像資料10或在無損模式下經由熵編碼由預測模組211壓縮的影像資料10。在實施例中,熵編碼採用視頻率分配位元的數目的方法。The entropy coding module 215 can compress the image data 10 compressed by the quantization module 213 in the lossy mode or the image data 10 compressed by the prediction module 211 through entropy coding in the lossless mode. In an embodiment, entropy coding uses a number of video rate allocation bits.

在例示性實施例中,熵編碼模組215使用霍夫曼(Huffman)編碼來壓縮影像資料10。在替代實施例中,熵編碼模組215經由指數哥倫布(exponential golomb)編碼或哥倫布萊斯(golomb rice)編碼來壓縮影像資料10。在例示性實施例中,熵編碼模組215根據待壓縮的資料判定熵編碼值(例如k值),根據k值產生圖表,且使用圖表來壓縮影像資料10。In the exemplary embodiment, the entropy coding module 215 uses Huffman coding to compress the image data 10 . In alternative embodiments, the entropy coding module 215 compresses the image data 10 via exponential golomb coding or golomb rice coding. In an exemplary embodiment, the entropy coding module 215 determines the entropy coding value (eg, k value) based on the data to be compressed, generates a graph based on the k value, and uses the graph to compress the image data 10 .

填補模組217可對在無損模式下由熵編碼模組215壓縮的影像資料10執行填補。在本文中,填補可意謂添加無意義的資料以匹配特定尺寸。此將在下文中更詳細地解釋。The padding module 217 can perform padding on the image data 10 compressed by the entropy encoding module 215 in the lossless mode. In this context, padding can mean adding nonsensical material to match specific dimensions. This is explained in more detail below.

可不僅在無損模式下且亦在有損模式下啟用填補模組217。在有損模式下,當由量化模組213壓縮時,影像資料10可比所需壓縮比更進一步壓縮。在此情況下,甚至在有損模式下,影像資料10可經由填補模組217轉換為壓縮資料20,且被傳輸至記憶體300。在例示性實施例中,省略填補模組217,以使得不執行填補。The padding module 217 can be enabled not only in lossless mode but also in lossy mode. In the lossy mode, when compressed by the quantization module 213, the image data 10 may be further compressed than the required compression ratio. In this case, even in lossy mode, the image data 10 can be converted into compressed data 20 through the padding module 217 and transferred to the memory 300 . In the exemplary embodiment, padding module 217 is omitted so that padding is not performed.

壓縮管理模組218控制影像資料10的第一分量及第二分量的壓縮順序。在本文中,影像資料10可為符合YUV格式的影像資料。The compression management module 218 controls the compression sequence of the first component and the second component of the image data 10 . In this article, the image data 10 may be image data conforming to the YUV format.

在此情況下,第一模式選擇器219判定編碼器210在有損模式下操作,且因此影像資料10沿圖5的有損路徑(Lossy)經壓縮。亦即,壓縮管理模組218控制影像資料10的第一分量及第二分量的壓縮順序的配置的以圖框緩衝壓縮器200使用有損壓縮演算法來壓縮影像資料10的情況為前提。In this case, the first mode selector 219 determines that the encoder 210 operates in the lossy mode, and therefore the image data 10 is compressed along the lossy path (Lossy) of FIG. 5 . That is, the compression management module 218 controls the configuration of the compression order of the first component and the second component of the image data 10 based on the situation that the frame buffer compressor 200 uses a lossy compression algorithm to compress the image data 10 .

具體而言,影像資料10可包含第一分量及第二分量。在本文中,第一分量可包含例如包含YUV格式的Y分量的明度分量(對應於前述「亮度信號」),且第二分量可包含例如包含YUV格式的Cb分量及Cr分量的色度分量(對應於前述「色差信號」)。Specifically, the image data 10 may include a first component and a second component. Herein, the first component may include, for example, a luminance component including the Y component of the YUV format (corresponding to the aforementioned "luminance signal"), and the second component may include, for example, a chrominance component including the Cb component and Cr component of the YUV format (corresponding to the aforementioned "luminance signal"). Corresponding to the aforementioned "color difference signal").

壓縮管理模組218判定影像資料10的第一分量及第二分量的壓縮順序,且圖框緩衝壓縮器200根據藉由壓縮管理模組218判定的壓縮順序來解壓縮第一分量及第二分量。The compression management module 218 determines the compression order of the first component and the second component of the image data 10, and the frame buffer compressor 200 decompresses the first component and the second component according to the compression order determined by the compression management module 218. .

亦即,若壓縮管理模組218判定影像資料10的第一分量及第二分量的壓縮順序,則圖框緩衝壓縮器200根據壓縮順序使用編碼器210的預測模組211、量化模組213以及熵編碼模組215來壓縮影像資料10。That is, if the compression management module 218 determines the compression order of the first component and the second component of the image data 10, the frame buffer compressor 200 uses the prediction module 211, the quantization module 213 and the quantization module 213 of the encoder 210 according to the compression order. The entropy coding module 215 is used to compress the image data 10.

其後,圖框緩衝壓縮器200將第一分量的壓縮資料及第二分量的壓縮資料進行合併以生成單個位元流,且可將所生成的單個位元流寫入至記憶體300。此外,圖框緩衝壓縮器200可從記憶體300讀取單個位元流,且可解壓縮讀取的單個位元流,以將解壓資料提供至多媒體IP 100。Thereafter, the frame buffer compressor 200 combines the compressed data of the first component and the compressed data of the second component to generate a single bit stream, and may write the generated single bit stream to the memory 300 . In addition, the frame buffer compressor 200 can read a single bit stream from the memory 300 and decompress the read single bit stream to provide the decompressed data to the multimedia IP 100 .

稍後將參考圖9至圖15描述用於執行此操作的壓縮管理模組218的更多細節。More details of the compression management module 218 for performing this operation will be described later with reference to Figures 9-15.

圖6是用於詳細解釋圖4的解碼器的方塊圖。FIG. 6 is a block diagram for explaining the decoder of FIG. 4 in detail.

參考圖6,解碼器220包含第二模式選擇器229(例如邏輯電路)、未填補模組227(例如邏輯電路)、熵解碼模組225(例如邏輯電路)、逆量化模組223(例如邏輯電路)以及預測補償模組221(例如邏輯電路)。Referring to FIG. 6 , the decoder 220 includes a second mode selector 229 (eg, a logic circuit), an unpadding module 227 (eg, a logic circuit), an entropy decoding module 225 (eg, a logic circuit), an inverse quantization module 223 (eg, a logic circuit). circuit) and the prediction compensation module 221 (such as a logic circuit).

第二模式選擇器229判定儲存於記憶體300中的壓縮資料20是否已通過無損方式或是有損方式被壓縮。在例示性實施例中,第二模式選擇器229經由標頭的存在或不存在判定壓縮資料20已藉由無損模式還是有損模式壓縮。此將在下文中更詳細地解釋。The second mode selector 229 determines whether the compressed data 20 stored in the memory 300 has been compressed in a lossless manner or a lossy manner. In the exemplary embodiment, the second mode selector 229 determines whether the compressed data 20 has been compressed by the lossless mode or the lossy mode via the presence or absence of the header. This is explained in more detail below.

在無損模式的情況下,第二模式選擇器229使得壓縮資料20能夠沿無損路徑(Lossless)流動至未填補模組227、熵解碼模組225以及預測補償模組221。相反,在有損模式的情況下,第二模式選擇器229使得壓縮資料20能夠沿有損路徑(Lossy)流動至熵解碼模組225、逆量化模組223以及預測補償模組221。In the case of the lossless mode, the second mode selector 229 enables the compressed data 20 to flow along the lossless path to the unpadding module 227, the entropy decoding module 225 and the prediction compensation module 221. On the contrary, in the case of lossy mode, the second mode selector 229 enables the compressed data 20 to flow along the lossy path (Lossy) to the entropy decoding module 225 , the inverse quantization module 223 and the prediction compensation module 221 .

未填補模組227移除藉由編碼器210的填補模組217填補的資料的填補部分。當省略填補模組217時,可省略未填補模組227。The unpadded module 227 removes the padded portion of the data padded by the padded module 217 of the encoder 210 . When padding module 217 is omitted, unpadded module 227 may be omitted.

熵解碼模組225可解壓縮由熵編碼模組215壓縮的資料。熵解碼模組225可經由霍夫曼編碼、指數哥倫布編碼或哥倫布萊斯編碼執行解壓縮。由於壓縮資料20包含k值,因此熵解碼模組225可使用k值來執行解碼。The entropy decoding module 225 can decompress data compressed by the entropy encoding module 215 . The entropy decoding module 225 may perform decompression via Huffman coding, Exponential Golomb coding, or Golomb-Rice coding. Since the compressed data 20 includes k values, the entropy decoding module 225 can use the k values to perform decoding.

逆量化模組223可解壓縮由量化模組213壓縮的資料。逆量化模組223可恢復使用藉由量化模組213判定的量化係數來壓縮的壓縮資料20,但完全恢復在壓縮過程中丟失的部分是不可能的。因此,僅在有損模式下採用逆量化模組223。The inverse quantization module 223 can decompress the data compressed by the quantization module 213 . The inverse quantization module 223 can recover the compressed data 20 compressed using the quantization coefficients determined by the quantization module 213, but it is impossible to completely recover the parts lost during the compression process. Therefore, the inverse quantization module 223 is only used in lossy mode.

預測補償模組221可恢復由預測資料表示的資料以及由預測模組211生成的殘餘資料。預測補償模組221可例如將殘餘資料表示(253(預測)、1(殘餘)以及2(殘餘))轉換為253、254以及255。舉例而言,預測補償模組221可藉由將殘餘資料添加至預測資料來恢復資料。The prediction compensation module 221 can recover the data represented by the prediction data as well as the residual data generated by the prediction module 211 . The prediction compensation module 221 may, for example, convert the residual data representations (253 (prediction), 1 (residual), and 2 (residual)) into 253, 254, and 255. For example, the prediction compensation module 221 can restore the data by adding residual data to the prediction data.

預測補償模組221可根據預測模組211恢復以像素或區塊為單位執行的預測。因此,壓縮資料20可經恢復或解壓縮,且可傳輸至多媒體多媒體IP 100。The prediction compensation module 221 can recover predictions performed in units of pixels or blocks according to the prediction module 211 . Therefore, the compressed data 20 can be recovered or decompressed and transmitted to the multimedia IP 100 .

當解壓縮壓縮資料20時,解壓縮管理模組228可執行可恰當地反映由上文參考圖5描述的壓縮管理模組218判定的第一分量及第二分量的合併順序以執行影像資料10的壓縮的工作。When decompressing the compressed data 20 , the decompression management module 228 may execute a merging sequence that appropriately reflects the first and second components determined by the compression management module 218 described above with reference to FIG. 5 to execute the image data 10 of compression work.

根據本發明概念的例示性實施例的影像處理裝置的影像資料10為YUV類型的資料。 舉例而言,YUV類型的資料可具有YUV 420格式或YUV 422格式。The image data 10 of the image processing device according to the exemplary embodiment of the present invention is YUV type data. For example, YUV type data may have YUV 420 format or YUV 422 format.

圖7是用於解釋根據本發明概念的例示性實施例的影像處理裝置的YUV 420格式資料的三種操作模式。FIG. 7 is a diagram for explaining three operating modes of YUV 420 format data of an image processing device according to an exemplary embodiment of the inventive concept.

參考圖1至圖7,圖框緩衝壓縮器200的編碼器210及解碼器220可具有三種操作模式。YUV 420格式的影像資料10可具有16×16大小的亮度信號區塊Y,以及第一色差信號區塊Cb或U以及8×8大小中的每一者的第二色差信號區塊Cr或V。在本文中,每個區塊的大小意謂是否包含按數行及數列佈置的像素,且大小16×16意謂由具有16行及16列的多個像素構成的區塊的大小。Referring to FIGS. 1 to 7 , the encoder 210 and the decoder 220 of the frame buffer compressor 200 may have three operating modes. The image data 10 in the YUV 420 format may have a luminance signal block Y of 16×16 size, and a first color difference signal block Cb or U and a second color difference signal block Cr or V each of 8×8 size. . In this article, the size of each block means whether it contains pixels arranged in several rows and columns, and the size 16×16 means the size of a block composed of multiple pixels with 16 rows and 16 columns.

圖框緩衝壓縮器200可包含三種操作模式,即(1)級聯模式、(2)部分級聯模式以及(3)分離模式。所述三種模式是關於資料的壓縮格式,且可為根據有損模式及無損模式分別判定的操作模式。The frame buffer compressor 200 may include three operating modes, namely (1) cascade mode, (2) partial cascade mode, and (3) separate mode. The three modes are related to the compression format of the data, and can be operating modes determined respectively according to the lossy mode and the lossless mode.

首先,級聯模式(1)為壓縮及解壓縮所有亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr的操作模式。亦即,如圖5中所示,在級聯模式(1)下,壓縮的單元區塊為其中亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr經合併的區塊。因此,壓縮的單元區塊的大小可為16´24。舉例而言,在級聯模式下,所有區塊(例如Y區塊、Cb區塊以及Cr區塊)經合併為單個較大區塊,且對單個較大區塊執行單一壓縮操作。First, the cascade mode (1) is an operation mode for compressing and decompressing all the brightness signal blocks Y, the first color difference signal block Cb, and the second color difference signal block Cr. That is, as shown in FIG. 5 , in the cascade mode (1), the compressed unit block is a unit block in which the brightness signal block Y, the first color difference signal block Cb and the second color difference signal block Cr are combined. block. Therefore, the size of the compressed unit block can be 16'24. For example, in cascade mode, all blocks (eg, Y block, Cb block, and Cr block) are merged into a single larger block, and a single compression operation is performed on the single larger block.

在部分級聯模式(2)下,亮度信號區塊Y分別經壓縮及解壓縮,而第一色差信號區塊Cb及第二色差信號區塊Cr經彼此合併,且可共同地經壓縮及解壓縮。因此,亮度信號區塊Y的原始大小為16´16,且第一色差信號區塊Cb及第二色差信號區塊Cr經合併的區塊為16´8。舉例而言,在部分級聯模式下,8´8 Cr區塊及8´8 Cb區塊經合併為第二區塊,對Y區塊執行第一壓縮操作,且對第二區塊單獨執行第二壓縮操作。In the partial concatenation mode (2), the luminance signal block Y is compressed and decompressed respectively, and the first color difference signal block Cb and the second color difference signal block Cr are combined with each other and can be compressed and decompressed jointly. Compression. Therefore, the original size of the brightness signal block Y is 16'16, and the combined block of the first color difference signal block Cb and the second color difference signal block Cr is 16'8. For example, in partial cascading mode, the 8´8 Cr block and the 8´8 Cb block are merged into the second block, the first compression operation is performed on the Y block, and the second block is performed separately Second compression operation.

分離模式(3)為單獨壓縮及解壓縮所有亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr的操作模式。舉例而言,在分離模式下,對Y區塊執行第一壓縮操作,對Cb區塊執行第二壓縮操作,且對Cr區塊執行第三壓縮操作。在例示性實施例中,為了使壓縮及解壓縮的單元區塊的大小相同,亮度信號區塊Y保持在原始大小16´16,而第一色差信號區塊Cb及第二色差信號區塊Cr增加至16´16的大小。舉例而言,可對Cb區塊及Cr區塊執行放大操作,以使其與Y區塊大小相同。The separation mode (3) is an operation mode in which all the brightness signal blocks Y, the first color difference signal blocks Cb, and the second color difference signal blocks Cr are individually compressed and decompressed. For example, in split mode, a first compression operation is performed on the Y block, a second compression operation is performed on the Cb block, and a third compression operation is performed on the Cr block. In the exemplary embodiment, in order to make the compressed and decompressed unit blocks have the same size, the luminance signal block Y remains at the original size of 16×16, while the first color difference signal block Cb and the second color difference signal block Cr Increases size to 16´16. For example, the Cb block and Cr block can be enlarged so that they are the same size as the Y block.

因此,若亮度信號的區塊Y的數目為N,則第一色差信號區塊Cb的數目及第二色差信號區塊Cr的數目可分別降至N/4。Therefore, if the number of blocks Y of the brightness signal is N, the number of the first color difference signal blocks Cb and the number of the second color difference signal blocks Cr can be reduced to N/4 respectively.

當根據本發明概念的例示性實施例的影像處理裝置的圖框緩衝壓縮器200在級聯模式(1)下操作時,所有所需資料可經由對記憶體300的單個存取請求來讀取。特定言之,當在多媒體IP 100中需要RGB類型的資料而非YUV類型的資料時,圖框緩衝壓縮器200可在級聯模式(1)下更有效地操作。此是因為在級聯模式(1)下同時獲取亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr為可能的,且為了獲取RGB資料,需要所有亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr。When the frame buffer compressor 200 of the image processing device according to an exemplary embodiment of the inventive concept operates in the cascade mode (1), all required data can be read via a single access request to the memory 300 . In particular, the frame buffer compressor 200 may operate more efficiently in the cascade mode (1) when RGB type data is required instead of YUV type data in the multimedia IP 100. This is because it is possible to simultaneously acquire the brightness signal block Y, the first color difference signal block Cb, and the second color difference signal block Cr in the cascade mode (1), and in order to obtain RGB data, all brightness signal blocks are required Y, the first color difference signal block Cb and the second color difference signal block Cr.

當壓縮單元區塊比在級聯模式(1)下變得更小時,分離模式(3)可能需要較低硬體資源。因此,當在多媒體IP 100中需要YUV類型的資料而非RGB類型的資料時,圖框緩衝壓縮器200可在分離模式(3)下更有效地操作。When the compression unit block ratio becomes smaller in cascade mode (1), split mode (3) may require lower hardware resources. Therefore, when YUV type data is required instead of RGB type data in the multimedia IP 100, the frame buffer compressor 200 can operate more efficiently in the split mode (3).

最後,部分級聯模式(2)為在級聯模式(1)與分離模式(3)之間存在折中的模式。即使在需要RGB資料的情況下,部分級聯模式(2)亦比級聯模式(1)需要更低的硬體資源。在部分級聯模式(2)下,對記憶體300的存取請求可比在分離模式(3)下的次數更少(兩倍)。Finally, the partial cascade mode (2) is a mode in which there is a compromise between the cascade mode (1) and the separation mode (3). Even when RGB data is required, some cascade modes (2) require lower hardware resources than cascade modes (1). In partially cascaded mode (2), the number of access requests to memory 300 may be fewer (twice) than in split mode (3).

第一模式選擇器219可選擇在三種模式當中的任一種模式下壓縮影像資料10,所述三種模式亦即級聯模式(1)、部分級聯模式(2)或分離模式(3)。第一模式選擇器219可從多媒體IP 100接收信號,指示圖框緩衝壓縮器200在級聯模式(1)、部分級聯模式(2)以及分離模式(3)的可用模式中的給定一者下操作。The first mode selector 219 can select to compress the image data 10 in any one of three modes, namely concatenation mode (1), partial concatenation mode (2) or separation mode (3). The first mode selector 219 may receive a signal from the multimedia IP 100 instructing the frame buffer compressor 200 to operate in a given one of the available modes of cascaded mode (1), partially cascaded mode (2), and split mode (3). Operate next time.

第二模式選擇器229可根據級聯模式(1)、部分級聯模式(2)以及分離模式(3)當中的第一模式選擇器219的壓縮模式來解壓縮壓縮資料20。舉例而言,若圖框緩衝壓縮器200最近用於在部分級聯模式(2)下壓縮資料,則第二模式選擇器229可假定使用部分級聯模式(2)來壓縮待解壓縮的資料。The second mode selector 229 can decompress the compressed data 20 according to the compression mode of the first mode selector 219 among the cascade mode (1), the partial cascade mode (2) and the separation mode (3). For example, if the frame buffer compressor 200 was recently used to compress data in the partial cascade mode (2), the second mode selector 229 may assume that the partial cascade mode (2) is used to compress the data to be decompressed. .

圖8是用於解釋根據本發明概念的例示性實施例的影像處理裝置的YUV 422格式資料的三種操作模式的概念圖。FIG. 8 is a conceptual diagram for explaining three operating modes of YUV 422 format data of the image processing device according to an exemplary embodiment of the inventive concept.

參考圖1至圖6以及圖8,圖框緩衝壓縮器200的編碼器210及解碼器220亦具有呈YUV 422格式的三種操作模式。YUV 422格式的影像資料10可具有16×16大小的亮度信號區塊Y,以及16×8大小中的每一者的第一色差信號區塊(Cb或U)以及第二色差信號區塊(Cr或V)。Referring to FIGS. 1 to 6 and 8 , the encoder 210 and the decoder 220 of the frame buffer compressor 200 also have three operating modes in the YUV 422 format. The image data 10 in the YUV 422 format may have a luminance signal block Y of 16×16 size, and a first color difference signal block (Cb or U) and a second color difference signal block (Cb or U) each of 16×8 size. Cr or V).

在級聯模式(1)下,壓縮的單元區塊為其中亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr經合併為單個較大區塊的區塊。因此,壓縮的單元區塊的大小可為16×32。In the cascade mode (1), the compressed unit block is a block in which the luminance signal block Y, the first color difference signal block Cb, and the second color difference signal block Cr are merged into a single larger block. Therefore, the size of the compressed unit block may be 16×32.

在部分級聯模式(2)下,亮度信號區塊Y分別經壓縮及解壓縮,而第一色差信號區塊Cb及第二色差信號區塊Cr經彼此合併,且共同地經壓縮及解壓縮。因此,亮度信號區塊Y保持在其原始大小16×16,且其中第一色差信號區塊Cb及第二色差信號區塊Cr經耦合的區塊可為16×16。因此,其中亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr經合併的區塊的大小可相同。In the partial concatenation mode (2), the luminance signal block Y is compressed and decompressed respectively, and the first color difference signal block Cb and the second color difference signal block Cr are merged with each other and compressed and decompressed together. . Therefore, the luminance signal block Y remains at its original size of 16×16, and the block in which the first color difference signal block Cb and the second color difference signal block Cr are coupled may be 16×16. Therefore, the sizes of the merged blocks in which the brightness signal block Y, the first color difference signal block Cb and the second color difference signal block Cr are combined may be the same.

分離模式(3)為單獨壓縮及解壓縮所有亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr的操作模式。 在實施例中,為了使壓縮及解壓縮的單元區塊的大小相同,亮度信號區塊Y保持在原始大小16×16,而第一色差信號區塊Cb及第二色差信號區塊Cr增加至16×16的大小。The separation mode (3) is an operation mode in which all the brightness signal blocks Y, the first color difference signal blocks Cb, and the second color difference signal blocks Cr are individually compressed and decompressed. In the embodiment, in order to make the size of the compressed and decompressed unit blocks the same, the brightness signal block Y remains at the original size of 16×16, while the first color difference signal block Cb and the second color difference signal block Cr are increased to 16×16 size.

因此,當亮度信號區塊Y的數目為N時,第一色差信號區塊Cb的數目及第二色差信號區塊Cr的數目可分別降至N/2。Therefore, when the number of brightness signal blocks Y is N, the number of the first color difference signal blocks Cb and the number of the second color difference signal blocks Cr can be reduced to N/2 respectively.

現將參考圖9至圖15描述上述影像處理裝置的操作。下文描述的影像處理裝置的操作可在上文參考圖7及圖8描述的級聯模式(1)下執行。The operation of the above image processing device will now be described with reference to FIGS. 9 to 15 . The operation of the image processing device described below may be performed in the cascade mode (1) described above with reference to FIGS. 7 and 8 .

圖9至圖11是用於解釋根據本發明概念的例示性實施例的YUV 420格式資料的影像處理裝置的操作的示意圖。9 to 11 are schematic diagrams for explaining the operation of an image processing device for YUV 420 format data according to an exemplary embodiment of the inventive concept.

圖9及圖10示出當影像資料10符合YUV 420格式時,影像資料10的目標壓縮比為50%且色深為8位元的情況。Figures 9 and 10 show that when the image data 10 complies with the YUV 420 format, the target compression ratio of the image data 10 is 50% and the color depth is 8 bits.

參考圖9,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面510Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面510Cb及Cr平面510Cr。Referring to FIG. 9 , the first component (ie, the brightness component) of the image data 10 corresponds to the Y plane 510Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Cb plane of the image data 10 510Cb and Cr flat 510Cr.

就Y平面510Y而言,由於目標壓縮比為50%且色深為8位元,因此明度分量目標位元可計算如下。For Y plane 510Y, since the target compression ratio is 50% and the color depth is 8 bits, the luma component target bits can be calculated as follows.

明度分量目標位元=16×16×8×0.5位元=128×8位元Luminance component target bits = 16 × 16 × 8 × 0.5 bits = 128 × 8 bits

就Cb平面510Cb及Cr平面510Cr而言,Cb平面分量目標位元及Cr平面分量目標位元可計算如下。For the Cb plane 510Cb and the Cr plane 510Cr, the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cb平面分量目標位元=8×8×8×0.5位元=32×8位元Cb plane component target bits = 8×8×8×0.5 bits = 32×8 bits

Cr平面分量目標位元=8×8×8×0.5位元=32×8位元Cr plane component target bits = 8×8×8×0.5 bits = 32×8 bits

因此,藉由合併Cb平面分量目標位元及Cr平面分量目標位元獲得的色度分量目標位元為64×8位元。Therefore, the chrominance component target bits obtained by combining the Cb plane component target bits and the Cr plane component target bits are 64×8 bits.

當基於以此方式計算的目標位元壓縮明度分量及色度分量時,明度分量及色度分量兩者以相同的壓縮比50%壓縮。When the luma component and the chroma component are compressed based on the target bits calculated in this manner, both the luma component and the chroma component are compressed with the same compression ratio of 50%.

對應於壓縮結果的經壓縮位元流512可經形成為具有例如Y分量位元流512Y、Cb分量位元流512Cb以及Cr分量位元流512Cr的順序的單個位元流。然而,本發明概念的範疇不限於此,且圖框緩衝壓縮器200可藉由以與第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序不同的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流512。亦即,經壓縮位元流512中的Y分量位元流512Y、Cb分量位元流512Cb以及Cr分量位元流512Cr的順序可不同於圖9中所示的順序。The compressed bit stream 512 corresponding to the compression result may be formed as a single bit stream in the order, for example, Y component bit stream 512Y, Cb component bit stream 512Cb, and Cr component bit stream 512Cr. However, the scope of the inventive concept is not limited thereto, and the frame buffer compressor 200 may compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. One component of compressed data and a second component of compressed data are combined to generate a compressed bit stream 512 . That is, the order of the Y component bit stream 512Y, the Cb component bit stream 512Cb, and the Cr component bit stream 512Cr in the compressed bit stream 512 may be different from the order shown in FIG. 9 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併,以生成經壓縮位元流512。亦即,可在經壓縮位元流512中例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流512Y、Cb分量位元流512Cb以及Cr分量位元流512Cr。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 interleaves and combines the compressed data of the first component and the compressed data of the second component to generate the compressed bit stream 512 . That is, the Y component bit stream 512Y, Y, Cb component bit stream 512Cb and Cr component bit stream 512Cr.

舉例而言,經壓縮位元流512可以其中影像資料10的第一像素的Y分量位元流、第一像素的Cb分量位元流、第一像素的Cr分量位元流、影像資料的第二像素的Y分量位元流、第二像素的Cb分量位元流以及第二像素的Cr分量位元流經連接的順序來交錯及合併,且亦可通過任意順序判定Y分量、Cb分量以及Cr分量的交錯順序。For example, the compressed bit stream 512 may include the Y component bit stream of the first pixel of the image data 10, the Cb component bit stream of the first pixel, the Cr component bit stream of the first pixel, and the th component bit stream of the image data 10. The Y component bit stream of the two pixels, the Cb component bit stream of the second pixel, and the Cr component bit stream of the second pixel are interleaved and combined in the order of connection, and the Y component, Cb component, and Staggered order of Cr components.

一般而言,人眼對亮度變化比色彩變化更敏感。 因此,在根據YUV格式的影像資料10中,明度分量的重要性可比色度分量更高。Generally speaking, the human eye is more sensitive to brightness changes than color changes. Therefore, in the image data 10 according to the YUV format, the luminance component may be of higher importance than the chrominance component.

然而,當壓縮根據YUV格式的影像資料10時,由於色度分量的像素相關比明度分量更高,因此預測更容易,且因此,色度分量的壓縮效率變得比明度分量更高。However, when compressing image data 10 according to the YUV format, since the pixel correlation of the chroma component is higher than that of the luma component, prediction is easier, and therefore, the compression efficiency of the chroma component becomes higher than that of the luma component.

因此,為了進一步提高藉由壓縮影像資料10獲得的壓縮資料20的品質,可藉由將比具有良好壓縮效率的色度分量更多的位元分配至具有較低壓縮效率的明度分量來應用相對提高壓縮比的方法。Therefore, in order to further improve the quality of the compressed data 20 obtained by compressing the image data 10, relative compression may be applied by allocating more bits to the luma component with lower compression efficiency than the chrominance component with good compression efficiency. Methods to improve compression ratio.

參考圖10,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面520Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面520Cb及Cr平面520Cr。Referring to FIG. 10 , the first component (ie, the brightness component) of the image data 10 corresponds to the Y plane 520Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Cb plane of the image data 10 520Cb and Cr flat 520Cr.

在此實施例中,壓縮管理模組218控制壓縮順序,以使得圖框緩衝壓縮器200首先壓縮色度分量,接著壓縮明度分量。為此目的,壓縮管理模組218在計算明度分量目標位元之前計算色度分量目標位元。In this embodiment, the compression management module 218 controls the compression order such that the frame buffer compressor 200 compresses the chroma component first, followed by the luma component. To this end, the compression management module 218 calculates the chrominance component target bits before calculating the luma component target bits.

就Cb平面520Cb及Cr平面520Cr而言,Cb平面分量目標位元及Cr平面分量目標位元中的每一者可計算如下。For Cb plane 520Cb and Cr plane 520Cr, each of the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cr平面分量目標位元=8×8×8×0.5位元=32×8位元Cr plane component target bits = 8×8×8×0.5 bits = 32×8 bits

Cr平面分量目標位元=8×8×8×0.5位元=32×8位元Cr plane component target bits = 8×8×8×0.5 bits = 32×8 bits

壓縮管理模組218分配色度分量目標位元,以在計算明度分量目標位元之前首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定量化參數(quantization parameter;QP)值及熵k值,以使得色度分量使用位元為小於且最接近色度目標位元的值,由此對色度分量執行壓縮。The compression management module 218 allocates chroma component target bits to perform compression on the chroma component first before calculating the luma component target bits. Specifically, the compression management module 218 determines the quantization parameter (QP) value and the entropy k value, so that the used bits of the chroma component are smaller than and closest to the value of the chroma target bits, thereby adjusting the chroma Components perform compression.

因此,我們假定28×8位元用於對Cb平面分量的壓縮,且30×8位元用於對Cb平面分量的壓縮。亦即,在本發明實施例中,色度分量使用位元((28+30)×8位元)小於色度分量目標位元((32+32)×8)位元)。Therefore, we assume that 28×8 bits are used for compression of the Cb plane component, and 30×8 bits are used for compression of the Cb plane component. That is, in the embodiment of the present invention, the used bits of the chroma component ((28+30)×8 bits) are smaller than the target bits of the chroma component ((32+32)×8) bits).

壓縮管理模組218使用色度分量上的壓縮資料的色度分量使用位元來計算明度分量上的明度分量目標位元。The compression management module 218 uses the chroma component usage bits of the compressed data on the chroma component to calculate the luma component target bits on the luma component.

壓縮管理模組218可計算明度分量目標位元如下。The compression management module 218 may calculate the luma component target bits as follows.

明度分量目標位元=總目標位元-色度分量使用位元=192×8位元-(28+30)×8位元=132×8位元Luminance component target bits = total target bits - chrominance component used bits = 192 × 8 bits - (28 + 30) × 8 bits = 132 × 8 bits

在本文中,就16×16大小的Y平面(520Y)、8×8大小的Cb平面(520Cb)以及8×8大小的Cr平面(520Cr)而言,總目標位元為藉由使總(16+8)×16×0.5=192的大小乘以色深值8獲得的值。此外,0.5意謂目標壓縮比。In this paper, for the 16×16 size Y plane (520Y), the 8×8 size Cb plane (520Cb), and the 8×8 size Cr plane (520Cr), the total target bits are obtained by making the total ( The value obtained by multiplying the size of 192 by the color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,以壓縮明度分量。The compression management module 218 allocates the thus calculated luma component target bits to compress the luma component.

根據此實施例,不同於圖9的包含128位元的Y分量位元流512Y、32位元的Cb分量位元流512Cb以及32位元的Cr分量位元流512Cr的經壓縮位元流512,包含28位元的Cb分量位元流522Cb、30位元的Cr分量位元流522Cr以及134位元的Y分量位元流522Y的經壓縮位元流522變為壓縮結果。According to this embodiment, the compressed bit stream 512 of FIG. 9 includes a 128-bit Y component bit stream 512Y, a 32-bit Cb component bit stream 512Cb, and a 32-bit Cr component bit stream 512Cr. , a compressed bit stream 522 including a 28-bit Cb component bit stream 522Cb, a 30-bit Cr component bit stream 522Cr, and a 134-bit Y component bit stream 522Y becomes the compression result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流522。 亦即,經壓縮位元流522中的Y分量位元流522Y、Cb分量位元流522Cb以及Cr分量位元流522Cr的順序可不同於圖10中所示的順序。As described above, the frame buffer compressor 200 can compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. The two components of compressed data are combined to generate a compressed bit stream 522. That is, the order of the Y component bit stream 522Y, the Cb component bit stream 522Cb, and the Cr component bit stream 522Cr in the compressed bit stream 522 may be different from the order shown in FIG. 10 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併,以生成經壓縮位元流522。亦即,可在經壓縮位元流522中例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流522Y、Cb分量位元流522Cb以及Cr分量位元流522Cr。以此方式,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 interleaves and combines the compressed data of the first component and the compressed data of the second component to generate the compressed bit stream 522 . That is, the Y component bit stream 522Y, Y, Cb component bit stream 522Cb and Cr component bit stream 522Cr. In this way, within the same total target bits, by allocating more bits to luma components with higher importance and relatively lower compression efficiency, and by allocating fewer bits to relatively different colors The degree component can improve the compression quality of the compressed data 20 obtained by compressing the image data 10 .

接著,參考圖11,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面530Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面530 Cb及Cr平面530Cr。Next, referring to FIG. 11 , the first component (ie, the brightness component) of the image data 10 corresponds to the Y plane 530Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Y plane 530Y of the image data 10 . Cb plane 530 Cb and Cr plane 530Cr.

在此實施例中,壓縮管理模組218控制壓縮順序,以使得圖框緩衝壓縮器200首先壓縮色度分量,接著壓縮明度分量。為此目的,壓縮管理模組218在計算明度分量目標位元之前計算色度分量目標位元。然而,與圖10的實施例的不同之處在於,壓縮管理模組218可先前將色度分量的壓縮比設定為例如小於50%的40.625%。In this embodiment, the compression management module 218 controls the compression order such that the frame buffer compressor 200 compresses the chroma component first, followed by the luma component. To this end, the compression management module 218 calculates the chrominance component target bits before calculating the luma component target bits. However, the difference from the embodiment of FIG. 10 is that the compression management module 218 may previously set the compression ratio of the chroma component to, for example, 40.625%, which is less than 50%.

因此,就Cb平面530Cb及Cr平面530Cr而言,Cb平面分量目標位元及Cr平面分量目標位元可計算如下。Therefore, for the Cb plane 530Cb and the Cr plane 530Cr, the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cb平面分量目標位元=8×8×8×0.40625位元=26×8位元Cb plane component target bits=8×8×8×0.40625 bits=26×8 bits

Cr平面分量目標位元=8×8×8×0.40625位元=26×8位元Cr plane component target bits=8×8×8×0.40625 bits=26×8 bits

壓縮管理模組218根據提前設定為例如40.625%的壓縮比首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值符合預設壓縮比,並對色度分量執行壓縮。因此,26×8位元用於壓縮Cb平面分量,且26×8位元用於壓縮Cb平面分量。The compression management module 218 first performs compression on the chroma component according to a compression ratio set in advance to, for example, 40.625%. Specifically, the compression management module 218 determines that the QP value and the entropy k value meet the preset compression ratio, and performs compression on the chroma component. Therefore, 26x8 bits are used to compress the Cb plane component, and 26x8 bits are used to compress the Cb plane component.

壓縮管理模組218可計算明度分量目標位元如下。The compression management module 218 may calculate the luma component target bits as follows.

明度分量目標位元=總目標位元-根據預設壓縮比的色度分量目標位元=192×8位元-(26+26)×8位元=140×8位元Luminance component target bits = total target bits - chrominance component target bits according to the preset compression ratio = 192 × 8 bits - (26 + 26) × 8 bits = 140 × 8 bits

在本文中,就16×16大小的Y平面(530Y)、8×8大小的Cb平面(530Cb)以及8×8大小的Cr平面(530Cr)而言,總目標位元為藉由使總(16+8)×16×0.5=192的大小乘以色深值8獲得的值。此外,0.5意謂目標壓縮比。In this article, for the 16×16 size Y plane (530Y), the 8×8 size Cb plane (530Cb), and the 8×8 size Cr plane (530Cr), the total target bits are obtained by making the total ( The value obtained by multiplying the size of 192 by the color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,以壓縮明度分量。The compression management module 218 allocates the thus calculated luma component target bits to compress the luma component.

因此,在本發明概念的至少一個實施例中,當影像資料10符合YUV 420格式時,可由壓縮管理模組218計算色度分量目標位元為總目標位元/3×W(在本文中,W為等於或小於1的正實數)。 舉例而言,圖11的實施例示出W的值為0.40625的情況。Therefore, in at least one embodiment of the inventive concept, when the image data 10 complies with the YUV 420 format, the chroma component target bits can be calculated by the compression management module 218 as the total target bits/3×W (herein, W is a positive real number equal to or less than 1). For example, the embodiment of FIG. 11 shows a case where the value of W is 0.40625.

根據此實施例,不同於圖9的包含128位元的Y分量位元流512Y、32位元的Cb分量位元流512Cb以及32位元的Cr分量位元流512Cr的經壓縮位元流512,包含26位元的Cb分量位元流532Cb、26位元的Cr分量位元流532Cr以及140位元的Y分量位元流532Y的經壓縮位元流532變為壓縮結果。According to this embodiment, the compressed bit stream 512 of FIG. 9 includes a 128-bit Y component bit stream 512Y, a 32-bit Cb component bit stream 512Cb, and a 32-bit Cr component bit stream 512Cr. , the compressed bit stream 532 including the 26-bit Cb component bit stream 532Cb, the 26-bit Cr component bit stream 532Cr, and the 140-bit Y component bit stream 532Y becomes the compression result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流532。亦即,經壓縮位元流532中的Y分量位元流532Y、Cb分量位元流532Cb以及Cr分量位元流532Cr的順序可不同於圖11中所示的順序。As described above, the frame buffer compressor 200 can compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. The two components of compressed data are combined to generate a compressed bit stream 532. That is, the order of the Y component bit stream 532Y, the Cb component bit stream 532Cb, and the Cr component bit stream 532Cr in the compressed bit stream 532 may be different from the order shown in FIG. 11 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200藉由將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併來生成經壓縮位元流532。亦即,可在經壓縮位元流532內例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流532Y、Cb分量位元流532Cb以及Cr分量位元流532Cr。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 generates the compressed bit stream 532 by interleaving and combining the compressed data of the first component and the compressed data of the second component. That is, the Y component bit stream 532Y, Y, Cb component bit stream 532Cb and Cr component bit stream 532Cr.

如上文所描述,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及具有相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。As described above, within the same total target bits, by allocating more bits to luma components with higher importance and relatively lower compression efficiency, and by allocating fewer bits to relatively different The chrominance component can improve the compression quality of the compressed data 20 obtained by compressing the image data 10 .

圖12至圖14是用於解釋根據本發明概念的例示性實施例的YUV 422格式資料的影像處理裝置的操作的示意圖。12 to 14 are schematic diagrams for explaining the operation of an image processing device for YUV 422 format data according to an exemplary embodiment of the inventive concept.

圖12及圖13示出當影像資料10符合YUV 422格式時,影像資料10的目標壓縮比為50%且色深為8位元的情況。Figures 12 and 13 show that when the image data 10 complies with the YUV 422 format, the target compression ratio of the image data 10 is 50% and the color depth is 8 bits.

參考圖12,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面540Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面540Cb及Cr平面540Cr。Referring to FIG. 12 , the first component (ie, the brightness component) of the image data 10 corresponds to the Y plane 540Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Cb plane of the image data 10 540Cb and Cr flat 540Cr.

就Y平面540Y而言,由於目標壓縮比為50%且色深為8位元,因此明度分量目標位元可計算如下。For Y plane 540Y, since the target compression ratio is 50% and the color depth is 8 bits, the luma component target bits can be calculated as follows.

明度分量目標位元= 16×16×8×0.5位元=128×8位元Luminance component target bits = 16×16×8×0.5 bits = 128×8 bits

就Cb平面540Cb及Cr平面540Cr而言,Cb平面分量目標位元及Cr平面分量目標位元可計算如下。For the Cb plane 540Cb and the Cr plane 540Cr, the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cb平面分量目標位元=16×8×8×0.5位元=64×8位元Cb plane component target bits=16×8×8×0.5 bits=64×8 bits

Cr平面分量目標位元=16×8×8×0.5位元=64×8位元Cr plane component target bits=16×8×8×0.5 bits=64×8 bits

因此,藉由添加Cb平面分量目標位元及Cr平面分量目標位元獲得的色度分量目標位元為128×8位元。Therefore, the chrominance component target bits obtained by adding the Cb plane component target bits and Cr plane component target bits are 128×8 bits.

當基於以此方式計算的目標位元壓縮明度分量及色度分量時,明度分量及色度分量兩者以相同的壓縮比50%壓縮。When the luma component and the chroma component are compressed based on the target bits calculated in this manner, both the luma component and the chroma component are compressed with the same compression ratio of 50%.

對應於壓縮結果的經壓縮位元流542可經形成為具有例如Y分量位元流542Y、Cb分量位元流542Cb以及Cr分量位元流542Cr的順序的單個位元流。然而,本發明概念的範疇不限於此。 舉例而言,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流542。 亦即,經壓縮位元流542中的Y分量位元流542Y、Cb分量位元流542Cb以及Cr分量位元流542Cr的順序可不同於圖12中所示的順序。The compressed bit stream 542 corresponding to the compression result may be formed as a single bit stream in the order, for example, Y component bit stream 542Y, Cb component bit stream 542Cb, and Cr component bit stream 542Cr. However, the scope of the inventive concept is not limited thereto. For example, the frame buffer compressor 200 can compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. The compressed data of the components are combined to generate a compressed bit stream 542. That is, the order of the Y component bit stream 542Y, the Cb component bit stream 542Cb, and the Cr component bit stream 542Cr in the compressed bit stream 542 may be different from the order shown in FIG. 12 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200藉由將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併來生成經壓縮位元流542。亦即,可在經壓縮位元流542中例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流542Y、Cb分量位元流542Cb以及Cr分量位元流542Cr。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 generates the compressed bit stream 542 by interleaving and combining the compressed data of the first component and the compressed data of the second component. That is, the Y component bit stream 542Y, Y, Cb component bit stream 542Cb and Cr component bit stream 542Cr.

舉例而言,經壓縮位元流542可以其中影像資料10的第一像素的Y分量位元流、第一像素的Cb分量位元流、第一像素的Cr分量位元流、影像資料10的第二像素的Y分量位元流、第二像素的Cb分量位元流以及第二像素的Cr分量位元流經連接的順序來交錯及合併,且亦可通過任意順序判定Y分量、Cb分量以及Cr分量的交錯順序。For example, the compressed bit stream 542 may include the Y component bit stream of the first pixel of the image data 10 , the Cb component bit stream of the first pixel, the Cr component bit stream of the first pixel, and the The Y component bit stream of the second pixel, the Cb component bit stream of the second pixel, and the Cr component bit stream of the second pixel are interleaved and combined in the order of connection, and the Y component and Cb component can also be determined in any order. and the staggered order of Cr components.

參考圖13,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面550Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面550 Cb及Cr平面550Cr。Referring to FIG. 13 , the first component (ie, the luminance component) of the image data 10 corresponds to the Y plane 550Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Cb plane of the image data 10 550 Cb and Cr flat 550Cr.

在此實施例中,壓縮管理模組218控制壓縮順序,以使得圖框緩衝壓縮器200首先壓縮色度分量,接著壓縮明度分量。 為此目的,壓縮管理模組218在計算明度分量目標位元之前首先計算色度分量目標位元。In this embodiment, the compression management module 218 controls the compression order such that the frame buffer compressor 200 compresses the chroma component first, followed by the luma component. To this end, the compression management module 218 first calculates the chrominance component target bits before calculating the luma component target bits.

就Cb平面550Cb及Cr平面550Cr而言,Cb平面分量目標位元及Cr平面分量目標位元可計算如下。For the Cb plane 550Cb and the Cr plane 550Cr, the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cb平面分量目標位元=16×8×8×0.5位元=64×8位元Cb plane component target bits=16×8×8×0.5 bits=64×8 bits

Cr平面分量目標位元=16×8×8×0.5位元=64×8位元Cr plane component target bits=16×8×8×0.5 bits=64×8 bits

壓縮管理模組218分配色度分量目標位元,以在計算明度分量目標位元之前首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值,以使得色度分量使用位元變為小於且最接近色度目標位元的值,並對色度分量執行壓縮。The compression management module 218 allocates chroma component target bits to perform compression on the chroma component first before calculating the luma component target bits. Specifically, the compression management module 218 determines the QP value and the entropy k value so that the chrominance component usage bit becomes a value smaller than and closest to the chrominance target bit, and performs compression on the chrominance component.

因此,我們假定62×8位元用於Cb平面分量的壓縮,且60×8位元用於Cb平面分量的壓縮。亦即,在本發明實施例中,色度分量使用位元((62+60)×8位元)小於色度分量目標位元((64+64)0×8)位元)。Therefore, we assume that 62×8 bits are used for compression of the Cb plane component, and 60×8 bits are used for the compression of the Cb plane component. That is, in the embodiment of the present invention, the chroma component usage bits ((62+60)×8 bits) are smaller than the chroma component target bits ((64+64)0×8) bits).

壓縮管理模組218使用色度分量上的壓縮資料的色度分量使用位元來計算明度分量的明度分量目標位元。The compression management module 218 uses the chroma component usage bits of the compressed data on the chroma component to calculate the luma component target bits of the luma component.

壓縮管理模組218現可計算明度分量目標位元如下。The compression management module 218 can now calculate the luma component target bits as follows.

明度分量目標位元=總目標位元-色度分量使用位元=256×8位元-(62+60)×8位元=134×8位元。Luminance component target bits = total target bits - chrominance component used bits = 256 × 8 bits - (62 + 60) × 8 bits = 134 × 8 bits.

在本文中,就16×16大小的Y平面550Y、8×8大小的Cb平面550Cb以及8×8大小的Cr平面550Cr而言,總目標位元為藉由使總大小(16+8+8)×16×0.5=256乘以色深值8獲得的值。此外,0.5意謂目標壓縮比。In this article, for the 16×16 size Y plane 550Y, the 8×8 size Cb plane 550Cb, and the 8×8 size Cr plane 550Cr, the total target bits are obtained by making the total size (16+8+8 )×16×0.5=256 multiplied by the color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,以壓縮明度分量。The compression management module 218 allocates the thus calculated luma component target bits to compress the luma component.

根據本發明實施例,不同於圖12的包含128位元的Y分量位元流542Y、64位元的Cb分量位元流542Cb以及64位元的Cr分量位元流542Cr的經壓縮位元流542,包含62位元的Cb分量位元流552Cb、60位元的Cr分量位元流552Cr以及134位元的Y分量位元流552Y的經壓縮位元流552變為壓縮結果。According to an embodiment of the present invention, different from the compressed bit stream of FIG. 12 including a 128-bit Y component bit stream 542Y, a 64-bit Cb component bit stream 542Cb, and a 64-bit Cr component bit stream 542Cr. 542, the compressed bit stream 552 including the 62-bit Cb component bit stream 552Cb, the 60-bit Cr component bit stream 552Cr, and the 134-bit Y component bit stream 552Y becomes the compression result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流552。亦即,經壓縮位元流552中的Y分量位元流552Y、Cb分量位元流552Cb以及Cr分量位元流552Cr的順序可不同於圖13中所示的順序。As described above, the frame buffer compressor 200 can compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. The two components of compressed data are combined to generate a compressed bit stream 552. That is, the order of the Y component bit stream 552Y, the Cb component bit stream 552Cb, and the Cr component bit stream 552Cr in the compressed bit stream 552 may be different from the order shown in FIG. 13 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200藉由將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併來生成經壓縮位元流552。亦即,可在經壓縮位元流552中例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流552Y、Cb分量位元流552Cb以及Cr分量位元流552Cr。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 generates the compressed bit stream 552 by interleaving and combining the compressed data of the first component and the compressed data of the second component. That is, the Y component bit stream 552Y, Y, Cb component bit stream 552Cb and Cr component bit stream 552Cr.

以此方式,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。In this way, within the same total target bits, by allocating more bits to luma components with higher importance and relatively lower compression efficiency, and by allocating fewer bits to relatively different colors The degree component can improve the compression quality of the compressed data 20 obtained by compressing the image data 10 .

接著,參考圖14,影像資料10的第一分量(亦即明度分量)對應於影像資料10的Y平面560Y,且影像資料10的第二分量(亦即色度分量)對應於影像資料10的Cb平面560Cb及Cr平面560Cr。Next, referring to FIG. 14 , the first component (ie, the brightness component) of the image data 10 corresponds to the Y plane 560Y of the image data 10 , and the second component (ie, the chrominance component) of the image data 10 corresponds to the Y plane 560Y of the image data 10 . Cb plane 560Cb and Cr plane 560Cr.

在本發明實施例中,壓縮管理模組218控制壓縮順序,以使得圖框緩衝壓縮器200首先壓縮色度分量,接著壓縮明度分量。為此目的,壓縮管理模組218在計算明度分量目標位元之前首先計算色度分量目標位元。然而,與圖13的實施例的不同之處為,壓縮管理模組218先前將色度分量的壓縮比設定為例如小於50%的40.625%。In the embodiment of the present invention, the compression management module 218 controls the compression sequence so that the frame buffer compressor 200 first compresses the chroma component and then compresses the luma component. To this end, the compression management module 218 first calculates the chrominance component target bits before calculating the luma component target bits. However, the difference from the embodiment of FIG. 13 is that the compression management module 218 previously set the compression ratio of the chroma component to, for example, 40.625%, which is less than 50%.

因此,就Cb平面560Cb及Cr平面560Cr而言,Cb平面分量目標位元及Cr平面分量目標位元可計算如下。Therefore, for the Cb plane 560Cb and the Cr plane 560Cr, the Cb plane component target bits and Cr plane component target bits can be calculated as follows.

Cb平面分量目標位元=16×8×8×0.40625位元=52×8位元Cb plane component target bits=16×8×8×0.40625 bits=52×8 bits

Cr平面分量目標位元=16×8×8×0.40625位元=52×8位元Cr plane component target bits=16×8×8×0.40625 bits=52×8 bits

壓縮管理模組218根據提前設定為例如40.625%的壓縮比首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值符合預設壓縮比,並對色度分量執行壓縮。因此,52×8位元用於壓縮Cb平面分量,且52×8位元用於壓縮Cb平面分量。The compression management module 218 first performs compression on the chroma component according to a compression ratio set in advance to, for example, 40.625%. Specifically, the compression management module 218 determines that the QP value and the entropy k value meet the preset compression ratio, and performs compression on the chroma component. Therefore, 52x8 bits are used to compress the Cb plane component, and 52x8 bits are used to compress the Cb plane component.

壓縮管理模組218現可計算明度分量目標位元如下。The compression management module 218 can now calculate the luma component target bits as follows.

明度分量目標位元=總目標位元-根據預設壓縮比的色度分量目標位元=256×8位元-(52+52)×8位元=152×8位元。Luminance component target bits = total target bits - chroma component target bits according to the preset compression ratio = 256 × 8 bits - (52 + 52) × 8 bits = 152 × 8 bits.

在本文中,就16×16大小的Y平面560Y、8×8大小的Cb平面560Cb以及8×8大小的Cr平面560Cr而言,總目標位元為藉由使總大小(16+8+8)×8=256乘以色深值8獲得的值。此外,0.5意謂目標壓縮比。In this article, for the 16×16 size Y plane 560Y, the 8×8 size Cb plane 560Cb, and the 8×8 size Cr plane 560Cr, the total target bits are obtained by making the total size (16+8+8 )×8=256 multiplied by the color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,並壓縮明度分量。The compression management module 218 allocates the thus calculated luma component target bits and compresses the luma component.

因此,在本發明概念的至少一個實施例中,當影像資料10符合YUV 422格式時,可由壓縮管理模組218計算色度分量目標位元為總目標位元/2×W(在本文中,W為等於或小於1的正實數)。舉例而言,圖14的實施例示出W的值為0.5的情況。Therefore, in at least one embodiment of the inventive concept, when the image data 10 complies with the YUV 422 format, the chroma component target bits can be calculated by the compression management module 218 as the total target bits/2×W (herein, W is a positive real number equal to or less than 1). For example, the embodiment of FIG. 14 shows a case where the value of W is 0.5.

根據本發明實施例,不同於圖12的包含128位元的Y分量位元流542Y、64位元的Cb分量位元流542Cb以及64位元的Cr分量位元流542Cr的經壓縮位元流542,包含52位元的Cb分量位元流562Cb、52位元的Cr分量位元流562Cr以及152位元的Y分量位元流562Y的經壓縮位元流562變為壓縮結果。According to an embodiment of the present invention, different from the compressed bit stream of FIG. 12 including a 128-bit Y component bit stream 542Y, a 64-bit Cb component bit stream 542Cb, and a 64-bit Cr component bit stream 542Cr. 542, the compressed bit stream 562 including the 52-bit Cb component bit stream 562Cb, the 52-bit Cr component bit stream 562Cr, and the 152-bit Y component bit stream 562Y becomes the compression result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流562。 亦即,經壓縮位元流562中的Y分量位元流562Y、Cb分量位元流562Cb以及Cr分量位元流562Cr的順序可不同於圖14中所示的順序。As described above, the frame buffer compressor 200 can compress the first component (eg, luma component) and the second component (eg, chroma component) in any order different from the compression order. The two components of compressed data are combined to generate a compressed bit stream 562. That is, the order of the Y component bit stream 562Y, the Cb component bit stream 562Cb, and the Cr component bit stream 562Cr in the compressed bit stream 562 may be different from the order shown in FIG. 14 .

在本發明概念的例示性實施例中,圖框緩衝壓縮器200藉由將第一分量的壓縮資料及第二分量的壓縮資料交錯及合併來生成經壓縮位元流562。 亦即,可在經壓縮位元流562中例如以通過任意順序混合以影像資料10的像素為單位重複的Y分量、Cb分量以及Cr分量的位元流的形式生成Y分量位元流562Y、Cb分量位元流562Cb以及Cr分量位元流562Cr。In an exemplary embodiment of the inventive concept, the frame buffer compressor 200 generates the compressed bit stream 562 by interleaving and combining the compressed data of the first component and the compressed data of the second component. That is, the Y component bit stream 562Y, Y, Cb component bit stream 562Cb and Cr component bit stream 562Cr.

以此方式,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。In this way, within the same total target bits, by allocating more bits to luma components with higher importance and relatively lower compression efficiency, and by allocating fewer bits to relatively different colors The degree component can improve the compression quality of the compressed data 20 obtained by compressing the image data 10 .

圖15是示出根據本發明概念的例示性實施例的影像處理裝置的操作方法的流程圖。FIG. 15 is a flowchart illustrating an operating method of an image processing apparatus according to an exemplary embodiment of the inventive concept.

參考圖15,根據本發明概念的例示性實施例的影像處理裝置的操作方法包含計算色度分量的目標位元(S1501)。Referring to FIG. 15 , an operating method of an image processing device according to an exemplary embodiment of the inventive concept includes calculating a target bit of a chrominance component ( S1501 ).

具體而言,在計算色度分量的目標位元之前,影像處理裝置基於符合YUV格式的影像資料10的目標壓縮比來計算總目標位元,且接著計算用於壓縮包含呈YUV格式的Cb分量及Cr分量的色度分量的色度分量目標位元。Specifically, before calculating the target bits of the chrominance component, the image processing device calculates the total target bits based on the target compression ratio of the image data 10 in the YUV format, and then calculates the total target bits for compressing the Cb component including the YUV format. and the chroma component target bit of the chroma component of the Cr component.

此外,所述方法包含分配色度分量目標位元,以壓縮色度分量(S1503)。In addition, the method includes allocating chrominance component target bits to compress the chrominance component (S1503).

另外,所述方法包含獲得色度分量的經壓縮位元的數目(S1505)。色度分量的經壓縮位元的數目可被稱為色度分量的壓縮資料的色度分量使用位元。Additionally, the method includes obtaining the number of compressed bits of the chroma component (S1505). The number of compressed bits of the chroma component may be referred to as chroma component usage bits of the compressed data of the chroma component.

所述方法進一步包含計算明度分量的目標位元(例如明度分量的目標位元)(S1507)。明度分量為呈YUV格式的Y分量。The method further includes calculating a target bit of the luma component (eg, a target bit of the luma component) (S1507). The lightness component is the Y component in YUV format.

此外,所述方法包含分配明度分量目標位元,以壓縮明度分量(S1509)。Additionally, the method includes allocating luma component target bits to compress the luma component (S1509).

此外,當明度分量的壓縮資料的明度分量使用位元及色度分量使用位元的總和小於總目標位元時,所述方法可進一步包含在明度分量的壓縮資料之後添加虛擬位元,In addition, when the sum of the luma component usage bits and the chrominance component usage bits of the compressed data of the luma component is less than the total target bits, the method may further include adding dummy bits after the compressed data of the luma component,

所屬領域中具通常知識者將瞭解,可在實質上不脫離本發明概念的原理的情況下對例示性實施例進行許多變化及修改。Those of ordinary skill in the art will appreciate that many changes and modifications can be made to the illustrative embodiments without materially departing from the principles of the inventive concept.

10‧‧‧影像資料20‧‧‧壓縮資料100‧‧‧多媒體IP110‧‧‧影像信號處理器120‧‧‧振盪校正模組130‧‧‧多格式編解碼器140‧‧‧圖形處理單元150‧‧‧顯示器200‧‧‧圖框緩衝壓縮器210‧‧‧編碼器211‧‧‧預測模組213‧‧‧量化模組215‧‧‧熵編碼模組217‧‧‧填補模組218‧‧‧壓縮管理模組219‧‧‧模式選擇器220‧‧‧解碼器221‧‧‧預測補償模組223‧‧‧逆量化模組225‧‧‧熵解碼模組227‧‧‧未填補模組228‧‧‧解壓縮管理模組229‧‧‧模式選擇器300‧‧‧記憶體400‧‧‧系統匯流排510Cb、520Cb、530Cb、540Cb、550Cb、560Cb‧‧‧Cb平面510Cr、520Cr、530Cr、540Cr、550Cr、560Cr‧‧‧Cr平面510Y、520Y、530Y、540Y、550Y、560Y‧‧‧Y平面512、522、532、542、552、562‧‧‧經壓縮位元流512Cb、522Cb、532Cb、542Cb、552Cb、562Cb‧‧‧Cb分量位元流512Cr、522Cr、532Cr、542Cr、552Cr、562Cr‧‧‧Cr分量位元流512Y、522Y、532Y、542Y、552Y、562Y‧‧‧Y分量位元流S1501‧‧‧步驟S1503‧‧‧步驟S1505‧‧‧步驟S1507‧‧‧步驟S1509‧‧‧步驟10‧‧‧Image data 20‧‧‧Compressed data 100‧‧‧Multimedia IP110‧‧‧Image signal processor 120‧‧‧Oscillation correction module 130‧‧‧Multi-format codec 140‧‧‧Graphics processing unit 150 ‧‧‧Displayer 200‧‧‧Frame buffer compressor 210‧‧‧Encoder 211‧‧‧Prediction module 213‧‧‧Quantization module 215‧‧‧Entropy coding module 217‧‧‧Padding module 218‧ ‧‧Compression management module 219‧‧‧Mode selector 220‧‧‧Decoder 221‧‧‧Prediction compensation module 223‧‧‧Inverse quantization module 225‧‧‧Entropy decoding module 227‧‧‧Unfilled module Group 228‧‧‧Decompression Management Module 229‧‧‧Mode Selector 300‧‧‧Memory 400‧‧‧System Bus 510Cb, 520Cb, 530Cb, 540Cb, 550Cb, 560Cb‧‧‧Cb Planar 510Cr, 520Cr, 530Cr, 540Cr, 550Cr, 560Cr‧‧‧Cr plane 510Y, 520Y, 530Y, 540Y, 550Y, 560Y‧‧‧Y plane 512, 522, 532, 542, 552, 562‧‧‧Compressed bit stream 512Cb, 522Cb , 532Cb, 542Cb, 552Cb, 562Cb‧‧‧Cb component bit stream 512Cr, 522Cr, 532Cr, 542Cr, 552Cr, 562Cr‧‧‧Cr component bit stream 512Y, 522Y, 532Y, 542Y, 552Y, 562Y‧‧ ‧Y Component bit stream S1501‧‧‧Step S1503‧‧‧Step S1505‧‧‧Step S1507‧‧‧Step S1509‧‧‧Step

本發明將藉由參看附圖詳細地描述其例示性實施例而變得更清楚,其中: 圖1至圖3是用於解釋根據本發明概念的一些實施例的影像處理裝置的方塊圖。 圖4是用於詳細解釋圖1至圖3的圖框緩衝壓縮器的方塊圖。 圖5是用於詳細解釋圖4的編碼器的方塊圖。 圖6是用於詳細解釋圖4的解碼器的方塊圖。 圖7是用於解釋根據本發明概念的例示性實施例的影像處理裝置的YUV 420格式資料的三種操作模式的概念圖。 圖8是用於解釋根據本發明概念的例示性實施例的影像處理裝置的YUV 422格式資料的三種操作模式的概念圖。 圖9至圖11是用於解釋根據本發明概念的例示性實施例的YUV 420格式資料的影像處理裝置的操作的示意圖。 圖12至圖14是用於解釋根據本發明概念的例示性實施例的YUV 422格式資料的影像處理裝置的操作的示意圖。 圖15是示出根據本發明概念的例示性實施例的影像處理裝置的操作方法的流程圖。The present invention will become clearer by describing exemplary embodiments thereof in detail with reference to the accompanying drawings, in which: FIGS. 1 to 3 are block diagrams for explaining an image processing apparatus according to some embodiments of the inventive concept. FIG. 4 is a block diagram for explaining the frame buffer compressor of FIGS. 1 to 3 in detail. FIG. 5 is a block diagram for explaining the encoder of FIG. 4 in detail. FIG. 6 is a block diagram for explaining the decoder of FIG. 4 in detail. FIG. 7 is a conceptual diagram for explaining three operating modes of YUV 420 format data of the image processing device according to an exemplary embodiment of the inventive concept. FIG. 8 is a conceptual diagram for explaining three operating modes of YUV 422 format data of the image processing device according to an exemplary embodiment of the inventive concept. 9 to 11 are schematic diagrams for explaining the operation of an image processing device for YUV 420 format data according to an exemplary embodiment of the inventive concept. 12 to 14 are schematic diagrams for explaining the operation of an image processing device for YUV 422 format data according to an exemplary embodiment of the inventive concept. FIG. 15 is a flowchart illustrating an operating method of an image processing apparatus according to an exemplary embodiment of the inventive concept.

100‧‧‧多媒體IP 100‧‧‧Multimedia IP

110‧‧‧影像信號處理器 110‧‧‧Image signal processor

120‧‧‧振盪校正模組 120‧‧‧oscillation correction module

130‧‧‧多格式編解碼器 130‧‧‧Multiple format codecs

140‧‧‧圖形處理單元 140‧‧‧Graphics processing unit

150‧‧‧顯示器 150‧‧‧Monitor

200‧‧‧圖框緩衝壓縮器 200‧‧‧Frame Buffer Compressor

300‧‧‧記憶體 300‧‧‧Memory

400‧‧‧系統匯流排 400‧‧‧System Bus

Claims (19)

一種影像處理裝置,包括:多媒體智慧財產權(IP)區塊,經配置以處理包含第一分量及第二分量的影像資料;記憶體;以及圖框緩衝壓縮器(FBC),經配置以壓縮所述影像資料,以生成壓縮資料並將所述壓縮資料儲存於所述記憶體中,其中所述圖框緩衝壓縮器包含邏輯電路,所述邏輯電路經配置以控制所述影像資料的所述第一分量及所述第二分量的壓縮順序,以使得所述圖框緩衝壓縮器首先壓縮所述第二分量,接著壓縮所述第一分量,其中所述第一分量包含明度分量且所述第二分量包含色度分量。 An image processing device includes: a multimedia intellectual property (IP) block configured to process image data including a first component and a second component; a memory; and a frame buffer compressor (FBC) configured to compress the the image data to generate compressed data and store the compressed data in the memory, wherein the frame buffer compressor includes logic circuitry configured to control the third portion of the image data A compression order of one component and the second component such that the frame buffer compressor first compresses the second component and then compresses the first component, wherein the first component includes a luma component and the third component The two components contain the chrominance component. 如申請專利範圍第1項所述的影像處理裝置,其中在根據藉由所述邏輯電路判定的所述壓縮順序壓縮所述第一分量及所述第二分量之後,所述圖框緩衝壓縮器將所述第一分量的所述壓縮資料與所述第二分量的所述壓縮資料合併以生成單個位元流。 The image processing device as claimed in claim 1, wherein after compressing the first component and the second component according to the compression order determined by the logic circuit, the frame buffer compressor The compressed data of the first component is combined with the compressed data of the second component to generate a single bit stream. 如申請專利範圍第2項所述的影像處理裝置,其中所述圖框緩衝壓縮器以與所述第一分量及所述第二分量的所述壓縮順序不同的任意順序將所述第一分量的所述壓縮資料與所述第二分量的所述壓縮資料合併,以生成所述單個位元流。 The image processing device as claimed in claim 2, wherein the frame buffer compressor compresses the first component in any order different from the compression order of the first component and the second component. The compressed data of the second component are combined with the compressed data of the second component to generate the single bit stream. 如申請專利範圍第2項所述的影像處理裝置,其中所述圖框緩衝壓縮器將所述第一分量的所述壓縮資料及所述第二分量的所述壓縮資料交錯及合併,以生成所述單個位元流。 The image processing device as claimed in claim 2, wherein the frame buffer compressor interleaves and combines the compressed data of the first component and the compressed data of the second component to generate The single bit stream. 如申請專利範圍第1項所述的影像處理裝置,其中所述 影像資料為符合YUV格式的影像資料,所述明度分量包含呈所述YUV格式的Y分量,以及所述色度分量包含呈所述YUV格式的Cb分量及Cr分量。 The image processing device as described in item 1 of the patent application scope, wherein The image data is image data conforming to the YUV format, the brightness component includes the Y component in the YUV format, and the chrominance component includes the Cb component and Cr component in the YUV format. 如申請專利範圍第1項所述的影像處理裝置,其中所述邏輯電路基於所述影像資料的目標壓縮比來計算總目標位元以及所述色度分量的色度分量目標位元,分配所述色度分量目標位元,以壓縮所述色度分量,使用所述色度分量的所述壓縮資料的色度分量使用位元來計算所述明度分量的明度分量目標位元,以及分配所述明度分量目標位元,以壓縮所述明度分量。 The image processing device as claimed in claim 1 of the patent application, wherein the logic circuit calculates the total target bits and the chroma component target bits of the chroma component based on the target compression ratio of the image data, and allocates all the target bits. the chroma component target bits to compress the chroma component, calculate the luma component target bits of the luma component using chroma component usage bits of the compressed data for the chroma component, and allocate the luma component target bits Specifies the luma component target bits to compress the luma component. 如申請專利範圍第6項所述的影像處理裝置,其中所述色度分量使用位元小於所述色度分量目標位元。 The image processing device as claimed in claim 6 of the patent application, wherein the used bits of the chroma component are smaller than the target bits of the chroma component. 如申請專利範圍第6項所述的影像處理裝置,其中,當所述影像資料符合YUV 420格式時,所述色度分量目標位元經設定為所述總目標位元/3×W,其中W為<=1的正實數。 The image processing device as described in item 6 of the patent application, wherein when the image data complies with the YUV 420 format, the chroma component target bits are set to the total target bits/3×W, where W is a positive real number <=1. 如申請專利範圍第6項所述的影像處理裝置,其中,當所述影像資料符合YUV 422格式時,所述色度分量目標位元經設定為所述總目標位元/2×W,其中W為<=1的正實數。 The image processing device as described in item 6 of the patent application, wherein when the image data complies with the YUV 422 format, the chroma component target bits are set to the total target bits/2×W, where W is a positive real number <=1. 如申請專利範圍第6項所述的影像處理裝置,其中藉由從所述總目標位元減去所述色度分量使用位元來計算所述明度分量目標位元。 The image processing device of claim 6, wherein the luma component target bits are calculated by subtracting the chrominance component usage bits from the total target bits. 一種影像處理裝置,包括:多媒體智慧財產權(IP)區塊,經配置以處理符合YUV格式 的影像資料;記憶體;以及圖框緩衝壓縮器(FBC),經配置以壓縮所述影像資料,以生成壓縮資料並將所述壓縮資料儲存於所述記憶體中,其中所述圖框緩衝壓縮器包含邏輯電路,所述邏輯電路經配置以控制壓縮順序,以使得在壓縮包含所述影像資料的所述YUV格式的Y分量的明度分量之前執行對包含所述影像資料的所述YUV格式的Cb分量及Cr分量的色度分量的壓縮。 An image processing device comprising: a multimedia intellectual property (IP) block configured to process a YUV format image data; a memory; and a frame buffer compressor (FBC) configured to compress the image data to generate compressed data and store the compressed data in the memory, wherein the frame buffer The compressor includes logic circuitry configured to control a compression sequence such that compression of the YUV format including the image data is performed before compressing a luma component of the Y component of the YUV format including the image data. Compression of the chrominance component of the Cb component and Cr component. 如申請專利範圍第11項所述的影像處理裝置,其中所述邏輯電路基於所述影像資料的目標壓縮比來計算總目標位元以及所述色度分量的色度分量目標位元,分配所述色度分量目標位元,以壓縮所述色度分量,使用所述色度分量的所述壓縮資料的色度分量使用位元來計算所述明度分量的明度分量目標位元,以及分配所述明度分量目標位元,以壓縮所述明度分量。 The image processing device as claimed in claim 11 of the patent application, wherein the logic circuit calculates the total target bits and the chroma component target bits of the chroma component based on the target compression ratio of the image data, and allocates all the target bits. the chroma component target bits to compress the chroma component, calculate the luma component target bits of the luma component using chroma component usage bits of the compressed data for the chroma component, and allocate the luma component target bits Specifies the luma component target bits to compress the luma component. 如申請專利範圍第12項所述的影像處理裝置,其中所述色度分量使用位元小於所述色度分量目標位元。 The image processing device as claimed in claim 12 of the patent application, wherein the used bits of the chroma component are smaller than the target bits of the chroma component. 如申請專利範圍第13項所述的影像處理裝置,其中所述邏輯電路判定量化參數(QP)值及熵k編碼值,以使得所述色度分量使用位元為小於且最接近所述色度目標位元的值。 The image processing device as described in claim 13 of the patent application, wherein the logic circuit determines a quantization parameter (QP) value and an entropy k encoding value so that the chrominance component uses bits that are smaller than and closest to the chrominance component. The value of the target bit. 如申請專利範圍第12項所述的影像處理裝置,其中,當所述影像資料符合YUV 420格式時,所述色度分量目標位元經設定為所述總目標位元/3×W,其中W為>=1的正實數。 The image processing device as described in item 12 of the patent application, wherein when the image data complies with the YUV 420 format, the chroma component target bits are set to the total target bits/3×W, where W is a positive real number >=1. 如申請專利範圍第12項所述的影像處理裝置,其中,當所述影像資料符合YUV 422格式時,所述色度分量目標位元經設定為所述總目標位元/2×W,其中W為<=1的正實數。 The image processing device as described in item 12 of the patent application, wherein when the image data complies with the YUV 422 format, the chroma component target bits are set to the total target bits/2×W, where W is a positive real number <=1. 如申請專利範圍第12項所述的影像處理裝置,其中藉由從所述總目標位元減去所述色度分量使用位元來計算所述明度分量目標位元。 The image processing device of claim 12, wherein the luma component target bits are calculated by subtracting the chrominance component usage bits from the total target bits. 如申請專利範圍第12項所述的影像處理裝置,其中,當所述明度分量的所述壓縮資料的所述明度分量使用位元及所述色度分量使用位元的總和小於所述總目標位元時,所述邏輯電路在所述明度分量的所述壓縮資料之後添加虛擬位元。 The image processing device as claimed in claim 12 of the patent application, wherein when the sum of the luminance component usage bits and the chrominance component usage bits of the luminance component of the compressed data is less than the total target bits, the logic circuit adds dummy bits after the compressed data of the luma component. 一種影像處理裝置的操作方法,所述方法包括:基於符合YUV格式的影像資料的目標壓縮比來計算總目標位元;計算用於壓縮包含所述YUV格式的Cb分量及Cr分量的色度分量的色度分量目標位元;分配所述色度分量目標位元,以壓縮所述色度分量;使用所述色度分量的壓縮資料的色度分量使用位元來計算包含所述YUV格式的Y分量的明度分量的明度分量目標位元;分配所述明度分量目標位元,以壓縮所述明度分量;以及當所述明度分量的所述壓縮資料的所述明度分量使用位元及所述色度分量使用位元的總和小於所述總目標位元時,在所述明度分量的所述壓縮資料之後添加虛擬位元。An operating method of an image processing device, the method includes: calculating the total target bits based on the target compression ratio of image data conforming to the YUV format; calculating the chroma component for compressing the Cb component and Cr component of the YUV format The chroma component target bits; allocate the chroma component target bits to compress the chroma component; use the chroma component usage bits of the compressed data of the chroma component to calculate the YUV format containing a luma component target bit of the luma component of the Y component; allocating the luma component target bits to compress the luma component; and when the luma component of the compressed data uses bits of the luma component and the When the sum of bits used by the chroma component is less than the total target bits, dummy bits are added after the compressed data of the luma component.
TW107144252A 2018-01-26 2018-12-10 Image processing device and method for operating image processing device TWI820063B (en)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
KR20180010128 2018-01-26
KR10-2018-0010128 2018-01-26
KR1020180041786A KR102523959B1 (en) 2018-01-26 2018-04-10 Image processing device and method for operating image processing device
KR10-2018-0041786 2018-04-10

Publications (2)

Publication Number Publication Date
TW201941594A TW201941594A (en) 2019-10-16
TWI820063B true TWI820063B (en) 2023-11-01

Family

ID=67615965

Family Applications (1)

Application Number Title Priority Date Filing Date
TW107144252A TWI820063B (en) 2018-01-26 2018-12-10 Image processing device and method for operating image processing device

Country Status (3)

Country Link
KR (1) KR102523959B1 (en)
SG (1) SG10201810709TA (en)
TW (1) TWI820063B (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US11494869B2 (en) * 2020-09-30 2022-11-08 Realtek Semiconductor Corporation Image processor having a compressing engine performing operations on each row of M*N data block

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110206289A1 (en) * 2010-02-22 2011-08-25 Salih Dikbas Guaranteed-Rate Tiled Image Data Compression

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8401071B2 (en) * 2007-12-19 2013-03-19 Sony Corporation Virtually lossless video data compression

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20110206289A1 (en) * 2010-02-22 2011-08-25 Salih Dikbas Guaranteed-Rate Tiled Image Data Compression

Also Published As

Publication number Publication date
SG10201810709TA (en) 2019-08-27
KR102523959B1 (en) 2023-04-20
TW201941594A (en) 2019-10-16
KR20190091179A (en) 2019-08-05

Similar Documents

Publication Publication Date Title
JP4855418B2 (en) Color video encoding and decoding method and apparatus using correlation of color difference components
US11445160B2 (en) Image processing device and method for operating image processing device
JP2017184250A (en) Apparatus and method for decoding using coefficient compression
US10887616B2 (en) Image processing devices having enhanced frame buffer compressors therein
US11991347B2 (en) Image processing device
US20210250575A1 (en) Image processing device
EP1292152B1 (en) Image processing apparatus, and image processing method
TWI820063B (en) Image processing device and method for operating image processing device
US11190810B2 (en) Device and method for compressing image data using quantization parameter and entropy tables
KR20200065367A (en) Image processing device and frame buffer compressor
US11735222B2 (en) Frame buffer compressing circuitry and image processing apparatus
KR102543449B1 (en) Image processing device and method for operating image processing device
TWI827579B (en) Image processing device
TWI846680B (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
US12052307B2 (en) Image processing device and method for operating image processing device
JP2023008624A (en) Imaging apparatus and control method thereof and program
TW202007151A (en) Circuit and method of image compression
JP2020141377A (en) Image encoding device, image decoding device, imaging device, image encoding method, image decoding method, and program