CN102867039B - Adding and reading method and device of multimedia annotations - Google Patents

Adding and reading method and device of multimedia annotations Download PDF

Info

Publication number
CN102867039B
CN102867039B CN201210320273.5A CN201210320273A CN102867039B CN 102867039 B CN102867039 B CN 102867039B CN 201210320273 A CN201210320273 A CN 201210320273A CN 102867039 B CN102867039 B CN 102867039B
Authority
CN
China
Prior art keywords
annotation
file
information
son
record
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
CN201210320273.5A
Other languages
Chinese (zh)
Other versions
CN102867039A (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.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Qihoo Technology Co Ltd
Qizhi Software Beijing 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 Beijing Qihoo Technology Co Ltd, Qizhi Software Beijing Co Ltd filed Critical Beijing Qihoo Technology Co Ltd
Priority to CN201210320273.5A priority Critical patent/CN102867039B/en
Publication of CN102867039A publication Critical patent/CN102867039A/en
Application granted granted Critical
Publication of CN102867039B publication Critical patent/CN102867039B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Landscapes

  • Storage Device Security (AREA)

Abstract

The invention discloses an adding and reading method and device of multimedia annotations, wherein the adding method of the multimedia annotations comprises the following steps of: merging at least one annotation sub-file to get an annotation main file; positioning a center structure region of a compressed file and recording redundant information positioned after the center structure region; adding an annotation header including mark information into the compressed file; adding the annotation main file into the compressed file after the annotation header; and writing the redundant information into the compressed file after the annotation main file. According to the method disclosed by the invention, the size of the annotation main file is not limited, annotation content in any size can be added and read, the annotation content includes picture files, audio files, video files, animation files or hyperlink information files, and the requirements of people on sense of vision or sense of hearing and other audiovisual elements can be met.

Description

The interpolation of multimedia annotation, read method and device
Technical field
The present invention relates to computer processing technology field, be specifically related to a kind of interpolation of multimedia annotation, read method and device.
Background technology
In the prior art, tool of compression changes file content and data by certain compression algorithm, makes data take less storage space.Particularly, ordinary file generally all comprises certain repeating data, these data repeated often occupy the storage space of many times, tool of compression needs these repeating datas in locating file, by suitable algorithm, data are rebuild, allow multiple repeating data only take a storage space, when decompressing, reduced by file after compression by corresponding decompression algorithm, this compression algorithm generally belongs to Lossless Compression again.Such as, in text, comprise multiple identical word " People's Republic of China (PRC) ", after being compressed by tool of compression, only need take a storage space and store, thus reach the object reducing file.In addition, tool of compression can not only help user to save space, also multiple file can be broken into a compressed package, to facilitate user ID, transmit and share simultaneously.
But the compressed file used is many, and time one length will not know there is which file, lets alone in file have which content, if write several annotations to compressed file, opens and knows that it is what has acted at a glance later.
In WinRAR, just provide such annotation function, concrete method of operating is: first open corresponding compressed file with WinRAR, and the Comments button then on click tools hurdle, inputs the notes content of oneself in annotations window.The Comments button when wanting next time to add or check again on click tools hurdle.When opening this file, its annotation information appears on the right of window, very clear later.But the annotation length limited that the annotation function that WinRAR provides is supported, only can input the notes content of plain text according to this annotation length, the expressive force of plain text is abundant not, can not meet the requirement of people to the audio-visual elements such as vision or the sense of hearing.
Summary of the invention
In view of the above problems, propose the present invention in case provide a kind of overcome the problems referred to above or the multimedia annotation that solves the problem at least in part interpolation, the interpolation of read method and corresponding multimedia annotation, reading device.
According to an aspect of the present invention, provide a kind of adding method of multimedia annotation, comprising:
At least one annotation son file is merged, obtains annotating master file;
The division center region of location compressed file, records the redundant information be positioned at after described division center region;
After described redundant information, in compressed file, add the annotation head comprising flag information;
After described annotation head, in compressed file, add described annotation master file;
After described annotation master file, in compressed file, write described redundant information.
Alternatively, described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
Alternatively, described annotation master file comprises master file head, described at least one annotation son file and master file tail; Store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
Alternatively, described annotation son file comprises record-header, annotation son file content and record tail; Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
Alternatively, also comprised before the division center region of described location compressed file: check the whether existing annotation of described compressed file, if any, existing annotation is deleted.
According to a further aspect in the invention, provide a kind of read method of multimedia annotation, comprising:
The ending of location compressed file, reads redundant information;
Locate the division center region of described compressed file, travel through the information between described division center region and described redundant information, according to the flag information that annotation head comprises, obtain described annotation head and annotation master file;
Described annotation head and described annotation master file are exported in disk file;
Read at least one annotation son file that described annotation master file comprises, annotation son file content is loaded into forms and shows.
Alternatively, described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
Alternatively, described annotation master file comprises master file head, described at least one annotation son file and master file tail; Store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
Alternatively, described annotation son file comprises record-header, annotation son file content and record tail; Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
Alternatively, if store check information in described record-header and/or record tail, also comprise described annotation son file content is loaded into before forms are shown: according to described check information, described annotation son file is verified; In verification by rear, perform and annotation son file content is loaded into forms shows.
Alternatively, if store encrypted message in described record-header and/or record tail, also comprise described annotation son file content is loaded into before forms are shown: the encrypted message that the encrypted message stored in described record-header and/or record tail and user input is verified; If checking is consistent, performs and annotation son file content is loaded into forms shows.
According to another aspect of the invention, provide a kind of adding set of multimedia annotation, comprising:
Merge module, at least one annotation son file is merged, obtain annotating master file;
Logging modle, for locating the division center region of compressed file, records the redundant information be positioned at after described division center region;
First adds module, for after described redundant information, adds the annotation head comprising flag information in compressed file;
Second adds module, for after described annotation head, adds described annotation master file in compressed file;
Writing module, for after described annotation master file, writes described redundant information in compressed file.
Alternatively, described device also comprises:
Checking module, for checking the whether existing annotation of described compressed file;
Removing module, for check out the annotated situation of described compressed file at described checking module under, deletes existing annotation.
In accordance with a further aspect of the present invention, provide a kind of reading device of multimedia annotation, comprising:
Read module, for locating the ending of compressed file, reads redundant information;
Spider module, for locating the division center region of described compressed file, travels through the information between described division center region and described redundant information, according to the flag information that annotation head comprises, obtains described annotation head and annotation master file;
Derive module, for exporting in disk file by described annotation head and described annotation master file;
Display module, for reading at least one annotation son file that described annotation master file comprises, being loaded into forms by annotation son file content and showing.
Alternatively, described annotation son file comprises record-header, annotation son file content and record tail; Check information is stored in described record-header and/or record tail;
Described device also comprises: correction verification module, for verifying described annotation son file according to described check information;
At least one annotation son file that described display module comprises specifically for reading described annotation master file, after described correction verification module is upchecked, is loaded into forms by annotation son file content and shows.
Alternatively, described annotation son file comprises record-header, annotation son file content and record tail; Encrypted message is stored in described record-header and/or record tail;
Described device also comprises: authentication module, verifies for the encrypted message encrypted message stored in described record-header and/or record tail and user inputted;
At least one annotation son file that described display module comprises specifically for reading described annotation master file, when described authentication module verifies that in described record-header and/or record tail, the encrypted message that stores is consistent with the encrypted message that user inputs, annotation son file content is loaded into forms and shows.
According to technical scheme provided by the invention, when carrying out compressing file, notes content can be added in compressed file in the lump, and be after original compressed file, add annotation head, annotation master file and redundant information successively; Corresponding, when carrying out file decompression, obtaining the notes content be added on after original compressed file simultaneously, being then loaded into forms and showing.In the present invention, the size of annotation master file is unrestricted, the notes content of any size can add and be read, and comprises picture file, audio file, video file, animation file or hyperlinked information file, can meet the requirement of people to the audio-visual elements such as vision or the sense of hearing.
Above-mentioned explanation is only the general introduction of technical solution of the present invention, in order to technological means of the present invention can be better understood, and can be implemented according to the content of instructions, and can become apparent, below especially exemplified by the specific embodiment of the present invention to allow above and other objects of the present invention, feature and advantage.
Accompanying drawing explanation
By reading hereafter detailed description of the preferred embodiment, various other advantage and benefit will become cheer and bright for those of ordinary skill in the art.Accompanying drawing only for illustrating the object of preferred implementation, and does not think limitation of the present invention.And in whole accompanying drawing, represent identical parts by identical reference symbol.In the accompanying drawings:
Fig. 1 shows the schematic diagram of the data memory format of the compressed file of common zip form;
Fig. 2 shows the process flow diagram of the adding method of multimedia annotation according to an embodiment of the invention;
Fig. 3 shows the schematic diagram of the data memory format of the super annotation son file of the embodiment of the present invention;
Fig. 4 shows the schematic diagram of the data memory format of the super annotation master file of the embodiment of the present invention;
Fig. 5 shows the schematic diagram of the data memory format of the compressed file of the embodiment of the present invention;
Fig. 6 shows the schematic diagram of the data memory format of super annotation master file in the concrete example of the present invention one;
Fig. 7 shows in the concrete example of the present invention one schematic diagram of the data memory format adding the rear compressed file of annotation;
Fig. 8 shows the process flow diagram of the read method of multimedia annotation according to an embodiment of the invention;
Fig. 9 shows the structural representation of the adding set of multimedia annotation according to an embodiment of the invention;
Figure 10 shows the structural representation of the reading device of multimedia annotation according to an embodiment of the invention.
Embodiment
Below with reference to accompanying drawings exemplary embodiment of the present disclosure is described in more detail.Although show exemplary embodiment of the present disclosure in accompanying drawing, however should be appreciated that can realize the disclosure in a variety of manners and not should limit by the embodiment set forth here.On the contrary, provide these embodiments to be in order to more thoroughly the disclosure can be understood, and complete for the scope of the present disclosure can be conveyed to those skilled in the art.
In order to distinguish with the annotation of plain text in prior art, in following embodiments of the invention, the annotation comprising the audio-visual elements such as vision or the sense of hearing is referred to as super annotation.The content of super annotation is present on certain position of compressed package with binary form.
For different tools of compression, such as: winzip tool of compression, winrar tool of compression, 7-zip tool of compression etc., the compressed format corresponding with tool of compression also has multiple, such as: rar form, zip form, 7z form, cab form etc.The advantage of zip form uses extensively, and compression speed is fast, but compresses smaller; Rar form is usually high than the ratio of compression of zip form, but compression speed is slower, and winrar tool of compression can compress special optimization algorithm by executive routine for text, sound and image on 32 and 64 Intel (Intel) microprocessors, further increases ratio of compression; 7z form usually than zip form and rar format compression higher than all, simultaneously compression time also than zip form and rar form all long.
In following examples of the present invention, the carrier specifically for zip form as super annotation is introduced.Because zip form is increased income, its file data storage format is known, and division center is the distinctive storage organization of zip form, and this structure is the core texture of zip file, it stores bibliographic structure, can be traveled through all son files in zip file by it.Fig. 1 shows the schematic diagram of the data memory format of the compressed file of common zip form.As shown in Figure 1, the structure of zip form is relatively simple, before n compressed file is positioned at division center region, be redundant information after division center region, it supports backward traversal and forward direction traversal, and compressed software can be allowed reasonably to find any information, data access is very flexible, and amendment difficulty is less.Zip form fault-tolerance is comparatively strong, if amendment partial data, can not affect the integrality of compressed package.The division center region of zip form is at the end of compressed file, and the data volume of adding annotation redundancy is little, and the data volume of movement is limited, and this makes the efficiency comparison adding, delete and revise annotation high.
Fig. 2 shows the process flow diagram of the adding method of multimedia annotation according to an embodiment of the invention.As shown in Figure 2, the method comprises the steps:
Step 101, at least one super annotation son file to be merged, obtain super annotation master file.
The super annotation son file of the present embodiment is the file comprising audio-visual elements, and it includes but not limited to picture file, audio file, video file, animation file or hyperlinked information file.Several super annotation son files are merged into a super annotation master file, can so that locate whole super annotation master file accurately when reading.
Fig. 3 shows the schematic diagram of the data memory format of the super annotation son file of the embodiment of the present invention.As shown in Figure 3, each super annotation son file comprises record-header, super annotation son file content and record tail.Store in following information in record-header and/or record tail one or more: super annotation son file name information, positional information, length information, check information, flag information and encrypted message.Preferably, the name information of super annotation son file, positional information, length information and encrypted message are stored in record-header, and the check information of super annotation son file and flag information are stored in record tail.Wherein, check information can be adopt md5(Message Digest Algorithm 5, Message Digest 5 the 5th edition) obtain, encrypted message can be obtain according to the input of user.
Super annotation son file shown in n Fig. 3 is merged, obtains a complete super annotation master file.Fig. 4 shows the schematic diagram of the data memory format of the super annotation master file of the embodiment of the present invention.As shown in Figure 4, super annotation master file comprises master file head, a n super annotation son file and master file tail.Store in following information in master file head and/or master file tail one or more: the quantity of super annotation son file and the author information of super annotation master file, version information, date and time information, check information and signature flag information.Preferably, the quantity of super annotation son file and the author information of super annotation master file, version information, date and time information are stored in master file head, and check information and the signature flag information of super annotation master file are stored in master file tail.Wherein, check information can adopt md5 to obtain, and signature flag information can be used for checking whether the integrality of super annotation master file is destroyed, and can also be used to mark and is about to traverse super annotation son file.
The division center region of step 102, location compressed file, records the redundant information be positioned at after division center region.
In the compressed file of zip form, division center region is a very important concept, and it is equivalent to the nervous centralis of a compressed file, once this region is destroyed, whole compressed file is also just damaged.As shown in Figure 1, after the compressed file of zip form, three segment informations are redundant informations, comprise 64 endings, 63 ending indicators and ordinary file ending.After navigating to the division center region of compressed file, record the redundant information be positioned at after division center region.
Step 103, after redundant information, add in compressed file and comprise the annotation head of flag information.
Fig. 5 shows the schematic diagram of the data memory format of the compressed file of the embodiment of the present invention.As shown in Figure 5, be the super comment field of compressed file after redundant information, the information that this super comment field stores is annotation head and notes content.Preferably, the length of annotation head is 32 bytes, and wherein flag information takies 20 bytes, and this flag information is used for marking the beginning of super comment field.And then flag information is annotation length information, takies 8 bytes, is used for showing the total length of notes content.4 last bytes are reserved field.
Step 104, annotation head after, in compressed file add annotation master file.
After annotation head, in compressed file, add notes content, i.e. above-mentioned annotation master file.
Step 105, annotation master file after, in compressed file, write redundant information.
See Fig. 5, after annotation master file, in compressed file, write redundant information, be i.e. the redundant information of above-mentioned steps 102 record, comprise 64 endings, 63 ending indicators and ordinary file ending totally three segment informations.Writing redundant information is herein in order to compatible forward direction travels through, and namely can find division center region from the ending of compressed file, then from division center regional search to compressed file.
Further, before above-mentioned steps 102, the method that the present embodiment provides can also comprise:
The whether existing annotation of step 101a, inspection compressed file, if so, performs step 101b; Otherwise, perform step 102.
Step 101b, existing annotation to be deleted, perform step 102.
Be described further below by the concrete technical scheme of example to the present embodiment.
Suppose to add in compressed file by two super annotation son file 1.jpg and update.txt, table 1 shows the details of these two super annotation son files.
The information of the super annotation son file of table 1.
Source file Skew Length Encrypted message
1.jpg 89001 327038 bytes 0x8080
update.txt 1024 87632 bytes 0x55aa
Wherein 1.jpg is a picture file, and its length is 327038 bytes, and corresponding encrypted message is 0x8080.Update.txt is a text, and its length is 87632 bytes, and corresponding encrypted message is 0x55aa.
Above-mentioned two super annotation son files are merged into a super annotation master file text.comment.Fig. 6 shows the schematic diagram of the data memory format of super annotation master file in the concrete example of the present invention one.As shown in Figure 6, the length merging the super annotation master file obtained is (1024+267+87632+78+267+327038+78+78) byte=416462 byte.Wherein, skew refers to the deflected length of the starting position of each storage unit relative to the starting position of master file.The md5 proof test value of super annotation master file text.comment is AE14DC8E3B4907807125616185B55862, and this proof test value can be used for the integrality verifying super annotation master file.
Suppose super annotation master file text.comment to be added in compressed file 1.zip.The details of compressed file before table 2 shows super annotation master file and adds annotation.
The information of the super annotation master file of table 2. and the front compressed file of interpolation
Source file Skew Length
1.zip 0 6063
test.comment 6095 416462
Fig. 7 shows in the concrete example of the present invention one schematic diagram of the data memory format adding the rear compressed file of annotation.As shown in Figure 7, after common zip data, with the addition of annotation head, notes content and redundant information, the length of the compressed file obtained is (6063+32+416462+22) byte=422579 byte.
The adding method of the multimedia annotation provided by the present embodiment, when carrying out compressing file, can be added to super notes content in compressed file in the lump.Owing to being after original compressed file, add annotation head, annotation master file and redundant information successively, the size of annotation master file is unrestricted, the notes content of any size can add, comprise picture file, audio file, video file, animation file or hyperlinked information file, the requirement of people to the audio-visual elements such as vision or the sense of hearing can be met.
Fig. 8 shows the process flow diagram of the read method of multimedia annotation according to an embodiment of the invention.As shown in Figure 8, the method comprises the steps:
The ending of step 201, location compressed file, reads redundant information.
For the compressed file shown in Fig. 5, first locating the ending of compressed file when reading, reading redundant information, this redundant information comprises 64 endings, 63 ending indicators and ordinary file ending totally three segment informations.
The division center region of step 202, location compressed file, the information between traversal division center region and redundant information, according to the flag information that annotation head comprises, obtains annotation head and super annotation master file.
After navigating to redundant information, centre of location structural region, obtains information between division center region and redundant information by traversal, comprises the information being arranged in redundant information after division center region and super comment field and storing.If traverse end-of-file (EOF) to find there is no other information between division center region and redundant information from division center region always, then show that this compressed file does not have super notes content.Otherwise, by finding the flag information in annotation head, navigate to super comment field, thus obtain annotation head and super annotation master file.
Preferably, the length of annotation head is 32 bytes, and wherein flag information takies 20 bytes, and this flag information is used for marking the beginning of super comment field.And then flag information is annotation length information, takies 8 bytes, is used for showing the total length of notes content.4 last bytes are reserved field.
The data memory format of super annotation master file can see Fig. 4.Super annotation master file comprises master file head, a n super annotation son file and master file tail.Store in following information in master file head and/or master file tail one or more: the quantity of super annotation son file and the author information of super annotation master file, version information, date and time information, check information and signature flag information.Preferably, the quantity of super annotation son file and the author information of super annotation master file, version information, date and time information are stored in master file head, and check information and the signature flag information of super annotation master file are stored in master file tail.Wherein, check information can adopt md5 to obtain, and signature flag information can be used for checking whether the integrality of super annotation master file is destroyed, and can also be used to mark and is about to traverse super annotation son file.
Step 203, annotation head and super annotation master file to be exported in disk file.
Step 204, read at least one super annotation son file that super annotation master file comprises, super annotation son file content is loaded into forms and shows.
The super annotation son file of the present embodiment is the file comprising audio-visual elements, and it includes but not limited to picture file, audio file, video file, animation file or hyperlinked information file.The data memory format of super annotation son file can see Fig. 3.Each super annotation son file comprises record-header, super annotation son file content and record tail.Store in following information in record-header and/or record tail one or more: super annotation son file name information, positional information, length information, check information, flag information and encrypted message.Preferably, the name information of super annotation son file, positional information, length information and encrypted message are stored in record-header, and the check information of super annotation son file and flag information are stored in record tail.
If store check information in record-header and/or record tail, also comprise annotation son file content is loaded into before forms are shown: verify annotating son file according to check information.In verification by rear, then annotation son file content is loaded into forms shows.
If store encrypted message in record-header and/or record tail, also comprise annotation son file content is loaded into before forms are shown: the encrypted message that the encrypted message stored in record-header and/or record tail and user input is verified.If checking is consistent, then annotation son file content is loaded into forms shows.
As preferred a kind of embodiment, above-mentioned reading process comprises: first check the signature flag information in master file head and master file tail, if this signature flag information is illegal, then read failure; If this signature flag information is legal, then verify the check information of master file; If verification is not passed through, then read failure; If verification is passed through, continue to read n super annotation son file; Then, the check information of each son file is verified respectively; If wherein the verification of some son file is not passed through, then read those son file failures; If wherein the verification of some son file is passed through, then whether the encrypted message continuing these son files of checking is identical with the encrypted message that user inputs, if different, then reads this son file failure; If identical, then corresponding son file be loaded into forms and show.
The read method of the multimedia annotation provided by the present embodiment, when carrying out file decompression, can obtain the super notes content comprised in compressed file simultaneously, and is loaded into forms and shows.Due to super notes content be added on original compressed file after, the size of super annotation master file is unrestricted, the notes content of any size can add and be read, comprise picture file, audio file, video file, animation file or hyperlinked information file, the requirement of people to the audio-visual elements such as vision or the sense of hearing can be met.
Fig. 9 shows the structural representation of the adding set of multimedia annotation according to an embodiment of the invention.As shown in Figure 9, this device comprises: merge module 10, logging modle 11, first interpolation module 12, second adds module 13 and writing module 14.Wherein, merging module 10 at least one annotation son file being merged, obtaining annotating master file; Logging modle 11, for locating the division center region of compressed file, records the redundant information be positioned at after described division center region; First adds module 12 for after described redundant information, adds the annotation head comprising flag information in compressed file; Second adds module 13 for after described annotation head, adds described annotation master file in compressed file; Writing module 14, for after described annotation master file, writes described redundant information in compressed file.
Described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
Described annotation master file comprises master file head, described at least one annotation son file and master file tail; Store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
Described annotation son file comprises record-header, annotation son file content and record tail; Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
This device can also comprise: checking module 15 and removing module 16.Wherein, checking module 15 is for checking the whether existing annotation of described compressed file; Existing annotation, under checking out the annotated situation of described compressed file at described checking module 15, is deleted by removing module 16.
The adding set of the multimedia annotation provided by the present embodiment, when carrying out compressing file, can be added to super notes content in compressed file in the lump.Owing to being after original compressed file, add annotation head, annotation master file and redundant information successively, the size of annotation master file is unrestricted, the notes content of any size can add, comprise picture file, audio file, video file, animation file or hyperlinked information file, the requirement of people to the audio-visual elements such as vision or the sense of hearing can be met.
Figure 10 shows the structural representation of the reading device of multimedia annotation according to an embodiment of the invention.As shown in Figure 10, this device comprises: read module 20, spider module 21, derivation module 22 and display module 23.Wherein, read module 20, for locating the ending of compressed file, reads redundant information; Spider module 21, for locating the division center region of described compressed file, travels through the information between described division center region and described redundant information, according to the flag information that annotation head comprises, obtains described annotation head and annotation master file; Derive module 22 for exporting in disk file by described annotation head and described annotation master file; At least one annotation son file that display module 23 comprises for reading described annotation master file, is loaded into forms by annotation son file content and shows.
Described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
Described annotation master file comprises master file head, described at least one annotation son file and master file tail; Store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
Described annotation son file comprises record-header, annotation son file content and record tail; Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
Described device can also comprise: correction verification module 24, for verifying described annotation son file according to described check information; At least one annotation son file that described display module 23 comprises specifically for reading described annotation master file, after described correction verification module 24 is upchecked, is loaded into forms by annotation son file content and shows.
Described device can also comprise: authentication module 25, verifies for the encrypted message encrypted message stored in described record-header and/or record tail and user inputted; At least one annotation son file that described display module 23 comprises specifically for reading described annotation master file, when described authentication module 25 verifies that in described record-header and/or record tail, the encrypted message that stores is consistent with the encrypted message that user inputs, annotation son file content is loaded into forms and shows.
The reading device of the multimedia annotation provided by the present embodiment, when carrying out file decompression, can obtain the super notes content comprised in compressed file simultaneously, and is loaded into forms and shows.Due to super notes content be added on original compressed file after, the size of super annotation master file is unrestricted, the notes content of any size can add and be read, comprise picture file, audio file, video file, animation file or hyperlinked information file, the requirement of people to the audio-visual elements such as vision or the sense of hearing can be met.
By the technical scheme that the embodiment of the present invention provides, user can add song, game or video in compressed file, just limit solution flanging can listen song, plays games or see video like this when decompressing; User also can add personalized picture in compressed file, like this can using the background display of this picture as compression interface when decompressing; Various application interesting in internet also can be added in compressed file by user.
Intrinsic not relevant to any certain computer, virtual system or miscellaneous equipment with display at this algorithm provided.Various general-purpose system also can with use based on together with this teaching.According to description above, the structure constructed required by this type systematic is apparent.In addition, the present invention is not also for any certain programmed language.It should be understood that and various programming language can be utilized to realize content of the present invention described here, and the description done language-specific is above to disclose preferred forms of the present invention.
In instructions provided herein, describe a large amount of detail.But can understand, embodiments of the invention can be put into practice when not having these details.In some instances, be not shown specifically known method, structure and technology, so that not fuzzy understanding of this description.
Similarly, be to be understood that, in order to simplify the disclosure and to help to understand in each inventive aspect one or more, in the description above to exemplary embodiment of the present invention, each feature of the present invention is grouped together in single embodiment, figure or the description to it sometimes.But, the method for the disclosure should be construed to the following intention of reflection: namely the present invention for required protection requires feature more more than the feature clearly recorded in each claim.Or rather, as claims below reflect, all features of disclosed single embodiment before inventive aspect is to be less than.Therefore, the claims following embodiment are incorporated to this embodiment thus clearly, and wherein each claim itself is as independent embodiment of the present invention.
Those skilled in the art are appreciated that and adaptively can change the module in the equipment in embodiment and they are arranged in one or more equipment different from this embodiment.Module in embodiment or unit or assembly can be combined into a module or unit or assembly, and multiple submodule or subelement or sub-component can be put them in addition.Except at least some in such feature and/or process or unit be mutually repel except, any combination can be adopted to combine all processes of all features disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) and so disclosed any method or equipment or unit.Unless expressly stated otherwise, each feature disclosed in this instructions (comprising adjoint claim, summary and accompanying drawing) can by providing identical, alternative features that is equivalent or similar object replaces.
In addition, those skilled in the art can understand, although embodiments more described herein to comprise in other embodiment some included feature instead of further feature, the combination of the feature of different embodiment means and to be within scope of the present invention and to form different embodiments.Such as, in the following claims, the one of any of embodiment required for protection can use with arbitrary array mode.
All parts embodiment of the present invention with hardware implementing, or can realize with the software module run on one or more processor, or realizes with their combination.It will be understood by those of skill in the art that the some or all functions that microprocessor or digital signal processor (DSP) can be used in practice to realize according to the some or all parts in the device of the embodiment of the present invention.The present invention can also be embodied as part or all equipment for performing method as described herein or device program (such as, computer program and computer program).Realizing program of the present invention and can store on a computer-readable medium like this, or the form of one or more signal can be had.Such signal can be downloaded from internet website and obtain, or provides on carrier signal, or provides with any other form.
The present invention will be described instead of limit the invention to it should be noted above-described embodiment, and those skilled in the art can design alternative embodiment when not departing from the scope of claims.In the claims, any reference symbol between bracket should be configured to limitations on claims.Word " comprises " not to be got rid of existence and does not arrange element in the claims or step.Word "a" or "an" before being positioned at element is not got rid of and be there is multiple such element.The present invention can by means of including the hardware of some different elements and realizing by means of the computing machine of suitably programming.In the unit claim listing some devices, several in these devices can be carry out imbody by same hardware branch.Word first, second and third-class use do not represent any order.Can be title by these word explanations.

