WO2021135683A1 - 一种显示终端调整方法及显示终端 - Google Patents

一种显示终端调整方法及显示终端 Download PDF

Info

Publication number
WO2021135683A1
WO2021135683A1 PCT/CN2020/128797 CN2020128797W WO2021135683A1 WO 2021135683 A1 WO2021135683 A1 WO 2021135683A1 CN 2020128797 W CN2020128797 W CN 2020128797W WO 2021135683 A1 WO2021135683 A1 WO 2021135683A1
Authority
WO
WIPO (PCT)
Prior art keywords
image
target
ratio
display terminal
adjustment
Prior art date
Application number
PCT/CN2020/128797
Other languages
English (en)
French (fr)
Inventor
李洋
李宏伟
Original Assignee
Tcl科技集团股份有限公司
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 Tcl科技集团股份有限公司 filed Critical Tcl科技集团股份有限公司
Publication of WO2021135683A1 publication Critical patent/WO2021135683A1/zh
Priority to US17/853,941 priority Critical patent/US20220328019A1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1407General aspects irrespective of display type, e.g. determination of decimal point position, display with fixed or driving decimal point, suppression of non-significant zeros
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1454Digital output to display device ; Cooperation and interconnection of the display device with other functional units involving copying of the display data of a local workstation or window to a remote workstation or window so that an actual copy of the data is displayed simultaneously on two or more displays, e.g. teledisplay
    • 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
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/451Execution arrangements for user interfaces
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/005Adapting incoming signals to the display format of the display terminal
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/003Details of a display terminal, the details relating to the control arrangement of the display terminal and to the interfaces thereto
    • G09G5/006Details of the interface to the display terminal
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/37Details of the operation on graphic patterns
    • G09G5/373Details of the operation on graphic patterns for modifying the size of the graphic pattern
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G5/00Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators
    • G09G5/36Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory
    • G09G5/38Control arrangements or circuits for visual indicators common to cathode-ray tube indicators and other visual indicators characterised by the display of a graphic pattern, e.g. using an all-points-addressable [APA] memory with means for controlling the display position
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0407Resolution change, inclusive of the use of different resolutions for different screen areas
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0442Handling or displaying different aspect ratios, or changing the aspect ratio
    • GPHYSICS
    • G09EDUCATION; CRYPTOGRAPHY; DISPLAY; ADVERTISING; SEALS
    • G09GARRANGEMENTS OR CIRCUITS FOR CONTROL OF INDICATING DEVICES USING STATIC MEANS TO PRESENT VARIABLE INFORMATION
    • G09G2340/00Aspects of display data processing
    • G09G2340/04Changes in size, position or resolution of an image
    • G09G2340/0492Change of orientation of the displayed image, e.g. upside-down, mirrored

Definitions

  • This application belongs to the field of terminal technology, and in particular relates to a display terminal adjustment method and a display terminal.
  • the embodiments of the present application provide a display terminal adjustment method and a display terminal, which can solve the problem of a large blank area on the screen when the display terminal performs content display, thereby reducing the utilization rate of the display terminal screen.
  • an embodiment of the present application provides a display terminal adjustment method, including:
  • the first adjustment ratio is an adjustment ratio corresponding to the first display mode of the display terminal
  • the second adjustment ratio is The display terminal is an adjustment ratio corresponding to the second display mode
  • the adjusting the display terminal to the target display mode according to the first target image and the second target image may include:
  • the acquiring image data corresponding to the image to be displayed and screen data corresponding to the display terminal may include:
  • the determining, according to the display interface, the image data corresponding to the image to be displayed and the screen data corresponding to the display terminal may include:
  • the image data corresponding to the image to be displayed is determined according to the screen data and the area data.
  • the obtaining the blank area in the display interface may include:
  • the ARGB value is determined as a target pixel with a preset value, and the area formed by the target pixel is determined as the blank area.
  • the image size includes an original image height and an original image width
  • the screen size includes an original screen height and an original screen width
  • the acquiring the first adjustment ratio and the second adjustment ratio according to the image size and the screen size may include:
  • the first candidate ratio is less than or equal to the second candidate ratio, determining the first candidate ratio as the first adjustment ratio
  • the fourth candidate ratio is determined as the second adjustment ratio.
  • the method may include:
  • the image to be displayed is adjusted by using the target adjustment ratio, the target adjustment angle, and the target adjustment direction, and the adjusted image to be displayed is displayed on the display terminal.
  • an embodiment of the present application provides a display terminal adjustment device, including:
  • An image data acquisition module configured to acquire image data corresponding to the image to be displayed and screen data corresponding to the display terminal, where the image data includes an image size, and the screen data includes a screen size;
  • the adjustment ratio obtaining module is configured to obtain a first adjustment ratio and a second adjustment ratio according to the image size and the screen size, where the first adjustment ratio is the adjustment ratio corresponding to the first display mode of the display terminal, and The second adjustment ratio is an adjustment ratio corresponding to the second display mode of the display terminal;
  • An image adjustment module configured to adjust the image to be displayed based on the first adjustment scale to obtain a first target image, and adjust the image to be displayed based on the second adjustment scale to obtain a second target image;
  • the display terminal adjustment module is configured to adjust the display terminal to a target display mode according to the first target image and the second target image, where the target display mode is the first display mode or the target display mode Is the second display mode.
  • an embodiment of the present application provides a display terminal, including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • a display terminal including a memory, a processor, and a computer program stored in the memory and running on the processor.
  • the processor executes the computer program, To achieve the following steps:
  • the first adjustment ratio is an adjustment ratio corresponding to the first display mode of the display terminal
  • the second adjustment ratio is The display terminal is an adjustment ratio corresponding to the second display mode
  • an embodiment of the present application provides a computer-readable storage medium that stores a computer program that, when executed by a processor, implements any one of the above-mentioned aspects of the first aspect
  • the display terminal adjustment method
  • the embodiments of the present application provide a computer program product, which when the computer program product runs on a display terminal, causes the display terminal to execute the display terminal adjustment method described in any one of the above-mentioned first aspects.
  • the image data includes the image size
  • the screen data includes the screen size; then according to the image size and the screen size Acquire a first adjustment ratio and a second adjustment ratio, where the first adjustment ratio is an adjustment ratio corresponding to the first display mode of the display terminal, and the second adjustment ratio is an adjustment ratio corresponding to the second display mode of the display terminal Adjust the ratio, and adjust the image to be displayed based on the first adjustment ratio to obtain a first target image, and adjust the image to be displayed based on the second adjustment ratio to obtain a second target image; finally, according to the first adjustment ratio A target image and the second target image adjust the display terminal to a target display mode, where the target display mode is the first display mode, or the target display mode is the second display mode, so as to The size and screen size determine the target display mode of the display terminal, reduce the blank area when the display terminal displays the image to be displayed, increase the utilization rate of the display terminal screen
  • FIG. 1 is a schematic flowchart of a display terminal adjustment method provided by an embodiment of the present application
  • FIG. 2 is a schematic flowchart of determining an adjustment ratio in an application scenario of a display terminal adjustment method provided by an embodiment of the present application;
  • Fig. 3 is a schematic diagram of the obtained blank area
  • FIG. 4 is a display effect diagram of an image to be displayed provided by an embodiment of the present application.
  • FIG. 5 is a schematic structural diagram of a display terminal adjustment device provided by an embodiment of the present application.
  • Fig. 6 is a schematic structural diagram of a display terminal provided by an embodiment of the present application.
  • the term “if” can be construed as “when” or “once” or “in response to determination” or “in response to detecting “.
  • the phrase “if determined” or “if detected [described condition or event]” can be interpreted as meaning “once determined” or “in response to determination” or “once detected [described condition or event]” depending on the context ]” or “in response to detection of [condition or event described]”.
  • an embodiment of the present application provides a method for adjusting a display terminal.
  • the execution subject of the embodiments of this application can be a display terminal such as a TV, or a terminal device connected to a display terminal such as a TV.
  • the terminal device includes but not limited to: desktop computers, notebooks, palmtop computers, cloud servers, etc. equipment.
  • description will be made by taking a display terminal such as a TV as the execution subject of the display terminal adjustment method as an example.
  • the display terminal adjustment method may include:
  • the image to be displayed may be content such as pictures, photos or videos displayed on the display terminal by a mobile terminal such as a mobile phone or a tablet computer.
  • the image data corresponding to the image to be displayed may include the image type and image size (such as image width and image height) of the image to be displayed, and the screen data corresponding to the display terminal may include the screen of the display terminal. Dimensions (such as screen width and screen height), etc.
  • the image width is the number of pixels in the horizontal direction of the image
  • the image height is the number of pixels in the vertical direction of the image
  • the screen width is the number of pixels in the horizontal direction of the screen
  • the screen height is the number of pixels in the vertical direction of the screen. The number of pixels.
  • the first display mode may be a landscape display mode
  • the second display mode may be a portrait display mode
  • the first adjustment scale is to display the image to be displayed in the landscape display mode.
  • An adjustment ratio for display in the terminal, and the second adjustment ratio is an adjustment ratio for displaying the image to be displayed on a display terminal in a portrait display mode.
  • the image size includes an original image height and an original image width
  • the screen size includes an original screen height and an original screen width.
  • the original image height refers to the image height without any adjustment of the image
  • the original image width refers to the image width without any adjustment of the image.
  • the acquiring the first adjustment ratio and the second adjustment ratio according to the image size and the screen size may include:
  • S201 Determine a first candidate ratio according to the original screen height and the original image height, and determine a second candidate ratio according to the original screen width and the original image width;
  • the first candidate ratio may be the original screen height/the original image height, that is, the first candidate ratio is adjusted by adjusting the original image height of the image to be displayed, so that it can be filled with priority.
  • the ratio corresponding to the height of the original screen of the display terminal is full.
  • the second candidate ratio may be the original screen width/the original image width, that is, the second candidate ratio is adjusted by adjusting the original image width of the image to be displayed so that it can fill the display with priority.
  • the ratio corresponding to the original screen width of the terminal may be the original screen height/the original image height, that is, the first candidate ratio is adjusted by adjusting the original image height of the image to be displayed, so that it can be filled with priority.
  • the display terminal may determine the first adjustment ratio according to the first candidate ratio and the second candidate ratio. Specifically, to ensure that the adjusted image to be displayed can be completely displayed in the display terminal, the display terminal may determine the smaller one of the first candidate ratio and the second candidate ratio as the The first adjustment ratio. For example, the aforementioned first candidate ratio of 0.67 may be determined as the first adjustment ratio.
  • S204 Determine a third candidate ratio according to the original screen width and the original image height, and determine a fourth candidate ratio according to the original screen height and the original image width;
  • the third candidate ratio may be the original screen width/the original image height, that is, the third candidate ratio is adjusted by adjusting the original image height of the image to be displayed so that it can be prioritized. Fill the proportion corresponding to the original screen width of the display terminal.
  • the fourth candidate ratio may be the original screen height/the original image width, that is, the fourth candidate ratio is adjusted by adjusting the original image width of the image to be displayed so that it can fill the display with priority. The ratio corresponding to the original screen height of the terminal.
  • the display terminal may determine the smaller one of the third candidate ratio and the fourth candidate ratio as the The second adjustment ratio.
  • the aforementioned fourth candidate ratio of 0.5 may be determined as the second adjustment ratio.
  • the image to be displayed may be adjusted based on the first adjustment ratio to obtain the first target image, and may be based on the The second adjustment ratio adjusts the image to be displayed to obtain a second target image.
  • the display terminal can create the first target image corresponding to the first adjustment scale by calling the setScale(r,r) method of the Matrix object and the createBitmap method of the Bitmap object, and can also transform the Matrix by calling the matrix.
  • the setScale(r, r) method of the object and the createBitmap method of the Bitmap object are used to create the second target image corresponding to the second adjustment scale.
  • the display terminal may first obtain the first image area corresponding to the first target image and the second image area corresponding to the second target image; then, it may determine whether the second image area is larger than the first image area. An image area; if the second image area is larger than the first image area, it can be determined that the target display mode is the second display mode, that is, the display terminal can be adjusted to the second display mode; If the second image area is less than or equal to the first image area, it can be determined that the target display mode is the first display mode, that is, the display terminal can be adjusted to the first display mode.
  • the first image area corresponding to the first target image may be the product of the first target image height corresponding to the first target image and the first target image width
  • the first target image height may be the The number of pixels of the first target image in the vertical direction
  • the width of the first target image may be the number of pixels of the first target image in the horizontal direction
  • the second image area corresponding to the second target image may be the product of the second target image height corresponding to the second target image and the second target image width
  • the second target image height may be the The number of pixels of the second target image in the vertical direction
  • the width of the second target image may be the number of pixels of the second target image in the horizontal direction.
  • the display terminal may obtain the display terminal in real time.
  • the display interface refers to the interface on which the image to be displayed is being displayed, and the image data corresponding to the image to be displayed and the screen data corresponding to the display terminal can be determined according to the display interface.
  • the display terminal can determine the screen data corresponding to the display terminal according to the interface data corresponding to the display interface; at the same time, it can acquire the blank area in the display interface, and can determine the area corresponding to the blank area Data; then the image data corresponding to the image to be displayed can be determined according to the screen data and the area data.
  • the display terminal may capture the display interface of the display terminal in full screen, that is, the display terminal may capture the display interface of the display image.
  • a screenshot image is obtained, that is, the screenshot image is an image corresponding to the entire display terminal screen. That is, the image data corresponding to the screenshot image is the interface data corresponding to the display interface, and the interface data is the screen data corresponding to the display terminal, so the image size corresponding to the screenshot image can be regarded as the Display the screen size corresponding to the terminal.
  • the display terminal may perform image analysis on the screenshot image through target detection technology or through pixel point ARGB value analysis technology to obtain what the screenshot image includes.
  • the blank area means that the aspect ratio of the screen of the display terminal is inconsistent with the aspect ratio of the image to be displayed (such as pictures, photos, animations, movies, etc.), causing the display interface of the display terminal to be different.
  • Part of the area does not need to display the image to be displayed, and this part of the area is a blank area.
  • the content area refers to an area in the display interface where the image to be displayed is displayed.
  • the display terminal may detect the content area where the image to be displayed is located through target detection technology, and may determine the area in the screenshot image except the content area where the image to be displayed is located as the blank area.
  • the display terminal may also perform picture analysis on the screenshot image to directly obtain the blank area included in the screenshot image. Specifically, the display terminal may first obtain the ARGB value of each pixel in the screenshot image; then, it may determine that the ARGB value is a target pixel with a preset value, and may determine the area formed by the target pixel as the target pixel. The blank area.
  • the color of the blank area is generally the same as the original color of the screen, wherein the original color may be white or black, etc. All pixels in the blank area have the same ARGB value.
  • the ARGB value of the pixel in the blank area can be determined according to specific conditions, for example, in a scene where the original color of the screen is white, the preset value can be determined Is (255, 255, 255).
  • the display terminal may first obtain the ARGB value of each pixel in the screenshot image.
  • the ARGB value of each pixel may be obtained by calling the android standard interface getPixel, and then The target pixel with the ARGB value of the preset value can be found, and the area formed by the target pixel can be obtained as the blank area.
  • the area may be a rectangular area, that is, the ARGB values of all pixels in the rectangular area are the preset values.
  • the number of the rectangular area may be one or more than one, that is, the blank area may include one or more than one rectangular area.
  • the display terminal may obtain The blank area containing two rectangular areas on both sides, and the middle area is the content area corresponding to the image P to be displayed.
  • the display terminal in order to ensure the accuracy of the blank area acquisition, after the display terminal acquires the screenshot image, it may first use the vertex of the upper left corner of the screenshot image as the origin, and use the vertex of the upper left corner as the origin.
  • the connected horizontal boundary is the positive direction of the horizontal axis and the vertical boundary connected to the upper left corner vertex is the positive direction of the vertical axis to establish a coordinate system, and then the ARGB value of each pixel can be obtained by calling the android standard interface getPixel, and can be found
  • the ARGB value is the target pixel with the preset value; secondly, the rectangular area formed by the target pixel can be obtained, and it can be judged whether the left boundary coordinate of the rectangular area is 0 or whether the right boundary coordinate of the rectangular area is the same as the screenshot image If the coordinates of the other vertical boundary that is not connected to the origin are the same, if the coordinates of the left boundary of the rectangular area are 0 or the coordinates of the right boundary of the rectangular area are the same as the
  • the establishment of a coordinate system with the vertex of the upper left corner of the screenshot image as the origin in the embodiment of the present application is only for schematic explanation, and should not be construed as a limitation of the embodiment of the present application.
  • the lower left vertex, upper right vertex, or lower right vertex of the screenshot image is the origin to establish a coordinate system, and the blank area can be determined according to the established coordinate system.
  • the method of establishing a coordinate system based on the origin of the lower left corner, the upper right corner or the lower right corner to determine the blank area is the same as the method of determining the blank area with the upper left vertex as the origin, and the basic principle is similar, and will not be repeated here.
  • the blank area does not exist in the screenshot image, it can be considered that the image to be displayed is displayed on the display interface of the display terminal in full screen, that is, the screen utilization of the display terminal has been maximized At this time, the display terminal can no longer perform subsequent operations, and directly present the to-be-displayed image in the display terminal in the current presentation mode.
  • the display terminal may determine the blank area according to the screen data (including the screen size) of the display interface and the area data of the blank area (including the image size corresponding to the blank area).
  • the image data corresponding to the image to be displayed can be determined according to the screen size of the display interface and the image size of the blank area
  • the image size corresponding to the image to be displayed can be determined according to the screen size of the display interface and the image size of the blank area.
  • the image size corresponding to the image to be displayed is used to obtain the first adjustment ratio or the second adjustment ratio, so as to adjust the image height and the image width corresponding to the content area according to the first adjustment ratio or the second adjustment ratio.
  • the display terminal may determine that when the image to be displayed is displayed in the first display mode (ie, the horizontal display mode), the display blank of the display terminal can be reduced. At this time, the display terminal can acquire the current angle and current direction of the display terminal, where the current angle and current direction are the angle and direction of the display terminal relative to the horizontal direction, and can be based on the current angle, The current direction and the target angle and target direction corresponding to the landscape display mode are rotated and adjusted on the display terminal to adjust the display terminal to the landscape display mode.
  • the first display mode ie, the horizontal display mode
  • the display terminal When the first image area corresponding to the first target image adjusted by the first adjustment ratio is smaller than the second image area corresponding to the second target image adjusted by the second adjustment ratio, the display terminal It may be determined that when the image to be displayed is displayed in the second display mode (ie, the portrait display mode), the display blank of the display terminal can be reduced. At this time, the display terminal can acquire the current angle and current direction of the display terminal.
  • the current angle and current direction are the angle and direction of the display terminal relative to the horizontal direction, and can be based on the current angle, The current direction and the target angle and target direction corresponding to the portrait display mode are rotated and adjusted on the display terminal to adjust the display terminal to the portrait display mode.
  • the display terminal may synchronize the adjustment and rotation of the image to be displayed during the adjustment and rotation of the display terminal. Specifically, the display terminal may first obtain the original angle and original direction corresponding to the image to be displayed and the target angle and target direction corresponding to the target display mode; then, the original angle and the target angle may be determined according to the original angle and the target angle.
  • the target adjustment angle corresponding to the image to be displayed, and the target adjustment direction corresponding to the image to be displayed is determined according to the original direction and the target direction; and the target corresponding to the image to be displayed may be determined according to the target display mode
  • An adjustment ratio, the target adjustment ratio is the first adjustment ratio, or the target adjustment ratio is the second adjustment ratio; finally, the target adjustment ratio, the target adjustment angle, and the target adjustment direction can be used
  • the image to be displayed is adjusted, and the adjusted image to be displayed can be displayed on the display terminal. For example, in a specific application scenario, a rendering effect diagram of the image to be displayed as shown in FIG. 4 can be obtained.
  • the image data includes the image size
  • the screen data includes the screen size; then according to the image size and the screen size Acquire a first adjustment ratio and a second adjustment ratio, where the first adjustment ratio is an adjustment ratio corresponding to the first display mode of the display terminal, and the second adjustment ratio is an adjustment ratio corresponding to the second display mode of the display terminal Adjust the ratio, and adjust the image to be displayed based on the first adjustment ratio to obtain a first target image, and adjust the image to be displayed based on the second adjustment ratio to obtain a second target image; finally, according to the first adjustment ratio A target image and the second target image adjust the display terminal to a target display mode, the target display mode being the first display mode, or the target display mode being the second display mode, so as to The size and screen size determine the target display mode of the display terminal, reduce the blank area when the display terminal displays the image to be displayed, increase the utilization rate of the display terminal screen,
  • FIG. 5 shows a structural block diagram of a display terminal adjustment device provided in an embodiment of the present application. For ease of description, only parts related to the embodiment of the present application are shown.
  • the display terminal adjustment device may include:
  • the image data acquisition module 501 is configured to acquire image data corresponding to an image to be displayed and screen data corresponding to a display terminal, where the image data includes an image size, and the screen data includes a screen size;
  • the adjustment ratio obtaining module 502 is configured to obtain a first adjustment ratio and a second adjustment ratio according to the image size and the screen size, where the first adjustment ratio is an adjustment ratio corresponding to the first display mode of the display terminal, The second adjustment ratio is an adjustment ratio corresponding to the second display mode of the display terminal;
  • the image adjustment module 503 is configured to adjust the image to be displayed based on the first adjustment scale to obtain a first target image, and adjust the image to be displayed based on the second adjustment scale to obtain a second target image;
  • the display terminal adjustment module 504 is configured to adjust the display terminal to a target display mode according to the first target image and the second target image, where the target display mode is the first display mode or the target display The mode is the second display mode.
  • the display terminal adjustment module 504 may include:
  • An image area acquiring unit configured to acquire a first image area corresponding to the first target image and a second image area corresponding to the second target image;
  • An image area judging unit for judging whether the second image area is larger than the first image area
  • a first adjustment unit configured to adjust the display terminal to the second display mode if the area of the second image is greater than the area of the first image
  • the second adjustment unit is configured to adjust the display terminal to the first display mode if the second image area is less than or equal to the first image area.
  • the image data acquisition module 501 may also be used to acquire the display interface of the display terminal, and determine the image data corresponding to the image to be displayed and the screen data corresponding to the display terminal according to the display interface .
  • the image data acquisition module 501 may include:
  • a screen data determining unit configured to determine screen data corresponding to the display terminal according to the interface data corresponding to the display interface
  • An area data determining unit configured to obtain a blank area in the display interface, and determine the area data corresponding to the blank area
  • the image data acquisition unit is configured to determine image data corresponding to the image to be displayed according to the screen data and the area data.
  • the area data determining unit may include:
  • the ARGB value acquisition subunit is used to acquire the ARGB value of each pixel in the picture corresponding to the display interface
  • the blank area determination sub-unit is used to determine a target pixel with a preset value of ARGB, and determine the area formed by the target pixel as the blank area.
  • the image size includes an original image height and an original image width
  • the screen size includes an original screen height and an original screen width
  • the adjustment ratio obtaining module 502 may include:
  • a first candidate ratio determining unit configured to determine a first candidate ratio according to the original screen height and the original image height, and determine a second candidate ratio according to the original screen width and the original image width;
  • the first adjustment ratio determining unit is configured to determine the first candidate ratio as the first adjustment ratio if the first candidate ratio is less than or equal to the second candidate ratio; if the first candidate ratio is Greater than the second candidate ratio, determine the second candidate ratio as the first adjustment ratio;
  • a third candidate ratio determining unit configured to determine a third candidate ratio according to the original screen width and the original image height, and determine a fourth candidate ratio according to the original screen height and the original image width;
  • the second adjustment ratio determining unit is configured to determine the third candidate ratio as the second adjustment ratio if the third candidate ratio is less than or equal to the fourth candidate ratio; if the third candidate ratio is If the ratio is greater than the fourth candidate ratio, the fourth candidate ratio is determined as the second adjustment ratio.
  • the display terminal adjustment device may further include:
  • An angle direction determining module configured to obtain the original angle and original direction corresponding to the image to be displayed and the target angle and target direction corresponding to the target display mode;
  • the target adjustment angle determination module is configured to determine the target adjustment angle corresponding to the image to be displayed according to the original angle and the target angle, and to determine the target corresponding to the image to be displayed according to the original direction and the target direction Adjust the direction;
  • the target adjustment ratio determination module is configured to determine a target adjustment ratio corresponding to the image to be displayed according to the target display mode, where the target adjustment ratio is the first adjustment ratio, or the target adjustment ratio is the second Adjust the ratio;
  • the to-be-displayed image adjustment module is configured to adjust the to-be-displayed image by using the target adjustment ratio, the target adjustment angle, and the target adjustment direction, and display the adjusted to-be-displayed image on the display terminal.
  • FIG. 6 is a schematic structural diagram of a display terminal provided by an embodiment of the application.
  • the display terminal 6 of this embodiment includes: at least one processor 60 (only one is shown in FIG. 6), a memory 61, and stored in the memory 61 and can be stored in the at least one processor 60
  • the processor 60 executes the computer program 62, the steps in any of the foregoing embodiments of the television content presentation method are implemented.
  • the display terminal 6 may be a computing device such as a desktop computer, a notebook, a palmtop computer, and a cloud server.
  • the display terminal may include, but is not limited to, a processor 60 and a memory 61.
  • FIG. 6 is only an example of the display terminal 6 and does not constitute a limitation on the display terminal 6. It may include more or less components than shown in the figure, or a combination of certain components, or different components. , For example, can also include input and output devices, network access devices, and so on.
  • the processor 60 may be a central processing unit (Central Processing Unit, CPU), and the processor 60 may also be other general-purpose processors, digital signal processors (Digital Signal Processors, DSPs), and application specific integrated circuits (Application Specific Integrated Circuits). Integrated Circuit, ASIC), Field-Programmable Gate Array (Field-Programmable Gate Array, FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc.
  • the general-purpose processor may be a microprocessor or the processor may also be any conventional processor or the like.
  • the memory 61 may be an internal storage unit of the display terminal 6 in some embodiments, such as a hard disk or a memory of the display terminal 6. In other embodiments, the memory 61 may also be an external storage device of the display terminal 6, such as a plug-in hard disk equipped on the display terminal 6, a smart memory card (Smart Media Card, SMC), and a secure digital (Secure Digital, SD) card, flash card (Flash Card), etc. Further, the memory 61 may also include both an internal storage unit of the display terminal 6 and an external storage device.
  • the memory 61 is used to store an operating system, an application program, a boot loader (BootLoader), data, and other programs, such as the program code of the computer program. The memory 61 can also be used to temporarily store data that has been output or will be output.
  • the embodiments of the present application also provide a computer-readable storage medium, the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the steps in each of the foregoing method embodiments can be implemented.
  • the embodiments of the present application provide a computer program product.
  • the steps in the foregoing method embodiments can be implemented when the display terminal is executed.
  • the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer readable storage medium.
  • the computer program can be stored in a computer-readable storage medium.
  • the computer program can be stored in a computer-readable storage medium.
  • the steps of the foregoing method embodiments can be implemented.
  • the computer program includes computer program code, and the computer program code may be in the form of source code, object code, executable file, or some intermediate forms.
  • the computer-readable medium may include at least: any entity or device capable of carrying the computer program code to the device/display terminal, recording medium, computer memory, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), electrical carrier signals, telecommunications signals, and software distribution media.
  • ROM read-only memory
  • RAM random access memory
  • electrical carrier signals telecommunications signals
  • software distribution media Such as U disk, mobile hard disk, floppy disk or CD-ROM, etc.
  • computer-readable media cannot be electrical carrier signals and telecommunication signals.
  • the disclosed device/display terminal and method may be implemented in other ways.
  • the device/display terminal embodiments described above are merely illustrative.
  • the division of the modules or units is only a logical function division, and there may be other divisions in actual implementation, such as multiple units.
  • components can be combined or integrated into another system, or some features can be omitted or not implemented.
  • the displayed or discussed mutual coupling or direct coupling or communication connection may be indirect coupling or communication connection through some interfaces, devices or units, and may be in electrical, mechanical or other forms.
  • the units described as separate components may or may not be physically separated, and the components displayed as units may or may not be physical units, that is, they may be located in one place, or they may be distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the objectives of the solutions of the embodiments.

