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

Function process_filter

libhb/hb.c:776–797  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

774}
775
776static void process_filter(hb_filter_object_t * filter)
777{
778 hb_buffer_t * in, * out;
779
780 while (filter->status != HB_FILTER_DONE)
781 {
782 in = hb_fifo_get_wait(filter->fifo_in);
783 if (in == NULL)
784 continue;
785
786 out = NULL;
787 filter->status = filter->work(filter, &in, &out);
788 if (in != NULL)
789 {
790 hb_buffer_close(&in);
791 }
792 if (out != NULL)
793 {
794 hb_fifo_push(filter->fifo_out, out);
795 }
796 }
797}
798
799// Get preview and apply applicable filters
800hb_image_t * hb_get_preview(hb_handle_t * h, hb_dict_t * job_dict,

Callers 1

hb_get_previewFunction · 0.70

Calls 3

hb_fifo_get_waitFunction · 0.85
hb_buffer_closeFunction · 0.85
hb_fifo_pushFunction · 0.85

Tested by

no test coverage detected