CN116600044A - Image data processing method, image data processing apparatus, storage medium, and computer program - Google Patents

Image data processing method, image data processing apparatus, storage medium, and computer program Download PDF

Info

Publication number
CN116600044A
CN116600044A CN202310644545.5A CN202310644545A CN116600044A CN 116600044 A CN116600044 A CN 116600044A CN 202310644545 A CN202310644545 A CN 202310644545A CN 116600044 A CN116600044 A CN 116600044A
Authority
CN
China
Prior art keywords
screen
image data
resolution
pixel
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.)
Pending
Application number
CN202310644545.5A
Other languages
Chinese (zh)
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 CN202310644545.5A priority Critical patent/CN116600044A/en
Publication of CN116600044A publication Critical patent/CN116600044A/en
Pending legal-status Critical Current

Links

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, a related device, a storage medium and a computer program, which are applied to a bridge chip of a screen changing module of electronic equipment, wherein the electronic equipment comprises a processor and the screen changing module, the screen changing module comprises the bridge chip and a screen changing screen, the processor is connected with the bridge chip, and the bridge chip is connected with the screen changing 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 of the adaptive screen; and controlling the reloading screen to display corresponding image information according to the second image data. The embodiment of the application is beneficial to improving the success rate and the stability of image display after the screen of the electronic equipment is replaced.

Description

