mirror of
https://github.com/mpv-player/mpv
synced 2025-02-03 21:52:12 +00:00
ao/format: add af_fmt_is_float
This commit is contained in:
parent
96fa3ebd1a
commit
2006069ca2
@ -45,6 +45,11 @@ int af_fmt2bits(int format)
|
||||
return af_fmt2bps(format) * 8;
|
||||
}
|
||||
|
||||
bool af_fmt_is_float(int format)
|
||||
{
|
||||
return !!(format & AF_FORMAT_F);
|
||||
}
|
||||
|
||||
static int bits_to_mask(int bits)
|
||||
{
|
||||
switch (bits) {
|
||||
|
@ -109,6 +109,7 @@ const char *af_fmt_to_str(int format);
|
||||
|
||||
int af_fmt2bps(int format);
|
||||
int af_fmt2bits(int format);
|
||||
bool af_fmt_is_float(int format);
|
||||
int af_fmt_change_bits(int format, int bits);
|
||||
|
||||
int af_fmt_to_planar(int format);
|
||||
|
Loading…
Reference in New Issue
Block a user