WO2020043109A1 - 一种图片显示方法及装置 - Google Patents

一种图片显示方法及装置 Download PDF

Info

Publication number
WO2020043109A1
WO2020043109A1 PCT/CN2019/102905 CN2019102905W WO2020043109A1 WO 2020043109 A1 WO2020043109 A1 WO 2020043109A1 CN 2019102905 W CN2019102905 W CN 2019102905W WO 2020043109 A1 WO2020043109 A1 WO 2020043109A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
display area
pattern
area
aspect ratio
Prior art date
Application number
PCT/CN2019/102905
Other languages
English (en)
French (fr)
Inventor
徐高峰
杨鲁明
Original Assignee
青岛海信电器股份有限公司
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
Priority claimed from CN201810983650.0A external-priority patent/CN109302629B/zh
Priority claimed from CN201810982020.1A external-priority patent/CN109242761B/zh
Application filed by 青岛海信电器股份有限公司 filed Critical 青岛海信电器股份有限公司
Publication of WO2020043109A1 publication Critical patent/WO2020043109A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image

Definitions

  • the invention relates to the field of electronic technology, and in particular, to a method and a device for displaying pictures.
  • the display of artistic pictures is the superimposed display of picture frames and pictures on the on-screen display (OSD).
  • the display methods are mainly the following three:
  • the picture is scaled in the picture frame.
  • the two edges of the picture are aligned with the two edges in the picture frame and displayed in the center, as shown in Figure 1.
  • the picture is stretched to be displayed in the frame, and the edge of the picture is aligned with the inner edge of the frame, as shown in FIG. 2.
  • the picture is scaled in the picture frame and displayed in the center. There is a certain gap between the picture edge and the inner edge of the picture frame, as shown in Figure 3.
  • the display of the blank area between the picture and the frame is subject to the shape of the picture and the frame.
  • the aspect ratio of the picture and the frame is different, then in the first and third ways, the picture and the frame The width of the blank space between the two sides is different, and the display effect is not beautiful.
  • the picture is displayed in the frame in the second way, the picture will be distorted due to stretching.
  • the present application provides a picture display method and device, which are used to make a blank area between a picture frame of an artistic picture and a picture the same width while ensuring that the picture is not distorted.
  • the picture display area of the picture frame pattern is the first display area of the OSD layer.
  • the picture frame pattern includes a picture frame display area, a blank area, and the picture display area, and the blank area is the picture frame display area.
  • the picture display area, the picture display area is set to be transparent, the picture frame display area and the blank area are set to be opaque;
  • determining the picture pattern in the second display area of the video layer according to the first display area includes:
  • the aspect ratio scaling of the picture pattern so that the area of the picture pattern is not smaller than the area of the picture display area includes:
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area;
  • the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the length of the picture pattern is equal to the width of the picture display area;
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the length of the picture display area.
  • determining the second display area according to an area of the first display area and the picture pattern includes:
  • An embodiment of the present invention further provides a picture display device, including:
  • a determining module configured to determine a first display area of a picture display area of a picture frame pattern on an OSD (on-screen menu-style adjustment) layer, where the picture frame pattern includes a picture frame display area, a blank area, and the picture display area;
  • the blank area is an area between the picture frame display area and the picture display area, the picture display area is set to be transparent, the picture frame display area and the blank area are set to be opaque;
  • a calculation module configured to determine a second display area of a picture pattern on a video layer according to the first display area, so that the projection of the first display area on the video layer is located in the second display area;
  • a display module configured to display the picture frame pattern and the picture pattern.
  • the calculation module is specifically configured to:
  • the calculation module is specifically configured to:
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area;
  • the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, performing aspect ratio scaling on the picture pattern so that the length of the picture pattern is equal to the length of the picture display area;
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the width of the picture display area.
  • the calculation module is specifically configured to:
  • An embodiment of the present invention further provides an electronic device, including:
  • At least one processor At least one processor
  • a memory connected in communication with the at least one processor; wherein,
  • the memory stores instructions executable by the at least one processor, and the instructions are executed by the at least one processor to enable the at least one processor to perform the foregoing method.
  • An embodiment of the present invention further provides a non-transitory computer-readable storage medium, where the non-transitory computer-readable storage medium stores computer instructions, and the computer instructions are used to cause the computer to execute the foregoing method.
  • An embodiment of the present invention further provides a terminal, including: a transceiver, a processor, and a memory;
  • the memory stores one or more executable programs and is used to configure the processor
  • the transceiver is configured to receive a picture pattern sent by a network side
  • the processor is configured to determine that a picture display area of a picture frame pattern is a first display area of an OSD layer, the picture frame pattern includes a picture frame display area, a blank area, and the picture display area, and the blank area Is the area between the picture frame display area and the picture display area, the picture display area is set to be transparent, the picture frame display area and the blank area are set to be opaque; according to the first display area To determine the picture pattern in the second display area of the video layer, so that the projection of the first display area on the video layer is located in the second display area; displaying the picture frame pattern and the picture pattern.
  • the processor is configured to:
  • the processor is configured to:
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area;
  • the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, performing aspect ratio scaling on the picture pattern so that the length of the picture pattern is equal to the length of the picture display area;
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the width of the picture display area.
  • the processor is configured to:
  • the picture frame pattern and the picture pattern of the artistic picture are set on different display layers for display, the picture frame pattern is displayed on the OSD layer, and the picture pattern is displayed on the video layer.
  • the picture frame pattern includes a picture frame display area, a blank area, and a picture display area.
  • the blank area is an area between the picture frame display area and the picture display area. Determine the picture display area of the picture frame pattern in the first display area of the OSD layer, and determine the second display area of the picture pattern in the video layer according to the first display area, so that the projection of the first display area on the video layer is located in the second display area Inside.
  • Set the picture display area to be transparent, the picture frame display area and the blank area to opaque, so that when the picture frame pattern is displayed on the OSD layer and the picture pattern is displayed on the video layer, the picture pattern can be displayed through the picture of the picture frame Display.
  • the blank area in the picture frame pattern can be set to be the same width around the periphery, thereby ensuring the artistic appearance of the artistic picture. Because the projection of the first display area on the video layer is located in the second display area, the picture pattern fills the picture display area of the picture frame pattern, and the aspect ratio of the picture pattern can be stretched to ensure that the picture pattern is not deformed No distortion.
  • FIG. 1 is a schematic diagram of a first picture display mode
  • FIG. 2 is a schematic diagram of a second picture display mode
  • FIG. 3 is a schematic diagram of a third picture display mode
  • FIG. 4 is a schematic flowchart of a picture display method according to an embodiment of the present invention.
  • FIG. 5 is a schematic diagram showing that a position of a picture pattern and a position of a picture display area overlap in an embodiment of the present invention
  • FIG. 6 is a schematic diagram of a length of a picture pattern larger than a length of a picture display area and a width of the picture pattern larger than a width of a picture display area according to an embodiment of the present invention
  • FIG. 7 is a schematic diagram of an aspect ratio of a picture pattern equal to an aspect ratio of a picture display area according to an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of an aspect ratio of a picture pattern that is smaller than an aspect ratio of a picture display area according to an embodiment of the present invention
  • FIG. 9 is a schematic diagram of an aspect ratio of a picture pattern that is greater than an aspect ratio of a picture display area according to an embodiment of the present invention.
  • FIG. 10 is a schematic structural diagram of a picture display device according to an embodiment of the present invention.
  • FIG. 11 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • FIG. 12 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the embodiments of the present invention are described by using a visual device including a display screen.
  • a visual device including a display screen.
  • UE user equipment
  • MS mobile stations
  • terminal terminal
  • Terminal Equipment Terminal Equipment
  • An embodiment of the present invention provides a picture display method. As shown in FIG. 4, a picture display method provided by an embodiment of the present invention includes the following steps:
  • Step 401 Determine that a picture display area of a picture frame pattern is a first display area of an OSD (on-screen menu adjustment) layer.
  • the picture frame pattern includes a picture frame display area, a blank area, and the picture display area.
  • the white area is an area between the picture frame display area and the picture display area, the picture display area is set to be transparent, and the picture frame display area and the blank area are set to be opaque.
  • Step 402 Determine a second display area of the picture pattern on the video layer according to the first display area, so that the projection of the first display area on the video layer is located in the second display area.
  • Step 403 Display the picture frame pattern and the picture pattern.
  • the picture frame pattern and the picture pattern of the artistic picture are set on different display layers for display, the picture frame pattern is displayed on the OSD layer, and the picture pattern is displayed on the video layer.
  • the picture frame pattern includes a picture frame display area, a blank area, and a picture display area.
  • the blank area is an area between the picture frame display area and the picture display area. Determine the picture display area of the picture frame pattern in the first display area of the OSD layer, and determine the second display area of the picture pattern in the video layer according to the first display area, so that the projection of the first display area on the video layer is located in the second display area Inside.
  • the picture display area to be transparent, the picture frame display area and the blank area to opaque, so that when the picture frame pattern is displayed on the OSD layer and the picture pattern is displayed on the video layer, the picture pattern can be displayed through the picture of the picture frame Display.
  • the blank area in the picture frame pattern can be set to be the same width around the periphery to ensure the artistic appearance of the artistic picture. Since the projection of the first display area on the video layer is located in the second display area, the picture pattern fills the picture display area of the picture frame pattern, and the aspect ratio of the picture pattern can be stretched to ensure that the picture pattern does not deform No distortion.
  • setting the picture display area to transparent may include two methods:
  • the attributes of a pixel data include the RGB (color mode) and alpha value of the pixel data.
  • the Alpha value indicates the transparency and translucency of a pixel data.
  • the Alpha value is taken between 0 and 1, where 0 is opaque and 1 is transparent.
  • the Alpha value of the pixel data in the picture display area can be set to 1.
  • the picture frame pattern and the picture pattern are displayed in layers, the picture pattern is displayed on the video layer, and the picture quality of the picture pattern can be adjusted separately to achieve the best display effect.
  • the picture frame pattern of the OSD layer can also be switched independently. When the picture pattern does not change, the display of the picture pattern does not need to be updated due to the switch of the picture frame pattern, which reduces the calculation and drawing process.
  • the position and area of the picture pattern on the video layer need to be determined according to the position and area of the picture display area of the picture frame pattern.
  • the determining a picture pattern in a second display area of a video layer according to the first display area includes:
  • the picture pattern is scaled by the same ratio, so that the area of the picture pattern is not smaller than the area of the picture display area.
  • the second display area is determined according to the area of the first display area and the picture pattern, so that when the picture pattern and the picture frame pattern are superimposed and displayed, the picture pattern can fill the picture display area, and the picture display area of the picture frame pattern is used for display.
  • the specific position of the second display area may be determined according to the content of the picture pattern and the specific position of the first display area.
  • the position of the picture pattern is set to overlap the position of the picture display area, that is, the coordinates of the upper left corner of the picture pattern are the same as the coordinates of the upper left corner of the picture display area.
  • the dotted frame in FIG. Blocked by the picture frame pattern As shown in FIG. 5, the dotted frame in FIG. Blocked by the picture frame pattern.
  • the determining the second display area according to an area of the first display area and the picture pattern includes:
  • the embodiment of the present invention overlaps the center of the first display area with the center of the second display area.
  • the center of the second display area and the area of the picture pattern determine the second display area.
  • the above picture pattern is displayed through a picture display area that is set for transparent display.
  • the area outside the picture display area is blocked by the opaque area in the picture frame pattern to achieve the display effect of the picture pattern being clipped. .
  • the embodiment of the present invention only performs occlusion processing. In this way, when the picture display area of the picture frame pattern is changed, because the picture pattern of the video layer still retains the complete picture data, no cropping has been performed, only The new picture display area can be re-adapted through the stretching and zooming operation without losing part of the data of the picture pattern due to the cropping operation, and no need to re-decode the picture pattern to obtain the complete data.
  • the area of the picture pattern is not smaller than the area of the picture display area, so that the picture pattern completely fills the picture display area. Therefore, the aspect ratio of the picture pattern can be scaled to be longer than the picture display area.
  • the width of the picture pattern is greater than the width of the picture display area, as shown in Figure 6.
  • the second display area of the picture pattern is an area framed by a dotted line 601
  • the first display area of the picture display area is an area framed by a solid line 602. It can be seen that the length of the first display area is longer than that of the second display area. The length of the area.
  • the width of the first display area is greater than the width of the second display area.
  • the length of the first display area is set to be the same as the length of the second display area, or
  • the width of the first display area is set to be the same as the width of the second display area, that is, the area of the first display area is minimized on the premise that the picture pattern can fill the picture display area.
  • the comparison between the picture pattern and the picture display area can include three cases, that is, the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, and the length of the picture pattern The aspect ratio is greater than the aspect ratio of the picture display area.
  • the aspect ratio scaling of the picture pattern so that the area of the picture pattern is not smaller than the area of the picture display area includes:
  • the picture pattern is scaled by an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area.
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area
  • the picture pattern cannot be blocked by the picture frame pattern of the OSD layer after being stretched
  • the area of the picture pattern is equal to the area of the picture display area, that is, the picture pattern and the picture frame.
  • the picture display areas of the patterns overlap, as shown in Figure 7.
  • the picture pattern of the video layer needs to be partially obscured by the picture frame pattern of the OSD layer, and is divided into the following two cases.
  • the aspect ratio scaling of the picture pattern so that the area of the picture pattern is not smaller than the area of the picture display area includes:
  • the picture pattern is scaled by an aspect ratio such that the length of the picture pattern is equal to the length of the picture display area.
  • the display method of the second case is shown in FIG. 8, and the picture pattern is scaled in equal proportions until the length of the picture pattern is equal to the length of the picture display area. At this time, the width of the picture pattern is greater than the width of the picture display area. If the center of the picture pattern is set to coincide with the center of the picture display area, the area where the picture pattern is blocked by the picture frame pattern is an area 801 surrounded by a dotted line and a solid line in FIG. 8.
  • the aspect ratio scaling of the picture pattern so that the area of the picture pattern is not smaller than the area of the picture display area includes:
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the width of the picture display area.
  • the display manner of the third case is shown in FIG. 9, and the picture pattern is scaled in equal proportions until the width of the picture pattern is equal to the width of the picture display area. At this time, the length of the picture pattern is greater than the length of the picture display area. If the center of the picture pattern is set to coincide with the center of the picture display area, the area blocked by the picture pattern by the picture frame pattern is the area 901 surrounded by the dotted line and the solid line in FIG. 9.
  • the aspect ratio of the picture display area is equal to the aspect ratio of the picture pattern.
  • the picture display area of the picture frame pattern is the first display area of the OSD layer. If the length of the TV screen is 1920, the width is 1080, the width of the picture frame in the picture frame pattern is M, the width of the blank is N, and the upper left corner of the screen is used as the origin of the coordinate system, the position of the picture display area (x , Y) and the length l and width w of the picture display area can be calculated according to the following formula:
  • the aspect ratio of the picture display area is equal to the aspect ratio of the picture pattern, and scale the picture pattern in such a way that the length of the picture pattern is equal to the length of the picture display area, and the width of the picture pattern is equal to the width of the picture display area. .
  • the position of the picture display area is equal to the position (x, y) of the picture display area.
  • the picture frame pattern is displayed on the OSD layer, and the picture pattern is displayed at the (x, y) position of the video layer.
  • Embodiment 2 As shown in FIG. 8, the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area.
  • the picture display area of the picture frame pattern is the first display area of the OSD layer.
  • the length of the TV screen is 1920
  • the width is 1080
  • the width of the picture frame in the picture frame pattern is M
  • the width of the blank space is N
  • the position (x, y) of the picture display area and the length and width of the picture display area are based on Equations 1 to 4 are calculated.
  • the picture pattern geometric scaling length and width the length of the image pattern is equal to the length of the image display area, if this time length image pattern is B l, picture
  • the width of the pattern is B w , you need to calculate the position of the picture pattern (B x , B y ).
  • the specific calculation process is as follows:
  • H can be calculated according to the following formula 5:
  • Frame pattern displayed in the OSD layer the displayed image pattern (B x, B y) position of the video layer.
  • Embodiment 3 As shown in FIG. 9, the aspect ratio of the picture pattern is greater than the aspect ratio of the picture display area.
  • the picture display area of the picture frame pattern is the first display area of the OSD layer.
  • the length of the TV screen is 1920
  • the width is 1080
  • the width of the picture frame in the picture frame pattern is M
  • the width of the blank space is N
  • the position (x, y) of the picture display area and the length and width of the picture display area are based on Equations 1 to 4 are calculated.
  • the width of the picture image pattern is equal to the width of the display area, if this time length picture pattern B l, picture
  • the width of the pattern is B w , you need to calculate the position of the picture pattern (B x , B y ). The specific calculation process is as follows:
  • K the width of the occlusion region in FIG. 8 to K, K can be calculated according to the following formula 8:
  • Frame pattern displayed in the OSD layer the displayed image pattern (B x, B y) position of the video layer.
  • An embodiment of the present invention further provides a picture display device, as shown in FIG. 10, including:
  • a determining module 1001 configured to determine a first display area of a picture display area of a picture frame pattern on an OSD (on-screen menu adjustment) layer, where the picture frame pattern includes a picture frame display area, a blank area, and the picture display area;
  • the blank area is an area between the picture frame display area and the picture display area, the picture display area is set to be transparent, the picture frame display area and the blank area are set to be opaque;
  • a computing module 1002 is configured to determine a second display area of a picture pattern on a video layer according to the first display area, so that a projection of the first display area on the video layer is located in the second display area;
  • a display module 1003 is configured to display the picture frame pattern and the picture pattern.
  • calculation module 1002 is specifically configured to:
  • calculation module 1002 is specifically configured to:
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area;
  • the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, performing aspect ratio scaling on the picture pattern so that the length of the picture pattern is equal to the length of the picture display area;
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the width of the picture display area.
  • calculation module 1002 is specifically configured to:
  • the present invention also provides an electronic device, as shown in FIG. 11, including:
  • It includes a processor 1101, a memory 1102, a transceiver 1103, and a bus interface 1104.
  • the processor 1101, the memory 1102, and the transceiver 1103 are connected through a bus interface 1104.
  • the processor 1101 is configured to read a program in the memory 1102 and execute the method shown in FIG. 4.
  • the terminal mainly includes : Transceiver 1201, processor 1202, and memory 1203;
  • the memory 1203 stores one or more executable programs and is used to configure the processor
  • the transceiver 1201 is configured to receive a picture pattern sent by a network side
  • the processor 1202 is configured to determine that a picture display area of a picture frame pattern is a first display area of an OSD layer, the picture frame pattern includes a picture frame display area, a blank area, and the picture display area, and the blank space
  • the area is the area between the picture frame display area and the picture display area, the picture display area is set to be transparent, the picture frame display area and the blank area are set to be opaque; according to the first display Area, determining a second display area of the picture pattern in the video layer, so that the projection of the first display area on the video layer is located in the second display area; displaying the picture frame pattern and the picture pattern.
  • the processor 1202 is configured to:
  • the processor 1202 is configured to:
  • the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display area, scaling the picture pattern in an aspect ratio such that the area of the picture pattern is equal to the area of the picture display area;
  • the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display area, performing aspect ratio scaling on the picture pattern so that the length of the picture pattern is equal to the length of the picture display area;
  • the picture pattern is scaled by an aspect ratio such that the width of the picture pattern is equal to the width of the picture display area.
  • the processor 1202 is configured to:
  • An embodiment of the present application provides a computer program product.
  • the computer program product includes a computing program stored on a non-transitory computer-readable storage medium.
  • the computer program includes program instructions. When the program instructions are executed by a computer, , Causing the computer to execute the method shown in FIG. 4.
  • These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to work in a particular manner such that the instructions stored in the computer-readable memory produce a manufactured article including an instruction device, the instructions
  • the device implements the functions specified in one or more flowcharts and / or one or more blocks of the block diagram.
  • These computer program instructions can also be loaded on a computer or other programmable data processing device, so that a series of steps can be performed on the computer or other programmable device to produce a computer-implemented process, which can be executed on the computer or other programmable device.
  • the instructions provide steps for implementing the functions specified in one or more flowcharts and / or one or more blocks of the block diagrams.

