CN107404668A - A kind of colorful barrage rendering intent and device - Google Patents

A kind of colorful barrage rendering intent and device Download PDF

Info

Publication number
CN107404668A
CN107404668A CN201710318999.8A CN201710318999A CN107404668A CN 107404668 A CN107404668 A CN 107404668A CN 201710318999 A CN201710318999 A CN 201710318999A CN 107404668 A CN107404668 A CN 107404668A
Authority
CN
China
Prior art keywords
bullet screen
color
rendering
parameters
screen background
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
CN201710318999.8A
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.)
Wuhan Shark Webcast Technology Co Ltd
Original Assignee
Wuhan Shark Webcast Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Wuhan Shark Webcast Technology Co Ltd filed Critical Wuhan Shark Webcast Technology Co Ltd
Priority to CN201710318999.8A priority Critical patent/CN107404668A/en
Publication of CN107404668A publication Critical patent/CN107404668A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/478Supplemental services, e.g. displaying phone caller identification, shopping application
    • H04N21/4788Supplemental services, e.g. displaying phone caller identification, shopping application communicating with other users, e.g. chatting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06TIMAGE DATA PROCESSING OR GENERATION, IN GENERAL
    • G06T15/003D [Three Dimensional] image rendering
    • G06T15/10Geometric effects
    • G06T15/20Perspective computation
    • G06T15/205Image-based rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • H04N21/4314Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations for fitting data in a restricted space on the screen, e.g. EPG data in a rectangular grid
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4318Generation of visual interfaces for content selection or interaction; Content or additional data rendering by altering the content in the rendering process, e.g. blanking, blurring or masking an image region
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/488Data services, e.g. news ticker
    • H04N21/4884Data services, e.g. news ticker for displaying subtitles

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Geometry (AREA)
  • Computer Graphics (AREA)
  • General Physics & Mathematics (AREA)
  • Image Generation (AREA)

Abstract

The present invention, which provides a kind of colorful barrage rendering intent and device, described method, to be included:S1, receive barrage server incoming barrage content, the color parameter of barrage content and barrage context parameter;S2, according to the color parameter of barrage content, the barrage content is rendered;S3, barrage background area is drawn, and according to the color parameter of barrage background, the barrage background area is rendered;S4, barrage background area of the barrage content after rendering after rendering are shown.The present invention realizes colorful barrage background using the mode drawn and rendered, compared to the existing mode rendered to cutting picture materials, reduce and pressure is rendered to barrage background, when changing the rendering style, without specially replacing picture, it is only necessary to can be achieved to render the difference of barrage background by changing parameter.

Description

