WO2017101259A1 - 图片显示方法及装置 - Google Patents

图片显示方法及装置 Download PDF

Info

Publication number
WO2017101259A1
WO2017101259A1 PCT/CN2016/084201 CN2016084201W WO2017101259A1 WO 2017101259 A1 WO2017101259 A1 WO 2017101259A1 CN 2016084201 W CN2016084201 W CN 2016084201W WO 2017101259 A1 WO2017101259 A1 WO 2017101259A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
horizontal
interval
vertical
preview
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.)
Ceased
Application number
PCT/CN2016/084201
Other languages
English (en)
French (fr)
Inventor
王云华
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL Digital Technology Co Ltd
Original Assignee
Shenzhen TCL Digital Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL Digital Technology Co Ltd filed Critical Shenzhen TCL Digital Technology Co Ltd
Publication of WO2017101259A1 publication Critical patent/WO2017101259A1/zh
Anticipated expiration legal-status Critical
Ceased legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • H04N21/4355Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen
    • H04N21/4356Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream involving reformatting operations of additional data, e.g. HTML pages on a television screen by altering the spatial resolution, e.g. to reformat additional data on a handheld device, attached to the STB
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/435Processing of additional data, e.g. decrypting of additional data, reconstructing software from modules extracted from the transport stream
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/80Generation or processing of content or additional data by content creator independently of the distribution process; Content per se
    • H04N21/81Monomedia components thereof
    • H04N21/8146Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics
    • H04N21/8153Monomedia components thereof involving graphical data, e.g. 3D object, 2D graphics comprising still images, e.g. texture, background image

Definitions

  • the present invention relates to the field of smart televisions, and in particular, to a picture display method and apparatus.
  • the physical display resolution of traditional TV is single. For example, it is limited to 480i resolution. With the continuous development and update of display technology, the physical resolution of TV is gradually diversified, such as: 480i, 720p, 1080p, 4K (3840*) 2160) Etc. However, the preview images are previewed according to the fixed size of the system image itself.
  • the pixel density of the preview image is too high, resulting in The preview image is densely arranged in the upper left corner of the TV, which seriously affects the preview effect of the icon, which is not conducive to the user to identify and select the relevant preview image;
  • the TV is previewed at a low resolution (for example, 640*480), the preview image will be displayed.
  • the pixel density is too low, and the preview image cannot be completely displayed on the TV. The user cannot query all preview images at once.
  • the main purpose of the present invention is to provide a picture display method, where the picture display method includes:
  • the scaling factor corresponding to the physical resolution, wherein the scaling factor comprises a horizontal scaling value and a vertical scaling value
  • the horizontal scaling value is at a preset ratio to the vertical scaling value.
  • the step of determining the display size of the preview picture according to the acquired scaling factor, the display interval, and the physical resolution, and displaying the preview picture on the display terminal at the display size and the display interval includes:
  • the preview picture is displayed on the display terminal in accordance with the display size and display interval.
  • the present invention also provides a picture display method, the picture display method comprising:
  • the step of acquiring the scaling factor corresponding to the physical resolution comprises:
  • the scaling factor corresponding to the physical resolution is determined according to the number of pixels in the horizontal direction in the physical resolution, wherein the scaling factor includes a horizontal scaling value and a vertical scaling value.
  • the horizontal scaling value is at a preset ratio to the vertical scaling value.
  • the display interval includes a horizontal display interval and a vertical display interval
  • the step of obtaining a display interval between preview images according to the acquired physical resolution and the number of preview pictures includes:
  • the step of determining the display size of the preview picture according to the acquired scaling factor, the display interval, and the physical resolution, and displaying the preview picture on the display terminal at the display size and the display interval includes:
  • the preview picture is displayed on the display terminal in accordance with the display size and display interval.
  • the present invention further provides a picture display device, where the picture display device includes:
  • a first acquiring module configured to acquire a physical resolution of the display terminal and a number of preview pictures
  • a second acquiring module configured to acquire a scaling factor corresponding to the physical resolution
  • a third obtaining module configured to acquire a display interval between the preview images according to the obtained physical resolution and the number of the preview pictures
  • a display module configured to determine a display size of the preview picture according to the acquired scaling factor, display interval, and physical resolution, and display the preview picture on the display terminal according to the display size and the display interval.
  • the second obtaining module is further configured to determine a scaling factor corresponding to the physical resolution according to the number of pixels in a horizontal direction in the physical resolution, where the scaling factor includes a horizontal scaling value and a vertical Scale value.
  • the horizontal scaling value is at a preset ratio to the vertical scaling value.
  • the display interval includes a horizontal display interval and a vertical display interval
  • the third obtaining module includes:
  • a horizontal interval acquiring unit configured to divide the number of pixels in the horizontal direction in the obtained physical resolution by a product of a preset value and the number of the preview pictures, and obtain a horizontal display interval between horizontal directions of the preview picture ;
  • a vertical interval acquiring unit configured to divide the number of pixels in the vertical direction in the obtained physical resolution by a product of a preset value and the number of the preview pictures, and obtain a vertical direction between the preview pictures Vertical display interval.
  • the display module comprises:
  • a horizontal length obtaining unit configured to determine a horizontal display length of the preview picture according to a horizontal scaling value of the scaling factor, a horizontal display interval of the display interval, and a number of pixels in the physical resolution horizontal direction;
  • a vertical length obtaining unit configured to determine a verticality of the preview picture according to a vertical scaling value of the scaling factor, a vertical display interval of the display interval, and a number of pixels in the physical resolution vertical direction Display length
  • a display size obtaining unit configured to obtain a display size of the preview image according to the determined horizontal display length and the vertical display length
  • a display unit configured to display the preview picture on the display terminal according to the display size and the display interval.
  • the invention first obtains the physical resolution of the display terminal and the number of preview pictures, and then obtains a corresponding scaling factor according to the physical resolution; and then obtains the display interval between the preview pictures according to the physical resolution and the number of preview pictures; Determining a display size of the preview image according to the obtained scaling factor, display interval, and physical resolution, and displaying a preview image on the display terminal according to the display size and the display interval, so that the display size of the preview image can be based on the physical resolution and/or the preview image. Corresponding adjustments are made to change the number, and are arranged in the display area of the display terminal with a better display size and display interval, thereby avoiding the pixel density of the preview picture being too high or too low.
  • FIG. 1 is a schematic flow chart of a first embodiment of a picture display method according to the present invention.
  • FIG. 2 is a schematic diagram showing a refinement process of determining a display size of a preview picture according to the acquired scaling factor, display interval, and physical resolution, and displaying the preview picture on the display terminal at the display size and display interval;
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a picture display device according to the present invention.
  • FIG. 4 is a schematic diagram of a refinement function module of the display module of FIG. 3.
  • the present invention provides a picture display method.
  • the picture display method includes:
  • Step S10 Obtain a physical resolution of the display terminal and a number of preview pictures
  • the display terminal can be a smart TV, a computer display, etc., and obtain the physical resolution of the display terminal and the number of preview images, and the physical resolution and the preview image (the preview image can be a preview icon and a picture displayed on the display terminal)
  • the number can be pre-stored in the memory of the display terminal.
  • it can be directly read from the memory of the display terminal, wherein the physical resolution is the highest displayable of the display terminal.
  • the number of pixels, the number of preview pictures is the number of preview pictures to be displayed in the display area of the display terminal.
  • Step S20 Acquire a scaling factor corresponding to the physical resolution according to the obtained physical resolution.
  • Determining a pixel density level of the display terminal according to the number of pixels in the horizontal direction of the acquired physical resolution, and obtaining a scaling factor corresponding to the pixel density level according to the pixel density level; or a vertical direction pixel point according to the acquired physical resolution The number is determined to determine the pixel density level of the terminal, and the scaling factor corresponding to the pixel density level is obtained according to the pixel density level.
  • step S20 includes:
  • Step S21 Determine a scaling factor corresponding to the physical resolution according to the number of pixels in the horizontal direction in the physical resolution, where the scaling factor includes a horizontal scaling value and a vertical scaling value.
  • the pixel density level of the current physical resolution is determined, thereby obtaining a scaling factor corresponding to the pixel density level, and for assisting understanding, the following example will enumerate the pixel density.
  • the classification is divided into three levels of examples:
  • Step S20 includes:
  • Step S201 Acquire a preset first scaling factor when the number of acquired physical resolution horizontal direction pixel points is in a first preset interval, where the first scaling factor includes a first horizontal scaling value and a first vertical scaling value;
  • the horizontal direction and the vertical direction mentioned in the present invention mean that if the display terminal display area is a rectangle, the length direction of the display area is a horizontal direction and the width direction is a vertical direction.
  • the number of the physical resolution horizontal direction pixels is in the first preset interval, determining that the pixel density level of the current display terminal is a low density, acquiring a preset first scaling factor corresponding to the low density, for example, the first The preset interval is [0, 640].
  • the obtained physical resolution is 640*480
  • the pixel density of the current display terminal is determined to be a low density, and a scaling factor corresponding to the low density is obtained, such as a horizontal scaling of the first scaling factor.
  • the value is 4 and the vertical scaling value is 2.
  • Step S202 when the acquired physical resolution horizontal direction pixel number is in the second preset interval, acquiring a preset second scaling factor, where the second scaling factor includes the second horizontal scaling value and the second vertical scaling value;
  • the obtained physical resolution horizontal direction pixel number is in the second preset interval, determining that the pixel density of the current display terminal is the intermediate density, acquiring a preset second scaling factor corresponding to the intermediate density, for example, the second pre- The interval is (640, 1920).
  • the obtained physical resolution is 1024*768
  • the scaling factor corresponding to the intermediate density is obtained, such as the horizontal scaling of the second scaling factor.
  • the value is 8 and the vertical scaling value is 4.
  • the number of pixels in the vertical direction according to the physical resolution can also be compared with the preset interval to determine the scaling factor.
  • Step S203 Acquire a preset third scaling factor when the number of acquired physical resolution horizontal direction pixel points is in a third preset interval, where the third scaling factor includes a third horizontal scaling value and a third vertical scaling value.
  • the obtained physical resolution horizontal direction pixel number is in the third preset interval, determining that the pixel density level of the current display terminal is the advanced density, acquiring a preset third scaling factor corresponding to the advanced density, for example, the third The preset interval is (1920, 3840).
  • the acquired physical resolution is 3840*2160
  • the pixel density of the current display terminal is determined to be an advanced density, and a scaling factor corresponding to the advanced density is obtained, such as a horizontal scaling of the third scaling factor.
  • the value is 12 and the vertical scaling value is 6.
  • the number of pixels in the vertical direction according to the physical resolution can also be compared with the preset interval to determine the scaling factor.
  • the horizontal scaling value is at a preset ratio to the vertical scaling value.
  • the first scaling factor, the second scaling factor, and the third scaling factor have a horizontal scaling value and a vertical scaling value ratio of 2:1. .
  • Step S30 Obtain a display interval between preview images according to the obtained physical resolution and the number of preview pictures.
  • the obtained physical resolution horizontal direction pixel number is divided by 10 times the number of preview images, and the obtained pixel is obtained.
  • the number is the horizontal display interval between the preview images; the same can be used to obtain the vertical display interval between the preview images.
  • the number of pixels in the direction is 640
  • the number of pixels in the vertical direction is 480
  • the number of preview images is 10.
  • the horizontal display interval between preview images is the number of pixels in the horizontal direction of the physical resolution. (640) divided by 10 times the number of preview images (10), that is, the horizontal display spacing between preview images is 6.4 pixels.
  • the vertical display spacing between preview images is 4.8 pixels.
  • step S30 includes:
  • Step S31 dividing the obtained number of physical resolution horizontal direction pixel points by the product of the preset value and the number of preview pictures, and obtaining a horizontal display interval between horizontal directions of the preview picture;
  • Dividing the number of pixels in the horizontal direction of the obtained physical resolution by the product of the preset value and the number of preview pictures, and obtaining a horizontal display interval between the horizontal directions of the preview picture, and the range of the preset value is preferably 5 to 15, preferably Is 10.
  • Step S32 dividing the obtained number of pixels in the vertical direction of the physical resolution by the product of the preset value and the number of preview pictures, and obtaining a vertical display interval between the vertical directions of the preview picture.
  • Dividing the number of pixels in the vertical direction of the obtained physical resolution by the product of the preset value and the number of preview pictures, and obtaining a vertical display interval between the vertical directions of the preview image, and the preset value preferably ranges from 5 to 15, preferably 10.
  • the horizontal display interval and the vertical display interval are acquired before and after, and it is feasible to acquire or arbitrarily acquire the horizontal display interval and the vertical display interval.
  • Step S40 Determine a display size of the preview picture according to the acquired scaling factor, display interval, and physical resolution, and display a preview picture on the display terminal according to the display size and the display interval.
  • Determining the display size of the preview image according to the obtained scaling factor, display interval, and physical resolution for example, by subtracting the preset multiple from the horizontal width of the physical resolution (the preset multiple may be a horizontal scaling value of the scaling factor, or previewing the image)
  • the horizontal display interval of the display interval and then divided by the horizontal scaling value of the scaling factor to obtain the horizontal display length of the preview image; similarly, the vertical display length of the preview image can be obtained, thereby displaying the length according to the horizontal
  • the vertical display length obtains the display size of the preview picture, and finally displays the preview picture in the display area of the display terminal according to the obtained display size and display interval.
  • step 40 includes:
  • Step S41 determining a horizontal display length of the preview picture according to the horizontal scaling value of the scaling factor, the horizontal display interval of the display interval, and the number of pixels in the horizontal direction of the physical resolution;
  • the horizontal display interval of the display interval of the physical resolution horizontal direction pixel minus the horizontal scaling value of the scaling factor
  • the horizontal scaling value of the scaling factor is 4, then the physical resolution horizontal direction pixel number is subtracted from the scaling factor.
  • the horizontal display length of the preview image is 153.6 pixels.
  • Step S42 determining a vertical display length of the preview picture according to a vertical scaling value of the scaling factor, a vertical display interval of the display interval, and a physical resolution vertical pixel number;
  • the difference between the vertical display interval of the display interval of the vertical scaling value of the scaling factor minus the vertical scaling value of the scaling factor may be obtained first, and then the obtained difference is divided by the scaling value of the vertical scaling factor, thereby Calculate the vertical display length of the preview image.
  • the calculation process is exemplified by specific numerical values: the physical resolution is 640*480, the vertical display interval is 4.8 pixels, and the horizontal scaling value is 2, then the physical resolution is first determined by the number of pixels in the vertical direction minus the scaling.
  • Step S43 obtaining a display size of the preview picture according to the determined horizontal display length and the vertical display length;
  • the display size of the preview image is the size of the rectangular area limited by the horizontal display length and the vertical display length.
  • Step S44 displaying a preview picture on the display terminal according to the display size and the display interval.
  • the preview image is displayed in the display size obtained, and is arranged in the display area of the display terminal according to the display interval (horizontal display interval and vertical display interval).
  • the physical resolution of the display terminal and the number of preview pictures are first acquired, and then the corresponding scaling factor is obtained according to the physical resolution; and the preview image is obtained according to the physical resolution and the number of preview pictures. Display interval; finally, the display size of the preview image is determined according to the obtained scaling factor, display interval, and physical resolution, and the preview image is displayed on the display terminal at the display size and display interval, so that the display size of the preview image can be based on the physical resolution and / or the corresponding number of preview pictures are adjusted accordingly, and arranged in the display area of the display terminal with a better display size and display interval, thereby avoiding the pixel density of the preview picture being too high or too low.
  • the present invention further provides a picture display device.
  • the picture display device includes: a first acquisition module 10, a second acquisition module 20, a third acquisition module 30, and Display module 40.
  • the first obtaining module 10 is configured to obtain a physical resolution of the display terminal and a number of preview pictures.
  • the display terminal can be a smart TV, a computer display, etc., and obtain the physical resolution of the display terminal and the number of preview pictures.
  • the physical resolution and the number of preview pictures can be pre-stored in the memory of the display terminal, when the display terminal needs to be acquired.
  • the first obtaining module 10 can directly read from the memory of the display terminal, wherein the physical resolution is the highest displayable number of pixels of the display terminal, and the number of preview pictures is displayed. The number of preview images to be displayed in the terminal display area.
  • the second obtaining module 20 is configured to obtain a scaling factor corresponding to the physical resolution.
  • the second obtaining module 20 determines the pixel density level of the display terminal according to the number of pixels in the horizontal direction of the acquired physical resolution, and obtains a scaling factor corresponding to the pixel density level according to the pixel density level; or according to the acquired physical resolution.
  • the number of pixels in the vertical direction is used to determine the pixel density level of the display terminal, and the scaling factor corresponding to the pixel density level is obtained according to the pixel density level.
  • the second obtaining module 20 is further configured to determine a scaling factor corresponding to the physical resolution according to the number of pixels in the horizontal direction in the physical resolution, wherein the scaling factor comprises a horizontal scaling value and a vertical scaling value.
  • the pixel density level of the current physical resolution is determined, thereby obtaining a scaling factor corresponding to the pixel density level, and for assisting understanding, the following example will enumerate the pixel density.
  • the classification is divided into three levels of examples:
  • the second obtaining module 20 includes:
  • the first scaling acquisition unit 201 is configured to acquire a preset first scaling factor when the acquired physical resolution horizontal direction pixel number is in the first preset interval, where the first scaling factor includes the first horizontal scaling value And a first vertical scaling value;
  • the horizontal direction and the vertical direction mentioned in the present invention mean that if the display terminal display area is a rectangle, the length direction of the display area is a horizontal direction and the width direction is a vertical direction.
  • the first scaling acquisition unit 201 determines that the pixel density level of the current display terminal is a low density, and acquires a preset first zoom corresponding to the low density.
  • the factor for example, the first preset interval is [0, 640], and when the acquired physical resolution is 640*480, the pixel density of the current display terminal is determined to be a low-level density, and a scaling factor corresponding to the low-level density is obtained, such as A scaling factor has a horizontal scaling value of 4 and a vertical scaling value of 2. In addition, it is also possible to compare the number of pixels in the vertical direction according to the physical resolution with the preset interval to determine the scaling factor.
  • the second scaling acquisition unit 202 is configured to acquire a preset second scaling factor when the acquired physical resolution horizontal direction pixel number is in the second preset interval, where the second scaling factor includes the second horizontal scaling value And a second vertical scaling value;
  • the second scaling acquisition unit 202 determines that the pixel density of the current display terminal is the intermediate density, and acquires a preset second scaling factor corresponding to the intermediate density.
  • the second preset interval is (640, 1920).
  • the acquired physical resolution is 1024*768
  • the scaling factor corresponding to the intermediate density is obtained, for example,
  • the horizontal scaling factor of the second scaling factor is 8 and the vertical scaling value is 4.
  • the number of pixels in the vertical direction according to the physical resolution can also be compared with the preset interval to determine the scaling factor.
  • the third scaling acquisition unit 203 is configured to acquire a preset third scaling factor when the acquired physical resolution horizontal direction pixel number is in the third preset interval, where the third scaling factor includes the third horizontal scaling value. And the third vertical scaling value.
  • the third scaling acquisition unit 203 determines that the pixel density level of the current display terminal is the advanced density, and acquires a preset third scaling corresponding to the advanced density.
  • the factor for example, the third preset interval is (1920, 3840).
  • the acquired physical resolution is 3840*2160
  • the scaling factor corresponding to the advanced density is obtained, such as The horizontal scaling factor of the three scaling factors is 12, and the vertical scaling value is 6.
  • the number of pixels in the vertical direction according to the physical resolution can also be compared with the preset interval to determine the scaling factor.
  • the horizontal scaling value is at a preset ratio to the vertical scaling value.
  • the first scaling factor, the second scaling factor, and the third scaling factor have a horizontal scaling value and a vertical scaling value ratio of 2:1. .
  • the third obtaining module 30 is configured to obtain a display interval between preview images according to the obtained physical resolution and the number of preview pictures;
  • the third obtaining module 30 obtains the display interval between the preview images according to the obtained physical resolution and the number of preview images, for example, dividing the obtained physical resolution horizontal direction pixel points by 10 times the number of preview images.
  • the number of pixels obtained is the horizontal display interval between preview images; similarly, the vertical display interval between preview images can be obtained.
  • the following is a specific numerical description, and the physical resolution obtained is 640*480.
  • the number of pixels in the horizontal direction of the physical resolution is 640
  • the number of pixels in the vertical direction is 480
  • the number of preview images is 10, and the horizontal display interval between preview images is the physical resolution level.
  • the number of directional pixels (640) divided by the number of preview images (10), that is, the horizontal display spacing between preview images is 6.4 pixels.
  • the vertical display spacing between preview images is 4.8. Pixel.
  • the display interval includes a horizontal display interval and a vertical display interval
  • the third obtaining module 30 includes:
  • the horizontal interval obtaining unit 31 is configured to divide the number of pixels in the horizontal direction in the acquired physical resolution by the product of the preset value and the number of preview pictures, and obtain a horizontal display interval between the horizontal directions of the preview picture;
  • the horizontal interval acquiring unit 31 divides the obtained physical resolution horizontal direction pixel number by the product of the preset value and the preview picture number, and obtains a horizontal display interval between the horizontal direction of the preview picture, and the preset value range is preferably 5 to 15, preferably 10.
  • the vertical interval obtaining unit 32 is configured to divide the number of pixels in the vertical direction in the acquired physical resolution by the product of the preset value and the number of preview pictures, and obtain a vertical display interval between the vertical directions of the preview picture.
  • the vertical interval obtaining unit 32 divides the obtained physical resolution vertical direction pixel number by the product of the preset value and the preview picture number, and obtains a vertical display interval between the vertical direction of the preview picture, the preset value.
  • the range is preferably from 5 to 15, preferably 10.
  • the horizontal display interval and the vertical display interval are acquired before and after, and it is feasible to acquire or arbitrarily acquire the horizontal display interval and the vertical display interval.
  • the display module 40 is configured to determine a display size of the preview picture according to the acquired scaling factor, display interval, and physical resolution, and display the preview picture on the display terminal according to the display size and the display interval.
  • the display module 40 determines the display size of the preview picture according to the obtained scaling factor, display interval, and physical resolution, for example, by subtracting the preset multiple from the horizontal direction width of the physical resolution (the preset multiple may be a horizontal scaling value of the scaling factor, Or the horizontal display interval of the display interval of the preview image, and then divided by the horizontal scaling value of the scaling factor to obtain the horizontal display length of the preview image; similarly, the vertical display length of the preview image can be obtained, thereby The display length and the vertical display length are used to obtain the display size of the preview picture, and finally the preview picture is displayed in the display area of the display terminal according to the obtained display size and display interval.
  • the preset multiple may be a horizontal scaling value of the scaling factor, Or the horizontal display interval of the display interval of the preview image, and then divided by the horizontal scaling value of the scaling factor to obtain the horizontal display length of the preview image; similarly, the vertical display length of the preview image can be obtained, thereby
  • the display length and the vertical display length are used to obtain the display size of the preview picture,
  • the display module 40 includes:
  • a horizontal length obtaining unit 41 configured to determine a horizontal display length of the preview picture according to a horizontal scaling value of the scaling factor, a horizontal display interval of the display interval, and a physical resolution horizontal direction pixel number;
  • the difference between the horizontal display interval of the display interval of the physical resolution horizontal direction pixel minus the horizontal scaling value of the scaling factor is first obtained, and then the horizontal length obtaining unit 41 divides the obtained difference by the horizontal scaling value of the scaling factor.
  • the horizontal display length of the preview picture is thus calculated.
  • the calculation process is exemplified by specific numerical values: the physical resolution is 640*480, the horizontal display interval is 6.4 pixels, and the horizontal scaling value is 4, then the physical resolution horizontal direction pixel number is subtracted from the scaling factor.
  • a vertical length obtaining unit 42 configured to determine a vertical display length of the preview picture according to a vertical scaling value of the scaling factor, a vertical display interval of the display interval, and a physical resolution vertical pixel number;
  • the difference between the vertical display intervals of the display intervals of the vertical resolution value of the scaling factor minus the vertical scaling value of the scaling factor may be first obtained, and then the vertical length acquisition unit 42 divides the obtained difference by the vertical scaling.
  • the scaled value of the factor to calculate the vertical display length of the preview image.
  • the calculation process is exemplified by specific numerical values: the physical resolution is 640*480, the vertical display interval is 4.8 pixels, and the horizontal scaling value is 2, then the physical resolution is first determined by the number of pixels in the vertical direction minus the scaling.
  • a display size obtaining unit 43 configured to obtain a display size of the preview image according to the determined horizontal display length and the vertical display length;
  • the display size of the preview image is the size of the rectangular area limited by the horizontal display length and the vertical display length.
  • the display unit 44 is configured to display a preview picture on the display terminal according to the display size and the display interval.
  • the display unit 44 displays the preview picture in the obtained display size, and arranges in the display area of the display terminal according to the display interval (the horizontal display interval and the vertical display interval).
  • the physical resolution of the display terminal and the number of preview pictures are first acquired, and then the corresponding scaling factor is obtained according to the physical resolution; and the preview image is obtained according to the physical resolution and the number of preview pictures. Display interval; finally, the display size of the preview image is determined according to the obtained scaling factor, display interval, and physical resolution, and the preview image is displayed on the display terminal at the display size and display interval, so that the display size of the preview image can be based on the physical resolution and / or the corresponding number of preview pictures are adjusted accordingly, and arranged in the display area of the display terminal with a better display size and display interval, thereby avoiding the pixel density of the preview picture being too high or too low.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Computer Graphics (AREA)

Abstract

本发明公开了一种图片显示方法,该方法包括:获取显示终端的物理分辨率和预览图片的个数;获取物理分辨率对应的缩放因子;根据获取的物理分辨率和预览图片的个数,获取预览图片之间的显示间隔;根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,按照显示尺寸和显示间隔在显示终端显示预览图片。本发明还提供一种图片显示装置。本发根据物理分辨率和/或预览图片的个数的变化对预览图片的显示尺寸进行相对应的调整,以较佳的显示尺寸和显示间隔排列在显示终端的显示区域中,避免了预览图片的像素密度过高或过低的问题。

Description

图片显示方法及装置
技术领域
本发明涉及智能电视领域,尤其涉及一种图片显示方法及装置。
背景技术
传统电视的物理显示分辨率单一,比如:只限于480i的分辨率,随着显示技术的不断发展和更新,电视的物理分辨率也逐渐多元化,比如:480i、720p、1080p,4K(3840*2160)等,但是,预览图片都是按照系统图片本身固定的大小预览,一方面,在电视以高分辨率(例如3840*2160)预览显示时,会使预览图片的像素密度过高,而造成预览图片在电视的左上角密集排列,严重影响图标的预览效果,不利于用户识别和选中相关预览图片;一方面,在电视以低分辨率(例如640*480)预览显示时,会使预览图片的像素密度过低,而造成预览图片在电视上无法完全显示,用户无法一次性查询全部预览图片。
发明内容
本发明的主要目的在于提供一种图片显示方法,所述图片显示方法包括:
获取显示终端的物理分辨率和预览图片的个数;
根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值;
将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔,其中所述显示间隔包括水平显示间隔和竖直显示间隔;
将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔;
根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和所述显示间隔在所述显示终端显示所述预览图片。
优选地,所述水平缩放值与所述竖直缩放值成预设比例。
优选地,所述根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并将所述预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤包括:
根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
本发明还提供一种图片显示方法,所述图片显示方法包括:
获取显示终端的物理分辨率和预览图片的个数;
获取所述物理分辨率对应的缩放因子;
根据获取的所述物理分辨率和所述预览图片的个数,获取所述预览图片之间的显示间隔;
根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
优选地,所述获取所述物理分辨率对应的缩放因子的步骤包括:
根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
优选地,所述水平缩放值与所述竖直缩放值成预设比例。
优选地,所述显示间隔包括水平显示间隔和竖直显示间隔,所述根据获取的所述物理分辨率和预览图片的个数,获取预览图片之间的显示间隔的步骤包括:
将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔;
将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔。
优选地,所述根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并将所述预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤包括:
根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
此外,为实现上述目的,本发明还提供一种图片显示装置,所述图片显示装置包括:
第一获取模块,用于获取显示终端的物理分辨率和预览图片的个数;
第二获取模块,用于获取所述物理分辨率对应的缩放因子;
第三获取模块,用于根据获取的所述物理分辨率和所述预览图片的个数,获取所述预览图片之间的显示间隔;
显示模块,用于根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
优选地,所述第二获取模块,还用于根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
优选地,所述水平缩放值与所述竖直缩放值成预设比例。
优选地,所述显示间隔包括水平显示间隔和竖直显示间隔,所述第三获取模块包括:
水平间隔获取单元,用于将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔;
竖直间隔获取单元,用于将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔。
优选地,所述显示模块包括:
水平长度获取单元,用于根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
竖直长度获取单元,用于根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
显示尺寸获取单元,用于根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
显示单元,用于按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
本发明通过先获取显示终端的物理分辨率和预览图片的个数,然后根据物理分辨率获取对应的缩放因子;再根据物理分辨率和预览图片的个数获取预览图片之间的显示间隔;最后根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,并按照显示尺寸和显示间隔在显示终端显示预览图片,从而预览图片的显示尺寸能够根据物理分辨率和/或预览图片的个数的变化而进行相对应的调整,以较佳的显示尺寸和显示间隔排列在显示终端的显示区域中,避免了预览图片的像素密度过高或过低。
附图说明
图1为本发明图片显示方法第一实施例的流程示意图;
图2为图1中根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,并将预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤的细化流程示意图;
图3为本发明图片显示装置第一实施例的功能模块示意图;
图4为图3中显示模块的细化功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种图片显示方法,参照图1,在本发明图片显示方法第一实施例中,该图片显示方法包括:
步骤S10,获取显示终端的物理分辨率和预览图片的个数;
显示终端可以为智能电视、电脑显示器等,获取显示终端的物理分辨率和预览图片的个数,该物理分辨率和预览图片(该预览图片可以是显示终端上显示的预览图标和图片)的个数可以预存在显示终端的存储器中,当需要获取显示终端的物理分辨率和预览图片的个数时,直接从显示终端的存储器中读取即可,其中物理分辨率为显示终端的最高可显示的像素数,预览图片的个数是显示终端显示区域需显示的预览图片的个数。
步骤S20,根据获取的物理分辨率,获取该物理分辨率对应的缩放因子;
根据获取的物理分辨率的水平方向像素点个数来确定显示终端的像素密度等级,并根据像素密度等级获取该像素密度等级对应的缩放因子;或者根据获取的物理分辨率的竖直方向像素点个数来确定显示终端的像素密度等级,并根据像素密度等级获取该像素密度等级对应的缩放因子。
优选地,步骤S20包括:
步骤S21,根据物理分辨率中水平方向像素点个数确定物理分辨率对应的缩放因子,其中,缩放因子包括水平缩放值和竖直缩放值。
通过将物理分辨率中水平像素点个数与预设数值区间进行比较,确定当前物理分辨率的像素密度等级,从而获取该像素密度等级对应的缩放因子,为辅助理解,以下例举将像素密度分级分为三个等级的实施例:
步骤S20包括:
步骤S201,当获取的物理分辨率水平方向像素点个数处于第一预设区间时,获取预设的第一缩放因子,其中,第一缩放因子包括第一水平缩放值和第一竖直缩放值;
本发明中提及的水平方向和竖直方向是指:显示终端显示区域若为矩形,则该显示区域的长度方向为水平方向,宽度方向为竖直方向。当获取的物理分辨率水平方向像素点个数处于第一预设区间时,确定当前显示终端的像素密度等级为低级密度,获取预设的与低级密度对应的第一缩放因子,例如,第一预设区间为[0,640],当获取的物理分辨率为640*480时,则确定当前显示终端的像素密度为低级密度,获取低级密度对应的缩放因子,如第一缩放因子的水平缩放值为4,竖直缩放值为2。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子。
步骤S202,当获取的物理分辨率水平方向像素点个数处于第二预设区间时,获取预设的第二缩放因子,其中,第二缩放因子包括第二水平缩放值和第二竖直缩放值;
当获取的物理分辨率水平方向像素点个数处于第二预设区间时,确定当前显示终端的像素密度为中级密度,获取预设的与中级密度对应的第二缩放因子,例如,第二预设区间为(640,1920],当获取的物理分辨率为1024*768时,则确定当前显示终端的像素密度等级为中级密度,获取中级密度对应的缩放因子,如第二缩放因子的水平缩放值为8,竖直缩放值为4。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子
步骤S203,当获取的物理分辨率水平方向像素点个数处于第三预设区间时,获取预设的第三缩放因子,其中,第三缩放因子包括第三水平缩放值和第三竖直缩放值。
当获取的物理分辨率水平方向像素点个数处于第三预设区间时,确定当前显示终端的像素密度等级为高级密度,获取预设的与高级密度对应的第三缩放因子,例如,第三预设区间为(1920,3840],当获取的物理分辨率为3840*2160时,则确定当前显示终端的像素密度为高级密度,获取高级密度对应的缩放因子,如第三缩放因子的水平缩放值为12,竖直缩放值为6。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子。
优选地,水平缩放值与竖直缩放值成预设比例,例如上述例子中,第一缩放因子、第二缩放因子和第三缩放因子的水平缩放值与竖直缩放值比例均为2:1。
步骤S30,根据获取的物理分辨率和预览图片的个数,获取预览图片之间的显示间隔;
根据获取的物理分辨率和预览图片的个数,获取预览图片之间的显示间隔,例如,将获取的物理分辨率水平方向像素点个数除以10倍预览图片的个数,得出的像素数为预览图片之间的水平显示间隔;同理可得出预览图片之间的竖直显示间隔,以下例举具体数字进行说明,设获取的物理分辨率为640*480,则物理分辨率水平方向像素点个数为640个,竖直方向像素点个数为480个,又设预览图片的个数为10个,则预览图片之间的水平显示间距为物理分辨率水平方向像素点个数(640个)除以10倍预览图片的个数(10个),即预览图片之间的水平显示间距为6.4像素,同理可知预览图片之间的竖直显示间距为4.8像素。
优选地,步骤S30包括:
步骤S31,将获取的物理分辨率水平方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片水平方向之间的水平显示间隔;
将获取的物理分辨率水平方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片水平方向之间的水平显示间隔,该预设值的范围优选为5至15,优选为10。
步骤S32,将获取的物理分辨率竖直方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片竖直方向之间的竖直显示间隔。
将获取的物理分辨率竖直方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片竖直方向之间的竖直显示间隔,该预设值的范围优选为5至15,优选为10。水平显示间隔和竖直显示间隔的获取不分前后,同时获取或者任意先获取水平显示间隔和竖直显示间隔都是可行的。
步骤S40,根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,按照显示尺寸和显示间隔在显示终端显示预览图片。
根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,例如通过物理分辨率的水平方向宽度减去预设倍数(该预设倍数可以为缩放因子的水平缩放值,或者预览图片的个数等)的显示间隔的水平显示间隔,然后除以缩放因子的水平缩放值,得预览图片的水平显示长度;同理可得出预览图片的竖直显示长度,从而根据水平显示长度和竖直显示长度获取预览图片的显示尺寸,最后根据获取的显示尺寸和显示间隔在显示终端的显示区域中显示预览图片。
优选地,参照图2,步骤40包括:
步骤S41,根据缩放因子的水平缩放值、显示间隔的水平显示间隔和物理分辨率水平方向像素点个数,确定预览图片的水平显示长度;
例如先求得物理分辨率水平方向像素点个数减去缩放因子的水平缩放值倍的显示间隔的水平显示间隔之差,然后将所得差除以缩放因子的水平缩放值,从而计算得出预览图片的水平显示长度。以下以具体数值举例说明该计算过程:设物理分辨率为640*480,水平显示间隔为6.4像素,水平缩放值为4,则先求得物理分辨率水平方向像素点个数减去缩放因子的水平缩放值倍的显示间隔的水平显示间隔之差(即640-6.4*4=614.4),然后将所得差除以缩放因子的水平缩放值(即(614.4/4)=153.6),从而计算得出预览图片的水平显示长度为153.6像素。
步骤S42,根据缩放因子的竖直缩放值、显示间隔的竖直显示间隔和物理分辨率竖直方向像素点个数,确定预览图片的竖直显示长度;
可以先求得物理分辨率竖直方向像素点个数减去缩放因子的竖直缩放值倍的显示间隔的竖直显示间隔之差,然后将所得差除以竖直缩放因子的缩放值,从而计算得出预览图片的竖直显示长度。以下以具体数值举例说明该计算过程:设物理分辨率为640*480,竖直显示间隔为4.8像素,水平缩放值为2,则先求得物理分辨率竖直方向像素点个数减去缩放因子的竖直缩放值倍的显示间隔的竖直显示间隔之差(即480-4.8*2=470.4),然后将所得差除以缩放因子的竖直缩放值(即(470.4/2)=235.2),从而计算得出预览图片的水平显示长度为235.2像素。
步骤S43,根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
预览图片的显示尺寸即为水平显示长度和竖直显示长度所限制的矩形区域大小。
步骤S44,按照显示尺寸和显示间隔在显示终端显示预览图片。
将预览图片以获取的显示尺寸显示,并根据显示间隔(水平显示间隔和竖直显示间隔)在显示终端的显示区域进行排列。
在本实施例中,通过先获取显示终端的物理分辨率和预览图片的个数,然后根据物理分辨率获取对应的缩放因子;再根据物理分辨率和预览图片的个数获取预览图片之间的显示间隔;最后根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,并将预览图片以显示尺寸和显示间隔在显示终端显示,从而预览图片的显示尺寸能够根据物理分辨率和/或预览图片的个数的变化而进行相对应的调整,以较佳的显示尺寸和显示间隔排列在显示终端的显示区域中,避免了预览图片的像素密度过高或过低。
本发明还提供一种图片显示装置,参照图3,在本发明图片显示方法第一实施例中,该图片显示装置包括:第一获取模块10、第二获取模块20、第三获取模块30以及显示模块40。
其中,第一获取模块10,用于获取显示终端的物理分辨率和预览图片的个数;
显示终端可以为智能电视、电脑显示器等,获取显示终端的物理分辨率和预览图片的个数,该物理分辨率和预览图片的个数可以预存在显示终端的存储器中,当需要获取显示终端的物理分辨率和预览图片的个数时,第一获取模块10直接从显示终端的存储器中读取即可,其中物理分辨率为显示终端的最高可显示的像素数,预览图片的个数是显示终端显示区域需显示的预览图片的个数。
第二获取模块20,用于获取物理分辨率对应的缩放因子;
第二获取模块20根据获取的物理分辨率的水平方向像素点个数来确定显示终端的像素密度等级,并根据像素密度等级获取该像素密度等级对应的缩放因子;或者根据获取的物理分辨率的竖直方向像素点个数来确定显示终端的像素密度等级,并根据像素密度等级获取该像素密度等级对应的缩放因子。
优选地,第二获取模块20,还用于根据物理分辨率中水平方向像素点个数确定物理分辨率对应的缩放因子,其中,缩放因子包括水平缩放值和竖直缩放值。
通过将物理分辨率中水平像素点个数与预设数值区间进行比较,确定当前物理分辨率的像素密度等级,从而获取该像素密度等级对应的缩放因子,为辅助理解,以下例举将像素密度分级分为三个等级的实施例:
第二获取模块20包括:
第一缩放获取单元201,用于当获取的物理分辨率水平方向像素点个数处于第一预设区间时,获取预设的第一缩放因子,其中,第一缩放因子包括第一水平缩放值和第一竖直缩放值;
本发明中提及的水平方向和竖直方向是指:显示终端显示区域若为矩形,则该显示区域的长度方向为水平方向,宽度方向为竖直方向。当获取的物理分辨率水平方向像素点个数处于第一预设区间时,第一缩放获取单元201确定当前显示终端的像素密度等级为低级密度,获取预设的与低级密度对应的第一缩放因子,例如,第一预设区间为[0,640],当获取的物理分辨率为640*480时,则确定当前显示终端的像素密度为低级密度,获取低级密度对应的缩放因子,如第一缩放因子的水平缩放值为4,竖直缩放值为2。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子。
第二缩放获取单元202,用于当获取的物理分辨率水平方向像素点个数处于第二预设区间时,获取预设的第二缩放因子,其中,第二缩放因子包括第二水平缩放值和第二竖直缩放值;
当获取的物理分辨率水平方向像素点个数处于第二预设区间时,第二缩放获取单元202确定当前显示终端的像素密度为中级密度,获取预设的与中级密度对应的第二缩放因子,例如,第二预设区间为(640,1920],当获取的物理分辨率为1024*768时,则确定当前显示终端的像素密度等级为中级密度,获取中级密度对应的缩放因子,如第二缩放因子的水平缩放值为8,竖直缩放值为4。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子
第三缩放获取单元203,用于当获取的物理分辨率水平方向像素点个数处于第三预设区间时,获取预设的第三缩放因子,其中,第三缩放因子包括第三水平缩放值和第三竖直缩放值。
当获取的物理分辨率水平方向像素点个数处于第三预设区间时,第三缩放获取单元203确定当前显示终端的像素密度等级为高级密度,获取预设的与高级密度对应的第三缩放因子,例如,第三预设区间为(1920,3840],当获取的物理分辨率为3840*2160时,则确定当前显示终端的像素密度为高级密度,获取高级密度对应的缩放因子,如第三缩放因子的水平缩放值为12,竖直缩放值为6。此外,此处也可以依据物理分辨率竖直方向像素点个数与预设区间进行比较,以确定缩放因子。
优选地,水平缩放值与竖直缩放值成预设比例,例如上述例子中,第一缩放因子、第二缩放因子和第三缩放因子的水平缩放值与竖直缩放值比例均为2:1。
第三获取模块30,用于根据获取的物理分辨率和预览图片的个数,获取预览图片之间的显示间隔;
第三获取模块30根据获取的物理分辨率和预览图片的个数,获取预览图片之间的显示间隔,例如,将获取的物理分辨率水平方向像素点个数除以10倍预览图片的个数,得出的像素数为预览图片之间的水平显示间隔;同理可得出预览图片之间的竖直显示间隔,以下例举具体数字进行说明,设获取的物理分辨率为640*480,则物理分辨率水平方向像素点个数为640个,竖直方向像素点个数为480个,又设预览图片的个数为10个,则预览图片之间的水平显示间距为物理分辨率水平方向像素点个数(640个)除以10倍预览图片的个数(10个),即预览图片之间的水平显示间距为6.4像素,同理可知预览图片之间的竖直显示间距为4.8像素。
优选地,所述显示间隔包括水平显示间隔和竖直显示间隔,第三获取模块30包括:
水平间隔获取单元31,用于将获取的物理分辨率中水平方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片水平方向之间的水平显示间隔;
水平间隔获取单元31将获取的物理分辨率水平方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片水平方向之间的水平显示间隔,该预设值的范围优选为5至15,优选为10。
竖直间隔获取单元32,用于将获取的物理分辨率中竖直方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片竖直方向之间的竖直显示间隔。
竖直间隔获取单元32将获取的物理分辨率竖直方向像素点个数除以预设值与预览图片个数的乘积,获取预览图片竖直方向之间的竖直显示间隔,该预设值的范围优选为5至15,优选为10。水平显示间隔和竖直显示间隔的获取不分前后,同时获取或者任意先获取水平显示间隔和竖直显示间隔都是可行的。
显示模块40,用于根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,按照显示尺寸和显示间隔在显示终端显示预览图片。
显示模块40根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,例如通过物理分辨率的水平方向宽度减去预设倍数(该预设倍数可以为缩放因子的水平缩放值,或者预览图片的个数等)的显示间隔的水平显示间隔,然后除以缩放因子的水平缩放值,得预览图片的水平显示长度;同理可得出预览图片的竖直显示长度,从而根据水平显示长度和竖直显示长度获取预览图片的显示尺寸,最后按照获取的显示尺寸和显示间隔在显示终端的显示区域中显示预览图片。
优选地,参照图4,显示模块40包括:
水平长度获取单元41,用于根据缩放因子的水平缩放值、显示间隔的水平显示间隔和物理分辨率水平方向像素点个数,确定预览图片的水平显示长度;
例如先求得物理分辨率水平方向像素点个数减去缩放因子的水平缩放值倍的显示间隔的水平显示间隔之差,然后水平长度获取单元41将所得差除以缩放因子的水平缩放值,从而计算得出预览图片的水平显示长度。以下以具体数值举例说明该计算过程:设物理分辨率为640*480,水平显示间隔为6.4像素,水平缩放值为4,则先求得物理分辨率水平方向像素点个数减去缩放因子的水平缩放值倍的显示间隔的水平显示间隔之差(即640-6.4*4=614.4),然后将所得差除以缩放因子的水平缩放值(即(614.4/4)=153.6),从而计算得出预览图片的水平显示长度为153.6像素。
竖直长度获取单元42,用于根据缩放因子的竖直缩放值、显示间隔的竖直显示间隔和物理分辨率竖直方向像素点个数,确定预览图片的竖直显示长度;
可以先求得物理分辨率竖直方向像素点个数减去缩放因子的竖直缩放值倍的显示间隔的竖直显示间隔之差,然后竖直长度获取单元42将所得差除以竖直缩放因子的缩放值,从而计算得出预览图片的竖直显示长度。以下以具体数值举例说明该计算过程:设物理分辨率为640*480,竖直显示间隔为4.8像素,水平缩放值为2,则先求得物理分辨率竖直方向像素点个数减去缩放因子的竖直缩放值倍的显示间隔的竖直显示间隔之差(即480-4.8*2=470.4),然后将所得差除以缩放因子的竖直缩放值(即(470.4/2)=235.2),从而计算得出预览图片的水平显示长度为235.2像素。
显示尺寸获取单元43,用于根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
预览图片的显示尺寸即为水平显示长度和竖直显示长度所限制的矩形区域大小。
显示单元44,用于按照显示尺寸和显示间隔在显示终端显示预览图片。
显示单元44将预览图片以获取的显示尺寸显示,并根据显示间隔(水平显示间隔和竖直显示间隔)在显示终端的显示区域进行排列。
在本实施例中,通过先获取显示终端的物理分辨率和预览图片的个数,然后根据物理分辨率获取对应的缩放因子;再根据物理分辨率和预览图片的个数获取预览图片之间的显示间隔;最后根据获取的缩放因子、显示间隔和物理分辨率确定预览图片的显示尺寸,并将预览图片以显示尺寸和显示间隔在显示终端显示,从而预览图片的显示尺寸能够根据物理分辨率和/或预览图片的个数的变化而进行相对应的调整,以较佳的显示尺寸和显示间隔排列在显示终端的显示区域中,避免了预览图片的像素密度过高或过低。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其他相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (19)

  1. 一种图片显示方法,其特征在于,所述图片显示方法包括:
    获取显示终端的物理分辨率和预览图片的个数;
    根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值;
    将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔,其中所述显示间隔包括水平显示间隔和竖直显示间隔;
    将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔;
    根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和所述显示间隔在所述显示终端显示所述预览图片。
  2. 如权利要求1所述的图片显示方法,其特征在于,所述水平缩放值与所述竖直缩放值成预设比例。
  3. 如权利要求2所述的图片显示方法,其特征在于,所述根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并将所述预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤包括:
    根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
    根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
    根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
    按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
  4. 如权利要求1所述的图片显示方法,其特征在于,所述根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并将所述预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤包括:
    根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
    根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
    根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
    按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
  5. 一种图片显示方法,其特征在于,所述图片显示方法包括:
    获取显示终端的物理分辨率和预览图片的个数;
    获取所述物理分辨率对应的缩放因子;
    根据获取的所述物理分辨率和所述预览图片的个数,获取所述预览图片之间的显示间隔;
    根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和所述显示间隔在所述显示终端显示所述预览图片。
  6. 如权利要求5所述的图片显示方法,其特征在于,所述获取所述物理分辨率对应的缩放因子的步骤包括:
    根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
  7. 如权利要求6所述的图片显示方法,其特征在于,所述水平缩放值与所述竖直缩放值成预设比例。
  8. 如权利要求5所述的图片显示方法,其特征在于,所述显示间隔包括水平显示间隔和竖直显示间隔,所述根据获取的所述物理分辨率和预览图片的个数,获取预览图片之间的显示间隔的步骤包括:
    将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔;
    将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔。
  9. 如权利要求5所述的图片显示方法,其特征在于,所述根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并将所述预览图片以所述显示尺寸和显示间隔在显示终端显示的步骤包括:
    根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
    根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
    根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
    按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
  10. 如权利要求9所述的图片显示方法,其特征在于,所述获取所述物理分辨率对应的缩放因子的步骤包括:
    根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
  11. 如权利要求10所述的图片显示方法,其特征在于,所述水平缩放值与所述竖直缩放值成预设比例。
  12. 一种图片显示装置,其特征在于,所述图片显示装置包括:
    第一获取模块,用于获取显示终端的物理分辨率和预览图片的个数;
    第二获取模块,用于获取所述物理分辨率对应的缩放因子;
    第三获取模块,用于根据获取的所述物理分辨率和所述预览图片的个数,获取所述预览图片之间的显示间隔;
    显示模块,用于根据获取的缩放因子、显示间隔和物理分辨率确定所述预览图片的显示尺寸,并按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
  13. 如权利要求12所述的图片显示装置,其特征在于,所述第二获取模块,还用于根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
  14. 如权利要求13所述的图片显示装置,其特征在于,所述水平缩放值与所述竖直缩放值成预设比例。
  15. 如权利要求12所述的图片显示装置,其特征在于,所述显示间隔包括水平显示间隔和竖直显示间隔,所述第三获取模块包括:
    水平间隔获取单元,用于将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔;
    竖直间隔获取单元,用于将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔。
  16. 如权利要求12所述的图片显示装置,其特征在于,所述显示模块包括:
    水平长度获取单元,用于根据所述缩放因子的水平缩放值、所述显示间隔的水平显示间隔和所述物理分辨率水平方向像素点个数,确定所述预览图片的水平显示长度;
    竖直长度获取单元,用于根据所述缩放因子的竖直缩放值、所述显示间隔的竖直显示间隔和所述物理分辨率竖直方向像素点个数,确定所述预览图片的竖直显示长度;
    显示尺寸获取单元,用于根据确定的水平显示长度和竖直显示长度获取预览图片的显示尺寸;
    显示单元,用于按照所述显示尺寸和显示间隔在所述显示终端显示所述预览图片。
  17. 如权利要求16所述的图片显示装置,其特征在于,所述第二获取模块,还用于根据所述物理分辨率中水平方向像素点个数确定所述物理分辨率对应的缩放因子,其中,所述缩放因子包括水平缩放值和竖直缩放值。
  18. 如权利要求17所述的图片显示装置,其特征在于,所述水平缩放值与所述竖直缩放值成预设比例。
  19. 如权利要求16所述的图片显示装置,其特征在于,所述显示间隔包括水平显示间隔和竖直显示间隔,所述第三获取模块包括:
    水平间隔获取单元,用于将获取的所述物理分辨率中水平方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片水平方向之间的水平显示间隔;
    竖直间隔获取单元,用于将获取的所述物理分辨率中竖直方向像素点个数除以预设值与所述预览图片个数的乘积,获取所述预览图片竖直方向之间的竖直显示间隔。
PCT/CN2016/084201 2015-12-17 2016-05-31 图片显示方法及装置 Ceased WO2017101259A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510955687.9 2015-12-17
CN201510955687.9A CN105578268B (zh) 2015-12-17 2015-12-17 图片显示方法及装置

Publications (1)

Publication Number Publication Date
WO2017101259A1 true WO2017101259A1 (zh) 2017-06-22

Family

ID=55887856

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084201 Ceased WO2017101259A1 (zh) 2015-12-17 2016-05-31 图片显示方法及装置

Country Status (2)

Country Link
CN (1) CN105578268B (zh)
WO (1) WO2017101259A1 (zh)

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105578268B (zh) * 2015-12-17 2019-03-01 深圳Tcl数字技术有限公司 图片显示方法及装置
CN106528867A (zh) * 2016-12-02 2017-03-22 北京中交兴路车联网科技有限公司 一种图片显示的方法及装置
CN112055244B (zh) * 2020-09-04 2022-06-21 维沃移动通信有限公司 图像获取方法、装置、服务器和电子设备
CN114547504A (zh) * 2022-01-28 2022-05-27 新华三技术有限公司 一种可视化大屏配置方法及装置
CN119851632A (zh) * 2023-10-16 2025-04-18 北京字跳网络技术有限公司 屏幕分辨率的调整方法、装置、设备及存储介质

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1337619A (zh) * 2000-06-23 2002-02-27 国际商业机器公司 自动缩放图标以适合数据处理系统内的一个显示区
US20020044156A1 (en) * 2000-10-17 2002-04-18 International Business Machines Corporation Computer apparatus, display apparatus, display control apparatus, storage medium, program transmission apparatus, and display control method
US20050012763A1 (en) * 2001-09-18 2005-01-20 International Business Machines Corporation Display controller
CN1858843A (zh) * 2005-08-12 2006-11-08 深圳华为移动通信技术有限公司 移动终端中图像自适应缩放的系统及其方法
CN101325040A (zh) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 可调整分辨率的移动终端及移动终端的分辨率调整方法
CN102063258A (zh) * 2010-12-31 2011-05-18 山东大学 一种针对不同尺寸显示终端的图像自适应显示方法
US20130117659A1 (en) * 2011-11-09 2013-05-09 Microsoft Corporation Dynamic Server-Side Image Sizing For Fidelity Improvements
CN105578268A (zh) * 2015-12-17 2016-05-11 深圳Tcl数字技术有限公司 图片显示方法及装置

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH08137658A (ja) * 1994-11-15 1996-05-31 Hitachi Ltd 情報処理装置
CN100481000C (zh) * 2004-09-08 2009-04-22 英业达股份有限公司 视窗及其图标设定系统及方法
CN103186638B (zh) * 2011-12-31 2015-12-02 北大方正集团有限公司 一种图片布局方法及装置
CN104714714A (zh) * 2013-12-11 2015-06-17 酷吧时代科技(北京)有限公司 移动终端桌面的控制方法、装置和移动终端
CN103927143B (zh) * 2014-04-04 2017-04-19 福建星网视易信息系统有限公司 一种基于屏幕分辨率自适应调整界面布局的方法及装置

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1337619A (zh) * 2000-06-23 2002-02-27 国际商业机器公司 自动缩放图标以适合数据处理系统内的一个显示区
US20020044156A1 (en) * 2000-10-17 2002-04-18 International Business Machines Corporation Computer apparatus, display apparatus, display control apparatus, storage medium, program transmission apparatus, and display control method
US20050012763A1 (en) * 2001-09-18 2005-01-20 International Business Machines Corporation Display controller
CN1858843A (zh) * 2005-08-12 2006-11-08 深圳华为移动通信技术有限公司 移动终端中图像自适应缩放的系统及其方法
CN101325040A (zh) * 2008-07-16 2008-12-17 宇龙计算机通信科技(深圳)有限公司 可调整分辨率的移动终端及移动终端的分辨率调整方法
CN102063258A (zh) * 2010-12-31 2011-05-18 山东大学 一种针对不同尺寸显示终端的图像自适应显示方法
US20130117659A1 (en) * 2011-11-09 2013-05-09 Microsoft Corporation Dynamic Server-Side Image Sizing For Fidelity Improvements
CN105578268A (zh) * 2015-12-17 2016-05-11 深圳Tcl数字技术有限公司 图片显示方法及装置

Also Published As

Publication number Publication date
CN105578268A (zh) 2016-05-11
CN105578268B (zh) 2019-03-01

Similar Documents

Publication Publication Date Title
WO2018223418A1 (zh) 一种显示面板检测方法、装置及系统
WO2017148035A1 (zh) 图像处理方法及装置
WO2020130496A1 (en) Display apparatus and control method thereof
WO2017190452A1 (zh) 背光自适应调节方法及装置
WO2019076087A1 (zh) 电视机及其显示图效控制方法、计算机可读存储介质
WO2018223602A1 (zh) 显示终端、画面对比度提高方法及计算机可读存储介质
WO2018103187A1 (zh) 监控装置的监控画面形成方法和系统
WO2016091011A1 (zh) 字幕切换方法及装置
WO2013097487A1 (zh) 简易空中鼠标的实现方法、视频终端及系统
WO2017121066A1 (zh) 应用程序显示方法和系统
WO2017005066A1 (zh) 录制音视频同步时间戳的方法和装置
WO2017215116A1 (zh) 智能电视的拍照方法及系统
WO2018058831A1 (zh) 显示屏背光亮度调节方法及装置
WO2015149588A1 (zh) 手持设备上用户操作模式的识别方法及手持设备
WO2014035113A1 (en) Method of controlling touch function and an electronic device thereof
WO2017107384A1 (zh) 液晶显示器的图像显示方法及液晶显示器
WO2018126888A1 (zh) 电视功能的快捷启动设置方法及装置
WO2017201893A1 (zh) 视频处理方法和装置
WO2018113404A1 (zh) 显示装置的驱动方法、驱动装置及显示装置
WO2017206368A1 (zh) 高动态范围画面切换方法及装置
WO2017005062A1 (zh) 图片帧播放方法和装置
WO2017088427A1 (zh) 音频输出控制方法及装置
WO2017036208A1 (zh) 显示界面中的信息提取方法及系统
WO2017041537A1 (zh) 视频帧率的调节方法及装置
WO2013033923A1 (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: 16874323

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 01.10.2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16874323

Country of ref document: EP

Kind code of ref document: A1