[go: up one dir, main page]

CN101873502B - Color space converting circuit and method - Google Patents

Color space converting circuit and method Download PDF

Info

Publication number
CN101873502B
CN101873502B CN200910106780.7A CN200910106780A CN101873502B CN 101873502 B CN101873502 B CN 101873502B CN 200910106780 A CN200910106780 A CN 200910106780A CN 101873502 B CN101873502 B CN 101873502B
Authority
CN
China
Prior art keywords
pixel component
color space
critical value
slope
packed
Prior art date
Legal status (The legal status 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 status listed.)
Expired - Fee Related
Application number
CN200910106780.7A
Other languages
Chinese (zh)
Other versions
CN101873502A (en
Inventor
蔡孟哲
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D Shenzhen Ltd
Original Assignee
MSTAR SEMICONDUCTOR CO Ltd
MStar Software R&D Shenzhen Ltd
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 MSTAR SEMICONDUCTOR CO Ltd, MStar Software R&D Shenzhen Ltd filed Critical MSTAR SEMICONDUCTOR CO Ltd
Priority to CN200910106780.7A priority Critical patent/CN101873502B/en
Publication of CN101873502A publication Critical patent/CN101873502A/en
Application granted granted Critical
Publication of CN101873502B publication Critical patent/CN101873502B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Image Processing (AREA)

Abstract

本发明涉及一种色彩空间转换电路及方法,可在执行xvYcc色彩空间至sRGB色彩空间的转换时,以简化的电路设计,将超出sRGB色彩空间的部分,压缩至sRGB色彩空间内,以提升视觉效果。色彩空间转换电路包含转换单元。转换单元可将一像素讯号从xvYcc色彩空间转换至sRGB色彩空间。在转换过程中,转换单元产生像素讯号在sRGB色彩空间之各色彩空间维度上之像素分量,当任一像素分量位于压缩区间时,转换单元对该像素分量进行压缩以输出一压缩像素分量。该压缩像素分量不超出sRGB色彩空间在对应色彩空间维度上之涵盖范围。

The present invention relates to a color space conversion circuit and method, which can compress the part beyond the sRGB color space into the sRGB color space with a simplified circuit design when performing the conversion from the xvYcc color space to the sRGB color space, so as to improve vision Effect. The color space conversion circuit includes a conversion unit. The conversion unit can convert a pixel signal from the xvYcc color space to the sRGB color space. During the conversion process, the conversion unit generates pixel components of the pixel signal in each color space dimension of the sRGB color space. When any pixel component is in the compression range, the conversion unit compresses the pixel component to output a compressed pixel component. The compressed pixel components do not exceed the coverage range of the sRGB color space on the corresponding color space dimension.

Description

色彩空间转换电路及方法Color space conversion circuit and method

技术领域 technical field

本发明系有关于色彩空间转换(color space conversion),尤指一种色彩空间转换电路及方法。The present invention relates to color space conversion, especially to a color space conversion circuit and method.

背景技术 Background technique

YCbCr与sRGB(standard RGB)为常用的标准色彩空间,在实际应用上,举例来说,影像装置(如数字摄影机或DVD播放器等)可输出YCbCr格式之视讯讯号至显示装置(如数字电视等),显示装置再将其转换为sRGB格式,以进行显示。在CCIR Recommendation 601规格中,Y(明度)、Cb及Cr(彩度)各以8个位来编码,其中Y的范围为16~235,Cb、Cr的范围各为16~240。在将YCbCr色彩空间转换为sRGB色彩空间时,利用以下的转换公式:YCbCr and sRGB (standard RGB) are commonly used standard color spaces. In practical applications, for example, imaging devices (such as digital cameras or DVD players, etc.) can output video signals in YCbCr format to display devices (such as digital TVs, etc.) ), the display device converts it to sRGB format for display. In the CCIR Recommendation 601 specification, Y (brightness), Cb and Cr (chroma) are each coded with 8 bits, where the range of Y is 16-235, and the range of Cb and Cr is 16-240. When converting the YCbCr color space to the sRGB color space, use the following conversion formula:

RR ′′ GG ′′ BB ′′ == 0.004566210.00456621 00 .. 0.006258930.00625893 0.004566210.00456621 -- 0.001536320.00153632 -- 0.003188110.00318811 0.004566210.00456621 0.007910710.00791071 00 .. == YY 601601 ′′ CC BB CC RR -- 1616 128128 128128

可得知红色(R)、绿色(G)、蓝色(B)分量的范围分别为0~1,以8位来表示即为0~255的范围。It can be known that the red (R), green (G), and blue (B) components range from 0 to 1, respectively, and represent a range of 0 to 255 with 8 bits.

