CN115129278A - Image display control method, system, readable storage medium and electronic device - Google Patents

Image display control method, system, readable storage medium and electronic device Download PDF

Info

Publication number
CN115129278A
CN115129278A CN202110286486.XA CN202110286486A CN115129278A CN 115129278 A CN115129278 A CN 115129278A CN 202110286486 A CN202110286486 A CN 202110286486A CN 115129278 A CN115129278 A CN 115129278A
Authority
CN
China
Prior art keywords
target
image
pixel point
target pixel
display
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
CN202110286486.XA
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.)
Actions Technology Co Ltd
Original Assignee
Actions 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 Actions Technology Co Ltd filed Critical Actions Technology Co Ltd
Priority to CN202110286486.XA priority Critical patent/CN115129278A/en
Publication of CN115129278A publication Critical patent/CN115129278A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting
    • G06T3/4007Scaling of whole images or parts thereof, e.g. expanding or contracting based on interpolation, e.g. bilinear interpolation
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/60Rotation of whole images or parts thereof

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)

Abstract

The disclosure relates to an image display control method, system, readable storage medium and electronic device. The method comprises the following steps: under the condition of receiving an image display request, determining a target display area of a display screen, wherein the target display area is in a circular ring shape; traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display area; determining target display information of each target pixel point according to preset rotation angle information and a first position of the target pixel point in a first coordinate system, wherein the first coordinate system is a coordinate system of the image to be displayed; and displaying each target pixel point according to the target display information of each target pixel point. Therefore, only the pixel points capable of being displayed are calculated, the calculation amount can be effectively reduced, the system resources occupied by calculation are reduced, and the equipment performance is improved.

Description

