| 627 | } |
| 628 | |
| 629 | static 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 | |
| 641 | static inline int move_to_output_frame(RendererContext *ctx, AVFrame *frame) |
| 642 | { |