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

Image conversion method and device and bridge chip Download PDF

Info

Publication number
CN114153413B
CN114153413B CN202111322801.6A CN202111322801A CN114153413B CN 114153413 B CN114153413 B CN 114153413B CN 202111322801 A CN202111322801 A CN 202111322801A CN 114153413 B CN114153413 B CN 114153413B
Authority
CN
China
Prior art keywords
pixel
image data
screen
color depth
pixels
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.)
Active
Application number
CN202111322801.6A
Other languages
Chinese (zh)
Other versions
CN114153413A (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

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 transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4092Image resolution transcoding, e.g. by using client-server architectures
    • 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 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 the reloading screen, the processor is connected with the bridge chip, and the bridge chip is connected with the reloading 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 the first image data is determined to need to be subjected to color depth conversion, 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 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 disclosure 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, however, with the increase of the screen of the mobile phone, the risk of screen breakage is also increased gradually, and when the user needs to change the screen, a screen is generally newly allocated to the mobile phone in the current market and matched with a chip, so that the display effect of the screen is the same 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 on the market only can support one image RGB format input, and the universality is poor.
Disclosure of Invention
In view of the above-mentioned shortcomings of the prior art, an object of the present application is to provide an image conversion method, an image conversion device and a bridge chip, which aim to improve the versatility of the bridge chip.
In order to achieve the above purpose, the present application adopts the following technical scheme:
in a first aspect, an embodiment of the present application provides an image conversion method, which is applied to a bridge chip of a reloading screen module of an electronic device, where the electronic device includes a processor and the reloading screen module, the reloading screen module includes the bridge chip and the reloading screen, the processor is connected to the bridge chip, and the bridge chip is connected to the reloading screen, and the method includes:
receiving first image data sent by the processor, wherein the first image data is stored in 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 the first image data is determined to need to be subjected to color depth conversion, 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 adapting to the reloading screen;
and sending the second image data to the reloading screen so as to display corresponding images through the reloading screen.
It can be seen that in this embodiment, format conversion is performed on the first image data according to the second color depth of the reloading screen, so that the universality of the bridge chip is improved, and the electronic device 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 replacement module of an electronic device, where the electronic device includes a processor and the screen replacement module, the screen replacement module includes a bridge chip and a screen replacement screen, the processor is connected to the bridge chip, and the bridge chip is connected to the screen replacement 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 with a first color depth; an acquisition unit, configured to detect a second color depth of a reloading screen of the electronic device; 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 to obtain second image data when determining that the first image data needs to be subjected to color depth conversion, wherein the second image data is image data adapting to the reloading screen; and the sending unit is used for sending the second image data to the reloading screen so as to display corresponding images through the reloading screen.
In a third aspect, embodiments of the present application provide an electronic device comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing steps in the method according to the first aspect.
In a fourth aspect, embodiments of the present application provide 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 steps in the method of the first aspect.
In a fifth aspect, embodiments of the present application provide a computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute instructions of steps in a 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 that are required in the embodiments or the description of the prior art will be briefly described below, it being obvious that the drawings in the following description are only some embodiments of the present application, and that other drawings may be obtained according to these drawings without inventive effort for a person skilled in the art.
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 2 is a schematic flow chart of an image conversion method according to an embodiment of the present application;
fig. 3 is a diagram illustrating an exemplary positional mapping relationship between a first pixel and a second pixel according to an embodiment of the present application;
fig. 4 is a schematic structural view of an image data processing apparatus according to an embodiment of the present application;
fig. 5 is a schematic flow chart of another electronic device according to an embodiment of the present application.
Detailed Description
In order to make the present application solution better understood by those skilled in the art, the following description will clearly and completely describe the technical solution in the embodiments of the present application with reference to the accompanying drawings in the embodiments of the present application, and it is apparent that the described embodiments are only some embodiments of the present application, not all embodiments. All other embodiments, which can be made by one of ordinary skill in the art based on the embodiments herein without making any inventive effort, are intended to be within the scope of the present application.
The terms first, second and the like in the description and in the claims of the present application and in the above-described figures, are used for distinguishing between different objects and not for describing a particular sequential order. Furthermore, the terms "comprise" and "have," as well as any variations thereof, are intended to cover a non-exclusive inclusion. For example, a process, method, system, article, or apparatus that comprises a list of steps or elements is not limited to only those listed steps or elements but may 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 may be included in at least one embodiment of the present application. The appearances of such phrases 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. Those of skill in the art will explicitly and implicitly appreciate that the embodiments described herein may be combined with other embodiments.
The term "at least one" in the present application means one or more, and a plurality means two or more. In the present application and/or describing the association relationship of the association object, the representation may have three relationships, for example, a and/or B may represent: a alone, a and B together, and B alone, wherein A, B may be singular or plural. The character "/" generally indicates that the context-dependent object is an "or" relationship. "at least one (item) below" or the like, refers to any combination of these items, including any combination of single item(s) or plural items(s). 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 may be a collection comprising one or more elements.
It should be noted that, the equality in the embodiment of the present application may be used with a greater than or less than the technical scheme adopted when the equality is greater than or equal to the technical scheme adopted when the equality is less than the technical scheme, and it should be noted that the equality is not used when the equality is greater than the technical scheme adopted when the equality is greater than or equal to the technical scheme adopted when the equality is greater than the technical scheme; when the value is equal to or smaller than that used together, the value is not larger than that used together. "of", corresponding "and" corresponding "in the embodiments of the present application may be sometimes used in combination, and it should be noted that the meaning to be expressed is consistent when the distinction is not emphasized.
First, some nouns involved in the embodiments of the present application are explained for easy understanding by those skilled in the art.
1. TDDI display chip: TDDI is touch and display driver integration (Touch and Display Driver Integration, TDDI). The touch control and display functions of the smart phone are independently controlled by two chips, and the TDDI integrates the touch control chip and the display chip into a single chip.
2. Robin: a chip supporting multi-format conversion receives a high resolution, high frame rate display image sent from a master chip, such as a mobile phone AP, performs scaling and frame rate conversion, and outputs an image meeting the specification requirements of a TDDI display chip to drive a screen.
3. RGB101010 and RGB888: RGB101010 is an image color format in which three colors are stored at 10 bits each, and RGB888 is an image color format in which three colors are stored at 8 bits each.
At present, most of common manufacturers adopt software or chips to realize image processing after screen changing, but most of the chips on the market only can support one image RGB format input (such as RGB101010/RGB 888), and the universality is poor.
In view of the foregoing, the present application provides an image conversion method, an image conversion device, and a bridge chip, which are described in detail below.
Fig. 1 is a schematic diagram of an electronic device 100 provided in the present application. The electronic device 100 comprises a processor 110 and a reloading screen module 120, wherein the reloading screen module 120 comprises a bridge chip 121 and a reloading screen 122, the processor 110 is connected with the bridge chip, and the bridge chip 121 is connected with the reloading 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 retrofit screen 122 may be, for example, an Active Matrix Organic Light Emitting Diode (AMOLED) screen liquid crystal display (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 console, a mobile terminal (such as a smart phone), an IoT device, a vehicle-mounted terminal device, and the like.
The information query method provided by the application is described in the following 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, as shown in fig. 2, the method includes:
step 201, receiving first image data sent by the processor, wherein the first image data is 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, where the bit depth of the first RGB value is 10 bits, and bit is a bit.
Step 202, obtaining a second color depth of a reloading screen of the electronic equipment.
For example, the second color depth is 8 bits, and the RGB888 mode is adapted, and the control data corresponding to the second color depth is stored as a second RGB value, where the bit depth of the second RGB value is 8 bits, and the 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 perform color depth conversion on 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, performing no 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 mode of the image data between the processor and the retrofit screen is the same, so that no format conversion is required, and only when the first color depth is less than or greater than the second color depth, does the color depth conversion (i.e., RGB format conversion).
It can be seen that in this embodiment, triggering the color depth conversion mechanism under certain conditions is achieved.
And 204, converting the first color depth of the first image data into a second color depth to obtain second image data when the first image data is determined to need to be subjected to color depth conversion, wherein the second image data is the image data adapting to the reloading screen.
In one 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 a second RGB value of the second image data in an equal proportion to obtain second image data.
Specifically, changing the first RGB value of the first image data may enable the first image data to be matched with 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 or larger than the second color depth, the first RGB value of each pixel in the first image data is converted into the second RGB value of the second image data in equal proportion, and the second image data matched with 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 as to implement the adaptation of the first image data and the reloading screen.
In a possible embodiment, after the converting the first RGB value of each pixel in the first image data into the second RGB value of the second image data in equal proportion, the method further includes: acquiring a first resolution of the first image data; detecting a second resolution of the reloading screen; and carrying out resolution and color depth adaptation processing on the first image data according to the first resolution and the second resolution to obtain second image data adapting to the reloading screen.
For example, the first resolution may be 720px x 1080px, and the second resolution may be 720px x 1520px, where px is a pixel. In a color image, the image information of each pixel is usually represented by red, green, and blue intensities, and may also be represented by its hue, saturation, and brightness. Black and white images can be identified by gray values.
Specifically, after the RGB mode conversion is completed, whether the resolution ratio between the reloading screen and the original screen is changed is further determined, and if yes, the second image data needs to be adapted according to the second resolution ratio of the reloading screen.
It can be seen that in this embodiment, the adaptation between the RGB mode of the retrofit screen and the resolution is achieved after the replacement of the screen.
In a 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 larger 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 first pixel subset and a second pixel, the first pixel subset comprises partial or all areas 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 pixel; 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.
In this example, the bridge chip can determine the pixel position correspondence through the first resolution and the second resolution, so that the distribution condition of the first pixels corresponding to the position area where each second pixel of the single frame image of the reloading 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 pixels can be predicted; in addition, after determining the image information of the second pixel, the bridge chip can also establish a mapping relationship between the second RGB value and the second pixel, so as 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 the 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 are corresponding to the color parameters of a single pixel, so that after the color depth conversion, the pixel occupied by the first RGB value is unchanged, but the number of pixels of the reloading screen is different from that of the original screen, and therefore, the second RGB value and the second pixel of the reloading screen need to be remapped so as to display a complete color pattern on the reloading screen.
In one possible embodiment, the determining the image data of each second pixel according to the pixel position correspondence, the mapping relationship, and the first image data includes: the following is performed for each second pixel to obtain image data of said each second pixel: determining a first pixel subset corresponding to the second pixel currently processed 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 second pixel which is currently processed 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 ratio of each first pixel in the current second pixel area, wherein the effective area ratio is obtained by 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.
In this example, the bridge chip can locate the plurality of first pixels corresponding to the second pixels through the position consistency, and further determine the image data of the second pixels according to the area distribution of each first pixel, so as to comprehensively and accurately characterize 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, which is in order from left to right, 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 x 2, in order from left to right, top to bottom:
a pixel a, a pixel b,
A pixel c and a pixel d;
then in connection with the legend it is determined that the first set of pixels corresponding to pixel a includes pixel 0 (area 100%), pixel 1 (area 50%), pixel 3 (area 50%), pixel 4 (area 25%),
the three-channel image information of the pixel a can be calculated as:
channel R: (0 x 100% +255 x 50% +0 x 50% +255 x 25%)/4=47.8
Channel G: (0 x 100% +0 x 50% +255 x 50% +0 x 25%)/4=31.9
Channel B: (255 x 100% +255 x 50% +0 x 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, thereby improving the comprehensiveness and accuracy.
Step 205, sending the second image data to the reloading screen so as to display a corresponding image through the reloading screen.
In summary, the image conversion method provided in the present application is applied to a bridge chip of a reloading screen module of an electronic device, where the electronic device includes a processor and a reloading screen module, the reloading screen module includes the bridge chip and a reloading screen, the processor is connected to the bridge chip, and the bridge chip is connected to the reloading screen, and the method includes: receiving first image data sent by the processor, wherein the first image data is stored in 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 the first image data is determined to need to be subjected to color depth conversion, 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 adapting to the reloading screen; and sending the second image data to the reloading screen so as to display corresponding images through the reloading screen. It can be seen that in this embodiment, format conversion is performed on the first image data according to the second color depth of the reloading screen, so that the universality of the bridge chip is improved, and the electronic device can adapt to various reloading screens.
The foregoing description of the embodiments of the present application has been presented primarily in terms of a method-side implementation. It will be appreciated that the bridge chip, in order to implement the above-described functions, comprises corresponding hardware structures and/or software modules that perform the respective functions. Those of skill in the art will readily appreciate that the elements and algorithm steps described in connection with the embodiments disclosed herein may be embodied as hardware or a combination of hardware and computer software. Whether a function is implemented as hardware or computer software driven 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.
The embodiment of the application may divide the functional units of the bridge chip 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 in one processing unit. The integrated units may be implemented in hardware or in software functional units. It should be noted that, in the embodiment of the present application, the division of the units is schematic, which is merely a logic function division, and other division manners may be implemented in actual practice.
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 replacement module of an electronic device, where the electronic device includes a processor and the screen replacement module, the screen replacement module includes a bridge chip and a screen replacement screen, the processor is connected to the bridge chip, and the bridge chip is connected to the screen replacement 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 with a first color depth;
an obtaining unit 402, configured to detect a second color depth of a reload 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 determining that the first image data needs to be subjected to color depth conversion, convert the first color depth of the first image data into the second color depth to obtain second image data, where the second image data is image data adapted to the reload screen;
and a transmitting unit 404 configured to transmit the second image data to the reloading screen, so as to display a corresponding image through the reloading screen.
For example, the first color depth may be 10 bits, adapt to the RGB101010 mode, 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, the bit is a bit, the first color depth may be 10 bits, adapt to the RGB101010 mode, 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, the bit is a bit.
In one possible embodiment, the processing unit 403 is specifically configured to, in determining whether to perform color depth conversion on the first image data according to the first color depth and the second color depth: when the first color depth is equal to the second color depth, performing no 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 one possible embodiment, in the aspect 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 a second RGB value of the second image data in an equal proportion to obtain second image data.
In a possible embodiment, after the converting the first RGB value of each pixel in the first image data to the second RGB value of the second image data in equal proportion, 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 resolution and color depth adaptation processing on the first image data according to the first resolution and the second resolution to obtain second image data adapting to the reloading screen.
In a possible embodiment, the processing unit 403 is specifically configured to: when the first resolution is larger 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 first pixel subset and a second pixel, the first pixel subset comprises partial or all areas 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 pixel; 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 executable by one or more processors to implement the steps of the methods described in the above embodiments.
The present invention also provides a terminal device 500, as shown in fig. 5, comprising at least one processor (processor) 501; a display 502; and a memory (memory) 503, which may also include a communication interface (Communications Interface) 505 and a bus 504. Wherein the processor 501, the display 502, the memory 503 and the communication interface 505 may perform communication with each other via the bus 504. The display 502 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 505 may transmit information. The processor 501 may call logic instructions in the memory 503 to perform the methods of the embodiments described above.
Alternatively, the terminal device 500 may be the electronic device described above, or may be another terminal device, which is not limited in uniqueness herein.
Further, the logic instructions in the memory 503 described above may be implemented in the form of software functional units and may be stored in a computer readable storage medium when sold or used as a stand alone product.
The memory 503 is a computer-readable storage medium, and may be configured to store a software program, a computer-executable program, and program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 501 executes functional applications and data processing by running software programs, instructions or modules stored in the memory 503, i.e. implements the methods in the embodiments described above.
The memory 503 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, at least one application program required for a function; the storage data area may store data created according to the use of the terminal device 500, and the like. In addition, the memory 503 may include a high-speed random access memory, and may also include a nonvolatile memory. For example, a plurality of media capable of storing program codes such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a random access Memory (Random Access Memory, RAM), a magnetic disk, or an optical disk, or a transitory storage medium may be used.
In addition, the specific processes that the storage medium and the plurality of instruction processors in the mobile terminal load and execute are described in detail in the above method, and are not stated here.
Finally, it should be noted that: the above embodiments are only for illustrating the technical solution of the present application, and are not limiting thereof; 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 scheme described in the foregoing embodiments can be modified or some technical features thereof can be replaced by equivalents; such modifications and substitutions do not depart from the spirit and scope of the corresponding technical solutions.

Claims (9)

1. An image conversion method, characterized by being applied to the bridge chip of the screen module of changing of the electronic device, the said electronic device includes processor and screen module of changing, the screen module of changing includes the said bridge chip and changing the screen, the said processor connects the said bridge chip, the said bridge chip connects the said screen of changing, the said method includes:
receiving first image data sent by the processor, wherein the first image data is stored in 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 is required for the first image data and the first color depth is smaller or larger than the second color depth, performing the following operation for each second pixel to obtain image data of each second pixel: determining a first pixel subset corresponding to a second pixel which is currently processed according to a pixel position corresponding relation, wherein the pixel position corresponding relation comprises a corresponding relation between the first pixel subset and the second pixel, the first pixel subset comprises partial or all areas of a plurality of first pixels, the first pixels are pixels of an original screen, the second pixels are pixels of a replacement 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 pixel; and determining image data for each of the plurality of first pixels of the first subset of pixels from the first image data; and determining the image data of the second pixel currently processed 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; and determining second image data of the reloading screen according to the image data of each second pixel; the area distribution is used for representing the effective area ratio of each first pixel in the current second pixel area, the effective area ratio is obtained by 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;
and sending the second image data to the reloading screen so as to display corresponding images through the reloading screen.
2. The method of claim 1, wherein determining the pixel location correspondence is performed by:
acquiring a first resolution of the first image data;
detecting a second resolution of the reloading screen;
when the first resolution is larger than the second resolution, determining the proportion of the first resolution to the second resolution, and establishing the pixel position corresponding relation of the original screen and the reloading screen according to the proportion.
3. The method of claim 1, wherein determining the mapping relationship is performed by:
converting the first RGB value of each pixel in the first image data into a second RGB value of the second image data in an equal proportion;
and establishing a mapping relation between the second RGB value and the second pixel.
4. A method as claimed in claim 3, wherein the first RGB values have a bit depth of 10 bits and the second RGB values have a bit depth of 8 bits, bits being bits.
5. The method of claim 1, wherein determining whether to color depth convert the first image data based on the first color depth and the second color depth comprises:
when the first color depth is equal to the second color depth, performing no 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.
6. The image data processing device is characterized by being applied to a bridge chip of a screen replacement module of electronic equipment, wherein the electronic equipment comprises a processor and the screen replacement module, the screen replacement module comprises the bridge chip and a screen replacement screen, the processor is connected with the bridge chip, and the bridge chip is connected with the screen replacement 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 with a first color depth;
an acquisition unit, configured to detect a second color depth of a reloading screen of the electronic device;
a processing unit, 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 perform, when it is determined that color depth conversion is required on the first image data and the first color depth is smaller or larger than the second color depth, the following operation for each second pixel to obtain image data of each second pixel:
determining a first pixel subset corresponding to a second pixel which is currently processed according to a pixel position corresponding relation, wherein the pixel position corresponding relation comprises a corresponding relation between the first pixel subset and the second pixel, the first pixel subset comprises partial or all areas of a plurality of first pixels, the first pixels are pixels of an original screen, the second pixels are pixels of a replacement 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 pixel; and determining image data for each of the plurality of first pixels of the first subset of pixels from the first image data; and determining the image data of the second pixel currently processed 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; and determining second image data of the reloading screen according to the image data of each second pixel; the area distribution is used for representing the effective area ratio of each first pixel in the current second pixel area, the effective area ratio is obtained by 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; wherein the second image data is image data adapting to the reloading screen;
and the sending unit is used for sending the second image data to the reloading screen so as to display corresponding images through the reloading screen.
7. An electronic device comprising a processor, a memory for storing one or more programs and configured to be executed by the processor, the programs comprising instructions for performing the steps in the method of any of claims 1-5.
8. The bridge chip is characterized by being applied to a screen replacement module of electronic equipment, wherein the electronic equipment comprises a processor and the screen replacement module, the screen replacement module comprises the bridge chip and a screen replacement screen, the processor is connected with the bridge chip, and the bridge chip is connected with the screen replacement screen;
the bridge chip is configured to run a program, wherein the program when run performs the steps of the method according to any one of claims 1-5.
9. A computer-readable storage medium, characterized in that a computer program for electronic data exchange is stored, wherein the computer program causes a computer to execute the instructions of the steps in the method according to any one of claims 1-5.
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 CN114153413A (en) 2022-03-08
CN114153413B true 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 (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP3654420B2 (en) * 2000-02-25 2005-06-02 インターナショナル・ビジネス・マシーンズ・コーポレーション Image conversion method, image processing apparatus, and image display apparatus
KR102261962B1 (en) * 2015-07-21 2021-06-07 삼성전자주식회사 Display Driver, Display Device and System including The Same

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796489A (en) * 2014-09-12 2017-05-31 三星电子株式会社 Method and apparatus for processing the display data in electronic equipment
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
CN114153413A (en) 2022-03-08

Similar Documents

Publication Publication Date Title
CN111326099B (en) Display correction method, device and system, storage medium and display system
US10791249B2 (en) Color gamut mapping method and color gamut mapping apparatus
US20180301078A1 (en) Method and dual screen devices for displaying text
CN111429827A (en) Display screen color calibration method and device, electronic equipment and readable storage medium
CN103903587A (en) Method and device for processing picture data
CN103151021B (en) Data display method and test method of display equipment
US20190043429A1 (en) Grayscale voltage adjusting apparatus and method, display driving apparatus and display apparatus
US8044960B2 (en) Character display apparatus
CN103680403A (en) Methods and devices for controlling operations of an organic light-emitting diode display
WO2013082940A1 (en) Oled display control method and device, and terminal device
US20150271363A1 (en) Image processing apparatus, image processing method, and non-transitory computer readable medium
CN104992680A (en) Electronic ink screen graying method
CN107767825B (en) Method, apparatus, and computer-readable storage medium for color configuration of display apparatus
US20200192554A1 (en) Terminal device, display control method implemented by the terminal device, computer readable storage medium and computer program product
US7528814B2 (en) Method and device providing enhanced characters
CN114153413B (en) Image conversion method and device and bridge chip
WO2022120799A1 (en) Image processing method and apparatus, electronic device, and storage medium
JP2008112133A (en) Electronic equipment
CN114489608B (en) Display screen icon control method and device, terminal equipment and storage medium
CN108334162B (en) Display processing method of electronic equipment and electronic equipment
CN113139921B (en) Image processing method, display device, electronic device and storage medium
CN115346475A (en) LED display control method, control device, electronic device and storage medium
CN111338627B (en) Front-end webpage theme color adjustment method and device
CN113096007A (en) Image color-retention filter processing method and device, display equipment and storage medium
CN112256228A (en) Optimization method for dot matrix character display

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