Image display control method, system, readable storage medium and electronic device
Technical Field
The present disclosure relates to the field of image display technologies, and in particular, to an image display control method, an image display control system, a readable storage medium, and an electronic device.
Background
With the vigorous development of electronic products, especially intelligent wearable products, people have more and more requirements on the shapes of image display areas, and the conventional rectangular display areas cannot meet the requirements of people on attractiveness, so that displaying images through circular display areas becomes a current research hotspot. For example, devices such as smartwatches are typically circular displays in which numbers and/or pointers or the like are displayed. The image to be displayed is usually rectangular, so that the circular display screen or the circular display area is different from the rectangular display screen or the rectangular display area, and the background or the foreground has unique characteristics in the aspects of rotation and the like when the image is displayed.
For example, when an image is displayed in a rectangular display screen or a rectangular display area, since the display area and the image to be displayed are both rectangular, the display area or the size of the image to be displayed may be adjusted so that the display area completely displays the image to be displayed. However, for the circular display area, no matter how the adjustment is made, the size of the display area cannot be made to coincide with the size of the image to be displayed. If the circular display area is positioned outside the image to be displayed, namely the size of the display area is larger than that of the image to be displayed, the problems of messy codes and the like in a part of the display area can be caused; if the circular display area is located inside the image to be displayed, that is, the size of the display area is smaller than that of the image to be displayed, a partial image in the image to be displayed cannot be displayed.
In practical application, in order to avoid the problem of code confusion in the display area, the size of the display area is usually set to be smaller than that of the image to be displayed, and in this case, even if some partial images in the image to be displayed cannot be displayed, the device still performs corresponding calculation on pixel points of the partial images which cannot be displayed, where the calculation may be superposition calculation, output calculation, rendering calculation, cache calculation, or the like. Therefore, the calculation amount of the equipment is large, and the calculation occupies more resources, so that the performance of the equipment is poor.
Disclosure of Invention
An object of the present disclosure is to provide an image display control method, system, readable storage medium, and electronic device, which improve the performance of the device by reducing the amount of computation and occupied resources.
In order to achieve the above object, the present disclosure provides an image display control method including:
under the condition that an image display request is received, determining a target display area of a display screen, wherein the target display area is in a circular ring shape;
traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display area;
determining target display information of each target pixel point according to preset rotation angle information and a first position of the target pixel point in a first coordinate system, wherein the first coordinate system is a coordinate system of the image to be displayed;
and displaying each target pixel point according to the target display information of each target pixel point.
Optionally, the target display area is used for displaying a partial image in the image to be displayed.
Optionally, the determining, according to preset rotation angle information and a first position of the target pixel point in a first coordinate system, target display information of the target pixel point includes:
determining a second position of the target pixel point before rotation in a first coordinate system according to preset rotation angle information and the first position of the target pixel point in the first coordinate system;
and determining target display information of the target pixel point according to the second position of the target pixel point.
Optionally, the coordinate value of the second position is a decimal number; the determining the display information of the target pixel point according to the second position of the target pixel point comprises:
extracting pixel values of a preset number of adjacent pixel points from the image to be displayed according to the integer part of the coordinate value of the second position;
and according to the decimal part of the coordinate value of the second position, performing bilinear interpolation by using the extracted pixel values of the preset number of adjacent pixel points to obtain a target pixel value, wherein the target pixel value is target display information of the target pixel point.
Optionally, the method further comprises:
storing the target display information of each target pixel point in a target memory;
displaying each target pixel point according to the target display information of each target pixel point, including:
and sending the stored target display information to the display screen so as to display each target pixel point in a target display area of the display screen.
Optionally, the method further comprises:
dividing the image to be displayed into a plurality of image blocks according to a preset division rule;
the traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display area includes:
sequentially traversing each pixel point of each image block to determine a target pixel point located in the target display area in the currently traversed image block;
displaying each target pixel point according to the target display information of each target pixel point, including:
and displaying the target pixel points in the target display area in the currently traversed image block according to the target display information of the target pixel points in the target display area in the currently traversed image block.
Optionally, the traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display region includes:
and determining a target pixel point in the target display area according to the distance between the currently traversed pixel point and the central point of the image to be displayed.
Optionally, the determining a target display area of the display screen in a case where the image display request is received includes:
in response to receiving an image display request, creating a target number of circles on a display screen, wherein the target number is an integer greater than or equal to 1, and when the target number is greater than or equal to 2, the centers of the target number of circles coincide with each other;
and determining a target display area in the target number of circles.
A second aspect of the present disclosure provides an image display control system comprising:
the reading and writing control device is used for providing a human-computer interaction interface, the human-computer interaction interface is used for inputting information by a user, and the information comprises an image display request, a preset rotation angle and an image to be displayed;
an image display control apparatus for executing the image display control method provided by the first aspect of the present disclosure.
Optionally, the image display control apparatus includes: the device comprises a state control module, an extraction module, an interpolation module, a first-in first-out memory, a write-in module and an output interface which are connected in sequence;
the state control module is used for determining a target display area of a display screen and traversing each pixel point of the image to be displayed under the condition that the image display request is received through the read-write control device so as to determine the target pixel point in the target display area.
The extraction module is used for determining a second position of each target pixel point in a first coordinate system before the target pixel point rotates according to preset rotation angle information and a first position of the target pixel in the first coordinate system, and extracting pixel values of a preset number of adjacent pixel points in the image to be displayed according to an integer part of coordinate values of the second position;
the interpolation module is configured to perform bilinear interpolation by using the extracted pixel values of the preset number of adjacent pixels according to a decimal part of the coordinate value of the second position to obtain a target pixel value, and store the target pixel value in the first-in first-out memory, where the target pixel value is target display information of the target pixel;
the write-in module is used for storing the target display information stored in the first-in first-out memory into a target memory;
and the output interface is used for inputting the target display information in the target memory to a display screen so as to display each target pixel point in a target display area of the display screen.
A third aspect of the present disclosure provides a computer readable storage medium having stored thereon a computer program which, when executed by a processor, performs the steps of the method provided by the first aspect of the present disclosure.
A fourth aspect of the present disclosure provides an electronic device, comprising: a display screen, and an image display control system as provided in a second aspect of the present disclosure.
By adopting the technical scheme, firstly, a target display area of a display screen is determined, then, each pixel point in an image to be displayed is traversed to determine a target pixel point located in the target display area, and finally, only target display information of the target pixel point is calculated and displayed. Therefore, only the pixel points capable of being displayed are calculated, and compared with the method that each pixel point of the whole image to be displayed is calculated in the related technology, the calculation amount can be effectively reduced, the system resources occupied by calculation are reduced, and the equipment performance is improved.
Additional features and advantages of the disclosure will be set forth in the detailed description which follows.
Drawings
The accompanying drawings, which are included to provide a further understanding of the disclosure and are incorporated in and constitute a part of this specification, illustrate embodiments of the disclosure and together with the description serve to explain the disclosure without limiting the disclosure. In the drawings:
fig. 1 is a flowchart illustrating an image display control method according to an exemplary embodiment.
FIG. 2 is a schematic diagram illustrating a display area and an image to be displayed in accordance with an exemplary embodiment.
FIG. 3 is a flow chart illustrating a method for determining target display information for a target pixel site according to an exemplary embodiment.
FIG. 4 is a diagram illustrating a segmentation of an image to be displayed, according to an exemplary embodiment.
Fig. 5 is a block diagram illustrating an image display control system according to an exemplary embodiment.
Fig. 6 is a schematic diagram illustrating an image display control system according to an exemplary embodiment.
FIG. 7 is a block diagram of an electronic device shown in accordance with an example embodiment.
Detailed Description
The following detailed description of the embodiments of the disclosure refers to the accompanying drawings. It should be understood that the detailed description and specific examples, while indicating the present disclosure, are given by way of illustration and explanation only, not limitation.
Fig. 1 is a flowchart illustrating an image display control method according to an exemplary embodiment. As shown in fig. 1, the method may include the following steps.
In step 101, in the case where an image display request is received, a target display area of a display screen is determined, wherein the target display area has a circular ring shape.
In the present disclosure, the image display request is for requesting display of an image with a circular ring display area. Accordingly, the circular ring display area on the display screen can be determined upon receiving the image display request. Wherein the circular ring is equivalent to a hollow circle, the hollow circle has a small radius R, and the whole circle has a large radius R. When the small radius R is not equal to 0, the ring is a ring with the ring width of R-R, wherein R is larger than R.
In one possible approach, the determined target display area is located outside the image to be displayed (the image to be displayed is rectangular in shape), i.e., the size of the determined target display area is larger than the stored image to be displayed, and thus the target display area can be used to display the entire image to be displayed.
It is considered that if the target display area is located outside the image to be displayed, no image can be displayed in a partial area of the target display area, so that the partial area generates messy codes, and the viewing experience of a user is influenced. Therefore, in order to avoid the problem of the occurrence of the scrambling code in the target display area, in the present disclosure, the determined target display area is located inside the image to be displayed (the image to be displayed is in a rectangular shape), that is, the size of the target display area is smaller than the size of the image to be displayed, and the target display area is used only for displaying a partial image in the image to be displayed.
It should be noted that, the present disclosure does not specifically limit the determined shape of the target display area to be a circular shape or a circular ring shape with a ring width R-R, and the determination may be made according to actual display requirements.
In step 102, each pixel point of the image to be displayed is traversed to determine a target pixel point located in the target display area.
As in the background art, since an image located within the target display region can be displayed and an image located outside the target display region cannot be displayed within the target display region even by rotation, a partial image that cannot be displayed may not be calculated in order to reduce the amount of calculation. That is, in step 102, each pixel point in the image to be displayed needs to be traversed to determine the target pixel point located in the target display area.
It should be noted that, in the field of image technology, an image to be displayed is usually stored in a matrix form, and when traversing pixel points in the image to be displayed, the traversal is performed according to rows. For example, after traversing the pixels in the first row, traversing the pixels in the second row until all the pixels are traversed.
In a possible manner, whether the pixel point is located in the target display area can be judged according to the distance between the pixel point and the central point of the image to be displayed.
Illustratively, FIG. 2 is a schematic illustration of a display area and an image to be displayed, shown in accordance with an exemplary embodiment. As shown in fig. 2, a small circle R and a large circle R are created in the display screen, and the centers of the small circle R and the large circle R coincide with each other, and the size of the image to be displayed is 2W × 2H (W > ═ R, H > ═ R, and when W ═ H ═ R, the displayed circle is the inscribed circle of this square image). Firstly, determining the distance S between the pixel point traversed currently and the central point of the image to be displayed, then judging the size relationship between the distance S and R, R, and when S is larger than R and smaller than or equal to R, determining that the pixel point is positioned in the target display area.
Assuming that the size of the image to be displayed is 2W × 2H, the distance S between the currently traversed pixel point and the center point of the image to be displayed can be determined by the following formula, where the position coordinate of the currently traversed pixel point is (x, y):
S 2 =(x-W+0.5) 2 +(y-H+0.5) 2
in step 103, for each target pixel point, the target display information of the target pixel point is determined according to the preset rotation angle information and the first position of the target pixel point in the first coordinate system, where the first coordinate system is the coordinate system of the image to be displayed.
In step 104, each target pixel point is displayed according to the target display information of each target pixel point.
In this disclosure, only the target pixel point located in the target display area determined in step 102 is calculated to obtain the target display information of the target pixel point, and then the target display information of the target pixel point is displayed. A specific embodiment of determining the target display information will be described in detail below.
By adopting the technical scheme, firstly, a target display area of a display screen is determined, then, each pixel point in an image to be displayed is traversed to determine a target pixel point located in the target display area, and finally, only target display information of the target pixel point is calculated and displayed. Therefore, only the pixel points capable of being displayed are calculated, and compared with the method for calculating each pixel point of the whole image to be displayed in the related technology, the calculation amount can be effectively reduced, the system resources occupied by calculation are reduced, and the equipment performance is improved.
In order to facilitate better understanding of the image display control method provided by the present disclosure for those skilled in the art, a detailed description is given below with respect to a complete embodiment.
First, a specific embodiment in which step 101 in fig. 1 determines a target display area of a display screen in a case where an image display request is received will be described.
First, in response to receiving an image display request, a target number of circles, which is an integer greater than or equal to 1, whose centers coincide with each other when the target number is greater than or equal to 2, is created on a display screen.
Illustratively, the image display request may include a user's requirement for a target display area, which may include the size of the display area, the shape of the display area, and so on. For example, assuming that the user needs to display an image with a circular display area, a circle may be created in the display screen, and the size of the circle may be determined based on the size of the display area and/or the size of the display screen in the image display request. Further illustratively, assuming that a user needs to display an image with a display area in the shape of a circular ring having a certain ring width, a plurality of circles may be created in the display screen.
Thereafter, a target display area is determined in the target number of circles.
Assuming that a circle is created in the display screen according to the image display request, the area within the circle is the determined target display area. Assuming that a plurality of circles are created in the display screen according to the image display request, the plurality of circles may form a plurality of display areas in which the target display area is determined. Illustratively, three circles are created in the display screen of the smart watch, and are sequentially recorded as a circle r1, a circle r2 and a circle r3 from inside to outside, wherein a display area a1 is formed inside the circle r1, a display area a2 is formed by the circle r1 and the circle r2, and a display area a3 is formed by the circle r2 and the circle r3, so that it is preset to display a watch hand in the display area a1, display a time scale in the display area a2, display a date in the display area a3, and the like. Assuming that the image to be displayed in the image display request is time-scaled, the display area a2 is determined as the target display area.
Next, a specific embodiment of determining the target display information of the target pixel according to the preset rotation angle information and the first position of the target pixel in the first coordinate system in step 103 in fig. 1 will be described.
Illustratively, as shown in fig. 3, the step 103 may further include the steps of:
in step 1031, a second position of the target pixel point before rotation in the first coordinate system is determined according to the preset rotation angle information and the first position of the target pixel point in the first coordinate system.
As described above, the first coordinate system is a coordinate system of the image to be displayed, as shown in fig. 2, an original coordinate point of the first coordinate system is a position of an upper left-corner pixel in the image, a horizontal leftward straight line is an x-axis of the first coordinate system, a vertical downward straight line is a y-axis of the first coordinate system, and a coordinate axis in the first coordinate system represents a pixel in the image, for example, a pixel with coordinates (m, n) represents a pixel in an mth column and an nth row in the image. The coordinate system in which the circle is located is called the second coordinate, and the origin of the second coordinate coincides with the center point (W-0.5, -H +0.5) of the image to be displayed.
Assuming that the first position of the target pixel point in the first coordinate system is (x, y), the translated target pixel point in the first coordinate system is first transformed to the position in the second coordinate system (x1, y1) by the following formula:
x1=x-W+0.5
y1=y+H-0.5
then, a position (x2, y2) before the target pixel point rotates in the second coordinate system is determined according to the preset rotation angle information and the first position, wherein the preset rotation angle information includes a rotation direction and a rotation angle, for example, a clockwise direction is a positive rotation direction, and a counterclockwise direction is a negative rotation direction. Assuming that the preset rotation angle information is a positive rotation and a rotation angle a, the position (x1, y1) may be rotated counterclockwise by the rotation angle a to obtain a position (x2, y2) before the target pixel rotates in the second coordinate system, and for example, the position (x2, y2) before the target pixel rotates in the second coordinate system may be determined by referring to the following formula:
x2=x1·cosA-y1·sin A
y2=x1·sinA+y1·cos A
then, the position (x2, y2) before the target pixel point is rotated in the second coordinate system is converted into a second position (x3, y3) before the target pixel point is rotated in the first coordinate system by the following formula:
x3=x2+W-0.5
y3=y2-H+0.5
thus, the second position (x3, y3) before the target pixel point rotates in the first coordinate system can be obtained through the coordinate transformation.
In step 1032, the target display information of the target pixel point is determined according to the second position of the target pixel point.
It is worth noting that in the present disclosure, the second position (x3, y3) derived by trigonometric function back may be an integer or a decimal, wherein the decimal includes an integer part and a decimal part, due to the arbitrary angular rotation. Since the position of each pixel point in the image to be displayed is an integer, if the second position (x3, y3) only includes an integer part, the pixel value (which may be, for example, ARGB data or RGB data) of the pixel point located at the second position (x3, y3) may be directly determined as the target display information of the target pixel point. And if the coordinate value of the second position is a decimal, obtaining target display information of the target pixel point through interpolation operation.
For example, first, according to the integer part of the coordinate value of the second position, the pixel values of a preset number of adjacent pixel points are extracted from the image to be displayed. The preset number may be 2 × 2 (four), 3 × 3 (nine), 4 × 4 (16), and so on. Assuming that the second position of the target pixel point is (3.3 ) and the preset number is 2 × 2, the pixel values of four pixel points located at the (3, 3) position, (3, 4) position, (4,3) position and (4, 4) position in the image to be displayed can be extracted respectively.
And then, according to the decimal part of the coordinate value of the second position, utilizing the extracted pixel values of a preset number of adjacent pixel points to perform bilinear interpolation to obtain a target pixel value, wherein the target pixel value is target display information of the target pixel point.
It should be noted that, before the bilinear interpolation is used in the present disclosure, the corresponding precision level may be obtained for the decimal part of the coordinate value of the second position, and then the bilinear interpolation is performed by using the pixel values of the neighboring pixel points in the preset number, wherein the interpolation calculation is usually performed by using 8/16/32/64 step.
Therefore, according to the mode, the target display information of each target pixel point can be obtained.
It should be noted that, if the target display information of a target pixel is sent to the display screen for display after the target display information of the target pixel is determined, the number of transmission times is large, and therefore, in a possible implementation manner, after the target display information of the target pixel is determined, the target display information of the target pixel is stored in the target memory, so that the target display information of each target pixel can be stored in the target memory, and then, after the respective target display information of all the target pixels is determined, the stored target display information of all the target pixels is sent to the display screen, so that each target pixel is displayed in the target display area of the display screen.
In addition, considering that the number of target pixels is large, if the target display information of all the target pixels is stored in the target memory together, the memory may be in shortage, and therefore, in one embodiment, the target pixel information of the target pixels may be stored and sent to the display screen in multiple times. It should be noted that after the target display information currently stored in the target memory is sent to the display screen, when the target display information of other target pixel points is stored again, the target display information of the other target pixel points stored this time may cover the target display information stored last time, so that the space of the target memory may be reduced.
Illustratively, first, an image to be displayed is divided into a plurality of image blocks according to a preset division rule. In the field of image processing technology, when traversing the pixels of an image, traversal is usually performed according to rows, that is, all the pixels in the first row are traversed first, and after the traversal of the first row is completed, all the pixels in the second row are traversed, … …, until the last pixel in the last row is traversed. And traversing the pixels in any row from left to right.
Therefore, in the present disclosure, the preset division rule is a division rule by line. Assuming that the size of the image to be displayed is 800 × 800, the image can be divided into four image blocks with the same size, and each image block has a size of 200 × 800. It should be noted that, in practical applications, the sizes of the plurality of divided image blocks may not be completely the same, or may be completely the same, and the disclosure is not limited thereto.
And then, sequentially traversing each pixel point of each image block to determine a target pixel point positioned in the target display area in the currently traversed image block.
And then, displaying the target pixel point in the target display area in the currently traversed image block according to the target display information of the target pixel point in the target display area in the currently traversed image block.
For example, as shown in fig. 4, assuming that the size of the image to be displayed is 800 × 800, the image may be divided into four image blocks with the same size, where each image block has a size of 200 × 800, first, pixel points in a first image block (i.e., line 1 to line 200 of the image to be displayed) are traversed, a target pixel point located in a target display area in the first image block is determined, target display information of the target pixel point is determined and stored in a target memory, and then, the target display information of the target pixel point in the first image block stored in the target memory is sent to a display screen for display. Then, traversing the pixels in the second image block (i.e., the 201 st row to the 400 th row of the image to be displayed) in the same manner, determining target display information of the target pixels, storing the target display information in a target memory, and then sending the target display information of the target pixels in the second image block stored in the target memory to a display screen for display. And repeating the steps until the target display information of the target pixel point in the fourth image block is sent to the display screen for displaying.
It should be noted that, when the target display information of the target pixel point in the currently traversed image block is stored in the target memory, the target display information of the target pixel point of the currently traversed image block may cover the target display information of the target pixel point of the last traversed image block.
Therefore, by adopting the technical scheme, the target display information of the target pixel point is determined in a grading manner, the target display information is stored in a grading manner, and the target display information is sent to the display screen in a grading manner, so that the space of a target memory can be effectively reduced, and the performance of the equipment is further improved.
Based on the same inventive concept, the present disclosure also provides an image display control system. Fig. 5 is a block diagram illustrating an image display control system according to an exemplary embodiment. As shown in fig. 5, the system may include a read-write control device 501 and an image display control device 502, where the read-write control device 501 and the image display control device 502 are connected.
The read/write control device 501 is configured to provide a human-machine interface, where the human-machine interface is an interface for a user to input information, where the information may include an image display request, a preset rotation angle, and an image to be displayed, where a format of the image to be displayed may be RGB565 and ARGB 8888. In addition, the read/write control device 501 can also receive the precision ladder, the preset segmentation rule and the like input by the user. The present disclosure does not specifically limit this.
The image display control device 502 is configured to execute an image display control method according to the present disclosure.
Fig. 6 is a schematic diagram illustrating an image display control system according to an exemplary embodiment. As shown in fig. 6, the read/write control device 501 is a register read/write control module, which may be a Reg module. Further, the image display control device 502 may further include: a state control module 5021, an extraction module 5022, an interpolation module 5023, a fifo memory 5024, a write module 5025 and an input interface 5026 connected in sequence.
The state control module 5021 is used for controlling the whole process of the image display control method. For example, the state control module 5021 may be a Rotation Ctrl module, configured to determine a target display area of the display screen and traverse each pixel of the image to be displayed to determine a target pixel located in the target display area when the image display request is received through the read/write control device 501.
The extracting module 5022 may be a Memory RD ctrl module, and is configured to determine, for each target pixel, a second position of the target pixel before rotation in the first coordinate system according to the preset rotation angle information and the first position of the target pixel in the first coordinate system, and extract pixel values of a preset number of adjacent pixels from the image to be displayed according to an integer part of a coordinate value of the second position. For example, taking the preset number of 2 × 2 as an example, the extracting module 5022 may issue 2 32-bit burst 2 commands to read the pixel values of four adjacent pixels according to the positions of the four adjacent pixels.
The interpolation module 5023 may be a Pixel calculate module, and is configured to perform bilinear interpolation by using the extracted Pixel values of the preset number of adjacent pixels according to the fractional part of the coordinate value of the second position to obtain a target Pixel value, and store the target Pixel value in the fifo memory. For example, the interpolation module 5023 may perform bilinear interpolation on the pixel values of a preset number of adjacent pixels extracted by the extraction module 5022 according to 8/16/32/64step according to the fractional part of the coordinate value of the second position to obtain a target pixel value, and store the target pixel value in a first-in first-out memory (FIFO memory) 5024, where the target pixel value is target display information of the target pixel point.
The write module 5025 may be a Memory WR ctrl module, and is configured to store the target display information stored in the fifo Memory 5024 in the target Memory. For example, the write module 5025 may issue a 32-bit burst 8 command to store the target display information stored in the fifo 5024 into the target memory.
The output interface 5026 may be an AHB Memory WR BUS, which is used to input the target display information in the target Memory to the display screen, so as to display each target pixel point in the target display area of the display screen.
Therefore, the rotation and the display of the circular ring image can be realized by adopting less hardware resources and less calculation amount, so that the individuation and the flexibility of the image display are improved.
In addition, the image display control system can also determine the target display information of the target pixel points in a plurality of times, store the target display information in a plurality of times and send the target display information to the display screen in a plurality of times, so that the space of a target memory can be effectively reduced, the cost of the portable low-power consumption equipment is greatly improved, and the system can support the peripheral display equipment with higher display resolution.
Further, as shown in fig. 6, the image display control system may further include an interface AHB BUS connected to the Reg module, through which a user can input information input by the user into the Reg module. The image display control system may further include an interface AHB Memory RD BUS connected to the Memory RD ctrl module, and the Memory RD ctrl module may extract the pixel values of the predetermined number of adjacent pixels according to the interface AHB Memory RD BUS.
With regard to the system in the above embodiment, the specific manner in which each module performs the operation has been described in detail in the embodiment related to the method, and will not be elaborated here.
FIG. 7 is a block diagram illustrating an electronic device in accordance with an example embodiment. The electronic device may include a display screen and an image display control system provided by the present disclosure. Further, as shown in fig. 7, the electronic device 700 may include: a processor 701 and a memory 702. The electronic device 700 may also include one or more of a multimedia component 703, an input/output (I/O) interface 704, and a communication component 705.
The processor 701 is configured to control the overall operation of the electronic device 700, so as to complete all or part of the steps in the image display control method. The memory 702 is used to store various types of data to support operation at the electronic device 700, such as instructions for any application or method operating on the electronic device 700 and application-related data, such as contact data, transmitted and received messages, pictures, audio, video, and the like. The Memory 702 may be implemented by any type of volatile or non-volatile Memory device or combination thereof, such as Static Random Access Memory (SRAM), Electrically Erasable Programmable Read-Only Memory (EEPROM), Erasable Programmable Read-Only Memory (EPROM), Programmable Read-Only Memory (PROM), Read-Only Memory (ROM), magnetic Memory, flash Memory, magnetic disk, or optical disk. The multimedia components 703 may include screen and audio components. Wherein the screen may be, for example, a touch screen and the audio component is used for outputting and/or inputting audio signals. For example, the audio component may include a microphone for receiving external audio signals. The received audio signal may further be stored in the memory 702 or transmitted through the communication component 705. The audio assembly also includes at least one speaker for outputting audio signals. The I/O interface 704 provides an interface between the processor 701 and other interface modules, such as a keyboard, mouse, buttons, etc. These buttons may be virtual buttons or physical buttons. The communication component 705 is used for wired or wireless communication between the electronic device 700 and other devices. Wireless Communication, such as Wi-Fi, bluetooth, Near Field Communication (NFC), 2G, 3G, 4G, NB-IOT, eMTC, or other 5G, etc., or a combination of one or more of them, which is not limited herein. The corresponding communication component 705 may thus include: Wi-Fi module, Bluetooth module, NFC module, etc.
In an exemplary embodiment, the electronic Device 700 may be implemented by one or more Application Specific Integrated Circuits (ASICs), Digital Signal Processors (DSPs), Digital Signal Processing Devices (DSPDs), Programmable Logic Devices (PLDs), Field Programmable Gate Arrays (FPGAs), controllers, microcontrollers, microprocessors, or other electronic components for performing the image display control method described above.
In another exemplary embodiment, there is also provided a computer-readable storage medium including program instructions which, when executed by a processor, implement the steps of the image display control method described above. For example, the computer readable storage medium may be the above-described memory 702 including program instructions that are executable by the processor 701 of the electronic device 700 to perform the above-described image display control method.
In another exemplary embodiment, a computer program product is also provided, which comprises a computer program executable by a programmable apparatus, the computer program having code portions for performing the image display control method described above when executed by the programmable apparatus.
The preferred embodiments of the present disclosure are described in detail with reference to the accompanying drawings, however, the present disclosure is not limited to the specific details of the above embodiments, and various simple modifications may be made to the technical solution of the present disclosure within the technical idea of the present disclosure, and these simple modifications all belong to the protection scope of the present disclosure.
It should be noted that the various features described in the above embodiments may be combined in any suitable manner without departing from the scope of the invention. In order to avoid unnecessary repetition, various possible combinations will not be separately described in this disclosure.
In addition, any combination of various embodiments of the present disclosure may be made, and the same should be considered as the disclosure of the present disclosure, as long as it does not depart from the spirit of the present disclosure.

