1、BSI Standards PublicationBS ISO 15740:2013Photography Electronicstill picture imaging Picturetransfer protocol (PTP) fordigital still photographydevicesBS ISO 15740:2013 BRITISH STANDARDNational forewordThis British Standard is the UK implementation of ISO 15740:2013. Itsupersedes BS ISO 15740:2008
2、which is withdrawn.The UK participation in its preparation was entrusted to TechnicalCommittee CPW/42, Photography.A list of organizations represented on this committee can beobtained on request to its secretary.This publication does not purport to include all the necessaryprovisions of a contract.
3、Users are responsible for its correctapplication. The British Standards Institution 2013. Published by BSI StandardsLimited 2013ISBN 978 0 580 82308 4ICS 37.040.99Compliance with a British Standard cannot confer immunity fromlegal obligations.This British Standard was published under the authority o
4、f theStandards Policy and Strategy Committee on 30 September 2013.Amendments issued since publicationDate Text affectedBS ISO 15740:2013 ISO 2013Photography Electronic still picture imaging Picture transfer protocol (PTP) for digital still photography devicesPhotographie Imagerie des prises de vue l
5、ectroniques Protocole de transfert dimages (PTP) pour les appareils photographiques lectroniques numriquesINTERNATIONAL STANDARDISO15740Third edition2013-09-15Reference numberISO 15740:2013(E)BS ISO 15740:2013ISO 15740:2013(E)ii ISO 2013 All rights reservedCOPYRIGHT PROTECTED DOCUMENT ISO 2013All ri
6、ghts reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized otherwise in any form or by any means, electronic or mechanical, including photocopying, or posting on the internet or an intranet, without prior written permission. Permission can be requested from
7、either ISO at the address below or ISOs member body in the country of the requester.ISO copyright officeCase postale 56 CH-1211 Geneva 20Tel. + 41 22 749 01 11Fax + 41 22 749 09 47E-mail copyrightiso.orgWeb www.iso.orgPublished in SwitzerlandBS ISO 15740:2013ISO 15740:2013(E) ISO 2013 All rights res
8、erved iiiContents PageForeword vIntroduction vi1 Scope . 12 Normative references 13 Terms and definitions . 14 Digital still photography device model . 54.1 Overview 54.2 Baseline requirements . 65 Data format specification 65.1 General format 65.2 Data types 75.3 Simple types 95.4 Arrays . 115.5 Da
9、ta sets . 126 Image and data object formats .216.1 Object usage . 216.2 Thumbnail formats . 226.3 ObjectFormatCodes 236.4 Object format version identification . 236.5 Data object association . 247 Transport requirements 267.1 Disconnection events267.2 Reliable, error-free channel 277.3 Asynchronous
10、event support . 277.4 Device discovery and enumeration 277.5 Specific transports 278 Persistent storage .278.1 StorageID . 278.2 Data object referencing . 288.3 Receiver object placement . 299 Communication protocol 309.1 Device roles . 309.2 Sessions 309.3 Transactions . 309.4 Operation flow 339.5
11、Vendor extensions . 3310 Operations 3510.1 Operation overview . 3510.2 Operation parameters 3510.3 OperationCode format . 3510.4 OperationCode summary 3510.5 Operation descriptions . 3511 Responses .6011.1 ResponseCode format 6011.2 ResponseCode summary .6011.3 Response descriptions 6112 Events 6612
12、.1 Event usage .6612.2 Event types 66BS ISO 15740:2013ISO 15740:2013(E)iv ISO 2013 All rights reserved12.3 Event data set 6612.4 EventCode format 6712.5 EventCode summary .6712.6 Event descriptions 6713 Device properties 7113.1 Device property usage . 7113.2 Values of a device property . 7113.3 Devi
13、ce property management requirements 7213.4 Device property identification . 7213.5 Device property descriptions 7614 Streaming (PTP v1.1 only) .9214.1 Streaming overview . 9214.2 Stream transfer 9214.3 Multiplexing 9214.4 Discovering and configuring stream capabilities .9314.5 Data transfer mechanis
14、m 9314.6 Packet layout 9414.7 Frame layout 9514.8 Enumerating supported streams . 9514.9 Retrieving stream information. 9515 Conformance section .95Annex A (informative) Optional device features .98Annex B (normative) Object referencing and format codes . 100Annex C (informative) Operation flow exam
15、ple scenarios . 102Annex D (informative) Filesystem implementation examples . 106Annex E (informative) Reference to OSI model 109Annex F (informative) SendObject implementation example . 112Bibliography . 115BS ISO 15740:2013ISO 15740:2013(E)ForewordISO (the International Organization for Standardiz
16、ation) is a worldwide federation of national standards bodies (ISO member bodies). The work of preparing International Standards is normally carried out through ISO technical committees. Each member body interested in a subject for which a technical committee has been established has the right to be
17、 represented on that committee. International organizations, governmental and non-governmental, in liaison with ISO, also take part in the work. ISO collaborates closely with the International Electrotechnical Commission (IEC) on all matters of electrotechnical standardization.The procedures used to
18、 develop this document and those intended for its further maintenance are described in the ISO/IEC Directives, Part 1. In particular the different approval criteria needed for the different types of ISO documents should be noted. This document was drafted in accordance with the editorial rules of th
19、e ISO/IEC Directives, Part 2. www.iso.org/directivesAttention is drawn to the possibility that some of the elements of this document may be the subject of patent rights. ISO shall not be held responsible for identifying any or all such patent rights. Details of any patent rights identified during th
20、e development of the document will be in the Introduction and/or on the ISO list of patent declarations received. www.iso.org/patentsAny trade name used in this document is information given for the convenience of users and does not constitute an endorsement.The committee responsible for this docume
21、nt is ISO/TC 42, Photography.This third edition cancels and replaces the second edition (ISO 15740:2008), of which it constitutes a minor revision with the following changes: as the vendor extension ID registry formerly maintained by the I3A has been transferred to another organization, term 3.21 (I
22、3A) was removed and the remaining terms renumbered; in 9.5.1, the fourth and fifth sentences were amended and combined to reflect that a new organization assigns and maintains VendorExtensionIDs. ISO 2013 All rights reserved vBS ISO 15740:2013ISO 15740:2013(E)IntroductionThis third edition of ISO 15
23、740 (hereinafter designated PTP v1.1) provides optional support for new increased performance and compatibility. All new constructs are fully backward compatible with the first edition (hereinafter designated PTP v1.0) and are optional. See 5.5.2 for standard version.For the purposes of this Interna
24、tional Standard, digital still photography devices (DSPDs) are defined as devices with persistent storage which capture a digital two-dimensional image at a discrete point in time. Most DSPDs include interfaces that can be used to connect to a host computer or other imaging device, such as a printer
25、. A number of high speed interface transports has been developed, including USB, TCP/IP and IEEE 1394 (FireWire). This International Standard is designed to provide requirements for communicating with DSPDs. This includes communications with any type of device, including host computers, direct print
26、ers and other DSPDs over a suitable transport. The requirements include standard image referencing behaviour, operations, responses, events, device properties, data sets and data formats to ensure interoperability. This International Standard also provides optional operations and formats, as well as
27、 extension mechanisms.This International Standard specifies the following: behaviour requirements for DSPDs; this includes the baseline features a device needs to support in order to provide interoperability over conforming transports; functional requirements needed by a transport to facilitate the
28、creation of a transport-dependent implementation specification that conforms to this International Standard; a high-level protocol for communicating with and between DSPDs consisting of operation, data and response phases; sets of suggested data codes and their usages including OperationCodes, Respo
29、nseCodes, ObjectFormatCodes, DevicePropCodes, EventCodes, required data sets and their usages, a means of describing data object associations and filesystems and mechanisms for implementing extensibility.This International Standard does not attempt to define any of the following: any sort of device
30、discovery, enumeration or transport aggregation methods; implementation of this functionality is left to the transports and the platforms upon which support for this International Standard is implemented; an application programming interface; this is left to the platforms upon which support for this
31、 International Standard is implemented.This International Standard has been designed to appropriately support popular image formats used in digital still cameras, including the Exif and TIFF/EP formats defined in ISO 12234-115and ISO 12234-2, as well as the Design Rule for Camera Filesystem (DCF) an
32、d the Digital Print Order Format (DPOF).The technical content of this International Standard is closely related to PIMA 15740:2000. The main difference is that PIMA 15740:2000 includes an informative annex describing a USB implementation of vi ISO 2013 All rights reservedBS ISO 15740:2013ISO 15740:2
33、013(E)ISO 15740. This information is not included in this International Standard, which instead references the USB still device class document developed by the Device Working Group of the USB Implementers Forum.PTP v1.1 provides optional support for new increased performance and compatibility. All n
34、ew constructs are fully backward compatible with PTP v1.0 and are optional. Performance Enhancements: Support for retrieval of ObjectHandles in enumerated chunks, via specification of three new optional operations and a new response code. This may reduce long response times for some initiators that
35、possess large numbers of objects. Support for optional arbitrary resizing prior to image transmission via specification of a new operation GetResizedImageObject. In PTP v1.0, image sizes might be requested in full-resolution or thumbnail size only. Support for arrays of data sets. This can be used t
36、o reduce the number of required transactions necessary for device characterization from being a function of the number of objects on the device to one. An optional fast file characterization operation called GetFilesystemManifest that exploits data set arrays to request, in a single transaction, onl
37、y the minimum data required to characterize a typical filesystem. Many initiators, particularly in printing scenarios, are interested in fast filesystem characterization for access to a specifically named file in a particular place. This capability can significantly improve end-user workflow latency
38、. This single operation replaces the typical series of many GetObjectInfo requests with a binary filesystem manifest. This manifest is defined as a simple array of a subset of the standard ObjectInfo data set called the ObjectFilesystemInfo data set. This operation replaces the need for many GetObje
39、ctInfo calls, while also avoiding the need for responders to perform many internal file-opens on the fly, or to cache ObjectInfo image data that is often held persistently only “inside” internal image files (e.g. TIFF tags inside EXIF JPEGs), to quickly communicate only the fast filesystem informati
40、on. Compatibility Enhancements: An optional mechanism to support multiple vendor extension sets. This is specified via the new VendorExtensionMap data set, and two new optional operations that may be invoked outside of a session (GetVendorExtensionMaps and GetVendorDeviceInfo). The optional fast fil
41、e characterization method GetFilesystemManifest natively supports extremely large objects, by requiring 8-bytes for object size (UINT64), as opposed to the standard 4-bytes. A new standard ObjectFormatCode to support the Digital Negative file format (DNG). Feature Enhancement: An optional mechanism
42、for handling streaming content. This is specified via the new StreamInfo data set, as well as the supporting GetStreamInfo and GetStream operations, as well as some optional new supporting DeviceProperties. This is described in a new Clause 14. ISO 2013 All rights reserved viiBS ISO 15740:2013BS ISO
43、 15740:2013Photography Electronic still picture imaging Picture transfer protocol (PTP) for digital still photography devices1 ScopeThis International Standard provides a common communication protocol for exchanging images with and between digital still photography devices (DSPDs). This includes com
44、munication between DSPDs and host computers, printers, other digital still devices, telecommunications kiosks and image storage and display devices.This protocol is transport- and platform-independent.2 Normative referencesThe following documents, in whole or in part, are normatively referenced in t
45、his document and are indispensable for its application. For dated references, only the edition cited applies. For undated references, the latest edition of the referenced document (including any amendments) applies.ISO 8601, Data elements and interchange formats Information interchange Representatio
46、n of dates and timesISO 12234-2, Electronic still-picture imaging Removable memory Part 2: TIFF/EP image data formatISO/IEC 10646, Information technology Universal Coded Character Set (UCS)ISO/IEC 10918-1:1994, Information technology Digital compression and coding of continuous-tone still images: Re
47、quirements and guidelinesIEC 61966-2-1, Multimedia systems and equipment Colour measurement and management Part 2-1: Colour management Default RGB colour space sRGB3 Terms and definitionsFor the purposes of this document, the following terms and definitions apply.3.1albumend-user-created object used
48、 to logically group data objects according to some user-defined criteriaNote 1 to entry: An album might or might not be a physical folder in a filesystem. In this International Standard, an album is a type of association.3.2associationlogical construct used to expose a relationship between discrete
49、objectsNote 1 to entry: Associations are used to indicate that separate data objects are related. Associations are represented like folders, and can be nested using a standard branched hierarchical tree structure.EXAMPLE A time sequence, or user-defined groupings by content or capture session.3.3connectiontransport-provided mechanism for establishing paths for transferring data between devicesINTERNATIONAL STANDARD ISO 15740:2013(E) ISO 2013 All rights reserved 1BS ISO 15740:2013ISO 15740:2013(E