由于消费者对视觉效果的要求日益提高,YCbCr色彩空间渐不敷使用,于是近年来,以YCbCr色彩空间为基础,发展出xvYcc(eXtended Video YCC,或称为x.v.Color)色彩空间,其色域为原YCbCr色彩空间的约1.8倍大,以提供更丰富的色彩表现。在xvYcc色彩空间中,若同样以8位来编码,则Y、Cb及Cr的范围各可扩大为1~254。若依照前述之转换公式对此扩大的范围进行转换,则R、G、B分量的范围也分别扩大为-17.46~277,如图1所示。然而,超出0~255的部分,即-17.46~0以及255~277的部分,并无法以8位表示。习知技艺系将-17.46~0的部分皆舍弃而视为0,255~277的部分皆舍弃而视为255,使得xvYcc色彩空间之宽广色域无法在sRGB色彩空间中充分表现,而无法提升视觉效果。Due to the increasing demand of consumers for visual effects, the YCbCr color space is gradually insufficient. Therefore, in recent years, based on the YCbCr color space, the xvYcc (eXtended Video YCC, or x.v.Color) color space has been developed. Its color gamut It is approximately 1.8 times larger than the original YCbCr color space to provide richer color performance. In the xvYcc color space, if it is also coded with 8 bits, the ranges of Y, Cb and Cr can be expanded to 1-254. If the expanded range is converted according to the aforementioned conversion formula, the ranges of the R, G, and B components are also expanded to -17.46~277, as shown in Figure 1. However, the part beyond 0 to 255, that is, the part of -17.46 to 0 and 255 to 277, cannot be represented by 8 bits. The traditional technology system discards the part from -17.46 to 0 as 0, and discards the part from 255 to 277 as 255, so that the wide color gamut of the xvYcc color space cannot be fully expressed in the sRGB color space and cannot be improved. Visual effect.

发明内容 Contents of the invention

有鉴于此,本发明之一目的,在于提供一种色彩空间转换电路及方法,可在执行xvYcc色彩空间至sRGB色彩空间的转换时,以简化的电路设计,将超出sRGB色彩空间的部分,压缩至sRGB色彩空间内,以提升视觉效果。In view of this, an object of the present invention is to provide a color space conversion circuit and method, which can compress the part beyond the sRGB color space with a simplified circuit design when performing the conversion from the xvYcc color space to the sRGB color space. into the sRGB color space for enhanced visuals.

本发明提供一种色彩空间转换电路,用以将一像素讯号从第一色彩空间转换至第二色彩空间,第二色彩空间具有至少一色彩空间维度。该色彩空间转换电路包含:转换单元,用以产生像素讯号在该色彩空间维度上之像素分量,并于像素分量位于一压缩区间时,对像素分量进行压缩以输出压缩像素分量;其中,压缩像素分量不超出第二色彩空间在该色彩空间维度上之涵盖范围。The invention provides a color space conversion circuit for converting a pixel signal from a first color space to a second color space, and the second color space has at least one color space dimension. The color space conversion circuit includes: a conversion unit, which is used to generate a pixel component of the pixel signal on the dimension of the color space, and compress the pixel component to output a compressed pixel component when the pixel component is in a compression interval; wherein, the compressed pixel The components do not exceed the range covered by the second color space in the color space dimension.

本发明另提供一种色彩空间转换方法,包含下列步骤:接收一属于第一色彩空间之像素讯号;产生像素讯号在第二色彩空间之色彩空间维度上之像素分量;以及当像素分量位于一压缩区间时,对像素分量进行压缩以输出压缩像素分量,其中压缩像素分量不超出第二色彩空间在其色彩空间维度上之涵盖范围。The present invention also provides a color space conversion method, comprising the following steps: receiving a pixel signal belonging to a first color space; generating a pixel component of the pixel signal in the color space dimension of the second color space; and when the pixel component is located in a compressed During interval, the pixel components are compressed to output the compressed pixel components, wherein the compressed pixel components do not exceed the range covered by the second color space in its color space dimension.

附图说明 Description of drawings

图1系显示YCbCr色彩空间与xvYcc色彩空间之相对大小的示意图。FIG. 1 is a schematic diagram showing the relative sizes of the YCbCr color space and the xvYcc color space.

图2系本发明之色彩空间转换电路之一实施例的方块图。FIG. 2 is a block diagram of an embodiment of the color space conversion circuit of the present invention.

图3系显示图2之转换单元如何进行压缩动作的示意图。FIG. 3 is a schematic diagram showing how the conversion unit in FIG. 2 performs compression.

图4系本发明之色彩空间转换方法之一实施例的流程图。FIG. 4 is a flowchart of an embodiment of the color space conversion method of the present invention.

