[go: up one dir, main page]

TW201941594A - 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
TW201941594A
TW201941594A TW107144252A TW107144252A TW201941594A TW 201941594 A TW201941594 A TW 201941594A TW 107144252 A TW107144252 A TW 107144252A TW 107144252 A TW107144252 A TW 107144252A TW 201941594 A TW201941594 A TW 201941594A
Authority
TW
Taiwan
Prior art keywords
component
bit
data
target bit
image processing
Prior art date
Application number
TW107144252A
Other languages
Chinese (zh)
Other versions
TWI820063B (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)
  • Image Processing (AREA)
  • Ultra Sonic Daignosis Equipment (AREA)
  • Sewing Machines And Sewing (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 method for operating image processing device

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

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

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

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

本揭露的另一態樣提供一種影像處理裝置的操作方法,所述影像處理裝置執行具有極佳壓縮品質的影像資料的壓縮。Another aspect of the present disclosure provides an operation method of an image processing apparatus 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 a map 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 a 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; memory; and frame buffer compression A buffer (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, and the logic circuit is configured The compression order is controlled so that the compression of the chrominance component of the Cb component and the Cr component of the YUV format including the image data is performed before the luminance component of the Y component of the YUV format including the image data is compressed.

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

本揭露的態樣不限於上文所提及的態樣,且所屬領域中具通常知識者根據以下描述清楚地理解未提及的另一態樣。The aspect of the present disclosure is not limited to the aspect mentioned above, and a person with ordinary knowledge in the art clearly understands another aspect not mentioned according to the following description.

圖1至圖3是用於解釋根據本發明概念的例示性實施例的影像處理裝置的方塊圖。1 to 3 are block diagrams for explaining an image processing apparatus 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 multimedia IP (Intellectual Property Right) 100 (eg, IP blocks and IP cores, circuits, etc.), frame buffer compressor (FBC) 200 (eg, circuits , Digital signal processor, etc.), memory 300 and system bus 400.

在實施例中,多媒體IP 100為影像處理裝置的一部分,其直接執行影像處理裝置的影像處理。多媒體IP 100可包含用於記錄及再現影像(例如視訊影像的攝像編碼及回放)的多個模組。In an embodiment, the multimedia IP 100 is a part of an image processing device, which directly performs image processing of the image processing device. The multimedia IP 100 may include a plurality of modules for recording and reproducing images, such as camera coding 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, video 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 second data may contain all the data used in these steps. The second data may be stored in the memory 300 in the form of the 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 will be 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 the 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 an image signal processor 110, an oscillation correction module 120, a multi-format codec 130, a GPU 140, and a display 150. The multimedia IP 100 may be implemented by a processing module (such as a processor) that accesses the memory 300 to process data representing a moving image or a still image.

影像信號處理器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 the 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 the RGB type into the second data of the YUV type.

在實施例中,RGB類型的資料意謂表示基於三種光原色的色彩的資料格式。亦即,其為使用三種類型的色彩即紅色(RED)、綠色(GREEN)以及藍色(BLUE)表示影像的類型。對比而言,YUV類型意謂單獨表示亮度的資料類型,亦即,明度信號及色度信號。亦即,Y意謂明度信號,且U(Cb)及V(Cr)分別意謂色度信號。U意謂明度信號與藍色信號分量之間的差,且V意謂明度信號與紅色信號分量之間的差。In the embodiment, the RGB type data means a data format representing colors based on the three primary colors of light. That is, it uses three types of colors, namely red (RED), green (GREEN), and blue (BLUE) to indicate the type of image. In contrast, the YUV type means a data type that separately represents brightness, that is, a luminance signal and a chrominance signal. That is, Y means a luma signal, and U (Cb) and V (Cr) respectively mean a chroma signal. U means the difference between the lightness signal and the blue signal component, and V means the difference between the lightness 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 a conversion formula. For example, conversion formulas such as Y = 0.3R + 0.59G + 0.11B, U = (BY) x0.493, V = (RY) x0.877 can be used to convert RGB data to YUV data .

由於人眼對明度信號敏感,而對色彩信號較不敏感,因此相較RGB類型的資料,可更容易壓縮YUV類型的資料。因此,影像信號處理器110可將RGB類型的第一資料轉換為YUV類型的第二資料。Since the human eye is sensitive to lightness 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 the RGB type into the second data of the YUV type.

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

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

振盪校正模組120可校正第一資料或第二資料的振盪,以更新第一資料或第二資料並將經更新資料儲存於記憶體300中。The oscillation correction module 120 may 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. In general, since the size of moving image data is very large, a compression module that reduces its size is necessary. The moving image data can be compressed through 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 may 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可特定用於圖形資料處理,以並行地處理圖形資料。A graphics processing unit (GPU) 140 may perform arithmetic processing and generation of two-dimensional graphics or three-dimensional graphics. The GPU 140 may 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 may display the second data stored in the memory 300 on the screen. The display 150 may display image data processed by the components of the multimedia IP 100, which are an image signal processor 110, an oscillation correction module 120, a multi-format codec 130, and a 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 video 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 be separately operated. 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 the 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. In contrast, 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 may transmit the second data (that is, 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 the embodiment, whenever the video 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 individually access the memory 300, the frame buffer compressor 200 That is, the second data is compressed into the third data, and the third data is transmitted 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 to the memory 300. in. In the embodiment, each time a data request is transmitted from the memory 300 to 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, 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 may 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 the embodiment, the multimedia IP 100 and the memory 300 are connected to the 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 separately connected to the system bus 400. The system bus 400 may be a path, and 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 through the path.

圖框緩衝壓縮器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, the oscillation correction module 120, the multi-format codec 130, the GPU 140, and the display 150 of the multimedia IP 100 respectively access the memory , And perform operations of converting the second data into the third data and converting the third data into the second data.

接著,參考圖2,根據本發明概念的例示性實施例的影像處理裝置的圖框緩衝壓縮器200直接連接至系統匯流排400。Next, referring to FIG. 2, the frame buffer compressor 200 of the image processing apparatus 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, and 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 and the frame buffer compressor 200 transmit data, and thus the data can be transmitted 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 may transfer the second through the system bus 400. The data is transmitted to the frame buffer compressor 200. Then, the frame buffer compressor 200 can compress the second data into the 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 may receive the third data stored in the memory 300 via the system bus 400 and may decompress it into the second data. Then, the frame buffer compressor 200 can transmit the second data to 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 via the system bus 400.

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

在本發明書中,第二資料被稱為影像資料10,且第三資料被稱為壓縮資料20。In the present specification, the second data is referred to as video data 10 and the third data is referred to as 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, an encoding circuit) and a decoder 220 (eg, a 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 can 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中的每一者。Instead, 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 can 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 (such as a logic circuit), a prediction module 211 (such as a logic circuit), a quantization module 213 (such as a logic circuit), and an entropy coding module 215 (such as a logic circuit). And filling module 217 (such as a logic circuit).

在實施例中,第一模式選擇器219判定編碼器210是否在無損模式或有損模式下操作。當編碼器210根據第一模式選擇器219在無損模式下操作時,沿圖5的無損路徑(Lossless)壓縮影像資料10,且當編碼器210在有損模式下操作時,沿有損路徑(Lossy)壓縮影像資料10。In an embodiment, the first mode selector 219 determines whether the encoder 210 operates 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 of FIG. 5, and when the encoder 210 operates in the lossy mode, it follows the lossy path ( Lossy) compressed image data10.

第一模式選擇器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 loss of data. The compression ratio can vary depending on the lossless compressed data. Different from lossless compression, lossy compression is the loss of data. 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 to the prediction module 211, the entropy encoding module 215, and the padding module 217 along a lossless path. In contrast, in the lossy mode, the first mode selector 219 enables the image data 10 to flow along the lossy path 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 the residual data together occupy less space than the image data10. In an embodiment, the prediction data is image data of one pixel of the image data, and the residual data is generated from the difference between the prediction data of the pixels of the image data adjacent to one pixel and the image data. For example, if the image data of a pixel has a difference between 0 and 255, it may take 8 bits to represent this value. When the adjacent pixel and the image data of one pixel have similar values, the residual data of each of the adjacent 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 the pixels with values of 253, 254, and 255 are continuous, if the prediction data is set to 253, it means that (253 (forecast), 1 (residual), and 2 (residual)) residual data 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, the 24-bit data of 253, 254, and 255 are attributed to the 8-bit forecast of 253 (11111101), the 2-bit residual data of 254-251 = 1 (01), and 255-253 = 2 (10) 2-bit residual data 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 can be used to set the type of prediction data.

預測模組211可基於像素執行預測,或可基於區塊執行預測。在此情況下,區塊可意謂由多個相鄰像素形成的區域。舉例而言,基於像素的預測可意謂所有殘餘資料從像素中的一個產生,且基於區塊的預測可意謂針對每一區塊從對應於區塊的像素產生殘餘資料。The prediction module 211 may perform prediction based on pixels, or may perform prediction based on blocks. 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 residual data is generated for each block from the pixels 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 the exemplary embodiment, the quantization module 213 removes the lower bits of the image data 10 via a preset quantization coefficient. Specifically, the representative value is selected by multiplying the data by the quantization coefficient, but a loss 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, the 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 (111111) 252 prediction data.

然而,經移除較低位元稍後未恢復,且因此丟失。因此,僅在有損模式下採用量化模組213。然而,由於有損模式相較無損模式具有相對更高的壓縮比,且可具有提前設定的固定壓縮比,因此稍後不單獨需要關於壓縮比的資訊。However, the removed lower bits were not recovered later, and were therefore lost. Therefore, the quantization module 213 is used only in the lossy mode. However, since the lossy mode has a relatively higher compression ratio than the lossless mode and may have a fixed compression ratio set in advance, information on the compression ratio is not required 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 a lossy mode or the image data 10 compressed by the prediction module 211 through the entropy coding in a lossless mode. In an embodiment, the entropy coding uses a method of assigning the number of bits to a video rate.

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

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

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

壓縮管理模組218控制影像資料10的第一分量及第二分量的壓縮順序。在本文中,影像資料10可為符合YUV格式的影像資料。The compression management module 218 controls the compression order of the first component and the second component of the image data 10. Herein, 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 a lossy mode, and thus the image data 10 is compressed along the lossy path (Lossy) of FIG. 5. That is, the compression management module 218 controls the arrangement of the compression order of the first component and the second component of the image data 10 on the premise that the frame buffer compressor 200 uses the 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 lightness component (corresponding to the aforementioned “luminance signal”) including a Y component in the YUV format, and the second component may include, for example, a chroma component including the Cb component and the Cr component in the YUV format ( (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 and second components of the image data 10, the frame buffer compressor 200 uses the prediction module 211, quantization module 213, and 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 the generated single bit stream can be written into the memory 300. In addition, the frame buffer compressor 200 can read a single bit stream from the memory 300, and can 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 FIGS. 9 to 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 (such as a logic circuit), an unfilled module 227 (such as a logic circuit), an entropy decoding module 225 (such as a logic circuit), and an inverse quantization module 223 (such as a logic Circuit) and predictive 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 in a lossless mode or a lossy mode via the presence or absence of a header. This will be 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 unfilled module 227, the entropy decoding module 225, and the prediction compensation module 221. In contrast, in the case of a 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 unfilled module 227 removes the padded portion of the data filled by the padded module 217 of the encoder 210. When the filling module 217 is omitted, the unfilled module 227 may be omitted.

熵解碼模組225可解壓縮由熵編碼模組215壓縮的資料。熵解碼模組225可經由霍夫曼編碼、指數哥倫布編碼或哥倫布萊斯編碼執行解壓縮。由於壓縮資料20包含k值,因此熵解碼模組225可使用k值來執行解碼。The entropy decoding module 225 can decompress the data compressed by the entropy encoding module 215. The entropy decoding module 225 may perform decompression via Huffman coding, exponential Columbus coding, or Columbus coding. Since the compressed data 20 includes a k value, the entropy decoding module 225 may use the k value 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 coefficient determined by the quantization module 213, but it is impossible to completely recover the part lost during the compression process. Therefore, the inverse quantization module 223 is used only in the lossy mode.

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

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

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

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

圖7是用於解釋根據本發明概念的例示性實施例的影像處理裝置的YUV 420格式資料的三種操作模式。FIG. 7 is a diagram for explaining three operation modes of a YUV 420 format material of an image processing apparatus 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 operation modes. The image data 10 in 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 of each of 8 × 8 sizes. . In this article, the size of each block means whether or not pixels are arranged in rows and columns, and the size of 16 × 16 means the size of a block composed of multiple pixels having 16 rows and 16 columns.

圖框緩衝壓縮器200可包含三種操作模式,即(1)級聯模式、(2)部分級聯模式以及(3)分離模式。所述三種模式是關於資料的壓縮格式,且可為根據有損模式及無損模式分別判定的操作模式。The frame buffer compressor 200 may include three operation modes, namely (1) cascade mode, (2) partial cascade mode, and (3) separate mode. The three modes are about the compression format of the data, and may be operation modes that are respectively determined 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 luminance 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 combination of a luminance signal block Y, a first color difference signal block Cb, and a second color difference signal block Cr. Block. Therefore, the size of the compressed unit block can be 16´24. For example, in the cascade mode, all blocks (such as Y block, Cb block, and Cr block) are combined 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 cascade 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 can be collectively compressed and decompressed compression. Therefore, the original size of the luminance 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 the partial cascade mode, 8´8 Cr block and 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 of compressing and decompressing all the luminance signal blocks Y, the first color difference signal block Cb, and the second color difference signal block Cr separately. For example, in the 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 the same size, the luminance signal block Y is maintained at the original size of 16´16, and the first color difference signal block Cb and the second color difference signal block Cr Increase to 16´16 size. For example, the Cb block and the Cr block can be enlarged to make them the same size as the Y block.

因此,若亮度信號的區塊Y的數目為N,則第一色差信號區塊Cb的數目及第二色差信號區塊Cr的數目可分別降至N/4。Therefore, if the number of blocks Y of the luminance 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 apparatus 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, when RGB-type data is needed instead of YUV-type data in the multimedia IP 100, the frame buffer compressor 200 can operate more efficiently in the cascade mode (1). This is because it is possible to obtain the luminance signal block Y, the first color difference signal block Cb, and the second color difference signal block Cr at the same time in the cascade mode (1), and in order to obtain RGB data, all the luminance signal blocks Y, a first color difference signal block Cb, and a second color difference signal block Cr.

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

最後,部分級聯模式(2)為在級聯模式(1)與分離模式(3)之間存在折中的模式。即使在需要RGB資料的情況下,部分級聯模式(2)亦比級聯模式(1)需要更低的硬體資源。在部分級聯模式(2)下,對記憶體300的存取請求可比在分離模式(3)下的次數更少(兩倍)。Finally, part of the cascade mode (2) is a mode where 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 mode (1). In the partial cascade mode (2), the access request to the memory 300 may be fewer (twice) times than in the detached 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, that is, a cascade mode (1), a partial cascade mode (2), or a separate mode (3). The first mode selector 219 may receive a signal from the multimedia IP 100, and instruct the frame buffer compressor 200 to give a given one of the available modes of the cascade mode (1), the partial cascade mode (2), and the split mode (3) Person to operate.

第二模式選擇器229可根據級聯模式(1)、部分級聯模式(2)以及分離模式(3)當中的第一模式選擇器219的壓縮模式來解壓縮壓縮資料20。舉例而言,若圖框緩衝壓縮器200最近用於在部分級聯模式(2)下壓縮資料,則第二模式選擇器229可假定使用部分級聯模式(2)來壓縮待解壓縮的資料。The second mode selector 229 may 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 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 operation modes of a YUV 422 format material of an image processing apparatus 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 FIG. 1 to FIG. 6 and FIG. 8, the encoder 210 and the decoder 220 of the frame buffer compressor 200 also have three operation modes in the YUV 422 format. The YUV 422 format image data 10 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).

在級聯模式(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 combined into a single larger block. Therefore, the size of the compressed unit block can be 16 × 32.

在部分級聯模式(2)下,亮度信號區塊Y分別經壓縮及解壓縮,而第一色差信號區塊Cb及第二色差信號區塊Cr經彼此合併,且共同地經壓縮及解壓縮。因此,亮度信號區塊Y保持在其原始大小16×16,且其中第一色差信號區塊Cb及第二色差信號區塊Cr經耦合的區塊可為16×16。因此,其中亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr經合併的區塊的大小可相同。In the partial cascade 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 are collectively compressed and decompressed. . Therefore, the luminance signal block Y is maintained 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 size of the combined block of the luminance signal block Y, the first color difference signal block Cb, and the second color difference signal block Cr may be the same.

分離模式(3)為單獨壓縮及解壓縮所有亮度信號區塊Y、第一色差信號區塊Cb以及第二色差信號區塊Cr的操作模式。 在實施例中,為了使壓縮及解壓縮的單元區塊的大小相同,亮度信號區塊Y保持在原始大小16×16,而第一色差信號區塊Cb及第二色差信號區塊Cr增加至16×16的大小。The separation mode (3) is an operation mode of compressing and decompressing all the luminance signal blocks Y, the first color difference signal block Cb, and the second color difference signal block Cr separately. In the embodiment, in order to make the compressed and decompressed unit blocks the same size, the luminance signal block Y is maintained at the original size of 16 × 16, and 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 the luminance 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 image processing apparatus described above will now be described with reference to FIGS. 9 to 15. The operation of the image processing apparatus 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 diagrams for explaining an operation of an image processing apparatus for YUV 420 format data according to an exemplary embodiment of the inventive concept.

圖9及圖10示出當影像資料10符合YUV 420格式時,影像資料10的目標壓縮比為50%且色深為8位元的情況。FIGS. 9 and 10 show the case where the image data 10 conforms to 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 lightness component) of the image data 10 corresponds to the Y plane 510Y of the image data 10, and the second component (ie, the chroma component) of the image data 10 corresponds to the Cb plane of the image data 10 510Cb and Cr plane 510Cr.

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

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

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

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

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

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

當基於以此方式計算的目標位元壓縮明度分量及色度分量時,明度分量及色度分量兩者以相同的壓縮比50%壓縮。When the lightness component and the chroma component are compressed based on the target bit calculated in this way, both the lightness component and the chroma component are compressed at 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 having an order of, for example, a Y component bit stream 512Y, a Cb component bit stream 512Cb, and a Cr component bit stream 512Cr. However, the scope of the concept of the present invention is not limited thereto, and the frame buffer compressor 200 may use a different order from the compression order of the first component (such as the lightness component) and the second component (such as the chroma component) The one-component compressed data and the second-component 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 a compressed bit stream 512. That is, in the compressed bit stream 512, for example, a Y component bit stream 512Y, which is a bit stream in which Y components, Cb components, and Cr components that are repeated in units of pixels of the image data 10 are mixed in an arbitrary order, The Cb component bit stream 512Cb and the Cr component bit stream 512Cr.

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

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

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

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

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

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

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

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

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

壓縮管理模組218分配色度分量目標位元,以在計算明度分量目標位元之前首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定量化參數(quantization parameter;QP)值及熵k值,以使得色度分量使用位元為小於且最接近色度目標位元的值,由此對色度分量執行壓縮。The compression management module 218 allocates a chrominance component target bit to perform compression on the chrominance component before calculating the lightness component target bit. Specifically, the compression management module 218 determines a quantization parameter (QP) value and an entropy k value, so that the chroma component uses bit values that are smaller than and closest to the chroma target bit, thereby determining the The 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 chroma component use bit ((28 + 30) × 8 bits) is smaller than the chroma component target bit ((32 + 32) × 8) bits).

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

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

明度分量目標位元=總目標位元-色度分量使用位元=192×8位元-(28+30)×8位元=132×8位元Lightness component target bit = total target bit-chroma component use bit = 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 bit is 16 + 8) × 16 × 0.5 = 192 multiplied by a color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,以壓縮明度分量。The compression management module 218 assigns the calculated lightness component target bit to compress the lightness 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, it is different from FIG. 9 including 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 522 including the 28-bit Cb component bit stream 522Cb, the 30-bit Cr component bit stream 522Cr, and the 134-bit Y component bit stream 522Y becomes a compressed result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流522。 亦即,經壓縮位元流522中的Y分量位元流522Y、Cb分量位元流522Cb以及Cr分量位元流522Cr的順序可不同於圖10中所示的順序。As described above, the frame buffer compressor 200 may divide the compressed data of the first component and the first component in an arbitrary order different from the compression order of the first component (such as the luma component) and the second component (such as the chroma component). The two-component compressed data is 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 a compressed bit stream 522. That is, in the compressed bit stream 522, for example, the Y component bit stream 522Y may be generated in the form of a bit stream in which the Y component, the Cb component, and the Cr component repeated in units of pixels of the image data 10 are mixed in an arbitrary order. The Cb component bit stream 522Cb and the Cr component bit stream 522Cr. In this way, within the same overall target bit, by allocating more bits to lightness 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 lightness component) of the image data 10 corresponds to the Y-plane 530Y of the image data 10, and the second component (ie, the chroma component) of the image data 10 corresponds to the 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 sequence so that the frame buffer compressor 200 first compresses the chrominance component and then compresses the lightness component. To this end, the compression management module 218 calculates a chrominance component target bit before calculating a lightness component target bit. However, the difference from the embodiment of FIG. 10 is that the compression management module 218 may previously set the compression ratio of the chrominance component to, for example, 40.625% 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 bit and the Cr plane component target bit can be calculated as follows.

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

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

壓縮管理模組218根據提前設定為例如40.625%的壓縮比首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值符合預設壓縮比,並對色度分量執行壓縮。因此,26×8位元用於壓縮Cb平面分量,且26×8位元用於壓縮Cb平面分量。The compression management module 218 first performs compression on the chrominance 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 conform to a preset compression ratio, and performs compression on the chrominance component. Therefore, 26 × 8 bits are used to compress the Cb plane component, and 26 × 8 bits are used to compress the Cb plane component.

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

明度分量目標位元=總目標位元-根據預設壓縮比的色度分量目標位元=192×8位元-(26+26)×8位元=140×8位元Lightness component target bit = total target bit-chroma component target bit according to a 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 paper, 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 bit is 16 + 8) × 16 × 0.5 = 192 multiplied by a color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,以壓縮明度分量。The compression management module 218 assigns the calculated lightness component target bit to compress the lightness 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 conforms to the YUV 420 format, the chroma component target bit can be calculated by the compression management module 218 as the total target bit / 3 × W (here, 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, it is different from FIG. 9 including 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 a compressed result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流532。亦即,經壓縮位元流532中的Y分量位元流532Y、Cb分量位元流532Cb以及Cr分量位元流532Cr的順序可不同於圖11中所示的順序。As described above, the frame buffer compressor 200 may divide the compressed data of the first component and the first component in an arbitrary order different from the compression order of the first component (such as the luma component) and the second component (such as the chroma component). The two-component compressed data is 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 a compressed bit stream 532 by interleaving and combining compressed data of a first component and compressed data of a second component. That is, the Y component bit stream 532Y can be generated in the compressed bit stream 532 in the form of a bit stream in which the Y component, the Cb component, and the Cr component that are repeated in units of pixels of the image data 10 are mixed in an arbitrary order, The Cb component bit stream 532Cb and the Cr component bit stream 532Cr.

如上文所描述,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及具有相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。As described above, within the same overall target bit, by allocating more bits to a lightness component 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 diagrams for explaining an operation of an image processing apparatus for YUV 422 format data according to an exemplary embodiment of the inventive concept.

圖12及圖13示出當影像資料10符合YUV 422格式時,影像資料10的目標壓縮比為50%且色深為8位元的情況。FIG. 12 and FIG. 13 show the case where the image data 10 conforms to 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 lightness component) of the image data 10 corresponds to the Y plane 540Y of the image data 10, and the second component (ie, the chroma component) of the image data 10 corresponds to the Cb plane of the image data 10 540Cb and Cr plane 540Cr.

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

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

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

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

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

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

