- fade_chain.chain.reset(new EffectChain(1280, 720, resource_pool));
- fade_chain.input[0] = (movit::YCbCrInput *)fade_chain.chain->add_input(
- new YCbCrInput(inout_format, ycbcr_format, 1280, 720,
- first_input_is_semiplanar ? YCBCR_INPUT_SPLIT_Y_AND_CBCR : YCBCR_INPUT_PLANAR));
- fade_chain.input[1] = (movit::YCbCrInput *)fade_chain.chain->add_input(
- new YCbCrInput(inout_format, ycbcr_format, 1280, 720,
- second_input_is_semiplanar ? YCBCR_INPUT_SPLIT_Y_AND_CBCR : YCBCR_INPUT_PLANAR));
- fade_chain.mix_effect = (movit::MixEffect *)fade_chain.chain->add_effect(
- new MixEffect, fade_chain.input[0], fade_chain.input[1]);
+ fade_chain.chain.reset(new EffectChain(global_flags.width, global_flags.height, resource_pool));
+ fade_chain.input[0] = (YCbCrInput *)fade_chain.chain->add_input(
+ new YCbCrInput(inout_format, ycbcr_format, global_flags.width, global_flags.height,
+ first_input_is_semiplanar ? YCBCR_INPUT_SPLIT_Y_AND_CBCR : YCBCR_INPUT_PLANAR));
+ fade_chain.input[1] = (YCbCrInput *)fade_chain.chain->add_input(
+ new YCbCrInput(inout_format, ycbcr_format, global_flags.width, global_flags.height,
+ second_input_is_semiplanar ? YCBCR_INPUT_SPLIT_Y_AND_CBCR : YCBCR_INPUT_PLANAR));
+ fade_chain.wb_effect[0] = (WhiteBalanceEffect *)fade_chain.chain->add_effect(
+ new WhiteBalanceEffect, fade_chain.input[0]);
+ fade_chain.wb_effect[1] = (WhiteBalanceEffect *)fade_chain.chain->add_effect(
+ new WhiteBalanceEffect, fade_chain.input[1]);
+ fade_chain.mix_effect = (MixEffect *)fade_chain.chain->add_effect(
+ new MixEffect, fade_chain.wb_effect[0], fade_chain.wb_effect[1]);