[go: up one dir, main page]

CN112615976A - Color format conversion method and device, electronic equipment and storage medium - Google Patents

Color format conversion method and device, electronic equipment and storage medium Download PDF

Info

Publication number
CN112615976A
CN112615976A CN202011379827.XA CN202011379827A CN112615976A CN 112615976 A CN112615976 A CN 112615976A CN 202011379827 A CN202011379827 A CN 202011379827A CN 112615976 A CN112615976 A CN 112615976A
Authority
CN
China
Prior art keywords
conversion
format
components
original
color
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.)
Granted
Application number
CN202011379827.XA
Other languages
Chinese (zh)
Other versions
CN112615976B (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.)
Spreadtrum Semiconductor Chengdu Co Ltd
Original Assignee
Spreadtrum Semiconductor Chengdu Co 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 Spreadtrum Semiconductor Chengdu Co Ltd filed Critical Spreadtrum Semiconductor Chengdu Co Ltd
Priority to CN202011379827.XA priority Critical patent/CN112615976B/en
Publication of CN112615976A publication Critical patent/CN112615976A/en
Application granted granted Critical
Publication of CN112615976B publication Critical patent/CN112615976B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/64Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor
    • H04N1/644Systems for the transmission or the storage of the colour picture signal; Details therefor, e.g. coding or decoding means therefor using a reduced set of representative colours, e.g. each representing a particular range in a colour space
    • G06T11/10
    • 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)
  • Processing Of Color Television Signals (AREA)
  • Color Image Communication Systems (AREA)
  • Image Processing (AREA)

Abstract

本发明公开了一种颜色格式转换方法、装置、电子设备及存储介质。方法包括获取颜色数据、所述颜色数据的输入颜色格式和对所述颜色数据指定的输出颜色格式;根据所述输入颜色格式和所述输出颜色格式,调用实现从所述输入颜色格式转换到所述输出颜色格式的转换流程;通过所述转换流程对所述颜色数据进行转换后输出。通过本发明,使用者不用再去为每一种格式转换实现具体的转换方式,只需要指定输入格式、输出格式和输入数据,即可得到指定输出格式的数据。减少YUV与RGB格式转换的复用性差和碎片化问题,有利于使用者进行高效率的程序开发。

Figure 202011379827

The invention discloses a color format conversion method, device, electronic equipment and storage medium. The method includes acquiring color data, an input color format of the color data, and an output color format specified for the color data; according to the input color format and the output color format, invoking the conversion from the input color format to the output color format. The conversion process of the output color format is performed; the color data is converted and output through the conversion process. With the present invention, the user does not need to implement a specific conversion method for each format conversion, but only needs to specify the input format, the output format and the input data, and then the data in the specified output format can be obtained. Reduce the problem of poor reusability and fragmentation of YUV and RGB format conversion, which is beneficial to users for efficient program development.

Figure 202011379827

Description

