mainPipeline constructs the main image processing pipeline. This pipeline is applied to each image frame.
()
| 17 | // mainPipeline constructs the main image processing pipeline. |
| 18 | // This pipeline is applied to each image frame. |
| 19 | func (p *Processor) mainPipeline() Pipeline { |
| 20 | return Pipeline{ |
| 21 | p.vectorGuardScale, |
| 22 | p.trim, |
| 23 | p.scaleOnLoad, |
| 24 | p.colorspaceToProcessing, |
| 25 | p.crop, |
| 26 | p.scale, |
| 27 | p.rotateAndFlip, |
| 28 | p.cropToResult, |
| 29 | p.applyFilters, |
| 30 | p.extend, |
| 31 | p.extendAspectRatio, |
| 32 | p.padding, |
| 33 | p.fixSize, |
| 34 | p.flatten, |
| 35 | p.watermark, |
| 36 | } |
| 37 | } |
| 38 | |
| 39 | // finalizePipeline constructs the finalization pipeline. |
| 40 | // This pipeline is applied before saving the image. |
no outgoing calls
no test coverage detected