CN107145515B - Method and device for displaying dynamic image and mobile terminal - Google Patents

Method and device for displaying dynamic image and mobile terminal Download PDF

Info

Publication number
CN107145515B
CN107145515B CN201710214685.3A CN201710214685A CN107145515B CN 107145515 B CN107145515 B CN 107145515B CN 201710214685 A CN201710214685 A CN 201710214685A CN 107145515 B CN107145515 B CN 107145515B
Authority
CN
China
Prior art keywords
picture
dynamic
sharing
menu bar
interface
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201710214685.3A
Other languages
Chinese (zh)
Other versions
CN107145515A (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

Images

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

Abstract

The embodiment of the invention provides a method, a device and a mobile terminal for displaying dynamic images, wherein the method comprises the following steps: receiving opening operation of a dynamic image display interface; scanning pictures in the folders under the preset paths; judging whether the picture is a dynamic picture or not; and if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface. The problem that when a user views the dynamic pictures in each folder, the dynamic pictures need to be searched one by one, time and labor are wasted is solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified mode in a specified interface.

Description

Method and device for displaying dynamic image and mobile terminal
Technical Field
The present invention relates to the field of mobile terminal technologies, and in particular, to a method and an apparatus for displaying a dynamic image, and a mobile terminal.
Background
With the rapid development of terminal equipment technology, the mobile terminal brings great convenience to the life of people, and a mobile terminal user can use a mobile phone to finish all basic things in daily life, wherein the propagation of various dynamic pictures is more accepted and liked by the user, and the dynamic pictures propagated or generated in various applications are often difficult to find when the user wants to use the mobile phone again if the user does not open another memory.
In the currently used dynamic image display method, when a user uses an application, if the dynamic image used in the application is actively stored, the dynamic image is stored in a file path corresponding to the application, and is searched and used in the file path when the user uses the application next time.
Disclosure of Invention
In view of the above, the present invention is proposed to provide a method, an apparatus and a mobile terminal for dynamic image presentation that solve the above problems or at least partially solve the above problems.
According to an aspect of the present invention, there is provided a method for dynamic image presentation, including: receiving opening operation of a dynamic image display interface; scanning pictures in the folders under the preset paths; judging whether the picture is a dynamic picture or not; and if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface.
With reference to the first aspect, in a first implementation manner of the first aspect, the determining whether the picture is a moving picture includes: calling a frame number acquisition interface, and reading frame numbers from the pictures; and when the frame number is greater than 1 frame, determining that the picture is a dynamic picture.
With reference to the first aspect, in a second implementation manner of the first aspect, the determining whether the picture is a moving picture includes: calling a file binary stream reading interface, and reading the binary code of the head specified digit of the picture; and judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code.
With reference to the second implementation manner of the first aspect, in a third implementation manner of the first aspect, the determining whether the picture is a dynamic picture in a dynamic format according to the binary coding includes: and comparing the binary code with the characteristic code of the binary dynamic format to judge whether the picture is a dynamic picture of the dynamic format.
With reference to the second implementation manner of the first aspect, in a fourth implementation manner of the first aspect, the determining whether the picture is a dynamic picture in a dynamic format according to the binary coding includes: converting the binary code into a first code of a specified system; and comparing the first code with the feature code of the dynamic format of the designated system, and judging whether the picture is the dynamic picture of the dynamic format.
With reference to the second implementation manner of the first aspect, in a fifth implementation manner of the first aspect, after the step of determining whether the picture is a dynamic picture in a dynamic format according to the binary coding, the method further includes: taking the dynamic picture which is judged whether the picture is in a dynamic format or not according to the binary coding as an initial dynamic picture; calling a frame number acquisition interface, and reading frame numbers from the picture; and when the frame number is more than 1 frame, determining that the picture is a final dynamic picture, and entering a step of displaying the dynamic picture in an opened dynamic image display interface.
With reference to the first aspect, in a sixth implementation manner of the first aspect, the displaying the dynamic picture in the opened dynamic image display interface includes: extracting time information of the dynamic picture; sequencing the dynamic pictures according to the time information; and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
With reference to the first aspect, in a seventh implementation manner of the first aspect, the displaying the dynamic picture in the opened dynamic image display interface includes: extracting time information of the dynamic picture and an application of the dynamic picture; sequencing the dynamic pictures according to the time information; and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result and the application of the dynamic picture.
With reference to the first aspect, in an eighth implementation manner of the first aspect, after the step of displaying the dynamic picture in the opened dynamic image display interface, the method further includes: popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
With reference to the eighth implementation manner of the first aspect, in a ninth implementation manner of the first aspect, after the step of popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture presentation interface, the method further includes: and when a trigger operation aiming at the collection component of the menu bar is received, uploading the dynamic image to a server for collection.
With reference to the eighth implementation manner of the first aspect, in a tenth implementation manner of the first aspect, after the step of popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture presentation interface, the method further includes: when receiving a triggering operation of a sharing component aiming at the menu bar, generating a sharing menu bar; the sharing menu bar comprises a name list of the sharing target application.
With reference to the tenth implementation manner of the first aspect, in an eleventh implementation manner of the first aspect, after the step of generating a shared menu bar when the trigger operation for the sharing component of the menu bar is received, the method further includes: and if the triggering operation of a sharing target application name in the sharing menu bar is received, sharing the corresponding image to the target sharing application.
According to another aspect of the present invention, there is provided an apparatus for displaying a moving picture, including: the display interface opening module is used for receiving opening operation of the dynamic image display interface; the image acquisition module is used for scanning images in the folders under the preset paths; the judging module is used for judging whether the picture is a dynamic picture or not; and the display module is used for displaying the dynamic picture in the opened dynamic image display interface if the picture is the dynamic picture.
With reference to the second aspect, in a first implementation manner of the second aspect, the determining module includes: the frame number acquisition interface calling submodule is used for calling a frame number acquisition interface and reading the frame number from the picture; and the determining submodule is used for determining that the picture is a dynamic picture when the frame number is greater than 1 frame.
With reference to the second aspect, in a second implementation manner of the second aspect, the determining module includes: the file binary stream reading interface calling submodule is used for calling the file binary stream reading interface and reading the binary code of the head specified digit of the picture; and the judging format sub-module is used for judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code.
With reference to the second implementation manner of the second aspect, in a third implementation manner of the second aspect, the determining format sub-module includes: and the comparison unit is used for comparing the binary code with the characteristic code of the binary dynamic format and judging whether the picture is a dynamic picture of the dynamic format.
With reference to the second implementation manner of the second aspect, in a fourth implementation manner of the second aspect, the determining format sub-module includes: a conversion unit for converting the binary code into a first code of a designated binary; and the judging unit is used for comparing the first code with the feature code of the dynamic format of the designated system and judging whether the picture is the dynamic picture of the dynamic format.
With reference to the second implementation manner of the second aspect, in a fifth implementation manner of the second aspect, the present invention further includes: the initial dynamic picture judging submodule is used for judging whether the picture is a dynamic picture in a dynamic format according to the binary code as an initial dynamic picture; a reading frame number submodule used for calling a frame number acquisition interface and reading the frame number from the picture; and the interface display sub-module is used for determining that the picture is the final dynamic picture when the frame number is greater than 1 frame, and entering a step of displaying the dynamic picture in the opened dynamic image display interface.
With reference to the second aspect, in a sixth implementation manner of the second aspect, the display module includes: the extraction submodule is used for extracting the time information of the dynamic picture; the ordering submodule is used for ordering the dynamic pictures according to the time information; and the sequencing result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
With reference to the second aspect, in a seventh implementation manner of the second aspect, the display module includes: the time extraction submodule is used for extracting the time information of the dynamic picture and the application of the dynamic picture; the time sequencing submodule is used for sequencing all the dynamic pictures according to the time information; and the result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the application of the sequencing result.
With reference to the second aspect, in an eighth implementation manner of the second aspect, the method further includes: the menu bar triggering module is used for popping up a menu bar according to the specified triggering operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
With reference to the eighth implementation manner of the second aspect, in a ninth implementation manner of the second aspect, the present invention further includes: and the collection module is used for uploading the dynamic image to a server for collection when receiving the triggering operation of the collection component aiming at the menu bar.
With reference to the eighth implementation manner of the second aspect, in a tenth implementation manner of the second aspect, the present invention further includes: the sharing menu generating module is used for generating a sharing menu bar when receiving the triggering operation of the sharing component aiming at the menu bar; the sharing menu bar comprises a name list of the sharing target application.
With reference to the tenth implementation manner of the second aspect, in an eleventh implementation manner of the second aspect, the present invention further includes: and the sharing module is used for sharing the corresponding image to the target sharing application if the triggering operation of a sharing target application name in the sharing menu bar is received.
According to a third aspect of the present invention, there is also disclosed a mobile terminal, comprising a processor and a memory,
the memory is used for storing a program for executing the method for displaying the dynamic image;
the processor is configured to execute programs stored in the memory.
According to a fourth aspect of the present invention, there is also disclosed a computer storage medium for storing computer software instructions for the apparatus for dynamic image presentation, which comprises a program for executing the above aspect designed for the apparatus for dynamic image presentation.
According to the method, the device and the mobile terminal for displaying the dynamic image, disclosed by the invention, the opening operation of a dynamic image display interface is received; scanning pictures in the folders under the preset paths; judging whether the picture is a dynamic picture or not; and if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface. The problem that when a user views the dynamic pictures in each folder, the dynamic pictures need to be searched one by one, time and labor are wasted is solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified mode in a specified interface.
The foregoing description is only an overview of the technical solutions of the present invention, and the embodiments of the present invention are described below in order to make the technical means of the present invention more clearly understood and to make the above and other objects, features, and advantages of the present invention more clearly understandable.
Drawings
Various other advantages and benefits will become apparent to those of ordinary skill in the art upon reading the following detailed description of the preferred embodiments. The drawings are only for purposes of illustrating the preferred embodiments and are not to be construed as limiting the invention. Also, like reference numerals are used to refer to like parts throughout the drawings. In the drawings:
FIG. 1 is a flow chart illustrating the steps of one embodiment of a method for dynamic image presentation in accordance with the present invention;
FIG. 2 is a flow chart illustrating steps of another embodiment of a method for dynamic image presentation in accordance with the present invention;
FIG. 3 is a block diagram of an embodiment of an apparatus for dynamic image presentation according to the present invention; and;
FIG. 4 is a block diagram of an embodiment of an apparatus for dynamic image presentation according to the present invention; and;
fig. 5 is a block diagram illustrating a partial structure of a cellular phone related to a mobile terminal provided by an embodiment of the present invention.
Detailed Description
Exemplary embodiments of the present disclosure will be described in more detail below with reference to the accompanying drawings. While exemplary embodiments of the present disclosure are shown in the drawings, it should be understood that the present disclosure may be embodied in various forms and should not be limited to the embodiments set forth herein. Rather, these embodiments are provided so that this disclosure will be thorough and complete, and will fully convey the scope of the disclosure to those skilled in the art.
Referring to fig. 1, a flowchart illustrating steps of an embodiment of a method for displaying a dynamic image according to the present invention is shown, which may specifically include the following steps:
step 101, receiving an opening operation of a dynamic image display interface.
In the embodiment of the invention, when a user opens the system file manager, the user advises to see the folders stored by the various applications displayed in the system file manager, and can open all the dynamic images on the mobile terminal displayed by the folders by adding one folder in the system file manager.
And 102, scanning the pictures in the folders under the preset paths.
In the embodiment of the present invention, taking the android system as an example, a program called MediaProvider is generally provided in the android system, where a MediaScannerReciever () function for scanning file storage is provided, where the function implements a file scanning operation by calling a service called MediaScannerService, and can scan a file when a file write is detected.
In practical application, the path name in the function of MediaScannerReciever () can be changed to complete the scanning work of the specified file.
Of course, the method for scanning the document is not limited to the above description, and the embodiment of the present invention does not limit this.
And 103, judging whether the picture is a dynamic picture.
In the embodiment of the invention, when a file in a specified folder is scanned, the file information of the file is read, the format of the file is further judged, and the dynamic picture is screened out.
In practical applications, the file format can be generally obtained through file information, and in order to more accurately detect a moving picture, a file header stored in a file data stream is read, or the number of frames of an image file is determined to determine whether the image file is a moving picture.
And 104, if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface.
In the embodiment of the present invention, if an image is determined to be a dynamic image according to the above-described method, the image is displayed in a specific dynamic image display interface in the system file manager.
The method comprises the steps of scanning each appointed folder, screening out dynamic pictures in the appointed folder, filtering all the dynamic pictures in a scanned file by using a fileFiller () file filter in an android system, obtaining a source folder of the dynamic pictures through a function parentFile (), displaying thumbnails of the dynamic pictures in a specific dynamic picture display interface in a system file manager, and displaying the names of the source files in picture names.
In the embodiment of the invention, after the opening operation of the dynamic image display interface is received, the pictures in the folders under the preset paths are scanned, and the dynamic pictures are screened out and displayed in the specific dynamic picture display interface in the system file manager, so that the problems that the time and labor are wasted because the dynamic pictures in the folders need to be searched one by one when a user views the dynamic pictures in the folders are solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified way in the specified interface.
Referring to fig. 2, a flowchart illustrating steps of another embodiment of a method for displaying a dynamic image according to the present invention is shown, which may specifically include the following steps:
step 201, receiving an opening operation of a dynamic image display interface.
This step is the same as step 101 and will not be described in detail here.
Step 202, scanning the pictures in the folders under the preset paths.
This step is the same as step 102 and will not be described in detail here.
Step 203, judging whether the picture is a dynamic picture.
This step is the same as step 103 and will not be described in detail here.
Preferably, step 203 specifically includes: substep 2031-substep 2032;
substep 2031, calling a frame number acquisition interface, and reading a frame number from the picture.
In the embodiment of the present invention, when the function MediaScannerReciever () is used to scan the folders of each specified path in the system, whether the picture file therein is a dynamic image is further determined, and specifically, the frame number of the current picture file is read by obtaining the function getNumberOfFrames () of the frame number of the picture file.
Substep 2032, determining that the picture is a dynamic picture if the frame number is greater than 1 frame.
In the embodiment of the present invention, according to the result of reading the frame number, if the frame number is greater than 1, the picture file is determined to be a dynamic picture, wherein the format of the video file is different from the format of the picture file, so the method described in this step does not process the video file as a dynamic picture.
In practical applications, since the dynamic pictures are often stored without displaying suffix names, especially the frequently used emoticons in instant messaging applications, and the gif pictures with high utilization rate are often stored without suffix names, the dynamic pictures are determined to be dynamic pictures by reading the number of frames.
Preferably, in another embodiment of the present invention, step 203 specifically includes sub-steps 203A-203B;
substep 203A, calling a file binary stream reading interface, and reading the binary code of the head specified digit of the picture.
In the embodiment of the present invention, the first 32 bits of the file may also be read by a fileinputstream.
And a substep 203B of judging whether the picture is a dynamic picture in a dynamic format according to the binary code.
In the embodiment of the present invention, if the first 32-bit binary code is "1000111010010010100011000111000", the first 32-bit binary code is converted into 8-bit 16-bit code, which is "47494638", and the gif 16-bit feature code is "47494638", that is, a picture conforming to the feature code and recognized as gif format.
Preferably, the substep 203B specifically comprises:
sub-step 203B1, comparing the binary code with the feature code of the binary dynamic format, and determining whether the picture is a dynamic picture in the dynamic format.
In the embodiment of the present invention, the format of the dynamic picture is not limited to the gif format, so that the 32-bit binary code of the header is obtained by setting the feature code of the dynamic picture and converting the 32-bit binary code by the above method, and the dynamic picture is determined to be the dynamic picture when the 32-bit binary code is matched with the feature code of the dynamic picture.
Preferably, in another embodiment of the present invention, step 203 specifically includes:
sub-step 203a, converting said binary code into a first code of a given scale.
In the embodiment of the present invention, the header of the read picture is typically a 32-bit binary code, and the feature code may be any binary code, so that the binary code is converted into the first code of the designated binary code according to the type of the feature code, so as to facilitate matching with the feature code.
And a substep 203b, comparing the first code with the feature code of the dynamic format of the designated system, and judging whether the picture is the dynamic picture of the dynamic format.
In the embodiment of the invention, when the file header is converted into the file header with the same system as the feature code, the file header is matched with the feature code, and if the matching is successful, the file is determined to be a dynamic picture.
Preferably, after the sub-step 203B, the method further comprises:
and a substep 203C of determining whether the picture is a dynamic picture in a dynamic format according to the binary code, wherein the dynamic picture is used as an initial dynamic picture.
In the embodiment of the present invention, according to the description in sub-step 203B, if the header of a picture is successfully matched with the feature code of the motion picture, the picture is determined to be a dynamic initial picture, and in order to more accurately determine that the picture is a motion picture, the frame number of the picture needs to be further determined.
Substep 203D, calling a frame number acquisition interface, and reading a frame number from the picture.
This step is the same as step 2031 and will not be described in detail here.
Substep 203E, when the frame number is greater than 1 frame, determining that the picture is the final dynamic picture, and entering step 204.
In the embodiment of the invention, according to the result of reading the frame number, if the frame number is more than 1, the picture file is determined to be a dynamic picture, and the step of displaying the picture in a specific dynamic picture display interface in a system file manager is carried out.
And 204, if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface.
This step is the same as step 104 and will not be described in detail here.
Preferably, step 204 specifically includes:
substep 2041, extracting time information of the dynamic picture.
In the embodiment of the invention, in the android system, when a file is created and modified, the file is recorded in the information of the file, wherein the last modification time of the file can be obtained through a lastModified () function, and the time is the update time of the picture information.
Substep 2042, sorting the dynamic pictures according to the time information.
In the embodiment of the present invention, in the android system, the picture files for acquiring the time information may be sorted according to the update time of each picture file, wherein a sorting function is used, and the sorting parameter therein is set to the update time of the picture file acquired in sub-step 2041, so as to achieve a result of sorting according to the update time.
Substep 2043, displaying each dynamic picture in the dynamic picture display interface according to the sorting result.
In the embodiment of the invention, taking an android system as an example, when a sequencing result of a picture file is to be displayed on a specific interface, firstly, a special display interface is set, an icon triggering the display interface is added in a Launcher program by inheriting a setting parameter of a viewgroup () class of the file display interface, and when a user clicks the icon, the interface is displayed by triggering an Activity service to run the viewgroup () class of the interface. Secondly, displaying the display result of the picture file by utilizing a function of defining a touch time interface OnTouchingLetterChangedListener and realizing public void on TouchingTimeChanged (), and displaying each dynamic picture in a previously set interface according to the sequence of the updating time of the dynamic picture file.
Preferably, in another embodiment of the present invention, step 204 specifically includes: sub-step 204A-sub-step 204C;
substep 204A, extracting time information of the dynamic picture and an application to which the dynamic picture belongs.
In the embodiment of the invention, in the android system, when a file updated in a folder is scanned, the last update time of the dragging information can be acquired through a lastModified () function, a real path of the file can be acquired through a getreadfilepath () function, and the specific application name of the file on the current mobile terminal can be further known through analyzing the file name marked on the path.
And a substep 204B of sorting the moving pictures according to the time information.
This step is the same as substep 2042 and will not be described in detail herein.
And a substep 204C of displaying each dynamic picture in the dynamic picture display interface according to the sequencing result and the application of the dynamic picture.
In the embodiment of the present invention, when the sorting result is displayed in the specific dynamic picture display interface in the corresponding system file manager, the file name of the displayed picture also includes the application name corresponding to the dynamic picture, and the specific operation of the display is described in detail in sub-step 2043.
Step 205, popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
In the embodiment of the invention, a pressure-sensitive capacitance sensing layer is added behind a backlight module of a display screen of the mobile terminal to receive longitudinal pressing force applied to the mobile phone. When a finger presses a screen, a sensor of a screen capacitance layer induces current changes to recognize pressing strength so as to realize different interaction functions, after the pressing operation of a user is recognized, different operations can be realized according to an object pressed by the user, such as a popup menu bar, wherein PopupMenu in an android system is a modal menu anchored to View, an android property is used for displaying a popup menu button, and a popup menu is displayed by calling a function of showpop () with Activity, when the user selects a menu item, the operation is executed, firstly, a PopupMenu.
In practical application, by using the above-described method, when a user presses a dynamic picture in a dynamic picture display interface, an operation menu for the dynamic picture is popped up, wherein the operation menu may include functions of storing, sharing, deleting, collecting, and the like, and when the user clicks or presses one of the function names in a display interface, an operation interface corresponding to the function name is entered. A
Of course, the operations for the pop-up menu and submenu, and the menu and submenu are contained for
And step 206, when the triggering operation of the collection component aiming at the menu bar is received, uploading the dynamic image to a server for collection.
In the embodiment of the invention, when a user clicks or presses a collection function included in a menu popped up for a dynamic picture, a picture file corresponding to the dynamic picture is uploaded to a server for collection, wherein when the picture file is uploaded to the server, a multipart/form-data protocol is mainly applied, the picture or file uploading is realized by using an http connection class through realizing an uplink tool class, and parameters of the uploading server are set.
Step 207, when receiving a triggering operation of the sharing component aiming at the menu bar, generating a sharing menu bar; the sharing menu bar comprises a name list of the sharing target application.
In the embodiment of the present invention, according to the description in step 205, upon receiving a click or press operation of a user to share a menu item in a menu bar, a sharing menu bar is generated, and the sharing menu bar is displayed
And 208, if the triggering operation of a sharing target application name in the sharing menu bar is received, sharing the corresponding image to the target sharing application.
In the embodiment of the invention, when clicking or pressing operation of a user for sharing menu items in a menu bar is received, the generated sharing menu bar comprises the names of all target sharing applications, and after the user clicks the name of one target sharing application, a sharing interface provided by the application is called, and the corresponding dynamic picture is shared in the target sharing application.
In the embodiment of the invention, after the opening operation of the dynamic image display interface is received, the pictures in the folders under the preset paths are scanned, the method for reading the file header or the mode for acquiring the number of the file frames is utilized to determine the dynamic pictures in the folders, the dynamic pictures are displayed in the appointed dynamic file display interface, and when the dynamic pictures in the file display interface are clicked or pressed, an operation menu bar is generated for the user to further perform specific operation on the dynamic pictures. The problem that when a user views the dynamic pictures in each folder, the dynamic pictures need to be searched one by one, time and labor are wasted is solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified mode in a specified interface and perform specific operation.
For simplicity of explanation, the method embodiments are described as a series of acts or combinations, but those skilled in the art will appreciate that the embodiments are not limited by the order of acts described, as some steps may occur in other orders or concurrently with other steps in accordance with the embodiments of the invention. Further, those skilled in the art will appreciate that the embodiments described in the specification are presently preferred and that no particular act is required to implement the invention.
Referring to fig. 3, a block diagram of an embodiment of a device for displaying a dynamic image according to the present invention is shown, which may specifically include the following modules:
a display interface opening module 301, configured to receive an opening operation on a dynamic image display interface;
a picture obtaining module 302, configured to scan pictures in folders in each preset path;
a judging module 303, configured to judge whether the picture is a dynamic picture;
and the display module 304 is configured to display the dynamic picture in the opened dynamic image display interface if the picture is a dynamic picture.
In the embodiment of the invention, after the opening operation of the dynamic image display interface is received, the pictures in the folders under the preset paths are scanned, and the dynamic pictures are screened out and displayed in the specific dynamic picture display interface in the system file manager, so that the problems that the time and labor are wasted because the dynamic pictures in the folders need to be searched one by one when a user views the dynamic pictures in the folders are solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified way in the specified interface.
Referring to fig. 4, a block diagram of an embodiment of a device for displaying a dynamic image according to the present invention is shown, which may specifically include the following modules:
a display interface opening module 401, configured to receive an opening operation on a dynamic image display interface;
a picture obtaining module 402, configured to scan pictures in folders in each preset path;
a judging module 403, configured to judge whether the picture is a dynamic picture;
preferably, the judging module 403 specifically includes:
a frame number obtaining interface calling sub-module 4031 for calling a frame number obtaining interface and reading the frame number from the picture;
a determining submodule 4032, configured to determine that the picture is a dynamic picture when the frame number is greater than 1 frame.
Preferably, the judging module 403 specifically includes:
the file binary stream reading interface calling submodule is used for calling the file binary stream reading interface and reading the binary code of the head specified digit of the picture;
and the judging format sub-module is used for judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code. Preferably, the determining format sub-module specifically includes:
and the comparison unit is used for comparing the binary code with the characteristic code of the binary dynamic format and judging whether the picture is a dynamic picture of the dynamic format.
A conversion unit for converting the binary code into a first code of a designated binary;
and the judging unit is used for comparing the first code with the feature code of the dynamic format of the designated system and judging whether the picture is the dynamic picture of the dynamic format.
Preferably, the method further comprises the following steps:
the initial dynamic picture judging submodule is used for judging whether the picture is a dynamic picture in a dynamic format according to the binary code as an initial dynamic picture;
a reading frame number submodule used for calling a frame number acquisition interface and reading the frame number from the picture;
and the interface display sub-module is used for determining that the picture is the final dynamic picture when the frame number is greater than 1 frame, and entering a step of displaying the dynamic picture in the opened dynamic image display interface.
A display module 404, configured to display the dynamic picture in the opened dynamic image display interface if the picture is a dynamic picture.
Preferably, the display module 404 specifically includes:
the extraction submodule is used for extracting the time information of the dynamic picture;
the ordering submodule is used for ordering the dynamic pictures according to the time information;
and the sequencing result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
Preferably, the display module 404 specifically includes:
the time extraction submodule is used for extracting the time information of the dynamic picture and the application of the dynamic picture;
the time sequencing submodule is used for sequencing all the dynamic pictures according to the time information;
and the result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the application of the sequencing result.
A menu bar triggering module 405, configured to pop up a menu bar according to a specified triggering operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
And the collection module 406 is configured to upload the dynamic image to a server for collection when a trigger operation for a collection component of the menu bar is received.
The sharing menu generating module 407 is configured to generate a sharing menu bar when receiving a triggering operation of a sharing component for the menu bar; the sharing menu bar comprises a name list of the sharing target application.
The sharing module 408 is configured to share the corresponding image with the target sharing application if a trigger operation of sharing a name of the target application in the sharing menu bar is received.
In the embodiment of the invention, after the opening operation of the dynamic image display interface is received, the pictures in the folders under the preset paths are scanned, the method for reading the file header or the mode for acquiring the number of the file frames is utilized to determine the dynamic pictures in the folders, the dynamic pictures are displayed in the appointed dynamic file display interface, and when the dynamic pictures in the file display interface are clicked or pressed, an operation menu bar is generated for the user to further perform specific operation on the dynamic pictures. The problem that when a user views the dynamic pictures in each folder, the dynamic pictures need to be searched one by one, time and labor are wasted is solved, and the method has the advantage that the user can view all the dynamic pictures in the system in a unified mode in a specified interface and perform specific operation.
For the device embodiment, since it is basically similar to the method embodiment, the description is simple, and for the relevant points, refer to the partial description of the method embodiment.
Fig. 5 shows only a portion related to the embodiment of the present invention for convenience of description, and please refer to the method portion in the embodiment of the present invention for details that are not disclosed. The terminal may be any terminal device including a mobile phone, a tablet computer, a PDA (Personal Digital Assistant), a POS (Point of Sales), a vehicle-mounted computer, etc., taking the terminal as the mobile phone as an example:
fig. 5 is a block diagram illustrating a partial structure of a mobile phone related to a mobile terminal according to an embodiment of the present invention. Referring to fig. 5, the handset includes: radio Frequency (RF) circuit 510, memory 520, input unit 530, display unit 540, sensor 550, audio circuit 560, wireless fidelity (WiFi) module 570, processor 580, and power supply 590. Those skilled in the art will appreciate that the handset configuration shown in fig. 5 is not intended to be limiting and may include more or fewer components than those shown, or some components may be combined, or a different arrangement of components.
The following describes each component of the mobile phone in detail with reference to fig. 5:
RF circuit 510 may be used for receiving and transmitting signals during information transmission and reception or during a call, and in particular, for processing downlink information of a base station after receiving the downlink information to processor 580; in addition, the data for designing uplink is transmitted to the base station. In general, RF circuit 510 includes, but is not limited to, an antenna, at least one Amplifier, a transceiver, a coupler, a Low Noise Amplifier (LNA), a duplexer, and the like. In addition, RF circuit 510 may also communicate with networks and other devices via wireless communication. The wireless communication may use any communication standard or protocol, including but not limited to Global System for Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), email, Short Messaging Service (SMS), and the like.
The memory 520 may be used to store software programs and modules, and the processor 580 executes various functional applications and data processing of the mobile phone by operating the software programs and modules stored in the memory 520. The memory 520 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 520 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The input unit 530 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the cellular phone. Specifically, the input unit 530 may include a touch panel 531 and other input devices 532. The touch panel 531, also called a touch screen, can collect touch operations of a user on or near the touch panel 531 (for example, operations of the user on or near the touch panel 531 by using any suitable object or accessory such as a finger or a stylus pen), and drive the corresponding connection device according to a preset program. Alternatively, the touch panel 531 may include two parts, a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, and sends the touch point coordinates to the processor 580, and can receive and execute commands sent by the processor 580. In addition, the touch panel 531 may be implemented by various types such as a resistive type, a capacitive type, an infrared ray, and a surface acoustic wave. The input unit 530 may include other input devices 532 in addition to the touch panel 531. In particular, other input devices 532 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, a joystick, and the like.
The display unit 540 may be used to display information input by the user or information provided to the user and various menus of the mobile phone. The Display unit 540 may include a Display panel 541, and optionally, the Display panel 541 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like. Further, the touch panel 531 may cover the display panel 541, and when the touch panel 531 detects a touch operation on or near the touch panel 531, the touch panel is transmitted to the processor 580 to determine the type of the touch event, and then the processor 580 provides a corresponding visual output on the display panel 541 according to the type of the touch event. Although the touch panel 531 and the display panel 541 are shown as two separate components in fig. 5 to implement the input and output functions of the mobile phone, in some embodiments, the touch panel 531 and the display panel 541 may be integrated to implement the input and output functions of the mobile phone.
The handset may also include at least one sensor 550, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor may include an ambient light sensor and a proximity sensor, wherein the ambient light sensor may adjust the brightness of the display panel 541 according to the brightness of ambient light, and the proximity sensor may turn off the display panel 541 and/or the backlight when the mobile phone is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally, three axes), can detect the magnitude and direction of gravity when stationary, and can be used for applications of recognizing the posture of a mobile phone (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), vibration recognition related functions (such as pedometer and tapping), and the like; as for other sensors such as a gyroscope, a barometer, a hygrometer, a thermometer, and an infrared sensor, which can be configured on the mobile phone, further description is omitted here.
Audio circuitry 560, speaker 561, and microphone 562 may provide an audio interface between a user and a cell phone. The audio circuit 560 may transmit the electrical signal converted from the received audio data to the speaker 561, and convert the electrical signal into a sound signal by the speaker 561 for output; on the other hand, the microphone 562 converts the collected sound signals into electrical signals, which are received by the audio circuit 560 and converted into audio data, which are then processed by the audio data output processor 580, and then passed through the RF circuit 510 to be sent to, for example, another cellular phone, or output to the memory 520 for further processing.
WiFi belongs to short distance wireless transmission technology, and the mobile phone can help the user to send and receive e-mail, browse web pages, access streaming media, etc. through the WiFi module 570, which provides wireless broadband internet access for the user. Although fig. 5 shows the WiFi module 570, it is understood that it does not belong to the essential constitution of the handset, and can be omitted entirely as needed within the scope not changing the essence of the invention.
The processor 580 is a control center of the mobile phone, connects various parts of the entire mobile phone by using various interfaces and lines, and performs various functions of the mobile phone and processes data by operating or executing software programs and/or modules stored in the memory 520 and calling data stored in the memory 520, thereby performing overall monitoring of the mobile phone. Alternatively, processor 580 may include one or more processing units; preferably, the processor 580 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 580.
The handset also includes a power supply 590 (e.g., a battery) for powering the various components, which may preferably be logically coupled to the processor 580 via a power management system, such that the power management system may be used to manage charging, discharging, and power consumption.
Although not shown, the mobile phone may further include a camera, a bluetooth module, etc., which are not described herein.
In the embodiment of the present invention, the processor 580 included in the mobile terminal further has the following functions: receiving opening operation of a dynamic image display interface; scanning pictures in the folders under the preset paths; judging whether the picture is a dynamic picture or not; and if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface.
Optionally, the processor 580 also has the following functions: calling a frame number acquisition interface, and reading frame numbers from the pictures; and when the frame number is greater than 1 frame, determining that the picture is a dynamic picture.
Optionally, the processor 580 also has the following functions: calling a file binary stream reading interface, and reading the binary code of the head specified digit of the picture;
and judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code.
Optionally, the processor 580 also has the following functions: and comparing the binary code with the characteristic code of the binary dynamic format to judge whether the picture is a dynamic picture of the dynamic format.
Optionally, the processor 580 also has the following functions: converting the binary code into a first code of a specified system; and comparing the first code with the feature code of the dynamic format of the designated system, and judging whether the picture is the dynamic picture of the dynamic format.
Optionally, the processor 580 also has the following functions: taking the dynamic picture which is judged whether the picture is in a dynamic format or not according to the binary coding as an initial dynamic picture; calling a frame number acquisition interface, and reading frame numbers from the picture; and when the frame number is more than 1 frame, determining that the picture is a final dynamic picture, and entering a step of displaying the dynamic picture in an opened dynamic image display interface.
Optionally, the processor 580 also has the following functions: extracting time information of the dynamic picture;
sequencing the dynamic pictures according to the time information; and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
Optionally, the processor 580 also has the following functions: extracting time information of the dynamic picture and an application of the dynamic picture; sequencing the dynamic pictures according to the time information; and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result and the application of the dynamic picture.
Optionally, the processor 580 also has the following functions: popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
Optionally, the processor 580 also has the following functions: and when a trigger operation aiming at the collection component of the menu bar is received, uploading the dynamic image to a server for collection.
Optionally, the processor 580 also has the following functions: when receiving a triggering operation of a sharing component aiming at the menu bar, generating a sharing menu bar; the sharing menu bar comprises a name list of the sharing target application.
Optionally, the processor 580 also has the following functions: and if the triggering operation of a sharing target application name in the sharing menu bar is received, sharing the corresponding image to the target sharing application.
It is clear to those skilled in the art that, for convenience and brevity of description, the specific working processes of the above-described systems, apparatuses and units may refer to the corresponding processes in the foregoing method embodiments, and are not described herein again.
In the embodiments provided in the present invention, it should be understood that the disclosed system, apparatus and method may be implemented in other ways. For example, the above-described apparatus embodiments are merely illustrative, and for example, the division of the units is only one logical division, and other divisions may be realized in practice, for example, a plurality of units or components may be combined or integrated into another system, or some features may be omitted, or not executed. In addition, the shown or discussed mutual coupling or direct coupling or communication connection may be an indirect coupling or communication connection through some interfaces, devices or units, and may be in an electrical, mechanical or other form.
The units described as separate parts may or may not be physically separate, and parts displayed as units may or may not be physical units, may be located in one place, or may be distributed on a plurality of network units. Some or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment.
In addition, functional units in the embodiments of the present invention may be integrated into one processing unit, or each unit may exist alone physically, or two or more units are integrated into one unit. The integrated unit can be realized in a form of hardware, and can also be realized in a form of a software functional unit.
Those skilled in the art will appreciate that all or part of the steps in the methods of the above embodiments may be implemented by associated hardware instructed by a program, which may be stored in a computer-readable storage medium, and the storage medium may include: read Only Memory (ROM), Random Access Memory (RAM), magnetic or optical disks, and the like.
It will be understood by those skilled in the art that all or part of the steps in the method for implementing the above embodiments may be implemented by hardware that is instructed to implement by a program, and the program may be stored in a computer-readable storage medium, and the above-mentioned storage medium may be a read-only memory, a magnetic disk or an optical disk, etc.
The method, the apparatus and the mobile terminal for displaying a dynamic image provided by the present invention are described in detail above, and a person skilled in the art may change the embodiments and the application scope according to the idea of the embodiment of the present invention.
The invention discloses A1, a method for displaying dynamic images, which comprises the following steps: receiving opening operation of a dynamic image display interface;
scanning pictures in the folders under the preset paths;
judging whether the picture is a dynamic picture or not;
and if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface.
A2, the method according to a1, wherein the step of determining whether the picture is a moving picture comprises:
calling a frame number acquisition interface, and reading frame numbers from the pictures;
and when the frame number is greater than 1 frame, determining that the picture is a dynamic picture.
A3, the method according to a1, wherein the step of determining whether the picture is a moving picture comprises:
calling a file binary stream reading interface, and reading the binary code of the head specified digit of the picture;
and judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code.
A4, the method of A3, wherein the step of determining whether the picture is a motion picture in motion picture format according to the binary coding comprises:
and comparing the binary code with the characteristic code of the binary dynamic format to judge whether the picture is a dynamic picture of the dynamic format.
A5, the method of A3, wherein the step of determining whether the picture is a motion picture in motion picture format according to the binary coding comprises:
converting the binary code into a first code of a specified system;
and comparing the first code with the feature code of the dynamic format of the designated system, and judging whether the picture is the dynamic picture of the dynamic format.
A6, the method as in A3, further comprising after the step of determining whether the picture is a dynamic picture in dynamic format according to the binary coding:
taking the dynamic picture which is judged whether the picture is in a dynamic format or not according to the binary coding as an initial dynamic picture;
calling a frame number acquisition interface, and reading frame numbers from the picture;
and when the frame number is more than 1 frame, determining that the picture is a final dynamic picture, and entering a step of displaying the dynamic picture in an opened dynamic image display interface.
A7, the method according to A1, wherein the step of displaying the moving picture in the opened moving picture display interface comprises:
extracting time information of the dynamic picture;
sequencing the dynamic pictures according to the time information;
and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
A8, the method according to A1, wherein the step of displaying the moving picture in the opened moving picture display interface comprises:
extracting time information of the dynamic picture and an application of the dynamic picture;
sequencing the dynamic pictures according to the time information;
and displaying each dynamic picture in the dynamic picture display interface according to the sequencing result and the application of the dynamic picture.
A9, the method as in a1, further comprising, after the step of displaying the moving picture in the opened moving picture presentation interface:
popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
A10, the method as in a9, further comprising, after the step of popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture displaying interface:
and when a trigger operation aiming at the collection component of the menu bar is received, uploading the dynamic image to a server for collection.
A11, the method as in a9, further comprising, after the step of popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic picture displaying interface:
when receiving a triggering operation of a sharing component aiming at the menu bar, generating a sharing menu bar; the sharing menu bar comprises a name list of the sharing target application.
A12, the method as in a11, further comprising, after the step of generating a shared menu bar when a triggering operation for a sharing component of the menu bar is received:
and if the triggering operation of a sharing target application name in the sharing menu bar is received, sharing the corresponding image to the target sharing application.
The invention also discloses B13, a device for displaying dynamic images, comprising: the display interface opening module is used for receiving opening operation of the dynamic image display interface;
the image acquisition module is used for scanning images in the folders under the preset paths;
the judging module is used for judging whether the picture is a dynamic picture or not;
and the display module is used for displaying the dynamic picture in the opened dynamic image display interface if the picture is the dynamic picture.
B14, the apparatus as in B13, the determining module comprising:
the frame number acquisition interface calling submodule is used for calling a frame number acquisition interface and reading the frame number from the picture;
and the determining submodule is used for determining that the picture is a dynamic picture when the frame number is greater than 1 frame.
B15, the apparatus as in B13, the determining module comprising:
the file binary stream reading interface calling submodule is used for calling the file binary stream reading interface and reading the binary code of the head specified digit of the picture;
and the judging format sub-module is used for judging whether the picture is a dynamic picture in a dynamic format or not according to the binary code.
B16, the apparatus as described in B15, the decision format sub-module comprising:
and the comparison unit is used for comparing the binary code with the characteristic code of the binary dynamic format and judging whether the picture is a dynamic picture of the dynamic format.
B17, the apparatus as described in B15, the decision format sub-module comprising:
a conversion unit for converting the binary code into a first code of a designated binary;
and the judging unit is used for comparing the first code with the feature code of the dynamic format of the designated system and judging whether the picture is the dynamic picture of the dynamic format.
B18, the device as described in B15, an initial motion picture determining sub-module, configured to determine whether the picture is a motion picture in motion format according to the binary coding as an initial motion picture;
a reading frame number submodule used for calling a frame number acquisition interface and reading the frame number from the picture;
and the interface display sub-module is used for determining that the picture is the final dynamic picture when the frame number is greater than 1 frame, and entering a step of displaying the dynamic picture in the opened dynamic image display interface.
B19, the device of B13, the display module comprising:
the extraction submodule is used for extracting the time information of the dynamic picture;
the ordering submodule is used for ordering the dynamic pictures according to the time information;
and the sequencing result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the sequencing result.
B20, the device of B13, the display module comprising:
the time extraction submodule is used for extracting the time information of the dynamic picture and the application of the dynamic picture;
the time sequencing submodule is used for sequencing all the dynamic pictures according to the time information;
and the result display submodule is used for displaying each dynamic picture in the dynamic picture display interface according to the application of the sequencing result.
B21, the apparatus of B13, further comprising: the menu bar triggering module is used for popping up a menu bar according to the specified triggering operation on a dynamic picture in the dynamic picture display interface; the menu bar comprises at least one of a collection component and a sharing component.
B22, the apparatus of B21, further comprising: and the collection module is used for uploading the dynamic image to a server for collection when receiving the triggering operation of the collection component aiming at the menu bar.
B23, the apparatus of B21, further comprising: the sharing menu generating module is used for generating a sharing menu bar when receiving the triggering operation of the sharing component aiming at the menu bar; the sharing menu bar comprises a name list of the sharing target application.
B24, the apparatus of B21, further comprising: and the sharing module is used for sharing the corresponding image to the target sharing application if the triggering operation of a sharing target application name in the sharing menu bar is received.
The invention also discloses C25, a mobile terminal, comprising a processor and a memory,
the memory is used for storing a program for executing the method of one dynamic image presentation described in any one of A1 to A12;
the processor is configured to execute programs stored in the memory.

