CN104363504A - Video display switching method and device - Google Patents

Video display switching method and device Download PDF

Info

Publication number
CN104363504A
CN104363504A CN201410647938.2A CN201410647938A CN104363504A CN 104363504 A CN104363504 A CN 104363504A CN 201410647938 A CN201410647938 A CN 201410647938A CN 104363504 A CN104363504 A CN 104363504A
Authority
CN
China
Prior art keywords
video data
video
unit
hardware
handoff scenario
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410647938.2A
Other languages
Chinese (zh)
Inventor
魏宏强
陈小川
肖丹灵
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Allwinner Technology Co Ltd
Original Assignee
Allwinner 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 Allwinner Technology Co Ltd filed Critical Allwinner Technology Co Ltd
Priority to CN201410647938.2A priority Critical patent/CN104363504A/en
Publication of CN104363504A publication Critical patent/CN104363504A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N21/00Selective content distribution, e.g. interactive television or video on demand [VOD]
    • H04N21/40Client devices specifically adapted for the reception of or interaction with content, e.g. set-top-box [STB]; Operations thereof
    • H04N21/43Processing of content or additional data, e.g. demultiplexing additional data from a digital video stream; Elementary client operations, e.g. monitoring of home network or synchronising decoder's clock; Client middleware
    • H04N21/431Generation of visual interfaces for content selection or interaction; Content or additional data rendering
    • H04N21/4312Generation of visual interfaces for content selection or interaction; Content or additional data rendering involving specific graphical features, e.g. screen layout, special fonts or colors, blinking icons, highlights or animations
    • 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, rendering scenes according to MPEG-4 scene graphs
    • H04N21/4402Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display
    • H04N21/440218Processing of video elementary streams, e.g. splicing a video clip retrieved from local storage with an incoming video stream, rendering scenes according to MPEG-4 scene graphs involving reformatting operations of video signals for household redistribution, storage or real-time display by transcoding between formats or standards, e.g. from MPEG-2 to MPEG-4

Abstract

The invention relates to the technical field of video display, in particular to a video display switching method. The method includes the first step of presetting a switching scene, the second step of ceaselessly detecting whether an actual application scene in the current video display process is consistent with the switching scene or not, the third step of if entering the switching scene, outputting the received video data into a hardware layer after image processing is conducted on the received video data, and if not entering the switching scene, directly outputting the received video data into the hardware layer. The invention further relates to a video display switching device. By designing the video display switching method and device, according to the comparison result of the preset switching scene and the actual application scene, the state that the video data are directly outputted into the hardware layer and the state that the video data are outputted into the hardware layer after image processing is conducted on the video data are dynamically switched; due to the switching method, the normal video display of some actual application scenes is not influenced, power consumption can be lowered, and less bandwidth is occupied.

Description

