@@ -294,10 +294,10 @@ def _load_optix_win():
294294 optix .set_noise_threshold .argtypes = [c_float ]
295295 optix .set_noise_threshold .restype = c_bool
296296
297- optix .setup_camera .argtypes = [c_wchar_p , c_int , c_int , c_void_p , c_void_p , c_void_p , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_bool , c_wchar_p , c_bool ]
297+ optix .setup_camera .argtypes = [c_wchar_p , c_int , c_int , c_void_p , c_void_p , c_void_p , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_bool , c_wchar_p , c_bool ]
298298 optix .setup_camera .restype = c_int
299299
300- optix .update_camera .argtypes = [c_wchar_p , c_void_p , c_void_p , c_void_p , c_float , c_float , c_float , c_float , c_float , c_float , c_float ]
300+ optix .update_camera .argtypes = [c_wchar_p , c_void_p , c_void_p , c_void_p , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float , c_float ]
301301 optix .update_camera .restype = c_bool
302302
303303 optix .fit_camera .argtypes = [c_uint , c_wchar_p , c_float ]
@@ -488,7 +488,7 @@ def _load_optix_win():
488488 optix .set_max_accumulation_frames .argtypes = [c_int ]
489489 optix .set_max_accumulation_frames .restype = c_bool
490490
491- optix .encoder_create .argtypes = [c_int , c_int , c_int , c_int , c_int ]
491+ optix .encoder_create .argtypes = [c_int , c_int , c_int , c_int , c_int , c_int ]
492492 optix .encoder_create .restype = c_bool
493493
494494 optix .encoder_start .argtypes = [c_wchar_p , c_uint ]
@@ -951,19 +951,19 @@ def get_noise_threshold(self): return self._optix.get_noise_threshold()
951951
952952 def set_noise_threshold (self , thr ): return self ._optix .set_noise_threshold (thr )
953953
954- def setup_camera (self , name , camera_type , work_distribution , eye , target , up , aperture_r , aperture_fract , focal_scale , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current ):
954+ def setup_camera (self , name , camera_type , work_distribution , eye , target , up , aperture_r , aperture_fract , focal_scale , swirl_scale , bokeh_vignette , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current ):
955955 return self ._optix .setup_camera_ptr (name , camera_type , work_distribution ,
956956 IntPtr .__overloads__ [Int64 ](eye ),
957957 IntPtr .__overloads__ [Int64 ](target ),
958958 IntPtr .__overloads__ [Int64 ](up ),
959- aperture_r , aperture_fract , focal_scale , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current )
959+ aperture_r , aperture_fract , focal_scale , swirl_scale , bokeh_vignette , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current )
960960
961- def update_camera (self , name , eye , target , up , aperture_r , focal_scale , fov , rxy , cx , cy , sensor_height ):
961+ def update_camera (self , name , eye , target , up , aperture_r , focal_scale , swirl_scale , bokeh_vignette , fov , rxy , cx , cy , sensor_height ):
962962 return self ._optix .update_camera_ptr (name ,
963963 IntPtr .__overloads__ [Int64 ](eye ),
964964 IntPtr .__overloads__ [Int64 ](target ),
965965 IntPtr .__overloads__ [Int64 ](up ),
966- aperture_r , focal_scale , fov , rxy , cx , cy , sensor_height )
966+ aperture_r , focal_scale , swirl_scale , bokeh_vignette , fov , rxy , cx , cy , sensor_height )
967967
968968 def fit_camera (self , handle , geo_name , scale ): return self ._optix .fit_camera (handle , geo_name , scale )
969969
@@ -1135,9 +1135,9 @@ def get_max_accumulation_frames(self): return self._optix.get_max_accumulation_f
11351135
11361136 def set_max_accumulation_frames (self , n ): return self ._optix .set_max_accumulation_frames (n )
11371137
1138- def encoder_create (self , fps , bit_rate , idr_rate , profile , preset ):
1138+ def encoder_create (self , fps , bit_rate , idr_rate , codec , profile , preset ):
11391139 if self ._encoder_available :
1140- return self ._optix .encoder_create (fps , bit_rate , idr_rate , profile , preset )
1140+ return self ._optix .encoder_create (fps , bit_rate , idr_rate , codec , profile , preset )
11411141 else : return False
11421142
11431143 def encoder_start (self , output_name , n_frames ): return self ._optix .encoder_start (output_name , n_frames )
@@ -1731,14 +1731,16 @@ def get_noise_threshold(self): return self._optix.get_noise_threshold()
17311731
17321732 def set_noise_threshold (self , thr ): return self ._optix .set_noise_threshold (thr )
17331733
1734- def setup_camera (self , name , camera_type , work_distribution , eye , target , up , aperture_r , aperture_fract , focal_scale , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current ):
1734+ def setup_camera (self , name , camera_type , work_distribution , eye , target , up , aperture_r , aperture_fract , focal_scale , swirl_scale , bokeh_vignette , chroma_l , chroma_t , fov , rxy , cx , cy , sensor_height , blur , glock , textures , make_current ):
17351735 return self ._optix .setup_camera_ptr (name , camera_type , work_distribution ,
17361736 IntPtr (eye ),
17371737 IntPtr (target ),
17381738 IntPtr (up ),
17391739 float (aperture_r ),
17401740 float (aperture_fract ),
17411741 float (focal_scale ),
1742+ float (swirl_scale ),
1743+ float (bokeh_vignette ),
17421744 float (chroma_l ),
17431745 float (chroma_t ),
17441746 float (fov ),
@@ -1749,13 +1751,15 @@ def setup_camera(self, name, camera_type, work_distribution, eye, target, up, ap
17491751 float (blur ),
17501752 glock , textures , make_current )
17511753
1752- def update_camera (self , name , eye , target , up , aperture_r , focal_scale , fov , rxy , cx , cy , sensor_height ):
1754+ def update_camera (self , name , eye , target , up , aperture_r , focal_scale , swirl_scale , bokeh_vignette , fov , rxy , cx , cy , sensor_height ):
17531755 return self ._optix .update_camera_ptr (name ,
17541756 IntPtr (eye ),
17551757 IntPtr (target ),
17561758 IntPtr (up ),
17571759 float (aperture_r ),
17581760 float (focal_scale ),
1761+ float (swirl_scale ),
1762+ float (bokeh_vignette ),
17591763 float (fov ),
17601764 float (rxy ),
17611765 float (cx ),
@@ -1944,9 +1948,9 @@ def get_max_accumulation_frames(self): return self._optix.get_max_accumulation_f
19441948
19451949 def set_max_accumulation_frames (self , n ): return self ._optix .set_max_accumulation_frames (n )
19461950
1947- def encoder_create (self , fps , bit_rate , idr_rate , profile , preset ):
1951+ def encoder_create (self , fps , bit_rate , idr_rate , codec , profile , preset ):
19481952 if self ._encoder_available :
1949- return self ._optix .encoder_create (fps , bit_rate , idr_rate , profile , preset )
1953+ return self ._optix .encoder_create (fps , bit_rate , idr_rate , codec , profile , preset )
19501954 else : return False
19511955
19521956 def encoder_start (self , output_name , n_frames ): return self ._optix .encoder_start (output_name , n_frames )
0 commit comments