Claims (12)

1. An image display control method characterized by comprising:
under the condition that an image display request is received, determining a target display area of a display screen, wherein the target display area is in a circular ring shape;
traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display area;
determining target display information of each target pixel point according to preset rotation angle information and a first position of the target pixel point in a first coordinate system, wherein the first coordinate system is a coordinate system of the image to be displayed;
and displaying each target pixel point according to the target display information of each target pixel point.
2. The method according to claim 1, wherein the target display area is used for displaying a partial image in an image to be displayed.
3. The method of claim 1, wherein the determining the target display information of the target pixel according to the preset rotation angle information and the first position of the target pixel in the first coordinate system comprises:
determining a second position of the target pixel point in the first coordinate system before rotation according to preset rotation angle information and the first position of the target pixel point in the first coordinate system;
and determining target display information of the target pixel point according to the second position of the target pixel point.
4. The method of claim 3, wherein the coordinate value of the second position is a decimal number; determining display information of the target pixel point according to the second position of the target pixel point includes:
extracting pixel values of a preset number of adjacent pixel points from the image to be displayed according to the integer part of the coordinate value of the second position;
and performing bilinear interpolation by using the extracted pixel values of the preset number of adjacent pixel points according to the decimal part of the coordinate value of the second position to obtain a target pixel value, wherein the target pixel value is target display information of the target pixel point.
5. The method of claim 1, further comprising:
storing the target display information of each target pixel point in a target memory;
displaying each target pixel point according to the target display information of each target pixel point, including:
and sending the stored target display information to the display screen so as to display each target pixel point in a target display area of the display screen.
6. The method according to any one of claims 1-5, further comprising:
dividing the image to be displayed into a plurality of image blocks according to a preset division rule;
the traversing each pixel point of the image to be displayed to determine a target pixel point located in the target display area includes:
sequentially traversing each pixel point of each image block to determine a target pixel point located in the target display area in the currently traversed image block;
displaying each target pixel point according to the target display information of each target pixel point, including:
and displaying the target pixel points in the target display area in the currently traversed image block according to the target display information of the target pixel points in the target display area in the currently traversed image block.
7. The method according to any one of claims 1-5, wherein said traversing each pixel point of the image to be displayed to determine a target pixel point located within the target display area comprises:
and determining a target pixel point located in the target display area according to the distance between the currently traversed pixel point and the central point of the image to be displayed.
8. The method according to any one of claims 1-5, wherein determining the target display area of the display screen in case of receiving the image display request comprises:
in response to receiving an image display request, creating a target number of circles on a display screen, wherein the target number is an integer greater than or equal to 1, and when the target number is greater than or equal to 2, the centers of the target number of circles coincide with each other;
and determining a target display area in the target number of circles.
9. An image display control system characterized by comprising:
the reading and writing control device is used for providing a human-computer interaction interface, the human-computer interaction interface is used for inputting information by a user, and the information comprises an image display request, a preset rotation angle and an image to be displayed;
image display control means for executing the image display control method according to any one of claims 1 to 8.
10. The system according to claim 9, wherein the image display control means comprises: the device comprises a state control module, an extraction module, an interpolation module, a first-in first-out memory, a write-in module and an output interface which are connected in sequence;
the state control module is used for determining a target display area of a display screen and traversing each pixel point of the image to be displayed under the condition that the image display request is received through the read-write control device so as to determine the target pixel point in the target display area.
The extraction module is used for determining a second position of each target pixel point in a first coordinate system before the target pixel point rotates according to preset rotation angle information and a first position of the target pixel in the first coordinate system, and extracting pixel values of a preset number of adjacent pixel points in the image to be displayed according to an integer part of coordinate values of the second position;
the interpolation module is configured to perform bilinear interpolation according to a decimal part of the coordinate value of the second position by using the extracted pixel values of the preset number of adjacent pixel points to obtain a target pixel value, and store the target pixel value in the first-in first-out memory, where the target pixel value is target display information of the target pixel point;
the write-in module is used for storing the target display information stored in the first-in first-out memory into a target memory;
and the output interface is used for inputting the target display information in the target memory to a display screen so as to display each target pixel point in a target display area of the display screen.
11. A computer-readable storage medium, on which a computer program is stored which, when being executed by a processor, carries out the steps of the method according to any one of claims 1 to 8.
12. An electronic device, comprising: a display screen, and an image display control system as claimed in claim 9 or 10.
CN202110286486.XA 2021-03-17 2021-03-17 Image display control method, system, readable storage medium and electronic device Pending CN115129278A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202110286486.XA CN115129278A (en) 2021-03-17 2021-03-17 Image display control method, system, readable storage medium and electronic device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202110286486.XA CN115129278A (en) 2021-03-17 2021-03-17 Image display control method, system, readable storage medium and electronic device

