Removed unused functons in _IImageDecoder.h
authorJungYumin <y_m.jung@samsung.com>
Wed, 20 Mar 2013 08:33:56 +0000 (17:33 +0900)
committerJungYumin <y_m.jung@samsung.com>
Wed, 20 Mar 2013 08:33:56 +0000 (17:33 +0900)
Change-Id: I5624f1f866d8834b3551db69ded7260e700e9752
Signed-off-by: JungYumin <y_m.jung@samsung.com>
13 files changed:
src/FMedia_BmpDecoder.cpp
src/FMedia_BmpDecoder.h
src/FMedia_GifDecoder.cpp
src/FMedia_JpegTurboDecoder.cpp
src/FMedia_JpegTurboDecoder.h
src/FMedia_PngDecoder.cpp
src/FMedia_PngDecoder.h
src/FMedia_TiffDecoder.cpp
src/FMedia_TiffDecoder.h
src/FMedia_WbmpDecoder.cpp
src/FMedia_WbmpDecoder.h
src/inc/FMedia_GifDecoder.h
src/inc/FMedia_IImageDecoder.h

index 8ea0aaa..fe763bc 100755 (executable)
@@ -278,21 +278,4 @@ _BmpDecoder::GetPixelFormat(void)
        return __pixelFormat;
 }
 
-result
-_BmpDecoder::SetScaleDown(int scaleDown)
-{
-       result r = E_SUCCESS;
-
-       SysTryReturn(NID_MEDIA, __pCodecCtx, E_INVALID_STATE, E_INVALID_STATE,
-                               "[E_INVALID_STATE] Not Constructed.");
-       // TODO
-       return r;
-}
-
-result
-_BmpDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
 }} // Tizen::Media
index 862f80f..91f9b18 100644 (file)
@@ -92,29 +92,6 @@ public:
         */
        virtual MediaPixelFormat GetPixelFormat(void);
 
-       /**
-        * Sets scale down degree.
-        *
-        * @return        An error code
-        * @param[in]   scaleDown                                  The level of scale down.
-        * @exception   E_SUCCESS                                  The method is successful.
-        * @exception   E_INVALID_ARG                      The input parameter is invalid.
-        * @exception   E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
-
 private:
        /**
         *  Initializes the ffmpeg codec and codec context.
index 4d105ba..f78f62a 100644 (file)
@@ -541,32 +541,9 @@ _GifDecoder::GetPixelFormat(void)
        return __pixelFormat; // MEDIA_PIXEL_FORMAT_RGB565LE;
 }
 
-result
-_GifDecoder::SetScaleDown(int scaleDown)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
-result
-_GifDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
+int
+_GifDecoder::GetDuration(void)
 {
-       result r = E_SUCCESS;
-       if (key.Equals(L"duration", false))
-       {
-               Long *pLong = null;
-               pLong = dynamic_cast<Long*>(&value);
-
-               SysTryCatch(NID_MEDIA, pLong, r = E_INVALID_ARG, E_INVALID_ARG,
-                       "value is not a Long");
-               pLong->value = __duration;
-       }
-       else
-       {
-               r = E_OBJ_NOT_FOUND;
-       }
-
-CATCH:
-       return r;
+       return __duration;
 }
-
 }} // Tizen::Media
index 45c5cb8..0a81bcc 100644 (file)
@@ -194,19 +194,5 @@ _JpegTurboDecoder::GetPixelFormat(void)
                return MEDIA_PIXEL_FORMAT_BGRA8888;
        }
 }
-
-result
-_JpegTurboDecoder::SetScaleDown(int scaleDown)
-{
-       __scale = scaleDown;
-       return E_SUCCESS;
-}
-
-result
-_JpegTurboDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
 }} // Tizen::Media
 
index 4e81e38..2baabe0 100644 (file)
@@ -100,29 +100,6 @@ public:
         */
        virtual MediaPixelFormat GetPixelFormat(void);
 
