Loading...
Searching...
No Matches
DirectShowPixelFormat.hpp
Go to the documentation of this file.
1#pragma once
2
19
20#include <score_plugin_gfx_export.h>
21
22#include <cstdint>
23
24namespace score::gfx::interop
25{
26
28constexpr uint32_t directShowFourcc(char a, char b, char c, char d) noexcept
29{
30 return uint32_t(uint8_t(a)) | (uint32_t(uint8_t(b)) << 8)
31 | (uint32_t(uint8_t(c)) << 16) | (uint32_t(uint8_t(d)) << 24);
32}
33
36SCORE_PLUGIN_GFX_EXPORT
37VideoPixelFormat fromDirectShowFourcc(uint32_t fourcc) noexcept;
38
41SCORE_PLUGIN_GFX_EXPORT
42bool isDirectShowCompressedFourcc(uint32_t fourcc) noexcept;
43
44} // namespace score::gfx::interop
constexpr uint32_t directShowFourcc(char a, char b, char c, char d) noexcept
Build a fourcc the way DirectShow spells it, least-significant byte first.
Definition DirectShowPixelFormat.hpp:28
Vendor-neutral pixel format vocabulary + descriptive metadata.