A kind of changing method of video display and device
Technical field
The present invention relates to video display arts field, be specifically related to changing method and the device of the display of a kind of video.
Background technology
In current video playback electronic product, particularly based on the product of Android OS, when displaying video, general exist two kinds of player methods: 1, video data directly outputs to hardware layer and shows; 2, video data is by GPU (Graphic Processing Unit, graphic process unit), outputs to hardware layer again and show after carrying out image procossing.
But in the dynamic rotary of video or the practical application scene of other influences video normal play, video data directly outputs to the viewing effect that hardware layer can affect video, need that video data is carried out image procossing and output to hardware layer again, ensure video playing quality.But video playback can increase power consumption by image procossing, and take more bandwidth.
Existing video display mode, cannot according to practical application scene, video data directly output to hardware layer and by image procossing after output between hardware layer again, carry out switching at runtime.
Summary of the invention
The technical problem to be solved in the present invention is, for the above-mentioned defect of prior art, the changing method providing a kind of video to show and device, be convenient to according to practical application scene, video data directly output to hardware layer and by image procossing after output between hardware layer again, carry out switching at runtime.
The technical solution adopted for the present invention to solve the technical problems is: the changing method providing a kind of video to show, comprises step:
A, default handoff scenario;
B, according to described handoff scenario, whether the practical application scene constantly detected in current video playing process is consistent with described handoff scenario;
If C practical application scene is consistent with described handoff scenario, by the video data that receives after image procossing, then output in hardware layer; If practical application scene and described handoff scenario inconsistent, the video data received directly is outputted in hardware layer.
Wherein, preferred version is: the handoff scenario in described steps A comprises the some scenes affecting video normal play
Wherein, preferred version is: described handoff scenario comprises the scene of video rotation and the scene of current video and next video switch.
Wherein, preferred version is, the step entering processing video data during handoff scenario in described step C specifically comprises:
C11, determine that practical application scene is consistent with described handoff scenario, the video data received is left in memory headroom;
C12, extraction video data, carried out image procossing and obtain display data, then being shown by hardware layer by video data.
Wherein, preferred version is, in described step C12, the mode of image procossing comprises: carried out formaing by video data and be input in CPU, carries out the data processing of being correlated with and output display data
Wherein, preferred version is, the step not entering processing video data during handoff scenario in described step C specifically comprises:
C21, determine practical application scene and described handoff scenario inconsistent, the video data received to be left in memory headroom and to obtain the address information of corresponding memory headroom, then address information being outputted in hardware layer;
C22, location, hardware layer base area information read the video data in corresponding memory headroom, and are shown by hardware layer.
The technical solution adopted for the present invention to solve the technical problems is: provide the switching device shifter that a kind of video shows, comprise for receiving video data video data receiving element, judge whether to enter for detecting handoff environment judging unit, for video data is carried out image procossing GPU unit and for the treatment of and the hardware chart layer unit of playing video data, described video data receiving element, described judging unit, described GPU unit are connected successively with described hardware chart layer unit, and described judging unit is also directly connected with described hardware chart layer unit; Whether described judging unit is consistent with described handoff scenario according to the practical application scene in video display process, selects to be connected with described hardware chart layer unit by described GPU unit, or is directly connected with described hardware chart layer unit.
Wherein, preferred version is: described GPU unit comprises for video data being carried out the GPU processing module of image procossing and being used for the first memory module of stored video data, first memory module is connected with described video data receiving element and described GPU processing module respectively, and described GPU processing module is connected with described hardware chart layer unit.
Wherein, preferred version is: also comprise the second memory module for stored video data, and the second memory module is connected with described video data receiving element and described hardware chart layer unit respectively.
Wherein, preferred version is: also comprise for controlling/Graphical User the unit of displaying video, described Graphical User unit is connected with described hardware layer.
Beneficial effect of the present invention is, compared with prior art, the present invention is by designing changing method and the device of the display of a kind of video, according to the handoff scenario preset and the comparing result of practical application scene, video data directly output to hardware layer and by image procossing after output between hardware layer again, carry out switching at runtime; This changing method does not only affect the video normal play of some practical application scenes, can also reduce power consumption, and takies less bandwidth.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the flow chart of changing method of the present invention;
Fig. 2 is the flow chart that video data of the present invention carries out that image procossing outputs to hardware layer again;
Fig. 3 is the flow chart that video data of the present invention directly outputs to hardware layer;
Fig. 4 is the structural representation of switching device shifter of the present invention;
Fig. 5 is the structural representation that video data of the present invention carries out that image procossing outputs to hardware layer again;
Fig. 6 is the structural representation that video data of the present invention directly outputs to hardware layer.
Embodiment
Now by reference to the accompanying drawings, preferred embodiment of the present invention is elaborated.
As shown in Figure 1, the invention provides the preferred embodiment of the changing method of a kind of video display, Fig. 1 is the flow chart of changing method of the present invention.
A changing method for video display, specifically comprises the following steps:
A, default handoff scenario;
The handoff scenario that B, basis are preset, constantly whether the practical application scene detected in current video playing process enters handoff scenario;
If C enters handoff scenario, after the video data received is carried out image procossing, then output in hardware layer; If do not enter handoff scenario, the video data received directly is outputted in hardware layer.
Wherein, displaying video refers to be play a video file, and the changing method of video display provided by the present invention is after a video file is play, the operation of the detection carried out, judgement, execution; Refer in particular to out, the present invention is preferred for the electronic equipment of Android OS.
Further, handoff scenario comprises some scenes for affecting video normal play, and handoff scenario preferably includes scene that video rotates and current video is switched to the scene of next video.Mainly referring in normal video playing process for affecting video normal play, not controlled by external control or electronic equipment self, broadcasting interference is carried out to video, does not affect video image quality problem, do not affect user and watch video.Now, video data directly outputs in hardware layer, reduces power consumption, and takies less bandwidth.Wherein handoff scenario is not limited to preferred two kinds of scenes, and carry out full frame operation as video display process or exit full frame operation, these scenes can pre-set.
In video display process, constantly can detect current state, normal condition is inoperation state, video normal play; If abnormal condition detected, abnormal condition is mode of operation, can judge now whether enter handoff scenario, if enter handoff scenario, then video data no longer directly outputs in hardware layer.
Changing method of the present invention video data directly output to hardware layer be switched to after by image procossing export after, if again detect and exited handoff scenario, video data can switch back directly output in hardware layer by exporting hardware layer after image procossing.
Further, the video data in the present embodiment is the coherent signal received, the signal obtained after decoding.
As shown in Figures 2 and 3, the invention provides the preferred embodiment of video data transmission mode, Fig. 2 is the flow chart that video data of the present invention carries out that image procossing outputs to hardware layer again; Fig. 3 is the flow chart that video data of the present invention directly outputs to hardware layer;
Carry out image procossing at video data to output to again in hardware layer, specifically comprise step:
C11, determine that practical application scene is consistent with described handoff scenario, the video data received is left in memory headroom;
C12, extraction video data, carried out image procossing and obtain display data, then being shown by hardware layer by video data.
In the present embodiment, in step C12, the mode of image procossing is: carried out formaing by video data and be input in CPU, carries out the data processing of being correlated with and output display data.GPU is the core processor of a specialized graphics process, for calculating polygonal 3D position and the dynamic light effects of process; Memory headroom is preferably GPU buffer register.
Special one carries, and video data carries out formaing and obtains this operation of formatted data, is the coherent signal in order to allow video data change into the access of GPU identifiable design.
Directly output in hardware layer at video data, specifically comprise the following steps:
C21, determine not enter handoff scenario, the video data received to be left in memory headroom and to obtain the address information of corresponding memory headroom, then address information being outputted in hardware layer;
C22, location, hardware layer base area information read the video data in corresponding memory headroom, and are shown by hardware layer.
For directly outputting to hardware layer and outputting to hardware layer again through image procossing, the order only having data to arrange in internal memory is more between the two variant, but in video playback, data through the display data output per second of image procossing are more, also want frequent transitions and carrying data, larger bandwidth can be taken, and directly output to hardware layer and can save above-mentioned bandwidth, and reduce the power consumption of GPU running.
As shown in Figure 4, Figure 5 and Figure 6, the invention provides the preferred embodiment of the switching device shifter of a kind of video display, Fig. 4 is the structural representation of switching device shifter, Fig. 5 is the structural representation that video data carries out that image procossing outputs to hardware layer again, and Fig. 6 is the structural representation that video data directly outputs to hardware layer.
A switching device shifter for video display, comprise the video data receiving element 10, judging unit 20, GPU unit 40 and the hardware chart layer unit 30 that connect successively, judging unit 20 is also connected with hardware chart layer unit 30.
Wherein, video data receiving element 10 is for decoding receiving video data these video datas, and the video data mentioned by the present invention is all through decoded signal; Judging unit 20, in video display process, constantly detects and judges whether to enter handoff scenario, is directly connected with hardware chart layer unit 30, if enter handoff scenario, with GPU unit 40 if do not enter handoff scenario; GPU unit 40 carries out image procossing for the video data sent judging unit 20, is convenient to video normal play in handoff scenario; Hardware chart layer unit 30 for the treatment of with broadcasting associated video data.
Whether judging unit 20 enters handoff scenario according to the practical application scene in video display process, selects to be connected with hardware chart layer unit 30 by GPU unit 40, or is directly connected with hardware chart layer unit 30.
Further, GPU unit 40 comprises GPU processing module 42 and the first memory module 41, first memory module 41 is connected with video data receiving element 10 and GPU processing module 42 respectively, and GPU processing module 42 is connected with hardware chart layer unit 30.GPU processing module 42 is GPU processor preferably, for carrying out image procossing to video data; First memory module 41 is GPU buffer register preferably, for storing related data.
In video data process, judging unit 20 detects and enters handoff scenario, and is sent to by decoded video data in the first memory module 41; GPU processing module 42 asks the first memory module 41, is carried out formaing and obtaining formatted data by the video data of correspondence position in the first memory module 41, then is stored in by formatted data in the first memory module 41 that GPU processing module 42 asks; GPU processing module 42 extracts formatted data, formatted data is carried out corresponding image procossing by GPU processing module 42 and obtains display data, then being shown by hardware chart layer unit 30.
Further, switching device shifter also comprises the second memory module 60, second memory module 60 and is connected with video data receiving element 10 and hardware chart layer unit 30 respectively.
In video data process, judging unit 20 detects and does not enter handoff scenario, video data to leave in the second memory module 60 and obtains the address information of corresponding second memory module 60 by judging unit 20, then outputs in hardware chart layer unit 30 by the address information of the second memory module 60; Hardware chart layer unit 30 according to address information reading video data, and is shown by hardware chart layer unit 30.
Further, switching device shifter also comprises Graphical User unit 50, and Graphical User unit 50 is connected with hardware chart layer unit 30.Graphical User unit 50 comprises the display interface of switching device shifter.Graphical User unit 50, for controlling video/broadcasting display, also can trigger and enter handoff scenario, video data is switched, the full frame operation of video described above in Graphical User unit 50.
Hardware chart layer unit 30 is for supporting that Graphical User unit 50 carries out for operations such as control/displaying videos, when Graphical User unit 50 controls video, first control signal is sent to hardware chart layer unit 30, after hardware chart layer unit 30 carries out data processing according to control signal, feed back to Graphical User unit 50, Graphical User unit 50 shows; Simultaneously, hardware chart layer unit 30 is also for supporting the video playback of Graphical User unit 50, during Graphical User unit 50 playing video data, first will receive video data is sent in hardware chart layer unit 30, and carry out respective handling in hardware chart layer unit 30 after, then shown by Graphical User unit 50.
As described above, be only preferred embodiment, and not for limiting the scope of the invention, all equivalences done according to the present patent application the scope of the claims change or modify, and are all the present invention and contain.

