MCPcopy Create free account
hub / github.com/FFmpeg/FFmpeg / check_hw_transfer

Function check_hw_transfer

fftools/ffplay_renderer.c:629–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629static inline int check_hw_transfer(RendererContext *ctx, AVFrame *frame)
630{
631 if (!ctx->hw_frame_ref || !ctx->transfer_formats)
632 return 0;
633
634 for (int i = 0; ctx->transfer_formats[i] != AV_PIX_FMT_NONE; i++)
635 if (ctx->transfer_formats[i] == frame->format)
636 return 1;
637
638 return 0;
639}
640
641static inline int move_to_output_frame(RendererContext *ctx, AVFrame *frame)
642{

Callers 1

transfer_frameFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected