[FFmpeg-soc] [soc] libavsequencer [PATCH] Initial implementation of main AVSequencer public API header file

Justin Ruggles justin.ruggles at gmail.com
Sat Jul 10 19:00:02 CEST 2010


Sebastian Vater wrote:

> +    /** Default volume boost level. 65536 equals to 100% which
> +       means no boost.  */
> +    uint32_t volume_boost;
> [...]
> +    /** The current volume boost level. 65536 equals to 100% which
> +       means no boost.  */
> +    uint32_t volume_boost;
> +
> +    /** Left channel volume level. 256 is full volume.  */
> +    uint16_t volume_left;
> +
> +    /** Right channel volume level. 256 is full volume.  */
> +    uint16_t volume_right;
> [...]
> +    /** Current volume for this channel which ranges from 0 (muted)
> +       to 255 (full volume).  */
> +    uint8_t volume;
> +
> +    /** Current stereo panning level for this channel (where 0-127
> +       indicate left stereo channel panning, -128 is central stereo
> +       panning and -127 to -1 indicate right stereo panning).  */
> +    int8_t panning;

Why all these arbitrary integer scales?  Why not floating point or
AVRational instead?

-Justin


More information about the FFmpeg-soc mailing list