summaryrefslogtreecommitdiff
path: root/mfx_stub/include/mfxdefs.h
blob: 4589513d9b1ae40418bbd2ace2e514008f6b4ff3 (plain)
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
40
41
42
43
44
45
46
47
48
49
/*
 * Copyright (C) 2024 Mikhail Burakov. This file is part of receiver.
 *
 * receiver is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * receiver is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with receiver.  If not, see <https://www.gnu.org/licenses/>.
 */

#ifndef MFX_STUB_INCLUDE_MFXDEFS_H_
#define MFX_STUB_INCLUDE_MFXDEFS_H_

#include <stdint.h>

#define MFX_INFINITE 0xffffffff

typedef uint8_t mfxU8;
typedef int8_t mfxI8;
typedef int16_t mfxI16;
typedef uint16_t mfxU16;
typedef uint32_t mfxU32;
typedef int32_t mfxI32;
typedef uint64_t mfxU64;
typedef int64_t mfxI64;
typedef void* mfxHDL;
typedef mfxHDL mfxMemId;

typedef enum {
  MFX_ERR_NONE = 0,
  MFX_ERR_UNSUPPORTED = -3,
  MFX_ERR_MEMORY_ALLOC = -4,
  MFX_ERR_MORE_DATA = -10,
  MFX_ERR_MORE_SURFACE = -11,
  MFX_ERR_DEVICE_FAILED = -17,
  MFX_ERR_REALLOC_SURFACE = -22,
  MFX_WRN_DEVICE_BUSY = 2,
  MFX_WRN_VIDEO_PARAM_CHANGED = 3,
  MFX_ERR_NONE_PARTIAL_OUTPUT = 12,
} mfxStatus;

#endif  // MFX_STUB_INCLUDE_MFXDEFS_H_