Home | History | Annotate | Download | only in audio

Lines Matching refs:structure

324 	GstStructure *structure;
333 structure = gst_caps_get_structure(caps, 0);
335 if (!gst_structure_has_field(structure, "rate")) {
340 value = gst_structure_get_value(structure, "rate");
348 if (!gst_structure_has_field(structure, "channels")) {
353 value = gst_structure_get_value(structure, "channels");
361 if (!gst_structure_has_field(structure, "blocks")) {
366 value = gst_structure_get_value(structure, "blocks");
374 if (!gst_structure_has_field(structure, "subbands")) {
379 value = gst_structure_get_value(structure, "subbands");
387 if (!gst_structure_has_field(structure, "bitpool")) {
392 value = gst_structure_get_value(structure, "bitpool");
400 if (!gst_structure_has_field(structure, "allocation")) {
405 value = gst_structure_get_value(structure, "allocation");
412 if (!gst_structure_has_field(structure, "mode")) {
417 value = gst_structure_get_value(structure, "mode");
453 * Sets the int field_value to the param "field" on the structure.
457 void gst_sbc_util_set_structure_int_param(GstStructure *structure,
463 gst_structure_set_value(structure, field, value);
468 * Sets the string field_value to the param "field" on the structure.
472 void gst_sbc_util_set_structure_string_param(GstStructure *structure,
478 gst_structure_set_value(structure, field, value);
484 GstStructure *structure;
491 structure = gst_caps_get_structure(caps, 0);
493 if (!gst_structure_get_int(structure, "rate", &rate))
495 if (!gst_structure_get_int(structure, "channels", &channels))
497 if (!gst_structure_get_int(structure, "subbands", &subbands))
499 if (!gst_structure_get_int(structure, "blocks", &blocks))
501 if (!gst_structure_get_int(structure, "bitpool", &bitpool))
504 if (!(mode = gst_structure_get_string(structure, "mode")))
506 if (!(allocation = gst_structure_get_string(structure, "allocation")))