Lines Matching refs:encoder_inst

213     OSSL_ENCODER_INSTANCE *encoder_inst = NULL;  in ossl_encoder_instance_new()  local
224 if ((encoder_inst = OPENSSL_zalloc(sizeof(*encoder_inst))) == NULL) in ossl_encoder_instance_new()
244 encoder_inst->output_type = ossl_property_get_string_value(libctx, prop); in ossl_encoder_instance_new()
245 if (encoder_inst->output_type == NULL) { in ossl_encoder_instance_new()
257 encoder_inst->output_structure in ossl_encoder_instance_new()
260 encoder_inst->encoder = encoder; in ossl_encoder_instance_new()
261 encoder_inst->encoderctx = encoderctx; in ossl_encoder_instance_new()
262 return encoder_inst; in ossl_encoder_instance_new()
264 ossl_encoder_instance_free(encoder_inst); in ossl_encoder_instance_new()
268 void ossl_encoder_instance_free(OSSL_ENCODER_INSTANCE *encoder_inst) in ossl_encoder_instance_free() argument
270 if (encoder_inst != NULL) { in ossl_encoder_instance_free()
271 if (encoder_inst->encoder != NULL) in ossl_encoder_instance_free()
272 encoder_inst->encoder->freectx(encoder_inst->encoderctx); in ossl_encoder_instance_free()
273 encoder_inst->encoderctx = NULL; in ossl_encoder_instance_free()
274 OSSL_ENCODER_free(encoder_inst->encoder); in ossl_encoder_instance_free()
275 encoder_inst->encoder = NULL; in ossl_encoder_instance_free()
276 OPENSSL_free(encoder_inst); in ossl_encoder_instance_free()
308 OSSL_ENCODER_INSTANCE *encoder_inst = NULL; in OSSL_ENCODER_CTX_add_encoder() local
322 || (encoder_inst = in OSSL_ENCODER_CTX_add_encoder()
328 if (!ossl_encoder_ctx_add_encoder_inst(ctx, encoder_inst)) in OSSL_ENCODER_CTX_add_encoder()
333 ossl_encoder_instance_free(encoder_inst); in OSSL_ENCODER_CTX_add_encoder()
386 OSSL_ENCODER_INSTANCE_get_encoder(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder() argument
388 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder()
390 return encoder_inst->encoder; in OSSL_ENCODER_INSTANCE_get_encoder()
394 OSSL_ENCODER_INSTANCE_get_encoder_ctx(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder_ctx() argument
396 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
398 return encoder_inst->encoderctx; in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
402 OSSL_ENCODER_INSTANCE_get_output_type(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_type() argument
404 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_type()
406 return encoder_inst->output_type; in OSSL_ENCODER_INSTANCE_get_output_type()
410 OSSL_ENCODER_INSTANCE_get_output_structure(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_structure() argument
412 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_structure()
414 return encoder_inst->output_structure; in OSSL_ENCODER_INSTANCE_get_output_structure()