X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=dali%2Fdevel-api%2Fadaptor-framework%2Fnative-image-source-devel.h;h=eeea436e875130dfde2f9611cd7c80f4cf630c50;hb=refs%2Fchanges%2F57%2F230557%2F15;hp=0c470c8ea5fae4feee7f77cc438bd08478fd2cfe;hpb=9e785224f3659b53537ebbe6e15f999f5d5e64a0;p=platform%2Fcore%2Fuifw%2Fdali-adaptor.git diff --git a/dali/devel-api/adaptor-framework/native-image-source-devel.h b/dali/devel-api/adaptor-framework/native-image-source-devel.h index 0c470c8..eeea436 100755 --- a/dali/devel-api/adaptor-framework/native-image-source-devel.h +++ b/dali/devel-api/adaptor-framework/native-image-source-devel.h @@ -27,6 +27,19 @@ namespace DevelNativeImageSource { /** + * @brief Converts the current pixel contents to either a JPEG or PNG format + * and write that to the filesystem. + * + * @param[in] image The instance of NativeImageSource. + * @param[in] filename Identify the filesystem location at which to write the encoded image. + * The extension determines the encoding used. + * The two valid encoding are (".jpeg"|".jpg") and ".png". + * @param[in] quality The value to control image quality for jpeg file format in the range [1, 100] + * @return @c true if the pixels were written, and @c false otherwise + */ +DALI_ADAPTOR_API bool EncodeToFile( NativeImageSource& image, const std::string& filename, const uint32_t quality ); + +/** * @brief Acquire buffer and information of an internal native image. * * AcquireBuffer() and ReleaseBuffer() are a pair.