mEcoreWlWindow( NULL ),
mStreamInfo( NULL ),
mStreamType( SOUND_STREAM_TYPE_MEDIA ),
- mCodecType( PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT )
+ mCodecType( PLAYER_CODEC_TYPE_HW )
{
}
error = player_set_display( mPlayer, PLAYER_DISPLAY_TYPE_NONE, NULL );
LogPlayerError( error );
- error = player_set_video_codec_type_ex( mPlayer, mCodecType );
+ error = player_set_video_codec_type( mPlayer, mCodecType );
LogPlayerError( error );
error = player_set_display_visible( mPlayer, true );
error = player_set_display_roi_area( mPlayer, 0, 0, 1, 1 );
LogPlayerError( error );
- error = player_set_video_codec_type_ex( mPlayer, mCodecType );
+ error = player_set_video_codec_type( mPlayer, mCodecType );
LogPlayerError( error );
int width, height;
int error;
switch( type )
{
- case Dali::VideoPlayerPlugin::CodecType::DEFAULT :
+ case Dali::VideoPlayerPlugin::CodecType::HW :
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT;
+ mCodecType = PLAYER_CODEC_TYPE_HW;
break;
}
- case Dali::VideoPlayerPlugin::CodecType::HW :
+ case Dali::VideoPlayerPlugin::CodecType::SW :
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_HW;
+ mCodecType = PLAYER_CODEC_TYPE_SW;
break;
}
- case Dali::VideoPlayerPlugin::CodecType::SW :
+ default:
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_SW;
+ mCodecType = PLAYER_CODEC_TYPE_HW;
break;
}
}
if( mPlayerState == PLAYER_STATE_IDLE )
{
- error = player_set_video_codec_type_ex( mPlayer, mCodecType );
+ error = player_set_video_codec_type( mPlayer, mCodecType );
LogPlayerError( error );
}
}
Dali::VideoPlayerPlugin::CodecType TizenVideoPlayer::GetCodecType() const
{
- Dali::VideoPlayerPlugin::CodecType type = Dali::VideoPlayerPlugin::CodecType::DEFAULT;
+ Dali::VideoPlayerPlugin::CodecType type = Dali::VideoPlayerPlugin::CodecType::HW;
if( mPlayerState != PLAYER_STATE_NONE )
{
- player_video_codec_type_ex_e codecType = PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT;
- int error = player_get_video_codec_type_ex( mPlayer, &codecType );
+ player_codec_type_e codecType = PLAYER_CODEC_TYPE_HW;
+ int error = player_get_video_codec_type( mPlayer, &codecType );
if( error != PLAYER_ERROR_NONE )
{
LogPlayerError( error );
switch( codecType )
{
- case PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT :
+ case PLAYER_CODEC_TYPE_HW :
{
- type = Dali::VideoPlayerPlugin::CodecType::DEFAULT;
+ type = Dali::VideoPlayerPlugin::CodecType::HW;
break;
}
- case PLAYER_VIDEO_CODEC_TYPE_EX_HW :
+ case PLAYER_CODEC_TYPE_SW :
{
- type = Dali::VideoPlayerPlugin::CodecType::HW;
+ type = Dali::VideoPlayerPlugin::CodecType::SW;
break;
}
- case PLAYER_VIDEO_CODEC_TYPE_EX_SW :
+ default:
{
- type = Dali::VideoPlayerPlugin::CodecType::SW;
+ type = Dali::VideoPlayerPlugin::CodecType::HW;
break;
}
}
mPacketList(),
mStreamInfo(NULL),
mStreamType(SOUND_STREAM_TYPE_MEDIA),
- mCodecType(PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT),
+ mCodecType(PLAYER_CODEC_TYPE_HW),
mEcoreWlWindow(nullptr),
mEcoreSubVideoWindow(nullptr),
mSyncActor(actor),
DALI_LOG_ERROR("InitializeTextureStreamMode, player_set_display() is failed\n");
}
- error = player_set_video_codec_type_ex(mPlayer, mCodecType);
+ error = player_set_video_codec_type(mPlayer, mCodecType);
ret = LogPlayerError(error);
if(ret)
{
- DALI_LOG_ERROR("InitializeTextureStreamMode, player_set_video_codec_type_ex() is failed\n");
+ DALI_LOG_ERROR("InitializeTextureStreamMode, player_set_video_codec_type() is failed\n");
}
error = player_set_display_visible(mPlayer, true);
ret = LogPlayerError(error);
DALI_LOG_ERROR("InitializeEnableSyncMode, player_set_sound_stream_info() is failed\n");
}
- error = player_set_video_codec_type_ex(mPlayer, mCodecType);
+ error = player_set_video_codec_type(mPlayer, mCodecType);
ret = LogPlayerError(error);
if(ret)
{
- DALI_LOG_ERROR("InitializeEnableSyncMode, player_set_video_codec_type_ex() is failed\n");
+ DALI_LOG_ERROR("InitializeEnableSyncMode, player_set_video_codec_type() is failed\n");
}
int width, height;
DALI_LOG_ERROR("InitializeUnderlayMode, player_set_sound_stream_info() is failed\n");
}
- error = player_set_video_codec_type_ex(mPlayer, mCodecType);
+ error = player_set_video_codec_type(mPlayer, mCodecType);
ret = LogPlayerError(error);
if(ret)
{
- DALI_LOG_ERROR("InitializeUnderlayMode, player_set_video_codec_type_ex() is failed\n");
+ DALI_LOG_ERROR("InitializeUnderlayMode, player_set_video_codec_type() is failed\n");
}
int width, height;
int ret = 0;
switch(type)
{
- case Dali::VideoPlayerPlugin::CodecType::DEFAULT:
+ case Dali::VideoPlayerPlugin::CodecType::HW:
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT;
+ mCodecType = PLAYER_CODEC_TYPE_HW;
break;
}
- case Dali::VideoPlayerPlugin::CodecType::HW:
+ case Dali::VideoPlayerPlugin::CodecType::SW:
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_HW;
+ mCodecType = PLAYER_CODEC_TYPE_SW;
break;
}
- case Dali::VideoPlayerPlugin::CodecType::SW:
+ default:
{
- mCodecType = PLAYER_VIDEO_CODEC_TYPE_EX_SW;
+ mCodecType = PLAYER_CODEC_TYPE_HW;
break;
}
}
if(mPlayerState == PLAYER_STATE_IDLE)
{
- error = player_set_video_codec_type_ex(mPlayer, mCodecType);
+ error = player_set_video_codec_type(mPlayer, mCodecType);
ret = LogPlayerError(error);
if(ret)
{
- DALI_LOG_ERROR("SetCodecType, player_set_video_codec_type_ex() is failed\n");
+ DALI_LOG_ERROR("SetCodecType, player_set_video_codec_type() is failed\n");
}
}
}
Dali::VideoPlayerPlugin::CodecType TizenVideoPlayer::GetCodecType() const
{
- Dali::VideoPlayerPlugin::CodecType type = Dali::VideoPlayerPlugin::CodecType::DEFAULT;
+ Dali::VideoPlayerPlugin::CodecType type = Dali::VideoPlayerPlugin::CodecType::HW;
int ret = 0;
if(mPlayerState != PLAYER_STATE_NONE)
{
- player_video_codec_type_ex_e codecType = PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT;
- int error = player_get_video_codec_type_ex(mPlayer, &codecType);
+ player_codec_type_e codecType = PLAYER_CODEC_TYPE_HW;
+ int error = player_get_video_codec_type(mPlayer, &codecType);
if(error != PLAYER_ERROR_NONE)
{
ret = LogPlayerError(error);
if(ret)
{
- DALI_LOG_ERROR("GetCodecType, player_get_video_codec_type_ex() is failed\n");
+ DALI_LOG_ERROR("GetCodecType, player_get_video_codec_type() is failed\n");
}
return type;
}
switch(codecType)
{
- case PLAYER_VIDEO_CODEC_TYPE_EX_DEFAULT:
+ case PLAYER_CODEC_TYPE_HW:
{
- type = Dali::VideoPlayerPlugin::CodecType::DEFAULT;
+ type = Dali::VideoPlayerPlugin::CodecType::HW;
break;
}
- case PLAYER_VIDEO_CODEC_TYPE_EX_HW:
+ case PLAYER_CODEC_TYPE_SW:
{
- type = Dali::VideoPlayerPlugin::CodecType::HW;
+ type = Dali::VideoPlayerPlugin::CodecType::SW;
break;
}
- case PLAYER_VIDEO_CODEC_TYPE_EX_SW:
+ default:
{
- type = Dali::VideoPlayerPlugin::CodecType::SW;
+ type = Dali::VideoPlayerPlugin::CodecType::HW;
break;
}
}