dmabuf_utils.h 820 B

123456789101112131415161718192021222324252627282930
  1. // Copyright 2019 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. #ifndef COMPONENTS_CHROMEOS_CAMERA_DMABUF_UTILS_H_
  5. #define COMPONENTS_CHROMEOS_CAMERA_DMABUF_UTILS_H_
  6. #include <stdint.h>
  7. #include <vector>
  8. #include "base/memory/scoped_refptr.h"
  9. #include "components/chromeos_camera/common/dmabuf.mojom.h"
  10. #include "media/base/video_types.h"
  11. #include "ui/gfx/geometry/size.h"
  12. namespace media {
  13. class VideoFrame;
  14. }
  15. namespace chromeos_camera {
  16. scoped_refptr<media::VideoFrame> ConstructVideoFrame(
  17. std::vector<mojom::DmaBufPlanePtr> dma_buf_planes,
  18. media::VideoPixelFormat pixel_format,
  19. const gfx::Size& coded_size);
  20. } // namespace chromeos_camera
  21. #endif // COMPONENTS_CHROMEOS_CAMERA_DMABUF_UTILS_H_