Lines Matching refs:pix_fmt
95 static bool ffmpeg_pix_fmt_has_alpha(enum AVPixelFormat pix_fmt);
96 static bool ffmpeg_pix_fmt_is_yuv(enum AVPixelFormat pix_fmt);
354 static bool ffmpeg_pix_fmt_has_alpha(enum AVPixelFormat pix_fmt) in ffmpeg_pix_fmt_has_alpha() argument
356 const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get(pix_fmt); in ffmpeg_pix_fmt_has_alpha()
362 if(pix_fmt == AV_PIX_FMT_PAL8) { in ffmpeg_pix_fmt_has_alpha()
369 static bool ffmpeg_pix_fmt_is_yuv(enum AVPixelFormat pix_fmt) in ffmpeg_pix_fmt_is_yuv() argument
371 const AVPixFmtDescriptor * desc = av_pix_fmt_desc_get(pix_fmt); in ffmpeg_pix_fmt_is_yuv()
390 || frame->format != ffmpeg_ctx->video_dec_ctx->pix_fmt) { in ffmpeg_output_video_frame()
402 av_get_pix_fmt_name(ffmpeg_ctx->video_dec_ctx->pix_fmt), in ffmpeg_output_video_frame()
415 ffmpeg_ctx->video_dec_ctx->pix_fmt, width, height); in ffmpeg_output_video_frame()
420 if(ffmpeg_pix_fmt_is_yuv(ffmpeg_ctx->video_dec_ctx->pix_fmt)) { in ffmpeg_output_video_frame()
439 width, height, ffmpeg_ctx->video_dec_ctx->pix_fmt, in ffmpeg_output_video_frame()
610 bool has_alpha = ffmpeg_pix_fmt_has_alpha(video_dec_ctx->pix_fmt); in ffmpeg_get_image_header()
778 ffmpeg_ctx->has_alpha = ffmpeg_pix_fmt_has_alpha(ffmpeg_ctx->video_dec_ctx->pix_fmt); in ffmpeg_open_file()
810 ffmpeg_ctx->video_dec_ctx->pix_fmt, in ffmpeg_image_allocate()