Colorful bullet screen rendering method and device
Technical Field
The invention relates to the technical field of barrage rendering, in particular to a colorful barrage rendering method and device.
Background
When the barrage is rendered, the demand that the barrage is changed into the colorful barrage exists, and meanwhile, various gradually-changed and colorful backgrounds need to be added to the colorful barrage for highlighting. At present, the color of the bullet screen font is usually changed, and then the material picture cut in advance is set as the bullet screen background picture.
The disadvantages of using the material picture as the background picture are as follows: (1) under the condition of more style requirements, each style requirement needs to cut a corresponding background picture, the picture processing capacity of the server is required, the number of cut pictures of the interface design is increased, and even if the style is similar, a new background material picture needs to be cut again. (2) Render material picture and can consume great performance, when a plurality of colored barrages need to be rendered simultaneously, then obviously the phenomenon that the card is pause can appear, influence user experience. (3) When the background picture of the material is replaced, the actual effect can be seen only by adding new material when the background is updated, and the effect that the background is instantly configured and the front end is instantly displayed cannot be realized.
Disclosure of Invention
The present invention provides a method and apparatus for multi-color bullet-screen rendering that overcomes, or at least partially solves, the above-mentioned problems.
According to an aspect of the present invention, there is provided a multi-color bullet screen rendering method, including:
s1, receiving bullet screen content, color parameters of the bullet screen content and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background;
s2, rendering the bullet screen content according to the color parameters of the bullet screen content;
s3, drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background;
and S4, displaying the rendered bullet screen content in the rendered bullet screen background area.
The invention has the beneficial effects that: the method includes the steps that a bullet screen background area is drawn, and a mode of rendering the bullet screen background area is adopted to achieve colorful bullet screen backgrounds, compared with the existing mode that picture materials are cut out to serve as bullet screen backgrounds, in the prior art, the material pictures need to be rendered, rendering pressure of a server on the bullet screen backgrounds is reduced, when the rendering styles are changed, the pictures do not need to be replaced specially, and different rendering on the bullet screen backgrounds can be achieved only by modifying rendering parameters. On the basis of the technical scheme, the invention can be further improved as follows.
Further, the barrage background parameters further include a height parameter and a width parameter of the barrage background area, and the drawing of the barrage background area in step S3 specifically includes:
drawing a bullet screen background area by taking the area occupied by the bullet screen content as a center; or,
the method comprises the steps of obtaining the position boundary of an area occupied by bullet screen content, drawing the distance between the left boundary and the right boundary of a bullet screen background area and the distance between the left boundary and the right boundary of the area occupied by the bullet screen content as the width parameter of the bullet screen background parameter, and drawing the distance between the upper boundary and the lower boundary of the bullet screen background area and the upper boundary and the lower boundary of the area occupied by the bullet screen content as the height parameter of the bullet screen background parameter.
Furthermore, the color parameters of the bullet screen background comprise a single color and a gradient color, and the gradient color is composed of a plurality of different single color gradient colors.
Further, when the color parameter of the bullet screen background is a single color, the rendering the bullet screen background area in step S2 specifically includes:
and rendering the drawn bullet screen background area by adopting the single color.
Further, when the color parameter of the bullet screen background is a gradient color, the step S1 specifically includes:
setting a plurality of different color labels on the bullet screen server, and storing all the different color labels into an array in sequence;
setting the proportion of each color, and setting a starting color rendering position and an ending color rendering position on a bullet screen background area;
and receiving the bullet screen background parameters transmitted by the bullet screen server through the parameter setting interface, wherein the bullet screen background parameters comprise array parameters, the proportion of each color, and the rendering position of the initial color and the rendering position of the final color in the bullet screen background area.
Further, the step S3 specifically includes:
s31, acquiring multiple color labels arranged in sequence from the array according to the array parameters transmitted by the bullet screen server, and calling corresponding colors from the color library according to the color labels;
and S32, performing gradient rendering on the areas needing to be rendered on the bullet screen background area according to each color and the proportion of each color, wherein the rendered areas are determined according to the rendering position of the initial color and the rendering position of the final color on the bullet screen background area.
According to another aspect of the present invention, there is also provided a multicolor bullet screen rendering apparatus including:
the receiving module is used for receiving the bullet screen content, the color parameters of the bullet screen content and the bullet screen background parameters transmitted by the bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of the bullet screen background;
the first rendering module is used for rendering the bullet screen content according to the color parameters of the bullet screen content;
the drawing module is used for drawing a bullet screen background area;
the second rendering module is used for rendering the bullet screen background area according to the color parameters of the bullet screen background;
and the display module is used for displaying the rendered barrage content in the rendered barrage background area.
According to a third aspect of the present invention, there is also provided a test apparatus for a multicolor bullet-screen rendering device, comprising:
a processor, a memory, a communication interface, and a bus; wherein,
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between the testing equipment and the communication equipment of the colorful bullet screen rendering device;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform a method comprising:
receiving bullet screen contents, color parameters of the bullet screen contents and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background;
rendering the bullet screen content according to the color parameters of the bullet screen content;
drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background;
and displaying the rendered bullet screen content in the rendered bullet screen background area.
According to a fourth aspect of the present invention, there is also provided a computer program comprising program code for performing the following:
the processor is used for calling the logic instructions in the memory to execute the following method:
receiving bullet screen contents, color parameters of the bullet screen contents and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background;
rendering the bullet screen content according to the color parameters of the bullet screen content;
drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background;
and displaying the rendered bullet screen content in the rendered bullet screen background area.
According to a fifth aspect of the present invention, there is also provided a storage medium for storing the computer program as described above.
Drawings
FIG. 1 is a flow chart of a method for rendering a multi-color bullet screen according to an embodiment of the present invention;
FIG. 2 is a block diagram of a connection of a multi-color bullet-screen rendering apparatus according to another embodiment of the present invention;
FIG. 3 is a block diagram illustrating an overall connection of a multi-color bullet-screen rendering apparatus according to another embodiment of the present invention;
fig. 4 is a connection block diagram of a testing device of the multi-color bullet screen rendering apparatus according to still another embodiment of the present invention.
Detailed Description
The following detailed description of embodiments of the present invention is provided in connection with the accompanying drawings and examples. The following examples are intended to illustrate the invention but are not intended to limit the scope of the invention.
Referring to fig. 1, fig. 1 provides a method for rendering a colorful bullet screen according to an embodiment of the present invention, including: s1, receiving bullet screen content, color parameters of the bullet screen content and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background; s2, rendering the bullet screen content according to the color parameters of the bullet screen content; s3, drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background; and S4, displaying the rendered bullet screen content in the rendered bullet screen background area.
When the bullet screen content needs to be subjected to colorful rendering, the color parameters of the bullet screen content and the bullet screen background parameters can be set on the interface of the bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of the bullet screen background. And rendering the bullet screen content by adopting the color parameters of the bullet screen content according to the set color parameters of the bullet screen content and the bullet screen content transmitted by the bullet screen server. And drawing the bullet screen background area, and rendering the bullet screen background area according to the set color parameters of the bullet screen background. And finally, displaying the rendered bullet screen content in the rendered bullet screen background area.
This embodiment adopts and draws bullet screen background region to carry out the mode of playing up to bullet screen background region, realize colorful bullet screen background, compare current adoption and tailor the picture material as bullet screen background, need play up the material picture among the prior art, reduced the server to the pressure of playing up of bullet screen background, when the pattern is played up in the change, need not special replacement picture, only need to modify the different of playing up the parameter and can realize playing up the bullet screen background.
In an embodiment of the present invention, the barrage background parameters further include a height parameter and a width parameter of the barrage background area.
The step S3 of drawing the bullet screen background area specifically includes: and drawing a bullet screen background area by taking the area occupied by the bullet screen content as the center. Or acquiring the position boundary of the area occupied by the bullet screen content, wherein the distance between the left and right boundaries of the drawn bullet screen background area and the left and right boundaries of the area occupied by the bullet screen content is the width parameter in the bullet screen background parameter, and the distance between the upper and lower boundaries of the bullet screen background area and the upper and lower boundaries of the area occupied by the bullet screen content is the height parameter in the bullet screen background parameter.
The barrage background parameters set above not only include the color parameters of the barrage background, but also include the height parameters and width parameters of the barrage background area. When the bullet screen background area is drawn, if the height parameter and the width parameter of the bullet screen background area are not set, the bullet screen background area is drawn by default by taking the area where the bullet screen content is located as the center, namely the area occupied by the bullet screen content is located in the middle of the drawn bullet screen background area. When the height parameter and the width parameter of the bullet screen background area are set on the bullet screen server, the position boundary of the area occupied by the bullet screen content is obtained, the distance between the left boundary and the right boundary of the bullet screen background area and the distance between the left boundary and the right boundary of the area occupied by the bullet screen content which are finally drawn are the width parameter in the bullet screen background parameter, and the distance between the upper boundary and the lower boundary of the bullet screen background area and the upper boundary and the lower boundary of the area occupied by the bullet screen content are the height parameter in the bullet screen background parameter.
In another embodiment of the present invention, the color parameters of the bullet screen background comprise a single color and a gradient color, wherein the gradient color is composed of a plurality of different single-color gradients.
When the color parameter of the bullet screen background is a single color, the rendering the bullet screen background area in step S2 specifically includes: and rendering the drawn bullet screen background area by adopting the single color.
In addition, when the color parameter of the bullet screen background is a gradient color, a plurality of different color labels are set in the bullet screen server, and all the different color labels are stored in an array in sequence; setting the proportion of each color, and setting a starting color rendering position and an ending color rendering position on a bullet screen background area; and receiving the bullet screen background parameters transmitted by the bullet screen server through the parameter setting interface, wherein the bullet screen background parameters comprise array parameters, the proportion of each color, and the rendering position of the initial color and the rendering position of the final color in the bullet screen background area.
The color parameter of the bullet screen background set on the interface of the bullet screen server can be a single color or a gradient color. And when the color parameter of the bullet screen background is a single color, rendering the drawn bullet screen background area by adopting the single color. When the color parameter of the bullet screen background is gradient, the gradient color is composed of a plurality of different single colors. A plurality of color labels, such as red, yellow, green and the like, are arranged on the bullet screen server, and the bullet screen server stores all the different color labels into an array in sequence. For example, there are four monochrome colors, bcolor1, bcolor2, bcolor3, and bcolor4, and the labels of the four monochrome colors are put into the array in order. When the same color exists in a plurality of different colors, the same color label is stored in different orders. And then, setting the proportion of each color, namely the proportion of each color in the bullet screen background area when the bullet screen background area is rendered subsequently. The rendering server receives the barrage background parameters transmitted by the barrage server through the parameter setting interface, wherein the barrage background parameters comprise array parameters, the proportion of each color, and the rendering position of the initial color and the rendering position of the final color in the barrage background area. According to the set starting color rendering position and the ending color rendering position on the bullet screen background area, the area required to be rendered in the whole bullet screen background area can be determined, for example, x0 and y0 are set as the starting color rendering positions and x1 and y1 are set as the ending color rendering positions on the bullet screen background area respectively.
It should be noted that, when the ratio of each color is not set on the interface of the bullet screen server, the ratio of each color is equal by default. The proportion of each color is as follows: and s is 1/n 100, wherein s is the percentage of each color, and n is the number of all colors.
In an embodiment of the present invention, the step S3 specifically includes: s31, acquiring multiple color labels arranged in sequence from the array according to the array parameters transmitted by the bullet screen server, and calling corresponding colors from the color library according to the color labels; and S32, performing gradient rendering on the areas needing to be rendered on the bullet screen background area according to each color and the proportion of each color, wherein the rendered areas are determined according to the rendering position of the initial color and the rendering position of the final color on the bullet screen background area.
When the rendering server receives the array parameters transmitted by the bullet screen server, the colors arranged in sequence are obtained from the color database according to the labels of the colors in the array parameters. And then, according to each obtained color and the proportion of each color, performing gradient rendering on the areas needing to be rendered on the bullet screen background area according to the sequence by adopting the colors, wherein the areas needing to be rendered in the bullet screen background area can be determined by the initial color rendering position and the final color rendering position of the bullet screen background area. And after the bullet screen background area is rendered by adopting a single color or multiple different gradient colors, displaying the rendered bullet screen content on the rendered bullet screen background area.
Referring to fig. 2, fig. 2 provides a multi-color bullet screen rendering apparatus according to another embodiment of the present invention, which includes a receiving module 21, a first rendering module 22, a drawing module 23, a second rendering module 24, and a display module 25.
The receiving module 21 is configured to receive the bullet screen content, the color parameter of the bullet screen content, and the bullet screen background parameter, where the bullet screen background parameter at least includes the color parameter of the bullet screen background;
the first rendering module 22 is configured to render the bullet screen content according to the color parameter of the bullet screen content;
the drawing module 23 is used for drawing a bullet screen background area;
the second rendering module 24 is configured to render the bullet screen background area according to the color parameter of the bullet screen background;
and the display module 25 is configured to display the rendered bullet screen content in the rendered bullet screen background area.
Wherein, bullet screen background parameter still includes bullet screen background area's height parameter and width parameter, draws module 23 and is specifically used for:
drawing a bullet screen background area by taking the area occupied by the bullet screen content as a center; or,
the method comprises the steps of obtaining the position boundary of an area occupied by bullet screen content, drawing the distance between the left boundary and the right boundary of a bullet screen background area and the distance between the left boundary and the right boundary of the area occupied by the bullet screen content as the width parameter of the bullet screen background parameter, and drawing the distance between the upper boundary and the lower boundary of the bullet screen background area and the upper boundary and the lower boundary of the area occupied by the bullet screen content as the height parameter of the bullet screen background parameter.
The color parameters of the bullet screen background comprise a single color and a gradient color, wherein the gradient color is formed by gradient of a plurality of different single colors. When the color parameter of the bullet screen background is a single color, the second rendering module 24 is specifically configured to:
and rendering the drawn bullet screen background area by adopting the single color.
Referring to fig. 3, the multicolor bullet screen rendering apparatus further includes a setting module 20 and an obtaining module 26, where the setting module 20 is configured to set a plurality of different color labels on the bullet screen server, and store all the different color labels in an array in sequence;
setting the proportion of each color, and setting a starting color rendering position and an ending color rendering position on the bullet screen background area.
The receiving module 21 is specifically configured to:
and receiving the bullet screen background parameters transmitted by the bullet screen server through the parameter setting interface, wherein the bullet screen background parameters comprise array parameters, the proportion of each color, and the rendering position of the initial color and the rendering position of the final color in the bullet screen background area.
The obtaining module 26 is configured to obtain multiple color labels arranged in sequence from the array according to the array parameters transmitted by the bullet screen server, and call corresponding colors from the color library according to the color labels.
The second rendering module 24 is specifically configured to:
and performing gradient rendering on the areas needing to be rendered on the bullet screen background area according to each color and the proportion of each color, wherein the rendered areas are determined according to the rendering position of the initial color and the rendering position of the final color on the bullet screen background area.
Based on the multicolor bullet screen rendering device provided by the embodiment corresponding to fig. 2 and fig. 3, the invention further provides a test device of the multicolor bullet screen rendering device. Referring to fig. 4, the test apparatus of the multicolor bullet screen rendering device includes: a processor (processor)401, a memory (memory)402, a communication Interface (Communications Interface)403, and a bus 404;
the processor 401, the memory 402 and the communication interface 403 complete mutual communication through the bus 404;
the communication interface 403 is used for information transmission between the testing device and the communication device of the multicolor bullet screen rendering apparatus;
the processor 401 is configured to call the program instructions in the memory 402 to execute the method for rendering a colorful bullet screen provided in the embodiment corresponding to fig. 1, for example, including: receiving bullet screen contents, color parameters of the bullet screen contents and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background; rendering the bullet screen content according to the color parameters of the bullet screen content; drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background; and displaying the rendered bullet screen content in the rendered bullet screen background area.
The present invention discloses a computer program product, which includes a computer program stored on a non-transitory computer readable storage medium, the computer program includes program instructions, when the program instructions are executed by a computer, the computer can execute the method for rendering a colorful bullet screen provided by the embodiment corresponding to fig. 1, for example, the method includes: receiving bullet screen contents, color parameters of the bullet screen contents and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background; rendering the bullet screen content according to the color parameters of the bullet screen content; drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background; and displaying the rendered bullet screen content in the rendered bullet screen background area.
The present invention also provides a non-transitory computer-readable storage medium storing computer instructions, which cause a computer to execute the method for rendering a colorful bullet screen provided in the embodiment corresponding to fig. 1, for example, the method includes: receiving bullet screen contents, color parameters of the bullet screen contents and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background; rendering the bullet screen content according to the color parameters of the bullet screen content; drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background; and displaying the rendered bullet screen content in the rendered bullet screen background area. Those of ordinary skill in the art will understand that: all or part of the steps for implementing the method embodiments may be implemented by hardware related to program instructions, and the program may be stored in a computer readable storage medium, and when executed, the program performs the steps including the method embodiments; and the aforementioned storage medium includes: various media that can store program codes, such as ROM, RAM, magnetic or optical disks.
The above-described embodiments of the testing apparatus of the multi-color bullet screen rendering apparatus and the like are merely illustrative, where units illustrated as separate components may or may not be physically separated, and components 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 modules may be selected according to actual needs to achieve the purpose of the solution of the present embodiment. One of ordinary skill in the art can understand and implement it without inventive effort.
Through the above description of the embodiments, those skilled in the art will clearly understand that each embodiment can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware. With this understanding in mind, the above technical solutions may be embodied in the form of a software product, which can be stored in a computer-readable storage medium, such as ROM/RAM, magnetic disk, optical disk, etc., and includes instructions for causing a computer device (which may be a personal computer, a server, or a network device) to execute the various embodiments or some parts of the methods of the embodiments.
The method and the device for rendering the colorful bullet screen provided by the invention realize multiple and target backgrounds by adopting a mode of drawing the background area of the bullet screen and rendering the background area of the bullet screen, compared with the prior art that a cut picture material is adopted as the background of the bullet screen, the material picture needs to be rendered in the prior art, the rendering pressure of a server on the background of the bullet screen is reduced, and when the rendering style is changed, the picture does not need to be specially replaced, and different renderings on the background of the bullet screen can be realized only by modifying rendering parameters.
Finally, the method of the present application is only a preferred embodiment and is not intended to limit the scope of the present invention. Any modification, equivalent replacement, or improvement made within the spirit and principle of the present invention should be included in the protection scope of the present invention.