图中,20是色彩空间转换电路,21、22是缓存器,23是转换单元,24是缓存单元,41~45是色彩空间转换方法之一实施例的流程步骤。In the figure, 20 is a color space conversion circuit, 21 and 22 are registers, 23 is a conversion unit, 24 is a buffer unit, 41-45 are process steps of an embodiment of a color space conversion method.

具体实施方式 Detailed ways

图2系本发明之色彩空间转换电路20之一实施例的方块图,包含一缓存单元24及一转换单元23。色彩空间转换电路20可执行xvYcc色彩空间(下文简称xvYcc)至sRGB色彩空间(下文简称sRGB)的转换。sRGB具有三个色彩空间维度,即红色、绿色、蓝色维度。sRGB在每个维度皆有一涵盖范围,该涵盖范围具有一下限值与一上限值(下文分别称为第一下限值与第一上限值),若以8位来表示,分别为0与255。在将xvYcc转换至sRGB时,xvYcc在红色、绿色、蓝色维度上亦各具一下限值及一上限值(下文分别称为第二下限值与第二上限值),若以8位表示,分别为-17.46与277。因此,第二下限值小于第一下限值,第二上限值大于第一上限值。FIG. 2 is a block diagram of an embodiment of the color space conversion circuit 20 of the present invention, including a buffer unit 24 and a conversion unit 23 . The color space conversion circuit 20 can perform conversion from the xvYcc color space (hereinafter referred to as xvYcc) to the sRGB color space (hereinafter referred to as sRGB). sRGB has three color space dimensions, namely red, green, and blue dimensions. sRGB has a coverage range in each dimension, and the coverage range has a lower limit value and an upper limit value (hereinafter respectively referred to as the first lower limit value and the first upper limit value), if represented by 8 bits, they are 0 with 255. When converting xvYcc to sRGB, xvYcc also has a lower limit and an upper limit in the red, green and blue dimensions (referred to below as the second lower limit and the second upper limit respectively), if 8 Bit representation, respectively -17.46 and 277. Therefore, the second lower limit value is smaller than the first lower limit value, and the second upper limit value is greater than the first upper limit value.

缓存单元24可包含缓存器21与22。缓存器21储存第一临界值及第一斜率,缓存器22储存第二临界值及第二斜率,第一临界值大于第二临界值。缓存器21、22所储存的这些参数可依实际需要来进行调整。转换单元23耦接至缓存器21、22,可依据缓存器21、22所储存之参数值,将一属于xvYcc之输入像素讯号,转换为属于sRGB的输出像素讯号后输出。在这个转换过程中,转换单元23先将输入像素讯号转换为sRGB之各个色彩空间维度上之像素分量,即红色分量、绿色分量及蓝色分量。接着,转换单元23判断每一像素分量的大小是否位于压缩区间,若是,则进行压缩;否则,不进行压缩。换言之,压缩区间代表需进行压缩之像素值区间。于此实施例中,压缩区间包含:下限与上限分别为第一临界值与第二上限值的像素值区间,以及下限与上限分别为第二下限值与第二临界值的像素值区间。因此,压缩区间的大小可藉由改变第一临界值或第二临界值来调整。当任一像素分量(如红色分量)大于第一临界值且不大于第二上限值(如xvYcc在红色维度上之上限值)时,转换单元23对该像素分量执行第一压缩动作以输出第一压缩像素分量,使得第一压缩像素分量不高于第一上限值(如sRGB在红色维度上之上限值),且第一压缩像素分量与该像素分量间为具有第一斜率之线性关系;当任一像素分量小于第二临界值且不小于第二下限值时,转换单元23对该像素分量执行第二压缩动作以输出第二压缩像素分量,使得第二压缩像素分量不低于第一下限值,且第二压缩像素分量与该像素分量为具有第二斜率之线性关系;另一方面,转换单元23对介于第一临界值与第二临界值间之任一像素分量,则不执行任何压缩动作,直接输出该像素分量。因此,在转换单元23所输出之输出像素讯号中,红色、绿色及蓝色分量皆在sRGB的色域范围内。The buffer unit 24 may include registers 21 and 22 . The register 21 stores the first critical value and the first slope, the register 22 stores the second critical value and the second slope, and the first critical value is greater than the second critical value. These parameters stored in the registers 21 and 22 can be adjusted according to actual needs. The conversion unit 23 is coupled to the registers 21 and 22, and can convert an input pixel signal belonging to xvYcc into an output pixel signal belonging to sRGB according to the parameter values stored in the registers 21 and 22, and then output it. In this conversion process, the conversion unit 23 first converts the input pixel signal into pixel components in each color space dimension of sRGB, namely red component, green component and blue component. Next, the conversion unit 23 judges whether the size of each pixel component is in the compression range, and if so, performs compression; otherwise, does not perform compression. In other words, the compressed range represents the range of pixel values to be compressed. In this embodiment, the compression interval includes: a pixel value interval whose lower limit and upper limit are respectively the first critical value and a second upper limit value, and a pixel value interval whose lower limit and upper limit are respectively the second lower limit value and the second critical value . Therefore, the size of the compressed interval can be adjusted by changing the first threshold or the second threshold. When any pixel component (such as the red component) is greater than the first critical value and not greater than the second upper limit (such as the upper limit of xvYcc on the red dimension), the conversion unit 23 performs the first compression operation on the pixel component to Output the first compressed pixel component, so that the first compressed pixel component is not higher than the first upper limit (such as the upper limit of sRGB on the red dimension), and the first compressed pixel component and the pixel component have a first slope linear relationship; when any pixel component is less than the second critical value and not less than the second lower limit value, the conversion unit 23 performs the second compression operation on the pixel component to output the second compressed pixel component, so that the second compressed pixel component is not lower than the first lower limit value, and the second compressed pixel component and the pixel component have a linear relationship with a second slope; If there is a pixel component, no compression is performed, and the pixel component is directly output. Therefore, in the output pixel signal output by the converting unit 23, the red, green and blue components are all within the sRGB color gamut.

