CN109242761B - Picture display method and device - Google Patents

Picture display method and device Download PDF

Info

Publication number
CN109242761B
CN109242761B CN201810982020.1A CN201810982020A CN109242761B CN 109242761 B CN109242761 B CN 109242761B CN 201810982020 A CN201810982020 A CN 201810982020A CN 109242761 B CN109242761 B CN 109242761B
Authority
CN
China
Prior art keywords
picture
display area
pattern
area
length
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.)
Active
Application number
CN201810982020.1A
Other languages
Chinese (zh)
Other versions
CN109242761A (en
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.)
Hisense Visual Technology Co Ltd
Original Assignee
Hisense Visual 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 Hisense Visual Technology Co Ltd filed Critical Hisense Visual Technology Co Ltd
Priority to CN201810982020.1A priority Critical patent/CN109242761B/en
Publication of CN109242761A publication Critical patent/CN109242761A/en
Priority to PCT/CN2019/102905 priority patent/WO2020043109A1/en
Application granted granted Critical
Publication of CN109242761B publication Critical patent/CN109242761B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Classifications

    • G06T3/04
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformation in the plane of the image
    • G06T3/40Scaling the whole image or part thereof
    • YGENERAL TAGGING OF NEW TECHNOLOGICAL DEVELOPMENTS; GENERAL TAGGING OF CROSS-SECTIONAL TECHNOLOGIES SPANNING OVER SEVERAL SECTIONS OF THE IPC; TECHNICAL SUBJECTS COVERED BY FORMER USPC CROSS-REFERENCE ART COLLECTIONS [XRACs] AND DIGESTS
    • Y02TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
    • Y02DCLIMATE CHANGE MITIGATION TECHNOLOGIES IN INFORMATION AND COMMUNICATION TECHNOLOGIES [ICT], I.E. INFORMATION AND COMMUNICATION TECHNOLOGIES AIMING AT THE REDUCTION OF THEIR OWN ENERGY USE
    • Y02D10/00Energy efficient computing, e.g. low power processors, power management or thermal management

Abstract

The embodiment of the invention relates to the technical field of electronics, in particular to a picture display method and device, which are used for making a white area between a picture frame of an artistic picture and the picture equal in width under the condition of ensuring that the picture is not distorted. The embodiment of the invention comprises the following steps: determining a first display area of a picture frame pattern in an OSD layer, wherein the picture frame pattern comprises a picture frame display area, a white-reserving area and the picture display area, the white-reserving 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 white-reserving area are set to be opaque; determining a second display area of the picture pattern on the video layer according to the first display area, wherein the projection of the first display area on the video layer is positioned in the second display area; and displaying the picture frame pattern and the picture pattern.

Description

