-int image_meta_set_orientation(image_meta_h image, media_content_orientation_e orientation)
-{
- int ret = MEDIA_CONTENT_ERROR_NONE;
- image_meta_s *_image = (image_meta_s*)image;
-
- if(_image == NULL)
- {
- media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
- return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
- }
-
- if((orientation < MEDIA_CONTENT_ORIENTATION_NOT_AVAILABLE) || (orientation > MEDIA_CONTENT_ORIENTATION_ROT_270))
- {
- media_content_error("INVALID_PARAMETER(0x%08x)", MEDIA_CONTENT_ERROR_INVALID_PARAMETER);
- return MEDIA_CONTENT_ERROR_INVALID_PARAMETER;
- }
-
- _image->orientation = orientation;
-
- return ret;
-}