图3系显示转换单元23如何进行压缩动作的示意图,其中,输入像素分量为图2之输入像素讯号所转换之红色、绿色及蓝色分量其中之一,输出像素分量为图2之输出像素讯号所包含之红色、绿色及蓝色分量其中之一。在图3中,当输入像素分量大于第一临界值且不大于第二上限值,或者,小于第二临界值且不小于第二下限值时,会被压缩以产生输出像素分量,如此,原本超过sRGB色域范围之像素分量即可压缩在sRGB色域范围内,以显现不同层次的色彩,而不会被当成同一色彩来处理。举例来说,260与270(皆超过255的上限)的红色分量,在经过压缩处理后,会呈现不同层次的红色,而不会都被当成255的红色来显示。图3显示了两种压缩方式,于此实施例中,一为曲线压缩(curve compression),另一为线性压缩(linear compression)。较佳地,曲线压缩依据Gamma曲线所产生,以符合人眼的视觉。或者,在本发明之色彩空间转换电路20中,以线性压缩的方式来逼近曲线压缩,如此可降低电路成本,并达到与曲线压缩非常近似的视觉效果。Fig. 3 is a schematic diagram showing how the conversion unit 23 performs the compression operation, wherein the input pixel component is one of the red, green and blue components converted from the input pixel signal in Fig. 2, and the output pixel component is the output pixel signal in Fig. 2 One of the red, green and blue components included. In FIG. 3, when the input pixel component is greater than the first critical value and not greater than the second upper limit value, or less than the second critical value and not less than the second lower limit value, it will be compressed to generate an output pixel component, so , the pixel components that originally exceeded the sRGB color gamut can be compressed within the sRGB color gamut to display colors of different levels, and will not be treated as the same color. For example, the red components of 260 and 270 (both exceeding the upper limit of 255) will present different levels of red after being compressed, and will not be displayed as red of 255. Figure 3 shows two compression methods, in this embodiment, one is curve compression and the other is linear compression. Preferably, the curve compression is generated according to the Gamma curve to conform to human vision. Alternatively, in the color space conversion circuit 20 of the present invention, linear compression is used to approach curve compression, which can reduce circuit cost and achieve a visual effect very similar to curve compression.

于此实施例中,在第一临界值与第二上限值间之斜线,其斜率为第一斜率,前述第一压缩动作即依据第一斜率来执行线性压缩,亦即:In this embodiment, the slope of the slope between the first critical value and the second upper limit is the first slope, and the aforementioned first compression action performs linear compression according to the first slope, that is:

输出像素分量(即第一压缩像素分量)=(输入像素分量-第一临界值)×第一斜率+第一临界值   式(1)Output pixel component (that is, the first compressed pixel component) = (input pixel component - first critical value) × first slope + first critical value Formula (1)

在第二临界值与第二下限值间之斜线,其斜率为第二斜率,前述第二压缩动作即依据第二斜率来执行线性压缩,亦即:The slope of the slope between the second critical value and the second lower limit is the second slope, and the aforementioned second compression action performs linear compression according to the second slope, that is:

输出像素分量(即第二压缩像素分量)=(输入像素分量一第二临界值)×第二斜率+第二临界值   式(2)Output pixel component (i.e. the second compressed pixel component)=(input pixel component-second critical value)×second slope+second critical value Formula (2)

