WO2019101043A1 - Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique - Google Patents

Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique Download PDF

Info

Publication number
WO2019101043A1
WO2019101043A1 PCT/CN2018/116245 CN2018116245W WO2019101043A1 WO 2019101043 A1 WO2019101043 A1 WO 2019101043A1 CN 2018116245 W CN2018116245 W CN 2018116245W WO 2019101043 A1 WO2019101043 A1 WO 2019101043A1
Authority
WO
WIPO (PCT)
Prior art keywords
terminal
gif
image
data corresponding
format data
Prior art date
Application number
PCT/CN2018/116245
Other languages
English (en)
Chinese (zh)
Inventor
欧阳典玖
Original Assignee
广州市百果园网络科技有限公司
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 广州市百果园网络科技有限公司 filed Critical 广州市百果园网络科技有限公司
Publication of WO2019101043A1 publication Critical patent/WO2019101043A1/fr

Links

Images

Classifications

    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0602Interfaces specially adapted for storage systems specifically adapted to achieve a particular effect
    • G06F3/0608Saving storage space on storage systems
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/064Management of blocks
    • G06F3/0641De-duplication techniques
    • 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/06Digital input from, or digital output to, record carriers, e.g. RAID, emulated record carriers or networked record carriers
    • G06F3/0601Interfaces specially adapted for storage systems
    • G06F3/0628Interfaces specially adapted for storage systems making use of a particular technique
    • G06F3/0638Organizing or formatting or addressing of data
    • G06F3/0643Management of files