Image data processing method, image data processing apparatus, storage medium, and computer program
Technical Field
The present application relates to the field of image data processing technology, and in particular, to an image data processing method, a related apparatus, a storage medium, and a computer program.
Background
Along with the influence of users on visual experience demands, screens of electronic devices such as mobile phones and the like are larger and larger, however, with the increase of the screens of the mobile phones, the risk of broken screens is also increased gradually, when the users need to change the screens, the screens are generally re-equipped for the mobile phones in the current market, and the screen changing selected by the users is considered to be a screen with different specifications and performance lower than that of the original screen in cost performance in many times, so that the stability of screen display may be problematic.
Disclosure of Invention
The application provides an image data processing method, a related device, a storage medium and a computer program, so as to improve the success rate and the stability of image display after an electronic device is replaced with a screen.
In a first aspect, the present application provides an image data processing method, 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 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 adapting to a horizontal screen mode of the electronic device, the original screen is the same as the reloading screen in size, the horizontal screen mode is that the number of pixels of the original screen in a first width direction is larger than the number of pixels of the original screen in a first height direction, and the first image data forms a data matrix according to the first width direction and the constraint of 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 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 form a data matrix according to the constraint of 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 adapting to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapting 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 adapting to a horizontal screen mode of the electronic device, and the original screen is the same as the screen changing module in size, and the horizontal screen mode refers to that the number of pixels of the original screen in a first width direction is greater than the number of pixels of the original screen in a first height direction, and the first image data forms a data matrix according to constraints of the first width direction and the first height direction; secondly, obtaining a second resolution of a reloading screen, wherein the reloading screen is in a vertical screen mode, and the vertical screen mode refers to that the number of pixels in a second width direction of the reloading screen is smaller than that of pixels in a second height direction, and image data supported by the reloading screen form a data matrix according to the constraint of the second width direction and the second height direction; thirdly, processing the first image data according to the first resolution and the second resolution to obtain second image data of the adaptive screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix of an adaptive vertical screen mode; and finally, controlling the reloading screen to display corresponding image information according to the second image data. Therefore, the bridging chip of the screen changing module can convert the first image data of the first resolution of the original screen which is originally adapted to the horizontal screen mode into the screen changing screen of the second resolution which is adapted to the vertical screen mode, so that the screen changing module can accurately identify the image data and display the image data, the situation that the image data cannot be accurately identified and displayed due to different screen specifications is avoided, and the success rate and the stability of image display after the screen changing module is used for electronic equipment are improved.
In a second aspect, 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 from the processor, where the first image data is image data of a first resolution of an original screen adapted to a landscape screen mode of the electronic device, the original screen is the same as the reload screen in size, the landscape screen mode is that a number of pixels in a first width direction of the original screen is greater than a 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, 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 refers to that a number of pixels in a second width direction of the reloading screen is smaller than a 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;
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 adapting to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapting 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 any of the methods as in the first aspect.
In a fourth aspect, the application provides a bridge chip, which is applied to a screen replacement module of an electronic device, wherein the electronic device 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, where the program executes steps of any of the methods according to the first aspect.
In a fifth aspect, the present application provides an electronic device comprising a 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 application;
fig. 2a is a schematic flow chart of an image data processing method according to an embodiment of the present application;
fig. 2b 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. 3 is a block diagram showing functional units of an image data processing apparatus according to an embodiment of the present application;
fig. 4 is a block diagram showing functional units of another image data processing apparatus according to an embodiment of the present application.
Detailed Description
In order that those skilled in the art will better understand the present application, a technical solution in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings in which 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 those skilled in the art based on the embodiments of the application without making any inventive effort, are intended to be within the scope of the application.
The terms first, second and the like in the description and in the claims and in the above-described figures are used for distinguishing between different objects and not necessarily for describing a sequential or chronological 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 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. The Cortex-M0 microprocessor is a 32-bit processor pushed out by ARM. The microprocessor core adopts the architecture that the instruction and the data share the same bus.
At present, after the screen of the horizontal screen mode game machine is damaged, a user selects a screen of a mobile phone in a vertical screen mode with lower price for replacement based on cost performance, but because the resolution of the screen of the mobile phone and the reading and writing modes of frame image data are different from those of the original screen of the game machine, the game machine cannot stably display the image data after replacement.
In view of the foregoing, the present application provides an image data processing method and related apparatus, and the following detailed description is provided.
Referring to fig. 1, fig. 1 is a schematic diagram of an electronic device 100 according to an embodiment of the application. The electronic device 100 comprises a processor 120 and a reloading screen module 140, wherein the reloading screen module 140 comprises a bridge chip 141 and a reloading screen 142, the processor 120 is connected with the bridge chip 141, and the bridge chip 141 is connected with the reloading 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 processor GPU, and the like. The bridge chip 141 may be a Cortex-M0 microprocessor. The retrofit screen 142 may be, for example, an Active Matrix Organic Light Emitting Diode (AMOLED) screen or the like.
In addition, the electronic device 100 may be a game console, a mobile terminal (such as a smart phone), an IoT device in the internet of things, a vehicle-mounted terminal device, or other various electronic devices.
Referring to fig. 2a, fig. 2a is a schematic flow chart of an image data processing method according to an embodiment of the present application, which is applied to a bridge chip 141 of a screen changing module 140 of the 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 with a first resolution of an original screen adapting to a horizontal screen mode of the electronic device, the original screen is the same as the reload screen in size, the horizontal screen mode is that a number of pixels in a first width direction of the original screen is greater than a 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 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.
Step 202, obtaining a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, the vertical screen mode refers to 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 the constraint of the second width direction and the second height direction.
And 203, processing the first image data according to the first resolution and the second resolution to obtain second image data adapting to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapting to the vertical screen mode.
The number of columns (corresponding to the width direction) of the data matrix in the vertical screen mode is smaller than the number of rows (corresponding to the height direction), and the input pixels can be accurately mapped to the corresponding screen positions after rotation processing, 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 reload screen includes: determining a third resolution adapting to the cross screen 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 adapting to the reloading screen.
For example, if the second resolution is 720px x 720px, the third resolution is 720px x 720px.
The rotation processing specifically refers to adjusting row data in the data matrix to column data, and adjusting column data to row data. I.e. a rotation process of the matrix. The data matrix includes image information for each pixel.
In this example, the bridge chip can reduce the original image data of the adaptive horizontal screen mode based on the resolution, and then convert the original image data to adapt to the screen of the vertical screen mode, so as to improve the stability of displaying the image after the screen of the electronic device is replaced.
In this possible example, the determining fourth image data according to the first resolution, the third resolution, and the first image data includes: 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 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; 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 this example, the bridge chip can determine the pixel position correspondence through the first resolution and the third 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, finally the second image data is obtained, and the accuracy of determining the image data of 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: 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 in 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 and the image data of each first pixel.
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.
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 reload screen includes: performing rotation processing on the first image data according to the first resolution to obtain third image data adapting to a fourth resolution of 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.
In this example, the bridge chip can perform rotation processing on the original image data in the horizontal screen mode to adapt to the vertical screen mode, and then perform reduction processing on the rotated image data based on the resolution, so as to improve the stability of image display after the screen of the electronic device is replaced.
In one possible example, the determining second image data adapted to the reload screen according to the fourth resolution, the second resolution, and the third image data includes: 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 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; 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 this example, the bridge chip can determine the pixel position corresponding relation through the fourth 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, finally the second image data is obtained, and the accuracy of determining the image data of 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: 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 in the first subset of pixels from the third 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 and the image data of each first pixel.
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.
In one possible example, the determining the image data of the currently processed second pixel according to the area distribution of each first pixel of the plurality of first pixels and the image data of each first pixel includes: determining the area occupation ratio of each first pixel relative to the self complete area according to the area distribution of each first pixel in the plurality of first pixels; and weighting 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 second pixel which is processed currently.
For example, as shown in fig. 2b, assume that the first resolution of the first image data is 3*3, 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.
In some possible examples, the determining the image data of the currently processed second pixel from the region distribution of each first pixel of the plurality of first pixels and the image data of each first pixel includes: determining the area occupation ratio of each first pixel relative to the self complete area according to the area 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 second pixel currently processed.
In this example, the image data of the first pixel with the largest area ratio can be directly considered as the image data of the second pixel, so that the method 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 adapting to a horizontal screen mode of the electronic device, and the original screen is the same as the screen changing module in size, and the horizontal screen mode refers to that the number of pixels of the original screen in a first width direction is greater than the number of pixels of the original screen in a first height direction, and the first image data forms a data matrix according to constraints of the first width direction and the first height direction; secondly, obtaining a second resolution of a reloading screen, wherein the reloading screen is in a vertical screen mode, and the vertical screen mode refers to that the number of pixels in a second width direction of the reloading screen is smaller than that of pixels in a second height direction, and image data supported by the reloading screen form a data matrix according to the constraint of the second width direction and the second height direction; thirdly, processing the first image data according to the first resolution and the second resolution to obtain second image data of the adaptive screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix of an adaptive vertical screen mode; and finally, controlling the reloading screen to display corresponding image information according to the second image data. Therefore, the bridging chip of the screen changing module can convert the first image data of the first resolution of the original screen which is originally adapted to the horizontal screen mode into the screen changing screen of the second resolution which is adapted to the vertical screen mode, so that the screen changing module can accurately identify the image data and display the image data, the situation that the image data cannot be accurately identified and displayed due to different screen specifications is avoided, and the success rate and the stability of image display after the screen changing module is used for electronic equipment are improved.
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 various illustrative elements and algorithm steps described in connection with the embodiments disclosed herein may be implemented as hardware or combinations 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 can divide the functional units of the bridge chip according to the method example, for example, each functional unit can be divided corresponding to each function, and two or more functions can 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.
The embodiment of the application provides an image data processing device which can be a bridge chip. Specifically, the image data processing device 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 divide the functional modules of the image data processing apparatus according to the above-described method example, for example, each functional module may be divided corresponding to each function, or two or more functions may be integrated in one processing module. The integrated modules may be implemented in hardware or in software functional modules. The division of the modules in the embodiment of the application is schematic, only one logic function is divided, and other division modes can be adopted in actual implementation.
Fig. 3 shows a possible configuration diagram of the image data processing apparatus involved in the above-described embodiment in the case where respective functional blocks are divided with corresponding respective functions. As shown in fig. 3, the image data processing device 3 is applied to a bridge chip of a screen replacement module of an electronic device, the electronic device comprises a processor and the screen replacement module, the screen replacement module comprises a 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 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 adapted to a horizontal screen mode of the electronic device, the original screen is the same size as the reloading screen, the horizontal screen mode is that a number of pixels in a first width direction of the original screen is greater than a 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, the vertical screen mode refers to a mode in which a number of pixels in a second width direction of the reloading screen is smaller than a 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 reloading screen, where the processing at least includes a rotation process, and the rotation process is used to form a data matrix adapted to the portrait mode;
And a control unit 33, configured to control the reloading screen to display corresponding image information according to the second image data.
In one possible example, in terms of said processing of said first image data according to said first resolution and said second resolution, resulting in second image data adapted to said reloading screen, said processing unit 32 is specifically configured to: determining a third resolution adapting to the cross screen 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 adapting to 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 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; 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 said determining the image data of each second pixel according to said pixel position correspondence and said first image data, said processing unit 32 is specifically configured to: 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 in 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 and the image data of each first pixel.
In one possible example, in terms of said processing of said first image data according to said first resolution and said second resolution, resulting in second image data adapted to said reloading screen, said processing unit 32 is specifically configured to: performing rotation processing on the first image data according to the first resolution to obtain third image data adapting to a fourth resolution of 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.
In one possible example, in said determining of second image data adapting said reload screen from said fourth resolution, said second resolution and said third image data, said 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 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; 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 said determining the image data of each second pixel according to the pixel position correspondence and the third image data, the processing unit 32 is specifically configured to: 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 in the first subset of pixels from the third 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 and the image data of each first pixel.
In one possible example, in said determining the image data of the currently processed second pixel from the area distribution of each first pixel of the plurality of first pixels and the image data of each first pixel, the processing unit 32 is specifically configured to: determining the area occupation ratio of each first pixel relative to the self complete area according to the area distribution of each first pixel in the plurality of first pixels; and weighting 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 second pixel which is processed currently.
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 720px x 1080px, the second resolution is 720px x 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 the 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 for performing other processes of the techniques described herein. The communication module 41 is used to support interactions 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, the storage module 42 storing program codes and data of the image data processing apparatus.
The processing module 40 may be a processor or controller, such as a central processing unit (Central Processing Unit, CPU), a general purpose processor, a digital signal processor (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 perform the various exemplary logic blocks, modules and circuits described in connection with this disclosure. The processor may also be a combination that performs the function of a computation, e.g., a combination comprising one or more microprocessors, a combination of a DSP and a microprocessor, and the like. The communication module 41 may be a transceiver, an RF circuit, a communication interface, or the like. The memory module 42 may be a memory.
All relevant contents of each scenario related to the above method embodiment may be cited to the functional description of the corresponding functional module, which is not described herein. The image data processing device 3 and the image data processing device 4 may each perform the steps performed by the microprocessor in the image data processing method shown in fig. 2 a.
The above embodiments may be implemented in whole or in part by software, hardware, firmware, or any other combination. 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 comprises one or more computer instructions or computer programs. When the computer instructions or computer program are loaded or executed on a computer, the processes or functions described in accordance with embodiments of the present application are produced in whole or in part. The computer may be a general purpose computer, a special purpose computer, a computer network, or other programmable apparatus. 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 site, computer, server, or data center to another website site, computer, server, or data center by wired or wireless means. The computer readable storage medium may 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 sets 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.
The embodiment of the application also provides a computer storage medium, wherein the computer storage medium stores a computer program for electronic data exchange, and the computer program makes a computer execute part or all of the steps of any one of 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 part or all of the steps of any one of the methods described in the method embodiments above. The computer program product may be a software installation package, said computer comprising an electronic device.
It should be understood that, in various embodiments of the present application, the sequence numbers of the foregoing processes do not mean the order of execution, and the order of execution of the processes should be determined by the functions and internal logic thereof, and should not constitute any limitation on 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 manners. For example, the device embodiments described above are merely illustrative; for example, the division of the units is only one logic function division, and other division modes can be adopted in actual implementation; for example, multiple units or components may be combined or may be integrated into another system, or some features may be omitted, or not performed. Alternatively, the coupling or direct coupling or communication connection shown or discussed with each other may be an indirect coupling or communication connection via some interfaces, devices or units, which may be in electrical, mechanical or other form.
The units described as separate units may or may not be physically separate, and units shown 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 may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
In addition, each functional unit in the embodiments of the present invention may be integrated in one processing unit, or each unit may be physically included separately, or two or more units may be integrated in one unit. The integrated units may be implemented in hardware or in hardware plus software functional units.
The integrated units implemented in the form of software functional units described above 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, etc.) to perform part of the steps of the method according to the embodiments of the present invention. And the aforementioned storage medium includes: a U-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 other various media capable of storing program codes.
Although the present invention is disclosed above, the present invention is not limited thereto. Variations and modifications, including combinations of the different functions and implementation steps, as well as embodiments of the software and hardware, may be readily apparent to those skilled in the art without departing from the spirit and scope of the invention.

