convolver_SSE2.h 1.1 KB

123456789101112131415161718192021222324252627
  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
  3. // found in the LICENSE file.
  4. #ifndef SKIA_EXT_CONVOLVER_SSE2_H_
  5. #define SKIA_EXT_CONVOLVER_SSE2_H_
  6. #include "skia/ext/convolver.h"
  7. namespace skia {
  8. void ConvolveVertically_SSE2(const ConvolutionFilter1D::Fixed* filter_values,
  9. int filter_length,
  10. unsigned char* const* source_data_rows,
  11. int pixel_width,
  12. unsigned char* out_row,
  13. bool has_alpha);
  14. void Convolve4RowsHorizontally_SSE2(const unsigned char* src_data[4],
  15. const ConvolutionFilter1D& filter,
  16. unsigned char* out_row[4]);
  17. void ConvolveHorizontally_SSE2(const unsigned char* src_data,
  18. const ConvolutionFilter1D& filter,
  19. unsigned char* out_row,
  20. bool has_alpha);
  21. } // namespace skia
  22. #endif // SKIA_EXT_CONVOLVER_SSE2_H_