]> git.sesse.net Git - narabu/blobdiff - qdc.cpp
Predict Y DC from 128 instead of 0; microscopic improvement.
[narabu] / qdc.cpp
diff --git a/qdc.cpp b/qdc.cpp
index f1ff2542575f866ae4de3c063b2c57acac1586f3..5a4a9d506195586ec9c56d2893621c0f69379233 100644 (file)
--- a/qdc.cpp
+++ b/qdc.cpp
@@ -721,7 +721,7 @@ int main(int argc, char **argv)
 
        // DC coefficient pred from the right to left (within each slice)
        for (unsigned block_idx = 0; block_idx < NUM_BLOCKS; block_idx += 320) {
-               int prev_k = 0;
+               int prev_k = 128;
 
                for (unsigned subblock_idx = 320; subblock_idx --> 0; ) {
                        unsigned yb = (block_idx + subblock_idx) / WIDTH_BLOCKS;