CN109242761A - A kind of image display method and device - Google Patents
A kind of image display method and device Download PDFInfo
- Publication number
- CN109242761A CN109242761A CN201810982020.1A CN201810982020A CN109242761A CN 109242761 A CN109242761 A CN 109242761A CN 201810982020 A CN201810982020 A CN 201810982020A CN 109242761 A CN109242761 A CN 109242761A
- Authority
- CN
- China
- Prior art keywords
- area
- graphic pattern
- picture
- viewing 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.)
- Granted
Links
- 238000000034 method Methods 0.000 title claims abstract description 27
- 238000003860 storage Methods 0.000 claims description 6
- 230000001052 transient effect Effects 0.000 claims description 4
- 238000004891 communication Methods 0.000 claims description 2
- 238000005516 engineering process Methods 0.000 abstract description 3
- 238000010586 diagram Methods 0.000 description 14
- 238000004590 computer program Methods 0.000 description 8
- 230000004048 modification Effects 0.000 description 5
- 238000012986 modification Methods 0.000 description 5
- 230000008569 process Effects 0.000 description 5
- 238000004364 calculation method Methods 0.000 description 4
- 230000000694 effects Effects 0.000 description 3
- 230000006870 function Effects 0.000 description 3
- 230000003796 beauty Effects 0.000 description 2
- 230000008859 change Effects 0.000 description 2
- 238000005520 cutting process Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000009966 trimming Methods 0.000 description 1
- 230000000007 visual effect Effects 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/04—Context-preserving transformations, e.g. by using an importance map
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06T—IMAGE DATA PROCESSING OR GENERATION, IN GENERAL
- G06T3/00—Geometric image transformations in the plane of the image
- G06T3/40—Scaling of whole images or parts thereof, e.g. expanding or contracting
-
- Y—GENERAL 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
- Y02—TECHNOLOGIES OR APPLICATIONS FOR MITIGATION OR ADAPTATION AGAINST CLIMATE CHANGE
- Y02D—CLIMATE 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/00—Energy efficient computing, e.g. low power processors, power management or thermal management
Landscapes
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Controls And Circuits For Display Device (AREA)
Abstract
The present embodiments relate to electronic technology field more particularly to a kind of image display method and device, to make in the case where guaranteeing the distortionless situation of picture between the picture frame of art picture and picture to be left white region wide.The embodiment of the present invention includes: determine first display area of the picture viewing area of picture frame pattern at OSD layers, the picture frame pattern includes picture frame viewing area, is left white region and the picture viewing area, the region that region is left white between the picture frame viewing area and the picture viewing area, the picture viewing area is set as transparent, and the picture frame viewing area and the region that is left white are set as opaque;According to first display area, graphic pattern is determined in the second display area of video layer, first display area is located in second display area in the projection of the video layer;Show the picture frame pattern and the graphic pattern.
Description
Technical field
The present invention relates to electronic technology field more particularly to a kind of image display methods and device.
Background technique
Currently, being shown as picture frame and picture in OSD (screen menu type regulative mode, on-screen to art picture
Display) layer Overlapping display, display mode mainly have following three kinds:
One, in picture frame, two edges of picture are aligned picture uniform zoom with two edges in picture frame, placed in the middle aobvious
Show, as shown in Figure 1.
Two, picture is stretched to display, image edge in picture frame and is aligned with picture frame inward flange, as shown in Figure 2.
Three, picture uniform zoom is shown centered in picture frame, and exist between image edge and picture frame inward flange it is certain between
Every as shown in Figure 3.
In the prior art, the display that region is left white between picture and picture frame is limited by the shape of picture and picture frame, for upper
State three kinds of display modes, if picture is different from the length-width ratio of picture frame, in mode one and mode three, between picture and picture frame four
Zhou Liubai width is of different sizes, and unsightly, although picture is paved with display in picture frame in mode two, picture can be by for display effect
It is distorted in stretching.
Summary of the invention
The application provides a kind of image display method and device, to make art in the case where guaranteeing the distortionless situation of picture
Between the picture frame and picture of picture to be left white region wide.
A kind of image display method provided in an embodiment of the present invention, comprising:
The picture viewing area of picture frame pattern is determined OSD layers of the first display area, the picture frame pattern includes that picture frame is aobvious
Show area, be left white region and the picture viewing area, it is described be left white region be the picture frame viewing area and the picture viewing area it
Between region, the picture viewing area is set as transparent, and the picture frame viewing area and the region that is left white are set as opaque;
According to first display area, graphic pattern is determined in the second display area of video layer, so that described first
Display area is located in second display area in the projection of the video layer;
Show the picture frame pattern and the graphic pattern.
Optionally, described according to first display area, determine graphic pattern in the second display area of video layer, packet
It includes:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is aobvious not less than the picture
Show the area in area;
According to the area of first display area and the graphic pattern, second display area is determined.
Optionally, described that the graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not small
Area in the picture viewing area, comprising:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the area equation with the picture viewing area of the graphic pattern;
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the length of the graphic pattern is equal to the width of the picture viewing area;
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the width of the graphic pattern is equal to the length of the picture viewing area.
Optionally, the area according to first display area and the graphic pattern determines second display
Region, comprising:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
The embodiment of the present invention also provides a kind of image display apparatus, comprising:
Determining module, for determining that the picture viewing area of picture frame pattern is shown the first of OSD (screen menu type adjusting) layer
Show region, the picture frame pattern includes picture frame viewing area, is left white region and the picture viewing area, and the region that is left white is described
Region between picture frame viewing area and the picture viewing area, the picture viewing area are set as transparent, the picture frame viewing area
It is set as opaque with the region that is left white;
Computing module, for according to first display area, determine graphic pattern in the second display area of video layer,
So that first display area is located in second display area in the projection of the video layer;
Display module, for showing the picture frame pattern and the graphic pattern.
Optionally, the computing module, is specifically used for:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is aobvious not less than the picture
Show the area in area;
According to the area of first display area and the graphic pattern, second display area is determined.
Optionally, the computing module, is specifically used for:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the area of the graphic pattern is equal to the area of the picture viewing area;
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the length of the graphic pattern is equal to the length of the picture viewing area;
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the width of the graphic pattern is equal to the width of the picture viewing area.
Optionally, the computing module, is specifically used for:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
The embodiment of the present invention also provides a kind of electronic equipment, comprising:
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
A processor executes, so that at least one described processor is able to carry out the above method.
The embodiment of the present invention also provides a kind of non-transient computer readable storage medium, and the non-transient computer is readable to deposit
Storage media stores computer instruction, and the computer instruction is for making the computer execute the above method.
In the embodiment of the present invention, the picture frame pattern and graphic pattern of art picture are set to different display layers and shown
Show, picture frame pattern is shown at OSD layers, and graphic pattern is shown in video layer.Picture frame pattern include picture frame viewing area, be left white region and
Picture viewing area is left white region of the region between picture frame viewing area and picture viewing area.Determine that the picture of picture frame pattern is shown
Area in the first display area of OSD floor, and according to the first display area determine graphic pattern in the second display area of video layer,
So that the first display area is located in the second display area in the projection of video layer.Set transparent for picture viewing area, picture frame
It viewing area and is left white region and is set as opaque, in this way, graphic pattern is shown in video layer when picture frame pattern is in OSD layer display
When, graphic pattern can be shown through the picture viewing area of picture frame pattern.
Further, the embodiment of the present invention can be set as surrounding wide by the region that is left white in picture frame pattern, ensure that
The beauty that art picture is shown.Projection due to the first display area in video layer is located in the second display area, then picture figure
Case fills up the picture viewing area of picture frame pattern, and due to that can stretch the length-width ratios such as graphic pattern, ensure that graphic pattern
It is indeformable undistorted.
Detailed description of the invention
To describe the technical solutions in the embodiments of the present invention more clearly, make required in being described below to embodiment
Attached drawing is briefly introduced, it should be apparent that, drawings in the following description are only some embodiments of the invention, for this
For the those of ordinary skill in field, without any creative labor, it can also be obtained according to these attached drawings
His attached drawing.
Fig. 1 is the schematic diagram of the first picture display mode in the prior art;
Fig. 2 is the schematic diagram of second of picture display mode in the prior art;
Fig. 3 is the schematic diagram of the third picture display mode in the prior art;
Fig. 4 is a kind of flow diagram of image display method provided in an embodiment of the present invention;
Fig. 5 is the position of graphic pattern in the embodiment of the present invention schematic diagram Chong Die with the position of picture viewing area;
Fig. 6 is that the length of graphic pattern in the embodiment of the present invention is greater than the length of picture viewing area and the width of graphic pattern
Greater than the schematic diagram of the width of picture viewing area;
Fig. 7 is the signal that the length-width ratio of graphic pattern provided in an embodiment of the present invention is equal to the length-width ratio of picture viewing area
Figure;
Fig. 8 is the signal that the length-width ratio of graphic pattern provided in an embodiment of the present invention is less than the length-width ratio of picture viewing area
Figure;
Fig. 9 is the signal that the length-width ratio of graphic pattern provided in an embodiment of the present invention is greater than the length-width ratio of picture viewing area
Figure;
Figure 10 is a kind of structural schematic diagram of image display apparatus provided in an embodiment of the present invention;
Figure 11 is the structural schematic diagram of electronic equipment provided in an embodiment of the present invention.
Specific embodiment
To make the objectives, technical solutions, and advantages of the present invention clearer, below in conjunction with attached drawing to the present invention make into
It is described in detail to one step, it is clear that the described embodiments are only some of the embodiments of the present invention, rather than whole implementation
Example.Based on the embodiments of the present invention, obtained by those of ordinary skill in the art without making creative efforts
All other embodiment, shall fall within the protection scope of the present invention.
For purposes of illustration only, the embodiment in the present invention is to include that the visual device of display screen makees exemplary illustration, this field
Technical staff it should be understood that the embodiment in the present invention is equally applicable to other devices, such as handheld device, mobile unit,
Wearable device calculates equipment and various forms of user equipmenies (User Equipment, UE), mobile station (Mobile
Station, MS), terminal (terminal), terminal device (Terminal Equipment) etc..
The embodiment of the invention provides a kind of image display methods.As shown in figure 4, picture provided in an embodiment of the present invention is aobvious
Show method, comprising the following steps:
Step 401 determines the picture viewing area of picture frame pattern in the first viewing area of OSD (screen menu type adjusting) layer
Domain, the picture frame pattern include picture frame viewing area, are left white region and the picture viewing area, and the region that is left white is the picture frame
Region between viewing area and the picture viewing area, the picture viewing area are set as transparent, the picture frame viewing area and institute
It states and is left white region and is set as opaque.
Step 402, according to first display area, determine graphic pattern in the second display area of video layer so that
First display area is located in second display area in the projection of the video layer.
Step 403 shows the picture frame pattern and the graphic pattern.
In the embodiment of the present invention, the picture frame pattern and graphic pattern of art picture are set to different display layers and shown
Show, picture frame pattern is shown at OSD layers, and graphic pattern is shown in video layer.Picture frame pattern include picture frame viewing area, be left white region and
Picture viewing area is left white region of the region between picture frame viewing area and picture viewing area.Determine that the picture of picture frame pattern is shown
Area in the first display area of OSD floor, and according to the first display area determine graphic pattern in the second display area of video layer,
So that the first display area is located in the second display area in the projection of video layer.Set transparent for picture viewing area, picture frame
It viewing area and is left white region and is set as opaque, in this way, graphic pattern is shown in video layer when picture frame pattern is in OSD layer display
When, graphic pattern can be shown through the picture viewing area of picture frame pattern.The embodiment of the present invention can will be in picture frame pattern
It is left white region and is set as that surrounding is wide, ensure that the beauty that art picture is shown.Since the first display area is in the throwing of video layer
Shadow is located in the second display area, then graphic pattern fills up the picture viewing area of picture frame pattern, and due to can be by picture figure
The length-width ratios such as case stretch, and ensure that graphic pattern is indeformable undistorted.
In above-mentioned steps 401, setting transparent for picture viewing area may include two ways:
1, there is pixel data in picture display area.The attribute of one pixel data includes RGB (the color mould of the pixel data
Formula) and Alpha value.Wherein, Alpha value denotes the transparent and translucence an of pixel data, and general Alpha value takes 0
Between~1,0 is opaque, and 1 is transparent.The embodiment of the present invention can set the Alpha value of pixel data in picture display area
It is set to 1.
2, there is no pixel data in picture viewing area.In this way, when picture frame pattern is plotted in OSD layers, picture viewing area is
It is fully transparent.When since picture frame pattern being plotted in OSD layers, picture viewing area is without pixel data, so more saving system meter
Calculation amount and memory improve and draw speed.
In the embodiment of the present invention, due to picture frame pattern and graphic pattern Layering manifestation, graphic pattern is shown in video layer, can
To individually adjust the image quality of graphic pattern to reach optimal display result.OSD layers of picture frame pattern can also be individually switched, work as figure
When piece pattern is constant, the display of graphic pattern is updated without the switching because of picture frame pattern, reduces the mistake of calculating and drafting
Journey.
In the embodiment of the present invention, position and the area of the picture viewing area according to picture frame pattern are needed, determines graphic pattern
Position and area in video layer.It is described according to first display area, determine graphic pattern in the second display of video layer
Region, comprising:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is aobvious not less than the picture
Show the area in area;
According to the area of first display area and the graphic pattern, second display area is determined.
In order to reach change graphic pattern area and undistorted indeformable purpose, by picture figure in the embodiment of the present invention
Case carries out length and width uniform zoom, so that the area of graphic pattern is not less than the area of picture viewing area.Then, according to the first display
The area in region and graphic pattern determines the second display area, in this way when graphic pattern and picture frame pattern Overlapping display, picture
Pattern can be full of picture viewing area, and be shown through the picture viewing area of picture frame pattern.
In addition, the specific location of the second display area can be according to the content of graphic pattern and the tool of the first display area
Body position determines.Such as, set Chong Die with the position of picture viewing area for the position of graphic pattern, i.e. the graphic pattern upper left corner
Coordinate it is identical as the coordinate in the picture viewing area upper left corner, as shown in figure 5, in Fig. 5 dotted line frame be graphic pattern by picture frame figure
The part that case shelters from.
Preferably, the area according to first display area and the graphic pattern, determines second display
Region, comprising:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
This is because the content in graphic pattern is typically presented in the middle position of picture, therefore in order to more preferable
Display effect, the center of the first display area is overlapped by the embodiment of the present invention with the center of the second display area, further according to
The center of two display areas and the area of graphic pattern, determine the second display area.
The display mode of above-mentioned graphic pattern is to be shown through the picture viewing area for being set as transparence display, picture figure
Case is set as opaque regional occlusion in picture frame pattern in the region except picture viewing area, is reached graphic pattern and is tailored
Display effect.Graphic pattern can also be cut out, the part being blocked in graphic pattern is punctured.In order to guarantee to scheme
The integrality of piece, the embodiment of the present invention only block processing, in this way, when the picture viewing area of picture frame pattern changes, by
Complete image data is still saved in the graphic pattern of video layer, did not carried out cutting, it only need to be again by stretching zoom operations
New picture viewing area can be adapted to again, without because trimming operation lose graphic pattern partial data, without pair
Graphic pattern decodes again obtains partial data.In this way, only updating OSD when switching picture frame pattern when graphic pattern is constant
The picture frame pattern of layer, without updating the graphic pattern of video layer, it is possible to reduce CPU (central processing unit, Central
Processing Unit) calculation amount, reduce GPU (graphics processor, Graphics Processing Unit) update screen
Operation.
In the embodiment of the present invention, it is to make graphic pattern that the area of graphic pattern, which is not less than the area of picture viewing area,
Picture viewing area is filled up completely, therefore, the length of graphic pattern length and width uniform zoom to graphic pattern can be greater than picture
The length of viewing area, and the width of graphic pattern is greater than the width of picture viewing area, as shown in Figure 6.In Fig. 6, graphic pattern
Second display area is the region that dotted line 601 outlines, and the first display area of picture viewing area is the region that solid line 602 outlines,
As can be seen that the length of the first display area is greater than the length of the second display area, the width of the first display area is greater than second
The width of display area.In order to show the content in more graphic patterns in picture viewing area, also for reduce calculate and
The workload of drafting sets the length of the first display area in the embodiment of the present invention length phase with the second display area
Together, or by the width of the first display area it is set as of same size with the second display area, that is, is guaranteeing graphic pattern energy
Under the premise of filling full picture viewing area, so that the area of the first display area is minimum.
The comparison of graphic pattern and picture viewing area may include three kinds of situations, i.e., the length-width ratio of graphic pattern is equal to picture
The length-width ratio of the length-width ratio of viewing area, graphic pattern is big less than the length-width ratio of the length-width ratio of picture viewing area and graphic pattern
Length-width ratio in picture viewing area.
These three situations are described separately below.
Situation one, it is described that the graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not small
Area in the picture viewing area, comprising:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the area of the graphic pattern is equal to the area of the picture viewing area.
If the length-width ratio of graphic pattern is equal to the length-width ratio of picture viewing area, graphic pattern can not be by after stretching
OSD layers of picture frame pattern blocks, and the area of graphic pattern is equal to the area of picture viewing area, i.e. graphic pattern and picture frame pattern
Picture viewing area is overlapped, as shown in Figure 7.
If the length-width ratio of graphic pattern is not equal to the length-width ratio of picture viewing area, the graphic pattern of video layer needs part
It is blocked by OSD layers of picture frame pattern, and is divided into following two situation.
Situation two, it is described that the graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not small
Area in the picture viewing area, comprising:
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the length of the graphic pattern is equal to the length of the picture viewing area.
The display mode of situation two is as shown in figure 8, carry out length and width uniform zoom for graphic pattern, until the length of graphic pattern
The equal length of degree and picture viewing area, the width of graphic pattern is greater than the width of picture viewing area at this time.If by graphic pattern
Center be set as being overlapped with the center of picture viewing area, then the region that graphic pattern is blocked by picture frame pattern be Fig. 8 in dotted line
The region 801 surrounded with solid line.
Situation three, it is described that the graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not small
Area in the picture viewing area, comprising:
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the width of the graphic pattern is equal to the width of the picture viewing area.
The display mode of situation three is as shown in figure 9, carry out length and width uniform zoom for graphic pattern, until the width of graphic pattern
Degree is equal with the width of picture viewing area, and the length of graphic pattern is greater than the length of picture viewing area at this time.If by graphic pattern
Center be set as being overlapped with the center of picture viewing area, then the region that graphic pattern is blocked by picture frame pattern be Fig. 9 in dotted line
The region 901 surrounded with solid line.
For a clearer understanding of the present invention, above-mentioned process is described in detail with specific embodiment below.
Embodiment one is as shown in fig. 7, the length-width ratio of picture viewing area is equal to the length-width ratio of graphic pattern.
Determine first display area of the picture viewing area of picture frame pattern at OSD layers.If a length of the 1920 of video screen, it is wide
It is 1080, the width of picture frame is M in picture frame pattern, and the width being left white is N, establishes coordinate as coordinate origin using the upper left corner of screen
System, then the long l of the position (x, y) of picture viewing area and picture viewing area and width w can be calculated according to the following formula:
X=M+N ... ... formula 1
Y=M+N ... ... formula 2
L=1920-2* (M+N) ... ... formula 3
W=1080-2* (M+N) ... ... formula 4
It determines that the length-width ratio of picture viewing area is equal to the length-width ratio of graphic pattern, graphic pattern is subjected to length and width etc. than contracting
It puts, the length of graphic pattern is made to be equal to the long l of picture viewing area, the width of graphic pattern is equal to the width w of picture viewing area.Together
When, determine that the position of picture viewing area is equal to the position (x, y) of picture viewing area.
In OSD layers of display picture frame pattern, graphic pattern is shown in position (x, y) of video layer.
Embodiment two is as shown in figure 8, the length-width ratio of graphic pattern is less than the length-width ratio of picture viewing area.
Determine first display area of the picture viewing area of picture frame pattern at OSD layers.A length of the 1920 of video screen, width are
1080, the width of picture frame is M in picture frame pattern, and the width being left white is N, and the position (x, y) of picture viewing area and picture are shown
The long l and wide w in area are calculated according to formula 1 to formula 4.
It determines that the length-width ratio of graphic pattern is less than the length-width ratio of picture viewing area, graphic pattern is subjected to length and width etc. than contracting
It puts, so that the length of graphic pattern is equal to the length of picture viewing area, if a length of B of graphic pattern at this timel, the width of graphic pattern is
Bw, then position (the B for calculating graphic pattern is neededx, By), specific calculating process is as follows:
The occlusion area width in Fig. 8 is set as H, then H can be calculated with according to the following formula 5:
Therefore, the position of graphic pattern can be obtained with according to the following formula 6 and formula 7:
Bx=x ... ... formula 6
In OSD layers of display picture frame pattern, in (the B of video layerx, By) position display graphic pattern.
Embodiment three is as shown in figure 9, the length-width ratio of graphic pattern is greater than the length-width ratio of picture viewing area.
Determine first display area of the picture viewing area of picture frame pattern at OSD layers.A length of the 1920 of video screen, width are
1080, the width of picture frame is M in picture frame pattern, and the width being left white is N, and the position (x, y) of picture viewing area and picture are shown
The long l and wide w in area are calculated according to formula 1 to formula 4.
It determines that the length-width ratio of graphic pattern is greater than the length-width ratio of picture viewing area, graphic pattern is subjected to length and width etc. than contracting
It puts, so that the width of graphic pattern is equal to the width of picture viewing area, if a length of B of graphic pattern at this timel, the width of graphic pattern is
Bw, then position (the B for calculating graphic pattern is neededx, By), specific calculating process is as follows:
The occlusion area width in Fig. 8 is set as K, then K can be calculated with according to the following formula 8:
Therefore, the position of graphic pattern can be obtained with according to the following formula 9 and formula 10:
By=y ... ... formula 10
In OSD layers of display picture frame pattern, in (the B of video layerx, By) position display graphic pattern.
The embodiment of the invention also provides a kind of image display apparatus, as shown in Figure 10, comprising:
Determining module 1001, for determining the picture viewing area of picture frame pattern the of OSD (screen menu type adjusting) layer
One display area, the picture frame pattern include picture frame viewing area, are left white region and the picture viewing area, and the region that is left white is
Region between the picture frame viewing area and the picture viewing area, the picture viewing area are set as transparent, and the picture frame is aobvious
Show that area and the region that is left white are set as opaque;
Computing module 1002, for determining graphic pattern in the second display of video layer according to first display area
Region, so that first display area is located in second display area in the projection of the video layer;
Display module 1003, for showing the picture frame pattern and the graphic pattern.
Optionally, the computing module 1002, is specifically used for:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is aobvious not less than the picture
Show the area in area;
According to the area of first display area and the graphic pattern, second display area is determined.
Optionally, the computing module 1002, is specifically used for:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the area of the graphic pattern is equal to the area of the picture viewing area;
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the length of the graphic pattern is equal to the length of the picture viewing area;
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is carried out
Length and width uniform zoom, so that the width of the graphic pattern is equal to the width of the picture viewing area.
Optionally, the computing module 1002, is specifically used for:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
Based on identical principle, the present invention also provides a kind of electronic equipment, as shown in figure 11, comprising:
Including processor 1101, memory 1102, transceiver 1103, bus interface 1104, wherein processor 1101, storage
It is connected between device 1102 and transceiver 1103 by bus interface 1104;
The processor 1101 executes method shown in Fig. 4 for reading the program in the memory 1102.
The embodiment of the present application provides a kind of computer program product, and the computer program product is non-temporary including being stored in
Calculation procedure on state computer readable storage medium, the computer program include program instruction, when described program instructs quilt
When computer executes, the computer is made to execute method shown in Fig. 4.
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
Although preferred embodiments of the present invention have been described, it is created once a person skilled in the art knows basic
Property concept, then additional changes and modifications may be made to these embodiments.So it includes excellent that the following claims are intended to be interpreted as
It selects embodiment and falls into all change and modification of the scope of the invention.
Obviously, various changes and modifications can be made to the invention without departing from essence of the invention by those skilled in the art
Mind and range.In this way, if these modifications and changes of the present invention belongs to the range of the claims in the present invention and its equivalent technologies
Within, then the invention is also intended to include including these modification and variations.
Claims (10)
1. a kind of image display method characterized by comprising
Determine the picture viewing area of picture frame pattern in the first display area of OSD (screen menu type adjusting) layer, the picture frame figure
Case includes picture frame viewing area, is left white region and the picture viewing area, and the region that is left white is the picture frame viewing area and described
Region between picture viewing area, the picture viewing area are set as transparent, and the picture frame viewing area and the region that is left white are set
It is set to opaque;
According to first display area, graphic pattern is determined in the second display area of video layer, so that first display
Region is located in second display area in the projection of the video layer;
Show the picture frame pattern and the graphic pattern.
2. the method as described in claim 1, which is characterized in that it is described according to first display area, determine graphic pattern
In the second display area of video layer, comprising:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not less than the picture viewing area
Area;
According to the area of first display area and the graphic pattern, second display area is determined.
3. method according to claim 2, which is characterized in that it is described that the graphic pattern is subjected to length and width uniform zoom, make
The area for obtaining the graphic pattern is not less than the area of the picture viewing area, comprising:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the area of the graphic pattern is equal to the area of the picture viewing area;
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the length of the graphic pattern is equal to the length of the picture viewing area;
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the width of the graphic pattern is equal to the width of the picture viewing area.
4. method as claimed in claim 2 or claim 3, which is characterized in that described according to first display area and the picture
The area of pattern determines second display area, comprising:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
5. a kind of image display apparatus characterized by comprising
Determining module, for determining the picture viewing area of picture frame pattern in the first viewing area of OSD (screen menu type adjusting) layer
Domain, the picture frame pattern include picture frame viewing area, are left white region and the picture viewing area, and the region that is left white is the picture frame
Region between viewing area and the picture viewing area, the picture viewing area are set as transparent, the picture frame viewing area and institute
It states and is left white region and is set as opaque;
Computing module, for according to first display area, determine graphic pattern in the second display area of video layer so that
First display area is located in second display area in the projection of the video layer;
Display module, for showing the picture frame pattern and the graphic pattern.
6. device as claimed in claim 5, which is characterized in that the computing module is specifically used for:
The graphic pattern is subjected to length and width uniform zoom, so that the area of the graphic pattern is not less than the picture viewing area
Area;
According to the area of first display area and the graphic pattern, second display area is determined.
7. device as claimed in claim 6, which is characterized in that the computing module is specifically used for:
If the length-width ratio of the graphic pattern is equal to the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the area of the graphic pattern is equal to the area of the picture viewing area;
If the length-width ratio of the graphic pattern is less than the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the length of the graphic pattern is equal to the length of the picture viewing area;
If the length-width ratio of the graphic pattern is greater than the length-width ratio of the picture viewing area, the graphic pattern is subjected to length and width
Uniform zoom, so that the width of the graphic pattern is equal to the width of the picture viewing area.
8. device as claimed in claims 6 or 7, which is characterized in that the computing module is specifically used for:
The center of first display area is determined as to the center of second display area;
According to the area at the center of second display area and the graphic pattern, second display area is determined.
9. a kind of electronic equipment characterized by comprising
At least one processor;And
The memory being connect at least one described processor communication;Wherein,
The memory is stored with the instruction that can be executed by least one described processor, and described instruction is by described at least one
It manages device to execute, so that at least one described processor is able to carry out any method of claim 1-4.
10. a kind of non-transient computer readable storage medium, which is characterized in that the non-transient computer readable storage medium is deposited
Computer instruction is stored up, the computer instruction is for making the computer perform claim require 1~4 any the method.
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 true CN109242761A (en) | 2019-01-18 |
CN109242761B 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) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN110278479A (en) * | 2019-06-04 | 2019-09-24 | 青岛海信电器股份有限公司 | A kind of image display method and television set |
WO2020043109A1 (en) * | 2018-08-27 | 2020-03-05 | 青岛海信电器股份有限公司 | Picture display method and device |
CN112085818A (en) * | 2019-06-14 | 2020-12-15 | 腾讯数码(天津)有限公司 | Picture processing method and device |
Citations (4)
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 |
CN103152536A (en) * | 2013-03-20 | 2013-06-12 | 深圳市知音同创科技有限公司 | Digital TV (Television) terminal capable of displaying advertisement |
WO2015078366A1 (en) * | 2013-11-29 | 2015-06-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for displaying an image, and electronic device |
-
2018
- 2018-08-27 CN CN201810982020.1A patent/CN109242761B/en active Active
Patent Citations (4)
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 |
CN103152536A (en) * | 2013-03-20 | 2013-06-12 | 深圳市知音同创科技有限公司 | Digital TV (Television) terminal capable of displaying advertisement |
WO2015078366A1 (en) * | 2013-11-29 | 2015-06-04 | Tencent Technology (Shenzhen) Company Limited | Method and apparatus for displaying an image, and electronic device |
Non-Patent Citations (1)
Title |
---|
任卫军等: "可变区域的视频图像幅型比非线性缩放算法", 《电视技术》 * |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2020043109A1 (en) * | 2018-08-27 | 2020-03-05 | 青岛海信电器股份有限公司 | Picture display method and device |
CN110278479A (en) * | 2019-06-04 | 2019-09-24 | 青岛海信电器股份有限公司 | A kind of image display method and television set |
CN110278479B (en) * | 2019-06-04 | 2021-10-29 | 海信视像科技股份有限公司 | Picture display method and television |
CN112085818A (en) * | 2019-06-14 | 2020-12-15 | 腾讯数码(天津)有限公司 | Picture processing method and device |
CN112085818B (en) * | 2019-06-14 | 2023-03-14 | 腾讯数码(天津)有限公司 | Picture processing method and device |
Also Published As
Publication number | Publication date |
---|---|
CN109242761B (en) | 2023-07-14 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN107170424B (en) | Display control method, display method and electronic equipment | |
US9916676B2 (en) | 3D model rendering method and apparatus and terminal device | |
CN109242761A (en) | A kind of image display method and device | |
CN104732486B (en) | The display methods and device of a kind of picture | |
CN105046657B (en) | A kind of image stretch distortion self-adapting correction method | |
CN105278899B (en) | A kind of display control method and device | |
CN107221306A (en) | Method, device and the display device of brightness of image in correction splicing device screen | |
CN108287678B (en) | Image processing method, device, equipment and medium based on virtual reality | |
CN113126862B (en) | Screen capture method and device, electronic equipment and readable storage medium | |
CN109816763A (en) | A kind of method for rendering graph | |
KR20030069897A (en) | Method and apparatus for improving picture sharpness | |
CN110502205B (en) | Picture display edge processing method and device, electronic equipment and readable storage medium | |
CN102945144A (en) | Window layout method and device | |
WO2020078290A1 (en) | Displaying method for round-corner screen, computer device, and storage medium | |
WO2023093291A1 (en) | Image processing method and apparatus, computer device, and computer program product | |
CN105681686A (en) | Image processing method and system | |
CN106454387A (en) | Panoramic video live commenting display method and device | |
CN107507520A (en) | The method that terminal, display screen and control display screen are shown | |
CN105094507A (en) | Method and system for implementing fillet icon focus registration in 3D UI | |
CN109302629B (en) | Method for switching picture frames for pictures and display terminal | |
CN106814933B (en) | Window shade display methods and device | |
CN106937103B (en) | A kind of image processing method and device | |
CN103260074A (en) | Method, device and terminal of image displaying | |
CN104639962A (en) | Method and system for realizing television touch control | |
WO2020037754A1 (en) | Method and device for enhancing image quality of video |
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 |