blob: 4cd8fe472bd9ebc84bf9c11dd6de6ac7c24c989c [file] [log] [blame]
// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef MEDIA_GPU_WINDOWS_FORMAT_UTILS_H_
#define MEDIA_GPU_WINDOWS_FORMAT_UTILS_H_
#include <dxgi.h>
#include "media/base/video_types.h"
#include "media/gpu/media_gpu_export.h"
namespace media {
// Get the number of planes that a D3D12Resource of |format| has.
MEDIA_GPU_EXPORT size_t GetFormatPlaneCount(DXGI_FORMAT format);
MEDIA_GPU_EXPORT const char* DxgiFormatToString(DXGI_FORMAT format);
MEDIA_GPU_EXPORT DXGI_FORMAT
VideoPixelFormatToDxgiFormat(VideoPixelFormat format);
} // namespace media
#endif // MEDIA_GPU_WINDOWS_FORMAT_UTILS_H_