Claims (10)

1. a changing method for video display, is characterized in that, comprise step:
A, default handoff scenario;
B, according to described handoff scenario, whether the practical application scene constantly detected in current video playing process is consistent with described handoff scenario;
If C practical application scene is consistent with described handoff scenario, by the video data that receives after image procossing, then output in hardware layer; If practical application scene and described handoff scenario inconsistent, the video data received directly is outputted in hardware layer.
2. changing method according to claim 1, is characterized in that: the handoff scenario in described steps A comprises the some scenes affecting video normal play.
3. changing method according to claim 2, is characterized in that: described handoff scenario comprises the scene of video rotation and the scene of current video and next video switch.
4. changing method according to claim 1, is characterized in that, the step entering processing video data during handoff scenario in described step C specifically comprises:
C11, determine that practical application scene is consistent with described handoff scenario, the video data received is left in memory headroom;
C12, extraction video data, carried out image procossing and obtain display data, then being shown by hardware layer by video data.
5. changing method according to claim 4, is characterized in that, in described step C12, the mode of image procossing comprises: carried out formaing by video data and be input in CPU, carries out the data processing of being correlated with and output display data.
6. changing method according to claim 1, is characterized in that, the step not entering processing video data during handoff scenario in described step C specifically comprises:
C21, determine practical application scene and described handoff scenario inconsistent, the video data received to be left in memory headroom and to obtain the address information of corresponding memory headroom, then address information being outputted in hardware layer;
C22, location, hardware layer base area information read the video data in corresponding memory headroom, and are shown by hardware layer.
7. the switching device shifter of a video display, it is characterized in that: comprise for receiving video data video data receiving element, judge whether to enter for detecting handoff environment judging unit, for video data is carried out image procossing GPU unit and for the treatment of and the hardware chart layer unit of playing video data, described video data receiving element, described judging unit, described GPU unit are connected successively with described hardware chart layer unit, and described judging unit is also directly connected with described hardware chart layer unit;
Whether described judging unit is consistent with described handoff scenario according to the practical application scene in video display process, selects to be connected with described hardware chart layer unit by described GPU unit, or is directly connected with described hardware chart layer unit.
8. switching device shifter according to claim 7, it is characterized in that: described GPU unit comprises for video data being carried out the GPU processing module of image procossing and being used for the first memory module of stored video data, first memory module is connected with described video data receiving element and described GPU processing module respectively, and described GPU processing module is connected with described hardware chart layer unit.
9. switching device shifter according to claim 8, is characterized in that: also comprise the second memory module for stored video data, and the second memory module is connected with described video data receiving element and described hardware chart layer unit respectively.
10. switching device shifter according to claim 7, is characterized in that: also comprise for controlling/Graphical User the unit of displaying video, described Graphical User unit is connected with described hardware layer.
CN201410647938.2A 2014-11-13 2014-11-13 Video display switching method and device Pending CN104363504A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410647938.2A CN104363504A (en) 2014-11-13 2014-11-13 Video display switching method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410647938.2A CN104363504A (en) 2014-11-13 2014-11-13 Video display switching method and device

