feat: remove raw color engine arri
This commit is contained in:
1 parent
0a1e1f8fac
commit
f747ab23cd
17 files changed
+36
-202
No files matched your search
Binary file not shown.
@@ -66,6 +66,11 @@ enum class TransferCurve(
|
||||
1.0f, 0.0f, 0.18955931f, 0.5547945f, 10.540237f, 0.072905536f,
|
||||
0.0078125f, 0.15525114f, 0.4136f, 222.8609f, 0
|
||||
),
|
||||
LOG3G10(
|
||||
10, 9,
|
||||
155.975327f, 2.5597532f, 0.224282f, 0.0f, 15.1927f, 0.151927f,
|
||||
-0.01f, 0.0f, 1.0f / 3.0f, 184.32f, 0
|
||||
),
|
||||
LOGC4(
|
||||
5, 5,
|
||||
2231.8263f, 64.0f, 0.21524584f, -0.29590839f, 8.80302f, 0.158957f,
|
||||
@@ -137,6 +142,7 @@ enum class TransferCurve(
|
||||
get() = when (this) {
|
||||
FLOG2 -> "raw/flog2"
|
||||
LOGC4 -> "raw/arri"
|
||||
LOG3G10 -> "raw/red"
|
||||
APPLE_LOG -> "raw/apple"
|
||||
ACES_CCT -> "raw/aces"
|
||||
SLOG3 -> "raw/slog3"
|
||||
@@ -158,6 +164,7 @@ enum class TransferCurve(
|
||||
"S_LOG3" -> SLOG3
|
||||
"F_LOG2" -> FLOG2
|
||||
"LOG_C" -> LOGC4
|
||||
"LOG_3G10", "RED_LOG3G10" -> LOG3G10
|
||||
else -> entries.firstOrNull { it.name == name } ?: SRGB
|
||||
}
|
||||
}
|
||||
|
||||
@@ -2805,6 +2805,9 @@ class LutImageProcessor {
|
||||
if (curveType == 8) { // ACEScct
|
||||
return mix(10.540237 * l + 0.072905536, 0.18955931 * log10(max(l, vec3(1e-6))) + 0.5547945, step(0.0078125, l));
|
||||
}
|
||||
if (curveType == 9) { // Log3G10
|
||||
return mix(15.1927 * l + 0.151927, 0.224282 * log10(155.975327 * l + 2.55975327), step(-0.01, l));
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
@@ -2833,6 +2836,9 @@ class LutImageProcessor {
|
||||
if (colorSpace == 7) { // V-Gamut
|
||||
return mat3(0.585196, 0.078589, 0.022794, 0.322642, 0.819627, 0.114217, 0.092162, 0.101784, 0.862989) * rgb;
|
||||
}
|
||||
if (colorSpace == 9) { // REDWideGamutRGB
|
||||
return mat3(0.541973, 0.076993, 0.058875, 0.360148, 0.767969, 0.273495, 0.097891, 0.155019, 0.667533) * rgb;
|
||||
}
|
||||
return rgb;
|
||||
}
|
||||
|
||||
|
||||
@@ -3472,6 +3472,7 @@ class LutRenderer : GLSurfaceView.Renderer {
|
||||
ColorSpace.S_GAMUT3_CINE -> 5
|
||||
ColorSpace.ACES_AP1 -> 6
|
||||
ColorSpace.VGamut -> 7
|
||||
ColorSpace.RED -> 9
|
||||
ColorSpace.FilmLightEGamut -> 0
|
||||
}
|
||||
}
|
||||
|
||||
@@ -518,8 +518,8 @@ object Shaders {
|
||||
uniform float uLutIntensity;
|
||||
uniform bool uLutEnabled;
|
||||
uniform int uLutMaskType;
|
||||
uniform int uLutCurve; // 0=sRGB, 1=Linear, 2=V-Log, 3=S-Log3, 4=F-Log2, 5=LogC4, 6=AppleLog, 7=HLG, 8=ACEScct
|
||||
uniform int uLutColorSpace; // 0=sRGB, 1=DCI-P3, 2=BT2020, 3=ARRI4, 4=AppleLog2, 5=ProPhoto, 6=ACES_AP1
|
||||
uniform int uLutCurve; // 0=sRGB, 1=Linear, 2=V-Log, 3=S-Log3, 4=F-Log2, 5=LogC4, 6=AppleLog, 7=HLG, 8=ACEScct, 9=Log3G10
|
||||
uniform int uLutColorSpace; // 0=sRGB, 1=DCI-P3, 2=BT2020, 3=ARRI4, 4=AppleLog2, 5=S-Gamut3.Cine, 6=ACES_AP1, 7=V-Gamut, 9=REDWideGamutRGB
|
||||
uniform bool uVideoLogEnabled;
|
||||
uniform int uVideoLogCurve;
|
||||
uniform int uVideoColorSpace;
|
||||
@@ -1003,6 +1003,9 @@ object Shaders {
|
||||
if (curveType == 8) { // ACEScct
|
||||
return mix(10.540237 * l + 0.072905536, 0.18955931 * log10(max(l, vec3(1e-6))) + 0.5547945, step(0.0078125, l));
|
||||
}
|
||||
if (curveType == 9) { // Log3G10
|
||||
return mix(15.1927 * l + 0.151927, 0.224282 * log10(155.975327 * l + 2.55975327), step(-0.01, l));
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
@@ -1031,6 +1034,9 @@ object Shaders {
|
||||
if (colorSpace == 7) { // V-Gamut
|
||||
return mat3(0.585196, 0.078589, 0.022794, 0.322642, 0.819627, 0.114217, 0.092162, 0.101784, 0.862989) * rgb;
|
||||
}
|
||||
if (colorSpace == 9) { // REDWideGamutRGB
|
||||
return mat3(0.541973, 0.076993, 0.058875, 0.360148, 0.767969, 0.273495, 0.097891, 0.155019, 0.667533) * rgb;
|
||||
}
|
||||
return rgb;
|
||||
}
|
||||
|
||||
|
||||
@@ -458,6 +458,9 @@ private class VideoLutShaderProgram(
|
||||
if (curveType == 8) {
|
||||
return mix(10.540237 * l + 0.072905536, 0.18955931 * log10(max(l, vec3(1e-6))) + 0.5547945, step(0.0078125, l));
|
||||
}
|
||||
if (curveType == 9) {
|
||||
return mix(15.1927 * l + 0.151927, 0.224282 * log10(155.975327 * l + 2.55975327), step(-0.01, l));
|
||||
}
|
||||
return l;
|
||||
}
|
||||
|
||||
@@ -484,6 +487,9 @@ private class VideoLutShaderProgram(
|
||||
if (colorSpace == 7) {
|
||||
return mat3(0.585196, 0.078589, 0.022794, 0.322642, 0.819627, 0.114217, 0.092162, 0.101784, 0.862989) * rgb;
|
||||
}
|
||||
if (colorSpace == 9) {
|
||||
return mat3(0.541973, 0.076993, 0.058875, 0.360148, 0.767969, 0.273495, 0.097891, 0.155019, 0.667533) * rgb;
|
||||
}
|
||||
return rgb;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,7 +14,6 @@ data class RawEngineLut(
|
||||
)
|
||||
|
||||
typealias AgxLut = RawEngineLut
|
||||
typealias ArriLut = RawEngineLut
|
||||
|
||||
object RawEngineLutLoader {
|
||||
private const val MAGIC_PLUT = 0x54554C50
|
||||
|
||||
@@ -1,21 +0,0 @@
|
||||
package com.hinnka.mycamera.raw
|
||||
|
||||
import android.content.Context
|
||||
|
||||
object ArriColorEngine {
|
||||
private const val TAG = "ArriColorEngine"
|
||||
private const val LOGC4_TO_GAMMA24_REC709_ASSET =
|
||||
"arri/ARRI_LogC4-to-Gamma24_Rec709-D65_v1_65.plut"
|
||||
|
||||
@Volatile
|
||||
private var cachedLogC4ToGamma24Rec709: ArriLut? = null
|
||||
|
||||
fun loadLogC4ToGamma24Rec709Lut(context: Context): ArriLut? {
|
||||
cachedLogC4ToGamma24Rec709?.let { return it }
|
||||
return synchronized(this) {
|
||||
cachedLogC4ToGamma24Rec709
|
||||
?: RawEngineLutLoader.loadPlut(context, LOGC4_TO_GAMMA24_REC709_ASSET, TAG)
|
||||
?.also { cachedLogC4ToGamma24Rec709 = it }
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -63,6 +63,12 @@ enum class ColorSpace(
|
||||
0.036598f, 0.000105f,
|
||||
0.345704f, 0.358540f
|
||||
),
|
||||
RED(
|
||||
0.780308f, 0.304253f,
|
||||
0.121595f, 1.493994f,
|
||||
0.095612f, -0.084589f,
|
||||
0.3127f, 0.3290f
|
||||
),
|
||||
FilmLightEGamut(
|
||||
0.800000f, 0.317700f,
|
||||
0.180000f, 0.900000f,
|
||||
|
||||
@@ -28,13 +28,6 @@ enum class RawColorEngine(
|
||||
meteringCompensationEv = RAW_COLOR_ENGINE_METERING_COMPENSATION_EV,
|
||||
exposureCompensationDomain = RawExposureCompensationDomain.Linear
|
||||
),
|
||||
ARRI(
|
||||
shaderId = 3,
|
||||
workingColorSpace = ColorSpace.ARRI4,
|
||||
defaultExposureCompensationEv = RAW_COLOR_ENGINE_METERING_COMPENSATION_EV,
|
||||
meteringCompensationEv = RAW_COLOR_ENGINE_METERING_COMPENSATION_EV,
|
||||
exposureCompensationDomain = RawExposureCompensationDomain.Linear
|
||||
),
|
||||
SpectralFilm(
|
||||
shaderId = 2,
|
||||
workingColorSpace = ColorSpace.ProPhoto,
|
||||
|
||||
@@ -16,7 +16,6 @@ import android.opengl.GLUtils
|
||||
import android.util.Half
|
||||
import androidx.core.graphics.createBitmap
|
||||
import com.hinnka.mycamera.camera.AspectRatio
|
||||
import com.hinnka.mycamera.color.TransferCurve
|
||||
import com.hinnka.mycamera.data.ContentRepository
|
||||
import com.hinnka.mycamera.lut.ChromaDenoiseShaders
|
||||
import com.hinnka.mycamera.lut.ShadowsHighlightsShader
|
||||
@@ -176,7 +175,6 @@ class RawDemosaicProcessor {
|
||||
private const val RAW_AE_BASE_STATS_BINDING = 1
|
||||
private const val RAW_AE_TONE_STATS_BINDING = 0
|
||||
private const val AGX_BASE_SRGB_TEXTURE_UNIT = 7
|
||||
private const val ARRI_LOGC4_LUT_TEXTURE_UNIT = 8
|
||||
|
||||
private val BRADFORD_D65_TO_D50 = floatArrayOf(
|
||||
1.0478112f, 0.0228866f, -0.0501270f,
|
||||
@@ -273,8 +271,6 @@ class RawDemosaicProcessor {
|
||||
private var spectralFilmTextureKey: String? = null
|
||||
private var agxLutTextureId = 0
|
||||
private var agxLutTextureKey: String? = null
|
||||
private var arriLutTextureId = 0
|
||||
private var arriLutTextureKey: String? = null
|
||||
private var dummyDcp3DTextureId = 0
|
||||
private var dummyDcpToneCurveTextureId = 0
|
||||
|
||||
@@ -682,23 +678,12 @@ class RawDemosaicProcessor {
|
||||
} else {
|
||||
null
|
||||
}
|
||||
val arriLut =
|
||||
if (requestedColorEngine == RawColorEngine.ARRI) {
|
||||
ArriColorEngine.loadLogC4ToGamma24Rec709Lut(context)
|
||||
} else {
|
||||
null
|
||||
}
|
||||
val colorEngine = when {
|
||||
requestedColorEngine == RawColorEngine.AgX && agxLut == null -> {
|
||||
PLog.w(TAG, "AgX LUT unavailable, falling back to AdobeCurve")
|
||||
RawColorEngine.AdobeCurve
|
||||
}
|
||||
|
||||
requestedColorEngine == RawColorEngine.ARRI && arriLut == null -> {
|
||||
PLog.w(TAG, "ARRI LUT unavailable, falling back to AdobeCurve")
|
||||
RawColorEngine.AdobeCurve
|
||||
}
|
||||
|
||||
requestedColorEngine == RawColorEngine.SpectralFilm && spectralFilmLut == null -> {
|
||||
PLog.w(TAG, "SpectralFilm LUT unavailable, falling back to AdobeCurve")
|
||||
RawColorEngine.AdobeCurve
|
||||
@@ -1182,7 +1167,6 @@ class RawDemosaicProcessor {
|
||||
dcpRenderPlan = resolvedDcpRenderPlan,
|
||||
spectralFilmLut = spectralFilmLut,
|
||||
agxLut = agxLut,
|
||||
arriLut = arriLut,
|
||||
colorEngine = colorEngine,
|
||||
workingColorSpace = rawWorkingColorSpace,
|
||||
shadowsHighlightsParams = shadowsHighlightsParams
|
||||
@@ -3753,93 +3737,6 @@ class RawDemosaicProcessor {
|
||||
checkGlError("bindAgxCombinedResource")
|
||||
}
|
||||
|
||||
private fun uploadArriTexture(lut: ArriLut): Int {
|
||||
val key = "${lut.sourceKey}:${lut.rgbaFloatBuffer.capacity()}"
|
||||
if (arriLutTextureId == 0) {
|
||||
val textures = IntArray(1)
|
||||
GLES30.glGenTextures(1, textures, 0)
|
||||
arriLutTextureId = textures[0]
|
||||
arriLutTextureKey = null
|
||||
}
|
||||
if (arriLutTextureKey == key) {
|
||||
return arriLutTextureId
|
||||
}
|
||||
|
||||
val buffer = lut.rgbaFloatBuffer.duplicate().apply { position(0) }
|
||||
|
||||
GLES30.glBindTexture(GLES30.GL_TEXTURE_3D, arriLutTextureId)
|
||||
GLES30.glTexParameteri(GLES30.GL_TEXTURE_3D, GLES30.GL_TEXTURE_MIN_FILTER, GLES30.GL_NEAREST)
|
||||
GLES30.glTexParameteri(GLES30.GL_TEXTURE_3D, GLES30.GL_TEXTURE_MAG_FILTER, GLES30.GL_NEAREST)
|
||||
GLES30.glTexParameteri(
|
||||
GLES30.GL_TEXTURE_3D,
|
||||
GLES30.GL_TEXTURE_WRAP_S,
|
||||
GLES30.GL_CLAMP_TO_EDGE
|
||||
)
|
||||
GLES30.glTexParameteri(
|
||||
GLES30.GL_TEXTURE_3D,
|
||||
GLES30.GL_TEXTURE_WRAP_T,
|
||||
GLES30.GL_CLAMP_TO_EDGE
|
||||
)
|
||||
GLES30.glTexParameteri(
|
||||
GLES30.GL_TEXTURE_3D,
|
||||
GLES30.GL_TEXTURE_WRAP_R,
|
||||
GLES30.GL_CLAMP_TO_EDGE
|
||||
)
|
||||
GLES30.glTexImage3D(
|
||||
GLES30.GL_TEXTURE_3D,
|
||||
0,
|
||||
GLES30.GL_RGBA16F,
|
||||
lut.size,
|
||||
lut.size,
|
||||
lut.size,
|
||||
0,
|
||||
GLES30.GL_RGBA,
|
||||
GLES30.GL_FLOAT,
|
||||
buffer
|
||||
)
|
||||
arriLutTextureKey = key
|
||||
PLog.d(TAG, "Uploaded ARRI LUT: ${lut.name}, size=${lut.size}")
|
||||
checkGlError("uploadArriTexture")
|
||||
return arriLutTextureId
|
||||
}
|
||||
|
||||
private fun bindArriCombinedResource(arriLut: ArriLut?) {
|
||||
GLES30.glUniform1i(
|
||||
GLES30.glGetUniformLocation(combinedProgram, "uArriLogC4LutTexture"),
|
||||
ARRI_LOGC4_LUT_TEXTURE_UNIT
|
||||
)
|
||||
GLES30.glUniform1i(
|
||||
GLES30.glGetUniformLocation(combinedProgram, "uArriLutSize"),
|
||||
arriLut?.size ?: 1
|
||||
)
|
||||
bindLogC4Uniforms()
|
||||
GLES30.glActiveTexture(GLES30.GL_TEXTURE0 + ARRI_LOGC4_LUT_TEXTURE_UNIT)
|
||||
if (arriLut != null) {
|
||||
GLES30.glBindTexture(GLES30.GL_TEXTURE_3D, uploadArriTexture(arriLut))
|
||||
} else {
|
||||
GLES30.glBindTexture(GLES30.GL_TEXTURE_3D, ensureDummyDcp3DTexture())
|
||||
}
|
||||
checkGlError("bindArriCombinedResource")
|
||||
}
|
||||
|
||||
private fun bindLogC4Uniforms() {
|
||||
val logC4 = TransferCurve.LOGC4
|
||||
GLES30.glUniform4f(
|
||||
GLES30.glGetUniformLocation(combinedProgram, "uLogC4Params0"),
|
||||
logC4.a,
|
||||
logC4.b,
|
||||
logC4.c,
|
||||
logC4.d
|
||||
)
|
||||
GLES30.glUniform4f(
|
||||
GLES30.glGetUniformLocation(combinedProgram, "uLogC4Params1"),
|
||||
logC4.e,
|
||||
logC4.f,
|
||||
logC4.cut1,
|
||||
logC4.cut2
|
||||
)
|
||||
}
|
||||
|
||||
/**
|
||||
* Combined Processing Pass: ToneMap + LUT + Sharpening
|
||||
*/
|
||||
@@ -3849,7 +3746,6 @@ class RawDemosaicProcessor {
|
||||
dcpRenderPlan: DcpRenderPlan? = null,
|
||||
spectralFilmLut: SpectralFilmLut? = null,
|
||||
agxLut: AgxLut? = null,
|
||||
arriLut: ArriLut? = null,
|
||||
colorEngine: RawColorEngine = RawColorEngine.AdobeCurve,
|
||||
workingColorSpace: ColorSpace = ColorSpace.ProPhoto,
|
||||
shadowsHighlightsParams: ShadowsHighlightsParams = ShadowsHighlightsParams.NEUTRAL,
|
||||
@@ -3899,9 +3795,6 @@ class RawDemosaicProcessor {
|
||||
bindAgxCombinedResource(
|
||||
agxLut = if (colorEngine == RawColorEngine.AgX) agxLut else null
|
||||
)
|
||||
bindArriCombinedResource(
|
||||
arriLut = if (colorEngine == RawColorEngine.ARRI) arriLut else null
|
||||
)
|
||||
GLES30.glUniform1i(
|
||||
GLES30.glGetUniformLocation(combinedProgram, "uRawColorEngine"),
|
||||
colorEngine.shaderId
|
||||
@@ -5040,11 +4933,6 @@ class RawDemosaicProcessor {
|
||||
agxLutTextureId = 0
|
||||
agxLutTextureKey = null
|
||||
}
|
||||
if (arriLutTextureId != 0) {
|
||||
GLES30.glDeleteTextures(1, intArrayOf(arriLutTextureId), 0)
|
||||
arriLutTextureId = 0
|
||||
arriLutTextureKey = null
|
||||
}
|
||||
if (dummyDcp3DTextureId != 0) GLES30.glDeleteTextures(1, intArrayOf(dummyDcp3DTextureId), 0)
|
||||
if (dummyDcpToneCurveTextureId != 0) GLES30.glDeleteTextures(
|
||||
1,
|
||||
|
||||
@@ -96,7 +96,6 @@ object RawShaders {
|
||||
uniform sampler3D uDcpLookTableTexture;
|
||||
uniform sampler3D uSpectralFilmTexture;
|
||||
uniform sampler3D uAgxBaseSrgbTexture;
|
||||
uniform sampler3D uArriLogC4LutTexture;
|
||||
uniform mat3 uOutputTransform;
|
||||
uniform float uCurveSize;
|
||||
uniform bool uCurveEnabled;
|
||||
@@ -111,15 +110,11 @@ object RawShaders {
|
||||
uniform int uDcpLookTableEncoding;
|
||||
uniform int uSpectralFilmSize;
|
||||
uniform int uAgxLutSize;
|
||||
uniform int uArriLutSize;
|
||||
uniform int uRawColorEngine;
|
||||
uniform vec4 uLogC4Params0;
|
||||
uniform vec4 uLogC4Params1;
|
||||
|
||||
const int RAW_COLOR_ENGINE_ADOBE_CURVE = 0;
|
||||
const int RAW_COLOR_ENGINE_AGX = 1;
|
||||
const int RAW_COLOR_ENGINE_SPECTRAL_FILM = 2;
|
||||
const int RAW_COLOR_ENGINE_ARRI = 3;
|
||||
const float AGX_LOG_MIN = -12.47393;
|
||||
const float AGX_LOG_MAX = 12.5260688117;
|
||||
|
||||
@@ -430,10 +425,6 @@ object RawShaders {
|
||||
return sampleCubeLut(uAgxBaseSrgbTexture, uAgxLutSize, coord);
|
||||
}
|
||||
|
||||
vec3 sampleArriLogC4ToGamma24Rec709(vec3 coord) {
|
||||
return sampleCubeLut(uArriLogC4LutTexture, uArriLutSize, coord);
|
||||
}
|
||||
|
||||
vec3 agxLogEncode(vec3 color) {
|
||||
vec3 safeColor = max(color, vec3(exp2(AGX_LOG_MIN)));
|
||||
return clamp(
|
||||
@@ -453,45 +444,6 @@ object RawShaders {
|
||||
return pow(max(rec1886Encoded, vec3(0.0)), vec3(2.4));
|
||||
}
|
||||
|
||||
float log10Safe(float value) {
|
||||
return log(max(value, 1e-20)) / log(10.0);
|
||||
}
|
||||
|
||||
float linearToLogC4(float reflection) {
|
||||
float a = uLogC4Params0.x;
|
||||
float b = uLogC4Params0.y;
|
||||
float c = uLogC4Params0.z;
|
||||
float d = uLogC4Params0.w;
|
||||
float e = uLogC4Params1.x;
|
||||
float f = uLogC4Params1.y;
|
||||
float cut1 = uLogC4Params1.z;
|
||||
if (reflection >= cut1) {
|
||||
return c * log10Safe(a * reflection + b) + d;
|
||||
}
|
||||
return e * reflection + f;
|
||||
}
|
||||
|
||||
vec3 linearToLogC4(vec3 color) {
|
||||
return clamp(
|
||||
vec3(
|
||||
linearToLogC4(color.r),
|
||||
linearToLogC4(color.g),
|
||||
linearToLogC4(color.b)
|
||||
),
|
||||
vec3(0.0),
|
||||
vec3(1.0)
|
||||
);
|
||||
}
|
||||
|
||||
vec3 applyArri(vec3 color) {
|
||||
if (uArriLutSize <= 1) {
|
||||
return uOutputTransform * applyAdobeCurve(color);
|
||||
}
|
||||
vec3 logC4 = linearToLogC4(max(color, vec3(0.0)));
|
||||
vec3 gamma24Rec709 = sampleArriLogC4ToGamma24Rec709(logC4);
|
||||
return pow(max(gamma24Rec709, vec3(0.0)), vec3(2.4));
|
||||
}
|
||||
|
||||
float proPhotoLuminance(vec3 color) {
|
||||
return max(dot(color, vec3(0.2880402, 0.7118741, 0.0000857)), 1e-5);
|
||||
}
|
||||
@@ -525,9 +477,6 @@ object RawShaders {
|
||||
if (uRawColorEngine == RAW_COLOR_ENGINE_AGX) {
|
||||
return applyAgX(color);
|
||||
}
|
||||
if (uRawColorEngine == RAW_COLOR_ENGINE_ARRI) {
|
||||
return applyArri(color);
|
||||
}
|
||||
if (uRawColorEngine == RAW_COLOR_ENGINE_SPECTRAL_FILM && uSpectralFilmSize > 1) {
|
||||
return applySpectralFilm(color);
|
||||
}
|
||||
@@ -537,7 +486,7 @@ object RawShaders {
|
||||
}
|
||||
|
||||
vec3 applyOutputTransformAfterDisplayTone(vec3 color) {
|
||||
if (uRawColorEngine == RAW_COLOR_ENGINE_AGX || uRawColorEngine == RAW_COLOR_ENGINE_ARRI) {
|
||||
if (uRawColorEngine == RAW_COLOR_ENGINE_AGX) {
|
||||
return color;
|
||||
}
|
||||
return uOutputTransform * color;
|
||||
|
||||
@@ -492,7 +492,6 @@ private fun rawColorEngineName(engine: RawColorEngine): String {
|
||||
RawColorEngine.AdobeCurve -> stringResource(R.string.settings_raw_color_engine_adobe_curve)
|
||||
RawColorEngine.AgX -> stringResource(R.string.settings_raw_color_engine_agx)
|
||||
RawColorEngine.SpectralFilm -> stringResource(R.string.settings_raw_color_engine_spectral_film)
|
||||
RawColorEngine.ARRI -> stringResource(R.string.settings_raw_color_engine_arri)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -502,7 +501,6 @@ private fun rawColorEngineDescription(engine: RawColorEngine): String {
|
||||
RawColorEngine.AdobeCurve -> stringResource(R.string.settings_raw_color_engine_adobe_curve_description)
|
||||
RawColorEngine.AgX -> stringResource(R.string.settings_raw_color_engine_agx_description)
|
||||
RawColorEngine.SpectralFilm -> stringResource(R.string.settings_raw_color_engine_spectral_film_description)
|
||||
RawColorEngine.ARRI -> stringResource(R.string.settings_raw_color_engine_arri_description)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -389,7 +389,6 @@ fun PresetEditorScreen(
|
||||
RawColorEngine.AdobeCurve -> stringResource(R.string.settings_raw_color_engine_adobe_curve)
|
||||
RawColorEngine.AgX -> stringResource(R.string.settings_raw_color_engine_agx)
|
||||
RawColorEngine.SpectralFilm -> stringResource(R.string.settings_raw_color_engine_spectral_film)
|
||||
RawColorEngine.ARRI -> stringResource(R.string.settings_raw_color_engine_arri)
|
||||
}
|
||||
}
|
||||
DropdownSettingItem(
|
||||
|
||||
@@ -92,6 +92,7 @@ enum class VideoLogProfile(
|
||||
FLOG2_BT2020("F-Log2", TransferCurve.FLOG2, ColorSpace.BT2020),
|
||||
V_LOG("V-Log", TransferCurve.VLOG, ColorSpace.VGamut),
|
||||
LOGC4_ARRI4("LogC4", TransferCurve.LOGC4, ColorSpace.ARRI4),
|
||||
LOG3G10_RED("Log3G10", TransferCurve.LOG3G10, ColorSpace.RED),
|
||||
ACESCCT_AP1("ACEScct", TransferCurve.ACES_CCT, ColorSpace.ACES_AP1);
|
||||
|
||||
val isEnabled: Boolean
|
||||
|
||||
@@ -655,8 +655,6 @@
|
||||
<string name="settings_raw_color_engine_agx_description">使用 Blender AgX 成像,并采用更宽的 RAW 工作空间。</string>
|
||||
<string name="settings_raw_color_engine_spectral_film">光谱胶片</string>
|
||||
<string name="settings_raw_color_engine_spectral_film_description">模拟胶卷和相纸介质,并支持密度微调。</string>
|
||||
<string name="settings_raw_color_engine_arri">ARRI LogC4</string>
|
||||
<string name="settings_raw_color_engine_arri_description">使用 ARRI Wide Gamut 4,并通过 LogC4 到 Rec.709 Gamma 2.4 的 LUT 成像。</string>
|
||||
<string name="settings_spectral_film">光谱胶片模拟</string>
|
||||
<string name="settings_spectral_film_description">模拟经典底片和打印介质的色彩响应与物理特征曲线。</string>
|
||||
<string name="settings_negative_film">底片胶卷</string>
|
||||
|
||||
@@ -639,8 +639,6 @@
|
||||
<string name="settings_raw_color_engine_agx_description">Blender AgX tone formation with a wider RAW working space.</string>
|
||||
<string name="settings_raw_color_engine_spectral_film">Spectral Film</string>
|
||||
<string name="settings_raw_color_engine_spectral_film_description">Film stock and print medium simulation with density tuning.</string>
|
||||
<string name="settings_raw_color_engine_arri">ARRI LogC4</string>
|
||||
<string name="settings_raw_color_engine_arri_description">ARRI Wide Gamut 4 with LogC4 to Rec.709 Gamma 2.4 rendering.</string>
|
||||
<string name="settings_spectral_film">Spectral Film Simulation</string>
|
||||
<string name="settings_spectral_film_description">Simulate classic negative film and print medium color curves.</string>
|
||||
<string name="settings_negative_film">Negative Film</string>
|
||||
|
||||
Reference in new issue
Block a user