Claims (21)

1. A method for presenting a dynamic image, comprising:
receiving opening operation of a dynamic image display interface;
scanning pictures in the folders under the preset paths;
judging whether the picture is a dynamic picture or not;
if the picture is a dynamic picture, displaying the dynamic picture in the opened dynamic image display interface;
the step of judging whether the picture is a dynamic picture comprises the following steps:
calling a frame number acquisition interface, reading a frame number from the picture, and determining that the picture is a dynamic picture when the frame number is greater than 1 frame;
or;
and calling a file binary stream reading interface, reading a binary code of the head specified digit of the picture, and judging whether the picture is a dynamic picture in a dynamic format according to the binary code.
2. The method of claim 1, wherein the step of determining whether the picture is a dynamic picture in a dynamic format according to the binary coding comprises:
and comparing the binary code with the characteristic code of the binary dynamic format to judge whether the picture is a dynamic picture of the dynamic format.
3. The method of claim 1, wherein the step of determining whether the picture is a dynamic picture in a dynamic format according to the binary coding comprises:
converting the binary code into a first code of a specified system;
and comparing the first code with the feature code of the dynamic format of the designated system, and judging whether the picture is the dynamic picture of the dynamic format.
4. The method of claim 1, wherein the step of determining whether the picture is a dynamic picture in a dynamic format according to the binary coding further comprises:
taking the dynamic picture which is judged whether the picture is in a dynamic format or not according to the binary coding as an initial dynamic picture;
calling a frame number acquisition interface, and reading frame numbers from the picture;
and when the frame number is more than 1 frame, determining that the picture is a final dynamic picture, and entering a step of displaying the dynamic picture in an opened dynamic image display interface.
5. The method of claim 1, wherein the step of displaying the moving picture in the opened moving picture presentation interface comprises:
extracting time information of the dynamic picture;
sequencing the dynamic pictures according to the time information;
and displaying each dynamic picture in the dynamic image display interface according to the sequencing result.
6. The method of claim 1, wherein the step of displaying the moving picture in the opened moving picture presentation interface comprises:
extracting time information of the dynamic picture and an application of the dynamic picture;
sequencing the dynamic pictures according to the time information;
and displaying each dynamic picture in the dynamic image display interface according to the sequencing result and the application of the dynamic picture.
7. The method of claim 1, wherein after the step of displaying the moving picture in the opened moving picture presentation interface, further comprising:
popping up a menu bar according to a specified trigger operation on a dynamic picture in the dynamic image display interface; the menu bar comprises at least one of a collection component and a sharing component.
8. The method as claimed in claim 7, wherein after said step of popping up a menu bar according to a specified trigger operation on a moving picture in said moving picture presentation interface, further comprising:
and when a trigger operation aiming at the collection component of the menu bar is received, uploading the dynamic picture to a server for collection.
9. The method as claimed in claim 8, wherein after said step of popping up a menu bar according to a specified trigger operation on a moving picture in said moving picture presentation interface, further comprising:
when receiving a triggering operation of a sharing component aiming at the menu bar, generating a sharing menu bar; the sharing menu bar comprises a name list of the target sharing application.
10. The method of claim 9, wherein after said step of generating a shared menu bar upon receiving a trigger for a shared component of said menu bar, further comprising:
and if the triggering operation of a sharing target application name in the sharing menu bar is received, sharing the corresponding dynamic picture to the target sharing application.
11. An apparatus for displaying a moving image, comprising:
the display interface opening module is used for receiving opening operation of the dynamic image display interface;
the image acquisition module is used for scanning images in the folders under the preset paths;
the judging module is used for judging whether the picture is a dynamic picture or not;
the display module is used for displaying the dynamic picture in the opened dynamic image display interface if the picture is the dynamic picture;
the judging module comprises:
a frame number obtaining interface calling submodule for calling a frame number obtaining interface, reading a frame number from the picture, and a determining submodule for determining that the picture is a dynamic picture when the frame number is greater than 1 frame;
or;
the file binary stream reading interface calling submodule is used for calling the file binary stream reading interface, reading the binary code of the head specified digit of the picture, and the judging format submodule is used for judging whether the picture is a dynamic picture in a dynamic format according to the binary code.
12. The apparatus of claim 11, wherein the decision format sub-module comprises:
and the comparison unit is used for comparing the binary code with the characteristic code of the binary dynamic format and judging whether the picture is a dynamic picture of the dynamic format.
13. The apparatus of claim 11, wherein the decision format sub-module comprises:
a conversion unit for converting the binary code into a first code of a designated binary;
and the judging unit is used for comparing the first code with the feature code of the dynamic format of the designated system and judging whether the picture is the dynamic picture of the dynamic format.
14. The apparatus of claim 11, further comprising:
the initial dynamic picture judging submodule is used for judging whether the picture is a dynamic picture in a dynamic format according to the binary code as an initial dynamic picture;
a reading frame number submodule used for calling a frame number acquisition interface and reading the frame number from the picture;
and the interface display sub-module is used for determining that the picture is the final dynamic picture when the frame number is greater than 1 frame, and entering a step of displaying the dynamic picture in the opened dynamic image display interface.
15. The apparatus of claim 11, wherein the display module comprises:
the extraction submodule is used for extracting the time information of the dynamic picture;
the ordering submodule is used for ordering the dynamic pictures according to the time information;
and the sequencing result display submodule is used for displaying each dynamic picture in the dynamic image display interface according to the sequencing result.
16. The apparatus of claim 11, wherein the display module comprises:
the time extraction submodule is used for extracting the time information of the dynamic picture and the application of the dynamic picture;
the time sequencing submodule is used for sequencing all the dynamic pictures according to the time information;
and the result display submodule is used for displaying each dynamic picture in the dynamic image display interface according to the application of the sorted result.
17. The apparatus of claim 11, further comprising:
the menu bar triggering module is used for popping up a menu bar according to the specified triggering operation on a dynamic picture in the dynamic image display interface; the menu bar comprises at least one of a collection component and a sharing component.
18. The apparatus of claim 17, further comprising:
and the collection module is used for uploading the dynamic picture to a server for collection when receiving the triggering operation of the collection component aiming at the menu bar.
19. The apparatus of claim 17, further comprising:
the sharing menu generating module is used for generating a sharing menu bar when receiving the triggering operation of the sharing component aiming at the menu bar; the sharing menu bar comprises a name list of the target sharing application.
20. The apparatus of claim 19, further comprising:
and the sharing module is used for sharing the corresponding dynamic picture to the target sharing application if the triggering operation of a sharing target application name in the sharing menu bar is received.
21. A mobile terminal comprising a processor and a memory,
the memory is used for storing a program for executing the method for displaying a dynamic image according to any one of claims 1 to 10;
the processor is configured to execute programs 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 CN107145515A (en) 2017-09-08
CN107145515B true 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 (3)

