CN105447016B - A kind of fast search of component and the method for reuse - Google Patents

A kind of fast search of component and the method for reuse Download PDF

Info

Publication number
CN105447016B
CN105447016B CN201410406400.2A CN201410406400A CN105447016B CN 105447016 B CN105447016 B CN 105447016B CN 201410406400 A CN201410406400 A CN 201410406400A CN 105447016 B CN105447016 B CN 105447016B
Authority
CN
China
Prior art keywords
component
multimedia
search
file
snapshot
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.)
Expired - Fee Related
Application number
CN201410406400.2A
Other languages
Chinese (zh)
Other versions
CN105447016A (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.)
New Founder Holdings Development Co ltd
Beijing Founder Electronics Co Ltd
Original Assignee
Peking University Founder Group Co Ltd
Beijing Founder Electronics 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 Peking University Founder Group Co Ltd, Beijing Founder Electronics Co Ltd filed Critical Peking University Founder Group Co Ltd
Priority to CN201410406400.2A priority Critical patent/CN105447016B/en
Publication of CN105447016A publication Critical patent/CN105447016A/en
Application granted granted Critical
Publication of CN105447016B publication Critical patent/CN105447016B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Abstract

The invention discloses a kind of fast search of component and the methods of reuse, including generate multimedia component by multimedia file, and multimedia component is saved in Component Gallery, and multimedia component includes index information;It is scanned in Component Gallery according to index information, the multimedia component obtained according to search generates snapshot and caches;The recent snapshot of caching is compared with former snapshot, former snapshot is removed if changing, and scan for again;Using when the obtained multimedia component of search is directly dragged to region to be edited, until completing the editor in all regions to be edited.Multimedia file is packaged storage using specific data format and arrives Component Gallery, and it is scanned for according to index information, due to only being retrieved to the index information part of multimedia component in search process, only it can just access to specific multimedia file in application component, to realize fast search, the reuse efficiency to component directly can also be improved into edlin using multimedia component.

Description

A kind of fast search of component and the method for reuse
Technical field
The present invention relates to digital publishing technical field, more particularly to the fast search of a kind of component and the method for reuse.
Background technology
Digital publishing refers to being established in computer technology, mechanics of communication, network technology, Streaming Media skill during publication The new and high technologies such as art, memory technology, display technology basis, by all information all with the digitlization shape of unified binary code Formula is stored in the media such as CD, disk, and the processing of information is carried out by computer or terminal device with reception.
The text to making, picture, video, audio etc. is needed to be reused in the processing procedure of digital publishing, to above-mentioned All kinds of multimedia files are integrated to obtain multimedia component.When making similar space of a whole page content later, before directly selecting The component of making avoids repeated work, especially reuses and can more increase by setting up in the abundant space of a whole page content of production effect It imitates and convenient.But as the data volume for the multimedia file being locally stored increasingly increases, realize to a plurality of types of multimedias It the fast search of file and quasi real time presents also particularly important.Currently used all kinds of softwares for composing can only reuse simple word Information, both cannot achieve the fast search of file content, also cannot achieve and the multimedia component of mixed type is reused.
In conclusion existing software for composing cannot achieve the fast search, quasi real time of hybrid multimedia and page object It presents and efficiently reuses, cause great inconvenience, search speed slow to the content during typesetting is shared so that multimedia group The reuse efficiency of part is very low.
Invention content
In order to improve the reuse efficiency of multimedia file, solving existing software for composing can not be to the multimedia text of mixed type The problem of part carries out fast search and reuses, the present invention provides a kind of fast search of component and the methods of reuse, including:
Multimedia component is generated by multimedia file, and the multimedia component is saved in Component Gallery, more matchmakers Body component includes index information;
It is scanned for, is generated according to the multimedia component that search obtains fast in the Component Gallery according to the index information According to and cache;
The recent snapshot of caching is compared with former snapshot, removes the former snapshot if changing, and again into Row search, wherein the original snapshot generates after generating the immediate search of recent snapshot;
Using when the obtained multimedia component of search is directly dragged to region to be edited.
Optionally, the multimedia file includes picture, audio and video.
Optionally, the index information is the index information of the multimedia file, for being looked into according to the index information Look for the multimedia file.
Optionally, described to include by multimedia file generation multimedia component:
Obtain the multimedia file;
The multimedia file be packaged storing according to preset data format and generates the multimedia component, storage When stored according to relative path, wherein the preset data format of the multimedia component includes unique header and more A index information further includes and the one-to-one thumbnail of the index information and multimedia file.
Optionally, described that multimedia component packet is generated by multimedia file when the multimedia component is page assembly It includes:
The page is selected from multimedia file, and the page is dragged in the Component Gallery;
Record the data information of each filling block and position letter in the page info and the page of the page assembly Breath.
Optionally, it is scanned in the Component Gallery according to the index information using hierarchical search mode, described point The search order of grade way of search is file searching, file search and file content search.
Optionally, in search process according to while search while Mechanism showed, the Component Gallery belongs to data Layer, The data Layer is scanned for according to the index information, and the multimedia component that search obtains is showed in boundary layer.
Optionally, the recent snapshot by caching is compared with former snapshot further includes:
Do not change if the recent snapshot is compared with the former snapshot, more matchmakers that directly output search obtains Body component.
Optionally, the described directly multimedia component that search obtains is dragged to after region to be edited further includes:
Size in the multimedia component is adjusted according to the size in the region to be edited, until more matchmakers Body component can completely show in the region to be edited.
Optionally, the multimedia component in search result is directly dragged to region to be edited when the application further includes:
Convert the relative path for the multimedia component applied to Actual path, and more according to Actual path reuse Media component.
Method for fast searching provided by the invention be packaged storing and be arrived using specific data format to multimedia file Component Gallery is scanned for according to index information later, due in search process only to the index information part of multimedia component into Row retrieval, does not access specific multimedia file content, only can just be carried out to specific multimedia file in application component It accesses, to realize fast search, directly utilizes multimedia component into edlin, component is integrally reused so that reuse Reuse efficiency when efficiency is only reused content of text far above the prior art.
Description of the drawings
Fig. 1 is a kind of fast search of component provided by the invention and the step flow chart of the method for reuse;
Fig. 2 is the schematic diagram of data format;
Fig. 3 is that multimedia file is packaged the schematic diagram stored according to relative path when storage;
Fig. 4 is the schematic diagram for generating page assembly;
Fig. 5 is the flow chart of search process;
Fig. 6 is the schematic diagram of five application page component.
Specific implementation mode
With reference to the accompanying drawings and examples, the specific implementation mode of the present invention is described in further detail.Implement below Example is not limited to the scope of the present invention for illustrating the present invention.
The present invention provides a kind of fast search of component and the methods of reuse, and steps flow chart is as shown in Figure 1, specifically include Following steps:
Step S1, multimedia component is generated by multimedia file, and multimedia component is saved in Component Gallery, wherein more Media component includes index information.
Step S2, it is scanned for, is generated according to the multimedia component that search obtains fast in Component Gallery according to index information According to and cache, Central Plains snapshot generate the immediate primary search of recent snapshot after generate.
Step S3, the recent snapshot of caching is compared with former snapshot, former snapshot is removed if changing, and again It scans for.
The multimedia component that search obtains directly is dragged to region to be edited when step S4, applying, until completing entire The editor of the page.
The above method in view of the deficiencies in the prior art, is packaged multimedia file, prevents loss of data, profit Index of reference information scans for, entire multimedia file need not be scanned for, it can be achieved that efficiently quickly search, while Using when can directly using multimedia component carry out the page editor, the reuse to content of text not only may be implemented, also Various multimedia components can quickly be reused, improve reuse efficiency.
Optionally, multimedia file includes picture, audio and video.
The multimedia component obtained according to data format of the present invention includes the material breviary of header, index information, component Diagram data (abbreviation thumbnail) and multimedia file data.The schematic diagram of above-mentioned data format is as shown in Fig. 2, wherein in header Including version information, the difference for identifying version, while being additionally operable to distinguish whether using above-mentioned data format be packaged and deposit Storage, while there is data format provided by the invention forward compatibility, i.e. lowest version can be useful in highest version.
Index information therein is the index information of multimedia file, for searching multimedia file according to index information.
Optionally, generating multimedia component by multimedia file includes:
Obtain multimedia file;
Multimedia file is carried out being packaged storage according to preset data format and generates multimedia component, according to phase when storage Path is stored, the preset data format of wherein multimedia component includes unique header and multiple index informations, Further include and the one-to-one thumbnail of index information and multimedia file.
Multimedia file is stored when being packaged storage according to relative path, and the multimedia file is indicated in relative path The file of storage and the position of file, schematic diagram are as shown in Figure 3.Referring to Fig. 3, file packet include picture, data and Interactive program resource file, wherein data are open document format .odf files, are a kind of binary file formats.Interaction The program resource file of formula includes audio, video and panorama sketch, specific file content can be MP4, MP3, JPG and HTML (HyperText Markup Language, hypertext markup language).
Optionally, when multimedia component is page assembly, generating multimedia component by multimedia file includes:
The page is selected from multimedia file, and the page is dragged in Component Gallery;
Record the data information and location information of each filling block in the page info and the page of page assembly.
It is specific when generating multimedia component using the page in multimedia file:In page view, the page is dragged It is pulled in Component Gallery and forms page assembly, as shown in figure 4, being recorded simultaneously to the various information of page assembly, convenient for application.
Optionally, it is scanned in Component Gallery according to index information using hierarchical search mode, hierarchical search mode Search order is file searching, file search and file content search, by realizing the search of file content to component Search and application.
The flow chart of above-mentioned search as shown in figure 5, first determine whether to whether there is current search in buffer, if there is no Then start to search for, due to having searched for corresponding snapshot caching each time, so if having current search in existing caching into Row snapshot compares, and judges whether recent snapshot and former snapshot change, and the former snapshot of caching is removed if changing, then weigh It newly scans for, directly exports the multimedia component searched in former snapshot if not changing.Caching is removed in time, it can With alleviate it is data cached it is more caused by pressure.During scanning for, according to hierarchical search, first searching fold, again Search file, final search file content.The also hierarchical classification exhibition when multimedia component obtained to search shows Existing, the file, file and file content that will be matched with index information, classification are not presented in Component Gallery content exhibition by different level Show in region.In addition, referring to Fig. 5, the recent snapshot of caching is compared with former snapshot further includes:
Do not change if recent snapshot is compared with former snapshot, the multimedia component that directly output search obtains.
Optionally, in search process according to while search while Mechanism showed, Component Gallery belongs to data Layer, in data Layer is scanned for according to index information, and the multimedia component that search obtains is showed in boundary layer.Due to component warehouse compartment In data Layer, and search result (multimedia component searched for) is located at boundary layer, according to the ticker data on interface Index information is obtained, scans for according to index information in data Layer, shows search result is fed back to boundary layer, this That is mentioned in invention shows by being realized to the access of thumbnail, and the multimedia component that need not show wouldn't visit It asks, only accesses the multimedia component for needing to show.
It should also be noted that, not accessing specific file content in multimedia component in search process, only answering With can just access specific file content in multimedia component when multimedia component, the time of access can be saved in this way.
Optionally, directly the multimedia component that search obtains is dragged to after region to be edited and further includes:
Size in multimedia component is adjusted according to the size in region to be edited, until multimedia component can be Region to be edited shows completely.
The schematic diagram of above application page assembly is as shown in fig. 6, size and dimension scale due to multimedia component are It is fixed, therefore pull the multimedia component come in and be not necessarily adapted to the current page, thus by multimedia component pull into Also its size is carried out readjusting position and size by intelligence computation after coming.
It should also be noted that, using when the multimedia component in search result be directly dragged to region to be edited also wrap It includes:
It converts the relative path for the multimedia component applied to Actual path, and multimedia is reused according to Actual path Component.
The operation that path resetting is carried out when due to generating multimedia component, i.e., reset to relative path by Actual path, because This also converts relative path to Actual path in application of multimedia component, that is, needs to carry out route matching.
Method for fast searching provided by the invention be packaged storing and be arrived using specific data format to multimedia file Component Gallery is scanned for according to index information later, due in search process only to the index information part of multimedia component into Row retrieval, does not access specific multimedia file content, only can just be carried out to specific multimedia file in application component It accesses, to realize fast search, directly utilizes multimedia component into edlin, component is integrally reused so that reuse Reuse efficiency when efficiency is only reused content of text far above the prior art.
Embodiment of above is merely to illustrate the present invention, and not limitation of the present invention, in relation to the common of technical field Technical staff can also make a variety of changes and modification without departing from the spirit and scope of the present invention, therefore all Equivalent technical solution also belongs to scope of the invention, and scope of patent protection of the invention should be defined by the claims.

Claims (9)

1. a kind of fast search of component and the method for reuse, which is characterized in that including:
Multimedia component is generated by multimedia file, and the multimedia component is saved in Component Gallery, the multimedia group Part includes index information;Wherein, the index information is the index information of the multimedia file, for being believed according to the index Breath searches the multimedia file;
It is scanned in the Component Gallery according to the index information, snapshot is generated simultaneously according to the multimedia component that search obtains Caching;
The recent snapshot of caching is compared with former snapshot, the former snapshot is removed if changing, and re-start and search Rope, wherein the original snapshot generates after generating the immediate search of recent snapshot;
Using when the obtained multimedia component of search is directly dragged to region to be edited.
2. according to the method described in claim 1, it is characterized in that, the multimedia file includes picture, audio and video.
3. according to the method described in claim 1, it is characterized in that, described include by multimedia file generation multimedia component:
Obtain the multimedia file;
Be packaged storage according to preset data format to the multimedia file and generate the multimedia component, when storage presses It is stored according to relative path, wherein the preset data format of the multimedia component includes unique header and multiple ropes Fuse ceases, and further includes and the one-to-one thumbnail of the index information and multimedia file.
4. according to the method described in claim 1, it is characterized in that, when the multimedia component be page assembly when, it is described by Multimedia file generates multimedia component:
The page is selected from multimedia file, and the page is dragged in the Component Gallery;
Record the data information and location information of each filling block in the page info and the page of the page assembly.
5. according to the method described in claim 1, it is characterized in that, using hierarchical search mode according to the index information in institute It states in Component Gallery and scans for, the search order of the hierarchical search mode is file searching, file search and file content Search.
6. according to the method described in claim 1, it is characterized in that, in search process according to while search while Mechanism opened up Existing, the Component Gallery belongs to data Layer, is scanned for according to the index information in the data Layer, and will search obtain it is more Media component is showed in boundary layer.
7. according to the method described in claim 1, it is characterized in that, the recent snapshot by caching is compared with former snapshot Further include:
Do not change if the recent snapshot is compared with the former snapshot, the multimedia group that directly output search obtains Part.
8. according to the method described in claim 1, it is characterized in that, described be directly dragged to the multimedia component that search obtains Further include after region to be edited:
The size of the multimedia component is adjusted according to the size in the region to be edited, until the multimedia component Can completely it show in the region to be edited.
9. according to the method described in claim 1, it is characterized in that, directly by the multimedia group in search result when the application Part is dragged to region to be edited:
It converts the relative path for the multimedia component applied to Actual path, and multimedia is reused according to the Actual path Component.
CN201410406400.2A 2014-08-18 2014-08-18 A kind of fast search of component and the method for reuse Expired - Fee Related CN105447016B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410406400.2A CN105447016B (en) 2014-08-18 2014-08-18 A kind of fast search of component and the method for reuse

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410406400.2A CN105447016B (en) 2014-08-18 2014-08-18 A kind of fast search of component and the method for reuse

Publications (2)

Publication Number Publication Date
CN105447016A CN105447016A (en) 2016-03-30
CN105447016B true CN105447016B (en) 2018-09-14

Family

ID=55557211

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410406400.2A Expired - Fee Related CN105447016B (en) 2014-08-18 2014-08-18 A kind of fast search of component and the method for reuse

Country Status (1)

Country Link
CN (1) CN105447016B (en)

Families Citing this family (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107526576B (en) * 2016-06-21 2021-06-15 阿里巴巴集团控股有限公司 Method and device for displaying view components of page
CN107193913A (en) * 2017-05-15 2017-09-22 镇江千丝雨动画设计有限公司 The searching method and system of cartoon material
CN109683978B (en) * 2017-10-17 2022-06-14 阿里巴巴集团控股有限公司 Stream type layout interface rendering method and device and electronic equipment
CN111460183B (en) * 2020-03-30 2024-02-13 北京金堤科技有限公司 Method and device for generating multimedia file, storage medium and electronic equipment

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6381604B1 (en) * 1999-07-30 2002-04-30 Cisco Technology, Inc. Test information management system
JP5435568B2 (en) * 2006-07-09 2014-03-05 マイクロソフト アマルガメイテッド カンパニー ザ サード Method and apparatus for reusing data access and presentation elements
CN101110020B (en) * 2006-07-21 2011-01-26 国际商业机器公司 Method and system for maintaining originality-related information about elements in an editable object
US8667014B2 (en) * 2009-11-04 2014-03-04 Columbia Sportswear North America, Inc. Reusable packaging history tracking system and query interface
CN102346756B (en) * 2010-12-24 2013-04-03 镇江诺尼基智能技术有限公司 Device failure solution knowledge management and search system and method
CN102324072B (en) * 2011-09-14 2015-02-04 西安易博软件有限责任公司 Full three-dimensional digital knowledge base system and application method of knowledge base
CN103559309B (en) * 2013-11-19 2016-05-25 北京航空航天大学 A kind of music retrieval and commending system accelerating based on GPU

Also Published As

Publication number Publication date
CN105447016A (en) 2016-03-30

Similar Documents

Publication Publication Date Title
CN104077341B (en) The method and apparatus that keyword automatically replies mapping relations is generated in instant messaging
CN102436513B (en) Distributed search method and system
CN104735468B (en) A kind of method and system that image is synthesized to new video based on semantic analysis
CN102932679B (en) A kind of Internet video prebrowsing system and method
CN103020025B (en) Technology for the automatic animation of document content
CN105447016B (en) A kind of fast search of component and the method for reuse
CN105376502A (en) All media on-line editing tool
CN104346322A (en) Document format processing device and document format processing method
CN102073633A (en) Method and device for storing and accessing resource file
CN104281626A (en) Webpage display method and webpage display device based on picture processing
KR100453516B1 (en) Transferring system for huge and high quality images on network and method thereof
CN104516892A (en) Distribution method, system and terminal of user generated content associated with rich media information
US10289747B2 (en) Dynamic file concatenation
CN103678357B (en) A kind of method and device of acquisition for mobile terminal picture thumbnail
CN105094753A (en) Method, device, and system for drawing wireframe
US20080303839A1 (en) Facilitating caching in an image-processing system
CN112597348A (en) Method and device for optimizing big data storage
CN108509504A (en) The online method for previewing of document, device, equipment, client and storage medium
CN115731313A (en) SVG format picture processing method, device, equipment, medium and product
CN102568021B (en) A kind of picture playing method based on flash and system
KR101647371B1 (en) STL file including text information and, STL file searching and management system therefor
JP5792326B2 (en) Reading service providing method, content providing server and system
CN106484755A (en) The method of asynchronous quick loading video thumbnails
US20230418874A1 (en) Styling a query response based on a subject identified in the query
CN105095216A (en) Data assembling method and device and resource communication system

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220623

Address after: 3007, Hengqin international financial center building, No. 58, Huajin street, Hengqin new area, Zhuhai, Guangdong 519031

Patentee after: New founder holdings development Co.,Ltd.

Patentee after: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

Address before: 100871, fangzheng building, 298 Fu Cheng Road, Beijing, Haidian District

Patentee before: PEKING UNIVERSITY FOUNDER GROUP Co.,Ltd.

Patentee before: BEIJING FOUNDER ELECTRONICS Co.,Ltd.

TR01 Transfer of patent right
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180914

CF01 Termination of patent right due to non-payment of annual fee