X-Git-Url: http://review.tizen.org/git/?p=platform%2Fcore%2Fuifw%2Fdali-toolkit.git;a=blobdiff_plain;f=dali-toolkit%2Finternal%2Fimage-loader%2Fimage-load-thread.h;h=f3d963273692b7c45fbf3ab410c50252068024ba;hp=85ea4195b4f6afe623ed48d2ef6a8f6f4041b5c7;hb=b81849b1d366b03595dec285264ecbd8b6f1801e;hpb=a2e3740073b4cb92846a68831ad5bb35b12ac69a diff --git a/dali-toolkit/internal/image-loader/image-load-thread.h b/dali-toolkit/internal/image-loader/image-load-thread.h index 85ea419..f3d9632 100644 --- a/dali-toolkit/internal/image-loader/image-load-thread.h +++ b/dali-toolkit/internal/image-loader/image-load-thread.h @@ -20,11 +20,13 @@ // EXTERNAL INCLUDES #include #include +#include +#include #include #include #include -#include #include +#include namespace Dali { @@ -42,8 +44,21 @@ struct LoadingTask { /** * Constructor. + * @param [in] id of the task + * @param [in] url The URL of the image file to load. + * @param [in] size The width and height to fit the loaded image to, 0.0 means whole image + * @param [in] fittingMode The method used to fit the shape of the image before loading to the shape defined by the size parameter. + * @param [in] samplingMode The filtering method used when sampling pixels from the input image while fitting it to desired size. + * @param [in] orientationCorrection Reorient the image to respect any orientation metadata in its header. */ - LoadingTask( uint32_t id, BitmapLoader loader ); + LoadingTask( uint32_t id, const VisualUrl& url, ImageDimensions dimensions, + FittingMode::Type fittingMode, SamplingMode::Type samplingMode, + bool orientationCorrection ); + + /** + * Load the image + */ + void Load(); private: @@ -55,8 +70,14 @@ private: public: - BitmapLoader loader; ///< The loader used to load the bitmap from URL - uint32_t id; ///< The id associated with this task. + PixelData pixelData; ///< pixelData handle after successfull load + VisualUrl url; ///< url of the image to load + uint32_t id; ///< The unique id associated with this task. + ImageDimensions dimensions; ///< dimensions to load + FittingMode::Type fittingMode; ///< fitting options + SamplingMode::Type samplingMode; ///< sampling options + bool orientationCorrection:1; ///< if orientation correction is needed + };