upipe-av/upipe_av_samplefmt.h header reference

upipe/avutil sampleformat conversion More

Header inclusion [link] 

Members [link] 

Functions [link] 

Macro [link] 

Description [link] 

This is also used in swresample.

Members detail [link] 

#define UPIPE_AV_SAMPLEFMT_CHANNELS [link] 

This macro is declared in upipe-av/upipe_av_samplefmt.h source file, line 128.

This macro is the list of channels. FIXME channel ordering

#define _UPIPE_AV_UPIPE_AV_SAMPLEFMT_H_ [link] 

This macro is declared in upipe-av/upipe_av_samplefmt.h source file, line 32.

enum AVSampleFormat upipe_av_samplefmt_from_flow_def(struct uref *flow_def, uint8_t *channels_p) [link] 

This function is declared in upipe-av/upipe_av_samplefmt.h source file, line 183.

This function allows to convert to av sample format from flow definition.

Parameter list:

  • flow_def: flow definition
  • channels_p: filled in with the number of channels

The return value is av sample format, or AV_SAMPLE_FMT_NONE if not found

int upipe_av_samplefmt_match_flow_def(struct uref *flow_def, enum AVSampleFormat fmt) [link] 

This function is declared in upipe-av/upipe_av_samplefmt.h source file, line 213.

This function allows to match an av sample format with a flow definition.

Parameter list:

  • flow_def: flow definition
  • fmt: av sample format

The return value is an error code

int upipe_av_samplefmt_to_flow_def(struct uref *flow_def, enum AVSampleFormat fmt, uint8_t channels) [link] 

This function is declared in upipe-av/upipe_av_samplefmt.h source file, line 141.

This function allows to convert from av sample format to flow definition.

Parameter list:

  • flow_def: overwritten flow definition
  • fmt: av sample format
  • channels: number of channels

The return value is an error code

const struct uref_sound_flow_format * upipe_av_samplefmt_to_flow_format(enum AVSampleFormat fmt) [link] 

This function is for internal use only.

This function is declared in upipe-av/upipe_av_samplefmt.h source file, line 75.

This function translates av's native audio formats to uref_sound_flow_format.

Parameter list:

  • fmt: av sample format

The return value is a pointer to the corresponding sound flow format descriptor

Valid XHTML 1.0 StrictGenerated by cmassiot on Sun Dec 14 18:31:17 2025 using MkDoc