CN111506241A - Special effect display method and device for live broadcast room, electronic equipment and computer medium - Google Patents

Special effect display method and device for live broadcast room, electronic equipment and computer medium Download PDF

Info

Publication number
CN111506241A
CN111506241A CN202010440856.6A CN202010440856A CN111506241A CN 111506241 A CN111506241 A CN 111506241A CN 202010440856 A CN202010440856 A CN 202010440856A CN 111506241 A CN111506241 A CN 111506241A
Authority
CN
China
Prior art keywords
special effect
display
terminal equipment
scaling
size
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
CN202010440856.6A
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.)
Netease Hangzhou Network Co Ltd
Original Assignee
Netease Hangzhou Network Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Netease Hangzhou Network Co Ltd filed Critical Netease Hangzhou Network Co Ltd
Priority to CN202010440856.6A priority Critical patent/CN111506241A/en
Publication of CN111506241A publication Critical patent/CN111506241A/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/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04842Selection of displayed objects or displayed text elements
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T3/00Geometric image transformations in the plane of the image
    • G06T3/40Scaling of whole images or parts thereof, e.g. expanding or contracting

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The disclosure relates to a special effect display method and device for a live broadcast room, electronic equipment and a computer readable medium, and belongs to the technical field of internet. The method comprises the following steps: acquiring the actual pixel size of a special effect; acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment; determining the scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal equipment; and adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal equipment. The method for displaying the special effect adaptive terminal equipment in the live broadcast room can automatically adapt to the display size of the special effect on the terminal equipment with different screen resolutions or under different display states of the same terminal equipment, improves the display effect of the special effect in the live broadcast room, and accordingly improves the live broadcast watching experience of users.

Description

