CN105354219A - File encoding method and apparatus - Google Patents

File encoding method and apparatus Download PDF

Info

Publication number
CN105354219A
CN105354219A CN201510631071.6A CN201510631071A CN105354219A CN 105354219 A CN105354219 A CN 105354219A CN 201510631071 A CN201510631071 A CN 201510631071A CN 105354219 A CN105354219 A CN 105354219A
Authority
CN
China
Prior art keywords
file
data
video
view data
picture
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.)
Pending
Application number
CN201510631071.6A
Other languages
Chinese (zh)
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.)
Nubia Technology Co Ltd
Original Assignee
Nubia Technology 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 Nubia Technology Co Ltd filed Critical Nubia Technology Co Ltd
Priority to CN201510631071.6A priority Critical patent/CN105354219A/en
Publication of CN105354219A publication Critical patent/CN105354219A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/40Information retrieval; Database structures therefor; File system structures therefor of multimedia data, e.g. slideshows comprising image and additional audio data
    • G06F16/44Browsing; Visualisation therefor

Abstract

The present invention discloses a file encoding method and apparatus. The file encoding method and apparatus disclosed by the invention have the beneficial effects that by providing at least one image file and video file and then writing image data of the image file, the data length of the image data and the video data of the video file into a preset file, adding an identifier in the preset file, and finally, packaging the preset file into an image video file, an effect of combining various multimedia files and particularly image and video files into the same file by association is realized, and the file encoding method and apparatus are convenient for a video playing program to open the file and view a video when a common image viewing program opens the file and views an image.

Description