Publications (1)

Publication Number Publication Date
CN115129278A true CN115129278A (en) 2022-09-30

Family

ID=83374150

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202110286486.XA Pending CN115129278A (en) 2021-03-17 2021-03-17 Image display control method, system, readable storage medium and electronic device

Country Status (1)

Country Link
CN (1) CN115129278A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343714A (en) * 2023-03-01 2023-06-27 业成科技(成都)有限公司 Display screen rotation self-adaption method, device, computer equipment and storage medium
CN117478803A (en) * 2023-12-27 2024-01-30 珠海鸿芯科技有限公司 Method for correcting image of endoscope device, and storage medium

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN116343714A (en) * 2023-03-01 2023-06-27 业成科技(成都)有限公司 Display screen rotation self-adaption method, device, computer equipment and storage medium
CN117478803A (en) * 2023-12-27 2024-01-30 珠海鸿芯科技有限公司 Method for correcting image of endoscope device, and storage medium
CN117478803B (en) * 2023-12-27 2024-04-12 珠海鸿芯科技有限公司 Method for correcting image of endoscope device, and storage medium

Similar Documents

Publication Publication Date Title
JP6048898B2 (en) Information display device, information display method, and information display program
CN111882634B (en) Image rendering method, device, equipment and storage medium
CN102043571A (en) Operation device and method for displaying graphs on financial product quotation screens of mobile devices
CN115129278A (en) Image display control method, system, readable storage medium and electronic device
EP3163423A1 (en) Method and device for setting background of ui control and terminal
US20140245209A1 (en) Controlling display object on display screen
CN102043572A (en) Device and method for displaying and operating screen of mobile device
CN115328429A (en) Display method, display device, electronic apparatus, and storage medium
CN109718554B (en) Real-time rendering method and device and terminal
CN104571796B (en) Information processing method and electronic equipment
CN106775634B (en) Display block display method and device
CN112214156A (en) Touch screen magnifier calling method and device, electronic equipment and storage medium
KR102130361B1 (en) Method and portable electronic device for changing graphics processing resolution according to scenario
CN112348025A (en) Character detection method and device, electronic equipment and storage medium
US8959444B2 (en) Presenting a navigation order of shapes
CN111881230A (en) Rendering method and device for map area and electronic equipment
CN112465692A (en) Image processing method, device, equipment and storage medium
CN115619904A (en) Image processing method, device and equipment
CN104571791A (en) Information processing method and electronic equipment
CN113703653A (en) Image processing method, device, equipment and computer readable storage medium
CN113487704A (en) Method and device for drawing dovetail arrow head, storage medium and terminal equipment
CN113268301A (en) Animation generation method, device, equipment and storage medium
CN111722823A (en) Method and device for self-adapting screen resolution, storage medium and electronic equipment
CN113721818B (en) Image processing method, device, equipment and computer readable storage medium
US11669234B2 (en) Method for processing aerial view, electronic device, and storage medium

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