CN114049249A - Image conversion method and related device - Google Patents

Image conversion method and related device Download PDF

Info

Publication number
CN114049249A
CN114049249A CN202111278491.2A CN202111278491A CN114049249A CN 114049249 A CN114049249 A CN 114049249A CN 202111278491 A CN202111278491 A CN 202111278491A CN 114049249 A CN114049249 A CN 114049249A
Authority
CN
China
Prior art keywords
image data
image
pixel values
display screen
components
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
CN202111278491.2A
Other languages
Chinese (zh)
Other versions
CN114049249B (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.)
Shenzhen Xihua Technology Co Ltd
Original Assignee
Shenzhen Xihua Technology 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 Shenzhen Xihua Technology Co Ltd filed Critical Shenzhen Xihua Technology Co Ltd
Priority to CN202111278491.2A priority Critical patent/CN114049249B/en
Publication of CN114049249A publication Critical patent/CN114049249A/en
Application granted granted Critical
Publication of CN114049249B publication Critical patent/CN114049249B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/04Context-preserving transformations, e.g. by using an importance map
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the application discloses an image conversion method and a related device, wherein the method comprises the following steps: an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data; an image adjusting module in the image conversion chip receives the second image data and adjusts the second image data into third image data according to the display attribute of the replaced display screen; and outputting the third image data to the replaced display screen. The image data with the color mode of Pentile can be converted into the RGB888 mode, and various adjustments can be carried out on the image.

Description

