CN108012180A - Program broadcasting method, TV and storage medium - Google Patents

Program broadcasting method, TV and storage medium Download PDF

Info

Publication number
CN108012180A
CN108012180A CN201711283337.8A CN201711283337A CN108012180A CN 108012180 A CN108012180 A CN 108012180A CN 201711283337 A CN201711283337 A CN 201711283337A CN 108012180 A CN108012180 A CN 108012180A
Authority
CN
China
Prior art keywords
picture
program
pictures
normal
terminal
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
Application number
CN201711283337.8A
Other languages
Chinese (zh)
Other versions
CN108012180B (en
Inventor
柯杰燕
戚炎兴
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Shenzhen TCL New Technology Co Ltd
Original Assignee
Shenzhen TCL New Technology Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Shenzhen TCL New Technology Co Ltd filed Critical Shenzhen TCL New Technology Co Ltd
Priority to CN201711283337.8A priority Critical patent/CN108012180B/en
Publication of CN108012180A publication Critical patent/CN108012180A/en
Application granted granted Critical
Publication of CN108012180B publication Critical patent/CN108012180B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/44Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs
    • H04N21/44004Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream or rendering scenes according to encoded video stream scene graphs involving video buffer management, e.g. video decoder buffer or video display buffer
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/47End-user applications
    • H04N21/485End-user interface for client configuration
    • H04N21/4854End-user interface for client configuration for modifying image parameters, e.g. image brightness, contrast

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Two-Way Televisions, Distribution Of Moving Picture Or The Like (AREA)

Abstract

The invention discloses a kind of program broadcasting method, TV and storage medium, the described method comprises the following steps:Interception is sent to the complete programs picture to be played of terminal from server-side, and program pictures are stored as picture format, obtains program picture;Program picture is scanned, the size of normal picture in the program picture is obtained according to preset rules;The reproduction ratio of terminal is obtained according to the Size calculation of the normal picture;The complete programs picture to be played is adjusted according to the reproduction ratio, plays the program pictures after adjustment.The present invention improves the integrality and image programs result of broadcast that image programs are shown, user can be allowed to see complete normal pictures, while reduces the situation for seeing abnormal picture, lifts user experience.

Description

Program broadcasting method, TV and storage medium
Technical field
The present invention relates to program play-back technology field, more particularly to a kind of program broadcasting method, TV and storage medium.
Background technology
Reproduction ratio refers between the image of the image programs of television screen reproduction and the image programs of TV station's transmission Ratio.
Due to TV station send image programs in, image up and down can there are some exceptions or the picture of black, Show to be difficult to see, or appear to have exception.Therefore TV or display will set a reproduction ratio when dispatching from the factory, by this A little abnormal picture direct shearings are fallen without showing.This value of reproduction ratio is usually that what a fixation is set when dispatching from the factory at present Value, such as 95%.The picture that i.e. user can see is the 95% of the picture that TV station sends over, rather than all.
, so, will there are problems with due to being fixed when this value is dispatched from the factory:
If 1) image programs sended over are normal, the picture that user sees is also 95% original picture.
2) if the image programs normal pictures sended over are less than 95%, user just can be appreciated that abnormal picture.
Due to these two aspects, the image programs that user sees are ineffective, and experience is bad.
Based on above-mentioned technical problem, it is necessary to propose a kind of energy adjust automatically reproduction ratio, improve user and watch image programs Effect, lifts the solution method of user experience.
The content of the invention
It is a primary object of the present invention to propose a kind of program broadcasting method, TV and storage medium, it is intended to improve image The integrality and image programs result of broadcast that program is shown.
To achieve the above object, the present invention proposes a kind of program broadcasting method, the described method comprises the following steps:
Interception is sent to the complete programs picture to be played of terminal from server-side, and the program pictures are stored as figure Piece form, obtains program picture;
The program picture is scanned, the size of normal picture in the program picture is obtained according to preset rules;
The reproduction ratio of terminal is obtained according to the Size calculation of the normal picture;
The complete programs picture to be played is adjusted according to the reproduction ratio, the program after adjustment is played and draws Face.
Preferably, further included after the step of program pictures being stored as picture format, obtaining program picture:
The program picture is zoomed into pre-set dimension, the program picture after being scaled;
The scanning program picture, the step of the size of normal picture in the program picture is obtained according to preset rules Suddenly include:
Program picture after scanning the scaling along preset direction, according to determining the pre-set dimension and preset rules In program picture after scaling, the coordinate of the image edge of the preset direction of normal picture;
Normal picture in the program picture after the scaling is obtained according to the coordinate of the image edge of the preset direction Size.
Preferably, the preset direction includes:Upper and lower, left and right four direction, it is described to scan the contracting along preset direction Program picture after putting, normal picture in the program picture after the scaling is determined according to the pre-set dimension and preset rules The step of coordinate of the image edge of preset direction, includes:
Default sweep length, is inwardly swept along preset direction since the most edge of the program picture after the scaling Retouch, record the average color of each sweep length;
Obtain the difference of the average color of two neighboring sweep length;
By the difference compared with predetermined threshold value pair;If the difference is greater than or equal to the predetermined threshold value, institute is judged State between two neighboring sweep length there are catastrophe point, the coordinate of the catastrophe point for the image edge of the normal picture seat Mark.
Preferably, it is described to judge that there are further included afterwards the step of catastrophe point between the two neighboring sweep length:
If along between the multiple two neighboring sweep lengths of the preset direction there are catastrophe point, last catastrophe point Coordinate is the coordinate of the image edge of the normal picture.
Preferably, the difference further includes step compared with predetermined threshold value afterwards:
If the difference is less than the predetermined threshold value, catastrophe point is not present between the two neighboring sweep length, then Return to perform to intercept and sent from server-side to the complete programs picture to be played of terminal, and the program pictures are stored as figure Piece form, the step of obtaining program picture.
Preferably, it is described to judge that there are further included after catastrophe point step between the two neighboring sweep length:
If all return to execution interception there are catastrophe point between two sweep lengths of arbitrary neighborhood and sent from server-side to end The complete programs picture to be played at end, and the step of be stored as picture format by the program pictures, obtain program picture.
Preferably, intercept and further included before being sent from server-side to the step of complete programs picture to be played of terminal:
After program channel handover request is received, new program channel is switched to;
The program pictures in program channel handoff procedure and sound is kept to cover state;
It is described that the complete programs picture to be played is adjusted according to the reproduction ratio, play the program after adjustment The step of picture, includes:
The complete programs picture to be played is adjusted according to the reproduction ratio, and closes program channel and switched Program pictures and sound in journey cover state, play the program pictures after adjustment.
Preferably, the interception is sent to the complete programs picture to be played of terminal from server-side, and by the program Picture is stored as picture format, and the step of obtaining program picture includes:
Picture capturing function is opened, the reproduction ratio of the terminal is adjusted to 100%, intercepts and is sent from server-side to terminal Complete programs picture to be played, and the program pictures being truncated to are stored in local;
In the storage address of the program pictures, complete picture data is copied;
The picture data is stored as picture format, obtains program picture.
To achieve the above object, the present invention also proposes a kind of TV, and the TV includes:Memory, processor and storage On the memory and the program playing program that can run on the processor, the program playing program is by the processing The step of device realizes program broadcasting method as described above when performing.
To achieve the above object, the present invention also proposes a kind of computer-readable recording medium, the computer-readable storage Program playing program is stored with medium, the program playing program realizes that program as described above plays when being executed by processor The step of method.
Program broadcasting method, TV and storage medium proposed by the present invention, intercept sent from server-side to terminal first Complete programs picture to be played, and the program pictures are stored as picture format, obtain program picture;Then described in scanning Program picture, the size of normal picture in the program picture is obtained according to preset rules;Further according to the size meter of normal picture Calculation obtains the reproduction ratio of terminal;Finally complete programs picture to be played is adjusted according to reproduction ratio, after playing adjustment Program pictures, thus, it is possible to which the image frame sent according to server-side automatically adjusts terminal reproduction ratio, improve image programs and show Integrality and image programs result of broadcast, user can be allowed to see complete normal pictures, while reduce and see abnormal picture Situation, lifted user experience.
Brief description of the drawings
Fig. 1 is the flow diagram of program broadcasting method first embodiment proposed by the present invention;
Fig. 2 is the flow diagram of program broadcasting method second embodiment proposed by the present invention;
Fig. 3 is the coordinate signal of the program picture after being scaled in program broadcasting method second embodiment proposed by the present invention Figure;
Fig. 4 is the refinement flow diagram of step S201 in program broadcasting method second embodiment proposed by the present invention;
Fig. 5 is the flow diagram of program broadcasting method 3rd embodiment proposed by the present invention;
Fig. 6 is the refinement flow diagram of step S10 in the embodiment of the present invention;
Fig. 7 is the hardware running environment schematic diagram that program proposed by the present invention plays TV.
The embodiments will be further described with reference to the accompanying drawings for the realization, the function and the advantages of the object of the present invention.
Embodiment
It should be appreciated that the specific embodiments described herein are merely illustrative of the present invention, it is not intended to limit the present invention.
The primary solutions of the embodiment of the present invention are:Intercept first sent from server-side it is to be played complete to terminal Program pictures, and the program pictures are stored as picture format, obtain program picture;Then the program picture, root are scanned The size of normal picture in the program picture is obtained according to preset rules;End is obtained further according to the Size calculation of the normal picture The reproduction ratio at end;Finally the complete programs picture to be played is adjusted according to the reproduction ratio, after playing adjustment Program pictures.
Since the reproduction ratio that current TV or display are set when dispatching from the factory is fixed, when the image programs that server-side is sent When normal, user can't see complete picture, and when the normal pictures for the image programs that server-side is sent are less than 95%, user It can be appreciated that abnormal picture, thus, cause the image programs that user sees ineffective, experience is bad.
Based on above-mentioned technical problem, the present invention proposes a kind of program broadcasting method, TV and storage medium, according to server-side The image frame automatic adjustment terminal reproduction ratio of transmission, can allow user to see complete normal pictures, while reduce and see exception The situation of picture, lifts user experience.
Specifically, Fig. 1 is refer to, Fig. 1 is the flow diagram for the program broadcasting method that first embodiment of the invention proposes.
The program broadcasting method that the present embodiment is proposed comprises the following steps:
Step S10, intercepts and is sent from server-side to the complete programs picture to be played of terminal, and by the program pictures Picture format is stored as, obtains program picture.
It should be noted that the server-side can be the network service end such as TV station, the terminal can be TV or The terminals such as person's computer, the present embodiment elaborate the present invention by taking TV as an example.
Step S20, scans the program picture, and the ruler of normal picture in the program picture is obtained according to preset rules It is very little.
Wherein, the preset rules can be set as different modes, such as, the program picture is zoomed in advance pre- If scanning the program picture after the scaling after size again, abnormal program is obtained by scanning the program picture after the scaling Size, the size that the abnormal picture is then subtracted with the size of the program picture after the scaling obtain the normal picture Size.
Step S30, the reproduction ratio of terminal is obtained according to the Size calculation of the normal picture.
Wherein, ratio of the reproduction ratio of the terminal between the size of the normal picture and the size of the program picture Example.
Step S40, is adjusted the complete programs picture to be played according to the reproduction ratio, after playing adjustment Program pictures.
After the reproduction ratio of the terminal is calculated, according to the reproduction ratio to being sent from the server-side to the terminal Complete programs picture be adjusted, cut off abnormal program pictures, play normal program pictures.
The present embodiment is sent to the complete programs to be played of terminal through the above technical solutions, intercepting first from server-side Picture, and the program pictures are stored as picture format, obtain program picture;Then the program picture is scanned, according to pre- If the size of normal picture in program picture described in Rule;Terminal is obtained further according to the Size calculation of the normal picture Reproduction ratio;Finally the complete programs picture to be played is adjusted according to the reproduction ratio, plays the program after adjustment Picture, the image frame sent according to server-side automatically adjust terminal reproduction ratio, improve integrality that image programs show with And image programs result of broadcast, allow user to see complete normal pictures, while the situation for seeing abnormal picture is reduced, lifting is used Experience at family.
Further, Fig. 2 is refer to, Fig. 2 is the flow signal for the program broadcasting method that second embodiment of the invention proposes Figure.
Based on the first embodiment shown in Fig. 1, the program pictures are stored as picture format, obtained by above-mentioned steps S10 Further included after the step of program picture:
Step S101, zooms to pre-set dimension, the program picture after being scaled by the program picture.
Wherein, the pre-set dimension can be determined by practical experience value, will be default after the scaling in the present embodiment It is sized to 640*480.
By zooming in and out processing to program picture, picture treatment effeciency and accuracy, and operability can be improved.
Above-mentioned steps S20, the scanning program picture, normogram in the program picture is obtained according to preset rules The step of size of piece, includes:
Step S201, the program picture after scanning the scaling along preset direction, according to the pre-set dimension and default rule Then determine the coordinate of the image edge of the preset direction of normal picture in the program picture after the scaling.
Step S202, obtains in the program picture after the scaling just according to the coordinate of the image edge of the preset direction The size of normal picture.
Wherein, as shown in figure 3, Fig. 3 is the coordinate schematic diagram of the program picture after being scaled in the present embodiment.In the present embodiment In, the coordinate is using the width of the program picture after scaling as abscissa (X-axis), with the height of the program picture after scaling Direction is ordinate (Y-axis).The Y value of the upper end image edge of normal picture (i.e. normal pictures shown in Fig. 3) is after scaling Program picture in upper end abnormal picture (i.e. shown in Fig. 3 abnormal picture) height h1, the lower end figure of the normal picture The Y value at piece edge for scaling after program picture height and scaling after program picture in lower end abnormal picture height h2 Difference (i.e. 480-h2), thus, it is possible to which the height for drawing normal picture is 480-h2-h1;The left side picture side of normal picture The width w1, the X of the right image edge of normal picture of the abnormal picture on the left side in program picture after the X values of edge as scaling The difference of the width w2 of the abnormal picture in the right is (i.e. in program picture after the width and scaling of program picture after being worth for scaling 640-w2), thus, it is possible to which the width for drawing normal picture is 640-w2-w1;Width and height based on normal picture, you can The size of normal picture is calculated:(480-h2-h1)*(640-w2-w1).
Thus, it is possible to which the image frame sent according to server-side automatically adjusts terminal reproduction ratio, improve image programs and show Integrality and image programs result of broadcast, user can be allowed to see complete normal pictures, while reduce and see abnormal picture Situation, lifted user experience.
Fig. 4 is refer to, Fig. 4 is the refinement flow diagram of above-mentioned steps S201 in the present embodiment.
It should be noted that the preset direction includes upper and lower, left and right four direction, after obtaining the scaling Upper end in program picture, lower end, the left side and the right abnormal picture width and height, to the program picture after the scaling When being scanned, scanned respectively from the upper end-face edge of the program picture after the scaling, lower edge, the left side, the right to middle part.
Specifically, in the present embodiment, above-mentioned steps S201, it is described scan the scaling along preset direction after program figure Piece, the figure of the preset direction of normal picture in the program picture after the scaling is determined according to the pre-set dimension and preset rules The coordinate at piece edge, normogram in the program picture after the scaling is obtained according to the coordinate of the image edge of the preset direction The step of size of piece, includes:
Step S2011, preset sweep length, along preset direction since the most edge of the program picture after the scaling to Inside it is scanned, records the average color of each sweep length.
Wherein, the sweep length can be preset by practical experience value, and the sweep length is arranged to by the present embodiment 3。
After default sweep length, inwardly it is scanned, counts since the upper end most edge of the program picture after the scaling Calculate the average color (as shown in table 1) of first sweep length of the program picture after the scaling, and writing scan result; After the completion of first sweep length, second sweep length of the program picture after the scaling is continued to scan on, calculates second The average color of a sweep length, and writing scan is as a result, until complete the scanning range specified.Section after the scaling After the completion of the upper end of mesh picture most edge starts inwardly scanning, the other three direction is continued to scan on, is calculated in each sweep length Average color, and writing scan result.
Table 1
Step S2012, obtains the difference of the average color of two neighboring sweep length.
It is understood that due to being had differences between abnormal picture and normal picture, the exception picture with just Average color between normal picture has differences and is mutated, as shown in table 2, by calculating being averaged for two neighboring sweep length The difference of color value, you can to obtain the position of catastrophe point.
Table 2
Step S2013, by the difference compared with predetermined threshold value pair, the program after the scaling is determined according to comparison result Coordinate of the normal picture along the image edge of preset direction in picture.
The threshold values of a color distortion is set, the color distortions of adjacent two sweep lengths can be considered after exceeding the threshold values The condition of mutation.
Wherein, predetermined threshold value can determine that the predetermined threshold value is set as 30 by the present embodiment according to practical experience value.
If the difference of the average color of two neighboring sweep length is greater than or equal to predetermined threshold value, the phase is judged There are catastrophe point between adjacent two sweep lengths, the coordinate of the catastrophe point is the coordinate of the image edge of normal picture.
It is worth mentioning that the present embodiment is considered to occur along the preset direction there is multiple adjacent two during specific implementation There are the situation of catastrophe point between a sweep length, when there are multiple catastrophe points, the coordinate for choosing last catastrophe point is The coordinate of the image edge of normal picture.
In addition, during scanning, it may appear that two kinds of extreme situations:Do not find catastrophe point, and be all mutation Point.For both of these case, sectional drawing again and scanning (operation to repeat the above steps) can be carried out.If result or phase Together, then the first situation can be judged as the coordinates of normal pictures since 0, and the second situation can judge that picture is all abnormal picture Face, takes the scanning range of maximum.
Specifically, for occurring at this time, then returning all there are the situation of catastrophe point between two sweep lengths of arbitrary neighborhood Above-mentioned steps S10 is performed, intercepts and is sent from server-side to the complete programs picture to be played of terminal, and by the program pictures Picture format is stored as, obtains program picture, and takes the scanning range of maximum to be scanned the program picture after scaling, if As a result it is still identical, then judge all abnormal pictures of the program picture after the scaling.
In addition, if comparison result is less than predetermined threshold value for difference, it is judged as between the two neighboring sweep length not There are catastrophe point, at this time, then returns and performs above-mentioned steps S10, intercepts and is sent from server-side to the complete section to be played of terminal Mesh picture, and program pictures are stored as picture format, program picture is obtained, and take the scanning range of maximum to the section after scaling Mesh picture is scanned, if result or identical, all normal pictures of picture after judgement scaling.
Further, in order to ensure that display picture is normal, can be further added by the basis of the beginning coordinate of normal pictures Certain safe range, with ensure shown picture be it is normal, can be in original safe coordinate base as a kind of example On plinth, 3 safe range is further added by.
Further, Fig. 5 is refer to, Fig. 5 is the flow signal for the program broadcasting method that third embodiment of the invention proposes Figure.
Based on the first embodiment shown in Fig. 1, in above-mentioned steps S10, intercept sent from server-side it is to be played to terminal Complete programs picture the step of before further include:
Step S100, after program channel handover request is received, is switched to new program channel.
Step S102, keeps the program pictures in program channel handoff procedure and sound to cover state.
Above-mentioned steps S40, is adjusted the complete programs picture to be played according to the reproduction ratio, plays adjustment The step of rear program pictures, includes:
Step S401, is adjusted the complete programs picture to be played according to the reproduction ratio, and closes program Program pictures and sound in channel switch procedure cover state, play the program pictures after adjustment.
It is understood that since in program channel handoff procedure, program pictures and sound cover, therefore, in order to User experience is improved, the present embodiment is after program channel handover request is received, and when being switched to new program channel, continues to keep section The state that mesh picture and sound cover.After being adjusted according to the reproduction ratio to the complete programs picture to be played, close The program pictures and sound closed in program channel handoff procedure cover state, play the program pictures after adjustment.
Further, Fig. 6 is refer to, based on the embodiment shown in Fig. 1, fourth embodiment of the invention proposes that a kind of program is broadcast Method is put, Fig. 6 is the refinement flow diagram of above-mentioned steps S10.
Specifically, in the present embodiment, above-mentioned steps S10 comprises the following steps:
Step S103, opens picture capturing function, and the reproduction ratio of terminal is adjusted to 100%, intercepts and is sent from server-side To the complete programs picture to be played of terminal, and the program pictures being truncated to are stored in local.
Step S104, in the storage address of the program pictures, copies complete picture data.
Step S105, is stored as picture format by the picture data, obtains program picture.
It should be noted that the terminal is provided with picture capturing function, when needing to readjust reproduction ratio, open first Open picture capturing function, the reproduction ratio of terminal adjusted to 100%, intercept sent from server-side it is to be played complete to terminal Program pictures, and the program pictures being truncated to are stored in local, then in the storage address of the program pictures, copy Complete picture data, then the picture data is stored as picture format, obtain program picture.Subsequently can be according to the section Mesh picture passes through the various embodiments described above project setting reproduction ratio.In addition, it is necessary to explanation, above-mentioned each embodiment can basis Combination is needed to implement.
The present invention is drawn through the above technical solutions, intercepting the complete programs to be played sent from server-side to terminal first Face, and the program pictures are stored as picture format, obtain program picture;Then the program picture is scanned, according to default The size of normal picture in program picture described in Rule;The weight of terminal is obtained further according to the Size calculation of the normal picture Aobvious rate;Finally the complete programs picture to be played is adjusted according to the reproduction ratio, the program after adjustment is played and draws Face, the image frame sent according to server-side automatically adjust terminal reproduction ratio, user can be allowed to see complete normal pictures, at the same time The situation for seeing abnormal picture is reduced, lifts user experience.
To achieve the above object, the present invention also proposes a kind of TV, and the TV includes:Memory, processor and storage On a memory and the program playing program that can run on the processor, the program playing program are held by the processor The step of program broadcasting method described in the various embodiments described above is realized during row.
Specifically, as shown in fig. 6, the present embodiment TV can include:Processor 1001, such as CPU, network interface 1004, user interface 1003, memory 1005, communication bus 1002.Wherein, communication bus 1002 be used for realization these components it Between connection communication.User interface 1003 can include display screen (Display), input unit such as keyboard (Keyboard), Optional user interface 1003 can also include standard wireline interface and wireless interface.Network interface 1004 can optionally include Standard wireline interface and wireless interface (such as WI-FI interfaces).Memory 1005 can be high-speed RAM memory or steady Fixed memory (non-volatile memory), such as magnetic disk storage.Memory 1005 optionally can also be independently of The storage device of aforementioned processor 1001.
It will be understood by those skilled in the art that the restriction of TV structure shown in Fig. 6 not structure paired terminal, can wrap Include than illustrating more or fewer components, either combine some components or different components arrangement.
As shown in fig. 6, it can lead to as in a kind of memory 1005 of computer-readable storage medium including operation device, network Believe module, Subscriber Interface Module SIM and program playing program.
In the TV shown in Fig. 6, network interface 1004 is mainly used for connecting the webserver, is carried out with the webserver Data communication;User interface 1003 is mainly used for interacting with user terminal, receives instruction input by user;And processor 1001 can For calling the program playing program stored in memory 1005, and perform following operation:
Interception is sent to the complete programs picture to be played of terminal from server-side, and the program pictures are stored as figure Piece form, obtains program picture.
It should be noted that the server-side can be the network service end such as TV station, the terminal can be TV or The terminals such as person's computer, the present embodiment elaborate the present invention by taking TV as an example.
The program picture is scanned, the size of normal picture in the program picture is obtained according to preset rules.
Wherein, the preset rules can be set as different modes, such as, the program picture is zoomed in advance pre- If scanning the program picture after the scaling after size again, abnormal program is obtained by scanning the program picture after the scaling Size, the size that the abnormal picture is then subtracted with the size of the program picture after the scaling obtain the normal picture Size.
The reproduction ratio of terminal is obtained according to the Size calculation of the normal picture.
Wherein, ratio of the reproduction ratio of the terminal between the size of the normal picture and the size of the program picture Example.
The complete programs picture to be played is adjusted according to the reproduction ratio, the program after adjustment is played and draws Face.
After the reproduction ratio of the terminal is calculated, according to the reproduction ratio to being sent from the server-side to the terminal Complete programs picture be adjusted, cut off abnormal program pictures, play normal program pictures.
The present embodiment is sent to the complete programs to be played of terminal through the above technical solutions, intercepting first from server-side Picture, and the program pictures are stored as picture format, obtain program picture;Then the program picture is scanned, according to pre- If the size of normal picture in program picture described in Rule;Terminal is obtained further according to the Size calculation of the normal picture Reproduction ratio;Finally the complete programs picture to be played is adjusted according to the reproduction ratio, plays the program after adjustment Picture, the image frame sent according to server-side automatically adjust terminal reproduction ratio, allow user to see complete normal pictures, at the same time The situation for seeing abnormal picture is reduced, lifts user experience.
Further, processor 1001 can be also used for calling the program playing program stored in memory 1005, and hold The following operation of row:
The program picture is zoomed into pre-set dimension, the program picture after being scaled.
Wherein, the pre-set dimension can be determined by practical experience value, will be default after the scaling in the present embodiment It is sized to 640*480.
Program picture after scanning the scaling along preset direction, according to determining the pre-set dimension and preset rules The coordinate of the image edge of the preset direction of normal picture in program picture after scaling.
Normal picture in the program picture after the scaling is obtained according to the coordinate of the image edge of the preset direction Size.
Wherein, Fig. 3 is refer to, as shown in figure 3, the coordinate that Fig. 3 is the program picture after being scaled described in the present embodiment shows It is intended to.In the present embodiment, the coordinate is using the width of the program picture after the scaling as abscissa (X-axis), with described The short transverse of program picture after scaling is ordinate (Y-axis).The normal picture (i.e. normal pictures shown in Fig. 3) it is upper The Y value of end image edge is the abnormal picture (exception picture i.e. shown in Fig. 3) of upper end in program picture after the scaling Height h1, the Y value of the lower end image edge of the normal picture is the height of the program picture after the scaling and the contracting The difference (i.e. 480-h2) of the height h2 of the abnormal picture of lower end in program picture after putting, thus, it is possible to draw described normal The height of picture is 480-h2-h1;The X values of the left side image edge of the normal picture are the program picture after the scaling The width w1 of the abnormal picture on the middle left side, the X values of the right image edge of the normal picture are the program figure after the scaling The difference (i.e. 640-w2) of the width of piece and the width w2 of the abnormal picture in the right in the program picture after the scaling, thus, can To draw the width of the normal picture as 640-w2-w1;Width and height based on the normal picture, you can to calculate Go out the size of the normal picture:(480-h2-h1)*(640-w2-w1).
It should be noted that the preset direction includes upper and lower, left and right four direction, after obtaining the scaling Upper end in program picture, lower end, the left side and the right abnormal picture width and height, to the program picture after the scaling When being scanned, scanned respectively from the upper end-face edge of the program picture after the scaling, lower edge, the left side, the right to middle part.
Specifically, processor 1001 can be also used for calling the program playing program stored in memory 1005, and perform Operate below:
Default sweep length, is inwardly swept along preset direction since the most edge of the program picture after the scaling Retouch, record the average color of each sweep length.
Wherein, the sweep length can be preset by practical experience value, and the sweep length is arranged to by the present embodiment 3。
After default sweep length, inwardly it is scanned, counts since the upper end most edge of the program picture after the scaling Calculate the average color (as shown in table 3) of first sweep length of the program picture after the scaling, and writing scan result; After the completion of first sweep length, second sweep length of the program picture after the scaling is continued to scan on, calculates second The average color of a sweep length, and writing scan is as a result, until complete the scanning range specified.Section after the scaling After the completion of the upper end of mesh picture most edge starts inwardly scanning, the other three direction is continued to scan on, is calculated in each sweep length Average color, and writing scan result.
Table 3
Obtain the difference of the average color of two neighboring sweep length.
It is understood that due to being had differences between the abnormal picture and normal picture, the exception picture Average color between normal picture has differences and is mutated, as shown in table 4, by calculating two neighboring sweep length The difference of average color, you can to obtain the position of catastrophe point.
Table 4
By the difference compared with predetermined threshold value pair, determined according to comparison result normal in the program picture after the scaling Coordinate of the picture along the image edge of preset direction.
If the difference is greater than or equal to the predetermined threshold value, there is mutation between the two neighboring sweep length Point, the coordinate of the catastrophe point are the coordinate of the image edge of the normal picture.
Wherein, the predetermined threshold value can be determined according to practical experience value, and the default settings are 30 by the present embodiment.
If the difference of the average color of two neighboring sweep length is more than the predetermined threshold value, described two neighboring There are catastrophe point between sweep length, the coordinate of the catastrophe point is the coordinate of the image edge of the normal picture.
It is worth mentioning that the present embodiment is considered to occur along the preset direction there is multiple adjacent two during specific implementation There are the situation of catastrophe point between a sweep length, at this time, the coordinate for choosing last catastrophe point is the normal picture The coordinate of image edge.
In addition, the present embodiment is all deposited between considering to be also possible to occur during specific implementation two sweep lengths of arbitrary neighborhood In the situation of catastrophe point, at this time, then return to execution interception and sent from server-side to the complete programs picture to be played of terminal, and The program pictures are stored as picture format, obtain program picture, and take the scanning range of maximum to the program figure after scaling Piece is scanned, if result or identical, judges all abnormal pictures of the program picture after the scaling.
In addition, if comparison result is less than the predetermined threshold value for the difference, it is judged as that the two neighboring scanning is wide Catastrophe point is not present between degree, at this time, then returns to the complete programs to be played for performing and intercepting and being sent from server-side to terminal and draws Face, and the program pictures are stored as picture format, program picture is obtained, and take the scanning range of maximum to the section after scaling Mesh picture is scanned, if result or identical, judges all normal pictures of picture after the scaling.
Further, processor 1001 can be also used for calling the program playing program stored in memory 1005, and hold The following operation of row:
After program channel handover request is received, new program channel is switched to.
The program pictures in program channel handoff procedure and sound is kept to cover state.
The complete programs picture to be played is adjusted according to the reproduction ratio, and closes program channel and switched Program pictures and sound in journey cover state, play the program pictures after adjustment.
It is understood that since in program channel handoff procedure, program pictures and sound cover, therefore, in order to User experience is improved, the present embodiment is after program channel handover request is received, and when being switched to new program channel, continues to keep section The state that mesh picture and sound cover.After being adjusted according to the reproduction ratio to the complete programs picture to be played, close The program pictures and sound closed in program channel handoff procedure cover state, play the program pictures after adjustment.
Further, processor 1001 can be also used for calling the program playing program stored in memory 1005, and hold The following operation of row:
Picture capturing function is opened, the reproduction ratio of terminal is adjusted to 100%, intercepts to send to terminal from server-side and treats The complete programs picture of broadcasting, and the program pictures being truncated to are stored in local.
In the storage address of the program pictures, complete picture data is copied.
The picture data is stored as picture format, obtains program picture.
The present invention is drawn through the above technical solutions, intercepting the complete programs to be played sent from server-side to terminal first Face, and the program pictures are stored as picture format, obtain program picture;Then the program picture is scanned, according to default The size of normal picture in program picture described in Rule;The weight of terminal is obtained further according to the Size calculation of the normal picture Aobvious rate;Finally the complete programs picture to be played is adjusted according to the reproduction ratio, the program after adjustment is played and draws Face, the image frame sent according to server-side automatically adjust terminal reproduction ratio, user can be allowed to see complete normal pictures, at the same time The situation for seeing abnormal picture is reduced, lifts user experience.
To achieve the above object, the present invention also proposes a kind of computer-readable recording medium, the computer-readable storage medium Program playing program is stored with matter, the program described in upper each embodiment is realized when the program playing program is executed by processor The step of playback method, details are not described herein.
It should be noted that the embodiments of the present invention are for illustration only, the quality of embodiment is not represented.
Through the above description of the embodiments, those skilled in the art can be understood that above-described embodiment side Method can add the mode of required general hardware platform to realize by software, naturally it is also possible to by hardware, but in many cases The former is more preferably embodiment.Based on such understanding, technical scheme substantially in other words does the prior art Going out the part of contribution can be embodied in the form of software product, which is stored in a storage as above In medium (such as ROM/RAM, magnetic disc, CD), including some instructions use so that a station terminal equipment (can be mobile phone, TV Machine, computer etc.) method that performs each embodiment of the present invention.
It these are only the preferred embodiment of the present invention, be not intended to limit the scope of the invention, it is every to utilize this hair The equivalent structure or equivalent flow shift that bright specification and accompanying drawing content are made, is directly or indirectly used in other relevant skills Art field, is included within the scope of the present invention.

