CN114153413A - Image conversion method and device and bridge chip - Google Patents

Image conversion method and device and bridge chip Download PDF

Info

Publication number
CN114153413A
CN114153413A CN202111322801.6A CN202111322801A CN114153413A CN 114153413 A CN114153413 A CN 114153413A CN 202111322801 A CN202111322801 A CN 202111322801A CN 114153413 A CN114153413 A CN 114153413A
Authority
CN
China
Prior art keywords
image data
color depth
screen
pixel
bridge chip
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
CN202111322801.6A
Other languages
Chinese (zh)
Other versions
CN114153413B (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 CN202111322801.6A priority Critical patent/CN114153413B/en
Publication of CN114153413A publication Critical patent/CN114153413A/en
Application granted granted Critical
Publication of CN114153413B publication Critical patent/CN114153413B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/147Digital output to display device ; Cooperation and interconnection of the display device with other functional units using display panels
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • G06T3/4092Image resolution transcoding, e.g. client/server architecture
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/22Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources
    • G09G3/30Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels
    • G09G3/32Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED]
    • G09G3/3208Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED]
    • G09G3/3225Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters using controlled light sources using electroluminescent panels semiconductive, e.g. using light-emitting diodes [LED] organic, e.g. using organic light-emitting diodes [OLED] using an active matrix
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G3/00Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes
    • G09G3/20Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters
    • G09G3/34Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source
    • G09G3/36Control arrangements or circuits, of interest only in connection with visual indicators other than cathode-ray tubes for presentation of an assembly of a number of characters, e.g. a page, by composing the assembly by combination of individual elements arranged in a matrix no fixed position being assigned to or needed to be assigned to the individual characters or partial characters by control of light from an independent source using liquid crystals
    • G09G3/3611Control of matrices with row and column drivers
    • G09G3/3648Control of matrices with row and column drivers using an active matrix
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T2210/00Indexing scheme for image generation or computer graphics
    • G06T2210/32Image data format
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Hardware Design (AREA)
  • Human Computer Interaction (AREA)
  • General Engineering & Computer Science (AREA)
  • Chemical & Material Sciences (AREA)
  • Crystallography & Structural Chemistry (AREA)
  • Image Processing (AREA)

Abstract

The application provides an image conversion method, an image conversion device and a bridge chip, wherein the method is applied to the bridge chip of a screen module of electronic equipment, the electronic equipment comprises a processor and the screen module, the screen module comprises the bridge chip and a screen, the processor is connected with the bridge chip, the bridge chip is connected with the screen, and the method comprises the following steps: receiving first image data sent by the processor; acquiring a second color depth of a reloading screen of the electronic equipment; determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth of the first image data; when it is determined that color depth conversion needs to be performed on the first image data, converting the first color depth of the first image data into a second color depth to obtain second image data; and sending second image data to the reloading screen to display the corresponding image. The application improves the universality of the bridge chip.

Description