式(1)可视为在第一临界值与第二上限值间执行线性内插(linearinterpolation),式(2)可视为在第二临界值与第二下限值间执行线性内插。较佳地,转换电路23包含内插电路(图未显示),用以执行式(1)与式(2)之线性内插运算。Formula (1) can be regarded as performing linear interpolation between the first critical value and the second upper limit value, and formula (2) can be regarded as performing linear interpolation between the second critical value and the second lower limit value . Preferably, the conversion circuit 23 includes an interpolation circuit (not shown in the figure) for performing the linear interpolation operation of the formula (1) and the formula (2).

式(1)中,当输入像素分量与第一压缩像素分量分别为第二上限值及第一上限值时,若第一临界值为已知,则第一斜率可藉由将第一临界值、第一上限值及第二上限值代入式(1)而推导产生;若第一斜率为已知,则第一临界值可藉由将第一斜率、第一上限值及第二上限值代入式(1)而推导产生。同理,式(2)中,当输入像素分量与第二压缩像素分量分别为第二下限值及第一下限值时,若第二临界值为已知,则第二斜率可藉由将第二临界值、第一下限值及第二下限值代入式(2)而推导产生;若第二斜率为已知,则第二临界值可藉由将第二斜率、第一下限值及第二下限值代入式(2)而推导产生。因此,在此种情形下,缓存器21仅需储存第一临界值与第一斜率两者其一,而缓存器22仅需储存第二临界值与第二斜率两者其一,未储存者可由推导产生,如此可节省记忆空间。In formula (1), when the input pixel component and the first compressed pixel component are respectively the second upper limit and the first upper limit, if the first critical value is known, then the first slope can be obtained by taking the first The critical value, the first upper limit value and the second upper limit value are substituted into formula (1) and derived; if the first slope is known, then the first critical value can be obtained by combining the first slope, the first upper limit value and The second upper limit is derived by substituting into formula (1). Similarly, in formula (2), when the input pixel component and the second compressed pixel component are the second lower limit value and the first lower limit value respectively, if the second critical value is known, the second slope can be obtained by Substituting the second critical value, the first lower limit value and the second lower limit value into formula (2) and deriving; if the second slope is known, the second critical value can be obtained by taking the second slope, the first lower limit The limit value and the second lower limit value are substituted into formula (2) and derived. Therefore, in this case, the register 21 only needs to store one of the first critical value and the first slope, and the register 22 only needs to store one of the second critical value and the second slope. Can be generated by derivation, which saves memory space.

在另一具体实施例中,转换单元23包含一查询表(lookup table,图未显示),用以储存输入像素分量及对应之输出像素分量,其中,当输入像素分量大于第一临界值且不大于第二上限值时,对应之输出像素分量为第一压缩像素分量;当输入像素分量小于第二临界值且不小于第二下限值时,对应之输出像素分量为第二压缩像素分量;当输入像素分量介于第一临界值与第二临界值时,对应之输出像素分量即为原本之输入像素分量。因此,转换单元23可依据该查询表,快速地执行第一压缩动作与第二压缩动作。In another specific embodiment, the conversion unit 23 includes a lookup table (not shown in the figure) for storing the input pixel component and the corresponding output pixel component, wherein, when the input pixel component is greater than the first critical value and not When it is greater than the second upper limit value, the corresponding output pixel component is the first compressed pixel component; when the input pixel component is less than the second critical value and not less than the second lower limit value, the corresponding output pixel component is the second compressed pixel component ; When the input pixel component is between the first critical value and the second critical value, the corresponding output pixel component is the original input pixel component. Therefore, the conversion unit 23 can quickly perform the first compression action and the second compression action according to the lookup table.

较佳地,对于xvYcc之输入像素讯号经转换所产生之红色、绿色及蓝色分量,转换单元23可分别使用不同的临界值与斜率,来执行前述之线性压缩。这些不同的临界值与斜率,可储存于缓存器21、22中。Preferably, for the red, green and blue components generated by converting the input pixel signal of xvYcc, the conversion unit 23 can respectively use different thresholds and slopes to perform the aforementioned linear compression. These different thresholds and slopes can be stored in the registers 21 , 22 .

由于高清晰度多媒体接口(High-definition Multimedia Interface,HDMI)在其1.3版本的规格中开始支持xvYcc,本发明之色彩空间转换电路20可适用于HDMI接收器,用以将HDMI接收器所接收之xvYcc格式的讯号,转换为sRGB格式的讯号,在显示装置如数字电视上显示。Since the high-definition multimedia interface (High-definition Multimedia Interface, HDMI) started to support xvYcc in its version 1.3 specification, the color space conversion circuit 20 of the present invention can be applied to an HDMI receiver to convert the color received by the HDMI receiver Signals in xvYcc format are converted into signals in sRGB format and displayed on a display device such as a digital TV.

