/third_party/ffmpeg/libswresample/ |
H A D | audioconvert.c | 54 CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_U8 , *(const uint8_t*)pi) 55 CONV_FUNC(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80U)<<8) 56 CONV_FUNC(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80U)<<24) 57 CONV_FUNC(AV_SAMPLE_FMT_S64, int64_t, AV_SAMPLE_FMT_U8 , (uint64_t)((*(const uint8_t*)pi - 0x80U))<<56) 58 CONV_FUNC(AV_SAMPLE_FMT_FLT, float , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0f/ (1<<7))) 59 CONV_FUNC(AV_SAMPLE_FMT_DBL, double , AV_SAMPLE_FMT_U8 , (*(const uint8_t*)pi - 0x80)*(1.0 / (1<<7))) 60 CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S16, (*(const int16_t*)pi>>8) + 0x80) 66 CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_t, AV_SAMPLE_FMT_S32, (*(const int32_t*)pi>>24) + 0x80) 72 CONV_FUNC(AV_SAMPLE_FMT_U8 , uint8_ [all...] |
H A D | dither.c | 93 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1LL<< 7); in swri_dither_init() 97 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<24; in swri_dither_init() 98 if(in_fmt == AV_SAMPLE_FMT_S16 && out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1<<8; in swri_dither_init()
|
/third_party/ffmpeg/libavresample/ |
H A D | audio_convert.c | 192 CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_U8, uint8_t, *(const uint8_t *)pi) 193 CONV_FUNC_GROUP(AV_SAMPLE_FMT_S16, int16_t, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) << 8) 194 CONV_FUNC_GROUP(AV_SAMPLE_FMT_S32, int32_t, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) << 24) 195 CONV_FUNC_GROUP(AV_SAMPLE_FMT_FLT, float, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0f / (1 << 7))) 196 CONV_FUNC_GROUP(AV_SAMPLE_FMT_DBL, double, AV_SAMPLE_FMT_U8, uint8_t, (*(const uint8_t *)pi - 0x80) * (1.0 / (1 << 7))) 197 CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S16, int16_t, (*(const int16_t *)pi >> 8) + 0x80) 202 CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_S32, int32_t, (*(const int32_t *)pi >> 24) + 0x80) 207 CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_t, AV_SAMPLE_FMT_FLT, float, av_clip_uint8( lrintf(*(const float *)pi * (1 << 7)) + 0x80)) 212 CONV_FUNC_GROUP(AV_SAMPLE_FMT_U8, uint8_ [all...] |
H A D | options.c | 40 { "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 }, 43 { "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 }, 46 {"u8" , "8-bit unsigned integer", 0, AV_OPT_TYPE_CONST, {.i64 = AV_SAMPLE_FMT_U8 }, INT_MIN, INT_MAX, PARAM, "internal_sample_fmt"},
|
/third_party/ffmpeg/libavcodec/ |
H A D | ttaenc.c | 45 case AV_SAMPLE_FMT_U8: in tta_encode_init() 74 if (format == AV_SAMPLE_FMT_U8) { in get_sample() 215 .p.sample_fmts = (const enum AVSampleFormat[]){ AV_SAMPLE_FMT_U8,
|
H A D | dfpwmenc.c | 118 .p.sample_fmts = (const enum AVSampleFormat[]){AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE},
|
H A D | pcm.c | 614 PCM_CODEC (PCM_S8, AV_SAMPLE_FMT_U8, pcm_s8, "PCM signed 8-bit"); 627 PCM_CODEC (PCM_U8, AV_SAMPLE_FMT_U8, pcm_u8, "PCM unsigned 8-bit"); 637 PCM_DECODER(PCM_SGA, AV_SAMPLE_FMT_U8, pcm_sga, "PCM SGA");
|
H A D | dfpwmdec.c | 98 ctx->sample_fmt = AV_SAMPLE_FMT_U8; in dfpwm_dec_init()
|
H A D | hcom.c | 77 avctx->sample_fmt = AV_SAMPLE_FMT_U8; in hcom_init()
|
H A D | ws-snd1.c | 49 avctx->sample_fmt = AV_SAMPLE_FMT_U8; in ws_snd_decode_init()
|
H A D | audiotoolboxenc.c | 241 : avctx->sample_fmt == AV_SAMPLE_FMT_U8 ? 0 in ffat_init_encoder() 634 AV_SAMPLE_FMT_U8, AV_SAMPLE_FMT_NONE \
|
H A D | av3a_parser.c | 393 bitdepth = AV_SAMPLE_FMT_U8; in read_av3a_frame_header()
|
H A D | vmdaudio.c | 93 avctx->sample_fmt = AV_SAMPLE_FMT_U8; in vmdaudio_decode_init()
|
/third_party/ffmpeg/libavutil/ |
H A D | samplefmt.c | 37 [AV_SAMPLE_FMT_U8] = { .name = "u8", .bits = 8, .planar = 0, .altform = AV_SAMPLE_FMT_U8P }, 43 [AV_SAMPLE_FMT_U8P] = { .name = "u8p", .bits = 8, .planar = 1, .altform = AV_SAMPLE_FMT_U8 }, 253 int fill_char = (sample_fmt == AV_SAMPLE_FMT_U8 || in av_samples_set_silence()
|
H A D | samplefmt.h | 57 AV_SAMPLE_FMT_U8, ///< unsigned 8 bits enumerator
|
/third_party/ffmpeg/libavresample/tests/ |
H A D | avresample.c | 54 PUT_FUNC(u8, AV_SAMPLE_FMT_U8, uint8_t, av_clip_uint8 ( lrint(v_dbl * (1 << 7)) + 128)) 64 case AV_SAMPLE_FMT_U8: in put_sample() 171 AV_SAMPLE_FMT_U8,
|
/third_party/ffmpeg/libavfilter/ |
H A D | af_bs2b.c | 98 AV_SAMPLE_FMT_U8, in query_formats() 162 case AV_SAMPLE_FMT_U8: in config_output()
|
H A D | af_volume.c | 137 AV_SAMPLE_FMT_U8, in query_formats() 218 case AV_SAMPLE_FMT_U8: in volume_init()
|
H A D | f_reverse.c | 200 case AV_SAMPLE_FMT_U8: { in reverse_samples_packed()
|
/third_party/ffmpeg/libswresample/tests/ |
H A D | swresample.c | 50 case AV_SAMPLE_FMT_U8 : return ((const uint8_t*)p)[index]/127.0-1.0; in get() 69 case AV_SAMPLE_FMT_U8 : ((uint8_t*)p)[index]= av_clip_uint8 (lrint((v+1.0)*127)); break; in set() 98 AV_SAMPLE_FMT_U8,
|
/third_party/ffmpeg/doc/examples/ |
H A D | resampling_audio.c | 40 { AV_SAMPLE_FMT_U8, "u8", "u8" }, in get_format_from_sample_fmt()
|
H A D | decode_audio.c | 49 { AV_SAMPLE_FMT_U8, "u8", "u8" }, in get_format_from_sample_fmt()
|
H A D | demuxing_decoding.c | 206 { AV_SAMPLE_FMT_U8, "u8", "u8" }, in get_format_from_sample_fmt()
|
/third_party/ffmpeg/libavformat/ |
H A D | uncodedframecrcenc.c | 96 case AV_SAMPLE_FMT_U8: in audio_frame_cksum()
|
/third_party/ffmpeg/libavutil/tests/ |
H A D | audio_fifo.c | 41 {.format = AV_SAMPLE_FMT_U8 , .nb_ch = 1, .data_planes = {data_U8 , }, .nb_samples_pch = 12},
|