Color format conversion method and device, electronic equipment and storage medium
Technical Field
The present invention relates to the field of color conversion, and in particular, to a color format conversion method and apparatus, an electronic device, and a storage medium.
Background
YUV is a type of color space (color space) in which "Y" represents brightness (Luma) or gray scale value, and "U" and "V" represent Chroma (Chroma) for describing image color and saturation, and is used to specify the color of a pixel. RGB is a color standard, which is a color representing three color channels of red (R), green (G) and blue (B) by changing the three color channels and superimposing them on each other, and it includes almost all colors that can be perceived by human vision, and is one of the most widely used color systems.
The data output formats of digital image sensors and analog image sensors which are widely adopted at present are generally YUV formats, and the mainstream sampling modes of YUV images include the following three types: YUV 4:4:4 sampling, YUV 4:2:2 sampling and YUV 4:2:0 sampling, and each sampling mode is divided into a plane format and a packaging format, so that different sampling and storage modes cause that YUV data has multiple formats. RGB data is mainly used for hardware-oriented devices, and is widely used for video monitors, color cameras, printers, and the like. In the use process of display data using RGB as a model, different digits of each pixel point and different arrangement modes of R, G and B also cause that RGB has different format standards. Most of the existing display devices are driven by RGB, so the conversion between YUV and RGB color space is needed from an image sensor acquisition module to a display module. Meanwhile, format conversion inside YUV and format conversion inside RGB are also highly demanded in image processing and display.
The conversion of the current color data YUV and the display data RGB is realized in a single manner, for example, the conversion between YUV internal portions in a specific format requires a specific method, and similarly, the conversion between RGB internal portions and the conversion between YUV and RGB also require a specific method. If the conversion is carried out for multiple times, multiple corresponding methods need to be realized, so that the repeatability and fragmentation of the realization mode are caused, and the transplantation of the conversion method is not facilitated. The user needs to implement the specified conversion method each time, which is not favorable for efficient program development.
Disclosure of Invention
The technical problem to be solved by the invention is to provide a color format conversion method, a color format conversion device, an electronic device and a storage medium, aiming at overcoming the defects that in the prior art, the conversion from one format to another format is realized in an independent mode, if the conversion is carried out for multiple times, multiple corresponding methods are required to be realized, the repeatability and fragmentation of the realization mode are caused, the transplantation of the conversion method is not facilitated, the specified conversion method needs to be realized by a user every time, and the efficient program development is not facilitated.
The invention solves the technical problems through the following technical scheme:
the invention provides a color format conversion method, which comprises the following steps:
acquiring color data, an input color format of the color data, and an output color format specified for the color data;
calling a conversion process for realizing conversion from the input color format to the output color format according to the input color format and the output color format;
and converting the color data through the conversion process and then outputting the color data.
Preferably, when the input color format comprises an original sampling mode, an original storage format and an original combination mode of components of Y, U and V in the YUV format, and the output color format comprises an appointed sampling mode, an appointed storage format and an appointed combination mode of components of Y, U and V in the YUV format, the YUV internal conversion process is called;
the YUV internal conversion process comprises the following steps:
converting from the original sampling mode to the specified sampling mode;
a conversion from the original storage format to the specified storage format;
and converting the original combination mode into the specified combination mode.
Preferably, when the input color format includes the original arrangement of three channels R, G, B in RGB format and the original pixel bits of the components R, G, B, and the output color format includes the specified arrangement of three channels R, G, B in color data and the specified pixel bits of the components R, G, B, the RGB internal conversion process is invoked;
the RGB internal conversion process comprises the following steps:
converting from the original arrangement mode to the specified arrangement mode;
a conversion from the primary pixel bit number to the specified pixel bit number.
Preferably, the conversion from the primary pixel bit number to the designated pixel bit number comprises:
judging whether the conversion from high precision to low precision or the conversion from low precision to high precision is carried out by comparing the original pixel digit with the appointed pixel digit;
if the conversion from high precision to low precision is carried out, executing a quantization compression step, wherein the quantization compression step comprises filling R, G and B components of the converted color data with high-order data of the appointed pixel bit number of the R, G and B components in the color data before the conversion;
and if the color data is converted from low precision to high precision, executing a quantization compensation step, wherein the quantization compensation step comprises the steps of filling data of the components R, G and B in the color data before conversion into high bits of the components R, G and B in the color data after conversion, compensating by using the low bits of the data of the components R, G and B in the color data before conversion, and if the color data after conversion still has unfilled bits, continuing to use the low bits of the components R, G and B in the color data before conversion for cyclic compensation until the bits of the components R, G and B in the color data after conversion are filled.
Preferably, when the input color format includes an original sampling mode and an original storage format of a YUV format and an original combination mode of Y, U and V components, and the output color format includes an assigned combination mode of R, G and B channels and an assigned pixel bit number of R, G and B components of an RGB format, a conversion process from YUV to RGB is invoked;
the process of converting YUV to RGB comprises the following steps:
converting the original sampling mode, the original storage format and the original combination mode into a YUV universal sampling mode, a universal storage format and a universal combination mode of Y, U and V components;
converting the YUV universal sampling mode, the universal storage format and the universal combination mode of the Y, U and V components into the universal combination mode of the R, G and B channels and the universal pixel bit number of the R, G and B components;
converting from the general arrangement of the R, G, B three channels and the general pixel bit number of the R, G, B components to the specific arrangement of the R, G, B three channels and the specific pixel bit number of the R, G, B components;
or, when the input color format comprises an original combination mode of R, G and B channels in an RGB format and an original pixel bit number of R, G and B components, and the output color format comprises a specified sampling mode, a specified storage format and a specified combination mode of Y, U and V components in a YUV format, calling a conversion process from RGB to YUV;
the conversion process from RGB to YUV comprises the following steps:
converting the original arrangement mode of the R, G and B channels and the original pixel digits of the R, G and B components into the universal arrangement mode of the R, G and B channels and the universal pixel digits of the R, G and B components;
converting the general arrangement mode of the R, G and B channels and the general pixel bit number of the R, G and B components into a YUV general sampling mode, a general storage format and a general combination mode of the Y, U and V components;
and converting the YUV universal sampling mode, the universal storage format and the universal combination mode of the Y, U and V components into the specified combination mode of the R, G and B channels and the specified pixel bit number of the R, G and B components.
The present invention provides a color format conversion apparatus, comprising:
an obtaining module for obtaining color data, an input color format of the color data, and an output color format specified for the color data;
and the conversion module is used for converting the color data from the input color format to the output color format and outputting the converted color data according to the input color format and the output color format.
Preferably, the conversion module comprises a YUV internal conversion module;
when the input color format comprises an original sampling mode, an original storage format and an original combination mode of Y, U and V components of a YUV format, and the output color format comprises an appointed sampling mode, an appointed storage format and an appointed combination mode of Y, U and V components of the YUV format, the YUV internal conversion module is used for realizing:
converting from the original sampling mode to the specified sampling mode;
a conversion from the original storage format to the specified storage format;
and converting the original combination mode into the specified combination mode.
Preferably, the conversion module comprises an RGB internal conversion module;
when the input color format includes the original arrangement of three channels R, G, and B in RGB format and the original pixel bits of the components R, G, and B, and the output color format includes the specified arrangement of three channels R, G, and B in color data and the specified pixel bits of the components R, G, and B, the RGB internal conversion mode is used to implement:
converting from the original arrangement mode to the specified arrangement mode;
a conversion from the primary pixel bit number to the specified pixel bit number.
Preferably, the conversion from the primary pixel bit number to the designated pixel bit number comprises:
judging whether the conversion from high precision to low precision or the conversion from low precision to high precision is carried out by comparing the original pixel digit with the appointed pixel digit;
if conversion from high precision to low precision is performed, performing quantization compression, the quantization compression including filling R, G, B components of the converted color data with upper data of the specified number of pixel bits of the R, G, B components in the color data before conversion;
if the conversion is from low precision to high precision, executing a quantization compensation step, wherein the quantization compensation comprises the steps of filling data of R, G and B components in the color data before conversion into high bits of the R, G and B components in the color data after conversion, compensating by using the low bits of the data of the R, G and B components in the color data before conversion, and if the color data after conversion still has unfilled bits, continuing to use the low bits of the R, G and B components in the color data before conversion for cyclic compensation until the bits of the R, G and B components in the color data after conversion are filled.
Preferably, the conversion module comprises a YUV and RGB interconversion module;
when the input color format comprises an original sampling mode and an original storage format of a YUV format and an original combination mode of Y, U and V components, and the output color format comprises an appointed arrangement mode of R, G and B channels of an RGB format and an appointed pixel bit number of the R, G and B components, the YUV and RGB mutual conversion module is used for realizing:
converting the original sampling mode, the original storage format and the original combination mode into a YUV universal sampling mode, a universal storage format and a universal combination mode of Y, U and V components;
converting the YUV universal sampling mode, the universal storage format and the universal combination mode of the Y, U and V components into a universal arrangement mode of R, G and B channels and a universal pixel bit number of the R, G and B components;
converting from the general arrangement of the R, G, B three channels and the general pixel bit number of the R, G, B components to the specific arrangement of the R, G, B three channels and the specific pixel bit number of the R, G, B components;
or, when the input color format includes an original arrangement mode of R, G, B three channels in RGB format and an original pixel bit number of R, G, B components, and the output color format includes an appointed sampling mode in YUV format, an appointed storage format, and an appointed combination mode of Y, U, V components, the YUV and RGB interconversion module is configured to implement:
converting the original arrangement mode of the R, G and B channels and the original pixel digits of the R, G and B components into the universal arrangement mode of the R, G and B channels and the universal pixel digits of the R, G and B components;
converting the general arrangement mode of the R, G and B channels and the general pixel bit number of the R, G and B components into a YUV general sampling mode, a general storage format and a general combination mode of the Y, U and V components;
and converting the YUV universal sampling mode, the universal storage format and the universal combination mode of the Y, U and V components into the specified combination mode of the R, G and B channels and the specified pixel bit number of the R, G and B components.
The present invention provides a color format conversion apparatus, comprising: the device comprises an input unit, a central processing unit, an output unit, a memory unit and a storage unit;
the storage unit is used for storing the conversion flow;
the input unit is used for receiving the input of color data, an input color format and an output color format;
the central processing unit is used for calling a conversion flow in the storage unit to process the color data in the memory unit according to the input color format and the output color format, and outputting the processed color data through the output unit.
The invention provides an electronic device comprising a memory, a processor and a computer program stored on the memory and operable on the processor, wherein the processor implements the color format conversion method as described above when executing the program.
The present invention provides a computer-readable storage medium having stored thereon a computer program, characterized in that the program, when executed by a processor, implements the steps of the color format conversion method as described above.
On the basis of the common knowledge in the field, the above preferred conditions can be combined randomly to obtain the preferred embodiments of the invention.
The positive progress effects of the invention are as follows: by the invention, a user does not need to realize a specific conversion mode for each format conversion, and only needs to specify the input format, the output format and the input data to obtain the data of the specified output format. The problems of poor reusability and fragmentation of YUV and RGB format conversion are reduced, and efficient program development is facilitated for users.
Drawings
Fig. 1 is a flowchart of a color format conversion method according to embodiment 1 of the present invention;
fig. 2 is a process diagram of a YUV internal conversion flow according to embodiment 1 of the present invention;
FIG. 3 is a schematic process diagram of an internal RGB conversion process according to embodiment 1 of the present invention;
fig. 4 is a schematic process diagram of a process of interconversion process between YUV and RGB in embodiment 1 of the present invention;
fig. 5 is a schematic block diagram of a color format conversion apparatus according to embodiment 2 of the present invention;
fig. 6 is a schematic block diagram of a color format conversion apparatus according to embodiment 3 of the present invention;
fig. 7 is a schematic structural diagram of an electronic device according to embodiment 5 of the present invention.
Detailed Description
The invention is further illustrated by the following examples, which are not intended to limit the scope of the invention.
Example 1
Fig. 1 shows a color format conversion method of the present embodiment. It includes:
step 11: color data, an input color format of the color data, and an output color format specified for the color data are acquired.
Step 12: and calling a conversion flow for realizing conversion from the input color format to the output color format according to the input color format and the output color format.
Step 13: and converting the color data through a conversion process and then outputting the color data.
The above-described transformations can be roughly classified into three categories: YUV to YUV conversion, RGB to RGB conversion, and YUV and RGB interconversion.
The conversion from YUV to YUV can be realized by YUV internal conversion flow. Specifically, when the input color format comprises an original sampling format and an original storage format of a YUV format and an original combination mode of Y, U and V components, and the output color format comprises a specified sampling format and a specified storage format of the YUV format and a specified combination mode of Y, U and V components, a YUV internal conversion process is called.
As shown in fig. 2, the YUV internal conversion process includes:
conversion from an original sampling format to a specified sampling format, for example, conversion between YUV420, YUV422 and YUV444 different sampling formats, which may be referred to as one-stage conversion;
the conversion from the original storage format to the specified storage format, for example, the conversion between different storage formats of Planar, Semi-Planar and Packed, may be referred to as a secondary conversion;
the conversion from the original combination mode to the specified combination mode, for example, the conversion between YUVUV and YUVUV, may be referred to as three-level conversion.
And after the first-stage conversion, the second-stage conversion and the third-stage conversion are completed, obtaining color data in an output color format and outputting the color data.
For the conversion from RGB to RGB, the conversion can be realized by an RGB internal conversion flow. Specifically, when the input color format includes the original arrangement of three channels of R, G, and B in RGB format and the original pixel bit number of the components of R, G, and B, and the output color format includes the designated arrangement of three channels of R, G, and B in color data and the designated pixel bit number of the components of R, G, and B, the RGB internal conversion process is invoked.
As shown in fig. 3, the RGB internal conversion process includes:
the conversion from the original arrangement to the specified arrangement, for example, the conversion between RGB and BGR, may be referred to as channel conversion;
the conversion from the original pixel bit number to the designated pixel bit number, for example, the conversion between 888 and 444, may be referred to as precision conversion, where the conversion from the original pixel bit number to the designated pixel bit number may specifically include:
judging whether the conversion from high precision to low precision or the conversion from low precision to high precision is carried out by comparing the original pixel digit with the designated pixel digit;
if the conversion from high precision to low precision is carried out, executing a quantization compression step, wherein the quantization compression step comprises filling R, G and B components of the converted color data with high-order data of specified pixel digits of the R, G and B components in the color data before the conversion;
if the conversion is from low precision to high precision, a quantization compensation step is executed, wherein the quantization compensation step comprises the steps of filling data of R, G and B components in the color data before conversion into high bits of the R, G and B components in the color data after conversion, compensating by using the low bits of the data of the R, G and B components in the color data before conversion, and if the color data after conversion still has unfilled bits, continuously performing cyclic compensation by using the low bits of the R, G and B components in the color data before conversion until the bits of the R, G and B components in the color data after conversion are filled.
And after the channel conversion and the precision conversion are completed, obtaining color data in an output color format and outputting the color data.
The mutual conversion between YUV and RGB can be realized through an internal conversion process of RGB. Specifically, the conversion from YUV to RGB and the conversion from RGB to YUV may be included.
As shown in fig. 4, the conversion from YUV to RGB specifically includes: when the input color format comprises an original sampling format and an original storage format of a YUV format and an original combination mode of Y, U and V components, and the output color format comprises an appointed combination mode of R, G and B channels of an RGB format and an appointed pixel bit number of the R, G and B components, the conversion process from YUV to RGB is called.
The conversion process from YUV to RGB comprises the following steps:
converting from an original sampling format, an original storage format and an original combination mode to a YUV universal sampling format, a universal storage format and a universal combination mode of Y, U and V components;
converting the universal combination mode of the components of YUV universal sampling format, universal storage format and Y, U and V to the universal combination mode of three channels of R, G and B and the universal pixel bit number of the components of R, G and B;
the conversion from the general arrangement of the three channels R, G, B and the general pixel bit number of the components R, G, B to the specific arrangement of the three channels R, G, B and the specific pixel bit number of the components R, G, B.
The process converts the original YUV format into the universal YUV format, converts the universal YUV format into the universal RGB format, and converts the universal RGB format into the specified RGB format, so that the conversion from any one YUV format to any one RGB format is realized, and the color data in the output color format is obtained and output.
The conversion from RGB to YUV specifically includes: when the input color format comprises an original combination mode of R, G and B channels and an original pixel bit number of R, G and B components in an RGB format, and the output color format comprises a specified sampling format, a specified storage format and a specified combination mode of Y, U and V components in a YUV format, calling a conversion process from RGB to YUV;
the conversion process from RGB to YUV comprises the following steps:
converting from the original arrangement mode of the R, G and B channels and the original pixel digits of the R, G and B components to the universal arrangement mode of the R, G and B channels and the universal pixel digits of the R, G and B components;
converting the general arrangement mode of the three channels R, G and B and the general pixel bit number of the components R, G and B into a YUV general sampling format, a general storage format and a general combination mode of the components Y, U and V;
and converting the YUV universal sampling format, the universal storage format and the universal combination mode of the Y, U and V components into the specified combination mode of the R, G and B channels and the specified pixel bit number of the R, G and B components.
The process converts the original RGB format into the universal RGB format, converts the universal RGB format into the universal YUV format and converts the universal YUV format into the specified YUV format, so that the conversion from any one RGB format to any one YUV format is realized, and the color data in the output color format is obtained and output.
The conversion between the universal YUV format (including YUV universal sampling format, universal storage format, and universal combination mode of Y, U, and V components) and the universal RGB format (including universal arrangement mode of three channels R, G, and B and universal pixel bit number of components R, G, and B) can be performed by the following method: conversion matrix, table look-up method and conversion method based on assembly language. It should be noted that, if the format conversion between YUV and RGB is performed in other manners based on the content of the present invention, the content of the present invention is not affected, and the scope of the present invention is considered to be the protection scope of the present invention.
The embodiment aims at the problems of poor reusability and fragmentation of YUV and RGB mutual conversion and internal conversion, and realizes a color format conversion method for facilitating the transplantation of the format conversion method and improving the program development efficiency of developers, and by the method, a user does not need to realize a specific conversion mode for each format conversion, only needs to specify an input color format, an output color format and input color data, and can obtain data of the specified output color format, thereby achieving the following beneficial effects:
1. the automatic conversion from the input color format to the output color format is realized, and no manual intervention is needed.
2. The method not only can convert YUV and RGB, but also can convert YUV internally and convert RGB internally.
3. And (3) providing a YUV internal conversion process: and three-stage conversion, namely obtaining the data in the specified output format through the three-stage conversion.
4. And module multiplexing is realized, and the conversion between YUV and RGB multiplexes YUV internal conversion and RGB internal conversion.
Example 2
Fig. 5 shows a color format conversion apparatus of the present embodiment. It includes: an acquisition module 21 and a conversion module 22.
The acquisition module 21 is configured to acquire color data, an input color format of the color data, and an output color format specified for the color data.
The conversion module 22 is configured to perform conversion of the color data from the input color format to the output color format according to the input color format and the output color format, and then output the converted color data.
The conversion module 22 may include a YUV internal conversion module 221.
When the input color format includes an original sampling format and an original storage format of the YUV format and an original combination mode of the Y, U, and V components, and the output color format includes an appointed sampling format and an appointed storage format of the YUV format and an appointed combination mode of the Y, U, and V components, the YUV internal conversion module 221 is configured to implement:
converting from an original sampling format to a specified sampling format;
converting from an original storage format to a specified storage format;
and (4) converting the original combination mode into the specified combination mode.
The conversion module 22 may also include an RGB internal conversion module 222.
When the input color format includes the original arrangement of three channels R, G, and B in RGB format and the original pixel bit number of the components R, G, and B, and the output color format includes the designated arrangement of three channels R, G, and B in color data and the designated pixel bit number of the components R, G, and B, the RGB internal conversion mode 222 is used to implement:
converting from an original arrangement mode to a specified arrangement mode;
conversion from the original pixel bit number to the specified pixel bit number.
The conversion from the original pixel bit number to the designated pixel bit number may specifically include:
judging whether the conversion from high precision to low precision or the conversion from low precision to high precision is carried out by comparing the original pixel digit with the designated pixel digit;
if the conversion from high precision to low precision is carried out, carrying out quantization compression, wherein the quantization compression comprises filling R, G and B components of the converted color data with high-order data of specified pixel digits of the R, G and B components in the color data before conversion;
if the conversion is from low precision to high precision, executing a quantization compensation step, wherein the quantization compensation comprises the steps of filling data of R, G and B components in the color data before conversion into high bits of the R, G and B components in the color data after conversion, compensating by using the low bits of the data of the R, G and B components in the color data before conversion, and if the color data after conversion still has unfilled bits, continuously performing cyclic compensation by using the low bits of the R, G and B components in the color data before conversion until the bits of the R, G and B components in the color data after conversion are filled.
The conversion module 22 may further include a YUV and RGB interconversion module 223.
When the input color format includes an original sampling format and an original storage format of a YUV format and an original combination mode of Y, U, and V components, and the output color format includes an assigned arrangement mode of three channels of R, G, and B and an assigned pixel bit number of the R, G, and B components of an RGB format, the YUV and RGB interconversion module 223 is configured to implement:
converting from an original sampling format, an original storage format and an original combination mode to a YUV universal sampling format, a universal storage format and a universal combination mode of Y, U and V components;
converting the universal arrangement mode of R, G and B channels and the universal pixel digit of R, G and B components from a YUV universal sampling format, a universal storage format and a universal combination mode of Y, U and V components;
the conversion from the general arrangement of the three channels R, G, B and the general pixel bit number of the components R, G, B to the specific arrangement of the three channels R, G, B and the specific pixel bit number of the components R, G, B.
Or, when the input color format includes the original arrangement mode of R, G, B three channels and the original pixel bit number of R, G, B components in RGB format, and the output color format includes the designated sampling format, the designated storage format, and the designated combination mode of Y, U, V components in YUV format, the YUV and RGB interconversion module 223 is configured to implement:
converting from the original arrangement mode of the R, G and B channels and the original pixel digits of the R, G and B components to the universal arrangement mode of the R, G and B channels and the universal pixel digits of the R, G and B components;
converting the general arrangement mode of the three channels R, G and B and the general pixel bit number of the components R, G and B into a YUV general sampling format, a general storage format and a general combination mode of the components Y, U and V;
and converting the YUV universal sampling format, the universal storage format and the universal combination mode of the Y, U and V components into the specified combination mode of the R, G and B channels and the specified pixel bit number of the R, G and B components.
Example 3
Fig. 6 shows a color format conversion apparatus of the present embodiment. It includes: an input Unit 31, a Central Processing Unit (CPU) 32, an output Unit 33, a memory Unit 34, and a storage Unit 35.
The storage unit 35 is used to store the conversion flow in embodiment 1.
The input unit 31 is used for receiving input of color data, an input color format and an output color format;
the central processing unit 32 is configured to invoke a conversion process in the storage unit 35 to process the color data in the memory unit 34 according to the input color format and the output color format, and output the processed color data through the output unit 35.
The implementation platform of the method and the device in the embodiment comprises a CPU based on X86, ARM, MIPIS and Powpc architectures, and the implementation system comprises an operating system based on Android, iOS, windows and Linux. It should be noted that, if the method and apparatus implemented by using other hardware systems and software systems based on the content of the present invention do not affect the essence of the present invention, they are all considered to be the protection scope of the present invention.
Example 4
Fig. 7 is a schematic structural diagram of an electronic device according to embodiment 4 of the present invention. The electronic device comprises a memory, a processor and a computer program stored on the memory and executable on the processor, the processor implementing the color format conversion method of embodiment 1 when executing the program. The electronic device 40 shown in fig. 7 is only an example, and should not bring any limitation to the functions and the scope of use of the embodiment of the present invention.
As shown in fig. 7, the electronic device 40 may be embodied in the form of a general purpose computing device, which may be, for example, a server device. The components of electronic device 40 may include, but are not limited to: the at least one processor 41, the at least one memory 42, and a bus 43 connecting the various system components (including the memory 42 and the processor 41).
The bus 43 includes a data bus, an address bus, and a control bus.
The memory 42 may include volatile memory, such as Random Access Memory (RAM)421 and/or cache memory 422, and may further include Read Only Memory (ROM) 423.
Memory 42 may also include a program/utility 425 having a set (at least one) of program modules 424, such program modules 424 including, but not limited to: an operating system, one or more application programs, other program modules, and program data, each of which, or some combination thereof, may comprise an implementation of a network environment.
The processor 41 executes various functional applications and data processing, such as a color format conversion method provided in embodiment 1 of the present invention, by running a computer program stored in the memory 42.
The electronic device 40 may also communicate with one or more external devices 44 (e.g., keyboard, pointing device, etc.). Such communication may be through an input/output (I/O) interface 45. Also, model-generating device 40 may also communicate with one or more networks (e.g., a Local Area Network (LAN), a Wide Area Network (WAN), and/or a public network, such as the Internet) via network adapter 46. As shown in FIG. 7, the network adapter 46 communicates with the other modules of the model-generated device 40 via the bus 43. It should be understood that although not shown in the figures, other hardware and/or software modules may be used in conjunction with the model-generating device 40, including but not limited to: microcode, device drivers, redundant processors, external disk drive arrays, RAID (disk array) systems, tape drives, and data backup storage systems, etc.
It should be noted that although in the above detailed description several units/modules or sub-units/modules of the electronic device are mentioned, such a division is merely exemplary and not mandatory. Indeed, the features and functionality of two or more of the units/modules described above may be embodied in one unit/module according to embodiments of the invention. Conversely, the features and functions of one unit/module described above may be further divided into embodiments by a plurality of units/modules.
Example 5
The present embodiment provides a computer-readable storage medium on which a computer program is stored, which when executed by a processor implements the steps of any one of the color format conversion methods provided in embodiment 1.
More specific examples, among others, that the readable storage medium may employ may include, but are not limited to: a portable disk, a hard disk, random access memory, read only memory, erasable programmable read only memory, optical storage device, magnetic storage device, or any suitable combination of the foregoing.
In a possible implementation, the present invention can also be implemented in the form of a program product comprising program code for causing a terminal device to perform the steps of implementing the color format conversion method described in embodiment 1 when the program product is run on the terminal device.
Where program code for carrying out the invention is written in any combination of one or more programming languages, the program code may execute entirely on the user device, partly on the user device, fill a separate software package, partly on the user device and partly on a remote device or entirely on the remote device.
While specific embodiments of the invention have been described above, it will be appreciated by those skilled in the art that these are by way of example only, and that the scope of the invention is defined by the appended claims. Various changes and modifications to these embodiments may be made by those skilled in the art without departing from the spirit and scope of the invention, and these changes and modifications are within the scope of the invention.

