Adds function read_yuv_frame and moves functions fill_after_frame and read_and_fill_frame_data from encoderstate to yuv_input.