+ // Preview chain (always shows just first input for now).
+ preview_chain.reset(new EffectChain(WIDTH, HEIGHT, resource_pool.get()));
+ check_error();
+ preview_input = new YCbCrInput(inout_format, input_ycbcr_format, WIDTH, HEIGHT, YCBCR_INPUT_SPLIT_Y_AND_CBCR);
+ preview_chain->add_input(preview_input);
+ preview_chain->add_output(inout_format, OUTPUT_ALPHA_FORMAT_POSTMULTIPLIED);
+ preview_chain->set_dither_bits(0); // Don't bother.
+ preview_chain->set_output_origin(OUTPUT_ORIGIN_TOP_LEFT);
+ preview_chain->finalize();
+