Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(413)

Unified Diff: media/gpu/media_foundation_video_encode_accelerator_win.h

Issue 2615513003: Add optional max supported resolution on MediaFoundationVideoEncodeAccelerator (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | media/gpu/media_foundation_video_encode_accelerator_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/gpu/media_foundation_video_encode_accelerator_win.h
diff --git a/media/gpu/media_foundation_video_encode_accelerator_win.h b/media/gpu/media_foundation_video_encode_accelerator_win.h
index cd67630909ec02e6e250003b35aa0d4e06d7f87c..1720a78b08bf4dca6826362a13c7221b332748d9 100644
--- a/media/gpu/media_foundation_video_encode_accelerator_win.h
+++ b/media/gpu/media_foundation_video_encode_accelerator_win.h
@@ -76,6 +76,10 @@ class MEDIA_GPU_EXPORT MediaFoundationVideoEncodeAccelerator
// Initializes encoder parameters for real-time use.
bool SetEncoderModes();
+ // Returns true if we can initialize input and output samples with the given
+ // frame size, otherwise false.
+ bool IsResolutionSupported(const gfx::Size& size);
+
// Helper function to notify the client of an error on
// |main_client_task_runner_|.
void NotifyError(VideoEncodeAccelerator::Error error);
« no previous file with comments | « no previous file | media/gpu/media_foundation_video_encode_accelerator_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698