CN113905126B - Image data processing method and related device - Google Patents

Image data processing method and related device Download PDF

Info

Publication number
CN113905126B
CN113905126B CN202111278492.7A CN202111278492A CN113905126B CN 113905126 B CN113905126 B CN 113905126B CN 202111278492 A CN202111278492 A CN 202111278492A CN 113905126 B CN113905126 B CN 113905126B
Authority
CN
China
Prior art keywords
screen
image data
pixel
pixels
resolution
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
CN202111278492.7A
Other languages
Chinese (zh)
Other versions
CN113905126A (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 CN202111278492.7A priority Critical patent/CN113905126B/en
Priority to CN202310644545.5A priority patent/CN116600044A/en
Publication of CN113905126A publication Critical patent/CN113905126A/en
Application granted granted Critical
Publication of CN113905126B publication Critical patent/CN113905126B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Business, Economics & Management (AREA)
  • General Business, Economics & Management (AREA)
  • Human Computer Interaction (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the application discloses an image data processing method and a related device, which are applied to a bridge chip of a screen replacing module of electronic equipment, wherein 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 method comprises the following steps: receiving first image data from a processor; acquiring a second resolution of the reloading screen; processing the first image data according to the first resolution and the second resolution to obtain second image data adaptive to the reloading screen; and controlling the reloading screen to display corresponding image information according to the second image data. The method and the device are favorable for improving the success rate and the stability of image display after the screen of the electronic equipment is replaced.

Description

Image data processing method and related device
Technical Field
The present application relates to the field of image data processing technologies, and in particular, to an image data processing method and a related apparatus.
Background
Along with the influence of a user on the visual experience demand, screens of electronic equipment such as mobile phones are larger and larger, but screen breakage risks are increased gradually along with the increase of the screens of the mobile phones, when the screen of the mobile phone needs to be changed, the mobile phone is generally re-equipped with the screen on the current market, and the screen changing and installing mode selected by the user is considered to be a screen with different specifications and lower performance than the original screen changing mode in cost performance, so that the stability of screen display may be in a problem.
Disclosure of Invention
The application provides an image data processing method and a related device, aiming at improving the success rate and stability of image display after the screen of the electronic equipment is replaced.
In a first aspect, the present application provides an image data processing method, 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 method comprises the following steps:
receiving first image data from the processor, wherein the first image data is image data with a first resolution of an original screen in a horizontal screen mode, the original screen and the reloading screen are the same in size, the horizontal screen mode means that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction;
acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode refers to the mode that the number of pixels in a second width direction of the reloading screen is smaller than the number of pixels in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction;
processing the first image data according to the first resolution and the second resolution to obtain second image data adaptive to the reloaded screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adaptive to the vertical screen mode;
and controlling the reloading screen to display corresponding image information according to the second image data.
It can be seen that, in the embodiment of the present application, a bridge chip of a screen changing module of an electronic device first receives first image data from a processor, where the first image data is image data of a first resolution of an original screen in a horizontal screen mode adapted to the electronic device, and the original screen and the screen changing module have the same size, the horizontal screen mode refers to that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction; secondly, acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode is that the number of pixels in a second width direction of the reloading screen is smaller than that in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction; processing the first image data according to the first resolution and the second resolution to obtain second image data adaptive to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adaptive to a vertical screen mode; and finally, controlling the reloading screen to display corresponding image information according to the second image data. It is thus clear that the bridging chip of the screen module of changing the outfit can convert the first image data of the first resolution ratio of the original dress screen of the original adaptation horizontal screen mode into the screen of changing the outfit of the second resolution ratio of the perpendicular screen mode of adaptation to make the screen of changing the outfit can accurately discern image data and show, avoid leading to accurate discernment and demonstration image data because of the screen specification is different, be favorable to improving the success rate and the stability that carry out the image display behind the electronic equipment screen of changing the outfit.
In a second aspect, the present application provides an image data processing apparatus, 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 a 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, configured to receive first image data from the processor, where the first image data is image data of a first resolution of an original screen in a cross-screen mode of the electronic device, the original screen and the re-installed screen have a same size, the cross-screen mode is that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction;
the acquisition unit is used for acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode refers to the situation that the number of pixels in a second width direction of the reloading screen is smaller than that in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction;
the processing unit is used for processing the first image data according to the first resolution and the second resolution to obtain second image data adaptive to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adaptive to the vertical screen mode;
and the control unit is used for controlling the reloading screen to display corresponding image information according to the second image data.
In a third aspect, the present application provides a computer readable storage medium storing a computer program for electronic data exchange, wherein the computer program causes an apparatus to perform the steps of the method according to any one of the first aspect.
In a fourth aspect, the application provides a bridge chip, which is applied to a screen replacing module of an electronic device, wherein 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 bridge chip is configured to run a program, where the program executes the steps of any one of the methods according to the first aspect when running.
In a fifth aspect, the present application provides an electronic device comprising the bridge chip as described in the fourth aspect.
Drawings
Fig. 1 is a schematic structural diagram of an electronic device according to an embodiment of the present disclosure;
fig. 2a is a schematic flowchart of an image data processing method according to an embodiment of the present application;
fig. 2b 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. 3 is a block diagram of functional units of an image data processing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram of functional units of another image data processing apparatus according to 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 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 steps or elements but may alternatively include other steps or elements not expressly 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. A Cortex-M0 microprocessor is a 32-bit processor developed by ARM. The kernel of the microprocessor adopts an architecture that the instruction and the data share the same bus.
At present, after a screen of a horizontal screen mode game machine is damaged, a user can select a screen of a vertical screen mode mobile phone with a lower price for replacement based on cost performance consideration, but because the resolution of the screen of the mobile phone and the reading and writing mode of frame image data are different from those of an original screen of the game machine, the game machine cannot stably display the image data after replacement.
In view of the above problems, the present application provides an image data processing method and related apparatus, which will be described in detail below.
Referring to fig. 1, fig. 1 is a schematic view of an electronic device 100 according to an embodiment of the present disclosure. The electronic device 100 includes a processor 120 and a screen replacing module 140, the screen replacing module 140 includes a bridge chip 141 and a screen replacing screen 142, the processor 120 is connected to the bridge chip 141, and the bridge chip 141 is connected to the screen replacing screen 142. The processor 120 may be a system-on-chip of an electronic device, and specifically includes a central processing unit CPU, a graphics processing unit GPU, and the like. The bridge chip 141 may be a Cortex-M0 microprocessor. The reloading screen 142 may be, for example, an Active Matrix/Organic Light Emitting Diode (AMOLED) screen.
In addition, the electronic device 100 may be a game machine, a mobile terminal (e.g., a smart phone), an IoT device in the internet of things, a vehicle-mounted terminal device, and other various electronic devices.
Referring to fig. 2a, fig. 2a is a schematic flowchart of an image data processing method according to an embodiment of the present disclosure, and is applied to a bridge chip 141 of a screen replacing module 140 of an electronic device 100 shown in fig. 1; as shown in the figure, the image data processing method includes the following steps.
Step 201, receiving first image data from the processor, where the first image data is image data of a first resolution of an original screen in a landscape mode adapted to the electronic device, the original screen and the reloading screen are the same in size, and the landscape mode is that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction.
Wherein the first resolution may be 1920px × 1080px, the second resolution may be 720px × 1520px, px being pixels. In a color image, the image information of each pixel is usually represented by the intensity of red, green and blue, and may also be represented by its hue, saturation, and brightness. The black and white image can be identified by the gray value.
Step 202, obtaining a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, and the vertical screen mode means that the number of pixels in a second width direction of the reloading screen is smaller than the number of pixels in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction.
Step 203, processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloaded screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapted to the vertical screen mode.
The column number (corresponding to the width direction) of the data matrix of the vertical screen mode is smaller than the row number (corresponding to the height direction), and after rotation processing, input pixels can be accurately mapped to corresponding screen positions, so that the accuracy and stability of image display are ensured.
And 204, controlling the reloading screen to display corresponding image information according to the second image data.
In one possible example, the processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen includes: determining a third resolution for adapting the landscape mode according to the second resolution; determining fourth image data from the first resolution, the third resolution, and the first image data; and performing rotation processing on the fourth image data to obtain second image data matched with the reloading screen.
For example, if the second resolution is 720px × 1520px, the third resolution is 1520px × 720px.
The rotation processing specifically refers to adjusting row data in the data matrix into column data, and adjusting the column data into row data. I.e. a rotation process of the matrix. The data matrix includes image information for each pixel.
As can be seen, in this example, the bridge chip can perform reduction processing on the original image data adapted to the horizontal screen mode based on the resolution, and then perform conversion processing to adapt to the screen of the vertical screen mode, so as to improve the stability of image display after the screen of the electronic device is adapted.
In this possible example, the determining fourth image data from the first resolution, the third resolution, and the first image data comprises: determining a pixel position corresponding relation between the original screen and the reloading screen according to the first resolution and the third resolution, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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; determining the image data of each second pixel according to the pixel position corresponding 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 third 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 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 pixel can be predicted, the second image data is finally obtained, and the accuracy of determining the image data adapted to the reloading screen is improved.
In this possible example, the determining the image data of each second pixel according to the pixel position correspondence 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 in 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 and the image data of each first pixel.
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.
In one possible example, the processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen includes: rotating the first image data according to the first resolution to obtain third image data of a fourth resolution adapted to the vertical screen mode; and determining second image data adapting to the reloading screen according to the fourth resolution, the second resolution and the third image data.
Wherein the width of the fourth resolution is greater than the width of the second resolution, and the height of the fourth resolution is greater than the height of the second resolution.
As can be seen, in this example, for the original image data adapted to the horizontal screen mode, the bridge chip can firstly rotate the original image data to adapt to the vertical screen mode, and then reduce the rotated image data based on the resolution, so as to improve the stability of image display after the electronic device changes the screen.
In one possible example, the determining second image data that fits the reloading screen from the fourth resolution, the second resolution and the third image data comprises: determining a pixel position corresponding relation between the reloading screen and the original screen according to the fourth resolution and the second resolution, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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 pixel; determining the image data of each second pixel according to the pixel position corresponding relation and the third 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 fourth 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 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 pixel can be predicted, the second image data is finally obtained, and the accuracy of determining the image data adapted to the reloading screen is improved.
In one possible example, the determining the image data of each second pixel according to the pixel position correspondence and the third 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 in the first subset of pixels from the third 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 and the image data of each first pixel.
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.
In one possible example, the 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 and the image data of each first pixel comprises: determining the area ratio of each first pixel relative to the self complete region according to the region distribution of each first pixel in the plurality of first pixels; and according to the image data of each first pixel and the area ratio, carrying out weighting processing on the image data of the plurality of first pixels to obtain the image data of the currently processed second pixel.
For example, as shown in fig. 2b, assume that the first resolution of the first image data is 3*3, which 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 ratio 100%), pixel 1 (area ratio 50%), pixel 3 (area ratio 50%), pixel 4 (area ratio 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
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.
In some possible examples, the determining the image data of the currently processed second pixel according to the area distribution of each of the plurality of first pixels and the image data of each of the plurality of first pixels includes: determining the area ratio of each first pixel relative to the self complete region according to the region distribution of each first pixel in the plurality of first pixels; and selecting the image data corresponding to the first pixel with the largest area ratio as the image data of the currently processed second pixel.
As can be seen, in this example, the image data of the first pixel having the largest area ratio can be directly identified as the image data of the second pixel, which is simple and efficient.
It can be seen that, in the embodiment of the present application, a bridge chip of a screen changing module of an electronic device first receives first image data from a processor, where the first image data is image data of a first resolution of an original screen in a landscape mode adapted to the electronic device, and the original screen and the screen changing module have the same size, and the landscape mode is that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction; secondly, acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode is that the number of pixels in a second width direction of the reloading screen is smaller than that in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction; processing the first image data according to the first resolution and the second resolution to obtain second image data adaptive to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adaptive to a vertical screen mode; and finally, controlling the reloading screen to display corresponding image information according to the second image data. It is thus clear that the bridging chip of the screen module of changing the outfit can convert the first image data of the first resolution ratio of the original dress screen of the original adaptation horizontal screen mode into the screen of changing the outfit of the second resolution ratio of the perpendicular screen mode of adaptation to make the screen of changing the outfit can accurately discern image data and show, avoid leading to accurate discernment and demonstration image data because of the screen specification is different, be favorable to improving the success rate and the stability that carry out the image display behind the electronic equipment screen of changing the outfit.
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 includes hardware structures and/or software modules for performing the functions in order to realize the 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 in 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.
The embodiment of the application provides an image data processing device which can be a bridge chip. Specifically, the image data processing apparatus is configured to perform the steps performed by the bridge chip in the above image data processing method. The image data processing device provided by the embodiment of the application can comprise modules corresponding to the corresponding steps.
The embodiment of the present application may perform division of the functional modules on the image data processing apparatus according to the above method, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated into one processing module. The integrated module can be realized in a hardware mode, and can also be realized in a software functional module mode. The division of the modules 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.
Fig. 3 shows a schematic diagram of a possible configuration of the image data processing apparatus according to the above-described embodiment, in the case of dividing each functional module by corresponding functions. As shown in fig. 3, the image data processing apparatus 3 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 a 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 30, configured to receive first image data from the processor, where the first image data is image data of a first resolution of an original screen in a cross-screen mode of the electronic device, the original screen and the reloaded screen have a same size, the cross-screen mode is that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction;
an obtaining unit 31, configured to obtain a second resolution of the reloading screen, where the reloading screen is in a vertical screen mode, and the vertical screen mode is that the number of pixels in a second width direction of the reloading screen is smaller than the number of pixels in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction;
a processing unit 32, configured to process the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloaded screen, where the processing at least includes rotation processing, and the rotation processing is used to form a data matrix adapted to the vertical screen mode;
and a control unit 33, configured to control the reloading screen to display corresponding image information according to the second image data.
In a possible example, in terms of processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen, the processing unit 32 is specifically configured to: determining a third resolution for adapting the landscape mode according to the second resolution; determining fourth image data from the first resolution, the third resolution, and the first image data; and performing rotation processing on the fourth image data to obtain second image data matched with the reloading screen.
In one possible example, in said determining fourth image data from said first resolution, said third resolution and said first image data, said processing unit 32 is specifically configured to: determining a pixel position corresponding relation between the original screen and the reloading screen according to the first resolution and the third resolution, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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; determining the image data of each second pixel according to the pixel position corresponding 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 one possible example, in the aspect of determining the image data of each second pixel according to the pixel position corresponding relationship and the first image data, the processing unit 32 is specifically configured to: performing the following operations 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 in 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 and the image data of each first pixel.
In a possible example, in terms of processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reloading screen, the processing unit 32 is specifically configured to: rotating the first image data according to the first resolution to obtain third image data of a fourth resolution adapted to the vertical screen mode; determining second image data adapted to the reloading screen according to the fourth resolution, the second resolution and the third image data.
In one possible example, in said determining second image data adapted to the reloading screen according to the fourth resolution, the second resolution and the third image data, the processing unit 32 is specifically configured to: determining a pixel position corresponding relation between the reloading screen and the original screen according to the fourth resolution and the second resolution, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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 pixel; determining the image data of each second pixel according to the pixel position corresponding relation and the third image data; and determining second image data of the reloading screen according to the image data of each second pixel.
In one possible example, in the aspect of determining the image data of each second pixel according to the pixel position corresponding relationship and the third image data, the processing unit 32 is specifically configured to: 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 in the first subset of pixels from the third 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 and the image data of each first pixel.
In one possible example, in the aspect of 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 and the image data of each first pixel, the processing unit 32 is specifically configured to: determining the area ratio of each first pixel relative to the self complete region according to the region distribution of each first pixel in the plurality of first pixels; and performing weighting processing on the image data of the plurality of first pixels according to the image data of each first pixel and the area ratio to obtain the image data of the currently processed second pixel.
In one possible example, the width of the fourth resolution is greater than the width of the second resolution, and the height of the fourth resolution is greater than the height of the second resolution.
In one possible example, the first resolution is 1920px 1080px, the second resolution is 720px 1520px, and px is a pixel.
In the case of using an integrated unit, a schematic structural diagram of another image data processing apparatus 4 provided in the embodiment of the present application is shown in fig. 4. In fig. 4, the image data processing apparatus 4 includes: a processing module 40 and a communication module 41. The processing module 40 is used for controlling and managing actions of the image data processing apparatus, such as steps performed by the receiving unit 30, the obtaining unit 31, the processing unit 32, the control unit 33, and/or other processes for performing the techniques described herein. The communication module 41 is used to support interaction between the image data processing apparatus and other devices. As shown in fig. 4, the image data processing apparatus may further include a storage module 42, and the storage module 42 is used to store program codes and data of the image data processing apparatus.
The Processing module 40 may be a Processor or a controller, and for example, may be a Central Processing Unit (CPU), a general-purpose Processor, a Digital Signal Processor (DSP), an ASIC, an FPGA or other programmable logic device, a transistor logic device, a hardware component, or any combination thereof. Which may implement or execute the various illustrative logical blocks, modules, and circuits described in connection with the disclosure herein. The processor may also be a combination of computing functions, e.g., comprising one or more microprocessors, DSPs, and microprocessors, among others. The communication module 41 may be a transceiver, an RF circuit or a communication interface, etc. The storage module 42 may be a memory.
All relevant contents of each scene related to the method embodiment may be referred to the functional description of the corresponding functional module, and are not described herein again. Both the image data processing device 3 and the image data processing device 4 can execute the steps executed by the microprocessor in the image data processing method shown in fig. 2 a.
The above-described embodiments may be implemented in whole or in part by software, hardware, firmware, or any combination thereof. When implemented in software, the above-described embodiments may be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions or computer programs. The procedures or functions described in accordance with the embodiments of the present application are produced in whole or in part when the computer instructions or the computer program are loaded or executed on a computer. The computer may be a general purpose computer, a special purpose computer, a network of computers, or other programmable device. The computer instructions may be stored in a computer readable storage medium or transmitted from one computer readable storage medium to another computer readable storage medium, for example, the computer instructions may be transmitted from one website, computer, server, or data center to another website, computer, server, or data center by wire or wirelessly. The computer-readable storage medium can be any available medium that can be accessed by a computer or a data storage device such as a server, data center, etc. that contains one or more collections of available media. The usable medium may be a magnetic medium (e.g., floppy disk, hard disk, magnetic tape), an optical medium (e.g., DVD), or a semiconductor medium. The semiconductor medium may be a solid state disk.
Embodiments of the present application further provide a computer storage medium, where the computer storage medium stores a computer program for electronic data exchange, the computer program enables a computer to execute part or all of the steps of any one of the methods as described in the above method embodiments, and the computer includes an electronic device.
Embodiments of the present application also provide a computer program product comprising a non-transitory computer readable storage medium storing a computer program operable to cause a computer to perform some or all of the steps of any of the methods as described in the above method embodiments. The computer program product may be a software installation package, the computer comprising an electronic device.
It should be understood that, in the various embodiments of the present application, the sequence numbers of the above-mentioned processes do not mean the execution sequence, and the execution sequence of each process should be determined by its function and inherent logic, and should not constitute any limitation to the implementation process of the embodiments of the present application.
In the several embodiments provided in the present application, it should be understood that the disclosed method, apparatus, and system may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative; for example, the division of the unit is only a logic function division, and there may be another division manner in actual implementation; for example, various elements or components may be combined or may be integrated into another system, or some features may be omitted, or not implemented. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may be physically included alone, or two or more units may be integrated into one unit. The integrated unit may be implemented in the form of hardware, or in the form of hardware plus a software functional unit.
The integrated unit implemented in the form of a software functional unit may be stored in a computer readable storage medium. The software functional unit is stored in a storage medium and includes several instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute some steps of the methods according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-disk, a portable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk, and other media capable of storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Various changes and modifications can be easily made by those skilled in the art without departing from the spirit and scope of the present invention, and it is within the scope of the present invention to include different functions, combination of implementation steps, software and hardware implementations.

Claims (6)

1. The image data processing method is characterized in that the method 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, the bridge chip is connected with the screen replacing screen, and the electronic equipment is a horizontal screen mode game machine; the method comprises the following steps:
receiving first image data from the processor, wherein the first image data is image data of a first resolution of an original screen of a landscape mode of the electronic device, the original screen and the reloading screen have the same size, and the landscape mode refers to the situation that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction;
acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode refers to the mode that the number of pixels in a second width direction of the reloading screen is smaller than the number of pixels in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction;
rotating the first image data according to the first resolution to obtain third image data of a fourth resolution adapted to the vertical screen mode;
determining a pixel position corresponding relation between the reloading screen and the original screen according to the fourth resolution and the second resolution, wherein the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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;
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 in the first subset of pixels from the third image data;
determining the area ratio of each first pixel relative to the complete area of the first pixel according to the area distribution of each first pixel in the plurality of first pixels, wherein the area distribution is used for representing the effective area ratio of each first pixel in the current second pixel area;
according to the image data of each first pixel and the area ratio, carrying out weighting processing on the image data of the plurality of first pixels to obtain the image data of the currently processed second pixel;
determining second image data of the reloading screen according to the image data of each second pixel;
and controlling the reloading screen to display corresponding image information according to the second image data.
2. The method of claim 1, wherein the width of the fourth resolution is greater than the width of the second resolution, and the height of the fourth resolution is greater than the height of the second resolution.
3. An 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 a bridge chip and a screen replacing screen, the processor is connected with the bridge chip, the bridge chip is connected with the screen replacing screen, and the electronic equipment is a horizontal screen mode game machine; the device comprises:
a receiving unit, configured to receive first image data from the processor, where the first image data is image data of a first resolution of an original screen in a landscape mode adapted to the electronic device, the original screen and the reloaded screen are the same in size, and the landscape mode is that the number of pixels in a first width direction of the original screen is greater than the number of pixels in a first height direction, and the first image data forms a data matrix according to constraints in the first width direction and the first height direction;
the acquisition unit is used for acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode refers to the situation that the number of pixels in a second width direction of the reloading screen is smaller than that in a second height direction, and image data supported by the reloading screen forms a data matrix according to constraints in the second width direction and the second height direction;
the processing unit is used for performing rotation processing on the first image data according to the first resolution to obtain third image data of a fourth resolution adapted to the vertical screen mode; and the pixel position corresponding relation between the reloading screen and the original screen is determined according to the fourth resolution and the second resolution, the pixel position corresponding relation comprises a corresponding relation between a first pixel subset and a second pixel, the first pixel subset comprises a part of 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; and for performing, for each second pixel, the following operations to obtain image data of said 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 of each first pixel in a plurality of first pixels in the first pixel subset according to the third image data, determining the area ratio of each first pixel relative to a self complete area according to the area distribution of each first pixel in the plurality of first pixels, wherein the area distribution is used for representing the effective area ratio of each first pixel in a current second pixel area, and performing weighting processing on the image data of the plurality of first pixels according to the image data of each first pixel and the area ratio to obtain the image data of the currently processed second pixel; and second image data for determining the reloading screen from the image data of each second pixel;
and the control unit is used for controlling the reloading screen to display corresponding image information according to the second image data.
4. A computer-readable storage medium, characterized in that the computer-readable storage medium stores a computer program for image data processing, wherein the computer program causes an apparatus to perform the steps in the method of any of claims 1-2.
5. 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 configured to run a program, wherein the program is configured to perform the steps of the method according to any one of claims 1-2.
6. An electronic device comprising the bridge chip of claim 5.
CN202111278492.7A 2021-10-30 2021-10-30 Image data processing method and related device Active CN113905126B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN202111278492.7A CN113905126B (en) 2021-10-30 2021-10-30 Image data processing method and related device
CN202310644545.5A CN116600044A (en) 2021-10-30 2021-10-30 Image data processing method, image data processing apparatus, storage medium, and computer program

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111278492.7A CN113905126B (en) 2021-10-30 2021-10-30 Image data processing method and related device

Related Child Applications (1)

Application Number Title Priority Date Filing Date
CN202310644545.5A Division CN116600044A (en) 2021-10-30 2021-10-30 Image data processing method, image data processing apparatus, storage medium, and computer program

Publications (2)

Publication Number Publication Date
CN113905126A CN113905126A (en) 2022-01-07
CN113905126B true CN113905126B (en) 2023-04-18

Family

ID=79027187

Family Applications (2)

Application Number Title Priority Date Filing Date
CN202111278492.7A Active CN113905126B (en) 2021-10-30 2021-10-30 Image data processing method and related device
CN202310644545.5A Pending CN116600044A (en) 2021-10-30 2021-10-30 Image data processing method, image data processing apparatus, storage medium, and computer program

Family Applications After (1)

Application Number Title Priority Date Filing Date
CN202310644545.5A Pending CN116600044A (en) 2021-10-30 2021-10-30 Image data processing method, image data processing apparatus, storage medium, and computer program

Country Status (1)

Country Link
CN (2) CN113905126B (en)

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404143A (en) * 2008-11-14 2009-04-08 四川虹视显示技术有限公司 Image matrix transformation driving method and device
CN108363604A (en) * 2018-02-06 2018-08-03 四川虹美智能科技有限公司 A kind of resolution adaptation method, apparatus and operation system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111290725B (en) * 2020-03-13 2023-07-14 深圳市腾讯信息技术有限公司 Screen projection method, device and storage medium
CN111694533A (en) * 2020-06-12 2020-09-22 深圳新智联软件有限公司 Screen projection display method and device applied to horizontal and vertical screens, computer equipment and storage medium

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101404143A (en) * 2008-11-14 2009-04-08 四川虹视显示技术有限公司 Image matrix transformation driving method and device
CN108363604A (en) * 2018-02-06 2018-08-03 四川虹美智能科技有限公司 A kind of resolution adaptation method, apparatus and operation system

Also Published As

Publication number Publication date
CN116600044A (en) 2023-08-15
CN113905126A (en) 2022-01-07

Similar Documents

Publication Publication Date Title
US11488346B2 (en) Picture rendering method and apparatus, storage medium, and electronic apparatus
WO2020177584A1 (en) Graphic typesetting method and related device
CN105103123A (en) System and method for virtual displays
CN111737019B (en) Method and device for scheduling video memory resources and computer storage medium
CN113905126B (en) Image data processing method and related device
CN112184538B (en) Image acceleration method, related device, equipment and storage medium
CN115018955A (en) Image generation method and equipment
CN112419430B (en) Animation playing method and device and computer equipment
JP2006003892A (en) System and method for efficiently supporting image rotation mode by utilizing display controller
EP4270321A1 (en) Graphic rendering method and apparatus, and storage medium
EP4231243A1 (en) Data storage management method, object rendering method, and device
CN111870950B (en) Game control display control method and device and electronic equipment
US20130063475A1 (en) System and method for text rendering
US20100171760A1 (en) Method and apparatus for presenting overlay images
CN111402348B (en) Lighting effect forming method and device and rendering engine
CN113139921A (en) Image processing method, display device, electronic apparatus, and storage medium
CN111984278A (en) Method and device for acquiring animation image
CN112970054A (en) Electronic device for controlling display position or area of image according to change of content of image
JP2001166754A (en) Display system
CN114153413B (en) Image conversion method and device and bridge chip
CN117065331B (en) Game scene loading control method and system
US20240135624A1 (en) Graphics rendering method and apparatus, and storage medium
WO2023273828A1 (en) Interface management method and apparatus, and device and readable storage medium
CN111785229B (en) Display method, device and system
CN107479978B (en) Electronic book display method and device and mobile terminal

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