图4系本发明之色彩空间转换方法之一实施例的流程图,用于第一色彩空间至第二色彩空间之转换。该方法包含下列步骤:FIG. 4 is a flowchart of an embodiment of the color space conversion method of the present invention, which is used for conversion from the first color space to the second color space. The method comprises the following steps:

步骤41:接收一属于第一色彩空间之像素讯号。Step 41: Receive a pixel signal belonging to the first color space.

步骤42:产生该像素讯号在第二色彩空间之各色彩空间维度上之像素分量。Step 42: Generate pixel components of the pixel signal in each color space dimension of the second color space.

步骤43:当任一色彩空间维度上之像素分量大于第一临界值且不大于该像素分量之上限值时,对该像素分量执行第一压缩动作以输出第一压缩像素分量,其中第一压缩像素分量不高于第二色彩空间在该色彩空间维度上之上限值,且第一压缩像素分量与该像素分量间为具有第一斜率之线性关系。Step 43: When the pixel component on any color space dimension is greater than the first critical value and not greater than the upper limit value of the pixel component, perform the first compression operation on the pixel component to output the first compressed pixel component, wherein the first The compressed pixel component is not higher than the upper limit value of the second color space on the color space dimension, and the first compressed pixel component and the pixel component have a linear relationship with a first slope.

步骤44:当任一色彩空间维度上之像素分量小于第二临界值且不小于该像素分量之下限值时,对该像素分量执行第二压缩动作以输出第二压缩像素分量,其中第二压缩像素分量不低于第二色彩空间在该色彩空间维度上之下限值,且第二压缩像素分量与该像素分量间为具有第二斜率之线性关系。Step 44: When the pixel component on any color space dimension is less than the second critical value and not less than the lower limit value of the pixel component, perform the second compression operation on the pixel component to output the second compressed pixel component, wherein the second The compressed pixel component is not lower than the lower limit value of the second color space on the dimension of the color space, and the second compressed pixel component and the pixel component have a linear relationship with a second slope.

步骤45:当任一色彩空间维度上之像素分量介于第一临界值与第二临界值之间时,直接输出该像素分量。Step 45: When the pixel component in any color space dimension is between the first critical value and the second critical value, directly output the pixel component.

前述步骤中,第一临界值大于第二临界值;任一色彩空间维度上之像素分量的上限值大于第二色彩空间在该色彩空间维度上之上限值;任一色彩空间维度上之像素分量的下限值小于第二色彩空间在该色彩空间维度上之下限值。In the aforementioned steps, the first critical value is greater than the second critical value; the upper limit value of the pixel component on any color space dimension is greater than the upper limit value of the second color space on the color space dimension; the upper limit value on any color space dimension The lower limit value of the pixel component is smaller than the lower limit value of the second color space on the color space dimension.

较佳地,第一色彩空间为xvYcc色彩空间,第二色彩空间为sRGB色彩空间,其包含红色、绿色及蓝色维度等三个色彩空间维度。图4之色彩空间转换方法可施用于HDMI接收器。Preferably, the first color space is xvYcc color space, and the second color space is sRGB color space, which includes three color space dimensions of red, green and blue. The color space conversion method of FIG. 4 can be applied to HDMI receivers.

较佳地,步骤43~45系依据一查询表执行。该查询表预先储存步骤42所产生之不同大小的像素分量及步骤43~45所对应输出之像素分量,即第一压缩像素分量、第二压缩像素分量或未经压缩之原像素分量,如此可加快步骤43~45的执行速度。Preferably, steps 43-45 are performed according to a lookup table. The look-up table pre-stores the pixel components of different sizes generated in step 42 and the corresponding output pixel components of steps 43-45, that is, the first compressed pixel component, the second compressed pixel component or the uncompressed original pixel component, so that Speed up the execution speed of steps 43-45.

以上所述系利用较佳实施例详细说明本发明,而非限制本发明之范围。凡熟知此项技艺人士皆能明了,可根据以上实施例之揭示而做出诸多可能变化,仍不脱离本发明之精神和范围。The above description is to illustrate the present invention with preferred embodiments, but not to limit the scope of the present invention. Those who are familiar with this art can understand that many possible changes can be made according to the disclosure of the above embodiments without departing from the spirit and scope of the present invention.

Claims (15)