Publications (1)

Publication Number Publication Date
CN104363504A true CN104363504A (en) 2015-02-18

Family

ID=52530721

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410647938.2A Pending CN104363504A (en) 2014-11-13 2014-11-13 Video display switching method and device

Country Status (1)

Country Link
CN (1) CN104363504A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331831A (en) * 2016-09-07 2017-01-11 珠海市魅族科技有限公司 Method and device for image processing

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274087A1 (en) * 2005-06-07 2006-12-07 Samsung Electronics Co., Ltd. Method of presenting images on the screen of a display provided in a wireless terminal and wireless terminal implementing the same
CN101958112A (en) * 2010-10-13 2011-01-26 福州瑞芯微电子有限公司 Method for realizing rotation of handheld device screen pictures by 90 degrees and 270 degrees simultaneously
CN102023807A (en) * 2010-12-17 2011-04-20 福州瑞芯微电子有限公司 System realizing clockwise 270-degree rotation of screen
CN103377030A (en) * 2012-04-26 2013-10-30 华为技术有限公司 Image rotation control method and device

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060274087A1 (en) * 2005-06-07 2006-12-07 Samsung Electronics Co., Ltd. Method of presenting images on the screen of a display provided in a wireless terminal and wireless terminal implementing the same
CN101958112A (en) * 2010-10-13 2011-01-26 福州瑞芯微电子有限公司 Method for realizing rotation of handheld device screen pictures by 90 degrees and 270 degrees simultaneously
CN102023807A (en) * 2010-12-17 2011-04-20 福州瑞芯微电子有限公司 System realizing clockwise 270-degree rotation of screen
CN103377030A (en) * 2012-04-26 2013-10-30 华为技术有限公司 Image rotation control method and device

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106331831A (en) * 2016-09-07 2017-01-11 珠海市魅族科技有限公司 Method and device for image processing
CN106331831B (en) * 2016-09-07 2019-05-03 珠海市魅族科技有限公司 The method and device of image procossing

