1
0
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:
Kevin Mitchell 2014-11-28 02:00:17 -08:00
parent 96fa3ebd1a
commit 2006069ca2
2 changed files with 6 additions and 0 deletions

View File

@ -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) {

View File

@ -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);