CN108966036A - Barrage display methods, electronic equipment and computer storage medium - Google Patents
Barrage display methods, electronic equipment and computer storage medium Download PDFInfo
- Publication number
- CN108966036A CN108966036A CN201810666643.8A CN201810666643A CN108966036A CN 108966036 A CN108966036 A CN 108966036A CN 201810666643 A CN201810666643 A CN 201810666643A CN 108966036 A CN108966036 A CN 108966036A
- Authority
- CN
- China
- Prior art keywords
- piecemeal
- barrage
- picture
- deblocking
- information
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/488—Data services, e.g. news ticker
- H04N21/4884—Data services, e.g. news ticker for displaying subtitles
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N21/00—Selective content distribution, e.g. interactive television or video on demand [VOD]
- H04N21/40—Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
- H04N21/47—End-user applications
- H04N21/475—End-user interface for inputting end-user data, e.g. personal identification number [PIN], preference data
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Human Computer Interaction (AREA)
- Information Retrieval, Db Structures And Fs Structures Therefor (AREA)
Abstract
The invention discloses barrage display methods, electronic equipment and computer storage mediums, this method comprises: determining each deblocking for including in the barrage data received, the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text sections;For each picture piecemeal, determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal;Information is drawn according to the piecemeal of each picture piecemeal, piecemeal content corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas, barrage is shown according to each piecemeal content drawn on barrage painting canvas.The method provided according to the present invention can support the barrage of graphic form, to realize the effect that both pictures and texts are excellent, improve the visual effect and entertainment of barrage.
Description
Technical field
The present invention relates to computer fields, and in particular to a kind of barrage display methods, electronic equipment and computer storage are situated between
Matter.
Background technique
In order to promote the interactivity and entertainment of electronic product, barrage technology has obtained more and more extensive in various product
Application.Either in video class product, or in e-book class product, it can be realized by barrage between user
Exchange and amusement.In existing barrage display mode, terminal user can input all kinds of text informations according to the perception of itself,
Server generates barrage data according to the text information received, and barrage data-pushing is shown to each terminal device
Show.
But in the implementation of the present invention, inventor has found: in existing way, since system display layer only props up
Text importing mode is held, without supporting picture display mode, therefore, user can only input the barrage information of written form, and nothing
The barrage information of method input graphic form.Believe even if user has input picture by the personalized input method comprising picture pattern
Breath, server also can not be identified and be shown to such pictorial information.It can be seen that existing barrage Show Styles is single,
It cannot achieve the effect that both pictures and texts are excellent.
Summary of the invention
In view of the above problems, it proposes on the present invention overcomes the above problem or at least be partially solved in order to provide one kind
State barrage display methods, electronic equipment and the computer storage medium of problem.
According to an aspect of the invention, there is provided a kind of barrage display methods, comprising:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as figure
The deblocking of text type is determined as text sections by piece piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on barrage painting canvas.
According to another aspect of the present invention, provide a kind of electronic equipment, comprising: processor, memory, communication interface and
Communication bus, processor, memory and communication interface complete mutual communication by communication bus;Memory is for storing extremely
A few executable instruction, executable instruction make processor execute following operation:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as figure
The deblocking of text type is determined as text sections by piece piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on barrage painting canvas.
According to another aspect of the invention, a kind of computer storage medium is provided, at least one is stored in storage medium
Executable instruction, executable instruction make processor execute following operation: determining each number for including in the barrage data received
According to piecemeal, the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text sections;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on barrage painting canvas.
In barrage display methods provided by the invention, electronic equipment and computer storage medium, it can receive and identify
The picture piecemeal and text sections for including in barrage data, and picture piecemeal is determined according to the piecemeal attribute information of picture piecemeal
Piecemeal draw information, to draw each picture piecemeal and text sections on barrage painting canvas.It can be seen which energy
The barrage of graphic form is enough supported to improve the visual effect and entertainment of barrage to realize the effect that both pictures and texts are excellent.
The above description is only an overview of the technical scheme of the present invention, in order to better understand the technical means of the present invention,
And it can be implemented in accordance with the contents of the specification, and in order to allow above and other objects of the present invention, feature and advantage can
It is clearer and more comprehensible, the followings are specific embodiments of the present invention.
Detailed description of the invention
By reading the following detailed description of the preferred embodiment, various other advantages and benefits are common for this field
Technical staff will become clear.The drawings are only for the purpose of illustrating a preferred embodiment, and is not considered as to the present invention
Limitation.And throughout the drawings, the same reference numbers will be used to refer to the same parts.In the accompanying drawings:
Fig. 1 shows the flow chart of the barrage display methods of the offer of the embodiment of the present invention one;
Fig. 2 shows the flow charts of barrage display methods provided by Embodiment 2 of the present invention;
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment.
Specific embodiment
Exemplary embodiments of the present disclosure are described in more detail below with reference to accompanying drawings.Although showing the disclosure in attached drawing
Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here
It is limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure
It is fully disclosed to those skilled in the art.
Embodiment one
Fig. 1 shows the flow chart of the barrage display methods of the offer of the embodiment of the present invention one.As shown in Figure 1, this method packet
Include following steps:
Step S110: determining each deblocking for including in the barrage data received, by the data of picture type point
Block is determined as picture piecemeal, and the deblocking of text type is determined as text sections.
Specifically, each deblocking wherein included can be obtained by way of parsing to barrage data.Wherein,
One deblocking corresponds to a process object parsed, is specifically as follows text, vocabulary, picture, expression, label etc.
All kinds of process objects.Next, determining corresponding piecemeal type for each deblocking respectively.Piecemeal type may include:
Picture type, text type, expression type etc. can specifically be determined accordingly by parsing the piecemeal mark of obtained deblocking
Type.
Step S120: being directed to each picture piecemeal, and point of picture piecemeal is determined according to the piecemeal attribute information of picture piecemeal
Block draws information.
Wherein, the piecemeal attribute information of picture piecemeal can directly determine that the piecemeal attribute information is used according to parsing result
Information is drawn in the piecemeal for determining picture piecemeal.Specifically, can will divide according to preset transformation rule or transfer function
Block's attribute information is converted to corresponding piecemeal and draws information.Wherein, it includes all kinds of for drawing the phase of picture that piecemeal, which draws information,
Close information, it may for example comprise the various informations such as the size category information of picture, content class information, arrangement azimuth information.
Step S130: information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal is drawn on barrage painting canvas
And piecemeal content corresponding to text sections, barrage is shown according to each piecemeal content drawn on the barrage painting canvas.
In this step, piecemeal content corresponding to each picture piecemeal and text sections is plotted in same barrage
On painting canvas.Wherein, when drawing picture piecemeal, information need to be drawn in conjunction with the piecemeal of picture piecemeal and determines specifically drawing for picture piecemeal
Mode processed.When it is implemented, can be drawn by all kinds of plotting modes, but which kind of mode no matter is used, in barrage data
Piecemeal content corresponding to each deblocking for including is plotted on same barrage painting canvas, it may be assumed that same on the barrage painting canvas
When draw have piecemeal content corresponding to picture piecemeal and text sections, to realize the effect of picture and text mixing.
Wherein, above-mentioned each step can both be executed by server, can also be by client executing, and the present invention is to each
The executing subject of step is without limitation.
It can be seen that in barrage display methods provided by the invention, it can receive and identify in barrage data and include
Picture piecemeal and text sections, and determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal,
To draw each picture piecemeal and text sections on barrage painting canvas.It can be seen which can support graphic form
Barrage improve the visual effect and entertainment of barrage to realize the effect that both pictures and texts are excellent.
Fig. 2 shows the flow charts of barrage display methods provided by Embodiment 2 of the present invention.As shown in Fig. 2, this method packet
Include following steps:
Step S200: the barrage information that user inputs is sent to server.
Specifically, in the present embodiment, by taking e-book is applied as an example, the barrage display mode in e-book is introduced.Accordingly
Ground, this step can be implemented with e-book using any terminal equipment in corresponding terminal device by each.For example, when a use
When family passes through e-book application reading electronic book, it is defeated the user can be sent to server by the corresponding terminal device A of the user
The barrage information entered.
Correspondingly, it after server receives the barrage information from terminal device A, is generated according to the barrage information corresponding
Barrage data, so that barrage data-pushing is given the corresponding each terminal device of the e-book.When it is implemented, can pass through
Pretreatment mode obtains barrage data corresponding with barrage information.Pretreatment mode includes but is not limited to: deleting processing, audit
Processing, duplicate removal processing and coded treatment etc..It, can also be in addition, the operation of coded treatment can both be realized by terminal device A
Realized by server, the present invention to concrete implementation details without limitation.It is operated, user can be inputted by coded treatment
Picture and text in barrage information are converted into corresponding code styles, such as character string etc. respectively.Wherein, corresponding to picture
Character string may be the exclamation mark of preset quantity or the feature string of other forms.In short, operated by coded treatment, it can
Picture and text are converted into various forms of character strings respectively, to be distinguished in subsequent treatment process.
Step S210: include in the determining barrage data generated by server according to above-mentioned barrage information received is each
A deblocking.
This step can be implemented with e-book using corresponding terminal device by each, including terminal device mentioned above
A and other the terminal device of same e-book is shown with terminal device A.
Specifically, barrage data can be parsed according to preset barrage analysis protocol, is obtained according to parsing result
The each deblocking for including in barrage data.Wherein, barrage analysis protocol is operated specific by coded treatment mentioned above
Rule determines, the present invention to the particular content of agreement without limitation.By being parsed to barrage data, can be tied according to parsing
Fruit obtains each process object, and each process object is used as a deblocking.
Step S220: determining the piecemeal type of each deblocking, and the deblocking of picture type is determined as picture point
The deblocking of text type is determined as text sections by block.
Since the piecemeal type of each deblocking may be picture type, text type or other various types, and it is every
The drafting mode of the deblocking of seed type is different, therefore, in this step, it is also necessary to further determine that each deblocking
Piecemeal type, in order to the processing of subsequent step.It specifically, can be according to barrage analysis protocol and/or point of each deblocking
Block identification determines the piecemeal type of each deblocking.When the piecemeal class for determining each deblocking according to barrage analysis protocol
When type, picture directly can be determined according to the feature string for including in character string to be resolved before obtaining parsing result
The deblocking of type or other kinds of deblocking;It is identified when according to the piecemeal of each deblocking, determines each data
It, can be after obtaining parsing result when the piecemeal type of piecemeal, the letter such as piecemeal mark of deblocking obtained according to parsing
It ceases and determines piecemeal type.In short, the present invention does not limit piecemeal type timing machine really, can both be determined before parsing, it can also
To determine after parsing.
Step S230: being directed to each picture piecemeal, and point of picture piecemeal is determined according to the piecemeal attribute information of picture piecemeal
Block draws information.
Wherein, in the present embodiment, the piecemeal attribute information of picture piecemeal is determined according to the parsing result of barrage data.Tool
Body, the acquisition modes of piecemeal attribute information can be determined according to coding and analysis mode.For example, in a kind of coding mode,
Directly pictorial information is encoded, so that the image content after coding is integrally incorporated in coding result, it correspondingly, can be direct
Complete piecemeal attribute information is obtained according to parsing result.In another coding mode, pictorial information is stored separately on pre-
If position, when coding, is encoded only for the mark of predeterminated position and the mark of pictorial information, correspondingly, needs further root
Pictorial information corresponding to predeterminated position is obtained according to parsing result, and then determines piecemeal attribute letter corresponding with the pictorial information
Breath.In short, the present invention to the specific method of determination of piecemeal attribute information without limitation.
It, can be in addition, piecemeal attribute information may include and draw size, draw angle, draw the relevant information in orientation
Include information relevant to image content (such as complete pixel information comprising picture etc.).The present invention is to piecemeal attribute information
Also without limitation, all information relevant to picture drafting can be used as piecemeal attribute information to specific intension.Correspondingly, piecemeal is drawn
Information processed may include the much informations such as the size category information determined according to piecemeal attribute information and/or content class information.
Specifically, when the piecemeal attribute information according to picture piecemeal determines the piecemeal drafting information of picture piecemeal, will scheme
The piecemeal attribute information of piece piecemeal is supplied to default transfer function, presets transfer function by this and determines that the piecemeal of picture piecemeal is drawn
The size category information for including in information processed.Wherein, default transfer function include: according to preset barrage pattern template-setup from
Defining interface function, and/or preset application program interface function.Wherein, self defined interface function can be according to developer's
Actual demand is flexibly write, for example, can be according to for showing that the barrage pattern template of barrage is defined: according to barrage pattern
The size of barrage font, arrangement mode etc. specified in template determine that piecemeal draws the size category information for including in information, so that
The picture finally drawn is without departing from barrage display area.All kinds of transformation rules can be flexibly write by self defined interface function,
Scalability is stronger.In addition, preset application program interface function can for pre-set in system api function (such as
The functions such as measure, layout of StaticLayout realize the assignment that element property is drawn to bottom), which can
Determine that corresponding piecemeal draws information according to the piecemeal attribute information of input.
Step S240: information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal is drawn on barrage painting canvas
And piecemeal content corresponding to text sections.
Picture piecemeal and text sections can be plotted on barrage painting canvas simultaneously by this step.Specifically, it is drawing
When drawing piece piecemeal, information need to be drawn according to the piecemeal of each picture piecemeal and be drawn.For example, according to each picture piecemeal
Piecemeal draws information and determines the drafting size of each picture piecemeal and/or draw content, according to the drafting ruler of each picture piecemeal
Very little and/or drafting content draws piecemeal content corresponding to each picture piecemeal on barrage painting canvas.
When drawing picture piecemeal, drawn in combination with the relevant information of each text sections.Specifically, it can call
Preset picture draws interface function (such as canvas.drawBitmap function) and draws each picture piecemeal, and calls pre-
If text draw interface function (such as canvas.drawText function) and draw each text sections.
Step S250: barrage is shown according to each piecemeal content drawn on barrage painting canvas.
By this step, each piecemeal content drawn on barrage painting canvas can be shown on the screen of terminal device,
It is watched during for readers ' reading e-book.Specifically, barrage can be displayed on the screen by translucent mode, or
The predeterminable area (such as top white space) for being shown in screen can also be fixed.When being particularly shown, the forms such as floating layer can be passed through
Show barrage.
It can be seen that in the present embodiment, it is possible to parse the picture piecemeal for including in barrage data, and obtain each picture
The piecemeal of piecemeal draws information, and then, picture piecemeal is directly plotted in barrage painting canvas by the drafting interface of calling system layer.?
That is no matter include how many a deblockings in barrage data, also no matter the concrete type of these deblockings, in the present invention
Mode total data piecemeal can be plotted in same barrage painting canvas.
Specifically, inventor has found in the implementation of the present invention: each data for including in drawing a frame barrage
When piecemeal, it can call directly preset for realizing the drawing tool realization for drawing function in system.The drawing tool can be with
To draw control or drawing the various types such as interface function.The drawing process of the drawing tool is as follows: due in each frame barrage
Multiple deblockings are usually contained, each deblocking corresponds respectively to a text or picture in barrage, therefore, Mei Dangxu
When drawing a deblocking in a frame barrage, corresponding painting canvas (being also View) is created for the deblocking, is then existed
The piecemeal content of the deblocking is drawn on painting canvas corresponding to the deblocking.That is, being carried out using the drawing tool
When drafting, the N number of deblocking for including in a respectively frame barrage is needed to create N number of painting canvas, and draw on each painting canvas respectively
A corresponding deblocking is made, N is the natural number more than or equal to 1.Then, it is closed by the stacking being arranged between N number of painting canvas
System makes the content in N number of painting canvas while presenting within display screen.But inventors have found that in this application scenarios of e-book
In, since e-book itself needs the electronic book image content by being plotted on e-book painting canvas to be presented, at this point, if
Being superimposed multiple barrage painting canvas on e-book painting canvas simultaneously again, then to will lead to barrage picture card dynamic obvious, can not smooth playing, thus
Seriously affect the visual effect of user.Especially in caricature electron-like book, e-book itself has included in a large amount of picture
Hold, if being superimposed multiple barrage painting canvas again, extreme influence will be caused to system performance, and cause barrage can not normal play.
To solve the above-mentioned problems, in the present invention, it does not use above-mentioned drawing tool to be drawn, but directly passes through
System layer is drawn into barrage painting canvas.That is: each deblocking in a frame barrage is all plotted in a barrage painting canvas.
But due to not using above-mentioned drawing tool, the piecemeal of each picture piecemeal can not be also obtained by the drawing tool
Information is drawn, so, in the present invention, need to determine that piecemeal draws information by default transfer function before anything is drawn, so as to
Information is drawn according to the piecemeal to be drawn.Due to only needing a barrage painting canvas, system energy consumption is significantly reduced, is mentioned
The fluency of barrage broadcasting is risen.
In addition, due in barrage data text and picture may be it is mixed in together, when in order to determine picture and text mixing
Type-setting mode, can also further execute following operation: according to the piecemeal of each picture piecemeal draw information, barrage draw
When drawing piecemeal content corresponding to each picture piecemeal and text sections on cloth, each figure is determined according to default arranging rule
The arrangement mode of piece piecemeal and text sections on barrage painting canvas;According to the arrangement mode, drawn on barrage painting canvas each
Piecemeal content corresponding to picture piecemeal and text sections.Wherein, the default arranging rule include in following rule at least
It is a kind of:
(1) rule arranged according to each deblocking putting in order in barrage data.In the rule, need
Each deblocking putting in order in barrage data is recorded, and puts in order according to this and successively draws each deblocking
It makes in barrage painting canvas, so that the piecemeal in barrage data puts in order and remains unchanged.
(2) rule arranged according to preset barrage pattern template;Wherein, barrage pattern template is following for defining
At least one of: the line number of barrage, columns, every row or each column size.For example, six can be defined in barrage pattern template
A barrage track, each barrage track is with the arrangement of laterally or longitudinally direction, for scrolling barrage.Also, each barrage rail
It may include three segmented areas in road, for showing the piecemeal content of three deblockings respectively.In this way, each
Frame barrage data include 18 deblockings, are drawn according to traditional drawing tool, need to draw 18 painting canvas, seriously
System performance is reduced, and then only needs a painting canvas that can show 18 piecemeals by the way of in the present invention.
In addition, barrage data are often presented with rolling the barrage data-stream form played, therefore, in bullet in actual conditions
After the step of drawing piecemeal content corresponding to each picture piecemeal and text sections on curtain painting canvas, can also further it press
Rule is updated according to preset barrage, the piecemeal content drawn on barrage painting canvas is updated;Correspondingly, it is drawn according to barrage
It further comprise according to updated barrage painting canvas, display after each piecemeal content drawn on cloth shows the step of barrage
Updated barrage.Wherein, it includes at least one of the following that preset barrage, which updates rule:
(1) rule being updated according to the updated barrage data received.It is constantly useful due in actual conditions
Family inputs new barrage information, therefore, server meeting continuous updating barrage data, and updated barrage data are sent to respectively
A terminal device, correspondingly, each terminal device need to be updated according to the updated barrage data received.
(2) rule being updated according to preset barrage moving direction and/or rate travel.Since barrage is usually to roll
The dynamic dynamic dataflow played, therefore, it is necessary to pre-defined barrage moving direction and/or rate travels, and according to the movement side
To and/or rate travel calculate next frame barrage data in each deblocking location information, so as to according to next frame bullet
The updating location information barrage painting canvas of each deblocking corresponding to curtain data.In addition, in the specific implementation, can also pass through
The various ways such as collision detection algorithm calculate the location information of each deblocking in updated barrage painting canvas, each to prevent
A deblocking is overlapped.
(3) rule being updated every preset interval.The preset interval can be determined by frame per second, so that every frame barrage be made to draw
The content in face is different, and then shows the barrage video flowing of dynamic play.
In summary, in barrage display methods provided by the invention, it can receive and identify in barrage data and include
Picture piecemeal and text sections, and determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal,
To draw each picture piecemeal and text sections on barrage painting canvas.Which can support the barrage of graphic form, from
And realize the effect that both pictures and texts are excellent, improve the visual effect and entertainment of barrage.Wherein, picture piecemeal both can be static map
Piece piecemeal, or dynamic picture piecemeal, which is not limited by the present invention.Also, by the way that each deblocking is plotted in
In one barrage painting canvas, memory can be saved, promotes display effect.Although the present embodiment is carried out by taking e-book application scenarios as an example
Illustrate, still, skilled artisans appreciate that: the method and principle are suitable for any GUI system, existing
Under GPU Floor layer Technology is supported, as long as supporting to draw picture and text, this mode can be used to realize such " barrage " effect, so as to
Enhance user's interactive recreation.
Embodiment three
The embodiment of the present application three provides a kind of nonvolatile computer storage media, the computer storage medium storage
There is an at least executable instruction, which can be performed the barrage display side in above-mentioned any means embodiment
Method.
Executable instruction specifically can be used for so that processor executes following operation:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as figure
The deblocking of text type is determined as text sections by piece piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on the barrage painting canvas.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
The barrage data are parsed according to preset barrage analysis protocol, the barrage is obtained according to parsing result
The each deblocking for including in data;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text
Before the step of this piecemeal, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking,
Determine the piecemeal type of each deblocking.
In a kind of optional way, wherein the piecemeal attribute information of the picture piecemeal is according to the solutions of the barrage data
It analyses result to determine, and it includes: the size category information and/or interior determined according to the piecemeal attribute information that the piecemeal, which draws information,
Hold category information;
Then the executable instruction further makes the processor execute following operation:
Information is drawn according to the piecemeal of each picture piecemeal to determine in the drafting size and/or drafting of each picture piecemeal
Hold, each picture piecemeal institute is drawn on barrage painting canvas according to the drafting size of each picture piecemeal and/or drafting content
Corresponding piecemeal content.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, it is true by the default transfer function
The piecemeal for determining picture piecemeal draws the size category information for including in information.
In a kind of optional way, wherein the default transfer function includes: according to preset barrage pattern template-setup
Self defined interface function, and/or preset application program interface function.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface
Function draws each text sections.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
The arrangement side of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule
Formula;
According to the arrangement mode, piecemeal corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas
Content.
In a kind of optional way, wherein the default arranging rule includes at least one of following rule:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template for define with
It is at least one of lower: the line number of barrage, columns, every row or each column size.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
Rule is updated according to preset barrage, the piecemeal content drawn on the barrage painting canvas is updated;
Then after described the step of showing barrage according to each piecemeal content drawn on the barrage painting canvas, further wrap
It includes: according to updated barrage painting canvas, showing updated barrage.
In a kind of optional way, wherein it includes at least one of the following that the preset barrage, which updates rule:
The rule being updated according to the updated barrage data received;
The rule being updated according to preset barrage moving direction and/or rate travel;And
Every the rule that preset interval is updated.
In a kind of optional mode, wherein the executable instruction further makes the processor execute following operation:
The barrage information that user inputs is sent to server;
Then the executable instruction also makes the processor execute following operation: determine receive by server according to institute
State each deblocking for including in the barrage data of barrage information generation.
In a kind of optional way, wherein the method is applied to e-book, and the e-book includes: caricature class electricity
The philosophical works;Also, the picture piecemeal includes: static images piecemeal and/or dynamic picture piecemeal.
Example IV
Fig. 3 shows the structural schematic diagram of according to embodiments of the present invention four a kind of electronic equipment, present invention specific implementation
Example does not limit the specific implementation of electronic equipment.For example, the electronic equipment can be server.
As shown in figure 3, the electronic equipment may include: processor (processor) 302, communication interface
(Communications Interface) 304, memory (memory) 306 and communication bus 308.
Wherein: processor 302, communication interface 304 and memory 306 complete mutual lead to by communication bus 308
Letter.Communication interface 304, for being communicated with the network element of other equipment such as client or other servers etc..Processor 302 is used
In executing program 310, the correlation step in the audio synthetic method embodiment of above-mentioned talking e-book can be specifically executed.
Specifically, program 310 may include program code, which includes computer operation instruction.
Processor 302 may be central processor CPU or specific integrated circuit ASIC (Application
Specific Integrated Circuit), or be arranged to implement the integrated electricity of one or more of the embodiment of the present invention
Road.The one or more processors that electronic equipment includes can be same type of processor, such as one or more CPU;It can also
To be different types of processor, such as one or more CPU and one or more ASIC.
Memory 306, for storing program 310.Memory 306 may include high speed RAM memory, it is also possible to further include
Nonvolatile memory (non-volatile memory), for example, at least a magnetic disk storage.
Program 310 specifically can be used for so that processor 302 executes following operation:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as figure
The deblocking of text type is determined as text sections by piece piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on the barrage painting canvas.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation: according to preset
Barrage analysis protocol parses the barrage data, and each number for including in the barrage data is obtained according to parsing result
According to piecemeal;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text
Before the step of this piecemeal, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking,
Determine the piecemeal type of each deblocking.
In a kind of optional way, wherein the piecemeal attribute information of the picture piecemeal is according to the solutions of the barrage data
It analyses result to determine, and it includes: the size category information and/or interior determined according to the piecemeal attribute information that the piecemeal, which draws information,
Hold category information;
Then program 310 is further such that processor 302 executes following operation:
Information is drawn according to the piecemeal of each picture piecemeal to determine in the drafting size and/or drafting of each picture piecemeal
Hold, each picture piecemeal institute is drawn on barrage painting canvas according to the drafting size of each picture piecemeal and/or drafting content
Corresponding piecemeal content.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, it is true by the default transfer function
The piecemeal for determining picture piecemeal draws the size category information for including in information.
In a kind of optional way, wherein the default transfer function includes: according to preset barrage pattern template-setup
Self defined interface function, and/or preset application program interface function.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface
Function draws each text sections.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation:
The arrangement side of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule
Formula;
According to the arrangement mode, piecemeal corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas
Content.
In a kind of optional way, wherein the default arranging rule includes at least one of following rule:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template for define with
It is at least one of lower: the line number of barrage, columns, every row or each column size.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation:
Rule is updated according to preset barrage, the piecemeal content drawn on the barrage painting canvas is updated;
Then after described the step of showing barrage according to each piecemeal content drawn on the barrage painting canvas, further wrap
It includes: according to updated barrage painting canvas, showing updated barrage.
In a kind of optional way, wherein it includes at least one of the following that the preset barrage, which updates rule:
The rule being updated according to the updated barrage data received;
The rule being updated according to preset barrage moving direction and/or rate travel;And
Every the rule that preset interval is updated.
In a kind of optional mode, program 310 is further such that processor 302 executes following operation:
The barrage information that user inputs is sent to server;
Then the executable instruction also makes the processor execute following operation: determine receive by server according to institute
State each deblocking for including in the barrage data of barrage information generation.
In a kind of optional mode, wherein the method is applied to e-book, and the e-book includes: caricature class
E-book;Also, the picture piecemeal includes: static images piecemeal and/or dynamic picture piecemeal.
Algorithm and display are not inherently related to any particular computer, virtual system, or other device provided herein.
Various general-purpose systems can also be used together with teachings based herein.As described above, it constructs required by this kind of system
Structure be obvious.In addition, the present invention is also not directed to any particular programming language.It should be understood that can use various
Programming language realizes summary of the invention described herein, and the description done above to language-specific is to disclose this hair
Bright preferred forms.
In the instructions provided here, numerous specific details are set forth.It is to be appreciated, however, that implementation of the invention
Example can be practiced without these specific details.In some instances, well known method, structure is not been shown in detail
And technology, so as not to obscure the understanding of this specification.
Similarly, it should be understood that in order to simplify the disclosure and help to understand one or more of the various inventive aspects,
Above in the description of exemplary embodiment of the present invention, each feature of the invention is grouped together into single implementation sometimes
In example, figure or descriptions thereof.However, the disclosed method should not be interpreted as reflecting the following intention: i.e. required to protect
Shield the present invention claims features more more than feature expressly recited in each claim.More precisely, as following
Claims reflect as, inventive aspect is all features less than single embodiment disclosed above.Therefore,
Thus the claims for following specific embodiment are expressly incorporated in the specific embodiment, wherein each claim itself
All as a separate embodiment of the present invention.
Those skilled in the art will understand that can be carried out adaptively to the module in the equipment in embodiment
Change and they are arranged in one or more devices different from this embodiment.It can be the module or list in embodiment
Member or component are combined into a module or unit or component, and furthermore they can be divided into multiple submodule or subelement or
Sub-component.Other than such feature and/or at least some of process or unit exclude each other, it can use any
Combination is to all features disclosed in this specification (including adjoint claim, abstract and attached drawing) and so disclosed
All process or units of what method or apparatus are combined.Unless expressly stated otherwise, this specification is (including adjoint power
Benefit require, abstract and attached drawing) disclosed in each feature can carry out generation with an alternative feature that provides the same, equivalent, or similar purpose
It replaces.
In addition, it will be appreciated by those of skill in the art that although some embodiments described herein include other embodiments
In included certain features rather than other feature, but the combination of the feature of different embodiments mean it is of the invention
Within the scope of and form different embodiments.For example, in the following claims, embodiment claimed is appointed
Meaning one of can in any combination mode come using.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and ability
Field technique personnel can be designed alternative embodiment without departing from the scope of the appended claims.In the claims,
Any reference symbol between parentheses should not be configured to limitations on claims.Word "comprising" does not exclude the presence of not
Element or step listed in the claims.Word "a" or "an" located in front of the element does not exclude the presence of multiple such
Element.The present invention can be by means of including the hardware of several different elements and being come by means of properly programmed computer real
It is existing.In the unit claims listing several devices, several in these devices can be through the same hardware branch
To embody.The use of word first, second, and third does not indicate any sequence.These words can be explained and be run after fame
Claim.
The invention also discloses a kind of barrage display methods of A1., comprising:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as figure
The deblocking of text type is determined as text sections by piece piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on the barrage painting canvas.
A2. method according to a1, wherein each deblocking for including in the barrage data that the determination receives
The step of specifically include:
The barrage data are parsed according to preset barrage analysis protocol, the barrage is obtained according to parsing result
The each deblocking for including in data;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text
Before the step of this piecemeal, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking,
Determine the piecemeal type of each deblocking.
A3. the method according to A1 or 2, wherein the piecemeal attribute information of the picture piecemeal is according to the barrage number
According to parsing result determine, and the piecemeal draw information include: according to the piecemeal attribute information determine size category information
And/or content class information;
Then it is described according to the piecemeal of each picture piecemeal draw information, drawn on barrage painting canvas each picture piecemeal and
The step of piecemeal content corresponding to text sections, specifically includes:
Information is drawn according to the piecemeal of each picture piecemeal to determine in the drafting size and/or drafting of each picture piecemeal
Hold, each picture piecemeal institute is drawn on barrage painting canvas according to the drafting size of each picture piecemeal and/or drafting content
Corresponding piecemeal content.
A4. according to any method of A1-3, wherein described to determine picture according to the piecemeal attribute information of picture piecemeal
The step of piecemeal drafting information of piecemeal, specifically includes:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, it is true by the default transfer function
The piecemeal for determining picture piecemeal draws the size category information for including in information.
A5. method according to a4, wherein the default transfer function includes: according to preset barrage pattern template
The self defined interface function of setting, and/or preset application program interface function.
A6. according to any method of A1-5, wherein described to draw each picture piecemeal and text on barrage painting canvas
The step of piecemeal content corresponding to this piecemeal, specifically includes:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface
Function draws each text sections.
A7. according to any method of A1-6, wherein it is described that information is drawn according to the piecemeal of each picture piecemeal,
The step of piecemeal content corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas specifically includes:
The arrangement side of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule
Formula;
According to the arrangement mode, piecemeal corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas
Content.
A8. the method according to A7, wherein the default arranging rule includes at least one of following rule:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template for define with
It is at least one of lower: the line number of barrage, columns, every row or each column size.
A9. according to any method of A1-8, wherein described to draw each picture piecemeal and text on barrage painting canvas
Corresponding to this piecemeal the step of piecemeal content after, further comprise: according to preset barrage update rule, to the barrage
The piecemeal content drawn on painting canvas is updated;
Then after described the step of showing barrage according to each piecemeal content drawn on the barrage painting canvas, further wrap
It includes: according to updated barrage painting canvas, showing updated barrage.
A10. the method according to A9, wherein it includes at least one of the following that the preset barrage, which updates rule:
The rule being updated according to the updated barrage data received;
The rule being updated according to preset barrage moving direction and/or rate travel;And
Every the rule that preset interval is updated.
A11. according to any method of A1-10, wherein before the method executes, further comprise: user is defeated
The barrage information entered is sent to server;
The step of each deblocking for including in the barrage data that then determination receives, specifically includes: determining and receives
To the barrage data generated by server according to the barrage information in include each deblocking.
A12. according to any method of A1-11, wherein the method is applied to e-book, and the e-schoolbag
It includes: caricature electron-like book;Also, the picture piecemeal includes: static images piecemeal and/or dynamic picture piecemeal.
B13. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, institute
It states memory and the communication interface completes mutual communication by the communication bus;
For the memory for storing an at least executable instruction, it is following that the executable instruction executes the processor
Operation: it determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as picture
The deblocking of text type is determined as text sections by piecemeal;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on the barrage painting canvas.
B14. electronic equipment according to b13, wherein the executable instruction also makes the processor execute following behaviour
Make:
The barrage data are parsed according to preset barrage analysis protocol, the barrage is obtained according to parsing result
The each deblocking for including in data;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text
Before the step of this piecemeal, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking,
Determine the piecemeal type of each deblocking.
B15. the electronic equipment according to B13 or 14, wherein the piecemeal attribute information of the picture piecemeal is according to
The parsing result of barrage data determines, and it includes: the size determined according to the piecemeal attribute information that the piecemeal, which draws information,
Category information and/or content class information;
Then the executable instruction also makes the processor execute following operation:
Information is drawn according to the piecemeal of each picture piecemeal to determine in the drafting size and/or drafting of each picture piecemeal
Hold, each picture piecemeal institute is drawn on barrage painting canvas according to the drafting size of each picture piecemeal and/or drafting content
Corresponding piecemeal content.
B16. according to any electronic equipment of B13-15, wherein the executable instruction also holds the processor
The following operation of row:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, it is true by the default transfer function
The piecemeal for determining picture piecemeal draws the size category information for including in information.
B17. the electronic equipment according to B16, wherein the default transfer function includes: according to preset barrage sample
The self defined interface function of formula template-setup, and/or preset application program interface function.
B18. according to any electronic equipment of B13-17, wherein the executable instruction also holds the processor
The following operation of row:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface
Function draws each text sections.
B19. according to any electronic equipment of B13-18, wherein the executable instruction also holds the processor
The following operation of row:
The arrangement side of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule
Formula;
According to the arrangement mode, piecemeal corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas
Content.
B20. the electronic equipment according to B19, wherein the default arranging rule includes at least one in following rule
Kind:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template for define with
It is at least one of lower: the line number of barrage, columns, every row or each column size.
B21. according to any electronic equipment of B13-20, wherein the executable instruction also holds the processor
The following operation of row:
Rule is updated according to preset barrage, the piecemeal content drawn on the barrage painting canvas is updated;
Then after described the step of showing barrage according to each piecemeal content drawn on the barrage painting canvas, further wrap
It includes: according to updated barrage painting canvas, showing updated barrage.
B22. the electronic equipment according to B21, wherein the preset barrage update rule include in following at least
One:
The rule being updated according to the updated barrage data received;
The rule being updated according to preset barrage moving direction and/or rate travel;And
Every the rule that preset interval is updated.
B23. according to any electronic equipment of B13-22, wherein the executable instruction also holds the processor
The following operation of row: the barrage information that user inputs is sent to server;
Then the executable instruction also makes the processor execute following operation: determine receive by server according to institute
State each deblocking for including in the barrage data of barrage information generation.
B24. according to any electronic equipment of B13-23, wherein the method is applied to e-book, and the electronics
Book includes: caricature electron-like book;Also, the picture piecemeal includes: static images piecemeal and/or dynamic picture piecemeal.
C25. a kind of computer storage medium is stored with an at least executable instruction in the storage medium, described to hold
Row instruction makes processor execute following operation: each deblocking for including in the barrage data received is determined, by picture category
The deblocking of type is determined as picture piecemeal, and the deblocking of text type is determined as text sections;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws letter according to the piecemeal attribute information of picture piecemeal
Breath;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text point are drawn on barrage painting canvas
Piecemeal content corresponding to block shows barrage according to each piecemeal content drawn on the barrage painting canvas.
C26. the computer storage medium according to C25, wherein the executable instruction also executes the processor
It operates below:
The barrage data are parsed according to preset barrage analysis protocol, the barrage is obtained according to parsing result
The each deblocking for including in data;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text
Before the step of this piecemeal, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking,
Determine the piecemeal type of each deblocking.
C27. the computer storage medium according to C25 or 26, wherein the piecemeal attribute information root of the picture piecemeal
It is determined according to the parsing result of the barrage data, and it includes: to be determined according to the piecemeal attribute information that the piecemeal, which draws information,
Size category information and/or content class information;
Then the executable instruction also makes the processor execute following operation:
Information is drawn according to the piecemeal of each picture piecemeal to determine in the drafting size and/or drafting of each picture piecemeal
Hold, each picture piecemeal institute is drawn on barrage painting canvas according to the drafting size of each picture piecemeal and/or drafting content
Corresponding piecemeal content.
C28. according to any computer storage medium of C25-27, wherein the executable instruction also makes the place
It manages device and executes following operation:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, it is true by the default transfer function
The piecemeal for determining picture piecemeal draws the size category information for including in information.
C29. the computer storage medium according to C28, wherein the default transfer function includes: according to preset
The self defined interface function of barrage pattern template-setup, and/or preset application program interface function.
C30. according to any computer storage medium of C25-29, wherein the executable instruction also makes the place
It manages device and executes following operation:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface
Function draws each text sections.
C31. according to any computer storage medium of C25-30, wherein the executable instruction also makes the place
It manages device and executes following operation:
The arrangement side of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule
Formula;
According to the arrangement mode, piecemeal corresponding to each picture piecemeal and text sections is drawn on barrage painting canvas
Content.
C32. the computer storage medium according to C31, wherein the default arranging rule includes in following rule
It is at least one:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template for define with
It is at least one of lower: the line number of barrage, columns, every row or each column size.
C33. according to any computer storage medium of C25-32, wherein the executable instruction also makes the place
It manages device and executes following operation:
Rule is updated according to preset barrage, the piecemeal content drawn on the barrage painting canvas is updated;
Then after described the step of showing barrage according to each piecemeal content drawn on the barrage painting canvas, further wrap
It includes: according to updated barrage painting canvas, showing updated barrage.
C34. the computer storage medium according to C33, wherein it includes in following that the preset barrage, which updates rule,
At least one:
The rule being updated according to the updated barrage data received;
The rule being updated according to preset barrage moving direction and/or rate travel;And
Every the rule that preset interval is updated.
C35. according to any computer storage medium of C25-34, wherein the executable instruction also makes the place
Reason device executes following operation: the barrage information that user inputs is sent to server;
Then the executable instruction also makes the processor execute following operation: determine receive by server according to institute
State each deblocking for including in the barrage data of barrage information generation.
C36. according to any computer storage medium of C25-35, wherein the method is applied to e-book, and institute
Stating e-book includes: caricature electron-like book;Also, the picture piecemeal includes: static images piecemeal and/or dynamic picture point
Block.
Claims (10)
1. a kind of barrage display methods, comprising:
It determines each deblocking for including in the barrage data received, the deblocking of picture type is determined as picture point
The deblocking of text type is determined as text sections by block;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text sections institute are drawn on barrage painting canvas
Corresponding piecemeal content shows barrage according to each piecemeal content drawn on the barrage painting canvas.
2. according to the method described in claim 1, wherein, each data for including in the barrage data that the determination receives are divided
The step of block, specifically includes:
The barrage data are parsed according to preset barrage analysis protocol, the barrage data are obtained according to parsing result
In include each deblocking;
It is then described that the deblocking of picture type is determined as picture piecemeal, the deblocking of text type is determined as text point
Before the step of block, further comprise: being identified according to the piecemeal of the barrage analysis protocol and/or each deblocking, is determined
The piecemeal type of each deblocking.
3. method according to claim 1 or 2, wherein the piecemeal attribute information of the picture piecemeal is according to the barrage
The parsing result of data determines, and it includes: the size class letter determined according to the piecemeal attribute information that the piecemeal, which draws information,
Breath and/or content class information;
It is then described that information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text are drawn on barrage painting canvas
The step of piecemeal content corresponding to piecemeal, specifically includes:
The drafting size and/or drafting content that information determines each picture piecemeal, root are drawn according to the piecemeal of each picture piecemeal
It is drawn on barrage painting canvas corresponding to each picture piecemeal according to the drafting size and/or drafting content of each picture piecemeal
Piecemeal content.
4. method according to claim 1 to 3, wherein described determined according to the piecemeal attribute information of picture piecemeal is schemed
The step of piecemeal drafting information of piece piecemeal, specifically includes:
The piecemeal attribute information of the picture piecemeal is supplied to default transfer function, figure is determined by the default transfer function
The piecemeal of piece piecemeal draws the size category information for including in information.
5. according to the method described in claim 4, wherein, the default transfer function includes: according to preset barrage pattern mould
The self defined interface function of plate setting, and/or preset application program interface function.
6. -5 any method according to claim 1, wherein it is described drawn on barrage painting canvas each picture piecemeal and
The step of piecemeal content corresponding to text sections, specifically includes:
It calls preset picture to draw interface function and draws each picture piecemeal, and preset text is called to draw interface function
Draw each text sections.
7. -6 any method according to claim 1, wherein it is described that information is drawn according to the piecemeal of each picture piecemeal,
It is specifically included in the step of drawing piecemeal content corresponding to each picture piecemeal and text sections on barrage painting canvas:
The arrangement mode of each picture piecemeal and text sections on the barrage painting canvas is determined according to default arranging rule;
According to the arrangement mode, drawn on barrage painting canvas in piecemeal corresponding to each picture piecemeal and text sections
Hold.
8. according to the method described in claim 7, wherein, the default arranging rule includes at least one of following rule:
According to the put in order rule arranged of each deblocking in the barrage data;
The rule arranged according to preset barrage pattern template;Wherein, the barrage pattern template is for defining in following
At least one: the line number of barrage, columns, every row or each column size.
9. a kind of electronic equipment, comprising: processor, memory, communication interface and communication bus, the processor, the storage
Device and the communication interface complete mutual communication by the communication bus;
The memory makes the processor execute following behaviour for storing an at least executable instruction, the executable instruction
Make: determining each deblocking for including in the barrage data received, the deblocking of picture type is determined as picture point
The deblocking of text type is determined as text sections by block;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text sections institute are drawn on barrage painting canvas
Corresponding piecemeal content shows barrage according to each piecemeal content drawn on the barrage painting canvas.
10. a kind of computer storage medium, an at least executable instruction, the executable instruction are stored in the storage medium
So that processor is executed following operation: each deblocking for including in the barrage data received is determined, by the number of picture type
It is determined as picture piecemeal according to piecemeal, the deblocking of text type is determined as text sections;
For each picture piecemeal, determine that the piecemeal of picture piecemeal draws information according to the piecemeal attribute information of picture piecemeal;
Information is drawn according to the piecemeal of each picture piecemeal, each picture piecemeal and text sections institute are drawn on barrage painting canvas
Corresponding piecemeal content shows barrage according to each piecemeal content drawn on the barrage painting canvas.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810666643.8A CN108966036B (en) | 2018-06-26 | 2018-06-26 | Barrage display methods, electronic equipment and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201810666643.8A CN108966036B (en) | 2018-06-26 | 2018-06-26 | Barrage display methods, electronic equipment and computer storage medium |
Publications (2)
Publication Number | Publication Date |
---|---|
CN108966036A true CN108966036A (en) | 2018-12-07 |
CN108966036B CN108966036B (en) | 2019-09-03 |
Family
ID=64486806
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201810666643.8A Active CN108966036B (en) | 2018-06-26 | 2018-06-26 | Barrage display methods, electronic equipment and computer storage medium |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN108966036B (en) |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN110012338A (en) * | 2019-04-10 | 2019-07-12 | 广州虎牙信息科技有限公司 | A kind of method, apparatus, computer equipment and storage medium showing barrage data |
CN110548290A (en) * | 2019-09-11 | 2019-12-10 | 珠海金山网络游戏科技有限公司 | Image-text mixed arranging method and device, electronic equipment and storage medium |
CN111796825A (en) * | 2020-06-30 | 2020-10-20 | 北京字节跳动网络技术有限公司 | Bullet screen drawing method, device, equipment and storage medium |
CN112383831A (en) * | 2020-10-30 | 2021-02-19 | 上海连尚网络科技有限公司 | Method and equipment for generating bullet screen information |
CN112449230A (en) * | 2019-08-28 | 2021-03-05 | 腾讯数码(天津)有限公司 | Character string display processing method, device, terminal and storage medium |
Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105828164A (en) * | 2016-04-28 | 2016-08-03 | 武汉斗鱼网络科技有限公司 | Method and system for avoiding overlapped display of bullet screen |
CN105959810A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Barrage generating method, barrage generating device and server |
CN106021279A (en) * | 2016-04-28 | 2016-10-12 | 百度在线网络技术(北京)有限公司 | Method and device for information display |
CN106210849A (en) * | 2016-06-27 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of barrage information processing method and device |
CN106470356A (en) * | 2015-08-17 | 2017-03-01 | 百度在线网络技术(北京)有限公司 | A kind of barrage dissemination method and device |
CN106534875A (en) * | 2016-11-09 | 2017-03-22 | 广州华多网络科技有限公司 | Barrage display control method and device and terminal |
CN107040808A (en) * | 2017-04-11 | 2017-08-11 | 青岛海信电器股份有限公司 | Treating method and apparatus for barrage picture in video playback |
CN107147941A (en) * | 2017-05-27 | 2017-09-08 | 努比亚技术有限公司 | Barrage display methods, device and the computer-readable recording medium of video playback |
CN107168934A (en) * | 2017-05-15 | 2017-09-15 | 掌阅科技股份有限公司 | E-book plot reminding method, electronic equipment and computer-readable storage medium |
CN107633029A (en) * | 2017-09-04 | 2018-01-26 | 上海渔阳网络技术有限公司 | A kind of method and device for showing electronic document |
-
2018
- 2018-06-26 CN CN201810666643.8A patent/CN108966036B/en active Active
Patent Citations (10)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN106470356A (en) * | 2015-08-17 | 2017-03-01 | 百度在线网络技术(北京)有限公司 | A kind of barrage dissemination method and device |
CN105959810A (en) * | 2016-04-19 | 2016-09-21 | 乐视控股(北京)有限公司 | Barrage generating method, barrage generating device and server |
CN105828164A (en) * | 2016-04-28 | 2016-08-03 | 武汉斗鱼网络科技有限公司 | Method and system for avoiding overlapped display of bullet screen |
CN106021279A (en) * | 2016-04-28 | 2016-10-12 | 百度在线网络技术(北京)有限公司 | Method and device for information display |
CN106210849A (en) * | 2016-06-27 | 2016-12-07 | 乐视控股(北京)有限公司 | A kind of barrage information processing method and device |
CN106534875A (en) * | 2016-11-09 | 2017-03-22 | 广州华多网络科技有限公司 | Barrage display control method and device and terminal |
CN107040808A (en) * | 2017-04-11 | 2017-08-11 | 青岛海信电器股份有限公司 | Treating method and apparatus for barrage picture in video playback |
CN107168934A (en) * | 2017-05-15 | 2017-09-15 | 掌阅科技股份有限公司 | E-book plot reminding method, electronic equipment and computer-readable storage medium |
CN107147941A (en) * | 2017-05-27 | 2017-09-08 | 努比亚技术有限公司 | Barrage display methods, device and the computer-readable recording medium of video playback |
CN107633029A (en) * | 2017-09-04 | 2018-01-26 | 上海渔阳网络技术有限公司 | A kind of method and device for showing electronic document |
Cited By (8)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN109933751A (en) * | 2019-03-20 | 2019-06-25 | 腾讯科技(深圳)有限公司 | Graphic rendering method, apparatus, computer readable storage medium and computer equipment |
CN110012338A (en) * | 2019-04-10 | 2019-07-12 | 广州虎牙信息科技有限公司 | A kind of method, apparatus, computer equipment and storage medium showing barrage data |
CN112449230A (en) * | 2019-08-28 | 2021-03-05 | 腾讯数码(天津)有限公司 | Character string display processing method, device, terminal and storage medium |
CN110548290A (en) * | 2019-09-11 | 2019-12-10 | 珠海金山网络游戏科技有限公司 | Image-text mixed arranging method and device, electronic equipment and storage medium |
CN110548290B (en) * | 2019-09-11 | 2023-10-03 | 珠海金山数字网络科技有限公司 | Image-text mixed arrangement method and device, electronic equipment and storage medium |
CN111796825A (en) * | 2020-06-30 | 2020-10-20 | 北京字节跳动网络技术有限公司 | Bullet screen drawing method, device, equipment and storage medium |
CN111796825B (en) * | 2020-06-30 | 2024-02-09 | 北京字节跳动网络技术有限公司 | Bullet screen drawing method, bullet screen drawing device, bullet screen drawing equipment and storage medium |
CN112383831A (en) * | 2020-10-30 | 2021-02-19 | 上海连尚网络科技有限公司 | Method and equipment for generating bullet screen information |
Also Published As
Publication number | Publication date |
---|---|
CN108966036B (en) | 2019-09-03 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108966036B (en) | Barrage display methods, electronic equipment and computer storage medium | |
CN101639929B (en) | Graphics processing systems | |
CN106575228B (en) | Post-processing object order rearrangement in graphics process | |
CN108010112A (en) | Animation processing method, device and storage medium | |
CN110703978B (en) | Information display method, reader, and computer storage medium | |
US6154223A (en) | Integrated graphics subsystem with message-passing architecture | |
JP6008515B2 (en) | Graphics processing | |
US9202303B2 (en) | System and method for compositing path color in path rendering | |
CN105378661B (en) | Resource packet index | |
CN109300179B (en) | Animation production method, device, terminal and medium | |
CN105912234B (en) | The exchange method and device of virtual scene | |
US7439983B2 (en) | Method and apparatus for de-indexing geometry | |
DE202009019145U1 (en) | Hardware-accelerated graphics for online applications using native code modules | |
CN105096368B (en) | Three dimensional object processing method and relevant apparatus | |
CN106575442A (en) | Bandwidth reduction using texture lookup by adaptive shading | |
CN106095437A (en) | The implementation method of the layout type of user interface RTL from right to left and device | |
CN110489682A (en) | A kind of page loading method and device | |
CN108958725A (en) | Graphical mode programming platform generation method, device and computer equipment | |
CN107908608B (en) | Method, storage medium and device for converting and displaying manuscript in three-dimensional space | |
CN109086020A (en) | Multi-screen display method and device | |
CN111459501A (en) | SVG-based Web configuration picture storage and display system, method and medium | |
CN108038890A (en) | Vector diagram demonstration method, device, equipment and computer storage medium | |
CN109640068A (en) | Information forecasting method, device, equipment and the storage medium of video frame | |
CN106126140A (en) | Method and device for rendering characters and electronic equipment | |
CN108776575A (en) | Synchronous method, e-book reading device and the storage medium of the hand-written notes of user |
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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |