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
*/
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.
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
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
*/
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);
{
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;
-}
-
}}
*/
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);
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
*/
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);
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
*/
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
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);
* @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
};