Special effect display method and device for live broadcast room, electronic equipment and computer medium
Technical Field
The present disclosure relates to the field of internet technologies, and in particular, to a method and an apparatus for displaying a special effect in a live broadcast room, an electronic device, and a computer-readable medium.
Background
In the live broadcast room, a special 3D animation special effect is generally configured for a large amount or special activity gift, and when such gift is sent by a certain user watching the live broadcast, all users watching the live broadcast room can see the 3D animation special effect of the corresponding gift to play on an interface.
At present, the display size of a live broadcast room during playing a special effect is the actual pixel size of an animation special effect, the display sizes of the live broadcast room on different devices are not consistent, the problems that part of the special effect is blocked, deformed and the like can be caused, and the special effect display effect is poor. Therefore, a special effect display method capable of adapting to live broadcast rooms of different devices is required.
It is to be noted that the information disclosed in the above background section is only for enhancement of understanding of the background of the present disclosure, and thus may include information that does not constitute prior art known to those of ordinary skill in the art.
Disclosure of Invention
The present disclosure is directed to a method for displaying a special effect in a live broadcast room, a device for displaying a special effect in a live broadcast room, an electronic device, and a computer-readable medium, so as to improve a display effect of a special effect at least to a certain extent.
According to a first aspect of the present disclosure, there is provided a special effect display method of a live broadcast room, including:
acquiring the actual pixel size of a special effect;
acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment;
determining the scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal equipment;
and adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal equipment.
In an exemplary embodiment of the present disclosure, the determining a scaling of the special effect in the display state according to an actual pixel size of the special effect and a screen resolution of the terminal device includes:
determining a first screen pixel value and a second screen pixel value of the terminal equipment according to the screen resolution of the terminal equipment, wherein the first screen pixel value is smaller than the second screen pixel value;
determining a scaling factor from the actual pixel size of the special effect according to the display state of the terminal equipment;
and taking the first screen pixel value as a scaling reference value, and obtaining the scaling of the special effect according to the ratio of the scaling reference value to the scaling factor.
In an exemplary embodiment of the present disclosure, the determining a scaling factor from an actual pixel size of the special effect according to a display state of the terminal device includes:
if the display state of the terminal equipment is a vertical screen state, determining a first actual pixel value of the special effect in the horizontal direction as a scaling factor;
and if the display state of the terminal equipment is a horizontal screen state, determining a second actual pixel value of the special effect in the vertical direction as a scaling factor.
In an exemplary embodiment of the present disclosure, the adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal device includes:
obtaining the target pixel size of the special effect according to the scaling of the special effect and the actual pixel size of the special effect;
and drawing a display window of the special effect at a preset position on the terminal equipment according to the target pixel size of the special effect, and displaying the special effect on the terminal equipment through the display window of the special effect.
In an exemplary embodiment of the disclosure, the obtaining an actual pixel size of the special effect includes:
acquiring the multimedia file with the special effect, and acquiring metadata of the special effect from the multimedia file;
and acquiring the actual pixel size of the special effect from the metadata of the special effect.
In an exemplary embodiment of the disclosure, the obtaining an actual pixel size of the special effect includes:
acquiring a video image of any frame in the special effect video with the special effect;
and acquiring the video pixel size of the video image, and obtaining the actual pixel size of the special effect according to the video pixel size.
In an exemplary embodiment of the present disclosure, the method further comprises:
determining the display size and the display position of an additional display control corresponding to the special effect according to the display size and the display position of the special effect on the terminal equipment;
and displaying the additional display control on the terminal equipment according to the display size and the display position of the additional display control while the special effect is displayed on the terminal equipment.
According to a second aspect of the present disclosure, there is provided a special effects display apparatus of a live broadcast room, including:
the actual pixel acquisition module is used for acquiring the actual pixel size of the special effect;
the screen state acquisition module is used for acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment;
a scaling determining module, configured to determine a scaling of the special effect in the display state according to an actual pixel size of the special effect and a screen resolution of the terminal device;
and the display size adjusting module is used for adjusting the display size of the special effect according to the scaling of the special effect and displaying the adjusted special effect at a preset position on the terminal equipment.
According to a third aspect of the present disclosure, there is provided an electronic device comprising: a processor; and a memory for storing executable instructions of the processor; wherein the processor is configured to execute any one of the above-mentioned special effects display methods of a live broadcast room via execution of the executable instructions.
According to a fourth aspect of the present disclosure, there is provided a computer readable medium having stored thereon a computer program which, when executed by a processor, implements a special effects display method of a live broadcast room as described in any one of the above.
The exemplary embodiments of the present disclosure may have the following advantageous effects:
in the method for displaying the special effect in the live broadcast room in the exemplary embodiment of the present disclosure, by providing a method for displaying the special effect in the live broadcast room by adapting the terminal device, the display size of the special effect can be automatically adapted on the terminal devices with different screen resolutions or in different display states of the same terminal device. On one hand, the special effect can be displayed on the screen according to the same display proportion on the terminal equipment with different screen resolutions, so that the watching experience of users using different equipment is consistent; on the other hand, the special effect can be completely and fully played and displayed in the horizontal and vertical screen display state of the same terminal device, the display effect of the special effect in a live broadcast room is improved, and therefore the live broadcast watching experience of a user is further improved.
It is to be understood that both the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure.
Drawings
The accompanying drawings, which are incorporated in and constitute a part of this specification, illustrate embodiments consistent with the present disclosure and together with the description, serve to explain the principles of the disclosure. It is to be understood that the drawings in the following description are merely exemplary of the disclosure, and that other drawings may be derived from those drawings by one of ordinary skill in the art without the exercise of inventive faculty.
Fig. 1 is a schematic diagram illustrating an exemplary system architecture of a special effect display method and apparatus for a live broadcast room, to which embodiments of the present invention may be applied;
FIG. 2 is a diagram schematically illustrating a display size of a special effect on a device having a different screen resolution in a related embodiment;
FIG. 3 illustrates a flow diagram of a method for special effects display in a live broadcast room in an example embodiment of the present disclosure;
FIG. 4 schematically illustrates a display size of a special effect according to an embodiment of the present disclosure;
FIG. 5 schematically illustrates a display size of a special effect in different display states, according to an embodiment of the present disclosure;
FIG. 6 illustrates a flow diagram for determining a scaling of a special effect according to an example embodiment of the present disclosure;
FIG. 7 illustrates a flow chart for determining a scaling factor in an example embodiment of the present disclosure;
FIG. 8 illustrates a flowchart of resizing and displaying a display of a special effect according to an example embodiment of the present disclosure;
FIG. 9 illustrates a flow chart for obtaining an actual pixel size for a special effect according to an example embodiment of the present disclosure;
FIG. 10 illustrates a flow chart for obtaining an actual pixel size of a special effect according to another example embodiment of the present disclosure;
FIG. 11 illustrates a flowchart of displaying additional display controls according to an example embodiment of the present disclosure;
FIG. 12 is a schematic diagram illustrating a display special effect and additional display controls, according to a specific embodiment of the present disclosure;
FIG. 13 illustrates a block diagram of a special effects display device of a live room of an example embodiment of the present disclosure;
FIG. 14 illustrates a schematic structural diagram of a computer system suitable for use in implementing the electronic device of an embodiment of the present disclosure.
Detailed Description
Example embodiments will now be described more fully with reference to the accompanying drawings. Example embodiments may, however, be embodied in many different forms and should not be construed as limited to the examples set forth herein; rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the concept of example embodiments to those skilled in the art. The described features, structures, or characteristics may be combined in any suitable manner in one or more embodiments. In the following description, numerous specific details are provided to give a thorough understanding of embodiments of the disclosure. One skilled in the relevant art will recognize, however, that the subject matter of the present disclosure can be practiced without one or more of the specific details, or with other methods, components, devices, steps, and the like. In other instances, well-known technical solutions have not been shown or described in detail to avoid obscuring aspects of the present disclosure.
Furthermore, the drawings are merely schematic illustrations of the present disclosure and are not necessarily drawn to scale. The same reference numerals in the drawings denote the same or similar parts, and thus their repetitive description will be omitted. Some of the block diagrams shown in the figures are functional entities and do not necessarily correspond to physically or logically separate entities. These functional entities may be implemented in the form of software, or in one or more hardware modules or integrated circuits, or in different networks and/or processor devices and/or microcontroller devices.
Fig. 1 is a schematic diagram illustrating a system architecture of an exemplary application environment to which a special effect display method and apparatus for a live broadcast room according to an embodiment of the present invention may be applied.
As shown in fig. 1, the system architecture 100 may include a plurality of terminal devices 101, 102, 103, a network 104, and a server 105. The network 104 serves as a medium for providing communication links between the terminal devices 101, 102, 103 and the server 105. The network 104 may include various connection types, such as wireless communication links and the like.
It should be understood that the number of terminal devices, networks, and servers in fig. 1 is merely illustrative. There may be any number of terminal devices, networks, and servers, as desired for implementation. For example, server 105 may be a server cluster comprised of multiple servers, or the like.
The terminal devices 101, 102, 103 may be various electronic devices having a processor including, but not limited to, smart phones, tablet computers, portable computers, and the like. The server 105 may be a server that provides various services. For example, the terminal devices 101, 102, 103 may obtain, via the processor, the actual pixel size of the special effect, the screen resolution of the terminal device used to display the special effect, and the display state of the terminal device. The server 105 may determine a scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal device, and adjust the display size of the special effect according to the scaling of the special effect. The terminal devices 101, 102, 103 may also complete the whole process from acquiring the actual pixel size of the special effect to displaying the special effect through the processor.
In some related embodiments, the display size of the special effect when the special effect is played in the live broadcast room is the actual pixel size of the special effect, and this method may result in that the display size of the special effect is larger on a low-resolution terminal device, while the display size of the special effect is smaller on a high-resolution terminal device, which may cause the user experience of different devices to be inconsistent. The display is directly performed according to the actual pixel size of the special effect, and the problem that the display size of the special effect is adapted on the same terminal device without watching live broadcast according to the state of a horizontal screen or a vertical screen, and partial display of the special effect is blocked, deformed and the like can be caused. Under the condition of no adaptive equipment resolution and horizontal and vertical screen states, further business expansion is not facilitated according to the position or size of the special effect.
In practical application, the higher the screen resolution, the smaller the special effect window is displayed. As shown in fig. 2, the difference in display size of the same effect on devices of different screen resolutions can be seen. The screen resolution of the terminal device 201 is low (e.g., 1600 × 900), the screen resolution of the terminal device 202 is high (e.g., 2248 × 1080), if the display is performed according to the actual pixel size of the special effect, the display size of the special effect 203 is large on the live interface of the terminal device 201, and the display size of the special effect 204 is small on the live interface of the terminal device 202, which results in inconsistent user experience of the two devices.
In view of the above problem, the present exemplary embodiment first provides a special effect display method for a live broadcast room. Referring to fig. 3, the method for displaying special effects in a live broadcast room may include the following steps:
and S310, acquiring the actual pixel size of the special effect.
In this exemplary embodiment, the actual pixel size of the special effect refers to the absolute width and height pixel values of the special effect. The actual pixel sizes of different special effects are also different, and can be specifically set according to the shape, the style, the playing mode and the like of the special effects.
And S320, acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment.
In the present exemplary embodiment, the screen resolution for the terminal device and the display state of the terminal device may be acquired by the server or the processor. The screen resolutions of different configurations of terminal devices are different, for example, some low-end devices have a low screen resolution (e.g. 1600 × 900), and some high-end devices have a high screen resolution (e.g. 2248 × 1080).
The display state of the terminal device includes a vertical screen state and a horizontal screen state for common mobile devices. If the user views the screen through some equipment which cannot be turned over, such as a computer, the user only usually has a landscape state.
And S330, determining the scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal equipment.
After the actual pixel size of the special effect and the screen resolution of the terminal device are obtained, the scaling of the special effect can be determined according to different terminal devices or parameters of different display states of the same terminal device. In determining the scaling of the special effect, the resolution of the short side of the terminal device is typically used as a reference.
And S340, adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal equipment.
After the scaling of the special effect is determined, the display size of the special effect is adjusted according to the scaling of the special effect, for example, for a terminal device with lower screen resolution, the display size of the special effect is reduced; for terminal equipment with higher screen resolution, the display size of the special effect is increased, so that the special effects on different equipment are displayed according to the same screen proportion, and the sizes of the special effects seen by users are the same.
The display position of the special effect can be set differently according to the actual situation, for example, some special effects are displayed in the middle of the screen, some special effects are displayed below the screen, some special effects need to be paved on the whole screen, and the setting is carried out according to the playing effect required by different special effects.
After the adaptation of the special effects is performed by the above method, as shown in fig. 4, on terminal devices 401 with different screen resolutions, the special effects 402 are all displayed according to the same screen scale, and the visual effects viewed by the user are the same. As shown in fig. 5, the same terminal device dynamically scales the display size of the special effect according to the horizontal and vertical screen states, and when the terminal device switches from the vertical screen state 501 to the horizontal screen state 502, the special effect 503 in the vertical screen state 501 is also adjusted to the special effect 504 in the horizontal screen state 502.
In the method for displaying the special effect in the live broadcast room in the exemplary embodiment of the present disclosure, by providing a method for displaying the special effect in the live broadcast room by adapting the terminal device, the display size of the special effect can be automatically adapted on the terminal devices with different screen resolutions or in different display states of the same terminal device. On one hand, the special effect can be displayed on the screen according to the same display proportion on the terminal equipment with different screen resolutions, so that the watching experience of users using different equipment is consistent; on the other hand, the special effect can be completely and fully played and displayed in the horizontal and vertical screen display state of the same terminal device, the display effect of the special effect in a live broadcast room is improved, and therefore the live broadcast watching experience of a user is further improved.
Next, the above steps of the present exemplary embodiment will be described in more detail with reference to fig. 6 to 12.
In step S330, as shown in fig. 6, determining a scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal device may specifically include the following steps:
step S610, determining a first screen pixel value and a second screen pixel value of the terminal device according to the screen resolution of the terminal device, wherein the first screen pixel value is smaller than the second screen pixel value.
In this exemplary embodiment, the first screen pixel value of the terminal device refers to a pixel value of a short side of the terminal device screen, and the second screen pixel value of the terminal device refers to a pixel value of a long side of the terminal device screen. For example, the screen resolution of the terminal device is 2248 × 1080, the first screen pixel value is 1080, and the second screen pixel value is 2248.
And S620, determining a scaling factor from the actual pixel size of the special effect according to the display state of the terminal equipment.
In the present exemplary embodiment, the actual pixel size of the special effect, that is, the absolute width and height pixel values of the special effect.
In step S620, as shown in fig. 7, determining a scaling factor from the actual pixel size of the special effect according to the display state of the terminal device may specifically include the following steps:
step S710, if the display state of the terminal device is a vertical screen state, determining a first actual pixel value of the special effect in the horizontal direction as a scaling factor.
The first actual pixel value of the effect in the horizontal direction is the pixel value of the effect in the horizontal direction. If the current display state of the terminal equipment is a vertical screen state, the first actual pixel value of the special effect is used as a scaling factor when the scaling is calculated, namely the width of the special effect is used as the scaling factor.
And S720, if the display state of the terminal equipment is a horizontal screen state, determining a second actual pixel value of the special effect in the vertical direction as a scaling factor.
The second actual pixel value of the special effect in the vertical direction is the pixel value of the special effect in the vertical direction. If the current display state of the terminal device is the landscape state, the second actual pixel value of the special effect is used as the scaling factor when the scaling is calculated, namely the height of the special effect is used as the scaling factor.
And S630, taking the first screen pixel value as a scaling reference value, and obtaining the scaling of the special effect according to the ratio of the scaling reference value to the scaling factor.
In calculating the scaling, the pixel value of the short side of the terminal device is used as the scaling reference value, that is, the first screen pixel value is used as the scaling reference value.
For the vertical screen state, the scaling calculation method comprises the following steps: a first actual pixel value of the special effect/a first screen pixel value of the terminal device; for the landscape state, the scaling calculation method is as follows: second actual pixel values of the special effect/first screen pixel values of the terminal device.
In step S340, as shown in fig. 8, adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal device, specifically, the method may include the following steps:
and step S810, obtaining the target pixel size of the special effect according to the scaling of the special effect and the actual pixel size of the special effect.
After the scaling of the special effect is obtained, according to the product of the scaling and a first actual pixel value and a second actual pixel value in the actual pixel size, a first target pixel size and a second target pixel size in the target pixel size are respectively obtained, and therefore the size of the target pixel size of the special effect is determined.
And S820, drawing a special effect display window at a preset position on the terminal equipment according to the target pixel size of the special effect, and displaying the special effect on the terminal equipment through the special effect display window.
The display window can be drawn by using a glViewPort function in OpenG L (OpenGraphics L library), and the viewport is set to occupy the whole pixel rectangle of the display window under the default condition, and the size of the display window is the same as the size of the viewport, so the transformation can be realized by using the glViewPort function, a pixel rectangle is defined in the display window, and the special effect image is mapped to the rectangle finally.
Next, a method of acquiring an actual pixel size of a special effect will be described in detail with reference to fig. 9 and 10.
In step S310, as shown in fig. 9, acquiring an actual pixel size of the special effect may specifically include the following steps:
step S910, a multimedia file with a special effect is obtained, and metadata of the special effect is obtained from the multimedia file.
And S920, acquiring the actual pixel size of the special effect from the metadata of the special effect.
After the multimedia file with the gift special effect is downloaded to the local through the server, the metadata of the special effect in the multimedia file can be read, and therefore the actual pixel size of the special effect is obtained. Metadata (Metadata), also called intermediary data and relay data, is data (data about data) describing data, and is mainly information describing data attributes, and Metadata of a special effect includes information such as format, size, and size of the special effect.
In this exemplary embodiment, the obtaining of the actual pixel size of the special effect is first obtained through metadata in the multimedia file, and if the reading of the actual pixel size of the multimedia file fails, the actual pixel size of the special effect may be obtained through a special effect video frame.
In step S310, as shown in fig. 10, acquiring an actual pixel size of the special effect may further include the following steps:
step S1010, a video image of any frame in the special effect video of the special effect is obtained.
And S1020, acquiring the video pixel size of the video image, and acquiring the actual pixel size of the special effect according to the video pixel size.
The special effect video is composed of special effect video images of one frame, the video image of any frame in the special effect video is obtained, and the pixel size of the video image is read, so that the actual pixel size of the special effect can be obtained.
By the method, the display process of the special effect under different terminal devices and different display states can be completed. After the display size and the display position of the special effect in different terminal devices and different display states are determined, service expansion can be performed according to the display size and the display position of the special effect, for example, an avatar, an ID, a file of a user or the like can be displayed at a specified position of the special effect.
As shown in fig. 11, the special effect display method for a live broadcast room according to this exemplary embodiment may further include the following steps:
step S1110, determining the display size and the display position of the additional display control corresponding to the special effect according to the display size and the display position of the special effect on the terminal equipment.
The additional display control corresponding to the special effect refers to display controls related to the special effect position, such as the head portrait, the ID or the file of a broadcaster or a gift giver, wherein the head portrait and the ID in the additional display control need to be displayed at the specified position of the special effect, and the file can be directly displayed at the specified position or can be typed out on a screen word by word according to the display position.
And step S1120, displaying the additional display control on the terminal equipment according to the display size and the display position of the additional display control while displaying the special effect on the terminal equipment.
When the terminal equipment displays the special effects, if some special effects have the display requirements of the additional display control, the special effects are displayed at the specified positions of the special effects according to the display size and the display position of the additional display control. As shown in fig. 12, on a special effect 1202 of the terminal device 1201, an avatar 1203 of a gift giver and a case 1204 related to the gift are displayed.
If the method that the display is directly carried out according to the actual pixel size of the special effect in the related embodiment is used, the position of the additional display control of the special effect cannot be controlled and cannot be displayed at the specified position due to the large difference of the display sizes of the special effects of different devices.
It can be seen that, in the special-effect display method for the live broadcast room in the present exemplary embodiment, since the display size and the position of the same special effect can be determined on different terminal devices, the application of the screen space can be better controlled, service expansion in aspects such as additional display controls and the like is facilitated, better experience is brought to the user, and thus, consumption of the user is further stimulated.
It should be noted that although the various steps of the methods of the present disclosure are depicted in the drawings in a particular order, this does not require or imply that these steps must be performed in this particular order, or that all of the depicted steps must be performed, to achieve desirable results. Additionally or alternatively, certain steps may be omitted, multiple steps combined into one step execution, and/or one step broken down into multiple step executions, etc.
Furthermore, the disclosure also provides a special effect display device of the live broadcast room. Referring to fig. 13, the live room special effect display apparatus may include an actual pixel obtaining module 1310, a screen state obtaining module 1320, a scaling module 1330, and a display size adjusting module 1340.
Wherein:
the actual pixel acquisition module 1310 may be configured to acquire an actual pixel size of the special effect;
the screen state obtaining module 1320 may be configured to obtain a screen resolution of a terminal device for displaying a special effect and a display state of the terminal device;
the scaling determining module 1330 may be configured to determine a scaling of the special effect in the display state according to an actual pixel size of the special effect and a screen resolution of the terminal device;
the display size adjusting module 1340 may be configured to adjust a display size of the special effect according to a scaling of the special effect, and display the adjusted special effect at a preset position on the terminal device.
In some exemplary embodiments of the present disclosure, the scaling determination module 1330 may include a screen pixel value determination unit, a scaling factor determination unit, and a scaling calculation unit. Wherein:
the screen pixel value determining unit may be configured to determine a first screen pixel value and a second screen pixel value of the terminal device according to a screen resolution of the terminal device, where the first screen pixel value is smaller than the second screen pixel value;
the scaling factor determination unit may be configured to determine a scaling factor from an actual pixel size of the special effect according to a display state of the terminal device;
the scaling calculation unit may be configured to use the first screen pixel value as a scaling reference value, and obtain a scaling of the special effect according to a ratio of the scaling reference value to the scaling factor.
In some exemplary embodiments of the present disclosure, the scaling factor determination unit may include a first scaling factor determination unit and a second scaling factor determination unit. Wherein:
the first scaling factor determining unit may be configured to determine, as the scaling factor, a first actual pixel value of the special effect in the horizontal direction if the display state of the terminal device is the vertical screen state;
the second scaling factor determining unit may be configured to determine, as the scaling factor, a second actual pixel value of the special effect in the vertical direction if the display state of the terminal device is the landscape state.
In some exemplary embodiments of the present disclosure, the display size adjustment module 1340 may include a target pixel size unit and a display window drawing unit. Wherein:
the target pixel size determining unit may be configured to obtain a target pixel size of the special effect according to a scaling of the special effect and an actual pixel size of the special effect;
the display window drawing unit may be configured to draw a display window of the special effect at a preset position on the terminal device according to a target pixel size of the special effect, and display the special effect on the terminal device through the display window of the special effect.
In some exemplary embodiments of the present disclosure, the actual pixel acquisition module 1310 may include a metadata acquisition unit and a pixel size acquisition unit. Wherein:
the metadata acquisition unit can be used for acquiring a multimedia file with a special effect and acquiring metadata of the special effect from the multimedia file;
the pixel size obtaining unit may be configured to obtain an actual pixel size of the special effect from metadata of the special effect.
In some exemplary embodiments of the present disclosure, the actual pixel acquisition module 1310 may further include a video image acquisition unit and a pixel size acquisition unit. Wherein:
the video image acquisition unit can be used for acquiring a video image of any frame in a special effect video with a special effect;
the pixel size obtaining unit may be configured to obtain a video pixel size of the video image, and obtain an actual pixel size of the special effect according to the video pixel size.
In some exemplary embodiments of the present disclosure, the special effect display apparatus of a live broadcast provided by the present disclosure may further include an additional element determination module and an additional element display module. Wherein:
the additional element determining module can be used for determining the display size and the display position of an additional display control corresponding to the special effect according to the display size and the display position of the special effect on the terminal equipment;
the additional element display module can be used for displaying the additional display control on the terminal equipment according to the display size and the display position of the additional display control while the special effect is displayed on the terminal equipment.
The specific details of each module/unit in the special effect display device in the live broadcast room are described in detail in the corresponding method embodiment section, and are not described herein again.
FIG. 14 illustrates a schematic structural diagram of a computer system suitable for use with the electronic device to implement an embodiment of the invention.
It should be noted that the computer system 1400 of the electronic device shown in fig. 14 is only an example, and should not bring any limitation to the function and the scope of the application of the embodiment of the present invention.
As shown in fig. 14, the computer system 1400 includes a Central Processing Unit (CPU)1401, which can perform various appropriate actions and processes in accordance with a program stored in a Read Only Memory (ROM)1402 or a program loaded from a storage portion 1408 into a Random Access Memory (RAM) 1403. In the RAM 1403, various programs and data necessary for system operation are also stored. The CPU 1401, ROM 1402, and RAM 1403 are connected to each other via a bus 1404. An input/output (I/O) interface 1405 is also connected to bus 1404.
To the I/O interface 1405, AN input portion 1406 including a keyboard, a mouse, and the like, AN output portion 1407 including a display such as a Cathode Ray Tube (CRT), a liquid crystal display (L CD), and the like, a speaker, and the like, a storage portion 1408 including a hard disk, and the like, and a communication portion 1409 including a network interface card such as a L AN card, a modem, and the like, the communication portion 1409 performs communication processing via a network such as the internet, a drive 1410 is also connected to the I/O interface 1405 as necessary, a removable medium 1411 such as a magnetic disk, AN optical disk, a magneto-optical disk, a semiconductor memory, and the like is mounted on the drive 1410 as necessary, so that a computer program read out therefrom is mounted into the storage portion 1408 as necessary.
In particular, according to an embodiment of the present invention, the processes described below with reference to the flowcharts may be implemented as computer software programs. For example, embodiments of the invention include a computer program product comprising a computer program embodied on a computer-readable medium, the computer program comprising program code for performing the method illustrated in the flow chart. In such an embodiment, the computer program may be downloaded and installed from a network via the communication portion 1409 and/or installed from the removable medium 1411. When the computer program is executed by a Central Processing Unit (CPU)1401, various functions defined in the system of the present application are executed.
It should be noted that the computer readable media shown in the present disclosure may be computer readable signal media or computer readable storage media or any combination of the two. A computer readable storage medium may be, for example, but not limited to, an electronic, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination of the foregoing. More specific examples of the computer readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer diskette, a hard disk, a Random Access Memory (RAM), a read-only memory (ROM), an erasable programmable read-only memory (EPROM or flash memory), an optical fiber, a portable compact disc read-only memory (CD-ROM), an optical storage device, a magnetic storage device, or any suitable combination of the foregoing. In the present disclosure, a computer readable storage medium may be any tangible medium that can contain, or store a program for use by or in connection with an instruction execution system, apparatus, or device. In contrast, in the present disclosure, a computer-readable signal medium may include a propagated data signal with computer-readable program code embodied therein, for example, in baseband or as part of a carrier wave. Such a propagated data signal may take many forms, including, but not limited to, electro-magnetic, optical, or any suitable combination thereof. A computer readable signal medium may also be any computer readable medium that is not a computer readable storage medium and that can communicate, propagate, or transport a program for use by or in connection with an instruction execution system, apparatus, or device. Program code embodied on a computer readable medium may be transmitted using any appropriate medium, including but not limited to: wireless, wire, fiber optic cable, RF, etc., or any suitable combination of the foregoing.
The flowchart and block diagrams in the figures illustrate the architecture, functionality, and operation of possible implementations of systems, methods and computer program products according to various embodiments of the present disclosure. In this regard, each block in the flowchart or block diagrams may represent a module, segment, or portion of code, which comprises one or more executable instructions for implementing the specified logical function(s). It should also be noted that, in some alternative implementations, the functions noted in the block may occur out of the order noted in the figures. For example, two blocks shown in succession may, in fact, be executed substantially concurrently, or the blocks may sometimes be executed in the reverse order, depending upon the functionality involved. It will also be noted that each block of the block diagrams or flowchart illustration, and combinations of blocks in the block diagrams or flowchart illustration, can be implemented by special purpose hardware-based systems which perform the specified functions or acts, or combinations of special purpose hardware and computer instructions.
As another aspect, the present application also provides a computer-readable medium, which may be contained in the electronic device described in the above embodiments; or may exist separately without being assembled into the electronic device. The computer readable medium carries one or more programs which, when executed by an electronic device, cause the electronic device to implement the method as described in the embodiments below.
It should be noted that although in the above detailed description several modules of the device for action execution are mentioned, this division is not mandatory. Indeed, the features and functionality of two or more of the modules described above may be embodied in one module, in accordance with embodiments of the present disclosure. Conversely, the features and functions of one module described above may be further divided into embodiments by a plurality of modules.
Other embodiments of the disclosure will be apparent to those skilled in the art from consideration of the specification and practice of the disclosure disclosed herein. This application is intended to cover any variations, uses, or adaptations of the disclosure following, in general, the principles of the disclosure and including such departures from the present disclosure as come within known or customary practice within the art to which the disclosure pertains.
It will be understood that the present disclosure is not limited to the precise arrangements described above and shown in the drawings and that various modifications and changes may be made without departing from the scope thereof. The scope of the present disclosure is limited only by the appended claims.

