CN102375730A - Photographic data processing device and method - Google Patents
Photographic data processing device and method Download PDFInfo
- Publication number
- CN102375730A CN102375730A CN2010102593785A CN201010259378A CN102375730A CN 102375730 A CN102375730 A CN 102375730A CN 2010102593785 A CN2010102593785 A CN 2010102593785A CN 201010259378 A CN201010259378 A CN 201010259378A CN 102375730 A CN102375730 A CN 102375730A
- Authority
- CN
- China
- Prior art keywords
- module
- picture
- file
- data processing
- filter
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Granted
Links
- 238000000034 method Methods 0.000 title abstract description 12
- 238000006243 chemical reaction Methods 0.000 claims abstract description 53
- 238000003672 processing method Methods 0.000 claims abstract description 8
- 238000004806 packaging method and process Methods 0.000 abstract 1
- 238000010276 construction Methods 0.000 description 4
- 238000004891 communication Methods 0.000 description 2
- 238000005538 encapsulation Methods 0.000 description 2
- 238000005516 engineering process Methods 0.000 description 2
- 238000004458 analytical method Methods 0.000 description 1
- 230000009286 beneficial effect Effects 0.000 description 1
- 230000006835 compression Effects 0.000 description 1
- 238000007906 compression Methods 0.000 description 1
- 238000004519 manufacturing process Methods 0.000 description 1
- 238000004321 preservation Methods 0.000 description 1
Images
Landscapes
- Facsimiles In General (AREA)
- Television Signal Processing For Recording (AREA)
Abstract
The invention discloses a photographic data processing device, which comprises a DirectShow component and a photographic module, wherein the DirectShow component comprises a source filter, a conversion filter and a reproduction filter; the photographic module comprises a file acquisition module, a file conversion module and a file processing module, wherein the file acquisition module is configured to obtain pictures from the outside; the file conversion module is configured to convert the picture acquired by the file acquisition module; and the file processing module is configured to process the picture converted by the file conversion module by calling the reproduction filter. The invention also discloses a photographic data processing method. In the invention, the DirectShow component is subjected to further packaging, so interfaces required by the DirectShow component for connecting external systems are reduced, the debugging is simple, and a common microfunction circuit (MCF) developer can develop related software easily in a relative short development period. The device and the method are particularly suitable for intelligent mobile phones with a Windows Mobile platform and handheld terminal such as industrial personal digital assistant (PDAs).
Description
Technical field
The present invention relates to the multimedia data processing field, relate in particular to a kind of applicable to take pictures data processing equipment and method based on handheld terminals such as the smart mobile phone of Windows Mobile platform and industrial PDA.
Background technology
In the last few years; Mobile phone develops into the multimedia processing terminal from simple means of communication, at present, and no matter is that communication function or other functions just develop towards more and more abundanter, more and more careful direction; Camera function wherein more is to use extensively, and the technology of taking pictures is also maked rapid progress.
Before smart mobile phone occurred, because the mobile phone hardware that cell phone manufacturer uses is different, the programming personnel was when developing camera function; Must call the API (application programming interfaces) of bottom; Make the construction cycle elongated, and, greatly wasted manpower and financial resources owing to exist overlapping development.
In order to address this problem; Microsoft has been transplanted to the DirectShow scheme that desktop PC end is implemented in the smart mobile phone; Be applied in the Windows Mobile platform, the framework of its functional module is seen Fig. 1, and DirectShow has not only encapsulated the API of direct control bottom hardware (it is first-class for example to make a video recording); Realized transparence, and can carry out the operation of video, Streaming Media through DirectShow.But its shortcoming is also very obvious: though the developer need not directly to call bottom API, because DirectShow not only considers the camera function of camera, also comprise multiple functions such as video production, video conversion; Promptly; Because it has encapsulated too many function, and directly opened the huge interface of quantity, therefore caused framework too fat to move and structure is huge in the face of the developer; Make the program development difficulty strengthen; And because DirectShow is that interface encapsulates with COM, it is complicated in software development process, to exist debugging, the high shortcoming of incision difficulty.
Summary of the invention
The objective of the invention is to overcome present employing DirectShow and carry out the shortcoming that software development exists debugging complicacy, construction cycle length, provide a kind of debugging simple, the data processing scheme of taking pictures that general developer also can be developed easily.
For this reason, the present invention proposes a kind of data processing equipment of taking pictures that is used for portable terminal, it comprises: the DirectShow assembly, and said DirectShow assembly comprises source filter, switched filter and reproduction wave filter; Photo module; Said photo module comprises file acquisition module, file conversion module and document processing module; Wherein, Said file acquisition module is configured to obtain picture from the outside, and said file conversion block configuration is to call said switched filter the picture that said file acquisition module is obtained is changed, and said document processing module is configured to call said reproduction wave filter the picture through said file conversion module converts is handled.
Preferably, said file receiver module comprises: document input module, and it is configured to obtain local picture; And capture module, its be configured to through call said source filter open the hardware trap setting take pictures the operation to obtain picture.
Preferably, said document processing module comprises: the piece processing module, and it is configured to that the picture through said file conversion module converts is carried out piece and handles; With the stream processing module, it is configured to the picture through said file conversion module converts is flowed processing.
Preferably, said document processing module further is configured to treated picture is exported to be sent to external module.
Preferably, said file conversion module further is configured to call said switched filter and converts the original RGB picture file that said file acquisition module is obtained into the JPEG picture file.
The present invention proposes a kind of data processing method of taking pictures that is used for portable terminal simultaneously; It may further comprise the steps: the file acquisition module through in the photo module obtains picture from the outside, and said file acquisition module is transferred to the file conversion module in the said photo module with the picture that is obtained; To convert predetermined form into from the picture that said file acquisition module receives through the switched filter in the said file conversion module invokes DirectShow assembly, the picture that said file conversion module will be passed through format conversion is transferred to the document processing module in the said photo module; Reproduction wave filter through said document processing module calls in the DirectShow assembly is handled the picture through format conversion.
Preferably, said file acquisition module comprises document input module and capture module, then saidly obtains picture through the file acquisition module in the photo module from the outside and specifically comprises: obtain local picture through said document input module; Or through said capture module call said source filter open the hardware trap setting take pictures the operation to obtain picture.
Preferably; Said document processing module comprises piece processing module and stream processing module, and the then said reproduction wave filter that calls in the DirectShow assembly through said document processing module comprises handling specifically through the picture of format conversion: through said processing module the picture through format conversion is carried out piece and handle; Or through said stream processing module to flowing processing through the picture of format conversion.
Preferably, said method is further comprising the steps of: through said document processing module treated picture is exported to be sent to external module.
Preferably, saidly will convert predetermined form into from the picture that said file acquisition module receives through the switched filter in the said file conversion module invokes DirectShow assembly and be specially: convert the original RGB picture file that said file acquisition module is obtained into the JPEG picture file through the said switched filter of said file conversion module invokes.
Data processing equipment and the method for taking pictures of the present invention has following beneficial effect: encapsulation is further carried out to DirectShow in (1); Reduced its interface that is connected with external device (ED); Make debugging simple, make general MFC developer can in the short construction cycle, easily carry out the exploitation of related software.(2) picture of input comprises that not only the picture that obtains of taking pictures also comprises from the picture of local file device and network reception.(3) both can carry out bulk treatment to picture, also can carry out byte-by-byte processing file.
Description of drawings
Fig. 1 is the structural representation of existing DirectShow and external unit thereof;
Fig. 2 is the structural representation of the take pictures data processing equipment and the external unit thereof that are used for portable terminal of the embodiment of the invention.
Embodiment
Below in conjunction with accompanying drawing to a preferred embodiment of the present invention will be described in detail.
Fig. 2 is the structural representation of the data processing equipment of taking pictures that is used for portable terminal of the embodiment of the invention.As shown in Figure 2, the data processing equipment of taking pictures that is used for portable terminal of the present invention comprises DirectShow assembly and photo module.Wherein, The DirectShow modular construction still is original assembly as shown in Figure 1; It comprises source filter, switched filter and reproduction wave filter, and different is that original DirectShow assembly directly obtains files such as picture from the outside when non-taking pictures; For example obtain files such as picture from local file system or internet etc., the source filter when taking pictures in the assembly calls the hardware camera arrangement and takes pictures to obtain files such as picture; And outside DirectShow, further encapsulated a photo module in the present embodiment; Said photo module comprises file acquisition module, file conversion module and document processing module; File acquisition module by photo module when non-taking pictures obtains files such as picture from the outside, start the hardware camera arrangement and take pictures operation to obtain picture thereby when taking pictures, call source filter in the DirectShow assembly by the file acquisition module of photo module.
In addition; Switched filter in original DirectShow assembly directly calls hardware decoder the file that obtains is carried out format conversion, and utilizes said file conversion module in the photo module to call the switched filter in the DirectShow assembly and then call the files such as picture that hardware decoder obtained the file acquisition module and carry out format conversion in the present embodiment; Reproduction wave filter in original DirectShow assembly carries out predetermined process and exports external units such as sound card, graphics card or scrambler to the file through format conversion, and the reproduction wave filter that utilizes the document processing module in the photo module to call in the DirectShow assembly in the present embodiment comes the file through format conversion is handled.
Thereby the document input module that obtains picture when wherein said file acquisition module is included in non-taking pictures from local file system or internet calls source filter the DirectShow assembly when taking pictures and for example opens the hardware camera arrangement of WDM trap setting and take pictures operation to obtain the capture module of picture.When operation, the document input module in the file acquisition module is connected with local file system with the internet, to realize from the internet or local file system reception picture; Perhaps photo module is sent the instruction to the capture module in the file acquisition module; Said capture module can make the supply filter of DirectShow assembly for example open the operation of taking pictures of the hardware camera arrangement of WDM trap setting, and receives and preserve the picture of taking pictures and obtaining.
Behind the for example picture file that the file acquisition module receives and preservation is obtained picture is transferred to the file conversion module, hardware Mmpeg2 hardware decoders demoder converts the picture file that is obtained to the file layout that needs to the converting filter of said file conversion module invokes DirectShow assembly for example to start.For example file conversion module can be called said switched filter and convert the original RGB picture file that said file acquisition module is obtained into the JPEG picture file.
The picture of accomplishing format conversion is transported to document processing module, and said document processing module can comprise piece processing module and stream processing module, and piece is handled or stream is handled in order to the picture file through format analysis processing is carried out.Document processing module comes picture is carried out bulk treatment through the reproduction filtrator that calls the DirectShow assembly; The stream that said stream processing module is carried out is handled can carry out byte-by-byte processing to picture, therefore can handle to improve precision picture from whole and details two aspects.
Document processing module in the photo module also is used for picture is after treatment exported to be sent to outside module.
The data processing equipment of taking pictures that is used for portable terminal of the embodiment of the invention can make the developer just can directly call the picture compression function through easy parameter setting, has improved development efficiency, has reduced the possibility that makes a mistake.
The data processing method of taking pictures that is used for portable terminal that the embodiment of the invention proposes may further comprise the steps:
S11, obtain picture from the outside or call source filter module the DirectShow assembly and open the hardware camera arrangement and take pictures to obtain picture through the file acquisition module in the photo module, document input module is transferred to the file conversion module in the photo module with picture;
S12, convert the picture that obtains into predetermined form through the switched filter in the file conversion module invokes DirectShow assembly, the picture that the file conversion module will be accomplished conversion is transferred to the document processing module in the photo module;
S13, call reproduction wave filter in the DirectShow assembly to handling through the picture of format conversion through document processing module;
S14, treated picture is exported to be sent to external module through document processing module.
In the above-mentioned S12 step, can convert the original RGB picture file that the file acquisition module is obtained into the JPEG picture file through file conversion module invokes switched filter.
Data processing equipment and the method for taking pictures of the present invention is through to the further standard photo module of encapsulation of original DirectShow assembly; Thereby can be directly and bottom hardware and modular converter communicate; Make the user need not to call under the situation of bottom API or com interface also the operation that can use always camera, shortened the procedure development cycle to a great extent.
The smart mobile phone that take pictures data processing equipment and method of the present invention not only can be used for Windows Mobile platform also can be applicable to handheld terminals such as industrial PDA, is widely used.
The preferred embodiments of the present invention have more than been described; But the present invention is not limited to above-mentioned particular implementation example; Do not deviating under spirit of the present invention and the nature thereof; Skilled personnel can make various corresponding changes and distortion according to the present invention, but these corresponding changes and distortion all should belong within the accompanying claims protection domain of the present invention.
Claims (10)
1. the data processing equipment of taking pictures that is used for portable terminal is characterized in that, comprising:
The DirectShow assembly, said DirectShow assembly comprises source filter, switched filter and reproduction wave filter;
Photo module, said photo module comprises file acquisition module, file conversion module and document processing module,
Wherein, Said file acquisition module is configured to the acquisition picture from the outside; Said file conversion block configuration is to call said switched filter the picture that said file acquisition module is obtained is changed, and said document processing module is configured to call said reproduction wave filter the picture through said file conversion module converts is handled.
2. the data processing equipment of taking pictures that is used for portable terminal according to claim 1 is characterized in that, said file receiver module comprises:
Document input module, it is configured to obtain local picture; With
Capture module, its be configured to through call said source filter open the hardware trap setting take pictures the operation to obtain picture.
3. the data processing equipment of taking pictures that is used for portable terminal according to claim 1 is characterized in that said document processing module comprises:
The piece processing module, it is configured to that the picture through said file conversion module converts is carried out piece and handles; With
The stream processing module, it is configured to the picture through said file conversion module converts is flowed processing.
4. according to each described data processing equipment of taking pictures that is used for portable terminal among the claim 1-3, it is characterized in that said document processing module further is configured to treated picture is exported to be sent to external module.
5. according to each described data processing equipment of taking pictures that is used for portable terminal among the claim 1-3; It is characterized in that said file conversion module further is configured to call said switched filter and converts the original RGB picture file that said file acquisition module is obtained into the JPEG picture file.
6. the data processing method of taking pictures that is used for portable terminal is characterized in that, may further comprise the steps:
File acquisition module through in the photo module obtains picture from the outside, and said file acquisition module is transferred to the file conversion module in the said photo module with the picture that is obtained;
To convert predetermined form into from the picture that said file acquisition module receives through the switched filter in the said file conversion module invokes DirectShow assembly, the picture that said file conversion module will be passed through format conversion is transferred to the document processing module in the said photo module;
Reproduction wave filter through said document processing module calls in the DirectShow assembly is handled the picture through format conversion.
7. the portable terminal data processing method of taking pictures that is used for according to claim 6; It is characterized in that; Said file acquisition module comprises document input module and capture module, then saidly obtains picture through the file acquisition module in the photo module from the outside and specifically comprises:
Obtain local picture through said document input module; Or
Through said capture module call said source filter open the hardware trap setting take pictures the operation to obtain picture.
8. the portable terminal data processing method of taking pictures that is used for according to claim 6; It is characterized in that; Said document processing module comprises piece processing module and stream processing module, and the then said reproduction wave filter that calls in the DirectShow assembly through said document processing module comprises handling specifically through the picture of format conversion:
Through said processing module the picture through format conversion being carried out piece handles; Or
Through said stream processing module the picture through format conversion is flowed processing.
9. the portable terminal data processing method of taking pictures that is used for according to claim 6 is characterized in that, and is further comprising the steps of:
Through said document processing module treated picture is exported to be sent to external module.
10. the portable terminal data processing method of taking pictures that is used for according to claim 6; It is characterized in that, saidly will convert predetermined form into from the picture that said file acquisition module receives through the switched filter in the said file conversion module invokes DirectShow assembly and be specially:
Convert the original RGB picture file that said file acquisition module is obtained into the JPEG picture file through the said switched filter of said file conversion module invokes.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010259378.5A CN102375730B (en) | 2010-08-19 | 2010-08-19 | A kind of photographic data processing device and method |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201010259378.5A CN102375730B (en) | 2010-08-19 | 2010-08-19 | A kind of photographic data processing device and method |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102375730A true CN102375730A (en) | 2012-03-14 |
CN102375730B CN102375730B (en) | 2016-04-27 |
Family
ID=45794379
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201010259378.5A Active CN102375730B (en) | 2010-08-19 | 2010-08-19 | A kind of photographic data processing device and method |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102375730B (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107317973A (en) * | 2017-08-17 | 2017-11-03 | 珠海市魅族科技有限公司 | A kind of information processing method and device, computer installation and readable storage medium storing program for executing |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3223933B2 (en) * | 1993-02-10 | 2001-10-29 | 日本電信電話株式会社 | Knowledge base reasoning method and apparatus |
CN101702132A (en) * | 2009-09-07 | 2010-05-05 | 无锡景象数字技术有限公司 | 2D and 3D software switching method based on DirectShow technology |
CN102279746A (en) * | 2011-08-21 | 2011-12-14 | 中国海洋大学 | Sensor-based monitoring software development platform system and method |
-
2010
- 2010-08-19 CN CN201010259378.5A patent/CN102375730B/en active Active
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP3223933B2 (en) * | 1993-02-10 | 2001-10-29 | 日本電信電話株式会社 | Knowledge base reasoning method and apparatus |
CN101702132A (en) * | 2009-09-07 | 2010-05-05 | 无锡景象数字技术有限公司 | 2D and 3D software switching method based on DirectShow technology |
CN102279746A (en) * | 2011-08-21 | 2011-12-14 | 中国海洋大学 | Sensor-based monitoring software development platform system and method |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN107317973A (en) * | 2017-08-17 | 2017-11-03 | 珠海市魅族科技有限公司 | A kind of information processing method and device, computer installation and readable storage medium storing program for executing |
Also Published As
Publication number | Publication date |
---|---|
CN102375730B (en) | 2016-04-27 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN100375070C (en) | Method for acquiring video data by using camera phone as computer camera | |
CN106331733A (en) | A method and system for real-time processing of audio and video data on a desktop cloud terminal | |
CN103177040A (en) | Method and device for calling function of webpage application | |
CN107220208A (en) | A kind of image processing system and method | |
CN104980682A (en) | Intelligent dynamic high-definition video transmission system | |
US20090147804A1 (en) | Header compress/decompress framework | |
US20180324024A1 (en) | Device, system, and method to perform real-time communication | |
CN108900532A (en) | Electronic device, method and storage medium for message processing | |
CN101651958B (en) | Method and device for transmitting and receiving wireless G3 analog facsimile business | |
CN116074544A (en) | Multi-platform live broadcast method, system, equipment and medium | |
CN102799409A (en) | Method, device and terminal for voice input | |
CN102375730B (en) | A kind of photographic data processing device and method | |
WO2022224058A1 (en) | A method and apparatus for enhanced task grouping | |
CN106550242B (en) | Method and device for converting IP real-time media stream | |
US10659826B2 (en) | Cloud streaming service system, image cloud streaming service method using application code, and device therefor | |
CN104244085A (en) | Multimedia data transmission method and device based on field-programmable gate array | |
CN102497582B (en) | Set top box based communication interface device | |
US20150256964A1 (en) | Virtual bluetooth device | |
CN106372096A (en) | System and method for remotely operating file in mobile storage device on mobile end | |
CN101262484A (en) | A method and device for processing real time video data on Windows platform | |
CN108540526A (en) | data processing method and terminal device | |
CN109743643A (en) | The processing method and processing device of building conversational system | |
CN106658154A (en) | Method, device and equipment for video capture, and method, device and equipment for video processing | |
CN107395821B (en) | Mobile phone OLED screen interoperability device and method based on FPGA | |
CN103561105A (en) | Image transmitting method, sending end and receiving end |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |