blob: b22d8dab64d96233ab67ee6ce419190b918de2f9 [file] [log] [blame]
/*
* Copyright 2021 The Chromium OS Authors. All rights reserved.
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef CAMERA_INCLUDE_CROS_CAMERA_CAMERA_BUFFER_UTILS_H_
#define CAMERA_INCLUDE_CROS_CAMERA_CAMERA_BUFFER_UTILS_H_
#include <base/files/file_path.h>
#include <cutils/native_handle.h>
#include "cros-camera/export.h"
namespace cros {
bool CROS_CAMERA_EXPORT ReadFileIntoBuffer(buffer_handle_t buffer,
base::FilePath file_to_read);
bool CROS_CAMERA_EXPORT WriteBufferIntoFile(buffer_handle_t buffer,
base::FilePath file_to_write);
} // namespace cros
#endif // CAMERA_INCLUDE_CROS_CAMERA_CAMERA_BUFFER_UTILS_H_