Image conversion method and device and bridge chip
Technical Field
The present application relates to the field of image conversion technologies, and in particular, to an image conversion method, an image conversion device, and a bridge chip.
Background
Along with the influence of a user on the visual experience demand, the screen of the mobile phone is larger and larger, but the screen breaking risk of the mobile phone is increased gradually along with the increase of the screen of the mobile phone, and when the user needs to change the screen, the mobile phone is generally re-equipped with a screen and matched with a chip on the current market, so that the display effect of the mobile phone achieves the same display effect as that before the screen is changed.
At present, most of common manufacturers adopt software or chips to realize image processing after screen changing, but most of chips in the market can only support input in one image RGB format, and the universality is poor.
Disclosure of Invention
In view of the foregoing disadvantages of the prior art, the present application aims to provide an image conversion method, an image conversion apparatus, and a bridge chip, which aim to improve the versatility of the bridge chip.
In order to achieve the purpose, the following technical scheme is adopted in the application:
in a first aspect, an embodiment of the present application provides an image conversion method, which is applied to a bridge chip of a screen module of an electronic device, where the electronic device includes a processor and the screen module, the screen module includes the bridge chip and a screen, the processor is connected to the bridge chip, and the bridge chip is connected to the screen module, and the method includes:
receiving first image data sent by the processor, wherein the first image data is image data stored with a first color depth;
acquiring a second color depth of a reloading screen of the electronic equipment;
determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth;
when it is determined that color depth conversion needs to be performed on the first image data, converting the first color depth of the first image data into a second color depth to obtain second image data, wherein the second image data is image data adapted to the reloading screen;
and sending the second image data to the reloading screen so as to display a corresponding image through the reloading screen.
In the embodiment, the format of the first image data is converted according to the second color depth of the reloading screen, so that the universality of the bridge chip is improved, and the electronic equipment can adapt to various reloading screens.
In a second aspect, an embodiment of the present application provides an image data processing apparatus, which is applied to a bridge chip of a screen changing module of an electronic device, where the electronic device includes a processor and the screen changing module, the screen changing module includes a bridge chip and a screen changing screen, the processor is connected to the bridge chip, and the bridge chip is connected to the screen changing screen; the device comprises: a receiving unit, configured to receive first image data sent by the processor, where the first image data is image data stored at a first color depth; the acquisition unit is used for detecting a second color depth of a reloading screen of the electronic equipment; the processing unit is used for determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth, and converting the first color depth of the first image data into the second color depth when the first image data needs to be subjected to color depth conversion to obtain second image data, wherein the second image data is image data adapted to the reloading screen; and the sending unit is used for sending the second image data to the reloading screen so as to display the corresponding image through the reloading screen.
In a third aspect, an embodiment of the present application provides an electronic device, including a processor, and a memory, where the memory is configured to store one or more programs and is configured to be executed by the processor, and the program includes instructions for executing steps in the method according to the first aspect.
In a fourth aspect, an embodiment of the present application provides an electronic device, including a processor, and a memory, configured to store one or more programs, and configured to be executed by the processor, where the program includes instructions for performing the steps in the method according to the first aspect.
In a fifth aspect, the present application provides a computer-readable storage medium, which is characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute instructions of the steps in the method according to the first aspect.
Drawings
In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings used in the description of the embodiments or the prior art will be briefly described below, it is obvious that the drawings in the following description are only some embodiments of the present application, and for those skilled in the art, other drawings can be obtained according to the drawings without creative efforts.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2 is a schematic flowchart of an image conversion method provided in an embodiment of the present application;
fig. 3 is a diagram illustrating an example of a position mapping relationship between a first pixel and a second pixel according to an embodiment of the present application;
fig. 4 is a schematic structural diagram of an image data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic flowchart of another electronic device provided in an embodiment of the present application.
Detailed Description
In order to make the technical solutions of the present application better understood, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are only a part of the embodiments of the present application, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present application.
The terms "first," "second," and the like in the description and claims of the present application and in the above-described drawings are used for distinguishing between different objects and not for describing a particular order. Furthermore, the terms "include" and "have," as well as any variations thereof, are intended to cover non-exclusive inclusions. 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 present application, "at least one" means one or more, and a plurality means two or more. In this application and/or, an association relationship of an associated object is described, which means that there may be three relationships, for example, a and/or B, which may mean: a alone, both A and B, and B alone, where A, B may be singular or plural. The character "/" generally indicates that the former and latter associated objects are in an "or" relationship. "at least one of the following" or similar expressions refer to any combination of these items, including any combination of the singular or plural items. For example, at least one (one) of a, b, or c, may represent: a, b, c, a and b, a and c, b and c, or a, b and c, wherein each of a, b, c may itself be an element or a set comprising one or more elements.
It should be noted that, in the embodiments of the present application, the term "equal to" may be used in conjunction with more than, and is applicable to the technical solution adopted when more than, and may also be used in conjunction with less than, and is applicable to the technical solution adopted when less than, and it should be noted that when equal to or more than, it is not used in conjunction with less than; when the ratio is equal to or less than the combined ratio, the ratio is not greater than the combined ratio. In the embodiments of the present application, "of", "corresponding" and "corresponding" may be sometimes used in combination, and it should be noted that the intended meaning is consistent when the difference is not emphasized.
First, partial terms referred to in the embodiments of the present application are explained so as to be easily understood by those skilled in the art.
1. TDDI display chip: TDDI is Touch and Display Driver Integration (TDDI). The touch and display functions of the smart phone are independently controlled by the two chips, and the TDDI integrates the touch chip and the display chip into a single chip.
2. Robin: the chip is a chip supporting multi-format conversion, receives a high-resolution and high-frame-rate display image sent from a main chip, such as a mobile phone AP, performs scaling and frame rate conversion, and outputs an image meeting the specification requirement of a TDDI display chip to drive a screen.
3. RGB101010 and RGB 888: RGB101010 is an image color format in which R, G, B colors are all stored at 10 bits, and RGB888 is an image color format in which R, G, B colors are all stored at 8 bits.
At present, most of common manufacturers adopt software or chips to realize image processing after screen changing, but most of chips in the market can only support input in one image RGB format (such as RGB101010/RGB888), and the universality is poor.
In view of the above problems, the present application provides an image conversion method, an image conversion apparatus and a bridge chip, which will be described in detail below.
As shown in fig. 1, fig. 1 is a schematic view of an electronic device 100 provided in the present application. The electronic device 100 comprises a processor 110 and a screen replacing module 120, wherein the screen replacing module 120 comprises a bridge chip 121 and a screen replacing screen 122, the processor 110 is connected with the bridge chip, and the bridge chip 121 is connected with the screen replacing screen 122. The processor 110 may be a system-on-chip of the electronic device 100, and specifically includes a central processing unit CPU, a graphics processor 110GPU, and the like. The bridge chip 121 may be a Robin transcoding chip. The exchangeable screen 122 may be, for example, an Active Matrix/Organic Light Emitting Diode (AMOLED) screen Liquid Crystal Display (LCD) or the like.
Specifically, the electronic device 100100 may be any one of various electronic devices 100, such as a game machine, a mobile terminal (e.g., a smart phone), an IoT device in the internet of things, and a vehicle-mounted terminal device.
The following describes an information query method provided by the present application with specific embodiments.
Referring to fig. 2, the present application provides an image conversion method applied to a bridge chip of a screen module of an electronic device shown in fig. 1, where as shown in fig. 2, the method includes:
step 201, receiving first image data sent by the processor, where the first image data is image data stored with a first color depth.
For example, the first color depth may be 10 bits, and the RGB101010 mode is adapted, where the control data corresponding to the first color depth is stored as a first RGB value, and the bit depth of the first RGB value is 10 bits, and bit is a bit.
Step 202, obtaining a second color depth of the reloading screen of the electronic equipment.
For example, the second color depth is 8 bits, the RGB888 mode is adapted, the control data corresponding to the second color depth is stored as a second RGB value, the bit depth of the second RGB value is 8 bits, and bit is a bit.
Step 203, determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth.
In one possible embodiment, the determining whether to color depth convert the first image data according to the first color depth and the second color depth includes: when the first color depth is equal to the second color depth, not performing color depth conversion on the first image data; and when the first color depth is smaller than or larger than the second color depth, performing color depth conversion on the first image data.
It will be appreciated that when the first color depth is equal to the second color depth, the RGB pattern of the image data between the processor and the conversion screen is the same, and therefore no format conversion is required, only when the first color depth is less than or greater than the second color depth, a color depth conversion (i.e. RGB format conversion) is required.
It can be seen that in this embodiment, a mechanism is implemented to trigger color depth conversion in certain situations.
Step 204, when it is determined that color depth conversion needs to be performed on the first image data, converting the first color depth of the first image data into a second color depth to obtain second image data, wherein the second image data is image data adapted to the reloading screen.
In a possible embodiment, the converting the first color depth of the first image data into the second color depth to obtain the second image data includes: and if the first color depth is smaller than or larger than the second color depth, converting the first RGB value of each pixel in the first image data into the second RGB value of the second image data in an equal proportion to obtain second image data.
Specifically, the first RGB value of the first image data may be changed to be adapted to the hardware parameter (i.e., the second color depth) and the RGB mode of the reloading screen, so that when it is determined that the first color depth is smaller than or larger than the second color depth, the first RGB value of each pixel in the first image data is proportionally converted into the second RGB value of the second image data, and the second image data adapted to the hardware parameter and the RGB mode of the reloading screen is obtained.
It can be seen that, in this embodiment, when the RGB mode of the first image data is inconsistent with the reloading screen, the first RGB value of the first image data is converted into the second RGB value, so that the adaptation of the first image data and the reloading screen is realized.
In one possible embodiment, after the first RGB value of each pixel in the first image data is proportionally converted into the second RGB value of the second image data, the method further includes: acquiring a first resolution of the first image data; detecting a second resolution of the reloading screen; and carrying out adaptation processing of resolution and color depth on the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen.
For example, the first resolution may be 1920px 1080px, the second resolution may be 720px 1520px, and px is a pixel. In a color image, the image information of each pixel is usually represented by the intensity of red, green and blue, and can also be represented by its hue, saturation, and brightness. The black and white image can be identified by the gray value.
Specifically, after the RGB mode conversion is completed, it is determined whether there is a change in resolution between the reloading screen and the original screen, and if there is a change in resolution between the reloading screen and the original screen, the second image data needs to be adapted according to the second resolution of the reloading screen.
It can be seen that, in the embodiment, after the screen is replaced, and the RGB mode and the resolution are adapted.
In one possible embodiment, the performing resolution and color depth adaptation processing on the first image data according to the first resolution and the second resolution includes: when the first resolution is greater than the second resolution, determining the proportion of the first resolution to the second resolution, and establishing a pixel position corresponding relation between an original screen and a reloading screen according to the proportion, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises part or all of a plurality of first pixels, the first pixels are pixels of the original screen, the second pixels are pixels of the reloading screen, and the combination of the plurality of first pixels in each first pixel subset is the same as the position of the corresponding second pixels; establishing a mapping relation between the second RGB value and the second pixel; determining the image data of each second pixel according to the pixel position corresponding relation, the mapping relation and the first image data; and determining second image data of the reloading screen according to the image data of each second pixel.
As can be seen, in this example, the bridge chip can determine the pixel position corresponding relationship through the first resolution and the second resolution, so that the distribution of the first pixels corresponding to the position area where each second pixel of the single-frame image of the screen is located can be accurately determined, and the image information of each first pixel in the first image data is known, so that the image information of the second pixel can be predicted; in addition, after the image information of the second pixel is determined, the bridge chip can also establish a mapping relation between a second RGB value and the second pixel to control the second pixel to display according to the second RGB value.
In a possible embodiment, the establishing a mapping relationship between the second RGB values and the second pixels includes: and establishing a mapping relation between the second RGB value and a second pixel on the reloading screen by taking the second pixel as a basic pixel unit.
Specifically, the first RGB value and the second RGB value correspond to color parameters of a single pixel, and therefore, after color depth conversion, the occupied pixel is not changed, but the number of pixels of the screen to be changed is different from that of the original screen, and therefore, the second RGB value and the second pixel of the screen to be changed need to be remapped so as to display a complete color pattern on the screen to be changed.
In a possible embodiment, the determining the image data of each second pixel according to the pixel position corresponding relationship, the mapping relationship and the first image data includes: performing the following operation for each second pixel to obtain the image data of each second pixel: determining a first pixel subset corresponding to a currently processed second pixel according to the pixel position corresponding relation; determining image data for each of a plurality of first pixels of the first subset of pixels from the first image data; and determining the image data of the currently processed second pixel according to the area distribution of each first pixel in the plurality of first pixels, the image data of each first pixel and the mapping relation.
The area distribution is used for representing the effective area occupation ratio of each first pixel in the current second pixel area, the effective area occupation ratio is obtained by specifically dividing the effective area of the first pixel by the whole area of the first pixel, and the effective area of the first pixel refers to the pixel area in the second pixel area.
As can be seen, in this example, the bridge chip can locate a plurality of first pixels corresponding to the second pixels through position consistency, and further determine image data of the second pixels according to the area distribution of each first pixel, so as to comprehensively and accurately represent the image characteristics of the pixel area.
For example, as shown in fig. 3, assume that the first resolution of the first image data is 3 × 3, and the first resolution is, in order from left to right and from top to bottom:
pixel 0, pixel 1, pixel 2,
Pixel 3, pixel 4, pixel 5,
Pixel 6, pixel 7, pixel 8;
the corresponding first image data is a matrix as follows:
(0,0,255)、(255,0,255)、(255,0,0)
(0,255,255)、(255,0,0)、(0,0,255)
(0,255,0)、(255,255,255)、(0,0,0)
the second resolution of the second image data is 2 × 2, which is, in order from left to right and from top to bottom:
pixel a, pixel b,
Pixel c, pixel d;
then it is determined in connection with the legend that the first set of pixels to which pixel a corresponds includes pixel 0 (area fraction 100%), pixel 1 (area fraction 50%), pixel 3 (area fraction 50%), pixel 4 (area fraction 25%),
the three-channel image information of the pixel a can be calculated as follows:
and (3) a channel R: (0 × 100% +255 × 50% +0 × 50% +255 × 25%)/4 ═ 47.8
And a channel G: (0 × 100% +0 × 50% +255 × 50% +0 × 25%)/4 ═ 31.9
And (3) a channel B: (255 × 100% +255 × 50% +0 × 25%)/4 ═ 127.5
The other pixels b, c and d are calculated in a similar way.
In this example, the bridge chip can accurately and comprehensively determine the image data of the second pixel based on the area ratio of each first pixel, so that the comprehensiveness and the accuracy are improved.
Step 205, sending the second image data to the reloading screen to display a corresponding image through the reloading screen.
To sum up, the image conversion method provided by the application is applied to a bridge chip of a screen module of an electronic device, the electronic device comprises a processor and the screen module, the screen module comprises the bridge chip and a screen, the processor is connected with the bridge chip, the bridge chip is connected with the screen, and the method comprises the following steps: receiving first image data sent by the processor, wherein the first image data is image data stored with a first color depth; acquiring a second color depth of a reloading screen of the electronic equipment; determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth; when it is determined that color depth conversion needs to be performed on the first image data, converting the first color depth of the first image data into a second color depth to obtain second image data, wherein the second image data is image data adapted to the reloading screen; and sending the second image data to the reloading screen so as to display a corresponding image through the reloading screen. In the embodiment, the format of the first image data is converted according to the second color depth of the reloading screen, so that the universality of the bridge chip is improved, and the electronic equipment can adapt to various reloading screens.
The above description has introduced the solution of the embodiment of the present application mainly from the perspective of the method-side implementation process. It is understood that the bridge chip contains corresponding hardware structures and/or software modules for performing the respective functions in order to realize the above functions. Those of skill in the art will readily appreciate that the present application is capable of hardware or a combination of hardware and computer software implementing the various illustrative elements and algorithm steps described in connection with the embodiments provided herein. Whether a function is performed as hardware or computer software drives hardware depends upon the particular application and design constraints imposed on the solution. 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 embodiment of the present application, the bridge chip may be divided into the functional units according to the above method example, for example, each functional unit may be divided corresponding to each function, or two or more functions may be integrated into one processing unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit. It should be noted that the division of the unit in the embodiment of the present application is schematic, and is only a logic function division, and there may be another division manner in actual implementation.
Referring to fig. 4, the present application further provides an image data processing apparatus 400, which is applied to a bridge chip of a screen replacing module of an electronic device, where the electronic device includes a processor and the screen replacing module, the screen replacing module includes the bridge chip and a screen replacing screen, the processor is connected to the bridge chip, and the bridge chip is connected to the screen replacing screen; the device comprises:
a receiving unit 401, configured to receive first image data sent by the processor, where the first image data is image data stored at a first color depth;
an obtaining unit 402, configured to detect a second color depth of a reloading screen of the electronic device;
a processing unit 403, configured to determine whether to perform color depth conversion on the first image data according to the first color depth and the second color depth, and when it is determined that the color depth conversion needs to be performed on the first image data, convert the first color depth of the first image data into a second color depth to obtain second image data, where the second image data is image data adapted to the reloading screen;
a sending unit 404, configured to send the second image data to the reloading screen to display a corresponding image through the reloading screen.
For example, the first color depth may be 10 bits, the adaptive RGB101010 mode is adopted, the control data corresponding to the first color depth is stored as a first RGB value, the bit depth of the first RGB value is 10 bits, bit is a bit, the first color depth may be 10 bits, the adaptive RGB101010 mode is adopted, the control data corresponding to the first color depth is stored as a first RGB value, the bit depth of the first RGB value is 10 bits, and bit is a bit.
In a possible embodiment, in the aspect of determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth, the processing unit 403 is specifically configured to: when the first color depth is equal to the second color depth, not performing color depth conversion on the first image data; and when the first color depth is smaller than or larger than the second color depth, performing color depth conversion on the first image data.
In a possible embodiment, in terms of converting the first color depth of the first image data into the second color depth to obtain the second image data, the processing unit 403 specifically includes: and if the first color depth is smaller than or larger than the second color depth, converting the first RGB value of each pixel in the first image data into the second RGB value of the second image data in an equal proportion to obtain second image data.
In a possible embodiment, after the aspect of proportionally converting the first RGB value of each pixel in the first image data into the second RGB value of the second image data, the processing unit 403 is specifically configured to: acquiring a first resolution of the first image data; detecting a second resolution of the reloading screen; and carrying out adaptation processing of resolution and color depth on the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen.
In a possible embodiment, in terms of performing resolution and color depth adaptation processing on the first image data according to the first resolution and the second resolution, the processing unit 403 is specifically configured to: when the first resolution is greater than the second resolution, determining the proportion of the first resolution to the second resolution, and establishing a pixel position corresponding relation between an original screen and a reloading screen according to the proportion, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises part or all of a plurality of first pixels, the first pixels are pixels of the original screen, the second pixels are pixels of the reloading screen, and the combination of the plurality of first pixels in each first pixel subset is the same as the position of the corresponding second pixels; establishing a mapping relation between the second RGB value and the second pixel; determining the image data of each second pixel according to the pixel position corresponding relation, the mapping relation and the first image data; and determining second image data of the reloading screen according to the image data of each second pixel.
The present application also provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement the steps in the method described in the above embodiments.
The present invention also provides a terminal device 500, as shown in fig. 5, which includes at least one processor (processor) 501; a display screen 502; and a memory (memory)503, which may also include a Communications Interface (Communications Interface)505 and a bus 504. The processor 501, the display 502, the memory 503 and the communication interface 505 can communicate with each other through the bus 504. The display screen 502 is configured to display a user guidance interface preset in the initial setting mode. Communication interface 505 may communicate information. The processor 501 may call logic instructions in the memory 503 to perform the method in the above embodiments.
Optionally, the terminal device 500 may be the electronic device described above, or may be another terminal device, which is not limited herein.
In addition, the logic instructions in the memory 503 may be implemented in the form of software functional units and stored in a computer readable storage medium when the logic instructions are sold or used as independent products.
The memory 503, which is a computer-readable storage medium, may be configured to store software programs, computer-executable programs, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 501 executes the functional application and data processing by executing the software program, instructions or modules stored in the memory 503, that is, implements the method in the above-described embodiments.
The memory 503 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the terminal device 500, and the like. Further, the memory 503 may include a high-speed random access memory, and may also include a nonvolatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the mobile terminal are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.

