Mercurial > libavcodec.hg
changeset 7721:198421b7dbc0 libavcodec
Add AVCodecContext.bits_per_raw_sample field.
author | pross |
---|---|
date | Fri, 29 Aug 2008 03:59:48 +0000 |
parents | b1cacb2f48a0 |
children | a618bba0b6b4 |
files | avcodec.h utils.c |
diffstat | 2 files changed, 9 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/avcodec.h Fri Aug 29 03:52:10 2008 +0000 +++ b/avcodec.h Fri Aug 29 03:59:48 2008 +0000 @@ -2251,6 +2251,14 @@ * - decoding: Set by user. */ int64_t reordered_opaque; + + /** + * Bits per sample/pixel of internal libavcodec pixel/sample format. + * This field is applicable only when sample_fmt is SAMPLE_FMT_S32. + * - encoding: set by user. + * - decoding: set by libavcodec. + */ + int bits_per_raw_sample; } AVCodecContext; /**
--- a/utils.c Fri Aug 29 03:52:10 2008 +0000 +++ b/utils.c Fri Aug 29 03:59:48 2008 +0000 @@ -741,6 +741,7 @@ {"request_channels", "set desired number of audio channels", OFFSET(request_channels), FF_OPT_TYPE_INT, DEFAULT, 0, INT_MAX, A|D}, {"drc_scale", "percentage of dynamic range compression to apply", OFFSET(drc_scale), FF_OPT_TYPE_FLOAT, 1.0, 0.0, 1.0, A|D}, {"reservoir", "use bit reservoir", 0, FF_OPT_TYPE_CONST, CODEC_FLAG2_BIT_RESERVOIR, INT_MIN, INT_MAX, A|E, "flags2"}, +{"bits_per_raw_sample", NULL, OFFSET(bits_per_raw_sample), FF_OPT_TYPE_INT, DEFAULT, INT_MIN, INT_MAX}, {NULL}, };