Claims (16)

1. an adding method for multimedia annotation, comprising:
At least one annotation son file merged, obtain annotating master file, wherein, described annotation son file is the file comprising audio-visual elements, and described annotation master file comprises master file head, described at least one annotation son file and master file tail;
The division center region of location compressed file, records the redundant information be positioned at after described division center region;
After described redundant information, add annotation head in compressed file, described annotation head comprises flag information, annotation length information and reserved field;
After described annotation head, in compressed file, add described annotation master file;
After described annotation master file, in compressed file, write described redundant information.
2. method according to claim 1, described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
3. method according to claim 1 and 2, store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
4. method according to claim 1 and 2, described annotation son file comprises record-header, annotation son file content and record tail;
Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
5. method according to claim 1, also comprised before the division center region of described location compressed file:
Check the whether existing annotation of described compressed file, if any, existing annotation is deleted.
6. a read method for multimedia annotation, comprising:
The ending of location compressed file, reads redundant information;
Locate the division center region of described compressed file, travel through the information between described division center region and described redundant information, according to the flag information that annotation head comprises, obtain described annotation head and annotation master file, wherein, described annotation head comprises flag information, annotation length information and reserved field, and described annotation master file comprises master file head, at least one annotation son file and master file tail, and described annotation son file is the file comprising audio-visual elements;
Described annotation head and described annotation master file are exported in disk file;
Read at least one annotation son file that described annotation master file comprises, annotation son file content is loaded into forms and shows.
7. method according to claim 6, described annotation son file is picture file, audio file, video file, animation file or hyperlinked information file.
8. the method according to claim 6 or 7, store in following information in described master file head and/or master file tail one or more: the quantity of described annotation son file, the author information of described annotation master file, version information, date and time information, check information and signature flag information.
9. the method according to claim 6 or 7, described annotation son file comprises record-header, annotation son file content and record tail;
Store in following information in described record-header and/or record tail one or more: annotation son file name information, positional information, length information, flag information, check information and encrypted message.
10. method according to claim 9, if store check information in described record-header and/or record tail, also comprise described annotation son file content is loaded into before forms are shown: according to described check information, described annotation son file is verified;
In verification by rear, perform and annotation son file content is loaded into forms shows.
11. methods according to claim 9, if store encrypted message in described record-header and/or record tail, also comprise described annotation son file content is loaded into before forms are shown: the encrypted message that the encrypted message stored in described record-header and/or record tail and user input is verified;
If checking is consistent, performs and annotation son file content is loaded into forms shows.
The adding set of 12. 1 kinds of multimedia annotation, comprising:
Merge module, at least one annotation son file being merged, obtain annotating master file, wherein, described annotation son file is the file comprising audio-visual elements, and described annotation master file comprises master file head, described at least one annotation son file and master file tail;
Logging modle, for locating the division center region of compressed file, records the redundant information be positioned at after described division center region;
First adds module, and for after described redundant information, add annotation head in compressed file, described annotation head comprises flag information, annotation length information and reserved field;
Second adds module, for after described annotation head, adds described annotation master file in compressed file;
Writing module, for after described annotation master file, writes described redundant information in compressed file.
13. devices according to claim 12, also comprise:
Checking module, for checking the whether existing annotation of described compressed file;
Removing module, for check out the annotated situation of described compressed file at described checking module under, deletes existing annotation.
The reading device of 14. 1 kinds of multimedia annotation, comprising:
Read module, for locating the ending of compressed file, reads redundant information;
Spider module, for locating the division center region of described compressed file, travel through the information between described division center region and described redundant information, according to the flag information that annotation head comprises, obtain described annotation head and annotation master file, wherein, described annotation head comprises flag information, annotation length information and reserved field, described annotation master file comprises master file head, at least one annotation son file and master file tail, and described annotation son file is the file comprising audio-visual elements;
Derive module, for exporting in disk file by described annotation head and described annotation master file;
Display module, for reading at least one annotation son file that described annotation master file comprises, being loaded into forms by annotation son file content and showing.
15. devices according to claim 14, described annotation son file comprises record-header, annotation son file content and record tail; Check information is stored in described record-header and/or record tail;
Described device also comprises: correction verification module, for verifying described annotation son file according to described check information;
At least one annotation son file that described display module comprises specifically for reading described annotation master file, after described correction verification module is upchecked, is loaded into forms by annotation son file content and shows.
16. devices according to claim 14, described annotation son file comprises record-header, annotation son file content and record tail; Encrypted message is stored in described record-header and/or record tail;
Described device also comprises: authentication module, verifies for the encrypted message encrypted message stored in described record-header and/or record tail and user inputted;
At least one annotation son file that described display module comprises specifically for reading described annotation master file, when described authentication module verifies that in described record-header and/or record tail, the encrypted message that stores is consistent with the encrypted message that user inputs, annotation son file content is loaded into forms and shows.
CN201210320273.5A 2012-08-31 2012-08-31 Adding and reading method and device of multimedia annotations Expired - Fee Related CN102867039B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201210320273.5A CN102867039B (en) 2012-08-31 2012-08-31 Adding and reading method and device of multimedia annotations

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201210320273.5A CN102867039B (en) 2012-08-31 2012-08-31 Adding and reading method and device of multimedia annotations

Publications (2)

Publication Number Publication Date
CN102867039A CN102867039A (en) 2013-01-09
CN102867039B true CN102867039B (en) 2015-04-01

Family

ID=47445908

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201210320273.5A Expired - Fee Related CN102867039B (en) 2012-08-31 2012-08-31 Adding and reading method and device of multimedia annotations

Country Status (1)

Country Link
CN (1) CN102867039B (en)

Families Citing this family (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104009965A (en) * 2013-02-27 2014-08-27 腾讯科技(深圳)有限公司 Method, apparatus and system for displaying mobile media information
CN103324513B (en) * 2013-06-04 2016-08-10 北京大学 Program annotation method and apparatus
KR102130812B1 (en) * 2013-09-23 2020-08-05 삼성전자주식회사 Methed and device for displaying content
CN103902648B (en) * 2014-02-10 2018-05-04 深圳市永兴元科技股份有限公司 Multifile processing system and method
CN106293542B (en) * 2016-08-23 2020-06-05 腾讯科技(深圳)有限公司 Method and device for decompressing file
CN107220309A (en) * 2017-05-11 2017-09-29 北京小米移动软件有限公司 Obtain the method and device of multimedia file
CN108021615A (en) * 2017-11-06 2018-05-11 广州市西美信息科技有限公司 Text fills the method and device of hyperlink
CN110825376B (en) * 2018-08-07 2024-03-12 深圳Tcl数字技术有限公司 Method, storage medium and device for analyzing annotated JSON file
CN111832265B (en) * 2019-04-22 2024-08-27 珠海金山办公软件有限公司 Method and device for quickly exporting endorsements in document, electronic equipment and storage medium
CN111970689A (en) * 2020-06-29 2020-11-20 百度在线网络技术(北京)有限公司 OTA data packet generation method and device and electronic equipment

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101089880A (en) * 2007-07-13 2007-12-19 王少波 Electronic signature method
CN101473294A (en) * 2006-06-20 2009-07-01 诺基亚公司 System, device, method, and computer program product for annotating media files
CN101833681A (en) * 2010-04-02 2010-09-15 深圳市科陆电子科技股份有限公司 Electronic label system, compression and encryption method thereof
CN102420843A (en) * 2011-06-24 2012-04-18 奇智软件(北京)有限公司 Compression and decompression method, device and system based on cloud compression link

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP5205684B2 (en) * 2001-08-29 2013-06-05 日本電気株式会社 Bookmark management system and bookmark management method

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101473294A (en) * 2006-06-20 2009-07-01 诺基亚公司 System, device, method, and computer program product for annotating media files
CN101089880A (en) * 2007-07-13 2007-12-19 王少波 Electronic signature method
CN101833681A (en) * 2010-04-02 2010-09-15 深圳市科陆电子科技股份有限公司 Electronic label system, compression and encryption method thereof
CN102420843A (en) * 2011-06-24 2012-04-18 奇智软件(北京)有限公司 Compression and decompression method, device and system based on cloud compression link

Also Published As

Publication number Publication date
CN102867039A (en) 2013-01-09

Similar Documents

Publication Publication Date Title
CN102867039B (en) Adding and reading method and device of multimedia annotations
US20220342875A1 (en) Data preparation context navigation
US11169978B2 (en) Distributed pipeline optimization for data preparation
US10104082B2 (en) Aggregated information access and control using a personal unifying taxonomy
US10248556B2 (en) Forward-only paged data storage management where virtual cursor moves in only one direction from header of a session to data field of the session
JP6598996B2 (en) Signature-based cache optimization for data preparation
CN102737205B (en) Protection comprises can the file of editing meta-data
US8095575B1 (en) Word processor data organization
US20080282355A1 (en) Document container data structure and methods thereof
JP2007012058A (en) File system for storing transaction records in flash-like media
KR20070003578A (en) File system having deferred verification of data integrity
CN102306168B (en) Log operation method and device and file system
Frühwirt et al. InnoDB database forensics: Enhanced reconstruction of data manipulation queries from redo logs
KR20070003576A (en) Optimized startup verification of file system integrity
JP2006313548A (en) Device and method for storing and managing additional information in file system
US10642815B2 (en) Step editor for data preparation
US20100251227A1 (en) Binary resource format and compiler
CN102200968A (en) Method and device for removing duplications of EXCEL form data
JP6598997B2 (en) Cache optimization for data preparation
CN114625696B (en) File recovery method and device, electronic equipment and storage medium
US7730388B2 (en) Converting an enhanced metafile into a chronologically independent object property list for conversion into a PDF document
CN118211198A (en) Multi-element coding watermarking method and system based on file structure
EP2856359B1 (en) Systems and methods for storing data and eliminating redundancy
US20190354612A1 (en) System, apparatus, and method for efficiently managing memory of electronic devices
JP5488587B2 (en) Information processing system and 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
C14 Grant of patent or utility model
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20220711

Address after: Room 801, 8th floor, No. 104, floors 1-19, building 2, yard 6, Jiuxianqiao Road, Chaoyang District, Beijing 100015

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Address before: 100088 room 112, block D, 28 new street, new street, Xicheng District, Beijing (Desheng Park)

Patentee before: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Patentee before: Qizhi software (Beijing) Co.,Ltd.

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

Granted publication date: 20150401

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