fixed ref error
This commit is contained in:
parent
c3112f90b0
commit
94305918c1
1 changed files with 3 additions and 3 deletions
|
@ -89,7 +89,7 @@ pub fn main() void {
|
||||||
|
|
||||||
var input_frame_size: usize = 0;
|
var input_frame_size: usize = 0;
|
||||||
|
|
||||||
status = hlo.hailo_get_input_vstream_frame_size(input_vstreams, &input_frame_size);
|
status = hlo.hailo_get_input_vstream_frame_size(&input_vstreams, &input_frame_size);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
|
|
||||||
const frame_count = input_frame_size / @sizeOf(u8);
|
const frame_count = input_frame_size / @sizeOf(u8);
|
||||||
|
@ -105,11 +105,11 @@ pub fn main() void {
|
||||||
// Here we simulate taking our data and chunking it into frame_size, then uploading each frame until we have uploaded
|
// Here we simulate taking our data and chunking it into frame_size, then uploading each frame until we have uploaded
|
||||||
// all of our data
|
// all of our data
|
||||||
for (0..frame_count) |_| {
|
for (0..frame_count) |_| {
|
||||||
status = hlo.hailo_vstream_write_raw_buffer(input_vstreams, input_data, input_frame_size);
|
status = hlo.hailo_vstream_write_raw_buffer(&input_vstreams, input_data, input_frame_size);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
}
|
}
|
||||||
|
|
||||||
status = hlo.hailo_flush_input_vstream(input_vstreams);
|
status = hlo.hailo_flush_input_vstream(&input_vstreams);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue