CN107145515A - A kind of method, device and mobile terminal of dynamic image displaying - Google Patents

A kind of method, device and mobile terminal of dynamic image displaying Download PDF

Info

Publication number
CN107145515A
CN107145515A CN201710214685.3A CN201710214685A CN107145515A CN 107145515 A CN107145515 A CN 107145515A CN 201710214685 A CN201710214685 A CN 201710214685A CN 107145515 A CN107145515 A CN 107145515A
Authority
CN
China
Prior art keywords
picture
dynamic
interface
dynamic picture
file
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
CN201710214685.3A
Other languages
Chinese (zh)
Other versions
CN107145515B (en
Inventor
张云奎
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Beijing Qihoo Technology Co Ltd
Original Assignee
Beijing Anyun Century 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 Beijing Anyun Century Technology Co Ltd filed Critical Beijing Anyun Century Technology Co Ltd
Priority to CN201710214685.3A priority Critical patent/CN107145515B/en
Publication of CN107145515A publication Critical patent/CN107145515A/en
Application granted granted Critical
Publication of CN107145515B publication Critical patent/CN107145515B/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
    • G06F16/50Information retrieval; Database structures therefor; File system structures therefor of still image data
    • G06F16/54Browsing; Visualisation therefor
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Human Computer Interaction (AREA)
  • Data Mining & Analysis (AREA)
  • Databases & Information Systems (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)

Abstract

The embodiments of the invention provide a kind of method, device and mobile terminal of dynamic image displaying, methods described includes:Receive the opening operation that interface is shown to dynamic image;Scan the picture in the file under each preset path;Whether judge the picture is dynamic picture;If the picture is dynamic picture, the dynamic image of the dynamic picture after opening is shown in interface and shown.User is solved in the dynamic picture in checking each file, it is necessary to be searched one by one in file, the problem of time-consuming and laborious, the beneficial effect of all dynamic pictures in system can be uniformly checked in interface is specified with user.

Description

A kind of method, device and mobile terminal of dynamic image displaying
Technical field
The present invention relates to technical field of mobile terminals, more particularly to a kind of method, device and the shifting of dynamic image displaying Dynamic terminal.
Background technology
With developing rapidly for terminal device technology, the life that mobile terminal gives people brings huge facility, mobile Terminal user can realize all the basic things completed using mobile phone in daily life, wherein, the propagation of various dynamic pictures More user receives and liked, and the dynamic picture to propagating or generating in various applications, if opening another without user Save as, then often when user wants to reuse be difficult to find.
The dynamic image methods of exhibiting used at present, be user when being applied using one, if to the Dynamic Graph wherein used As carrying out Initiative Inventory Management, then the dynamic image can be stored in this using in corresponding file path, when user uses next time Time is searched and used in this document path, in this way, when storing in the terminal or substantial amounts of dynamic picture occur, using Family has little time Initiative Inventory Management, or find in the corresponding store path of each application storage dynamic picture it is cumbersome and time consuming.
The content of the invention
In view of the above problems, it is proposed that the present invention solves the above problems to provide or solves above-mentioned ask at least in part A kind of method, device and mobile terminal of dynamic image displaying of topic.
According to an aspect of the invention, there is provided a kind of method of dynamic image displaying, including:Receive to dynamic image Show the opening operation at interface;Scan the picture in the file under each preset path;Whether judge the picture is Dynamic Graph Piece;If the picture is dynamic picture, the dynamic image of the dynamic picture after opening is shown in interface and shown.
With reference in a first aspect, the present invention in the first implementation of first aspect, it is described whether to judge the picture The step of for dynamic picture, including:Call frame number to obtain interface, frame number is read from the picture;When the frame number is more than 1 Frame, it is determined that the picture is dynamic picture.
With reference in a first aspect, the present invention in second of implementation of first aspect, it is described whether to judge the picture The step of for dynamic picture, including:File binary stream is called to read interface, the head for reading the picture specifies the two of digit Scale coding;According to the binary coding judge the picture whether be dynamic format dynamic picture.
With reference to second of implementation of first aspect, the present invention is described in the third implementation of first aspect The step of whether picture is the dynamic picture of dynamic format is judged according to the binary coding, including:Described two are entered System coding and the condition code of binary dynamic format are compared, judge the picture whether be dynamic format Dynamic Graph Piece.
With reference to second of implementation of first aspect, the present invention is described in the 4th kind of implementation of first aspect The step of whether picture is the dynamic picture of dynamic format is judged according to the binary coding, including:Described two are entered Code conversion processed is the first coding for specifying system;The condition code of described first coding and the dynamic format of specified system is carried out Compare, judge the picture whether be dynamic format dynamic picture.
With reference to second of implementation of first aspect, the present invention is described in the 5th kind of implementation of first aspect After judging the step of whether picture is the dynamic picture of dynamic format according to the binary coding, in addition to:By root Judge whether the picture is the dynamic picture of dynamic format as initial dynamic picture according to the binary coding;Call and be directed to Frame number obtains interface, and frame number is read from the picture;When the frame number is more than 1 frame, it is determined that the picture is final moves State picture, the step of being shown in interface is shown into by the dynamic image of the dynamic picture after opening.
With reference in a first aspect, the present invention in the 6th kind of implementation of first aspect, it is described that the dynamic picture exists The step of being shown in dynamic image displaying interface after opening, including:Extract the temporal information of the dynamic picture;According to described Temporal information is ranked up to each dynamic picture;Each dynamic picture is illustrated in the dynamic picture exhibition according to the ranking results Show in interface and show.
With reference in a first aspect, the present invention in the 7th kind of implementation of first aspect, it is described that the dynamic picture exists The step of being shown in dynamic image displaying interface after opening, including:Extract the temporal information of the dynamic picture and described Applied belonging to dynamic picture;Each dynamic picture is ranked up according to the temporal information;Will be each dynamic according to the ranking results State picture presentation is shown by affiliated apply in the dynamic picture shows interface.
With reference in a first aspect, the present invention in the 8th kind of implementation of first aspect, it is described that the dynamic picture exists After the step of being shown in dynamic image displaying interface after opening, in addition to:According in dynamic picture displaying interface A dynamic picture on specified trigger action, popup menu column;The menu bar includes collection component, shares component wherein At least one.
With reference to the 8th kind of implementation of first aspect, the present invention is in the 9th kind of implementation of first aspect, in institute The step of stating specified trigger action of the basis on the dynamic picture during the dynamic picture shows interface, popup menu column Afterwards, in addition to:When the trigger action for receiving the collection component for the menu bar, then the dynamic image is uploaded to Server is collected.
With reference to the 8th kind of implementation of first aspect, the present invention is in the tenth kind of implementation of first aspect, in institute The step of stating specified trigger action of the basis on the dynamic picture during the dynamic picture shows interface, popup menu column Afterwards, in addition to:When receiving the trigger action for sharing component for the menu bar, then generate one and share menu bar;Institute State and share menu bar and include sharing the name list of intended application.
It is of the invention in a kind of the tenth implementation of first aspect with reference to the tenth kind of implementation of first aspect, It is described to work as the trigger action for sharing component received for the menu bar, then after the step of menu bar is shared in generation one, Also include:If receive it is described share in menu bar a trigger action for sharing intended application title, by the correspondence image Share to the target and share application.
According to another aspect of the present invention there is provided a kind of device of dynamic image displaying, including:Show that mould is opened at interface Block, the opening operation at interface is shown for receiving to dynamic image;Picture acquisition module, for scanning the text under each preset path Picture in part folder;Judge module, for judging whether the picture is dynamic picture;Display module, if for the figure Piece is dynamic picture, then shows in interface the dynamic image of the dynamic picture after opening and show.
With reference to second aspect, the present invention is in the first implementation of second aspect, the judge module, including:Frame Number obtains interface interchange submodule, and for calling frame number to obtain interface, frame number is read from the picture;Determination sub-module, is used In when the frame number is more than 1 frame, it is determined that the picture is dynamic picture.
With reference to second aspect, the present invention is in second of implementation of second aspect, the judge module, including:Text Part binary stream reads interface interchange submodule, for calling file binary stream to read interface, reads the head of the picture Specify the binary coding of digit;Judge form submodule, for according to the binary coding judge the picture whether be The dynamic picture of dynamic format.
With reference to second of implementation of second aspect, the present invention is described in the third implementation of second aspect Judge form submodule, including:Comparing unit, for the binary coding and the condition code of binary dynamic format to be entered Row compare, judge the picture whether be dynamic format dynamic picture.
With reference to second of implementation of second aspect, the present invention is described in the 4th kind of implementation of second aspect Judge form submodule, including:Converting unit, the first coding for the binary coding to be converted to specified system;Sentence Disconnected unit, by the condition code of the described first coding and the dynamic format of specified system is compared, judge that the picture is The no dynamic picture for dynamic format.
With reference to second of implementation of second aspect, the present invention is also wrapped in the 5th kind of implementation of second aspect Include:Initial dynamic picture judging submodule, for that will judge whether the picture is dynamic format according to the binary coding Dynamic picture be used as initial dynamic picture;Frame number submodule is read, frame number acquisition interface is directed to for calling, from the picture Middle reading frame number;Showing interface submodule, for being more than 1 frame when the frame number, it is determined that the picture is final Dynamic Graph Piece, the step of being shown in interface is shown into by the dynamic image of the dynamic picture after opening.
With reference to second aspect, the present invention is in the 6th kind of implementation of second aspect, the display module, including:Carry Submodule is taken, the temporal information for extracting the dynamic picture;Sorting sub-module, for being moved according to the temporal information to each State picture is ranked up;Ranking results show submodule, described according to the ranking results, each dynamic picture is illustrated in Dynamic picture displaying is shown in interface.
With reference to second aspect, the present invention is in the 7th kind of implementation of second aspect, the display module, including:When Between extracting sub-module, applied for extracting belonging to the temporal information and the dynamic picture of the dynamic picture;Time-sequencing Submodule, for being ranked up according to the temporal information to each dynamic picture;As a result submodule is shown, for according to the row Each dynamic picture is shown and shown by affiliated apply in the dynamic picture shows interface by sequence result.
It is of the invention in the 8th kind of implementation of second aspect with reference to second aspect, in addition to:Menu bar trigger mode Block, for according to the specified trigger action on the dynamic picture in dynamic picture displaying interface, popup menu column; The menu bar includes collection component, shares component wherein at least one.
With reference to the 8th kind of implementation of second aspect, the present invention is also wrapped in the 9th kind of implementation of second aspect Include:Module is collected, for when the trigger action for receiving the collection component for the menu bar, then by the dynamic image Server is reached to be collected.
With reference to the 8th kind of implementation of second aspect, the present invention is also wrapped in the tenth kind of implementation of second aspect Include:Share menu formation module, for when receiving the trigger action for sharing component for the menu bar, then generating one point Enjoy menu bar;The menu bar of sharing includes sharing the name list of intended application.
With reference to the tenth kind of implementation of second aspect, the present invention is in a kind of the tenth implementation of second aspect, also Including:Sharing module, if for receive it is described share in menu bar a trigger action for sharing intended application title, by institute State correspondence image and share to the target and share application.
According to the third aspect of the invention we, a kind of mobile terminal, including processor and memory are also disclosed,
The memory is used for the program for storing the method for performing a kind of above-mentioned dynamic image displaying;
The processor is configurable for performing the program stored in the memory.
According to the fourth aspect of the invention, a kind of computer-readable storage medium is also disclosed, for saving as above-mentioned Dynamic Graph Computer software instructions as used in the device shown, it, which is included, is used to perform the device institute that above-mentioned aspect shows for dynamic image The program of design.
A kind of method, device and mobile terminal of dynamic image displaying of the present invention, are shown by receiving to dynamic image The opening operation at interface;Scan the picture in the file under each preset path;Whether judge the picture is dynamic picture;Such as Really described picture is dynamic picture, then shows in interface the dynamic image of the dynamic picture after opening and show.Solve User is in the dynamic picture in checking each file, it is necessary to be searched one by one in file, the problem of time-consuming and laborious, with user The beneficial effect of all dynamic pictures in system can be uniformly checked in interface is specified.
Described above is only the general introduction of technical solution of the present invention, in order to better understand the technological means of the present invention, And can be practiced according to the content of specification, and in order to allow above and other objects of the present invention, feature and advantage can Become apparent, below especially exemplified by the embodiment of the present invention.
Brief description of the drawings
By reading the detailed description of hereafter preferred embodiment, various other advantages and benefit is common for this area Technical staff will be clear understanding.Accompanying drawing is only used for showing the purpose of preferred embodiment, and is not considered as to the present invention Limitation.And in whole accompanying drawing, identical part is denoted by the same reference numerals.In the accompanying drawings:
Fig. 1 shows a kind of step flow chart of the embodiment of method shown according to a kind of dynamic image of the present invention;
Fig. 2 shows the step flow chart of another embodiment of method shown according to a kind of dynamic image of the present invention;
Fig. 3 shows the structured flowchart of the device embodiment shown according to a kind of dynamic image of the present invention;And;
Fig. 4 shows the structured flowchart of the device embodiment shown according to a kind of dynamic image of the present invention;And;
Fig. 5 shows the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.
Embodiment
The exemplary embodiment of the disclosure is more fully described below with reference to accompanying drawings.Although showing the disclosure in accompanying drawing Exemplary embodiment, it being understood, however, that may be realized in various forms the disclosure without should be by embodiments set forth here Limited.On the contrary, these embodiments are provided to facilitate a more thoroughly understanding of the present invention, and can be by the scope of the present disclosure Complete conveys to those skilled in the art.
Reference picture 1, shows a kind of step flow of the embodiment of method shown according to a kind of dynamic image of the present invention Figure, specifically may include steps of:
Step 101, reception show the opening operation at interface to dynamic image.
In the embodiment of the present invention, when user opens system file manager, protest sees that each is applied shown in it The file of storage, can open the shifting of this document folder displaying by adding a file in system file manager All dynamic images in dynamic terminal.
The picture in file under step 102, each preset path of scanning.
In the embodiment of the present invention, by taking Android system as an example, it is called in usual Android system there is provided a program MediaProvider, wherein one provided is used for the function MediaScannerReciever () that scanning file is stored, its In, the function be by calling a service for being called MediaScannerService, to realize the scanning work of file, and And this document can be scanned for when detecting file write-in.
In actual applications, it is possible to use the pathname in change MediaScannerReciever () function, it is made Complete the scanning work to specified file.
Certainly, the method for scanning file is not limited to foregoing description, and the embodiment of the present invention is not any limitation as to this.
Step 103, judge whether the picture is dynamic picture.
In the embodiment of the present invention, when scanning is to file in a specified folder, the fileinfo of this document can be read, And further judge the form of this document, and filter out dynamic picture.
In actual applications, file format can be generally obtained by fileinfo, and in order to which more accurate detection is set out State picture, can read the file header stored in document data flow, or judge the frame number of image file to determine the image file Whether it is dynamic image.
If step 104, the picture are dynamic pictures, the dynamic image of the dynamic picture after opening is shown Shown in interface.
In the embodiment of the present invention, if according to the method for foregoing description determine an image be dynamic image after, by the figure Piece is illustrated in system file manager in specific dynamic picture displaying interface.
Wherein, by scanning each specified folder, and the dynamic picture in specified folder is filtered out, and utilizes Android FileFileter () file filter device in system, by dynamic picture all in filter scan file, and passes through function ParentFile () obtains the source files folder of the dynamic picture, and the thumbnail of each dynamic picture is illustrated in into system file pipe Manage in device in specific dynamic picture displaying interface, and show in picture name source files title.
In embodiments of the present invention, after the opening operation to dynamic image displaying interface is received, each preset path is scanned Under file in picture, filter out after dynamic picture, dynamic picture be illustrated in system file manager and specifically moved In state picture presentation interface, user is solved in the dynamic picture in checking each file, it is necessary to be searched one by one in file, is taken When it is again laborious the problem of, the beneficial effect of all dynamic pictures in system can be uniformly checked in interface is specified with user.
Reference picture 2, the step of showing another embodiment of method shown according to a kind of dynamic image of the present invention is flowed Cheng Tu, specifically may include steps of:
Step 201, reception show the opening operation at interface to dynamic image.
This step is identical with step 101, will not be described in detail herein.
The picture in file under step 202, each preset path of scanning.
This step is identical with step 102, will not be described in detail herein.
Step 203, judge whether the picture is dynamic picture.
This step is identical with step 103, will not be described in detail herein.
It is preferred that, step 203 is specifically included:Sub-step 2031- sub-steps 2032;
Sub-step 2031, call frame number obtain interface, read frame number from the picture.
In the embodiment of the present invention, when files of the use function MediaScannerReciever () to each specified path of system Whether when folder is scanned, it is dynamic image that can further judge picture file therein, especially by acquisition picture file Frame number function getNumberOfFrames (), the frame number to reading current picture file.
Sub-step 2032, when the frame number be more than 1 frame, it is determined that the picture is dynamic picture.
In the embodiment of the present invention, according to the result for reading frame number, if frame number is more than 1, it is determined that the picture file is dynamic Picture, wherein due to the form of video file and the form of picture file and differing, so the method described in this step is simultaneously It will not be handled video file as dynamic picture.
In actual applications, suffix title is not shown when often being stored due to dynamic picture, especially common instant Expression picture in communications applications, and utilization rate very high gif pictures, often do not have suffix title, institute when storage To be confirmed as dynamic picture by reading its frame number.
It is preferred that, in another embodiment of the invention, step 203 is specifically included, sub-step 203A- sub-steps 203B;
Sub-step 203A, file binary stream is called to read interface, the head for reading the picture specifies the two of digit to enter System coding.
In the embodiment of the present invention, first 32 of file can also be read by FileInputStream.read method, Most start first 32 of file are exactly the condition code of file, i.e. file type in fact.
Sub-step 203B, judged according to the binary coding picture whether be dynamic format dynamic picture.
In the embodiment of the present invention, if preceding 32 binary codes read are " 1000111010010010100011000111000 ", then be after preceding 32 binary codings being converted into 8 16 systems " 47494638 ", and the condition code of gif 16 systems is " 47494638 ", that is, meet this feature code is identified as gif forms Picture.
It is preferred that, sub-step 203B is specifically included:
Sub-step 203B1, the binary coding and the condition code of binary dynamic format be compared, judge institute State picture whether be dynamic format dynamic picture.
In the embodiment of the present invention, dynamic picture form is not limited only to gif forms, so the feature by setting dynamic picture Code, then 32 binary codes for obtaining file header by the above method are changed, and are matched with the condition code of dynamic picture, then It is defined as dynamic picture, the embodiment of the present invention is not any limitation as to this.
It is preferred that, in another embodiment of the invention, step 203 is specifically included:
Sub-step 203a, the first coding that the binary coding is converted to specified system.
In the embodiment of the present invention, wherein, the file header of the picture of reading is generally 32 binary codes, and feature Code can be any system, so according to the type of condition code, binary code is converted to the first coding of specified system, with Convenient and condition code is matched.
Sub-step 203b, the described first coding and the condition code of the dynamic format of specified system be compared, judge institute State picture whether be dynamic format dynamic picture.
In the embodiment of the present invention, when the file header for being converted to system identical with condition code, matched with condition code, if The match is successful then determines that this document is dynamic picture.
It is preferred that, after sub-step 203B, in addition to:
Sub-step 203C, by according to the binary coding judge the picture whether be dynamic format dynamic picture make For initial dynamic picture.
In the embodiment of the present invention, when the description according to sub-step 203B, if file header and the spy of dynamic picture of a picture Levying code, the match is successful, it is determined that the picture is dynamic initial picture, in order to more accurately judge the picture for dynamic picture, it is necessary to Further determine the frame number of the picture.
Sub-step 203D, call for frame number obtain interface, read frame number from the picture.
This step is identical with step 2031, will not be described in detail herein.
Sub-step 203E, when the frame number be more than 1 frame, it is determined that the picture is final dynamic picture, into step 204。
In the embodiment of the present invention, according to the result for reading frame number, if frame number is more than 1, it is determined that the picture file is dynamic Picture, and enter the step by the picture presentation in system file manager in specific dynamic picture displaying interface.
If step 204, the picture are dynamic pictures, the dynamic image of the dynamic picture after opening is shown Shown in interface.
This step is identical with step 104, will not be described in detail herein.
It is preferred that, step 204 is specifically included:
Sub-step 2041, the temporal information for extracting the dynamic picture.
In the embodiment of the present invention, in Android system, it can all be recorded in the information of file when document creation, modification, The last modification time of file can be wherein obtained by lastModified () function, the time is the pictorial information Renewal time.
Sub-step 2042, according to the temporal information each dynamic picture is ranked up.
In the embodiment of the present invention, in Android system, the picture file of temporal information can will be obtained according to each picture text The renewal time of part is ranked up, wherein, using ranking functions Collections.sort (), and parameters sortnig therein The renewal time of image file obtained in sub-step 2041 is set to, to realize the result being ranked up according to renewal time.
Sub-step 2043, according to the ranking results each dynamic picture is illustrated in the dynamic picture and shown in interface and opened up Show.
In the embodiment of the present invention, by taking Android system as an example, when by the ranking results of picture file be illustrated in one it is specific Interface on when, a special display interface is set first, by the viewgroup () class for inheriting document presentation interface Arrange parameter, and addition one triggers the icon of the display interface in Launcher programs, when the user clicks on this icon, By triggering the Activity service operations interface viewgroup () class, the interface is shown.Secondly, by the displaying of picture file As a result touch time interface OnTouchingLetterChangedListener using definition and realize a public void OnTouchingTimeChanged () function, will be order according to the renewal time of motion picture files, by each Dynamic Graph Piece is illustrated in the interface set before.
It is preferred that, in an alternative embodiment of the invention, step 204 is specifically included:Sub-step 204A- sub-steps 204C;
Sub-step 204A, the affiliated application of temporal information and the dynamic picture for extracting the dynamic picture.
In the embodiment of the present invention, in Android system, during the file updated in scanning file folder, it can pass through LastModified () function, which is obtained, drags the final updating time of information to wait, and can also pass through getRealFilePath () function The true path of file is obtained, by the file name marked in resolution path, can further learn that this document belongs to and work as Concrete application title on preceding mobile terminal.
Sub-step 204B, according to the temporal information each dynamic picture is ranked up.
This step is identical with sub-step 2042, will not be described in detail herein.
Sub-step 204C, according to the ranking results by each dynamic picture displaying applied by affiliated in the dynamic picture exhibition Show in interface and show.
In the embodiment of the present invention, ranking results are illustrated in correspondence system file manager specific dynamic picture and shown When in interface, at the same in the file name of exhibiting pictures can also include the corresponding Apply Names of the dynamic picture, displaying it is specific Operation refers to the description of sub-step 2043.
The specified trigger action of step 205, basis on the dynamic picture during the dynamic picture shows interface, bullet Go out menu bar;The menu bar includes collection component, shares component wherein at least one.
In the embodiment of the present invention, in the behind of the backlight module of the display screen of mobile terminal, stressor layer sensing is added Capacitive sensor layer, receive longitudinal pressing force for being subject to of mobile phone.When finger presses screen, the sensor of screen capacitor layers can be felt Induced current changes, and recognizes pressing dynamics to realize distinct interaction function with this, after user's pressing operation is recognized, Ke Yigen According to the different operation of the object implementatio8 of identification user's pressing, such as popup menu column, wherein passing through PopupMenu in Android system It is the mode menu for anchoring to View, uses android:The button of onClick attribute display popup menus, and utilizing Activity calls showPopup () function to show popup menu, and operation is performed during user's selection menu item it may first have to PopupMenu.OnMenuItemClickListener interfaces are realized, and by calling SetOnMenuItemclickListener () is registered to PopupMenu, and is detected user and selected a menu item When, system can call onMenuItemClick () to adjust back in the interface, realize the corresponding function of submenu.
In actual applications, it is possible to use the method for foregoing description, when user moves in dynamic picture displaying interface to one When state picture carries out pressing operation, an actions menu for being directed to the dynamic picture will be ejected, wherein storage can be included, divided The function such as enjoy, delete, collecting, and when user clicks on or pressed one of function title in display interface, Jiu Huijin Enter the operation interface of corresponding function title.、
Certainly, for the operation of popup menu and submenu, and being directed to of including of menu and submenu
Step 206, when receive for the menu bar collection component trigger action, then by the dynamic image Server is reached to be collected.
In the embodiment of the present invention, when user clicks on or pressed the collection work(included for the menu of dynamic picture ejection Can, then the corresponding picture file of the dynamic picture is uploaded onto the server and collected, wherein, in upload server, mainly Application is multipart/form-data agreements, by realizing UploadUti tool-class, is used HttpURLConnection classes realize that picture or file are uploaded, and are provided with the parameter of upload server.
Step 207, when receiving the trigger action for sharing component for the menu bar, then generate one and share menu Column;The menu bar of sharing includes sharing the name list of intended application.
In the embodiment of the present invention, according to the description of step 205, user is being received and is sharing in menu bar the point of menu item Hit or pressing operation, menu bar is shared in generation one, share menu bar in displaying
If step 208, receive it is described share in menu bar a trigger action for sharing intended application title, will be described Correspondence image is shared to the target and shares application.
In the embodiment of the present invention, when receiving user and sharing in menu bar click or the pressing operation of menu item, then Sharing for generation includes the title that all targets share application in menu bar, when user clicks on the title that a target shares application again Afterwards, then the sharing interface for calling the application to provide, shares the target by corresponding dynamic picture and shares in application.
In embodiments of the present invention, after the opening operation to dynamic image displaying interface is received, each preset path is scanned Under file in picture, determine Dynamic Graph therein using the method that reads file header or the mode for obtaining file frame number Piece, and be illustrated in the living document displaying interface specified, and in the dynamic picture in clicking on or pressing document presentation interface, An actions menu column is generated, concrete operations are carried out to the dynamic picture for user is further.Solve user and check each text Part folder in dynamic picture when, it is necessary to one by one in file search, can be at specified interface with user the problem of time-consuming and laborious The middle beneficial effect uniformly checked all dynamic pictures in system and carry out concrete operations.
For embodiment of the method, in order to be briefly described, therefore it is all expressed as to a series of combination of actions, but this area Technical staff should know that the embodiment of the present invention is not limited by described sequence of movement, because according to present invention implementation Example, some steps can be carried out sequentially or simultaneously using other.Secondly, those skilled in the art should also know, specification Described in embodiment belong to necessary to preferred embodiment, the involved action not necessarily embodiment of the present invention.
Reference picture 3, shows the structured flowchart of the device embodiment shown according to a kind of dynamic image of the present invention, specifically Following module can be included:
Show that module 301 is opened at interface, show the opening operation at interface to dynamic image for receiving;
Picture acquisition module 302, for scanning the picture in the file under each preset path;
Judge module 303, for judging whether the picture is dynamic picture;
Display module 304, if being dynamic picture for the picture, by the dynamic of the dynamic picture after opening Shown in image shows interface.
In embodiments of the present invention, after the opening operation to dynamic image displaying interface is received, each preset path is scanned Under file in picture, filter out after dynamic picture, dynamic picture be illustrated in system file manager and specifically moved In state picture presentation interface, user is solved in the dynamic picture in checking each file, it is necessary to be searched one by one in file, is taken When it is again laborious the problem of, the beneficial effect of all dynamic pictures in system can be uniformly checked in interface is specified with user.
Reference picture 4, shows the structured flowchart of the device embodiment shown according to a kind of dynamic image of the present invention, specifically Following module can be included:
Show that module 401 is opened at interface, show the opening operation at interface to dynamic image for receiving;
Picture acquisition module 402, for scanning the picture in the file under each preset path;
Judge module 403, for judging whether the picture is dynamic picture;
It is preferred that, judge module 403 is specifically included:
Frame number obtains interface interchange submodule 4031, and for calling frame number to obtain interface, frame number is read from the picture;
Determination sub-module 4032, for being more than 1 frame when the frame number, it is determined that the picture is dynamic picture.
It is preferred that, judge module 403 is specifically included:
File binary stream reads interface interchange submodule, for calling file binary stream to read interface, reads described Specify the binary coding of digit in the head of picture;
Judge form submodule, for according to the binary coding judge the picture whether be dynamic format dynamic Picture.It is preferred that, judge form submodule, specifically include:
Comparing unit, for the binary coding and the condition code of binary dynamic format to be compared, judges The picture whether be dynamic format dynamic picture.
Converting unit, the first coding for the binary coding to be converted to specified system;
Judging unit, the condition code of the described first coding and the dynamic format of specified system is compared, and judges described Picture whether be dynamic format dynamic picture.
It is preferred that, in addition to:
Initial dynamic picture judging submodule, for that will judge whether the picture is dynamic according to the binary coding The dynamic picture of form is used as initial dynamic picture;
Frame number submodule is read, frame number acquisition interface is directed to for calling, frame number is read from the picture;
Showing interface submodule, for being more than 1 frame when the frame number, it is determined that the picture is final dynamic picture, The step of being shown in interface is shown into by the dynamic image of the dynamic picture after opening.
Display module 404, if being dynamic picture for the picture, by the dynamic of the dynamic picture after opening Shown in image shows interface.
It is preferred that, the display module 404 is specifically included:
Extracting sub-module, the temporal information for extracting the dynamic picture;
Sorting sub-module, for being ranked up according to the temporal information to each dynamic picture;
Ranking results show submodule, for each dynamic picture to be illustrated in into the dynamic picture according to the ranking results Show in interface and show.
It is preferred that, display module 404 is specifically included:
Time extracting sub-module, should belonging to the temporal information and the dynamic picture of the dynamic picture for extracting With;
Time-sequencing submodule, for being ranked up according to the temporal information to each dynamic picture;
As a result submodule is shown, is applied for being shown each dynamic picture according to the ranking results by affiliated described dynamic Shown in state picture presentation interface.
Menu bar trigger module 405, on according to the dynamic picture in dynamic picture displaying interface Specify trigger action, popup menu column;The menu bar includes collection component, shares component wherein at least one.
Module 406 is collected, for when the trigger action for receiving the collection component for the menu bar, then described will move State image, which uploads onto the server, to be collected.
Share menu formation module 407, for working as the trigger action for sharing component received for the menu bar, then Menu bar is shared in generation one;The menu bar of sharing includes sharing the name list of intended application.
Sharing module 408, if for receive it is described share in menu bar a trigger action for sharing intended application title, Then the correspondence image is shared to the target and shares application.
In embodiments of the present invention, after the opening operation to dynamic image displaying interface is received, each preset path is scanned Under file in picture, determine Dynamic Graph therein using the method that reads file header or the mode for obtaining file frame number Piece, and be illustrated in the living document displaying interface specified, and in the dynamic picture in clicking on or pressing document presentation interface, An actions menu column is generated, concrete operations are carried out to the dynamic picture for user is further.Solve user and check each text Part folder in dynamic picture when, it is necessary to one by one in file search, can be at specified interface with user the problem of time-consuming and laborious The middle beneficial effect uniformly checked all dynamic pictures in system and carry out concrete operations.
For device embodiment, because it is substantially similar to embodiment of the method, so description is fairly simple, it is related Part illustrates referring to the part of embodiment of the method.
The embodiment of the present invention additionally provides a kind of mobile terminal, as shown in figure 5, for convenience of description, illustrate only and this The related part of inventive embodiments, particular technique details is not disclosed, refer to present invention method part.The terminal can Think including mobile phone, tablet personal computer, PDA (Personal Digital Assistant, personal digital assistant), POS (Point Of Sales, point-of-sale terminal), any terminal device such as vehicle-mounted computer, so that terminal is mobile phone as an example:
Fig. 5 is illustrated that the block diagram of the part-structure of the mobile phone related to mobile terminal provided in an embodiment of the present invention.Ginseng Fig. 5 is examined, mobile phone includes:Radio frequency (Radio Frequency, RF) circuit 510, memory 520, input block 530, display unit 540th, sensor 550, voicefrequency circuit 560, Wireless Fidelity (wireless fidelity, WiFi) module 570, processor 580, And the grade part of power supply 590.It will be understood by those skilled in the art that the handset structure shown in Fig. 5 is not constituted to mobile phone Limit, can include than illustrating more or less parts, either combine some parts or different parts arrangement.
Each component parts of mobile phone is specifically introduced with reference to Fig. 5:
RF circuits 510 can be used for receive and send messages or communication process in, the reception and transmission of signal, especially, by base station After downlink information is received, handled to processor 580;In addition, being sent to base station by up data are designed.Generally, RF circuits 510 Including but not limited to antenna, at least one amplifier, transceiver, coupler, low-noise amplifier (Low Noise Amplifier, LNA), duplexer etc..In addition, RF circuits 510 can also be communicated by radio communication with network and other equipment. Above-mentioned radio communication can use any communication standard or agreement, including but not limited to global system for mobile communications (Global System of Mobile communication, GSM), general packet radio service (General Packet Radio Service, GPRS), CDMA (Code Division Multiple Access, CDMA), WCDMA (Wideband Code Division Multiple Access, WCDMA), Long Term Evolution (Long Term Evolution, LTE), Email, Short Message Service (Short Messaging Service, SMS) etc..
Memory 520 can be used for storage software program and module, and processor 580 is stored in memory 520 by operation Software program and module, so as to perform various function application and the data processing of mobile phone.Memory 520 can mainly include Storing program area and storage data field, wherein, the application journey that storing program area can be needed for storage program area, at least one function Sequence (such as sound-playing function, image player function etc.) etc.;Storage data field can be stored uses what is created according to mobile phone Data (such as voice data, phone directory etc.) etc..In addition, memory 520 can include high-speed random access memory, can be with Including nonvolatile memory, for example, at least one disk memory, flush memory device or other volatile solid-states Part.
Input block 530 can be used for the numeral or character information for receiving input, and produce with the user of mobile phone set with And the relevant key signals input of function control.Specifically, input block 530 may include that contact panel 531 and other inputs are set Standby 532.Contact panel 531, also referred to as touch-screen, collecting touch operation of the user on or near it, (such as user uses The operation of any suitable object such as finger, stylus or annex on contact panel 531 or near contact panel 531), and root Corresponding attachment means are driven according to formula set in advance.Optionally, contact panel 531 may include touch detecting apparatus and touch Two parts of controller.Wherein, touch detecting apparatus detects the touch orientation of user, and detects the signal that touch operation is brought, Transmit a signal to touch controller;Touch controller receives touch information from touch detecting apparatus, and is converted into touching Point coordinates, then give processor 580, and the order sent of reception processing device 580 and can be performed.Furthermore, it is possible to using electricity The polytypes such as resistive, condenser type, infrared ray and surface acoustic wave realize contact panel 531.Except contact panel 531, input Unit 530 can also include other input equipments 532.Specifically, other input equipments 532 can include but is not limited to secondary or physical bond One or more in disk, function key (such as volume control button, switch key etc.), trace ball, mouse, action bars etc..
Display unit 540 can be used for the various of the information that is inputted by user of display or the information for being supplied to user and mobile phone Menu.Display unit 540 may include display panel 541, optionally, can use liquid crystal display (Liquid Crystal Display, LCD), the form such as Organic Light Emitting Diode (Organic Light-Emitting Diode, OLED) it is aobvious to configure Show panel 541.Further, contact panel 531 can cover display panel 541, when contact panel 531 is detected thereon or attached After near touch operation, processor 580 is sent to determine the type of touch event, with preprocessor 580 according to touch event Type corresponding visual output is provided on display panel 541.Although in Figure 5, contact panel 531 and display panel 541 It is input and the input function that mobile phone is realized as two independent parts, but in some embodiments it is possible to by touch-control Panel 531 and the input that is integrated and realizing mobile phone of display panel 541 and output function.
Mobile phone may also include at least one sensor 550, such as optical sensor, motion sensor and other sensors. Specifically, optical sensor may include ambient light sensor and proximity transducer, wherein, ambient light sensor can be according to ambient light Light and shade adjust the brightness of display panel 541, proximity transducer can close display panel 541 when mobile phone is moved in one's ear And/or backlight.As one kind of motion sensor, accelerometer sensor can detect in all directions (generally three axles) acceleration Size, size and the direction of gravity are can detect that when static, available for identification mobile phone posture application (such as horizontal/vertical screen is cut Change, dependent game, magnetometer pose calibrating), Vibration identification correlation function (such as pedometer, tap) etc.;May be used also as mobile phone The other sensors such as gyroscope, barometer, hygrometer, thermometer, the infrared ray sensor of configuration, will not be repeated here.
Voicefrequency circuit 560, loudspeaker 561, microphone 562 can provide the COBBAIF between user and mobile phone.Audio-frequency electric Electric signal after the voice data received conversion can be transferred to loudspeaker 561, sound is converted to by loudspeaker 561 by road 560 Signal output;On the other hand, the voice signal of collection is converted to electric signal by microphone 562, by voicefrequency circuit 560 receive after turn It is changed to voice data, then after voice data output processor 580 is handled, through RF circuits 510 to be sent to such as another mobile phone, Or export voice data to memory 520 so as to further processing.
WiFi belongs to short range wireless transmission technology, and mobile phone can help user's transceiver electronicses postal by WiFi module 570 Part, browse webpage and access streaming video etc., it has provided the user wireless broadband internet and accessed.Although Fig. 5 is shown WiFi module 570, but it is understood that, it is simultaneously not belonging to must be configured into for mobile phone, can not change as needed completely Become in the essential scope of invention and omit.
Processor 580 is the control centre of mobile phone, using various interfaces and the various pieces of connection whole mobile phone, is led to Cross operation or perform and be stored in software program and/or module in memory 520, and call and be stored in memory 520 Data, perform the various functions and processing data of mobile phone, so as to carry out integral monitoring to mobile phone.Optionally, processor 580 can be wrapped Include one or more processing units;It is preferred that, processor 580 can integrated application processor and modem processor, wherein, should Operating system, user interface and application program etc. are mainly handled with processor, modem processor mainly handles radio communication. It is understood that above-mentioned modem processor can not also be integrated into processor 580.
Mobile phone also includes the power supply 590 (such as battery) powered to all parts, it is preferred that power supply can pass through power supply pipe Reason system and processor 580 are logically contiguous, so as to realize management charging, electric discharge and power managed by power-supply management system Etc. function.
Although not shown, mobile phone can also include camera, bluetooth module etc., will not be repeated here.
In embodiments of the present invention, the processor 580 included by the mobile terminal also has following functions:Receive to dynamic The opening operation at image shows interface;Scan the picture in the file under each preset path;Judge whether the picture is State picture;If the picture is dynamic picture, the dynamic image of the dynamic picture after opening is shown in interface and shown Show.
Alternatively, processor 580 also has following functions:Call frame number to obtain interface, frame number is read from the picture; When the frame number is more than 1 frame, it is determined that the picture is dynamic picture.
Alternatively, processor 580 also has following functions:Call file binary stream to read interface, read the picture Head specify digit binary coding;
According to the binary coding judge the picture whether be dynamic format dynamic picture.
Alternatively, processor 580 also has following functions:By the binary coding and the spy of binary dynamic format Code is levied to be compared, judge the picture whether be dynamic format dynamic picture.
Alternatively, processor 580 also has following functions:The binary coding is converted into specified system first is compiled Code;The condition code of described first coding and the dynamic format of specified system is compared, whether judge the picture is dynamic The dynamic picture of form.
Alternatively, processor 580 also has following functions:To be judged according to the binary coding picture whether be The dynamic picture of dynamic format is used as initial dynamic picture;Call and obtain interface for frame number, frame number is read from the picture; When the frame number is more than 1 frame, it is determined that the picture is final dynamic picture, into by the dynamic picture after opening The step of being shown in dynamic image displaying interface.
Alternatively, processor 580 also has following functions:Extract the temporal information of the dynamic picture;
Each dynamic picture is ranked up according to the temporal information;Each dynamic picture is shown according to the ranking results Shown in dynamic picture displaying interface.
Alternatively, processor 580 also has following functions:Extract the temporal information and the dynamic of the dynamic picture Applied belonging to picture;Each dynamic picture is ranked up according to the temporal information;According to the ranking results by each Dynamic Graph Piece displaying is shown by affiliated apply in the dynamic picture shows interface.
Alternatively, processor 580 also has following functions:According to the Dynamic Graph in dynamic picture displaying interface Specified trigger action on piece, popup menu column;The menu bar includes collection component, shares component wherein at least one.
Alternatively, processor 580 also has following functions:When the triggering for receiving the collection component for the menu bar Operation, then upload onto the server the dynamic image and collected.
Alternatively, processor 580 also has following functions:When receiving the triggering for sharing component for the menu bar Operation, then generate one and share menu bar;The menu bar of sharing includes sharing the name list of intended application.
Alternatively, processor 580 also has following functions:Described share in menu bar one if receiving and share intended application The trigger action of title, then share the correspondence image to the target and share application.
It is apparent to those skilled in the art that, for convenience and simplicity of description, the system of foregoing description, The specific work process of device and unit, may be referred to the corresponding process in preceding method embodiment, will not be repeated here.
In several embodiments provided by the present invention, it should be understood that disclosed system, apparatus and method can be with Realize by another way.For example, device embodiment described above is only schematical, for example, the unit Divide, only a kind of division of logic function there can be other dividing mode when actually realizing, such as multiple units or component Another system can be combined or be desirably integrated into, or some features can be ignored, or do not perform.It is another, it is shown or The coupling each other discussed or direct-coupling or communication connection can be the indirect couplings of device or unit by some interfaces Close or communicate to connect, can be electrical, machinery or other forms.
The unit illustrated as separating component can be or may not be it is physically separate, it is aobvious as unit The part shown can be or may not be physical location, you can with positioned at a place, or can also be distributed to multiple On NE.Some or all of unit therein can be selected to realize the mesh of this embodiment scheme according to the actual needs 's.
In addition, each functional unit in each embodiment of the invention can be integrated in a processing unit, can also That unit is individually physically present, can also two or more units it is integrated in a unit.Above-mentioned integrated list Member can both be realized in the form of hardware, it would however also be possible to employ the form of SFU software functional unit is realized.
One of ordinary skill in the art will appreciate that all or part of step in the various methods of above-described embodiment is can To instruct the hardware of correlation to complete by program, the program can be stored in a computer-readable recording medium, storage Medium can include:Read-only storage (ROM, Read Only Memory), random access memory (RAM, Random Access Memory), disk or CD etc..
Can be with one of ordinary skill in the art will appreciate that realizing that all or part of step in above-described embodiment method is The hardware of correlation is instructed to complete by program, described program can be stored in a kind of computer-readable recording medium, on It can be read-only storage, disk or CD etc. to state the storage medium mentioned.
Detailed Jie has been carried out to a kind of method, device and mobile terminal of dynamic image displaying provided by the present invention above Continue, for those of ordinary skill in the art, according to the thought of the embodiment of the present invention, in specific embodiments and applications It will change, in summary, this specification content should not be construed as limiting the invention.
The invention discloses a kind of method that A1, dynamic image are shown, including:Receive and dynamic image displaying interface is beaten Open operation;
Scan the picture in the file under each preset path;
Whether judge the picture is dynamic picture;
If the picture is dynamic picture, the dynamic image of the dynamic picture after opening is shown in interface and shown Show.
A2, the method as described in A1, it is described to judge the step of whether picture is dynamic picture, including:
Call frame number to obtain interface, frame number is read from the picture;
When the frame number is more than 1 frame, it is determined that the picture is dynamic picture.
A3, the method as described in A1, it is described to judge the step of whether picture is dynamic picture, including:
File binary stream is called to read interface, the binary coding of digit is specified on the head for reading the picture;
According to the binary coding judge the picture whether be dynamic format dynamic picture.
A4, the method as described in A3, it is described to judge whether the picture is dynamic format according to the binary coding The step of dynamic picture, including:
The binary coding and the condition code of binary dynamic format are compared, judge the picture whether be The dynamic picture of dynamic format.
A5, the method as described in A3, it is described to judge whether the picture is dynamic format according to the binary coding The step of dynamic picture, including:
The binary coding is converted to the first coding of specified system;
Described first coding and the condition code of the dynamic format of specified system are compared, judge the picture whether be The dynamic picture of dynamic format.
A6, the method as described in A3, it is described to judge whether the picture is dynamic format according to the binary coding After the step of dynamic picture, in addition to:
It will judge whether the picture is that the dynamic picture of dynamic format is used as initial dynamic according to the binary coding Picture;
Call and obtain interface for frame number, frame number is read from the picture;
When the frame number is more than 1 frame, it is determined that the picture is final dynamic picture, is existed into by the dynamic picture The step of being shown in dynamic image displaying interface after opening.
A7, the method as described in A1, described show the dynamic image of the dynamic picture after opening in interface show The step of, including:
Extract the temporal information of the dynamic picture;
Each dynamic picture is ranked up according to the temporal information;
Each dynamic picture is illustrated in the dynamic picture according to the ranking results and shows displaying in interface.
A8, the method as described in A1, described show the dynamic image of the dynamic picture after opening in interface show The step of, including:
Extract and applied belonging to the temporal information and the dynamic picture of the dynamic picture;
Each dynamic picture is ranked up according to the temporal information;
Each dynamic picture is shown according to the ranking results and opened up by affiliated apply in the dynamic picture shows interface Show.
A9, the method as described in A1, described show the dynamic image of the dynamic picture after opening in interface show The step of after, in addition to:
According to the specified trigger action on the dynamic picture in dynamic picture displaying interface, popup menu Column;The menu bar includes collection component, shares component wherein at least one.
A10, the method as described in A9, on the dynamic picture during the basis shows interface in the dynamic picture Specified trigger action, the step of popup menu column after, in addition to:
When the trigger action for receiving the collection component for the menu bar, then the dynamic image is uploaded to service Device is collected.
A11, the method as described in A9, on the dynamic picture during the basis shows interface in the dynamic picture Specified trigger action, the step of popup menu column after, in addition to:
When receiving the trigger action for sharing component for the menu bar, then generate one and share menu bar;Described point Enjoying menu bar includes sharing the name list of intended application.
A12, the method as described in A11, in the trigger action for sharing component worked as and received for the menu bar, After the step of then menu bar is shared in generation one, in addition to:
If receive it is described share in menu bar a trigger action for sharing intended application title, by the correspondence image Share to the target and share application.
The invention also discloses the device that B13, a kind of dynamic image are shown, including:Show that module is opened at interface, for connecing Receive the opening operation that interface is shown to dynamic image;
Picture acquisition module, for scanning the picture in the file under each preset path;
Judge module, for judging whether the picture is dynamic picture;
Display module, if being dynamic picture for the picture, by the Dynamic Graph of the dynamic picture after opening As being shown in displaying interface.
B14, the device as described in B13, the judge module, including:
Frame number obtains interface interchange submodule, and for calling frame number to obtain interface, frame number is read from the picture;
Determination sub-module, for being more than 1 frame when the frame number, it is determined that the picture is dynamic picture.
B15, the device as described in B13, the judge module, including:
File binary stream reads interface interchange submodule, for calling file binary stream to read interface, reads described Specify the binary coding of digit in the head of picture;
Judge form submodule, for according to the binary coding judge the picture whether be dynamic format dynamic Picture.
B16, the device as described in B15, the judgement form submodule, including:
Comparing unit, for the binary coding and the condition code of binary dynamic format to be compared, judges The picture whether be dynamic format dynamic picture.
B17, the device as described in B15, the judgement form submodule, including:
Converting unit, the first coding for the binary coding to be converted to specified system;
Judging unit, the condition code of the described first coding and the dynamic format of specified system is compared, and judges described Picture whether be dynamic format dynamic picture.
B18, the device as described in B15, initial dynamic picture judging submodule, for that will be sentenced according to the binary coding Whether the picture that breaks is the dynamic picture of dynamic format as initial dynamic picture;
Frame number submodule is read, frame number acquisition interface is directed to for calling, frame number is read from the picture;
Showing interface submodule, for being more than 1 frame when the frame number, it is determined that the picture is final dynamic picture, The step of being shown in interface is shown into by the dynamic image of the dynamic picture after opening.
B19, the device as described in B13, the display module, including:
Extracting sub-module, the temporal information for extracting the dynamic picture;
Sorting sub-module, for being ranked up according to the temporal information to each dynamic picture;
Ranking results show submodule, for each dynamic picture to be illustrated in into the dynamic picture according to the ranking results Show in interface and show.
B20, the device as described in B13, the display module, including:
Time extracting sub-module, should belonging to the temporal information and the dynamic picture of the dynamic picture for extracting With;
Time-sequencing submodule, for being ranked up according to the temporal information to each dynamic picture;
As a result submodule is shown, is applied for being shown each dynamic picture according to the ranking results by affiliated described dynamic Shown in state picture presentation interface.
B21, the device as described in B13, in addition to:Menu bar trigger module, for according in dynamic picture displaying The specified trigger action on a dynamic picture in interface, popup menu column;The menu bar includes collection component, shares group Part wherein at least one.
B22, the device as described in B21, in addition to:Module is collected, for working as the collection received for the menu bar The trigger action of component, then upload onto the server the dynamic image and collected.
B23, the device as described in B21, in addition to:Share menu formation module, received for working as the menu The trigger action for sharing component on column, then generate one and share menu bar;The menu bar of sharing includes sharing intended application Name list.
B24, the device as described in B21, in addition to:Sharing module, if described sharing in menu bar one point for receiving The trigger action of intended application title is enjoyed, then the correspondence image is shared to the target and shares application.
The invention also discloses C25, a kind of mobile terminal, including processor and memory,
The memory is used for the journey for storing the method for performing a kind of dynamic image displaying any one of A1 to A12 Sequence;
The processor is configurable for performing the program stored in the memory.

Claims (10)

1. a kind of method of dynamic image displaying, it is characterised in that including:
Receive the opening operation that interface is shown to dynamic image;
Scan the picture in the file under each preset path;
Whether judge the picture is dynamic picture;
If the picture is dynamic picture, the dynamic image of the dynamic picture after opening is shown in interface and shown.
2. the method as described in claim 1, it is characterised in that described that the step of whether picture is dynamic picture judged, Including:
Call frame number to obtain interface, frame number is read from the picture;
When the frame number is more than 1 frame, it is determined that the picture is dynamic picture.
3. the method as described in claim 1, it is characterised in that described that the step of whether picture is dynamic picture judged, Including:
File binary stream is called to read interface, the binary coding of digit is specified on the head for reading the picture;
According to the binary coding judge the picture whether be dynamic format dynamic picture.
4. method as claimed in claim 3, it is characterised in that described that whether the picture is judged according to the binary coding For dynamic format dynamic picture the step of, including:
The binary coding and the condition code of binary dynamic format are compared, whether judge the picture is dynamic The dynamic picture of form.
5. method as claimed in claim 3, it is characterised in that described that whether the picture is judged according to the binary coding For dynamic format dynamic picture the step of, including:
The binary coding is converted to the first coding of specified system;
The condition code of described first coding and the dynamic format of specified system is compared, whether judge the picture is dynamic The dynamic picture of form.
6. method as claimed in claim 3, it is characterised in that described that whether the picture is judged according to the binary coding For dynamic format dynamic picture the step of after, in addition to:
It will judge whether the picture is that the dynamic picture of dynamic format is used as initial dynamic picture according to the binary coding;
Call and obtain interface for frame number, frame number is read from the picture;
When the frame number is more than 1 frame, it is determined that the picture is final dynamic picture, opened into by the dynamic picture The step of being shown in dynamic image displaying interface afterwards.
7. the method as described in claim 1, it is characterised in that the dynamic image exhibition by the dynamic picture after opening Show the step of being shown in interface, including:
Extract the temporal information of the dynamic picture;
Each dynamic picture is ranked up according to the temporal information;
Each dynamic picture is illustrated in the dynamic picture according to the ranking results and shows displaying in interface.
8. the method as described in claim 1, it is characterised in that the dynamic image exhibition by the dynamic picture after opening Show the step of being shown in interface, including:
Extract and applied belonging to the temporal information and the dynamic picture of the dynamic picture;
Each dynamic picture is ranked up according to the temporal information;
Each dynamic picture is shown according to the ranking results and shown by affiliated apply in the dynamic picture shows interface.
9. a kind of device of dynamic image displaying, it is characterised in that including:
Show that module is opened at interface, show the opening operation at interface to dynamic image for receiving;
Picture acquisition module, for scanning the picture in the file under each preset path;
Judge module, for judging whether the picture is dynamic picture;
Display module, if being dynamic picture for the picture, by the dynamic image exhibition of the dynamic picture after opening Show in interface and show.
10. a kind of mobile terminal, it is characterised in that including processor and memory,
The memory is used to store the side of the dynamic image displaying any one of perform claim requirement 1 to claim 8 The program of method;
The processor is configurable for performing the program stored in the memory.
CN201710214685.3A 2017-04-01 2017-04-01 Method and device for displaying dynamic image and mobile terminal Active CN107145515B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201710214685.3A CN107145515B (en) 2017-04-01 2017-04-01 Method and device for displaying dynamic image and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201710214685.3A CN107145515B (en) 2017-04-01 2017-04-01 Method and device for displaying dynamic image and mobile terminal

Publications (2)

Publication Number Publication Date
CN107145515A true CN107145515A (en) 2017-09-08
CN107145515B CN107145515B (en) 2020-12-11

Family

ID=59773730

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201710214685.3A Active CN107145515B (en) 2017-04-01 2017-04-01 Method and device for displaying dynamic image and mobile terminal

Country Status (1)

Country Link
CN (1) CN107145515B (en)

Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1456016A (en) * 2001-01-30 2003-11-12 株式会社欧菲士诺亚 Moving-picture information compressing method and system
US20090190898A1 (en) * 2008-01-24 2009-07-30 Canon Kabushiki Kaisha Image reproduction apparatus and method
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device
WO2015039523A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Multimedia file processing method and apparatus and terminal device
CN104811791A (en) * 2015-04-23 2015-07-29 北京奇虎科技有限公司 Video removing method and device and terminal device
CN105657070A (en) * 2012-11-26 2016-06-08 北京奇虎科技有限公司 Method and server for providing picture data to computing terminal
CN106201218A (en) * 2016-07-27 2016-12-07 北京金山安全软件有限公司 Method and device for clearing picture files in chat records and mobile device
CN106407340A (en) * 2016-08-09 2017-02-15 北京金山安全软件有限公司 Method and device for clearing screenshot picture and mobile device

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1456016A (en) * 2001-01-30 2003-11-12 株式会社欧菲士诺亚 Moving-picture information compressing method and system
US20090190898A1 (en) * 2008-01-24 2009-07-30 Canon Kabushiki Kaisha Image reproduction apparatus and method
CN105657070A (en) * 2012-11-26 2016-06-08 北京奇虎科技有限公司 Method and server for providing picture data to computing terminal
WO2015039523A1 (en) * 2013-09-22 2015-03-26 Tencent Technology (Shenzhen) Company Limited Multimedia file processing method and apparatus and terminal device
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device
CN104811791A (en) * 2015-04-23 2015-07-29 北京奇虎科技有限公司 Video removing method and device and terminal device
CN106201218A (en) * 2016-07-27 2016-12-07 北京金山安全软件有限公司 Method and device for clearing picture files in chat records and mobile device
CN106407340A (en) * 2016-08-09 2017-02-15 北京金山安全软件有限公司 Method and device for clearing screenshot picture and mobile device

Also Published As

Publication number Publication date
CN107145515B (en) 2020-12-11

Similar Documents

Publication Publication Date Title
CN106844484B (en) Information searching method and device and mobile terminal
CN107948748B (en) Method, device, mobile terminal and computer storage medium for recommending videos
CN108156508B (en) Barrage information processing method and device, mobile terminal, server and system
CN106096361A (en) A kind of unlocked by fingerprint method and mobile terminal
CN106066767A (en) A kind of unlocking method and mobile terminal
CN106126174B (en) A kind of control method and electronic equipment of scene audio
CN106375179B (en) Method and device for displaying instant communication message
CN107809526A (en) End application sorting technique, mobile terminal and computer-readable recording medium
CN106856543B (en) Picture display method and device and mobile terminal
CN107122429A (en) The method and apparatus and mobile terminal of a kind of file management
CN107633051A (en) Desktop searching method, mobile terminal and computer-readable recording medium
CN107315488A (en) A kind of searching method of expression information, device and mobile terminal
CN110321474A (en) Recommended method, device, terminal device and storage medium based on search term
CN108255372A (en) A kind of desktop application icon method for sorting and mobile terminal
CN107103074B (en) Processing method of shared information and mobile terminal
CN104699501B (en) A kind of method and device for running application program
CN105912919A (en) Fingerprint unlocking method and terminal
CN108121486A (en) A kind of image display method and mobile terminal
CN107741802A (en) Using startup method, terminal and computer-readable recording medium
CN106791185A (en) Method for managing contact person information, device and mobile terminal
CN107291326A (en) Icon processing method and terminal
CN106657641B (en) A kind of method and relevant device optimizing sharing mode
CN112416939A (en) Screening method and device for clinical research center
CN106126726A (en) The exhibiting method of a kind of file scene and relevant device
CN105550316A (en) Pushing method and device of audio list

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
TR01 Transfer of patent right

Effective date of registration: 20240424

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

Patentee after: BEIJING QIHOO TECHNOLOGY Co.,Ltd.

Country or region after: China

Address before: 100028 1104, 11 / F, building 1, 1 Zuojiazhuang front street, Chaoyang District, Beijing

Patentee before: BEIJING ANYUNSHIJI TECHNOLOGY Co.,Ltd.

Country or region before: China

TR01 Transfer of patent right