Image conversion method and related device
Technical Field
The present invention relates to the field of communications, and in particular, to a method and a related apparatus for image conversion.
Background
As the mobile phones become more popular, the mobile phone screens are more and more aged and broken, and therefore, these users face the need of screen replacement.
In the prior art, when the screen needs to be replaced, the prior art will equip the mobile phone with a screen and a chip to display the image. However, the chip on the market at present cannot convert the image data with the color mode of Pentile into the RGB888 mode, and the chip cannot perform more adjustments on the image, for example: refreshing partial areas of the whole image, rotating the image and mirroring.
Disclosure of Invention
An object of the present application is to provide an image conversion method and related apparatus, which are advantageous in that image data with a color mode of Pentile can be converted into an RGB888 mode, a chip cannot refresh a partial area of the whole image, and rotation and mirror functions are not supported.
In order to achieve the above object, in a first aspect, an embodiment of the present application provides a method for load calculation of integrated energy planning, including the following steps:
an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data;
an image adjusting module in the image conversion chip receives the second image data and adjusts the second image data into third image data according to the display attribute of the replaced display screen;
and outputting the third image data to the replaced display screen.
It can be understood that one image format can be converted into another image format through the image conversion module and the image processing module of the chip, and the accuracy of image adjustment is improved.
In one possible example, the format of the first image data is Pentile pixel format and the second image data is RGB888 pixel format, and receiving the processor-output first-format image data comprises:
receiving image data of a number of RGBG pixel values corresponding to a number of pixels of a display device, the image data comprising a red component, a green component, and a blue component, the number of RGBG pixel values being divided into sets of three RGBG pixel values, each set comprising the three RGBG pixel values.
It can be understood that through the acquisition of the RGBG pixel value image data and the classification of the RGBG pixel values, a set of three RGBG pixel values can be formed, and the classification processing level of the RGBG pixel values is improved.
In one possible example, the converting the first image data into the second image data includes:
mapping red components of the three RGBG pixel values to red components of first three RGB pixel values, mapping blue components of the three RGBG pixel values to blue components of the first three RGB pixel values, mapping first three green components of six green components of the three RGBG pixel values to green components of the first three RGB pixel values, and mapping last three green components of six green components of the three RGBG pixel values to red components, green components, and blue components of a fourth RGB pixel value.
It will be appreciated that mapping the red, green and blue components of the RGBG pixel values with the respective components of the RGB pixel values enables the conversion of the three color components of the image.
In one possible example, the converting the first image data into the second image data includes:
converting the first format image data to an RGB888 pixel format, each of the three RGBG pixel values corresponding to a pixel of a display, each of the three RGBG pixel values comprising one red component, two green components, and one blue component corresponding to one red subpixel, two green subpixels, and one blue subpixel of the pixel of the display.
It will be appreciated that the RGBG pixel values correspond to pixels of the display, enabling image pixel mapping of the display.
In one possible example, the adjusting the second image data to the third image data according to the display attribute of the replaced display screen includes:
and according to the resolution and the refresh rate of the display screen, amplifying or reducing the image of the second image data.
It is understood that the image of the second image data is enlarged or reduced according to the resolution and the refresh rate of the display screen, and the enlargement and reduction processing level of the image can be improved.
In one possible example, the adjusting the second image data to the third image data according to the display attribute of the replaced display screen includes:
and refreshing the partial area of the image of the second image data according to the resolution and the refresh rate of the display screen.
It can be understood that, according to the resolution and the refresh rate of the display screen, the image of the second image data is subjected to partial region refresh, so that the region refresh processing level of the image can be improved.
In one possible example, the adjusting the second image data to the third image data according to the display attribute of the replaced display screen includes:
and rotating or mirroring the image of the second image data according to the resolution and the refresh rate of the display screen.
It can be understood that, according to the resolution and the refresh rate of the display screen, the image of the second image data is rotated or mirrored, so that the rotation or mirroring level of the image can be improved.
In a second aspect, embodiments of the present application provide a chip suitable for image conversion, including instructions for performing some or all of the steps as described in the first aspect.
In a third aspect, an embodiment of the present application provides an electronic device, including at least one memory and at least one processor, the memory being configured to store computer instructions, and the processor including an image conversion module and an image adjustment module, the processor being configured to execute the computer instructions to perform some or all of the steps described in the first aspect.
In a fourth aspect, embodiments of the present application provide a computer storage medium storing a computer program for execution by a processor to perform some or all of the steps as described in the first aspect.
The embodiment of the application has the following beneficial effects:
an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data. Then, an image adjusting module in the image conversion chip receives the second image data, and adjusts the second image data into third image data according to the display attribute of the replaced display screen. And then, outputting the third image data to the replaced display screen.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments or the background art of the present application, the drawings required to be used in the embodiments or the background art of the present application will be described below.
Fig. 1 is a network topology diagram of a method for image conversion according to an embodiment of the present application;
FIG. 2 is a flowchart illustrating a method for image transformation according to an embodiment of the present disclosure;
FIG. 3 is a schematic diagram of an image zooming-in or zooming-out provided by an embodiment of the present application;
FIG. 4 is a diagram illustrating an image mirroring process according to an embodiment of the present disclosure;
FIG. 5 is a schematic diagram of an image rotation provided by an embodiment of the present application;
fig. 6 is a block diagram of an image conversion chip provided in an embodiment of the present application;
fig. 7 is a schematic structural diagram of an image conversion chip according to an embodiment of the present application.
Detailed Description
The embodiments of the present application will be described below with reference to the drawings.
The term "comprising" and any variations thereof in the description and claims of this application and the above-described drawings are intended to cover non-exclusive inclusions. The terms "first," "second," "third," "fourth," "fifth," and the like in the description and claims of this application and in the accompanying drawings are used for distinguishing between different objects and not for describing a particular order. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those steps or elements listed, but may alternatively include other steps or elements not listed, or inherent to such process, method, article, or apparatus.
Reference herein to "an embodiment" means that a particular feature, structure, or characteristic described in connection with the embodiment can be included in at least one embodiment of the application. The appearances of the phrase in various places in the specification are not necessarily all referring to the same embodiment, nor are separate or alternative embodiments mutually exclusive of other embodiments. It is explicitly and implicitly understood by one skilled in the art that the embodiments described herein can be combined with other embodiments.
In the prior art, a chip capable of converting image data with a color mode of Pentile into an RGB888 mode is lacked, and an image adjusting function matched with the chip is also lacked. In this regard, embodiments of the present application provide a method and a related apparatus for image conversion, which are intended to convert image data with a color mode of Pentile into RGB888 mode, and to enable adjustment of the image. In order to facilitate an understanding of the present invention, some expertise will be introduced.
All colors in nature can be obtained by combining different intensities of three color wavelengths of red (R), green (G) and blue (B), which is the principle of three primary colors. In digital images, 8-bit encoding of each of the three RGB primaries constitutes about 16.7 ten thousand colors, most displays create their colors based on RGB color patterns, and when viewing an image using an electronic screen, the RGB values of each pixel of the image are actually obtained. The Pentile color mode links pixels with sub-pixels, one pixel displaying one color, also known as RGBG. The RGB color model divides a square pixel equally into three equal parts, each of which is given a different color, so that a color pixel can be formed, and to realize the conversion, the RGB image needs to be known first. Obtaining a gray scale value of R, G, B signals of each pixel point in RGB image data, converting the obtained gray scale value into a brightness value, performing normalization processing on the brightness value, and mapping the brightness value of R, G, B signals, which originally ranges from 0 to 255, between 0 and 1 to obtain R, G, B original component values of each pixel point after the normalization processing; and then, according to the R, G, B original component values of all the pixel points and the maximum value in the R, G, B original component values of all the pixel points, calculating to obtain the white channel current component value, the red channel current component value, the green channel current component value and the blue channel current component value of all the pixel points.
Pentile arrangement is the arrangement mode of the sub-pixels of the mobile phones which are made of OLED materials at present, and is different from the arrangement mode of single pixel points of standard RGB, the pixel points of the standard RGB arrangement are composed of three sub-pixels of red, green and blue, and the single pixel point of the Pentile is only composed of two sub-pixel points of red, green and blue. For example, also showing 3 × 3 pixels, Pentile only makes 6 subpixels in the horizontal direction, while standard RGB makes 9, the number of subpixels is reduced by 1/3. It is known that only three primary colors constitute all colors, whereas two colors do not constitute all colors. Therefore, when an image is actually displayed, a pixel point of Pentile forms three primary colors by using another color of a pixel point adjacent to the pixel point, and each pixel and the adjacent pixels share a sub-pixel of the color which is not possessed by the pixel in the horizontal direction, so that white display is achieved together.
The pixel value is a value given by a computer when an image of an original is digitized, and represents average luminance information of a certain small block of the original, or average reflection (transmission) density information of the small block. When a digital image is converted into a halftone image, the dot area ratio (dot percentage) has a direct relationship with the pixel value (gray value) of the digital image, i.e., the dots represent the average brightness information of a certain small square of the original document by their size. Popular image processing software typically represents a pixel in 8 bits, so that there are a total of 256 gray levels (pixel values between 0 and 255), each level representing a different brightness; high-end scanners (e.g., roll scanners or high-end flatbed scanners) typically use a higher bit depth, i.e., a greater number of bits to represent a pixel, e.g., 12 or 16 bits, when the gray scale level of the pixel is 4096 or 65536, when digitizing an original, but typically still use 8 bits per pixel when outputting.
The image resolution (screen resolution) is the precision of the screen image and refers to how many pixels can be displayed on the display. Since the dots, lines and planes on the screen are all composed of pixels, the more pixels that can be displayed by the display, the finer the picture is, and the more information can be displayed in the same screen area, so that the resolution is one of the very important performance indexes.
The screen refresh rate refers to the number of times a screen is refreshed in one second, and theoretically, the more the number of screen refreshes per unit time is, the more the number of frames and picture information can be displayed.
The technical solution of the present invention will be clearly and completely described below with reference to the accompanying drawings, please refer to fig. 1, where fig. 1 is a network topology diagram of an image conversion method and a related apparatus provided in an embodiment of the present application. In the figure, 101 is a mobile phone processor, 102 is an image conversion chip, and 103 is a mobile phone display screen. The display screen in this application includes but not only is limited to the cell-phone display screen, can also be notebook computer, all-in-one, palm computer, panel, intelligent TV broadcast terminal, vehicle mounted terminal, intelligent passenger cabin product, unmanned aerial vehicle or portable equipment etc.. The operating system of the PC-side electronic device, such as a kiosk or the like, may include, but is not limited to, operating systems such as Linux system, Unix system, Windows series system (e.g., Windows xp, Windows 7, etc.), Mac OS X system (operating system of apple computer), and the like. The operating system of the electronic device at the mobile end, such as a smart phone, may include, but is not limited to, an operating system such as an android system, an IOS (operating system of an apple mobile phone), a Window system, and the like. In the following application documents, a display screen of a mobile phone is described as an example.
Referring to fig. 2, fig. 2 is a flowchart illustrating a method for image conversion according to an embodiment of the present application, where an execution subject of the method may be one or more of an image conversion chip, an image conversion module of the image conversion chip, and an image adjustment module of the image conversion chip, and the method includes, but is not limited to, the following steps:
s201, an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data.
In this embodiment of the application, the format of the first image data is Pentile pixel format, the AMOLED display screen generally adopts RGBG pixel structure, and the format of the second image data is RGB888 pixel format. Converting the first image data into second image data includes: mapping red components of the three RGBG pixel values to red components of first three RGB pixel values, mapping blue components of the three RGBG pixel values to blue components of the first three RGB pixel values, mapping first three green components of six green components of the three RGBG pixel values to green components of the first three RGB pixel values, and mapping last three green components of six green components of the three RGBG pixel values to red components, green components, and blue components of a fourth RGB pixel value. Then, converting the first format image data to an RGB888 pixel format, corresponding each of the three RGBG pixel values to a pixel of a display, each of the three RGBG pixel values comprising one red component, two green components, and one blue component corresponding to one red subpixel, two green subpixels, and one blue subpixel of the pixel of the display.
It is understood that the image conversion module in the image conversion chip receives the first format image data output by the processor and converts the first image data into the second image data. The method can convert the Pentile color mode into the RGB888 color mode.
S202, an image adjusting module in the image conversion chip receives the second image data and adjusts the second image data into third image data according to the display attribute of the replaced display screen.
And adjusting the image of the second image data according to the resolution and the refresh rate of the display screen. The adjustment comprises at least one of enlarging or reducing the image, refreshing a partial region of the image, mirroring the image and rotating the image.
When the adjustment step selection is performed, the adjustment step sorting may be performed according to a user requirement or a preset sorting algorithm set. For example, when the user needs to enlarge the image "flower", refresh a certain area of the image "flower" after enlargement, and rotate the flower, the user performs adjustment in accordance with the above-described procedure required by the user. In addition, the user can also process the images according to the adjusting steps after determining the ordering of the adjusting steps according to a preset ordering algorithm set.
The preset sorting algorithm set may include at least one preset sorting algorithm, which may be a bubble sorting algorithm, a selection sorting algorithm, an insertion sorting algorithm, a quick sorting algorithm, a stacking algorithm, a bucket sorting algorithm, a priority sorting algorithm, and the like, and is not limited herein. The target ranking algorithm may be at least one or more predetermined ranking algorithms selected from a set of predetermined ranking algorithms.
The bubble sort algorithm is a stable sort algorithm, and the principle is to repeatedly scan the sequence to be sorted, compare each pair of adjacent elements, and exchange when the sequence of the pair of elements is incorrect. This process is repeated until no two adjacent elements can be swapped, indicating that the ordering is complete.
The selective sorting algorithm is an unstable sorting algorithm, and the principle is that the smallest (or largest) element is selected from the data elements to be sorted at a time and stored at the start position of the sequence. Then continue to find the smallest (large) element from the remaining unsorted elements and put it to the end of the sorted sequence. And so on until all the data elements to be sorted are arranged.
The insertion sorting algorithm can also be called direct insertion sorting, and the principle is that a double-layer loop is used, an outer layer loop searches for positions to be inserted of all elements except a first element, and an inner layer loop searches for positions to be inserted of an ordered table in front of a current element and moves.
The fast sorting algorithm is an improvement of bubble sorting algorithm, and the principle is that data to be sorted is divided into two independent parts through one-time sorting, wherein all data of one part is smaller than all data of the other part, then the two parts of data are respectively and fast sorted according to the method, and the whole sorting process can be carried out recursively, so that the whole data is changed into an ordered sequence.
The heap sort algorithm may also be referred to as a heap sort algorithm, which is a sort algorithm designed by using a data structure such as a heap. A heap is a structure that approximates a complete binary tree and at the same time satisfies the property of a heap, i.e., a child node's key value or index is always smaller (or larger) than its parent.
The bucket ordering algorithm, which may also be referred to as a bin ordering algorithm, is based on the principle of dividing an array into a finite number of buckets. Each bucket is sorted individually (possibly using another sorting algorithm or continuing the sorting in a recursive manner).
The prioritization algorithm refers to an algorithm for performing the ranking in combination with a priority queue (priority queue) and another ranking algorithm (for example, a quick ranking algorithm, a heap ranking algorithm, a bucket ranking algorithm, or the like).
The method for selecting the ranking algorithm is not limited in the present application, and in one possible example, selecting the target ranking algorithm from the preset ranking algorithm set based on the size of M includes steps a1 or a2, where:
a1: and responding to the condition that the M is smaller than the preset threshold value, the user determines that the preset sorting algorithm set of the image adjusting step comprises at least one of a bubble sorting algorithm, a selection sorting algorithm and an insertion sorting algorithm, so that a target sorting algorithm is selected from the preset sorting algorithm set.
A2: in response to M being greater than or equal to the preset threshold, the user determines that the preset sorting algorithm set of the image adjustment step includes at least one of a quick sorting algorithm, a stacking algorithm, a bucket sorting algorithm, and a preferred sorting algorithm, so as to select a sorting algorithm from the preset sorting algorithm set.
The preset threshold value is not limited, and can be a designated numerical value, the number of the preset sorting algorithms can be centralized according to the preset sorting algorithms, or the average number of the data to be sorted, which is completed by the preset sorting algorithms in a designated time period, is determined, and the like.
It can be understood that the bubble sorting algorithm, the selection sorting algorithm and the insertion sorting algorithm are simple, the time for finishing sorting is shorter under the condition that the data to be sorted in the image adjusting step is less, and the time for finishing sorting is longer under the condition that the quantity of the data to be sorted in the image adjusting step is more. The quick sorting algorithm, the stacking algorithm, the bucket sorting algorithm and the optimal sorting algorithm can be suitable for the condition that the quantity of data to be sorted in the image adjusting step is large. Therefore, in step a1 or step a2, when M is less than the preset threshold, the target sorting algorithm may be selected from a preset sorting algorithm set including a bubble sorting algorithm, a select sorting algorithm, and an insert sorting algorithm. And when M is larger than or equal to the preset threshold, selecting a target sorting algorithm from a quick sorting algorithm, a stacking algorithm, a bucket sorting algorithm and a preferred sorting algorithm. Therefore, different preset sorting algorithm sets are determined by comparing the size of the M with a preset threshold, then the target sorting algorithm is selected from the different preset sorting algorithm sets, and the sorting algorithm corresponding to the number of the image adjusting methods (namely the size of the M) can be selected, so that the accuracy of the sorting algorithm of the image adjusting step is improved, and the efficiency of the image adjusting step is improved conveniently.
It can be understood that the image adjusting module in the image conversion chip receives the second image data, and adjusts the second image data into third image data according to the display attribute of the replaced display screen. The method can realize the function of adjusting the image.
S203, outputting the third image data to the replaced display screen.
In the embodiment of the present application, the third image data includes an RGB888 format. For example, the RGB888 format image "soccer" processed by the image conversion module and the image adjustment module is output to the replaced LCD, and the "soccer" is displayed on the LCD.
By the method of the embodiment of the application, the RGB888 format image processed by the image conversion module and the image adjustment module can be transmitted to the liquid crystal display screen, and the image is displayed on the liquid crystal display screen.
Referring to fig. 3, fig. 3 is a schematic diagram of image enlargement or image reduction according to an embodiment of the present disclosure. Fig. 3 a is an enlarged view of an image, for example, a triangle in the image is enlarged to obtain a larger triangle. Fig. 3 b is a schematic view of image reduction, for example, a triangle in the figure is subjected to image reduction processing to obtain a reduced triangle.
Referring to fig. 4, fig. 4 is a schematic diagram of an image mirroring process according to an embodiment of the present disclosure. For example, the left triangle in the figure is mirrored to obtain the right triangle.
Referring to fig. 5, fig. 5 is a schematic diagram of an image rotation according to an embodiment of the present disclosure. For example, the left triangle is rotated 90 degrees to the right to get the right triangle.
Based on the above system architecture, please refer to fig. 6, and fig. 6 is a block diagram of an image conversion chip according to an embodiment of the present disclosure. The image conversion chip 600 at least includes: a main control module 601, an image conversion module 602, and an image adjustment module 603. Wherein:
the main control module 601 is configured to send an instruction for controlling the image conversion unit and the image adjustment unit, and output first format image data.
The image conversion module 602 is configured to receive the first format image data output by the main control unit, and convert the first image data into second image data.
The image adjusting module 603 is configured to receive the second image data, and adjust the second image data into third image data according to the display attribute of the replaced display screen.
In one possible example, the image conversion module 601 receives image data of a number of RGBG pixel values corresponding to a number of pixels of a display device, the image data including a red component, a green component, and a blue component, the number of RGBG pixel values being divided into three sets of RGBG pixel values, each set including the three RGBG pixel values.
In one possible example, the image conversion module 601 maps the red components of the three RGBG pixel values to the red components of the first three RGB pixel values, maps the blue components of the three RGBG pixel values to the blue components of the first three RGB pixel values, maps the first three green components of the six green components of the three RGBG pixel values to the green components of the first three RGB pixel values, and maps the last three green components of the six green components of the three RGBG pixel values to the red, green, and blue components of the fourth RGB pixel values.
In one possible example, the image conversion module 601 converts the first format image data to an RGB888 pixel format, corresponding each of the three RGBG pixel values to a pixel of a display, each of the three RGBG pixel values including one red component, two green components, and one blue component corresponding to one red subpixel, two green subpixels, and one blue subpixel of the pixel of the display.
In one possible example, the image adjustment module 603 enlarges or reduces the image of the second image data according to the resolution and refresh rate of the display screen.
In one possible example, the image adjusting module 603 performs partial area refresh on the image of the second image data according to the resolution and refresh rate of the display screen.
In one possible example, the image adjustment module 603 performs a rotation or mirror process on the image of the second image data according to the resolution and the refresh rate of the display screen.
For the detailed process executed by each module in the chip 600, reference may be made to the execution steps in the foregoing method embodiments, and details are not described here.
Referring to fig. 7, fig. 7 is a schematic structural diagram of an image conversion chip 700 provided in an embodiment of the present application, where the image conversion chip 700 includes at least one processor 701, at least one memory 702, at least one communication interface 703, and one or more programs 704, where the memory 702 is configured to store chip instructions, the processor 701 is configured to execute the chip instructions, and process acquired data, and the communication interface 703 is configured to transmit signals. The one or more programs 704 are stored in the memory 702 and configured to be executed by the processor 701, the programs 704 including instructions for:
an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data; an image adjusting module in the image conversion chip receives the second image data and adjusts the second image data into third image data according to the display attribute of the replaced display screen; and outputting the third image data to the replaced display screen.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
receiving image data of a number of RGBG pixel values corresponding to a number of pixels of a display device, the image data comprising a red component, a green component, and a blue component, the number of RGBG pixel values being divided into sets of three RGBG pixel values, each set comprising the three RGBG pixel values.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
mapping red components of the three RGBG pixel values to red components of first three RGB pixel values, mapping blue components of the three RGBG pixel values to blue components of the first three RGB pixel values, mapping first three green components of six green components of the three RGBG pixel values to green components of the first three RGB pixel values, and mapping last three green components of six green components of the three RGBG pixel values to red components, green components, and blue components of a fourth RGB pixel value.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
converting the first format image data to an RGB888 pixel format, each of the three RGBG pixel values corresponding to a pixel of a display, each of the three RGBG pixel values comprising one red component, two green components, and one blue component corresponding to one red subpixel, two green subpixels, and one blue subpixel of the pixel of the display.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
and according to the resolution and the refresh rate of the display screen, amplifying or reducing the image of the second image data.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
and refreshing the partial area of the image of the second image data according to the resolution and the refresh rate of the display screen.
In one possible example, the program 704 is specifically for executing the instructions of the following steps:
and rotating or mirroring the image of the second image data according to the resolution and the refresh rate of the display screen.
Those skilled in the art will appreciate that only one memory 702 and processor 701 are shown in fig. 7 for ease of illustration. In an actual terminal or server, there may be multiple processors and memories. The memory may also be referred to as a storage medium or a storage device, and the like, which is not limited in this application.
It should be understood that, in the embodiment of the present Application, the processor may be a Central Processing Unit (CPU), and the processor may also be other general-purpose processors, Digital Signal Processors (DSPs), Application Specific Integrated Circuits (ASICs), Field-Programmable Gate arrays (FPGAs) or other Programmable logic devices, discrete Gate or transistor logic devices, discrete hardware components, and the like. The processor may also be a general-purpose microprocessor, a Graphics Processing Unit (GPU), or one or more integrated circuits, and is configured to execute the relevant programs to implement the functions required to be executed in the embodiments of the present application.
In implementing the present application, the steps of the present application may be performed by integrated logic circuits in hardware or instructions in the form of software in the processor 701. The processor 701 described above may implement or perform the methods, steps and logic blocks disclosed in the embodiments of the present application. The steps of the method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module may be located in ram, flash memory, rom, prom, or eprom, registers, etc. storage media as is well known in the art. The storage medium is located in the memory 702, and the processor 701 reads information in the memory 702, and completes functions to be executed by units included in the storage medium and the method and apparatus for image conversion according to the embodiments of the present application in combination with hardware thereof.
It will also be appreciated that the memory referred to in the embodiments of the application may be either volatile memory or nonvolatile memory, or may include both volatile and nonvolatile memory. The nonvolatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM) which serves as an external cache. By way of example and not limitation, many forms of RAM are available, such as Static random access memory (Static RAM, SRAM), Dynamic RAM (DRAM), Synchronous DRAM (SDRAM), Double Data Rate SDRAM (DDR SDRAM), Enhanced SDRAM (ESDRAM), Synchlink DRAM (SLDRAM), and Direct bus RAM (DR RAM). The Memory may also be, but is not limited to, a Compact Disc Read-Only Memory (CD-ROM) or other optical disk storage, optical disk storage (including Compact Disc, laser Disc, optical Disc, digital versatile Disc, blu-ray Disc, etc.), magnetic disk storage media or other magnetic storage devices, or any other medium that can be used to carry or store desired program code in the form of instructions or data structures and that can be accessed by a computer. The memory may be self-contained and coupled to the processor via a bus. The memory may also be integral to the processor. The memory may store a program which, when executed by the processor, is adapted to perform the steps of the determination method in the above-described embodiments of the present application.
It should be noted that when the processor is a general-purpose processor, a DSP, an ASIC, an FPGA or other programmable logic device, a discrete gate or transistor logic device, or a discrete hardware component, the memory (memory module) is integrated in the processor. It should be noted that the memory described herein is intended to comprise, without being limited to, these and any other suitable types of memory.
It should be understood that the term "and/or" herein is merely one type of association relationship that describes an associated object, meaning that three relationships may exist, e.g., a and/or B may mean: a exists alone, A and B exist simultaneously, and B exists alone. In addition, the character "/" herein generally indicates that the former and latter related objects are in an "or" relationship.
In implementation, the steps of the above method may be performed by integrated logic circuits of hardware in a processor or instructions in the form of software. The steps of a method disclosed in connection with the embodiments of the present application may be directly implemented by a hardware processor, or may be implemented by a combination of hardware and software modules in a processor. The software modules may be located in ram, flash, rom, prom, or eprom, registers, among other storage media as is well known in the art. The storage medium is located in a memory, and a processor reads information in the memory and completes the steps of the method in combination with hardware of the processor. To avoid repetition, it is not described in detail here.
Those of ordinary skill in the art will appreciate that the various Illustrative Logical Blocks (ILBs) and steps described in connection with the embodiments disclosed herein may be implemented as electronic hardware, or combinations of computer software and electronic hardware. Whether such functionality is implemented as hardware or software depends upon the particular application and design constraints imposed on the implementation. Skilled artisans may implement the described functionality in varying ways for each particular application, but such implementation decisions should not be interpreted as causing a departure from the scope of the present application.
In the above embodiments, the implementation may be wholly or partially realized by software, hardware, firmware, or any combination thereof. When implemented in software, may be implemented in whole or in part in the form of a computer programmed program product. The computer program product includes one or more computer instructions. The procedures or functions described in accordance with the embodiments of the application, in whole or in part, result when the computer program instructions are loaded and executed on a chip processor. The computer may be a general purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server or data center to another website, computer, server or data center through a wired (e.g., coaxial cable, optical fiber) or wireless (e.g., infrared, wireless, microwave, etc.) manner, or may be transmitted from one website, computer, server or data center to the tachograph processor through a wired manner. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device, such as a server, a data center, etc., that incorporates one or more of the available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk), an optical medium (e.g., DVD), or a semiconductor medium (e.g., solid state disk), among others.
The above description is only for the specific embodiments of the present application, but the scope of the present application is not limited thereto, and any person skilled in the art can easily conceive of the changes or substitutions within the technical scope of the present application, and shall be covered by the scope of the present application. Therefore, the protection scope of the present application shall be subject to the protection scope of the claims.