Claims (10)

1. A special effect display method of a live broadcast room is characterized by comprising the following steps:
acquiring the actual pixel size of a special effect;
acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment;
determining the scaling of the special effect in the display state according to the actual pixel size of the special effect and the screen resolution of the terminal equipment;
and adjusting the display size of the special effect according to the scaling of the special effect, and displaying the adjusted special effect at a preset position on the terminal equipment.
2. The method for displaying special effects in a live broadcast room according to claim 1, wherein the determining a scaling of the special effect in the display state according to an actual pixel size of the special effect and a screen resolution of the terminal device includes:
determining a first screen pixel value and a second screen pixel value of the terminal equipment according to the screen resolution of the terminal equipment, wherein the first screen pixel value is smaller than the second screen pixel value;
determining a scaling factor from the actual pixel size of the special effect according to the display state of the terminal equipment;
and taking the first screen pixel value as a scaling reference value, and obtaining the scaling of the special effect according to the ratio of the scaling reference value to the scaling factor.
3. The method for displaying special effects in a live broadcast room according to claim 2, wherein the determining a scaling factor from an actual pixel size of the special effect according to the display state of the terminal device includes:
if the display state of the terminal equipment is a vertical screen state, determining a first actual pixel value of the special effect in the horizontal direction as a scaling factor;
and if the display state of the terminal equipment is a horizontal screen state, determining a second actual pixel value of the special effect in the vertical direction as a scaling factor.
4. The special effect display method of the live broadcast room according to claim 1, wherein the adjusting the display size of the special effect according to the scaling of the special effect and displaying the adjusted special effect at a preset position on the terminal device comprises:
obtaining the target pixel size of the special effect according to the scaling of the special effect and the actual pixel size of the special effect;
and drawing a display window of the special effect at a preset position on the terminal equipment according to the target pixel size of the special effect, and displaying the special effect on the terminal equipment through the display window of the special effect.
5. The method for displaying special effects in a live broadcast room according to claim 1, wherein the obtaining of the actual pixel size of the special effect comprises:
acquiring the multimedia file with the special effect, and acquiring metadata of the special effect from the multimedia file;
and acquiring the actual pixel size of the special effect from the metadata of the special effect.
6. The method for displaying special effects in a live broadcast room according to claim 1, wherein the obtaining of the actual pixel size of the special effect comprises:
acquiring a video image of any frame in the special effect video with the special effect;
and acquiring the video pixel size of the video image, and obtaining the actual pixel size of the special effect according to the video pixel size.
7. The method for special effects display in live broadcast room according to claim 1, further comprising:
determining the display size and the display position of an additional display control corresponding to the special effect according to the display size and the display position of the special effect on the terminal equipment;
and displaying the additional display control on the terminal equipment according to the display size and the display position of the additional display control while the special effect is displayed on the terminal equipment.
8. A special effect display device of a live broadcast room, comprising:
the actual pixel acquisition module is used for acquiring the actual pixel size of the special effect;
the screen state acquisition module is used for acquiring the screen resolution of the terminal equipment for displaying the special effect and the display state of the terminal equipment;
a scaling determining module, configured to determine a scaling of the special effect in the display state according to an actual pixel size of the special effect and a screen resolution of the terminal device;
and the display size adjusting module is used for adjusting the display size of the special effect according to the scaling of the special effect and displaying the adjusted special effect at a preset position on the terminal equipment.
9. An electronic device, comprising:
a processor; and
a memory to store one or more programs that, when executed by the one or more processors, cause the one or more processors to implement the special effects display method of the live broadcast room of any of claims 1-7.
10. A computer-readable medium, on which a computer program is stored, which, when being executed by a processor, implements a special effects display method of a live broadcast room according to any one of claims 1 to 7.
CN202010440856.6A 2020-05-21 2020-05-21 Special effect display method and device for live broadcast room, electronic equipment and computer medium Pending CN111506241A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010440856.6A CN111506241A (en) 2020-05-21 2020-05-21 Special effect display method and device for live broadcast room, electronic equipment and computer medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010440856.6A CN111506241A (en) 2020-05-21 2020-05-21 Special effect display method and device for live broadcast room, electronic equipment and computer medium