Claims (10)

1. a kind of program broadcasting method, it is characterised in that the described method comprises the following steps:
Interception is sent to the complete programs picture to be played of terminal from server-side, and the program pictures are stored as picture lattice Formula, obtains program picture;
The program picture is scanned, the size of normal picture in the program picture is obtained according to preset rules;
The reproduction ratio of terminal is obtained according to the Size calculation of the normal picture;
The complete programs picture to be played is adjusted according to the reproduction ratio, plays the program pictures after adjustment.
2. program broadcasting method according to claim 1, it is characterised in that the program pictures are stored as picture lattice Formula, further includes after the step of obtaining program picture:
The program picture is zoomed into pre-set dimension, the program picture after being scaled;
The scanning program picture, the step of obtaining the size of normal picture in the program picture according to preset rules, wrap Include:
Program picture after scanning the scaling along preset direction, the scaling is determined according to the pre-set dimension and preset rules In program picture afterwards, the coordinate of the image edge of the preset direction of normal picture;
The size of normal picture in the program picture after the scaling is obtained according to the coordinate of the image edge of the preset direction.
3. program broadcasting method according to claim 2, it is characterised in that the preset direction includes:Upper and lower, left and right Four direction, it is described scan the scaling along preset direction after program picture, it is true according to the pre-set dimension and preset rules Include in program picture after the fixed scaling the step of coordinate of the image edge of the preset direction of normal picture:
Default sweep length, is inwardly scanned along preset direction since the most edge of the program picture after the scaling, remembers Record the average color of each sweep length;
Obtain the difference of the average color of two neighboring sweep length;
By the difference compared with predetermined threshold value pair;If the difference is greater than or equal to the predetermined threshold value, the phase is judged There are catastrophe point between adjacent two sweep lengths, the coordinate of the catastrophe point is the coordinate of the image edge of the normal picture.
4. program broadcasting method according to claim 3, it is characterised in that described to judge the two neighboring sweep length Between there are further include after the step of catastrophe point:
If along there are catastrophe point, the coordinate of last catastrophe point between the multiple two neighboring sweep lengths of the preset direction For the coordinate of the image edge of the normal picture.
5. program broadcasting method according to claim 3, it is characterised in that by the difference to step compared with predetermined threshold value Further included after rapid:
If the difference is less than the predetermined threshold value, catastrophe point is not present between the two neighboring sweep length, then returns Perform interception to send to the complete programs picture to be played of terminal from server-side, and the program pictures are stored as picture lattice Formula, the step of obtaining program picture.
6. program broadcasting method according to claim 3, it is characterised in that described to judge the two neighboring sweep length Between there are further include after catastrophe point step:
If all return to execution interception there are catastrophe point between two sweep lengths of arbitrary neighborhood and sent from server-side to terminal Complete programs picture to be played, and the step of be stored as picture format by the program pictures, obtain program picture.
7. according to the program broadcasting method described in any one in claim 1-6, it is characterised in that interception is sent from server-side To terminal complete programs picture to be played the step of before further include:
After program channel handover request is received, new program channel is switched to;
The program pictures in program channel handoff procedure and sound is kept to cover state;
It is described that the complete programs picture to be played is adjusted according to the reproduction ratio, play the program pictures after adjustment The step of include:
The complete programs picture to be played is adjusted according to the reproduction ratio, and is closed in program channel handoff procedure Program pictures and sound cover state, play the program pictures after adjustment.
8. according to the program broadcasting method described in any one in claim 1-6, it is characterised in that described to intercept from server-side Send to the complete programs picture to be played of terminal, and the program pictures are stored as picture format, obtain program picture The step of include:
Picture capturing function is opened, the reproduction ratio of the terminal is adjusted to 100%, intercepts to send to terminal from server-side and treats The complete programs picture of broadcasting, and the program pictures being truncated to are stored in local;
In the storage address of the program pictures, complete picture data is copied;
The picture data is stored as picture format, obtains program picture.
9. a kind of TV, it is characterised in that the TV includes:Memory, processor and it is stored on the memory and can The program playing program run on the processor, realizes such as right when the program playing program is performed by the processor It is required that in 1-8 the step of program broadcasting method described in any one.
10. a kind of computer-readable recording medium, it is characterised in that be stored with program on the computer-readable recording medium and broadcast Program is put, realizes that the program as any one of claim 1-8 plays when the program playing program is executed by processor The step of method.
CN201711283337.8A 2017-12-06 2017-12-06 Program playing method, television and storage medium Active CN108012180B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711283337.8A CN108012180B (en) 2017-12-06 2017-12-06 Program playing method, television and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711283337.8A CN108012180B (en) 2017-12-06 2017-12-06 Program playing method, television and storage medium

