CN114371820A - Method and device for realizing special-shaped layer - Google Patents

Method and device for realizing special-shaped layer Download PDF

Info

Publication number
CN114371820A
CN114371820A CN202011103939.2A CN202011103939A CN114371820A CN 114371820 A CN114371820 A CN 114371820A CN 202011103939 A CN202011103939 A CN 202011103939A CN 114371820 A CN114371820 A CN 114371820A
Authority
CN
China
Prior art keywords
special
shaped
layer
data
target
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.)
Pending
Application number
CN202011103939.2A
Other languages
Chinese (zh)
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.)
Pixelhue Technology Ltd
Original Assignee
Pixelhue Technology 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 Pixelhue Technology Ltd filed Critical Pixelhue Technology Ltd
Priority to CN202011103939.2A priority Critical patent/CN114371820A/en
Publication of CN114371820A publication Critical patent/CN114371820A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/14Digital output to display device ; Cooperation and interconnection of the display device with other functional units
    • G06F3/1415Digital output to display device ; Cooperation and interconnection of the display device with other functional units with means for detecting differences between the image stored in the host and the images displayed on the displays

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Controls And Circuits For Display Device (AREA)
  • User Interface Of Digital Computer (AREA)
  • Image Processing (AREA)

Abstract

The embodiment of the invention discloses a method and a device for realizing a special-shaped layer. The method for implementing the special-shaped layer comprises the following steps: acquiring transparency data of a special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped ineffective area; acquiring a first layer and layer information of the first layer; zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area; and performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer. The embodiment of the invention can improve the image processing capability and the special-shaped display effect of the video processing equipment.

Description

