Since M43, GetSupportedProfiles also reflected to VideoDecoder.
This patch is to let gpu_info_collector_efl also collect
decoder accelerator informations.
Also let TizenVideoDecodeAccelerator report supported profiles
which required by GpuVideoDecodeAccelerator.
Bug: http://165.213.149.170/jira/browse/TSAM-594
Reviewed by: sm.venugopal, sns.park
Change-Id: I0df6fdaaa1f7405d095f85a7617e0fe0ca6a7ebb
Signed-off-by: msu.koo <msu.koo@samsung.com>
return new TizenVideoDecodeAccelerator();
}
+media::VideoDecodeAccelerator::SupportedProfiles GetSupportedTizenProfiles() {
+ media::VideoDecodeAccelerator::SupportedProfiles profiles;
+ media::VideoDecodeAccelerator::SupportedProfile profile;
+ profile.profile = media::H264PROFILE_MAIN;
+ profile.min_resolution.SetSize(0, 0);
+ profile.max_resolution.SetSize(1920, 1080); // FHD
+ profiles.push_back(profile);
+
+ return profiles;
+}
+
struct TizenVideoDecodeAccelerator::BitstreamBufferRef {
BitstreamBufferRef(
base::WeakPtr<media::VideoDecodeAccelerator::Client> client,
#include "gpu/config/scoped_restore_non_owned_egl_context.h"
#if defined(TIZEN_MULTIMEDIA_SUPPORT)
+#include "content/common/gpu/media/gpu_video_decode_accelerator.h"
#include "content/common/gpu/media/gpu_video_encode_accelerator.h"
#endif
#if defined(TIZEN_MULTIMEDIA_SUPPORT)
gpu_info->video_encode_accelerator_supported_profiles =
content::GpuVideoEncodeAccelerator::GetSupportedProfiles();
+ gpu_info->video_decode_accelerator_supported_profiles =
+ content::GpuVideoDecodeAccelerator::GetSupportedProfiles();
#endif
return result;
}