* A couple of function varieties here, to allow for multiple * use cases. This variant is for when the main program knows * its own encoder needs. */
| 358 | * its own encoder needs. |
| 359 | */ |
| 360 | xo_handle_t * |
| 361 | xo_encoder_create (const char *name, xo_xof_flags_t flags) |
| 362 | { |
| 363 | xo_handle_t *xop; |
| 364 | |
| 365 | xop = xo_create(XO_STYLE_ENCODER, flags); |
| 366 | if (xop) { |
| 367 | if (xo_encoder_init(xop, name)) { |
| 368 | xo_destroy(xop); |
| 369 | xop = NULL; |
| 370 | } |
| 371 | } |
| 372 | |
| 373 | return xop; |
| 374 | } |
| 375 | |
| 376 | int |
| 377 | xo_encoder_handle (xo_handle_t *xop, xo_encoder_op_t op, |
nothing calls this directly
no test coverage detected