Method and device for realizing special-shaped layer
Technical Field
The invention relates to the technical field of display, in particular to a special-shaped layer implementation method, a special-shaped layer implementation device, a special-shaped layer implementation system and a computer readable storage medium.
Background
In video processing devices, since images are generally rectangular, windows opened with an input image source are also generally rectangular. In the actual use process, the layer is expected to be not rectangular under partial scenes, and further, more various, flexible and even special-shaped display effects are presented. The method comprises the steps of firstly editing a layer to be superposed by a special-shaped window through the multimedia video server, then superposing the layer to be superposed and the base map layer after special-shaped editing into an image, and outputting the image to an input interface of the video processing equipment, wherein the superposed and synthesized image is used as a complete input source to enter the video processing equipment for editing. Obviously, this implementation requires a multimedia video server capable of supporting the editing of the heteromorphic layer to be prepared on site, and the equipment use cost is high. In addition, since the profile layer is edited by the multimedia video server, the multimedia video server cannot support a plurality of input interfaces like a video processing device.
Therefore, it is an urgent need to solve the problem of providing a simple and low-cost method for implementing an irregular layer.
Disclosure of Invention
In order to solve at least some of the defects and shortcomings in the prior art, embodiments of the present invention provide a method and an apparatus for implementing an irregular layer.
On one hand, the method for implementing the special-shaped layer provided by the embodiment of the invention comprises the following steps: acquiring transparency data of a special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped ineffective area; acquiring a first layer and layer information of the first layer; zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area; and performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
According to the technical scheme, the special-shaped layer is obtained by obtaining the transparency data of the special-shaped template and performing transparency processing on the first layer according to the transparency data, the problem that a multimedia video server is needed to realize the special-shaped layer in the prior art is solved, convenience, rapidness and higher flexibility are achieved, the equipment cost is reduced, and the image processing capacity and the display effect of the video processing equipment are further improved.
In one embodiment of the invention, the transparency data of the target shaped template comprises first transparency data of the target shaped active area and second transparency data of the target shaped inactive area, the first transparency data being non-fully transparent data and the second transparency data being fully transparent data; the layer information of the first layer includes a resolution of the first layer.
In one embodiment of the invention, the transparency data of the special-shaped template is received via a master control circuit and stored to a volatile memory; and reading the transparency data of the shaped template from the volatile memory.
In an embodiment of the present invention, the obtaining the special-shaped layer by performing transparency processing on the first layer according to the transparency data of the target special-shaped template includes: assigning the first transparency data to transparency data of a first area corresponding to the target special-shaped effective area on the first layer; and assigning the second transparency data to the transparency data of a second area corresponding to the target special-shaped invalid area on the first layer.
In an embodiment of the present invention, the method for implementing the special-shaped layer further includes: acquiring a second image layer; and overlapping the second image layer and the special-shaped image layer.
On the other hand, an apparatus for implementing an irregular layer provided in an embodiment of the present invention includes: the special-shaped template acquisition module is used for acquiring transparency data of the special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped invalid area; the image layer and image layer information acquisition module is used for acquiring a first image layer and image layer information of the first image layer; the special-shaped template zooming module is used for zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area; and the transparency processing module is used for performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
In another aspect, an implementation method for a special-shaped layer provided in an embodiment of the present invention includes: acquiring a first layer comprising pixel points with preset display parameter data; and performing transparency processing on the first image layer according to the preset display parameter data to obtain a special-shaped image layer.
According to the technical scheme, the first image layer is subjected to transparency processing according to the preset display parameter data of the pixel points on the first image layer to obtain the special-shaped image layer, the problem that a multimedia video server is needed to realize the special-shaped image layer in the prior art is solved, convenience, rapidness and higher flexibility are achieved, the equipment cost is reduced, and the image processing capacity and the display effect of the video processing equipment are further improved.
In an embodiment of the present invention, the preset display parameter data is target color data; the transparency processing of the first image layer according to the preset display parameter data to obtain the special-shaped image layer comprises the following steps: acquiring the color data of a target pixel point in the first layer; judging whether the color data of the target pixel point and the target color data meet a preset chromaticity condition; when the color data of the target pixel point and the target color data meet a preset chromaticity condition, assigning the transparency data of the target pixel point as non-completely opaque data; and when the color data of the target pixel point and the target color data do not meet the preset chromaticity condition, assigning the transparency data of the target pixel point as completely opaque data.
In an embodiment of the invention, the preset chromaticity condition is that a difference between the color data of the target pixel and the target color data is smaller than a chromaticity difference threshold.
In an embodiment of the present invention, the preset display parameter data is target brightness data; the transparency processing of the first image layer according to the preset display parameter data to obtain the special-shaped image layer comprises the following steps: acquiring brightness data of a target pixel point in the first layer; judging whether the brightness data of the target pixel point and the target brightness data meet a preset brightness condition or not; and when the brightness data of the target pixel point meets a preset brightness condition, assigning the transparency data of the target pixel point as completely transparent data.
In an embodiment of the invention, the preset brightness condition is that a difference between the brightness data of the target pixel and the target brightness data is smaller than a brightness difference threshold.
In an embodiment of the present invention, the method for implementing the special-shaped layer further includes: acquiring a second image layer; respectively carrying out scaling processing on the special-shaped image layer and the second image layer to obtain a scaled special-shaped image layer and a scaled second image layer; and overlapping the zoomed second image layer and the zoomed special-shaped image layer.
In another aspect, an apparatus for implementing an irregular layer provided in an embodiment of the present invention includes: the image layer acquisition module is used for acquiring a first image layer comprising pixel points with preset display parameter data; and the transparency processing module is used for performing transparency processing on the first image layer according to the preset display parameter data to obtain a special-shaped image layer.
One or more of the above technical solutions may have the following advantages or beneficial effects:
(1) the method comprises the steps of obtaining a special-shaped transparency data template and performing transparency processing on a first layer according to the special-shaped transparency template data to obtain a processed special-shaped layer, so that the problem that a multimedia video server is needed to realize the special-shaped layer in the prior art is solved, convenience, rapidness and higher flexibility are realized, the equipment cost is reduced, and the image processing capacity and the display effect of video processing equipment are further improved; in addition, the special-shaped transparency data template is stored in the volatile memory so that other zooming processing channels can also use the special-shaped transparency data template to realize special-shaped display, and thus the layer processing capacity and the layer display effect of the video processing equipment are improved;
(2) the method comprises the steps that transparency processing is carried out on a first image layer according to preset display parameter data of pixel points on the first image layer to obtain a special-shaped image layer, the problem that a multimedia video server is needed to realize the special-shaped image layer in the prior art is solved, convenience and rapidness are achieved, flexibility is higher, equipment cost is reduced, and image processing capacity and display effect of video processing equipment are further improved; in addition, the abnormal processing of the layer is realized through different preset display parameter data modes, so that the abnormal processing is diversified, the various requirements of users are met, and the user experience degree and the satisfaction degree are improved.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art to obtain other drawings based on these drawings without creative efforts.
Fig. 1 is a schematic flow chart of a method for implementing a special-shaped layer according to a first embodiment of the present invention.
Fig. 2A is a detailed flowchart of step S11 in fig. 1.
Fig. 2B is a detailed flowchart of step S17 in fig. 1.
Fig. 3 is a schematic flowchart of another method for implementing an irregular layer according to the first embodiment of the present invention.
Fig. 4A is a schematic structural diagram of a video processing device for implementing the special-shaped layer implementation method according to the first embodiment of the present invention.
Fig. 4B is a schematic data distribution diagram of the special-shaped transparency data template.
Fig. 4C is a schematic diagram illustrating an effect of the transparency processing process of the first layer.
Fig. 4D is a schematic effect diagram of an overlay processing process of the first layer and the second layer.
Fig. 4E is a schematic diagram of an overall process for implementing the special-shaped layer.
Fig. 4F is another overall process diagram of layer profile overlay.
Fig. 5 is a schematic structural diagram of an irregular layer implementation apparatus according to a second embodiment of the present invention.
Fig. 6 is a schematic flow chart of a method for implementing a special-shaped layer according to a third embodiment of the present invention.
Fig. 7A is a detailed flowchart of step S23 in fig. 6.
Fig. 7B is another detailed flowchart of step S23 in fig. 6.
Fig. 8 is a schematic flowchart of another method for implementing an irregular layer according to a third embodiment of the present invention.
Fig. 9A is an effect schematic diagram of the entire process of layer profile overlaying.
Fig. 9B is a schematic diagram of the effect of another layer profile overlay overall process.
Fig. 9C is another overall process diagram of layer profile overlay.
Fig. 10 is a schematic structural diagram of an irregular layer implementation apparatus according to a fourth embodiment of the present invention.
Fig. 11 is a schematic structural diagram of an irregular layer implementation system according to a fifth embodiment of the present invention.
Fig. 12 is a schematic structural diagram of a computer-readable storage medium according to a sixth embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all of the embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
[ first embodiment ] A method for manufacturing a semiconductor device
As shown in fig. 1, a first embodiment of the present invention provides a method for implementing an irregular layer. The heteromorphic layer implementation method can be applied to video processing devices such as card-insertion type switchers, video processors, video converters and the like. Specifically, the method for implementing the special-shaped layer provided by the embodiment of the present invention includes, for example, the steps of:
s11: acquiring transparency data of a special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped ineffective area;
s13: acquiring a first layer and layer information of the first layer;
s15: zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area; and
s17: and performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
Therefore, the special-shaped layer is obtained by obtaining the transparency data of the special-shaped template and performing transparency processing on the first layer according to the transparency data, the problem that a multimedia video server is needed to realize the special-shaped layer in the prior art is solved, convenience, rapidness and higher flexibility are achieved, the equipment cost is reduced, and the image processing capacity and the display effect of the video processing equipment are further improved.
Specifically, the transparency data of the target special-shaped template includes first transparency data of the target special-shaped effective area and second transparency data of the target special-shaped ineffective area, the first transparency data is incompletely transparent data, and the second transparency data is completely transparent data; the layer information of the first layer includes a resolution of the first layer. Typically, the resolution of the first image layer may be represented by, for example, the width x height of the first image layer.
Further, as shown in fig. 2A, step S11 includes, for example:
s111: receiving the transparency data of the special-shaped template through a master control circuit and storing the transparency data into a volatile memory; and
s113: reading the transparency data of the shaped template from the volatile memory.
Therefore, the transparency data of the special-shaped template can be stored in the volatile memory so that other scaling processing channels can also use the transparency data of the special-shaped template to realize special-shaped display, and the layer processing capacity and the layer display effect of the video processing device are further improved.
As shown in fig. 2B, step S17 includes, for example:
s171: assigning the first transparency data to transparency data of a first area corresponding to the target special-shaped effective area on the first layer; and
s173: and assigning the second transparency data to the transparency data of a second area corresponding to the target special-shaped invalid area on the first image layer.
Namely, the first transparency data and the second transparency data in the target special-shaped template are respectively assigned to the first area and the second area corresponding to the first image layer, so that the special-shaped image layer with the special-shaped effect is formed.
In addition, as shown in fig. 3, the method for implementing the special-shaped layer further includes:
s18: acquiring a second image layer;
s19: and overlapping the second image layer and the special-shaped image layer.
Therefore, the special-shaped layer can be displayed on the second layer, and the application of the special-shaped effect is realized.
In order to facilitate understanding of the present invention, the following describes in detail each step of the method for implementing the profiled layer according to the embodiment of the present invention with reference to fig. 4A to 4D.
The method for realizing the special-shaped layer provided by the embodiment of the invention can be applied to video processing equipment to realize special-shaped processing of the layer. The video processing device here may be connected, for example, to a display screen or other display system such as a display controller and display control card and a display screen. The display screen may be, for example, an LED display screen, or may also be other display screens such as an LCD or other types of display screens, which is not limited in the present invention. Typically, the video processing device herein may be, for example, an electronic device having processing capabilities for performing a morphing process, an overlay process, and the like on a layer.
As shown in fig. 4A, the video processing apparatus 100 includes, for example, a main control circuit 110, a programmable logic device 120, an image output interface 130, and a volatile memory 140. The main control circuit 110 is connected to the programmable logic device 120, and the programmable logic device 120 is further connected to the image output interface 130 and the volatile memory 140. The master control circuit 110 may, for example, include a processor, such as an MCU (Microcontroller Unit), an ARM, or the like, which is mainly used for loading an FPGA program, transceiving control instructions, communicating with other devices, such as an upper computer, and the like. The Programmable logic device 120 is, for example, an FPGA (Field Programmable Gate Array), and is configured to obtain a special-shaped template including transparency data, and a first layer and a second layer that are externally input, and process the first layer according to the transparency data of the special-shaped template, for example, perform transparency processing on the first layer to obtain a special-shaped layer. And further, overlapping the special-shaped layer and the received second layer, and outputting the overlapped layer through an image output interface for display. It should be noted here that the special-shaped template is, for example, a document including transparency data of pixel points, and may also exist in a form, a list, an image, or other forms. The size of the transparency data represents the transparency of the pixel points, and the transparency data is a component parameter Alpha (a for short) representing the transparency of the color data of the pixel points of the image layer.
As mentioned above, the image output interface 130 may be, for example, a standard video output interface, such as an HDMI interface, a DVI interface, or the like. The number of the image output interfaces 130 may be one or more, for example. The volatile memory 140 is, for example, a DDR (Double Data Rate SDRAM), and is mainly used for buffering Data and information during the operation of the video processing apparatus, for example, transparency Data of the special-shaped template transmitted via the main control circuit 110 received by the programmable logic device 120, and buffered Data during the scaling and overlay processes of the programmable logic device 120.
The method for realizing the special-shaped layer provided by the embodiment of the invention mainly obtains the special-shaped layer with the special-shaped display effect by obtaining the transparency data of the special-shaped template and performing transparency processing on the first layer according to the transparency data of the special-shaped template, thereby solving the problems that a multimedia video server is required to realize the special-shaped layer in the prior art, being convenient and fast, having higher flexibility, reducing the equipment cost, and further improving the image processing capability and the display effect of video processing equipment.
As shown in fig. 4A, the main control circuit 110 of the video processing device 100 receives an externally input special-shaped template and transparency data thereof, and transmits the special-shaped template and the transparency data to the programmable logic device 120, and the programmable logic device 120 receives the transparency data of the special-shaped template via the main control circuit 110 and stores the transparency data in the volatile memory 140; the transparency data of the shaped template is read from the volatile memory 140 when it is desired to use the transparency data of the shaped template. Therefore, when a plurality of layer processes generally require special-shaped processes (or transparency processes), the transparency data of the special-shaped template can be read from the volatile memory 140 for processing without mutual influence, and the layer processing efficiency and capacity of the device and the layer display effect are improved.
Programmable logic device 120 obtains the first layer, for example, by receiving an external input source. The first layer here is, for example, a special-shaped layer obtained by performing transparency processing according to transparency data of a special-shaped template.
Next, the programmable logic device 120 reads the transparency data of the shaped template from the volatile memory 140. Specifically, as shown in fig. 4B, the shaped template includes, for example, a shaped effective area (white area in fig. 4B) and a shaped ineffective area (black area in fig. 4B). The special-shaped effective area is an area where a display needs to be reserved, and the special-shaped effective area can be a diamond shape, an oval shape, a circular shape, a star shape, a triangular shape, a crescent shape, a pentagonal shape and the like. The shaped inactive area may be, for example, an area that does not need to be displayed, that is, an area other than the shaped active area.
Further, after reading the transparency data of the special-shaped template, the programmable logic device 120 may further perform scaling processing on the special-shaped template according to the layer information of the first layer, for example, the resolution of the first layer, to obtain the target special-shaped template, so that the target special-shaped template reaches a desired size. The target shaped template also includes, for example, a target shaped active area corresponding to the shaped active area and a target shaped inactive area corresponding to the shaped inactive area. The target shaped active area may also be, for example, diamond, oval, circular, star, triangle, crescent, pentagon, etc. The target shaped inactive area may be illustrated as an area on the target shaped template outside the target shaped active area. When the size of the target special-shaped template is the same, namely the scaling processing proportion is 1, the size of the target special-shaped effective area is the same as that of the special-shaped effective area; when the sizes of the target special-shaped templates are different, namely the scaling processing proportion is not 1, the sizes of the target special-shaped effective area and the special-shaped effective area are different. The target shaped active area and the target shaped inactive area each have transparency data, e.g. the target shaped active area comprises first transparency data and the target shaped inactive area comprises second transparency data. Further, the first transparency data of the target special-shaped effective area is non-completely transparent data, and the second transparency data of the target special-shaped ineffective area is completely transparent data. The value range of the transparency data here may be, for example, [0,1], where the value of the completely transparent data is 0, which indicates that the pixel point is completely transparent and is not displayed. The value of the completely opaque data is 1, the pixel point is represented, the completely opaque data is completely opaque, and the pixel point below the completely opaque data is completely shielded by the pixel point and cannot be seen. The value range of the non-completely transparent data is greater than 0 and less than or equal to 1 (that is, 0 is not included), which indicates that the pixel point may be completely opaque or partially transparent. Of course, for the convenience of system calculation, the value of the transparency data is fixed from [0,1] to [0,128], where 0 represents that the transparency data is completely transparent and 128 represents that the transparency data is completely opaque. Of course, the present invention may be fixed to other value ranges, and the present invention is not limited thereto.
Then, the programmable logic device 120 performs transparency processing (or referred to as morphing processing) on the first layer according to the transparency data of the target morphic template to obtain a morphic layer, which may also be referred to as target morphic template stacking, that is, stacking the target morphic template on the first layer. Specifically, the programmable logic device 120 assigns the first transparency data to transparency data of a first region corresponding to the target special-shaped effective region on the first layer, and assigns the second transparency data to transparency data of a second region corresponding to the target special-shaped ineffective region on the first layer. That is, the programmable logic device 120 assigns the transparency data in the target special-shaped template to the transparency component of the corresponding pixel point on the first layer to obtain the special-shaped layer, so that the data of each pixel point of the special-shaped layer includes data of four components, for example, ARGB data, that is, transparency data a, red component data R, green component data G, and blue component data B. When the transparency data A is completely transparent data, the pixel point is in a completely transparent state; when the transparency data a is completely opaque data, the pixel point is in a completely opaque state, so that the special-shaped layer shown in fig. 4C is obtained, that is, the pixel point corresponding to the special-shaped effective area on the special-shaped layer is visible, and the pixel point corresponding to the special-shaped ineffective area on the special-shaped layer is invisible. In addition, as shown in fig. 4C, the image data of the rhombus-shaped special-shaped image layer includes not only the image data of the diamond-shaped region (i.e., the special-shaped effective region), but also the actual image data is still the rectangular image data having the same size as the first image layer before transparency processing, except that the transparency data a of the pixels in the non-diamond-shaped region (i.e., the special-shaped ineffective region) is 0, i.e., is completely transparent and invisible.
In addition, as shown in fig. 4D, programmable logic device 120 obtains a second layer. The second layer is, for example, a layer that is subjected to overlay processing with the heteromorphic layer. The second layer may be, for example, other conventional layers, or may be a background picture. Then, the programmable logic device 120 superimposes the special-shaped layer and the second layer.
Specifically, when the layer superposition is performed, the input layer data of the special-shaped layer is in an ARGB format, where a represents transparency data. When the ARGB layer data needs to be superimposed on the second layer, a calculation formula (1) of the image data of the superimposed image before layer data localization of the special-shaped layer is as follows:
R'=A×R1+(1-A)×R0
G'=A×G1+(1-A)×G0
B'=A×B1+(1-A)×B0
wherein (R)0,G0,B0) Image data representing pixel points on the second layer, and (A, R)1,G1,B1) And (R ', G ', B ') representing the image data of the superposed image.
After the layer data of the special-shaped layer is fixed, the calculation formula (2) of the image data of the superposed image is as follows:
Figure BDA0002726323790000101
Figure BDA0002726323790000102
Figure BDA0002726323790000103
when the layers are superposed and calculated, the transparency data A of each pixel point of the second layer21-a. When the transparency data A of the pixel points of the special-shaped layer is equal to 0, the transparency data A of the corresponding pixel points on the second layer21, i.e. completely opaque, i.e. the display is visible. When the transparency data A of the pixel points of the special-shaped layer is equal to 1, the transparency data A of the corresponding pixel points on the second layer20, i.e. completely transparent, i.e. the display is not visible. Therefore, after the superposition processing, the special-shaped display effect is superposed on the second image layer, that is, the rhombus is displayed on the second image layerThe shaped active area of (2).
In addition, referring to fig. 4E, before the special-shaped layer and the second layer are superimposed, layer scaling processing may be performed on the special-shaped layer, so that the size of the special-shaped layer is the same as that of the second layer, and thus, layer superimposition is performed better. The scaling process here can be the same as the aforementioned scaling process, and certainly can also be implemented by using the scaling process method in the prior art, which is not described here again.
Further, as shown in fig. 4F, a special-shaped transparency data template may also be obtained on the second layer to achieve a second special-shaped effect, and the specific implementation process is generally as follows: obtaining a special-shaped template M and a special-shaped template N for the first image layer and the second image layer in a one-to-one correspondence mode, then performing transparency processing on the first image layer and the second image layer respectively by adopting the method to obtain a first special-shaped image layer and a second special-shaped image layer, and finally performing image layer superposition processing on the first special-shaped image layer and the second special-shaped image layer to obtain a superposed image. Therefore, a plurality of special-shaped display effects can be realized under the condition of occupying the least system resources, and the processing capacity and the display effect of the equipment are further improved.
In summary, the embodiment of the present invention obtains the processed special-shaped layer by obtaining the transparency data of the special-shaped template and performing transparency processing on the first layer according to the transparency data, so as to solve the problem that a multimedia video server is required to implement the special-shaped layer in the prior art, which is convenient, fast and highly flexible, reduce the equipment cost, and further improve the image processing capability and the display effect of the video processing equipment.
[ second embodiment ]
As shown in fig. 5, a second embodiment of the present invention provides an apparatus 200 for implementing an irregular layer. The special-shaped layer implementation apparatus 200 includes: the system comprises a special-shaped template acquisition module 210, a layer and layer information acquisition module 230, a special-shaped template scaling module 250 and a transparency processing module 270.
Specifically, the special-shaped template obtaining module 210 is configured to obtain transparency data of a special-shaped template, where the special-shaped template is obtained according to user-defined editing and includes a special-shaped effective area and a special-shaped ineffective area.
The layer and layer information obtaining module 230 is configured to obtain a first layer and layer information of the first layer.
The special-shaped template zooming module 250 is configured to zoom the special-shaped template according to the layer information to obtain a target special-shaped template, where the target special-shaped template includes a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped ineffective area corresponding to the special-shaped ineffective area.
The transparency processing module 270 is configured to perform transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
Wherein the transparency data of the target shaped template comprises first transparency data of the target shaped active area and second transparency data of the target shaped inactive area, the first transparency data being non-fully transparent data and the second transparency data being fully transparent data; the layer information of the first layer includes a resolution of the first layer.
Further, the special-shaped template obtaining module 210 is specifically configured to receive the transparency data of the special-shaped template via the main control circuit and store the transparency data in a volatile memory; and reading the transparency data of the shaped template from the volatile memory.
As mentioned above, the transparency processing module 270 is specifically configured to: assigning the first transparency data to transparency data of a first area corresponding to the target special-shaped effective area on the first layer; and assigning the second transparency data to the transparency data of a second area corresponding to the target special-shaped invalid area on the first layer.
The modules in the special-shaped layer implementing apparatus 200 in this embodiment are integrated in the programmable logic device in the video processing device in the foregoing first embodiment, for example. For the specific working process and technical effect among the modules, reference is made to the description of the first embodiment, and details are not repeated here.
[ third embodiment ]
As shown in fig. 6, a third embodiment of the present invention provides a method for implementing an irregular layer. The heteromorphic layer implementation method can be applied to video processing devices such as card-insertion type switchers, video processors, video converters and the like. Specifically, the method for implementing the special-shaped layer provided by the embodiment of the present invention includes, for example, the steps of:
s21: acquiring a first layer comprising pixel points with preset display parameter data;
s23: and performing transparency processing on the first image layer according to the preset display parameter data to obtain a special-shaped image layer.
Therefore, the special-shaped layer is obtained by performing transparency processing on the first layer according to the preset display parameter data, the problem that the special-shaped layer is needed to be realized by using a multimedia video server in the prior art is solved, convenience, rapidness and higher flexibility are achieved, the equipment cost is reduced, and the image processing capacity and the display effect of the video processing equipment are further improved.
Specifically, the preset display parameter data is target color data, such as a pixel point or an area on the first layer having the target color data. Further, as shown in fig. 7A, step S23 includes, for example:
s231 a: acquiring the color data of a target pixel point in the first layer;
s233 a: judging whether the color data of the target pixel point and the target color data meet a preset chromaticity condition;
s235 a: when the color data of the target pixel point and the target color data meet a preset chromaticity condition, assigning the transparency data of the target pixel point as non-completely opaque data; and
s237 a: and when the color data of the target pixel point and the target color data do not meet the preset chromaticity condition, assigning the transparency data of the target pixel point as completely opaque data.
Further, the preset chromaticity condition is that a difference between the color data of the target pixel and the target color data is smaller than a chromaticity difference threshold. That is, the preset chromaticity condition is that the difference value between the two is smaller than the chromaticity difference threshold. For example, the chrominance difference threshold may be, for example, 5. For example, when the target color data is green (0,255,0), the color data of a certain pixel point on the first layer is (0,250,0), and at this time, the difference between the two is equal to 5, which is not less than 5 of the chromaticity difference threshold, so that the pixel point does not satisfy the preset chromaticity condition, and the transparency data of the pixel point is assigned as completely opaque data. For another example, when the target color data is green (0,255,0), the color data of a certain pixel point on the first layer is (0,253,0), and at this time, the difference between the two is equal to 2, which is less than the chromaticity difference threshold 5, so that the pixel point satisfies the preset chromaticity condition, and therefore, the transparency data of the pixel point is assigned as non-completely opaque data, which may be 0, or a value less than 1, and is determined according to the user requirement.
Therefore, when the preset display parameter data is target color data, such as green (0,255,0), the color data of the target pixel point or the area on the first layer can be compared with the target color data, when the preset chromaticity condition is met, the transparency data of the target pixel point on the first layer is assigned to be non-completely opaque data, and when the preset chromaticity condition is not met, the transparency data of the target pixel point on the first layer is assigned to be completely opaque data, so that transparency processing (also called matting) is performed on the first layer to obtain a special-shaped layer, and partial pixel points or areas on the layer are not visible, so that a special-shaped area is obtained.
In another embodiment of the present invention, the preset display parameter data is target luminance data, for example, a pixel point or an area having the target luminance data on the first layer. As shown in fig. 7B, step S23 includes, for example:
s231 b: acquiring brightness data of a target pixel point in the first layer;
s233 b: judging whether the brightness data of the target pixel point and the target brightness data meet a preset brightness condition or not;
s235 b: and when the brightness data of the target pixel point meets a preset brightness condition, assigning the transparency data of the target pixel point as completely transparent data.
Further, the preset brightness condition is that the difference between the brightness data of the target pixel and the target brightness color data is smaller than a brightness difference threshold. That is, the preset brightness condition is that the difference value between the two is smaller than the brightness difference threshold. For example, the brightness difference threshold may be, for example, 100. For example, when the target brightness data is 1000, the brightness data of a certain pixel point on the first layer is 800, and at this time, the difference between the two is equal to 200, and the difference is not less than the brightness difference threshold 100, so that the pixel point does not satisfy the preset brightness condition, and therefore the transparency data of the pixel point is assigned as the incomplete transparency data, that is, the transparency data may be a numerical value that is less than or equal to 1 and greater than 0, and this is determined according to the user needs. For another example, when the target brightness data is 1000, the brightness data of a certain pixel point on the first layer is 960, and at this time, the difference between the two is equal to 40, and the value is smaller than the brightness difference threshold value 100, so that the pixel point satisfies the preset brightness condition, and the transparency data of the pixel point is assigned as completely transparent data, that is, the transparency data is, for example, 0.
Therefore, when the preset display parameter data is target brightness data, the brightness data of the target pixel point or the area on the first layer can be compared with the target color brightness data, when the preset brightness condition is met, the transparency data of the target pixel point on the first layer is assigned to be completely transparent data, when the preset chromaticity condition is not met, the transparency data of the target pixel point on the first layer is assigned to be incompletely transparent data, so that transparency processing (also called matting) is carried out on the first layer to obtain a special-shaped layer, and partial pixel points or areas on the layer are invisible, so that a special-shaped area is obtained.
Further, as shown in fig. 8, the method for implementing the special-shaped layer may further include:
s25: acquiring a second image layer;
s27: respectively carrying out scaling processing on the special-shaped image layer and the second image layer to obtain a scaled special-shaped image layer and a scaled second image layer;
s29: and overlapping the zoomed second image layer and the zoomed special-shaped image layer.
In order to facilitate understanding of the present invention, the following describes in detail each step of the method for implementing the profiled layer according to the embodiment of the present invention with reference to fig. 9A to 9C.
The method for realizing the special-shaped layer provided by the embodiment of the invention can be applied to video processing equipment to realize the superposition processing of the special-shaped layer. The video processing device here may be connected, for example, to a display screen or other display system such as a display controller and display control card and a display screen. The display screen may be, for example, an LED display screen, or may also be other display screens such as an LCD or other types of display screens, which is not limited in the present invention. Typically, the video processing device herein may be, for example, an electronic device having processing capability of superimposing layers or the like. It should be noted that the video processing apparatus herein may adopt the video processing apparatus shown in fig. 4A in the foregoing first embodiment, but unlike this, the programmable logic device 120 does not need to obtain, store and read the special-shaped transparency data template via the main control circuit 110, and perform transparency processing on the first image layer according to the special-shaped template.
The method for implementing the special-shaped layer provided by the embodiment of the invention mainly obtains the special-shaped layer by performing transparency processing on the first layer according to the preset display parameter data, solves the problem that a multimedia video server is required to implement the special-shaped layer in the prior art, is convenient, rapid and high in flexibility, reduces the equipment cost, and further improves the image processing capability and the display effect of video processing equipment.
Firstly, presetting display parameters as target color data
As shown in fig. 9A, the image source (also referred to as a first layer) of the programmable logic device 120 of the video processing apparatus 100, which receives an external input and is designed by a user in advance, to be subjected to transparency processing, has pixel points or regions of target color data, for example, an oval region where the target color data on the first layer is green. Programmable logic device 120 utilizes the first overlay windowing and transparency processing (also called matting). Meanwhile, the programmable logic device 120 performs windowing on an image source (also referred to as a second layer) that needs to be configured with a special shape. Then, the programmable logic device 120 reads the color data of the target pixel point in the first layer pixel point by pixel point, and then compares the color data with the target color data preset by the user to determine whether the color data and the target color data meet a preset chromaticity condition, for example, the difference between the color data and the target color data is smaller than a chromaticity difference threshold. The chroma difference threshold value can be set according to actual needs. When the condition is met, assigning the transparency data of the target pixel point as non-completely opaque data, namely, the transparency data can be partially transparent or completely transparent, for example, the value is not 1. And when the condition is not met, assigning the transparency data of the target pixel point as completely opaque data, for example, taking the value as 1. It is worth mentioning that the overlapping priorities of the first layer and the second layer need to be bound, the priorities of the first layer and the second layer are continuous, and meanwhile, the overlapping priority of the first layer is lower than that of the second layer, namely, after the first layer and the base map (or called background image) are well overlapped, the special-shaped layer is overlapped, so that the first layer after the matting can perform special-shaped processing on the second layer. As shown in fig. 9A, when the matting and scaling modified image layer is stacked with the second image layer, image pixel points of the second image layer corresponding to the green elliptic region with the transparency of 1 are visible, the image of the region with the transparency of 1 on the modified image layer can still be displayed and visible, and the image pixel points of the second image layer below the modified image layer are blocked by the modified image layer and are not visible.
It should be mentioned that, if the user does not enable the cutout function of the first layer, the transparency data a of all the pixel points in the first layer is 1, which indicates that the entire first layer is opaque, that is, the image of the second layer below is not displayed. In addition, before the special-shaped layer and the second layer are superposed, layer scaling processing can be performed on the special-shaped layer, so that the special-shaped layer and the second layer are consistent in size, and layer superposition can be performed better. The oval region may have other shapes, such as a rhombus, a circle, a star, a triangle, a crescent, and a pentagon.
Secondly, presetting display parameters as target brightness data
As shown in fig. 9B, the image source (also called a special-shaped layer) to be processed for transparency, which is designed by the user in advance and is received by the programmable logic device 120 of the video processing apparatus 100, is received, and the special-shaped layer has pixel points or regions of target brightness data, for example, a pentagonal region with target brightness data of 1000 on the special-shaped layer. Programmable logic device 120 utilizes the special-shaped layer windowing and transparency processing (also called matting). Meanwhile, the programmable logic device 120 performs windowing on an image source (also referred to as a second layer) that needs to be configured with a special shape. Then, the programmable logic device 120 reads the luminance data of the target pixel point in the special-shaped layer pixel point by pixel point, and then compares the luminance data with the target luminance data preset by the user to determine whether the difference between the luminance data and the target luminance data meets a preset luminance condition, for example, the difference between the luminance data and the target luminance data is smaller than a luminance difference threshold, for example, 50. The brightness difference threshold value can be set according to actual needs. When the condition is satisfied, assigning the transparency data of the target pixel point to be completely transparent data, for example, a value of 0. When the condition is not met, assigning the transparency data of the target pixel point as non-complete transparency data, for example, the value may be greater than 0 and less than or equal to 1. It is worth mentioning that the overlapping priorities of the special-shaped layer and the second layer need to be bound, the priorities of the special-shaped layer and the second layer are continuous, and meanwhile, the overlapping priority of the special-shaped layer is lower than that of the second layer, namely, after the special-shaped layer and a base map (or called background image) are overlapped, the special-shaped layer is overlapped, so that the special-shaped layer after image matting can perform special-shaped processing on the second layer. As shown in fig. 9B, when the matting irregular-shaped layer is superimposed on the second map, the image pixels of the irregular-shaped layer, which have transparency of 1 and are except for the pentagonal region, are invisible, and the image pixels of the second map layer below the irregular-shaped layer are visible; and image pixel points of a pentagonal area with the transparency not being 1 on the special-shaped layer are visible.
It is worth mentioning that if the user does not enable the matting function of the special-shaped layer, the transparency data a of all the pixel points in the special-shaped layer is 1, which indicates that the whole special-shaped layer is opaque, i.e., the image of the second layer below is not displayed. The pentagonal region may have another shape, such as a rhombus, an ellipse, a circle, a star, a triangle, or a crescent.
In addition, before the special-shaped layer and the second layer are superposed, layer scaling processing can be performed on the special-shaped layer, so that the special-shaped layer and the second layer are consistent in size, and layer superposition can be performed better.
Further, for the two manners of presetting the display parameter data (the color data manner and the luminance data manner), as shown in fig. 9C, the multiple layers may also be subjected to the special-shaped processing, that is, multiple special-shaped layers are obtained, for example, a third layer and a fourth layer shown in fig. 9C, and the specific implementation process may be, for example: the third image layer and the fourth image layer are respectively subjected to operations such as matting and zooming according to the scheme, and then are sequentially overlapped with the fifth image layer such as a background picture, so that the overlapped image has the special-shaped effect of the first special-shaped image layer and the second special-shaped image layer. Therefore, the processing capacity and the special-shaped display effect of the video processing equipment can be further improved.
In summary, the embodiment of the present invention obtains the special-shaped layer by performing transparency processing on the special-shaped layer by using the special-shaped layer having the pixels with the preset display parameter data, which solves the problem in the prior art that a multimedia video server is required to implement the special-shaped layer, and is convenient, fast, and highly flexible, and reduces the equipment cost, and further improves the image processing capability and the display effect of the video processing equipment. In addition, the abnormal processing of the layer is realized through different preset display parameter data modes, so that the abnormal processing is diversified, the various requirements of users are met, and the user experience degree and the satisfaction degree are improved.
[ fourth example ] A
As shown in fig. 10, a device 400 for implementing an irregular layer is provided in a fourth embodiment of the present invention. The special-shaped layer implementation apparatus 400 includes: the layer acquiring module 410 and the transparency processing module 430.
The layer obtaining module 410 is configured to obtain a first layer including a pixel point with preset display parameter data;
the transparency processing module 430 is configured to perform transparency processing on the first layer according to the preset display parameter data to obtain a special-shaped layer.
Specifically, when the preset display parameter data is the target color data, the transparency processing module 430 is specifically configured to: acquiring the color data of a target pixel point in the first layer; judging whether the color data of the target pixel point and the target color data meet a preset chromaticity condition; when the color data of the target pixel point and the target color data meet a preset chromaticity condition, assigning the transparency data of the target pixel point as non-completely opaque data; and when the color data of the target pixel point and the target color data do not meet the preset chromaticity condition, assigning the transparency data of the target pixel point as completely opaque data. Further, the preset chromaticity condition is that a difference between the color data of the target pixel and the target color data is smaller than a chromaticity difference threshold.
In addition, when the preset display parameter data is the target brightness data, the transparency processing module 430 is specifically configured to: acquiring brightness data of a target pixel point in the first layer; judging whether the brightness data of the target pixel point and the target brightness data meet a preset brightness condition or not; and when the brightness data of the target pixel point meets a preset brightness condition, assigning the transparency data of the target pixel point as completely transparent data. Further, the preset brightness condition is that a difference between the brightness data of the target pixel and the target brightness data is smaller than a brightness difference threshold.
The modules in the special-shaped layer implementation apparatus 400 in this embodiment are integrated in the programmable logic device in the video processing device in the foregoing third embodiment, for example. For the specific working process and technical effect among the modules, reference is made to the description of the foregoing third embodiment, which is not described herein again.
[ fifth embodiment ]
As shown in fig. 11, a third embodiment of the present invention provides a system 500 for implementing an irregular layer. The pattern layer implementation system 500 includes, for example, a memory 510 and a processor 530 coupled to the memory 510. The memory 510 may be, for example, a non-volatile memory having stored thereon a computer program 511. Processor 530 may be, for example, an embedded processor. The processor 530 executes the computer program 511 to execute the special-shaped layer implementation method in the first embodiment and/or the special-shaped layer implementation method in the third embodiment.
For the specific working process and technical effects of the special-shaped layer implementation system 500 in this embodiment, reference is made to the description of the first embodiment and/or the third embodiment.
[ sixth embodiment ]
As shown in fig. 12, a fourth embodiment of the present invention provides a computer-readable storage medium, such as computer-readable storage medium 600. The computer-readable storage medium 600 is, for example, a nonvolatile memory, which is, for example: magnetic media (e.g., hard disks, floppy disks, and magnetic tape), optical media (e.g., CDROM disks and DVDs), magneto-optical media (e.g., optical disks), and hardware devices specially constructed for storing and executing computer-executable instructions (e.g., Read Only Memories (ROMs), Random Access Memories (RAMs), flash memories, etc.). Computer-readable storage medium 600 has stored thereon computer-executable instructions 610. The computer-readable storage medium 600 may execute the computer-executable instructions 610 by one or more processors or processing devices to implement the method for implementing the profiled layer in the foregoing first embodiment and/or the method for implementing the profiled layer in the third embodiment.
In addition, it should be understood that the foregoing embodiments are merely exemplary illustrations of the present invention, and the technical solutions of the embodiments can be arbitrarily combined and collocated without conflict between technical features and structural contradictions, which do not violate the purpose of the present invention.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described embodiments of the apparatus are merely illustrative, and for example, a division of a unit is merely a division of one logic function, and an actual implementation may have another division, for example, multiple units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may also be distributed on multiple network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
Finally, it should be noted that: the above examples are only intended to illustrate the technical solution of the present invention, but not to limit it; although the present invention has been described in detail with reference to the foregoing embodiments, it will be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions of the embodiments of the present invention.

Claims (13)

1. A method for realizing a special-shaped layer is characterized by comprising the following steps:
acquiring transparency data of a special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped ineffective area;
acquiring a first layer and layer information of the first layer;
zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area;
and performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
2. The method for implementing the heteromorphic layer as described in claim 1 wherein the transparency data of the target heteromorphic template includes first transparency data of the target heteromorphic valid region and second transparency data of the target heteromorphic invalid region, the first transparency data being non-fully transparent data and the second transparency data being fully transparent data; the layer information of the first layer includes a resolution of the first layer.
3. The method for implementing the special-shaped layer according to claim 1, wherein the obtaining transparency data of the special-shaped template includes:
receiving the transparency data of the special-shaped template through a master control circuit and storing the transparency data into a volatile memory; and
reading the transparency data of the shaped template from the volatile memory.
4. The method for implementing the heteromorphic layer according to claim 2, wherein the transparency processing the first layer according to the transparency data of the target heteromorphic template to obtain the heteromorphic layer comprises:
assigning the first transparency data to transparency data of a first area corresponding to the target special-shaped effective area on the first layer; and
and assigning the second transparency data to the transparency data of a second area corresponding to the target special-shaped invalid area on the first image layer.
5. The method for implementing the patterned layer according to claim 1, further comprising:
acquiring a second image layer;
and overlapping the second image layer and the special-shaped image layer.
6. The utility model provides a dysmorphism picture layer realization device which characterized in that includes:
the special-shaped template acquisition module is used for acquiring transparency data of the special-shaped template, wherein the special-shaped template is obtained by user-defined editing and comprises a special-shaped effective area and a special-shaped invalid area;
the image layer and image layer information acquisition module is used for acquiring a first image layer and image layer information of the first image layer;
the special-shaped template zooming module is used for zooming the special-shaped template according to the layer information to obtain a target special-shaped template, wherein the target special-shaped template comprises a target special-shaped effective area corresponding to the special-shaped effective area and a target special-shaped invalid area corresponding to the special-shaped invalid area;
and the transparency processing module is used for performing transparency processing on the first image layer according to the transparency data of the target special-shaped template to obtain a special-shaped image layer.
7. A method for realizing a special-shaped layer is characterized by comprising the following steps:
acquiring a first layer comprising pixel points with preset display parameter data;
and performing transparency processing on the first image layer according to the preset display parameter data to obtain a special-shaped image layer.
8. The method according to claim 7, wherein the predetermined display parameter data is target color data; the transparency processing of the first image layer according to the preset display parameter data to obtain the special-shaped image layer comprises the following steps:
acquiring the color data of a target pixel point in the first layer;
judging whether the color data of the target pixel point and the target color data meet a preset chromaticity condition;
when the color data of the target pixel point and the target color data meet a preset chromaticity condition, assigning the transparency data of the target pixel point as non-completely opaque data; and
and when the color data of the target pixel point and the target color data do not meet the preset chromaticity condition, assigning the transparency data of the target pixel point as completely opaque data.
9. The method as claimed in claim 8, wherein the predetermined chromaticity condition is that a difference between the color data of the target pixel and the target color data is smaller than a chromaticity difference threshold.
10. The method according to claim 7, wherein the predetermined display parameter data is target luminance data; the transparency processing of the first image layer according to the preset display parameter data to obtain the special-shaped image layer comprises the following steps:
acquiring brightness data of a target pixel point in the first layer;
judging whether the brightness data of the target pixel point and the target brightness data meet a preset brightness condition or not;
and when the brightness data of the target pixel point meets a preset brightness condition, assigning the transparency data of the target pixel point as completely transparent data.
11. The method as claimed in claim 10, wherein the predetermined brightness condition is that a difference between the brightness data of the target pixel and the target brightness data is less than a brightness difference threshold.
12. The method for implementing an anomalous layer in accordance with claim 7, further comprising:
acquiring a second image layer;
respectively carrying out scaling processing on the special-shaped image layer and the second image layer to obtain a scaled special-shaped image layer and a scaled second image layer;
and overlapping the zoomed second image layer and the zoomed special-shaped image layer.
13. The utility model provides a dysmorphism picture layer realization device which characterized in that includes:
the image layer acquisition module is used for acquiring a first image layer comprising pixel points with preset display parameter data; and
and the transparency processing module is used for performing transparency processing on the first image layer according to the preset display parameter data to obtain a special-shaped image layer.
CN202011103939.2A 2020-10-15 2020-10-15 Method and device for realizing special-shaped layer Pending CN114371820A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202011103939.2A CN114371820A (en) 2020-10-15 2020-10-15 Method and device for realizing special-shaped layer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202011103939.2A CN114371820A (en) 2020-10-15 2020-10-15 Method and device for realizing special-shaped layer

Publications (1)

Publication Number Publication Date
CN114371820A true CN114371820A (en) 2022-04-19

Family

ID=81139025

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202011103939.2A Pending CN114371820A (en) 2020-10-15 2020-10-15 Method and device for realizing special-shaped layer

Country Status (1)

Country Link
CN (1) CN114371820A (en)

Similar Documents

Publication Publication Date Title
CN107092684B (en) Image processing method and device, storage medium
US7574069B2 (en) Retargeting images for small displays
US7424218B2 (en) Real-time preview for panoramic images
US20200349683A1 (en) Methods and system for efficient processing of generic geometric correction engine
US11194536B2 (en) Image processing method and apparatus for displaying an image between two display screens
US11030715B2 (en) Image processing method and apparatus
CN104361556A (en) Image synthesis method, image chip and image equipment
CN107371062B (en) Method for automatically zooming video picture
CN101739210B (en) Reminding method for image browsing and device thereof
WO2023045641A1 (en) Image cropping method and apparatus, and computer device and storage medium
KR20190031283A (en) Panorama video compression method and apparatus
TW202025080A (en) Methods and devices for graphics processing
US20060203002A1 (en) Display controller enabling superposed display
CN113316018B (en) Method, device and storage medium for overlaying time information on video picture display
CN109104628B (en) Focus foreground generation method, storage medium, device and system of android television
CN114371820A (en) Method and device for realizing special-shaped layer
CN107644451B (en) Animation display method and device
CN112188262B (en) Image processing method, device and system and computer readable medium
JP7289390B2 (en) Image processing device for display wall system and display control method
CN109104627B (en) Focus background generation method, storage medium, device and system of android television
CN109346018A (en) Display control method and device, display device and storage medium
WO2021068666A1 (en) Display screen adjustment method, storage medium and terminal device
CN109062525A (en) Data processing method, device and the computer equipment of splice displaying system
CN114745520A (en) Video image processing method and device, equipment and storage medium
CN111292243B (en) Projection seamless edge fusion method and device

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