| OLD | NEW |
| (Empty) |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_ | |
| 6 #define MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_ | |
| 7 | |
| 8 #include "media/capture/video/chromeos/mojo/arc_camera3.mojom.h" | |
| 9 #include "media/capture/video_capture_types.h" | |
| 10 | |
| 11 namespace media { | |
| 12 | |
| 13 // Converts the HAL pixel format |from| to Chromium pixel format. Returns | |
| 14 // PIXEL_FORMAT_UNKNOWN if |from| is not supported. | |
| 15 VideoPixelFormat PixFormatHalToChromium(arc::mojom::HalPixelFormat from); | |
| 16 | |
| 17 // Converts the Chromium pixel format |from| to DRM pixel format. Returns 0 | |
| 18 // if |from| is not supported. | |
| 19 uint32_t PixFormatChromiumToDrm(VideoPixelFormat from); | |
| 20 | |
| 21 } // namespace media | |
| 22 | |
| 23 #endif // MEDIA_CAPTURE_VIDEO_CHROMEOS_PIXEL_FORMAT_UTILS_H_ | |
| OLD | NEW |