Lines Matching refs:encoder_inst

190     OSSL_ENCODER_INSTANCE *encoder_inst = NULL;  in ossl_encoder_instance_new()  local
201 if ((encoder_inst = OPENSSL_zalloc(sizeof(*encoder_inst))) == NULL) in ossl_encoder_instance_new()
221 encoder_inst->output_type = ossl_property_get_string_value(libctx, prop); in ossl_encoder_instance_new()
222 if (encoder_inst->output_type == NULL) { in ossl_encoder_instance_new()
234 encoder_inst->output_structure in ossl_encoder_instance_new()
237 encoder_inst->encoder = encoder; in ossl_encoder_instance_new()
238 encoder_inst->encoderctx = encoderctx; in ossl_encoder_instance_new()
239 return encoder_inst; in ossl_encoder_instance_new()
241 ossl_encoder_instance_free(encoder_inst); in ossl_encoder_instance_new()
245 void ossl_encoder_instance_free(OSSL_ENCODER_INSTANCE *encoder_inst) in ossl_encoder_instance_free() argument
247 if (encoder_inst != NULL) { in ossl_encoder_instance_free()
248 if (encoder_inst->encoder != NULL) in ossl_encoder_instance_free()
249 encoder_inst->encoder->freectx(encoder_inst->encoderctx); in ossl_encoder_instance_free()
250 encoder_inst->encoderctx = NULL; in ossl_encoder_instance_free()
251 OSSL_ENCODER_free(encoder_inst->encoder); in ossl_encoder_instance_free()
252 encoder_inst->encoder = NULL; in ossl_encoder_instance_free()
253 OPENSSL_free(encoder_inst); in ossl_encoder_instance_free()
285 OSSL_ENCODER_INSTANCE *encoder_inst = NULL; in OSSL_ENCODER_CTX_add_encoder() local
299 || (encoder_inst = in OSSL_ENCODER_CTX_add_encoder()
305 if (!ossl_encoder_ctx_add_encoder_inst(ctx, encoder_inst)) in OSSL_ENCODER_CTX_add_encoder()
310 ossl_encoder_instance_free(encoder_inst); in OSSL_ENCODER_CTX_add_encoder()
363 OSSL_ENCODER_INSTANCE_get_encoder(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder() argument
365 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder()
367 return encoder_inst->encoder; in OSSL_ENCODER_INSTANCE_get_encoder()
371 OSSL_ENCODER_INSTANCE_get_encoder_ctx(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_encoder_ctx() argument
373 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
375 return encoder_inst->encoderctx; in OSSL_ENCODER_INSTANCE_get_encoder_ctx()
379 OSSL_ENCODER_INSTANCE_get_output_type(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_type() argument
381 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_type()
383 return encoder_inst->output_type; in OSSL_ENCODER_INSTANCE_get_output_type()
387 OSSL_ENCODER_INSTANCE_get_output_structure(OSSL_ENCODER_INSTANCE *encoder_inst) in OSSL_ENCODER_INSTANCE_get_output_structure() argument
389 if (encoder_inst == NULL) in OSSL_ENCODER_INSTANCE_get_output_structure()
391 return encoder_inst->output_structure; in OSSL_ENCODER_INSTANCE_get_output_structure()