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

Side by Side Diff: Source/platform/image-decoders/ImageDecoder.h

Issue 544323002: Non DCTSIZE multiple width support for JPEG YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved. 3 * Copyright (C) Research In Motion Limited 2009-2010. All rights reserved.
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 } 113 }
114 114
115 virtual IntSize size() const { return m_size; } 115 virtual IntSize size() const { return m_size; }
116 116
117 // Decoders which downsample images should override this method to 117 // Decoders which downsample images should override this method to
118 // return the actual decoded size. 118 // return the actual decoded size.
119 virtual IntSize decodedSize() const { return size(); } 119 virtual IntSize decodedSize() const { return size(); }
120 120
121 // Decoders which support YUV decoding can override this to 121 // Decoders which support YUV decoding can override this to
122 // give potentially different sizes per component. 122 // give potentially different sizes per component.
123 virtual IntSize decodedYUVSize(int component) const { return decodedSize(); } 123 virtual IntSize decodedYUVSize(int component, bool memoryAllocation) const { return decodedSize(); }
Stephen White 2014/09/08 16:58:20 Naming nit: memoryAllocation seems a little confus
sugoi1 2014/09/09 15:08:15 Acknowledged.
124 124
125 // This will only differ from size() for ICO (where each frame is a 125 // This will only differ from size() for ICO (where each frame is a
126 // different icon) or other formats where different frames are different 126 // different icon) or other formats where different frames are different
127 // sizes. This does NOT differ from size() for GIF or WebP, since 127 // sizes. This does NOT differ from size() for GIF or WebP, since
128 // decoding GIF or WebP composites any smaller frames against previous 128 // decoding GIF or WebP composites any smaller frames against previous
129 // frames to create full-size frames. 129 // frames to create full-size frames.
130 virtual IntSize frameSizeAtIndex(size_t) const 130 virtual IntSize frameSizeAtIndex(size_t) const
131 { 131 {
132 return size(); 132 return size();
133 } 133 }
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
323 323
324 IntSize m_size; 324 IntSize m_size;
325 bool m_sizeAvailable; 325 bool m_sizeAvailable;
326 bool m_isAllDataReceived; 326 bool m_isAllDataReceived;
327 bool m_failed; 327 bool m_failed;
328 }; 328 };
329 329
330 } // namespace blink 330 } // namespace blink
331 331
332 #endif 332 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698