blob: ca1d5bfe1a1221c54eae427c5a42a4a6063dd23b [file] [log] [blame]
/* Copyright 2019 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_HAL_IP_METADATA_HANDLER_H_
#define CAMERA_HAL_IP_METADATA_HANDLER_H_
#include <base/macros.h>
#include <string>
#include <camera/camera_metadata.h>
namespace cros {
class MetadataHandler {
public:
MetadataHandler();
MetadataHandler(const MetadataHandler&) = delete;
MetadataHandler& operator=(const MetadataHandler&) = delete;
~MetadataHandler();
// The caller is responsible for freeing the memory returned
static android::CameraMetadata CreateStaticMetadata(const std::string& ip,
const std::string& name,
int format,
int width,
int height,
double fps);
static camera_metadata_t* GetDefaultRequestSettings();
};
} // namespace cros
#endif // CAMERA_HAL_IP_METADATA_HANDLER_H_