CN105677717B - A kind of display methods and terminal - Google Patents
A kind of display methods and terminal Download PDFInfo
- Publication number
- CN105677717B CN105677717B CN201511009642.9A CN201511009642A CN105677717B CN 105677717 B CN105677717 B CN 105677717B CN 201511009642 A CN201511009642 A CN 201511009642A CN 105677717 B CN105677717 B CN 105677717B
- Authority
- CN
- China
- Prior art keywords
- file
- format
- header information
- picture
- display
- 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.)
- Active
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F16/00—Information retrieval; Database structures therefor; File system structures therefor
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Data Mining & Analysis (AREA)
- Databases & Information Systems (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- User Interface Of Digital Computer (AREA)
- Human Computer Interaction (AREA)
Abstract
The embodiment of the invention discloses a kind of display methods and terminals, can parse to the different data format of picture file, realize the display of the different data format of picture file, embody the hommization of terminal, improve user experience.This method comprises: detecting the first File header information of the first picture file corresponding data when obtaining the first picture file;According to the corresponding relationship of the first File header information and preset File header information and format, the first format of the first picture file is parsed;Data after detecting the first end-of-file information whether there is the second File header information;Second File header information if it exists parses the second format of the second file then according to the corresponding relationship of second File header information and preset File header information and format;When the first format and the second format difference, the display icon of the display icon and the second file of the first picture file of display;When showing that icon is triggered, the corresponding file of display icon is shown.
Description
Technical field
The present invention relates to the picture Processing Techniques more particularly to a kind of display methods and terminal in the communications field.
Background technique
With the continuous development of electronic technology, the function of terminal is more and more, and camera function is indispensable in terminal
Function, user can be lived whenever and wherever possible using cameras record.
In the prior art, user by the picture file shot by camera or by a certain application transport come picture text
Part is shown by picture library application.For example, the picture 1 that oneself terminal is shot is sent to user by social application by user A
When B, user B click opening picture 1, terminal can pass through the application of associated picture library and show the picture 1.
However, terminal only can be according to the format stated in the file header of picture file when using prior art implementation
It is parsed, and then shows this picture file according to the image data of picture file, without to including in picture file
Extended formatting data parse user, as when acquisition for mobile terminal pretends to audio data, the picture in sound photo
Whens compressing bag data etc., mobile terminal can only parse the file header of picture file, it is believed that be picture format, then, just pass through pass
The picture library application display picture of connection comes out, and does not deal with to the extended formatting data being added in picture file, to make user
It can not learn whether need to pay close attention to there are also more information in these picture files, lead to poor user experience.
Summary of the invention
In order to solve the above technical problems, an embodiment of the present invention is intended to provide a kind of display methods and terminal, it can be to picture
The different data format of file is parsed, and realizes the display of the different data format of picture file, embodies the human nature of terminal
Change, improves user experience.
The technical scheme of the present invention is realized as follows:
The embodiment of the invention provides a kind of display methods, comprising:
When obtaining the first picture file, the first File header information of the first picture file corresponding data is detected;
According to the corresponding relationship of first File header information and preset File header information and format, described is parsed
First format of one picture file;
Data after detecting the first end-of-file information whether there is the second File header information, the second file header letter
Breath is the File header information of the second file corresponding data;
Second File header information if it exists is then believed according to second File header information and the preset file header
The corresponding relationship of breath and format, parses the second format of second file;
When first format and the second format difference, display icon and the institute of first picture file are shown
State the display icon of the second file;
When the display icon is triggered, the corresponding file of the display icon is shown.
In the above scheme, described corresponding with format according to first File header information and preset File header information
Relationship, the data after the first format for parsing first picture file, after detection the first end-of-file information
Before the second File header information, the method also includes:
It detects in the first picture file corresponding data with the presence or absence of the first extension information;
The first extension information if it exists then detects the first extension information and believes with the presence or absence of second file header
Breath.
In the above scheme, described according to second File header information and the preset File header information and format
Corresponding relationship, after the second format for parsing second file, the display icon of display first picture file
Before the display icon of second file, the method also includes:
When first format and the second format difference, the first Show Styles of first picture file is marked
With the second Show Styles of second file;
Correspondingly, the display icon of the display icon and second file of display first picture file, packet
It includes:
The display icon of first picture file is shown according to first Show Styles, and aobvious according to described second
Sample formula shows the display icon of second file.
In the above scheme, the data after detection the first end-of-file information are believed with the presence or absence of the second file header
Breath, and the detection first extension information is with the presence or absence of after second File header information, the method also includes:
Second File header information if it does not exist then shows the display icon of first picture file.
In the above scheme, described to show the corresponding file of the display icon, packet when the display icon is triggered
It includes:
When the display icon of first picture file is triggered, first picture file is shown;
When the display icon of second file is triggered, second file is shown.
The embodiment of the invention provides a kind of terminals, comprising:
Detection unit, for detecting the first of the first picture file corresponding data when obtaining the first picture file
File header information;
Resolution unit, first File header information and preset file header letter for being detected according to the detection unit
The corresponding relationship of breath and format, parses the first format of first picture file;
The detection unit, the data after being also used to detect the first end-of-file information are believed with the presence or absence of the second file header
Breath, second File header information are the File header information of the second file corresponding data;
The resolution unit, if being also used to the detection unit detects the presence of second File header information, basis
The corresponding relationship of second File header information and the preset File header information and format parses second file
Second format;
When display unit, first format for being parsed when the resolution unit and the second format difference, show
Show the display icon of the display icon and second file of first picture file;When the display icon is triggered,
Show the corresponding file of the display icon.
In the above scheme, the detection unit, be also used to the resolution unit according to first File header information and
The corresponding relationship of preset File header information and format, after the first format for parsing first picture file, the inspection
Data after surveying the first end-of-file information detect first picture file pair with the presence or absence of before the second File header information
It answers in data with the presence or absence of the first extension information;And if it exists it is described first extension information, then detect it is described first extension letter
Breath whether there is second File header information.
In the above scheme, the terminal further include: mark unit;
The mark unit, for the resolution unit according to second File header information and the preset file header
The corresponding relationship of information and format, after the second format for parsing second file, the display unit shows described
Before the display icon of display icon and the display icon of second file of one picture file, when the resolution unit parses
First format and when the second format difference, mark the first Show Styles and described the of first picture file
Second Show Styles of two files;
Correspondingly, the display unit, aobvious specifically for first Show Styles according to the mark unit mark
Show the display icon of first picture file, and institute is shown according to second Show Styles of the mark unit mark
State the display icon of the second file.
In the above scheme, the display unit, after being also used to the detection unit detection the first end-of-file information
Data whether there is the second File header information, and it is described detection it is described first extension information whether there is second file header
After information, if the detection unit is detected there is no second File header information, the mark unit mark is shown
First picture file display icon.
In the above scheme, the display unit is triggered specifically for the display icon when first picture file
When, show first picture file;When the display icon of second file is triggered, second file is shown.
The embodiment of the invention provides a kind of display methods and terminals, and when obtaining the first picture file, terminal detection should
First File header information of the first picture file corresponding data;According to the first File header information and preset File header information dative
The corresponding relationship of formula parses the first format of the first picture file;Data after detecting the first end-of-file information whether there is
Second File header information, second File header information are the File header information of the second file corresponding data;Second file if it exists
Head information parses the second text then according to the corresponding relationship of second File header information and preset File header information and format
Second format of part;When the first format and the second format difference, the display icon and the second file of the first picture file are shown
Display icon;When showing that icon is triggered, the corresponding file of display icon is shown.Using above-mentioned technic relization scheme,
Due to can detecte the first format to the first picture file, if there is also it when terminal is wanted to open the first picture file
When his format, which also can detecte out, and can also show the corresponding display icon of the file of different-format
Out, and when showing that icon is triggered, the file of display display icon application.Therefore, terminal can be to picture file not
It is parsed with data format, realizes the display of the different data format of picture file, embody the hommization of terminal.
Detailed description of the invention
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware structural diagram;
Fig. 2 is the communication system that mobile terminal of the invention can operate;
Fig. 3 is a kind of flow chart one of display methods provided in an embodiment of the present invention;
Fig. 4 is the interface schematic diagram that intelligent display function is arranged in a kind of terminal provided in an embodiment of the present invention;
Fig. 5 is a kind of flowchart 2 of display methods provided in an embodiment of the present invention;
Fig. 6 is a kind of structural schematic diagram one of terminal provided in an embodiment of the present invention;
Fig. 7 is a kind of structural schematic diagram two of terminal provided in an embodiment of the present invention.
Specific embodiment
Following will be combined with the drawings in the embodiments of the present invention, and technical solution in the embodiment of the present invention carries out clear, complete
Site preparation description.
The mobile terminal of each embodiment of the present invention is realized in description with reference to the drawings.In subsequent description, use
For indicate element such as " module ", " component " or " unit " suffix only for being conducive to explanation of the invention, itself
There is no specific meanings.Therefore, " module " can be used mixedly with " component ".
It should be noted that a kind of focus acquisition device provided in an embodiment of the present invention can be terminal, such as computer
Or the electronic equipment of browser can be used in mobile terminal etc..
Wherein, mobile terminal can be implemented in a variety of manners.For example, terminal described in the present invention may include such as
Mobile phone, smart phone, laptop, digit broadcasting receiver, personal digital assistant (PDA), tablet computer (PAD),
The mobile terminal of portable media player (PMP), navigation device etc. and such as number TV, desktop computer etc.
Fixed terminal.Hereinafter it is assumed that terminal is mobile terminal.However, it will be understood by those skilled in the art that in addition to being used in particular for moving
Except the element of dynamic purpose, the construction of embodiment according to the present invention can also apply to the terminal of fixed type.
Fig. 1 to realize the present invention in each embodiment an optional mobile terminal hardware structural diagram.
Mobile terminal 100 may include wireless communication unit 110, audio/video (A/V) input unit 120, user's input
Unit 130, sensing unit 140, output unit 150, memory 160, interface unit 170, controller 180 and power supply unit 190
Etc..Fig. 1 shows the mobile terminal with various assemblies, it should be understood that being not required for implementing all groups shown
Part.More or fewer components can alternatively be implemented.The element of mobile terminal will be discussed in more detail below.
Wireless communication unit 110 generally includes one or more components, allows mobile terminal 100 and wireless communication system
Or the radio communication between network.For example, wireless communication unit may include mobile communication module 112, wireless Internet mould
At least one of block 113 and short range communication module 114.
Mobile communication module 112 sends radio signals to base station (for example, access point, node B etc.), exterior terminal
And at least one of server and/or receive from it radio signal.Such radio signal may include that voice is logical
Talk about signal, video calling signal or according to text and/or Multimedia Message transmission and/or received various types of data.
The Wi-Fi (Wireless Internet Access) of the support mobile terminal of wireless Internet module 113.The module can be internally or externally
It is couple to terminal.Wi-Fi (Wireless Internet Access) technology involved in the module may include WLAN (Wireless LAN) (Wi-Fi), Wibro
(WiMAX), Wimax (worldwide interoperability for microwave accesses), HSDPA (high-speed downlink packet access) etc..
Short range communication module 114 is the module for supporting short range communication.Some examples of short-range communication technology include indigo plant
ToothTM, radio frequency identification (RFID), Infrared Data Association (IrDA), ultra wide band (UWB), purple honeybeeTMEtc..
A/V input unit 120 is for receiving audio or video signal.A/V input unit 120 may include 121 He of camera
Microphone 122, camera 121 is to the static images obtained in video acquisition mode or image capture mode by image capture apparatus
Or the image data of video is handled.Treated, and picture frame may be displayed on display unit 151.It is handled through camera 121
Picture frame afterwards can store in memory 160 (or other storage mediums) or be sent out via wireless communication unit 110
It send, two or more cameras 121 can be provided according to the construction of mobile terminal.Microphone 122 can be in telephone calling model, note
Sound (audio data) is received via microphone in record mode, speech recognition mode etc. operational mode, and can will in this way
Acoustic processing be audio data.Audio that treated (voice) data can be converted in the case where telephone calling model can
The format output of mobile communication base station is sent to via mobile communication module 112.Various types of make an uproar can be implemented in microphone 122
Sound eliminates (or inhibition) algorithm to eliminate the noise or do that (or inhibition) generates during sending and receiving audio signal
It disturbs.
The order that user input unit 130 can be inputted according to user generates key input data to control each of mobile terminal
Kind operation.User input unit 130 allows user to input various types of information, and may include keyboard, metal dome, touch
Plate (for example, the sensitive component of detection due to the variation of resistance, pressure, capacitor etc. caused by being contacted), idler wheel, rocking bar etc.
Deng.Particularly, when touch tablet is superimposed upon in the form of layer on display unit 151, touch screen can be formed.
Sensing unit 140 detects the current state of mobile terminal 100, (for example, mobile terminal 100 opens or closes shape
State), the position of mobile terminal 100, user is for the presence or absence of contact (that is, touch input) of mobile terminal 100, mobile terminal
100 orientation, the acceleration or deceleration movement of mobile terminal 100 and direction etc., and generate for controlling mobile terminal 100
The order of operation or signal.For example, sensing unit 140 can sense when mobile terminal 100 is embodied as sliding-type mobile phone
The sliding-type phone is to open or close.In addition, sensing unit 140 be able to detect power supply unit 190 whether provide electric power or
Whether person's interface unit 170 couples with external device (ED).
Interface unit 170 be used as at least one external device (ED) connect with mobile terminal 100 can by interface.For example,
External device (ED) may include wired or wireless headphone port, external power supply (or battery charger) port, wired or nothing
Line data port, memory card port, the port for connecting the device with identification module, audio input/output (I/O) end
Mouth, video i/o port, ear port etc..Identification module can be storage and use each of mobile terminal 100 for verifying user
It plants information and may include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM)
Etc..In addition, the device (hereinafter referred to as " identification device ") with identification module can take the form of smart card, therefore, know
Other device can be connect via port or other attachment devices with mobile terminal 100.Interface unit 170, which can be used for receiving, to be come from
The input (for example, data information, electric power etc.) of external device (ED) and the input received is transferred in mobile terminal 100
One or more elements can be used for transmitting data between mobile terminal and external device (ED).
In addition, when mobile terminal 100 is connect with external base, interface unit 170 may be used as allowing will be electric by it
Power, which is provided from pedestal to the path or may be used as of mobile terminal 100, allows the various command signals inputted from pedestal to pass through it
It is transferred to the path of mobile terminal.The various command signals or electric power inputted from pedestal, which may be used as mobile terminal for identification, is
The no signal being accurately fitted on pedestal.Output unit 150 is configured to provide with vision, audio and/or tactile manner defeated
Signal (for example, audio signal, vision signal, alarm signal, vibration signal etc.) out.Output unit 150 may include display
Unit 151, audio output module 152 etc..
Display unit 151 may be displayed on the information handled in mobile terminal 100.For example, when mobile terminal 100 is in electricity
When talking about call mode, display unit 151 can show and converse or other communicate (for example, text messaging, multimedia file
Downloading etc.) relevant user interface (UI) or graphic user interface (GUI).When mobile terminal 100 is in video calling mode
Or when image capture mode, display unit 151 can show captured image and/or received image, show video or figure
Picture and the UI or GUI of correlation function etc..
Meanwhile when display unit 151 and touch tablet in the form of layer it is superposed on one another to form touch screen when, display unit
151 may be used as input unit and output device.Display unit 151 may include liquid crystal display (LCD), thin film transistor (TFT)
In LCD (TFT-LCD), Organic Light Emitting Diode (OLED) display, flexible display, three-dimensional (3D) display etc. at least
It is a kind of.Some in these displays may be constructed such that transparence, and to allow user to watch from outside, this is properly termed as transparent
Display, typical transparent display can be, for example, TOLED (transparent organic light emitting diode) display etc..According to specific
Desired embodiment, mobile terminal 100 may include two or more display units (or other display devices), for example, moving
Dynamic terminal may include 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 input area.
Audio output module 152 can mobile terminal be in call signal reception pattern, call mode, logging mode,
It is when under the isotypes such as speech recognition mode, broadcast reception mode, wireless communication unit 110 is received or in memory 160
The audio data transducing audio signal of middle storage and to export be sound.Moreover, audio output module 152 can provide and movement
The relevant audio output of specific function (for example, call signal receives sound, message sink sound etc.) that terminal 100 executes.
Audio output module 152 may include loudspeaker, buzzer etc..
Memory 160 can store the software program etc. of the processing and control operation that are executed by controller 180, Huo Zheke
Temporarily to store oneself data (for example, telephone directory, message, still image, video etc.) through exporting or will export.And
And memory 160 can store about the vibrations of various modes and audio signal exported when touching and being applied to touch screen
Data.
Memory 160 may include the storage medium of at least one type, and the storage medium includes flash memory, hard disk, more
Media card, card-type memory (for example, SD or DX memory etc.), random access storage device (RAM), static random-access storage
Device (SRAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), programmable read only memory
(PROM), magnetic storage, disk, CD etc..Moreover, mobile terminal 100 can execute memory with by network connection
The network storage device of 160 store function cooperates.
The overall operation of the usually control mobile terminal of controller 180.For example, controller 180 executes and voice communication, data
Communication, video calling etc. relevant control and processing.In addition, controller 180 may include for reproducing (or playback) more matchmakers
The multi-media module 181 of volume data, multi-media module 181 can construct in controller 180, or can be structured as and control
Device 180 separates.Controller 180 can be with execution pattern identifying processing, by the handwriting input executed on the touchscreen or picture
It draws input and is identified as character or image.
Power supply unit 190 receives external power or internal power under the control of controller 180 and provides operation each member
Electric power appropriate needed for part and component.
Various embodiments described herein can be to use the calculating of such as computer software, hardware or any combination thereof
Machine readable medium is implemented.Hardware is implemented, embodiment described herein can be by using application-specific IC
(ASIC), digital signal processor (DSP), digital signal processing device (DSPD), programmable logic device (PLD), scene can
Programming gate array (FPGA), controller, microcontroller, microprocessor, is designed to execute function described herein processor
At least one of electronic unit is implemented, and in some cases, such embodiment can be implemented in controller 180.
For software implementation, the embodiment of such as process or function can with allow to execute the individual of at least one functions or operations
Software module is implemented.Software code can by the software application (or program) write with any programming language appropriate Lai
Implement, software code can store in memory 160 and be executed by controller 180.
So far, oneself is through describing mobile terminal according to its function.In the following, for the sake of brevity, will description such as folded form,
Slide type mobile terminal in various types of mobile terminals of board-type, oscillating-type, slide type mobile terminal etc., which is used as, to be shown
Example.Therefore, the present invention can be applied to any kind of mobile terminal, and be not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that using via frame or grouping send data it is all if any
Line and wireless communication system and satellite-based communication system operate.
Referring now to Fig. 2 description communication system that wherein mobile terminal according to the present invention can operate.
Different air interface and/or physical layer can be used in such communication system.For example, used by communication system
Air interface includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and universal mobile communications system
System (UMTS) (particularly, long term evolution (LTE)), global system for mobile communications (GSM) etc..As non-limiting example, under
The description in face is related to cdma communication system, but such introduction is equally applicable to other types of system.
With reference to Fig. 2, cdma wireless communication system may include multiple mobile terminals 100, multiple base stations (BS) 270, base station
Controller (BSC) 275 and mobile switching centre (MSC) 280.MSC 280 is configured to and Public Switched Telephony Network (PSTN)
290 form interface.MSC 280 is also structured to form interface with the BSC 275 that can be couple to BS 270 via back haul link.
Back haul link can be constructed according to any in several known interfaces, and the interface includes such as E1/T1, ATM, IP,
PPP, frame relay, HDSL, ADSL or xDSL.It will be appreciated that system may include multiple BSC 2750 as shown in Figure 2.
Each BS 270 can service one or more subregions (or region), by multidirectional antenna or the day of direction specific direction
Each subregion of line covering is radially far from BS 270.Alternatively, each subregion can by two for diversity reception or more
Multiple antennas covering.Each BS 270, which may be constructed such that, supports multiple frequency distribution, and the distribution of each frequency has specific frequency
It composes (for example, 1.25MHz, 5MHz etc.).
What subregion and frequency were distributed, which intersects, can be referred to as CDMA Channel.BS 270 can also be referred to as base station transceiver
System (BTS) or other equivalent terms.In this case, term " base station " can be used for broadly indicating single BSC
275 and at least one BS 270.Base station can also be referred to as " cellular station ".Alternatively, each subregion of specific BS 270 can be claimed
For multiple cellular stations.
As shown in Figure 2, broadcast singal is sent to the mobile terminal operated in system by broadcsting transmitter (BT) 295
100.In fig. 2 it is shown that several global positioning system (GPS) satellites 300, the help of satellite 300 positions multiple mobile terminals 100
At least one of.
In Fig. 2, multiple satellites 300 are depicted, it is understood that, it is useful to can use any number of satellite acquisition
Location information.It substitutes GPS tracking technique or except GPS tracking technique, the position that can track mobile terminal can be used
The other technologies set.In addition, at least one 300 property of can choose of GPS satellite or extraly processing satellite dmb transmission.
As a typical operation of wireless communication system, BS 270 receives the reverse strand from various mobile terminals 100
Road signal.Mobile terminal 100 usually participates in call, information receiving and transmitting and other types of communication.Specific BS 270 is received each
Reverse link signal is handled in specific BS 270.The data of acquisition are forwarded to relevant BSC 275.BSC is provided
The mobile management function for the resource allocation and the coordination including the soft switching process between BS 270 conversed.BSC 275 will also be received
To data be routed to MSC 280, the additional route service for forming interface with PSTN 290 is provided.Similarly,
PSTN 290 and MSC 280 form interface, and MSC and BSC 275 form interface, and BSC 275 correspondingly control BS 270 with
Mobile terminal 100 is sent by forward link signals.
Based on above-mentioned mobile terminal hardware configuration and communication system, each embodiment of the method for the present invention is proposed.
Embodiment one
The embodiment of the invention provides a kind of display methods, as shown in figure 3, this method may include:
S101, when obtaining the first picture file, detect the first File header information of the first picture file corresponding data.
It should be noted that picture file in the embodiment of the present invention is with picture be main display mode file, it is right
It will necessarily include a File header information and end-of-file information, this document head letter for the data of a formatted file
The beginning for characterizing file data is ceased, end-of-file information is used to characterize the end of file data.
Display methods provided in an embodiment of the present invention is proposed mainly for the phenomenon that intension figure.Intension figure refers to to scheme
The file of piece format is packaging, in fact internal to contain the information of extended formatting or a kind of mode of file.I.e. of the invention real
The case where applying in example, may including different second files in the intension figure of the first picture file, that is to say, that by extended formatting
File hiding is in the file of picture format.
It should be noted that the source of the first picture file in the embodiment of the present invention can be to be come by application transport
Picture file, or from the file system in local storage or cloud be scanned acquisition etc..When terminal get this first
When picture file, which begins to File header information (the first text for the corresponding data of the first picture file that detection is got
Part head information).
Specifically, File header information can be mark with identifier, terminal detects the first File header information, exactly detects the
Beginning identifier in one picture file corresponding data.
It should be noted that each file format is corresponding to be started to identify due to the difference of the corresponding file format of file
Symbol is different.
Particularly, due to the embodiment of the present invention primarily directed to picture file be packaging intension figure, terminal obtains
The primary format of the first picture file taken necessarily picture format.For example, the picture formats such as JPG, PNG, BMP.
Optionally, the corresponding file format of alternative document in the embodiment of the present invention can be RAR, the non-picture lattice such as PDF
Formula, the specific non-picture format embodiment of the present invention is with no restriction.
Optionally, the beginning identifier in the embodiment of the present invention can be JFIF (JPEG File Interchange
Format) identifier, IHDR (header chunk) identifier etc., wherein JFIF identifier, which is that JPG format is corresponding, to be started to mark
Know symbol, IHDR is the corresponding beginning identifier of PNG format.
S102, according to the corresponding relationship of the first File header information and preset File header information and format, parse first
First format of picture file.
After terminal detects the first File header information of the first picture file corresponding data, since different file headers is believed
The corresponding different format of breath, therefore, the terminal can be according to the first File header information and preset File header informations and format
Corresponding relationship, parses corresponding first format of the first File header information, which is exactly the format of the first picture file.
It should be noted that in the embodiment of the present invention, it is above-mentioned to have been described that the first picture file is camouflage, therefore, the
One format is the picture format of the first picture file, is the nominative formula of the first picture file obtained.
Specifically, being as shown in table 1 the mapping table of preset File header information and format, wherein in File header information
Data be each format it is corresponding start identifier content.
It illustratively, can by table 1 when mobile terminal detects that the first File header information is FFD8FF (JFIF identifier)
Know, the first format that mobile terminal parses the first picture file is just JPG.
Table 1
Format | File header information (0x) |
ZIP Archive(zip) | 504B0304 |
RAR Archive(rar) | 52617221 |
Wave(wav) | 57415645 |
AVI(avi) | 41564920 |
MPEG(mpg) | 000001BA |
MPEG(mp3) | 000001B3 |
Adobe Photoshop(psd) | 38425053 |
Rich Text Format(rtf) | 7B5C727466 |
XML(xml) | 3C3F786D6C |
HTML(html) | 68746D6C3E |
Email[thorough only](eml) | 44656C69766572792D646174653A |
Outlook Express(dbx) | CFAD12FEC5FD746F |
Outlook(pst) | 2142444E |
MS Word/Excel(xls.or.doc) | D0CF11E0 |
MS Access(mdb) | 5374616E64617264204A |
WordPerfect(wpd) | FF575043 |
Postscript(eps.or.ps) | 252150532D41646F6265 |
Adobe Acrobat(pdf) | 255044462D312E |
Quicken(qdf) | AC9EBD8F |
Windows Password(pwl) | E3828596 |
CAD(dwg) | 41433130 |
Real Audio(ram) | 2E7261FD |
Real Media(rm) | 2E524D46 |
Quicktime(mov) | 6D6F6F76 |
Windows Media(asf) | 3026B2758E66CF11 |
MIDI(mid) | 4D546864 |
JPEG(jpg) | FFD8FF |
PNG(png) | 89504E47 |
GIF(gif) | 47494638 |
TIFF(tif) | 49492A00 |
Windows Bitmap(bmp) | 424D |
Data after S103, the first end-of-file information of detection whether there is the second File header information, second file header letter
Breath is the File header information of the second file corresponding data.
After terminal parses the first format of the first picture file, since each file has a corresponding file header
Therefore information and end-of-file information have detected the first File header information in terminal, have known the first format of the first picture file
Afterwards, which starts to detect the first end-of-file information of the first picture file.Specifically, since the first end-of-file information representation should
The end of first picture file, then, terminal detect the first subsequent data of end-of-file information and believe with the presence or absence of the second file header
Breath.
It should be noted that in the embodiment of the present invention, due to the first picture file after there is likely to be extended formattings
File, therefore, terminal is known after the first picture file of detection with the presence or absence of hiding file (the second file), then, the end
End whether there is the second File header information with regard to the data after the first end-of-file information of detection.
Specifically, the first end-of-file information in the embodiment of the present invention refers to end identifier.
Optionally, end identifier can be EOI (end of image) and IEND (image trailer trunk) etc.
Identifier, wherein JPG format corresponds to EOI identifier, and PNG format corresponds to IEND identifier.Specifically, end identifier
The type embodiment of the present invention is with no restriction.
Further, the expression content of EOI identifier can be 0x FFD9, and the expression content of IEND identifier can be with
For 0000000049454E44AE426082.
It should be noted that the second format of the second file in the embodiment of the present invention can be above explained any lattice
Formula, any one for starting identifier that the second File header information can be crossed for above description, and the second format and the second text
The corresponding relationship of part head information is as shown in table 1.
S104, if it exists the second File header information, then according to second File header information and preset File header information with
The corresponding relationship of format parses the second format of the second file.
Data after terminal the first end-of-file information of detection are with the presence or absence of after the second File header information, and second is literary if it exists
Part head information, since File header information is the mark that a file starts, when terminal detects that there are the second file header letters
When breath, just characterizes the first picture file of terminal acquisition and be only the content shown on surface, may also conceal other text
Part (the second file), then, the terminal can be according to the preset texts shown in the second File header information and table 1 detected
The corresponding relationship of part head information and format parses the second format of the second file.
Further, if detecting, there is no the second File header information, terminal terminates the detection to the first picture file
, concrete implementation process and subsequent realization will be illustrated in subsequent embodiment.
Illustratively, it when mobile terminal detects FFD8FF, also detects and exists in the subsequent data of FFD8FF
52617221 data, then, it is that format therefore should for the beginning identifier of the file of RAR that mobile terminal, which parses 52617221,
Mobile terminal has just known that the second File header information is 52617221 the second file, and parses in addition to the second of second file
Format is RAR.
S105, when the first format and the second format difference, show first picture file display icon and this second
The display icon of file.
After parsing the second format of the second file, which is just informed in the first picture file under cover terminal
Second file, if when first format and the second format difference, characterizing second file is non-picture file, therefore, the terminal
Just the icon of the display file in the first picture file and hiding file icon are all shown, selected for user.
It should be noted that characterizing may deposit in the first picture pic file when the first format is identical as the second format
The multiple pictures the case where, there is no the case where the second file of different-format, under such circumstances, terminal can be direct
Using the first picture file, as the realization of the prior art, directly displaying the first picture file can.
Particularly, the display icon in the embodiment of the present invention is respectively used to the first picture file of mark and the second file.
Preferably, the display icon in the embodiment of the present invention can be indicated by the type of the corresponding format of file, for example,
Picture file uses picture identification, and the file of RAR format is using compressed file mark etc..
As long as being not limited in showing icon it should be noted that can characterize the mark of file can use.
Further, the second file of the different-format in the first picture file can have multiple, and therefore, which can be with
All second files all detected by the method for above-mentioned the second file of detection.
It should be noted that after terminal all detected the second all files hidden in the first picture file,
The terminal just shows the first picture file of all detections and the corresponding display icon of the second file.
Specifically, since terminal picture file is all and its picture library association and shows, terminal can be in its figure
Above-mentioned display icon is shown in the preview screen or menu in library.
It is understood that when also hiding extended formatting in the picture file (the first picture file) that terminal obtains
When file, the embodiment of the present invention can be shown the display icon of the file of full format by detection, be selected for user
Or it consults.
S106, when showing that icon is triggered, the corresponding file of display display icon.
After terminal shows the display icon of the first picture file and the display icon of the second file, user can be known
The file of all formats in first picture file clicks a certain file when user wants to know the content of a certain file
Corresponding display icon shows that icon is triggered, at this moment, which can open and show
Out, for user's access.
It should be noted that existing due to general picture file default association picture library application when in the first picture file
It does not just open when the file of extended formatting, therefore, in the embodiment of the present invention, terminal detects the second file of different-format
When, application corresponding with the format of the second file is associated with second file, when showing that icon is triggered, terminal
It will show that the corresponding file of icon is opened in application associated with this document.
Further, the function of display methods provided in an embodiment of the present invention can be manually opened by a user and oneself
The mode of default.As shown in figure 4, terminal can be when set interface opens intelligent display function, using realization, the present invention is implemented
The display methods that example provides, when opening the function without looking on the bright side of things, can be turned off in set interface.Specifically, the present invention is implemented
The trigger condition embodiment of the present invention for the display methods that example provides is with no restriction.
A kind of display methods provided by the embodiment of the present invention, when obtaining the first picture file, terminal detect this first
First File header information of picture file corresponding data;According to the first File header information and preset File header information and format
Corresponding relationship parses the first format of the first picture file;Data after detecting the first end-of-file information whether there is second
File header information, second File header information are the File header information of the second file corresponding data;The second file header is believed if it exists
Breath, then according to the corresponding relationship of second File header information and preset File header information and format, parse the second file
Second format;When the first format and the second format difference, the display icon of the first picture file of display and showing for the second file
Diagram mark;When showing that icon is triggered, the corresponding file of display icon is shown.Using above-mentioned technic relization scheme, due to
When terminal is wanted to open the first picture file, the first format to the first picture file can detecte, if there is also other lattice
When formula, which also can detecte out, and can also show the corresponding display icon of the file of different-format,
And when showing that icon is triggered, the file of display display icon application.Therefore, terminal can be to the different data of picture file
Format is parsed, and realizes the display of the different data format of picture file, embodies the hommization of terminal.
Embodiment two
The embodiment of the invention provides a kind of display methods, as shown in figure 5, this method may include:
S201, when obtaining the first picture file, detect the first picture file corresponding data the first File header information.
It should be noted that picture file in the embodiment of the present invention is with picture be main display mode file, it is right
It will necessarily include a File header information and end-of-file information, this document head letter for the data of a formatted file
The beginning for characterizing file data is ceased, end-of-file information is used to characterize the end of file data.
Display methods provided in an embodiment of the present invention is proposed mainly for the phenomenon that intension figure.Intension figure refers to to scheme
The file of piece format is packaging, in fact internal to contain the information of extended formatting or a kind of mode of file.I.e. of the invention real
The case where applying in example, may including different second files in the intension figure of the first picture file, that is to say, that by extended formatting
File hiding is in the file of picture format.
It should be noted that the source of the first picture file in the embodiment of the present invention can be to be come by application transport
Picture file, or from the file system in local storage or cloud be scanned acquisition etc..When terminal get this first
When picture file, which begins to File header information (the first text for the corresponding data of the first picture file that detection is got
Part head information).
Specifically, File header information can be mark with identifier, terminal detects the first File header information, exactly detects the
Beginning identifier in one picture file corresponding data.
It should be noted that each file format is corresponding to be started to identify due to the difference of the corresponding file format of file
Symbol is different.
Particularly, due to the embodiment of the present invention primarily directed to picture file be packaging intension figure, terminal obtains
The primary format of the first picture file taken necessarily picture format.For example, the picture formats such as JPG, PNG, BMP.
Optionally, the corresponding file format of alternative document in the embodiment of the present invention can be RAR, the non-picture lattice such as PDF
Formula, the specific non-picture format embodiment of the present invention is with no restriction.
Optionally, the beginning identifier in the embodiment of the present invention can be JFIF identifier, IHDR identifier etc., wherein
JFIF identifier is the corresponding beginning identifier of JPG format, and IHDR is the corresponding beginning identifier of PNG format.
S202, according to the corresponding relationship of the first File header information and preset File header information and format, parse first
First format of picture file.
After terminal detects the first File header information of the first picture file corresponding data, since different file headers is believed
The corresponding different format of breath, therefore, the terminal can be according to the first File header information and preset File header informations and format
Corresponding relationship, parses corresponding first format of the first File header information, which is exactly the format of the first picture file.
It should be noted that in the embodiment of the present invention, it is above-mentioned to have been described that the first picture file is camouflage, therefore, the
One format is the picture format of the first picture file, is the nominative formula of the first picture file obtained.
Specifically, being as shown in table 1 the mapping table of preset File header information and format, wherein in File header information
Data be each format it is corresponding start identifier content.
It illustratively, can by table 1 when mobile terminal detects that the first File header information is FFD8FF (JFIF identifier)
Know, the first format that mobile terminal parses the first picture file is just JPG.
Table 1
Format | File header information (0x) |
ZIP Archive(zip) | 504B0304 |
RAR Archive(rar) | 52617221 |
Wave(wav) | 57415645 |
AVI(avi) | 41564920 |
MPEG(mpg) | 000001BA |
MPEG(mp3) | 000001B3 |
Adobe Photoshop(psd) | 38425053 |
Rich Text Format(rtf) | 7B5C727466 |
XML(xml) | 3C3F786D6C |
HTML(html) | 68746D6C3E |
Email[thorough only](eml) | 44656C69766572792D646174653A |
Outlook Express(dbx) | CFAD12FEC5FD746F |
Outlook(pst) | 2142444E |
MS Word/Excel(xls.or.doc) | D0CF11E0 |
MS Access(mdb) | 5374616E64617264204A |
WordPerfect(wpd) | FF575043 |
Postscript(eps.or.ps) | 252150532D41646F6265 |
Adobe Acrobat(pdf) | 255044462D312E |
Quicken(qdf) | AC9EBD8F |
Windows Password(pwl) | E3828596 |
CAD(dwg) | 41433130 |
Real Audio(ram) | 2E7261FD |
Real Media(rm) | 2E524D46 |
Quicktime(mov) | 6D6F6F76 |
Windows Media(asf) | 3026B2758E66CF11 |
MIDI(mid) | 4D546864 |
JPEG(jpg) | FFD8FF |
PNG(png) | 89504E47 |
GIF(gif) | 47494638 |
TIFF(tif) | 49492A00 |
Windows Bitmap(bmp) | 424D |
With the presence or absence of the first extension information in S203, the first picture file corresponding data of detection.
It should be noted that after the first File header information, before the first end-of-file information, it is also possible to which there are the first extensions
Information, this first extension information in there is likely to be the files of different-format.
Specifically, after the detection and parsing of terminal the first File header information of completion, so that it may detect whether the first extension
The identifier of information, second that wherein whether there is the second file is detected, and then detected to the first extension information
Information.
S204, if it exists the first extension information then detect the first extension information with the presence or absence of the second File header information, are somebody's turn to do
Second File header information is the File header information of the second file corresponding data.
After extending information with the presence or absence of first in terminal the first picture file corresponding data of detection, first expansion if it exists
Information is opened up, which then detects the first extension information and (detect whether hiding text with the presence or absence of the second File header information
Part), which is the File header information of the second file corresponding data.
It should be noted that the first extension information is present in after the beginning identifier of the first File header information, terminal can
Whether to read the first extension information, and detecting wherein includes statement to extended formatting file, can be from the first extension letter
In breath, obtain whether this picture file contains the data of extended formatting file, to analyze the data of these extended formatting files,
Which kind of format particularly belonged to.
Data after S205, the first end-of-file information of detection whether there is the second File header information.
After terminal parses the first format of the first picture file, since each file has a corresponding file header
Therefore information and end-of-file information have detected the first File header information in terminal, have known the first format of the first picture file
Afterwards, which starts to detect the first end-of-file information of the first picture file.Specifically, since the first end-of-file information representation should
The end of first picture file, then, terminal detect the first subsequent data of end-of-file information and believe with the presence or absence of the second file header
Breath.
It should be noted that in the embodiment of the present invention, due to the first picture file after there is likely to be extended formattings
File, therefore, terminal is known after the first picture file of detection with the presence or absence of hiding file (the second file), then, the end
End whether there is the second File header information with regard to the data after the first end-of-file information of detection.
Specifically, the first end-of-file information in the embodiment of the present invention refers to end identifier.
Optionally, end identifier can be the identifiers such as EOI, wherein JPG format corresponds to EOI identifier, and PNG lattice
Formula corresponds to IEND identifier.Specifically, the type embodiment of the present invention of end identifier is with no restriction.
Further, the expression content of EOI identifier can be 0x FFD9, and the expression content of IEND identifier can be with
For 0000000049454E44AE426082.
It should be noted that the second format of the second file in the embodiment of the present invention can be above explained any lattice
Formula, any one for starting identifier that the second File header information can be crossed for above description, and the second format and the second text
The corresponding relationship of part head information is as shown in table 1.
S206, if it exists the second File header information, then according to the second File header information and preset File header information dative
The corresponding relationship of formula parses the second format of the second file.
After data after terminal the first end-of-file information of detection whether there is the second File header information, alternatively, the terminal
The first extension information is detected with the presence or absence of after the second File header information, if it exists the second File header information, due to file header
Information is the mark that a file starts, therefore, when terminal detects that there are when the second File header information, just characterize the terminal to obtain
The first picture file for taking and be only the content shown on surface, may also conceal other file (the second file), then, should
Terminal can be corresponding with format according to the preset File header information shown in the second File header information and table 1 detected
Relationship parses the second format of the second file.
Further, if detecting, there is no the second File header information, terminal terminates the detection to the first picture file
, concrete implementation process and subsequent realization will be illustrated in subsequent embodiment.
Illustratively, it when mobile terminal detects FFD8FF, also detects and exists in the subsequent data of FFD8FF
52617221 data, then, it is that format therefore should for the beginning identifier of the file of RAR that mobile terminal, which parses 52617221,
Mobile terminal has just known that the second File header information is 52617221 the second file, and parses in addition to the second of second file
Format is RAR.
S207, when the first format and the second format difference, mark the first picture file the first Show Styles and second
Second Show Styles of file.
S208, the display icon that the first picture file is shown according to the first Show Styles, and according to the second Show Styles
Show the display icon of the second file.
After parsing the second format of the second file, which is just informed in the first picture file under cover terminal
Second file, if when first format and the second format difference, characterizing second file is non-picture file, therefore, the terminal
Just the icon of the display file in the first picture file and hiding file icon are all shown, selected for user.
It should be noted that there may be more in the first picture file of characterization when the first format is identical as the second format
, there is no the case where the second file of different-format, under such circumstances, terminal can be applied directly in the case where opening photo
First picture file, as the realization of the prior art, directly displaying the first picture file can.
Particularly, the display icon in the embodiment of the present invention is respectively used to the first picture file of mark and the second file.
Preferably, the display icon in the embodiment of the present invention can be indicated by the type of the corresponding format of file, for example,
Picture file uses picture identification, and the file of RAR format is using compressed file mark etc..
As long as being not limited in showing icon it should be noted that can characterize the mark of file can use.
Specifically, when the first format and the second format difference, the first Show Styles and the of the first picture file is marked
Second Show Styles of two files, the i.e. appearance form or figure of selection display icon.Then, terminal is further according to the first display sample
Formula shows the display icon of the first picture file, and the display icon of the second file is shown according to the second Show Styles.
Further, the second file of the different-format in the first picture file can have multiple, and therefore, which can be with
All second files all detected by the method for above-mentioned the second file of detection.
It should be noted that after terminal all detected the second all files hidden in the first picture file,
The terminal just shows the first picture file of all detections and the corresponding display icon of the second file.
Specifically, since terminal picture file is all and its picture library association and shows, terminal can be in its figure
Above-mentioned display icon is shown in the preview screen or menu in library.
It is understood that when also hiding extended formatting in the picture file (the first picture file) that terminal obtains
When file, the embodiment of the present invention can be shown the display icon of the file of full format by detection, be selected for user
Or it consults.
S209, if it does not exist the second File header information then show the display icon of the first picture file.
Data after terminal the first end-of-file information of detection are somebody's turn to do with the presence or absence of after the second File header information alternatively, detecting
First extension information is with the presence or absence of after the second File header information, second File header information if it does not exist, then the terminal is not just
Comprising intension figure, the file for the different-format that do not hide, and answered since the first picture file has inherently been associated with picture library
With therefore, the display icon for directly displaying the first picture can.
It should be noted that step S206-S208 and S209 optional after being S204 or S205, the embodiment of the present invention
In, S206-S208 can be first carried out, then execute S209 according to the actual situation, after S204 or S205, can also held
Row S209, then execute S206-S208.
It should be noted that the step of the step of after S206, can be to carry out after S204 or S205, can with S204,
S206-S209 has executed and then has carried out S205-S209.
Further, after S203, if terminal detection, there is no the first extension information, which is carried out S205-
S209.
S210, when the display icon of the first picture file is triggered, show the first picture file;Alternatively, when the second text
When the display icon of part is triggered, the second file is shown.
After terminal shows the display icon of the first picture file or the display icon of the second file, user can be known
The file of all formats in first picture file clicks a certain file when user wants to know the content of a certain file
Corresponding display icon shows that icon is triggered, at this moment, which can open and show
Out, for user's access.
It should be noted that existing due to general picture file default association picture library application when in the first picture file
It does not just open when the file of extended formatting, therefore, in the embodiment of the present invention, terminal detects the second file of different-format
When, application corresponding with the format of the second file is associated with second file, when showing that icon is triggered, terminal
It will show that the corresponding file of icon is opened in application associated with this document, specifically, when the display of the first picture file
When icon is triggered, the content of the first picture file is opened and shown;Alternatively, when the display icon of the second file is triggered,
Open and show the content of the second file.
Further, the function of display methods provided in an embodiment of the present invention can be manually opened by a user and oneself
The mode of default.As shown in figure 4, terminal can be when set interface opens intelligent display function, using realization, the present invention is implemented
The display methods that example provides, when opening the function without looking on the bright side of things, can be turned off in set interface.Specifically, the present invention is implemented
The trigger condition embodiment of the present invention for the display methods that example provides is with no restriction.
A kind of display methods provided by the embodiment of the present invention, when obtaining the first picture file, terminal detect this first
First File header information of picture file corresponding data;According to the first File header information and preset File header information and format
Corresponding relationship parses the first format of the first picture file;Data after detecting the first end-of-file information whether there is second
File header information, second File header information are the File header information of the second file corresponding data;The second file header is believed if it exists
Breath, then according to the corresponding relationship of second File header information and preset File header information and format, parse the second file
Second format;When the first format and the second format difference, the display icon of the first picture file of display and showing for the second file
Diagram mark;When showing that icon is triggered, the corresponding file of display icon is shown.Using above-mentioned technic relization scheme, due to
When terminal is wanted to open the first picture file, the first format to the first picture file can detecte, if there is also other lattice
When formula, which also can detecte out, and can also show the corresponding display icon of the file of different-format,
And when showing that icon is triggered, the file of display display icon application.Therefore, terminal can be to the different data of picture file
Format is parsed, and realizes the display of the different data format of picture file, embodies the hommization of terminal.
Embodiment three
As shown in fig. 6, the embodiment of the invention provides a kind of terminal 1, which may include:
Detection unit 10, for when obtaining the first picture file, the of detection the first picture file corresponding data
One File header information.
Resolution unit 11, first File header information and preset file for being detected according to the detection unit 10
The corresponding relationship of head information and format, parses the first format of first picture file.
The detection unit 10, the data after being also used to detect the first end-of-file information whether there is the second file header
Information, second File header information are the File header information of the second file corresponding data.
The resolution unit 11, if being also used to the detection unit 10 detects the presence of second File header information,
According to the corresponding relationship of second File header information and the preset File header information and format, second text is parsed
Second format of part.
Display unit 12, first format for parsing when the resolution unit 11 are different from second format
When, show the display icon of the display icon and second file of first picture file;When the display icon is touched
When hair, the corresponding file of the display icon is shown.
Optionally, the detection unit 10 is also used to the resolution unit 11 according to first File header information and pre-
If File header information and format corresponding relationship, after the first format for parsing first picture file, the detection
It is corresponding to detect first picture file with the presence or absence of before the second File header information for data after the first end-of-file information
With the presence or absence of the first extension information in data;And if it exists it is described first extension information, then detect it is described first extension information
With the presence or absence of second File header information.
Optionally, as shown in fig. 7, the terminal 1 further include: mark unit 13.
The mark unit 13, for the resolution unit 11 according to second File header information and the preset text
The corresponding relationship of part head information and format, after the second format for parsing second file, the display unit 12 is shown
Before the display icon of display icon and the display icon of second file of first picture file, when the parsing is single
When first format of 11 parsing of member and the second format difference, the first Show Styles of first picture file is marked
With the second Show Styles of second file.
Correspondingly, the display unit 12, specifically for the first display sample marked according to the mark unit 13
Formula shows the display icon of first picture file, and second Show Styles marked according to the mark unit 13
Show the display icon of second file.
Optionally, the display unit 12 is also used to after the detection unit 10 detects the first end-of-file information
Data whether there is the second File header information, and the detection first extension information is believed with the presence or absence of second file header
After breath, if the detection unit 10 is detected there is no second File header information, show that the mark unit 13 is marked
The display icon of first picture file of note.
Optionally, the display unit 12, specifically for showing when the display icon of first picture file is triggered
Show first picture file;When the display icon of second file is triggered, second file is shown.
Optionally, terminal can be the intelligent terminal of the application with various formats, for example, intelligent mobile terminal, plate
Deng.
In practical applications, in practical applications, above-mentioned detection unit 10, resolution unit 11, mark unit 13 can be by positions
It is realized in the processor in terminal 1, specially central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP)
Or field programmable gate array (FPGA) etc. realizes that display unit 12 can realize by display, specially liquid crystal display, etc. from
Sub-display etc. can also include memory in the terminal 1, specifically, the first picture file and its software code, the first picture
The corresponding data of file and its software code, the second file and its software code, the corresponding data of the second file and its software generation
Code, the first display icon and its software code and the second display icon and its software code can save in memory, should
Memory, display can be connect by system bus with processor, wherein and memory is used to store executable program code,
The program code includes computer operation instruction, and memory may include high speed RAM memory, it is also possible to further include non-volatile
Memory, for example, at least one magnetic disk storage.
A kind of terminal provided by the embodiment of the present invention, when obtaining the first picture file, terminal detects first picture
First File header information of file corresponding data;It is corresponding with format according to the first File header information and preset File header information
Relationship parses the first format of the first picture file;Data after detecting the first end-of-file information whether there is the second file
Head information, second File header information are the File header information of the second file corresponding data;Second File header information if it exists, then
According to the corresponding relationship of second File header information and preset File header information and format, the second lattice of the second file are parsed
Formula;When the first format and the second format difference, the display icon of the display icon and the second file of the first picture file of display;
When showing that icon is triggered, the corresponding file of display icon is shown.Using above-mentioned technic relization scheme, due to thinking in terminal
When opening the first picture file, the first format to the first picture file can detecte, if there is also when extended formatting,
The terminal also can detecte out, and can also show the corresponding display icon of the file of different-format, and showing
When icon is triggered, the file of display display icon application.Therefore, terminal can carry out the different data format of picture file
Parsing, realizes the display of the different data format of picture file, embodies the hommization of terminal.
It should be understood by those skilled in the art that, the embodiment of the present invention can provide as method, system or computer program
Product.Therefore, the shape of hardware embodiment, software implementation or embodiment combining software and hardware aspects can be used in the present invention
Formula.Moreover, the present invention, which can be used, can use storage in the computer that one or more wherein includes computer usable program code
The form for the computer program product implemented on medium (including but not limited to magnetic disk storage and optical memory etc.).
The present invention be referring to according to the method for the embodiment of the present invention, the process of equipment (system) and computer program product
Figure and/or block diagram describe.It should be understood that every one stream in flowchart and/or the block diagram can be realized by computer program instructions
The combination of process and/or box in journey and/or box and flowchart and/or the block diagram.It can provide these computer programs
Instruct the processor of general purpose computer, special purpose computer, Embedded Processor or other programmable data processing devices to produce
A raw machine, so that being generated by the instruction that computer or the processor of other programmable data processing devices execute for real
The device for the function of being specified in present one or more flows of the flowchart and/or one or more blocks of the block diagram.
These computer program instructions, which may also be stored in, is able to guide computer or other programmable data processing devices with spy
Determine in the computer-readable memory that mode works, so that it includes referring to that instruction stored in the computer readable memory, which generates,
Enable the manufacture of device, the command device realize in one box of one or more flows of the flowchart and/or block diagram or
The function of being specified in multiple boxes.
These computer program instructions also can be loaded onto a computer or other programmable data processing device, so that counting
Series of operation steps are executed on calculation machine or other programmable devices to generate computer implemented processing, thus in computer or
The instruction executed on other programmable devices is provided for realizing in one or more flows of the flowchart and/or block diagram one
The step of function of being specified in a box or multiple boxes.
The foregoing is only a preferred embodiment of the present invention, is not intended to limit the scope of the present invention.
Claims (10)
1. a kind of display methods characterized by comprising
When obtaining the first picture file, the first File header information of the first picture file corresponding data is detected, wherein institute
To state the first picture file be with picture be packaging intension map file;Wherein, the intension map file refers to picture format as packet
Dress, and the internal file including the format other than picture format;
According to the corresponding relationship of first File header information and preset File header information and format, first figure is parsed
First format of piece file;
Data after detecting the first end-of-file information whether there is the second File header information, and second File header information is second
The File header information of file corresponding data;
Second File header information if it exists, then according to second File header information and the preset File header information with
The corresponding relationship of format parses the second format of second file;
When first format and when the second format difference, the display icon and described the of first picture file is shown
The display icon of two files;
When the display icon is triggered, the corresponding file of the display icon is shown.
2. the method according to claim 1, wherein described according to first File header information and preset text
The corresponding relationship of part head information and format, after the first format for parsing first picture file, the detection described the
Before data after one end-of-file information whether there is the second File header information, the method also includes:
It detects in the first picture file corresponding data with the presence or absence of the first extension information;
The first extension information if it exists then detects the first extension information with the presence or absence of second File header information.
3. according to the method described in claim 2, it is characterized in that, described according to second File header information and described default
File header information and format corresponding relationship, after the second format for parsing second file, the display described the
Before the display icon of one picture file and the display icon of second file, the method also includes:
When first format and the second format difference, the first Show Styles and the institute of first picture file are marked
State the second Show Styles of the second file;
Correspondingly, the display icon of the display icon and second file of display first picture file, comprising:
The display icon of first picture file is shown according to first Show Styles, and according to the second display sample
Formula shows the display icon of second file.
4. according to the method described in claim 3, it is characterized in that, the data after detection the first end-of-file information are
It is no there are the second File header information, and the detection first extension information with the presence or absence of second File header information it
Afterwards, the method also includes:
Second File header information if it does not exist then shows the display icon of first picture file.
5. method according to claim 1 or 4, which is characterized in that when the display icon is triggered, the display figure
Mark corresponding file, comprising:
When the display icon of first picture file is triggered, first picture file is shown;
When the display icon of second file is triggered, second file is shown.
6. a kind of terminal characterized by comprising
Detection unit, for detecting the first file of the first picture file corresponding data when obtaining the first picture file
Head information, wherein it is the intension map file packed that first picture file, which is with picture,;Wherein, the intension map file refers to
It is packaging with picture format, and inside includes the file of the format other than picture format;
Resolution unit, first File header information and preset File header information for being detected according to the detection unit with
The corresponding relationship of format parses the first format of first picture file;
The detection unit, the data after being also used to detect the first end-of-file information whether there is the second File header information, described
Second File header information is the File header information of the second file corresponding data;
The resolution unit, if being also used to the detection unit detects the presence of second File header information, according to
The corresponding relationship of second File header information and the preset File header information and format parses the second of second file
Format;
When display unit, first format for parsing when the resolution unit and the second format difference, institute is shown
State the display icon of the display icon and second file of the first picture file;When the display icon is triggered, display
The corresponding file of the display icon.
7. terminal according to claim 6, which is characterized in that
The detection unit, be also used to the resolution unit according to first File header information and preset File header information with
The corresponding relationship of format, after the first format for parsing first picture file, detection the first end-of-file letter
Data after breath are with the presence or absence of before the second File header information, detecting in the first picture file corresponding data with the presence or absence of the
One extension information;And the first extension information if it exists, then the first extension information is detected with the presence or absence of described second
File header information.
8. terminal according to claim 7, which is characterized in that the terminal further include: mark unit;
The mark unit, for the resolution unit according to second File header information and the preset File header information
With the corresponding relationship of format, after the second format for parsing second file, the display unit shows first figure
Before the display icon of piece file and the display icon of second file, when first format of resolution unit parsing
When with the second format difference, marks the first Show Styles of first picture file and the second of second file shows
Sample formula;
Correspondingly, the display unit, specifically for showing institute according to first Show Styles of the mark unit mark
It states the display icon of the first picture file, and shows described the according to second Show Styles of the mark unit mark
The display icon of two files.
9. terminal according to claim 8, which is characterized in that
The display unit is also used to the detection unit and detects the data after the first end-of-file information with the presence or absence of second
File header information, and the detection first extension information is with the presence or absence of after second File header information, if the inspection
It surveys unit to detect there is no second File header information, then shows first picture file of the mark unit mark
Display icon.
10. terminal according to claim 6 or 9, which is characterized in that
The display unit shows described the specifically for showing when the display icon of first picture file is triggered
One picture file;When the display icon of second file is triggered, second file is shown.
Priority Applications (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511009642.9A CN105677717B (en) | 2015-12-29 | 2015-12-29 | A kind of display methods and terminal |
PCT/CN2016/102670 WO2017113941A1 (en) | 2015-12-29 | 2016-10-20 | Displaying method, terminal, and computer storage medium |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201511009642.9A CN105677717B (en) | 2015-12-29 | 2015-12-29 | A kind of display methods and terminal |
Publications (2)
Publication Number | Publication Date |
---|---|
CN105677717A CN105677717A (en) | 2016-06-15 |
CN105677717B true CN105677717B (en) | 2019-04-19 |
Family
ID=56189677
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201511009642.9A Active CN105677717B (en) | 2015-12-29 | 2015-12-29 | A kind of display methods and terminal |
Country Status (2)
Country | Link |
---|---|
CN (1) | CN105677717B (en) |
WO (1) | WO2017113941A1 (en) |
Families Citing this family (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN105677717B (en) * | 2015-12-29 | 2019-04-19 | 努比亚技术有限公司 | A kind of display methods and terminal |
CN111274766B (en) * | 2018-11-16 | 2023-11-03 | 福建天泉教育科技有限公司 | Method and terminal for checking file transcoding result |
CN112328930B (en) * | 2019-08-05 | 2023-10-20 | Vidaa(荷兰)国际控股有限公司 | Webpage rendering method, server, client and system based on cobalt |
CN113703877B (en) * | 2021-10-25 | 2022-02-08 | 深圳市明源云空间电子商务有限公司 | Method and device for generating image based on image generation plug-in and readable storage medium |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739403A (en) * | 2008-11-12 | 2010-06-16 | 宏达国际电子股份有限公司 | Method and device for displaying multimedia file icon |
CN102855602A (en) * | 2011-06-28 | 2013-01-02 | 阿里巴巴集团控股有限公司 | Picture processing method and picture processing device |
CN103646048A (en) * | 2013-11-25 | 2014-03-19 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for achieving multimedia pictures |
CN104079982A (en) * | 2013-03-29 | 2014-10-01 | 深圳市快播科技有限公司 | Seed file processing method and device for video |
CN104916298A (en) * | 2015-05-28 | 2015-09-16 | 努比亚技术有限公司 | Coding and decoding methods, coding and decoding devices, electronic equipment and audio picture generating method |
CN105187911A (en) * | 2015-09-28 | 2015-12-23 | 努比亚技术有限公司 | Method and device for displaying video image and image display method |
Family Cites Families (4)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US7082567B1 (en) * | 1999-10-18 | 2006-07-25 | Rose Blush Software Llc | Enhanced human computer user interface system for searching and browsing documents |
US8856076B2 (en) * | 2011-06-17 | 2014-10-07 | International Business Machines Corporation | Rendering tape file system information in a graphical user interface |
CN104519404B (en) * | 2013-09-29 | 2018-02-16 | 北京新媒传信科技有限公司 | The player method and device of graphic interchange format file |
CN105677717B (en) * | 2015-12-29 | 2019-04-19 | 努比亚技术有限公司 | A kind of display methods and terminal |
-
2015
- 2015-12-29 CN CN201511009642.9A patent/CN105677717B/en active Active
-
2016
- 2016-10-20 WO PCT/CN2016/102670 patent/WO2017113941A1/en active Application Filing
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN101739403A (en) * | 2008-11-12 | 2010-06-16 | 宏达国际电子股份有限公司 | Method and device for displaying multimedia file icon |
CN102855602A (en) * | 2011-06-28 | 2013-01-02 | 阿里巴巴集团控股有限公司 | Picture processing method and picture processing device |
CN104079982A (en) * | 2013-03-29 | 2014-10-01 | 深圳市快播科技有限公司 | Seed file processing method and device for video |
CN103646048A (en) * | 2013-11-25 | 2014-03-19 | 宇龙计算机通信科技(深圳)有限公司 | Method and device for achieving multimedia pictures |
CN104916298A (en) * | 2015-05-28 | 2015-09-16 | 努比亚技术有限公司 | Coding and decoding methods, coding and decoding devices, electronic equipment and audio picture generating method |
CN105187911A (en) * | 2015-09-28 | 2015-12-23 | 努比亚技术有限公司 | Method and device for displaying video image and image display method |
Also Published As
Publication number | Publication date |
---|---|
CN105677717A (en) | 2016-06-15 |
WO2017113941A1 (en) | 2017-07-06 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
WO2020211709A1 (en) | Method and electronic apparatus for adding annotation | |
US20170249934A1 (en) | Electronic device and method for operating the same | |
CN105791592A (en) | Information prompting method and mobile terminal | |
CN105718071A (en) | Terminal and method for recommending associational words in input method | |
CN105677717B (en) | A kind of display methods and terminal | |
CN106484470A (en) | The processing method of application program installation kit, device and server | |
CN106356065A (en) | Mobile terminal and voice conversion method | |
CN106909681A (en) | A kind of information processing method and its device | |
CN104731508B (en) | Audio frequency playing method and device | |
CN106506778A (en) | A kind of dialing mechanism and method | |
CN110430022B (en) | Data transmission method and device | |
CN106993093A (en) | A kind of image processing apparatus and method | |
US20120094720A1 (en) | Mobile terminal and displaying method thereof | |
CN104898927B (en) | The method and device of information search | |
CN106850080A (en) | The sending method and mobile terminal of a kind of associated person information | |
CN104980576A (en) | Method and device for automatically extracting number for mobile terminal | |
CN105187621B (en) | The method, apparatus and terminal of message notifying | |
CN105635837A (en) | Video playing method and device | |
CN104732218B (en) | The method and device that image is shown | |
CN106686298A (en) | Post-shooting processing method, post-shooting processing device and mobile terminal | |
CN106777251A (en) | A kind of file management method and device | |
CN106775673A (en) | Many account entering devices and method of a kind of application program | |
CN105472289B (en) | Edit the device and method of sound photo | |
CN106778096A (en) | The camouflage method and mobile terminal of a kind of application program | |
CN106648373A (en) | File processing method and device and terminal |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C06 | Publication | ||
PB01 | Publication | ||
C10 | Entry into substantive examination | ||
SE01 | Entry into force of request for substantive examination | ||
GR01 | Patent grant | ||
GR01 | Patent grant |