1. a color space converting circuit, is characterized in that, comprises:
One converting unit, in order to a pixel signal is converted to one second color space from one first color space, this second color space has at least one color space dimensions, wherein, this first color space is xvYcc color space, and this second color space is sRGB color space;
Wherein, this converting unit produces this pixel signal pixel component one of on this color space dimensions, and when this pixel component is positioned between a compressional zone, compress to export a packed pixel component to this pixel component, making this packed pixel component not exceed this second color space covering scope one of on this color space dimensions, is a linear relationship between this packed pixel component and this pixel component;
Between described compressional zone, lower limit and the upper limit are respectively one of one first critical value and this pixel component higher limit for it, and this packed pixel component is not higher than one of this covering scope higher limit, and now, the linear relationship between this packed pixel component and this pixel component is:
Packed pixel component=(pixel component-the first critical value) × first slope+the first critical value, wherein, the first slope is the slope of one of the first critical value and this pixel component higher limit; Or the upper limit between described compressional zone and lower limit are respectively one of one second critical value and this pixel component lower limit, this packed pixel component is not less than one of this covering scope lower limit, and now, the linear relationship between this packed pixel component and this pixel component is:
Packed pixel component=(pixel component-the second critical value) × second slope+the second critical value, wherein, the second slope is the slope of one of the second critical value and this pixel component lower limit;
Described first critical value is greater than described second critical value;
Described converting unit directly exports the arbitrary pixel component between described first critical value and described second critical value.
2. color space converting circuit according to claim 1, is characterized in that, when this pixel component is positioned at outer between this compressional zone, this converting unit directly exports this pixel component.
3. color space converting circuit according to claim 1, is characterized in that, this converting unit comprises a question blank, in order to store this packed pixel component of this pixel component and correspondence; This converting unit is compressed this pixel component according to this question blank.
4. color space converting circuit according to claim 1, is characterized in that, more comprises:
One buffer unit, is coupled to this converting unit, in order to store one of this linear relationship slope.
5. color space converting circuit according to claim 1, is characterized in that, this higher limit of this pixel component is greater than this higher limit of this covering scope.
6. color space converting circuit according to claim 1, is characterized in that, this packed pixel component system is according to this pixel component, one of this first critical value and this linear relationship slope and determining.
7. color space converting circuit according to claim 1, is characterized in that, more comprises:
One buffer unit, is coupled to this converting unit, in order to store this first critical value.
8. color space converting circuit according to claim 1, is characterized in that, one of this linear relationship slope system determines according to this higher limit of this first critical value, this pixel component and this higher limit of this covering scope.
9. color space converting circuit according to claim 1, is characterized in that, this lower limit of this pixel component is less than this lower limit of this covering scope.
10. color space converting circuit according to claim 1, is characterized in that, this packed pixel component system is according to this pixel component, one of this second critical value and this linear relationship slope and determining.
11. color space converting circuits according to claim 1, is characterized in that, more comprise:
One buffer unit, is coupled to this converting unit, in order to store this second critical value.
12. color space converting circuits according to claim 1, is characterized in that, one of this linear relationship slope system determines according to this lower limit of this second critical value, this pixel component and this lower limit of this covering scope.
13. color space converting circuits according to claim 1, is characterized in that, this color space converting circuit system is implemented in a HDMI (High Definition Multimedia Interface) (HDMI) receiver.
14. 1 kinds of color space changover methods, is characterized in that, comprise:
Receive the pixel signal that belongs to one first color space;
This pixel signal is converted to one second color space one of to produce one of this second color space color space dimensions pixel component from this first color space, wherein, this first color space is xvYcc color space, and this second color space is sRGB color space; And
When this pixel component is positioned between a compressional zone, compress to export a packed pixel component to this pixel component, making this packed pixel component not exceed this second color space covering scope one of on this color space dimensions, is a linear relationship between this packed pixel component and this pixel component;
Wherein, the lower limit between described compressional zone and the upper limit are respectively one of one first critical value and this pixel component higher limit, and this packed pixel component is not higher than one of this covering scope higher limit, and now, the linear relationship between this packed pixel component and this pixel component is:
Packed pixel component=(pixel component-the first critical value) × first slope+the first critical value, wherein, the first slope is the slope of one of the first critical value and this pixel component higher limit;
Or the upper limit between described compressional zone and lower limit are respectively one of one second critical value and this pixel component lower limit, this packed pixel component is not less than one of this covering scope lower limit
, now, the linear relationship between this packed pixel component and this pixel component is:
Packed pixel component=(pixel component-the second critical value) × second slope+the second critical value, wherein, the second slope is the slope of one of the second critical value and this pixel component lower limit;
Described first critical value is greater than described second critical value;
When this pixel component is between described first critical value and described second critical value, directly export this pixel component.
15. color space changover methods according to claim 14, is characterized in that, this compression step system performs according to a question blank, and wherein this question blank stores this packed pixel component of this pixel component and correspondence.
CN200910106780.7A 2009-04-24 2009-04-24 Color space converting circuit and method Expired - Fee Related CN101873502B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN200910106780.7A CN101873502B (en) 2009-04-24 2009-04-24 Color space converting circuit and method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN200910106780.7A CN101873502B (en) 2009-04-24 2009-04-24 Color space converting circuit and method