當基於以此方式計算的目標位元壓縮明度分量及色度分量時,明度分量及色度分量兩者以相同的壓縮比50%壓縮。When the lightness component and the chroma component are compressed based on the target bit calculated in this way, both the lightness component and the chroma component are compressed at 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 having an order of, for example, a Y component bit stream 542Y, a Cb component bit stream 542Cb, and a Cr component bit stream 542Cr. However, the scope of the inventive concept is not limited thereto. For example, the frame buffer compressor 200 may divide the compressed data of the first component and the second component in an arbitrary order different from the compression order of the first component (such as the luma component) and the second component (such as the chroma component). 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 a compressed bit stream 542 by interleaving and combining compressed data of a first component and compressed data of a second component. That is, the Y-bit bit stream 542Y can be generated in the compressed bit stream 542 in the form of a bit stream in which the Y component, the Cb component, and the Cr component that are repeated in units of pixels of the image data 10 are mixed in an arbitrary order, The Cb component bit stream 542Cb and the 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 be 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, the image data 10 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 merged in the order of connection, and the Y component and Cb component can also be determined in any order. And the staggered order of the Cr components.

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

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

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

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

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

壓縮管理模組218分配色度分量目標位元,以在計算明度分量目標位元之前首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值,以使得色度分量使用位元變為小於且最接近色度目標位元的值,並對色度分量執行壓縮。The compression management module 218 allocates a chrominance component target bit to perform compression on the chrominance component before calculating the lightness component target bit. Specifically, the compression management module 218 determines the QP value and the entropy k value so that the chroma component use bit becomes a value smaller than and closest to the chroma target bit, and performs compression on the chroma 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 compression of the Cb plane component. That is, in the embodiment of the present invention, the chroma component use bit ((62 + 60) × 8 bits) is smaller than the chroma component target bit ((64 + 64) 0 × 8) bits).

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

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