A kind of document No. method and device
Technical field
The present invention relates to image processing techniques, more particularly, relate to a kind of document No. method, server and system.
Background technology
In prior art, multimedia file comprises picture file, video file and audio file etc.On mobile terminals, usually above-mentioned multimedia file can be opened by relevant application program.Such as, picture file can be opened by the picture program of checking, audio file can be opened by music program, can video file be opened by video reproduction program.
But, for multiple multimedia file, above-mentioned application program in mobile terminal often can only open each autocorrelative multimedia file, such as, by picture check program only to open picture file, by music program only to open audio file, by video reproduction program only to open video file.
Therefore, in prior art, often above-mentioned picture file, video file and audio file etc. store separately, and be need different application programs to open.Single application program cannot open multiple multimedia file, and, multiple multimedia file, particularly picture and video file, identical file cannot be combined into, so that the common picture program of checking can open this file and while checking picture, video reproduction program also can be opened this file and check video.
Summary of the invention
The technical problem to be solved in the present invention is, multiple multimedia file in prior art, particularly picture and video file, identical file cannot be combined into, be not easy to the common picture program of checking and can open this file and while checking picture, video reproduction program also can be opened this file and check video.
The present invention proposes a kind of file association method, the method comprises:
At least one picture file and video file are provided;
The video data of the data length of the view data of described picture file, described view data and described video file is write in default file, and add flag in described default file;
Described default file packing is encapsulated as picture video file.
A kind of document No. method, the method comprises:
Obtain the first view data, the data length of described first view data and the first video data;
According to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and add picture video flag in described default file;
Described default file packing is encapsulated as picture video file.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
Described default file is created by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
According to data length and the first video data generating feature character string of described first view data, described first view data.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
Described feature string is added into described flag.
A kind of file decoding method, the method comprises:
Flag in acquisition picture video file and the data length of the first view data;
Described first view data in described picture video file is read according to described flag, simultaneously, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
A kind of file association terminal, this terminal comprises:
File acquisition module, for providing at least one picture file and video file;
File writing module, for being write in default file by the video data of the data length of the view data of described picture file, described view data and described video file, and adds flag in described default file;
File generating module, for being encapsulated as picture video file by described default file packing.
A kind of document No. device, this device comprises:
Data acquisition module, for obtaining the first view data, the data length of described first view data and the first video data;
Data write. module, for the data length of described first view data, described first view data and the first video data being write in default file according to preset strategy, and adds picture video flag in described default file;
Data generation module, for being encapsulated as picture video file by described default file packing.
Further, this device also comprises:
Default file determination module, for creating described default file by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
Further, this device also comprises:
Feature string generation module, for according to the data length of described first view data, described first view data and the first video data generating feature character string.
Further, this device also comprises:
Characteristic character bed adds module, for described feature string is added into described flag.
A kind of file decoding device, this device comprises:
Data obtaining module, for obtaining the data length of flag in picture video file and the first view data;
Data decode module, for reading described first view data in described picture video file according to described flag, simultaneously, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
Beneficial effect of the present invention is, by providing at least one picture file and video file, then, the video data of the data length of the view data of described picture file, described view data and described video file is write in default file, and flag is added in described default file, finally, described default file packing is encapsulated as picture video file.Achieve, multiple multimedia file, particularly picture and video file, be combined into identical file by association, be convenient to the common picture program of checking and can open this file and while checking picture, video reproduction program also can be opened this file and check video.
Accompanying drawing explanation
Below in conjunction with drawings and Examples, the invention will be further described, in accompanying drawing:
Fig. 1 is the hardware configuration signal of the mobile terminal realizing each embodiment of the present invention;
Fig. 2 is the schematic diagram of supporting to carry out between mobile terminal of the present invention the communication system communicated;
Fig. 3 is the process flow diagram of the file association method that present pre-ferred embodiments proposes;
Fig. 4 is the process flow diagram of the document No. method that present pre-ferred embodiments proposes;
Fig. 5 is the process flow diagram of the file decoding method that present pre-ferred embodiments proposes;
Fig. 6 is the structured flowchart of the file association terminal that present pre-ferred embodiments proposes;
Fig. 7 is the structured flowchart of the document No. device that present pre-ferred embodiments proposes;
Fig. 8 is the structured flowchart of the file decoding device that present pre-ferred embodiments proposes.
Embodiment
In order to there be understanding clearly to technical characteristic of the present invention, object and effect, now contrast accompanying drawing and describe the specific embodiment of the present invention in detail.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing.In follow-up description, use the suffix of such as " module ", " parts " or " unit " for representing element only in order to be conducive to explanation of the present invention, itself is specific meaning not.Therefore, " module " and " parts " can mixedly use.
Mobile terminal can be implemented in a variety of manners.Such as, the terminal described in the present invention can comprise the such as mobile terminal of mobile phone, smart phone, notebook computer, digit broadcasting receiver, PDA (personal digital assistant), PAD (panel computer), PMP (portable media player), guider etc. and the fixed terminal of such as digital TV, desk-top computer etc.Below, suppose that terminal is mobile terminal.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the terminal of fixed type.
Fig. 1 is the hardware configuration schematic diagram of the mobile terminal realizing each embodiment of the present invention.
Mobile terminal 100 can comprise wireless communication unit 110, A/V (audio/video) input block 120, user input unit 130, sensing cell 140, output unit 150, storer 160, interface unit 170, controller 180 and power supply unit 190 etc.Fig. 1 shows the mobile terminal with various assembly, it should be understood that, does not require to implement all assemblies illustrated.Can alternatively implement more or less assembly.Will be discussed in more detail below the element of mobile terminal.
Wireless communication unit 110 generally includes one or more assembly, and it allows the wireless communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can comprise at least one in broadcast reception module 111, mobile communication module 112, wireless Internet module 113, short range communication module 114 and positional information module 115.
Broadcast reception module 111 via broadcast channel from external broadcasting management server receiving broadcast signal and/or broadcast related information.Broadcast channel can comprise satellite channel and/or terrestrial channel.Broadcast management server can be generate and send the server of broadcast singal and/or broadcast related information or the broadcast singal generated before receiving and/or broadcast related information and send it to the server of terminal.Broadcast singal can comprise TV broadcast singal, radio signals, data broadcasting signal etc.And broadcast singal may further include the broadcast singal combined with TV or radio signals.Broadcast related information also can provide via mobile communications network, and in this case, broadcast related information can be received by mobile communication module 112.Broadcast singal can exist in a variety of manners, such as, it can exist with the form of the electronic service guidebooks (ESG) of the electronic program guides of DMB (DMB) (EPG), digital video broadcast-handheld (DVB-H) etc.Broadcast reception module 111 can by using the broadcast of various types of broadcast system Received signal strength.Especially, broadcast reception module 111 can by using such as multimedia broadcasting-ground (DMB-T), DMB-satellite (DMB-S), digital video broadcasting-hand-held (DVB-H), and the digit broadcasting system of the Radio Data System, received terrestrial digital broadcasting integrated service (ISDB-T) etc. of forward link media (MediaFLO) receives digital broadcasting.Broadcast reception module 111 can be constructed to be applicable to providing the various broadcast system of broadcast singal and above-mentioned digit broadcasting system.The broadcast singal received via broadcast reception module 111 and/or broadcast related information can be stored in storer 160 (or storage medium of other type).
Radio signal is sent at least one in base station (such as, access point, Node B etc.), exterior terminal and server and/or receives radio signals from it by mobile communication module 112.Various types of data that such radio signal can comprise voice call signal, video calling signal or send according to text and/or Multimedia Message and/or receive.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal.This module can be inner or be externally couple to terminal.Wi-Fi (Wireless Internet Access) technology involved by this module can comprise WLAN (WLAN) (Wi-Fi), Wibro (WiMAX), Wimax (worldwide interoperability for microwave access), HSDPA (high-speed downlink packet access) etc.
Short range communication module 114 is the modules for supporting junction service.Some examples of short-range communication technology comprise bluetooth TM, radio-frequency (RF) identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybee TM etc.
Positional information module 115 is the modules of positional information for checking or obtain mobile terminal.The typical case of positional information module is GPS (GPS).According to current technology, GPS module 115 calculates from the range information of three or more satellite and correct time information and for the Information application triangulation calculated, thus calculates three-dimensional current location information according to longitude, latitude and pin-point accuracy.Current, the method for calculating position and temporal information uses three satellites and by using the error of the position that goes out of an other satellite correction calculation and temporal information.In addition, GPS module 115 can carry out computing velocity information by Continuous plus current location information in real time.
A/V input block 120 is for audio reception or vision signal.A/V input block 120 can comprise camera 121 and microphone 1220, and the view data of camera 121 to the static images obtained by image capture apparatus in Video Capture pattern or image capture mode or video processes.Picture frame after process may be displayed on display unit 151.Picture frame after camera 121 processes can be stored in storer 160 (or other storage medium) or via wireless communication unit 110 and send, and can provide two or more cameras 1210 according to the structure of mobile terminal.Such acoustic processing can via microphones sound (voice data) in telephone calling model, logging mode, speech recognition mode etc. operational mode, and can be voice data by microphone 122.Audio frequency (voice) data after process can be converted to the formatted output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model.Microphone 122 can be implemented various types of noise and eliminate (or suppress) algorithm and receiving and sending to eliminate (or suppression) noise or interference that produce in the process of sound signal.
User input unit 130 can generate key input data to control the various operations of mobile terminal according to the order of user's input.User input unit 130 allows user to input various types of information, and keyboard, the young sheet of pot, touch pad (such as, detecting the touch-sensitive assembly of the change of the resistance, pressure, electric capacity etc. that cause owing to being touched), roller, rocking bar etc. can be comprised.Especially, when touch pad is superimposed upon on display unit 151 as a layer, touch-screen can be formed.
Sensing cell 140 detects the current state of mobile terminal 100, (such as, mobile terminal 100 open or close state), the position of mobile terminal 100, user for mobile terminal 100 contact (namely, touch input) presence or absence, the orientation of mobile terminal 100, the acceleration or deceleration of mobile terminal 100 move and direction etc., and generate order or the signal of the operation for controlling mobile terminal 100.Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing cell 140 can sense this sliding-type phone and open or close.In addition, whether whether sensing cell 140 can detect power supply unit 190 provides electric power or interface unit 170 to couple with external device (ED).Sensing cell 140 can comprise proximity transducer 1410 and will be described this in conjunction with touch-screen below.
Interface unit 170 is used as at least one external device (ED) and is connected the interface that can pass through with mobile terminal 100.Such as, external device (ED) can comprise wired or wireless head-band earphone port, external power source (or battery charger) port, wired or wireless FPDP, memory card port, for connecting the port, audio frequency I/O (I/O) port, video i/o port, ear port etc. of the device with identification module.Identification module can be that storage uses the various information of mobile terminal 100 for authentication of users and can comprise subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc.In addition, the device (hereinafter referred to " recognition device ") with identification module can take the form of smart card, and therefore, recognition device can be connected with mobile terminal 100 via port or other coupling arrangement.Interface unit 170 may be used for receive from external device (ED) input (such as, data message, electric power etc.) and the input received be transferred to the one or more element in mobile terminal 100 or may be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connected with external base, interface unit 170 can be used as to allow by it electric power to be provided to the path of mobile terminal 100 from base or can be used as the path that allows to be transferred to mobile terminal by it from the various command signals of base input.The various command signal inputted from base or electric power can be used as and identify whether mobile terminal is arranged on the signal base exactly.Output unit 150 is constructed to provide output signal (such as, sound signal, vision signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner.Output unit 150 can comprise display unit 151, dio Output Modules 152, alarm unit 153 etc.
Display unit 151 may be displayed on the information of process in mobile terminal 100.Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show with call or other communicate (such as, text messaging, multimedia file are downloaded etc.) be correlated with user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling pattern or image capture mode, display unit 151 can the image of display capture and/or the image of reception, UI or GUI that video or image and correlation function are shown etc.
Meanwhile, when display unit 151 and touch pad as a layer superposed on one another to form touch-screen time, display unit 151 can be used as input media and output unit.Display unit 151 can comprise at least one in liquid crystal display (LCD), thin film transistor (TFT) LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc.Some in these displays can be constructed to transparence and watch from outside to allow user, and this can be called transparent display, and typical transparent display can be such as TOLED (transparent organic light emitting diode) display etc.According to the specific embodiment wanted, mobile terminal 100 can comprise two or more display units (or other display device), such as, mobile terminal can comprise outernal display unit (not shown) and inner display unit (not shown).Touch-screen can be used for detecting touch input pressure and touch input position and touch and inputs area.
When dio Output Modules 152 can be under the isotypes such as call signal receiving mode, call mode, logging mode, speech recognition mode, broadcast reception mode at mobile terminal, voice data convert audio signals that is that wireless communication unit 110 is received or that store in storer 160 and exporting as sound.And dio Output Modules 152 can provide the audio frequency relevant to the specific function that mobile terminal 100 performs to export (such as, call signal receives sound, message sink sound etc.).Dio Output Modules 152 can comprise loudspeaker, hummer etc.
Alarm unit 153 can provide and export that event informed to mobile terminal 100.Typical event can comprise calling reception, message sink, key signals input, touch input etc.Except audio or video exports, alarm unit 153 can provide in a different manner and export with the generation of notification event.Such as, alarm unit 153 can provide output with the form of vibration, when receive calling, message or some other enter communication (incomingcommunication) time, alarm unit 153 can provide sense of touch to export (that is, vibrating) to notify to user.By providing such sense of touch to export, even if when the mobile phone of user is in the pocket of user, user also can identify the generation of various event.Alarm unit 153 also can provide the output of the generation of notification event via display unit 151 or dio Output Modules 152.
Storer 160 software program that can store process and the control operation performed by controller 180 etc., or temporarily can store oneself through exporting the data (such as, telephone directory, message, still image, video etc.) that maybe will export.And, storer 160 can store about when touch be applied to touch-screen time the vibration of various modes that exports and the data of sound signal.
Storer 160 can comprise the storage medium of at least one type, described storage medium comprises flash memory, hard disk, multimedia card, card-type storer (such as, SD or DX storer etc.), random access storage device (RAM), static random-access memory (SRAM), ROM (read-only memory) (ROM), Electrically Erasable Read Only Memory (EEPROM), programmable read only memory (PROM), magnetic storage, disk, CD etc.And mobile terminal 100 can be connected the memory function of execute store 160 network storage device with by network cooperates.
Controller 180 controls the overall operation of mobile terminal usually.Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process.In addition, controller 180 can comprise the multi-media module 1810 for reproducing (or playback) multi-medium data, and multi-media module 1810 can be configured in controller 180, or can be configured to be separated with controller 180.Controller 180 can pattern recognition process, is identified as character or image so that input is drawn in the handwriting input performed on the touchscreen or picture.
Power supply unit 190 receives external power or internal power and provides each element of operation and the suitable electric power needed for assembly under the control of controller 180.
Various embodiment described herein can to use such as computer software, the computer-readable medium of hardware or its any combination implements.For hardware implementation, embodiment described herein can by using application-specific IC (ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), field programmable gate array (FPGA), processor, controller, microcontroller, microprocessor, being designed at least one performed in the electronic unit of function described herein and implementing, in some cases, such embodiment can be implemented in controller 180.For implement software, the embodiment of such as process or function can be implemented with allowing the independent software module performing at least one function or operation.Software code can be implemented by the software application (or program) write with any suitable programming language, and software code can be stored in storer 160 and to be performed by controller 180.
So far, oneself is through the mobile terminal according to its functional description.Below, for the sake of brevity, by the slide type mobile terminal that describes in various types of mobile terminals of such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily.Therefore, the present invention can be applied to the mobile terminal of any type, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 can be constructed to utilize and send the such as wired and wireless communication system of data via frame or grouping and satellite-based communication system operates.
Describe wherein according to the communication system that mobile terminal of the present invention can operate referring now to Fig. 2.
Such communication system can use different air interfaces and/or Physical layer.Such as, the air interface used by communication system comprises such as frequency division multiple access (FDMA), time division multiple access (TDMA) (TDMA), CDMA (CDMA) and universal mobile telecommunications system (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc.As non-limiting example, description below relates to cdma communication system, but such instruction is equally applicable to the system of other type.
With reference to figure 2, cdma wireless communication system can comprise multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280.MSC280 is constructed to form interface with Public Switched Telephony Network (PSTN) 290.MSC280 is also constructed to form interface with the BSC275 that can be couple to base station 270 via back haul link.Back haul link can construct according to any one in some interfaces that oneself knows, described interface comprises such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL.Will be appreciated that system as shown in Figure 2 can comprise multiple BSC2750.
Each BS270 can serve one or more subregion (or region), by multidirectional antenna or point to specific direction each subregion of antenna cover radially away from BS270.Or each subregion can by two or more antenna covers for diversity reception.Each BS270 can be constructed to support multiple parallel compensate, and each parallel compensate has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Subregion can be called as CDMA Channel with intersecting of parallel compensate.BS270 also can be called as base station transceiver subsystem (BTS) or other equivalent terms.Under these circumstances, term " base station " may be used for broadly representing single BSC275 and at least one BS270.Base station also can be called as " cellular station ".Or each subregion of particular B S270 can be called as multiple cellular station.
As shown in Figure 2, broadcast singal is sent to the mobile terminal 100 at operate within systems by broadcsting transmitter (BT) 295.Broadcast reception module 111 as shown in Figure 1 is arranged on mobile terminal 100 and sentences the broadcast singal receiving and sent by BT295.In fig. 2, several GPS (GPS) satellite 300 is shown.Satellite 300 helps at least one in the multiple mobile terminal 100 in location.
In fig. 2, depict multiple satellite 300, but understand, the satellite of any number can be utilized to obtain useful locating information.GPS module 115 as shown in Figure 1 is constructed to coordinate to obtain the locating information wanted with satellite 300 usually.Substitute GPS tracking technique or outside GPS tracking technique, can use can other technology of position of tracking mobile terminal.In addition, at least one gps satellite 300 optionally or extraly can process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminal 100.Mobile terminal 100 participates in call usually, information receiving and transmitting communicates with other type.Each reverse link signal that certain base station 270 receives is processed by particular B S270.The data obtained are forwarded to relevant BSC275.BSC provides call Resourse Distribute and comprises the mobile management function of coordination of the soft switching process between BS270.The data received also are routed to MSC280 by BSC275, and it is provided for the extra route service forming interface with PSTN290.Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly control BS270 so that forward link signals is sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the inventive method is proposed.
Embodiment three
Fig. 3 is the process flow diagram of the file association method that present pre-ferred embodiments proposes.
A kind of file association method, the method comprises:
S1, provides at least one picture file and video file;
S2, writes the video data of the data length of the view data of described picture file, described view data and described video file in default file, and add flag in described default file;
S3, is encapsulated as picture video file by described default file packing.
In embodiments of the present invention, view data and video data is obtained; According to preset strategy, described video data is started to insert at the view data afterbody of picture file, and described view data and video data are synthesized a file; So, no matter whether there is the video identifier corresponding with coding of graphics form in image file format standard, can video data be inserted; Video data is placed on the view data tail end of picture file, editing picture in any case, also reading video data can not be affected, achieve picture, the video coding in same file to preserve, solve multiple multimedia file, particularly picture and video file in prior art, cannot identical file be combined into, be not easy to the common picture program of checking and can open this file and while checking picture, video reproduction program also can be opened this file and check video.
Embodiment four
Fig. 4 is the process flow diagram of the document No. method that present pre-ferred embodiments proposes.The method comprises:
S10, obtains the first view data, the data length of described first view data and the first video data;
S20, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and adds picture video flag in described default file;
S30, is encapsulated as picture video file by described default file packing.
In the present embodiment, concrete which kind of coding of graphics form that adopts is encoded to gathered view data, can determine according to the default setting of electronic equipment when dispatching from the factory; In like manner, concrete which kind of video code model that adopts, to gathered coding video data, can be determined according to the default setting of electronic equipment when dispatching from the factory.
Certainly, also interface can be selected, so that user selects coding of graphics form and video code model according to the hobby of oneself for user provides.
Here, when not receiving the setting operation of user to coding of graphics form and video code model, the determined coding of graphics form of electronic equipment and video code model are all forms of system default;
When receiving the setting operation of user to coding of graphics form and video code model, electronic equipment determined coding of graphics form and video code model are all user-selected coding format and video code model.
In the present embodiment, described electronic equipment is at least configured with:
For obtaining the image collecting device of image, as camera;
And, for obtaining the voice collection device of video, as microphone adds camera.
In the present embodiment, view data can be obtained by the camera of electronic equipment; Voice data in video data can be obtained by the microphone of electronic equipment.
Further, after acquisition view data, video data can be obtained again, also can obtain video data while acquisition view data.
That is, by image preview interface, user first can determine that it wants the photo clapped, start recording again after then clicking shooting push button; Or while click shooting push button, carry out video record.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
Described default file is created by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
According to data length and the first video data generating feature character string of described first view data, described first view data.
Further, according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also comprised add picture video flag in described default file before:
Described feature string is added into described flag.
Particularly, the user interface (being called for short UI interface) of electronic equipment can be provided with coding of graphics form and select dialog box and video code model dialog box, the coding of graphics form that this electronic equipment is supported is presented in coding of graphics form selection dialog box, the video code model that this electronic equipment is supported is presented, to be selected coding of graphics form and video code model according to the hobby of oneself or custom by user in video code model selection dialog box.
Particularly, when electronic equipment has touch-screen (namely supporting to touch input), user can by selecting coding of graphics form and video code model by touch forms such as finger or felt pens.When electronic equipment is not supported to touch input, coding of graphics form and video code model can be selected by relevant button.
Particularly, after the coding of graphics form and video code model of recording user first time selection, the coding of graphics form that also user can be arranged first time and video code model are set to coding of graphics form and the video code model of acquiescence, until user initiatively revises coding of graphics form and video code model again.
Particularly, the coding of graphics form can selected for user can have multiple, as: BMP, JPG, TIFF, GIF, PCX, TGA, EXIF, FPX, SVG, PSD, CDR, PCD, DXF, UFO, EPS, AI, RAW etc.
Particularly, the video code model can selected for user can have multiple, as: MP4,3GP, AVI, MKV, WMV, MPG, VOB, FLV, SWF, MOV etc.
Embodiment five
Fig. 5 is the process flow diagram of the file decoding method that present pre-ferred embodiments proposes.
A kind of file decoding method, the method comprises:
S40, the flag in acquisition picture video file and the data length of the first view data;
S50, described first view data in described picture video file is read according to described flag, meanwhile, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
Particularly, coded format is selected to be described for JPEG still image for user.User is when the JPEG picture file of pre-review is clicked in picture library application, and above-mentioned identifier searched first hereof by electronic equipment (or decoding device), obtains relevant video data, puts into independent sub-thread kind and decodes; Another sub-thread is decoded to obtained view data by simultaneous techniques, and the decoded result of two sub-threads returns to main thread, to be controlled synchronous the presenting on UI of picture, video by main thread.
Embodiment six
Fig. 6 is the structured flowchart of the file association terminal that present pre-ferred embodiments proposes.This terminal comprises:
File acquisition module 10, for providing at least one picture file and video file;
File writing module 20, for being write in default file by the video data of the data length of the view data of described picture file, described view data and described video file, and adds flag in described default file;
File generating module 30, for being encapsulated as picture video file by described default file packing.
It will be appreciated by those skilled in the art that the practical function of each module in the file association terminal shown in Fig. 6, can refer to the associated description of aforementioned correlating method and understand.It will be appreciated by those skilled in the art that each module in the file association terminal shown in Fig. 6, realize by the program run on processor, also realize by logical circuit particularly.
Embodiment seven
Fig. 7 is the structured flowchart of the document No. device that present pre-ferred embodiments proposes.This device comprises:
Data acquisition module 40, for obtaining the first view data, the data length of described first view data and the first video data;
Data write. module 50, for the data length of described first view data, described first view data and the first video data being write in default file according to preset strategy, and adds picture video flag in described default file;
Data generation module 60, for being encapsulated as picture video file by described default file packing.
Further, this device also comprises:
Default file determination module 70, for creating described default file by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
Further, this device also comprises:
Feature string generation module 80, for according to the data length of described first view data, described first view data and the first video data generating feature character string.
Further, this device also comprises:
Characteristic character bed adds module 90, for described feature string is added into described flag.
It will be appreciated by those skilled in the art that the practical function of each module in the document No. device shown in Fig. 7, can refer to the associated description of aforementioned correlating method and understand.It will be appreciated by those skilled in the art that each module in the document No. device shown in Fig. 7, realize by the program run on processor, also realize by logical circuit particularly.
Embodiment eight
Fig. 8 is the structured flowchart of the file decoding device that present pre-ferred embodiments proposes.This device comprises:
Data obtaining module 100, for obtaining the data length of flag in picture video file and the first view data;
Data decode module 110, for reading described first view data in described picture video file according to described flag, simultaneously, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
It will be appreciated by those skilled in the art that the practical function of each module in the file decoding device shown in Fig. 8, can refer to the associated description of aforementioned correlating method and understand.It will be appreciated by those skilled in the art that each module in the file decoding device shown in Fig. 8, realize by the program run on processor, also realize by logical circuit particularly.
In an embodiment of the present invention, portable terminal device can be implemented in a variety of manners.Such as, the portable terminal device described in the embodiment of the present invention can comprise such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA, PersonalDigitalAssistant), the portable terminal device of panel computer (PAD), portable media player (PMP, PortableMediaPlayer), guider etc. and the fixed portable terminals of such as digital TV, desk-top computer etc.But it will be appreciated by those skilled in the art that except the element except being used in particular for mobile object, structure according to the embodiment of the present invention also can be applied to the portable terminal device of fixed type.
In describing the invention, except as otherwise noted, the implication of " multiple " is two or more.
By reference to the accompanying drawings embodiments of the invention are described above; but the present invention is not limited to above-mentioned embodiment; above-mentioned embodiment is only schematic; instead of it is restrictive; those of ordinary skill in the art is under enlightenment of the present invention; do not departing under the ambit that present inventive concept and claim protect, also can make a lot of form, these all belong within protection of the present invention.

Claims (12)

1. a file association method, is characterized in that, described method comprises:
At least one picture file and video file are provided;
The video data of the data length of the view data of described picture file, described view data and described video file is write in default file, and add flag in described default file;
Described default file packing is encapsulated as picture video file.
2. a document No. method, is characterized in that, described method comprises:
Obtain the first view data, the data length of described first view data and the first video data;
According to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and add picture video flag in described default file;
Described default file packing is encapsulated as picture video file.
3. a kind of document No. method according to claim 2, it is characterized in that, described according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also to comprise add picture video flag in described default file before:
Described default file is created by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
4. a kind of document No. method according to claim 2, it is characterized in that, described according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also to comprise add picture video flag in described default file before:
According to data length and the first video data generating feature character string of described first view data, described first view data.
5. a kind of document No. method according to claim 4, it is characterized in that, described according to preset strategy by the data length of described first view data, described first view data and the first video data write default file, and also to comprise add picture video flag in described default file before:
Described feature string is added into described flag.
6. a file decoding method, is characterized in that, described method comprises:
Flag in acquisition picture video file and the data length of the first view data;
Described first view data in described picture video file is read according to described flag, simultaneously, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
7. a file association terminal, is characterized in that, described terminal comprises:
File acquisition module, for providing at least one picture file and video file;
File writing module, for being write in default file by the video data of the data length of the view data of described picture file, described view data and described video file, and adds flag in described default file;
File generating module, for being encapsulated as picture video file by described default file packing.
8. a document No. device, is characterized in that, described device comprises:
Data acquisition module, for obtaining the first view data, the data length of described first view data and the first video data;
Data write. module, for the data length of described first view data, described first view data and the first video data being write in default file according to preset strategy, and adds picture video flag in described default file;
Data generation module, for being encapsulated as picture video file by described default file packing.
9. a kind of document No. method according to claim 8, is characterized in that, also comprise:
Default file determination module, for creating described default file by the file layout of picture, or,
Default file is defined as by providing the image of described first view data.
10. a kind of document No. method according to claim 8, is characterized in that, also comprise:
Feature string generation module, for according to the data length of described first view data, described first view data and the first video data generating feature character string.
11. a kind of document No. methods according to claim 10, is characterized in that, also comprise:
Characteristic character bed adds module, for described feature string is added into described flag.
12. 1 kinds of file decoding devices, is characterized in that, described device comprises:
Data obtaining module, for obtaining the data length of flag in picture video file and the first view data;
Data decode module, for reading described first view data in described picture video file according to described flag, simultaneously, determine the head of the first video data according to the data length of described first view data, from the head of described first video data, read described first video data.
CN201510631071.6A 2015-09-28 2015-09-28 File encoding method and apparatus Pending CN105354219A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201510631071.6A CN105354219A (en) 2015-09-28 2015-09-28 File encoding method and apparatus

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510631071.6A CN105354219A (en) 2015-09-28 2015-09-28 File encoding method and apparatus

Publications (1)

Publication Number Publication Date
CN105354219A true CN105354219A (en) 2016-02-24

Family

ID=55330192

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510631071.6A Pending CN105354219A (en) 2015-09-28 2015-09-28 File encoding method and apparatus

Country Status (1)

Country Link
CN (1) CN105354219A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054704A1 (en) * 2015-09-28 2017-04-06 努比亚技术有限公司 Method and device for generating video image
CN110248116A (en) * 2019-06-10 2019-09-17 腾讯科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium
CN110276040A (en) * 2019-06-28 2019-09-24 北京金山安全软件有限公司 Picture file processing method, picture displaying method and picture displaying device

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217525A (en) * 1997-10-17 1999-05-26 诺日士钢机株式会社 Apparatus for generating recording medium with audio-frequency coding picture
CN103646048A (en) * 2013-11-25 2014-03-19 宇龙计算机通信科技(深圳)有限公司 Method and device for achieving multimedia pictures
CN103928039A (en) * 2014-04-15 2014-07-16 北京奇艺世纪科技有限公司 Video compositing method and device
CN104065908A (en) * 2013-03-21 2014-09-24 三星电子株式会社 Apparatus And Method For Creating And Reproducing Live Picture File
CN104869342A (en) * 2015-06-09 2015-08-26 柳州桂通科技股份有限公司 Method for synchronously reproducing multimedia multi-information and application thereof

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1217525A (en) * 1997-10-17 1999-05-26 诺日士钢机株式会社 Apparatus for generating recording medium with audio-frequency coding picture
CN104065908A (en) * 2013-03-21 2014-09-24 三星电子株式会社 Apparatus And Method For Creating And Reproducing Live Picture File
CN103646048A (en) * 2013-11-25 2014-03-19 宇龙计算机通信科技(深圳)有限公司 Method and device for achieving multimedia pictures
CN103928039A (en) * 2014-04-15 2014-07-16 北京奇艺世纪科技有限公司 Video compositing method and device
CN104869342A (en) * 2015-06-09 2015-08-26 柳州桂通科技股份有限公司 Method for synchronously reproducing multimedia multi-information and application thereof

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017054704A1 (en) * 2015-09-28 2017-04-06 努比亚技术有限公司 Method and device for generating video image
CN110248116A (en) * 2019-06-10 2019-09-17 腾讯科技(深圳)有限公司 Image processing method, device, computer equipment and storage medium
CN110248116B (en) * 2019-06-10 2021-10-26 腾讯科技(深圳)有限公司 Picture processing method and device, computer equipment and storage medium
CN110276040A (en) * 2019-06-28 2019-09-24 北京金山安全软件有限公司 Picture file processing method, picture displaying method and picture displaying device

Similar Documents

Publication Publication Date Title
CN104951206A (en) Icon hiding method and device
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN105653729A (en) Device and method for indexing sound recording file
CN105183308A (en) Picture display method and apparatus
CN104735545A (en) Audio/video file playing method and system
CN104731472A (en) Rapid icon clearing-up method and device
CN105677325A (en) Mobile terminal and image processing method
CN104954867A (en) Media playing method and device
CN104731927A (en) Sound recording file classifying method and system
CN104951514A (en) Audio playing method and device
CN105335517A (en) Method and terminal for selecting heat multimedia
CN105138255A (en) Terminal and image information acquisition method
CN104636043A (en) Virtual key display method and virtual key display device
CN104794104A (en) Multimedia document generating method and device
CN106909681A (en) A kind of information processing method and its device
CN106028090A (en) Mobile terminal and video recording method thereof
CN105187911A (en) Method and device for displaying video image and image display method
CN105245938A (en) Device and method for playing multimedia files
CN105261054A (en) Device and method for compositing audio GIF image
CN104794229A (en) Picture sharing method and device
CN104661095A (en) Audio and video data recommendation method and system
CN104914998A (en) Mobile terminal and multi-gesture desktop operation method and device thereof
CN104994121A (en) Method and device for pushing notification messages
CN105302899A (en) Mobile terminal and picture processing method
CN105049582A (en) Device and method for saving call recordings and method for displaying call recordings

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication

Application publication date: 20160224

RJ01 Rejection of invention patent application after publication