Index: media/gpu/v4l2_image_processor.h |
diff --git a/media/gpu/v4l2_image_processor.h b/media/gpu/v4l2_image_processor.h |
index bbebe8d01670bc4d8dd791e1e89ab9f29c8364d1..baadcd2a180a61ad7504f801331b5f50742ec439 100644 |
--- a/media/gpu/v4l2_image_processor.h |
+++ b/media/gpu/v4l2_image_processor.h |
@@ -55,21 +55,23 @@ class MEDIA_GPU_EXPORT V4L2ImageProcessor { |
std::vector<base::ScopedFD> GetDmabufsForOutputBuffer( |
int output_buffer_index); |
- // Returns a vector of supported input formats in fourcc. This can be called |
- // before Initialize. |
- std::vector<uint32_t> GetSupportedInputFormats(); |
- |
- // Returns a vector of supported output formats in fourcc. This can be called |
- // before Initialize. |
- std::vector<uint32_t> GetSupportedOutputFormats(); |
- |
- // Gets the output allocated size and number of planes given |pixelformat| |
- // fourcc and visible size |size|. Return true if success. The adjusted coded |
- // size will be stored in |size| and the number of planes will be stored in |
- // |num_planes|. This can be called before Initialize. |
- bool TryOutputFormat(uint32_t pixelformat, |
- gfx::Size* size, |
- size_t* num_planes); |
+ // Return true if image processing is supported on this platform. |
kcwu
2016/10/07 11:19:05
s/Return/Returns/
Pawel Osciak
2016/10/11 06:13:46
Done.
|
+ static bool IsSupported(); |
+ |
+ // Returns a vector of supported input formats in fourcc. |
+ static std::vector<uint32_t> GetSupportedInputFormats(); |
+ |
+ // Returns a vector of supported output formats in fourcc. |
+ static std::vector<uint32_t> GetSupportedOutputFormats(); |
+ |
+ // Gets output allocated size and number of planes required by the device |
+ // for conversion from |input_pixelformat| to |output_pixelformat|, for |
+ // visible size |size|. Returns true on success. Adjusted coded size will be |
+ // stored in |size| and the number of planes will be stored in |num_planes|. |
+ static bool TryOutputFormat(uint32_t input_pixelformat, |
+ uint32_t output_pixelformat, |
+ gfx::Size* size, |
+ size_t* num_planes); |
// Returns input allocated size required by the processor to be fed with. |
gfx::Size input_allocated_size() const { return input_allocated_size_; } |