return false;
}
+void VideoPlayer::SetCodecType( Dali::VideoPlayerPlugin::CodecType type )
+{
+ if( mPlugin != NULL )
+ {
+ mPlugin->SetCodecType( type );
+ }
+}
+
+Dali::VideoPlayerPlugin::CodecType VideoPlayer::GetCodecType() const
+{
+ if( mPlugin != NULL )
+ {
+ return mPlugin->GetCodecType();
+ }
+
+ return Dali::VideoPlayerPlugin::CodecType::DEFAULT;
+}
+
} // namespace Adaptor;
} // namespace Internal;
} // namespace Dali;
*/
bool IsVideoTextureSupported();
+ /**
+ * @brief Dali::VideoPlayer::SetCodecType()
+ */
+ void SetCodecType( Dali::VideoPlayerPlugin::CodecType type );
+
+ /**
+ * @brief Dali::VideoPlayer::GetCodecType()
+ */
+ Dali::VideoPlayerPlugin::CodecType GetCodecType() const;
+
private:
/**
};
/**
+ * @brief Enumeration for video codec type
+ */
+ enum class CodecType
+ {
+ DEFAULT, ///< Codec which has higher priority as default. Platform selects it. Usually the H/W codec has higher priority than S/W codec if it exist.
+ HW, ///< H/W codec
+ SW ///< S/W codec
+ };
+
+ /**
* @brief Constructor.
* @SINCE_1_1.38
*/
*/
virtual bool IsVideoTextureSupported() = 0;
+ /**
+ * @brief Sets codec type
+ * @param[in] type The CodecType
+ */
+ virtual void SetCodecType( VideoPlayerPlugin::CodecType type ) = 0;
+
+ /**
+ * @brief Gets codec type
+ * @return CodecType
+ */
+ virtual VideoPlayerPlugin::CodecType GetCodecType() const = 0;
};
} // namespace Dali;
return GetImplementation( *this ).IsVideoTextureSupported();
}
+void VideoPlayer::SetCodecType( Dali::VideoPlayerPlugin::CodecType type )
+{
+ GetImplementation( *this ).SetCodecType( type );
+}
+
+Dali::VideoPlayerPlugin::CodecType VideoPlayer::GetCodecType() const
+{
+ return GetImplementation( *this ).GetCodecType();
+}
+
} // namespace Dali;
*/
bool IsVideoTextureSupported();
+ /**
+ * @brief Sets codec type
+ * @param[in] type The VideoCodec::Type
+ */
+ void SetCodecType( Dali::VideoPlayerPlugin::CodecType type );
+
+ /**
+ * @brief Gets codec type
+ * @return VideoCodec::Type
+ */
+ Dali::VideoPlayerPlugin::CodecType GetCodecType() const;
+
private: // Not intended for application developers
/**