Claims (10)

1. An image conversion method is applied to an image conversion chip, the image conversion chip comprises an image conversion module and an image adjustment module, and the method is characterized by comprising the following steps:
an image conversion module in the image conversion chip receives first format image data output by a processor and converts the first image data into second image data;
an image adjusting module in the image conversion chip receives the second image data and adjusts the second image data into third image data according to the display attribute of the replaced display screen;
and outputting the third image data to the replaced display screen.
2. The method of claim 1, wherein said first image data is a Pentile color mode and said second image data is a RGB888 color mode, and wherein receiving processor-output image data in a first format comprises:
receiving image data for all RGBG pixel values of a display screen, the RGBG pixel values including a red component, a green component, and a blue component, dividing the all RGBG pixel values into sets of three RGBG pixel values, each set including the three RGBG pixel values.
3. The method according to any of claims 1-2, wherein said converting said first image data into second image data comprises the steps of:
mapping red components of the three RGBG pixel values to red components of first three RGB pixel values, mapping blue components of the three RGBG pixel values to blue components of the first three RGB pixel values, mapping first three green components of six green components of the three RGBG pixel values to green components of the first three RGB pixel values, and mapping last three green components of six green components of the three RGBG pixel values to red components, green components, and blue components of a fourth RGB pixel value.
4. The method according to any of claims 1-2, wherein said converting said first image data into second image data comprises the steps of:
converting the first format image data to an RGB888 pixel format, each of the three RGBG pixel values corresponding to a pixel of a display screen, each of the three RGBG pixel values comprising one red component, two green components, and one blue component corresponding to one red subpixel, two green subpixels, and one blue subpixel of the pixel of the display.
5. The method according to claim 1, wherein the adjusting the second image data to the third image data according to the display attribute of the replaced display screen comprises the following steps:
and according to the resolution and the refresh rate of the display screen, amplifying or reducing the image of the second image data to obtain third image data.
6. The method according to claim 1 or 5, wherein the adjusting the second image data to the third image data according to the display attribute of the replaced display screen comprises the following steps:
and refreshing a partial area of the image of the second image data according to the resolution and the refresh rate of the display screen to obtain third image data.
7. The method according to claim 1 or 5, wherein the adjusting the second image data to the third image data according to the display attribute of the replaced display screen comprises the following steps:
and when the display direction of the image is not consistent with that of the display screen, rotating or mirroring the image of the second image data to obtain third image data.
8. An apparatus adapted for image conversion, comprising means for performing the instructions of any of claims 1-7.
9. An image conversion chip comprising at least one memory and at least one processor, the memory configured to store computer instructions, the processor comprising an image conversion module and an image adjustment module, the processor configured to execute the computer instructions to perform the method of any one of claims 1-7.
10. A computer storage medium, characterized in that it stores a computer program which, when executed by a processor, implements the method of any one of the preceding claims 1 to 7.
CN202111278491.2A 2021-10-30 2021-10-30 Image conversion method and related device Active CN114049249B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111278491.2A CN114049249B (en) 2021-10-30 2021-10-30 Image conversion method and related device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278491.2A CN114049249B (en) 2021-10-30 2021-10-30 Image conversion method and related device

