CN104093069B - A kind of video broadcasting method and player device - Google Patents
A kind of video broadcasting method and player device Download PDFInfo
- Publication number
- CN104093069B CN104093069B CN201410265368.0A CN201410265368A CN104093069B CN 104093069 B CN104093069 B CN 104093069B CN 201410265368 A CN201410265368 A CN 201410265368A CN 104093069 B CN104093069 B CN 104093069B
- Authority
- CN
- China
- Prior art keywords
- curve
- color
- video data
- image data
- sampling interval
- 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.)
- Active
Links
Landscapes
- Facsimile Image Signal Circuits (AREA)
- Processing Of Color Television Signals (AREA)
Abstract
An embodiment of the present invention provides a kind of video broadcasting method and player devices, to solve the problems, such as to cause play quality poor due to video data.The method includes:The video data played in mobile terminal is sampled according to the preset sampling interval, determines the half-tone information of the video data;Determine that the color of video data in the sampling interval adjusts curve according to the half-tone information;Within the sampling interval, the video data is adjusted according to color adjustment curve and is played in real time.The color of the video played in real time can be adjusted, and the video data in each sampling interval is sampled and adjusted respectively in playing process and makes the adjustment of color more accurate, improve the play quality of video.
Description
Technical field
The present invention relates to multimedia technology fields, more particularly to a kind of video broadcasting method and a kind of player device.
Background technology
Video resource in network is very abundant, therefore more and more users are mobile eventually using tablet computer, mobile phone etc.
End viewing video.The video in network is such as downloaded into mobile terminal or the directly online viewing of networking.
When due to carrying out video playing using mobile terminal, the source of video resource is very extensive, therefore the quality of video
It is irregular, and video itself is second-rate, broadcasting content is unclear, also leads to the effect of video-frequency playing content in mobile terminal
It is poor, such as video-frequency playing content darker or lighter etc..
Invention content
The embodiment of the present invention is the technical problem to be solved is that a kind of video broadcasting method is provided, to solve due to video counts
According to the problem for causing play quality poor.
Correspondingly, the embodiment of the present invention additionally provides a kind of player device, to ensure the realization of the above method and answer
With.
To solve the above-mentioned problems, the invention discloses a kind of video broadcasting methods, including:According to the preset sampling interval
The video data played in mobile terminal is sampled, determines the half-tone information of the video data;Believe according to the gray scale
Breath determines that the color of video data in the sampling interval adjusts curve;Within the sampling interval, adjusted according to the color
Curve is adjusted the video data and plays in real time.
Optionally, described that the video data played in mobile terminal is sampled according to the preset sampling interval, it determines
The half-tone information of the video data, including:In the mobile terminal playing video data, reached when detecting the currently playing moment
When to the preset sampling interval, the image data of present frame is acquired from the video data of broadcasting;To the image data of acquisition into
Row samples and establishes grey level histogram according to sampled result.
Optionally, the image data of described pair of acquisition sample and establishes grey level histogram according to sampled result, including:
Down-sampling is carried out to the image data of the acquisition, obtains the gray value of each sampled point in the image data of the acquisition;Foundation
The gray value of each sampled point establishes the grey level histogram of the image data of the acquisition.
It is optionally, described to determine that the color of video data in the sampling interval adjusts curve according to the half-tone information,
Including:The color curve of the image data of the acquisition is established according to the grey level histogram;Determine the song of the color curve
Line type, and determine that color adjusts curve according to the curve type, wherein the curve type includes following at least one:
Brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
Optionally, within the sampling interval, the video data is adjusted simultaneously according to color adjustment curve
It plays in real time, including:Curve is adjusted according to the color, successively to every frame image of the video data in the sampling interval
Data are adjusted;Image data after every framing control is rendered and played successively.
Optionally, curve is adjusted according to the color, successively to every frame figure of the video data in the sampling interval
As data are adjusted, including:Determine the image frames numbers for the image data that the video data includes in the sampling interval;
Curve is adjusted according to described image number of frames and the color, determines the curve adjustment degree per frame image data;According to the song
Line adjustment degree is adjusted every frame image data respectively.
Correspondingly, the invention also discloses a kind of player devices, including:Half-tone information determining module, for according to pre-
The sampling interval set samples the video data played in mobile terminal, determines the half-tone information of the video data;It adjusts
Whole curve determining module, for determining that the color of video data in the sampling interval adjusts curve according to the half-tone information;
Module is adjusted, within the sampling interval, being adjusted to the video data according to color adjustment curve;It plays
Module, for being played in real time to the video data after adjustment.
Optionally, the half-tone information determining module, including:Submodule is acquired, for being regarded in the mobile terminal playing
Frequency according to when, when detecting currently playing moment and reaching the preset sampling interval, present frame is acquired from the video data of broadcasting
Image data;Half-tone information setting up submodule is sampled for the image data to acquisition and is established according to sampled result
Grey level histogram.
Optionally, the half-tone information setting up submodule, including:Sampling unit, for the image data to the acquisition
Down-sampling is carried out, the gray value of each sampled point in the image data of the acquisition is obtained;Grey level histogram establishes unit, for according to
The grey level histogram of the image data of the acquisition is established according to the gray value of each sampled point.
Optionally, the adjustment curve determining module, including:Color curve determination sub-module, for according to the gray scale
Histogram establishes the color curve of the image data of the acquisition;Type and adjustment curve determination sub-module, described in determining
The curve type of color curve, and according to the curve type determine color adjust curve, wherein the curve type include with
Lower at least one:Brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
Optionally, the adjustment module, for adjusting curve according to the color, successively to described in the sampling interval
Every frame image data of video data is adjusted;The playing module, for the image data after every framing control successively into
Row is rendered and is played.
Optionally, the adjustment module, including:Number of frames determination sub-module, it is described in the sampling interval for determining
The image frames numbers for the image data that video data includes;Adjustment degree determination sub-module, for according to described image number of frames and
The color adjusts curve, determines the curve adjustment degree per frame image data;Submodule is adjusted, for being adjusted according to the curve
Degree is adjusted every frame image data respectively.
Compared with prior art, the embodiment of the present invention includes following advantages:
The video data played in real time in mobile terminal is sampled according to the preset sampling interval, determines regarding for sampling
The half-tone information of frequency evidence, half-tone information can reflect the color informations such as the brightness of image, so as to true according to half-tone information
The color of video data adjusts curve in the fixed sampling interval, and then adjusts curve according to the color within the sampling interval
The video data is adjusted, and plays the video data after adjustment in real time.It can be to the color of the video played in real time
It is adjusted, and the video data in each sampling interval is sampled and adjusted respectively in playing process and makes color
Adjustment is more accurate, improves the play quality of video.
Description of the drawings
Fig. 1 is a kind of step flow chart of video broadcasting method embodiment of the present invention;
Fig. 2 is a kind of step flow chart of video broadcasting method alternative embodiment of the present invention;
Fig. 3 A are a kind of image datas of brightness overflow type provided in an embodiment of the present invention;
Fig. 3 B are the grey level histogram and color curve of a kind of brightness overflow type provided in an embodiment of the present invention;
Fig. 4 A are a kind of image datas of dark portion overflow type provided in an embodiment of the present invention;
Fig. 4 B are the grey level histogram and color curve of a kind of dark portion overflow type provided in an embodiment of the present invention;
Fig. 5 A are a kind of image datas of partially bright type provided in an embodiment of the present invention;
Fig. 5 B are the grey level histogram and color curve of a kind of partially bright type provided in an embodiment of the present invention;
Fig. 6 A are a kind of image datas of partially dark type provided in an embodiment of the present invention;
Fig. 6 B are the grey level histogram and color curve of a kind of partially dark type provided in an embodiment of the present invention;
Fig. 7 is a kind of structure diagram of player device embodiment of the present invention;
Fig. 8 is a kind of structure diagram of player device alternative embodiment of the present invention;
Fig. 9 is the structure diagram of the player device half-tone information setting up submodule of the embodiment of the present invention.
Specific implementation mode
In order to make the foregoing objectives, features and advantages of the present invention clearer and more comprehensible, below in conjunction with the accompanying drawings and specific real
Applying mode, the present invention is described in further detail.
One of the core concepts of the embodiments of the present invention is, provides a kind of video broadcasting method, to solve due to video counts
According to the problem for causing play quality poor.Video data that can be according to the preset sampling interval to being played in real time in mobile terminal
It is sampled, determines that the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as the brightness of image, from
And the color adjustment curve of video data in the sampling interval can be determined according to half-tone information, and then within the sampling interval
The video data is adjusted according to color adjustment curve, and plays the video data after adjustment in real time.It can be right
The color of the video played in real time is adjusted, and is carried out respectively to the video data in each sampling interval in playing process
Sampling and adjustment make the adjustment of color more accurate, improve the play quality of video.
Embodiment one
Referring to Fig.1, the step flow chart for showing a kind of video broadcasting method embodiment of the present invention, can specifically include
Following steps:
Step 102, the video data played in mobile terminal is sampled according to the preset sampling interval, described in determination
The half-tone information of video data.
The embodiment of the present invention is sampled and is adjusted to video while playing video in player, to adjust in real time
The color data of playing video improves the play quality and effect of video.
The sampling interval of video is pre-set, it is 1 minute that the sampling interval, which is such as arranged, then video data plays from player
It carries out sampling simultaneously detection time after beginning, is sampled respectively when reaching time interval every time later.For example, in video playing
Start to be sampled at the 3rd second, then hereafter executed primary sampling and subsequent adjustment operation every 1 minute.
After the sampling for completing video data, the video data according to the sampling obtains the gray scale letter of currently playing video
Breath.
Step 104, determine that the color of video data in the sampling interval adjusts curve according to the half-tone information.
Half-tone information can reflect the color informations such as the brightness of currently playing video data, can according to current color information
How video is adjusted within the current sampling interval with determination, that is, determines the color of video data in current sampling interval
Adjust curve.
Wherein, color adjustment curve is some standard color curves of preset image data, for every frame to video
Image data is adjusted, and with the color for the video data that adjustment plays, improves the result of broadcast of video.
Step 106, within the sampling interval, the video data is adjusted simultaneously according to color adjustment curve
It plays in real time.
In the embodiment of the present invention, all video data is sampled whenever reaching the sampling interval, by the video counts of sampling
According to color motif of the color information as video data in the sampling interval, to which the video data according to sampling determines color
Curve is adjusted, the data in the sampling interval are adjusted according to color adjustment curve.
The video data in the sampling interval is obtained, i.e., is opened to the next sampling interval since reaching this sampling interval
Before beginning, the video data of this period is obtained, then the video data of this time is adjusted according to color adjustment curve,
So that the video of this time is met the requirement of color adjustment curve, and the video data of adjustment is played in real time, realizes
Adjust the play quality of video in real time in video display process.
In conclusion can be adopted to the video data played in real time in mobile terminal according to the preset sampling interval
Sample determines that the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as the brightness of image, so as to
The color adjustment curve of video data in the sampling interval is determined according to half-tone information, and then according to institute within the sampling interval
It states color adjustment curve to be adjusted the video data, and plays the video data after adjustment in real time.It can be to broadcasting in real time
The color for the video put is adjusted, and playing process to the video data in each sampling interval respectively carry out sampling and
Adjustment makes the adjustment of color more accurate, improves the play quality of video.
Embodiment two
On the basis of the above embodiments, the present embodiment is discussed further the video for adjusting video quality in due course in broadcasting
Playback method.
With reference to Fig. 2, a kind of step flow chart of video broadcasting method alternative embodiment of the present invention is shown, it specifically can be with
Include the following steps:
Step 202, in the mobile terminal playing video data, detect whether the currently playing moment reaches preset and adopt
Sample interval.
When mobile terminal uses player plays video, since the video data itself wherein played may be second-rate,
Cause result of broadcast bad, therefore the embodiment of the present invention is adjusted the video played in real time.
Reproduction time is detected in video display process, determines whether the currently playing moment reaches preset sampling
Interval.Wherein it is possible to first be sampled to video data in playing video data, and starts detection time and determine whether to reach
The time that next sampling interval, such as startup timer were detected or directly acquired video playing is detected, and can also broadcast
Whether elder generation's detection time reaches the sampling interval when putting video, then is sampled.
If so, detecting the sampling interval that the currently playing moment reaches preset, step 204 is executed;If it is not, detecting current
Playing time is not up to the preset sampling interval, then return to step 202, continues to detect.
Step 204, the image data of present frame is acquired from the video data of broadcasting.
Step 206, the image data of acquisition sample and establish grey level histogram according to sampled result.
When reaching the preset sampling interval at the detection currently playing moment, video data currently playing in player is determined
Picture frame, then acquire the corresponding image data of current image frame.The image data of acquisition is sampled, i.e., from picture number
According to middle extraction sampled point, obtains corresponding sampled result and establish grey level histogram.
Wherein, grey level histogram is the function of gray level, it indicates the number of the pixel with certain gray level in image,
Reflect the frequency that certain gray scale occurs in image.
In an alternative embodiment of the invention, the image data of described pair of acquisition is sampled and is established according to sampled result
Grey level histogram, including:Down-sampling is carried out to the image data of the acquisition, obtains and is respectively sampled in the image data of the acquisition
The gray value of point;Gray value according to each sampled point establishes the grey level histogram of the image data of the acquisition.
In sampling, there are a variety of method of samplings, such as carry out down-sampling to the image data of acquisition, wherein what down-sampling referred to
It is primary for the sampling of the several sample values in a sample sequence interval, obtains the down-sampling that new sequence is exactly former sequence in this way, such as adopt
The pixel of the image data of collection is 1280 × 720, and down-sampling is 4 times, then it is 320 × 180 to obtain pixel, can effectively be reduced
Pixel quantity is handled, efficiency is improved.
Then the gray value of each sampled point in the image data of the acquisition is obtained.Then the gray value according to each sampled point
The grey level histogram for founding the image data of the acquisition, by the brightness of the image data acquired described in intensity histogram map analysis.
Step 208, the color curve of the image data of the acquisition is established according to the grey level histogram.
Step 210, it determines the curve type of the color curve, and determines that color adjustment is bent according to the curve type
Line.
Itself is a statistical models for grey level histogram, it describes the half-tone information of current picture, therefore according to this
Grey level histogram establishes the color curve of the image data of the acquisition.Wherein, the abscissa of color curve is original brightness,
Ordinate is the brightness after adjustment.When not adjusting, color curve is linear, and is 45 °, and illustrative graph is taken up an official post
What any abscissa and ordinate are all equal, it means that the brightness before adjustment is as the brightness after adjustment, certainly also
It is not adjust.
Then the curve type of color curve is determined, in the embodiment of the present invention, the curve type includes following at least one
Kind:Brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.For each curve type, in advance
It is configured with corresponding standard curve i.e. color adjustment curve, is adjusted, carries to the color curve to its homologous thread type
The quality of hi-vision data, and then improve play quality and effect.
Wherein, it is usually right side that brightness overflow type shows in grey level histogram, and wherein highlight regions account for significant proportion
Such as 30% or more, while very high ratio such as 50% or more is still continue in the gray-scale map of the rightmost side, image data is as schemed
Shown in 3A, corresponding grey level histogram and color curve are as shown in Figure 3B.
Dark portion overflow type is with brightness overflow type on the contrary, it is usually left side, dark region that it is showed in grey level histogram
Domain accounts for significant proportion such as 30% or more, while still continue very high ratio such as 50% or more in the gray-scale map of the leftmost side,
Image data is as shown in Figure 4 A, and corresponding grey level histogram and color curve are as shown in Figure 4 B.
Partially bright type showed in grey level histogram be usually right side, wherein highlight regions account for significant proportion such as 30% with
On, but fallen after rise in the gray-scale map of the rightmost side and be less than 50%, image data is as shown in Figure 5A, corresponding grey level histogram and color
Curve is as shown in Figure 5 B.
With partially bright type on the contrary, it is usually left side that it is showed in grey level histogram, dark area accounts for very big partially dark type
Ratio such as 30% or more, while being fallen after rise in the gray-scale map of the leftmost side and being less than 50%, image data is as shown in Figure 6A, corresponding ash
It spends histogram and color curve is as shown in Figure 6B.
General pattern is often referred to using centre as separation, the figure that the weighted average of the block diagram of the left and right sides is not much different
Picture, as the left-right difference of grey level histogram is no more than positive and negative 30% weighting.
Step 212, curve is adjusted according to the color, successively to every frame figure of the video data in the sampling interval
As data are adjusted.
Every frame image data of the video data in the sampling interval is obtained successively, and then the color adjustment of establishing criteria is bent
Line is adjusted every frame image data respectively, is allowed to meet the requirement of color adjustment curve, wherein can will be per frame picture number
According to color curve be all adjusted to color and adjust curve, or picture style acute variation is avoided, within the sampling interval
Every frame image data is finely adjusted, keeps corresponding color curve consistent with color adjustment curve according to slow process successively.
In an alternative embodiment of the invention, curve is adjusted according to the color, successively to described in the sampling interval
Every frame image data of video data is adjusted, including:Determine the image that the video data includes in the sampling interval
The image frames numbers of data;Curve is adjusted according to described image number of frames and the color, determines the curve per frame image data
Adjustment degree;Every frame image data is adjusted respectively according to the curve adjustment degree.
It, can be to being finely adjusted to every frame image data in the sampling interval in order to avoid picture style acute variation.It can be with
The time for keeping the color curve of image data consistent with color adjustment curve, such as 30 seconds or 1 minute are pre-configured with, are then determined
In the sampling interval, which corresponds to the image frames numbers for the image data that the video data includes, such as per second
Video data is 24 frames, and sampling interval and preset time are 1 minute, then image frames numbers are 24* within a sampling interval
60=1440, if preset time is 30 seconds, image frames numbers are 24*30=720 in a sampling interval.
Then curve is adjusted according to image frames numbers and the color, determines the curve adjustment degree per frame image data,
Middle curve adjustment degree is for determining in preset time or how being adjusted to the color curve of every frame image data in the sampling interval, so
Every frame image data is adjusted respectively according to curve adjustment degree afterwards.
Step 214, the image data after every framing control is rendered and is played successively.
Since the embodiment of the present invention is to carry out real-time sampling and adjustment processing to the video in broadcasting, to every framing control
Then image data afterwards, which will also carry out rendering, to be shown.Such as rendered using OpenGL ES in Android platform,
In can in the rendering contexts for building an OpenGLES in the terminal, be then based on OpenGLES and basic C language into
Row realizes and is transplanted in Android system that the interaction technique based on player is played out by screen.
Within a sampling interval complete sampling, analysis, adjustment, render and play and etc. after, continue to next sampling
Interval executes above-mentioned flow shown in Fig. 2, until video playing terminates in player.
In conclusion down-sampling can be carried out to the image data in video data, improved to effectively reduce data volume
Treatment effeciency.And then the gray value of each sampled point establishes grey level histogram in being obtained according to down-sampling, passes through the intensity histogram
The luminance information of figure reflection image data, determines that the curve type of its corresponding color curve and color curve, curve type have
A variety of, each curve type all corresponds to the color adjustment curve of standard, improves the quality subsequently adjusted.
Secondly, every frame image data of the video data in the sampling interval is adjusted according to color adjustment curve
When, it may be determined that the curve adjustment degree per frame image data, to be carried out respectively to every frame image data according to curve adjustment degree
Fine tuning, avoids picture style acute variation, further increases the play quality and effect of video.
It should be noted that for embodiment of the method, for simple description, therefore it is all expressed as a series of action group
It closes, but those skilled in the art should understand that, the embodiment of the present invention is not limited by the described action sequence, because according to
According to the embodiment of the present invention, certain steps can be performed in other orders or simultaneously.Secondly, those skilled in the art also should
Know, embodiment described in this description belongs to preferred embodiment, and the involved action not necessarily present invention is implemented
Necessary to example.
Embodiment three
On the basis of the above embodiments, the present embodiment additionally provides a kind of player device.
With reference to Fig. 7, shows a kind of structure diagram of player device embodiment of the present invention, can specifically include such as lower die
Block:
Half-tone information determining module 702, for according to the preset sampling interval to the video data that is played in mobile terminal
It is sampled, determines the half-tone information of the video data.
Curve determining module 704 is adjusted, for determining video data in the sampling interval according to the half-tone information
Color adjusts curve.
Adjust module 706, within the sampling interval, according to the color adjust curve to the video data into
Row adjustment.
Playing module 708, for being played in real time to the video data after adjustment.
In conclusion can be adopted to the video data played in real time in mobile terminal according to the preset sampling interval
Sample determines that the half-tone information of the video data of sampling, half-tone information can reflect the color informations such as the brightness of image, so as to
The color adjustment curve of video data in the sampling interval is determined according to half-tone information, and then according to institute within the sampling interval
It states color adjustment curve to be adjusted the video data, and plays the video data after adjustment in real time.It can be to broadcasting in real time
The color for the video put is adjusted, and playing process to the video data in each sampling interval respectively carry out sampling and
Adjustment makes the adjustment of color more accurate, improves the play quality of video.
With reference to Fig. 8, a kind of structure diagram of player device alternative embodiment of the present invention is shown.
With reference to Fig. 9, the structure diagram of the player device half-tone information setting up submodule of the embodiment of the present invention is shown, have
Body may include following module:
Optionally, the half-tone information determining module 702, including:Submodule 7022 is acquired, in the mobile terminal
When playing video data, when reaching the preset sampling interval at the detection currently playing moment, acquired from the video data of broadcasting
The image data of present frame;Half-tone information setting up submodule 7024 carries out sampling for the image data to acquisition and foundation is adopted
Sample result establishes grey level histogram.
Optionally, the half-tone information setting up submodule 7024, including:Sampling unit 70242, for the acquisition
Image data carries out down-sampling, obtains the gray value of each sampled point in the image data of the acquisition;Grey level histogram is established single
Member 70244, the grey level histogram of the image data for establishing the acquisition according to the gray value of each sampled point.
The adjustment curve determining module 704, including:Color curve determination sub-module 7042, for according to the gray scale
Histogram establishes the color curve of the image data of the acquisition;Curve determination sub-module 7044 is adjusted, for determining the color
The curve type of color curve, and determine that color adjusts curve according to the curve type, wherein the curve type includes following
It is at least one:Brightness overflow type, dark portion overflow type, partially dark type, partially bright type, general type.
The adjustment module 706, for adjusting curve according to the color, successively to the video in the sampling interval
Every frame image data of data is adjusted.
The playing module 708, for the image data after every framing control to be rendered and played successively.
Optionally, the adjustment module 706, including:Number of frames determination sub-module 7062, for determining the sampling interval
The image frames numbers for the image data that the interior video data includes;Adjustment degree determination sub-module 7064, for according to the figure
As number of frames and the color adjust curve, the determining curve adjustment degree per frame image data;Adjust submodule 7066, for according to
Every frame image data is adjusted respectively according to the curve adjustment degree.
In conclusion down-sampling can be carried out to the image data in video data, improved to effectively reduce data volume
Treatment effeciency.And then the gray value of each sampled point establishes grey level histogram in being obtained according to down-sampling, passes through the intensity histogram
The luminance information of figure reflection image data, determines that the curve type of its corresponding color curve and color curve, curve type have
A variety of, each curve type all corresponds to the color adjustment curve of standard, improves the quality subsequently adjusted.
Secondly, every frame image data of the video data in the sampling interval is adjusted according to color adjustment curve
When, it may be determined that the curve adjustment degree per frame image data, to be carried out respectively to every frame image data according to curve adjustment degree
Fine tuning, avoids picture style acute variation, further increases the play quality and effect of video.
Above-mentioned is only a kind of player device embodiment provided in the embodiment of the present invention, the actually player device
Following module can be divided into:Interactive interface module, video data module, business logic modules, picture analysis module,
OPENGLES rendering modules etc..
Wherein, interactive interface module is responsible for the interactive operation of user passing to business logic modules.Business logic modules
Drive video data module playing video data, concurrent video data module by by present frame pass to picture analysis module with
The picture analysis module is activated to be analyzed.Picture analysis module obtains analysis result notice video data module and opengles
Rendering module carries out data render according to analysis result, and rendering data can also selectively be pushed to and regard by picture analysis module
Frequency data module is shown.
Wherein, video data module can include that the acquisition of image collecting function is executed in above-mentioned half-tone information determining module
Submodule, picture analysis module may include half-tone information setting up submodule in above-mentioned half-tone information determining module, adjustment curve
The function of determining module and adjustment module.
Wherein, video data module may be used android mediaplayer hard decoder schemes and carry out video data
Decoding and broadcasting, OPENGLES rendering modules are rendered using OpenGLES.
For device embodiments, since it is basically similar to the method embodiment, so fairly simple, the correlation of description
Place illustrates referring to the part of embodiment of the method.
Each embodiment in this specification is described in a progressive manner, the highlights of each of the examples are with
The difference of other embodiment, the same or similar parts between the embodiments can be referred to each other.
It should be understood by those skilled in the art that, the embodiment of the embodiment of the present invention can be provided as method, apparatus or calculate
Machine program product.Therefore, the embodiment of the present invention can be used complete hardware embodiment, complete software embodiment or combine software and
The form of the embodiment of hardware aspect.Moreover, the embodiment of the present invention can be used one or more wherein include computer can
With in the computer-usable storage medium (including but not limited to magnetic disk storage, CD-ROM, optical memory etc.) of program code
The form of the computer program product of implementation.
The embodiment of the present invention be with reference to according to the method for the embodiment of the present invention, terminal device (system) and computer program
The flowchart and/or the block diagram of product describes.It should be understood that flowchart and/or the block diagram can be realized by computer program instructions
In each flow and/or block and flowchart and/or the block diagram in flow and/or box combination.These can be provided
Computer program instructions are set to all-purpose computer, special purpose computer, Embedded Processor or other programmable data processing terminals
Standby processor is to generate a machine so that is held by the processor of computer or other programmable data processing terminal equipments
Capable instruction generates for realizing in one flow of flow chart or multiple flows and/or one box of block diagram or multiple boxes
The device of specified function.
These computer program instructions, which may also be stored in, can guide computer or other programmable data processing terminal equipments
In computer-readable memory operate in a specific manner so that instruction stored in the computer readable memory generates packet
The manufacture of command device is included, which realizes in one flow of flow chart or multiple flows and/or one side of block diagram
The function of being specified in frame or multiple boxes.
These computer program instructions can be also loaded into computer or other programmable data processing terminal equipments so that
Series of operation steps are executed on computer or other programmable terminal equipments to generate computer implemented processing, thus
The instruction executed on computer or other programmable terminal equipments is provided for realizing in one flow of flow chart or multiple flows
And/or in one box of block diagram or multiple boxes specify function the step of.
Although the preferred embodiment of the embodiment of the present invention has been described, once a person skilled in the art knows bases
This creative concept, then additional changes and modifications can be made to these embodiments.So the following claims are intended to be interpreted as
Including preferred embodiment and fall into all change and modification of range of embodiment of the invention.
Finally, it is to be noted that, herein, relational terms such as first and second and the like be used merely to by
One entity or operation are distinguished with another entity or operation, without necessarily requiring or implying these entities or operation
Between there are any actual relationship or orders.Moreover, the terms "include", "comprise" or its any other variant meaning
Covering non-exclusive inclusion, so that process, method, article or terminal device including a series of elements not only wrap
Those elements are included, but also include other elements that are not explicitly listed, or further include for this process, method, article
Or the element that terminal device is intrinsic.In the absence of more restrictions, being wanted by what sentence "including a ..." limited
Element, it is not excluded that there is also other identical elements in process, method, article or the terminal device including the element.
Above to a kind of video broadcasting method provided by the present invention and a kind of player device, it is described in detail,
Principle and implementation of the present invention are described for specific case used herein, and the explanation of above example is only used
In facilitating the understanding of the method and its core concept of the invention;Meanwhile for those of ordinary skill in the art, according to the present invention
Thought, there will be changes in the specific implementation manner and application range, in conclusion the content of the present specification should not be construed as
Limitation of the present invention.
Claims (8)
1. a kind of video broadcasting method, which is characterized in that including:
The video data played in mobile terminal is sampled according to the preset sampling interval, determines the ash of the video data
Spend information;
Determine that the color of video data in the sampling interval adjusts curve according to the half-tone information;
Within the sampling interval, the video data is adjusted according to color adjustment curve and is played in real time;
Wherein, described that the video data played in mobile terminal is sampled according to the preset sampling interval, it is regarded described in determination
The half-tone information of frequency evidence, including:
In the mobile terminal playing video data, when detecting currently playing moment and reaching the preset sampling interval, from broadcasting
The image data of present frame is acquired in the video data put;
The image data of acquisition sample and establishes grey level histogram according to sampled result;
It is described to determine that the color of video data in the sampling interval adjusts curve according to the half-tone information, including:
The color curve of the image data of the acquisition is established according to the grey level histogram;
It determines the curve type of the color curve, and determines that color adjusts curve according to the curve type.
2. according to the method described in claim 1, it is characterized in that, the image data of described pair of acquisition carries out sampling and foundation is adopted
Sample result establishes grey level histogram, including:
Down-sampling is carried out to the image data of the acquisition, obtains the gray value of each sampled point in the image data of the acquisition;
Gray value according to each sampled point establishes the grey level histogram of the image data of the acquisition.
3. according to the method described in claim 1, it is characterized in that, within the sampling interval, adjusted according to the color bent
Line is adjusted the video data and plays in real time, including:
Curve is adjusted according to the color, every frame image data of the video data in the sampling interval is adjusted successively
It is whole;
Image data after every framing control is rendered and played successively.
4. according to the method described in claim 3, it is characterized in that, curve is adjusted according to the color, successively to the sampling
Every frame image data of the video data is adjusted in interval, including:
Determine the image frames numbers for the image data that the video data includes in the sampling interval;
Curve is adjusted according to described image number of frames and the color, determines the curve adjustment degree per frame image data;
Every frame image data is adjusted respectively according to the curve adjustment degree.
5. a kind of player device, which is characterized in that including:
Half-tone information determining module, for being adopted to the video data played in mobile terminal according to the preset sampling interval
Sample determines the half-tone information of the video data;
Curve determining module is adjusted, for determining that the color of video data in the sampling interval is adjusted according to the half-tone information
Curve;
Module is adjusted, within the sampling interval, being adjusted to the video data according to color adjustment curve;
Playing module, for being played in real time to the video data after adjustment;
Wherein, the half-tone information determining module, including:
Submodule is acquired, in the mobile terminal playing video data, reaching preset when detecting the currently playing moment
When the sampling interval, the image data of present frame is acquired from the video data of broadcasting;
Half-tone information setting up submodule for the image data to acquisition sample and establishes intensity histogram according to sampled result
Figure;
The adjustment curve determining module, including:
Color curve determination sub-module, it is bent for establishing the color of image data of the acquisition according to the grey level histogram
Line;
Type and adjustment curve determination sub-module, the curve type for determining the color curve, and according to the class of a curve
Type determines that color adjusts curve.
6. device according to claim 5, which is characterized in that the half-tone information setting up submodule, including:
Sampling unit carries out down-sampling for the image data to the acquisition, obtains and respectively adopted in the image data of the acquisition
The gray value of sampling point;
Grey level histogram establishes unit, the ash of the image data for establishing the acquisition according to the gray value of each sampled point
Spend histogram.
7. device according to claim 5, it is characterised in that:
The adjustment module, for adjusting curve according to the color, successively to the video data in the sampling interval
It is adjusted per frame image data;
The playing module, for the image data after every framing control to be rendered and played successively.
8. device according to claim 7, which is characterized in that the adjustment module, including:
Number of frames determination sub-module, the picture frame for determining the video data includes in the sampling interval image data
Quantity;
Adjustment degree determination sub-module is determined for adjusting curve according to described image number of frames and the color per frame picture number
According to curve adjustment degree;
Submodule is adjusted, for being adjusted respectively to every frame image data according to the curve adjustment degree.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410265368.0A CN104093069B (en) | 2014-06-13 | 2014-06-13 | A kind of video broadcasting method and player device |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201410265368.0A CN104093069B (en) | 2014-06-13 | 2014-06-13 | A kind of video broadcasting method and player device |
Publications (2)
Publication Number | Publication Date |
---|---|
CN104093069A CN104093069A (en) | 2014-10-08 |
CN104093069B true CN104093069B (en) | 2018-11-06 |
Family
ID=51640742
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201410265368.0A Active CN104093069B (en) | 2014-06-13 | 2014-06-13 | A kind of video broadcasting method and player device |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN104093069B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4162699A4 (en) * | 2020-06-05 | 2024-02-14 | Qualcomm Inc | Video data processing based on sampling rate |
Families Citing this family (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN104469239B (en) * | 2014-12-05 | 2018-08-03 | 宁波菊风系统软件有限公司 | A kind of immersion video presentation method of intelligent mobile terminal |
CN108234914A (en) * | 2016-12-22 | 2018-06-29 | 中科创达软件股份有限公司 | A kind of video document generating method and device |
CN112752146A (en) * | 2020-05-25 | 2021-05-04 | 腾讯科技(深圳)有限公司 | Video quality evaluation method and device, computer equipment and storage medium |
Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752608A (en) * | 2011-11-21 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and device for realizing fast color correction |
CN102811353A (en) * | 2012-06-14 | 2012-12-05 | 北京暴风科技股份有限公司 | Method and system for improving video image definition |
CN103208270A (en) * | 2012-01-11 | 2013-07-17 | 索尼公司 | Display Device, Electronic Apparatus, Displaying Method, And Program |
CN103327219A (en) * | 2012-03-21 | 2013-09-25 | 浙江大华技术股份有限公司 | Video image contrast adjustment method and device |
Family Cites Families (2)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
DE102009031141B3 (en) * | 2009-06-30 | 2010-12-23 | Siemens Aktiengesellschaft | Determination procedure for a color-coded evaluation image as well as corresponding objects |
CN102223546B (en) * | 2011-06-07 | 2016-06-08 | 中兴通讯股份有限公司 | The luminance regulating method of video image and device |
-
2014
- 2014-06-13 CN CN201410265368.0A patent/CN104093069B/en active Active
Patent Citations (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN102752608A (en) * | 2011-11-21 | 2012-10-24 | 新奥特(北京)视频技术有限公司 | Method and device for realizing fast color correction |
CN103208270A (en) * | 2012-01-11 | 2013-07-17 | 索尼公司 | Display Device, Electronic Apparatus, Displaying Method, And Program |
CN103327219A (en) * | 2012-03-21 | 2013-09-25 | 浙江大华技术股份有限公司 | Video image contrast adjustment method and device |
CN102811353A (en) * | 2012-06-14 | 2012-12-05 | 北京暴风科技股份有限公司 | Method and system for improving video image definition |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
EP4162699A4 (en) * | 2020-06-05 | 2024-02-14 | Qualcomm Inc | Video data processing based on sampling rate |
Also Published As
Publication number | Publication date |
---|---|
CN104093069A (en) | 2014-10-08 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN109168078B (en) | Video definition switching method and device | |
CN110996153B (en) | Scene recognition-based sound and picture quality enhancement method and system and display | |
CN108419141B (en) | Subtitle position adjusting method and device, storage medium and electronic equipment | |
CN104093069B (en) | A kind of video broadcasting method and player device | |
CN107147939A (en) | Method and apparatus for adjusting net cast front cover | |
JP7295950B2 (en) | Video enhancement control method, device, electronic device and storage medium | |
US20130301918A1 (en) | System, platform, application and method for automated video foreground and/or background replacement | |
CN111355977B (en) | Optimized storage method and device for live webcast video | |
CN106921883B (en) | Video playing processing method and device | |
CN109587558B (en) | Video processing method, video processing device, electronic equipment and storage medium | |
CN112954459A (en) | Video data processing method and device | |
CN110996157A (en) | Video playing method and device, electronic equipment and machine-readable storage medium | |
CN110679153B (en) | Method for providing time placement of rebuffering events | |
CN111405339A (en) | Split screen display method, electronic equipment and storage medium | |
CN115396705A (en) | Screen projection operation verification method, platform and system | |
CN108985244B (en) | Television program type identification method and device | |
CN105635836B (en) | A kind of video sharing method and apparatus | |
WO2021169583A1 (en) | Virtual reality display device and control method therefor | |
CN112601120B (en) | Subtitle display method and device | |
CN111107283B (en) | Information display method, electronic equipment and storage medium | |
CN112449115A (en) | Shooting method and device and electronic equipment | |
CN106528149A (en) | Screen locking method and device | |
CN113965700A (en) | Automatic adjusting method and system for intelligent television scene | |
CN112860941A (en) | Cover recommendation method, device, equipment and medium | |
EP3772856A1 (en) | Identification of the intro part of a video content |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |