Browse Source

core: add RGBA 64 bits

16 bits per channel. Equivalent to DXGI_FORMAT_R16G16B16A16_UNORM.

(cherry picked from commit 9155641b72)
pull/135/head
Steve Lhomme 9 years ago
parent
commit
02dbf20976
  1. 2
      include/vlc_fourcc.h
  2. 1
      src/misc/fourcc.c
  3. 2
      src/misc/fourcc_list.h

2
include/vlc_fourcc.h

@ -330,6 +330,8 @@
#define VLC_CODEC_ARGB VLC_FOURCC('A','R','G','B')
/* 32 bits BGRA */
#define VLC_CODEC_BGRA VLC_FOURCC('B','G','R','A')
/* 64 bits RGBA */
#define VLC_CODEC_RGBA64 VLC_FOURCC('R','G','A','4')
/* Planar GBR 4:4:4 8 bits */
#define VLC_CODEC_GBR_PLANAR VLC_FOURCC('G','B','R','8')

1
src/misc/fourcc.c

@ -744,6 +744,7 @@ static const struct
{ { VLC_CODEC_RGB32, 0 }, PACKED_FMT(4, 24) },
{ { VLC_CODEC_RGBA, VLC_CODEC_ARGB,
VLC_CODEC_BGRA, }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_RGBA64, 0 }, PACKED_FMT(8, 64) },
{ { VLC_CODEC_VUYA, 0 }, PACKED_FMT(4, 32) },
{ { VLC_CODEC_Y211, 0 }, { 1, { {{1,4}, {1,1}} }, 4, 32 } },

2
src/misc/fourcc_list.h

@ -800,6 +800,8 @@ static const staticentry_t p_list_video[] = {
A("AV32"),
B(VLC_CODEC_BGRA, "32 bits BGRA"),
A("BGRA"),
B(VLC_CODEC_RGBA64, "64 bits RGBA"),
A("RGA4"),
B(VLC_CODEC_GREY, "8 bits greyscale"),
A("GREY"),

Loading…
Cancel
Save