CN102929634A - Control method for video display - Google Patents

Control method for video display Download PDF

Info

Publication number
CN102929634A
CN102929634A CN2012104400269A CN201210440026A CN102929634A CN 102929634 A CN102929634 A CN 102929634A CN 2012104400269 A CN2012104400269 A CN 2012104400269A CN 201210440026 A CN201210440026 A CN 201210440026A CN 102929634 A CN102929634 A CN 102929634A
Authority
CN
China
Prior art keywords
video
display
video source
display parameter
unit
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
CN2012104400269A
Other languages
Chinese (zh)
Other versions
CN102929634B (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.)
Shanghai Velcro Automotive Electronics Co., Ltd
Original Assignee
Huizhou Desay SV Automotive 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 Huizhou Desay SV Automotive Co Ltd filed Critical Huizhou Desay SV Automotive Co Ltd
Priority to CN201210440026.9A priority Critical patent/CN102929634B/en
Publication of CN102929634A publication Critical patent/CN102929634A/en
Application granted granted Critical
Publication of CN102929634B publication Critical patent/CN102929634B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Images

Abstract

The invention discloses a control method for video display. The control method includes that step one, video source selection is performed through a video source selection unit; step two, selected videos are subjected to display parameter setting through a display parameter configuration unit; step three, videos are displayed after enable video display by a display enable unit, the video source selection unit comprises a video source selection interface and a video source selection driving unit which is called by the video source selection interface, the display parameter configuration unit comprises a display parameter configuration interface and a display driving unit which is called by the display parameter configuration interface, and the display enable unit comprises a display enable interface and a display enable driving unit which is called by the display enable interface. According to the control method for the video display, the underlaying drive is subjected to packaging, the usage of the video display and processing function is simple and convenient, by means of the packaging of a directdraw interface, the video display is performed without calling a Directshow interface, and the occupation ratio of central processing unit (CPU) during video displaying is efficiently reduced.

Description