Publications (2)

Publication Number Publication Date
CN114049249A true CN114049249A (en) 2022-02-15
CN114049249B CN114049249B (en) 2023-08-18

Family

ID=80206473

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111278491.2A Active CN114049249B (en) 2021-10-30 2021-10-30 Image conversion method and related device

Country Status (1)

Country Link
CN (1) CN114049249B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2068001A1 (en) * 1991-07-22 1993-01-23 Leon Lumelsky High definition multimedia display
CN105208246A (en) * 2015-09-30 2015-12-30 重庆长安汽车股份有限公司 Display screen parameter adaptive type display screen assembly and control method
CN106796489A (en) * 2014-09-12 2017-05-31 三星电子株式会社 Method and apparatus for processing the display data in electronic equipment
CN110136644A (en) * 2019-07-09 2019-08-16 南京芯视元电子有限公司 A kind of video display system improving display resolution
CN112422869A (en) * 2020-10-28 2021-02-26 苏州华兴源创科技股份有限公司 Chip for image conversion, pixel structure conversion device and method
US20210076075A1 (en) * 2019-09-11 2021-03-11 Samsung Display Co., Ltd. System and method for rgbg conversion
CN112702553A (en) * 2019-10-23 2021-04-23 青岛海尔多媒体有限公司 Display system, data transmission method thereof and data transmission device
CN113439442A (en) * 2019-03-22 2021-09-24 华为技术有限公司 Image data processing device and method

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CA2068001A1 (en) * 1991-07-22 1993-01-23 Leon Lumelsky High definition multimedia display
CN106796489A (en) * 2014-09-12 2017-05-31 三星电子株式会社 Method and apparatus for processing the display data in electronic equipment
CN105208246A (en) * 2015-09-30 2015-12-30 重庆长安汽车股份有限公司 Display screen parameter adaptive type display screen assembly and control method
CN113439442A (en) * 2019-03-22 2021-09-24 华为技术有限公司 Image data processing device and method
CN110136644A (en) * 2019-07-09 2019-08-16 南京芯视元电子有限公司 A kind of video display system improving display resolution
US20210076075A1 (en) * 2019-09-11 2021-03-11 Samsung Display Co., Ltd. System and method for rgbg conversion
CN112702553A (en) * 2019-10-23 2021-04-23 青岛海尔多媒体有限公司 Display system, data transmission method thereof and data transmission device
CN112422869A (en) * 2020-10-28 2021-02-26 苏州华兴源创科技股份有限公司 Chip for image conversion, pixel structure conversion device and method

