Skip to content

Commit 6e1277a

Browse files
committed
types.h: set RGBA as "primary", not alias
At least gdb prints VIDEO_CODEC_FIRST for value `(codec_t) 1`, which is unfortunate. So assuming that the first identifier is taken as a "primary" if more have the same value.
1 parent cd77aa3 commit 6e1277a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/types.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ extern "C" {
6262
typedef enum {
6363
VIDEO_CODEC_NONE = 0, ///< dummy color spec
6464
VC_NONE = VIDEO_CODEC_NONE, // shortcut
65-
VIDEO_CODEC_FIRST,
66-
VC_FIRST = VIDEO_CODEC_FIRST,
67-
RGBA = VIDEO_CODEC_FIRST, ///< RGBA 8-bit, big-endian
65+
RGBA, ///< RGBA 8-bit, big-endian
66+
VIDEO_CODEC_FIRST = RGBA,
67+
VC_FIRST = VIDEO_CODEC_FIRST,
6868
UYVY, ///< YCbCr 422 8-bit - Cb Y0 Cr Y1
6969
YUYV, ///< YCbCr 422 8-bit - Y0 Cb Y1 Cr
7070
VUYA, ///< YCbCr 444 8-bit - Cr Cb Y0 Al

0 commit comments

Comments
 (0)