US6828982B2 - Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables - Google Patents
Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables Download PDFInfo
- Publication number
- US6828982B2 US6828982B2 US10/284,980 US28498002A US6828982B2 US 6828982 B2 US6828982 B2 US 6828982B2 US 28498002 A US28498002 A US 28498002A US 6828982 B2 US6828982 B2 US 6828982B2
- Authority
- US
- United States
- Prior art keywords
- component
- values
- value
- color look
- tables
- 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 - Lifetime, expires
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/67—Circuits for processing colour signals for matrixing
Definitions
- the present invention relates to a method for processing video signals, and more particularly to an apparatus and a method for converting pixels from a YUV format to a RGB format using color look-up tables with a small memory capacity.
- a RGB format and a YUV format are kinds of color modes for representing colors of pixels of an image in visible media.
- the RGB format is a mode for separating color signals into color components of R (Red), G (Green), and B (Blue) color, i.e., three primary colors of light used when video display devices such as a CRT (Cathode Ray Tube) or a LCD (Liquid Crystal Display) create colors or images.
- the YUV format is a mode for separating color signals into a luminance component (Y component) representing a brightness, and chrominance components (U and V components) representing color.
- the U component represents a blue color
- the Y component represents a red color.
- the RGB format In order to display colors, the RGB format requires at least three color-difference data, thereby needing a large memory capacity. However, since the RGB format employs the same displaying method as that of the video display device, this mode has excellent color-separation and transmission effects. On the other hand, the YUV format has poorer color-separation and transmission effects than the RGB format, but has an advantage in expressing a large number of colors even using a few color data.
- CMOS Complementary Metal-Oxide Semiconductor
- a digital video capturing device such as a CCD (Charge-Coupled Device) or a CMOS (Complementary Metal-Oxide Semiconductor) sensor
- CMOS Complementary Metal-Oxide Semiconductor
- a video decoder with a video compression standard such as a MPEG (Moving Picture Experts Group Standards) 1, 2, 4, or H.261, 263, 26L, or etc.
- MPEG Motion Picture Experts Group Standards
- This color model conversion from the YUV format to the RGB format is accomplished by equations representing the relationship between the YUV format and the RGB format.
- equations for converting the pixels between the YUV format and the RGB format different statistical weight values are respectively distributed to the R, G, and B components according to their sensitivities to human vision. Therefore, various equations are applied according to the distribution methods of the statistical weight values. Among the various equations, four or five equations have been often used. One equation is defined as follows.
- the R, G, and B component values are obtained from hardware-based multipliers and adders. That is, the R and B component values are obtained from two multipliers and one adder, and the G component value is obtained from three multipliers and two adders.
- the color model conversional operations of Equation 1 are implemented by the hardware. Since the hardware occupies a large space, the hardware is not proper to be employed by a small-sized mobile communication terminal. Further, in multiplication operations of Equation 1, the statistical weight values to the Y, U, and V component values are not integers but decimal fractions with a floating point, thereby complicating the design of the hardware and increasing the size of the hardware chip. Moreover, interfaces between the hardware device for the color model conversion and the camera or video decoder are changed by the kinds of the cameras or video decoders, thereby reducing generalization.
- the color model conversional operations of Equation 1 may be implemented by software.
- the statistical weight values to the Y, U, and V component values are also decimal fractions with a floating point, thereby requiring a large number of instructions. These operations impose a heavy burden on a microprocessor of a mobile communication terminal with more limited computing power than a general desktop computer.
- MPEG ISO/IEC 13818-2 Section 6.3.6 states a method for converting the statistical weight values of Equation 1 into integers in order to convert a color mode of a mobile communication terminal, as follows.
- crv, cgu, cgv, and cbu are statistical weight values differently given by respective International Standard Organizations. These values are described in the following Table 1.
- Equation 2 the statistical weight values applied to the Y, U, and V component values are integers. Further, since shift operations requiring instructions with a smaller number than the multiplication operations are used, the number of the instructions required in Equation 2 is much smaller than Equation 1.
- a necessary memory capacity is determined by the size of the color look-up table.
- the size of the color look-up table is changed by the number of variables used as indexes.
- U.S. Pat. No. 5,936,683 discloses color look-up tables using two variables as indexes. In order to use two variables as indexes, since a color look-up table must represent all combinational cases of two variables, the size of the color look-up table becomes larger than that of a color look-up table using one variable as an index. Therefore, it requires that the size of the color look-up table must be reduced by decreasing the number of variables used as indexes.
- the present invention has been made in view of the above problems, and it is an object of the present invention to provide an apparatus and a method for converting pixels from a YUV format to RGB format using color look-up tables.
- the above and other objects can be accomplished by the provision of an apparatus for converting a color mode using at least five look-up tables respectively using one index and at least three adders.
- the method comprises the steps of: inputting a Y component value of the generated pixel to a first color look-up table, selecting the partial values of the Y component to the R, G, B components from the first color look-up table corresponding to the inputted Y component value, and respectively outputting the selected partial values to first, second, and third adders; inputting a V component value of the generated pixel to second and third color look-up tables, respectively selecting the partial values of the V component to the R and G components from the second and third color look-up tables corresponding to the inputted V component value, and respectively outputting the selected partial values to the first and second adders; inputting a U component value of the generated pixel to fourth and fifth color look-up tables, respectively selecting the partial values of the U component to the G and B component from the fourth and fifth color look-up tables corresponding to the inputted U component value, and respectively outputting the selected partial values to the second and third adders; and obtaining R, G, and B component values from added values of the partial values using the first, second,
- FIG. 1 is a block diagram of a multimedia system for displaying video signals from a camera on a LCD in accordance with an embodiment of the present invention
- FIG. 2 is a block diagram of a multimedia system for decoding MPEG video data transmitted from a modem via a video CODEC and then displaying the decoded video signals on a LCD in accordance with an embodiment of the present invention
- FIG. 3 is a block diagram of an apparatus for converting a color mode in accordance with an embodiment of the present invention
- FIG. 4 is a block diagram of a process for converting a YUV-to-RGB color mode in accordance with an embodiment of the present invention
- FIG. 5 is a block diagram of a process for converting a YUV-to-RGB color mode in accordance with another embodiment of the present invention.
- FIG. 6A shows a memory map for storing YUV pixel data in accordance with an embodiment of the present invention
- FIG. 6B shows a memory map for storing RGB pixel data in accordance with an embodiment of the present invention
- FIG. 7 shows a memory map for storing pixel data in accordance with another embodiment of the present invention.
- FIGS. 8A and 8B is a block diagram of a process for generating color look-up tables in accordance with an embodiment of the present invention.
- FIG. 1 is a block diagram of a multimedia system for displaying video signals from an external video signal source such as a digital camera on a LCD in accordance with an embodiment of the present invention.
- the multimedia system comprises a camera device 101 , an LCD device 115 , and a multimedia device 100 .
- the multimedia device 100 comprises a camera driving device 103 , a CPU (Central Processing Unit) 105 , a memory 107 , a color look-up table generator 109 , a color mode converter 111 , and a LCD driving device 113 .
- the multimedia device 100 may be produced as a multimedia chip in a SOC (System On Chip) type.
- SOC System On Chip
- the multimedia system uses the camera device 101 as a video signal source for providing video signals from the exterior.
- a CD-ROM Compact Disk Read-Only Memory
- video data outputted from a video camera may be used as the external video signal source.
- the camera device 101 is connected to the camera driving device 103 via a communication unit such as a GPI/O (General Purpose Input/Output) or a 12 C, and transmits its video signals to the memory 107 via a bus.
- a communication unit such as a GPI/O (General Purpose Input/Output) or a 12 C
- the camera driving device 103 serves as an interface between the CPU 105 and the camera device 101 . That is, the camera driving device 103 serves to convert input/output instructions from the CPU 105 , for example, an instruction to copy the video signals from the camera 101 into the memory 107 or an interrupt signal for copy termination, into comprehensible messages by the camera device 101 and the CPU 105 .
- the CPU 105 is a microprocessor such as ARM9 Core.
- the CPU 105 controls the over-all operation of the multimedia system. Specifically, the CPU 105 copies video data in a YUV format from the camera device 101 into the memory 107 by the camera driving device 103 via the bus. After completing the copy, when the copy termination interrupt signal is inputted from the camera driving device 103 to the CPU 105 , the CPU 105 converts the video data into a RGB format using the color look-up table generator 109 and the color mode converter 111 , and then displays the converted video data on the LCD device 15 via the LCD driving device 113 .
- the memory 107 stores pixel data in the YUV format inputted from the camera device 101 and pixel data in the RGB format inputted from the color mode converter 111 in its designated regions.
- the color look-up tables generated by the color look-up table generator 109 are also stored in the memory 107 .
- a SDRAM Synchronous Dynamic Random Access Memory
- the color look-up table generator 109 stores programs and data for generating the color look-up tables.
- the CPU 105 controls the color look-up table generator 109 , thereby allowing the color look-up table generator 109 to generate each color look-up table respectively to Y, U and V component values in a designated range. Further, under control of the CPU 105 , the generated color look-up tables are stored in designated regions of the memory 107 or in other memories (not shown).
- the color mode converter 111 converts the pixel data in the YUV format into the pixel data in the RGB format with reference to the generated color look-up tables.
- the color mode converter 111 reads the Y, U and V component values stored in the memory 107 , and then obtains R, G and B component values respectively corresponding to the read Y, U and V component values from the color look-up tables. Then, the obtained R, G and B component values are stored in designated regions of the memory 107 .
- the LCD driving device 113 drives and controls the LCD device 115 so as to output the R, G and B component values of each pixel converted by the color mode converter 11 and stored in the memory 107 on the LCD device 115 .
- the multimedia system comprises the color mode converter 111 .
- the CPU 105 can function as the color mode converter using its operation unit.
- FIG. 2 is a block diagram of a multimedia system for receiving compressed video data via a modem, for example compressed video data in a MPEG 4 or H.263 format, and outputting the received data to the video display device such as the LCD.
- the multimedia system comprises a modem 201 for communicating the video data, a dual port RAM 203 , the LCD device 115 , and a multimedia device 200 .
- the multimedia device 200 of FIG. 2 is similar to the multimedia device 100 of FIG. 1 in that the multimedia device 200 comprises the CPU 105 , the memory 107 , the color look-up table generator 109 , the color mode converter 111 , and the LCD driving device 113 .
- the multimedia device 200 further comprises a video CODEC (coder-decoder) 205 .
- the multimedia device 200 may be also produced as a multimedia chip in a SOC (System On Chip) type.
- the modem 201 serves to demodulate digital signals for a computer system into analog signals for wire and/or radio communications and to modulate the analog signals into the digital signals.
- MSM Mobile Station Modem
- the modem 201 receives video data via a wire or radio communication, and stores the received data in the dual port RAM 203 .
- the dual port RAM 203 is a memory for storing the video data.
- the dual port RAM 203 comprises two separate pins, i.e., one pin for reading data and another pin for writing data. Therefore, while new video data from the modem 201 is written on the dual port RAM 203 , in order to reproduce the existing stored video data, the CPU 105 can read the existing stored video data from the dual port RAM 203 and copy the read data into the memory 107 .
- the video CODEC 205 decodes encoded video data inputted from the memory 107 into video signals in the YUV format, and stores the decoded video signals in the YUV format in the memory 107 .
- the video signals in the YUV format may be stored in an inner memory (not shown) of the video CODEC 205 .
- the video CODEC 205 requests the CPU 105 to start the color model conversion.
- the constructions and operations of other components of the multimedia device 200 of FIG. 2 are substantially the same as those of the multimedia device 100 of FIG. 1, and their detailed descriptions will thus be omitted.
- Equation 2 is converted into Equation 3 as follows.
- 16 ⁇ Y ⁇ 235, 16 ⁇ U ⁇ 240, and 16 ⁇ V ⁇ 240 are referred to herein.
- Equation 3 comprises the total sum of partial values, each comprising one variable selected from three variables, i.e., the Y, U, and V component values, and a shifting operation.
- the R component value comprises two partial values. The first part is 76309*(Y ⁇ 16) in which the Y component operates, and the second part is crv*(V ⁇ 128)+32768 in which the V component operates on the R component.
- the G component value comprises three partial values.
- the first part is also 76309*(Y ⁇ 16) in which the Y component operates.
- the second part is 32768 ⁇ cgu*(U ⁇ 128) in which the U component operates on the G component, and the third part is cgv*(128 ⁇ V) in which the V component operates on the G component.
- the B component value comprises two partial values.
- the first part is also 76309*(Y ⁇ 16) in which the Y component operates, and the second part is cbu*(U ⁇ 128)+32768 in which the U component operates on the B component.
- Each partial value is obtained from the corresponding single color look-up table.
- the Y, U, and V components are used as indexes or memory addresses into the color look-up tables.
- Each color look-up table to the corresponding partial value uses only one variable as an index or a memory address. Therefore, compared to the conventional color look-up table using two or three variables as indexes, the color look-up table of the present invention requires much less memory capacity.
- a statistical weight value to at least one variable, i.e., the statistical weight value to the Y component is fixed. Therefore, one color look-up table for the Y component is commonly used in the three formulas of Equation 3, thereby reducing the number of the necessary color look-up tables.
- FIG. 3 is a block diagram of the color mode converter 111 for converting a pixel data from the YUV format to the RGB format using five color look-up tables and three adders, with reference to the above-described Equation 3.
- a color look-up table colorTable_y 301 is a conversion table for the Y component, and stores calculated values of 76309*(Y ⁇ 16) for all the Y component values in the range of 16 to 235.
- the color mode converter 111 reads a Y component value desired to be converted from the memory 107 , and using the read Y component value as an address then outputs the stored value in this address of the color look-up table colorTable_y 301 , i.e., the value of 76309*(Y ⁇ 16), to an adder_R 311 , adder_G 315 , and adder_B 317 .
- the V component value is used as an index of a color look-up table colorTable_rv 303 and a color look-up table colorTable_gv 307 .
- the color look-up table colorTable_rv 303 is a table for obtaining the partial value of the R component from the V component value, and stores calculated values of crv*(V ⁇ 128)+32768 for all the V component values in the range of 16 to 240.
- the color look-up table colorTable_gv 307 is a table for obtaining the partial value of the G component from the V component, and stores calculated values of cgv*(128 ⁇ V) for all the V component values in the range of 16 to 240.
- a color look-up table colorTable_gu 305 and a color look-up table colorTable_bu 309 are respectively tables for obtaining partial values of the G and B components from the U component value.
- the color look-up tables 305 and 309 respectively store calculated values of 32768 ⁇ cgu*(U ⁇ 128) and cbu*(U ⁇ 128)+32768 for all the U component values in the range of 16 to 240, and then output the stored values corresponding to inputted U component values to the adder_G 315 and an adder_B 317 .
- the adder_R 311 adds the respective values inputted from the color look-up table colorTable_y 301 and the color look-up table colorTable_rv 303 , and then outputs the sum of these values to a shift operator (not shown).
- the shift operator shift-operates the inputted value from the adder R 311 , and stores its resulting value as a R component value of the corresponding pixel in the memory 107 .
- the adder_G 315 adds the inputted values from the color look-up table colorTable_y 301 , the color look-up table colorTable_gu 305 , and the color look-up table colorTable_gv 307 , shift-operates the sum, and stores its resulting value as a G component value in the memory 107 .
- a B component value is generated by adding the inputted values from the color look-up table colorTable_y 301 and the color look-up table_bu 309 by the adder_B 317 , shift operating the sum. Then, the resulting value is stored as the B component value in the memory 107 .
- the color mode converter 111 of this embodiment of the present invention comprises the above-described adders, addition operations performed by the adders may be accomplished by an operation device of the CPU 105 . Further, the color mode converter 111 may only store a program for converting pixels from the YUV format to the RGB format, and the CPU 105 may operate the program.
- FIGS. 4 and 5 is a flow chart showing a method for converting one frame from the YUV format to the RGB format using the color mode converter 111 of FIG. 3 in accordance with an embodiment of the present invention.
- the present invention may be applied to all the video formats such as a CIF (Common Intermediate Format), a QCIF (Quarter CIF), and SQCIF (Sub Quarter CIF), etc. However, it is assumed that the present invention is applied to the QCIF mode with the number of pixels of 176 ⁇ 144 per frame.
- the CPU 105 verifies whether the color model conversion is required or not. That is, the CPU 105 verifies whether a signal requiring the conversion of color mode is inputted from the video CODEC 205 or a copy termination interrupt signal is inputted from the LCD driving device 103 .
- the process returns to START.
- the CPU 105 examines at step 403 whether a color look-up table flag is set or not.
- the color look-up table flag serves to represent whether the color look-up tables are generated or not.
- the color look-up table flag is set to be 1.
- the color look-up table flag is used as a global variable, which assigns one bit on the memory 107 or a register (not shown) and is generally used throughout the program.
- the method is directed to a routine for generating the color look-up tables of FIG. 8 .
- the method is directed to step 405 . That is, the CPU 105 starts the YUV-to-RGB conversion using the color mode converter 111 .
- the CPU 105 again stores the Y, U, and V component values already stored in designated regions of the memory 107 in a yuv arrangement of 176 ⁇ 144 ⁇ 3, and assigns rgb[176 ⁇ 144 ⁇ 3] arrangement regions for storing the R, G, and B component values converted from the Y, U, and V component values on the memory 107 .
- step 407 is carried out.
- the number of 176 means the number of pixels arranged in a horizontal direction per frame
- the number of 144 means the number of pixels arranged in a vertical direction per frame.
- the number of 3 means that three component values such as the Y, U, and V components or the R, G, and B components are defined per pixel.
- the video format is the CIF mode or the SQCIF mode
- the memory is assigned according to the corresponding number of pixels.
- Other storage techniques are of course available provided that the underlying procedures are followed.
- FIG. 6 A memory map for storing the YUV arrangement and the RGB arrangement is shown in FIG. 6 .
- the Y, U, and V component values of each pixel are separately stored in designated regions 61 , 63 , and 65 of 176 ⁇ 144, and as shown in FIG. 6 b , the R, G, and B component values of each pixel are successively stored in the memory.
- the present invention may use a reverse situation to the above two cases or either one of two cases.
- the CPU 105 at step 407 tests the YUV data format.
- the process is directed to step 409 .
- step 409 the CPU 105 sets a value of “i” to be “0” and the process is directed to step 411 .
- the character “i” is a variable for counting pixels arranged in the vertical direction per frame, and has values in the range of 0 to 144 in the QCIF mode.
- step 411 the CPU 105 compares the value of “i” to 144. When the value of “i” is smaller than 144, step 415 is carried out, and when the value of “i” is 144, step 413 is carried out and the process is terminated.
- the CPU 105 sets a value of “j” to be “0”.
- the character “j” is a variable for counting pixels arranged in the horizontal direction per frame, and has values in the range of 0 to 176 in the QCIF mode.
- the CPU 105 compares the value of “j” to 176. When the value of “j” is smaller than 176, step 419 is carried out.
- Step 419 is a step for setting indexes in the RGB arrangement and the YUV arrangement.
- An indexRGB is an index in the RGB arrangement to store the R, G, and B component values. As shown in FIG. 6 b , since the R, G, and B component values are successively arranged and stored, the indexRGB is set to be (j+i ⁇ 176) ⁇ 3.
- an indexY, an indexU, and an indexV are indexes in the YUV arrangement.
- the indexY is set to be j+i ⁇ 176 and indicates an address in the region 61 of FIG. 6 a .
- the indexU is set to be indexY+176 ⁇ 44 and indicates an address in the region 63 of FIG.
- the indexV is set to be indexU+176 ⁇ 144 and indicates an address in the region 65 of FIG. 6 a . Since the values of both “i” and “j” are set to be “0”, the indexY is 0, the indexU is 176 ⁇ 144, and the indexV is 2 ⁇ 176 ⁇ 144, thereby respectively indicating each first address of the regions 61 , 63 , and 65 of FIG. 6 a . Further, the indexRGB indicates the first address of the RGB arrangement of FIG. 6 b . After the indexes are set, the process continues to step 421 .
- the CPU 105 outputs values stored in each address of the indexY, indexU, and indexV in the YUV arrangement of the memory 107 to the color mode converter 111 . That is, yuv[indexY] represents the Y component value stored in the indexY address, yuv[indexU] represents the U component value stored in the indexU address, and yuv[indexV] represents the V component value stored in the index V address.
- the color mode converter 111 converts the Y, U, and V component values of the first pixel inputted from the CPU 105 into R, G, and B component values by the method of FIG. 3 .
- the Y component value of the first pixel, i.e., the yuv[indexY], and the V component value of the first pixel, i.e., the yuv[indexV], are respectively inputted to the color look-up table colorTable_y 301 and the color look-up table colorTable_rv 303 , and the values stored in the corresponding addresses of the color look-up table colorTable_y 301 and the color look-up table colorTable_rv 311 are outputted to the adder_R 311 as partial values of the R component value.
- the adder_R 311 adds two partial values, shifts their result value, and then stores the shifted value as the R component value in the rgb[indexRGB].
- the color mode converter 111 outputs a value stored in the color look-up table colorTable_y 301 corresponding to the inputted Y component value of the first pixel from the CPU 105 , a value stored in the color look-up table colorTable_gu 305 corresponding to the inputted U component value from the CPU 105 , and a value stored in the color look-up table colorTable_gv 307 corresponding to the inputted V component value from the CPU 105 to the adder_G 315 as partial values of the G component value. Then, the adder_G 315 adds three partial values, shifts their result value, and stores the shifted value as the G component in the rgb[indexRGB+1].
- the color mode converter 111 outputs a value stored in the color look-up table colorTable_y 301 corresponding to the Y component value of the first pixel and a value stored in the color look-up table colorTable_bu 309 corresponding to the U component value of the first pixel to the adder_B 317 as partial values of the B component value. Then, the adder_B 317 adds two partial values, shifts their result value, and stores the shifted value as the B component value in rgb[indexRGB+2] of the memory 107 . Since the indexRGB is 0, the obtained R, G, and B component values of the first pixel are respectively stored in rgb[0], rgb[1], and rgb[2].
- step 423 is carried out.
- step 423 in order to accomplish a YUV-to-RGB conversion of a next pixel, the CPU 105 increases the value of “j” by one and steps 417 to 423 are repeated.
- step 425 in order to perform a YUV-to-RGB conversion of the first pixel in a next line, the CPU 105 increases the value of “i” by one and steps 411 to 425 are repeated.
- step 413 After the YUV-to-RGB conversions to all the pixels in 144 lines, i.e., all the pixels of one frame, are completed, the process is directed to step 413 from step 411 . That is, the conversion of the color mode is terminated.
- step 407 when it is determined that the ratio of Y:U:V is 4:2:0, the CPU 105 carries out step 501 .
- step 501 the CPU 105 sets the value of “i” to be 0, and the process is directed to step 503 .
- the character “i” is a variable for counting pixels arranged in the vertical direction per frame, and has values in the range of 0 to 144 in the QCIF mode.
- step 503 the CPU 105 compares the value of “i” to 144. When the value of “i” is smaller than 144, the process is directed to step 505 , and when the value of “i” is 144, the process is directed to step 517 and the color model conversion is terminated.
- the CPU 105 sets the value of “j” to be 0.
- the character “j” is a variable for counting pixels arranged in the horizontal direction per frame, and has values in the range of 0 to 176.
- the CPU 105 compares the value of “j” to 176. When the value of “j” is smaller than 176, the process is directed to step 509 .
- step 509 is a step for setting indexes in the RGB arrangement and the YUV arrangement.
- Step 509 is similar to step 419 in that an indexRGB being the index of the RGB arrangement is (j+i ⁇ 176) ⁇ 3 and an indexY being an index of the Y component value of the YUV arrangement is set to be j+i ⁇ 176.
- an indexU is set to be (j>>1)+(i>>1) ⁇ 88+176 ⁇ 144
- an indexV is set to be indexU+176 ⁇ 144/4.
- the indexU indicates an address of a region 73 of FIG. 7
- the indexV indicates an address of a region 75 of FIG. 7 . Since the values of “i” and “j” are set to be 0, the indexY is 0, the indexU is 176 ⁇ 144, and the indexV is 176 ⁇ 144+176 ⁇ 144/4, thereby respectively representing the first addresses of the regions 71 , 73 , and 75 of FIG. 7 . Further, the indexRGB represents the first address in the RGB arrangement.
- step 511 the CPU 105 , which sets the indexes of respective arrangements at step 509 , outputs values stored in respective addresses of the indexY, indexU, and indexV in the YUV arrangement to the color mode converter 111 .
- the color mode converter 111 performs a YUV-to-RGB conversion.
- the obtained R, G, and B component values of the first pixel are respectively stored in rgb[0], rgb[1], and rgb[2].
- step 513 is carried out.
- the CPU 105 increases the value of “j” by one and steps 507 to 511 are repeated.
- the process is directed to step 515 from step 507 .
- the CPU 105 increases the value of “i” by one and steps 503 to 515 are repeated.
- step 517 After the YUV-to-RGB conversions to all the pixels in 144 lines, i.e., all the pixels of one frame, are completed, the process is directed to step 517 from step 503 . That is, the conversion of the color mode is terminated.
- the color look-up table generator 109 is directed to the routine for generating the color look-up tables under the control of the CPU 105 (step 801 ). However, as described above, the color look-up tables are also generated when the color model conversion is required by the video CODEC 205 or the camera driving device 103 . If the generation of the color look-up tables is not required in step 801 , the process returns to START. When the generation of the color look-up tables is required, at step 803 the color look-up table generator 109 sets the color look-up table flag to be 0. Then, the process is directed to step 805 . At step 805 , the color look-up table generator 109 tests a vision system type set in a configuration file of the multimedia device.
- the statistical weight values of the Y, U, and V components are differently defined by International Standard Organizations.
- the use differently defined statistical weight values by the ISOs depends on the LCD devices of the multimedia system, i.e., vision systems. Therefore, when different vision systems are used, the statistical weight values are differently used. Thus, different color look-up tables must be generated.
- Table 2 defines vision system types according to the ISOs.
- the configuration file of the multimedia device comprises data of the ISO, which the LCD follows.
- the color look-up table generator 109 sets the statistical weight values of the color look-up tables 303 , 305 , 307 , and 309 to be respectively designated constants. These constants are predetermined by each tested vision system type.
- crv is a statistical weight value used in the color look-up table colorTable_rv 303
- cgu is a statistical weight value used in the color look-up table colorTable_gu 305
- cgv is a statistical weight value used in the color look-up table colorTable_gv 307
- cbu is a statistical weight value used in the color look-up table colorTable_bu 309 .
- the crv, cbu, cgu and cgv values are set in one of steps 807 a - 807 e.
- the color look-up table generator 109 assigns designated regions for storing the color look-up tables on the memory 107 .
- the color look-up table generator 109 tests the color mode supported by the LCD device 113 and prepares regions for storing an arrangement with bit number corresponding to the tested mode, i.e., bit-depth, on the memory 107 .
- bit-depth i.e., bit-depth
- the color look-up table generator 109 sets the value of “i” to be 16.
- the variable “i” is a variable for counting the Y component values in the designated range of 16 to 235.
- a calculated value of 76309 ⁇ (i ⁇ 16) is stored in an i'th address of the color look-up table y 301 at step 815 .
- the value of “i” is increased by one at step 817 , and steps 813 to 817 are repeated until and including when the value of “i” is 235 .
- the generation of the color look-up table colorTable_y 301 is completed and the process is directed to step 819 .
- step 819 the value of “i” is again set to be 16. Steps 821 to 825 are repeated until the value of “i” is greater than 240, thereby generating the color look-up tables 303 , 305 , 307 , and 309 .
- the color look-up table generator 109 carries out step 827 , thereby setting the color look-up table flag to be 1 and terminating the program for generating the color look-up tables.
- the present invention allows one color look-up table to be applied to one variable, commonly uses parts of color look-up tables in obtaining the R, G, and B component values, and employs statistical weight values in the form of integers which are multiplied by the variables so as to generate the color look-up tables, thereby converting the color mode with the minimum memory capacity and the minimum instructions.
- the color look-up table generator 109 and the color mode converter 111 may store only programs for generating color look-up tables and converting the color mode, and the CPU 105 may operate these programs.
- the preferred embodiment of the present invention applies Equation 2, any other equations with other statistical weight values in the form of integers may be applied. Therefore, the scope and spirit of the present invention is not limited by the preferred embodiments but is limited by the accompanying claims and their equivalences.
Abstract
Description
TABLE 1 | ||||
International | ||||
Standard Organization | crv | cbu | cgu | cgv |
No |
117504 | 138453 | 13954 | 34903 |
ITU-R Rec.709(1990) | 117504 | 138453 | 13954 | 34903 |
Unspecified | 104597 | 132201 | 25675 | 53279 |
Reserved | 104597 | 132201 | 25675 | 53279 |
FCC | 104448 | 132798 | 24759 | 53109 |
ITU-R Rec.624-4 System B, |
104597 | 132201 | 25675 | 53279 |
SMPTE 170M | 104597 | 132201 | 25675 | 53279 |
SMPTE 240M(1987) | 117579 | 136230 | 16907 | 35559 |
TABLE 2 | |||
Vision System Type | International Standard Organization (ISO) | ||
0 | No |
||
1 | ITU-R Rec. 709(1990) | ||
2 | Unspecified | ||
3 | |
||
4 | |
||
5 | ITU-R Rec.624-4 System B, |
||
6 | |
||
7 | SMPTE 240M(1987) | ||
Claims (11)
Applications Claiming Priority (3)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
KR1020020035313A KR100547812B1 (en) | 2002-06-24 | 2002-06-24 | Apparatus and method for converting color model of pixel data using color reference table |
KR2002/35313 | 2002-06-24 | ||
KR2002-35313 | 2002-06-24 |
Publications (2)
Publication Number | Publication Date |
---|---|
US20030234795A1 US20030234795A1 (en) | 2003-12-25 |
US6828982B2 true US6828982B2 (en) | 2004-12-07 |
Family
ID=19720668
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
US10/284,980 Expired - Lifetime US6828982B2 (en) | 2002-06-24 | 2002-10-31 | Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables |
Country Status (5)
Country | Link |
---|---|
US (1) | US6828982B2 (en) |
KR (1) | KR100547812B1 (en) |
DE (1) | DE10261373A1 (en) |
FR (1) | FR2841725B1 (en) |
GB (1) | GB2390250B (en) |
Cited By (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040113917A1 (en) * | 2002-12-13 | 2004-06-17 | Kazuyoshi Matsumoto | Object information processing apparatus, image processing system, game apparatus and image processing method |
US20050254706A1 (en) * | 2004-05-13 | 2005-11-17 | Bailey James R | Method of an image processor for transforming a n-bit data packet to a m-bit data packet using a lookup table |
US20080180456A1 (en) * | 2007-01-26 | 2008-07-31 | Microsoft Corporation | Fast Filtered YUV to RGB Conversion |
US8754908B2 (en) | 2011-06-07 | 2014-06-17 | Microsoft Corporation | Optimized on-screen video composition for mobile device |
Families Citing this family (22)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7236181B2 (en) * | 2003-08-03 | 2007-06-26 | Realtek Semiconductor Corp. | Apparatus for color conversion and method thereof |
US7511714B1 (en) * | 2003-11-10 | 2009-03-31 | Nvidia Corporation | Video format conversion using 3D graphics pipeline of a GPU |
JP4200942B2 (en) * | 2004-06-02 | 2008-12-24 | セイコーエプソン株式会社 | Display controller, electronic device, and image data supply method |
KR100608814B1 (en) * | 2004-07-16 | 2006-08-08 | 엘지전자 주식회사 | Method for displaying image data in lcd |
KR101108681B1 (en) * | 2005-01-19 | 2012-01-25 | 삼성전자주식회사 | Frequency transform coefficient prediction method and apparatus in video codec, and video encoder and decoder therewith |
JP2009519625A (en) | 2005-12-02 | 2009-05-14 | コーニンクレッカ フィリップス エレクトロニクス エヌ ヴィ | Depth-dependent filtering of image signals |
KR100786386B1 (en) * | 2005-12-08 | 2007-12-17 | 한국전자통신연구원 | Display Method in Small Terminal |
US9218792B2 (en) | 2008-12-11 | 2015-12-22 | Nvidia Corporation | Variable scaling of image data for aspect ratio conversion |
TWI415480B (en) * | 2009-06-12 | 2013-11-11 | Asustek Comp Inc | Image processing method and image processing system |
US8860781B2 (en) * | 2009-06-30 | 2014-10-14 | Qualcomm Incorporated | Texture compression in a video decoder for efficient 2D-3D rendering |
US9781447B1 (en) * | 2012-06-21 | 2017-10-03 | Google Inc. | Correlation based inter-plane prediction encoding and decoding |
US9167268B1 (en) | 2012-08-09 | 2015-10-20 | Google Inc. | Second-order orthogonal spatial intra prediction |
US9344742B2 (en) | 2012-08-10 | 2016-05-17 | Google Inc. | Transform-domain intra prediction |
ES2820499T3 (en) * | 2013-09-12 | 2021-04-21 | Shenzhen Yunyinggu Tech Co Ltd | Method and apparatus for sub-pixel representation |
US9948916B2 (en) * | 2013-10-14 | 2018-04-17 | Qualcomm Incorporated | Three-dimensional lookup table based color gamut scalability in multi-layer video coding |
US9756337B2 (en) | 2013-12-17 | 2017-09-05 | Qualcomm Incorporated | Signaling color values for 3D lookup table for color gamut scalability in multi-layer video coding |
US10531105B2 (en) | 2013-12-17 | 2020-01-07 | Qualcomm Incorporated | Signaling partition information for 3D lookup table for color gamut scalability in multi-layer video coding |
US9723216B2 (en) | 2014-02-13 | 2017-08-01 | Nvidia Corporation | Method and system for generating an image including optically zoomed and digitally zoomed regions |
CN105389776B (en) | 2014-09-02 | 2019-05-03 | 辉达公司 | Image scaling techniques |
CN107079105B (en) * | 2016-11-14 | 2019-04-09 | 深圳市大疆创新科技有限公司 | Image processing method, device, equipment and video image transmission system |
CN113591878A (en) * | 2021-07-09 | 2021-11-02 | 杭州当虹科技股份有限公司 | Dynamic HDR image feature extraction method |
CN113709489A (en) * | 2021-07-26 | 2021-11-26 | 山东云海国创云计算装备产业创新中心有限公司 | Video compression method, device, equipment and readable storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5233684A (en) * | 1990-06-26 | 1993-08-03 | Digital Equipment Corporation | Method and apparatus for mapping a digital color image from a first color space to a second color space |
US5920322A (en) * | 1996-05-22 | 1999-07-06 | Digital Equipment Corporation | Method and apparatus for providing 32-bit YUV to RGB color conversion |
US5923316A (en) * | 1996-10-15 | 1999-07-13 | Ati Technologies Incorporated | Optimized color space conversion |
US5936683A (en) * | 1997-09-29 | 1999-08-10 | Neo Magic Corp. | YUV-to-RGB conversion without multiplies using look-up tables and pre-clipping |
US5963263A (en) * | 1997-06-10 | 1999-10-05 | Winbond Electronic Corp. | Method and apparatus requiring fewer number of look-up tables for converting luminance-chrominance color space signals to RGB color space signals |
US6028590A (en) * | 1998-08-20 | 2000-02-22 | Intel Corporation | Color conversion for processors |
US6043804A (en) * | 1997-03-21 | 2000-03-28 | Alliance Semiconductor Corp. | Color pixel format conversion incorporating color look-up table and post look-up arithmetic operation |
US6166720A (en) * | 1997-08-01 | 2000-12-26 | Lg Semicon Co., Ltd. | Color LCD driver with a YUV to RGB converter |
US6356277B1 (en) * | 1997-01-24 | 2002-03-12 | Seiko Epson Corporation | YUV-RGB digital conversion circuit and picture display device and electronic equipment using the same |
US6369860B1 (en) * | 1995-01-18 | 2002-04-09 | Sony Corporation | Color conversion apparatus and method for image data |
Family Cites Families (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPS63207292A (en) * | 1987-02-23 | 1988-08-26 | Nec Home Electronics Ltd | Chrominance signal converter |
US5872556A (en) * | 1993-04-06 | 1999-02-16 | International Business Machines Corp. | RAM based YUV-RGB conversion |
JPH09146511A (en) * | 1995-11-24 | 1997-06-06 | Nec Corp | Color space converting circuit |
US6172714B1 (en) * | 1996-05-22 | 2001-01-09 | Compaq Computer Corporation | Color adjustment table system for YUV to RGB color conversion |
US6075573A (en) * | 1997-06-10 | 2000-06-13 | Winbond Electronics Corp. | Method and apparatus for converting luminance-chrominance color space signals to RGB color space signals using shared predictive and compensative transformation codes for chrominance components |
US6268847B1 (en) * | 1999-06-02 | 2001-07-31 | Ati International Srl | Method and apparatus for more accurate color base conversion of YUV video data |
JP2002132225A (en) * | 2000-10-24 | 2002-05-09 | Sharp Corp | Video signal corrector and multimedia computer system using the same |
-
2002
- 2002-06-24 KR KR1020020035313A patent/KR100547812B1/en not_active IP Right Cessation
- 2002-10-31 US US10/284,980 patent/US6828982B2/en not_active Expired - Lifetime
- 2002-12-09 GB GB0228589A patent/GB2390250B/en not_active Expired - Fee Related
- 2002-12-18 FR FR0216083A patent/FR2841725B1/en not_active Expired - Fee Related
- 2002-12-30 DE DE10261373A patent/DE10261373A1/en not_active Ceased
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5233684A (en) * | 1990-06-26 | 1993-08-03 | Digital Equipment Corporation | Method and apparatus for mapping a digital color image from a first color space to a second color space |
US6369860B1 (en) * | 1995-01-18 | 2002-04-09 | Sony Corporation | Color conversion apparatus and method for image data |
US5920322A (en) * | 1996-05-22 | 1999-07-06 | Digital Equipment Corporation | Method and apparatus for providing 32-bit YUV to RGB color conversion |
US5923316A (en) * | 1996-10-15 | 1999-07-13 | Ati Technologies Incorporated | Optimized color space conversion |
US6356277B1 (en) * | 1997-01-24 | 2002-03-12 | Seiko Epson Corporation | YUV-RGB digital conversion circuit and picture display device and electronic equipment using the same |
US6043804A (en) * | 1997-03-21 | 2000-03-28 | Alliance Semiconductor Corp. | Color pixel format conversion incorporating color look-up table and post look-up arithmetic operation |
US5963263A (en) * | 1997-06-10 | 1999-10-05 | Winbond Electronic Corp. | Method and apparatus requiring fewer number of look-up tables for converting luminance-chrominance color space signals to RGB color space signals |
US6166720A (en) * | 1997-08-01 | 2000-12-26 | Lg Semicon Co., Ltd. | Color LCD driver with a YUV to RGB converter |
US5936683A (en) * | 1997-09-29 | 1999-08-10 | Neo Magic Corp. | YUV-to-RGB conversion without multiplies using look-up tables and pre-clipping |
US6028590A (en) * | 1998-08-20 | 2000-02-22 | Intel Corporation | Color conversion for processors |
Cited By (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20040113917A1 (en) * | 2002-12-13 | 2004-06-17 | Kazuyoshi Matsumoto | Object information processing apparatus, image processing system, game apparatus and image processing method |
US7248750B2 (en) * | 2002-12-13 | 2007-07-24 | Sharp Kabushiki Kaisha | Object information processing apparatus, image processing system, game apparatus and image processing method |
US20050254706A1 (en) * | 2004-05-13 | 2005-11-17 | Bailey James R | Method of an image processor for transforming a n-bit data packet to a m-bit data packet using a lookup table |
US7580564B2 (en) * | 2004-05-13 | 2009-08-25 | Lexmark International, Inc. | Method of an image processor for transforming a n-bit data packet to a m-bit data packet using a lookup table |
US20080180456A1 (en) * | 2007-01-26 | 2008-07-31 | Microsoft Corporation | Fast Filtered YUV to RGB Conversion |
US7639263B2 (en) | 2007-01-26 | 2009-12-29 | Microsoft Corporation | Fast filtered YUV to RGB conversion |
US8754908B2 (en) | 2011-06-07 | 2014-06-17 | Microsoft Corporation | Optimized on-screen video composition for mobile device |
Also Published As
Publication number | Publication date |
---|---|
GB2390250A (en) | 2003-12-31 |
GB2390250B (en) | 2004-06-02 |
FR2841725B1 (en) | 2005-07-08 |
DE10261373A1 (en) | 2004-01-29 |
US20030234795A1 (en) | 2003-12-25 |
GB0228589D0 (en) | 2003-01-15 |
KR100547812B1 (en) | 2006-01-31 |
KR20040000151A (en) | 2004-01-03 |
FR2841725A1 (en) | 2004-01-02 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US6828982B2 (en) | Apparatus and method for converting of pixels from YUV format to RGB format using color look-up tables | |
US5559954A (en) | Method & apparatus for displaying pixels from a multi-format frame buffer | |
US6750876B1 (en) | Programmable display controller | |
US7929754B2 (en) | Strategies for processing image information using a color information data structure | |
US8184127B2 (en) | Apparatus for and method of generating graphic data, and information recording medium | |
US6034667A (en) | Method and apparatus for displaying YUV color information on a pseudo-color RGB display | |
US7969793B2 (en) | Register configuration control device, register configuration control method, and program for implementing the method | |
CN101388950B (en) | Content-adaptive contrast improving method and apparatus for digital image | |
US7554563B2 (en) | Video display control apparatus and video display control method | |
US6778187B1 (en) | Methods and devices to process graphics and/or video data | |
US7050065B1 (en) | Minimalist color space converters for optimizing image processing operations | |
US20080284793A1 (en) | Hue and saturation control module | |
US6989837B2 (en) | System and method for processing memory with YCbCr 4:2:0 planar video data format | |
US5691746A (en) | Digital video format conversion by upsampling decompressed data using on-the-fly interpolation and color conversion | |
US7800629B2 (en) | Image processing apparatus and method for preventing degradation of image quality when bit format of image is converted | |
GB2368253A (en) | Display driver | |
US5943045A (en) | Image file, generation method thereof, and image display apparatus | |
US20060033939A1 (en) | Apparatus and method for converting color gamut of color image | |
US5768507A (en) | Method and apparatus for overcoming a slope overload condition while using differential pulse code modulation scheme | |
EP1741282A1 (en) | Method and apparatus for vertically scaling pixel data | |
JP2000503134A (en) | Image signal processing apparatus and digital data signal processing method | |
US8681167B2 (en) | Processing pixel planes representing visual information | |
JPH07254993A (en) | Yuv/rgb conversion circuit | |
CA2276201C (en) | Image data conversion processing device and information processing device having the same | |
US20120075323A1 (en) | Method and apparatus for generating and processing graphic data |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AS | Assignment |
Owner name: SAMSUNG ELECTRONICS CO., LTD., KOREA, REPUBLIC OF Free format text: ASSIGNMENT OF ASSIGNORS INTEREST;ASSIGNOR:LEE, SEUNG-CHOI;REEL/FRAME:013450/0276 Effective date: 20021029 |
|
AS | Assignment |
Owner name: SAMSUNG ELECTRONICS CO., LTD., KOREA, REPUBLIC OF Free format text: CORRECTIVE COVERSHEET TO CORRECT THE NAME OF THE ASSIGNOR THAT WAS PREVIOUSLY RECORDED ON REEL 013450, FRAME 0276.;ASSIGNOR:LEE, SEUNG-CHEOL;REEL/FRAME:014155/0229 Effective date: 20021027 |
|
FEPP | Fee payment procedure |
Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
STCF | Information on status: patent grant |
Free format text: PATENTED CASE |
|
FEPP | Fee payment procedure |
Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
FEPP | Fee payment procedure |
Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
FPAY | Fee payment |
Year of fee payment: 4 |
|
FEPP | Fee payment procedure |
Free format text: PAYER NUMBER DE-ASSIGNED (ORIGINAL EVENT CODE: RMPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY Free format text: PAYOR NUMBER ASSIGNED (ORIGINAL EVENT CODE: ASPN); ENTITY STATUS OF PATENT OWNER: LARGE ENTITY |
|
FPAY | Fee payment |
Year of fee payment: 8 |
|
FPAY | Fee payment |
Year of fee payment: 12 |