明度分量目標位元=總目標位元-色度分量使用位元=256×8位元-(62+60)×8位元=134×8位元。Luminous component target bit = total target bit-chroma component used bit = 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 paper, 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 times the color depth value of 8. In addition, 0.5 means the target compression ratio.

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

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

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流552。亦即,經壓縮位元流552中的Y分量位元流552Y、Cb分量位元流552Cb以及Cr分量位元流552Cr的順序可不同於圖13中所示的順序。As described above, the frame buffer compressor 200 may divide the compressed data of the first component and the first component in an arbitrary order different from the compression order of the first component (such as the luma component) and the second component (such as the chroma component). The two-component compressed data is 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 a compressed bit stream 552 by interleaving and combining compressed data of a first component and compressed data of a second component. That is, in the compressed bit stream 552, the Y component bit stream 552Y, for example, can be generated in the form of a bit stream in which Y components, Cb components, and Cr components that are repeated in pixels of the image data 10 are mixed in any order. The Cb component bit stream 552Cb and the Cr component bit stream 552Cr.

以此方式,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。In this way, within the same overall target bit, by allocating more bits to lightness 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 lightness component) of the image data 10 corresponds to the Y-plane 560Y of the image data 10, and the second component (ie, the chroma component) of the image data 10 corresponds to the 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 chrominance component and then compresses the lightness component. To this end, the compression management module 218 first calculates the chrominance component target bit before calculating the lightness component target bit. However, the difference from the embodiment of FIG. 13 is that the compression management module 218 previously set the compression ratio of the chrominance component to, for example, 40.625% 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 bit and the Cr plane component target bit can be calculated as follows.

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

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