Claims (10)

1. The image data processing method 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 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 adapting to a horizontal screen mode of the electronic device, the original screen is the same as the reloading screen in size, the horizontal screen mode is that the number of pixels of the original screen in a first width direction is larger than the number of pixels of the original screen in a first height direction, and the first image data forms a data matrix according to the first width direction and the constraint of the first height direction;
Acquiring a second resolution of the reloading screen, wherein the reloading screen is in a vertical screen mode, and the vertical screen mode refers to 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 form a data matrix according to the constraint of 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 adapting to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapting to the vertical screen mode;
and controlling the reloading screen to display corresponding image information according to the second image data.
2. The method of claim 1, wherein processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reload screen comprises:
determining a third resolution adapting to the cross screen 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 adapting to the reloading screen.
3. The method of claim 2, wherein 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 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;
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.
4. A method according to claim 3, wherein said determining the image data of each second pixel from the pixel position correspondence and the first image data comprises:
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 in 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 and the image data of each first pixel.
5. The method of claim 1, wherein processing the first image data according to the first resolution and the second resolution to obtain second image data adapted to the reload screen comprises:
performing rotation processing on the first image data according to the first resolution to obtain third image data adapting to a fourth resolution of 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.
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 from the processor, where the first image data is image data of a first resolution of an original screen adapted to a landscape screen mode of the electronic device, the original screen is the same as the reload screen in size, the landscape screen mode is that a number of pixels in a first width direction of the original screen is greater than a 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, 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 refers to that a number of pixels in a second width direction of the reloading screen is smaller than a 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;
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 adapting to the reloading screen, wherein the processing at least comprises rotation processing, and the rotation processing is used for forming a data matrix adapting 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.
7. A computer readable storage medium, characterized in that the computer readable storage medium stores a computer program, wherein the computer program causes an apparatus to perform the steps in any of the methods according to claims 1-5.
8. A computer program, characterized in that the computer program causes an apparatus to perform the steps of the method according to any one of claims 1-5.
9. 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.
10. An electronic device comprising the bridge chip of claim 9.
CN202310644545.5A 2021-10-30 2021-10-30 Image data processing method, image data processing apparatus, storage medium, and computer program Pending CN116600044A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
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 (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

Related Parent Applications (1)

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

Publications (1)

Publication Number Publication Date
CN116600044A true CN116600044A (en) 2023-08-15

Family

ID=79027187

Family Applications (2)

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
CN202111278492.7A Active CN113905126B (en) 2021-10-30 2021-10-30 Image data processing method and related device

Family Applications After (1)

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

Country Status (1)

Country Link
CN (2) CN116600044A (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
CN113905126A (en) 2022-01-07
CN113905126B (en) 2023-04-18

Similar Documents

Publication Publication Date Title
US11833424B2 (en) Image rendering method and apparatus, device and storage medium
CN109166159B (en) Method and device for acquiring dominant tone of image and terminal
WO2020177584A1 (en) Graphic typesetting method and related device
CN108596908B (en) LED display screen detection method and device and terminal
CN113010252B (en) Application page display method, electronic equipment and storage medium
CN110083415A (en) Device screen adaptation method, terminal device and storage medium
CN113299245A (en) Method and device for adjusting local backlight of display equipment, display equipment and storage medium
CN112287257A (en) Page display method and device, electronic equipment and storage medium
US10714034B2 (en) Display device, control circuit of display panel, and display method
US20240257710A1 (en) Foveated display burn-in statistics and burn-in compensation systems and methods
US20220122234A1 (en) High dynamic range post-processing device, and display device including the same
CN113140292A (en) Image abnormal area browsing method and device, mobile terminal equipment and storage medium
CN116600044A (en) Image data processing method, image data processing apparatus, storage medium, and computer program
CN113139921B (en) Image processing method, display device, electronic device and storage medium
CN111870950B (en) Game control display control method and device and electronic equipment
KR101911947B1 (en) Screen design method and screen design system for improving information readability and harmonizing background image
CN109214977A (en) Image processing apparatus and its control method
CN111462008B (en) Low-illumination image enhancement method, low-illumination image enhancement device and electronic equipment
CN112184685B (en) Image data determination method and device
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN114153413B (en) Image conversion method and device and bridge chip
CN110942487B (en) Chroma adjustment system, method and non-transitory computer readable medium thereof
CN103826058A (en) Image processing method and device for enhancing image quality by using different coefficients according to regions
CN111756997B (en) Pixel storage method and device, computer equipment and readable storage medium
CN105468312B (en) Image display method and device

Legal Events

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