AV_SAMPLE_FMT_U8 202 doc/examples/demuxing_decoding.c { AV_SAMPLE_FMT_U8, "u8", "u8" }, AV_SAMPLE_FMT_U8 40 doc/examples/resampling_audio.c { AV_SAMPLE_FMT_U8, "u8", "u8" }, AV_SAMPLE_FMT_U8 90 libavcodec/audioconvert.c CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_U8 , *(const uint8_t*)pi) AV_SAMPLE_FMT_U8 91 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)<<8) AV_SAMPLE_FMT_U8 92 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)<<24) AV_SAMPLE_FMT_U8 93 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_FLT, float , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0 / (1<<7))) AV_SAMPLE_FMT_U8 94 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_DBL, double , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0 / (1<<7))) AV_SAMPLE_FMT_U8 95 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S16, (*(const int16_t*)pi>>8) + 0x80) AV_SAMPLE_FMT_U8 100 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S32, (*(const int32_t*)pi>>24) + 0x80) AV_SAMPLE_FMT_U8 105 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) AV_SAMPLE_FMT_U8 110 libavcodec/audioconvert.c else CONV(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_DBL, av_clip_uint8( lrint(*(const double*)pi * (1<<7)) + 0x80)) AV_SAMPLE_FMT_U8 161 libavcodec/dpcm.c avctx->sample_fmt = AV_SAMPLE_FMT_U8; AV_SAMPLE_FMT_U8 550 libavcodec/pcm.c PCM_CODEC (PCM_S8, AV_SAMPLE_FMT_U8, pcm_s8, "PCM signed 8-bit"); AV_SAMPLE_FMT_U8 563 libavcodec/pcm.c PCM_CODEC (PCM_U8, AV_SAMPLE_FMT_U8, pcm_u8, "PCM unsigned 8-bit"); AV_SAMPLE_FMT_U8 570 libavcodec/pcm.c PCM_DECODER(PCM_ZORK, AV_SAMPLE_FMT_U8, pcm_zork, "PCM Zork"); AV_SAMPLE_FMT_U8 613 libavcodec/smacker.c avctx->sample_fmt = avctx->bits_per_coded_sample == 8 ? AV_SAMPLE_FMT_U8 : AV_SAMPLE_FMT_S16; AV_SAMPLE_FMT_U8 664 libavcodec/smacker.c if (bits == (avctx->sample_fmt == AV_SAMPLE_FMT_U8)) { AV_SAMPLE_FMT_U8 169 libavcodec/tta.c case 1: avctx->sample_fmt = AV_SAMPLE_FMT_U8; break; AV_SAMPLE_FMT_U8 41 libavcodec/ttaenc.c case AV_SAMPLE_FMT_U8: AV_SAMPLE_FMT_U8 99 libavcodec/ttaenc.c if (format == AV_SAMPLE_FMT_U8) { AV_SAMPLE_FMT_U8 3277 libavcodec/utils.c [AV_SAMPLE_FMT_U8 ] = { AV_CODEC_ID_PCM_U8, AV_CODEC_ID_PCM_U8 }, AV_SAMPLE_FMT_U8 90 libavcodec/vmdaudio.c avctx->sample_fmt = AV_SAMPLE_FMT_U8; AV_SAMPLE_FMT_U8 48 libavcodec/ws-snd1.c avctx->sample_fmt = AV_SAMPLE_FMT_U8; AV_SAMPLE_FMT_U8 811 libavdevice/dshow.c case AV_SAMPLE_FMT_U8: return AV_CODEC_ID_PCM_U8; AV_SAMPLE_FMT_U8 821 libavdevice/dshow.c case 8: return AV_SAMPLE_FMT_U8; AV_SAMPLE_FMT_U8 267 libavdevice/lavfi.c enum AVSampleFormat sample_fmts[] = { AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 409 libavfilter/af_atempo.c if (atempo->format == AV_SAMPLE_FMT_U8) { AV_SAMPLE_FMT_U8 800 libavfilter/af_atempo.c if (atempo->format == AV_SAMPLE_FMT_U8) { AV_SAMPLE_FMT_U8 1008 libavfilter/af_atempo.c AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 102 libavfilter/af_bs2b.c AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 167 libavfilter/af_bs2b.c case AV_SAMPLE_FMT_U8: AV_SAMPLE_FMT_U8 137 libavfilter/af_volume.c AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 226 libavfilter/af_volume.c case AV_SAMPLE_FMT_U8: AV_SAMPLE_FMT_U8 29 libavfilter/audio.h AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 95 libavformat/uncodedframecrcenc.c case AV_SAMPLE_FMT_U8: AV_SAMPLE_FMT_U8 192 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_U8, uint8_t, *(const uint8_t *)pi) AV_SAMPLE_FMT_U8 193 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) << 8) AV_SAMPLE_FMT_U8 194 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) << 24) AV_SAMPLE_FMT_U8 195 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0f / (1 << 7))) AV_SAMPLE_FMT_U8 196 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0 / (1 << 7))) AV_SAMPLE_FMT_U8 197 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t, (*(const int16_t *)pi >> 8) + 0x80) AV_SAMPLE_FMT_U8 202 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t, (*(const int32_t *)pi >> 24) + 0x80) AV_SAMPLE_FMT_U8 207 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) AV_SAMPLE_FMT_U8 212 libavresample/audio_convert.c CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_DBL, double, av_clip_uint8( lrint(*(const double *)pi * (1 << 7)) + 0x80)) AV_SAMPLE_FMT_U8 225 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8) AV_SAMPLE_FMT_U8 226 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_U8) AV_SAMPLE_FMT_U8 227 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_U8) AV_SAMPLE_FMT_U8 228 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_U8) AV_SAMPLE_FMT_U8 229 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_U8) AV_SAMPLE_FMT_U8 230 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S16) AV_SAMPLE_FMT_U8 235 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_S32) AV_SAMPLE_FMT_U8 240 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_FLT) AV_SAMPLE_FMT_U8 245 libavresample/audio_convert.c SET_CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_DBL) AV_SAMPLE_FMT_U8 53 libavresample/avresample-test.c PUT_FUNC(u8, AV_SAMPLE_FMT_U8, uint8_t, av_clip_uint8 ( lrint(v_dbl * (1 << 7)) + 128)) AV_SAMPLE_FMT_U8 63 libavresample/avresample-test.c case AV_SAMPLE_FMT_U8: AV_SAMPLE_FMT_U8 170 libavresample/avresample-test.c AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_U8 40 libavresample/options.c { "in_sample_fmt", "Input Sample Format", OFFSET(in_sample_fmt), AV_OPT_TYPE_INT, { .i64 = AV_SAMPLE_FMT_S16 }, AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NB-1, PARAM }, AV_SAMPLE_FMT_U8 43 libavresample/options.c { "out_sample_fmt", "Output Sample Format", OFFSET(out_sample_fmt), AV_OPT_TYPE_INT, { .i64 = AV_SAMPLE_FMT_S16 }, AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NB-1, PARAM }, AV_SAMPLE_FMT_U8 46 libavresample/options.c {"u8" , "8-bit unsigned integer", 0, AV_OPT_TYPE_CONST, {.i64 = AV_SAMPLE_FMT_U8 }, INT_MIN, INT_MAX, PARAM, "internal_sample_fmt"}, AV_SAMPLE_FMT_U8 35 libavutil/samplefmt.c [AV_SAMPLE_FMT_U8] = { .name = "u8", .bits = 8, .planar = 0, .altform = AV_SAMPLE_FMT_U8P }, AV_SAMPLE_FMT_U8 40 libavutil/samplefmt.c [AV_SAMPLE_FMT_U8P] = { .name = "u8p", .bits = 8, .planar = 1, .altform = AV_SAMPLE_FMT_U8 }, AV_SAMPLE_FMT_U8 242 libavutil/samplefmt.c int fill_char = (sample_fmt == AV_SAMPLE_FMT_U8 || AV_SAMPLE_FMT_U8 54 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_U8 , *(const uint8_t*)pi) AV_SAMPLE_FMT_U8 55 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80U)<<8) AV_SAMPLE_FMT_U8 56 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80U)<<24) AV_SAMPLE_FMT_U8 57 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_FLT, float , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0f/ (1<<7))) AV_SAMPLE_FMT_U8 58 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_DBL, double , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0 / (1<<7))) AV_SAMPLE_FMT_U8 59 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S16, (*(const int16_t*)pi>>8) + 0x80) AV_SAMPLE_FMT_U8 64 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S32, (*(const int32_t*)pi>>24) + 0x80) AV_SAMPLE_FMT_U8 69 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_FLT, av_clip_uint8( lrintf(*(const float*)pi * (1<<7)) + 0x80)) AV_SAMPLE_FMT_U8 74 libswresample/audioconvert.c CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_DBL, av_clip_uint8( lrint(*(const double*)pi * (1<<7)) + 0x80)) AV_SAMPLE_FMT_U8 83 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_U8 ), AV_SAMPLE_FMT_U8 84 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_S16, AV_SAMPLE_FMT_U8 ), AV_SAMPLE_FMT_U8 85 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_S32, AV_SAMPLE_FMT_U8 ), AV_SAMPLE_FMT_U8 86 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_FLT, AV_SAMPLE_FMT_U8 ), AV_SAMPLE_FMT_U8 87 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_DBL, AV_SAMPLE_FMT_U8 ), AV_SAMPLE_FMT_U8 88 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_S16), AV_SAMPLE_FMT_U8 93 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_S32), AV_SAMPLE_FMT_U8 98 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_FLT), AV_SAMPLE_FMT_U8 103 libswresample/audioconvert.c FMT_PAIR_FUNC(AV_SAMPLE_FMT_U8 , AV_SAMPLE_FMT_DBL), AV_SAMPLE_FMT_U8 145 libswresample/audioconvert.c if (in_fmt == AV_SAMPLE_FMT_U8 || in_fmt == AV_SAMPLE_FMT_U8P) AV_SAMPLE_FMT_U8 89 libswresample/dither.c if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1LL<< 7); AV_SAMPLE_FMT_U8 93 libswresample/dither.c if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<24; AV_SAMPLE_FMT_U8 94 libswresample/dither.c if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<8; AV_SAMPLE_FMT_U8 49 libswresample/swresample-test.c case AV_SAMPLE_FMT_U8 : return ((const uint8_t*)p)[index]/127.0-1.0; AV_SAMPLE_FMT_U8 68 libswresample/swresample-test.c case AV_SAMPLE_FMT_U8 : ((uint8_t*)p)[index]= av_clip_uint8 (lrint((v+1.0)*127)); break; AV_SAMPLE_FMT_U8 97 libswresample/swresample-test.c AV_SAMPLE_FMT_U8,