壓縮管理模組218根據提前設定為例如40.625%的壓縮比首先對色度分量執行壓縮。具體而言,壓縮管理模組218判定QP值及熵k值符合預設壓縮比,並對色度分量執行壓縮。因此,52×8位元用於壓縮Cb平面分量,且52×8位元用於壓縮Cb平面分量。The compression management module 218 first performs compression on the chrominance 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 conform to a preset compression ratio, and performs compression on the chrominance component. Therefore, 52 × 8 bits are used to compress the Cb plane component, and 52 × 8 bits are used to compress the Cb plane component.

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

明度分量目標位元=總目標位元-根據預設壓縮比的色度分量目標位元=256×8位元-(52+52)×8位元=152×8位元。Lightness component target bit = total target bit-chroma component target bit according to a 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 paper, for the 16 × 16 size Y-plane 560Y, 8 × 8 size Cb-plane 560Cb, and 8 × 8 size Cr-plane 560Cr, the total target bit is ) × 8 = 256 times the color depth value of 8. In addition, 0.5 means the target compression ratio.

壓縮管理模組218分配由此計算的明度分量目標位元,並壓縮明度分量。The compression management module 218 assigns the calculated lightness component target bit and compresses the lightness 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 conforms to the YUV 422 format, the compression management module 218 can calculate the chrominance component target bit to be the total target bit / 2 × W (here, 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 the embodiment of the present invention, the compressed bit stream including the 128-bit Y-component bit stream 542Y, the 64-bit Cb component bit stream 542Cb, and the 64-bit Cr component bit stream 542Cr is different from FIG. 12. 542. The compressed bit stream 562 including a 52-bit Cb component bit stream 562Cb, a 52-bit Cr component bit stream 562Cr, and a 152-bit Y component bit stream 562Y becomes a compressed result.

如上文所描述,圖框緩衝壓縮器200可藉由以不同於第一分量(例如明度分量)及第二分量(例如色度分量)的壓縮順序的任意順序將第一分量的壓縮資料及第二分量的壓縮資料合併來生成經壓縮位元流562。 亦即,經壓縮位元流562中的Y分量位元流562Y、Cb分量位元流562Cb以及Cr分量位元流562Cr的順序可不同於圖14中所示的順序。As described above, the frame buffer compressor 200 may divide the compressed data of the first component and the first component in an arbitrary order different from the compression order of the first component (such as the luma component) and the second component (such as the chroma component). The two-component compressed data is 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 a compressed bit stream 562 by interleaving and combining compressed data of a first component and compressed data of a second component. That is, the Y-component bit stream 562Y can be generated in the compressed bit stream 562 in the form of a bit stream in which the Y component, the Cb component, and the Cr component that are repeated in units of pixels of the image data 10 are mixed in any order. The Cb component bit stream 562Cb and the Cr component bit stream 562Cr.

以此方式,在相同總目標位元內,藉由將更多位元分配至具有更高重要性及相對較低壓縮效率的明度分量,以及藉由將較少位元分配至相對不同的色度分量,可提高藉由壓縮影像資料10獲得的壓縮資料20的壓縮品質。In this way, within the same overall target bit, by allocating more bits to lightness 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 a method of operating an image processing apparatus according to an exemplary embodiment of the inventive concept.

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

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

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

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

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

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

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

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

10‧‧‧影像資料10‧‧‧Image data

20‧‧‧壓縮資料20‧‧‧ Compressed data

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

110‧‧‧影像信號處理器110‧‧‧Image Signal Processor

120‧‧‧振盪校正模組120‧‧‧Oscillation Correction Module

130‧‧‧多格式編解碼器130‧‧‧Multi-format codec

140‧‧‧圖形處理單元140‧‧‧Graphics Processing Unit

150‧‧‧顯示器150‧‧‧ Display

200‧‧‧圖框緩衝壓縮器200‧‧‧Frame buffer compressor

210‧‧‧編碼器210‧‧‧ Encoder

211‧‧‧預測模組211‧‧‧ Forecast Module

213‧‧‧量化模組213‧‧‧Quantitative module

215‧‧‧熵編碼模組215‧‧‧Entropy coding module

217‧‧‧填補模組217‧‧‧ Fill module

218‧‧‧壓縮管理模組218‧‧‧Compression Management Module

219‧‧‧模式選擇器219‧‧‧Mode selector

220‧‧‧解碼器220‧‧‧ decoder

221‧‧‧預測補償模組221‧‧‧ Forecast Compensation Module

223‧‧‧逆量化模組223‧‧‧Inverse quantization module

225‧‧‧熵解碼模組225‧‧‧ Entropy Decoding Module

227‧‧‧未填補模組227‧‧‧Unfilled Module

228‧‧‧解壓縮管理模組228‧‧‧Unzip Management Module

229‧‧‧模式選擇器229‧‧‧Mode selector

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

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

510Cb、520Cb、530Cb、540Cb、550Cb、560Cb‧‧‧Cb平面510Cb, 520Cb, 530Cb, 540Cb, 550Cb, 560Cb‧‧‧Cb plane

510Cr、520Cr、530Cr、540Cr、550Cr、560Cr‧‧‧Cr平面510Cr, 520Cr, 530Cr, 540Cr, 550Cr, 560Cr‧‧‧Cr plane

510Y、520Y、530Y、540Y、550Y、560Y‧‧‧Y平面510Y, 520Y, 530Y, 540Y, 550Y, 560Y‧‧‧Y plane

512、522、532、542、552、562‧‧‧經壓縮位元流512, 522, 532, 542, 552, 562‧‧‧compressed bitstream

512Cb、522Cb、532Cb、542Cb、552Cb、562Cb‧‧‧Cb分量位元流512Cb, 522Cb, 532Cb, 542Cb, 552Cb, 562Cb‧‧‧Cb component bit streams

512Cr、522Cr、532Cr、542Cr、552Cr、562Cr‧‧‧Cr分量位元流512Cr, 522Cr, 532Cr, 542Cr, 552Cr, 562Cr‧‧‧Cr component bit stream

512Y、522Y、532Y、542Y、552Y、562Y‧‧‧Y分量位元流512Y, 522Y, 532Y, 542Y, 552Y, 562Y‧‧‧Y component bit streams

S1501‧‧‧步驟S1501‧‧‧step

S1503‧‧‧步驟S1503‧‧‧step

S1505‧‧‧步驟S1505‧‧‧step

S1507‧‧‧步驟S1507‧‧‧step

S1509‧‧‧步驟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 its exemplary embodiments 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 operation modes of a YUV 420 format material of an image processing apparatus according to an exemplary embodiment of the inventive concept. FIG. 8 is a conceptual diagram for explaining three operation modes of a YUV 422 format material of an image processing apparatus according to an exemplary embodiment of the inventive concept. 9 to 11 are diagrams for explaining an operation of an image processing apparatus for YUV 420 format data according to an exemplary embodiment of the inventive concept. 12 to 14 are diagrams for explaining an operation of an image processing apparatus for YUV 422 format data according to an exemplary embodiment of the inventive concept. FIG. 15 is a flowchart illustrating a method of operating an image processing apparatus according to an exemplary embodiment of the inventive concept.

Claims (20)

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

Publications (2)

Publication Number Publication Date
TW201941594A true TW201941594A (en) 2019-10-16
TWI820063B 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)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI779636B (en) * 2020-09-30 2022-10-01 瑞昱半導體股份有限公司 Method for storing image frame in memory and image processor of the same

