diff options
Diffstat (limited to 'chromium/content/renderer/pepper/video_decoder_shim.cc')
-rw-r--r-- | chromium/content/renderer/pepper/video_decoder_shim.cc | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/chromium/content/renderer/pepper/video_decoder_shim.cc b/chromium/content/renderer/pepper/video_decoder_shim.cc index c6522e4f6cf..231a4f63044 100644 --- a/chromium/content/renderer/pepper/video_decoder_shim.cc +++ b/chromium/content/renderer/pepper/video_decoder_shim.cc @@ -365,13 +365,13 @@ void VideoDecoderShim::YUVConverter::Convert( // numbers that are used in the transformation from YUV to RGB color values. // They are taken from the following webpage: // http://www.fourcc.org/fccyvrgb.php - const float yuv_to_rgb_rec601[9] = { + static const float yuv_to_rgb_rec601[9] = { 1.164f, 1.164f, 1.164f, 0.0f, -.391f, 2.018f, 1.596f, -.813f, 0.0f, }; - const float yuv_to_rgb_jpeg[9] = { + static const float yuv_to_rgb_jpeg[9] = { 1.f, 1.f, 1.f, 0.0f, -.34414f, 1.772f, 1.402f, -.71414f, 0.0f, }; - const float yuv_to_rgb_rec709[9] = { + static const float yuv_to_rgb_rec709[9] = { 1.164f, 1.164f, 1.164f, 0.0f, -0.213f, 2.112f, 1.793f, -0.533f, 0.0f, }; @@ -381,11 +381,11 @@ void VideoDecoderShim::YUVConverter::Convert( // Y - 16 : Gives 16 values of head and footroom for overshooting // U - 128 : Turns unsigned U into signed U [-128,127] // V - 128 : Turns unsigned V into signed V [-128,127] - const float yuv_adjust_constrained[3] = { + static const float yuv_adjust_constrained[3] = { -0.0625f, -0.5f, -0.5f, }; // Same as above, but without the head and footroom. - const float yuv_adjust_full[3] = { + static const float yuv_adjust_full[3] = { 0.0f, -0.5f, -0.5f, }; |