Searched refs:valid_sw_formats (Results 1 – 13 of 13) sorted by relevance
61 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_formats) + 1, in cuda_frames_get_constraints()62 sizeof(*constraints->valid_sw_formats)); in cuda_frames_get_constraints()63 if (!constraints->valid_sw_formats) in cuda_frames_get_constraints()67 constraints->valid_sw_formats[i] = supported_formats[i]; in cuda_frames_get_constraints()68 constraints->valid_sw_formats[FF_ARRAY_ELEMS(supported_formats)] = AV_PIX_FMT_NONE; in cuda_frames_get_constraints()
198 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(vdpau_pix_fmts) + 1, in vdpau_frames_get_constraints()199 sizeof(*constraints->valid_sw_formats)); in vdpau_frames_get_constraints()200 if (!constraints->valid_sw_formats) in vdpau_frames_get_constraints()205 constraints->valid_sw_formats[nb_sw_formats++] = vdpau_pix_fmts[i].frames_sw_format; in vdpau_frames_get_constraints()207 constraints->valid_sw_formats[nb_sw_formats] = AV_PIX_FMT_NONE; in vdpau_frames_get_constraints()
126 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_formats) + 1, in d3d11va_frames_get_constraints()127 sizeof(*constraints->valid_sw_formats)); in d3d11va_frames_get_constraints()128 if (!constraints->valid_sw_formats) in d3d11va_frames_get_constraints()135 constraints->valid_sw_formats[nb_sw_formats++] = supported_formats[i].pix_fmt; in d3d11va_frames_get_constraints()137 constraints->valid_sw_formats[nb_sw_formats] = AV_PIX_FMT_NONE; in d3d11va_frames_get_constraints()
261 constraints->valid_sw_formats = NULL; in vaapi_frames_get_constraints()263 constraints->valid_sw_formats = av_malloc_array(pix_fmt_count + 1, in vaapi_frames_get_constraints()265 if (!constraints->valid_sw_formats) { in vaapi_frames_get_constraints()282 if (constraints->valid_sw_formats[k] == pix_fmt) in vaapi_frames_get_constraints()287 constraints->valid_sw_formats[j++] = pix_fmt; in vaapi_frames_get_constraints()289 constraints->valid_sw_formats[j] = AV_PIX_FMT_NONE; in vaapi_frames_get_constraints()294 constraints->valid_sw_formats = av_malloc_array(ctx->nb_formats + 1, in vaapi_frames_get_constraints()296 if (!constraints->valid_sw_formats) { in vaapi_frames_get_constraints()304 if (constraints->valid_sw_formats[k] == ctx->formats[i].pix_fmt) in vaapi_frames_get_constraints()309 constraints->valid_sw_formats[j++] = ctx->formats[i].pix_fmt; in vaapi_frames_get_constraints()[all …]
465 enum AVPixelFormat *valid_sw_formats; member
1070 constraints->valid_sw_formats = av_malloc_array(FF_ARRAY_ELEMS(supported_pixel_formats) + 1, in qsv_frames_get_constraints()1071 sizeof(*constraints->valid_sw_formats)); in qsv_frames_get_constraints()1072 if (!constraints->valid_sw_formats) in qsv_frames_get_constraints()1076 constraints->valid_sw_formats[i] = supported_pixel_formats[i].pix_fmt; in qsv_frames_get_constraints()1077 constraints->valid_sw_formats[FF_ARRAY_ELEMS(supported_pixel_formats)] = AV_PIX_FMT_NONE; in qsv_frames_get_constraints()
1573 err = av_reallocp_array(&constraints->valid_sw_formats, in opencl_frames_get_constraints()1575 sizeof(*constraints->valid_sw_formats)); in opencl_frames_get_constraints()1578 constraints->valid_sw_formats[pix_fmts_found] = pix_fmt; in opencl_frames_get_constraints()1579 constraints->valid_sw_formats[pix_fmts_found + 1] = in opencl_frames_get_constraints()
1272 constraints->valid_sw_formats = av_malloc_array(count + 1, in vulkan_frames_get_constraints()1274 if (!constraints->valid_sw_formats) in vulkan_frames_get_constraints()1280 constraints->valid_sw_formats[count++] = i; in vulkan_frames_get_constraints()1284 constraints->valid_sw_formats[count++] = AV_PIX_FMT_CUDA; in vulkan_frames_get_constraints()1286 constraints->valid_sw_formats[count++] = AV_PIX_FMT_NONE; in vulkan_frames_get_constraints()
605 av_freep(&(*constraints)->valid_sw_formats); in av_hwframe_constraints_free()
149 if (constraints->valid_sw_formats) { in ff_vaapi_vpp_config_output()150 for (i = 0; constraints->valid_sw_formats[i] != AV_PIX_FMT_NONE; i++) { in ff_vaapi_vpp_config_output()151 if (ctx->output_format == constraints->valid_sw_formats[i]) in ff_vaapi_vpp_config_output()154 if (constraints->valid_sw_formats[i] == AV_PIX_FMT_NONE) { in ff_vaapi_vpp_config_output()
77 input_pix_fmts = constraints->valid_sw_formats; in hwupload_query_formats()
555 if (!constraints->valid_sw_formats || in vaapi_decode_make_config()556 constraints->valid_sw_formats[0] == AV_PIX_FMT_NONE) { in vaapi_decode_make_config()
2300 if (constraints->valid_sw_formats) { in vaapi_encode_create_recon_frames()2301 for (i = 0; constraints->valid_sw_formats[i] != AV_PIX_FMT_NONE; i++) { in vaapi_encode_create_recon_frames()2303 constraints->valid_sw_formats[i]) { in vaapi_encode_create_recon_frames()2311 recon_format = constraints->valid_sw_formats[0]; in vaapi_encode_create_recon_frames()