-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathimage_format.hpp
34 lines (30 loc) · 1.34 KB
/
image_format.hpp
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
#pragma once
namespace bnb::oep::interfaces
{
enum class rotation : int32_t
{
deg0, /* 0 degrees */
deg90, /* 90 degrees */
deg180, /* 180 degrees */
deg270, /* 270 degrees */
}; /* enum class rotation */
/* bt601 and bt709 - two standards for representing color space that use the same
* image encoding/decoding algorithm. Differ in the encoding / decoding coefficients.
*/
enum class image_format : int32_t
{
bpc8_rgb, /* one plane: RGB */
bpc8_bgr, /* one plane: BGR */
bpc8_rgba, /* one plane: RGBA */
bpc8_bgra, /* one plane: BGRA */
bpc8_argb, /* one plane: ARGB */
nv12_bt601_full, /* two planes: first RED, second RG */
nv12_bt601_video, /* two planes: first RED, second RG */
nv12_bt709_full, /* two planes: first RED, second RG */
nv12_bt709_video, /* two planes: first RED, second RG */
i420_bt601_full, /* three planes: first RED, second RED, third RED */
i420_bt601_video, /* three planes: first RED, second RED, third RED */
i420_bt709_full, /* three planes: first RED, second RED, third RED */
i420_bt709_video /* three planes: first RED, second RED, third RED */
}; /* enum class image_format */
} /* namespace bnb::oep::interfaces */