The control method that a kind of video shows
Technical field
The present invention relates to the control method that a kind of video shows.
Background technology
The video of mobile unit shows and processes generally needs proprietary video frequency processing chip to realize Special display effect, realize special efficacy (as amplify, dwindle, semi-transparent, picture-in-picture) method all be the DirectShow Interface realization that provides by Microsoft.This has just brought series of problems, will inevitably increase system cost such as proprietary video frequency processing chip, by the Interface realization special efficacy that DirectShow provides, system CPU occupancy rate is higher, in the limited situation of system resource, can't move other application programs, such as navigate application etc.On the other hand, by the Interface realization special efficacy that DirectShow provides, need the research staff to be familiar with the DirectShow programming.
Summary of the invention
For the video that solves above-mentioned existing mobile unit shows and processes the problem that exists, the invention provides a kind of design proposal of the video display control method based on directdraw.
The control method that a kind of video shows may further comprise the steps: (1) is carried out video source by the video source selected cell and is selected; (2) by the display parameter dispensing unit video of selecting is carried out the display parameter setting; (3) enable the cell enable video by demonstration and show rear display video; Described video source selected cell comprises the video source option interface and selects driver element by its video source of calling; Described display parameter dispensing unit comprises the display parameter configuration interface and connects the display driver unit that calls by it; Described demonstration enables the unit and comprises that demonstration enables interface and enables driver element by its demonstration of calling.
Concrete, the implementation method of described video source selected cell is:
(1) calling video source by the video source option interface selects driver element to select video source;
(2) video source is selected the driver element video device access, video source is set behind the successful access video equipment and obtains the signal condition of video, video source maybe can't be set or obtain then to return abnormal results and finish less than the signal condition of video and call if video device access is unsuccessful.(video source is set what refers to?)
(3) whether exist the information of normal signal to send to the display parameter dispensing unit this video source.
More specifically, the implementation method of described display parameter dispensing unit is:
(1) the display parameter dispensing unit has judged whether that the external command requirement is configured display parameter, if have then and to call the display driver unit by the display parameter configuration interface the corresponding display parameter of the video source chosen are configured, otherwise then skip the display parameter configuration;
(2) display parameter then return abnormal results and end is called if can't successfully dispose;
(3) relevant information that this video source is successfully disposed display parameter sends to and shows and enable the unit.
More specifically, described demonstration enables the implementation method of unit and is:
(1) demonstration that enables interface interchange by demonstration enables driver element and enables video and show;
(2) enable driver element and create the video surface by directdraw, then obtain this video surface memory address, maybe can't obtain this video surface memory address and then return abnormal results and finish and call if can't create the video surface;
(3) the video surface memory address that obtains is set to the address that video writes, and by the display screen display video.
More specifically, step (3) can be set to the screen writing address by the image signal processing unit video surface memory address of MCU inside, and will show by display screen after the vision signal processing.
Further, video source selects driver element by createfile video device access to be conducted interviews; By DeviceIoControl video source and the signal condition of obtaining video are set.
Further, described video source includes but not limited to video and the vehicle-mounted camera on vehicle-carrying DVD, the External memory equipment.
In sum, the present invention has following beneficial effect: (1) to the bottom layer driving encapsulation of packing, the research staff use video to show and the function processed more simple, convenient; (2) by encapsulation directdraw interface, avoid calling the DirectShow interface and carry out the video demonstration, the occupancy of CPU when effectively reducing the video demonstration.
Description of drawings
Fig. 1 is the overall flow synoptic diagram of the control method of a kind of video demonstration of the present invention.
Embodiment
In order to allow those skilled in the art can understand better technical scheme of the present invention, the invention will be further elaborated below in conjunction with accompanying drawing.
As shown in Figure 1, the present invention has disclosed the control method that a kind of video shows, may further comprise the steps: (1) is carried out video source by the video source selected cell and is selected; (2) by the display parameter dispensing unit video source of selecting is carried out the display parameter setting; (3) enable the cell enable video by demonstration and show rear display video; Described video source selected cell comprises the video source option interface and selects driver element by its video source of calling; Described display parameter dispensing unit comprises the display parameter configuration interface and connects the display driver unit that calls by it; Described demonstration enables the unit and comprises that demonstration enables interface and enables driver element by its demonstration of calling.
Specific implementation is as follows:
Call video source by the video source option interface and select driver element to select video source, video source can be vehicle-mounted DVD, can be the USB storage that is connected to vehicle carried video equipment also, or vehicle-mounted pick-up is first-class; Video source is selected driver element API " createfile " video device access (video equipment herein is a logical abstraction layer), the handle that returns according to API " createfile " after successful video device access utilizes API " DiviceIoControl " video source to be set (by video source is set, namely select a concrete video equipment) and obtain the signal condition (judging namely whether selected video source has normal vision signal) of video, video source maybe can't be set or obtain then to return abnormal results and finish less than the normal signal condition of video and call if video device access is unsuccessful.If above-mentioned steps is all normally carried out, this relevant information with this video source sends to the display parameter dispensing unit.
If the user does not use the display effect (such as brightness, contrast, saturation degree, picture-in-picture, semi-transparent etc.) of acquiescence, can also carry out the self-defined of display effect; The display parameter dispensing unit has judged whether that the external command requirement is configured display parameter, if have then and to call the display driver unit by the display parameter configuration interface the corresponding display parameter of the video source chosen are configured, otherwise then skip the display parameter configuration; Display parameter then return abnormal results and end is called if can't successfully dispose;
After configuring display parameter or skipping display parameter configurations, the relevant information of this video source sent to show and enable the unit.
Show that enable demonstration that the unit enables interface interchange by demonstration enables driver element and enable video and show; Enable driver element and create the video surface by API " directdraw ", then obtain this video surface memory address, maybe can't obtain this video surface memory address and then return abnormal results and finish and call if can't create the video surface; The video that obtains surface memory address is set to the address that the video of the image signal processing unit of MCU inside writes by API " DiviceIoControl ", and vision signal processed will afterwards show by display screen.
It is related that the present invention will enable the address that the video of the image signal processing unit of driver element memory address (be video surface memory address) and MCU inside writes, thereby realize purpose that video input is shown, this can efficiently reduce MCU(or CPU) occupancy reach more than 60%.
Present embodiment is more excellent embodiment of the present invention; need to prove; in the situation that does not deviate from spirit of the present invention and essence thereof; those of ordinary skill in the art work as can make according to the present invention various corresponding changes and distortion, but these changes and distortion all should belong to the protection domain of the appended claim of the present invention.

Claims (7)

1. the control method that shows of a video is characterized in that: may further comprise the steps:
(1) carrying out video source by the video source selected cell selects; (2) by the display parameter dispensing unit video source of selecting is carried out the display parameter setting; (3) enable the cell enable video by demonstration and show rear display video;
Described video source selected cell comprises the video source option interface and selects driver element by its video source of calling;
Described display parameter dispensing unit comprises the display parameter configuration interface and connects the display driver unit that calls by it;
Described demonstration enables the unit and comprises that demonstration enables interface and enables driver element by its demonstration of calling.
2. the control method that shows of a kind of video according to claim 1 is characterized in that the implementation method of described video source selected cell is:
(1) calling video source by the video source option interface selects driver element to select video source;
(2) video source is selected the driver element video device access, video source is set behind the successful access video equipment and obtains the signal condition of video, video source maybe can't be set or obtain then to return abnormal results and finish less than the signal condition of video and call if video device access is unsuccessful;
(3) whether exist the information of normal signal to send to the display parameter dispensing unit this video source.
3. the control method that shows of a kind of video according to claim 1 is characterized in that the implementation method of described display parameter dispensing unit is:
(1) the display parameter dispensing unit has judged whether that the external command requirement is configured display parameter, if have then and to call the display driver unit by the display parameter configuration interface the corresponding display parameter of the video source chosen are configured, otherwise then skip the display parameter configuration;
(2) display parameter then return abnormal results and end is called if can't successfully dispose;
(3) send to and show and enable the unit if successfully dispose relevant information that display parameter then successfully dispose this video source display parameter.
4. the control method that shows of a kind of video according to claim 1 is characterized in that the implementation method that described demonstration enables the unit is:
(1) demonstration that enables interface interchange by demonstration enables driver element and enables video and show;
(2) enable driver element and create the video surface by function directdraw, then obtain this video surface memory address, maybe can't obtain this video surface memory address and then return abnormal results and finish and call if can't create the video surface;
(3) the video surface memory address that obtains is set to the address that video writes, and by the display screen display video.
5. the control method that shows of a kind of video according to claim 4, it is characterized in that, described step (3) can be set to the video writing address by the image signal processing unit video surface memory address of MCU inside, and will show by display screen after the vision signal processing.
6. the control method of a kind of video demonstration according to claim 2 is characterized in that, video source selects driver element by function createfile video device access to be conducted interviews; By function DeviceIoControl video source and the signal condition of obtaining video are set.
7. the control method of a kind of video demonstration according to claim 2 is characterized in that described video source includes but not limited to video and the vehicle-mounted camera on vehicle-carrying DVD, the External memory equipment.
CN201210440026.9A 2012-10-31 2012-10-31 A kind of control method of video display Active CN102929634B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210440026.9A CN102929634B (en) 2012-10-31 2012-10-31 A kind of control method of video display

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210440026.9A CN102929634B (en) 2012-10-31 2012-10-31 A kind of control method of video display

Publications (2)

Publication Number Publication Date
CN102929634A true CN102929634A (en) 2013-02-13
CN102929634B CN102929634B (en) 2016-03-23

Family

ID=47644446

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210440026.9A Active CN102929634B (en) 2012-10-31 2012-10-31 A kind of control method of video display

Country Status (1)

Country Link
CN (1) CN102929634B (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521608A (en) * 2018-03-13 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, terminal and the storage medium of video file
CN110428792A (en) * 2019-07-08 2019-11-08 新华三技术有限公司合肥分公司 Controller, display screen parameter configuring system and method

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770096A (en) * 2004-11-05 2006-05-10 腾讯科技(深圳)有限公司 Acquisition method for video frequency information of overlay surface
CN1801124A (en) * 2004-12-31 2006-07-12 联想(北京)有限公司 Video frequency data acquisition method employing mobile phone with camera as computer camera
CN1881189A (en) * 2005-06-17 2006-12-20 杭州波导软件有限公司 Method and system for computer receiving video data of mobile phone with camera

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1770096A (en) * 2004-11-05 2006-05-10 腾讯科技(深圳)有限公司 Acquisition method for video frequency information of overlay surface
CN1801124A (en) * 2004-12-31 2006-07-12 联想(北京)有限公司 Video frequency data acquisition method employing mobile phone with camera as computer camera
CN1881189A (en) * 2005-06-17 2006-12-20 杭州波导软件有限公司 Method and system for computer receiving video data of mobile phone with camera

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108521608A (en) * 2018-03-13 2018-09-11 Oppo广东移动通信有限公司 Processing method, device, terminal and the storage medium of video file
CN108521608B (en) * 2018-03-13 2021-01-08 Oppo广东移动通信有限公司 Video file processing method and device, terminal and storage medium
CN110428792A (en) * 2019-07-08 2019-11-08 新华三技术有限公司合肥分公司 Controller, display screen parameter configuring system and method

Also Published As

Publication number Publication date
CN102929634B (en) 2016-03-23

Similar Documents

Publication Publication Date Title
US9830052B2 (en) Method of displaying data in display device using mobile communication terminal, the display device, and the mobile communication terminal
CN104981766B (en) A kind of method showing data on the screen and display control unit
US9619241B2 (en) Display device and control method of displaying a predetermined snapshot image
US20070035470A1 (en) Apparatus for providing multiple screens and method of dynamically configuring multiple screens
US20190057652A1 (en) Image display apparatus
US9733718B2 (en) Display apparatus and display method thereof
CN103902158A (en) Method and terminal for managing application icon
CN105491413A (en) Display apparatus, display system, and display method
KR101515859B1 (en) Display apparatus and display method of contents list thereof
US10191712B2 (en) Display apparatus and recording medium
CN106327540A (en) Control method and device based on OpenGL View, and terminal
US20120173003A1 (en) User terminal apparatus and ui providing method thereof
US10803827B2 (en) Display apparatus and display method
CN102929634A (en) Control method for video display
CN106598448A (en) Input method management method and terminal
KR102397441B1 (en) Electronic apparatus and method for controlling thereof
CN103197909A (en) Display method and display device
CN108769806A (en) The methods of exhibiting and device of media content
US20200387301A1 (en) Electronic apparatus and method for controlling thereof
US20110242131A1 (en) Image Display Devices and Methods of Displaying Image
CN104423915A (en) Display output method and electronic device.
US6774918B1 (en) Video overlay processor with reduced memory and bus performance requirements
US9471218B2 (en) Apparatus and method for controlling display size in portable terminal
KR20200039519A (en) Method for setting display of vehicle infotainment system and vehicle infotainment system to which the method is applied
US9456165B2 (en) Display apparatus and display method

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
CB02 Change of applicant information

Address after: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Applicant after: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

Address before: 516006 Guangdong province Huizhou Zhongkai hi tech Industrial Development Zone Pearl River Road No. 1

Applicant before: Huizhou Desay SV Auto. Electronics Co., Ltd.

COR Change of bibliographic data
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20191213

Address after: 201801 room 620, No. 6, Lane 599, Yungu Road, Jiading District, Shanghai j512

Patentee after: Shanghai Velcro Automotive Electronics Co., Ltd

Address before: 516006 Guangdong province Huizhou City Zhongkai high tech Zone and five West Road No. 103

Patentee before: HUIZHOU DESAY SV AUTOMOTIVE CO., LTD.

TR01 Transfer of patent right