* 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
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device
CN105657070A (en) * 2012-11-26 2016-06-08 北京奇虎科技有限公司 Method and server for providing picture data to computing terminal

Family Cites Families (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP4968608B2 (en) * 2008-01-24 2012-07-04 キヤノン株式会社 Moving picture reproducing apparatus and method, program, and storage medium
CN104462128B (en) * 2013-09-22 2018-04-13 腾讯科技(深圳)有限公司 The method, apparatus and terminal device of multimedia file processing
CN104811791B (en) * 2015-04-23 2016-07-06 北京奇虎科技有限公司 Method, device and the terminal device of video cleaning
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 (3)

* 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
CN105657070A (en) * 2012-11-26 2016-06-08 北京奇虎科技有限公司 Method and server for providing picture data to computing terminal
CN103986933A (en) * 2014-04-24 2014-08-13 小米科技有限责任公司 Dynamic picture displaying method and device

Also Published As

Publication number Publication date
CN107145515A (en) 2017-09-08

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
CN106856543B (en) Picture display method and device and mobile terminal
CN106250122B (en) Information prompting method and device
CN110830363B (en) Information sharing method and electronic equipment
CN110442297B (en) Split screen display method, split screen display device and terminal equipment
CN108255372A (en) A kind of desktop application icon method for sorting and mobile terminal
CN108241467A (en) Application combination operating method, mobile terminal and computer readable storage medium
CN108460769B (en) image processing method and terminal equipment
CN111610903A (en) Information display method and electronic equipment
CN107330867B (en) Image synthesis method, image synthesis device, computer-readable storage medium and computer equipment
CN106657641B (en) A kind of method and relevant device optimizing sharing mode
CN107888759A (en) A kind of method, equipment and computer-readable recording medium realized information and sent
CN107678822B (en) A kind of information processing method and device, terminal and readable storage medium storing program for executing
CN112131438A (en) Information generation method, information display method and device
CN106934003B (en) File processing method and mobile terminal
CN108255374A (en) The deployment method and terminal device of a kind of file
CN106293407B (en) Picture display method and terminal equipment
CN110543276B (en) Picture screening method and terminal equipment thereof
CN108121762A (en) A kind of image processing method, mobile terminal and computer storage media
CN109521916B (en) File processing method based on flexible screen, mobile terminal and storage medium
CN109309755B (en) Mobile terminal and APP display method and device
CN106777383B (en) File sorting method and intelligent terminal
CN106201262A (en) A kind of startup method of application program and terminal unit
CN107145515B (en) Method and device for displaying dynamic image and mobile terminal

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