MCPcopy Create free account
hub / github.com/AOMediaCodec/libavif / svtCodecEncodeFinish

Function svtCodecEncodeFinish

src/codec_svt.c:362–382  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

360}
361
362static avifBool svtCodecEncodeFinish(avifCodec * codec, avifCodecEncodeOutput * output)
363{
364 EbErrorType ret = EB_ErrorNone;
365
366 EbBufferHeaderType input_buffer;
367 input_buffer.n_alloc_len = 0;
368 input_buffer.n_filled_len = 0;
369 input_buffer.n_tick_count = 0;
370 input_buffer.p_app_private = NULL;
371 input_buffer.flags = EB_BUFFERFLAG_EOS;
372 input_buffer.p_buffer = NULL;
373 input_buffer.metadata = NULL;
374
375 // flush
376 ret = svt_av1_enc_send_picture(codec->internal->svt_encoder, &input_buffer);
377
378 if (ret != EB_ErrorNone)
379 return AVIF_FALSE;
380
381 return (dequeue_frame(codec, output, AVIF_TRUE) == AVIF_RESULT_OK);
382}
383
384const char * avifCodecVersionSvt(void)
385{

Callers

nothing calls this directly

Calls 1

dequeue_frameFunction · 0.85

Tested by

no test coverage detected