CN104598222A - Obtaining method for cross-platform private cloud file thumbnail - Google Patents

Obtaining method for cross-platform private cloud file thumbnail Download PDF

Info

Publication number
CN104598222A
CN104598222A CN201410831769.8A CN201410831769A CN104598222A CN 104598222 A CN104598222 A CN 104598222A CN 201410831769 A CN201410831769 A CN 201410831769A CN 104598222 A CN104598222 A CN 104598222A
Authority
CN
China
Prior art keywords
thumbnail
picture
upnp
xmpp
platform
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201410831769.8A
Other languages
Chinese (zh)
Inventor
郑言海
邢有涛
罗慧骏
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
SUZHOU YOUSHI XUNTONG INTERNET SCIENCE & TECHNOLOGY Co Ltd
Original Assignee
SUZHOU YOUSHI XUNTONG INTERNET SCIENCE & TECHNOLOGY Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by SUZHOU YOUSHI XUNTONG INTERNET SCIENCE & TECHNOLOGY Co Ltd filed Critical SUZHOU YOUSHI XUNTONG INTERNET SCIENCE & TECHNOLOGY Co Ltd
Priority to CN201410831769.8A priority Critical patent/CN104598222A/en
Publication of CN104598222A publication Critical patent/CN104598222A/en
Pending legal-status Critical Current

Links

Abstract

The invention discloses an obtaining method for a cross-platform private cloud file thumbnail. The obtaining method is characterized by including the following steps that (1), a platform framework based on UPnP, XMPP, libjpeg, libpng and Thumbnail Cache is established; (2), the thumbnail of a local picture is browsed, and a function interface based on C development is directly called under the platform framework; (3), in the process of browsing a picture thumbnail of cross-network equipment, and the XMPP based on an instant messaging protocol is used; (4), in the process of browsing a picture thumbnail of local area network equipment, a UPnP protocol is used under the platform framework. Browsing of the picture thumbnails is not limited by operation systems of intelligent equipment or networks, high-quality experience is provided for a user, a network protocol and picture coder and decoder unified platform is constructed, and a large amount of retrieval behaviors and long consumed time are avoided.

Description

A kind of cross-platform privately owned cloud file thumbnail implementation method
Technical field
The invention belongs to the technical field of communication, relate to a kind of implementation method of cloud file thumbnail more specifically.
Background technology
The scene of browsing pictures is the picture that smart machine browses WEB server more widely at present, by WEB server pre-generatmg thumbnail, for user's preview.This mode has following shortcoming: one is that this preview picture mode is confined between WEB server and client; Two be WEB server IP address must be in client can direct access location.This can not browse the problem of thumbnail under just causing the scene of mutual browsing pictures file in LAN (Local Area Network) or wide area network between various smart machine in advance.
Summary of the invention
For the problems referred to above, the object of the present invention is to provide a kind of method that all can realize preview picture between arbitrary equipment when inter-network.
The present invention is realized by following technical scheme.
A kind of cross-platform privately owned cloud file thumbnail implementation method, comprises the steps:
(1) platform framework based on UPnP, XMPP, libjpeg, libpng and Thumbnail Cache is set up: wherein UI is as the decision maker of software logic, UPnP and XMPP, as intermediate module arranged side by side, does not occur simultaneously each other; Bottom libjpeg/libpng provide codec functions, and Thumbnail Cache maps former figure and thumbnail, completes thumbnail storage and reading process; UI directly can call UPnP, XMPP and libjpeg/libpng;
(2) browse local picture thumbnail, under this platform framework, directly call the function interface based on C exploitation;
(3) picture thumbnail of across a network equipment is browsed, under this platform framework, use the picture thumbnail request flow process achieving chain of command based on IQ primitive in instant communication protocol XMPP, and utilize P2P agreement by picture thumbnail entity transmission to the local flow process shown;
(4) picture thumbnail of lan device is browsed, what under this platform framework, utilize UPnP protocol intelligence analyzes viewed equipment and browsing apparatus under same LAN (Local Area Network), select the HTTP transmission mode of UPnP inside, complete the flow process of picture thumbnail entity transmission to local display fast.
As this technical scheme further, described local terminal UPnP only consults with opposite end UPnP, calls picture encoding and decoding interface by opposite end UPnP.
As this technical scheme further, described local terminal XMPP only consults with opposite end XMPP, calls picture encoding and decoding interface by opposite end XMPP.
As this technical scheme further, the function interface of described C exploitation uses bicubic interpolation algorithm.
Beneficial effect: the invention of this patent is based on the Platform of UPnP, XMPP, libjpeg, libpng and Thumbnail Cache, achieve picture thumbnail preview not by smart machine operating system or the limitation of network, for user provides high-quality experience, construct procotol and the picture codec unified platform.Performance is also optimized: achieve thumbnail buffer memory (Thumbnail Cache), the path of depositing of depositing path and former figure of thumbnail file defines mirror image (such as former figure :/dir0/dir1/pic0; Thumbnail :/thumbnail/dir0/dir1/pic0), when searching thumbnail, only needing to revise former figure path and just can directly locate, avoiding a large amount of retrievals; Simultaneously UPnP, XMPP, libjpeg/libpng share thumbnail buffer memory, follow identical principle, the thumbnail generated under ensure that three kinds of scenes multiplexing; After entering LAN (Local Area Network), agreement automatically switches to UPnP, avoids the problem that XMPP link setup is more consuming time.
accompanying drawing illustrates:
Fig. 1 is technical method logical diagram of the present invention.
Fig. 2 is the transmission path of across a network equipment.
Fig. 3 is the transmission path of equipment in LAN (Local Area Network).
embodiment:
For enabling above-mentioned purpose of the present invention, feature and advantage more become apparent, and are described in detail specific embodiments of the invention below in conjunction with accompanying drawing.
See Fig. 1, a kind of cross-platform privately owned cloud file thumbnail implementation method, comprises the steps:
(1) platform framework based on UPnP, XMPP, libjpeg, libpng and Thumbnail Cache is set up: wherein UI is as the decision maker of software logic, UPnP and XMPP, as intermediate module arranged side by side, does not occur simultaneously each other; Bottom libjpeg/libpng provide codec functions, and Thumbnail Cache maps former figure and thumbnail, completes thumbnail storage and reading process; UI directly can call UPnP, XMPP and libjpeg/libpng;
Thumbnail Cache organizes thumbnail according to former figure path mirror-image fashion, and such as, the path of former figure is :/dir0/dir1/pic0; Thumbnail path is then :/thumbnail/dir0/dir1/pic0, can the former figure of fast mapping and thumbnail, completes thumbnail storage and reading process.
(2) local picture thumbnail is browsed, directly call the function interface (bicubic interpolation algorithm) based on C exploitation, for avoiding transplanting the open source projects such as too huge opencv, bicubic interpolation algorithm is used to develop micro-thumbnail module based on libjpeg/libpng, avoid the additional workload that brings of difference due to the exploitation of iOS, Android or Windows control, unify the interface of each operating system
(3) browse the picture thumbnail of across a network equipment, use the picture thumbnail request flow process achieving chain of command based on IQ primitive in instant communication protocol XMPP, and utilize P2P agreement by picture thumbnail entity transmission to the local flow process shown.As shown in Figure 2, carried thumbnail information by preview device and IP address is forwarded to preview device by XMPP server, whether preview device is attempted all possible IP address and be may have access to, and sets up point-to-point link with addressable IP address, after realizing thumbnail transmission, disconnecting link.XMPP achieves the UPnP function of across a network.
(4) picture thumbnail of lan device is browsed, what this platform utilized UPnP protocol intelligence analyzes viewed equipment and this equipment under same LAN (Local Area Network), the prioritizing selection HTTP transmission mode of UPnP inside, completes the flow process of picture thumbnail entity transmission to local display fast.UPnP(Universal Plug and Play) support the equipment of the mutual preview of automatic search LAN (Local Area Network) internal support and obtain opposite equip. thumbnail function, support searched and be acquired thumbnail function; As shown in Figure 3, compared with XMPP, decrease the time of a large amount of link establishment process institute losses.
Although the present invention discloses as above, the present invention is not defined in this.Any those skilled in the art, without departing from the spirit and scope of the present invention, all can make various changes or modifications, and therefore protection scope of the present invention should be as the criterion with claim limited range.

Claims (4)

1. a cross-platform privately owned cloud file thumbnail implementation method, is characterized in that, comprise the steps:
(1) platform framework based on UPnP, XMPP, libjpeg, libpng and Thumbnail Cache is set up: wherein UI is as the decision maker of software logic, UPnP and XMPP, as intermediate module arranged side by side, does not occur simultaneously each other; Bottom libjpeg/libpng provide codec functions, and Thumbnail Cache maps former figure and thumbnail, completes thumbnail storage and reading process; UI directly can call UPnP, XMPP and libjpeg/libpng;
(2) browse local picture thumbnail, under this platform framework, directly call the function interface based on C exploitation;
(3) picture thumbnail of across a network equipment is browsed, under this platform framework, use the picture thumbnail request flow process achieving chain of command based on IQ primitive in instant communication protocol XMPP, and utilize P2P agreement by picture thumbnail entity transmission to the local flow process shown;
(4) picture thumbnail of lan device is browsed, what under this platform framework, utilize UPnP protocol intelligence analyzes viewed equipment and browsing apparatus under same LAN (Local Area Network), select the HTTP transmission mode of UPnP inside, complete the flow process of picture thumbnail entity transmission to local display fast.
2. the cross-platform privately owned cloud file thumbnail implementation method of one according to claim 1, it is characterized in that, described local terminal UPnP only consults with opposite end UPnP, calls picture encoding and decoding interface by opposite end UPnP.
3. the cross-platform privately owned cloud file thumbnail implementation method of one according to claim 1, it is characterized in that, described local terminal XMPP only consults with opposite end XMPP, calls picture encoding and decoding interface by opposite end XMPP.
4. the cross-platform privately owned cloud file thumbnail implementation method of one according to claim 1, is characterized in that, the function interface of described C exploitation uses bicubic interpolation algorithm.
CN201410831769.8A 2014-12-29 2014-12-29 Obtaining method for cross-platform private cloud file thumbnail Pending CN104598222A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201410831769.8A CN104598222A (en) 2014-12-29 2014-12-29 Obtaining method for cross-platform private cloud file thumbnail

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201410831769.8A CN104598222A (en) 2014-12-29 2014-12-29 Obtaining method for cross-platform private cloud file thumbnail

Publications (1)

Publication Number Publication Date
CN104598222A true CN104598222A (en) 2015-05-06

Family

ID=53124042

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201410831769.8A Pending CN104598222A (en) 2014-12-29 2014-12-29 Obtaining method for cross-platform private cloud file thumbnail

Country Status (1)

Country Link
CN (1) CN104598222A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262795A (en) * 2015-09-18 2016-01-20 惠州市德赛工业发展有限公司 Private cloud and public cloud combined online education system
CN108733437A (en) * 2017-04-14 2018-11-02 纬创资通股份有限公司 Instant messaging method, system, electronic device and server
CN109587365A (en) * 2017-09-28 2019-04-05 京瓷办公信息系统株式会社 Management system, management computer and recording medium

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103064662A (en) * 2012-08-28 2013-04-24 华南理工大学 Phone Gap cross-platform media expansion frame based on Android platform
CN103222274A (en) * 2010-11-18 2013-07-24 Lg电子株式会社 Web-browsing method, and image display device using same
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103222274A (en) * 2010-11-18 2013-07-24 Lg电子株式会社 Web-browsing method, and image display device using same
CN103064662A (en) * 2012-08-28 2013-04-24 华南理工大学 Phone Gap cross-platform media expansion frame based on Android platform
CN103731483A (en) * 2013-12-25 2014-04-16 侯金涛 Virtual file system based on cloud computing

Cited By (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105262795A (en) * 2015-09-18 2016-01-20 惠州市德赛工业发展有限公司 Private cloud and public cloud combined online education system
CN105262795B (en) * 2015-09-18 2019-07-30 惠州德赛信息科技有限公司 A kind of on-line education system of private clound and public cloud combination
CN108733437A (en) * 2017-04-14 2018-11-02 纬创资通股份有限公司 Instant messaging method, system, electronic device and server
CN108733437B (en) * 2017-04-14 2023-06-16 纬创资通股份有限公司 Instant messaging method, system, electronic device and server
CN109587365A (en) * 2017-09-28 2019-04-05 京瓷办公信息系统株式会社 Management system, management computer and recording medium

Similar Documents

Publication Publication Date Title
US9753878B2 (en) Extending the capabilities of existing devices without making modifications to the existing devices
US9445440B2 (en) Method for controlling wireless network devices and control device with wireless network function
US10136044B2 (en) Method, apparatus, and system for communicating information of selected objects of interest displayed in a video-chat application
US9282168B2 (en) Methods, devices, and systems for enabling a personal cloud-computing environment with ubiquitous mobile access and source-independent, automated data aggregation
EP2700021A2 (en) Shared resource and virtual resource management in a networked environment
US20220239718A1 (en) Communication Protocol Switching Method, Apparatus, and System
CN109302471A (en) A kind of Intelligent household scene control system and method
US20180212825A1 (en) Dynamic management of networks to facilitate storage device access
KR101592459B1 (en) Packet forwarding method and system
US10999243B2 (en) Sharing media among remote access clients in a universal plug and play environment
CN104598222A (en) Obtaining method for cross-platform private cloud file thumbnail
CN104486816A (en) Quick automatic scanning method of Wifi (Wireless Fidelity) terminal equipment in multiple access points
CN107133322A (en) The implementation method for the common data channel that HTML is interacted with Native in Mobile solution
US10432714B2 (en) Data processing method and system based on asymmetric P2P network
CN104053016B (en) A kind of image preview method and device
WO2017000447A1 (en) Control method, device and system for intelligent household appliance
CN104486217A (en) Cross network message transmitting method and equipment
CN104301400A (en) Multi-screen cooperation and resource sharing method on basis of Samba protocol
CN103401935A (en) Mobile terminal and method thereof for sharing data through web browser
US10505811B2 (en) Multi-terminal interaction relation maintenance system and method
CN104079716A (en) Intelligent device, external storage expansion device and method based on external storage expansion of intelligent device
CN104703023A (en) Method and device for sharing video
US20160173612A1 (en) Peer-to-Peer Interconnection between Service Providers
Yan et al. Research and implementation of edge computing in web AR
CN105263134A (en) Image transmission method and mobile equipment

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
AD01 Patent right deemed abandoned
AD01 Patent right deemed abandoned

Effective date of abandoning: 20181102