@@ -670,6 +670,8 @@ def __init__(self, **kwargs):
670
670
self ._client_transform = (False , False , False )
671
671
# Result of combining client and readout transforms
672
672
self ._transform = (False , False , False )
673
+ # Add _apply_transform to pipeline.
674
+ self .pipeline .insert (0 , self ._apply_transform )
673
675
# A transform provided by the client.
674
676
self .add_setting ('transform' , 'enum' ,
675
677
lambda : CameraDevice .ALLOWED_TRANSFORMS .index (self ._transform ),
@@ -688,7 +690,7 @@ def __init__(self, **kwargs):
688
690
self .set_roi ,
689
691
None )
690
692
691
- def _process_data (self , data ):
693
+ def _apply_transform (self , data ):
692
694
"""Apply self._transform to data."""
693
695
flips = (self ._transform [0 ], self ._transform [1 ])
694
696
rot = self ._transform [2 ]
@@ -702,7 +704,7 @@ def _process_data(self, data):
702
704
(1 , 0 ): numpy .fliplr ,
703
705
(1 , 1 ): lambda d : numpy .fliplr (numpy .flipud (d ))
704
706
}[flips ](data )
705
- return super (). _process_data ( data )
707
+ return data
706
708
707
709
def set_readout_mode (self , description ):
708
710
"""Set the readout mode and _readout_transform."""
0 commit comments