| 876 | } |
| 877 | |
| 878 | static av_cold void vaapi_encode_add_global_param(AVCodecContext *avctx, int type, |
| 879 | void *buffer, size_t size) |
| 880 | { |
| 881 | VAAPIEncodeContext *ctx = avctx->priv_data; |
| 882 | |
| 883 | av_assert0(ctx->nb_global_params < MAX_GLOBAL_PARAMS); |
| 884 | |
| 885 | ctx->global_params_type[ctx->nb_global_params] = type; |
| 886 | ctx->global_params [ctx->nb_global_params] = buffer; |
| 887 | ctx->global_params_size[ctx->nb_global_params] = size; |
| 888 | |
| 889 | ++ctx->nb_global_params; |
| 890 | } |
| 891 | |
| 892 | typedef struct VAAPIEncodeRTFormat { |
| 893 | const char *name; |
no outgoing calls
no test coverage detected