Home
last modified time | relevance | path

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

12

/third_party/ffmpeg/libswresample/x86/
Daudio_convert_init.c37 enum AVSampleFormat out_fmt, in PROTO4()
48 …if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_S32… in PROTO4()
50 …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()
65 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_FLTP || out_fmt == AV_SAMPLE_FMT_S3… in PROTO4()
68 …if( out_fmt == AV_SAMPLE_FMT_FLTP && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S3… in PROTO4()
73 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S32 || out_fmt == AV_SAMPLE_FMT_FLT… in PROTO4()
75 …if( out_fmt == AV_SAMPLE_FMT_FLT && in_fmt == AV_SAMPLE_FMT_S16 || out_fmt == AV_SAMPLE_FMT_FLT… in PROTO4()
77 …if( out_fmt == AV_SAMPLE_FMT_S32 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S32… in PROTO4()
79 …if( out_fmt == AV_SAMPLE_FMT_S16 && in_fmt == AV_SAMPLE_FMT_FLT || out_fmt == AV_SAMPLE_FMT_S16… 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()
179 if(HAVE_X86ASM && HAVE_MMX) swri_audio_convert_init_x86(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
180 if(ARCH_ARM) swri_audio_convert_init_arm(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
181 if(ARCH_AARCH64) swri_audio_convert_init_aarch64(ctx, out_fmt, in_fmt, channels); in swri_audio_convert_alloc()
Dswresample_internal.h207 int swri_dither_init(SwrContext *s, enum AVSampleFormat out_fmt, enum AVSampleFormat in_fmt);
210 enum AVSampleFormat out_fmt,
214 enum AVSampleFormat out_fmt,
218 enum AVSampleFormat out_fmt,
Daudioconvert.h59 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/libavfilter/
Dvf_mergeplanes.c40 const enum AVPixelFormat out_fmt; member
55 …{ "format", "set output pixel format", OFFSET(out_fmt), AV_OPT_TYPE_PIXEL_FMT, {.i64=AV_PIX_FMT_YU…
67 s->outdesc = av_pix_fmt_desc_get(s->out_fmt); in init()
73 s->nb_planes = av_pix_fmt_count_planes(s->out_fmt); in init()
114 s->outdesc = av_pix_fmt_desc_get(s->out_fmt); in query_formats()
129 if ((ret = ff_add_format(&formats, s->out_fmt)) < 0 || in query_formats()
Dvf_scale_npp.c65 enum AVPixelFormat out_fmt; member
164 av_pix_fmt_get_chroma_sub_sample(stage->out_fmt, &out_sw, &out_sh); in init_stage()
183 out_ctx->sw_format = stage->out_fmt; in init_stage()
300 s->stages[STAGE_DEINTERLEAVE].out_fmt = in_deinterleaved_format; in init_processing_chain()
305 s->stages[STAGE_RESIZE].out_fmt = out_deinterleaved_format; in init_processing_chain()
312 s->stages[STAGE_INTERLEAVE].out_fmt = out_format; in init_processing_chain()
Dvf_transpose_npp.c65 enum AVPixelFormat out_fmt; member
132 av_pix_fmt_get_chroma_sub_sample(stage->out_fmt, &out_sw, &out_sh); in init_stage()
152 out_ctx->sw_format = stage->out_fmt; in init_stage()
225 s->stages[STAGE_ROTATE].out_fmt = format; in init_processing_chain()
231 s->stages[STAGE_TRANSPOSE].out_fmt = format; in init_processing_chain()
Dvf_scale_cuda.c78 enum AVPixelFormat out_fmt; member
177 out_ctx->sw_format = s->out_fmt; in init_hwframe_ctx()
244 s->out_fmt = out_format; in init_processing_chain()
/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/gstreamer/gstplugins_bad/tests/check/elements/
Dpnm.c40 const gchar *out_fmt; in GST_START_TEST() member
72 test_formats[i].out_fmt, NULL); in GST_START_TEST()
/third_party/ffmpeg/libavutil/
Dopt.h762 … av_opt_get_pixel_fmt (void *obj, const char *name, int search_flags, enum AVPixelFormat *out_fmt);
763 …av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt);
Dopt.c986 static int get_format(void *obj, const char *name, int search_flags, int *out_fmt, in get_format() argument
1000 *out_fmt = *(int *)dst; in get_format()
1004 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
1006 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_PIXEL_FMT, "pixel"); in av_opt_get_pixel_fmt()
1009 … av_opt_get_sample_fmt(void *obj, const char *name, int search_flags, enum AVSampleFormat *out_fmt) in av_opt_get_sample_fmt() argument
1011 return get_format(obj, name, search_flags, out_fmt, AV_OPT_TYPE_SAMPLE_FMT, "sample"); in av_opt_get_sample_fmt()
/third_party/ffmpeg/libavcodec/
Dv4l2_context.c165 struct v4l2_format out_fmt = s->output.format; in v4l2_handle_event() local
183 ret = ioctl(s->fd, VIDIOC_G_FMT, &out_fmt); in v4l2_handle_event()
195 full_reinit = v4l2_resolution_changed(&s->output, &out_fmt); in v4l2_handle_event()
197 s->output.height = v4l2_get_height(&out_fmt); in v4l2_handle_event()
198 s->output.width = v4l2_get_width(&out_fmt); in v4l2_handle_event()
/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.sh176 out_fmt=$1
181 encfile="${outdir}/${test}.${out_fmt}"
184 ffmpeg -auto_conversion_filters -i $src_file "$@" -f $out_fmt -y ${encfile} || return
/third_party/gstreamer/gstplugins_bad/sys/v4l2codecs/
Dgstv4l2decoder.h53 gint i, guint32 * out_fmt);
Dgstv4l2decoder.c295 guint32 * out_fmt) in gst_v4l2_decoder_enum_sink_fmt() argument
311 *out_fmt = fmtdesc.pixelformat; in gst_v4l2_decoder_enum_sink_fmt()

12