Publications (2)

Publication Number Publication Date
CN108012180A true CN108012180A (en) 2018-05-08
CN108012180B CN108012180B (en) 2020-12-08

Family

ID=62057418

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711283337.8A Active CN108012180B (en) 2017-12-06 2017-12-06 Program playing method, television and storage medium

Country Status (1)

Country Link
CN (1) CN108012180B (en)

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020047855A1 (en) * 2000-10-25 2002-04-25 Takashi Aoki Display panel with aspect ratio of matrix-arrayed pixels set to predetermined value, and display device using such display panel
CN101459788A (en) * 2007-12-10 2009-06-17 深圳Tcl新技术有限公司 Method and apparatus for regulating video reproduction rate
CN102543043A (en) * 2012-02-03 2012-07-04 深圳创维-Rgb电子有限公司 Overscanning automatic adjustment method and system of display equipment
CN103024315A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Method for adjusting television picture size in real time according to video content
CN103037241A (en) * 2012-12-20 2013-04-10 广州视源电子科技股份有限公司 Automatic test system of reproduction ratio
CN103702181A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for processing video image
CN105959824A (en) * 2016-04-26 2016-09-21 深圳Tcl数字技术有限公司 Method and device for debugging the reproduction ratio of display device

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20020047855A1 (en) * 2000-10-25 2002-04-25 Takashi Aoki Display panel with aspect ratio of matrix-arrayed pixels set to predetermined value, and display device using such display panel
CN101459788A (en) * 2007-12-10 2009-06-17 深圳Tcl新技术有限公司 Method and apparatus for regulating video reproduction rate
CN102543043A (en) * 2012-02-03 2012-07-04 深圳创维-Rgb电子有限公司 Overscanning automatic adjustment method and system of display equipment
CN103024315A (en) * 2012-12-17 2013-04-03 四川长虹电器股份有限公司 Method for adjusting television picture size in real time according to video content
CN103037241A (en) * 2012-12-20 2013-04-10 广州视源电子科技股份有限公司 Automatic test system of reproduction ratio
CN103702181A (en) * 2013-12-13 2014-04-02 乐视网信息技术(北京)股份有限公司 Method and device for processing video image
CN105959824A (en) * 2016-04-26 2016-09-21 深圳Tcl数字技术有限公司 Method and device for debugging the reproduction ratio of display device

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
姚军等: "高清晰度电视图形误差的自动调整", 《电视技术》 *

