PixelOperation.h 812 B

123456789101112131415161718192021222324252627
  1. /*
  2. * Copyright (c) Contributors to the Open 3D Engine Project.
  3. * For complete copyright and license terms please see the LICENSE at the root of this distribution.
  4. *
  5. * SPDX-License-Identifier: Apache-2.0 OR MIT
  6. *
  7. */
  8. #pragma once
  9. #include <Atom/ImageProcessing/PixelFormats.h>
  10. #include <ImageBuilderBaseType.h>
  11. namespace ImageProcessingAtom
  12. {
  13. class IPixelOperation
  14. {
  15. public:
  16. virtual ~IPixelOperation() {}
  17. virtual void GetRGBA(const uint8* buf, float& r, float& g, float& b, float& a) = 0;
  18. virtual void SetRGBA(uint8* buf, const float& r, const float& g, const float& b, const float& a) = 0;
  19. };
  20. typedef AZStd::shared_ptr<IPixelOperation> IPixelOperationPtr;
  21. IPixelOperationPtr CreatePixelOperation(EPixelFormat pixelFmt);
  22. }// namespace ImageProcessingAtom