Publications (2)

Publication Number Publication Date
CN101873502A CN101873502A (en) 2010-10-27
CN101873502B true CN101873502B (en) 2015-08-19

Family

ID=42998119

Family Applications (1)

Application Number Title Priority Date Filing Date
CN200910106780.7A Expired - Fee Related CN101873502B (en) 2009-04-24 2009-04-24 Color space converting circuit and method

Country Status (1)

Country Link
CN (1) CN101873502B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104581102A (en) * 2013-10-09 2015-04-29 联咏科技股份有限公司 Color converting method and color converting system
CN103763538B (en) * 2014-02-21 2016-08-31 深圳创维-Rgb电子有限公司 A kind of realize the method and device that signal colour shows
CN106887218B (en) * 2017-03-22 2019-10-25 深圳市华星光电技术有限公司 Color conditioning method and regulating system based on high color gamut display
CN110188680B (en) * 2019-05-29 2021-08-24 南京林业大学 Intelligent identification method of tea tree sprouts based on factor iteration

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655626A (en) * 2004-01-30 2005-08-17 美国博通公司 System and method for clipping values of pixels
CN1972368A (en) * 2005-09-08 2007-05-30 索尼株式会社 Gamut compression method and device and program
CN101390153A (en) * 2005-10-14 2009-03-18 三星电子株式会社 Improved color gamut mapping and subpixel coloring system and method
CN101409066A (en) * 2007-10-09 2009-04-15 三星电子株式会社 Systems and methods for selective handling of out-of-gamut color conversions

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1655626A (en) * 2004-01-30 2005-08-17 美国博通公司 System and method for clipping values of pixels
CN1972368A (en) * 2005-09-08 2007-05-30 索尼株式会社 Gamut compression method and device and program
CN101390153A (en) * 2005-10-14 2009-03-18 三星电子株式会社 Improved color gamut mapping and subpixel coloring system and method
CN101409066A (en) * 2007-10-09 2009-04-15 三星电子株式会社 Systems and methods for selective handling of out-of-gamut color conversions

Also Published As

Publication number Publication date
CN101873502A (en) 2010-10-27

Similar Documents

Publication Publication Date Title
TWI734978B (en) Method and apparatus for performing tone-mapping of high-dynamic-range video
RU2710291C2 (en) Methods and apparatus for encoding and decoding colour hdr image
US8542246B2 (en) Color conversion device, color conversion table and color conversion method
CN107211130B (en) Method and apparatus for encoding and decoding color pictures
EP3113496A1 (en) Method and device for encoding both a hdr picture and a sdr picture obtained from said hdr picture using color mapping functions
CN106134172A (en) Display system, display packing and display device
CN106488141A (en) HDR is to the method for HDR inverse tone mapping (ITM), system and equipment
EP3341918B1 (en) Coding and decoding method and corresponding devices
GB2534929A (en) Method and apparatus for conversion of HDR signals
KR101393487B1 (en) Display apparatus and method for image enhancement
EP2753083A1 (en) Signal processing apparatus, method and program for representing colors in a color range wider than a conventional color range
CN101873502B (en) Color space converting circuit and method
JP2019515562A (en) Method and apparatus for encoding / decoding high dynamic range images into a coded bit stream
TWI410953B (en) Color space conversion circuit and method
CN106210735B (en) A method and device for video decoding
US8284316B2 (en) Real-time image processing circuit capable of enhancing brightness contrast and color saturation
US10205967B2 (en) Extended YCC format for backward-compatible P3 camera video
CN109618144B (en) Method for identifying the source of YUV signal in four primary color image signals
EP3026908A1 (en) Method and device for quantizing and de-quantizing a picture using scaling factors for chrominance based on luminance
US8792712B2 (en) Method for correcting color and apparatus using the same
RU2705013C2 (en) Method and device for colour image encoding and decoding
CN116508054A (en) Methods, apparatus and devices for avoiding chroma clipping in a tone mapper while maintaining saturation and maintaining hue
CN100534206C (en) A method of image compression
JP2007142494A (en) Image processing apparatus and method, and program
TWI873482B (en) Audiovisual system with shared image-processing procedure and method for processing video therein

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C14 Grant of patent or utility model
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20150819

Termination date: 20190424

CF01 Termination of patent right due to non-payment of annual fee