Also Published As

Publication number Publication date
CN108012180B (en) 2020-12-08

Similar Documents

Publication Publication Date Title
KR101124826B1 (en) Mobile telephone apparatus, display method, and computer readable recording medium having program
WO2010026745A1 (en) Content display processing device and content display processing method
KR101472483B1 (en) Video screen display method and device
KR102189345B1 (en) Establishing a video conference during a phone call
US20050104909A1 (en) Communications system and method
JP2004214771A (en) Image processor, image processing method, and its program
CN1496182A (en) Device and method for displaying TV video signal for mobile terminal
WO2012037850A1 (en) Mobile terminal and method thereof for magnifying portion of remote image in video call
CN112672388A (en) Call method, device, storage medium and user terminal
US20100238468A1 (en) Image processing apparatus and control method of image forming apparatus
JPWO2015012040A1 (en) Image processing apparatus, imaging apparatus, image processing method, and program
US20200272399A1 (en) Image processing method and apparatus
CN104469244A (en) A network based video image adjusting method and system
CN113301342B (en) Video coding method, network live broadcasting method, device and terminal equipment
JP2007288355A (en) Wireless communication terminal
US20140173667A1 (en) Mobile phone, display method and computer program
JP2005101930A (en) Portable communication terminal
CN108012180A (en) Program broadcasting method, TV and storage medium
JP4941219B2 (en) Noise suppression device, noise suppression method, noise suppression program, and imaging device
CN110611739B (en) Video color ring playing method, terminal and computer readable storage medium
KR101370896B1 (en) A method for processing image in mobile communication terminal and the mobile communication terminal
JP2005202593A (en) Image processing device, program and method
CN107368277A (en) The processing method and mobile terminal that volume bar is shown
JPWO2017042983A1 (en) Screen sharing apparatus, screen sharing method, screen sharing system, and program thereof
JP2011129995A (en) Communication terminal device, image processing method and program for the same, and image communication system

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