Landscapes

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

Abstract

本发明实施例涉及电子技术领域,尤其涉及一种图片显示方法及装置,用以在保证图片不失真的情况下使得艺术图片的画框与图片之间的留白区域等宽。本发明实施例包括:确定画框图案的图片显示区在OSD层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;根据所述第一显示区域,确定图片图案在视频层的第二显示区域,所述第一显示区域在所述视频层的投影位于所述第二显示区域内;显示所述画框图案和所述图片图案。

Description

一种图片显示方法及装置
相关申请的交叉引用
本申请要求在2018年08月27日提交中国专利局、申请号为201810982020.1、申请名称为“一种图片显示方法及装置”的中国专利申请的优先权,其全部内容通过引用结合在本申请中;本申请要求在2018年08月27日提交中国专利局、申请号为201810983650.0、申请名称为“一种用于为图片切换画框的方法及显示终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
技术领域
本发明涉及电子技术领域,尤其涉及一种图片显示方法及装置。
背景技术
目前,对艺术图片的显示为画框与图片在OSD(屏幕菜单式调节方式,on-screen display)层叠加显示,其显示方式主要有以下三种:
一、图片等比缩放于画框内,图片的两条边缘与画框内的两条边缘对齐,居中显示,如图1所示。
二、图片拉伸至画框内显示,图片边缘与画框内边缘对齐,如图2所示。
三、图片等比缩放于画框内,居中显示,且图片边缘与画框内边缘之间存在一定间隔,如图3所示。
图片与画框之间留白区域的显示受制于图片与画框的形状,针对上述三种显示方式,若图片与画框的长宽比不同,则方式一和方式三中,图片与画框之间的四周留白宽度大小不同,显示效果不美观,方式二中虽然图片在画框中铺满显示,但图片会由于拉伸而失真。
发明内容
本申请提供一种图片显示方法及装置,用以在保证图片不失真的情况下使得艺术图片的画框与图片之间的留白区域等宽。
本发明实施例提供的一种图片显示方法,包括:
确定画框图案的图片显示区在OSD层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;
根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;
显示所述画框图案和所述图片图案。
可选的,所述根据所述第一显示区域,确定图片图案在视频层的第二显示区域,包括:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
可选的,所述将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积,包括:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的与所述图片显示区的面积相等;
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的宽度;
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的长度。
可选的,所述根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域,包括:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
本发明实施例还提供一种图片显示装置,包括:
确定模块,用于确定画框图案的图片显示区在OSD(屏幕菜单式调节)层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;
计算模块,用于根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;
显示模块,用于显示所述画框图案和所述图片图案。
可选的,所述计算模块,具体用于:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
可选的,所述计算模块,具体用于:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
可选的,所述计算模块,具体用于:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
本发明实施例还提供一种电子设备,包括:
至少一个处理器;以及,
与所述至少一个处理器通信连接的存储器;其中,
所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行上述方法。
本发明实施例还提供一种非暂态计算机可读存储介质,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行上述方法。
本发明实施例还提供一种终端,包括:收发信机、处理器和存储器;
所述存储器,存储一个或多个可执行程序,被用于配置所述处理器;
所述收发信机,用于接收网络侧发送的图片图案;
所述处理器,用于确定画框图案的图片显示区在OSD层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;显示所述画框图案和所述图片图案。
可选的,所述处理器用于:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
可选的,所述处理器用于:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面 积;
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
可选的,所述处理器用于:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
本发明实施例中,将艺术图片的画框图案和图片图案设置于不同的显示层进行显示,画框图案在OSD层显示,图片图案在视频层显示。画框图案包括画框显示区、留白区域和图片显示区,留白区域为画框显示区和图片显示区之间的区域。确定画框图案的图片显示区在OSD层的第一显示区域,并根据第一显示区域确定图片图案在视频层的第二显示区域,使得第一显示区域在视频层的投影位于第二显示区域内。将图片显示区设置为透明,画框显示区和留白区域设置为不透明,这样,当画框图案在OSD层显示,图片图案在视频层显示时,图片图案能透过画框图案的图片显示区进行显示。
进一步的,本发明实施例可以将画框图案中的留白区域设置为四周等宽,保证了艺术图片显示的美观。由于第一显示区域在视频层的投影位于第二显示区域内,则图片图案将画框图案的图片显示区填满,且由于可以将图片图案等长宽比拉伸,保证了图片图案不变形不失真。
附图说明
为了更清楚地说明本发明实施例中的技术方案,下面将对实施例描述中所需要使用的附图作简要介绍,显而易见地,下面描述中的附图仅仅是本发 明的一些实施例,对于本领域的普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。
图1为第一种图片显示方式的示意图;
图2为第二种图片显示方式的示意图;
图3为第三种图片显示方式的示意图;
图4为本发明实施例提供的一种图片显示方法的流程示意图;
图5为本发明实施例中图片图案的位置与图片显示区的位置重叠的示意图;
图6为本发明实施例中图片图案的长度大于图片显示区的长度且图片图案的宽度大于图片显示区的宽度的示意图;
图7为本发明实施例提供的图片图案的长宽比等于图片显示区的长宽比的示意图;
图8为本发明实施例提供的图片图案的长宽比小于图片显示区的长宽比的示意图;
图9为本发明实施例提供的图片图案的长宽比大于图片显示区的长宽比的示意图;
图10为本发明实施例提供的一种图片显示装置的结构示意图;
图11为本发明实施例提供的电子设备的结构示意图;
图12为本发明实施例提供的终端的结构示意图。
具体实施方式
为了使本发明的目的、技术方案和优点更加清楚,下面将结合附图对本发明作进一步地详细描述,显然,所描述的实施例仅仅是本发明一部份实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有做出创造性劳动前提下所获得的所有其它实施例,都属于本发明保护的范围。
为便于说明,本发明中的实施例以包括显示屏的可视装置作示例性说明, 本领域技术人员可以理解的,本发明中的实施例同样适用于其他装置,例如手持设备、车载设备、可穿戴设备、计算设备,以及各种形式的用户设备(User Equipment,UE),移动台(Mobile station,MS),终端(terminal),终端设备(Terminal Equipment)等等。
本发明实施例提供了一种图片显示方法。如图4所示,本发明实施例提供的图片显示方法,包括以下步骤:
步骤401、确定画框图案的图片显示区在OSD(屏幕菜单式调节)层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明。
步骤402、根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内。
步骤403、显示所述画框图案和所述图片图案。
本发明实施例中,将艺术图片的画框图案和图片图案设置于不同的显示层进行显示,画框图案在OSD层显示,图片图案在视频层显示。画框图案包括画框显示区、留白区域和图片显示区,留白区域为画框显示区和图片显示区之间的区域。确定画框图案的图片显示区在OSD层的第一显示区域,并根据第一显示区域确定图片图案在视频层的第二显示区域,使得第一显示区域在视频层的投影位于第二显示区域内。将图片显示区设置为透明,画框显示区和留白区域设置为不透明,这样,当画框图案在OSD层显示,图片图案在视频层显示时,图片图案能透过画框图案的图片显示区进行显示。本发明实施例可以将画框图案中的留白区域设置为四周等宽,保证了艺术图片显示的美观。由于第一显示区域在视频层的投影位于第二显示区域内,则图片图案将画框图案的图片显示区填满,且由于可以将图片图案等长宽比拉伸,保证了图片图案不变形不失真。
上述步骤401中,将图片显示区设置为透明可以包括两种方式:
1、图片显示区域有像素数据。一个像素数据的属性包括该像素数据的 RGB(色彩模式)和Alpha值。其中,Alpha值标示了一个像素数据的透明和半透明度,一般Alpha值取在0~1之间,0为不透明,1为透明。本发明实施例可以将图片显示区域内像素数据的Alpha值设置为1。
2、图片显示区中没有像素数据。这样,当画框图案绘制在OSD层时,图片显示区为完全透明。由于将画框图案绘制在OSD层时,图片显示区无像素数据,所以更加节省系统计算量以及内存,提高绘制速度。
本发明实施例中,由于画框图案和图片图案分层显示,图片图案在视频层显示,可以单独调整图片图案的画质以达到最佳显示效果。也可以单独切换OSD层的画框图案,当图片图案不变时,无需因为画框图案的切换而更新图片图案的显示,减少了计算和绘制的过程。
本发明实施例中,需要根据画框图案的图片显示区的位置和面积,确定图片图案在视频层的位置和面积。所述根据所述第一显示区域,确定图片图案在视频层的第二显示区域,包括:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
为了达到改变图片图案的面积而不失真不变形的目的,本发明实施例中将图片图案进行长宽等比缩放,使得图片图案的面积不小于图片显示区的面积。然后,根据第一显示区域和图片图案的面积,确定第二显示区域,这样当图片图案和画框图案叠加显示时,图片图案可以充满图片显示区,并透过画框图案的图片显示区进行显示。
此外,第二显示区域的具体位置可以根据图片图案的内容以及第一显示区域的具体位置来确定。如,将图片图案的位置设置为与图片显示区的位置重叠,即图片图案左上角的坐标与图片显示区左上角的坐标相同,如图5所示,图5中虚线的框为图片图案被画框图案遮挡住的部分。
较佳地,所述根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域,包括:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
这是由于图片图案中的内容一般都是在图片的中间位置进行呈现,因此为了更好的显示效果,本发明实施例将第一显示区域的中心与第二显示区域的中心重合,再根据第二显示区域的中心和图片图案的面积,确定第二显示区域。
上述图片图案的显示方式为透过设置为透明显示的图片显示区进行显示,图片图案在图片显示区之外的区域被画框图案中设置为不透明的区域遮挡,达到图片图案被剪裁的显示效果。也可以将图片图案进行剪裁,将图片图案中被遮挡的部分剪裁掉。为了保证图片的完整性,本发明实施例仅作遮挡处理,这样,当画框图案的图片显示区发生变化时,由于视频层的图片图案仍保存了完整的图片数据,未进行过裁剪,只需再通过拉伸缩放操作就可以重新适配新的图片显示区,而无需因为裁剪操作丢失图片图案的部分数据,无需对图片图案重新解码获取完整数据。这样,当图片图案不变时,切换画框图案时仅仅更新OSD层的画框图案,无需更新视频层的图片图案,可以减少CPU(中央处理器,Central Processing Unit)的计算量,减少GPU(图形处理器,Graphics Processing Unit)更新屏幕的操作。
本发明实施例中,图片图案的面积不小于图片显示区的面积,是为了使图片图案将图片显示区完全填充,因此,可以将图片图案长宽等比缩放至图片图案的长度大于图片显示区的长度,且图片图案的宽度大于图片显示区的宽度,如图6所示。图6中,图片图案的第二显示区域为虚线601框出的区域,图片显示区的第一显示区域为实线602框出的区域,可以看出,第一显示区域的长度大于第二显示区域的长度,第一显示区域的宽度大于第二显示区域的宽度。为了在图片显示区中呈现出更多图片图案中的内容,也为了降低计算和绘制的工作量,本发明实施例中将第一显示区域的长度设置为与第二显示区域的长度相同,或者将第一显示区域的宽度设置为与第二显示区域 的宽度相同,即在保证图片图案能填充满图片显示区的前提下,使得第一显示区域的面积最小。
图片图案与图片显示区的对比可以包括三种情况,即图片图案的长宽比等于图片显示区的长宽比,图片图案的长宽比小于图片显示区的长宽比,以及图片图案的长宽比大于图片显示区的长宽比。
下面分别描述这三种情况。
情况一,所述将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积,包括:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积。
若图片图案的长宽比等于图片显示区的长宽比,则图片图案经伸缩后可以不被OSD层的画框图案遮挡,图片图案的面积等于图片显示区的面积,即图片图案与画框图案的图片显示区重合,如图7所示。
若图片图案的长宽比不等于图片显示区的长宽比,则视频层的图片图案需要部分被OSD层的画框图案遮挡,又分为以下两种情况。
情况二,所述将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积,包括:
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度。
情况二的显示方式如图8所示,将图片图案进行长宽等比缩放,直至图片图案的长度与图片显示区的长度相等,此时图片图案的宽度大于图片显示区的宽度。若将图片图案的中心设置为与图片显示区的中心重合,则图片图案被画框图案遮挡的区域为图8中虚线与实线围成的区域801。
情况三,所述将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积,包括:
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
情况三的显示方式如图9所示,将图片图案进行长宽等比缩放,直至图片图案的宽度与图片显示区的宽度相等,此时图片图案的长度大于图片显示区的长度。若将图片图案的中心设置为与图片显示区的中心重合,则图片图案被画框图案遮挡的区域为图9中虚线与实线围成的区域901。
为了更清楚地理解本发明,下面以具体的实施例对上述流程进行详细描述。
实施例一如图7所示,图片显示区的长宽比等于图片图案的长宽比。
确定画框图案的图片显示区在OSD层的第一显示区域。若电视屏幕的长为1920,宽为1080,画框图案中画框的宽度为M,留白的宽度为N,以屏幕的左上角为坐标原点建立坐标系,则图片显示区的位置(x,y)以及图片显示区的长l和宽w可以根据以下公式计算得出:
x=M+N…………公式1
y=M+N…………公式2
l=1920-2*(M+N)…………公式3
w=1080-2*(M+N)…………公式4
确定图片显示区的长宽比等于图片图案的长宽比,将图片图案进行长宽等比缩放,使图片图案的长等于图片显示区的长l,图片图案的宽度等于图片显示区的宽度w。同时,确定图片显示区的位置等于图片显示区的位置(x,y)。
在OSD层显示画框图案,在视频层的(x,y)位置显示图片图案。
实施例二如图8所示,图片图案的长宽比小于图片显示区的长宽比。
确定画框图案的图片显示区在OSD层的第一显示区域。电视屏幕的长为1920,宽为1080,画框图案中画框的宽度为M,留白的宽度为N,图片显示 区的位置(x,y)以及图片显示区的长l和宽w根据公式1至公式4计算得出。
确定图片图案的长宽比小于图片显示区的长宽比,将图片图案进行长宽等比缩放,使图片图案的长度等于图片显示区的长度,若此时图片图案的长为B l,图片图案的宽为B w,则需计算图片图案的位置(B x,B y),具体的计算过程如下:
设定图8中的遮挡区域宽度为H,则H可以根据以下公式5计算得到:
Figure PCTCN2019102905-appb-000001
因此,图片图案的位置可以根据以下公式6和公式7得到:
B x=x…………公式6
Figure PCTCN2019102905-appb-000002
在OSD层显示画框图案,在视频层的(B x,B y)位置显示图片图案。
实施例三如图9所示,图片图案的长宽比大于图片显示区的长宽比。
确定画框图案的图片显示区在OSD层的第一显示区域。电视屏幕的长为1920,宽为1080,画框图案中画框的宽度为M,留白的宽度为N,图片显示区的位置(x,y)以及图片显示区的长l和宽w根据公式1至公式4计算得出。
确定图片图案的长宽比大于图片显示区的长宽比,将图片图案进行长宽等比缩放,使图片图案的宽度等于图片显示区的宽度,若此时图片图案的长为B l,图片图案的宽为B w,则需计算图片图案的位置(B x,B y),具体的计算过程如下:
设定图8中的遮挡区域宽度为K,则K可以根据以下公式8计算得到:
Figure PCTCN2019102905-appb-000003
因此,图片图案的位置可以根据以下公式9和公式10得到:
Figure PCTCN2019102905-appb-000004
B y=y…………公式10
在OSD层显示画框图案,在视频层的(B x,B y)位置显示图片图案。
本发明实施例还提供了一种图片显示装置,如图10所示,包括:
确定模块1001,用于确定画框图案的图片显示区在OSD(屏幕菜单式调节)层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;
计算模块1002,用于根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;
显示模块1003,用于显示所述画框图案和所述图片图案。
可选的,所述计算模块1002,具体用于:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
可选的,所述计算模块1002,具体用于:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片 图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
可选的,所述计算模块1002,具体用于:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
基于相同的原理,本发明还提供一种电子设备,如图11所示,包括:
包括处理器1101、存储器1102、收发机1103、总线接口1104,其中处理器1101、存储器1102与收发机1103之间通过总线接口1104连接;
所述处理器1101,用于读取所述存储器1102中的程序,执行图4所示的方法。
基于相同的原理,本发明具体实施例中,还提供了一种终端,其具体实施可参见上述方法部分中终端的具体实施,重复之处不再赘述,如图12所示,该终端主要包括:收发信机1201、处理器1202和存储器1203;
所述存储器1203,存储一个或多个可执行程序,被用于配置所述处理器;
所述收发信机1201,用于接收网络侧发送的图片图案;
所述处理器1202,用于确定画框图案的图片显示区在OSD层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;显示所述画框图案和所述图片图案。
较佳地,所述处理器1202用于:
将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
较佳地,所述处理器1202用于:
若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
较佳地,所述处理器1202用于:
将所述第一显示区域的中心确定为所述第二显示区域的中心;
根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
本申请实施例提供了一种计算机程序产品,所述计算机程序产品包括存储在非暂态计算机可读存储介质上的计算程序,所述计算机程序包括程序指令,当所述程序指令被计算机执行时,使所述计算机执行图4所示的方法。
本发明是参照根据本发明实施例的方法、设备(系统)、和计算机程序产品的流程图和/或方框图来描述的。应理解可由计算机程序指令实现流程图和/或方框图中的每一流程和/或方框、以及流程图和/或方框图中的流程和/或方框的结合。可提供这些计算机程序指令到通用计算机、专用计算机、嵌入式处理机或其他可编程数据处理设备的处理器以产生一个机器,使得通过计算机或其他可编程数据处理设备的处理器执行的指令产生用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的装置。
这些计算机程序指令也可存储在能引导计算机或其他可编程数据处理设备以特定方式工作的计算机可读存储器中,使得存储在该计算机可读存储器 中的指令产生包括指令装置的制造品,该指令装置实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能。
这些计算机程序指令也可装载到计算机或其他可编程数据处理设备上,使得在计算机或其他可编程设备上执行一系列操作步骤以产生计算机实现的处理,从而在计算机或其他可编程设备上执行的指令提供用于实现在流程图一个流程或多个流程和/或方框图一个方框或多个方框中指定的功能的步骤。
尽管已描述了本发明的优选实施例,但本领域内的技术人员一旦得知了基本创造性概念,则可对这些实施例作出另外的变更和修改。所以,所附权利要求意欲解释为包括优选实施例以及落入本发明范围的所有变更和修改。
显然,本领域的技术人员可以对本发明进行各种改动和变型而不脱离本发明的精神和范围。这样,倘若本发明的这些修改和变型属于本发明权利要求及其等同技术的范围之内,则本发明也意图包括这些改动和变型在内。

Claims (14)

  1. 一种图片显示方法,其特征在于,包括:
    确定画框图案的图片显示区在OSD(屏幕菜单式调节)层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;
    根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;
    显示所述画框图案和所述图片图案。
  2. 如权利要求1所述的方法,其特征在于,所述根据所述第一显示区域,确定图片图案在视频层的第二显示区域,包括:
    将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
    根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
  3. 如权利要求2所述的方法,其特征在于,所述将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积,包括:
    若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
    若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
    若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
  4. 如权利要求2或3所述的方法,其特征在于,所述根据所述第一显示 区域和所述图片图案的面积,确定所述第二显示区域,包括:
    将所述第一显示区域的中心确定为所述第二显示区域的中心;
    根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
  5. 一种图片显示装置,其特征在于,包括:
    确定模块,用于确定画框图案的图片显示区在OSD(屏幕菜单式调节)层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;
    计算模块,用于根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;
    显示模块,用于显示所述画框图案和所述图片图案。
  6. 如权利要求5所述的装置,其特征在于,所述计算模块,具体用于:
    将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
    根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
  7. 如权利要求6所述的装置,其特征在于,所述计算模块,具体用于:
    若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
    若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
    若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
  8. 如权利要求6或7所述的装置,其特征在于,所述计算模块,具体用于:
    将所述第一显示区域的中心确定为所述第二显示区域的中心;
    根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
  9. 一种电子设备,其特征在于,包括:
    至少一个处理器;以及,
    与所述至少一个处理器通信连接的存储器;其中,
    所述存储器存储有可被所述至少一个处理器执行的指令,所述指令被所述至少一个处理器执行,以使所述至少一个处理器能够执行权利要求1-4任一所述的方法。
  10. 一种非暂态计算机可读存储介质,其特征在于,所述非暂态计算机可读存储介质存储计算机指令,所述计算机指令用于使所述计算机执行权利要求1~4任一所述方法。
  11. 一种终端,其特征在于,包括:收发信机、处理器和存储器;
    所述存储器,存储一个或多个可执行程序,被用于配置所述处理器;
    所述收发信机,用于接收网络侧发送的图片图案;
    所述处理器,用于确定画框图案的图片显示区在OSD层的第一显示区域,所述画框图案包括画框显示区、留白区域和所述图片显示区,所述留白区域为所述画框显示区和所述图片显示区之间的区域,所述图片显示区设置为透明,所述画框显示区和所述留白区域设置为不透明;根据所述第一显示区域,确定图片图案在视频层的第二显示区域,使得所述第一显示区域在所述视频层的投影位于所述第二显示区域内;显示所述画框图案和所述图片图案。
  12. 如权利要求11所述的终端,其特征在于,所述处理器用于:
    将所述图片图案进行长宽等比缩放,使得所述图片图案的面积不小于所述图片显示区的面积;
    根据所述第一显示区域和所述图片图案的面积,确定所述第二显示区域。
  13. 如权利要求12所述的终端,其特征在于,所述处理器用于:
    若所述图片图案的长宽比等于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的面积等于所述图片显示区的面积;
    若所述图片图案的长宽比小于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的长度等于所述图片显示区的长度;
    若所述图片图案的长宽比大于所述图片显示区的长宽比,则将所述图片图案进行长宽等比缩放,使得所述图片图案的宽度等于所述图片显示区的宽度。
  14. 如权利要求12或13所述的终端,其特征在于,所述处理器用于:
    将所述第一显示区域的中心确定为所述第二显示区域的中心;
    根据所述第二显示区域的中心和所述图片图案的面积,确定所述第二显示区域。
