string_for_format
bool string_for_format(const media_format & f, char * buf, size_t size);
#define PRINT_FORMAT(_text, _fmt) do { char _buf[300]; string_for_format((_fmt), _buf, sizeof(_buf)); printf("%s %s\n", (_text), (_buf)); } while (0)
#define PRINT_INPUT(_text, _in) do { char _buf[300]; string_for_format((_in).format, _buf, sizeof(_buf)); printf("%s node(node %" B_PRId32 ", port %" B_PRId32 "); source(port %" B_PRId32 ", id %" B_PRId32 "); dest(port %" B_PRId32 ", id %" B_PRId32 "); fmt(%s); name(%s)\n", (_text), (_in).node.node, (_in).node.port, (_in).source.port, (_in).source.id, (_in).destination.port, (_in).destination.id, _buf, (_in).name); } while (0)
#define PRINT_OUTPUT(_text, _out) do { char _buf[300]; string_for_format((_out).format, _buf, sizeof(_buf)); printf("%s node(node %" B_PRId32 ", port %" B_PRId32 "); source(port %" B_PRId32 ", id %" B_PRId32 "); dest(port %" B_PRId32 ", id %" B_PRId32 "); fmt(%s); name(%s)\n", (_text), (_out).node.node, (_out).node.port, (_out).source.port, (_out).source.id, (_out).destination.port, (_out).destination.id, _buf, (_out).name); } while (0)
string_for_format(format, s, sizeof(s));
# define PRINT_FORMAT(_text, _fmt) do { char _buf[300]; string_for_format((_fmt), _buf, sizeof(_buf)); printf("%s %s\n", (_text), (_buf)); } while (0)
# define PRINT_INPUT(_text, _in) do { char _buf[300]; string_for_format((_in).format, _buf, sizeof(_buf)); printf("%s node(node %" B_PRId32 ", port %" B_PRId32 "); source(port %" B_PRId32 ", id %" B_PRId32 "); dest(port %" B_PRId32 ", id %" B_PRId32 "); fmt(%s); name(%s)\n", (_text), (_in).node.node, (_in).node.port, (_in).source.port, (_in).source.id, (_in).destination.port, (_in).destination.id, _buf, (_in).name); } while (0)
# define PRINT_OUTPUT(_text, _out) do { char _buf[300]; string_for_format((_out).format, _buf, sizeof(_buf)); printf("%s node(node %" B_PRId32 ", port %" B_PRId32 "); source(port %" B_PRId32 ", id %" B_PRId32 "); dest(port %" B_PRId32 ", id %" B_PRId32 "); fmt(%s); name(%s)\n", (_text), (_out).node.node, (_out).node.port, (_out).source.port, (_out).source.id, (_out).destination.port, (_out).destination.id, _buf, (_out).name); } while (0)
string_for_format(format, buf, 1024);
string_for_format(format, buf, 1024);
string_for_format(format, buf, 1024);
string_for_format(format, buf, 1024);
string_for_format(*format, buffer, sizeof(buffer));
string_for_format(*format, buffer, sizeof(buffer));
string_for_format(*format, buffer, sizeof(buffer));
string_for_format(*format, buffer, sizeof(buffer));
string_for_format(format, buffer, sizeof(buffer));
string_for_format(*format, formatStr, 255);
string_for_format(*ioEncodedFormat, buffer, sizeof(buffer));
string_for_format(*inOutFormat, buffer, sizeof(buffer));
string_for_format(*inOutFormat, buffer, sizeof(buffer));
if (string_for_format(*format, formatString, sizeof(formatString)))
string_for_format(*ioDecodedFormat, s, sizeof(s));
string_for_format(*ioEncodedFormat, s, sizeof(s));
string_for_format(*format, formatString, 256);
string_for_format(ioProposedFormat, fmt_string, 255);
string_for_format(ioProposedFormat, fmt_string, 255);
string_for_format(f, fmtString, 256);
string_for_format(f, fmtString, 256);
string_for_format(preferredFormat, formatStr, 255);
string_for_format(ioProposedFormat, formatStr, 255);
string_for_format(ioProposedFormat, formatStr, 255);
string_for_format(ioFormat, formatStr, 255);
string_for_format(ioFormat, formatStr, 255);
string_for_format(*pioFormat, formatStr, 255);
string_for_format(*format, formatStr, 255);
string_for_format(with_format, formatStr, 255);
string_for_format(mInput.format, formatStr, 255);
string_for_format(*ioFormat, formatStr, 255);
string_for_format(*ioFormat, formatStr, 255);
string_for_format(preferredFormat, formatStr, 255);
string_for_format(ioProposedFormat, formatStr, 255);
string_for_format(ioProposedFormat, formatStr, 255);
string_for_format(ioProposedFormat, formatStr, 255);
string_for_format(*ioFormat, fmt, 255);
string_for_format(format, formatStr, 255);
string_for_format(ioFormat, fmt_buffer, 255);
string_for_format(preferred, fmt_buffer, 255);
string_for_format(ioFormat, fmt_buffer, 255);
string_for_format(fSource->Format(), formatString, 256);
string_for_format(*format, string, 256);
string_for_format(*format, string, 256);
string_for_format(*format, string, sizeof(string));
string_for_format(fOutput.format, string, sizeof(string));
string_for_format(fFormat, formatString, 256);
string_for_format(format, string, 256);
string_for_format(fStreamInfo[stream].encodedFormat, formatString,
string_for_format(*_format, s, sizeof(s));
string_for_format(*_format, s, sizeof(s));
string_for_format(*_format, s, sizeof(s));
string_for_format(*_format, s, sizeof(s));
string_for_format(from, s, sizeof(s));
string_for_format(*to, s, sizeof(s));
string_for_format(*to, s, sizeof(s));
string_for_format(*format, buf, sizeof(buf));
string_for_format(*format, buf, sizeof(buf));
string_for_format(*format, buf, sizeof(buf));
string_for_format(tmp, buf, sizeof(buf));
string_for_format(tryFormat, buf, sizeof(buf));
string_for_format(tmp, buf, sizeof(buf));
string_for_format(format, desc, sizeof(desc));
string_for_format(format, desc, sizeof(desc));