Family Cites Families (2)

* 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
US8588536B2 (en) * 2010-02-22 2013-11-19 Texas Instruments Incorporated Guaranteed-rate tiled image data compression

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
TWI779636B (en) * 2020-09-30 2022-10-01 瑞昱半導體股份有限公司 Method for storing image frame in memory and image processor of the same

Also Published As

Publication number Publication date
KR20190091179A (en) 2019-08-05
SG10201810709TA (en) 2019-08-27
KR102523959B1 (en) 2023-04-20
TWI820063B (en) 2023-11-01

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
US11677932B2 (en) Image processing device
US11991347B2 (en) Image processing device
US10887616B2 (en) Image processing devices having enhanced frame buffer compressors therein
CN114095775B (en) Frame buffer compression circuit and image processing apparatus
KR20200065367A (en) Image processing device and frame buffer compressor
CN110087074B (en) Image processing device and method for operating the same
TWI820063B (en) Image processing device and method for operating image processing device
TWI846680B (en) Image processing device and method for operating image processing device
TWI827579B (en) Image processing device
TWI795480B (en) Image processing device for performing data decompression and image processing device for performing data compression
KR20220090850A (en) Image processing device and method for operating image processing device
KR102872205B1 (en) A image signal processor, a method of operating a image signal processor and a image processing system including the image processing device
TW202007151A (en) Circuit and method of image compression