PCT/CN2019/102905 2018-08-27 2019-08-27 一种图片显示方法及装置 WO2020043109A1 (zh)

Applications Claiming Priority (4)

Application Number Priority Date Filing Date Title
CN201810982020.1 2018-08-27
CN201810983650.0 2018-08-27
CN201810983650.0A CN109302629B (zh) 2018-08-27 2018-08-27 一种用于为图片切换画框的方法及显示终端
CN201810982020.1A CN109242761B (zh) 2018-08-27 2018-08-27 一种图片显示方法及装置

Publications (1)

Publication Number Publication Date
WO2020043109A1 true WO2020043109A1 (zh) 2020-03-05

Family

ID=69643964

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2019/102905 WO2020043109A1 (zh) 2018-08-27 2019-08-27 一种图片显示方法及装置

Country Status (1)

Country Link
WO (1) WO2020043109A1 (zh)

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077697A (zh) * 2012-12-28 2013-05-01 福建捷联电子有限公司 一种支持画面动态缩放满框显示的云端显示器
CN103634650A (zh) * 2013-11-06 2014-03-12 康佳集团股份有限公司 一种基于智能电视平台的图片处理方法及系统
WO2018117446A1 (en) * 2016-12-20 2018-06-28 Samsung Electronics Co., Ltd. Display apparatus and display method thereof
CN109242761A (zh) * 2018-08-27 2019-01-18 青岛海信电器股份有限公司 一种图片显示方法及装置
CN109302629A (zh) * 2018-08-27 2019-02-01 青岛海信电器股份有限公司 一种用于为图片切换画框的方法及显示终端

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103077697A (zh) * 2012-12-28 2013-05-01 福建捷联电子有限公司 一种支持画面动态缩放满框显示的云端显示器
CN103634650A (zh) * 2013-11-06 2014-03-12 康佳集团股份有限公司 一种基于智能电视平台的图片处理方法及系统
WO2018117446A1 (en) * 2016-12-20 2018-06-28 Samsung Electronics Co., Ltd. Display apparatus and display method thereof
CN109242761A (zh) * 2018-08-27 2019-01-18 青岛海信电器股份有限公司 一种图片显示方法及装置
CN109302629A (zh) * 2018-08-27 2019-02-01 青岛海信电器股份有限公司 一种用于为图片切换画框的方法及显示终端

