/* set and get flip value */
int mm_evas_renderer_set_flip(MMHandleType handle, int flip);
int mm_evas_renderer_get_flip(MMHandleType handle, int *flip);
-/* update all properties */
-int mm_evas_renderer_update_param(MMHandleType handle);
/* call ecore_pipe_write, when packet is sent */
void mm_evas_renderer_write(media_packet_h packet, void *data);
/* if user want to retrieve all packets, this API will be called */
return;
}
-int mm_evas_renderer_update_param(MMHandleType handle)
-{
- MMER_FENTER();
-
- int ret = MM_ERROR_NONE;
- mm_evas_info *evas_info = (mm_evas_info *)handle;
-
- if (!evas_info) {
- LOGW("skip it. it is not evas surface type.");
- return ret;
- }
-
- /* when handle is realized, we need to update all properties */
- if (evas_info) {
- LOGD("set video param : evas-object %x, method %d", evas_info->eo, evas_info->display_geometry_method);
- LOGD("set video param : visible %d", evas_info->visible);
- LOGD("set video param : rotate %d", evas_info->rotate_angle);
-
- ret = _mm_evas_renderer_apply_geometry(evas_info);
- if (ret != MM_ERROR_NONE)
- return ret;
-
- if (evas_info->epipe) {
- ret = ecore_pipe_write(evas_info->epipe, &evas_info->visible, UPDATE_VISIBILITY);
- if (!ret) {
- LOGW("fail to ecore_pipe_write() for updating visibility\n");
- return MM_ERROR_EVASRENDER_INTERNAL;
- }
- evas_info->update_needed = TRUE;
- /* FIXME: pause state only */
- g_mutex_lock(&evas_info->idx_lock);
- ret = ecore_pipe_write(evas_info->epipe, evas_info, UPDATE_TBM_SURF);
- if (!ret) {
- LOGW("fail to ecore_pipe_write() for updating visibility\n");
- ret = MM_ERROR_EVASRENDER_INTERNAL;
- } else {
- ret = MM_ERROR_NONE;
- }
- g_mutex_unlock(&evas_info->idx_lock);
- }
- }
-
- MMER_FLEAVE();
-
- return ret;
-}
-
int mm_evas_renderer_create(MMHandleType *handle, Evas_Object *eo)
{
MMER_FENTER();