/third_party/ffmpeg/libswscale/tests/ |
H A D | pixdesc_query.c | 64 const char **pix_fmts = NULL; in main() local 77 av_dynarray_add(&pix_fmts, &nb_pix_fmts, (void *)pix_name); in main() 81 if (pix_fmts) { in main() 82 qsort(pix_fmts, nb_pix_fmts, sizeof(*pix_fmts), cmp_str); in main() 86 printf(" %s\n", pix_fmts[j]); in main() 89 av_free(pix_fmts); in main()
|
H A D | floatimg_cmp.c | 40 static const enum AVPixelFormat pix_fmts[] = { variable 159 for (i = 0; i < FF_ARRAY_ELEMS(pix_fmts); i++) { in main() 160 dstFormat = pix_fmts[i]; in main()
|
/third_party/ffmpeg/libavutil/ |
H A D | hwcontext_vdpau.c | 92 enum AVPixelFormat *pix_fmts[FF_ARRAY_ELEMS(vdpau_pix_fmts)]; member 102 const enum AVPixelFormat *pix_fmts; member 122 for (i = 0; i < FF_ARRAY_ELEMS(priv->pix_fmts); i++) { in vdpau_init_pixmfts() 127 priv->pix_fmts[i] = av_malloc_array(nb_pix_fmts + 1, sizeof(*priv->pix_fmts[i])); in vdpau_init_pixmfts() 128 if (!priv->pix_fmts[i]) in vdpau_init_pixmfts() 137 priv->pix_fmts[i][nb_pix_fmts++] = map->pix_fmt; in vdpau_init_pixmfts() 140 priv->pix_fmts[i][nb_pix_fmts++] = AV_PIX_FMT_NONE; in vdpau_init_pixmfts() 186 for (i = 0; i < FF_ARRAY_ELEMS(priv->pix_fmts); i++) in vdpau_device_uninit() 187 av_freep(&priv->pix_fmts[ in vdpau_device_uninit() [all...] |
H A D | hwcontext_drm.c | 209 enum AVPixelFormat *pix_fmts; in drm_transfer_get_formats() local 211 pix_fmts = av_malloc_array(2, sizeof(*pix_fmts)); in drm_transfer_get_formats() 212 if (!pix_fmts) in drm_transfer_get_formats() 215 pix_fmts[0] = ctx->sw_format; in drm_transfer_get_formats() 216 pix_fmts[1] = AV_PIX_FMT_NONE; in drm_transfer_get_formats() 218 *formats = pix_fmts; in drm_transfer_get_formats() 319 .pix_fmts = (const enum AVPixelFormat[]) {
|
H A D | hwcontext_mediacodec.c | 46 .pix_fmts = (const enum AVPixelFormat[]){
|
/third_party/ffmpeg/libavfilter/ |
H A D | vf_format.c | 42 char *pix_fmts; member 45 * pix_fmts parsed into AVPixelFormats and terminated with 65 if (!s->pix_fmts) { in init() 71 cur = s->pix_fmts; in init() 83 cur = s->pix_fmts; in init() 141 { "pix_fmts", "A '|'-separated list of pixel formats", OFFSET(pix_fmts), AV_OPT_TYPE_STRING, .flags = AV_OPT_FLAG_VIDEO_PARAM | AV_OPT_FLAG_FILTERING_PARAM },
|
H A D | vf_edgedetect.c | 105 const enum AVPixelFormat *pix_fmts = NULL; in query_formats() local 108 pix_fmts = wires_pix_fmts; in query_formats() 110 pix_fmts = colormix_pix_fmts; in query_formats() 112 pix_fmts = canny_pix_fmts; in query_formats() 116 return ff_set_common_formats_from_list(ctx, pix_fmts); in query_formats()
|
H A D | vf_hflip.c | 49 AVFilterFormats *pix_fmts = NULL; in query_formats() local 58 (ret = ff_add_format(&pix_fmts, fmt)) < 0) in query_formats() 62 return ff_set_common_formats(ctx, pix_fmts); in query_formats()
|
H A D | vf_lut2.c | 177 const enum AVPixelFormat *pix_fmts; in query_formats() local 188 case 8: pix_fmts = bit8_pix_fmts; break; in query_formats() 189 case 9: pix_fmts = bit9_pix_fmts; break; in query_formats() 190 case 10: pix_fmts = bit10_pix_fmts; break; in query_formats() 191 case 12: pix_fmts = bit12_pix_fmts; break; in query_formats() 192 case 14: pix_fmts = bit14_pix_fmts; break; in query_formats() 193 case 16: pix_fmts = bit16_pix_fmts; break; in query_formats() 198 return ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->outputs[0]->incfg.formats); in query_formats()
|
H A D | vf_bbox.c | 49 static const enum AVPixelFormat pix_fmts[] = { variable 153 FILTER_PIXFMTS_ARRAY(pix_fmts),
|
H A D | vf_blackframe.c | 49 static const enum AVPixelFormat pix_fmts[] = { variable 133 FILTER_PIXFMTS_ARRAY(pix_fmts),
|
H A D | vf_ocr.c | 76 static const enum AVPixelFormat pix_fmts[] = { variable 149 FILTER_PIXFMTS_ARRAY(pix_fmts),
|
H A D | vf_elbg.c | 91 static const enum AVPixelFormat pix_fmts[] = { in query_formats() local 97 return ff_set_common_formats_from_list(ctx, pix_fmts); in query_formats() 103 if ((ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[0]->outcfg.formats)) < 0 || in query_formats()
|
H A D | vf_pp.c | 78 static const enum AVPixelFormat pix_fmts[] = { variable 192 FILTER_PIXFMTS_ARRAY(pix_fmts),
|
H A D | vf_overlay_vaapi.c | 49 static const enum AVPixelFormat pix_fmts[] = { in overlay_vaapi_query_formats() local 54 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[MAIN]->outcfg.formats); in overlay_vaapi_query_formats() 58 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->inputs[OVERLAY]->outcfg.formats); in overlay_vaapi_query_formats() 62 ret = ff_formats_ref(ff_make_format_list(pix_fmts), &ctx->outputs[0]->incfg.formats); in overlay_vaapi_query_formats()
|
/third_party/ffmpeg/libavcodec/ |
H A D | libvpx.c | 71 codec->p.pix_fmts = vp9_pix_fmts_def; in ff_vp9_init_static() 76 codec->p.pix_fmts = vp9_pix_fmts_highbd; in ff_vp9_init_static() 78 codec->p.pix_fmts = vp9_pix_fmts_highcol; in ff_vp9_init_static()
|
H A D | pnmenc.c | 232 .p.pix_fmts = (const enum AVPixelFormat[]){ 247 .p.pix_fmts = (const enum AVPixelFormat[]){ 262 .p.pix_fmts = (const enum AVPixelFormat[]){ 277 .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_MONOWHITE, 291 .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_GBRPF32LE, 319 .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_GBRPF32,
|
H A D | encode.c | 416 if (avctx->codec->pix_fmts) { in encode_preinit_video() 417 for (i = 0; avctx->codec->pix_fmts[i] != AV_PIX_FMT_NONE; i++) in encode_preinit_video() 418 if (avctx->pix_fmt == avctx->codec->pix_fmts[i]) in encode_preinit_video() 420 if (avctx->codec->pix_fmts[i] == AV_PIX_FMT_NONE) { in encode_preinit_video() 427 if (avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ420P || in encode_preinit_video() 428 avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ411P || in encode_preinit_video() 429 avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ422P || in encode_preinit_video() 430 avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ440P || in encode_preinit_video() 431 avctx->codec->pix_fmts[i] == AV_PIX_FMT_YUVJ444P) in encode_preinit_video()
|
H A D | r210enc.c | 102 .p.pix_fmts = pix_fmt, 115 .p.pix_fmts = pix_fmt, 128 .p.pix_fmts = pix_fmt,
|
H A D | v408enc.c | 91 .p.pix_fmts = pix_fmt, 104 .p.pix_fmts = pix_fmt,
|
H A D | libkvazaar.c | 296 static const enum AVPixelFormat pix_fmts[] = { variable 328 .p.pix_fmts = pix_fmts,
|
H A D | cuviddec.c | 131 enum AVPixelFormat pix_fmts[3] = { AV_PIX_FMT_CUDA, in cuvid_handle_video_sequence() local 173 pix_fmts[1] = chroma_444 ? AV_PIX_FMT_YUV444P : AV_PIX_FMT_NV12; in cuvid_handle_video_sequence() 177 pix_fmts[1] = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P010; in cuvid_handle_video_sequence() 181 pix_fmts[1] = chroma_444 ? AV_PIX_FMT_YUV444P16 : AV_PIX_FMT_P016; in cuvid_handle_video_sequence() 195 surface_fmt = ff_get_format(avctx, pix_fmts); in cuvid_handle_video_sequence() 796 enum AVPixelFormat pix_fmts[3] = { AV_PIX_FMT_CUDA, in cuvid_decode_init() local 813 ret = ff_get_format(avctx, pix_fmts); in cuvid_decode_init() 1133 .p.pix_fmts = (const enum AVPixelFormat[]){ AV_PIX_FMT_CUDA, \
|
/third_party/ffmpeg/doc/examples/ |
H A D | qsvdec.c | 47 static int get_format(AVCodecContext *avctx, const enum AVPixelFormat *pix_fmts) in get_format() argument 49 while (*pix_fmts != AV_PIX_FMT_NONE) { in get_format() 50 if (*pix_fmts == AV_PIX_FMT_QSV) { in get_format() 54 pix_fmts++; in get_format()
|
H A D | filtering_video.c | 101 enum AVPixelFormat pix_fmts[] = { AV_PIX_FMT_GRAY8, AV_PIX_FMT_NONE }; in init_filters() local 131 ret = av_opt_set_int_list(buffersink_ctx, "pix_fmts", pix_fmts, in init_filters()
|
/third_party/ffmpeg/libavdevice/ |
H A D | lavfi.c | 128 int *pix_fmts = create_all_formats(AV_PIX_FMT_NB); in lavfi_read_header() local 134 if (!pix_fmts) in lavfi_read_header() 268 ret = av_opt_set_int_list(sink, "pix_fmts", pix_fmts, AV_PIX_FMT_NONE, AV_OPT_SEARCH_CHILDREN); in lavfi_read_header() 355 av_free(pix_fmts); in lavfi_read_header()
|