Merge remote-tracking branch 'qatar/master'
* qatar/master: (28 commits) Remove some non-compiling debug messages. ffplay: Fix non-compiling debug printf and replace it by av_dlog. H264: x86 predict init cosmetics. ac3enc: Fix linking of AC-3 encoder without the E-AC-3 encoder. Move E-AC-3 encoder functions to a separate eac3enc.c file. ac3enc: remove convenience macro, #define DEBUG ac3enc: remove unused #define vc1: re-initialize tables after width/height change. APIchanges: fill-in git commit hash for av_get_bytes_per_sample() addition samplefmt: add av_get_bytes_per_sample() iirfilter: fix biquad filter coefficients. swscale: remove duplicate conversion routine in swScale(). swscale: add yuv2planar/packed function typedefs. swscale: integrate yuv2nv12X_C into yuv2yuvX() function pointers. swscale: reindent x86 init code. swscale: extract SWS_FULL_CHR_H_INT conditional into init code. swscale: cosmetics. swscale: remove alp/chr/lumSrcOffset. swscale: un-special-case yuv2yuvX16_c(). shorten: Remove stray DEBUG #define and corresponding av_dlog statement. ... Conflicts: doc/APIchanges libavcodec/ac3enc.c libavutil/avutil.h libavutil/samplefmt.c libswscale/swscale.c libswscale/swscale_internal.h libswscale/x86/swscale_template.c Merged-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@ -66,11 +66,19 @@ char *av_get_sample_fmt_string (char *buf, int buf_size, enum AVSampleFormat sam
|
||||
return buf;
|
||||
}
|
||||
|
||||
int av_get_bytes_per_sample(enum AVSampleFormat sample_fmt)
|
||||
{
|
||||
return sample_fmt < 0 || sample_fmt >= AV_SAMPLE_FMT_NB ?
|
||||
0 : sample_fmt_info[sample_fmt].bits >> 3;
|
||||
}
|
||||
|
||||
#if FF_API_GET_BITS_PER_SAMPLE_FMT
|
||||
int av_get_bits_per_sample_fmt(enum AVSampleFormat sample_fmt)
|
||||
{
|
||||
return sample_fmt < 0 || sample_fmt >= AV_SAMPLE_FMT_NB ?
|
||||
0 : sample_fmt_info[sample_fmt].bits;
|
||||
}
|
||||
#endif
|
||||
|
||||
int av_samples_fill_arrays(uint8_t *pointers[8], int linesizes[8],
|
||||
uint8_t *buf, int nb_channels, int nb_samples,
|
||||
|
Reference in New Issue
Block a user