comparison flac.h @ 9216:64246d9e583a libavcodec

add a function to calculate a more accurate estimate for maximum FLAC frame size and use the function in the FLAC decoder and FLAC encoder
author jbr
date Sat, 21 Mar 2009 01:54:31 +0000
parents 443f056ba7e7
children e150ca8d7f91
comparison
equal deleted inserted replaced
9215:d6b9123556fb 9216:64246d9e583a
101 * @param[out] size metadata block size 101 * @param[out] size metadata block size
102 */ 102 */
103 void ff_flac_parse_block_header(const uint8_t *block_header, 103 void ff_flac_parse_block_header(const uint8_t *block_header,
104 int *last, int *type, int *size); 104 int *last, int *type, int *size);
105 105
106 /**
107 * Calculate an estimate for the maximum frame size based on verbatim mode.
108 * @param blocksize block size, in samples
109 * @param ch number of channels
110 * @param bps bits-per-sample
111 */
112 int ff_flac_get_max_frame_size(int blocksize, int ch, int bps);
113
106 #endif /* AVCODEC_FLAC_H */ 114 #endif /* AVCODEC_FLAC_H */