mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-12 10:25:33 +00:00
rename IS_LE/BE to _IS_LITTLE_ENDIAN/BIG_ENDIAN
This commit is contained in:
parent
8ee3da5bba
commit
c0d31dd555
2 changed files with 13 additions and 13 deletions
|
@ -214,19 +214,19 @@ struct _GstAudioFormatInfo {
|
|||
GstAudioFormatPack pack_func;
|
||||
};
|
||||
|
||||
#define GST_AUDIO_FORMAT_INFO_FORMAT(info) ((info)->format)
|
||||
#define GST_AUDIO_FORMAT_INFO_NAME(info) ((info)->name)
|
||||
#define GST_AUDIO_FORMAT_INFO_FLAGS(info) ((info)->flags)
|
||||
#define GST_AUDIO_FORMAT_INFO_FORMAT(info) ((info)->format)
|
||||
#define GST_AUDIO_FORMAT_INFO_NAME(info) ((info)->name)
|
||||
#define GST_AUDIO_FORMAT_INFO_FLAGS(info) ((info)->flags)
|
||||
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_INTEGER(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_INTEGER)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_FLOAT(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_FLOAT)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_SIGNED(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_SIGNED)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_INTEGER(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_INTEGER)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_FLOAT(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_FLOAT)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_SIGNED(info) !!((info)->flags & GST_AUDIO_FORMAT_FLAG_SIGNED)
|
||||
|
||||
#define GST_AUDIO_FORMAT_INFO_ENDIANNESS(info) ((info)->endianness)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_LE(info) ((info)->endianness == G_LITTLE_ENDIAN)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_BE(info) ((info)->endianness == G_BIG_ENDIAN)
|
||||
#define GST_AUDIO_FORMAT_INFO_WIDTH(info) ((info)->width)
|
||||
#define GST_AUDIO_FORMAT_INFO_DEPTH(info) ((info)->depth)
|
||||
#define GST_AUDIO_FORMAT_INFO_ENDIANNESS(info) ((info)->endianness)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_LITTLE_ENDIAN(info) ((info)->endianness == G_LITTLE_ENDIAN)
|
||||
#define GST_AUDIO_FORMAT_INFO_IS_BIG_ENDIAN(info) ((info)->endianness == G_BIG_ENDIAN)
|
||||
#define GST_AUDIO_FORMAT_INFO_WIDTH(info) ((info)->width)
|
||||
#define GST_AUDIO_FORMAT_INFO_DEPTH(info) ((info)->depth)
|
||||
|
||||
|
||||
GstAudioFormat gst_audio_format_build_integer (gboolean sign, gint endianness,
|
||||
|
|
|
@ -569,14 +569,14 @@ audio_convert_get_func_index (AudioConvertCtx * ctx,
|
|||
|
||||
if (GST_AUDIO_FORMAT_INFO_IS_INTEGER (fmt)) {
|
||||
index += (GST_AUDIO_FORMAT_INFO_WIDTH (fmt) / 8 - 1) * 4;
|
||||
index += GST_AUDIO_FORMAT_INFO_IS_LE (fmt) ? 0 : 2;
|
||||
index += GST_AUDIO_FORMAT_INFO_IS_LITTLE_ENDIAN (fmt) ? 0 : 2;
|
||||
index += GST_AUDIO_FORMAT_INFO_IS_SIGNED (fmt) ? 1 : 0;
|
||||
index += (ctx->ns == NOISE_SHAPING_NONE) ? 0 : 24;
|
||||
} else {
|
||||
/* this is float/double */
|
||||
index = 16;
|
||||
index += (GST_AUDIO_FORMAT_INFO_WIDTH (fmt) == 32) ? 0 : 2;
|
||||
index += GST_AUDIO_FORMAT_INFO_IS_LE (fmt) ? 0 : 1;
|
||||
index += GST_AUDIO_FORMAT_INFO_IS_LITTLE_ENDIAN (fmt) ? 0 : 1;
|
||||
index += (DOUBLE_INTERMEDIATE_FORMAT (ctx)) ? 4 : 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue