Lines Matching refs:mode
161 gint gst_sbc_get_channel_number(gint mode) in gst_sbc_get_channel_number() argument
163 switch (mode) { in gst_sbc_get_channel_number()
231 const gchar *gst_sbc_parse_mode_from_sbc(gint mode) in gst_sbc_parse_mode_from_sbc() argument
233 switch (mode) { in gst_sbc_parse_mode_from_sbc()
248 gint gst_sbc_parse_mode_to_sbc(const gchar *mode) in gst_sbc_parse_mode_to_sbc() argument
250 if (g_ascii_strcasecmp(mode, "joint") == 0) in gst_sbc_parse_mode_to_sbc()
252 else if (g_ascii_strcasecmp(mode, "stereo") == 0) in gst_sbc_parse_mode_to_sbc()
254 else if (g_ascii_strcasecmp(mode, "dual") == 0) in gst_sbc_parse_mode_to_sbc()
256 else if (g_ascii_strcasecmp(mode, "mono") == 0) in gst_sbc_parse_mode_to_sbc()
258 else if (g_ascii_strcasecmp(mode, "auto") == 0) in gst_sbc_parse_mode_to_sbc()
294 mode_str = gst_sbc_parse_mode_from_sbc(sbc->mode); in gst_sbc_parse_caps_from_sbc()
300 gst_sbc_get_channel_number(sbc->mode), in gst_sbc_parse_caps_from_sbc()
329 const gchar *mode = NULL; in gst_sbc_util_caps_fixate() local
419 mode = gst_sbc_get_mode_from_list(value, channels); in gst_sbc_util_caps_fixate()
421 mode = g_value_get_string(value); in gst_sbc_util_caps_fixate()
427 if ( (channels == 1 && (strcmp(mode, "mono") != 0) ) || in gst_sbc_util_caps_fixate()
428 ( channels == 2 && ( strcmp(mode, "mono") == 0))) { in gst_sbc_util_caps_fixate()
431 channels, mode); in gst_sbc_util_caps_fixate()
442 "mode", G_TYPE_STRING, mode, in gst_sbc_util_caps_fixate()
486 const gchar *mode; in gst_sbc_util_fill_sbc_params() local
504 if (!(mode = gst_structure_get_string(structure, "mode"))) in gst_sbc_util_fill_sbc_params()
509 if (channels == 1 && strcmp(mode, "mono") != 0) in gst_sbc_util_fill_sbc_params()
516 sbc->mode = gst_sbc_parse_mode_to_sbc(mode); in gst_sbc_util_fill_sbc_params()