Claims (13)

1.一种颜色格式转换方法,其特征在于,包括:1. a color format conversion method, is characterized in that, comprises: 获取颜色数据、所述颜色数据的输入颜色格式和对所述颜色数据指定的输出颜色格式;acquiring color data, an input color format of the color data, and an output color format specified for the color data; 根据所述输入颜色格式和所述输出颜色格式,调用实现从所述输入颜色格式转换到所述输出颜色格式的转换流程;According to the input color format and the output color format, invoking a conversion process for converting from the input color format to the output color format; 通过所述转换流程对所述颜色数据进行转换后输出。The color data is converted and output through the conversion process. 2.如权利要求1所述的颜色格式转换方法,其特征在于,当所述输入颜色格式包括YUV格式的原采样方式、原存储格式、Y,U,V分量的原组合方式,所述输出颜色格式包括YUV格式的指定采样方式、指定存储格式、Y,U,V分量的指定组合方式时,调用YUV内部转换流程;2. The color format conversion method as claimed in claim 1, wherein when the input color format includes the original sampling mode of the YUV format, the original storage format, the original combination mode of the Y, U, and V components, the output When the color format includes the specified sampling method of the YUV format, the specified storage format, and the specified combination method of the Y, U, V components, the YUV internal conversion process is called; 所述YUV内部转换流程包括:The YUV internal conversion process includes: 从所述原采样方式到所述指定采样方式的转换;Conversion from the original sampling mode to the specified sampling mode; 从所述原存储格式到所述指定存储格式的转换;conversion from the original storage format to the specified storage format; 从所述原组合方式到所述指定组合方式的转换。Conversion from the original combination to the specified combination. 3.如权利要求1所述的颜色格式转换方法,其特征在于,当所述输入颜色格式包括RGB格式的R,G,B三个通道的原排列方式和R,G,B分量的原像素位数,所述输出颜色格式包括所述颜色数据的R,G,B三个通道的指定排列方式和R,G,B分量的指定像素位数时,调用RGB内部转换流程;3. The color format conversion method according to claim 1, wherein when the input color format includes the original arrangement of the three channels of R, G, and B in the RGB format and the original pixels of the R, G, and B components When the output color format includes the specified arrangement of the R, G, and B channels of the color data and the specified pixel bits of the R, G, and B components, the RGB internal conversion process is called; 所述RGB内部转换流程包括:The RGB internal conversion process includes: 从所述原排列方式到所述指定排列方式的转换;conversion from the original arrangement to the specified arrangement; 从所述原像素位数到所述指定像素位数的转换。The conversion from the original pixel bits to the specified pixel bits. 4.如权利要求3所述的颜色格式转换方法,其特征在于,从所述原像素位数到所述指定像素位数的转换,包括:4. The color format conversion method according to claim 3, wherein the conversion from the original number of pixels to the specified number of pixels comprises: 通过比较所述原像素位数和所述指定像素位数,判断是从高精度向低精度的转换还是从低精度向高精度的转换;By comparing the number of bits of the original pixels and the number of bits of the specified pixels, it is judged whether the conversion from high precision to low precision or the conversion from low precision to high precision; 若是从高精度向低精度的转换,则执行量化压缩步骤,所述量化压缩步骤包括用转换前颜色数据中R,G,B分量的所述指定像素位数的高位数据填充转换后颜色数据的R,G,B分量;If the conversion is from high precision to low precision, a quantization compression step is performed, and the quantization compression step includes filling the converted color data with high-order data of the specified pixel bits of the R, G, and B components in the color data before the conversion. R, G, B components; 若是从低精度向高精度的转换,则执行量化补偿步骤,所述量化补偿步骤包括将转换前颜色数据中R,G,B分量的数据填充至转换后颜色数据的R,G,B分量的高位,用转换前颜色数据中R,G,B分量的数据的低位进行补偿,如果转换后颜色数据仍有未填充的位,继续使用转换前颜色数据中R,G,B分量的低位进行循环补偿,直至转换后颜色数据的R,G,B分量的位数被填满。If the conversion is from low precision to high precision, a quantization compensation step is performed, and the quantization compensation step includes filling the data of the R, G, B components in the color data before the conversion to the data of the R, G, and B components of the color data after the conversion. High bit, use the low bits of the R, G, B component data in the color data before conversion to compensate, if there are still unfilled bits in the color data after conversion, continue to use the low bits of the R, G, B components in the color data before conversion to cycle. Compensation until the bits of the R, G, B components of the converted color data are filled. 5.如权利要求1所述的颜色格式转换方法,其特征在于,当所述输入颜色格式包括YUV格式的原采样方式、原存储格式、Y,U,V分量的原组合方式,所述输出颜色格式包括RGB格式的R,G,B三个通道的指定组合方式和R,G,B分量的指定像素位数时,调用YUV向RGB的转换流程;5. The color format conversion method according to claim 1, wherein when the input color format includes the original sampling mode of the YUV format, the original storage format, the original combination mode of the Y, U, and V components, the output When the color format includes the specified combination of the three channels of R, G, and B in the RGB format and the specified number of pixels of the R, G, and B components, the conversion process from YUV to RGB is called; 所述YUV向RGB的转换流程包括:The conversion process from YUV to RGB includes: 从所述原采样方式、所述原存储格式、所述原组合方式到YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式的转换;Conversion from the original sampling method, the original storage format, and the original combination method to the YUV general sampling method, the general storage format, and the general combination method of Y, U, V components; 从所述YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式到R,G,B三个通道的通用组合方式和R,G,B分量的通用像素位数的转换;Conversion from the general sampling method of YUV, general storage format, general combination method of Y, U, V components to general combination method of R, G, B three channels and general pixel bits of R, G, B components; 从所述R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数到所述R,G,B三个通道的指定排列方式和R,G,B分量的指定像素位数的转换;From the general arrangement of the three channels of R, G, B and the general number of pixel bits of the R, G, B components to the specified arrangement of the three channels of R, G, B and the general arrangement of the R, G, B components Specifies the conversion of the number of pixel bits; 或,当所述输入颜色格式包括RGB格式的R,G,B三个通道的原组合方式和R,G,B分量的原像素位数,所述输出颜色格式包括YUV格式的指定采样方式、指定存储格式、Y,U,V分量的指定组合方式时,调用RGB向YUV的转换流程;Or, when the input color format includes the original combination mode of the three channels of R, G, and B in the RGB format and the original pixel bits of the R, G, and B components, the output color format includes the specified sampling mode of the YUV format, When specifying the storage format and the specified combination of Y, U, V components, call the RGB to YUV conversion process; 所述RGB向YUV的转换流程包括:The conversion process from RGB to YUV includes: 从所述R,G,B三个通道的原排列方式和R,G,B分量的原像素位数到R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数的转换;From the original arrangement of the three channels of R, G, B and the original number of pixels of the R, G, B components to the general arrangement of the three channels of R, G, B and the general pixels of the R, G, B components conversion of digits; 从所述R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数到YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式的转换;Conversion from the general arrangement of the three channels of R, G, B and the general pixel bits of the R, G, B components to the general YUV sampling method, the general storage format, and the general combination of the Y, U, V components; 从YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式到所述R,G,B三个通道的指定组合方式和R,G,B分量的指定像素位数的转换。Conversion from YUV general sampling method, general storage format, general combination method of Y, U, V components to the specified combination method of the three channels of R, G, B and the specified number of pixel bits of the R, G, B components. 6.一种颜色格式转换装置,其特征在于,包括:6. a color format conversion device, is characterized in that, comprises: 获取模块,用于获取颜色数据、所述颜色数据的输入颜色格式和对所述颜色数据指定的输出颜色格式;an acquisition module for acquiring color data, an input color format of the color data, and an output color format specified for the color data; 转换模块,用于根据所述输入颜色格式和所述输出颜色格式,对所述颜色数据进行从所述输入颜色格式转换到所述输出颜色格式的转换后输出。A conversion module, configured to convert the color data from the input color format to the output color format and output after conversion according to the input color format and the output color format. 7.如权利要求6所述的颜色格式转换装置,其特征在于,所述转换模块包括YUV内部转换模块;7. color format conversion device as claimed in claim 6, is characterized in that, described conversion module comprises YUV internal conversion module; 当所述输入颜色格式包括YUV格式的原采样方式、原存储格式、Y,U,V分量的原组合方式,所述输出颜色格式包括YUV格式的指定采样方式、指定存储格式、Y,U,V分量的指定组合方式时,所述YUV内部转换模块用于实现:When the input color format includes the original sampling mode of the YUV format, the original storage format, the original combination mode of Y, U, V components, the output color format includes the specified sampling mode of the YUV format, the specified storage format, Y, U, When the specified combination of V components is used, the YUV internal conversion module is used to achieve: 从所述原采样方式到所述指定采样方式的转换;Conversion from the original sampling mode to the specified sampling mode; 从所述原存储格式到所述指定存储格式的转换;conversion from the original storage format to the specified storage format; 从所述原组合方式到所述指定组合方式的转换。Conversion from the original combination to the specified combination. 8.如权利要求6所述的颜色格式转换装置,其特征在于,所述转换模块包括RGB内部转换模块;8. The color format conversion device according to claim 6, wherein the conversion module comprises an RGB internal conversion module; 当所述输入颜色格式包括RGB格式的R,G,B三个通道的原排列方式和R,G,B分量的原像素位数,所述输出颜色格式包括所述颜色数据的R,G,B三个通道的指定排列方式和R,G,B分量的指定像素位数时,所述RGB内部转换模式用于实现:When the input color format includes the original arrangement of the three channels of R, G, and B in the RGB format and the original pixel bits of the R, G, and B components, the output color format includes the R, G, When the specified arrangement of the three channels of B and the specified number of pixels of the R, G, and B components are used, the RGB internal conversion mode is used to realize: 从所述原排列方式到所述指定排列方式的转换;conversion from the original arrangement to the specified arrangement; 从所述原像素位数到所述指定像素位数的转换。The conversion from the original pixel bits to the specified pixel bits. 9.如权利要求8所述的颜色格式转换装置,其特征在于,从所述原像素位数到所述指定像素位数的转换,包括:9. The color format conversion device according to claim 8, wherein the conversion from the original number of pixels to the specified number of pixels comprises: 通过比较所述原像素位数和所述指定像素位数,判断是从高精度向低精度的转换还是从低精度向高精度的转换;By comparing the number of bits of the original pixels and the number of bits of the specified pixels, it is judged whether the conversion from high precision to low precision or the conversion from low precision to high precision; 若是从高精度向低精度的转换,则执行量化压缩,所述量化压缩包括用转换前颜色数据中R,G,B分量的所述指定像素位数的高位数据填充转换后颜色数据的R,G,B分量;If the conversion is from high precision to low precision, then quantization compression is performed, and the quantization compression includes filling the R of the converted color data with the high-order data of the specified pixel bits of the R, G, and B components in the color data before the conversion, G, B components; 若是从低精度向高精度的转换,则执行量化补偿步骤,所述量化补偿包括将转换前颜色数据中R,G,B分量的数据填充至转换后颜色数据的R,G,B分量的高位,用转换前颜色数据中R,G,B分量的数据的低位进行补偿,如果转换后颜色数据仍有未填充的位,继续使用转换前颜色数据中R,G,B分量的低位进行循环补偿,直至转换后颜色数据的R,G,B分量的位数被填满。If the conversion is from low precision to high precision, a quantization compensation step is performed, and the quantization compensation includes filling the data of the R, G, and B components of the color data before the conversion to the high bits of the R, G, and B components of the color data after the conversion. , use the low bits of the R, G, B component data in the color data before conversion to compensate, if there are still unfilled bits in the color data after conversion, continue to use the low bits of the R, G, B components in the color data before conversion for cyclic compensation , until the bits of the R, G, B components of the converted color data are filled. 10.如权利要求6所述的颜色格式转换装置,其特征在于,所述转换模块包括YUV与RGB的相互转换模块;10. The color format conversion device according to claim 6, wherein the conversion module comprises a mutual conversion module of YUV and RGB; 当所述输入颜色格式包括YUV格式的原采样方式、原存储格式、Y,U,V分量的原组合方式,所述输出颜色格式包括RGB格式的R,G,B三个通道的指定排列方式和R,G,B分量的指定像素位数时,所述YUV与RGB的相互转换模块用于实现:When the input color format includes the original sampling mode of the YUV format, the original storage format, and the original combination mode of the Y, U, V components, the output color format includes the specified arrangement mode of the three channels of R, G, and B in the RGB format and the specified pixel bits of the R, G, B components, the YUV and RGB mutual conversion module is used to achieve: 从所述原采样方式、所述原存储格式、所述原组合方式到YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式的转换;Conversion from the original sampling method, the original storage format, and the original combination method to the YUV general sampling method, the general storage format, and the general combination method of Y, U, V components; 从所述YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式到R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数的转换;Conversion from the general sampling method of YUV, general storage format, general combination method of Y, U, V components to general arrangement method of R, G, B three channels and general pixel bits of R, G, B components; 从所述R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数到所述R,G,B三个通道的指定排列方式和R,G,B分量的指定像素位数的转换;From the general arrangement of the three channels of R, G, B and the general number of pixel bits of the R, G, B components to the specified arrangement of the three channels of R, G, B and the general arrangement of the R, G, B components Specifies the conversion of the number of pixel bits; 或,当所述输入颜色格式包括RGB格式的R,G,B三个通道的原排列方式和R,G,B分量的原像素位数,所述输出颜色格式包括YUV格式的指定采样方式、指定存储格式、Y,U,V分量的指定组合方式时,所述YUV与RGB的相互转换模块用于实现:Or, when the input color format includes the original arrangement of the R, G, and B channels of the RGB format and the original pixel bits of the R, G, and B components, the output color format includes the specified sampling method of the YUV format, When specifying the storage format and the specified combination of Y, U, V components, the YUV and RGB mutual conversion module is used to achieve: 从所述R,G,B三个通道的原排列方式和R,G,B分量的原像素位数到R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数的转换;From the original arrangement of the three channels of R, G, B and the original number of pixels of the R, G, B components to the general arrangement of the three channels of R, G, B and the general pixels of the R, G, B components conversion of digits; 从所述R,G,B三个通道的通用排列方式和R,G,B分量的通用像素位数到YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式的转换;Conversion from the general arrangement of the three channels of R, G, B and the general pixel bits of the R, G, B components to the general YUV sampling method, the general storage format, and the general combination of the Y, U, V components; 从YUV通用采样方式、通用存储格式、Y,U,V分量的通用组合方式到所述R,G,B三个通道的指定组合方式和R,G,B分量的指定像素位转换。From the YUV general sampling method, the general storage format, the general combination method of Y, U, V components to the specified combination method of the three channels of R, G, B and the specified pixel bit conversion of the R, G, B components. 11.一种颜色格式转换装置,其特征在于,包括:输入单元、中央处理器、输出单元、内存单元和存储单元;11. A color format conversion device, comprising: an input unit, a central processing unit, an output unit, a memory unit and a storage unit; 所述存储单元用于存储权利要求1-5任意一项中的转换流程;The storage unit is used to store the conversion process in any one of claims 1-5; 所述输入单元用于接收颜色数据、输入颜色格式和输出颜色格式的输入;The input unit is used to receive input of color data, input color format and output color format; 所述中央处理器用于根据所述输入颜色格式和所述输出颜色格式,调用所述存储单元中的转换流程在所述内存单元中对所述颜色数据进行处理,完成处理后经过所述输出单元输出。The central processing unit is configured to call the conversion process in the storage unit to process the color data in the memory unit according to the input color format and the output color format, and pass through the output unit after the processing is completed. output. 12.一种电子设备,包括存储器、处理器及存储在存储器上并可在处理器上运行的计算机程序,其特征在于,所述处理器执行所述程序时实现权利要求1至5中任一项所述的颜色格式转换方法。12. An electronic device, comprising a memory, a processor and a computer program stored on the memory and running on the processor, wherein the processor implements any one of claims 1 to 5 when the processor executes the program The color format conversion method described in item. 13.一种计算机可读存储介质,其上存储有计算机程序,其特征在于,所述程序被处理器执行时实现权利要求1至5中任一项所述的颜色格式转换方法的步骤。13. A computer-readable storage medium on which a computer program is stored, characterized in that, when the program is executed by a processor, the steps of the color format conversion method according to any one of claims 1 to 5 are implemented.
CN202011379827.XA 2020-11-30 2020-11-30 Color format conversion method and device, electronic equipment and storage medium Active CN112615976B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011379827.XA CN112615976B (en) 2020-11-30 2020-11-30 Color format conversion method and device, electronic equipment and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011379827.XA CN112615976B (en) 2020-11-30 2020-11-30 Color format conversion method and device, electronic equipment and storage medium