Landscapes

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

Abstract

本申请适用于属于终端技术领域,尤其涉及显示终端调整方法及显示终端,所述显示终端调整方法包括获取待显示图像对应的图像数据和显示终端对应的屏幕数据,图像数据包括图像尺寸,屏幕数据包括屏幕尺寸;根据图像尺寸和屏幕尺寸获取第一调整比例和第二调整比例,第一调整比例为显示终端为第一显示模式对应的调整比例,第二调整比例为显示终端为第二显示模式对应的调整比例;分别基于第一调整比例和第二调整比例调整待显示图像,得到第一目标图像和第二目标图像;根据第一目标图像和第二目标图像调整显示终端至目标显示模式,以根据图像尺寸和屏幕尺寸确定显示终端的目标显示模式,减少显示终端显示待显示图像时的空白,提高显示终端屏幕的利用率。

Description

一种显示终端调整方法及显示终端
本申请要求于2019年12月31日在中国专利局提交的、申请号为201911407809.5、发明名称为“一种显示终端调整方法及显示终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本申请属于终端技术领域,尤其涉及一种显示终端调整方法及显示终端。
背景技术
随着智能手机的发展,通过智能手机观看照片或者视频等内容也越来越普及。由于智能手机的屏幕尺寸较小,为获取更好的观看效果,很多人会将智能手机上的照片或者视频等内容投屏至电视等显示终端上观看,但现有的电视等显示终端一般是横屏显示,适合于呈现横屏模式的照片或者视频等内容,而在呈现竖屏模式的照片或者视频等内容时,往往会造成电视等显示终端的屏幕中存在不少空白区域,不仅降低了显示终端屏幕的利用率,而且极大地降低了用户的观看体验。
技术问题
本申请实施例提供了一种显示终端调整方法及显示终端,可以解决显示终端进行内容显示时造成屏幕存在较大空白区域,降低显示终端屏幕的利用率的问题。
技术解决方案
第一方面,本申请实施例提供了一种显示终端调整方法,包括:
获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
在一种可能的实现方式中,所述根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,可以包括:
获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;
判断所述第二图像面积是否大于所述第一图像面积;
若所述第二图像面积大于所述第一图像面积,则调整所述显示终端至所述第二显示模式;
若所述第二图像面积小于或等于所述第一图像面积,则调整所述显示终端至所述第一显示模式。
可选地,所述获取待显示图像对应的图像数据和显示终端对应的屏幕数据,可以包括:
获取所述显示终端的显示界面,并根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
具体地,所述根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据,可以包括:
根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;
获取所述显示界面中的空白区域,并确定所述空白区域对应的区域数据;
根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
可选地,所述获取所述所述显示界面中的空白区域,可以包括:
获取所述显示界面对应的画面中各像素点的ARGB值;
确定ARGB值为预设值的目标像素点,并将所述目标像素点构成的区域确定为所述空白区域。
在一种可能的实现方式中,所述图像尺寸包括原始图像高度和原始图像宽度,所述屏幕尺寸包括原始屏幕高度和原始屏幕宽度;
所述根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,可以包括:
根据所述原始屏幕高度和所述原始图像高度确定第一候选比例,并根据所述原始屏幕宽度和所述原始图像宽度确定第二候选比例;
若所述第一候选比例小于或等于所述第二候选比例,则将所述第一候选比例确定为所述第一调整比例;
若所述第一候选比例大于所述第二候选比例,则将所述第二候选比例确定为所述第一调整比例;
根据所述原始屏幕宽度和所述原始图像高度确定第三候选比例,并根据所述原始屏幕高度和所述原始图像宽度确定第四候选比例;
若所述第三候选比例小于或等于所述第四候选比例,则将所述第三候选比例确定为所述第二调整比例;
若所述第三候选比例大于所述第四候选比例,则将所述第四候选比例确定为所述第二调整比例。
可选地,在所述根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式之后,可以包括:
获取所述待显示图像对应的原始角度和原始方向以及所述目标显示模式对应的目标角度和目标方向;
根据所述原始角度和所述目标角度确定所述待显示图像对应的目标调整角度,以及根据所述原始方向和所述目标方向确定所述待显示图像对应的目标调整方向;
根据所述目标显示模式确定所述待显示图像对应的目标调整比例,所述目标调整比例为所述第一调整比例,或者所述目标调整比例为所述第二调整比例;
利用所述目标调整比例、所述目标调整角度和所述目标调整方向调整所述待显示图像,并将调整后的所述待显示图像显示在所述显示终端。
第二方面,本申请实施例提供了一种显示终端调整装置,包括:
图像数据获取模块,用于获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
调整比例获取模块,用于根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
图像调整模块,用于基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
显示终端调整模块,用于根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
第三方面,本申请实施例提供了一种显示终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如下步骤:
获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
第四方面,本申请实施例提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时实现上述第一方面中任一项所述的显示终端调整方法。
第五方面,本申请实施例提供了一种计算机程序产品,当计算机程序产品在显示终端上运行时,使得显示终端执行上述第一方面中任一项所述的显示终端调整方法。
有益效果
本申请实施例与现有技术相比存在的有益效果是:
本申请实施例中,首先获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;然后根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例,并基于所述第一调整比例调整所述待显示图像,得到第一目标图像,以及基于所述第二调整比例调整所述待显示图像,得到第二目标图像;最后根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式,以根据图像尺寸和屏幕尺寸确定显示终端的目标显示模式,减少显示终端显示待显示图像时的空白区域,提高显示终端屏幕的利用率,提升用户的观看体验。
附图说明
为了更清楚地说明本申请实施例中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1是本申请一实施例提供的显示终端调整方法的流程示意图;
图2是本申请一实施例提供的显示终端调整方法在一个应用场景中确定调整比例的流程示意图;
图3为获取的空白区域的示意图;
图4是本申请实施例提供的待显示图像的显示效果图;
图5是本申请实施例提供的显示终端调整装置的结构示意图;
图6是本申请实施例提供的显示终端的结构示意图。
本发明的实施方式
以下描述中,为了说明而不是为了限定,提出了诸如特定系统结构、技术之类的具体细节,以便透彻理解本申请实施例。然而,本领域的技术人员应当清楚,在没有这些具体细节的其它实施例中也可以实现本申请。在其它情况中,省略对众所周知的系统、装置、电路以及方法的详细说明,以免不必要的细节妨碍本申请的描述。
应当理解,当在本申请说明书和所附权利要求书中使用时,术语“包括”指示所描述特征、整体、步骤、操作、元素和/或组件的存在,但并不排除一个或多个其它特征、整体、步骤、操作、元素、组件和/或其集合的存在或添加。
还应当理解,在本申请说明书和所附权利要求书中使用的术语“和/或”是指相关联列出的项中的一个或多个的任何组合以及所有可能组合,并且包括这些组合。
如在本申请说明书和所附权利要求书中所使用的那样,术语“如果”可以依据上下文被解释为“当...时”或“一旦”或“响应于确定”或“响应于检测到”。类似地,短语“如果确定”或“如果检测到[所描述条件或事件]”可以依据上下文被解释为意指“一旦确定”或“响应于确定”或“一旦检测到[所描述条件或事件]”或“响应于检测到[所描述条件或事件]”。
另外,在本申请说明书和所附权利要求书的描述中,术语“第一”、“第二”、“第三”等仅用于区分描述,而不能理解为指示或暗示相对重要性。
在本申请说明书中描述的参考“一个实施例”或“一些实施例”等意味着在本申请的一个或多个实施例中包括结合该实施例描述的特定特征、结构或特点。由此,在本说明书中的不同之处出现的语句“在一个实施例中”、“在一些实施例中”、“在其他一些实施例中”、“在另外一些实施例中”等不是必然都参考相同的实施例,而是意味着“一个或多个但不是所有的实施例”,除非是以其他方式另外特别强调。术语“包括”、“包含”、“具有”及它们的变形都意味着“包括但不限于”,除非是以其他方式另外特别强调。
如图1所示,本申请实施例提供了一种显示终端调整方法。本申请实施例的执行主体可以为电视等显示终端,也可以为与电视等显示终端连接的终端设备,所述终端设备包括但不限于:桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。以下将以所述显示终端调整方法的执行主体为电视等显示终端为例进行说明。其中,所述显示终端调整方法可以包括:
S101、获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
可以理解的是,所述待显示图像可以是手机、平板电脑等移动终端投屏至所述显示终端上呈现的图片、照片或者视频等内容。所述待显示图像对应的图像数据则可以包括所述待显示图像的图像类型和图像尺寸(例如图像宽度和图像高度)等,所述显示终端对应的屏幕数据则可以包括所述显示终端的屏幕尺寸(例如屏幕宽度和屏幕高度)等。其中,所述图像宽度为图像在横向上的像素数量,所述图像高度为图像在纵向上的像素数量,所述屏幕宽度为屏幕在横向上的像素数量,所述屏幕高度为屏幕在纵向上的像素数量。
S102、根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
应理解,所述第一显示模式可以为横屏显示模式,所述第二显示模式可以为竖屏显示模式,即所述第一调整比例为将所述待显示图像在横屏显示模式的显示终端中进行显示的调整比例,所述第二调整比例为将所述待显示图像在竖屏显示模式的显示终端中进行显示的调整比例。
在此,所述图像尺寸包括原始图像高度和原始图像宽度,所述屏幕尺寸包括原始屏幕高度和原始屏幕宽度。其中,所述原始图像高度是指图像未进行任何调整时的图像高度,所述原始图像宽度则是指图像未进行任何调整时的图像宽度。
具体地,如图2所示,所述根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,可以包括:
S201、根据所述原始屏幕高度和所述原始图像高度确定第一候选比例,并根据所述原始屏幕宽度和所述原始图像宽度确定第二候选比例;
需要说明的是,所述第一候选比例可以为所述原始屏幕高度/所述原始图像高度,即所述第一候选比例为通过调整所述待显示图像的原始图像高度,以其可以优先填满所述显示终端的原始屏幕高度所对应的比例。所述第二候选比例可以为所述原始屏幕宽度/所述原始图像宽度,即所述第二候选比例为通过调整所述待显示图像的原始图像宽度,以使其可以优先填满所述显示终端的原始屏幕宽度所对应的比例。
例如,当所述待显示图像的原始图像宽度为2400像素,所述待显示图像的原始图像高度为900像素,所述显示终端的原始屏幕宽度为1600像素,所述显示终端的原始屏幕高度为1200像素时,则所述第一候选比例可以为1200/900=1.33,所述第二候选比例可以为1600/2400=0.67。
S202、若所述第一候选比例小于或等于所述第二候选比例,则将所述第一候选比例确定为所述第一调整比例;
S203、若所述第一候选比例大于所述第二候选比例,则将所述第二候选比例确定为所述第一调整比例;
在此,所述显示终端可以根据所述第一候选比例和所述第二候选比例来确定所述第一调整比例。具体地,为确保调整后的待显示图像在所述显示终端中可完整显示,所述显示终端可以将所述第一候选比例和所述第二候选比例中比例较小的一个确定为所述第一调整比例。例如,可以将上述的第一候选比例0.67确定为所述第一调整比例。
S204、根据所述原始屏幕宽度和所述原始图像高度确定第三候选比例,并根据所述原始屏幕高度和所述原始图像宽度确定第四候选比例;
需要说明的是,所述第三候选比例可以为所述原始屏幕宽度/所述原始图像高度,即所述第三候选比例为通过调整所述待显示图像的原始图像高度,以使其可以优先填满所述显示终端的原始屏幕宽度所对应的比例。所述第四候选比例可以为所述原始屏幕高度/所述原始图像宽度,即所述第四候选比例为通过调整所述待显示图像的原始图像宽度,以使其可以优先填满所述显示终端的原始屏幕高度所对应的比例。
例如,当所述待显示图像的原始图像宽度为2400像素,所述待显示图像的原始图像高度为900像素,所述显示终端的原始屏幕宽度为1600像素,所述显示终端的原始屏幕高度为1200像素时,则所述第三候选比例可以为1600/900=1.78,所述第四候选比例可以为1200/2400=0.5。
S205、若所述第三候选比例小于或等于所述第四候选比例,则将所述第三候选比例确定为所述第二调整比例;
S206、若所述第三候选比例大于所述第四候选比例,则将所述第四候选比例确定为所述第二调整比例。
在此,为确保调整后的待显示图像在所述显示终端中可完整显示,所述显示终端可以将所述第三候选比例和所述第四候选比例中比例较小的一个确定为所述第二调整比例。例如,可以将上述的第四候选比例0.5确定为所述第二调整比例。
S103、基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
应理解,所述显示终端获取所述第一调整比例和所述第二调整比例后,则可以基于所述第一调整比例调整所述待显示图像,以得到第一目标图像,并可以基于所述第二调整比例调整所述待显示图像,以得到第二目标图像。
例如,所述显示终端可以通过调用矩阵变换Matrix对象的setScale(r,r)方法和Bitmap对象的createBitmap方法来创建所述第一调整比例对应的第一目标图像,并同样可以通过调用矩阵变换Matrix对象的setScale(r,r)方法和Bitmap对象的createBitmap方法来创建所述第二调整比例对应的第二目标图像。
S104、根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
具体地,所述显示终端可以首先获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;然后可以判断所述第二图像面积是否大于所述第一图像面积;若所述第二图像面积大于所述第一图像面积,则可以确定所述目标显示模式为所述第二显示模式,即可以调整所述显示终端至所述第二显示模式;若所述第二图像面积小于或等于所述第一图像面积,则可以确定所述目标显示模式为第一显示模式,即可以调整所述显示终端至所述第一显示模式。
应理解,所述第一目标图像对应的第一图像面积可以为所述第一目标图像对应的第一目标图像高度与第一目标图像宽度的乘积,所述第一目标图像高度可以为所述第一目标图像在纵向上的像素数量,所述第一目标图像宽度可以为所述第一目标图像在横向上的像素数量。类似地,所述第二目标图像对应的第二图像面积可以为所述第二目标图像对应的第二目标图像高度与第二目标图像宽度的乘积,所述第二目标图像高度可以为所述第二目标图像在纵向上的像素数量,所述第二目标图像宽度可以为所述第二目标图像在横向上的像素数量。
在一种可能的实现方式中,当所述显示终端无法直接获取所述待显示图像的图像尺寸和/或无法获取所述显示终端的屏幕尺寸时,所述显示终端可以实时获取所述显示终端的显示界面,所述显示界面是指正在进行所述待显示图像显示的界面,并可以根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
具体地,所述显示终端可以根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;同时,可以获取所述显示界面中的空白区域,并可以确定所述空白区域对应的区域数据;然后可以根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
示例的,在所述显示终端中进行图片、照片或者视频等待显示图像的显示时,所述显示终端则可以全屏截取所述显示终端正在呈现该显示图像的显示界面,即可以截取所述显示终端屏幕的整个画面,得到截屏图像,也就是说,所述截屏图像为整个显示终端屏幕所对应的图像。即所述截屏图像对应的图像数据即为所述显示界面对应的界面数据,而所述界面数据即为所述显示终端对应的屏幕数据,因此所述截屏图像对应的图像尺寸即可以为所述显示终端对应的屏幕尺寸。
在此,在得到所述截屏图像后,所述显示终端则可以通过目标检测技术或者可以通过像素点ARGB值的分析技术来对所述截屏图像进行图像分析,以获取所述截屏图像所包括的空白区域和所述待显示图像对应的内容区域。其中,所述空白区域是指所述显示终端的屏幕的宽高比与所述待显示图像(如图片、照片、动画和影片等)的宽高比不一致,导致所述显示终端的显示界面有部分区域不需要显示待显示图像,该部分区域即为空白区域。所述内容区域是指所述显示界面中显示所述待显示图像的区域。
例如,所述显示终端可以通过目标检测技术检测出所述待显示图像所在的内容区域,并可以将所述截屏图像中除所述待显示图像所在的内容区域之外的区域确定为所述空白区域。
在一种可能的实现方式中,所述显示终端也可以对所述截屏图像进行图片分析来直接获取所述截屏图像所包括的空白区域。具体地,所述显示终端可以首先获取所述截屏图像中各像素点的ARGB值;然后可以确定ARGB值为预设值的目标像素点,并可以将所述目标像素点构成的区域确定为所述空白区域。
应理解,因所述空白区域为所述显示界面中未呈现内容的区域,因此,所述空白区域的颜色一般与屏幕的原始颜色相同,其中,所述原始颜色可以为白色或者黑色等,即所述空白区域内的所有像素点均具有相同的ARGB值。其中,所述空白区域内的像素点的ARGB值(即上述所述的预设值)可根据具体情况确定,例如,在屏幕的原始颜色为白色的场景中,可以将所述预设值确定为(255,255,255)。
在此,所述显示终端在获取所述截屏图像后,可以首先获取所述截屏图像中各像素点的ARGB值,例如,可以通过调用android标准接口getPixel来获取到各像素点的ARGB值,然后可以找到ARGB值为预设值的目标像素点,并可以获取目标像素点所构成的区域来作为所述空白区域。所述区域可以为矩形区域,即所述矩形区域内的所有像素点的ARGB值均为所述预设值。其中,所述矩形区域的数量可以为一个或者一个以上,即所述空白区域可以包括一个或者一个以上的矩形区域,例如,在一具体应用中,所述显示终端可以获取到如图3所示的包含两边的两个矩形区域的空白区域,而中间区域则为待显示图像P所对应的内容区域。
在一具体应用中,为确保所述空白区域获取的准确性,所述显示终端在获取到所述截屏图像后,可以首先以所述截屏图像的左上角顶点为原点、并以与左上角顶点相连的水平边界为横轴正方向以及以与左上角顶点相连的竖直边界为纵轴正方向建立坐标系,然后可以通过调用android标准接口getPixel来获取到各像素点的ARGB值,并可找到ARGB值为预设值的目标像素点;其次可获取目标像素点所构成的矩形区域,并判断该矩形区域的左边界坐标是否为0或者判断该矩形区域的右边界坐标是否与所述截屏图像中未与所述原点相连的另一竖直边界的坐标相同,若该矩形区域的左边界坐标为0或者该矩形区域的右边界坐标与所述截屏图像中未与所述原点相连的另一竖直边界的坐标相同,则将该矩形区域确定为所述空白区域。
需要说明的是,本申请实施例中以所述截屏图像的左上角顶点为原点建立坐标系仅作示意性解释,不应理解为对本申请实施例的限制,本申请实施例中当然可以所述截屏图像的左下角顶点、右上角顶点或者右下角顶点为原点来建立坐标系,并可根据所建立的坐标系来进行空白区域的确定。其中,根据左下角顶点、右上角顶点或者右下角顶点为原点建立坐标系进行空白区域确定的方式与以左上角顶点为原点进行空白区域确定的方式相同,基本原理相似,在此不再赘述。
应理解,当所述截屏图像中不存在所述空白区域时,可以认为所述待显示图像以全屏显示在所述显示终端的显示界面上,即所述显示终端的屏幕利用率已达到最大化,此时所述显示终端即可不再进行后续的操作,而直接以当前呈现方式在所述显示终端中呈现所述待显示图像。
在此,在确定所述空白区域存在时,所述显示终端则可以根据所述显示界面的屏幕数据(包括屏幕尺寸)和所述空白区域的区域数据(包括空白区域对应的图像尺寸)确定所述待显示图像对应的图像数据,即可以根据所述显示界面的屏幕尺寸和所述空白区域的图像尺寸确定所述待显示图像对应的图像尺寸,并根据所述显示界面的屏幕尺寸和所述待显示图像对应的图像尺寸来获取第一调整比例或者第二调整比例,以根据所述第一调整比例或者第二调整比例来对所述内容区域对应的图像高度和图像宽度进行调整。
可选地,当以所述第一调整比例调整得到的第一目标图像对应的第一图像面积大于或者等于以所述第二调整比例调整得到的第二目标图像对应的第二图像面积时,所述显示终端则可以确定以第一显示模式(即横屏显示模式)显示所述待显示图像时,可以减少所述显示终端的显示空白。此时,所述显示终端则可以获取所述显示终端的当前角度和当前方向,所述当前角度和当前方向为所述显示终端相对于水平方向而言的角度和方向,并可以根据当前角度、当前方向以及横屏显示模式对应的目标角度和目标方向对所述显示终端进行旋转调整,以将所述显示终端调整至横屏显示模式。
而当以所述第一调整比例调整得到的第一目标图像对应的第一图像面积小于以所述第二调整比例调整得到的第二目标图像对应的第二图像面积时,所述显示终端则可以确定以第二显示模式(即竖屏显示模式)显示所述待显示图像时,可以减少所述显示终端的显示空白。此时,所述显示终端则可以获取所述显示终端的当前角度和当前方向,所述当前角度和当前方向为所述显示终端相对于水平方向而言的角度和方向,并可以根据当前角度、当前方向以及竖屏显示模式对应的目标角度和目标方向对所述显示终端进行旋转调整,以将所述显示终端调整至竖屏显示模式。
可以理解的是,为确保所述待显示图像的观看效果,在所述显示终端进行调整旋转的过程中,所述显示终端可对所述待显示图像进行同步调整旋转。具体地,所述显示终端可以首先获取所述待显示图像对应的原始角度和原始方向以及所述目标显示模式对应的目标角度和目标方向;然后可以根据所述原始角度和所述目标角度确定所述待显示图像对应的目标调整角度,以及根据所述原始方向和所述目标方向确定所述待显示图像对应的目标调整方向;并可以根据所述目标显示模式确定所述待显示图像对应的目标调整比例,所述目标调整比例为所述第一调整比例,或者所述目标调整比例为所述第二调整比例;最后可以利用所述目标调整比例、所述目标调整角度和所述目标调整方向调整所述待显示图像,并可以将调整后的所述待显示图像显示在所述显示终端。例如,在一具体应用场景中,可得到如图4所示的待显示图像的呈现效果图。
本申请实施例中,首先获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;然后根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例,并基于所述第一调整比例调整所述待显示图像,得到第一目标图像,以及基于所述第二调整比例调整所述待显示图像,得到第二目标图像;最后根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式,以根据图像尺寸和屏幕尺寸确定显示终端的目标显示模式,减少显示终端显示待显示图像时的空白区域,提高显示终端屏幕的利用率,提升用户的观看体验。
应理解,上述实施例中各步骤的序号的大小并不意味着执行顺序的先后,各过程的执行顺序应以其功能和内在逻辑确定,而不应对本申请实施例的实施过程构成任何限定。
对应于上文实施例所述的显示终端调整方法,图5示出了本申请实施例提供的显示终端调整装置的结构框图,为了便于说明,仅示出了与本申请实施例相关的部分。
参照图5,所述显示终端调整装置,可以包括:
图像数据获取模块501,用于获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
调整比例获取模块502,用于根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
图像调整模块503,用于基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
显示终端调整模块504,用于根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
在一种可能的实现方式中,所述显示终端调整模块504,可以包括:
图像面积获取单元,用于获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;
图像面积判断单元,用于判断所述第二图像面积是否大于所述第一图像面积;
第一调整单元,用于若所述第二图像面积大于所述第一图像面积,则调整所述显示终端至所述第二显示模式;
第二调整单元,用于若所述第二图像面积小于或等于所述第一图像面积,则调整所述显示终端至所述第一显示模式。
可选地,所述图像数据获取模块501,还可以用于获取所述显示终端的显示界面,并根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
具体地,所述图像数据获取模块501,可以包括:
屏幕数据确定单元,用于根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;
区域数据确定单元,用于获取所述显示界面中的空白区域,并确定所述空白区域对应的区域数据;
图像数据获取单元,用于根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
在一种可能的实现方式中,所述区域数据确定单元,可以包括:
ARGB值获取分单元,用于获取所述显示界面对应的画面中各像素点的ARGB值;
空白区域确定分单元,用于确定ARGB值为预设值的目标像素点,并将所述目标像素点构成的区域确定为所述空白区域。
可选地,所述图像尺寸包括原始图像高度和原始图像宽度,所述屏幕尺寸包括原始屏幕高度和原始屏幕宽度;
所述调整比例获取模块502,可以包括:
第一候选比例确定单元,用于根据所述原始屏幕高度和所述原始图像高度确定第一候选比例,并根据所述原始屏幕宽度和所述原始图像宽度确定第二候选比例;
第一调整比例确定单元,用于若所述第一候选比例小于或等于所述第二候选比例,则将所述第一候选比例确定为所述第一调整比例;若所述第一候选比例大于所述第二候选比例,则将所述第二候选比例确定为所述第一调整比例;
第三候选比例确定单元,用于根据所述原始屏幕宽度和所述原始图像高度确定第三候选比例,并根据所述原始屏幕高度和所述原始图像宽度确定第四候选比例;
第二调整比例确定单元,用于若所述第三候选比例小于或等于所述第四候选比例,则将所述第三候选比例确定为所述第二调整比例;若所述第三候选比例大于所述第四候选比例,则将所述第四候选比例确定为所述第二调整比例。
在一种可能的实现方式中,所述显示终端调整装置,还可以包括:
角度方向确定模块,用于获取所述待显示图像对应的原始角度和原始方向以及所述目标显示模式对应的目标角度和目标方向;
目标调整角度确定模块,用于根据所述原始角度和所述目标角度确定所述待显示图像对应的目标调整角度,以及根据所述原始方向和所述目标方向确定所述待显示图像对应的目标调整方向;
目标调整比例确定模块,用于根据所述目标显示模式确定所述待显示图像对应的目标调整比例,所述目标调整比例为所述第一调整比例,或者所述目标调整比例为所述第二调整比例;
待显示图像调整模块,用于利用所述目标调整比例、所述目标调整角度和所述目标调整方向调整所述待显示图像,并将调整后的所述待显示图像显示在所述显示终端。
需要说明的是,上述装置/单元之间的信息交互、执行过程等内容,由于与本申请方法实施例基于同一构思,其具体功能及带来的技术效果,具体可参见方法实施例部分,此处不再赘述。
所属领域的技术人员可以清楚地了解到,为了描述的方便和简洁,仅以上述各功能单元、模块的划分进行举例说明,实际应用中,可以根据需要而将上述功能分配由不同的功能单元、模块完成,即将所述装置的内部结构划分成不同的功能单元或模块,以完成以上描述的全部或者部分功能。实施例中的各功能单元、模块可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中,上述集成的单元既可以采用硬件的形式实现,也可以采用软件功能单元的形式实现。另外,各功能单元、模块的具体名称也只是为了便于相互区分,并不用于限制本申请的保护范围。上述系统中单元、模块的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。
图6为本申请一实施例提供的显示终端的结构示意图。如图6所示,该实施例的显示终端6包括:至少一个处理器60(图6中仅示出一个)、存储器61以及存储在所述存储器61中并可在所述至少一个处理器60上运行的计算机程序62,所述处理器60执行所述计算机程序62时实现上述任意各个电视内容呈现方法实施例中的步骤。
所述显示终端6可以是桌上型计算机、笔记本、掌上电脑及云端服务器等计算设备。该显示终端可包括,但不仅限于,处理器60、存储器61。本领域技术人员可以理解,图6仅仅是显示终端6的举例,并不构成对显示终端6的限定,可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件,例如还可以包括输入输出设备、网络接入设备等。
所述处理器60可以是中央处理单元(Central Processing Unit,CPU),该处理器60还可以是其他通用处理器、数字信号处理器 (Digital Signal Processor,DSP)、专用集成电路 (Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(Field-Programmable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件等。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。
所述存储器61在一些实施例中可以是所述显示终端6的内部存储单元,例如显示终端6的硬盘或内存。所述存储器61在另一些实施例中也可以是所述显示终端6的外部存储设备,例如所述显示终端6上配备的插接式硬盘,智能存储卡(Smart Media Card, SMC),安全数字(Secure Digital, SD)卡,闪存卡(Flash Card)等。进一步地,所述存储器61还可以既包括所述显示终端6的内部存储单元也包括外部存储设备。所述存储器61用于存储操作系统、应用程序、引导装载程序(BootLoader)、数据以及其他程序等,例如所述计算机程序的程序代码等。所述存储器61还可以用于暂时地存储已经输出或者将要输出的数据。
本申请实施例还提供了一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,所述计算机程序被处理器执行时可实现上述各个方法实施例中的步骤。
本申请实施例提供了一种计算机程序产品,当计算机程序产品在显示终端上运行时,使得显示终端执行时可实现上述各个方法实施例中的步骤。
所述集成的单元如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本申请实现上述实施例方法中的全部或部分流程,可以通过计算机程序来指令相关的硬件来完成,所述的计算机程序可存储于一计算机可读存储介质中,该计算机程序在被处理器执行时,可实现上述各个方法实施例的步骤。其中,所述计算机程序包括计算机程序代码,所述计算机程序代码可以为源代码形式、对象代码形式、可执行文件或某些中间形式等。所述计算机可读介质至少可以包括:能够将计算机程序代码携带到装置/显示终端的任何实体或装置、记录介质、计算机存储器、只读存储器(ROM,Read-Only Memory)、随机存取存储器(RAM,Random Access Memory)、电载波信号、电信信号以及软件分发介质。例如U盘、移动硬盘、磁碟或者光盘等。在某些司法管辖区,根据立法和专利实践,计算机可读介质不可以是电载波信号和电信信号。
在上述实施例中,对各个实施例的描述都各有侧重,某个实施例中没有详述或记载的部分,可以参见其它实施例的相关描述。
本领域普通技术人员可以意识到,结合本文中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本申请的范围。
在本申请所提供的实施例中,应该理解到,所揭露的装置/显示终端和方法,可以通过其它的方式实现。例如,以上所描述的装置/显示终端实施例仅仅是示意性的,例如,所述模块或单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通讯连接可以是通过一些接口,装置或单元的间接耦合或通讯连接,可以是电性,机械或其它的形式。
所述作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本实施例方案的目的。
以上所述实施例仅用以说明本申请的技术方案,而非对其限制;尽管参照前述实施例对本申请进行了详细的说明,本领域的普通技术人员应当理解:其依然可以对前述各实施例所记载的技术方案进行修改,或者对其中部分技术特征进行等同替换;而这些修改或者替换,并不使相应技术方案的本质脱离本申请各实施例技术方案的精神和范围,均应包含在本申请的保护范围之内。

Claims (20)

  1. 一种显示终端调整方法,其特征在于,包括:
    获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
    根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
    基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
    根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
  2. 如权利要求1所述的显示终端调整方法,其特征在于,所述根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,包括:
    获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;
    判断所述第二图像面积是否大于所述第一图像面积;
    若所述第二图像面积大于所述第一图像面积,则调整所述显示终端至所述第二显示模式;
    若所述第二图像面积小于或等于所述第一图像面积,则调整所述显示终端至所述第一显示模式。
  3. 如权利要求1所述的显示终端调整方法,其特征在于,所述获取待显示图像对应的图像数据和显示终端对应的屏幕数据,包括:
    获取所述显示终端的显示界面,并根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
  4. 如权利要求3所述的显示终端调整方法,其特征在于,所述根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据,包括:
    根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;
    获取所述显示界面中的空白区域,并确定所述空白区域对应的区域数据;
    根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
  5. 如权利要求4所述的显示终端调整方法,其特征在于,所述获取所述显示界面中的空白区域,包括:
    获取所述显示界面对应的画面中各像素点的ARGB值;
    确定ARGB值为预设值的目标像素点,并将所述目标像素点构成的区域确定为所述空白区域。
  6. 如权利要求1所述的显示终端调整方法,其特征在于,所述图像尺寸包括原始图像高度和原始图像宽度,所述屏幕尺寸包括原始屏幕高度和原始屏幕宽度;
    所述根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,包括:
    根据所述原始屏幕高度和所述原始图像高度确定第一候选比例,并根据所述原始屏幕宽度和所述原始图像宽度确定第二候选比例;
    若所述第一候选比例小于或等于所述第二候选比例,则将所述第一候选比例确定为所述第一调整比例;
    若所述第一候选比例大于所述第二候选比例,则将所述第二候选比例确定为所述第一调整比例;
    根据所述原始屏幕宽度和所述原始图像高度确定第三候选比例,并根据所述原始屏幕高度和所述原始图像宽度确定第四候选比例;
    若所述第三候选比例小于或等于所述第四候选比例,则将所述第三候选比例确定为所述第二调整比例;
    若所述第三候选比例大于所述第四候选比例,则将所述第四候选比例确定为所述第二调整比例。
  7. 如权利要求1至6中任一项所述的显示终端调整方法,其特征在于,在所述根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式之后,包括:
    获取所述待显示图像对应的原始角度和原始方向以及所述目标显示模式对应的目标角度和目标方向;
    根据所述原始角度和所述目标角度确定所述待显示图像对应的目标调整角度,以及根据所述原始方向和所述目标方向确定所述待显示图像对应的目标调整方向;
    根据所述目标显示模式确定所述待显示图像对应的目标调整比例,所述目标调整比例为所述第一调整比例,或者所述目标调整比例为所述第二调整比例;
    利用所述目标调整比例、所述目标调整角度和所述目标调整方向调整所述待显示图像,并将调整后的所述待显示图像显示在所述显示终端。
  8. 一种显示终端调整装置,其特征在于,包括:
    图像数据获取模块,用于获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
    调整比例获取模块,用于根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
    图像调整模块,用于基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
    显示终端调整模块,用于根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
  9. 如权利要求8所述的显示终端调整装置,其特征在于,所述显示终端调整模块,包括:
    图像面积获取单元,用于获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;
    图像面积判断单元,用于判断所述第二图像面积是否大于所述第一图像面积;
    第一调整单元,用于若所述第二图像面积大于所述第一图像面积,则调整所述显示终端至所述第二显示模式;
    第二调整单元,用于若所述第二图像面积小于或等于所述第一图像面积,则调整所述显示终端至所述第一显示模式。
  10. 如权利要求8所述的显示终端调整装置,其特征在于,所述图像数据获取模块,还用于获取所述显示终端的显示界面,并根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
  11. 如权利要求10所述的显示终端调整装置,其特征在于,所述图像数据获取模块,包括:
    屏幕数据确定单元,用于根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;
    区域数据确定单元,用于获取所述显示界面中的空白区域,并确定所述空白区域对应的区域数据;
    图像数据获取单元,用于根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
  12. 如权利要求11所述的显示终端调整装置,其特征在于,所述区域数据确定单元,包括:
    ARGB值获取分单元,用于获取所述显示界面对应的画面中各像素点的ARGB值;
    空白区域确定分单元,用于确定ARGB值为预设值的目标像素点,并将所述目标像素点构成的区域确定为所述空白区域。
  13. 如权利要求8所述的显示终端调整装置,其特征在于,所述图像尺寸包括原始图像高度和原始图像宽度,所述屏幕尺寸包括原始屏幕高度和原始屏幕宽度;
    所述调整比例获取模块,包括:
    第一候选比例确定单元,用于根据所述原始屏幕高度和所述原始图像高度确定第一候选比例,并根据所述原始屏幕宽度和所述原始图像宽度确定第二候选比例;
    第一调整比例确定单元,用于若所述第一候选比例小于或等于所述第二候选比例,则将所述第一候选比例确定为所述第一调整比例;若所述第一候选比例大于所述第二候选比例,则将所述第二候选比例确定为所述第一调整比例;
    第三候选比例确定单元,用于根据所述原始屏幕宽度和所述原始图像高度确定第三候选比例,并根据所述原始屏幕高度和所述原始图像宽度确定第四候选比例;
    第二调整比例确定单元,用于若所述第三候选比例小于或等于所述第四候选比例,则将所述第三候选比例确定为所述第二调整比例;若所述第三候选比例大于所述第四候选比例,则将所述第四候选比例确定为所述第二调整比例。
  14. 如权利要求8至13中任一项所述的显示终端调整装置,其特征在于,还包括:
    角度方向确定模块,用于获取所述待显示图像对应的原始角度和原始方向以及所述目标显示模式对应的目标角度和目标方向;
    目标调整角度确定模块,用于根据所述原始角度和所述目标角度确定所述待显示图像对应的目标调整角度,以及根据所述原始方向和所述目标方向确定所述待显示图像对应的目标调整方向;
    目标调整比例确定模块,用于根据所述目标显示模式确定所述待显示图像对应的目标调整比例,所述目标调整比例为所述第一调整比例,或者所述目标调整比例为所述第二调整比例;
    待显示图像调整模块,用于利用所述目标调整比例、所述目标调整角度和所述目标调整方向调整所述待显示图像,并将调整后的所述待显示图像显示在所述显示终端。
  15. 一种显示终端,包括存储器、处理器以及存储在所述存储器中并可在所述处理器上运行的计算机程序,其特征在于,所述处理器执行所述计算机程序时实现如下步骤:
    获取待显示图像对应的图像数据和显示终端对应的屏幕数据,所述图像数据包括图像尺寸,所述屏幕数据包括屏幕尺寸;
    根据所述图像尺寸和所述屏幕尺寸获取第一调整比例和第二调整比例,所述第一调整比例为所述显示终端为第一显示模式对应的调整比例,所述第二调整比例为所述显示终端为第二显示模式对应的调整比例;
    基于所述第一调整比例调整所述待显示图像,得到第一目标图像,并基于所述第二调整比例调整所述待显示图像,得到第二目标图像;
    根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,所述目标显示模式为所述第一显示模式,或者所述目标显示模式为所述第二显示模式。
  16. 如权利要求15所述的显示终端,其特征在于,所述根据所述第一目标图像和所述第二目标图像调整所述显示终端至目标显示模式,包括:
    获取所述第一目标图像对应的第一图像面积和所述第二目标图像对应的第二图像面积;
    判断所述第二图像面积是否大于所述第一图像面积;
    若所述第二图像面积大于所述第一图像面积,则调整所述显示终端至所述第二显示模式;
    若所述第二图像面积小于或等于所述第一图像面积,则调整所述显示终端至所述第一显示模式。
  17. 如权利要求15所述的显示终端,其特征在于,所述获取待显示图像对应的图像数据和显示终端对应的屏幕数据,包括:
    获取所述显示终端的显示界面,并根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据。
  18. 如权利要求17所述的显示终端,其特征在于,所述根据所述显示界面确定所述待显示图像对应的图像数据和所述显示终端对应的屏幕数据,包括:
    根据所述显示界面对应的界面数据确定所述显示终端对应的屏幕数据;
    获取所述显示界面中的空白区域,并确定所述空白区域对应的区域数据;
    根据所述屏幕数据和所述区域数据确定所述待显示图像对应的图像数据。
  19. 如权利要求18所述的显示终端,其特征在于,所述获取所述显示界面中的空白区域,包括:
    获取所述显示界面对应的画面中各像素点的ARGB值;
    确定ARGB值为预设值的目标像素点,并将所述目标像素点构成的区域确定为所述空白区域。
  20. 一种计算机可读存储介质,所述计算机可读存储介质存储有计算机程序,其特征在于,所述计算机程序被处理器执行时实现如权利要求1至7任一项所述的显示终端调整方法。
PCT/CN2020/128797 2019-12-31 2020-11-13 一种显示终端调整方法及显示终端 WO2021135683A1 (zh)

Priority Applications (1)

Application Number Priority Date Filing Date Title
US17/853,941 US20220328019A1 (en) 2019-12-31 2022-06-30 Display terminal adjustment method and display terminal

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911407809.5A CN113126937B (zh) 2019-12-31 2019-12-31 一种显示终端调整方法及显示终端
CN201911407809.5 2019-12-31

Related Child Applications (1)

Application Number Title Priority Date Filing Date
US17/853,941 Continuation-In-Part US20220328019A1 (en) 2019-12-31 2022-06-30 Display terminal adjustment method and display terminal

Publications (1)

Publication Number Publication Date
WO2021135683A1 true WO2021135683A1 (zh) 2021-07-08

Family

ID=76686392

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/128797 WO2021135683A1 (zh) 2019-12-31 2020-11-13 一种显示终端调整方法及显示终端

Country Status (3)

Country Link
US (1) US20220328019A1 (zh)
CN (1) CN113126937B (zh)
WO (1) WO2021135683A1 (zh)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721879A (zh) * 2021-09-02 2021-11-30 北京城市网邻信息技术有限公司 图像处理方法、装置、设备和计算机可读存储介质

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115048016A (zh) * 2022-06-30 2022-09-13 深圳市沃特沃德信息有限公司 图像的自适应调整方法、装置、设备、可读存储介质
CN115166186A (zh) * 2022-08-08 2022-10-11 广东长天思源环保科技股份有限公司 一种污水处理企业入水口水质在线自动监测系统
CN115942002A (zh) * 2022-12-07 2023-04-07 北京四方通达科技有限公司 视频传输方法、装置、终端及存储介质
CN116029746B (zh) * 2023-03-28 2023-07-04 深圳市湘凡科技有限公司 数据处理方法及相关装置
CN117271043B (zh) * 2023-11-17 2024-02-02 深圳市光速时代科技有限公司 一种基于智能穿戴设备的数据显示方法

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103823620A (zh) * 2014-03-04 2014-05-28 飞天诚信科技股份有限公司 一种屏幕适配的方法和装置
CN104679466A (zh) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 一种图像显示方法、装置及电子设备
CN105068779A (zh) * 2015-08-18 2015-11-18 北京恒华伟业科技股份有限公司 一种显示控制方法及装置
CN109828735A (zh) * 2019-03-27 2019-05-31 上海白泽网络科技有限公司 一种投影屏幕交互方法及装置

Family Cites Families (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4876969B2 (ja) * 2007-02-26 2012-02-15 ソニー株式会社 画像処理システム、情報処理装置、画像処理方法、及びプログラム
KR20120015165A (ko) * 2010-08-11 2012-02-21 엘지전자 주식회사 영상의 깊이감 조절 방법 및 이를 이용하는 이동 단말기
WO2014036741A1 (zh) * 2012-09-10 2014-03-13 华为技术有限公司 图像处理方法和图像处理设备
CN102981793B (zh) * 2012-11-22 2017-02-15 深圳Tcl工业研究院有限公司 一种屏幕同步方法及装置
WO2014188483A1 (ja) * 2013-05-20 2014-11-27 株式会社 東芝 映像信号処理装置および映像信号処理方法
CN108279953B (zh) * 2016-12-30 2021-01-19 法法汽车(中国)有限公司 投屏方法及投屏装置
CN108446085A (zh) * 2018-03-14 2018-08-24 维沃移动通信有限公司 一种投屏显示方法及移动终端
CN109656503A (zh) * 2018-12-11 2019-04-19 惠科股份有限公司 一种拼接屏图像显示的分配方法、分配装置及拼接屏
US11144099B1 (en) * 2018-12-28 2021-10-12 Facebook, Inc. Systems and methods for providing content
CN110262765B (zh) * 2019-06-17 2020-11-10 深圳市炬力北方微电子有限公司 直立影像全屏显示方法、相关设备及系统

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104679466A (zh) * 2013-11-29 2015-06-03 腾讯科技(深圳)有限公司 一种图像显示方法、装置及电子设备
CN103823620A (zh) * 2014-03-04 2014-05-28 飞天诚信科技股份有限公司 一种屏幕适配的方法和装置
CN105068779A (zh) * 2015-08-18 2015-11-18 北京恒华伟业科技股份有限公司 一种显示控制方法及装置
CN109828735A (zh) * 2019-03-27 2019-05-31 上海白泽网络科技有限公司 一种投影屏幕交互方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113721879A (zh) * 2021-09-02 2021-11-30 北京城市网邻信息技术有限公司 图像处理方法、装置、设备和计算机可读存储介质
CN113721879B (zh) * 2021-09-02 2022-09-30 北京城市网邻信息技术有限公司 图像处理方法、装置、设备和计算机可读存储介质

Also Published As

Publication number Publication date
CN113126937A (zh) 2021-07-16
CN113126937B (zh) 2023-08-01
US20220328019A1 (en) 2022-10-13

Similar Documents

Publication Publication Date Title
WO2021135683A1 (zh) 一种显示终端调整方法及显示终端
US11373275B2 (en) Method for generating high-resolution picture, computer device, and storage medium
WO2020207191A1 (zh) 虚拟物体被遮挡的区域确定方法、装置及终端设备
WO2015131787A1 (zh) 一种屏幕适配的方法和装置
US10552941B2 (en) Media content management for a fixed orientation display
WO2020177584A1 (zh) 一种图文排版方法及其相关装置
CN105279006B (zh) 基于Android系统的屏幕截图方法及终端
WO2019101005A1 (zh) 像素补偿方法、装置和终端设备
CN110796664B (zh) 图像处理方法、装置、电子设备及计算机可读存储介质
US11556605B2 (en) Search method, device and storage medium
WO2022193616A1 (zh) 应用页面的展示方法、电子设备及存储介质
CN108932703B (zh) 图片处理方法、图片处理装置及终端设备
US11610285B2 (en) Display method and device
WO2018152710A1 (zh) 图像校正的方法及装置
WO2023197912A1 (zh) 图像的处理方法、装置、设备、存储介质和程序产品
CN108932704B (zh) 图片处理方法、图片处理装置及终端设备
WO2023284503A1 (zh) 全景图像的色调映射方法和装置
CN107329654B (zh) 绘制元素浮层的方法、装置以及计算机可读存储介质
CN109391855B (zh) 显示亮度值的确定方法以及机顶盒
CN113393391B (zh) 图像增强方法、图像增强装置、电子设备和存储介质
US8693042B2 (en) Image copying method and device
CN111784607A (zh) 图像色调映射方法、装置、终端设备及存储介质
CN108335362B (zh) 虚拟场景中的光线控制方法、装置及vr设备
CN113126836B (zh) 一种画面显示方法、存储介质及终端设备
WO2021136310A1 (zh) 一种画面显示方法、存储介质及终端设备

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 20909675

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 20909675

Country of ref document: EP

Kind code of ref document: A1