動画データは基本的に Limited Range で保存されるため、H.265 で 10bit精度の lossless エンコードしたとしても Full Range → Limited Range の変換が発生して bit欠損が生じてしまう。しかし 12bit でエンコードすれば bit欠損が生じなくなると考えていた。
DaVinci 17 の初期設定は 図5 に示す通りシンプルな構成である。ユーザーが設定するのは Resolve color management preset と Output color space だけで良い。一方で Resolove color management preset を custom にすると図6に示す通り細かな設定が可能となる。今回は図1の各ブロックの処理を確認したいので custom で確認を行った。
図5. custom以外の場合
図6. custom の場合
4.2.1. Input Color Space と Output Color Space
図1 の Input Color Space と Output Color Space について簡単に説明する。
Input Color Space は Source Media の色空間を解釈して Source Media を内部に取り込む。例えば (R, G, B) = (1.0, 0.0, 0.0) というデータがあったとして、
これを Gamma2.4-BT.709 の (x, y, Y) = (0.64, 0.33, 0.2126) と解釈して取り込んだり、ST2084-BT.2020 の (x, y, Y) = (0.708, 0.292, 26.27) と解釈して取り込んだりする。
Output Color Space は Timeline color space のデータを Final Output の色空間に変換して出力する。例えば、内部の (x, y, Y) = (0.3127, 0.3290, 1.0) を
Gamma2.4-BT.709 の (R, G, B) = (1.0, 1.0, 1.0) として出力したり、ST2084-BT.2020 の (R, G, B) = (0.508, 0.508, 0.508) と出力したりする。
the Input DRT (Display Rendering Transform) drop-down menu provides a variety of different options to enable DaVinci Resolve to automatically tone map the image data of SDR and HDR clips to better match one another when they’re fit into the currently selected Timeline Color Space.
Timeline working luminance を SDR 100 に設定するのは Output color space が SDR の時に限定される(と思われる)
実際に Output color space を Gamma2.4 に変更して確認した結果を図12に示す。図12 を見ると変換後の最大輝度が 100 cd/m2 となるため、Timeline working luminance を SDR 100 に設定した場合は Output color space を SDR にするのが正しい使い方だと思われる。
図13, 図14 より、Output DRT は "Output color space の Gamma の ST2084 の輝度値" と強い関係があることは読み取れる。
そして ST2084 の輝度値によって特性が大きく変化するため、目的に応じて適切な輝度値を設定する必要があると考える。
筆者が現時点で最も無難だと考えている方法は (2) に示した Timeline working luminance の輝度値と Output color space の ST2084 の輝度値を一致させる方法である。こうすることで、Input DRT で適用した Tone mapping の特性がそのまま出力にも反映される。
※2 Timeline color space では Tone mapping が適用されている状態なので、カラーグレーディング時にカラリストにとって扱いやすい状態になっているかもしれない。が、筆者はその辺りの知識が不足しており何とも言えない。
4.2.3. Output DRT with ER(Extended Range)
これまでスルーしてきたが、Timeline working luminance には 図16 に示すように ER(Extended Range) と呼ばれる設定が存在する。
このパラメータを指定した場合の挙動についても簡単に解説する。
ER に関してはマニュアル[1]で以下のように記載されている。
These “extended range” settings each specify two values and provide more headroom for aggressive grading of highlights by enabling DaVinci Resolve to compress a greater range of out-of-bounds image data without clipping, which can result in a smoother look.
IccXml is a utility based on SampleICC/RefIccMax that converts an ICC profile to an XML encoding, and back from XML to a binary .icc file. Both source files and binary executables are included.
Tag table と Tagged element data は ProfileDump の Validate Profile 機能を使って確認した。
ProfileDump を使用した理由は ICC の Webページ[7]に以下の記載があったからである。
For convenience of users a compiled version of the Profile Dump utility is available. This will read the contents of an ICC profile and run the SampleICC validation routine to test for conformance with the current ICC specification.
なお、その近くに "Profile Dump does not test for conformance with all aspects of the ICC specification" とも書かれていたが、
あくまで個人用途の ICC profile であるため、今回はProfileDump だけで十分だと判断した。