Home
last modified time | relevance | path

Searched refs:fmts (Results 1 - 24 of 24) sorted by relevance

/third_party/ffmpeg/libavfilter/
H A Dformats.c34 #define MERGE_REF(ret, a, fmts, type, fail_statement) \
50 av_freep(&a->fmts); \
61 #define MERGE_FORMATS(a, b, fmts, nb, type, check, empty_allowed) \
77 if (a->fmts[i] == b->fmts[j]) { \
80 a->fmts[k++] = a->fmts[i]; \
91 MERGE_REF(a, b, fmts, type, return AVERROR(ENOMEM);); \
352 int ff_fmt_is_in(int fmt, const int *fmts) in ff_fmt_is_in() argument
356 for (p = fmts; * in ff_fmt_is_in()
381 ff_make_format_list(const int *fmts) ff_make_format_list() argument
390 ff_make_channel_layout_list(const AVChannelLayout *fmts) ff_make_channel_layout_list() argument
477 int fmts[2] = { fmt, -1 }; ff_make_formats_list_singleton() local
716 ff_set_common_channel_layouts_from_list(AVFilterContext *ctx, const AVChannelLayout *fmts) ff_set_common_channel_layouts_from_list() argument
756 ff_set_common_formats_from_list(AVFilterContext *ctx, const int *fmts) ff_set_common_formats_from_list() argument
879 check_list(void *log, const char *name, const AVFilterFormats *fmts) check_list() argument
900 ff_formats_check_pixel_formats(void *log, const AVFilterFormats *fmts) ff_formats_check_pixel_formats() argument
905 ff_formats_check_sample_formats(void *log, const AVFilterFormats *fmts) ff_formats_check_sample_formats() argument
910 ff_formats_check_sample_rates(void *log, const AVFilterFormats *fmts) ff_formats_check_sample_rates() argument
924 ff_formats_check_channel_layouts(void *log, const AVFilterChannelLayouts *fmts) ff_formats_check_channel_layouts() argument
[all...]
H A Dformats.h131 AVFilterChannelLayouts *ff_make_channel_layout_list(const AVChannelLayout *fmts);
142 * Equivalent to ff_set_common_channel_layouts(ctx, ff_make_channel_layout_list(fmts))
146 const AVChannelLayout *fmts);
177 * Equivalent to ff_set_common_formats(ctx, ff_make_format_list(fmts))
180 int ff_set_common_formats_from_list(AVFilterContext *ctx, const int *fmts);
208 * @param fmts list of media formats, terminated by -1
212 AVFilterFormats *ff_make_format_list(const int *fmts);
300 * Check that fmts is a valid pixel formats list.
304 int ff_formats_check_pixel_formats(void *log, const AVFilterFormats *fmts);
307 * Check that fmts i
[all...]
H A Davfiltergraph.c695 list_type *fmts; \
700 fmts = out_link->incfg.list; \
710 if (fmts->var[k] == fmt) { \
711 fmts->var[0] = fmt; \
712 fmts->nb = 1; \
741 AVFilterChannelLayouts *fmts; in reduce_formats_on_filter() local
743 fmts = outlink->incfg.channel_layouts; in reduce_formats_on_filter()
744 if (inlink->type != outlink->type || fmts->nb_channel_layouts == 1) in reduce_formats_on_filter()
747 if (fmts->all_layouts && in reduce_formats_on_filter()
748 (KNOWN(&fmt) || fmts in reduce_formats_on_filter()
[all...]
H A Dinternal.h199 * @param fmts -1-terminated list of formats
202 int ff_fmt_is_in(int fmt, const int *fmts);
H A Ddrawutils.c654 AVFilterFormats *fmts = NULL; in ff_draw_supported_pixel_formats() local
659 (ret = ff_add_format(&fmts, i)) < 0) in ff_draw_supported_pixel_formats()
661 return fmts; in ff_draw_supported_pixel_formats()
/third_party/ffmpeg/libavfilter/tests/
H A Dfiltfmts.c45 const AVFilterFormats *const fmts = cfg->formats; in print_formats_internal() local
46 for (unsigned j = 0; fmts && j < fmts->nb_formats; j++) { in print_formats_internal()
49 av_get_pix_fmt_name(fmts->formats[j])); in print_formats_internal()
52 const AVFilterFormats *const fmts = cfg->formats; in print_formats_internal() local
55 for (unsigned j = 0; fmts && j < fmts->nb_formats; j++) in print_formats_internal()
58 av_get_sample_fmt_name(fmts->formats[j])); in print_formats_internal()
/third_party/ffmpeg/tests/checkasm/
H A 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/vk-gl-cts/external/openglcts/modules/common/
H A DglcPixelStorageModesTests.cpp2121 for (int fmts = 0; fmts < DE_LENGTH_OF_ARRAY(internalFmts); fmts++) in init()
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()
2171 internalFmts[fmts].name, in init()
2207 internalFmts[fmts] in init()
[all...]
/third_party/ffmpeg/libavutil/
H A 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()
H A 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()
H A Dhwcontext_d3d11va.c335 enum AVPixelFormat *fmts; in d3d11va_transfer_get_formats() local
337 fmts = av_malloc_array(2, sizeof(*fmts)); in d3d11va_transfer_get_formats()
338 if (!fmts) in d3d11va_transfer_get_formats()
341 fmts[0] = ctx->sw_format; in d3d11va_transfer_get_formats()
342 fmts[1] = AV_PIX_FMT_NONE; in d3d11va_transfer_get_formats()
346 fmts[0] = AV_PIX_FMT_NONE; in d3d11va_transfer_get_formats()
348 *formats = fmts; in d3d11va_transfer_get_formats()
H A Dhwcontext_dxva2.c255 enum AVPixelFormat *fmts; in dxva2_transfer_get_formats() local
257 fmts = av_malloc_array(2, sizeof(*fmts)); in dxva2_transfer_get_formats()
258 if (!fmts) in dxva2_transfer_get_formats()
261 fmts[0] = ctx->sw_format; in dxva2_transfer_get_formats()
262 fmts[1] = AV_PIX_FMT_NONE; in dxva2_transfer_get_formats()
264 *formats = fmts; in dxva2_transfer_get_formats()
H A Dhwcontext_videotoolbox.c300 enum AVPixelFormat *fmts = av_malloc_array(2, sizeof(*fmts)); in vt_transfer_get_formats() local
301 if (!fmts) in vt_transfer_get_formats()
304 fmts[0] = ctx->sw_format; in vt_transfer_get_formats()
305 fmts[1] = AV_PIX_FMT_NONE; in vt_transfer_get_formats()
307 *formats = fmts; in vt_transfer_get_formats()
H A Dhwcontext_qsv.c769 enum AVPixelFormat *fmts; in qsv_transfer_get_formats() local
771 fmts = av_malloc_array(2, sizeof(*fmts)); in qsv_transfer_get_formats()
772 if (!fmts) in qsv_transfer_get_formats()
775 fmts[0] = ctx->sw_format; in qsv_transfer_get_formats()
776 fmts[1] = AV_PIX_FMT_NONE; in qsv_transfer_get_formats()
778 *formats = fmts; in qsv_transfer_get_formats()
H A Dhwcontext_opencl.c1773 enum AVPixelFormat *fmts; in opencl_transfer_get_formats() local
1775 fmts = av_malloc_array(2, sizeof(*fmts)); in opencl_transfer_get_formats()
1776 if (!fmts) in opencl_transfer_get_formats()
1779 fmts[0] = hwfc->sw_format; in opencl_transfer_get_formats()
1780 fmts[1] = AV_PIX_FMT_NONE; in opencl_transfer_get_formats()
1782 *formats = fmts; in opencl_transfer_get_formats()
H A Dhwcontext_vulkan.c2431 enum AVPixelFormat *fmts = av_malloc_array(2, sizeof(*fmts)); in vulkan_transfer_get_formats() local
2432 if (!fmts) in vulkan_transfer_get_formats()
2435 fmts[0] = hwfc->sw_format; in vulkan_transfer_get_formats()
2436 fmts[1] = AV_PIX_FMT_NONE; in vulkan_transfer_get_formats()
2438 *formats = fmts; in vulkan_transfer_get_formats()
/third_party/ffmpeg/libavdevice/
H A 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] = AV_PIX_FMT_NONE; in create_all_formats()
80 return fmts; in create_all_formats()
/third_party/icu/icu4j/main/tests/core/src/com/ibm/icu/dev/test/format/
H A DBigNumberFormatTest.java299 NumberFormat fmt = null, fmts[] = null; in expect()
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()
H A DTestMessageFormat.java938 Format[] fmts = new Format[] { in TestSetGetFormats()
943 msg.setFormatsByArgumentIndex(fmts); in TestSetGetFormats()
1085 Format fmts[] = {new DecimalFormat()}; in testNumericOnlyMethods()
1086 msg.setFormatsByArgumentIndex(fmts); in testNumericOnlyMethods()
/third_party/icu/ohos_icu4j/src/main/tests/ohos/global/icu/dev/test/format/
H A DBigNumberFormatTest.java302 NumberFormat fmt = null, fmts[] = null; in expect()
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()
H A DTestMessageFormat.java941 Format[] fmts = new Format[] { in TestSetGetFormats()
946 msg.setFormatsByArgumentIndex(fmts); in TestSetGetFormats()
1088 Format fmts[] = {new DecimalFormat()}; in testNumericOnlyMethods()
1089 msg.setFormatsByArgumentIndex(fmts); in testNumericOnlyMethods()
/third_party/icu/icu4c/source/test/intltest/
H A Dtchcfmt.cpp473 UnicodeString fmts[] = { in TestClosures() local
476 ChoiceFormat fmt1(limits, closures, fmts, 6); in TestClosures()
H A Ddtfmttst.cpp3779 // fmtf, fmtl, fmtm, fmts; in Test6726()
3787 DateFormat* fmts = DateFormat::createDateTimeInstance(DateFormat::SHORT, DateFormat::FULL, loc); in Test6726() local
3788 if (fmtf == NULL || fmtl == NULL || fmtm == NULL || fmts == NULL) { in Test6726()
3794 delete fmts; in Test6726()
3801 strs = fmts->format(dt, strs); in Test6726()
3816 delete fmts; in Test6726()
/third_party/python/Lib/test/
H A Dtest_logging.py4108 fmts = ['%(custom)s %(message)s', '{custom} {message}', '$custom $message']
4110 for fmt, style in zip(fmts, styles):

Completed in 49 milliseconds