# HG changeset patch
# User Satoshi Nakagawa <[email protected]>
# Date 1391419070 -32400
# Mon Feb 03 18:17:50 2014 +0900
# Branch fix01
# Node ID 31fe151d0ab187bfa3d2bfe418834e3808cfb1ea
# Parent aab88ed133647b779b0a1ca33a1e20584103ef7d
fix
diff -r aab88ed13364 -r 31fe151d0ab1 source/encoder/frameencoder.cpp
--- a/source/encoder/frameencoder.cpp Sun Feb 02 13:09:26 2014 -0600
+++ b/source/encoder/frameencoder.cpp Mon Feb 03 18:17:50 2014 +0900
@@ -332,11 +332,11 @@
// in RdCost there is only one lambda because the luma and chroma bits are
not separated,
// instead we weight the distortion of chroma.
int chromaQPOffset = slice->getPPS()->getChromaCbQpOffset() +
slice->getSliceQpDeltaCb();
- int qpc = Clip3(0, 70, qp + chromaQPOffset);
+ int qpc = Clip3(0, 69, qp + chromaQPOffset);
double cbWeight = pow(2.0, (qp - g_chromaScale[qpc])); // takes into
account of the chroma qp mapping and chroma qp Offset
chromaQPOffset = slice->getPPS()->getChromaCrQpOffset() +
slice->getSliceQpDeltaCr();
- qpc = Clip3(0, 70, qp + chromaQPOffset);
+ qpc = Clip3(0, 69, qp + chromaQPOffset);
double crWeight = pow(2.0, (qp - g_chromaScale[qpc])); // takes into
account of the chroma qp mapping and chroma qp Offset
double chromaLambda = lambda / crWeight;
@@ -371,10 +371,10 @@
// instead we weight the distortion of chroma.
int qpc;
int chromaQPOffset = slice->getPPS()->getChromaCbQpOffset() +
slice->getSliceQpDeltaCb();
- qpc = Clip3(0, 70, qp + chromaQPOffset);
+ qpc = Clip3(0, 69, qp + chromaQPOffset);
double cbWeight = pow(2.0, (qp - g_chromaScale[qpc])); // takes into
account of the chroma qp mapping and chroma qp Offset
chromaQPOffset = slice->getPPS()->getChromaCrQpOffset() +
slice->getSliceQpDeltaCr();
- qpc = Clip3(0, 70, qp + chromaQPOffset);
+ qpc = Clip3(0, 69, qp + chromaQPOffset);
double crWeight = pow(2.0, (qp - g_chromaScale[qpc])); // takes into
account of the chroma qp mapping and chroma qp Offset
double chromaLambda = lambda / crWeight;
_______________________________________________
x265-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/x265-devel