blob: ab2a4459aad134d66f96dae37c6b2b3f9737b568 [file] [log] [blame]
// Copyright 2020 The Chromium 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 MEDIA_BASE_MAC_COLOR_SPACE_UTIL_MAC_H_
#define MEDIA_BASE_MAC_COLOR_SPACE_UTIL_MAC_H_
#include <CoreFoundation/CoreFoundation.h>
#include <CoreMedia/CoreMedia.h>
#include <CoreVideo/CoreVideo.h>
#include "media/base/media_export.h"
#include "ui/gfx/color_space.h"
#include "ui/gfx/hdr_metadata.h"
namespace media {
MEDIA_EXPORT gfx::ColorSpace GetImageBufferColorSpace(
CVImageBufferRef image_buffer);
MEDIA_EXPORT gfx::ColorSpace GetFormatDescriptionColorSpace(
CMFormatDescriptionRef format_description);
MEDIA_EXPORT CFDataRef
GenerateContentLightLevelInfo(const gfx::HDRMetadata& hdr_metadata);
MEDIA_EXPORT CFDataRef
GenerateMasteringDisplayColorVolume(const gfx::HDRMetadata& hdr_metadata);
} // namespace media
#endif // MEDIA_BASE_MAC_COLOR_SPACE_UTIL_MAC_H_