Claims (10)

1. A method for rendering a multi-color bullet screen, comprising:
s1, receiving bullet screen content, color parameters of the bullet screen content and bullet screen background parameters transmitted by a bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of a bullet screen background;
s2, rendering the bullet screen content according to the color parameters of the bullet screen content;
s3, drawing a bullet screen background area, and rendering the bullet screen background area according to the color parameters of the bullet screen background;
and S4, displaying the rendered bullet screen content in the rendered bullet screen background area.
2. The method for rendering a multicolor bullet screen according to claim 1, wherein the parameters of the background of the bullet screen further include a height parameter and a width parameter of a background area of the bullet screen, and the step S3 of drawing the background area of the bullet screen specifically includes:
drawing a bullet screen background area by taking the area occupied by the bullet screen content as a center; or,
the method comprises the steps of obtaining the position boundary of an area occupied by bullet screen content, drawing the distance between the left boundary and the right boundary of a bullet screen background area and the distance between the left boundary and the right boundary of the area occupied by the bullet screen content as the width parameter of the bullet screen background parameter, and drawing the distance between the upper boundary and the lower boundary of the bullet screen background area and the upper boundary and the lower boundary of the area occupied by the bullet screen content as the height parameter of the bullet screen background parameter.
3. A multicolor bullet screen rendering method according to claim 2 wherein said color parameters of said bullet screen background include a single color and a gradient color, said gradient color being comprised of a plurality of different single color gradients.
4. The multi-color bullet screen rendering method according to claim 3, wherein when the color parameter of the bullet screen background is a single color, the rendering of the bullet screen background area in step S2 specifically includes:
and rendering the drawn bullet screen background area by adopting the single color.
5. The method for rendering a multicolor bullet screen according to claim 3, wherein when the color parameter of the bullet screen background is a gradient color, the step S1 specifically includes:
setting a plurality of different color labels on the bullet screen server, and storing all the different color labels into an array in sequence;
setting the proportion of each color, and setting a starting color rendering position and an ending color rendering position on a bullet screen background area;
and receiving the bullet screen background parameters transmitted by the bullet screen server through the parameter setting interface, wherein the bullet screen background parameters comprise array parameters, the proportion of each color, and the rendering position of the initial color and the rendering position of the final color in the bullet screen background area.
6. The multi-color bullet screen rendering method according to claim 5, wherein said step S3 specifically comprises:
s31, acquiring multiple color labels arranged in sequence from the array according to the array parameters transmitted by the bullet screen server, and calling corresponding colors from the color library according to the color labels;
and S32, performing gradient rendering on the areas needing to be rendered on the bullet screen background area according to each color and the proportion of each color, wherein the rendered areas are determined according to the rendering position of the initial color and the rendering position of the final color on the bullet screen background area.
7. A multi-color bullet screen rendering apparatus, comprising:
the receiving module is used for receiving the bullet screen content, the color parameters of the bullet screen content and the bullet screen background parameters transmitted by the bullet screen server, wherein the bullet screen background parameters at least comprise the color parameters of the bullet screen background;
the first rendering module is used for rendering the bullet screen content according to the color parameters of the bullet screen content;
the drawing module is used for drawing a bullet screen background area;
the second rendering module is used for rendering the bullet screen background area according to the color parameters of the bullet screen background;
and the display module is used for displaying the rendered barrage content in the rendered barrage background area.
8. A test equipment of a colorful bullet screen rendering device is characterized by comprising:
at least one processor, at least one memory, a communication interface, and a bus; wherein,
the processor, the memory and the communication interface complete mutual communication through the bus;
the communication interface is used for information transmission between the testing equipment and the communication equipment of the colorful bullet screen rendering device;
the memory stores program instructions executable by the processor, the processor invoking the program instructions to perform the method of any of claims 1-6.
9. A computer program product, characterized in that the computer program product comprises a computer program stored on a non-transitory computer-readable storage medium, the computer program comprising program instructions that, when executed by a computer, cause the computer to perform the method according to any one of claims 1-6.
10. A non-transitory computer-readable storage medium storing computer instructions that cause a computer to perform the method of any one of claims 1-6.
CN201710318999.8A 2017-05-08 2017-05-08 A kind of colorful barrage rendering intent and device Pending CN107404668A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710318999.8A CN107404668A (en) 2017-05-08 2017-05-08 A kind of colorful barrage rendering intent and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710318999.8A CN107404668A (en) 2017-05-08 2017-05-08 A kind of colorful barrage rendering intent and device