Definitions

  • the present invention relates to the field of intelligent terminal technologies, and in particular, to an image processing method, a terminal, a computer storage medium, and a computer program.
  • the terminal needs to decode the GIF picture every time the user requests the terminal to load the same GIF picture.
  • the decoding operation takes a certain amount of time, which causes the terminal to load the GIF picture for a long time.
  • the embodiment of the invention provides an image processing method, a terminal, a computer storage medium and a computer program, which can shorten the playing time of the image, improve the image playing efficiency, improve the user experience, and can save the GIF in the memory when the deletion condition is met.
  • Bitmap (BMP) format data corresponding to the image is deleted to avoid occupying too much memory resources.
  • an embodiment of the present invention provides an image processing method, where the method includes:
  • the terminal in response to the first request, acquiring bitmap BMP format data corresponding to the GIF image from a memory of the terminal, where the BMP format data is data obtained by decoding the GIF image;
  • the terminal plays BMP format data corresponding to the GIF image
  • the BMP format data corresponding to the GIF image saved in the memory of the terminal is deleted.
  • the terminal when the terminal receives the request for playing the GIF image sent by the user, the bitmap corresponding to the image is directly obtained from the memory of the terminal, instead of repeatedly decoding the GIF image, because the entire playback process reduces the repetition.
  • the decoding operation can shorten the playback time of the image, improve the image playback efficiency, and improve the user experience.
  • the terminal when the GIF image is not requested by the user for a certain period of time, the terminal can delete the BMP data corresponding to the GIF image saved in the memory, thereby reducing memory consumption and avoiding the terminal being stuck.
  • the terminal before the receiving, by the terminal, the first request for playing the image interchange format GIF image sent by the user, the terminal further includes:
  • the terminal in response to the third request, reads GIF format data corresponding to the GIF image from a disk of the terminal;
  • the terminal saves BMP format data corresponding to the GIF image in a memory of the terminal and a disk of the terminal.
  • the terminal when the terminal receives the request for playing the GIF image sent by the user, if the BMP format data corresponding to the GIF image is not stored in the memory of the terminal, the terminal decodes the GIF image to obtain the corresponding BMP format data, and Save it in the memory.
  • the terminal receives the request for playing the GIF image sent by the user, the BMP format data corresponding to the GIF image can be directly obtained from the memory without decoding the GIF image again. Reduce the playback time of the image.
  • the terminal in response to the fourth request, acquiring BMP format data corresponding to the GIF image from a disk of the terminal;
  • the terminal saves BMP format data corresponding to the GIF image in a memory of the terminal.
  • the terminal when receiving the request for playing the GIF image sent by the user, if the BMP format data corresponding to the GIF image in the memory of the terminal is deleted when the preset duration is reached, the terminal obtains the disk from the terminal.
  • the BMP format data corresponding to the GIF image is saved in the memory of the terminal without repeatedly decoding the GIF image, thereby shortening the playing time of the image and improving the image playing efficiency.
  • the terminal the GIF format data corresponding to the GIF image is read from the disk of the terminal, including:
  • the terminal reads the GIF format data corresponding to the GIF image from the disk of the terminal in a read manner.
  • the GIF image includes the GIF image downloaded by the terminal through the server, and the terminal processes the GIF image (such as, but not limited to, cropping, bordering, de-frame, etc.), and then saves the GIF format data corresponding to the GIF image on the disk.
  • the terminal reads the GIF image by using the read mode
  • the GIF format data corresponding to the GIF image saved in the disk is first read into the kernel buffer, and the GIF format data corresponding to the GIF image is buffered from the kernel. The area is copied to memory.
  • the terminal the GIF format data corresponding to the GIF image is read from the disk of the terminal, including:
  • the terminal reads the GIF format data corresponding to the GIF image from the disk of the terminal by using a memory mapping manner.
  • the terminal reads the GIF image from the disk of the terminal by using the memory mapping manner, and reads the GIF image in the memory mapping manner without reading the data of the kernel buffer to the memory.
  • the terminal directly reads the GIF format data corresponding to the GIF image saved in the disk into the memory, thereby shortening the reading process time, thereby shortening the time for playing the GIF image, thereby shortening the time for playing the GIF image, thereby Can improve the efficiency of playing images.
  • the terminal in the GIF format data corresponding to the GIF image, includes:
  • the terminal decodes the GIF format data corresponding to the GIF image by using a user interface (UI) thread.
  • UI user interface
  • the terminal in the GIF format data corresponding to the GIF image, includes:
  • the terminal decodes the GIF format data corresponding to the GIF image by using a background thread.
  • the terminal decodes the target image by using a background thread, which can reduce the CPU consumption generated by the UI thread and avoid the jam of the UI thread, compared to decoding the GIF image by using the UI thread. .
  • the seventh implementation manner of the first aspect before the terminal plays the BMP format data corresponding to the GIF image, also includes:
  • the terminal closes the N applications, and performs the step of playing the BMP format data corresponding to the GIF image, where N is a positive integer, and the terminal closes the N applications after the terminal
  • the memory is greater than or equal to the memory required to play the BMP format data corresponding to the GIF image.
  • the terminal when the current memory of the terminal is less than the BMP format data corresponding to the GIF image, the terminal releases the memory resource by closing the application program, so as to meet the requirement of the user requesting to play the GIF image, so that the terminal currently has remaining memory.
  • the requirement to play the BMP format data corresponding to the GIF image is satisfied.
  • an embodiment of the present invention provides a terminal, where the terminal includes a module or unit for performing the image processing method described in the first aspect.
  • an embodiment of the present invention provides another terminal, including a processor and a memory, where the processor and the memory are connected to each other, wherein the memory is used to store a support terminal to perform the image processing method described in the first aspect.
  • Application code the processor being configured to perform the image processing method described in the first aspect.
  • an embodiment of the present invention provides a computer readable storage medium, where the computer storage medium stores a computer program, where the computer program includes program instructions, and the program instructions, when executed by a processor, cause the processing The image processing method described in the first aspect is performed.
  • an embodiment of the present invention provides a computer program, the computer program comprising program instructions that, when executed by a processor, cause the processor to perform the image processing method described in the first aspect.
  • the terminal when the terminal receives the request for playing the GIF image sent by the user for the first time, the terminal may decode the GIF image, and save the BMP bitmap format data corresponding to the decoded GIF image in the decoding.
  • the terminal when the terminal subsequently receives the request for the GIF image sent by the user again, the BMP format data corresponding to the GIF image can be directly obtained from the memory, and the BMP format data corresponding to the GIF image is directly played, and the GIF image is not needed again.
  • the decoding operation saves the decoding process of the terminal, shortens the time for the terminal to play the GIF image, improves the image playing efficiency, improves the user's experience of viewing the image, and can correspond to the GIF image saved in the memory when the deletion condition is satisfied.
  • Delete BMP format data to avoid taking up too much memory resources.
  • FIG. 1 is a schematic flowchart of an image processing method according to an embodiment of the present invention.
  • FIG. 2A is a schematic diagram of a chat interface of a WeChat application according to an embodiment of the present invention.
  • 2B is a schematic diagram of an expression interface according to an embodiment of the present invention.
  • 2C is a schematic diagram of a chat interface of another WeChat application according to an embodiment of the present invention.
  • 2D is a schematic diagram of another expression interface provided by an embodiment of the present invention.
  • FIG. 3 is a schematic flowchart of another image processing method according to an embodiment of the present invention.
  • FIG. 4 is a schematic flowchart of another image processing method according to an embodiment of the present invention.
  • FIG. 5 is a schematic flowchart diagram of another image processing method according to an embodiment of the present disclosure.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present disclosure.
  • FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • FIG. 1 is a schematic flowchart of an image processing method according to an embodiment of the present invention. As shown in FIG. 1 , the method includes, but is not limited to, the following steps S101-S104:
  • the terminal receives a first request for playing an image interchange format GIF image sent by a user.
  • the terminal may include a mobile phone, a tablet computer, a desktop computer, a personal digital assistant (PDA), a mobile internet device (MID), a smart wearable device (such as a smart watch, a smart bracelet), and the like.
  • PDA personal digital assistant
  • MID mobile internet device
  • smart wearable device such as a smart watch, a smart bracelet
  • the terminal may install multiple social applications, such as QQ, WeChat, Momo, MSN, YY, and the like.
  • the scenes applicable to the embodiments of the present invention include, but are not limited to, displaying a GIF animation thumbnail corresponding to the virtual gift in the YY channel, and the user can click the GIF animation thumbnail to trigger the terminal to play the GIF animation; in the instant messaging software (including but not limited to QQ, WeChat, Momo, MSN, etc.) display the GIF emoticon thumbnail in the chat interface, the user can click the GIF emoticon thumbnail to trigger the terminal to play the GIF emoticon.
  • the terminal may have a touch screen, and the touch screen may receive a click operation of the user.
  • the operation page of the application can be displayed, and the thumbnail corresponding to the multiple GIF images can be displayed on the operation page, and the user can trigger the playback of the GIF image by clicking the thumbnail corresponding to a certain GIF image.
  • the terminal receives the click operation of the user, that is, receives the first request sent by the user.
  • the thumbnail can also be displayed by the user.
  • FIG. 2A is a schematic diagram of a chat interface of a WeChat application according to an embodiment of the present invention. As shown in FIG.
  • FIG. 2A it is a schematic diagram of an expression interface provided by an embodiment of the present invention.
  • 204 is an expression interface.
  • a thumbnail corresponding to a plurality of GIF images can be displayed. For example, in FIG.
  • the expression interface 204 displays 8 GIF expressions, respectively, a GIF expression 1-GIF expression 8, assuming User A wants to send GIF expression 3 to user B, then user A can click GIF expression 3. After receiving the operation of user A clicking GIF expression 3, the terminal sends GIF expression 3 to user B. At this time, on chat interface 20 The animation of GIF Expression 3 will be played dynamically.
  • chat interface 20 The animation of GIF Expression 3 will be played dynamically.
  • the click operation as the first request sent by the user.
  • the form in which the user sends the first request may not be limited to the click operation.
  • the user may send a first request to play the GIF image to the terminal according to a thumbnail triggering operation corresponding to the GIF image, a sliding operation, or the like, or the user may also send the first playback of the GIF image to the terminal by voice or the like.
  • a request may be sent.
  • the terminal may not have a touch screen, and the user may click the mouse pointer to select a thumbnail corresponding to the GIF image displayed on the terminal display, thereby triggering the terminal to play the GIF image.
  • the terminal receives the mouse click operation, that is, receives the first request sent by the user.
  • the thumbnail can also be displayed by the user.
  • FIG. 2C is a schematic diagram of a chat interface of another WeChat application provided by an embodiment of the present invention. As shown in FIG.
  • FIG. 2C it is another schematic diagram of the expression interface provided by the embodiment of the present invention.
  • 204 is an expression interface, and a thumbnail image corresponding to a plurality of GIF images can be displayed in the expression interface 204. For example, in FIG.
  • the expression interface 204 displays 16 GIF expressions, respectively, a GIF expression 1-GIF expression 16, assuming User A wants to send GIF expression 3 to user B. User A can click GIF expression 3 with the mouse pointer. After receiving the operation of user A clicking GIF expression 3, the terminal sends GIF expression 3 to user B. At this time, chat The animation of GIF Expression 3 is dynamically played on the interface 20. It should be noted that the above chat interface and the expression interface are only examples. In a specific application, the manner in which the chat interface and the expression interface are presented and the displayed content may not be limited to the above examples.
  • the above is exemplified by the click operation of the mouse pointer as the first request sent by the user.
  • the click operation of the mouse by the user may include a click operation and a double-click operation, which are not specifically limited in the embodiment of the present invention.
  • the form in which the user sends the first request may not be limited to the click operation, and the user may also move the mouse pointer to send the first request for playing the GIF image to the terminal on the thumbnail corresponding to the GIF image.
  • the terminal obtains bitmap BMP format data corresponding to the GIF image from the memory of the terminal in response to the first request, where the BMP format data is data obtained by decoding the GIF image.
  • the memory of the terminal refers to the storage space of the corresponding operating system in the memory of the terminal, and the function thereof is to temporarily store the operation data of the CPU. All applications in the terminal are run in memory. For each application, there is storage space corresponding to the application in memory.
  • the terminal After receiving the request sent by the user to play a certain GIF image, the terminal acquires the bitmap BMP format data corresponding to the GIF image from the memory of the terminal in response to the request.
  • the acquisition operation is substantially a request for the terminal to play the GIF image in response to the user, and the bitmap BMP format data corresponding to the GIF image is obtained from the storage space corresponding to the application.
  • the user A clicks the thumbnail corresponding to the GIF expression 3 in the WeChat chat interface, and the terminal acquires the BMP format data corresponding to the GIF expression 3 from the storage space corresponding to the WeChat application in the memory.
  • the terminal plays BMP format data corresponding to the GIF image.
  • the terminal After acquiring the BMP format data corresponding to the GIF image, the terminal plays the BMP format data corresponding to the GIF image. For example, referring to FIG. 2B, after acquiring the BMP format data corresponding to the GIF expression 3 from the storage space corresponding to the WeChat application in the memory, the terminal plays the BMP format data corresponding to the GIF expression 3.
  • the timing can be started, and when the second request for playing the GIF image sent by the user has not been received when the timing reaches the preset duration, And deleting the BMP format data corresponding to the GIF image saved in the memory of the terminal.
  • the terminal may start timing, and when the second time request for playing the GIF image sent by the user has not been received when the timing reaches the preset duration, the The BMP format data corresponding to the GIF image saved in the memory of the terminal is deleted.
  • the second request is different from the first request, and the GIF image for the second request is the same as the GIF image for the first request, and the specific implementation of the second request may refer to the first request. Related descriptions are not described here.
  • the preset duration may be set by default by the terminal system, or may be set by the terminal user, which is not specifically limited in the embodiment of the present invention.
  • the preset duration can be 10 minutes.
  • the terminal receives the first request for playing the GIF expression 3 sent by the user, the time is 8 o'clock, and the preset duration is started from 8 o'clock, and ends at 8:10. If the preset time length arrives, that is, the time point reaches 8:10, the terminal has not received the second request sent by the user to play the GIF expression 3. At this time, the GIF expression saved in the memory of the terminal is deleted. The corresponding BMP format data, that is, the memory occupied by the BMP format data corresponding to the GIF expression 3 is released.
  • the terminal when the terminal receives the request for the GIF image sent by the user, the BMP format data corresponding to the GIF image is directly obtained from the memory, and the BMP format data corresponding to the GIF image is directly played, and the GIF is not needed.
  • the image is decoded, which saves the process of decoding the terminal, shortens the time for the terminal to play the GIF image, improves the image playing efficiency, improves the user's experience of viewing the image, and does not require the user to request the GIF image when the preset time is reached.
  • the terminal deletes the BMP format data corresponding to the GIF image from the memory, thereby avoiding occupying too much memory resources, thereby avoiding the jam phenomenon of the APP.
  • the terminal may further perform steps S105-S108 before performing the foregoing step S101.
  • steps S105-S108 are described in detail below.
  • the terminal receives a third request sent by the user to play the GIF image.
  • the GIF image for the third request is the same as the GIF image for the first request, and the third request may be understood as the user first triggering the play request for the GIF image.
  • the third request may also be triggered by the user clicking on a thumbnail of the GIF image.
  • the terminal in response to the third request, reads GIF format data corresponding to the GIF image from a disk of the terminal.
  • the terminal needs to read the GIF format data corresponding to the GIF image from the disk, and then The GIF format data corresponding to the GIF image is decoded to obtain BMP format data corresponding to the GIF image.
  • the terminal can read the GIF format data corresponding to the GIF image from the disk of the terminal by using a read mode.
  • the process is specifically: the terminal downloads the GIF image through the server, and the terminal processes the GIF image (such as, but not limited to, cropping, bordering, de-frame, etc.), and then saves the GIF format data corresponding to the GIF image on the disk.
  • the terminal After the terminal reads the GIF image by using the read mode, the GIF format data corresponding to the GIF image saved in the disk is first read into the kernel buffer, and the GIF format data corresponding to the GIF image is buffered from the kernel. The area is copied to memory.
  • the terminal may also use the memory mapping manner to read the GIF format data corresponding to the GIF image from the disk of the terminal.
  • the memory mapping manner reads the GIF image without going through the data copy of the kernel buffer.
  • the process of going to the memory that is, the terminal directly reads the GIF format data corresponding to the GIF image saved in the disk into the memory, thereby shortening the reading process time and shortening the time for playing the GIF image. , which can improve the efficiency of playing images.
  • S107 The terminal decodes GIF format data corresponding to the GIF image to obtain BMP format data corresponding to the GIF image; and the terminal plays BMP format data corresponding to the GIF image.
  • the terminal may use the UI thread to decode the GIF format data corresponding to the GIF image.
  • the terminal may also use the background thread to decode the GIF format data corresponding to the GIF image, and decode the GIF format data corresponding to the GIF image by using the background thread compared with the UI thread to decode the GIF format data corresponding to the GIF image.
  • the background thread can reduce the CPU consumption generated by the UI thread and avoid the jam of the UI thread.
  • the terminal saves BMP format data corresponding to the GIF image in a memory of the terminal and a disk of the terminal.
  • the terminal saves the BMP format data corresponding to the GIF image on the disk of the terminal, and the purpose is that after the terminal deletes the BMP format data corresponding to the GIF image from the memory, the terminal can directly obtain the GIF image corresponding to the GIF image from the disk.
  • the BMP format data is stored in the memory, and the GIF format data corresponding to the GIF image is obtained from the disk again, and decoded to obtain the BMP format data corresponding to the GIF image, thereby shortening the BMP format corresponding to the GIF image.
  • the time of the data in turn, can shorten the time for playing the image.
  • steps S101-S104 in FIG. 3 For the specific implementation of the steps S101-S104 in FIG. 3, reference may be made to the steps S101-S104 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • the terminal when the terminal receives the request for playing the GIF image sent by the user, if the BMP format data corresponding to the GIF image is not stored in the memory of the terminal, the terminal decodes the GIF image to obtain the corresponding BMP format data. And storing the same in the memory, when the terminal subsequently receives the request for playing the target image sent by the user again, the BMP format data corresponding to the GIF image can be directly obtained from the memory, without performing the decoding operation on the GIF image again, Reduce the playback time of the image.
  • the terminal may further perform steps S109-S111.
  • steps S109-S111 are described in detail below.
  • the terminal receives a fourth request sent by the user to play the GIF image.
  • the GIF image for the fourth request is the same as the GIF image for the first request, and the fourth request may be understood as the user triggering the play request for the GIF image again.
  • the fourth request may also be triggered by the user clicking on a thumbnail of the GIF image.
  • the terminal in response to the fourth request, acquires BMP format data corresponding to the GIF image from a disk of the terminal, and the terminal plays BMP format data corresponding to the GIF image.
  • the user triggers the play request again for a certain GIF image. Since the request does not occur within the time period when the preset time length arrives, the BMP format data corresponding to the GIF image originally saved in the memory of the terminal has been deleted. At this time, the terminal directly obtains the BMP format data corresponding to the GIF image from the disk, and does not need to decode the format data of the GIF image obtained from the disk of the terminal to obtain the BMP format data corresponding to the GIF image, that is, the number is reduced. Decoding operation.
  • the terminal saves BMP format data corresponding to the GIF image in a memory of the terminal.
  • steps S101-S104 in FIG. 4 For the specific implementation of the steps S101-S104 in FIG. 4, reference may be made to the steps S101-S104 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • the terminal when the terminal receives the request for playing the GIF image sent by the user, the BMP corresponding to the GIF image originally saved in the memory of the terminal occurs because the request does not occur within the time period when the preset time is reached.
  • the format data has been deleted.
  • the terminal directly obtains the BMP format data corresponding to the GIF image from the disk, and saves the data in the memory, thereby avoiding acquiring the GIF format data corresponding to the GIF image from the disk again, and decoding to obtain the BMP format data corresponding to the GIF image.
  • the time for acquiring the BMP format data corresponding to the GIF image is shortened, and the time for playing the image can be shortened.
  • the image processing method may further include steps S105-S108, S101-S104, and S109-S111.
  • steps S105-S108, S101-S104, and S109-S111 For specific implementations of the steps, reference may be made to related descriptions in the foregoing embodiments, and details are not described herein again.
  • the terminal may further perform the steps S112-S113 before performing the foregoing step S103.
  • FIG. 5 it is a schematic flowchart of another image processing method according to an embodiment of the present invention. Steps S112-S113 are described in detail below.
  • step S112 The terminal determines whether the current memory of the terminal is greater than or equal to the memory required to play the BMP format data corresponding to the GIF image. If yes, step S103 is performed; if no, step S113 is performed.
  • the memory required to play the BMP format data corresponding to the GIF image may be the memory required to play the BMP format data corresponding to the GIF image in the terminal history record, or may be the default GIF playback of the terminal.
  • the memory required for the BMP format data corresponding to the image, the terminal may also know the memory required to play the BMP format data corresponding to the GIF image by other means.
  • the memory required for playing the BMP format data corresponding to the GIF image of the terminal default device is 200K. If the current memory of the current terminal is greater than or equal to 200K, step S103 is performed; otherwise, step S113 is performed.
  • the terminal closes N applications, and then performs step S103, where N is a positive integer. After the terminal closes the N applications, the memory of the terminal is greater than or equal to playing the BMP format data corresponding to the GIF image. The memory required.
  • steps S101-S104 in FIG. 5 For the specific implementation of the steps S101-S104 in FIG. 5, reference may be made to the steps S101-S104 in the foregoing embodiment shown in FIG. 1, and details are not described herein again.
  • the terminal when the current memory of the terminal is less than the BMP format data corresponding to a certain GIF image, the terminal releases the memory resource by closing the application to meet the requirement of the user requesting to play the GIF image, so that the terminal currently The remaining memory satisfies the requirements of the BMP format data corresponding to the GIF image.
  • the image processing method may further include steps S105-S108, S101-S104, S112-S113; may also include S101-S104, S109-S111, S112-S113; and may also include S105-S108, S101 - S104, S109-S111, S112-S113, the specific implementation of these steps can refer to the related description in the foregoing embodiment, and details are not described herein again.
  • FIG. 6 is a schematic structural diagram of a terminal according to an embodiment of the present invention.
  • the terminal 600 may include: a first receiving unit 610, a first obtaining unit 620, a playing unit 630, and a deleting unit 640, where
  • a first receiving unit 610 configured to receive a first request for playing an image interchange format GIF image sent by a user
  • the first obtaining unit 620 is configured to obtain bitmap BMP format data corresponding to the GIF image from the memory of the terminal, where the BMP format data is data obtained by decoding the GIF image, in response to the first request;
  • the playing unit 630 is configured to play BMP format data corresponding to the GIF image.
  • the deleting unit 640 is configured to delete the BMP format data corresponding to the GIF image saved in the memory of the terminal when the second request for playing the GIF image sent by the user has not been received when the preset time length arrives .
  • the terminal 600 further includes a second receiving unit, a reading unit, a decoding unit, and a first saving unit;
  • a second receiving unit configured to receive, by the first receiving unit 610, a third request for playing the GIF image sent by the user, before receiving the first request for playing the image interchange format GIF image sent by the user;
  • a reading unit configured to read GIF format data corresponding to the GIF image from a disk of the terminal in response to the third request;
  • a decoding unit configured to decode GIF format data corresponding to the GIF image, to obtain BMP format data corresponding to the GIF image;
  • a saving unit configured to save BMP format data corresponding to the GIF image in a memory of the terminal and a disk of the terminal.
  • the terminal 600 further includes a third receiving unit, a second acquiring unit, and a second saving unit:
  • a third receiving unit configured to receive a fourth request sent by the user to play the GIF image
  • a second acquiring unit configured to acquire, according to the fourth request, BMP format data corresponding to the GIF image from a disk of the terminal;
  • a second saving unit configured to save the BMP format data corresponding to the GIF image in a memory of the terminal.
  • the reading unit is configured to read the GIF format data corresponding to the GIF image from the disk of the terminal, where the GIF image is read from the disk of the terminal by using a memory mapping manner. GIF format data.
  • the decoding unit is configured to decode the GIF format data corresponding to the GIF image, and is specifically used to decode the GIF format data corresponding to the GIF image by using a background thread.
  • the terminal 600 further includes a determining unit and a closing unit;
  • a determining unit before the playing unit 630 plays the BMP format data corresponding to the GIF image, determining whether the current remaining memory of the terminal is greater than or equal to the memory required for playing the BMP format data corresponding to the GIF image;
  • the triggering playing unit 630 plays the BMP format data corresponding to the GIF image
  • the triggering unit closes the N applications, and the triggering playing unit 630 plays the BMP format data corresponding to the GIF image, where N is a positive integer, and the closing unit closes the N applications after the terminal is closed.
  • the memory is greater than or equal to the memory required to play the BMP format data corresponding to the GIF image.
  • FIG. 7 is a schematic structural diagram of another terminal according to an embodiment of the present invention.
  • the terminal 70 shown in FIG. 7 includes: a radio frequency (RF) circuit 701, a memory 702 storing one or more computer programs, an input device 703, an output device 704, a sensor 703, an audio circuit 706, and wireless fidelity. (Wireless Fidelity, WiFi) module 707, processor 708 including one or more processing cores, and power supply 709 and the like.
  • RF radio frequency
  • FIG. 7 does not constitute a limitation to the terminal, and may include more or less components than those illustrated, or a combination of certain components, or different component arrangements. among them:
  • the RF circuit 701 can be used for receiving and transmitting signals during and after receiving or transmitting information, in particular, receiving downlink information of the base station and then processing it by one or more processors 708; in addition, transmitting data related to the uplink to the base station .
  • RF circuit 701 includes, but is not limited to, an antenna, at least one amplifier, a tuner, one or more oscillators, a Subscriber Identity Module (SIM) card, a transceiver, a coupler, and a Low Noise Amplifier (LNA). , duplexer, etc.
  • SIM Subscriber Identity Module
  • LNA Low Noise Amplifier
  • the RF circuit 701 can also communicate with the network and other terminal devices through wireless communication.
  • the wireless communication may use any communication standard or protocol, including but not limited to Global System of Mobile communication (GSM), General Packet Radio Service (GPRS), Code Division Multiple Access (Code). Division Multiple Access (CDMA), Wideband Code Division Multiple Access (WCDMA), Long Term Evolution (LTE), E-mail, Short Messaging Service (SMS), etc.
  • GSM Global System of Mobile communication
  • GPRS General Packet Radio Service
  • Code Division Multiple Access Code Division Multiple Access
  • CDMA Code Division Multiple Access
  • WCDMA Wideband Code Division Multiple Access
  • LTE Long Term Evolution
  • E-mail Short Messaging Service
  • the memory 702 can be used to store computer programs and modules, and the processor 708 executes various functional applications and data processing by running computer programs and modules stored in the memory 702.
  • the memory 702 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application required for at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may be stored according to The data created by the use of the terminal 70 (such as photographed photos, audio data, video data, etc.) and the like.
  • memory 702 can include high speed random access memory, and can also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device. Accordingly, memory 702 may also include a memory controller to provide access to memory 702 by processor 708 and input device 703.
  • Input device 703 can be used to receive input numeric or character information, as well as to generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function controls.
  • input device 703 can include touch-sensitive surface 7031 and other input devices 7032.
  • Touch-sensitive surface 7031 also referred to as a touch display panel or trackpad, can collect touch operations on or near the user (eg, the user uses a finger, stylus, etc., on any touch-sensitive surface 7031 or on the touch-sensitive surface 7031 The pressing operation in the vicinity of the touch-sensitive surface 7031) drives the corresponding connecting device according to a preset program.
  • the touch sensitive surface 7031 can include two portions of a touch detection device and a touch controller.
  • the touch detection device detects the touch orientation of the user, and detects a signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts the touch information into contact coordinates, and sends the touch information.
  • the processor 708 is provided and can receive commands from the processor 708 and execute them.
  • the touch sensitive surface 7031 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic waves.
  • the input device 703 can also include other input devices 7032.
  • other input devices 7032 may include, but are not limited to, one or more of a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, and the like.
  • Output device 704 can be used to display information entered by the user or information provided to the user and various graphical user interfaces of terminal 70, which can be constructed from graphics, text, icons, video, and any combination thereof.
  • the output device 704 can include a display panel 7041.
  • the display panel 7041 can be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), or the like.
  • the touch-sensitive surface 7031 can cover the display panel 7041, and when the touch-sensitive surface 7031 detects a touch operation thereon or nearby, it is transmitted to the processor 708 to determine the type of the touch event, and then the processor 708 is based on the touch event.
  • the type provides a corresponding visual output on display panel 7041.
  • touch-sensitive surface 7031 and display panel 7041 are implemented as two separate components to implement input and input functions, in some embodiments, touch-sensitive surface 7031 can be integrated with display panel 7041 for input. And output function.
  • Terminal 70 may also include at least one type of sensor 703, such as a light sensor, motion sensor, and other sensors.
  • 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 7041 according to the brightness of the ambient light, and the proximity sensor may close the display panel 7041 when the terminal 70 moves to the ear. / or backlight and so on.
  • the gravity acceleration sensor can detect the magnitude of acceleration in each direction (generally three axes), and the magnitude and direction of gravity can be detected at rest, which can be used to identify the attitude of the terminal 70 (such as horizontal and vertical screen switching, Related games, magnetometer attitude calibration), vibration recognition related functions (such as pedometer, tapping), etc.; as well as other sensors such as gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which can be configured in the terminal 70, here No longer.
  • Audio circuit 706, speaker 7061, and microphone 7062 can provide an audio interface between the user and terminal 70.
  • the audio circuit 706 can transmit the converted electrical data of the received audio data to the speaker 7061, and convert it into a sound signal output by the speaker 7061; on the other hand, the microphone 7062 converts the collected sound signal into an electrical signal, and the audio circuit 706 After receiving, it is converted into audio data, and then processed by the audio data output processor 708, transmitted to the terminal, for example, via the RF circuit 701, or outputted to the memory 702 for further processing.
  • the audio circuit 706 may also include an earbud jack to provide communication of the peripheral earphones with the terminal 70.
  • WiFi is a short-range wireless transmission technology
  • the terminal 70 can help users to send and receive emails, browse web pages, and access streaming media through the WiFi module 707, which provides wireless broadband Internet access for users.
  • FIG. 7 shows the WiFi module 707, it can be understood that it does not belong to the essential configuration of the terminal 70, and may be omitted as needed within the scope of not changing the essence of the invention.
  • Processor 708 is the control center of terminal 70, which connects various portions of the entire terminal 70 using various interfaces and lines, by running or executing computer programs and/or modules stored in memory 702, and recalling data stored in memory 702. The various functions and processing data of the terminal 70 are executed to perform overall monitoring of the terminal 70.
  • the processor 708 may include one or more processing cores; preferably, the processor 708 may integrate an application processor and a modem processor, where the application processor mainly processes an operating system, a user interface, an application, and the like.
  • the modem processor primarily handles wireless communications. It will be appreciated that the above described modem processor may also not be integrated into the processor 708.
  • the terminal 70 also includes a power source 709 (such as a battery) that supplies power to the various components.
  • the power source can be logically coupled to the processor 708 through a power management system to manage functions such as charging, discharging, and power management through the power management system.
  • the power supply 709 can also include any one or more of a DC or AC power source, a recharging system, a power failure detection circuit, a power converter or inverter, a power status indicator, and the like.
  • the terminal 70 may further include a camera, a Bluetooth module, and the like, and details are not described herein again.
  • the output device 704 (or the input device 703) of the terminal is a touch screen display
  • the terminal 70 further includes a memory 702, a processor 708, and one or more computer programs, wherein the one or more computers
  • the program is stored in the memory 702, and the processor 708 is configured to call the program instructions stored in the memory 702 to execute the image processing methods shown in FIG. 1, FIG. 3, FIG. 4, and FIG.
  • the steps of the method or algorithm described in connection with the disclosure of the embodiments of the present invention may be implemented in a hardware manner, or may be implemented by a processor executing software program instructions.
  • the software program instructions may be composed of corresponding software modules, which may be stored in RAM, flash memory, ROM, Erasable Programmable ROM (EPROM), and electrically erasable programmable read only memory (Electrically EPROM). , EEPROM), registers, hard disk, removable hard disk, compact disk read only (CD-ROM) or any other form of storage medium known in the art.
  • An exemplary storage medium is coupled to the processor to enable the processor to read information from, and write information to, the storage medium.
  • the storage medium can also be an integral part of the processor.
  • the processor and the storage medium can be located in an ASIC. Additionally, the ASIC can be located in the terminal.
  • the processor and the storage medium can also exist as discrete components in the terminal device.
  • the functions described in the embodiments of the present invention may be implemented in hardware, software, firmware, or any combination thereof.
  • the functions may be stored in a computer readable medium or transmitted as one or more program instructions or code on a computer readable medium.
  • Computer readable media includes both computer storage media and communication media including any medium that facilitates transfer of a computer program from one location to another.
  • a storage medium may be any available media that can be accessed by a general purpose or special purpose computer.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique. Le procédé comporte les étapes suivantes: le terminal reçoit une première demande émanant d'un utilisateur pour lire une image GIF (S101); en réaction à la première demande, le terminal acquiert, à partir de sa mémoire, des données formatées en mode point BMP correspondant à l'image GIF, les données formatées en BMP étant des données obtenues en décodant l'image GIF (S102); le terminal lit les données formatées en BMP correspondant à l'image GIF (S103); et lorsque le terminal ne reçoit pas, dans la limite d'une durée préétablie, une seconde demande émanant de l'utilisateur pour lire l'image GIF, les données formatées en BMP correspondant à l'image GIF, stockées dans la mémoire du terminal, sont supprimées (S104). Selon le procédé, le temps de lecture d'images peut être raccourci, le rendement de lecture d'images peut être amélioré et agrément d'utilisation peut être accentué; et lorsqu'une condition de suppression est satisfaite, les données formatées en mode point correspondant à les images GIF, stockées dans la mémoire du terminal, peuvent être supprimées, évitant ainsi l'occupation de ressources excessives de mémoire.
