MCPcopy Create free account
hub / github.com/HandBrake/HandBrake / hb_buffer_is_writable

Function hb_buffer_is_writable

libhb/fifo.c:624–639  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

622}
623
624int hb_buffer_is_writable(const hb_buffer_t *buf)
625{
626 switch (buf->storage_type)
627 {
628 case AVFRAME:
629 return av_frame_is_writable((AVFrame *)buf->storage);
630 case STANDARD:
631 return 1;
632#ifdef __APPLE__
633 case COREMEDIA:
634 return hb_cv_get_io_surface_usage_count(buf) == 1;
635#endif
636 default:
637 return 0;
638 }
639}
640
641static int copy_hwframe_to_video_buffer(const AVFrame *frame, hb_buffer_t *buf)
642{

Callers 1

hb_blend_workFunction · 0.85

Calls 1

Tested by

no test coverage detected