Also Published As

Publication number Publication date
CN114049249B (en) 2023-08-18

Similar Documents

Publication Publication Date Title
US20180166003A1 (en) Image processing method, apparatus, and display device
US9875519B2 (en) Overlap aware reordering of rendering operations for efficiency
CN1711750A (en) Method and system for conducting image processing from a mobile client device
CN101388950B (en) Content-adaptive contrast improving method and apparatus for digital image
EP1174855A2 (en) Display method by using sub-pixels
US8044960B2 (en) Character display apparatus
CN105575314B (en) A kind of grayscale processing method, grayscale processing unit and display device
US11481907B2 (en) Apparatus and method for image region detection of object based on seed regions and region growing
US20180089812A1 (en) Method and system for image enhancement
US20230326174A1 (en) Image processing method and apparatus, computer device and computer program product
KR102237520B1 (en) Method of providing virtual exhibition space for efficient data management
US8854385B1 (en) Merging rendering operations for graphics processing unit (GPU) performance
CN103744942B (en) Web browser method and device, web page browsing terminal device
CN112114919B (en) Screen rotation display optimization method and device
US20190311464A1 (en) Tuning for deep-learning-based color enhancement systems
US11049429B2 (en) Electronic device for blending layer of image data
CN114049249B (en) Image conversion method and related device
US7209144B2 (en) Image-display apparatus, image-display method, and image-display program
US7221375B2 (en) System and method for generating dithering patterns associated with a digital image
CN114244969B (en) Image brightness correction method and hardware system
JP3944524B1 (en) Image processing system
CN115831042B (en) Image display method and system, display driving device, and storage medium
WO2024000473A1 (en) Color correction model generation method, correction method and apparatus, and medium and device
US11527191B2 (en) Display driver circuit and method for reducing influence of noise or dither
US10971055B2 (en) Display adjustment method and display device

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