WO2017049948A1 - 图片共享方法及装置 - Google Patents

图片共享方法及装置 Download PDF

Info

Publication number
WO2017049948A1
WO2017049948A1 PCT/CN2016/084240 CN2016084240W WO2017049948A1 WO 2017049948 A1 WO2017049948 A1 WO 2017049948A1 CN 2016084240 W CN2016084240 W CN 2016084240W WO 2017049948 A1 WO2017049948 A1 WO 2017049948A1
Authority
WO
WIPO (PCT)
Prior art keywords
picture
sharing
instruction
pictures
cache
Prior art date
Application number
PCT/CN2016/084240
Other languages
English (en)
French (fr)
Inventor
周勇
Original Assignee
深圳Tcl数字技术有限公司
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 深圳Tcl数字技术有限公司 filed Critical 深圳Tcl数字技术有限公司
Publication of WO2017049948A1 publication Critical patent/WO2017049948A1/zh

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L67/00Network arrangements or protocols for supporting network services or applications
    • H04L67/01Protocols
    • H04L67/06Protocols specially adapted for file transfer, e.g. file transfer protocol [FTP]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L12/00Data switching networks
    • H04L12/28Data switching networks characterised by path configuration, e.g. LAN [Local Area Networks] or WAN [Wide Area Networks]
    • H04L12/2803Home automation networks
    • H04L12/2805Home Audio Video Interoperability [HAVI] networks