PCT/CN2018/116245 2017-11-21 2018-11-19 Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique WO2019101043A1 (fr)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711172708.5A CN107943417A (zh) 2017-11-21 2017-11-21 图像处理方法、终端、计算机存储介质及计算机程序
CN201711172708.5 2017-11-21

Publications (1)

Publication Number Publication Date
WO2019101043A1 true WO2019101043A1 (fr) 2019-05-31

Family

ID=61929810

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/116245 WO2019101043A1 (fr) 2017-11-21 2018-11-19 Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique

Country Status (2)

Country Link
CN (1) CN107943417A (fr)
WO (1) WO2019101043A1 (fr)

Families Citing this family (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107943417A (zh) * 2017-11-21 2018-04-20 广州市百果园网络科技有限公司 图像处理方法、终端、计算机存储介质及计算机程序
CN108769806B (zh) * 2018-06-19 2020-05-05 聚好看科技股份有限公司 媒体内容的展示方法和装置
CN109284183A (zh) * 2018-10-17 2019-01-29 广州市百果园信息技术有限公司 动图播放方法、装置、计算机存储介质和终端
CN109886861B (zh) * 2019-01-08 2023-04-11 北京城市网邻信息技术有限公司 一种高效率图档格式heif图像加载方法及装置
CN110677699B (zh) * 2019-10-10 2022-03-08 上海依图网络科技有限公司 视频流和/或图片流数据的共享方法、装置及电子设备
CN111949330B (zh) * 2020-08-11 2022-06-24 深圳市前海手绘科技文化有限公司 一种手绘草稿加载方法
CN113326086B (zh) * 2021-05-18 2022-08-23 翱捷科技股份有限公司 基于lvgl的gif图片显示方法及装置

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136208A (zh) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 一种显示图片的方法及装置
CN104461661A (zh) * 2014-12-30 2015-03-25 中科创达软件股份有限公司 一种图片资源加载方法及系统
CN106383880A (zh) * 2016-09-13 2017-02-08 广州视睿电子科技有限公司 一种gif文件的播放方法及系统
CN107943417A (zh) * 2017-11-21 2018-04-20 广州市百果园网络科技有限公司 图像处理方法、终端、计算机存储介质及计算机程序

Family Cites Families (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6336124B1 (en) * 1998-10-01 2002-01-01 Bcl Computers, Inc. Conversion data representing a document to other formats for manipulation and display
CN107247676A (zh) * 2017-05-18 2017-10-13 深圳市小牛在线互联网信息咨询有限公司 动态图播放方法、装置、存储介质和计算机设备
CN107193446B (zh) * 2017-07-10 2020-07-10 北京小米移动软件有限公司 图像处理方法、装置、终端以及存储介质

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103136208A (zh) * 2011-11-23 2013-06-05 腾讯科技(深圳)有限公司 一种显示图片的方法及装置
CN104461661A (zh) * 2014-12-30 2015-03-25 中科创达软件股份有限公司 一种图片资源加载方法及系统
CN106383880A (zh) * 2016-09-13 2017-02-08 广州视睿电子科技有限公司 一种gif文件的播放方法及系统
CN107943417A (zh) * 2017-11-21 2018-04-20 广州市百果园网络科技有限公司 图像处理方法、终端、计算机存储介质及计算机程序

Also Published As

Publication number Publication date
CN107943417A (zh) 2018-04-20

Similar Documents

Publication Publication Date Title
WO2019101043A1 (fr) Procédé de traitement d'images, terminal, support de stockage informatique et programme informatique
US11003331B2 (en) Screen capturing method and terminal, and screenshot reading method and terminal
WO2017206916A1 (fr) Procédé de détermination d'une configuration d'exécution de noyau dans un processeur et produit correspondant
RU2616536C2 (ru) Способ, устройство и терминальное устройство для отображения сообщений
CN109388297B (zh) 表情展示方法、装置、计算机可读存储介质及终端
WO2018010512A1 (fr) Procédé et dispositif de téléchargement ascendant d'un fichier de photographie
WO2021098695A1 (fr) Procédé de partage d'informations et dispositif électronique
WO2016045226A1 (fr) Procédé et appareil de traitement d'informations
CN105630846B (zh) 头像更新方法及装置
WO2017193496A1 (fr) Procédé et appareil de traitement de données d'application et dispositif de terminal
US11314703B2 (en) Method and apparatus for processing timedly-published data
CN110377235B (zh) 数据处理方法、装置、移动终端及计算机可读存储介质
WO2015131768A1 (fr) Procédé, appareil et système de traitement de vidéo
TW201911066A (zh) 文件夾發送方法、發送終端、接收終端以及存儲介質
WO2015081905A1 (fr) Procede de mise a jour de donnees, terminal utilisateur, et systeme de mise a jour de donnees
WO2019071424A1 (fr) Procédé et terminal de commande de fonction d'application
TW201541337A (zh) 移動終端中訊息的顯示方法、裝置和系統
WO2017050090A1 (fr) Procédé et dispositif permettant de générer un fichier gif, et support d'informations lisible par ordinateur
WO2019076250A1 (fr) Procédé de gestion de message de poussée, et produits associés
US10136115B2 (en) Video shooting method and apparatus
CN109660445B (zh) 一种消息处理方法、装置及存储介质
CN105513098B (zh) 一种图像处理的方法和装置
KR101876394B1 (ko) 단말기에 미디어 데이터를 재생하는 방법 및 장치
WO2018145539A1 (fr) Procédé de traitement de données multimédia de diffusion en continu et terminal mobile
US20160196030A1 (en) Method and electronic device for displaying electronic document

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18880178

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 18880178

Country of ref document: EP

Kind code of ref document: A1