Khronos Data Format Specification

Andrew Garrard

Copyright (C) 2015 The Khronos Group Inc. All Rights Reserved.

This specification is protected by copyright laws and contains material proprietary to the Khronos Group, Inc. It or any components may not be reproduced, republished, distributed, transmitted, displayed, broadcast, or otherwise exploited in any manner without the express prior written permission of Khronos Group. You may use this specification for implementing the functionality therein, without altering or removing any trademark, copyright or other notice from the specification, but the receipt or possession of this specification does not convey any rights to reproduce, disclose, or distribute its contents, or to manufacture, use, or sell anything that it may describe, in whole or in part.

Khronos Group grants express permission to any current Promoter, Contributor or Adopter member of Khronos to copy and redistribute UNMODIFIED versions of this specification in any fashion, provided that NO CHARGE is made for the specification and the latest available update of the specification for any version of the API is used whenever possible. Such distributed specification may be reformatted AS LONG AS the contents of the specification are not changed in any way. The specification may be incorporated into a product that is sold as long as such product includes significant independent work developed by the seller. A link to the current version of this specification on the Khronos Group website should be included whenever possible with specification distributions.

Khronos Group makes no, and expressly disclaims any, representations or warranties, express or implied, regarding this specification, including, without limitation, any implied warranties of merchantability or fitness for a particular purpose or non-infringement of any intellectual property. Khronos Group makes no, and expressly disclaims any, warranties, express or implied, regarding the correctness, accuracy, completeness, timeliness, and reliability of the specification. Under no circumstances will the Khronos Group, or any of its Promoters, Contributors or Members or their respective partners, officers, directors, employees, agents, or representatives be liable for any damages, whether direct, indirect, special or consequential damages for lost revenues, lost profits, or otherwise, arising from or in connection with these materials.

Khronos, SYCL, SPIR, WebGL, EGL, COLLADA, StreamInput, OpenVX, OpenKCam, glTF, OpenKODE, OpenVG, OpenWF, OpenSL ES, OpenMAX, OpenMAX AL, OpenMAX IL and OpenMAX DL are trademarks and WebCL is a certification mark of the Khronos Group Inc. OpenCL is a trademark of Apple Inc. and OpenGL and OpenML are registered trademarks and the OpenGL ES and OpenGL SC logos are trademarks of Silicon Graphics International used under license by Khronos. All other product names, trademarks, and/or company names are used solely for identification and belong to their respective owners.


Frank Brill
Sean Ellis
Andrew Garrard (editor)
Jonas Gustavsson
Chris Hebert
Daniel Koch
Thierry Lepley
Tommaso Maestri
Kathleen Mattson
Hans-Peter Nilsson
Alon Or-bach
Erik Rainey
Daniel Rakos
Graham Sellers
David Sena

Revision History
Revision 1.0 rev 4July 10, 2015AG
Revision History
Revision 0.1Jan 2015AG
Initial sharing.
Revision 0.2Feb 2015AG
Added clarification, tables, examples.
Revision 0.3Feb 2015AG
Further cleanup.
Revision 0.4Apr 2015AG
Channel ordering standardised.
Revision 0.5Apr 2015AG
Typos and clarification.
Revision 1.0May 2015AG
Submission for 1.0 release
Revision 1.0 rev 2June 2015AG
Clarifications for 1.0 release
Revision 1.0 rev 3July 2015AG
Revision 1.0 rev 4July 2015AG

Table of Contents

1. Introduction
2. Overview
3. Required concepts not contained in this format
4. Translation to API-specific data format representations
5. Data format descriptor
6. Descriptor block
7. Khronos Basic Data Format Descriptor Block
7.1. vendor_id
7.2. descriptor_type
7.3. version_number
7.4. descriptor_block_size
7.5. color_model
7.6. color_primaries
7.7. transfer_function
7.8. flags
7.9. texel_block_dimensions_[0..3]
7.10. bytes_plane_[0..7]
7.11. Sample information
8. Extension for more complex formats
9. Frequently Asked Questions
9.1. Why have a binary format rather than a human-readable one?
9.2. Why not use an existing representation such as those on
9.3. Why have a descriptive format?
9.4. Why describe this standard within Khronos?
9.5. Why should I use this format if I don’t need most of the fields?
9.6. Why not expand each field out to be integer for ease of decoding?
9.7. Can this descriptor be used for text content?
10. External references
10.1. Adaptive Scalable Texture Compression
10.2. ITU-T BT.601 specification for digital television
10.3. ITU-T BT.709 specification for HDTV
10.4. ITU-T BT.2020 specification for UHDTV
10.5. CIE 1931 XYZ tristimulus values
10.6. Academy Color Encoding System
10.7. sRGB specification
11. Example format descriptors


This document describes a data format specification for non-opaque (user-visible) representations of user data to be used by, and shared between, Khronos standards. The intent of this specification is to avoid replication of incompatible format descriptions between standards and to provide a definitive mechanism for describing data that avoids excluding useful information that may be ignored by other standards. Other APIs are expected to map internal formats to this standard scheme, allowing formats to be shared and compared.