Similar Documents

Publication Publication Date Title
US10643300B2 (en) Image display method, custom method of shaped cambered curtain, and head-mounted display device
US9916676B2 (en) 3D model rendering method and apparatus and terminal device
CN108287678B (zh) 一种基于虚拟现实的图像处理方法、装置、设备和介质
CN109992226A (zh) 图像显示方法、装置及拼接显示屏
CN109242761B (zh) 一种图片显示方法及装置
CN111192552B (zh) 一种多通道led球幕几何校正方法
CN109741289B (zh) 一种图像融合方法和vr设备
WO2021139382A1 (zh) 人脸图像的处理方法、装置、可读介质和电子设备
WO2020001022A1 (zh) 图片展示方法、计算设备及计算机存储介质
CN102945144B (zh) 窗口布局的方法及装置
WO2022194003A1 (zh) 截屏方法、装置、电子设备以及可读存储介质
CN110740309B (zh) 一种图像显示方法、装置、电子设备及存储介质
WO2020078290A1 (zh) 圆角屏幕的显示方法、计算机设备以及存储介质
WO2023093291A1 (zh) 图像处理方法、装置、计算机设备和计算机程序产品
CN109302629B (zh) 一种用于为图片切换画框的方法及显示终端
CN104182194A (zh) 投影显示中无缝边缘融合处理方法与系统
US20210158481A1 (en) Image processing method, device and apparatus, image fitting method and device, display method and apparatus, and computer readable medium
WO2020043109A1 (zh) 一种图片显示方法及装置
WO2017215247A1 (zh) 窗口边框阴影显示方法及装置
CN109766530B (zh) 图表边框的生成方法、装置、存储介质和电子设备
JP6549764B1 (ja) 画像投影システム、画像投影方法、及びプログラム
CN104601913A (zh) 球幕多通道边缘融合方法
CN111325702B (zh) 图像融合方法及装置
CN112650458B (zh) 一种显示屏的调整方法、存储介质及终端设备
WO2017045126A1 (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: 19855349

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: 19855349

Country of ref document: EP

Kind code of ref document: A1