diff --git a/README.chromium b/README.chromium index 581aa455b..1be6b7f2a 100644 --- a/README.chromium +++ b/README.chromium @@ -1,6 +1,6 @@ Name: libyuv URL: http://code.google.com/p/libyuv/ -Version: 1023 +Version: 1024 License: BSD License File: LICENSE diff --git a/include/libyuv/version.h b/include/libyuv/version.h index 67b5fb3db..0a31a45c1 100644 --- a/include/libyuv/version.h +++ b/include/libyuv/version.h @@ -11,6 +11,6 @@ #ifndef INCLUDE_LIBYUV_VERSION_H_ // NOLINT #define INCLUDE_LIBYUV_VERSION_H_ -#define LIBYUV_VERSION 1023 +#define LIBYUV_VERSION 1024 #endif // INCLUDE_LIBYUV_VERSION_H_ NOLINT diff --git a/util/psnr_main.cc b/util/psnr_main.cc index c458e151c..a26bc923d 100644 --- a/util/psnr_main.cc +++ b/util/psnr_main.cc @@ -243,9 +243,12 @@ bool UpdateMetrics(uint8* ch_org, uint8* ch_rec, const uint8* const v_rec = ch_rec + y_size + uv_size; if (do_psnr) { #ifdef HAVE_JPEG - double y_err = (double)libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size); - double u_err = (double)libyuv::ComputeSumSquareError(u_org, u_rec, uv_size); - double v_err = (double)libyuv::ComputeSumSquareError(v_org, v_rec, uv_size); + double y_err = static_cast( + libyuv::ComputeSumSquareError(ch_org, ch_rec, y_size)); + double u_err = static_cast( + libyuv::ComputeSumSquareError(u_org, u_rec, uv_size)); + double v_err = static_cast( + libyuv::ComputeSumSquareError(v_org, v_rec, uv_size)); #else double y_err = ComputeSumSquareError(ch_org, ch_rec, y_size); double u_err = ComputeSumSquareError(u_org, u_rec, uv_size); @@ -427,11 +430,16 @@ int main(int argc, const char* argv[]) { memset(ch_org, 0, total_size); if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_org, - ch_org, image_width, - ch_org + y_size, (image_width + 1) / 2, - ch_org + y_size + uv_size, (image_width + 1) / 2, - image_width, image_height, - image_width, image_height)) { + ch_org, + image_width, + ch_org + y_size, + (image_width + 1) / 2, + ch_org + y_size + uv_size, + (image_width + 1) / 2, + image_width, + image_height, + image_width, + image_height)) { delete[] ch_jpeg; break; } @@ -452,11 +460,16 @@ int main(int argc, const char* argv[]) { memset(ch_rec, 0, total_size); if (0 != libyuv::MJPGToI420(ch_jpeg, bytes_rec, - ch_rec, image_width, - ch_rec + y_size, (image_width + 1) / 2, - ch_rec + y_size + uv_size, (image_width + 1) / 2, - image_width, image_height, - image_width, image_height)) { + ch_rec, + image_width, + ch_rec + y_size, + (image_width + 1) / 2, + ch_rec + y_size + uv_size, + (image_width + 1) / 2, + image_width, + image_height, + image_width, + image_height)) { delete[] ch_jpeg; break; }