Get rid of bit fields in union
authorPaul Cercueil <paul@crapouillou.net>
Fri, 13 Sep 2019 21:09:11 +0000 (23:09 +0200)
committerAsh Logan <ash@heyquark.com>
Mon, 6 Jun 2022 13:04:52 +0000 (23:04 +1000)
commit61124a6d0fb6a2980f9025630382d9b76c07066f
treef09b22801e4c99263ace2cc90939d8eac9e06990
parentadb7d7ac1b92eac9ebc408e35d2be60c6339f89b
Get rid of bit fields in union

Long story short, bit fields aren't endian-safe.
More info: http://mjfrazer.org/mjfrazer/bitfields/

Simplify that by just using a few macros to access the needed bits.

Signed-off-by: Paul Cercueil <paul@crapouillou.net>
plugins/gpulib/gpu.c
plugins/gpulib/gpu.h
plugins/gpulib/vout_pl.c