File tree Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Expand file tree Collapse file tree 2 files changed +17
-6
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,6 @@ use std::ops::Index;
98
98
use std:: ops:: IndexMut ;
99
99
use std:: ops:: Range ;
100
100
use std:: ops:: Sub ;
101
- use std:: ptr;
102
101
use std:: sync:: atomic:: AtomicBool ;
103
102
use std:: sync:: atomic:: AtomicI32 ;
104
103
use std:: sync:: atomic:: AtomicU32 ;
@@ -1070,22 +1069,22 @@ pub(crate) struct Rav1dTaskContext {
1070
1069
}
1071
1070
1072
1071
impl Rav1dTaskContext {
1073
- pub ( crate ) unsafe fn new ( task_thread : Arc < Rav1dTaskContext_task_thread > ) -> Self {
1072
+ pub ( crate ) fn new ( task_thread : Arc < Rav1dTaskContext_task_thread > ) -> Self {
1074
1073
Self {
1075
1074
ts : 0 ,
1076
1075
b : Default :: default ( ) ,
1077
1076
l : Default :: default ( ) ,
1078
1077
a : 0 ,
1079
- rt : mem :: zeroed ( ) ,
1078
+ rt : Default :: default ( ) ,
1080
1079
cf : Default :: default ( ) ,
1081
1080
al_pal : Default :: default ( ) ,
1082
1081
pal_sz_uv : Default :: default ( ) ,
1083
- scratch : mem:: zeroed ( ) ,
1084
- warpmv : mem :: zeroed ( ) ,
1082
+ scratch : unsafe { mem:: zeroed ( ) } ,
1083
+ warpmv : Default :: default ( ) ,
1085
1084
lf_mask : None ,
1086
1085
top_pre_cdef_toggle : 0 ,
1087
1086
cur_sb_cdef_idx : 0 ,
1088
- tl_4x4_filter : mem :: zeroed ( ) ,
1087
+ tl_4x4_filter : Filter2d :: Regular8Tap , // 0
1089
1088
frame_thread : Rav1dTaskContext_frame_thread { pass : 0 } ,
1090
1089
task_thread,
1091
1090
}
Original file line number Diff line number Diff line change @@ -224,6 +224,7 @@ pub(crate) struct RefMvsFrame {
224
224
pub n_frame_threads : u32 ,
225
225
}
226
226
227
+ #[ derive( Default ) ]
227
228
#[ repr( C ) ]
228
229
pub struct refmvs_tile_range {
229
230
pub start : c_int ,
@@ -246,6 +247,17 @@ pub(crate) struct refmvs_tile {
246
247
pub tile_row : refmvs_tile_range ,
247
248
}
248
249
250
+ impl Default for refmvs_tile {
251
+ fn default ( ) -> Self {
252
+ Self {
253
+ r : [ Default :: default ( ) ; 37 ] ,
254
+ rp_proj : Default :: default ( ) ,
255
+ tile_col : Default :: default ( ) ,
256
+ tile_row : Default :: default ( ) ,
257
+ }
258
+ }
259
+ }
260
+
249
261
#[ derive( Copy , Clone , Default ) ]
250
262
#[ repr( C ) ]
251
263
pub struct refmvs_candidate {
You can’t perform that action at this time.
0 commit comments