Claims (10)

1. An image conversion method is characterized in that the method is applied to a bridge chip of a reloading screen module of electronic equipment, the electronic equipment comprises a processor and the reloading screen module, the reloading screen module comprises the bridge chip and a reloading screen, the processor is connected with the bridge chip, the bridge chip is connected with the reloading screen, and the method comprises the following steps:
receiving first image data sent by the processor, wherein the first image data is image data stored with a first color depth;
acquiring a second color depth of a reloading screen of the electronic equipment;
determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth;
when it is determined that color depth conversion needs to be performed on the first image data, converting the first color depth of the first image data into a second color depth to obtain second image data;
and sending the second image data to the reloading screen so as to display a corresponding image through the reloading screen.
2. The method of claim 1, wherein converting the first color depth of the first image data to the second color depth to obtain second image data comprises:
and if the first color depth is smaller than or larger than the second color depth, converting the first RGB value of each pixel in the first image data into the second RGB value of the second image data in an equal proportion to obtain second image data.
3. The method of claim 2, wherein after the scaling the first RGB values for each pixel in the first image data to the second RGB values for the second image data, the method further comprises:
acquiring a first resolution of the first image data;
detecting a second resolution of the reloading screen;
and carrying out adaptation processing of resolution and color depth on the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen.
4. The method of any of claim 3, wherein performing resolution and color depth adaptation processing on the first image data according to the first resolution and the second resolution comprises:
when the first resolution is greater than the second resolution, determining the proportion of the first resolution to the second resolution, and establishing a pixel position corresponding relation between an original screen and a reloading screen according to the proportion, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises part or all of a plurality of first pixels, the first pixels are pixels of the original screen, the second pixels are pixels of the reloading screen, and the combination of the plurality of first pixels in each first pixel subset is the same as the position of the corresponding second pixels;
establishing a mapping relation between the second RGB value and the second pixel;
determining the image data of each second pixel according to the pixel position corresponding relation, the mapping relation and the first image data;
and determining second image data of the reloading screen according to the image data of each second pixel.
5. The method of claim 1, wherein the first RGB value has a bit depth of 10 bits, and wherein the second RGB value has a bit depth of 8 bits, and wherein bit is a bit.
6. The method of claim 1, wherein determining whether to color depth convert the first image data according to the first color depth and the second color depth comprises:
when the first color depth is equal to the second color depth, not performing color depth conversion on the first image data;
and when the first color depth is smaller than or larger than the second color depth, performing color depth conversion on the first image data.
7. The image data processing device is characterized in that the device is applied to a bridge chip of a screen replacing module of electronic equipment, the electronic equipment comprises a processor and the screen replacing module, the screen replacing module comprises the bridge chip and a screen replacing screen, the processor is connected with the bridge chip, and the bridge chip is connected with the screen replacing screen; the device comprises:
a receiving unit, configured to receive first image data sent by the processor, where the first image data is image data stored at a first color depth;
the acquisition unit is used for detecting a second color depth of a reloading screen of the electronic equipment;
the processing unit is used for determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth, and converting the first color depth of the first image data into the second color depth when the first image data needs to be subjected to color depth conversion to obtain second image data, wherein the second image data is image data adapted to the reloading screen;
and the sending unit is used for sending the second image data to the reloading screen so as to display the corresponding image through the reloading screen.
8. An electronic device comprising a processor, a memory for storing one or more programs and configured for execution by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-6.
9. A bridge chip is characterized in that the bridge chip is applied to a screen replacing module of electronic equipment, the electronic equipment comprises a processor and the screen replacing module, the screen replacing module comprises the bridge chip and a screen replacing screen, the processor is connected with the bridge chip, and the bridge chip is connected with the screen replacing screen;
the bridge chip is used for running a program, wherein the program is run for executing the steps of the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized by storing a computer program for electronic data exchange, wherein the computer program causes a computer to execute instructions of the steps in the method according to any one of claims 1-6.
CN202111322801.6A 2021-11-09 2021-11-09 Image conversion method and device and bridge chip Active CN114153413B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111322801.6A CN114153413B (en) 2021-11-09 2021-11-09 Image conversion method and device and bridge chip

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111322801.6A CN114153413B (en) 2021-11-09 2021-11-09 Image conversion method and device and bridge chip

