JPEG XR
模板参数错误!(代码36)
|
扩展名 |
.wdp/.hdp |
---|---|
互联网媒体类型 |
image/vnd.ms-photo |
开发者 | Microsoft |
格式类型 | 图形文件格式 |
HD Photo (旧称Windows Media Photo)是一种连续色调静止图像压缩算法和文件格式,由Microsoft开发,属于Windows Media家族的一部分。它支持有损数据压缩以及无损数据压缩,并且是微软的XPS文档的首选图像格式。它以前在内部被称为photon。目前其软件支持并不广泛,但是.NET Framework 3.0已经提供了它的官方编码解码器。
描述
HD Photo is an image codec that gives a high-dynamic-range image encoding while requiring only integer operations (with no divides) for both compression and decompression. It supports monochrome, RGB, CMYK and even n-channel color representation, using up to 16-bit unsigned integer representation, or up to 32-bit fixed point or floating point representation, and also supports RGBE Radiance. It may optionally include an embedded ICC color profile, to achieve consistent color representation across multiple devices. An alpha channel may be present for transparency, and EXIF and XMP metadata formats are supported. The format also supports multiple images per file. The format allows decoding part of an image, without decoding the entire image. Full decoding is also unnecessary for certain operations such as cropping, downsampling, horizontal or vertical flips, or cardinal rotations.
All color representations are transformed to an internal color representation. The transformation is entirely reversible, so, by using appropriate quantizers, both lossy and lossless compression can be achieved.
压缩算法
HD Photo uses a reversible color space conversion, a reversible lapped biorthogonal transform and a non-arithmetic entropy encoding scheme, which is very efficient in preserving high frequency image data. This makes the algorithm retain a higher image quality at high compression ratios. The transform operation needs 3 multiply and add operations and 7 add or shift operations at the highest quality level and in the highest performance mode, 1 multiply and add operation and 4 add or shifts are required per pixel, giving the codec a high performance. HD Photo processes images in 16x16 macroblocks.
HD Photo supports various color formats and multiple fixed and floating point numerical representation, thus giving a wide range of compression options. To remain compatible across various devices, it differentiates Basic and Advanced formats. While digital photography needs are satisfied by the Basic format, 3D rendering or advanced image processing scenarios require the Advanced format.
Microsoft claims that HD Photo offers a "perceptible image quality comparable to JPEG 2000 with computational and memory performance more closely comparable to JPEG and delivers a lossy compressed image of better perceptive quality than JPEG at less than half the file size, and that the lossless compression compresses images 2.5 times".
容器格式
HD Photo uses a TIFF-like file container to store image data in a table of Image File Directory (IFD) tags. An HD Photo file contains image data, an optional alpha channel data, HD Photo metadata, optional XMP metadata stored as XML, and optional EXIF metadata, in IFD tags. The image data is a contiguous self-contained chunk of data. The optional alpha channel, if present, is compressed as a separate image record, enabling decoding of the image data independently of transparency data in applications which do not support transparency.
Being TIFF-based, this format inherits all of the inadequacies of the TIFF format including the 4GB file-size limit, which according to the HD Photo specification[1] "will be addressed in a future update".
许可
微软公司拥有 HD Photo 技术的专利,微软公司向外界提供一个附带授权协议的“HD Photo Device Porting Kit 1.0”以鼓励人们使用这种产品。但是,这个协议的条款特别注明禁止将其用于任何开放源代码的系统。[2]
“ | 2. c. Distribution Restrictions. You may not ... modify or distribute the source code of any Distributable Code so that any part of it becomes subject to an Excluded License. An Excluded License is one that requires, as a condition of use, modification or distribution, that the code be disclosed or distributed in source code form; or others have the right to modify it. | ” |
引用
- ^ Windows Media Photo Specification. [2006-06-29].
- ^ HD Photo Device Porting Kit 1.0. Microsoft, Inc. 12/21/2006.
参见
外部链接
- HD Photo Specification (仅仅定义了 container 的格式与 API,没有定义图像格式规范)
- Windows Media Photo comparison with modern JPEG-2000 implementations (9 JPEG-2000 codecs was compared with WMP)
- Microsoft shows off JPEG rival, CNET News, 24 May 2006
- Vista to give HD Photo format more exposure, CNET News, 26 January 2007
- Bill Crow's Windows Media Photo Blog 解释使用许可、技术细节以及提供了编解码器的下载。