1 #ifndef __DALI_IMAGE_SAMPLER_H__
2 #define __DALI_IMAGE_SAMPLER_H__
5 * Copyright (c) 2014 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali/public-api/actors/sampling.h>
31 * ImageSampler represents a set of sampling settings that can be applied to a texture.
33 namespace ImageSampler
36 * @brief Pack the filter mode into a bitfield.
38 * @param[in] minify The minification filter.
39 * @param[in] magnify The magnification filter.
40 * @return Return the packed bitfield.
42 unsigned int PackBitfield( FilterMode::Type minify, FilterMode::Type magnify );
45 * @brief Return the minification filter from a packed bitfield.
47 * @return Return the minification filter.
49 FilterMode::Type GetMinifyFilterMode( unsigned int bitfield );
52 * @brief Return the magnification filter from a packed bitfield.
54 * @return Return the magnification filter.
56 FilterMode::Type GetMagnifyFilterMode( unsigned int bitfield );
58 } // namespace ImageSampler
60 } // namespace Internal
65 #endif // __DALI_INTERNAL_IMAGE_SAMPLER_H__