Home
last modified time | relevance | path

Searched refs:out_fmt (Results 1 – 22 of 22) sorted by relevance

/third_party/ffmpeg/libswresample/x86/
Daudio_convert_init.c38 enum AVSampleFormat out_fmt, in PROTO4()
49 …if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_S32… in PROTO4()
51 …if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_S16… in PROTO4()
59 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S3… in PROTO4()
62 …if( out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S3… in PROTO4()
67 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_FLT… in PROTO4()
69 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_FLT… in PROTO4()
71 …if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S32… in PROTO4()
73 …if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S16… in PROTO4()
77 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S3… in PROTO4()
[all …]
/third_party/ffmpeg/libswresample/
Ddither.c79 av_cold int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt) in swri_dither_init() argument
87 out_fmt = av_get_packed_sample_fmt(out_fmt); in swri_dither_init()
91 if(out_fmt == AV_SAMPLE_FMT_S32) scale = 1.0/(1LL<<31); in swri_dither_init()
92 if(out_fmt == AV_SAMPLE_FMT_S16) scale = 1.0/(1LL<<15); in swri_dither_init()
93 if(out_fmt == AV_SAMPLE_FMT_U8 ) scale = 1.0/(1LL<< 7); in swri_dither_init()
95 …if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S32 && (s->dither.output_sample_bits&31… in swri_dither_init()
96 if(in_fmt == AV_SAMPLE_FMT_S32 && out_fmt == AV_SAMPLE_FMT_S16) scale = 1<<16; 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()
102 if (out_fmt == AV_SAMPLE_FMT_S32 && s->dither.output_sample_bits) in swri_dither_init()
[all …]
Daudioconvert.c145 AudioConvert *swri_audio_convert_alloc(enum AVSampleFormat out_fmt, in swri_audio_convert_alloc() argument
151 …conv_func_type *f = fmt_pair_to_conv_functions[av_get_packed_sample_fmt(out_fmt) + AV_SAMPLE_FMT_N… in swri_audio_convert_alloc()
161 out_fmt = av_get_planar_sample_fmt(out_fmt); in swri_audio_convert_alloc()
170 if(out_fmt == in_fmt && !ch_map) { in swri_audio_convert_alloc()
180 swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
182 swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
184 swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
Dswresample_internal.h211 int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt);
214 enum AVSampleFormat out_fmt,
218 enum AVSampleFormat out_fmt,
222 enum AVSampleFormat out_fmt,
Daudioconvert.h58 AudioConvert *swri_audio_convert_alloc(enum AVSampleFormat out_fmt,
/third_party/ffmpeg/libavresample/
Daudio_convert.c52 enum AVSampleFormat out_fmt; member
70 void ff_audio_convert_set_func(AudioConvert *ac, enum AVSampleFormat out_fmt, in ff_audio_convert_set_func() argument
80 av_get_packed_sample_fmt(ac->out_fmt) == out_fmt) { in ff_audio_convert_set_func()
95 if (ac->in_fmt == in_fmt && ac->out_fmt == out_fmt && in ff_audio_convert_set_func()
111 if (ac->in_fmt == in_fmt && ac->out_fmt == out_fmt && in ff_audio_convert_set_func()
130 av_get_sample_fmt_name(ac->out_fmt), descr); in ff_audio_convert_set_func()
261 enum AVSampleFormat out_fmt, in ff_audio_convert_alloc() argument
274 ac->out_fmt = out_fmt; in ff_audio_convert_alloc()
280 av_get_packed_sample_fmt(out_fmt) == AV_SAMPLE_FMT_S16 && in ff_audio_convert_alloc()
282 ac->dc = ff_dither_alloc(avr, out_fmt, in_fmt, channels, sample_rate, in ff_audio_convert_alloc()
[all …]
Daudio_convert.h48 void ff_audio_convert_set_func(AudioConvert *ac, enum AVSampleFormat out_fmt,
65 enum AVSampleFormat out_fmt,
Ddither.c346 enum AVSampleFormat out_fmt, in ff_dither_alloc() argument
354 if (av_get_packed_sample_fmt(out_fmt) != AV_SAMPLE_FMT_S16 || in ff_dither_alloc()
357 av_get_sample_fmt_name(in_fmt), av_get_sample_fmt_name(out_fmt)); in ff_dither_alloc()
391 if (out_fmt != AV_SAMPLE_FMT_S16P) { in ff_dither_alloc()
397 c->ac_out = ff_audio_convert_alloc(avr, out_fmt, AV_SAMPLE_FMT_S16P, in ff_dither_alloc()
Ddither.h67 enum AVSampleFormat out_fmt,
Dutils.c73 enum AVSampleFormat out_fmt = av_get_planar_sample_fmt(avr->out_sample_fmt); in avresample_open() local
75 av_get_bytes_per_sample(out_fmt)); in avresample_open()
83 out_fmt == AV_SAMPLE_FMT_S32P) { in avresample_open()
85 out_fmt == AV_SAMPLE_FMT_FLTP) { in avresample_open()
/third_party/ffmpeg/libswresample/aarch64/
Daudio_convert_init.c49 enum AVSampleFormat out_fmt, in swri_audio_convert_init_aarch64() argument
58 …if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S16P &&… in swri_audio_convert_init_aarch64()
60 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels == 2) in swri_audio_convert_init_aarch64()
62 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels > 2) in swri_audio_convert_init_aarch64()
/third_party/ffmpeg/libswresample/arm/
Daudio_convert_init.c49 enum AVSampleFormat out_fmt, in swri_audio_convert_init_arm() argument
58 …if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S16P &&… in swri_audio_convert_init_arm()
60 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels == 2) in swri_audio_convert_init_arm()
62 if(out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLTP && channels > 2) in swri_audio_convert_init_arm()
/third_party/ffmpeg/libavresample/tests/
Davresample.c208 enum AVSampleFormat out_fmt; in main() local
275 out_fmt = formats[j]; in main()
283 av_get_sample_fmt_name(in_fmt), av_get_sample_fmt_name(out_fmt), in main()
288 out_rate * 6, out_fmt, 0); in main()
298 av_opt_set_int(s, "out_sample_fmt", out_fmt, 0); in main()
/third_party/ffmpeg/libavfilter/
Dvf_mergeplanes.c45 const enum AVPixelFormat out_fmt; member
60 …{ "format", "set output pixel format", OFFSET(out_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_YU…
80 s->outdesc = av_pix_fmt_desc_get(s->out_fmt); in init()
86 s->nb_planes = av_pix_fmt_count_planes(s->out_fmt); in init()
127 s->outdesc = av_pix_fmt_desc_get(s->out_fmt); in query_formats()
142 if ((ret = ff_add_format(&formats, s->out_fmt)) < 0 || in query_formats()
Dvf_scale_cuda.c78 enum AVPixelFormat in_fmt, out_fmt; member
160 out_ctx->sw_format = s->out_fmt; in init_hwframe_ctx()
201 s->out_fmt = out_format; in set_format_info()
204 s->out_desc = av_pix_fmt_desc_get(s->out_fmt); in set_format_info()
206 s->out_planes = av_pix_fmt_count_planes(s->out_fmt); in set_format_info()
286 const char *out_fmt_name = av_get_pix_fmt_name(s->out_fmt); in cudascale_load_functions()
391 outlink->w, outlink->h, av_get_pix_fmt_name(s->out_fmt), in cudascale_config_props()
Dvf_transpose_npp.c65 enum AVPixelFormat out_fmt; member
122 av_pix_fmt_get_chroma_sub_sample(stage->out_fmt, &out_sw, &out_sh); in init_stage()
142 out_ctx->sw_format = stage->out_fmt; in init_stage()
215 s->stages[STAGE_ROTATE].out_fmt = format; in init_processing_chain()
221 s->stages[STAGE_TRANSPOSE].out_fmt = format; in init_processing_chain()
Dvf_chromakey_cuda.c56 enum AVPixelFormat in_fmt, out_fmt; member
126 out_ctx->sw_format = s->out_fmt; in init_hwframe_ctx()
164 s->out_fmt = out_format; in set_format_info()
167 s->out_desc = av_pix_fmt_desc_get(s->out_fmt); in set_format_info()
169 s->out_planes = av_pix_fmt_count_planes(s->out_fmt); in set_format_info()
Dvf_scale_npp.c66 enum AVPixelFormat out_fmt; member
443 av_pix_fmt_get_chroma_sub_sample(stage->out_fmt, &out_sw, &out_sh); in init_stage()
469 out_ctx->sw_format = stage->out_fmt; in init_stage()
586 s->stages[STAGE_DEINTERLEAVE].out_fmt = in_deinterleaved_format; in init_processing_chain()
591 s->stages[STAGE_RESIZE].out_fmt = out_deinterleaved_format; in init_processing_chain()
598 s->stages[STAGE_INTERLEAVE].out_fmt = out_format; in init_processing_chain()
/third_party/ffmpeg/libavutil/
Dopt.h756 … av_opt_get_pixel_fmt (void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt);
757 …av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt);
Dopt.c1055 static int get_format(void *obj, const char *name, int search_flags, int *out_fmt, in get_format() argument
1069 *out_fmt = *(int *)dst; in get_format()
1073 int av_opt_get_pixel_fmt(void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt) in av_opt_get_pixel_fmt() argument
1075 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_PIXEL_FMT, "pixel"); in av_opt_get_pixel_fmt()
1078 … av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt) in av_opt_get_sample_fmt() argument
1080 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_SAMPLE_FMT, "sample"); in av_opt_get_sample_fmt()
/third_party/mesa3d/src/vulkan/wsi/
Dwsi_common_wayland.c795 vk_outarray_append_typed(VkSurfaceFormatKHR, &out, out_fmt) { in wsi_wl_surface_get_formats()
796 out_fmt->format = disp_fmt->vk_format; in wsi_wl_surface_get_formats()
797 out_fmt->colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR; in wsi_wl_surface_get_formats()
834 vk_outarray_append_typed(VkSurfaceFormat2KHR, &out, out_fmt) { in wsi_wl_surface_get_formats2()
835 out_fmt->surfaceFormat.format = disp_fmt->vk_format; in wsi_wl_surface_get_formats2()
836 out_fmt->surfaceFormat.colorSpace = VK_COLOR_SPACE_SRGB_NONLINEAR_KHR; in wsi_wl_surface_get_formats2()
/third_party/ffmpeg/tests/
Dfate-run.sh185 out_fmt=$1
190 encfile="${outdir}/${test}.${out_fmt}"
193 ffmpeg -auto_conversion_filters -i $src_file "$@" -f $out_fmt -y ${encfile} || return