Design rule for Camera File system
Design rule for Camera File system (DCF) is a JEITA specification (number CP-3461) which defines a file system for digital cameras, including the directory structure, file naming method, character set, file format, and metadata format. It is currently the de facto industry standard for digital still cameras. The file format of DCF conforms to the Exif specification, but the DCF specification also allows use of any other file formats.
The latest version of the standard is 2.0 (2010 edition).
File system
In order to guarantee interoperability, DCF specifies the file system for image and sound files to be used on formatted DCF media (like removable or non-removable memory) as FAT12, FAT16, FAT32, or exFAT.[1] Media[1] with a capacity of more than 2 GB must be formatted using FAT32 or exFAT.
The DCF standard defines that the "Read Only" file and directory attribute of FAT file systems can be used to protect files or directories from accidental deletion. Other existing attributes don't have any specially defined usage in DCF.
Directory and file structure
The filesystem in a digital camera contains a DCIM
DCF objects
DCF object is a standalone file with DCF filename (e.g. ABCD0001.JPG) or a file group that shares the same file number. DCF objects are used for the files related with each other, such as the image file and the related audio file. Related files are handled together for the convenience of users. A DCF object need not include an image file. A standalone file for which no other file with the same file number exists is still a DCF object. Files in directories that are not located under a DCF directory are not DCF object components.
DCF specification defines files included in DCF objects:
- DCF basic file – an image file with filename extension ".JPG" conforming to the Exif specification; uses sRGB color space
- DCF optional file – an image file with filename extension ".JPG" conforming to the Exif specification, used when an image is to undergo extensive processing notably in professional uses; uses DCF optional color space
- DCF extended image file – a file with a filename (and data structure) other than "JPG" or "THM".
- DCF thumbnail file – a thumbnail image file with filename extension ".THM", used for extended image file; uses sRGB color space and JPEG compression
Files not specified in DCF specification (with other extensions and data structures, e.g. "TXT", "WAV", "TIF" etc.) may also be included in a DCF object.
The rules for DCF object structure and elements prohibit the use of DCF thumbnail files for files with ".JPG" extension. They also prohibit the extension "JPG" for other than DCF basic files and DCF optional files.
One DCF directory may contain up to 9999 DCF objects, numbered from "0001" to "9999" (a.k.a. "File number"), except for Panasonic which is numbered from "0001" to "0999". This holds true even if the prefix used is "DSC0", frequently causing users not aware of the DCF standard to wonder why the picture counter wraps around after 9999. For example, the next file after DSC09999.JPG will create a new folder containing DSC00001.JPG, rather than continuing in the same folder to DSC10000.JPG.
DCF media
DCF media is defined as removable memory recorded in compliance with the DCF specification or, removable and non-removable memory that a file system can access from an external device through IF (regardless of wired or wireless)[vague].
Access
Camera file systems can usually be accessed by directly mounting them via the USB mass storage device class protocol, which exposes the file layout, whether DCF compliant or otherwise. Alternatively, and independent of DCF, files may be accessed via the Picture Transfer Protocol, which provides an object-oriented view and need not expose the file layout.
The file system layout is often opaque to users, as images are copied onto a computer or printer and the application deals with layout.
See also
- CIFF Specification on File/Directory organization and File Handling Protocol
- DPOF
- Picture Transfer Protocol
- USB mass storage device class
References
- ^ a b Standard of the Camera & Imaging Products Association, CIPA DC- 009-Translation- 2010, Design rule for Camera File system: DCF Version 2.0 (Edition 2010) (PDF), archived from the original (PDF) on 2013-09-30, retrieved 2011-04-13