Publications (2)

Publication Number Publication Date
CN114153413A true CN114153413A (en) 2022-03-08
CN114153413B CN114153413B (en) 2024-02-09

Family

ID=80459778

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111322801.6A Active CN114153413B (en) 2021-11-09 2021-11-09 Image conversion method and device and bridge chip

Country Status (1)

Country Link
CN (1) CN114153413B (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010020950A1 (en) * 2000-02-25 2001-09-13 International Business Machines Corporation Image conversion method, image processing apparatus, and image display apparatus
US20170025055A1 (en) * 2015-07-21 2017-01-26 Samsung Electronics Co., Ltd. Display driver, and display device and system including the same
CN106454303A (en) * 2016-10-27 2017-02-22 青岛海信电器股份有限公司 RGBW image processing method and apparatus
CN106796489A (en) * 2014-09-12 2017-05-31 三星电子株式会社 Method and apparatus for processing the display data in electronic equipment
CN109584811A (en) * 2019-01-02 2019-04-05 京东方科技集团股份有限公司 The driving method and driving device of backlight, display equipment
CN111526403A (en) * 2020-03-30 2020-08-11 龙芯中科技术有限公司 Display device, method and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20010020950A1 (en) * 2000-02-25 2001-09-13 International Business Machines Corporation Image conversion method, image processing apparatus, and image display apparatus
CN106796489A (en) * 2014-09-12 2017-05-31 三星电子株式会社 Method and apparatus for processing the display data in electronic equipment
US20170025055A1 (en) * 2015-07-21 2017-01-26 Samsung Electronics Co., Ltd. Display driver, and display device and system including the same
CN106454303A (en) * 2016-10-27 2017-02-22 青岛海信电器股份有限公司 RGBW image processing method and apparatus
CN109584811A (en) * 2019-01-02 2019-04-05 京东方科技集团股份有限公司 The driving method and driving device of backlight, display equipment
CN111526403A (en) * 2020-03-30 2020-08-11 龙芯中科技术有限公司 Display device, method and electronic equipment

Also Published As

Publication number Publication date
CN114153413B (en) 2024-02-09

Similar Documents

Publication Publication Date Title
US6868189B1 (en) Image processing apparatus, an image processing method, and a computer readable medium having recorded thereon a processing program for permitting a computer to perform image processing routines
CN109472839B (en) Image generation method and device, computer equipment and computer storage medium
CN111326099B (en) Display correction method, device and system, storage medium and display system
KR20030005277A (en) Shape processor
CN113299245B (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
CN103903587A (en) Method and device for processing picture data
CN104835460A (en) Image processing apparatus, image processing method, display panel driver and display apparatus
CN103680403A (en) Methods and devices for controlling operations of an organic light-emitting diode display
US8044960B2 (en) Character display apparatus
US20150271363A1 (en) Image processing apparatus, image processing method, and non-transitory computer readable medium
CN104049486A (en) Method and System for Determining an Object Type from Raster Data
CN104992680A (en) Electronic ink screen graying method
KR20060111726A (en) Color matching system and display
US7528814B2 (en) Method and device providing enhanced characters
US20200192554A1 (en) Terminal device, display control method implemented by the terminal device, computer readable storage medium and computer program product
CN114153413A (en) Image conversion method and device and bridge chip
JP4079268B2 (en) Character display device, character display method, character display program, and readable recording medium
CN107622098A (en) Method to set up and device, the storage medium and electronic installation of web site contents color
US5812743A (en) Image recording system
CN111338627B (en) Front-end webpage theme color adjustment method and device
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
CN113905126B (en) Image data processing method and related device
EP1308923A1 (en) Method and device providing enhanced characters
CN112256228A (en) Optimization method for dot matrix character display
KR102251443B1 (en) Image processing device, image processing system and method for image processing

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