Lines Matching defs:api
46 const x265_api *api;
86 ctx->api->param_free(ctx->params);
90 ctx->api->encoder_close(ctx->encoder);
102 if (ctx->api->param_parse(ctx->params, key, buf) == X265_PARAM_BAD_VALUE) {
117 if (ctx->api->param_parse(ctx->params, key, buf) == X265_PARAM_BAD_VALUE) {
132 ctx->api = x265_api_get(desc->comp[0].depth);
133 if (!ctx->api)
134 ctx->api = x265_api_get(0);
136 ctx->params = ctx->api->param_alloc();
142 if (ctx->api->param_default_preset(ctx->params, ctx->preset, ctx->tune) < 0) {
237 if (ctx->api->param_parse(ctx->params, "sar", sar) == X265_PARAM_BAD_VALUE) {
248 if (ctx->api->api_build_number < 85) {
251 ctx->api->api_build_number);
283 if (ctx->api->param_parse(ctx->params, "crf", crf) == X265_PARAM_BAD_VALUE) {
371 int parse_ret = ctx->api->param_parse(ctx->params, en->key, en->value);
394 if (ctx->api->param_apply_profile(ctx->params, ctx->profile) < 0) {
405 ctx->encoder = ctx->api->encoder_open(ctx->params);
416 avctx->extradata_size = ctx->api->encoder_headers(ctx->encoder, &nal, &nnal);
516 ctx->api->picture_init(ctx->params, &x265pic);
578 ret = ctx->api->encoder_encode(ctx->encoder, &nal, &nnal,