/* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ /* vim: set ts=8 sts=2 et sw=2 tw=80: */ /* This Source Code Form is subject to the terms of the Mozilla Public * License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
template <bool aSwapRB> void UnpackRowRGB24_SSSE3(const uint8_t* aSrc, uint8_t* aDst, int32_t aLength) { // Because this implementation will read an additional 4 bytes of data that // is ignored and masked over, we cannot use the accelerated version for the // last 1-5 pixels (3-15 bytes remaining) to guarantee we don't access memory // outside the buffer (we read in 16 byte chunks). if (aLength < 6) {
UnpackRowRGB24<aSwapRB>(aSrc, aDst, aLength); return;
}
// Because we are expanding, we can only process the data back to front in // case we are performing this in place.
int32_t alignedRow = (aLength - 2) & ~3;
int32_t remainder = aLength - alignedRow;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.