Picture display method and device
Technical Field
The present invention relates to the field of electronic technologies, and in particular, to a method and an apparatus for displaying a picture.
Background
At present, the display of an artistic picture is that a picture frame and a picture are displayed in an OSD (on-screen display) layer by layer, and the display modes mainly include the following three modes:
1. the picture is scaled in equal proportion in the frame, and the two edges of the picture are aligned with the two edges in the frame and are displayed centrally, as shown in fig. 1.
2. The picture is stretched to display in the frame with the picture edge aligned with the frame edge as shown in fig. 2.
3. The pictures are scaled equally in the frame, displayed centrally, and there is a certain spacing between the picture edges and the frame inner edges, as shown in fig. 3.
In the prior art, the display of the white area between the picture and the picture frame is limited by the shapes of the picture and the picture frame, and if the aspect ratio of the picture and the picture frame is different, the size of the white area around the picture and the picture frame is different in the first mode and the third mode, the display effect is not attractive, and the picture is distorted due to stretching although the picture is fully laid in the picture frame in the second mode.
Disclosure of Invention
The application provides a picture display method and device, which are used for enabling a white area between a picture frame of an artistic picture and the picture to be equal in width under the condition of ensuring that the picture is not distorted.
The image display method provided by the embodiment of the invention comprises the following steps:
determining a first display area of a picture frame pattern in an OSD layer, wherein the picture frame pattern comprises a picture frame display area, a white-reserving area and the picture display area, the white-reserving 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 white-reserving area are set to be opaque;
determining 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 positioned in the second display area;
and displaying the picture frame pattern and the picture pattern.
Optionally, the determining, according to the first display area, the second display area of the picture pattern in the video layer includes:
performing length-width equal-ratio scaling on the picture pattern, so that the area of the picture pattern is not smaller than the area of the picture display area;
and determining the second display area according to the areas of the first display area and the picture pattern.
Optionally, the scaling the length-width ratio of the picture pattern to make the area of the picture pattern not smaller than the area of the picture display area includes:
if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the area of the picture pattern is equal to the area of the picture display area;
if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to the width of the picture display area;
and if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to the length of the picture display area.
Optionally, the determining the second display area according to the areas of the first display area and the picture pattern includes:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
The embodiment of the invention also provides a picture display device, which comprises:
the display device comprises a determining module, a display module and a display module, wherein the determining module is used for determining a first display area of a picture frame pattern on an OSD (on screen display) layer, the picture frame pattern comprises a picture frame display area, a white-keeping area and a picture display area, the white-keeping area is an area between the picture frame display area and the picture display area, the picture display area is transparent, and the picture frame display area and the white-keeping area are opaque;
the computing module is used for determining 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 positioned in the second display area;
and the display module is used for displaying the picture frame pattern and the picture pattern.
Optionally, the computing module is specifically configured to:
performing length-width equal-ratio scaling on the picture pattern, so that the area of the picture pattern is not smaller than the area of the picture display area;
and determining the second display area according to the areas of the first display area and the picture pattern.
Optionally, the computing module is specifically configured to:
if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the area of the picture pattern is equal to the area of the picture display area;
if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to that of the picture display area;
and if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to that of the picture display area.
Optionally, the computing module is specifically configured to:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
The embodiment of the invention also provides electronic equipment, which comprises:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method described above.
Embodiments of the present invention also provide a non-transitory computer-readable storage medium storing computer instructions for causing the computer to perform the above-described method.
In the embodiment of the invention, the picture frame pattern and the picture pattern of the artistic picture are arranged on different display layers for display, the picture frame pattern is displayed on an OSD layer, and the picture pattern is displayed on a video layer. The picture frame pattern comprises a picture frame display area, a white-reserving area and a picture display area, wherein the white-reserving area is an area between the picture frame display area and the picture display area. And determining a first display area of the picture frame pattern in the OSD layer, and determining a 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 in the video layer is positioned in the second display area. The picture display area is set to be transparent, and the picture frame display area and the white-remaining area are set to be 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 display area of the picture frame pattern.
Furthermore, the embodiment of the invention can set the blank area in the picture frame pattern to be equal in width at the periphery, thereby ensuring the beautiful appearance of the artistic picture display. Because the projection of the first display area on the video layer is positioned in the second display area, the picture pattern fills up the picture display area of the picture frame pattern, and the picture pattern and other length-width ratios can be stretched, so that the picture pattern is ensured not to be deformed and distorted.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings that are needed in the description of the embodiments will be briefly described below, it will be apparent that the drawings in the following description are only some embodiments of the present invention, and that other drawings can be obtained according to these drawings without inventive effort for a person skilled in the art.
FIG. 1 is a schematic diagram of a first image display mode in the prior art;
FIG. 2 is a schematic diagram of a second mode of displaying pictures in the prior art;
FIG. 3 is a schematic diagram of a third mode of displaying pictures in the prior art;
fig. 4 is a schematic flow chart of a picture display method according to an embodiment of the present invention;
FIG. 5 is a schematic diagram illustrating the overlapping of the position of the picture pattern and the position of the picture display region according to an embodiment of the present invention;
FIG. 6 is a schematic diagram showing that the length of the picture pattern is larger than the length of the picture display region and the width of the picture pattern is larger than the width of the picture display region in the embodiment of the 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 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 larger than an aspect ratio of a picture display region 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.
Detailed Description
In order to make the objects, technical solutions and advantages of the present invention more apparent, the present invention will be described in further detail below with reference to the accompanying drawings, and it is apparent that the described embodiments are only some embodiments of the present invention, not all embodiments. All other embodiments, which can be made by those skilled in the art based on the embodiments of the invention without making any inventive effort, are intended to be within the scope of the invention.
For ease of illustration, embodiments of the present invention are illustratively described in terms of visual devices comprising a display screen, and those skilled in the art will appreciate that embodiments of the present invention are equally applicable to other devices, such as handheld devices, vehicle mount devices, wearable devices, computing devices, and various forms of User Equipment (UE), mobile Stations (MS), terminals, terminal devices (Terminal Equipment), etc.
The embodiment of the invention provides a picture display method. As shown in fig. 4, the method for displaying a picture provided by the embodiment of the invention includes the following steps:
step 401, determining a first display area of a picture frame pattern in an OSD (on screen display) layer, where the picture frame pattern includes a picture frame display area, a white-keeping area and the picture display area, the white-keeping 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 white-keeping area are set to be opaque.
Step 402, determining 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, displaying the picture frame pattern and the picture pattern.
In the embodiment of the invention, the picture frame pattern and the picture pattern of the artistic picture are arranged on different display layers for display, the picture frame pattern is displayed on an OSD layer, and the picture pattern is displayed on a video layer. The picture frame pattern comprises a picture frame display area, a white-reserving area and a picture display area, wherein the white-reserving area is an area between the picture frame display area and the picture display area. And determining a first display area of the picture frame pattern in the OSD layer, and determining a 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 in the video layer is positioned in the second display area. The picture display area is set to be transparent, and the picture frame display area and the white-remaining area are set to be 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 display area of the picture frame pattern. According to the embodiment of the invention, the blank area in the picture frame pattern can be set to be equal in width at the periphery, so that the aesthetic appearance of the artistic picture display is ensured. Because the projection of the first display area on the video layer is positioned in the second display area, the picture pattern fills up the picture display area of the picture frame pattern, and the picture pattern and other length-width ratios can be stretched, so that the picture pattern is ensured not to be deformed and distorted.
In step 401 described above, setting the picture display region to be transparent may include two ways:
1. the picture display area has pixel data. The attributes of one pixel data include RGB (color mode) and Alpha values of the pixel data. Wherein Alpha value indicates transparency and translucency of one pixel data, and is generally between 0 and 1, 0 is opaque, and 1 is transparent. The embodiment of the invention can set the Alpha value of the pixel data in the picture display area to be 1.
2. There is no pixel data in the picture display area. Thus, when the picture frame pattern is drawn on the OSD layer, the picture display area is completely transparent. When the picture frame pattern is drawn on the OSD layer, the picture display area has no pixel data, so that the calculated amount and the memory of the system are saved, and the drawing speed is improved.
In the embodiment of the invention, the picture frame patterns and the picture patterns are displayed in a layered manner, and the picture patterns are displayed on the video layer, so that the picture quality of the picture patterns can be independently adjusted to achieve the optimal display effect. The picture frame patterns of the OSD layer can be independently switched, when the picture patterns are unchanged, the display of the picture patterns is not required to be updated due to the switching of the picture frame patterns, and the calculation and drawing processes are reduced.
In the embodiment of the invention, the position and the area of the picture pattern on the video layer are determined according to the position and the area of the picture display area of the picture frame pattern. The determining, according to the first display area, a second display area of the picture pattern in the video layer includes:
performing length-width equal-ratio scaling on the picture pattern, so that the area of the picture pattern is not smaller than the area of the picture display area;
and determining the second display area according to the areas of the first display area and the picture pattern.
In order to achieve the purpose of changing the area of the picture pattern without distortion and deformation, the picture pattern is scaled in length-width equal ratio in the embodiment of the invention, so that the area of the picture pattern is not smaller than the area of the picture display area. And then, determining a second display area according to the areas of the first display area and the picture pattern, so that when the picture pattern and the picture frame pattern are displayed in a superimposed manner, the picture pattern can fill the picture display area and is displayed through the picture display area of the picture frame pattern.
Further, 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. For example, the position of the picture pattern is set to overlap with the position of the picture display region, that is, the coordinates of the upper left corner of the picture pattern are the same as those of the upper left corner of the picture display region, as shown in fig. 5, and the frame of the broken line in fig. 5 is a portion where the picture pattern is hidden by the picture frame pattern.
Preferably, the determining the second display area according to the areas of the first display area and the picture pattern includes:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
The content in the picture pattern is generally presented in the middle position of the picture, so that in order to achieve a better display effect, the embodiment of the invention overlaps the center of the first display area with the center of the second display area, and then the second display area is determined according to the center of the second display area and the area of the picture pattern.
The display mode of the picture patterns is that the picture patterns are displayed through the picture display area which is set to be transparent, and the areas outside the picture display area are shielded by the areas which are set to be opaque in the picture frame patterns, so that the display effect that the picture patterns are cut out is achieved. The picture pattern can also be cut, and the blocked part in the picture pattern is cut. In order to ensure the integrity of the picture, the embodiment of the invention only performs shielding treatment, so that when the picture display area of the picture frame pattern changes, the picture pattern of the video layer still stores complete picture data, the picture is not cut, the new picture display area can be re-adapted only through stretching and scaling operation, partial data of the picture pattern is not lost because of cutting operation, and the picture pattern is not required to be re-decoded to obtain complete data. Thus, when the picture pattern is unchanged, only the picture pattern of the OSD layer is updated when the picture pattern is switched, and the picture pattern of the video layer is not required to be updated, so that the calculation amount of a CPU (central processing unit ) can be reduced, and the operation of updating the screen by the GPU (graphics processor, graphics Processing Unit) can be reduced.
In the embodiment of the invention, 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, and therefore, the length-width equal ratio of the picture pattern can be scaled to a length of the picture pattern larger than the length of the picture display area, and the width of the picture pattern is larger than the width of the picture display area, as shown in fig. 6. In fig. 6, the second display area of the picture pattern is an area outlined by a dashed line 601, and the first display area of the picture display area is an area outlined by a solid line 602, and it can be seen that the length of the first display area is greater than the length of the second display area, and the width of the first display area is greater than the width of the second display area. In order to present more content in the picture display area and also to reduce the workload of calculation and drawing, in the embodiment of the present invention, 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 of ensuring that the picture pattern can be filled in the picture display area.
The comparison of the picture pattern with the picture display region may include three cases, i.e., the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display region, the aspect ratio of the picture pattern is smaller than the aspect ratio of the picture display region, and the aspect ratio of the picture pattern is larger than the aspect ratio of the picture display region.
These three cases are described below, respectively.
In a first aspect, the scaling the image pattern to have an area not smaller than an area of the image display area includes:
and if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the area of the picture pattern is equal to the area of the picture display area.
If the aspect ratio of the picture pattern is equal to the aspect ratio of the picture display region, the picture pattern may not be blocked by the picture frame pattern of the OSD layer after the picture pattern is stretched, and the area of the picture pattern is equal to the area of the picture display region, i.e., the picture pattern coincides with the picture display region of the picture frame pattern, as shown in fig. 7.
If the aspect ratio of the picture pattern is not equal to the aspect ratio of the picture display region, the picture pattern of the video layer needs to be partially blocked by the picture frame pattern of the OSD layer, and the following two cases are also classified.
And secondly, scaling the length-width equal ratio of the picture pattern so that the area of the picture pattern is not smaller than the area of the picture display area, wherein the scaling comprises the following steps:
and if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to that of the picture display area.
In the second display mode, as shown in fig. 8, the length of the picture pattern is scaled in equal ratio until the length of the picture pattern is equal to the length of the picture display area, and the width of the picture pattern is larger 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 of the picture pattern blocked by the picture frame pattern is an area 801 surrounded by a dotted line and a solid line in fig. 8.
In a third aspect, the scaling the length-width ratio of the picture pattern to make the area of the picture pattern not smaller than the area of the picture display area includes:
and if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to that of the picture display area.
In the third display mode, as shown in fig. 9, the length and width of the picture pattern are scaled in equal ratio until the width of the picture pattern is equal to the width of the picture display area, and 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 of the picture pattern blocked by the picture frame pattern is an area 901 surrounded by a dotted line and a solid line in fig. 9.
In order that the invention may be more clearly understood, a detailed description of the above-described process will be given below with reference to specific examples.
Embodiment as shown in fig. 7, the aspect ratio of the picture display region is equal to the aspect ratio of the picture pattern.
And determining that a picture display area of the picture frame pattern is in a first display area of the OSD layer. If the length of the television screen is 1920, the width is 1080, the width of a picture frame in a picture frame pattern is M, the width of a blank is N, and a coordinate system is established by taking the upper left corner of the screen as the origin of coordinates, the position (x, y) of the picture display area and the length l and the width w of the picture display area can be calculated according to the following formula:
x=m+n … … … … equation 1
y=m+n … … … … equation 2
l=1920-2 (m+n) … … … … equation 3
w=1080-2 (m+n) … … … … equation 4
Determining that the length-width ratio of the picture display area is equal to the length-width ratio of the picture pattern, carrying out length-width equal-ratio scaling on the picture pattern to ensure that the length of the picture pattern is equal to the length l of the picture display area, and the width of the picture pattern is equal to the width w of the picture display area. Meanwhile, it is determined that the position of the picture display region is equal to the position (x, y) of the picture display region.
The picture frame pattern is displayed on the OSD layer, and the picture pattern is displayed on the (x, y) position of the video layer.
In the second embodiment, as shown in fig. 8, the aspect ratio of the picture pattern is smaller than that of the picture display region.
And determining that a picture display area of the picture frame pattern is in a first display area of the OSD layer. The length of the television screen is 1920, the width is 1080, the width of a picture frame in a picture frame pattern is M, the width of a reserved white is N, and the position (x, y) of a picture display area and the length l and the width w of the picture display area are calculated according to the formulas 1 to 4.
Determining that the length-width ratio of the picture pattern is smaller than that of the picture display area, performing equal length-width equal-ratio scaling on the picture pattern to ensure that the length of the picture pattern is equal to that of the picture display area, and if the length of the picture pattern is B l The width of the picture pattern is B w Then the position of the picture pattern is calculated (B x ,B y ) The specific calculation process is as follows:
setting the width of the occlusion region in fig. 8 to be H, H can be calculated according to the following equation 5:
Figure BDA0001778799670000101
therefore, the position of the picture pattern can be obtained according to the following formulas 6 and 7:
B x =x … … … … equation 6
Figure BDA0001778799670000102
Displaying picture frame pattern on OSD layer, displaying picture frame pattern on video layer (B x ,B y ) The picture pattern is displayed in position.
Embodiment III As shown in FIG. 9, the aspect ratio of the picture pattern is larger than the aspect ratio of the picture display region.
And determining that a picture display area of the picture frame pattern is in a first display area of the OSD layer. The length of the television screen is 1920, the width is 1080, the width of a picture frame in a picture frame pattern is M, the width of a reserved white is N, and the position (x, y) of a picture display area and the length l and the width w of the picture display area are calculated according to the formulas 1 to 4.
Determining that the length-width ratio of the picture pattern is larger than that of the picture display area, performing equal length-width scaling on the picture pattern to ensure that the width of the picture pattern is equal to that of the picture display area, and if the length of the picture pattern is B l The width of the picture pattern is B w Then the position of the picture pattern is calculated (B x ,B y ) The specific calculation process is as follows:
setting the width of the occlusion region in fig. 8 to be K, K can be calculated according to the following equation 8:
Figure BDA0001778799670000111
therefore, the position of the picture pattern can be obtained according to the following formulas 9 and 10:
Figure BDA0001778799670000112
B y =y … … … … equation 10
Displaying picture frame pattern on OSD layer, displaying picture frame pattern on video layer (B x ,B y ) The picture pattern is displayed in position.
The embodiment of the invention also provides a picture display device, as shown in fig. 10, comprising:
a determining module 1001, configured to determine a first display area of a picture frame pattern in an OSD (on screen display) layer, where the picture frame pattern includes a picture frame display area, a white-left area, and the picture display area, the white-left 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 white-left area are set to be opaque;
a calculating module 1002, configured to determine, according to the first display area, a second display area of the picture pattern on the video layer, so that a projection of the first display area on the video layer is located in the second display area;
and a display module 1003 for displaying the picture frame pattern and the picture pattern.
Optionally, the calculating module 1002 is specifically configured to:
performing length-width equal-ratio scaling on the picture pattern, so that the area of the picture pattern is not smaller than the area of the picture display area;
and determining the second display area according to the areas of the first display area and the picture pattern.
Optionally, the calculating module 1002 is specifically configured to:
if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the area of the picture pattern is equal to the area of the picture display area;
if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to that of the picture display area;
and if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to that of the picture display area.
Optionally, the calculating module 1002 is specifically configured to:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
Based on the same principle, the present invention also provides an electronic device, as shown in fig. 11, including:
comprises a processor 1101, a memory 1102, a transceiver 1103 and a bus interface 1104, wherein the processor 1101, the memory 1102 and the transceiver 1103 are connected through the bus interface 1104;
the processor 1101 is configured to read the program in the memory 1102, and execute the method shown in fig. 4.
Embodiments of the present application provide a computer program product comprising a computer program stored on a non-transitory computer readable storage medium, the computer program comprising program instructions which, when executed by a computer, cause the computer to perform the method shown in fig. 4.
The present invention is described with reference to flowchart illustrations and/or block diagrams of methods, apparatus (systems) and computer program products according to embodiments of the invention. It will be understood that each flow and/or block of the flowchart illustrations and/or block diagrams, and combinations of flows and/or blocks in the flowchart illustrations and/or block diagrams, can be implemented by computer program instructions. These computer program instructions may be provided to a processor of a general purpose computer, special purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, create means for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be stored in a computer-readable memory that can direct a computer or other programmable data processing apparatus to function in a particular manner, such that the instructions stored in the computer-readable memory produce an article of manufacture including instruction means which implement the function specified in the flowchart flow or flows and/or block diagram block or blocks.
These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer implemented process such that the instructions which execute on the computer or other programmable apparatus provide steps for implementing the functions specified in the flowchart flow or flows and/or block diagram block or blocks.
While preferred embodiments of the present invention have been described, additional variations and modifications in those embodiments may occur to those skilled in the art once they learn of the basic inventive concepts. It is therefore intended that the following claims be interpreted as including the preferred embodiments and all such alterations and modifications as fall within the scope of the invention.
It will be apparent to those skilled in the art that various modifications and variations can be made to the present invention without departing from the spirit or scope of the invention. Thus, it is intended that the present invention also include such modifications and alterations insofar as they come within the scope of the appended claims or the equivalents thereof.

Claims (6)

1. A picture display method, characterized by comprising:
determining a first display area of a picture frame pattern on an OSD (on screen display) layer, wherein the picture frame pattern comprises a picture frame display area, a white-reserving area and a picture display area, the white-reserving area is an area between the picture frame display area and the picture display area, the picture display area is transparent, and the picture frame display area and the white-reserving area are opaque;
if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the area of the picture pattern is equal to the area of the picture display area; if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to that of the picture display area; if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to that of the picture display area;
determining a second display area of the picture pattern on a video layer according to the areas of the first display area and the picture pattern, so that the projection of the first display area on the video layer is positioned in the second display area;
and displaying the picture frame pattern in the first display area, and displaying the picture pattern in the second display area.
2. The method of claim 1, wherein determining the second display area of the picture pattern in the video layer based on the first display area and the area of the picture pattern comprises:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
3. A picture display device, comprising:
the display device comprises a determining module, a display module and a display module, wherein the determining module is used for determining a first display area of a picture frame pattern on an OSD (on screen display) layer, the picture frame pattern comprises a picture frame display area, a white-keeping area and a picture display area, the white-keeping area is an area between the picture frame display area and the picture display area, the picture display area is transparent, and the picture frame display area and the white-keeping area are opaque;
the calculating module is used for scaling the length-width ratio of the picture pattern to the length-width ratio if the length-width ratio of the picture pattern is equal to the length-width ratio of the picture display area, so that the area of the picture pattern is equal to the area of the picture display area; if the length-width ratio of the picture pattern is smaller than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the length of the picture pattern is equal to that of the picture display area; if the length-width ratio of the picture pattern is larger than that of the picture display area, carrying out length-width equal-ratio scaling on the picture pattern so that the width of the picture pattern is equal to that of the picture display area;
the determining module is further configured to determine, according to the areas of the first display area and the picture pattern, a second display area of the picture pattern on the video layer, so that a projection of the first display area on the video layer is located in the second display area; and the display module is used for displaying the picture frame pattern in the first display area and displaying the picture pattern in the second display area.
4. The apparatus of claim 3, wherein the computing module is specifically configured to:
determining a center of the first display area as a center of the second display area;
and determining the second display area according to the center of the second display area and the area of the picture pattern.
5. An electronic device, comprising:
at least one processor; the method comprises the steps of,
a memory communicatively coupled to the at least one processor; wherein, the liquid crystal display device comprises a liquid crystal display device,
the memory stores instructions executable by the at least one processor to enable the at least one processor to perform the method of any one of claims 1-2.
6. A non-transitory computer readable storage medium storing computer instructions for causing a computer to perform the method of any one of claims 1-2.
CN201810982020.1A 2018-08-27 2018-08-27 Picture display method and device Active CN109242761B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201810982020.1A CN109242761B (en) 2018-08-27 2018-08-27 Picture display method and device
PCT/CN2019/102905 WO2020043109A1 (en) 2018-08-27 2019-08-27 Picture display method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201810982020.1A CN109242761B (en) 2018-08-27 2018-08-27 Picture display method and device