Publications (2)

Publication Number Publication Date
CN112615976A true CN112615976A (en) 2021-04-06
CN112615976B CN112615976B (en) 2023-02-03

Family

ID=75229809

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011379827.XA Active CN112615976B (en) 2020-11-30 2020-11-30 Color format conversion method and device, electronic equipment and storage medium

Country Status (1)

Country Link
CN (1) CN112615976B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849097A (en) * 2021-11-30 2021-12-28 深圳市明源云空间电子商务有限公司 Color numerical value conversion method, device, equipment and storage medium
CN114155137A (en) * 2021-11-03 2022-03-08 深圳鲲云信息科技有限公司 Format conversion method, controller and computer-readable storage medium

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5646752A (en) * 1995-09-15 1997-07-08 Canon Information Systems, Inc. Color image processing apparatus which uses private tags to alter a predefined color transformation sequence of a device profile
US20040201593A1 (en) * 2003-01-22 2004-10-14 Takayuki Nishimura Method for reversibly transforming data format, image processing apparatus, program for reversibly transforming data format, and computer-readable recording medium thereof
US20070081178A1 (en) * 2005-10-12 2007-04-12 Samsung Electronics Co., Ltd. Method and apparatus for converting input color space into CMYK color space
CN102118624A (en) * 2011-03-08 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method for converting an image from an RGB color space to a YUV color space
CN106128412A (en) * 2016-08-30 2016-11-16 南京巨鲨显示科技有限公司 A kind of YUV based on embedded device and RGB color territory conversion method
CN110782387A (en) * 2018-07-30 2020-02-11 优视科技有限公司 Image processing method and device, image processor and electronic equipment
CN111079669A (en) * 2019-12-20 2020-04-28 京东方科技集团股份有限公司 An image processing method, device and storage medium
CN111128402A (en) * 2019-12-20 2020-05-08 天津新开心生活科技有限公司 Data format conversion method and device, storage medium and electronic equipment

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5646752A (en) * 1995-09-15 1997-07-08 Canon Information Systems, Inc. Color image processing apparatus which uses private tags to alter a predefined color transformation sequence of a device profile
US20040201593A1 (en) * 2003-01-22 2004-10-14 Takayuki Nishimura Method for reversibly transforming data format, image processing apparatus, program for reversibly transforming data format, and computer-readable recording medium thereof
US20070081178A1 (en) * 2005-10-12 2007-04-12 Samsung Electronics Co., Ltd. Method and apparatus for converting input color space into CMYK color space
CN102118624A (en) * 2011-03-08 2011-07-06 天脉聚源(北京)传媒科技有限公司 Method for converting an image from an RGB color space to a YUV color space
CN106128412A (en) * 2016-08-30 2016-11-16 南京巨鲨显示科技有限公司 A kind of YUV based on embedded device and RGB color territory conversion method
CN110782387A (en) * 2018-07-30 2020-02-11 优视科技有限公司 Image processing method and device, image processor and electronic equipment
CN111079669A (en) * 2019-12-20 2020-04-28 京东方科技集团股份有限公司 An image processing method, device and storage medium
CN111128402A (en) * 2019-12-20 2020-05-08 天津新开心生活科技有限公司 Data format conversion method and device, storage medium and electronic equipment

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
QIABAOWEI: "关于YUV-RGB格式转换的一些个人理解", 《博客园》 *

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114155137A (en) * 2021-11-03 2022-03-08 深圳鲲云信息科技有限公司 Format conversion method, controller and computer-readable storage medium
CN113849097A (en) * 2021-11-30 2021-12-28 深圳市明源云空间电子商务有限公司 Color numerical value conversion method, device, equipment and storage medium