Similar Documents

Publication Publication Date Title
TWI452514B (en) Computer system and method for configuring the same
AU2013226464B2 (en) Cable with fade and hot plug features
US9626313B2 (en) Trace buffer based replay for context switching
KR20140039068A (en) Displaying static images
JP2016509261A (en) Power saving method and apparatus in display pipeline by powering down idle components
US11763414B2 (en) Glitchless GPU switching at a multiplexer
US20200105227A1 (en) Methods and apparatus for improving frame rendering
US20200104973A1 (en) Methods and apparatus for frame composition alignment
US10623683B1 (en) Methods and apparatus for improving image retention
WO2021000220A1 (en) Methods and apparatus for dynamic jank reduction
US20230335049A1 (en) Display panel fps switching
CN104363504A (en) Video display switching method and device
US20230074876A1 (en) Delaying dsi clock change based on frame update to provide smoother user interface experience
CN107735772B (en) Data writing method and device
CN106027925B (en) display control method and device of OSD menu
CN112995559A (en) Video processing method, device and system, display controller and display control system
US11615537B2 (en) Methods and apparatus for motion estimation based on region discontinuity
US10755666B2 (en) Content refresh on a display with hybrid refresh mode
US20240096042A1 (en) Methods and apparatus for saliency based frame color enhancement
TW201308089A (en) Circuit and method for rapidly transmitting data
WO2024055234A1 (en) Oled anti-aging regional compensation
KR20150128105A (en) Apparatus and method for displaying AVN booting logo

Legal Events

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

Application publication date: 20150218