feat: photon curve adjust
This commit is contained in:
1 parent
5229ae5bfd
commit
2f22e611bb
2 files changed
+12
No files matched your search
@@ -76,6 +76,15 @@ internal object DngHdrProfileGainTableGenerator {
|
||||
highlightFusionStart = HIGHLIGHT_FUSION_START,
|
||||
highlightFusionEnd = HIGHLIGHT_FUSION_END,
|
||||
)
|
||||
|
||||
internal val PHOTON_FUSION_PARAMETERS = HdrExposureFusionParameters(
|
||||
autoExposureTarget = 0.35f,
|
||||
wellExposedKey = 0.5f,
|
||||
maxExposureGain = MAX_LTM_GAIN,
|
||||
highlightFusionStart = HIGHLIGHT_FUSION_START,
|
||||
highlightFusionEnd = HIGHLIGHT_FUSION_END,
|
||||
)
|
||||
|
||||
private val WELL_EXPOSED_WEIGHT_LUT = FloatArray(
|
||||
(WEIGHT_LUT_MAX_DISTANCE_EV * WEIGHT_LUT_STEPS_PER_EV).toInt() + 1
|
||||
) { index ->
|
||||
|
||||
@@ -76,6 +76,9 @@ internal object RawProfileGainTableMapBuilder {
|
||||
baselineExposureEv = baselineExposureEv,
|
||||
packedCellStats = packedCellStats,
|
||||
diagnosticBand = diagnosticBand,
|
||||
fusionParameters = if (profileToneMapMode == RawProfileToneMapMode.Photon)
|
||||
DngHdrProfileGainTableGenerator.PHOTON_FUSION_PARAMETERS
|
||||
else DngHdrProfileGainTableGenerator.GOOGLE_FUSION_PARAMETERS
|
||||
) ?: run {
|
||||
PLog.w(
|
||||
TAG,
|
||||
|
||||
Reference in new issue
Block a user