summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSolomon Peachy <pizza@shaftnet.org>2020-02-13 10:47:27 -0500
committerSolomon Peachy <pizza@shaftnet.org>2020-02-13 10:47:27 -0500
commit6d4b45f581398585b6241109369bf2df9e5a84ec (patch)
treeb6f17d71491f5f327f193fc5c15c9ed10b645728
parent31a098f90f69cc03da6ef36b7cfde50dc2e12cd1 (diff)
downloadselphy_print-6d4b45f581398585b6241109369bf2df9e5a84ec.tar.gz
selphy_print-6d4b45f581398585b6241109369bf2df9e5a84ec.tar.bz2
selphy_print-6d4b45f581398585b6241109369bf2df9e5a84ec.zip
lib70x: Minor cleanups. No functional changes.
-rw-r--r--lib70x/libMitsuD70ImageReProcess.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib70x/libMitsuD70ImageReProcess.c b/lib70x/libMitsuD70ImageReProcess.c
index 13e48f5..dffbb68 100644
--- a/lib70x/libMitsuD70ImageReProcess.c
+++ b/lib70x/libMitsuD70ImageReProcess.c
@@ -544,6 +544,7 @@ static void CImageEffect70_Destroy(struct CImageEffect70 *data)
static void CImageEffect70_InitMidData(struct CImageEffect70 *data)
{
data->ttd_htd_first = NULL;
+ data->ttd_htd_last = NULL;
data->ttd_htd_scratch = NULL;
data->htd_ttdnext = NULL;
data->fcc_rowcomps = NULL;
@@ -593,6 +594,7 @@ static void CImageEffect70_DeleteMidData(struct CImageEffect70 *data)
free(data->ttd_htd_scratch);
data->ttd_htd_scratch = NULL;
data->ttd_htd_first = NULL;
+ data->ttd_htd_last = NULL;
}
if (data->htd_ttdnext) {
free(data->htd_ttdnext);
@@ -913,7 +915,6 @@ static void CImageEffect70_CalcTTD(struct CImageEffect70 *data,
k_comp += kp[j] * v5;
else
k_comp += km[j] * v5;
- // XXX PPC code has k_comp += v5, ignoring kp/km value. Figure out this WTF.
}
sharp_comp = 0.0;
@@ -929,8 +930,7 @@ static void CImageEffect70_CalcTTD(struct CImageEffect70 *data,
/* Work out the state for HTD operation */
v4 = data->htd_ttdnext[i] - out[i];
v29 = v4;
- if ( v29 >= 0 )
- {
+ if ( v29 >= 0 ) {
int v19 = 127;
if ( v29 <= 65535 )
v19 = v29 >> 9;
@@ -1841,10 +1841,6 @@ static int CP98xx_DoGammaConv(struct CP98xx_GammaParams *Gamma,
outRowPtr -= pixelsPerRow;
}
- if (!already_reversed) {
- // XXX reverse each row. See D70 for how.
- }
-
/* Write gamma corrected data to output buffer, last row first */
for (row = 0 ; row < rows ; row++) {
int outRowBufOffset = 0;