michael@0: // Copyright (c) 2009 The Chromium Authors. All rights reserved. michael@0: // Use of this source code is governed by a BSD-style license that can be michael@0: // found in the LICENSE file. michael@0: michael@0: #ifndef BASE_LINUX_UTIL_H__ michael@0: #define BASE_LINUX_UTIL_H__ michael@0: michael@0: #include michael@0: michael@0: namespace base { michael@0: michael@0: // Makes a copy of |pixels| with the ordering changed from BGRA to RGBA. michael@0: // The caller is responsible for free()ing the data. If |stride| is 0, michael@0: // it's assumed to be 4 * |width|. michael@0: uint8_t* BGRAToRGBA(const uint8_t* pixels, int width, int height, int stride); michael@0: michael@0: } // namespace base michael@0: michael@0: #endif // BASE_LINUX_UTIL_H__