Also Published As

Publication number Publication date
CN112615976B (en) 2023-02-03

Similar Documents

Publication Publication Date Title
JP7150127B2 (en) Video signal processing method and apparatus
US11954889B2 (en) Method for processing data, and system, system controller and mudure controller
KR102377807B1 (en) Color volume transforms in coding of high dynamic range and wide color gamut sequences
US8125497B2 (en) Adjustment of color values for optimized image processing
US8717462B1 (en) Camera with color correction after luminance and chrominance separation
EP2111714B1 (en) Fast filtered yuv to rgb conversion
WO2020135357A1 (en) Data compression method and apparatus, and data encoding/decoding method and apparatus
CN102118624A (en) Method for converting an image from an RGB color space to a YUV color space
US10600148B2 (en) System and method for mapped splicing of a three-dimensional look-up table for image format conversion
CN106228581A (en) By GPU, pixel format is converted to by ARGB the method and system of NV12
WO2021073304A1 (en) Image processing method and apparatus
US20160322024A1 (en) Method of mapping source colors of images of a video content into the target color gamut of a target color device
CN111918065A (en) Information compression/decompression method and device
CN112615976A (en) Color format conversion method and device, electronic equipment and storage medium
EP4429245A1 (en) Image capturing method, image display method, and device
KR102777347B1 (en) Image processing device and frame buffer compressor
CN111193917B (en) Operation method, device and related product
US11405582B2 (en) Preprocessing of high-dynamic-range video using a hybrid lookup table scheme
CN108282643A (en) Image processing method, image processing apparatus and electronic equipment
US8681167B2 (en) Processing pixel planes representing visual information
EP4260562A1 (en) Converting a series of pairs of color video frames and undertermined video frames to a full color video stream
US20130136344A1 (en) Creating a duotone color effect using an icc profile
Ogura et al. 4K HDR workflow: From capture to display
US11769464B2 (en) Image processing
CN116112654A (en) A method of color conversion

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant