CN102509313A - Encapsulating method of multimedia image data - Google Patents
Encapsulating method of multimedia image data Download PDFInfo
- Publication number
- CN102509313A CN102509313A CN2011103171427A CN201110317142A CN102509313A CN 102509313 A CN102509313 A CN 102509313A CN 2011103171427 A CN2011103171427 A CN 2011103171427A CN 201110317142 A CN201110317142 A CN 201110317142A CN 102509313 A CN102509313 A CN 102509313A
- Authority
- CN
- China
- Prior art keywords
- image data
- picture
- preview
- special efficacy
- optional
- 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 claims abstract description 40
- 238000012856 packing Methods 0.000 claims description 27
- 230000000149 penetrating effect Effects 0.000 claims description 14
- 230000006835 compression Effects 0.000 claims description 5
- 238000007906 compression Methods 0.000 claims description 5
- 230000000694 effects Effects 0.000 abstract description 6
- 238000005516 engineering process Methods 0.000 description 4
- 238000005538 encapsulation Methods 0.000 description 3
- 238000010586 diagram Methods 0.000 description 1
Images
Abstract
The invention relates to an encapsulating method of multimedia image data. The encapsulating method comprises the steps of: configuring an image packet head for recording length information, type, contrast ratio, display height and display width of the image data for encapsulated image data,, and encapsulating the image packet head and the image data into an image part in multimedia image data; configuring required special effect parameters and optional special effect parameters for the image data; recording the length information, the total quantity of the required special effect parameters and existing tags of the optional preview image data, and encapsulating the length information, the total quantity of the required special effect parameters and the existing tags of the optional preview image data into a special effect parameter part in the multimedia image data; configuring a preview image packet head for the preview image data for recording size, type, contrast ratio, display height and display width of the preview image data if the existing tags are true, and encapsulating the preview image packet head into a preview image part in the multimedia image data together with the preview image data. According to the encapsulating method, the multimedia application can be more convenient and efficient, and can be compatible with image data in various formats.
Description
Technical field
The present invention relates to the multi-media image technical field, be specifically related to a kind of method for packing of multimedia image data, can be applicable in the smart mobile phone.
Background technology
Multimedia is the combination of computing machine and video technique, and in fact it is two medium; Sound and image are perhaps used present term: sound equipment and TV.Multimedia itself has two aspects, the same with all modern technologies it be by hardware and software, or machine and thought are mixed and are formed.Can be with multimedia technology and function in conceptive control system and the information divided into.Why multimedia can realize it being to rely on digital technology.Multimedia is represented converging of digital control and Digital Media, and computer is a digital control system, and Digital Media is state-of-the-art storage of current Voice & Video and mode of propagation.Multimedia computer need have the ability stronger than main flow computer, and multimedia computer has determined the development of main flow computer.The main thing of difference common computer and multimedia computer is sound card and CD-ROM driver.CD is multimedia main storage and switched-media.
Image is one of multimedia bearing mode, and it is a kind of form of describing things geometric properties, form, position and size with point, line, symbol, literal and numeral etc.
Existing common view data method for packing has following several kinds:
1, the BMP form;
2, the GIF form;
3, jpeg format;
4, the JPEG2000 form;
5, tiff format;
6, the PSD form;
7, the PNG form;
8, the SWF form;
9, the SVG form;
10, the JPG form;
Other picture format as:
1, the PCX form;
2, the DXF form;
3, the WMF form;
4, the EMF form;
5, LIC (FLI/FLC) form;
6, the EPS form;
7, the TGA form;
More than existing picture format be difficult to contain each other; The characteristic that also can't have several kinds of picture formats commonly used simultaneously; More there is not multimedia special efficacy application message; This makes troubles for more and more abundanter user-interaction experience or increases its processing time, thereby shows its multimedia special efficacy inadequately fully glibly.
Summary of the invention
The technical issues that need to address of the present invention are, how a kind of method for packing of multimedia image data is provided, and can make the view data that multimedia application can be carried out more easily and efficiently and can compatible various forms.
Technical matters of the present invention solves like this: make up a kind of method for packing of multimedia image data, this multimedia image data comprises special efficacy argument section and picture part, and this method specifically may further comprise the steps:
Be picture packet header of packed image data configuration, write down the length information and the type of packed image data size, again with said image data, according to said picture packet header preceding, packed image data after order, be packaged in said picture part;
For packed image data disposes essential special efficacy parameter and optional special efficacy parameter, and in this part the total number of minute book partial-length information and optional special efficacy parameter is packaged in the special efficacy argument section before the said picture part that is positioned in the said multimedia image data together; Said essential special efficacy parameter comprises penetrating frame zone, picture compression ratio, the picture anglec of rotation or screen switching anyhow; The total number of said optional special efficacy parameter is a positive integer.
This method for packing can compatible various picture formats, and the multimedia special efficacy that can adapt to is better more and more widely used.
According to method for packing provided by the invention, this multimedia image data also comprises optional preview picture part, and this method is further comprising the steps of:
Further according to whether having optional preview image data, there is mark in the record correspondence and is packaged in the said special efficacy argument section;
If said existence is labeled as very; Be a preview picture of said preview picture data configuration packet header; Write down the length information of said preview picture size of data; Again with said preview image data, according to said preview picture packet header preceding, said preview image data after order, be packaged in the said optional preview picture part after the said picture part that is positioned in the said multimedia image data.
This method for packing especially when image data is very big, can be accelerated preview speed greatly.
According to method for packing provided by the invention, further in said preview picture packet header, write down said preview picture type of data, show height and display width.
According to method for packing provided by the invention, further in said preview picture packet header, write down the contrast of said preview image data.
According to method for packing provided by the invention, further in said picture packet header, write down the demonstration height and the display width of said image data.
According to method for packing provided by the invention, further in said picture packet header, write down the contrast of said image data.
According to method for packing provided by the invention, dispose any said optional special efficacy parameter and comprise: sequence number index, subparameter sum and self each subparameter of writing down this optional special efficacy parameter successively.
According to method for packing provided by the invention, further encapsulate the reservation guard byte of designated length at the afterbody of said special efficacy argument section.
According to method for packing provided by the invention, said type is any in BMP form, GIF form, jpeg format, JPEG2000 form, tiff format, PSD form, PNG form, SWF form, SVG form, JPG form, PCX form, DXF form, WMF form, EMF form, LIC form, EPS form or the TGA form.
According to method for packing provided by the invention, this multimedia image data comprises special efficacy argument section, picture part and optional preview picture part, and this method specifically may further comprise the steps:
Be picture packet header of packed image data configuration; Write down length information, type, contrast, demonstration height and the display width of packed image data size; Again with said image data; According to said picture packet header preceding, packed image data after order, be packaged in said picture part;
For packed image data disposes essential special efficacy parameter and optional special efficacy parameter, and in this part minute book partial-length information, optional special efficacy parameter total number and be used for mark and whether exist the mark of optional preview image data to be packaged in the special efficacy argument section before the said picture of being positioned at of the said multimedia image data part together; Said essential special efficacy parameter comprises penetrating frame zone, picture compression ratio, the picture anglec of rotation or screen switching anyhow; The total number of said optional special efficacy parameter is a positive integer, and disposes any said optional special efficacy parameter and comprise: sequence number index, subparameter sum and self each subparameter of writing down this optional special efficacy parameter successively;
If said existence is labeled as very; Be a preview picture of said preview picture data configuration packet header; Write down length information, type, contrast, demonstration height and the display width of said preview picture size of data; Again with said preview image data, according to said preview picture packet header preceding, said preview image data after order, be packaged in the said optional preview picture part after the said picture part that is positioned in the said multimedia image data.
The method for packing of multimedia image data provided by the invention; Come to carry out effectively easily Flame Image Process through the parameter information of encapsulation multi-media image and the picture of required processing; Through " png " format picture, can provide a picture to handle with penetrating characteristic; Through parameter information, can solve needs other new files to indicate the difficult problem of the special effect processing that need carry out.
Description of drawings
Further the present invention is elaborated below in conjunction with accompanying drawing and specific embodiment:
Fig. 1 is the multimedia image data structural representation of the specific embodiment of the invention;
Fig. 2 is a parameter information partial data structural representation among Fig. 1;
Fig. 3 is the data structure synoptic diagram of png picture and preceding 8 bytes of preview picture among Fig. 1;
Fig. 4 is the schematic flow sheet of a kind of concrete application of multimedia image data of the present invention.
Embodiment
The present invention has realized the encapsulation to multi-media image and multi-media image processing parameter method; As shown in Figure 1, the multimedia image data of the specific embodiment of the invention includes 3 parts, and multimedia is handled special efficacy correlation parameter message part; Png pictorial information part; Preview picture message part, wherein: the png pictorial information partly comprises png picture correlation parameter and png image data information, preview picture message part comprises preview picture correlation parameter and preview picture data message.
As shown in Figure 2, the multimedia among Fig. 1 is handled mainly comprising of special efficacy correlation parameter message part:
201) total bytes of special efficacy correlation parameter is indicated the shared total bytes of this part.
The special efficacy sum that 202) need add when front template, the special efficacy number that indication is used.
203) the regional length of penetrating frame, the length in the penetrating zone of indication png picture.
204) the regional width of penetrating frame, the width in the penetrating zone of indication png picture.
205) the regional central point X of penetrating frame, the central point X coordinate in the penetrating zone of indication png picture.
206) the regional central point Y of penetrating frame, the central point Y coordinate in the penetrating zone of indication png picture.
207) the picture compression ratio compresses picture in proportion.
208) the picture anglec of rotation is rotated picture by angle.
209) screen switches anyhow, and whether the picture that is compressed to the penetrating zone of png carries out the rotation indication of 90 degree.
210) whether preview graph is arranged, whether indication also has another pictures data except png figure.
As shown in Figure 3, preceding 8 bytes of the png pictorial information part among Fig. 1 and preceding 8 bytes of preview picture message part have defined picture/mb-type (form), contrast, size, demonstration height and display width.
The image of above-mentioned encapsulation can be applicable to the entertaining camera function; Idiographic flow is as shown in Figure 4; Comprise: at first get into camera, select self-defined template, according to whether having preview graph to show preview graph or png picture; Choose and carry out camera after the template and take pictures, and then take a picture and png picture are synthesized.Make a kind of with take a picture and incorporate the form of png picture sight, succulency property more.
At last, the above is merely preferred embodiment of the present invention, and all equalizations of being done according to claim scope of the present invention change and modify, and all should belong to the covering scope of claim of the present invention.
Claims (10)
1. the method for packing of a multimedia image data is characterized in that, this multimedia image data comprises special efficacy argument section and picture part, and this method specifically may further comprise the steps:
Be picture packet header of packed image data configuration, write down the length information and the type of packed image data size, again with said image data, according to said picture packet header preceding, packed image data after order, be packaged in said picture part;
For packed image data disposes essential special efficacy parameter and optional special efficacy parameter, and in this part the total number of minute book partial-length information and optional special efficacy parameter is packaged in the special efficacy argument section before the said picture part that is positioned in the said multimedia image data together; Said essential special efficacy parameter comprises penetrating frame zone, picture compression ratio, the picture anglec of rotation or screen switching anyhow; The total number of said optional special efficacy parameter is a positive integer.
2. according to the said method for packing of claim 1, it is characterized in that this multimedia image data also comprises optional preview picture part, this method is further comprising the steps of:
Further according to whether having optional preview image data, there is mark in the record correspondence and is packaged in the said special efficacy argument section;
If said existence is labeled as very; Be a preview picture of said preview picture data configuration packet header; Write down the length information of said preview picture size of data; Again with said preview image data, according to said preview picture packet header preceding, said preview image data after order, be packaged in the said optional preview picture part after the said picture part that is positioned in the said multimedia image data.
3. according to the said method for packing of claim 2, it is characterized in that, further the said preview picture type of data of record, demonstration height and display width in said preview picture packet header.
4. according to the said method for packing of claim 3, it is characterized in that, further the contrast of the said preview image data of record in said preview picture packet header.
5. according to the said method for packing of claim 1, it is characterized in that, further the demonstration height and the display width of the said image data of record in said picture packet header.
6. according to the said method for packing of claim 1, it is characterized in that, further the contrast of the said image data of record in said picture packet header.
7. according to the said method for packing of claim 1, it is characterized in that, dispose any said optional special efficacy parameter and comprise: sequence number index, subparameter sum and self each subparameter of writing down this optional special efficacy parameter successively.
8. according to the said method for packing of claim 1, it is characterized in that, further encapsulate the reservation guard byte of designated length at the afterbody of said special efficacy argument section.
9. according to claim 1 or 3 said method for packing; It is characterized in that said type is any in BMP form, GIF form, jpeg format, JPEG2000 form, tiff format, PSD form, PNG form, SWF form, SVG form, JPG form, PCX form, DXF form, WMF form, EMF form, LIC form, EPS form or the TGA form.
10. according to the said method for packing of claim 1, it is characterized in that this multimedia image data comprises special efficacy argument section, picture part and optional preview picture part, this method specifically may further comprise the steps:
Be picture packet header of packed image data configuration; Write down length information, type, contrast, demonstration height and the display width of packed image data size; Again with said image data; According to said picture packet header preceding, packed image data after order, be packaged in said picture part;
For packed image data disposes essential special efficacy parameter and optional special efficacy parameter, and in this part minute book partial-length information, optional special efficacy parameter total number and be used for mark and whether exist the mark of optional preview image data to be packaged in the special efficacy argument section before the said picture of being positioned at of the said multimedia image data part together; Said essential special efficacy parameter comprises penetrating frame zone, picture compression ratio, the picture anglec of rotation or screen switching anyhow; The total number of said optional special efficacy parameter is a positive integer, and disposes any said optional special efficacy parameter and comprise: sequence number index, subparameter sum and self each subparameter of writing down this optional special efficacy parameter successively;
If said existence is labeled as very; Be a preview picture of said preview picture data configuration packet header; Write down length information, type, contrast, demonstration height and the display width of said preview picture size of data; Again with said preview image data, according to said preview picture packet header preceding, said preview image data after order, be packaged in the said optional preview picture part after the said picture part that is positioned in the said multimedia image data.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110317142 CN102509313B (en) | 2011-10-18 | 2011-10-18 | Encapsulating method of multimedia image data |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN 201110317142 CN102509313B (en) | 2011-10-18 | 2011-10-18 | Encapsulating method of multimedia image data |
Publications (2)
Publication Number | Publication Date |
---|---|
CN102509313A true CN102509313A (en) | 2012-06-20 |
CN102509313B CN102509313B (en) | 2013-06-05 |
Family
ID=46221391
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN 201110317142 Expired - Fee Related CN102509313B (en) | 2011-10-18 | 2011-10-18 | Encapsulating method of multimedia image data |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN102509313B (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105930743A (en) * | 2016-04-19 | 2016-09-07 | 北京易速普瑞科技有限公司 | 3D file encryption method |
CN109089150A (en) * | 2018-09-26 | 2018-12-25 | 联想(北京)有限公司 | Image processing method and electronic equipment |
CN113628097A (en) * | 2020-05-09 | 2021-11-09 | 北京字节跳动网络技术有限公司 | Image special effect configuration method, image recognition method, image special effect configuration device and electronic equipment |
Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174893A1 (en) * | 2002-03-18 | 2003-09-18 | Eastman Kodak Company | Digital image storage method |
CN101510313A (en) * | 2009-03-13 | 2009-08-19 | 腾讯科技(深圳)有限公司 | Method, system and medium player for generating GIF |
CN102137253A (en) * | 2010-01-25 | 2011-07-27 | 华为技术有限公司 | Picture processing method, terminal and server |
-
2011
- 2011-10-18 CN CN 201110317142 patent/CN102509313B/en not_active Expired - Fee Related
Patent Citations (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US20030174893A1 (en) * | 2002-03-18 | 2003-09-18 | Eastman Kodak Company | Digital image storage method |
CN101510313A (en) * | 2009-03-13 | 2009-08-19 | 腾讯科技(深圳)有限公司 | Method, system and medium player for generating GIF |
CN102137253A (en) * | 2010-01-25 | 2011-07-27 | 华为技术有限公司 | Picture processing method, terminal and server |
Cited By (5)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105930743A (en) * | 2016-04-19 | 2016-09-07 | 北京易速普瑞科技有限公司 | 3D file encryption method |
CN109089150A (en) * | 2018-09-26 | 2018-12-25 | 联想(北京)有限公司 | Image processing method and electronic equipment |
CN113628097A (en) * | 2020-05-09 | 2021-11-09 | 北京字节跳动网络技术有限公司 | Image special effect configuration method, image recognition method, image special effect configuration device and electronic equipment |
WO2021227953A1 (en) * | 2020-05-09 | 2021-11-18 | 北京字节跳动网络技术有限公司 | Image special effect configuration method, image recognition method, apparatuses, and electronic device |
US11818491B2 (en) | 2020-05-09 | 2023-11-14 | Beijing Bytedance Network Technology Co., Ltd. | Image special effect configuration method, image recognition method, apparatus and electronic device |
Also Published As
Publication number | Publication date |
---|---|
CN102509313B (en) | 2013-06-05 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN110463210B (en) | Method for generating media data | |
TWI768308B (en) | Methods and apparatus for track derivation for immersive media data tracks | |
CN112291627B (en) | Video editing method and device, mobile terminal and storage medium | |
CN1985321B (en) | Method and apparatus for reproducing the multimedia data | |
CN105635716B (en) | Aggregated media method based on augmented reality | |
US8830300B2 (en) | Multiscalar stereo video format conversion | |
CN109257587B (en) | Method and device for coding and decoding video data | |
JP2010508752A (en) | Method and apparatus for decoding metadata used for playback of stereoscopic video content | |
US20200234499A1 (en) | Method for transmitting/receiving media data and device therefor | |
US20130282715A1 (en) | Method and apparatus of providing media file for augmented reality service | |
CN102509313B (en) | Encapsulating method of multimedia image data | |
CN105760490A (en) | Resource storage method and device and electronic equipment | |
CN112771883A (en) | Method and apparatus for multi-timeline support for enabling omnidirectional content playback | |
CN103034969A (en) | Display method and system and display device for cartoon | |
CN110248115A (en) | Image processing method, device and storage medium | |
CN105191303A (en) | Method for processing video, terminal and server | |
CN111968200A (en) | GIF file generation method based on hand-drawn video | |
CN103716573A (en) | Video playback method and device | |
CN101894575A (en) | Be used for the multi dvr video encapsulation of incident forensics | |
CN104919812A (en) | Device and method for processing video | |
CN102930040A (en) | Media multi-dimensional content expressing method | |
CN109874024A (en) | A kind of barrage processing method, system and storage medium based on dynamic video poster | |
CN107330947A (en) | A kind of Memory Optimize Method of video cartoon picture storage | |
CN104506920A (en) | Method and device for playing omnimedia data information | |
TWI354493B (en) |
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 | ||
CP01 | Change in the name or title of a patent holder |
Address after: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee after: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. Address before: Changan town in Guangdong province Dongguan 523860 usha Beach Road No. 18 Patentee before: GUANGDONG OPPO MOBILE TELECOMMUNICATIONS Corp.,Ltd. |
|
CP01 | Change in the name or title of a patent holder | ||
CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20130605 |
|
CF01 | Termination of patent right due to non-payment of annual fee |