Publications (1)

Publication Number Publication Date
CN111506241A true CN111506241A (en) 2020-08-07

Family

ID=71877034

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010440856.6A Pending CN111506241A (en) 2020-05-21 2020-05-21 Special effect display method and device for live broadcast room, electronic equipment and computer medium

Country Status (1)

Country Link
CN (1) CN111506241A (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306441A (en) * 2020-11-10 2021-02-02 深圳市朗科科技股份有限公司 Method and equipment for realizing same-screen transmission
CN114598928A (en) * 2022-03-10 2022-06-07 卓米私人有限公司 Screen adaptation method and device for interactive elements in live broadcast room and electronic equipment

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673535A (en) * 2008-09-11 2010-03-17 鸿富锦精密工业(深圳)有限公司 Electronic device with picture-adjusting function and picture-adjusting method
CN102314502A (en) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for displaying webpage main content on mobile terminal
CN203289544U (en) * 2013-05-21 2013-11-13 北京中传数广技术有限公司 Device zooming video images in equal ratio
CN104461443A (en) * 2014-12-31 2015-03-25 广州视源电子科技股份有限公司 Method and system for achieving animation effect
US20170195650A1 (en) * 2015-12-30 2017-07-06 Le Holdings (Beijing) Co., Ltd. Method and system for multi point same screen broadcast of video
CN111131850A (en) * 2019-12-27 2020-05-08 广州华多网络科技有限公司 Method and device for displaying special effect of virtual gift and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101673535A (en) * 2008-09-11 2010-03-17 鸿富锦精密工业(深圳)有限公司 Electronic device with picture-adjusting function and picture-adjusting method
CN102314502A (en) * 2011-09-01 2012-01-11 百度在线网络技术(北京)有限公司 Method and equipment for displaying webpage main content on mobile terminal
CN203289544U (en) * 2013-05-21 2013-11-13 北京中传数广技术有限公司 Device zooming video images in equal ratio
CN104461443A (en) * 2014-12-31 2015-03-25 广州视源电子科技股份有限公司 Method and system for achieving animation effect
US20170195650A1 (en) * 2015-12-30 2017-07-06 Le Holdings (Beijing) Co., Ltd. Method and system for multi point same screen broadcast of video
CN111131850A (en) * 2019-12-27 2020-05-08 广州华多网络科技有限公司 Method and device for displaying special effect of virtual gift and electronic equipment

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN112306441A (en) * 2020-11-10 2021-02-02 深圳市朗科科技股份有限公司 Method and equipment for realizing same-screen transmission
CN114598928A (en) * 2022-03-10 2022-06-07 卓米私人有限公司 Screen adaptation method and device for interactive elements in live broadcast room and electronic equipment

Similar Documents

Publication Publication Date Title
CN104010225B (en) The method and system of display panoramic video
CN111277845B (en) Game live broadcast control method and device, computer storage medium and electronic equipment
CN112738541B (en) Picture display method and device and electronic equipment
US11482257B2 (en) Image display method and apparatus
CN107371062B (en) Method for automatically zooming video picture
CN112770050B (en) Video display method and device, computer readable medium and electronic equipment
CN110290398B (en) Video issuing method and device, storage medium and electronic equipment
US11785195B2 (en) Method and apparatus for processing three-dimensional video, readable storage medium and electronic device
CN111258519B (en) Screen split implementation method, device, terminal and medium
CN111506241A (en) Special effect display method and device for live broadcast room, electronic equipment and computer medium
CN113810755B (en) Panoramic video preview method and device, electronic equipment and storage medium
CN114268833A (en) Live broadcast content acquisition and processing method and device, electronic equipment and medium
CN113259716A (en) Video issuing method, video acquiring method, server, terminal and system
CN111200758B (en) Multi-view-field control method and device for panoramic video, electronic equipment and storage medium
CN113641853A (en) Dynamic cover generation method, device, electronic equipment, medium and program product
CN113766255A (en) Video stream merging method and device, electronic equipment and computer medium
CN114092362A (en) Panoramic picture loading method and device
CN112702642A (en) Media preview method, device, system and computer readable storage medium
CN111277886B (en) Panoramic video view field control method and device, electronic equipment and storage medium
CN113114955B (en) Video generation method and device and electronic equipment
CN116996727A (en) Processing method, processing device, terminal equipment and medium
CN112949252A (en) Text display method, text display device, and computer-readable medium
CN116017058A (en) Video playing method, device, electronic equipment and readable storage medium
CN115996286A (en) Display control device and method, storage medium and electronic equipment
CN116233561A (en) Virtual gift generation method, device, equipment and medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20200807

RJ01 Rejection of invention patent application after publication