Publications (2)

Publication Number Publication Date
CN109242761A CN109242761A (en) 2019-01-18
CN109242761B true CN109242761B (en) 2023-07-14

Family

ID=65068423

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201810982020.1A Active CN109242761B (en) 2018-08-27 2018-08-27 Picture display method and device

Country Status (1)

Country Link
CN (1) CN109242761B (en)

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2020043109A1 (en) * 2018-08-27 2020-03-05 青岛海信电器股份有限公司 Picture display method and device
CN110278479B (en) * 2019-06-04 2021-10-29 海信视像科技股份有限公司 Picture display method and television
CN112085818B (en) * 2019-06-14 2023-03-14 腾讯数码(天津)有限公司 Picture processing method and device

Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750089A (en) * 2012-06-06 2012-10-24 谢达 Method for displaying user interface along edges around screen
JP2012230722A (en) * 2012-08-29 2012-11-22 Dainippon Printing Co Ltd Terminal device and program for the same

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103152536A (en) * 2013-03-20 2013-06-12 深圳市知音同创科技有限公司 Digital TV (Television) terminal capable of displaying advertisement
CN104679466B (en) * 2013-11-29 2018-09-07 腾讯科技(深圳)有限公司 A kind of method for displaying image, device and electronic equipment

Patent Citations (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102750089A (en) * 2012-06-06 2012-10-24 谢达 Method for displaying user interface along edges around screen
JP2012230722A (en) * 2012-08-29 2012-11-22 Dainippon Printing Co Ltd Terminal device and program for the same

Also Published As

Publication number Publication date
CN109242761A (en) 2019-01-18

Similar Documents

Publication Publication Date Title
CN109242761B (en) Picture display method and device
US10504400B2 (en) Method and apparatus for performing correction processing on grayscale of a pixel in an image
CN108287678B (en) Image processing method, device, equipment and medium based on virtual reality
CN109992226A (en) Image display method and device and spliced display screen
CN108701351B (en) Image display enhancement method and device
CN109741289B (en) Image fusion method and VR equipment
CN113126862B (en) Screen capture method and device, electronic equipment and readable storage medium
CN109302629B (en) Method for switching picture frames for pictures and display terminal
US20140111524A1 (en) Method and terminal for displaying an animation
WO2020001022A1 (en) Image expansion method, computing device and computer storage medium
CN107820601B (en) Display control method, display control system and display device
CN110264543B (en) Frame drawing method and device of spliced picture and storage medium
WO2020043109A1 (en) Picture display method and device
JP2020014075A (en) Image projection system, image projection method, and program
CN111325702B (en) Image fusion method and device
CN115131260A (en) Image processing method, device, equipment, computer readable storage medium and product
CN112201191B (en) Display screen control method and device, electronic equipment and readable storage medium
CN113625983A (en) Image display method, image display device, computer equipment and storage medium
CN110825282B (en) Picture display method and device, electronic equipment and storage medium
US11315223B2 (en) Image processing apparatus, image processing method, and computer-readable recording medium
CN104601913A (en) Dome screen multichannel edge blending method
CN110858389B (en) Method, device, terminal and transcoding equipment for enhancing video image quality
CN106156371B (en) Method and device for realizing complete background picture of webpage
KR20200064833A (en) Image processing apparatus and image processing method thereof
CN109766069A (en) Auxiliary display method, device, electronic equipment and computer readable storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant after: Hisense Video Technology Co.,Ltd.

Address before: 266555 Qingdao economic and Technological Development Zone, Shandong, Hong Kong Road, No. 218

Applicant before: QINGDAO HISENSE ELECTRONICS Co.,Ltd.

CB02 Change of applicant information
GR01 Patent grant
GR01 Patent grant