Home
last modified time | relevance | path

Searched refs:fmts (Results 1 – 25 of 35) sorted by relevance

12

/third_party/ffmpeg/libavfilter/
Dformats.c36 #define MERGE_REF(ret, a, fmts, type, fail_statement) \ argument
52 av_freep(&a->fmts); \
63 #define MERGE_FORMATS(a, b, fmts, nb, type, check, empty_allowed) \ argument
79 if (a->fmts[i] == b->fmts[j]) { \
82 a->fmts[k++] = a->fmts[i]; \
93 MERGE_REF(a, b, fmts, type, return AVERROR(ENOMEM);); \
258 int ff_fmt_is_in(int fmt, const int *fmts) in ff_fmt_is_in() argument
262 for (p = fmts; *p != -1; p++) { in ff_fmt_is_in()
272 if (fmts) \
273 for (count = 0; fmts[count] != -1; count++) \
[all …]
Dformats.h158 AVFilterChannelLayouts *ff_make_format64_list(const int64_t *fmts);
161 AVFilterChannelLayouts *avfilter_make_format64_list(const int64_t *fmts);
213 AVFilterFormats *ff_make_format_list(const int *fmts);
299 int ff_formats_check_pixel_formats(void *log, const AVFilterFormats *fmts);
306 int ff_formats_check_sample_formats(void *log, const AVFilterFormats *fmts);
313 int ff_formats_check_sample_rates(void *log, const AVFilterFormats *fmts);
320 int ff_formats_check_channel_layouts(void *log, const AVFilterChannelLayouts *fmts);
Dvf_hwdownload.c40 AVFilterFormats *fmts; in hwdownload_query_formats() local
43 if ((err = ff_formats_pixdesc_filter(&fmts, AV_PIX_FMT_FLAG_HWACCEL, 0)) || in hwdownload_query_formats()
44 (err = ff_formats_ref(fmts, &avctx->inputs[0]->outcfg.formats)) || in hwdownload_query_formats()
45 (err = ff_formats_pixdesc_filter(&fmts, 0, AV_PIX_FMT_FLAG_HWACCEL)) || in hwdownload_query_formats()
46 (err = ff_formats_ref(fmts, &avctx->outputs[0]->incfg.formats))) in hwdownload_query_formats()
Davfiltergraph.c752 list_type *fmts; \
757 fmts = out_link->incfg.list; \
767 if (fmts->var[k] == fmt) { \
768 fmts->var[0] = fmt; \
769 fmts->nb = 1; \
798 AVFilterChannelLayouts *fmts; in reduce_formats_on_filter() local
800 fmts = outlink->incfg.channel_layouts; in reduce_formats_on_filter()
801 if (inlink->type != outlink->type || fmts->nb_channel_layouts == 1) in reduce_formats_on_filter()
804 if (fmts->all_layouts && in reduce_formats_on_filter()
805 (!FF_LAYOUT2COUNT(fmt) || fmts->all_counts)) { in reduce_formats_on_filter()
[all …]
Dinternal.h148 int ff_fmt_is_in(int fmt, const int *fmts);
Ddrawutils.c641 AVFilterFormats *fmts = NULL; in ff_draw_supported_pixel_formats() local
646 (ret = ff_add_format(&fmts, i)) < 0) in ff_draw_supported_pixel_formats()
648 return fmts; in ff_draw_supported_pixel_formats()
/third_party/ffmpeg/libavfilter/tests/
Dfiltfmts.c42 AVFilterFormats *fmts = \ in print_formats()
44 for (j = 0; j < fmts->nb_formats; j++) \ in print_formats()
45 if(av_get_pix_fmt_name(fmts->formats[j])) \ in print_formats()
48 av_get_pix_fmt_name(fmts->formats[j])); \ in print_formats()
50 AVFilterFormats *fmts; \ in print_formats()
53 fmts = filter_ctx->inout##puts[i]->outin##cfg.formats; \ in print_formats()
54 for (j = 0; j < fmts->nb_formats; j++) \ in print_formats()
57 av_get_sample_fmt_name(fmts->formats[j])); \ in print_formats()
/third_party/ffmpeg/tests/checkasm/
Dflacdsp.c71 } fmts[] = { in checkasm_check_flacdsp() local
79 ff_flacdsp_init(&h, fmts[i].fmt, 2, 0); in checkasm_check_flacdsp()
81 if (check_func(h.decorrelate[j], "flac_decorrelate_%s_%d", names[j], fmts[i].bits)) in checkasm_check_flacdsp()
82 check_decorrelate(&ref_dst, ref_src, &new_dst, new_src, 2, fmts[i].bits); in checkasm_check_flacdsp()
84 ff_flacdsp_init(&h, fmts[i].fmt, j, 0); in checkasm_check_flacdsp()
85 if (check_func(h.decorrelate[0], "flac_decorrelate_indep%d_%d", j, fmts[i].bits)) in checkasm_check_flacdsp()
86 check_decorrelate(&ref_dst, ref_src, &new_dst, new_src, j, fmts[i].bits); in checkasm_check_flacdsp()
/third_party/ffmpeg/libavutil/
Dhwcontext_videotoolbox.c96 enum AVPixelFormat *fmts = av_malloc_array(2, sizeof(*fmts)); in vt_transfer_get_formats() local
97 if (!fmts) in vt_transfer_get_formats()
100 fmts[0] = ctx->sw_format; in vt_transfer_get_formats()
101 fmts[1] = AV_PIX_FMT_NONE; in vt_transfer_get_formats()
103 *formats = fmts; in vt_transfer_get_formats()
Dhwcontext_cuda.c207 enum AVPixelFormat *fmts; in cuda_transfer_get_formats() local
209 fmts = av_malloc_array(2, sizeof(*fmts)); in cuda_transfer_get_formats()
210 if (!fmts) in cuda_transfer_get_formats()
213 fmts[0] = ctx->sw_format; in cuda_transfer_get_formats()
214 fmts[1] = AV_PIX_FMT_NONE; in cuda_transfer_get_formats()
216 *formats = fmts; in cuda_transfer_get_formats()
Dhwcontext_d3d11va.c310 enum AVPixelFormat *fmts; in d3d11va_transfer_get_formats() local
312 fmts = av_malloc_array(2, sizeof(*fmts)); in d3d11va_transfer_get_formats()
313 if (!fmts) in d3d11va_transfer_get_formats()
316 fmts[0] = ctx->sw_format; in d3d11va_transfer_get_formats()
317 fmts[1] = AV_PIX_FMT_NONE; in d3d11va_transfer_get_formats()
321 fmts[0] = AV_PIX_FMT_NONE; in d3d11va_transfer_get_formats()
323 *formats = fmts; in d3d11va_transfer_get_formats()
Dhwcontext_vdpau.c311 enum AVPixelFormat *fmts; in vdpau_transfer_get_formats() local
319 fmts = av_malloc_array(priv->nb_pix_fmts, sizeof(*fmts)); in vdpau_transfer_get_formats()
320 if (!fmts) in vdpau_transfer_get_formats()
323 memcpy(fmts, priv->pix_fmts, sizeof(*fmts) * (priv->nb_pix_fmts)); in vdpau_transfer_get_formats()
324 *formats = fmts; in vdpau_transfer_get_formats()
Dhwcontext_dxva2.c254 enum AVPixelFormat *fmts; in dxva2_transfer_get_formats() local
256 fmts = av_malloc_array(2, sizeof(*fmts)); in dxva2_transfer_get_formats()
257 if (!fmts) in dxva2_transfer_get_formats()
260 fmts[0] = ctx->sw_format; in dxva2_transfer_get_formats()
261 fmts[1] = AV_PIX_FMT_NONE; in dxva2_transfer_get_formats()
263 *formats = fmts; in dxva2_transfer_get_formats()
Dhwcontext_qsv.c600 enum AVPixelFormat *fmts; in qsv_transfer_get_formats() local
602 fmts = av_malloc_array(2, sizeof(*fmts)); in qsv_transfer_get_formats()
603 if (!fmts) in qsv_transfer_get_formats()
606 fmts[0] = ctx->sw_format; in qsv_transfer_get_formats()
607 fmts[1] = AV_PIX_FMT_NONE; in qsv_transfer_get_formats()
609 *formats = fmts; in qsv_transfer_get_formats()
Dhwcontext_opencl.c1764 enum AVPixelFormat *fmts; in opencl_transfer_get_formats() local
1766 fmts = av_malloc_array(2, sizeof(*fmts)); in opencl_transfer_get_formats()
1767 if (!fmts) in opencl_transfer_get_formats()
1770 fmts[0] = hwfc->sw_format; in opencl_transfer_get_formats()
1771 fmts[1] = AV_PIX_FMT_NONE; in opencl_transfer_get_formats()
1773 *formats = fmts; in opencl_transfer_get_formats()
/third_party/vk-gl-cts/external/openglcts/modules/common/
DglcPixelStorageModesTests.cpp2121 for (int fmts = 0; fmts < DE_LENGTH_OF_ARRAY(internalFmts); fmts++) in init() local
2124 internalFmts[fmts].name, in init()
2151 internalFmts[fmts].internalFmt, in init()
2168 for (int fmts = 0; fmts < DE_LENGTH_OF_ARRAY(internalFmts); fmts++) in init() local
2171 internalFmts[fmts].name, in init()
2207 internalFmts[fmts].internalFmt, in init()
2231 for (int fmts = 0; fmts < DE_LENGTH_OF_ARRAY(internalFmts_compressed); fmts++) in init() local
2235 internalFmts_compressed[fmts].name, in init()
2238 int bw = internalFmts_compressed[fmts].bw; in init()
2239 int bh = internalFmts_compressed[fmts].bh; in init()
[all …]
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
DBigNumberFormatTest.java302 NumberFormat fmt = null, fmts[] = null; in expect() local
306 fmts = (NumberFormat[]) fmto; in expect()
321 if (fmts != null) { in expect()
322 n = Math.max(n, fmts.length); in expect()
331 expect(fmts == null ? fmt : fmts[i], in expect()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
DBigNumberFormatTest.java299 NumberFormat fmt = null, fmts[] = null; in expect() local
303 fmts = (NumberFormat[]) fmto; in expect()
318 if (fmts != null) { in expect()
319 n = Math.max(n, fmts.length); in expect()
328 expect(fmts == null ? fmt : fmts[i], in expect()
/third_party/gstreamer/gstplugins_bad/ext/x265/
Dgstx265enc.c212 GValue fmts = G_VALUE_INIT; in gst_x265_enc_add_x265_chroma_format() local
216 g_value_init (&fmts, GST_TYPE_LIST); in gst_x265_enc_add_x265_chroma_format()
222 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
227 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
232 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
243 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
252 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
261 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
272 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
281 gst_value_list_append_value (&fmts, &fmt); in gst_x265_enc_add_x265_chroma_format()
[all …]
/third_party/ffmpeg/libavdevice/
Dlavfi.c64 int i, j, *fmts, count = 0; in create_all_formats() local
72 if (!(fmts = av_malloc_array(count + 1, sizeof(*fmts)))) in create_all_formats()
77 fmts[j++] = i; in create_all_formats()
79 fmts[j] = -1; in create_all_formats()
80 return fmts; in create_all_formats()
/third_party/node/deps/npm/node_modules/sshpk/lib/
Dcertificate.js140 var fmts = Object.keys(formats);
142 for (var i = 0; i < fmts.length; ++i) {
143 if (fmts[i] !== 'pem') {
144 var ret = formats[fmts[i]].sign(this, key);
/third_party/gstreamer/gstplugins_base/gst-libs/gst/sdp/
Dgstsdpmessage.c1843 INIT_STR_ARRAY (media->fmts); in gst_sdp_media_init()
1869 FREE_ARRAY (media->fmts); in gst_sdp_media_uninit()
2183 return media->fmts->len; in gst_sdp_media_formats_len()
2200 if (idx >= media->fmts->len) in gst_sdp_media_get_format()
2202 return g_array_index (media->fmts, gchar *, idx); in gst_sdp_media_get_format()
2230 g_array_append_val (media->fmts, fmt); in gst_sdp_media_insert_format()
2232 g_array_insert_val (media->fmts, idx, fmt); in gst_sdp_media_insert_format()
2258 old = &g_array_index (media->fmts, gchar *, idx); in gst_sdp_media_replace_format()
2283 old = &g_array_index (media->fmts, gchar *, idx); in gst_sdp_media_remove_format()
2285 g_array_remove_index (media->fmts, idx); in gst_sdp_media_remove_format()
[all …]
/third_party/gstreamer/gst_libav/ext/libav/
Dgstavcodecmap.c191 gst_ffmpeg_video_set_pix_fmts (GstCaps * caps, const enum AVPixelFormat *fmts) in gst_ffmpeg_video_set_pix_fmts() argument
197 if (!fmts || fmts[0] == -1) { in gst_ffmpeg_video_set_pix_fmts()
218 while (*fmts != -1) { in gst_ffmpeg_video_set_pix_fmts()
219 format = gst_ffmpeg_pixfmt_to_videoformat (*fmts); in gst_ffmpeg_video_set_pix_fmts()
226 fmts++; in gst_ffmpeg_video_set_pix_fmts()
455 const enum AVSampleFormat *fmts, gboolean always_interleaved) in gst_ffmpeg_audio_set_sample_fmts() argument
464 if (!fmts || fmts[0] == -1) { in gst_ffmpeg_audio_set_sample_fmts()
496 while (*fmts != -1) { in gst_ffmpeg_audio_set_sample_fmts()
497 format = gst_ffmpeg_smpfmt_to_audioformat (*fmts, &layout); in gst_ffmpeg_audio_set_sample_fmts()
509 fmts++; in gst_ffmpeg_audio_set_sample_fmts()
/third_party/icu/icu4c/source/test/intltest/
Dtchcfmt.cpp473 UnicodeString fmts[] = { in TestClosures() local
476 ChoiceFormat fmt1(limits, closures, fmts, 6); in TestClosures()
/third_party/gstreamer/gstplugins_bad/ext/svthevcenc/
Dgstsvthevcenc.c392 GValue fmts = G_VALUE_INIT; in gst_svthevc_enc_sink_getcaps() local
396 g_value_init (&fmts, GST_TYPE_LIST); in gst_svthevc_enc_sink_getcaps()
415 gst_value_list_append_value (&fmts, &fmt); in gst_svthevc_enc_sink_getcaps()
421 if (gst_value_list_get_size (&fmts) != 0) in gst_svthevc_enc_sink_getcaps()
422 gst_structure_take_value (s, "format", &fmts); in gst_svthevc_enc_sink_getcaps()
424 g_value_unset (&fmts); in gst_svthevc_enc_sink_getcaps()

12