#define DALI_NATIVE_IMAGE_SOURCE_QUEUE_H
/*
- * Copyright (c) 2021 Samsung Electronics Co., Ltd.
+ * Copyright (c) 2022 Samsung Electronics Co., Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
public:
/**
* @brief Enumeration for the instance when creating a native image, the color depth has to be specified.
+ * @note This ColorFormat follows pixel byte order.
*/
enum class ColorFormat
{
- RGB888, /// 8 red bits, 8 green bits, 8 blue bits
- RGBA8888, /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits
- RGBX8888 /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits
+ BGR888 = 0, /// 8 blue bits, 8 green bits, 8 red bits
+ BGRA8888 = 1, /// 8 blue bits, 8 green bits, 8 red bits, alpha 8 bits
+ BGRX8888 = 2, /// 8 blue bits, 8 green bits, 8 red bits, and 8 ignored bits
+ RGB888 = 3, /// 8 red bits, 8 green bits, 8 blue bits
+ RGBA8888 = 4, /// 8 red bits, 8 green bits, 8 blue bits, alpha 8 bits
+ RGBX8888 = 5, /// 8 red bits, 8 green bits, 8 blue bits, and 8 ignored bits
};
/**
bool EnqueueBuffer(uint8_t* buffer);
/**
- * @copydoc Dali::NativeImageInterface::GetTextureTarget()
+ * @brief Free all released buffers.
*/
- int GetTextureTarget() const override;
+ void FreeReleasedBuffers();
/**
- * @copydoc Dali::NativeImageInterface::GetCustomFragmentPrefix()
+ * @copydoc Dali::NativeImageInterface::GetTextureTarget()
*/
- const char* GetCustomFragmentPrefix() const override;
+ int GetTextureTarget() const override;
/**
* @copydoc Dali::NativeImageInterface::ApplyNativeFragmentShader()