From e43796c0a53ca45f8aead9e9cb14ec68b753aff5 Mon Sep 17 00:00:00 2001 From: Heeyong Song Date: Mon, 5 Jan 2015 15:03:14 +0900 Subject: [PATCH] Jira TSAM-30 issue (Tizen 3.0 Release). Add comments of Pixel::GetAlphaOffsetAndMask() Change-Id: I2f3b20b60fbe3cda56b1fb85bc5828e8f553c24c --- dali/public-api/images/pixel.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/dali/public-api/images/pixel.h b/dali/public-api/images/pixel.h index 907c3cc..a84eb3c 100644 --- a/dali/public-api/images/pixel.h +++ b/dali/public-api/images/pixel.h @@ -99,13 +99,15 @@ DALI_IMPORT_API bool HasAlpha(Format pixelformat); DALI_IMPORT_API unsigned int GetBytesPerPixel(Format pixelFormat); /** - * @brief Returns the offset of the byte containing the alpha mask from the start of the pixel data + * @brief Returns the offset of the byte containing the alpha value from the start of the pixel data * and the bitmask of that byte to get the alpha value. + * For example, in case of RGBA4444, byteOffset value is 1 and bitMask value is 0x0f. + * It means the second byte contains the alpha value and the last 4 bits of the byte is the alpha value. * * Bitmask is zero if the pixelFormat does not support alpha - * @param[in] pixelFormat - * @param[out] byteOffset the byte offset - * @param[out] bitMask the bitmask + * @param[in] pixelFormat the pixel format + * @param[out] byteOffset the byte offset of the byte containing the alpha value + * @param[out] bitMask the bitmask of the byte to get the alpha value */ DALI_IMPORT_API void GetAlphaOffsetAndMask(Format pixelFormat, int& byteOffset, int& bitMask); -- 2.7.4