SMPTE RDD 31-2014 Deferred Demosaicing of an ARRIRAW Image File to a Wide-Gamut Logarithmic Encoding.pdf
《SMPTE RDD 31-2014 Deferred Demosaicing of an ARRIRAW Image File to a Wide-Gamut Logarithmic Encoding.pdf》由会员分享,可在线阅读,更多相关《SMPTE RDD 31-2014 Deferred Demosaicing of an ARRIRAW Image File to a Wide-Gamut Logarithmic Encoding.pdf(17页珍藏版)》请在麦多课文档分享上搜索。
1、 Copyright 2014 by THE SOCIETY OF MOTION PICTURE AND TELEVISION ENGINEERS 3 Barker Avenue, White Plains, NY 10601 (914) 761-1100 Approved August 16, 2014 re Deferred Demosaicing of an ARRIRAW Image File to a Wide-Gamut Logarithmic Encoding The attached document is a Registered Disclosure Document pr
2、epared by the proponent identified below. It has been examined by the appropriate SMPTE Technology Committee and is believed to contain adequate information to satisfy the objectives defined in the Scope, and to be technically consistent. This document is NOT a Standard, Recommended Practice or Engi
3、neering Guideline, and does NOT imply a finding or representation of the Society. Errors in this document should be reported to the proponent identified below, with a copy to engsmpte.org. This document is intended to support the development of applications that read and process ARRIRAW image files.
4、 It is not intended to support the development of hardware or software applications that create ARRIRAW image files, and creation of such files is reserved to individuals and organizations that have entered into agreements with the proponent identified below for such file creation. All inquiries in
5、respect of this document (other than reporting of errors in the document, which should be handled as described in the prior paragraph), including inquiries as to intellectual property requirements that may be attached to use of the disclosed technology, should be addressed to the proponent identifie
6、d below. Proponent contact information: Joseph Goldstone Arnold both of these, however, are given in this document. It is the intent of this RDD to document the structure and interpretation of ARRIRAW files generated by ARRI cameras, so that users of this document may develop applications correctly
7、identifying and interpreting such files. This document is specifically not intended to support development of hardware or of software applications creating ARRIRAW files. Permission to create such files, along with additional documentation to support that creation, is reserved by ARRI to members of
8、the ARRI Partner Program, the contact information for which is provided below. Assistance in correctly processing ARRIRAW files, including certification that the results of processing meet ARRI quality standards, is available to members of the ARRI Partner Program. Information on the ARRI Partner Pr
9、ogram is available at the address given below: Digital Workflow Solutions group ARRI Partner Program Arnold Application of per-channel white balance factors to the linear 16-bit unsigned integer photosite data, with the factors being dependent on correlated color temperature and a magenta/green bias
10、 factor; Demosaicing of the white-balanced photosite data; Conversion of the reconstructed sensor RGB by a 3x3 matrix, with the matrix coefficients being dependent on correlated color temperature and the presence or absence of an internal camera filter, to ARRI Wide Gamut RGB, a wide-gamut RGB encod
11、ing with defined primaries and white point; Exposure compensation, with the amount of compensation being dependent on exposure index; and finally Logarithmic encoding, with scaling and offset factors of the encoding algorithm determined by exposure index. Each of these steps is described below. 5.1
12、Unpacking and Linearization of Near-Logarithmic Unsigned Integer Data from ARRIRAW File Every sequential block of 12 8-bit bytes corresponds to 3 sequential 32-bit words containing 8 near-logarithmic 12-bit unsigned integer photosite values. These 8 near-logarithmic 12-bit unsigned integer photosite
13、 values are unpacked to form 8 linear 16-bit unsigned integer photosite values using an algorithm such as (or equivalent to) that given in Section 5.1.2.1.2. SMPTE RDD 31:2014 Page 6 of 17 pages 5.1.1 Reading of Image File Data as Packed Data The packed data are read as 8-bit bytes, every successive
14、 4 of which are to be assembled into a 32-bit word. Each byte contains photosite data in two half-bytes each comprised of 4 bits. Such a 4-bit half-byte represents either the most significant 4 bits of a 12-bit near-logarithmic value, the next-most-significant 4 bits of a 12-bit near-logarithmic val
15、ue, or the least significant 4 bits of a 12-bit near-logarithmic value. In the figure, these three interpretations of a 4-bit half-byte are represented by a large trapezoid, a small trapezoid, and a triangle, respectively. In the assembly of a 32-bit word from 4 8-bit bytes, the least significant 8
16、bits are read first, and the most significant 8 bits are read last. The resulting 3 32-bit words represent 8 successive packed photosite values, suitable for input to the algorithm given in pseudocode in Section 5.1.2. 5.1.2 Unpacking of 32-bit Words into 12-bit Encoded Values The 12-bit quantities
17、that have been packed into 32-bit words are unpacked prior to processing. The algorithm whose pseudocode is given in Section 5.1.2.1.2 performs this unpacking. It assumes that successive 32-bit words are stored adjacently in memory, and that the unpacking algorithm is executed on a machine with a li
18、ttle-endian architecture, taking as input blocks of 3 32-bit words and producing as output blocks of 4 32-bit words. In the figure below, the top element represents the unpacked data addressed as 32-bit words and the bottom element represents the unpacked data addressed as 16-bit half-words. Every r
19、esulting 32-bit word of unpacked data contains two 12-bit near-logarithmic photosite values. The lower-order 12 bits of the least significant 16 bits of the 32-bit word contain the 12-bit near-logarithmic value corresponding to the photosite encountered earlier in sensor traversal; the lower-order 1
20、2 bits of the most significant 16 bits of the 32-bit word contain the 12-bit near-logarithmic value encountered later in sensor traversal. When addressed as 16-bit half-words, those same unpacked data are in sensor traversal order and are interpreted as unsigned integers representing 12-bit near-log
21、arithmic encoded photosite values. 5.1.2.1.1 Variable definitions NumPixel number of pixels in the unpacked image InSize memory used to store the 12-bit packed image OutSize memory size required to store the unpacked image SMPTE RDD 31:2014 Page 7 of 17 pages lpIn pointer to the input packed image m
22、emory lpOut pointer to the output unpacked image memory MSB_Pixel pixel in the 16 most significant bits of the output 32-bit memory word LSB_Pixel pixel in the 16 least significant bits of the output 32-bit memory word InWord input 32-bit packed word 5.1.2.1.2 Pseudocode implementation void ARI_UnPa
23、ck12BitBayerPattern(uint32 *lpIn, uint32 *lpOut, .) OutSize = 16*InSize/12; NumPixel = OutSize * 2; While (NumPixel 0) InWord = lpIn0; MSB_Pixel = (InWord 20) LSB_Pixel = (InWord 8) lpOut0 = (MSB_Pixel 28) LSB_Pixel = (InWord 16) lpOut1 = (MSB_Pixel 4) LSB_Pixel = (InWord 24) lpOut2 = (MSB_Pixel 12)
24、 LSB_Pixel = (InWord lpOut3 = (MSB_Pixel 16) lpIn += 3; SMPTE RDD 31:2014 Page 8 of 17 pages lpOut += 4; NumPixel -= 8; 5.1.3 Linearization of 12-bit Near-Logarithmic Unpacked Sensor Data Photosite values are radiometrically linear representations of the energy they receive, represented as 16-bit un
- 1.请仔细阅读文档,确保文档完整性,对于不预览、不比对内容而直接下载带来的问题本站不予受理。
- 2.下载的文档,不会出现我们的网址水印。
- 3、该文档所得收入(下载+内容+预览)归上传者、原创作者;如果您是本文档原作者,请点此认领!既往收益都归您。
下载文档到电脑,查找使用更方便
10000 积分 0人已下载
下载 | 加入VIP,交流精品资源 |
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- SMPTERDD312014DEFERREDDEMOSAICINGOFANARRIRAWIMAGEFILETOAWIDEGAMUTLOGARITHMICENCODINGPDF

链接地址:http://www.mydoc123.com/p-1046324.html