CN105677717A - Display method and terminal - Google Patents

Display method and terminal Download PDF

Info

Publication number
CN105677717A
CN105677717A CN201511009642.9A CN201511009642A CN105677717A CN 105677717 A CN105677717 A CN 105677717A CN 201511009642 A CN201511009642 A CN 201511009642A CN 105677717 A CN105677717 A CN 105677717A
Authority
CN
China
Prior art keywords
file
header information
picture
file header
display icon
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201511009642.9A
Other languages
Chinese (zh)
Other versions
CN105677717B (en
Inventor
张圣杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
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 CN201511009642.9A priority Critical patent/CN105677717B/en
Publication of CN105677717A publication Critical patent/CN105677717A/en
Priority to PCT/CN2016/102670 priority patent/WO2017113941A1/en
Application granted granted Critical
Publication of CN105677717B publication Critical patent/CN105677717B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/11File system administration, e.g. details of archiving or snapshots
    • G06F16/116Details of conversion of file system types or formats
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F16/00Information retrieval; Database structures therefor; File system structures therefor
    • G06F16/10File systems; File servers
    • G06F16/16File or folder operations, e.g. details of user interfaces specifically adapted to file systems

Abstract

Embodiments of the present invention disclose a display method and a terminal, different data formats of picture files can be analyzed, the different data formats of the picture files can be displayed, humanization of the terminal is embodied, and user experience is improved. The method comprises the steps of detecting first file header information of data corresponding to a first picture file when obtaining the first picture file; analyzing a first format of the first picture file according to the first file header information and corresponding relation between preset file header information and formats; detecting whether second file header information exists in data after second file end information; if the second file header information exists, analyzing a second format of a second file according to the second file header information and the corresponding relation between the preset file header information and the formats; when the first format is different from the second format, displaying a display icon of the first picture file and a display icon of the second file; and when the display icon is triggered, displaying the file corresponding to the display icon.

Description

A kind of display packing and terminal
Technical field
The present invention relates to the picture Processing Technique in the communications field, particularly relate to a kind of display packing and terminal.
Background technology
Along with the development of electronic technology, the function of terminal gets more and more, and camera function is function indispensable in terminal, and user can use cameras record to live whenever and wherever possible.
In prior art, user is shown by the picture file shot by camera or by the picture file that a certain application transport is next by picture library application. Such as, user A by the picture 1 of oneself terminal taking by social networking application be sent to user B, user B click open picture 1 time, terminal can pass through associate picture library application show this picture 1.
But, when adopting existing techniques in realizing scheme, terminal only can resolve according to the form of statement in the file header of picture file, and then the view data according to picture file shows this picture file, without user is resolved by the extended formatting data comprised in picture file, as when the voice data in acquisition for mobile terminal to sound photo, during the compressed package data etc. that picture pretends, mobile terminal only can resolve the file header of picture file, think picture format, then, just the picture library application by associating shows picture out, and the extended formatting data added in picture file are not dealt with, more information whether is also had to need to pay close attention in these picture files so that user cannot learn, cause poor user experience.
Summary of the invention
For solving above-mentioned technical problem, embodiment of the present invention expectation provides a kind of display packing and terminal, it is possible to the different data format of picture file is resolved, it is achieved the display of the different data format of picture file, embody the hommization of terminal, improve Consumer's Experience sense.
The technical scheme is that and be achieved in that:
Embodiments provide a kind of display packing, including:
When obtaining the first picture file, detect the first File header information of described first picture file corresponding data;
Corresponding relation according to described first File header information and the File header information preset and form, parses the first form of described first picture file;
Detecting whether the data after described first end-of-file information exist the second File header information, described second File header information is the File header information of the second file corresponding data;
If there is described second File header information, then the corresponding relation according to described second File header information and described default File header information and form, parses the second form of described second file;
When described first form is different from described second form, show the display icon of described first picture file and the display icon of described second file;
When described display icon is triggered, show the file that described display icon is corresponding.
In such scheme, the described corresponding relation according to described first File header information and the File header information preset and form, after parsing the first form of described first picture file, before whether the data after the described first end-of-file information of described detection exist the second File header information, described method also includes:
Detect in described first picture file corresponding data and whether there is the first extension information;
If there is described first extension information, then detect whether described first extension information exists described second File header information.
In such scheme, the described corresponding relation according to described second File header information and described default File header information and form, after parsing the second form of described second file, before the display icon of described first picture file of described display and the display icon of described second file, described method also includes:
When described first form is different from described second form, mark the first Show Styles of described first picture file and the second Show Styles of described second file;
Accordingly, the display icon showing icon and described second file of described first picture file of described display, including:
Show the display icon of described first picture file according to described first Show Styles, and show the display icon of described second file according to described second Show Styles.
In such scheme, whether the data after the described first end-of-file information of described detection exist the second File header information, and after whether the described first extension information of described detection exist described second File header information, described method also includes:
If being absent from described second File header information, then show the display icon of described first picture file.
In such scheme, when described display icon is triggered, the file that described display described display icon is corresponding, including:
When the display icon of described first picture file is triggered, show described first picture file;
When the display icon of described second file is triggered, show described second file.
Embodiments provide a kind of terminal, including:
Detection unit, for when obtaining the first picture file, detecting the first File header information of described first picture file corresponding data;
Resolution unit, for the corresponding relation of described first File header information according to the detection of described detection unit and the File header information preset and form, parses the first form of described first picture file;
Described detection unit, is additionally operable to whether the data after detecting described first end-of-file information exist the second File header information, and described second File header information is the File header information of the second file corresponding data;
Described resolution unit, if being additionally operable to described detection unit to detect the presence of described second File header information, then the corresponding relation according to described second File header information and described default File header information and form, parses the second form of described second file;
Display unit, for when described first form that described resolution unit resolves is different from described second form, showing the display icon of described first picture file and the display icon of described second file; When described display icon is triggered, show the file that described display icon is corresponding.
In such scheme, described detection unit, it is additionally operable to the described resolution unit corresponding relation according to described first File header information and the File header information preset and form, after parsing the first form of described first picture file, data after the described first end-of-file information of described detection detect in described first picture file corresponding data whether there is the first extension information before whether there is the second File header information; And if there is described first extension information, then detect whether described first extension information exists described second File header information.
In such scheme, described terminal also includes: mark unit;
Described mark unit, for the described resolution unit corresponding relation according to described second File header information and described default File header information with form, after parsing the second form of described second file, before described display unit shows the display icon of display icon and the display icon of described second file of described first picture file, when described first form that described resolution unit resolves is different from described second form, mark the first Show Styles of described first picture file and the second Show Styles of described second file;
Accordingly, described display unit, described first Show Styles specifically for marking according to described mark unit shows the display icon of described first picture file, and described second Show Styles marked according to described mark unit shows the display icon of described second file.
In such scheme, described display unit, it is additionally operable to whether the data after described detection unit detects described first end-of-file information exist the second File header information, and after whether the described described first extension information of detection exist described second File header information, if described detection unit detects is absent from described second File header information, then show the display icon of described first picture file that described mark unit marks.
In such scheme, described display unit, specifically for when the display icon of described first picture file is triggered, showing described first picture file; When the display icon of described second file is triggered, show described second file.
Embodiments providing a kind of display packing and terminal, when obtaining the first picture file, terminal detects the first File header information of this first picture file corresponding data; Corresponding relation according to the first File header information and the File header information preset and form, parses the first form of the first picture file; Detecting whether the data after the first end-of-file information exist the second File header information, this second File header information is the File header information of the second file corresponding data; If there is the second File header information, then the corresponding relation according to this second File header information and the File header information preset and form, parses the second form of the second file;When the first form and the second form are different, show the display icon of the first picture file and the display icon of the second file; When showing that icon is triggered, show the file that this display icon is corresponding. Adopt above-mentioned technic relization scheme, due to when terminal wants to open the first picture file, the first form of the first picture file can be detected, if there is also extended formatting, this terminal can also detect, and display icon corresponding for the file of different-format can also be shown, and when showing that icon is triggered, the file of display display icon application. Therefore, the different data format of picture file can be resolved by terminal, it is achieved the display of the different data format of picture file, embodies the hommization of terminal.
Accompanying drawing explanation
Fig. 1 realizes the hardware architecture diagram of an optional mobile terminal in each embodiment of the present invention;
Fig. 2 is the communication system that the mobile terminal of the present invention is operable to;
The flow chart one of a kind of display packing that Fig. 3 provides for the embodiment of the present invention;
A kind of terminal that Fig. 4 provides for the embodiment of the present invention arranges the interface schematic diagram of intelligent display function;
The flowchart 2 of a kind of display packing that Fig. 5 provides for the embodiment of the present invention;
The structural representation one of a kind of terminal that Fig. 6 provides for the embodiment of the present invention;
The structural representation two of a kind of terminal that Fig. 7 provides for the embodiment of the present invention.
Detailed description of the invention
Below in conjunction with the accompanying drawing in the embodiment of the present invention, the technical scheme in the embodiment of the present invention is clearly and completely described.
The mobile terminal realizing each embodiment of the present invention is described referring now to accompanying drawing. In follow-up description, use the suffix being used for representing such as " module ", " parts " or " unit " of element only for being conducive to the explanation of the present invention, itself do not have specific meaning. Therefore, " module " and " parts " can mixedly use.
It should be noted that a kind of focus acquisition device that the embodiment of the present invention provides can be terminal, for instance computer or mobile terminal etc. can use the electronic equipment of browser.
Wherein, mobile terminal can be implemented in a variety of manners. Such as, the terminal described in the present invention can include the mobile terminal of such as mobile phone, smart phone, notebook computer, digit broadcasting receiver, personal digital assistant (PDA), panel computer (PAD), portable media player (PMP), guider etc. and the fixed terminal of such as numeral TV, desk computer etc. Hereinafter it is assumed that terminal is mobile terminal. However, it will be understood by those skilled in the art that, except being used in particular for the element of mobile purpose, structure according to the embodiment of the present invention can also apply to the terminal of fixed type.
Fig. 1 realizes the hardware architecture diagram of an optional mobile terminal in each embodiment of the present invention.
Mobile terminal 100 can include wireless communication unit 110, audio/video (A/V) input block 120, user input unit 130, sensing unit 140, output unit 150, memorizer 160, interface unit 170, controller 180 and power subsystem 190 etc. Fig. 1 illustrates the mobile terminal with various assembly, it should be understood that be not required for implementing all assemblies illustrated. Can alternatively implement more or less of 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 radio communication between mobile terminal 100 and wireless communication system or network.Such as, wireless communication unit can include at least one in mobile communication module 112, wireless Internet module 113 and short range communication module 114.
Mobile communication module 112 sends radio signals at least one in base station (such as, access point, node B etc.), exterior terminal and server and/or receives from it radio signal. Such radio signal can include voice call signal, video calling signal or the various types of data sending according to text and/or Multimedia Message and/or receiving.
Wireless Internet module 113 supports the Wi-Fi (Wireless Internet Access) of mobile terminal. This module can internally or externally be couple to terminal. Wi-Fi (Wireless Internet Access) technology involved by this module can include 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 module for supporting junction service. Some examples of short-range communication technology include bluetoothTM, RF identification (RFID), Infrared Data Association (IrDA), ultra broadband (UWB), purple honeybeeTMEtc..
A/V input block 120 is used for receiving audio or video signal. A/V input block 120 can include camera 121 and mike 122, and the view data of the camera 121 static images to being 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 memorizer 160 (or other storage medium) or be transmitted via wireless communication unit 110, it is possible to provide two or more cameras 121 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 mike 122. Audio frequency (voice) data after process can be converted to the form output that can be sent to mobile communication base station via mobile communication module 112 when telephone calling model. Mike 122 can implement various types of noise elimination (or suppression) algorithm to eliminate (or suppression) in the noise received and produce in the process of transmission audio signal or interference.
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 can include keyboard, metal dome, touch pad (such as, detection due to touched and cause resistance, pressure, electric capacity etc. the sensitive component of change), roller, rocking bar etc. Especially, when touch pad is superimposed upon on display unit 151 as a layer, it is possible to form touch screen.
Sensing unit 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, mobile terminal 100 acceleration or deceleration move and direction etc., and generate the order of operation for controlling mobile terminal 100 or signal. Such as, when mobile terminal 100 is embodied as sliding-type mobile phone, sensing unit 140 can sense this sliding-type phone and open or close.It addition, sensing unit 140 can detect power subsystem 190 and whether provide whether electric power or interface unit 170 couple with external device (ED).
Interface unit 170 is used as at least one external device (ED) and is connected, with mobile terminal 100, the interface that can pass through. Such as, external device (ED) can include 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 of the device with identification module, audio frequency input/output (I/O) port, video i/o port, ear port etc. Identification module can be that storage is for verifying that user uses the various information of mobile terminal 100 and can include subscriber identification module (UIM), client identification module (SIM), Universal Subscriber identification module (USIM) etc. It addition, the device (hereinafter referred to " identification device ") with identification module can take the form of smart card, therefore, identify that device can be connected with mobile terminal 100 via port or other connecting device. Interface unit 170 may be used for receiving from the input (such as, data message, electric power etc.) of external device (ED) and the one or more elements being transferred in mobile terminal 100 by the input received or may be used for transmission data between mobile terminal and external device (ED).
Additionally, when mobile terminal 100 is connected with external base, interface unit 170 can serve as and allows to provide the path of mobile terminal 100 or can serve as to allow to be transferred to the path of mobile terminal from the various command signals of base input by it from base electric power by it. May serve as whether identification mobile terminal is accurately fitted within the signal base from the various command signals of base input or electric power. Output unit 150 is configured to provide output signal (such as, audio signal, video signal, alarm signal, vibration signal etc.) with vision, audio frequency and/or tactile manner. Output unit 150 can include display unit 151, dio Output Modules 152 etc.
Display unit 151 may be displayed on the information processed in mobile terminal 100. Such as, when mobile terminal 100 is in telephone calling model, display unit 151 can show the user interface (UI) relevant with call or other communicate (such as, text messaging, multimedia file download etc.) or graphic user interface (GUI). When being in video calling pattern or image capture mode when mobile terminal 100, display unit 151 can show the image of image and/or the reception caught, UI or GUI illustrating video or image and correlation function 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 serve as input equipment and output device. Display unit 151 can include 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 display may be constructed such that transparence, and to allow user to watch from outside, this is properly termed as 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 include two or more display units (or other display device), such as, mobile terminal can 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.
Dio Output Modules 152 can mobile terminal be in call signal receive under the isotype such as pattern, call mode, logging mode, speech recognition mode, broadcast reception mode time, that wireless communication unit 110 is received or storage in memorizer 160 voice data transducing audio signal and be output as sound. And, dio Output Modules 152 can provide the audio frequency output (such as, call signal receive sound, message sink sound etc.) relevant to the specific function of mobile terminal 100 execution. Dio Output Modules 152 can include speaker, buzzer etc.
Memorizer 160 can store the process performed by controller 180 and the software program controlling operation etc., or can temporarily store the data (such as, telephone directory, message, still image, video etc.) that oneself maybe will export through output. And, memorizer 160 can store the vibration about the various modes exported when touching and being applied to touch screen and the data of audio signal.
Memorizer 160 can include the storage medium of at least one type, described storage medium includes flash memory, hard disk, multimedia card, card-type memorizer (such as, SD or DX memorizer etc.), random access storage device (RAM), static random-access memory (SRAM), 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 network storage device cooperation of the storage function performing memorizer 160 with by network.
Controller 180 generally controls the overall operation of mobile terminal. Such as, controller 180 performs the control relevant to voice call, data communication, video calling etc. and process. It addition, controller 180 can include the multi-media module 181 for reproducing (or playback) multi-medium data, multi-media module 181 can construct in controller 180, or it is so structured that separates with controller 180. Controller 180 can perform pattern recognition process, so that the handwriting input performed on the touchscreen or picture drafting input are identified as character or image.
Power subsystem 190 receives external power or internal power under the control of controller 180 and provides the suitable electric power operated needed for each element and assembly.
Various embodiment described herein can to use such as computer software, hardware or its any combination of computer-readable medium to implement. Hardware is implemented, embodiment described herein can pass through to use 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, at least one that is designed to perform in the electronic unit of function described herein to implement, in some cases, such embodiment can be implemented in controller 180. Implementing for 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 memorizer 160 and be performed by controller 180.
So far, oneself is through describing mobile terminal according to its function. Below, for the sake of brevity, by the slide type mobile terminal in the various types of mobile terminals describing such as folded form, board-type, oscillating-type, slide type mobile terminal etc. exemplarily. Therefore, the present invention can be applied to any kind of mobile terminal, and is not limited to slide type mobile terminal.
Mobile terminal 100 as shown in Figure 1 may be constructed such that utilization operates via such as wired and wireless communication system and the satellite-based communication system of frame or packet transmission data.
The communication system being wherein operable to according to the mobile terminal of the present invention is described 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 includes such as frequency division multiple access (FDMA), time division multiple acess (TDMA), CDMA (CDMA) and UMTS (UMTS) (especially, Long Term Evolution (LTE)), global system for mobile communications (GSM) etc. As non-limiting example, as explained below relates to cdma communication system, but such instruction is equally applicable to other type of system.
With reference to Fig. 2, cdma wireless communication system can include multiple mobile terminal 100, multiple base station (BS) 270, base station controller (BSC) 275 and mobile switching centre (MSC) 280. MSC280 is configured to form interface with Public Switched Telephony Network (PSTN) 290. MSC280 is also structured to and the BSC275 formation interface that can be couple to BS270 via back haul link. Back haul link can construct according to any one in some interfaces that oneself knows, described interface includes such as E1/T1, ATM, IP, PPP, frame relay, HDSL, ADSL or xDSL. It will be appreciated that system as shown in Figure 2 can include multiple BSC2750.
Each BS270 can service one or more subregion (or region), by each subregion of multidirectional antenna or the antenna covering pointing to specific direction radially away from BS270. Or, each subregion can be covered by two or more antennas for diversity reception. Each BS270 may be constructed such that support multiple frequencies distribution, and the distribution of each frequency has specific frequency spectrum (such as, 1.25MHz, 5MHz etc.).
Intersecting that subregion and frequency are distributed can be referred to as CDMA Channel. BS270 can also be referred to as base station transceiver subsystem (BTS) or other equivalent terms. In this case, term " base station " may be used for broadly representing single BSC275 and at least one BS270. Base station can also be referred to as " cellular station ". Or, each subregion of specific BS270 can be referred to as multiple cellular station.
As shown in Figure 2, broadcast singal is sent in system the mobile terminal 100 of operation by broadcsting transmitter (BT) 295. In fig. 2 it is shown that several global positioning systems (GPS) satellite 300, satellite 300 helps to position at least one in multiple mobile terminals 100.
In fig. 2, depict multiple satellite 300, it is understood that be, it is possible to use any number of satellite obtains useful location information. Substitute GPS tracking technique or outside GPS tracking technique, it is possible to use other technology of the position of mobile terminal can be followed the tracks of. It addition, at least one gps satellite 300 can optionally or additionally process satellite dmb transmission.
As a typical operation of wireless communication system, BS270 receives the reverse link signal from various mobile terminals 100.Mobile terminal 100 generally participates in call, information receiving and transmitting communicates with other type of. Each reverse link signal that specific BS270 receives is processed in specific BS270. The data obtained are forwarded to relevant BSC275. BSC provides call resource distribution and the mobile management function of the coordination of soft switching process included between BS270. The data received also are routed to MSC280 by BSC275, and it provides the extra route service for forming interface with PSTN290. Similarly, PSTN290 and MSC280 forms interface, and MSC and BSC275 forms interface, and BSC275 correspondingly controls BS270 so that forward link signals to be sent to mobile terminal 100.
Based on above-mentioned mobile terminal hardware configuration and communication system, it is proposed to each embodiment of the inventive method.
Embodiment one
The method embodiments provides a kind of display packing, as it is shown on figure 3, may include that
S101, when obtaining the first picture file, detect the first File header information of this first picture file corresponding data.
It should be noted that, picture file in the embodiment of the present invention is the file with picture for main display mode, data for a formatted file, a File header information and end-of-file information will necessarily be comprised, this document header is for characterizing the beginning of file data, and end-of-file information is for characterizing the end of file data.
The display packing that the embodiment of the present invention provides proposes mainly for the phenomenon of intension figure. Intension figure refers to that inside contains the information of extended formatting or a kind of mode of file in fact with the file of picture format for packaging. Namely in embodiments of the present invention, the intension figure of the first picture file is likely to the situation comprising different second file, say, that by the file hiding of extended formatting 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 the picture file come by application transport, or it is scanned acquisition etc. from the file system in local storage or high in the clouds. When terminal gets this first picture file, this terminal begins to detect the File header information (the first File header information) of data corresponding to the first picture file got.
Concrete, File header information can with identifier for mark, and terminal detects the first File header information, it is simply that detect the beginning identifier in the first picture file corresponding data.
It should be noted that due to the difference of file format corresponding to file, beginning identifier corresponding to each file format is different.
Especially, owing to the embodiment of the present invention is primarily directed to the intension figure with picture file for packaging, therefore, the primary format necessarily picture format of the first picture file that terminal obtains. Such as, JPG, PNG, the picture format such as BMP.
Optionally, the file format that alternative document in the embodiment of the present invention is corresponding can be the non-picture format such as RAR, PDF, and the concrete non-picture format embodiment of the present invention is not limited as.
Optionally, beginning identifier in the embodiment of the present invention can be JFIF (JPEGFileInterchangeFormat) identifier, IHDR (headerchunk) identifier etc., wherein, JFIF identifier is the beginning identifier that JPG form is corresponding, and IHDR is the beginning identifier that PNG format is corresponding.
S102, corresponding relation according to the first File header information and default File header information with form, parse the first form of the first picture file.
After terminal detects the first File header information of this first picture file corresponding data, due to the form that different File header information is corresponding different, therefore, this terminal can according to the corresponding relation of the first File header information and the File header information preset and form, parsing the first form that the first File header information is corresponding, this first form is exactly the form of the first picture file.
It should be noted that in the embodiment of the present invention, above-mentioned having been described that the first picture file is camouflage, therefore, the first form is the picture format of the first picture file, is the nominative formula of the first picture file obtained.
Concrete, as shown in table 1 for the mapping table of the File header information preset and form, wherein the data in File header information are the content starting identifier that each form is corresponding.
Exemplary, mobile terminal detects when the first File header information is FFD8FF (JFIF identifier), and as shown in Table 1, mobile terminal parses the first form of the first picture file just for JPG.
Table 1
Form 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
Exemplary, mobile terminal detects when the first File header information is FFD8FF (JFIF identifier), and as shown in Table 1, mobile terminal parses the first form of the first picture file just for JPG.
S103, detect the first end-of-file information after data whether there is the second File header information, this second File header information is the File header information of the second file corresponding data.
After terminal parses the first form of the first picture file, owing to each file has a File header information and the end-of-file information of correspondence, therefore, the first File header information has been detected in terminal, after knowing the first form of the first picture file, this terminal starts to detect the first end-of-file information of the first picture file. Concrete, due to the end of first this first picture file of end-of-file information representation, then, terminal detects whether the first end-of-file information data below exist the second File header information.
It should be noted that, in the embodiment of the present invention, the file of extended formatting is there is likely to be due to the first picture file after terminating, therefore, whether terminal exists hiding file (the second file) after knowing detection the first picture file, then, whether the data after this terminal just detection the first end-of-file information exist the second File header information.
Concrete, the first end-of-file information in the embodiment of the present invention refers to end identifier.
Optionally, end identifier can be the identifier such as EOI (endofimage) and IEND (imagetrailertrunk), wherein, and JPG form correspondence EOI identifier, and PNG format correspondence IEND identifier. Concrete, the type embodiment of the present invention of end identifier is not limited as.
Further, the expression content of EOI identifier can be 0xFFD9, and the expression content of IEND identifier can be 0000000049454E44AE426082.
It should be noted that, second form of the second file in the embodiment of the present invention can be the arbitrary format of described above, second File header information can start any one of identifier for what described above was crossed, and the corresponding relation of the second form and the second File header information is as shown in table 1.
If S104 exists the second File header information, then the corresponding relation according to this second File header information and the File header information preset and form, parses the second form of the second file.
Terminal detect the first end-of-file information after data whether there is the second File header information after, if there is the second File header information, owing to File header information is the mark that a file starts, therefore, when terminal detects existence the second File header information, just characterize this terminal obtain the first picture file and be only on surface display content, it is likely to also conceal other file (the second file), then, this terminal can according to the corresponding relation of the File header information preset of display in the second File header information detected and table 1 with form, parse the second form of the second file.
Further, if detecting and being absent from the second File header information, terminal then terminates have detected the first picture file, concrete implementation process and follow-up realization and will illustrate in follow-up embodiment.
Exemplary, when mobile terminal detects FFD8FF, also detect that in FFD8FF data below there are 52617221 data, then, mobile terminal parses 52617221 to be form is the beginning identifier of the file of RAR, therefore, this mobile terminal has just known the second file that the second File header information is 52617221, and resolves except the second form of this second file is RAR.
S105, when the first form and the second form are different, show display icon and the display icon of this second file of this first picture file.
Terminal is after the second form parsing the second file, this terminal is just informed in the first picture file under cover the second file, if this first form and the second form are different, characterizing this second file is non-picture file, therefore, the icon of the display file in the first picture file and the file icon hidden just all are shown by this terminal, select for user.
It should be noted that, when the first form and the second form are identical, characterize the situation that would be likely to occur multiple pictures in the first picture pic file, there is not the situation of the second file of different-format, under such circumstances, terminal can directly apply the first picture file, and the realization with prior art is the same, directly displays the first picture file just passable.
Especially, the display icon in the embodiment of the present invention is respectively used to mark the first picture file and the second file.
Preferably, the display icon in the embodiment of the present invention can be represented by the type of form corresponding to file, for instance, picture file adopts picture identification, and the file of RAR form adopts compressed file mark etc.
As long as it should be noted that the mark that can characterize file can use, be not limited in display icon.
Further, the second file of the different-format in the first picture file can have multiple, and therefore, all second files all can be detected by this terminal by the method for above-mentioned detection the second file.
It should be noted that after all of second file hidden in the first picture file all detects by terminal, the display icon of the first picture file of all detections and the second file correspondence respectively is just shown by this terminal.
Concrete, owing to terminal picture file is all and its picture library association showing, therefore, terminal can show above-mentioned display icon in the preview screen of its picture library or menu.
It is understandable that, when the picture file (the first picture file) that terminal obtains also is hidden the file of extended formatting, the display icon of the file of full format can be shown by the embodiment of the present invention by detecting, and selects for user or consults.
S106, when showing that icon is triggered, display display file corresponding to icon.
After the display icon of terminal demonstration the first picture file and the display icon of the second file, user just can know the file of all forms in the first picture file, when user wants the content knowing a certain file, click the display icon that this certain file is corresponding, namely show that icon is triggered, at this moment, the file that this display icon is corresponding just can be opened and show, and consults for user.
It should be noted that, due to general picture file default association picture library application, just do not open when the first picture file exists the file of extended formatting, therefore, in the embodiment of the present invention, time terminal detects the second file of different-format, the application corresponding with the form of the second file is associated with this second file, when showing that icon is triggered, terminal will show that the file that icon is corresponding is opened in the application being associated with this document.
Further, the function of the display packing that the embodiment of the present invention provides can, by user's manual unlocking, also be the pattern of oneself acquiescence.As shown in Figure 4, terminal when arranging interface and opening intelligent display function, can be adopted and realize the display packing that the embodiment of the present invention provides, and when being not desired to open this function, it is possible to it is turned off arranging interface. Concrete, the trigger condition embodiment of the present invention of the display packing that the embodiment of the present invention provides is not limited as.
A kind of display packing that the embodiment of the present invention provides, when obtaining the first picture file, terminal detects the first File header information of this first picture file corresponding data; Corresponding relation according to the first File header information and the File header information preset and form, parses the first form of the first picture file; Detecting whether the data after the first end-of-file information exist the second File header information, this second File header information is the File header information of the second file corresponding data; If there is the second File header information, then the corresponding relation according to this second File header information and the File header information preset and form, parses the second form of the second file; When the first form and the second form are different, show the display icon of the first picture file and the display icon of the second file; When showing that icon is triggered, show the file that this display icon is corresponding. Adopt above-mentioned technic relization scheme, due to when terminal wants to open the first picture file, the first form of the first picture file can be detected, if there is also extended formatting, this terminal can also detect, and display icon corresponding for the file of different-format can also be shown, and when showing that icon is triggered, the file of display display icon application. Therefore, the different data format of picture file can be resolved by terminal, it is achieved the display of the different data format of picture file, embodies the hommization of terminal.
Embodiment two
The method embodiments provides a kind of display packing, as it is shown in figure 5, may include that
S201, 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 the file with picture for main display mode, data for a formatted file, a File header information and end-of-file information will necessarily be comprised, this document header is for characterizing the beginning of file data, and end-of-file information is for characterizing the end of file data.
The display packing that the embodiment of the present invention provides proposes mainly for the phenomenon of intension figure. Intension figure refers to that inside contains the information of extended formatting or a kind of mode of file in fact with the file of picture format for packaging. Namely in embodiments of the present invention, the intension figure of the first picture file is likely to the situation comprising different second file, say, that by the file hiding of extended formatting 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 the picture file come by application transport, or it is scanned acquisition etc. from the file system in local storage or high in the clouds. When terminal gets this first picture file, this terminal begins to detect the File header information (the first File header information) of data corresponding to the first picture file got.
Concrete, File header information can with identifier for mark, and terminal detects the first File header information, it is simply that detect the beginning identifier in the first picture file corresponding data.
It should be noted that due to the difference of file format corresponding to file, beginning identifier corresponding to each file format is different.
Especially, owing to the embodiment of the present invention is primarily directed to the intension figure with picture file for packaging, therefore, the primary format necessarily picture format of the first picture file that terminal obtains.Such as, JPG, PNG, the picture format such as BMP.
Optionally, the file format that alternative document in the embodiment of the present invention is corresponding can be the non-picture format such as RAR, PDF, and the concrete non-picture format embodiment of the present invention is not limited as.
Optionally, the beginning identifier in the embodiment of the present invention can be JFIF identifier, IHDR identifier etc., and wherein, JFIF identifier is the beginning identifier that JPG form is corresponding, and IHDR is the beginning identifier that PNG format is corresponding.
S202, corresponding relation according to the first File header information and default File header information with form, parse the first form of the first picture file.
After terminal detects the first File header information of this first picture file corresponding data, due to the form that different File header information is corresponding different, therefore, this terminal can according to the corresponding relation of the first File header information and the File header information preset and form, parsing the first form that the first File header information is corresponding, this first form is exactly the form of the first picture file.
It should be noted that in the embodiment of the present invention, above-mentioned having been described that the first picture file is camouflage, therefore, the first form is the picture format of the first picture file, is the nominative formula of the first picture file obtained.
Concrete, as shown in table 1 for the mapping table of the File header information preset and form, wherein the data in File header information are the content starting identifier that each form is corresponding.
Exemplary, mobile terminal detects when the first File header information is FFD8FF (JFIF identifier), and as shown in Table 1, mobile terminal parses the first form of the first picture file just for JPG.
Table 1
Form 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
S203, detect whether the first picture file corresponding data exists the first extension information.
It should be noted that after the first File header information, before the first end-of-file information, it is also possible to there is the first extension information, this first extension information there is likely to be the file of different-format.
Concrete, after terminal completes detection and the parsing of the first File header information, it is possible to detect whether the identifier of the first extension information, so that this first extension information to be detected, and then whether detection wherein exists the second header of the second file.
If S204 exists the first extension information, then detecting whether this first extension information exists the second File header information, this second File header information is the File header information of the second file corresponding data.
Whether terminal detects exists after the first extension information in the first picture file corresponding data, if there is this first extension information, this terminal then detects whether this first extension information exists the second File header information (namely detecting whether hiding file), and this second File header information is the File header information of the second file corresponding data.
It should be noted that, after first extension information is present in the beginning identifier of the first File header information, terminal can read the first extension information, and detect the statement wherein whether included extended formatting file, can from the first extension information, obtain whether this picture file contains the data of extended formatting file, to analyze the data of these extended formatting files, particularly belong to which kind of form.
S205, detect the first end-of-file information after data whether there is the second File header information.
After terminal parses the first form of the first picture file, owing to each file has a File header information and the end-of-file information of correspondence, therefore, the first File header information has been detected in terminal, after knowing the first form of the first picture file, this terminal starts to detect the first end-of-file information of the first picture file. Concrete, due to the end of first this first picture file of end-of-file information representation, then, terminal detects whether the first end-of-file information data below exist the second File header information.
It should be noted that, in the embodiment of the present invention, the file of extended formatting is there is likely to be due to the first picture file after terminating, therefore, whether terminal exists hiding file (the second file) after knowing detection the first picture file, then, whether the data after this terminal just detection the first end-of-file information exist the second File header information.
Concrete, 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, and JPG form correspondence EOI identifier, and PNG format correspondence IEND identifier. Concrete, the type embodiment of the present invention of end identifier is not limited as.
Further, the expression content of EOI identifier can be 0xFFD9, and the expression content of IEND identifier can be 0000000049454E44AE426082.
It should be noted that, second form of the second file in the embodiment of the present invention can be the arbitrary format of described above, second File header information can start any one of identifier for what described above was crossed, and the corresponding relation of the second form and the second File header information is as shown in table 1.
If S206 exists the second File header information, then the corresponding relation according to the second File header information and the File header information preset and form, parses the second form of the second file.
Terminal detect the first end-of-file information after data whether there is the second File header information after, or, this terminal detects after whether this first extension information exist the second File header information, if there is the second File header information, owing to File header information is the mark that a file starts, therefore, when terminal detects existence the second File header information, just characterize this terminal obtain the first picture file and be only on surface display content, it is likely to also conceal other file (the second file), then, this terminal can according to the corresponding relation of the File header information preset of display in the second File header information detected and table 1 with form, parse the second form of the second file.
Further, if detecting and being absent from the second File header information, terminal then terminates have detected the first picture file, concrete implementation process and follow-up realization and will illustrate in follow-up embodiment.
Exemplary, when mobile terminal detects FFD8FF, also detect that in FFD8FF data below there are 52617221 data, then, mobile terminal parses 52617221 to be form is the beginning identifier of the file of RAR, therefore, this mobile terminal has just known the second file that the second File header information is 52617221, and resolves except the second form of this second file is RAR.
S207, when the first form and the second form are different, mark the first Show Styles of the first picture file and the second Show Styles of the second file.
S208, show the display icon of the first picture file according to the first Show Styles, and show the display icon of the second file according to the second Show Styles.
Terminal is after the second form parsing the second file, this terminal is just informed in the first picture file under cover the second file, if this first form and the second form are different, characterizing this second file is non-picture file, therefore, the icon of the display file in the first picture file and the file icon hidden just all are shown by this terminal, select for user.
It should be noted that, when the first form and the second form are identical, characterize the situation that would be likely to occur multiple pictures in the first picture file, there is not the situation of the second file of different-format, under such circumstances, terminal can directly apply the first picture file, and the realization with prior art is the same, directly displays the first picture file just passable.
Especially, the display icon in the embodiment of the present invention is respectively used to mark the first picture file and the second file.
Preferably, the display icon in the embodiment of the present invention can be represented by the type of form corresponding to file, for instance, picture file adopts picture identification, and the file of RAR form adopts compressed file mark etc.
As long as it should be noted that the mark that can characterize file can use, be not limited in display icon.
Concrete, when the first form and the second form are different, mark the first Show Styles of the first picture file and the second Show Styles of the second file, namely select appearance form or the figure of display icon. Then, terminal shows the display icon of the first picture file further according to the first Show Styles, and shows the display icon of the second file according to the second Show Styles.
Further, the second file of the different-format in the first picture file can have multiple, and therefore, all second files all can be detected by this terminal by the method for above-mentioned detection the second file.
It should be noted that after all of second file hidden in the first picture file all detects by terminal, the display icon of the first picture file of all detections and the second file correspondence respectively is just shown by this terminal.
Concrete, owing to terminal picture file is all and its picture library association showing, therefore, terminal can show above-mentioned display icon in the preview screen of its picture library or menu.
It is understandable that, when the picture file (the first picture file) that terminal obtains also is hidden the file of extended formatting, the display icon of the file of full format can be shown by the embodiment of the present invention by detecting, and selects for user or consults.
If S209 is absent from the second File header information, then show the display icon of the first picture file.
Terminal detect the first end-of-file information after data whether there is the second File header information after, or, detect after whether this first extension information exist the second File header information, if being absent from this second File header information, then this terminal does not just comprise intension figure, it does not have the file of hiding different-format, and has inherently been associated with picture library application due to the first picture file, therefore, the display icon directly displaying the first picture is just passable.
It should be noted that S206-S208 and S209 is optional step after S204 or S205, in the embodiment of the present invention, can according to practical situation, after S204 or S205, it is possible to first carry out S206-S208, perform S209 again, it is also possible to perform S209, then perform S206-S208.
It should be noted that the step after S206 can be the step carried out after S204 or S205, it is possible to after S204, S206-S209 have performed, then carry out S205-S209.
Further, after S203, if terminal detection is absent from the first extension information, then this terminal is carried out S205-S209.
S210, when the display icon of the first picture file is triggered, show the first picture file; Or, when the display icon of the second file is triggered, show the second file.
After the display icon of terminal demonstration the first picture file or the display icon of the second file, user just can know the file of all forms in the first picture file, when user wants the content knowing a certain file, click the display icon that this certain file is corresponding, namely show that icon is triggered, at this moment, the file that this display icon is corresponding just can be opened and show, and consults for user.
It should be noted that, due to general picture file default association picture library application, just do not open when the first picture file exists the file of extended formatting, therefore, in the embodiment of the present invention, time terminal detects the second file of different-format, the application corresponding with the form of the second file is associated with this second file, when showing that icon is triggered, terminal will show that the file that icon is corresponding is opened in the application being associated with this document, concrete, when the display icon of the first picture file is triggered, open and show the content of the first picture file, or, when the display icon of the second file is triggered, open and show the content of the second file.
Further, the function of the display packing that the embodiment of the present invention provides can, by user's manual unlocking, also be the pattern of oneself acquiescence.As shown in Figure 4, terminal when arranging interface and opening intelligent display function, can be adopted and realize the display packing that the embodiment of the present invention provides, and when being not desired to open this function, it is possible to it is turned off arranging interface. Concrete, the trigger condition embodiment of the present invention of the display packing that the embodiment of the present invention provides is not limited as.
A kind of display packing that the embodiment of the present invention provides, when obtaining the first picture file, terminal detects the first File header information of this first picture file corresponding data; Corresponding relation according to the first File header information and the File header information preset and form, parses the first form of the first picture file; Detecting whether the data after the first end-of-file information exist the second File header information, this second File header information is the File header information of the second file corresponding data; If there is the second File header information, then the corresponding relation according to this second File header information and the File header information preset and form, parses the second form of the second file; When the first form and the second form are different, show the display icon of the first picture file and the display icon of the second file; When showing that icon is triggered, show the file that this display icon is corresponding. Adopt above-mentioned technic relization scheme, due to when terminal wants to open the first picture file, the first form of the first picture file can be detected, if there is also extended formatting, this terminal can also detect, and display icon corresponding for the file of different-format can also be shown, and when showing that icon is triggered, the file of display display icon application. Therefore, the different data format of picture file can be resolved by terminal, it is achieved the display of the different data format of picture file, embodies the hommization of terminal.
Embodiment three
As shown in Figure 6, embodiments providing a kind of terminal 1, this terminal 1 may include that
Detection unit 10, for when obtaining the first picture file, detecting the first File header information of described first picture file corresponding data.
Resolution unit 11, for the corresponding relation of described first File header information according to the detection of described detection unit 10 and the File header information preset and form, parses the first form of described first picture file.
Described detection unit 10, is additionally operable to whether the data after detecting described first end-of-file information exist the second File header information, and described second File header information is the File header information of the second file corresponding data.
Described resolution unit 11, if being additionally operable to described detection unit 10 to detect the presence of described second File header information, then the corresponding relation according to described second File header information and described default File header information and form, parses the second form of described second file.
Display unit 12, for when described first form that described resolution unit 11 resolves is different from described second form, showing the display icon of described first picture file and the display icon of described second file; When described display icon is triggered, show the file that described display icon is corresponding.
Optionally, described detection unit 10, it is additionally operable to the described resolution unit 11 corresponding relation according to described first File header information and the File header information preset and form, after parsing the first form of described first picture file, data after the described first end-of-file information of described detection detect in described first picture file corresponding data whether there is the first extension information before whether there is the second File header information; And if there is described first extension information, then detect whether described first extension information exists described second File header information.
Optionally, as it is shown in fig. 7, described terminal 1 also includes: mark unit 13.
Described mark unit 13, for the described resolution unit 11 corresponding relation according to described second File header information and described default File header information with form, after parsing the second form of described second file, before described display unit 12 shows the display icon of display icon and the display icon of described second file of described first picture file, when described first form that described resolution unit 11 resolves is different from described second form, mark the first Show Styles of described first picture file and the second Show Styles of described second file.
Accordingly, described display unit 12, described first Show Styles specifically for marking according to described mark unit 13 shows the display icon of described first picture file, and described second Show Styles marked according to described mark unit 13 shows the display icon of described second file.
Optionally, described display unit 12, it is additionally operable to whether the data after described detection unit 10 detects described first end-of-file information exist the second File header information, and after whether the described described first extension information of detection exist described second File header information, if described detection unit 10 detects is absent from described second File header information, then show the display icon of described first picture file that described mark unit 13 marks.
Optionally, described display unit 12, specifically for when the display icon of described first picture file is triggered, showing described first picture file; When the display icon of described second file is triggered, show described second file.
Optionally, terminal can be the intelligent terminal of the application with various form, for instance, intelligent mobile terminal, flat board etc.
In actual applications, in actual applications, above-mentioned detection unit 10, resolution unit 11, mark unit 13 can be realized by the processor being positioned in terminal 1, it is specially central processing unit (CPU), microprocessor (MPU), digital signal processor (DSP) or field programmable gate array (FPGA) etc. realize, display unit 12 can be realized by display, it is specially liquid crystal display, plasma display etc., this terminal 1 can also include memorizer, concrete, first picture file and software code thereof, data that first picture file is corresponding and software code thereof, second file and software code thereof, data that second file is corresponding and software code thereof, first display icon and software code thereof, and second display icon and software code can preserve in memory, this memorizer, display can pass through system bus and be connected with processor, wherein, memorizer is used for storing executable program code, this program code includes computer-managed instruction, memorizer is likely to comprise high-speed RAM memorizer, it is likely to and also includes nonvolatile memory, such as, at least one disk memory.
A kind of terminal that the embodiment of the present invention provides, when obtaining the first picture file, terminal detects the first File header information of this first picture file corresponding data; Corresponding relation according to the first File header information and the File header information preset and form, parses the first form of the first picture file; Detecting whether the data after the first end-of-file information exist the second File header information, this second File header information is the File header information of the second file corresponding data; If there is the second File header information, then the corresponding relation according to this second File header information and the File header information preset and form, parses the second form of the second file;When the first form and the second form are different, show the display icon of the first picture file and the display icon of the second file; When showing that icon is triggered, show the file that this display icon is corresponding. Adopt above-mentioned technic relization scheme, due to when terminal wants to open the first picture file, the first form of the first picture file can be detected, if there is also extended formatting, this terminal can also detect, and display icon corresponding for the file of different-format can also be shown, and when showing that icon is triggered, the file of display display icon application. Therefore, the different data format of picture file can be resolved by terminal, it is achieved the display of the different data format of picture file, embodies the hommization of terminal.
Those skilled in the art are it should be appreciated that embodiments of the invention can be provided as method, system or computer program. Therefore, the present invention can adopt the form of hardware embodiment, software implementation or the embodiment in conjunction with software and hardware aspect. And, the present invention can adopt the form at one or more upper computer programs implemented of computer-usable storage medium (including but not limited to disk memory and optical memory etc.) wherein including computer usable program code.
The present invention is that flow chart and/or block diagram with reference to method according to embodiments of the present invention, equipment (system) and computer program describe. It should be understood that can by the combination of the flow process in each flow process in computer program instructions flowchart and/or block diagram and/or square frame and flow chart and/or block diagram and/or square frame. These computer program instructions can be provided to produce a machine to the processor of general purpose computer, special-purpose computer, Embedded Processor or other programmable data processing device so that the instruction performed by the processor of computer or other programmable data processing device is produced for realizing the device of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions may be alternatively stored in and can guide in the computer-readable memory that computer or other programmable data processing device work in a specific way, the instruction making to be stored in this computer-readable memory produces to include the manufacture of command device, and this command device realizes the function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
These computer program instructions also can be loaded in computer or other programmable data processing device, make on computer or other programmable devices, to perform sequence of operations step to produce computer implemented process, thus the instruction performed on computer or other programmable devices provides for realizing the step of function specified in one flow process of flow chart or multiple flow process and/or one square frame of block diagram or multiple square frame.
The above, be only presently preferred embodiments of the present invention, is not intended to limit protection scope of the present invention.

Claims (10)

1. a display packing, it is characterised in that including:
When obtaining the first picture file, detect the first File header information of described first picture file corresponding data;
Corresponding relation according to described first File header information and the File header information preset and form, parses the first form of described first picture file;
Detecting whether the data after described first end-of-file information exist the second File header information, described second File header information is the File header information of the second file corresponding data;
If there is described second File header information, then the corresponding relation according to described second File header information and described default File header information and form, parses the second form of described second file;
When described first form is different from described second form, show the display icon of described first picture file and the display icon of described second file;
When described display icon is triggered, show the file that described display icon is corresponding.
2. method according to claim 1, it is characterized in that, the described corresponding relation according to described first File header information and the File header information preset and form, after parsing the first form of described first picture file, before whether the data after the described first end-of-file information of described detection exist the second File header information, described method also includes:
Detect in described first picture file corresponding data and whether there is the first extension information;
If there is described first extension information, then detect whether described first extension information exists described second File header information.
3. method according to claim 2, it is characterized in that, the described corresponding relation according to described second File header information and described default File header information and form, after parsing the second form of described second file, before the display icon of described first picture file of described display and the display icon of described second file, described method also includes:
When described first form is different from described second form, mark the first Show Styles of described first picture file and the second Show Styles of described second file;
Accordingly, the display icon showing icon and described second file of described first picture file of described display, including:
Show the display icon of described first picture file according to described first Show Styles, and show the display icon of described second file according to described second Show Styles.
4. method according to claim 3, it is characterized in that, whether the data after the described first end-of-file information of described detection exist the second File header information, and after whether the described first extension information of described detection exist described second File header information, described method also includes:
If being absent from described second File header information, then show the display icon of described first picture file.
5. the method according to claim 1 or 4, it is characterised in that when described display icon is triggered, the file that described display described display icon is corresponding, including:
When the display icon of described first picture file is triggered, show described first picture file;
When the display icon of described second file is triggered, show described second file.
6. a terminal, it is characterised in that including:
Detection unit, for when obtaining the first picture file, detecting the first File header information of described first picture file corresponding data;
Resolution unit, for the corresponding relation of described first File header information according to the detection of described detection unit and the File header information preset and form, parses the first form of described first picture file;
Described detection unit, is additionally operable to whether the data after detecting described first end-of-file information exist the second File header information, and described second File header information is the File header information of the second file corresponding data;
Described resolution unit, if being additionally operable to described detection unit to detect the presence of described second File header information, then the corresponding relation according to described second File header information and described default File header information and form, parses the second form of described second file;
Display unit, for when described first form that described resolution unit resolves is different from described second form, showing the display icon of described first picture file and the display icon of described second file;When described display icon is triggered, show the file that described display icon is corresponding.
7. terminal according to claim 6, it is characterised in that
Described detection unit, it is additionally operable to the described resolution unit corresponding relation according to described first File header information and the File header information preset and form, after parsing the first form of described first picture file, data after the described first end-of-file information of described detection detect in described first picture file corresponding data whether there is the first extension information before whether there is the second File header information; And if there is described first extension information, then detect whether described first extension information exists described second File header information.
8. terminal according to claim 7, it is characterised in that described terminal also includes: mark unit;
Described mark unit, for the described resolution unit corresponding relation according to described second File header information and described default File header information with form, after parsing the second form of described second file, before described display unit shows the display icon of display icon and the display icon of described second file of described first picture file, when described first form that described resolution unit resolves is different from described second form, mark the first Show Styles of described first picture file and the second Show Styles of described second file;
Accordingly, described display unit, described first Show Styles specifically for marking according to described mark unit shows the display icon of described first picture file, and described second Show Styles marked according to described mark unit shows the display icon of described second file.
9. terminal according to claim 8, it is characterised in that
Described display unit, it is additionally operable to whether the data after described detection unit detects described first end-of-file information exist the second File header information, and after whether the described described first extension information of detection exist described second File header information, if described detection unit detects is absent from described second File header information, then show the display icon of described first picture file that described mark unit marks.
10. the terminal according to claim 6 or 9, it is characterised in that
Described display unit, specifically for display when the display icon of described first picture file is triggered, shows described first picture file; When the display icon of described second file is triggered, show described second file.
CN201511009642.9A 2015-12-29 2015-12-29 A kind of display methods and terminal Active CN105677717B (en)

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 true CN105677717A (en) 2016-06-15
CN105677717B 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)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113941A1 (en) * 2015-12-29 2017-07-06 努比亚技术有限公司 Displaying method, terminal, and computer storage medium
CN112328930A (en) * 2019-08-05 2021-02-05 青岛海信传媒网络技术有限公司 Page rendering method, server, client and system based on cobalt
CN113703877A (en) * 2021-10-25 2021-11-26 深圳市明源云空间电子商务有限公司 Method and device for generating image based on image generation plug-in and readable storage medium

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111274766B (en) * 2018-11-16 2023-11-03 福建天泉教育科技有限公司 Method and terminal for checking file transcoding result

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050385A1 (en) * 1999-10-18 2007-03-01 Rose Blush Software, Llc Enhanced human computer user interface system for searching and browsing documents
CN101739403A (en) * 2008-11-12 2010-06-16 宏达国际电子股份有限公司 Method and device for displaying multi-media 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 (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
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

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20070050385A1 (en) * 1999-10-18 2007-03-01 Rose Blush Software, Llc Enhanced human computer user interface system for searching and browsing documents
CN101739403A (en) * 2008-11-12 2010-06-16 宏达国际电子股份有限公司 Method and device for displaying multi-media 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

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2017113941A1 (en) * 2015-12-29 2017-07-06 努比亚技术有限公司 Displaying method, terminal, and computer storage medium
CN112328930A (en) * 2019-08-05 2021-02-05 青岛海信传媒网络技术有限公司 Page rendering method, server, client and system based on cobalt
CN112328930B (en) * 2019-08-05 2023-10-20 Vidaa(荷兰)国际控股有限公司 Webpage rendering method, server, client and system based on cobalt
CN113703877A (en) * 2021-10-25 2021-11-26 深圳市明源云空间电子商务有限公司 Method and device for generating image based on image generation plug-in and readable storage medium
CN113703877B (en) * 2021-10-25 2022-02-08 深圳市明源云空间电子商务有限公司 Method and device for generating image based on image generation plug-in and readable storage medium

Also Published As

Publication number Publication date
WO2017113941A1 (en) 2017-07-06
CN105677717B (en) 2019-04-19

Similar Documents

Publication Publication Date Title
CN105260301A (en) Visual effect comparison test device of user interfaces and realization method of visual effect comparison test device of user interfaces
CN104915141A (en) Method and device for previewing object information
CN104850259A (en) Combination operation method, combination operation apparatus, touch screen operating method and electronic device
CN105760057A (en) Screenshot device and method
CN105791592A (en) Information prompting method and mobile terminal
CN104735255A (en) Split screen display method and system
CN105739819A (en) Cursor positioning method and device and mobile terminal
CN105718071A (en) Terminal and method for recommending associational words in input method
CN104731512A (en) Method, device and terminal for sharing pictures
CN105243126A (en) Cross-screen screen capture method and apparatus
CN105681582A (en) Control color adjusting method and terminal
CN104991834A (en) Data recycle method and mobile terminal
CN105487662A (en) Increasing and decreasing adjustment method and device of mobile terminal
CN105739873A (en) Screen capturing method and terminal
CN105677717A (en) Display method and terminal
CN105263195A (en) Data transmission device and method
CN105245703A (en) Mobile terminal and method for storing files in classification way
CN104661095A (en) Audio and video data recommendation method and system
US9336242B2 (en) Mobile terminal and displaying method thereof
CN105335055A (en) Self-response type realization method and system of menu as well as terminal equipment
CN105530290A (en) Device and method for downloading application installation package
CN104980576A (en) Method and device for automatically extracting number for mobile terminal
CN104866095A (en) Mobile terminal, and method and apparatus for managing desktop thereof
CN104811537A (en) File reception method and device
CN104735259A (en) Mobile terminal shooting parameter setting method and device and mobile 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