Publications (1)

Publication Number Publication Date
CN107404668A true CN107404668A (en) 2017-11-28

Family

ID=60404668

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710318999.8A Pending CN107404668A (en) 2017-05-08 2017-05-08 A kind of colorful barrage rendering intent and device

Country Status (1)

Country Link
CN (1) CN107404668A (en)

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device
CN110011894A (en) * 2018-01-04 2019-07-12 武汉斗鱼网络科技有限公司 A kind of barrage Message Simulation method and device
CN111818279A (en) * 2019-04-12 2020-10-23 阿里巴巴集团控股有限公司 Subtitle generating method, display method and interaction method
CN113395567A (en) * 2021-06-11 2021-09-14 腾讯科技(深圳)有限公司 Subtitle display method and related device
CN113766336A (en) * 2020-06-04 2021-12-07 腾讯科技(深圳)有限公司 Video playing control method and device

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105068795A (en) * 2015-07-20 2015-11-18 上海幻电信息科技有限公司 Bullet screen effect-based development method and device
CN105162876A (en) * 2015-09-23 2015-12-16 百度在线网络技术(北京)有限公司 Method, device and system for presenting geographical position information
US20160247535A1 (en) * 2011-09-26 2016-08-25 University Of North Carolina At Charlotte Multi-modal collaborative web-based video annotation system
CN106101756A (en) * 2016-06-07 2016-11-09 腾讯科技(北京)有限公司 Barrage display packing, barrage adding method, Apparatus and system
CN106303725A (en) * 2016-08-25 2017-01-04 暴风集团股份有限公司 HOOK is utilized to realize the method and device of barrage in renderer
CN106550277A (en) * 2015-09-23 2017-03-29 天津三星电子有限公司 A kind of method and display device of loading barrage

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20160247535A1 (en) * 2011-09-26 2016-08-25 University Of North Carolina At Charlotte Multi-modal collaborative web-based video annotation system
CN105068795A (en) * 2015-07-20 2015-11-18 上海幻电信息科技有限公司 Bullet screen effect-based development method and device
CN105162876A (en) * 2015-09-23 2015-12-16 百度在线网络技术(北京)有限公司 Method, device and system for presenting geographical position information
CN106550277A (en) * 2015-09-23 2017-03-29 天津三星电子有限公司 A kind of method and display device of loading barrage
CN106101756A (en) * 2016-06-07 2016-11-09 腾讯科技(北京)有限公司 Barrage display packing, barrage adding method, Apparatus and system
CN106303725A (en) * 2016-08-25 2017-01-04 暴风集团股份有限公司 HOOK is utilized to realize the method and device of barrage in renderer

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
张人上: "《中文Premiere Pro视频编辑剪辑设计与制作》", 30 September 2015 *

