X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Finternal%2Fcommon%2Fimage-sampler.h;h=836253e72e6f751902e600390b93c1139a1fbde3;hb=f0030b325ebe987198670fa42fa90ef443bd7a70;hp=2491b7826d0f8aa4c400d83fee737282143c4db5;hpb=73f77eb2643fc63317b8bdeb32811e6c43186ba3;p=platform%2Fcore%2Fuifw%2Fdali-core.git diff --git a/dali/internal/common/image-sampler.h b/dali/internal/common/image-sampler.h index 2491b78..836253e 100644 --- a/dali/internal/common/image-sampler.h +++ b/dali/internal/common/image-sampler.h @@ -32,29 +32,35 @@ namespace Internal */ namespace ImageSampler { + /** + * Bitshift values + */ + enum + { + MINIFY_BIT_SHIFT = 0, + MAGNIFY_BIT_SHIFT = 4, + UWRAP_BIT_SHIFT = 8, + VWRAP_BIT_SHIFT = 12 + }; - /** - * Determine if the minify component of the bitfield is assigned. - * - * @param[in] bitfield The packed sampler bitfield pattern. - * @return Return if the minify component is assigned or not. - */ - bool IsMinifyAssigned( unsigned int bitfield ); - - /** - * Determine if the magnify component of the bitfield is assigned. - * - * @param[in] bitfield The packed sampler bitfield pattern. - * @return Return if the magnify component is assigned or not. - */ - bool IsMagnifyAssigned( unsigned int bitfield ); + /** + * Mask values + */ + enum + { + MASK_MINIFY_FILTER = 0x000F, + MASK_MAGNIFY_FILTER = 0x00F0, + MASK_UWRAP_MODE = 0x0F00, + MASK_VWRAP_MODE = 0xF000, + }; - /** - * @brief Return a sampler bitfield with default settings. - * - * @return Return the default sampler bit pattern. - */ - unsigned int DefaultOptions(); + /** + * Precalculate default sampler bitfield + */ + enum + { + DEFAULT_BITFIELD = (Dali::FilterMode::DEFAULT<