Definitions

  • the present invention relates to the field of communications technologies, and in particular, to a picture sharing method and apparatus.
  • the TV can access multimedia content shared by other devices in the LAN, and can also access multimedia resources of the Internet in Shanghai.
  • the user In the home LAN, more and more users like to share the pictures on the mobile phone or the Pad to the big screen on the TV side for multiple people to enjoy.
  • the user first caches the pictures on the mobile phone to the preset storage location, and then Address information of the picture, such as a remote access link (Uniform Resource Locator , URL) is shared to the TV end, and the TV side downloads and displays the picture by accessing the URL, and viewing the picture on the TV is as convenient as browsing on the mobile phone.
  • URL Uniform Resource Locator
  • the terminal caches the currently shared picture to the preset storage location.
  • the picture is large or the network speed is slow, there will be a picture when the user switches to another picture on the mobile phone side, but the TV terminal does not display the picture switched, but displays the buffer prompt or displays the previous picture, obviously Sharing images is slower.
  • the main purpose of the present invention is to provide a picture sharing method and device, which aims to solve the technical problem of slow sharing speed in the picture sharing process.
  • the present invention provides a picture sharing method, where the picture sharing method includes the following steps:
  • the control terminal When the picture sharing instruction is detected, the control terminal enters a picture sharing state, and displays a third picture corresponding to the picture sharing instruction;
  • the second address information corresponding to the original file of the first picture is sent to the display terminal, where the display terminal acquires the original file based on the second address information when receiving the first picture display instruction And display;
  • the picture sharing method includes:
  • the image sharing instruction is triggered when a long press instruction input based on the corresponding area of the preset picture is detected; or the picture sharing instruction is triggered when the sliding touch operation based on the input area corresponding to the preset picture is detected.
  • the picture sharing method further includes:
  • a preset number of pictures in the cache are deleted, wherein the deleted pictures are stored earlier than the reserved pictures.
  • the present invention further provides a picture sharing method, where the picture sharing method includes the following steps:
  • the sending by the first address information corresponding to the compressed file of the first picture in the cache to the preset display terminal, performing the following steps:
  • the picture sharing method includes:
  • the control terminal When the picture sharing instruction is detected, the control terminal enters a picture sharing state, and displays a third picture corresponding to the picture sharing instruction;
  • the picture sharing method includes:
  • the image sharing instruction is triggered when a long press instruction input based on the corresponding area of the preset picture is detected; or the picture sharing instruction is triggered when the sliding touch operation based on the input area corresponding to the preset picture is detected.
  • the picture sharing method further includes:
  • a preset number of pictures in the cache are deleted, wherein the deleted pictures are stored earlier than the reserved pictures.
  • the present invention further provides a picture sharing device, where the picture sharing device includes:
  • a display module configured to display a first picture corresponding to the picture switching instruction when in a picture sharing state, and receiving a picture switching instruction
  • a sending module configured to send the first address information corresponding to the compressed file of the first picture in the cache to a preset display terminal, where the display terminal acquires the compressed file based on the first address information display;
  • the processing module is configured to compress the second picture adjacent to the first picture based on the picture switching instruction, and put the compressed second picture into a cache.
  • the sending module is further configured to: send the first address information corresponding to the compressed file of the first picture in the cache to the preset display terminal, and corresponding to the original file of the first picture
  • the second address information is sent to the display terminal, so that the display terminal acquires the original file based on the second address information and displays it when receiving the first picture display instruction.
  • the picture sharing device further includes:
  • control module configured to control the terminal to enter a picture sharing state when the picture sharing instruction is detected
  • the display module is configured to display a third picture corresponding to the picture sharing instruction
  • the processing module is further configured to compress the third picture and the fourth picture and the fifth picture adjacent to the third picture according to the picture sharing instruction, and put the compressed three pictures into a cache;
  • the processing module is further configured to send the third address information corresponding to the compressed file of the third picture in the cache to a preset display terminal, where the display terminal acquires the compression based on the third address information.
  • the file is displayed.
  • the picture sharing device further includes:
  • the triggering module is configured to trigger a picture sharing instruction when detecting a long press instruction input according to the preset picture corresponding area; or trigger a picture sharing instruction when detecting a sliding touch operation based on the input area corresponding to the preset picture.
  • the picture sharing device further includes:
  • the deleting module is configured to delete a preset number of pictures in the cache during the image sharing process, where the deleted pictures are stored earlier than the reserved pictures.
  • the image sharing method and device of the present invention first display a first picture corresponding to the picture switching instruction, and then compress a second picture adjacent to the first picture when the terminal is in a picture sharing state and receives a picture switching instruction And the first address information corresponding to the compressed file of the first picture is sent to the preset display terminal, so that the display terminal is based on the The first address information is obtained by the first address information and displayed, instead of being placed in the cache each time the picture is shared. When the current picture is displayed, the current picture is compressed in the cache.
  • the address information corresponding to the file is sent to the display terminal, and the adjacent picture of the current picture is compressed, so that when the current picture is shared, the address information corresponding to the current picture in the cache is directly sent to the display terminal, and the picture is improved. Sharing speed.
  • FIG. 1 is a schematic flowchart of a first embodiment of a picture sharing method according to the present invention
  • FIG. 2 is a schematic flowchart of a second embodiment of a picture sharing method according to the present invention.
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a picture sharing apparatus according to the present invention.
  • FIG. 4 is a schematic diagram of functional modules of a second embodiment of a picture sharing apparatus according to the present invention.
  • the invention provides a picture sharing method.
  • FIG. 1 is a schematic flowchart diagram of a first embodiment of a picture sharing method according to the present invention.
  • This embodiment provides a picture sharing method, where the picture sharing method includes:
  • Step S10 When the terminal is in the picture sharing state and receives the picture switching instruction, displaying the first picture corresponding to the picture switching instruction;
  • the method before the step S10, includes the following steps: when detecting the picture sharing instruction, the terminal enters a picture sharing state, and displays a third picture corresponding to the picture sharing instruction, and then compresses based on the picture sharing instruction.
  • the third picture and the fourth picture and the fifth picture adjacent to the third picture finally put the compressed three pictures into the cache, that is, when the picture starts sharing, the first picture is shared.
  • the third picture and the fourth picture and the fifth picture adjacent to the third picture are compressed, and the compressed file corresponding to each compressed picture is put into the cache, thereby realizing In the picture switching process, whether the third picture is switched to the fourth picture or the third picture is switched to the fifth picture, the compressed file of the third picture has been put into the cache, and Directly transmitting the address information of the compressed file corresponding to the third picture to the preset display terminal, without waiting for the third picture to be compressed before switching to the third picture Deposit.
  • the fourth picture or the fifth picture is used as the first picture corresponding to the picture switching instruction.
  • the triggering manner of the picture switching instruction includes: a, a human trigger, that is, when the user slides the previous picture displayed on the display interface to the current picture, the picture sharing instruction is triggered. b. Timing triggering, that is, when a picture timing switching instruction is detected in the picture sharing state, the picture switching instruction is triggered, and the picture timing switching instruction is set according to specific needs in advance, for example, setting the picture timing switching time in the picture sharing state to 5S, Then, when the time displayed in the previous picture reaches 5S, the picture switching instruction is triggered and switched to the next picture.
  • step S20 the first address information corresponding to the compressed file of the first picture is cached and sent to the preset display terminal, so that the display terminal acquires the compressed file based on the first address information and displays the compressed file.
  • the first picture is displayed on the display interface.
  • the compressed file corresponding to the first picture is already in the cache, and when the first picture is switched.
  • the first address information corresponding to the compressed file of the first picture in the cache is directly obtained, and the first address information is sent to a preset display terminal, where the display terminal is based on the first address information. Get the compressed file and display it.
  • the picture sharing scenario in this embodiment is applied to a multi-screen interactive scenario, that is, based on DLNA (Digital Living Network Alliance, Digital Living Network Alliance) protocol implementation.
  • the display terminal establishes a connection relationship with the terminal.
  • the terminal is a mobile phone, and the display terminal is a television.
  • the terminal sends the compressed A URL corresponding to a picture is sent to the display terminal, and the display terminal accesses the URL to log in to the HTTP server.
  • the display terminal loads the compressed first picture and displays it.
  • the first address information corresponding to the compressed file of the first picture in the cache is sent to the preset display terminal, and the original file corresponding to the first picture is corresponding.
  • the second address information is sent to the display terminal, so that the display terminal acquires the original file based on the second address information and displays it when receiving the first picture display instruction. That is to say, not only the compressed images can be put into the cache, but also the images before compression can be put into the cache, that is, the two states before and after compression of the same image are stored in the cache.
  • the display terminal can also display the same picture before compression, that is, after the compressed picture is downloaded, the picture display before compression is seamlessly replaced, so that the user can Quickly see the picture, and do not have to endure the loss of image quality caused by compression, which not only satisfies the speed of the user to view the picture, but also improves the clarity of the picture display.
  • Step S30 compressing a second picture adjacent to the first picture based on the picture switching instruction, and placing the compressed second picture into a buffer.
  • Compressing the second picture adjacent to the first picture based on the picture switching instruction it may be understood that, in the picture sharing process, if the picture is switched in a certain order, such as continuously switching the picture in one direction, the If one of the pictures adjacent to the first picture is already compressed, if the previous picture of the picture is already compressed, it is preferable to compress only the first picture when the first picture is switched to the current picture.
  • a second picture adjacent to the picture and not yet compressed may be, that is, the next picture adjacent to the picture is compressed, and finally, the compressed second picture is also placed in the cache.
  • the picture sharing method in this embodiment when the terminal is in the picture sharing state and receives the picture switching instruction, first displays the first picture corresponding to the picture switching instruction, and then compresses the second picture adjacent to the first picture. And loading the compressed second picture into the cache, and finally sending the first address information corresponding to the compressed file of the first picture in the cache to the preset display terminal, where the display terminal is based on the The first address information acquires the compressed file and displays it, instead of putting the image into the cache every time the shared picture is shared.
  • the compressed file of the current picture in the cache is cached.
  • Corresponding address information is sent to the display terminal, and the adjacent picture of the current picture is compressed, so that when the current picture is shared, the address information corresponding to the current picture in the cache is directly sent to the display terminal, thereby improving the sharing of the picture. speed.
  • the second embodiment of the picture sharing method of the present invention is proposed based on the first embodiment.
  • the picture sharing method includes:
  • Step S40 when detecting the picture sharing instruction, the control terminal enters a picture sharing state, and displays a third picture corresponding to the picture sharing instruction;
  • Step S50 compress the third picture and the fourth picture and the fifth picture adjacent to the third picture according to the picture sharing instruction, and put the compressed three pictures into a buffer.
  • Step S60 Send the third address information corresponding to the compressed file of the third picture in the cache to the preset display terminal, so that the display terminal acquires the compressed file based on the third address information and displays the compressed file.
  • the triggering manner of the image sharing instruction includes: a. when detecting a touch operation input by the user based on the preset third image interface, triggering a sharing instruction of the image, that is, detecting the pre-based Setting a long-press command input in the corresponding area of the picture, if the time when the picture is pressed reaches a preset time period, such as 5 seconds, triggering a sharing instruction of the picture; or when detecting a sliding touch operation based on the input area corresponding to the preset picture, A shared instruction that triggers a picture.
  • triggering a picture sharing instruction such as setting a timing sharing mode of the third picture in advance, triggering a picture sharing instruction when the timed time arrives.
  • the third picture and the fourth picture and the fifth picture adjacent to the third picture are compressed based on the picture sharing instruction, and the third picture, the fourth picture, and the fifth picture are compressed. Then, the compressed three pictures are put into the cache, and the cache may be a storage location preset by the terminal.
  • the terminal is a preset server, and the corresponding cache is the server.
  • the server is HTTP (HTTP) Hypertext Transfer Protocol (Hypertext Transfer Protocol) server
  • HTTP server includes a root (ROOT) directory
  • the root directory is used to store compressed images, that is, the compressed image is cached in the root directory of the server
  • the address information corresponding to the cached picture is generated according to the cached picture, such as a URL (Uniform) Resource Locator, the uniform resource locator, which can also be understood as a remote access link.
  • URL Uniform
  • the third embodiment of the picture sharing method of the present invention is proposed based on the first embodiment.
  • the picture sharing method further includes:
  • a preset number of pictures in the cache are deleted, wherein the deleted pictures are stored earlier than the reserved pictures.
  • the method of deleting a preset number of pictures in the cache is: when the number of pictures stored in the cache reaches a preset threshold, such as three, if a fourth picture is placed in the In the cache, it is preferable to delete one of the four pictures whose storage time is the earliest, and ensure that, in the picture sharing process, the number of pictures less than or equal to three is always stored in the cache.
  • the invention further provides a picture sharing device.
  • FIG. 3 is a schematic diagram of functional modules of a first embodiment of a picture sharing apparatus according to the present invention.
  • the functional block diagram shown in FIG. 3 is merely an exemplary embodiment of a preferred embodiment, and those skilled in the art can surround the functional modules of the picture sharing device shown in FIG.
  • the new functional modules are easily added; the names of the functional modules are custom names, which are only used to assist in understanding the various program functional blocks of the image sharing device, and are not used to define the technical solution of the present invention.
  • the core of the technical solution of the present invention is , the function to be achieved by the function module of each name.
  • the picture sharing device proposed in this embodiment preferably runs in a controlled terminal (such as a smart phone and a computer).
  • a controlled terminal such as a smart phone and a computer.
  • This embodiment provides a picture sharing device, where the picture sharing device includes:
  • the display module 10 is configured to: when in a picture sharing state, and receive a picture switching instruction, display a first picture corresponding to the picture switching instruction;
  • the picture sharing device includes an entry module, a compression module, and a put-in module, and the entry module enters a picture sharing state when the picture sharing instruction is detected, and the display module 10 displays the picture sharing instruction.
  • the compression module compresses the third picture and the fourth picture and the fifth picture adjacent to the third picture based on the picture sharing instruction, and finally the put module will be compressed Three images are placed in the cache. That is to say, when the picture starts sharing, the first shared picture is first used as the third picture, and then the compression module compresses the third picture and the fourth picture and the fifth picture adjacent to the third picture.
  • the loading module puts the compressed file corresponding to each compressed picture into a cache, so that in the picture switching process, whether the third picture is switched to the fourth picture, or the third
  • the picture is switched to the fifth picture, and the loading module has already put the compressed file of the third picture into the cache, and can directly send the address information of the compressed file corresponding to the third picture to the preset display terminal.
  • the third picture is compressed and cached without waiting until switching to the third picture.
  • the fourth picture or the fifth picture is used as the first picture corresponding to the picture switching instruction.
  • the triggering manner of the picture switching instruction includes: a, a human trigger, that is, when the user slides the previous picture displayed on the display interface to the current picture, the picture sharing instruction is triggered. b. Timing triggering, that is, when a picture timing switching instruction is detected in the picture sharing state, the picture switching instruction is triggered, and the picture timing switching instruction is set according to specific needs in advance, for example, setting the picture timing switching time in the picture sharing state to 5S, Then, when the time displayed in the previous picture reaches 5S, the picture switching instruction is triggered and switched to the next picture.
  • the sending module 20 is configured to send the first address information corresponding to the compressed file of the first picture in the cache to a preset display terminal, where the display terminal acquires the compressed file based on the first address information. And display;
  • the display module 10 displays the first picture on the display interface.
  • the compressed file corresponding to the first picture has been put into the cache, and then the switch is performed.
  • the first address information corresponding to the compressed file of the first picture in the cache may be directly obtained, and the sending module 20 sends the first address information to a preset display terminal, for the The display terminal acquires the compressed file based on the first address information and displays it.
  • the picture sharing scenario in this embodiment is applied to a multi-screen interactive scenario, that is, based on DLNA (Digital Living Network Alliance, Digital Living Network Alliance) protocol implementation, first, the display terminal establishes a connection relationship with the sending module 20, preferably the display terminal is a television set, and after the connection relationship is established, the sending module 20 sends the compressed A URL corresponding to a picture is sent to the display terminal, and the display terminal accesses the URL to log in to the HTTP server. Finally, the display terminal loads the compressed first picture and displays it.
  • DLNA Digital Living Network Alliance, Digital Living Network Alliance
  • the sending module 20 is further configured to send the first address information corresponding to the compressed file of the first picture in the cache to the preset display terminal, and The original file of the first picture is sent to the display terminal corresponding to the second address information, so that the display terminal acquires the original file based on the second address information when receiving the first picture display instruction. And display. That is to say, not only the compressed images can be put into the cache, but also the images before compression can be put into the cache, that is, the two states before and after compression of the same image are stored in the cache.
  • the sending module 20 sends the address information corresponding to the compressed first picture and the address information corresponding to the first picture before compression to the display terminal, so that the display terminal first accesses the compressed address information and then accesses the compressed address.
  • Address information that is, loading and displaying the compressed first picture, and loading the compressed first picture and then loading the first picture before compression, so that when the user views the picture, the first view is compressed.
  • the display terminal can also display the same picture before compression, that is, the compressed picture is directly replaced after the compressed picture is downloaded, so that Users can quickly see the picture without having to endure the loss of image quality caused by compression, which not only satisfies the speed of the user to view the picture, but also improves the picture display. Clarity.
  • the processing module 30 is configured to compress the second picture adjacent to the first picture based on the picture switching instruction, and put the compressed second picture into the cache.
  • the processing module 30 first compresses the second picture adjacent to the first picture based on the picture switching instruction. It can be understood that, in the picture sharing process, if the picture is switched in a certain order, such as continuing in one direction When the picture is switched, one of the pictures adjacent to the first picture is already compressed. If the previous picture of the picture is already compressed, it is preferred that when the first picture is switched to the current picture. Compressing only the second picture that is adjacent to the first picture and not yet compressed, that is, compressing the next picture adjacent to the picture, and finally, putting the compressed second picture into the cache. .
  • the picture sharing device of the embodiment when the terminal is in the picture sharing state and receives the picture switching instruction, first displays the first picture corresponding to the picture switching instruction, and then compresses the second picture adjacent to the first picture. And loading the compressed second picture into the cache, and finally sending the first address information corresponding to the compressed file of the first picture in the cache to the preset display terminal, where the display terminal is based on the The first address information acquires the compressed file and displays it, instead of putting the image into the cache every time the shared picture is shared.
  • the compressed file of the current picture in the cache is cached.
  • Corresponding address information is sent to the display terminal, and the adjacent picture of the current picture is compressed, so that when the current picture is shared, the address information corresponding to the current picture in the cache is directly sent to the display terminal, thereby improving the sharing of the picture. speed.
  • the picture sharing device further includes:
  • the control module 40 is configured to control the terminal to enter a picture sharing state when the picture sharing instruction is detected;
  • the display module 10 is configured to display a third picture corresponding to the picture sharing instruction
  • the processing module 30 is further configured to compress the third picture and the fourth picture and the fifth picture adjacent to the third picture according to the picture sharing instruction, and put the compressed three pictures into a cache. .
  • the processing module 30 is further configured to send the third address information corresponding to the compressed file of the third picture in the cache to a preset display terminal, where the display terminal acquires the information according to the third address information. Compress the file and display it.
  • the picture sharing device further includes a triggering module, where the triggering module is configured to trigger a picture sharing instruction.
  • the triggering manner of the image sharing instruction includes: a. when detecting a touch operation input by the user based on the interface of the preset third image, triggering a sharing instruction of the image, that is, the triggering module When the long press command input according to the preset picture corresponding area is detected, if the time when the picture is pressed reaches a preset time period, for example, 5 seconds, the sharing instruction of the picture is triggered; or the trigger module detects that the preset picture is corresponding.
  • the sharing instruction of the picture is triggered when the sliding touch operation of the area is input.
  • triggering a picture sharing instruction such as setting a timing sharing mode of the third picture in advance, triggering a picture sharing instruction when the timed time arrives.
  • the processing module 30 first compresses the third picture and the fourth picture and the fifth picture adjacent to the third picture based on the picture sharing instruction, and compresses the third picture and the fourth picture. After the picture and the fifth picture, the compressed three pictures are put into the cache, and the cache may be a preset storage location of the terminal.
  • the terminal is a preset server, and the corresponding The cache is the root directory preset in the server, and the server is HTTP (HTTP) Hypertext Transfer Protocol (Hypertext Transfer Protocol) server, the HTTP server includes a root (ROOT) directory, the root directory is used to store compressed images, that is, the compressed image is cached in the root directory of the server And when the picture is cached to the root directory, the address information corresponding to the cached picture is generated according to the cached picture, such as a URL (Uniform) Resource Locator, the uniform resource locator, which can also be understood as a remote access link.
  • HTTP Hypertext Transfer Protocol
  • the HTTP server includes a root (ROOT) directory
  • the root directory is used to store compressed images, that is, the compressed image is cached in the root directory of the server
  • the address information corresponding to the cached picture is generated according to the cached picture, such as a URL (Uniform) Resource Locator, the uniform resource locator, which can also be understood as a remote access link.
  • the third embodiment of the picture sharing device of the present invention is proposed based on the first embodiment.
  • the picture sharing device further includes:
  • the deleting module is configured to delete a preset number of pictures in the cache during the image sharing process, where the deleted pictures are stored earlier than the reserved pictures.
  • the deleting module deletes a preset number of pictures in the cache, and the preset quantity may be determined according to a specific situation.
  • the method for deleting the preset number of pictures in the cache is: when the number of pictures stored in the cache reaches a preset threshold, such as three, if there is The fourth picture is placed in the cache, and the deleting module preferably deletes the first picture stored in the four pictures, ensuring that the cache is always stored below or in the picture sharing process. Equal to 3 images.
  • the foregoing embodiment method can be implemented by means of software plus a necessary general hardware platform, and of course, can also be through hardware, but in many cases, the former is better.
  • Implementation Based on such understanding, the technical solution of the present invention, which is essential or contributes to the prior art, may be embodied in the form of a software product stored in a storage medium (such as ROM/RAM, disk,
  • the optical disc includes a number of instructions for causing a terminal device (which may be a cell phone, a computer, a server, an air conditioner, or a network device, etc.) to perform the methods described in various embodiments of the present invention.

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Multimedia (AREA)
  • Automation & Control Theory (AREA)
  • Information Transfer Between Computers (AREA)

Abstract

本发明公开了一种图片共享方法,在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。本发明还公开了一种图片共享装置。本发明提高了图片共享的速度。

Description

图片共享方法及装置
技术领域
本发明涉及通信技术领域,尤其涉及一种图片共享方法及装置。
背景技术
随着全球电视数字化的日益推进,电视,电脑,pad或手机等设备可以通过家庭无线局域网非常方便地进行相互访问或控制。通过连接家庭无线路由器或wifi等,TV可以访问局域网内其它设备共享的多媒体内容,也可以访问internet上海量的多媒体资源。
在家庭局域网中,越来越多的用户喜欢把手机或Pad上的图片分享到TV端的大屏幕上供多人一起欣赏,用户先将手机上的图片缓存到预设存储位置中,然后将所述图片的地址信息,如远程访问链接(Uniform Resource Locator ,URL)共享到TV端,TV端通过访问所述URL下载并显示所述图片,在TV上看图片就像和手机上浏览一样方便。但是随着手机拍摄图片的像素越来越高,存储在手机上的图片文件也越来越大,当用户共享图片到TV端时,终端才将当前共享的图片缓存到预设存储位置中,而当图片较大或者是网速较慢时,会出现用户在手机端切换为另一张图片时,TV端还没显示切换的图片,而是显示缓冲提示或者还是显示前一张图片,显然共享图片的速度较慢。
发明内容
本发明的主要目的在于提出一种图片共享方法及装置,旨在解决图片共享过程中,共享速度较慢的技术问题。
为实现上述目的,本发明提供的一种图片共享方法,所述图片共享方法包括以下步骤:
在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片;
基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示;
在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示,同时,将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示;
基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
优选地,所述在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片的步骤之前,所述图片共享方法包括:
在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
优选地,所述图片共享方法还包括:
在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
此外,为实现上述目的,本发明还提出一种图片共享方法,所述图片共享方法包括以下步骤:
在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
优选地,所述将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时执行以下步骤:
将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。
优选地,所述在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片的步骤之前,所述图片共享方法包括:
在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片;
基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
优选地,所述在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片的步骤之前,所述图片共享方法包括:
在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
优选地,所述图片共享方法还包括:
在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
此外,为实现上述目的,本发明还提出一种图片共享装置,所述图片共享装置包括:
显示模块,用于在处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
发送模块,用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
处理模块,用于基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
优选地,所述发送模块,还用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时,将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。
优选地,所述图片共享装置还包括:
控制模块,用于在检测到图片共享指令时,控制终端进入图片共享状态;
所述显示模块,用于显示与所述图片共享指令对应的第三图片;
所述处理模块,还用于基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
所述处理模块,还用于将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
优选地,所述图片共享装置还包括:
触发模块,用于在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
优选地,所述图片共享装置还包括:
删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
本发明提出的图片共享方法和装置,在终端处于图片共享状态且接收到图片切换指令时,先显示与所述图片切换指令对应的第一图片,然后压缩所述第一图片相邻的第二图片,并将压缩后的第二图片放入缓存中,最后将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示,而不是每次在共享图片时,才将所述图片放入缓存中,本方案在显示当前图片时,就将缓存中所述当前图片的压缩文件对应的地址信息发送给显示终端,并压缩所述当前图片相邻的图片,实现了将当前图片进行共享时,直接将当前图片在缓存中对应的地址信息发送给显示终端,提高了图片的共享速度。
附图说明
图1为本发明图片共享方法第一实施例的流程示意图;
图2为本发明图片共享方法第二实施例的流程示意图;
图3为本发明图片共享装置第一实施例的功能模块示意图;
图4为本发明图片共享装置第二实施例的功能模块示意图。
本发明目的的实现、功能特点及优点将结合实施例,参照附图做进一步说明。
具体实施方式
应当理解,此处所描述的具体实施例仅仅用以解释本发明,并不用于限定本发明。
本发明提供一种图片共享方法。
参照图1,图1为本发明图片共享方法第一实施例的流程示意图。
本实施例提出一种图片共享方法,所述图片共享方法包括:
步骤S10,在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
在本实施例中,所述步骤S10之前,包括以下步骤:在检测到图片共享指令时终端进入图片共享状态,并且显示所述图片共享指令对应的第三图片,然后基于所述图片共享指令压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,最后将压缩后的三张图片放入缓存中,也就是说在图片在开始共享时,将第一张共享的图片作为第三图片,然后压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,并将压缩的各张图片对应的压缩文件放入缓存中,实现了在图片切换过程中,不论是将所述第三图片切换为第四图片,或者是将所述第三图片切换为第五图片,都已经将所述第三图片的压缩文件放入缓存中,可以直接将所述第三图片对应的压缩文件的地址信息发送至预设显示终端,而不用等到切换到所述第三图片时,才对第三图片进行压缩缓存。在第三图片切换为第四图片或第五图片时,此时,所述第四图片或第五图片作为所述图片切换指令对应的第一图片。
在本实施例中,所述图片切换指令的触发方式包括:a、人为触发,即当用户将显示界面显示的上一张图片滑动到当前图片时,触发图片共享指令。b、定时触发,即在图片共享状态下检测到图片定时切换指令时,触发图片切换指令,所述图片定时切换指令事先根据具体需要设置,如设置图片共享状态下的图片定时切换时间为5S,则在上一张图片显示的时间达到5S时,触发图片切换指令,并切换为下一张图片。
步骤S20,将缓存与中所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
在本实施例中,接收到切换指令时在显示界面显示第一图片,根据上述实施例可知,所述第一图片对应的压缩文件已经放入缓存了,则在切换为所述第一图片时,可直接获取缓存中所述第一图片的压缩文件对应的第一地址信息,并将所述第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示。可以理解的是,本实施例中图片共享场景应用于多屏互动场景中,即基于DLNA(Digital Living Network Alliance,数字生活网络联盟)协议实现,首先,显示终端与终端建立连接关系,优选所述终端为手机,所述显示终端为电视机,建立所述连接关系后,所述终端发送压缩后的第一图片对应的URL给所述显示终端,显示终端访问所述URL以登录到所述HTTP服务器,最后,所述显示终端加载所述压缩后的第一图片并显示。
进一步地,为提高图片共享的清晰度,将缓存中所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时,将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。也就是说不仅可以将压缩后的各个图片放入缓存中,还可将压缩前的各个图片也放入缓存中,即实现了缓存中同时存储同一张图片压缩前和压缩后的两个状态,并且,发送压缩后的第一图片对应的地址信息和压缩前的第一图片对应的地址信息至显示终端,以供所述显示终端先访问压缩后的地址信息再访问压缩前的地址信息,即先加载显示压缩后的第一图片,并在加载完所述压缩后的第一图片接着加载所述压缩前的第一图片,实现了用户在查看图片时,先查看压缩后的图片,若此时用户还未切换到下一张图片,所述显示终端还可显示压缩前的同一张图片,即压缩后的图片下载完后直接无缝替换压缩前的图片显示,这样对于用户来说既可以快速看到图片,又不必忍受压缩带来的画质损失,既满足了用户查看图片的速度,又提高了图片显示的清晰度。
步骤S30,基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
基于所述图片切换指令,压缩所述第一图片相邻的第二图片,可以理解的是,在图片共享过程中,若是按照一定的顺序切换图片,如持续向一个方向切换图片时,所述第一图片相邻的图片中已经有一张是已经压缩的图片,如图片的上一张图片是已经压缩过的了,则优选在所述第一图片切换为当前图片时,仅仅压缩所述第一图片相邻且还未压缩的第二图片即可,即压缩所述图片相邻的下一张图片,最后,将压缩后的第二图片也放入所述缓存中。
本实施例提出的图片共享方法,在终端处于图片共享状态且接收到图片切换指令时,先显示与所述图片切换指令对应的第一图片,然后压缩所述第一图片相邻的第二图片,并将压缩后的第二图片放入缓存中,最后将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示,而不是每次在共享图片时,才将所述图片放入缓存中,本方案在显示当前图片时,就将缓存中所述当前图片的压缩文件对应的地址信息发送给显示终端,并压缩所述当前图片相邻的图片,实现了将当前图片进行共享时,直接将当前图片在缓存中对应的地址信息发送给显示终端,提高了图片的共享速度。
进一步地,为了提高图片共享的灵活性,基于第一实施例提出本发明图片共享方法第二实施例,在本实施例中,参照图2,所述步骤S10之前,所述图片共享方法包括:
步骤S40,在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片;
步骤S50,基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中。
步骤S60,将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
在本实施例中,所述图片共享指令的触发方式包括:a、在检测到用户基于所述预设的第三图片所在界面输入的触摸操作时,触发图片的共享指令,即检测到基于预设图片对应区域输入的长按指令时如按压所述图片的时间达到预设时间段如5秒时,触发图片的共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片的共享指令。b、在检测到所述第三图片的定时共享指令时,触发图片共享指令,如事先设置所述第三图片的定时共享模式,在所述定时的时间到达时,触发图片共享指令。
在本实施例中,先基于所述图片共享指令压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,压缩所述第三图片、第四图片和第五图片后,将压缩后的三张图片放入缓存中,所述缓存可为所述终端预设的存储位置,本实施例中,优选终端为预设服务器,则相应的所述缓存为所述服务器中预设的根目录,所述服务器为HTTP(HTTP Hypertext Transfer Protocol,超文本传送协议)服务器,所述HTTP服务器中包含根(ROOT)目录,所述根目录用于存储压缩后的各个图片,即压缩后的图片缓存在所述服务器中的所述根目录中,并且在图片缓存到所述根目录时,根据缓存的图片生成所述缓存的图片对应的地址信息,如URL(Uniform Resource Locator,统一资源定位符),所述URL也可以理解为远程访问链接。
进一步地,为了提高图片共享的灵活性,基于第一实施例提出本发明图片共享方法第三实施例,在本实施例中,所述图片共享方法还包括:
在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
在本实施例中,为了减小缓存中被占用的空间,优选在图片共享过程中,删除所述缓存中预设数量的图片,所述预设数量可根据具体的情况而定,本发明实施例中,优选删除所述缓存中预设数量的图片的方式为:在所述缓存中存储的图片数量达到预设阈值时,如3张时,此时若有第4张图片放入所述缓存中,则优选将所述4张图片中存储时间最早的一张图片进行删除,保证在图片共享过程中,所述缓存中始终存储低于或等于3张数量的图片。
本发明进一步提供一种图片共享装置。
参照图3,图3为本发明图片共享装置第一实施例的功能模块示意图。
需要强调的是,对本领域的技术人员来说,图3所示功能模块图仅仅是一个较佳实施例的示例图,本领域的技术人员围绕图3所示的图片共享装置的功能模块,可轻易进行新的功能模块的补充;各功能模块的名称是自定义名称,仅用于辅助理解该图片共享装置的各个程序功能块,不用于限定本发明的技术方案,本发明技术方案的核心是,各自定义名称的功能模块所要达成的功能。
本实施例提出的图片共享装置优选运行于被控终端(如智能手机以及电脑)中。
本实施例提出一种图片共享装置,所述图片共享装置包括:
显示模块10,用于在处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
在本实施例中,所述图片共享装置包括进入模块、压缩模块和放入模块,所述进入模块在检测到图片共享指令时终端进入图片共享状态,所述显示模块10显示所述图片共享指令对应的第三图片,然后所述压缩模块基于所述图片共享指令压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,最后所述放入模块将压缩后的三张图片放入缓存中。也就是说在图片在开始共享时,先将第一张共享的图片作为第三图片,然后所述压缩模块压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,所述放入模块将压缩的各张图片对应的压缩文件放入缓存中,实现了在图片切换过程中,不论是将所述第三图片切换为第四图片,或者是将所述第三图片切换为第五图片,所述放入模块都已经将所述第三图片的压缩文件放入缓存中,可以直接将所述第三图片对应的压缩文件的地址信息发送至预设显示终端,而不用等到切换到所述第三图片时,才对第三图片进行压缩缓存。在第三图片切换为第四图片或第五图片时,此时,所述第四图片或第五图片作为所述图片切换指令对应的第一图片。
在本实施例中,所述图片切换指令的触发方式包括:a、人为触发,即当用户将显示界面显示的上一张图片滑动到当前图片时,触发图片共享指令。b、定时触发,即在图片共享状态下检测到图片定时切换指令时,触发图片切换指令,所述图片定时切换指令事先根据具体需要设置,如设置图片共享状态下的图片定时切换时间为5S,则在上一张图片显示的时间达到5S时,触发图片切换指令,并切换为下一张图片。
发送模块20,用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
在本实施例中,接收到切换指令时所述显示模块10在显示界面显示第一图片,根据上述实施例可知,所述第一图片对应的压缩文件已经放入缓存了,则在切换为所述第一图片时,可直接获取缓存中所述第一图片的压缩文件对应的第一地址信息,并且所述发送模块20将所述第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示。可以理解的是,本实施例中图片共享场景应用于多屏互动场景中,即基于DLNA(Digital Living Network Alliance,数字生活网络联盟)协议实现,首先,显示终端与所述发送模块20建立连接关系,优选所述显示终端为电视机,建立所述连接关系后,所述发送模块20发送压缩后的第一图片对应的URL给所述显示终端,显示终端访问所述URL以登录到所述HTTP服务器,最后,所述显示终端加载所述压缩后的第一图片并显示。
进一步地,为提高图片共享的清晰度,所述发送模块20,还用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时,将与所述第一图片的原文件对应对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。也就是说不仅可以将压缩后的各个图片放入缓存中,还可将压缩前的各个图片也放入缓存中,即实现了缓存中同时存储同一张图片压缩前和压缩后的两个状态,并且,所述发送模块20发送压缩后的第一图片对应的地址信息和压缩前的第一图片对应的地址信息至显示终端,以供所述显示终端先访问压缩后的地址信息再访问压缩前的地址信息,即先加载显示压缩后的第一图片,并在加载完所述压缩后的第一图片接着加载所述压缩前的第一图片,实现了用户在查看图片时,先查看压缩后的图片,若此时用户还未切换到下一张图片,所述显示终端还可显示压缩前的同一张图片,即压缩后的图片下载完后直接无缝替换压缩前的图片显示,这样对于用户来说既可以快速看到图片,又不必忍受压缩带来的画质损失,既满足了用户查看图片的速度,又提高了图片显示的清晰度。
处理模块30,用于基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
所述处理模块30基于所述图片切换指令,先压缩所述第一图片相邻的第二图片,可以理解的是,在图片共享过程中,若是按照一定的顺序切换图片,如持续向一个方向切换图片时,所述第一图片相邻的图片中已经有一张是已经压缩的图片,如图片的上一张图片是已经压缩过的了,则优选在所述第一图片切换为当前图片时,仅仅压缩所述第一图片相邻且还未压缩的第二图片即可,即压缩所述图片相邻的下一张图片,最后,将压缩后的第二图片也放入所述缓存中。
本实施例提出的图片共享装置,在终端处于图片共享状态且接收到图片切换指令时,先显示与所述图片切换指令对应的第一图片,然后压缩所述第一图片相邻的第二图片,并将压缩后的第二图片放入缓存中,最后将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示,而不是每次在共享图片时,才将所述图片放入缓存中,本方案在显示当前图片时,就将缓存中所述当前图片的压缩文件对应的地址信息发送给显示终端,并压缩所述当前图片相邻的图片,实现了将当前图片进行共享时,直接将当前图片在缓存中对应的地址信息发送给显示终端,提高了图片的共享速度。
进一步地,为了提高图片共享的灵活性,基于第一实施例提出本发明图片共享装置第二实施例,在本实施例中,参照图4,所述图片共享装置还包括:
控制模块40,用于在检测到图片共享指令时,控制终端进入图片共享状态;
所述显示模块10,用于显示与所述图片共享指令对应的第三图片;
所述处理模块30,还用于基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中。
所述处理模块30,还用于将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
具体地,所述图片共享装置还包括触发模块,所述触发模块用于触发图片共享指令。在本实施例中,所述图片共享指令的触发方式包括:a、在检测到用户基于所述预设的第三图片所在界面输入的触摸操作时,触发图片的共享指令,即所述触发模块检测到基于预设图片对应区域输入的长按指令时如按压所述图片的时间达到预设时间段如5秒时,触发图片的共享指令;或者所述触发模块在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片的共享指令。b、在检测到所述第三图片的定时共享指令时,触发图片共享指令,如事先设置所述第三图片的定时共享模式,在所述定时的时间到达时,触发图片共享指令。
在本实施例中,所述处理模块30先基于所述图片共享指令压缩所述第三图片以及所述第三图片相邻的第四图片和第五图片,压缩所述第三图片、第四图片和第五图片后,将压缩后的三张图片放入缓存中,所述缓存可为所述终端预设的存储位置,本实施例中,优选终端为预设服务器,则相应的所述缓存为所述服务器中预设的根目录,所述服务器为HTTP(HTTP Hypertext Transfer Protocol,超文本传送协议)服务器,所述HTTP服务器中包含根(ROOT)目录,所述根目录用于存储压缩后的各个图片,即压缩后的图片缓存在所述服务器中的所述根目录中,并且在图片缓存到所述根目录时,根据缓存的图片生成所述缓存的图片对应的地址信息,如URL(Uniform Resource Locator,统一资源定位符),所述URL也可以理解为远程访问链接。
进一步地,为了提高图片共享的灵活性,基于第一实施例提出本发明图片共享装置第三实施例,在本实施例中,所述图片共享装置还包括:
删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
在本实施例中,为了减小缓存中被占用的空间,优选在图片共享过程中,所述删除模块删除所述缓存中预设数量的图片,所述预设数量可根据具体的情况而定,本发明实施例中,优选所述删除模块删除所述缓存中预设数量的图片的方式为:在所述缓存中存储的图片数量达到预设阈值时,如3张时,此时若有第4张图片放入所述缓存中,则优选所述删除模块将所述4张图片中存储时间最早的一张图片进行删除,保证在图片共享过程中,所述缓存中始终存储低于或等于3张数量的图片。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其它变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其它要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
上述本发明实施例序号仅仅为了描述,不代表实施例的优劣。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端设备(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
以上仅为本发明的优选实施例,并非因此限制本发明的专利范围,凡是利用本发明说明书及附图内容所作的等效结构或等效流程变换,或直接或间接运用在其它相关的技术领域,均同理包括在本发明的专利保护范围内。

Claims (20)

  1. 一种图片共享方法,其特征在于,所述图片共享方法包括以下步骤:
    在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片;
    基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
    将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示;
    在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
    将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示,同时,将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示;
    基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
  2. 如权利要求1所述的图片共享方法,其特征在于,所述在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片的步骤之前,所述图片共享方法包括:
    在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
  3. 如权利要求1所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  4. 如权利要求2所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  5. 一种图片共享方法,其特征在于,所述图片共享方法包括以下步骤:
    在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
    将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
    基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
  6. 如权利要求5所述的图片共享方法,其特征在于,所述将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时执行以下步骤:
    将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。
  7. 如权利要求5所述的图片共享方法,其特征在于,所述在终端处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片的步骤之前,所述图片共享方法包括:
    在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片;
    基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
    将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
  8. 如权利要求7所述的图片共享方法,其特征在于,所述在检测到图片共享指令时,控制终端进入图片共享状态,并显示与所述图片共享指令对应的第三图片的步骤之前,所述图片共享方法包括:
    在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
  9. 如权利要求5所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  10. 如权利要求6所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  11. 如权利要求7所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  12. 如权利要求8所述的图片共享方法,其特征在于,所述图片共享方法还包括:
    在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  13. 一种图片共享装置,其特征在于,所述图片共享装置包括:
    显示模块,用于在处于图片共享状态,且接收到图片切换指令时,显示与所述图片切换指令对应的第一图片;
    发送模块,用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端,以供所述显示终端基于所述第一地址信息获取所述压缩文件并显示;
    处理模块,用于基于所述图片切换指令压缩与所述第一图片相邻的第二图片,将压缩后的第二图片放入缓存中。
  14. 如权利要求13所述的图片共享装置,其特征在于,所述发送模块,还用于将缓存中与所述第一图片的压缩文件对应的第一地址信息发送至预设的显示终端的同时,将与所述第一图片的原文件对应的第二地址信息发送给所述显示终端,以供所述显示终端在接收到第一图片显示指令时,基于所述第二地址信息获取所述原文件并显示。
  15. 如权利要求13所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    控制模块,用于在检测到图片共享指令时,控制终端进入图片共享状态;
    所述显示模块,用于显示与所述图片共享指令对应的第三图片;
    所述处理模块,还用于基于所述图片共享指令压缩所述第三图片以及与所述第三图片相邻的第四图片和第五图片,将压缩后的三张图片放入缓存中;
    所述处理模块,还用于将缓存中所述第三图片的压缩文件对应的第三地址信息发送至预设的显示终端,以供所述显示终端基于所述第三地址信息获取所述压缩文件并显示。
  16. 如权利要求15所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    触发模块,用于在检测到基于预设图片对应区域输入的长按指令时,触发图片共享指令;或者在检测到基于预设图片对应区域输入的滑动触摸操作时,触发图片共享指令。
  17. 如权利要求13所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  18. 如权利要求14所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  19. 如权利要求15所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
  20. 如权利要求16所述的图片共享装置,其特征在于,所述图片共享装置还包括:
    删除模块,用于在图片共享过程中,删除所述缓存中预设数量的图片,其中,删除的图片的存储时间早于保留的图片的存储时间。
PCT/CN2016/084240 2015-09-25 2016-06-01 图片共享方法及装置 WO2017049948A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201510626358.XA CN105306543A (zh) 2015-09-25 2015-09-25 图片共享方法及装置
CN201510626358.X 2015-09-25

Publications (1)

Publication Number Publication Date
WO2017049948A1 true WO2017049948A1 (zh) 2017-03-30

Family

ID=55203286

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2016/084240 WO2017049948A1 (zh) 2015-09-25 2016-06-01 图片共享方法及装置

Country Status (2)

Country Link
CN (1) CN105306543A (zh)
WO (1) WO2017049948A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN113849148A (zh) * 2021-10-15 2021-12-28 西安科芮智盈信息技术有限公司 画面显示方法、装置、显示设备及计算机可读存储介质
CN115167740A (zh) * 2020-05-18 2022-10-11 Oppo广东移动通信有限公司 控制方法、电子装置和存储介质

Families Citing this family (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105306543A (zh) * 2015-09-25 2016-02-03 深圳Tcl数字技术有限公司 图片共享方法及装置
CN106488028B (zh) * 2016-10-31 2020-04-03 浙江中之杰智能系统有限公司 一种信息处理方法及移动终端
CN106686097B (zh) * 2016-12-30 2019-12-17 深圳Tcl数字技术有限公司 图片传输方法和系统

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060148500A1 (en) * 2005-01-05 2006-07-06 Microsoft Corporation Processing files from a mobile device
CN101465953A (zh) * 2009-01-15 2009-06-24 深圳市茁壮网络技术有限公司 图片显示方法和数字电视图片浏览系统以及电视机顶盒
CN103179190A (zh) * 2013-01-31 2013-06-26 华为技术有限公司 一种图片传输方法、装置和系统
CN103457937A (zh) * 2013-08-16 2013-12-18 深圳Tcl新技术有限公司 共享文件的图片浏览方法及系统
CN105306543A (zh) * 2015-09-25 2016-02-03 深圳Tcl数字技术有限公司 图片共享方法及装置

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101056405B (zh) * 2007-04-24 2010-10-20 武汉大学 可伸缩视频流的一种快速切换方法
US8082675B1 (en) * 2008-06-04 2011-12-27 Scott Schoenebeck Location marking device of a support for a mountable object
CN102368243B (zh) * 2011-09-08 2013-12-25 广州市动景计算机科技有限公司 用于在无图浏览模式下查看图片的方法、装置及移动终端
KR20130108949A (ko) * 2012-03-26 2013-10-07 한국전자통신연구원 영상부호 및 복호화 단계에서의 이중 객체검출 및 이동경로 정보를 이용한 영상 압축 방법

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20060148500A1 (en) * 2005-01-05 2006-07-06 Microsoft Corporation Processing files from a mobile device
CN101465953A (zh) * 2009-01-15 2009-06-24 深圳市茁壮网络技术有限公司 图片显示方法和数字电视图片浏览系统以及电视机顶盒
CN103179190A (zh) * 2013-01-31 2013-06-26 华为技术有限公司 一种图片传输方法、装置和系统
CN103457937A (zh) * 2013-08-16 2013-12-18 深圳Tcl新技术有限公司 共享文件的图片浏览方法及系统
CN105306543A (zh) * 2015-09-25 2016-02-03 深圳Tcl数字技术有限公司 图片共享方法及装置

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN115167740A (zh) * 2020-05-18 2022-10-11 Oppo广东移动通信有限公司 控制方法、电子装置和存储介质
CN113849148A (zh) * 2021-10-15 2021-12-28 西安科芮智盈信息技术有限公司 画面显示方法、装置、显示设备及计算机可读存储介质

Also Published As

Publication number Publication date
CN105306543A (zh) 2016-02-03

Similar Documents

Publication Publication Date Title
WO2017049948A1 (zh) 图片共享方法及装置
CN101107854B (zh) 用于向移动数据处理单元发送数据的方法和设备
WO2016165556A1 (zh) 一种视频流的数据处理方法、装置和系统
WO2016101698A1 (zh) 基于dlna技术实现屏幕推送的方法及系统
WO2019128174A1 (zh) 音频播放方法、智能电视及计算机可读存储介质
WO2016029594A1 (zh) 终端连接显示设备的方法及系统
WO2016192254A1 (zh) 网络视频在线播放的方法和装置
WO2017092268A1 (zh) 终端故障处理方法、装置及系统
WO2017084311A1 (zh) 单分片视频播放加速方法及装置
WO2016045160A1 (zh) 网页数据处理方法和装置
WO2018068411A1 (zh) 智能电视远程调试方法及智能电视远程调试系统
WO2018040421A1 (zh) 资源共享方法、装置及系统
WO2018023926A1 (zh) 电视与移动终端的互动方法及系统
WO2014187158A1 (zh) 终端数据云分享的控制方法、服务器及终端
WO2018018681A1 (zh) 视频节目预览方法及装置
WO2017084301A1 (zh) 音频数据播放方法、装置及智能电视机
WO2017190450A1 (zh) 进程关闭方法及装置
WO2017190451A1 (zh) 图片推送方法和装置
WO2017036209A1 (zh) 基于智能电视的音频数据播放方法、智能电视及系统
WO2016206223A1 (zh) 截图的方法及系统
WO2018126888A1 (zh) 电视功能的快捷启动设置方法及装置
WO2016065705A1 (zh) 一种频道列表更新方法、装置及终端设备
WO2017000729A1 (zh) 音视频播放控制方法和装置
WO2017084303A1 (zh) 电视桌面系统的切换方法及切换控制系统
WO2018161603A1 (zh) 移动终端图像绘制的控制方法、装置、介质及电子设备

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: 16847830

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 03/08/2018)

122 Ep: pct application non-entry in european phase

Ref document number: 16847830

Country of ref document: EP

Kind code of ref document: A1