Cited By (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN110011894A (en) * 2018-01-04 2019-07-12 武汉斗鱼网络科技有限公司 A kind of barrage Message Simulation method and device
CN110011894B (en) * 2018-01-04 2021-09-07 武汉斗鱼网络科技有限公司 Barrage message simulation method and device
CN108322807A (en) * 2018-02-24 2018-07-24 武汉斗鱼网络科技有限公司 A kind of barrage methods of exhibiting and device
CN111818279A (en) * 2019-04-12 2020-10-23 阿里巴巴集团控股有限公司 Subtitle generating method, display method and interaction method
CN113766336A (en) * 2020-06-04 2021-12-07 腾讯科技(深圳)有限公司 Video playing control method and device
CN113766336B (en) * 2020-06-04 2023-09-22 腾讯科技(深圳)有限公司 Video playing control method and device, computer equipment and storage medium
CN113395567A (en) * 2021-06-11 2021-09-14 腾讯科技(深圳)有限公司 Subtitle display method and related device
CN113395567B (en) * 2021-06-11 2022-07-05 腾讯科技(深圳)有限公司 Subtitle display method and related device

Similar Documents

Publication Publication Date Title
CN107404668A (en) A kind of colorful barrage rendering intent and device
CN104765614B (en) Color filling processing method and device
CN105233498A (en) Game character staining method and device, user terminal and game system
CN111080780B (en) Edge processing method and device for virtual character model
CN109710348A (en) The method and device of page jump, computer equipment, storage medium
CN105261055B (en) A kind of game role costume changing method, device and terminal
CN104469179A (en) Method for combining dynamic pictures into mobile phone video
US11462002B2 (en) Wallpaper management method, apparatus, mobile terminal, and storage medium
CN105955754B (en) A kind of user interface character displaying method and device
US8599212B2 (en) Character display method and apparatus
CN108765520B (en) Text information rendering method and device, storage medium and electronic device
CN109408177A (en) Method and device for configuring color of characters in picture and electronic equipment
JP7095852B2 (en) Methods and systems to improve GPU performance in data-intensive visualization operations
CN105138355A (en) Method and device for inserting elements in interface of application program and electronic equipment
CN112069341A (en) Background picture generation and search result display method, device, equipment and medium
CN104978198A (en) Method and apparatus for configuring keyboard skin
CN104461614A (en) Method for processing theme resource and electronic device
CN102934064B (en) Theme display method and device thereof
CN109785408A (en) Map filling method and device and electronic equipment
US20200410955A1 (en) Automatically adapt user interface color scheme for digital images and video
KR20180042359A (en) Method and apparatus for distinguishing objects
CN106648305A (en) Status bar processing method and device
CN111562869B (en) Screenshot method and device, storage medium and electronic device
CN116385262A (en) Method and device for generating jigsaw, electronic equipment and storage medium
CN105812960B (en) Method, display terminal and system for carrying hidden information in display picture

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

RJ01 Rejection of invention patent application after publication