Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(370)

Side by Side Diff: media/base/yuv_convert.cc

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « media/base/serial_runner.h ('k') | media/blink/interval_map.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This webpage shows layout of YV12 and other YUV formats 5 // This webpage shows layout of YV12 and other YUV formats
6 // http://www.fourcc.org/yuv.php 6 // http://www.fourcc.org/yuv.php
7 // The actual conversion is best described here 7 // The actual conversion is best described here
8 // http://en.wikipedia.org/wiki/YUV 8 // http://en.wikipedia.org/wiki/YUV
9 // An article on optimizing YUV conversion using tables instead of multiplies 9 // An article on optimizing YUV conversion using tables instead of multiplies
10 // http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf 10 // http://lestourtereaux.free.fr/papers/data/yuvrgb.pdf
11 // 11 //
12 // YV12 is a full plane of Y and a half height, half width chroma planes 12 // YV12 is a full plane of Y and a half height, half width chroma planes
13 // YV16 is a full plane of Y and a full height, half width chroma planes 13 // YV16 is a full plane of Y and a full height, half width chroma planes
14 // 14 //
15 // ARGB pixel format is output, which on little endian is stored as BGRA. 15 // ARGB pixel format is output, which on little endian is stored as BGRA.
16 // The alpha is set to 255, allowing the application to use RGBA or RGB32. 16 // The alpha is set to 255, allowing the application to use RGBA or RGB32.
17 17
18 #include "media/base/yuv_convert.h" 18 #include "media/base/yuv_convert.h"
19 19
20 #include <algorithm>
21
20 #include "base/cpu.h" 22 #include "base/cpu.h"
21 #include "base/lazy_instance.h" 23 #include "base/lazy_instance.h"
22 #include "base/logging.h" 24 #include "base/logging.h"
23 #include "base/macros.h" 25 #include "base/macros.h"
24 #include "base/memory/aligned_memory.h" 26 #include "base/memory/aligned_memory.h"
25 #include "base/memory/scoped_ptr.h" 27 #include "base/memory/scoped_ptr.h"
26 #include "base/third_party/dynamic_annotations/dynamic_annotations.h" 28 #include "base/third_party/dynamic_annotations/dynamic_annotations.h"
27 #include "build/build_config.h" 29 #include "build/build_config.h"
28 #include "media/base/simd/convert_rgb_to_yuv.h" 30 #include "media/base/simd/convert_rgb_to_yuv.h"
29 #include "media/base/simd/convert_yuv_to_rgb.h" 31 #include "media/base/simd/convert_yuv_to_rgb.h"
(...skipping 705 matching lines...) Expand 10 before | Expand all | Expand 10 after
735 width, 737 width,
736 height, 738 height,
737 ystride, 739 ystride,
738 uvstride, 740 uvstride,
739 astride, 741 astride,
740 rgbstride, 742 rgbstride,
741 yuv_type); 743 yuv_type);
742 } 744 }
743 745
744 } // namespace media 746 } // namespace media
OLDNEW
« no previous file with comments | « media/base/serial_runner.h ('k') | media/blink/interval_map.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698