+#if defined(X264_BIT_DEPTH) && X264_BIT_DEPTH == 0
+ bool suitable = true; // x264 compiled to support all bit depths.
+#elif defined(X264_BIT_DEPTH)
+ bool suitable = X264_BIT_DEPTH >= depth;
+#else
+ bool suitable = unsigned(x264_bit_depth) >= depth;
+#endif
+ if (suitable) {