-       /**
-        *  Sets scale down degree.
-        *
-        *  @return      An error code
-        *  @param[in]  scaleDown                                 The level of scale down.
-        *  @exception  E_SUCCESS                                 The method is successful.
-        *  @exception  E_INVALID_ARG                     The input parameter is invalid.
-        *  @exception  E_UNSUPPORTED_OPERATION This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
-
 private:
        _JpegTurboDecoder(const _JpegTurboDecoder&);
        _JpegTurboDecoder& operator =(const _JpegTurboDecoder & __JpegTurboDecoder);
index 627fff6..5485a74 100644 (file)
@@ -336,18 +336,4 @@ _PngDecoder::GetPixelFormat(void)
 {
        return __format;
 }
-
-result
-_PngDecoder::SetScaleDown(int scaleDown)
-{
-       __scale = scaleDown;
-       return E_SUCCESS;
-}
-
-result
-_PngDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
 }}
index 137682c..b28a9b7 100644 (file)
@@ -90,29 +90,6 @@ public:
         */
        virtual MediaPixelFormat GetPixelFormat(void);
 
-       /**
-        *  Sets scale down degree.
-        *
-        *  @return       An error code
-        *  @param[in]   scaleDown                              The level of scale down.
-        *  @exception   E_SUCCESS                              The method is successful.
-        *  @exception   E_INVALID_ARG                  The input parameter is invalid.
-        *  @exception   E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
-
        void PngReadData(void *pngPtr, byte* data, int size);
 
        static void PngReadDataStatic(struct png_struct_def* pngPtr, png_bytep data, png_size_t length);
index a29aef3..2d39d2b 100644 (file)
@@ -266,17 +266,4 @@ _TiffDecoder::GetPixelFormat(void)
        SetLastResult(E_SUCCESS);
        return pixelFormat;
 }
-
-result
-_TiffDecoder::SetScaleDown(int scaleDown)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
-result
-_TiffDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
 }} // Tizen::Media
index 27edc3a..a40f9d3 100644 (file)
@@ -101,30 +101,6 @@ public:
         */
        virtual MediaPixelFormat GetPixelFormat(void);
 
-       /**
-        * Sets scale down degree.
-        *
-        * @return       An error code
-        * @param[in]  scaleDown                                The level of scale down.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
-
-
 private:
        // Methods to be passed to libtiff for reading input data.
        static tsize_t TiffCbReadData(thandle_t handle, tdata_t pData, tsize_t size);
index f84e03f..8565b99 100644 (file)
@@ -176,17 +176,4 @@ _WbmpDecoder::GetPixelFormat(void)
 
        return pixelFormat;
 }
-
-result
-_WbmpDecoder::SetScaleDown(int scaleDown)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
-result
-_WbmpDecoder::GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value)
-{
-       return E_UNSUPPORTED_OPERATION;
-}
-
 }} // Tizen::Media
index 7b7588c..0928194 100644 (file)
@@ -86,30 +86,6 @@ public:
         */
        virtual MediaPixelFormat GetPixelFormat(void);
 
-       /**
-        * Sets scale down degree.
-        *
-        * @return       An error code
-        * @param[in]  scaleDown                                The level of scale down.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
-
-
 private:
        struct _Evas* __pEvas;
        // Ecore canvas
index c58e77e..21ff6e2 100644 (file)
@@ -94,27 +94,11 @@ public:
        virtual MediaPixelFormat GetPixelFormat(void);
 
        /**
-        *  Sets scale down degree.
+        *  Gets duration of current gif image.
         *
-        *  @return        An error code
-        *  @param[in]  scaleDown                                  The level of scale down.
-        *  @exception  E_SUCCESS                                  The method is successful.
-        *  @exception  E_INVALID_ARG                      The input parameter is invalid.
-        *  @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown);
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
+        *  @return  The duration of current gif image.
         */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value);
+       int GetDuration(void);
 
 private:
        static int BufferReadFuncStatic(struct GifFileType* gifFile, unsigned char* buf, int count);
index 5ed27bb..4bb9b07 100644 (file)
@@ -88,29 +88,6 @@ public:
         *  @return   The output pixel format.
         */
        virtual MediaPixelFormat GetPixelFormat(void) = 0;
-
-       /**
-        * Sets scale down degree.
-        *
-        * @return       An error code
-        * @param[in]  scaleDown                                The level of scale down.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result SetScaleDown(int scaleDown) = 0;
-
-       /**
-        * Gets the value of given key.
-        *
-        * @return   An error code
-        * @param[in]  key                                        The key of the value.
-        * @param[out] value                                    The output value.
-        * @exception  E_SUCCESS                                The method is successful.
-        * @exception  E_INVALID_ARG                    The input parameter is invalid.
-        * @exception  E_UNSUPPORTED_OPERATION  This method is unsupported.
-        */
-       virtual result GetValue(const Tizen::Base::String& key, Tizen::Base::Object &value) = 0;
 }; // class _IImageDecoder
 
 };