1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
// Copyright 2021 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_GPU_VAAPI_VAAPI_STATUS_H_
#define MEDIA_GPU_VAAPI_VAAPI_STATUS_H_
#include "media/base/status.h"
namespace media {
enum class VaapiStatusCode : StatusCodeType {
kOk = 0,
kBadContext = 1,
kNoBuffer = 2,
kNoBufferHandle = 3,
kNoPixmap = 4,
kNoImage = 5,
kNoSurface = 6,
kFailedToInitializeImage = 7,
kFailedToBindTexture = 8,
kFailedToBindImage = 9,
kUnsupportedFormat = 10,
kFailedToExportImage = 11,
kBadImageSize = 12,
kNoTexture = 13,
kUnsupportedProfile = 14,
};
struct VaapiStatusTraits {
using Codes = VaapiStatusCode;
static constexpr StatusGroupType Group() { return "VaapiStatusCode"; }
static constexpr VaapiStatusCode DefaultEnumValue() { return Codes::kOk; }
};
using VaapiStatus = TypedStatus<VaapiStatusTraits>;
} // namespace media
#endif // MEDIA_GPU_VAAPI_VAAPI_STATUS_H_
|