Index: content/common/gpu/media/dxva_video_decode_accelerator.cc |
diff --git a/content/common/gpu/media/dxva_video_decode_accelerator.cc b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
index 348d8cc440119a4f31651070200a8b80ffce7d29..9a50660781d2fcc25973a2a12a7e3bd619ffba5a 100644 |
--- a/content/common/gpu/media/dxva_video_decode_accelerator.cc |
+++ b/content/common/gpu/media/dxva_video_decode_accelerator.cc |
@@ -518,6 +518,19 @@ DXVAVideoDecodeAccelerator::~DXVAVideoDecodeAccelerator() { |
client_ = NULL; |
} |
+// static |
+media::VideoDecodeAccelerator::SupportedResolution |
+DXVAVideoDecodeAccelerator::GetSupportedResolution() { |
wuchengli
2014/12/26 09:37:07
Be consistent with the order in the header file. M
henryhsu
2014/12/26 10:25:18
Done.
|
+ media::VideoDecodeAccelerator::SupportedResolution resolution; |
+ // Windows Media Foundation H.264 decoding does not support decoding videos |
+ // with any dimension smaller than 48 pixels: |
+ // http://msdn.microsoft.com/en-us/library/windows/desktop/dd797815 |
+ resolution.min.SetSize(48, 48); |
+ // Use 1088 to account for 16x16 macroblocks. |
+ resolution.max.SetSize(1920, 1088); |
+ return resolution; |
+} |
+ |
bool DXVAVideoDecodeAccelerator::Initialize(media::VideoCodecProfile profile, |
Client* client) { |
client_ = client; |