removed some debug statements
This commit is contained in:
parent
ea58055ab1
commit
ceb28187ca
1 changed files with 1 additions and 4 deletions
|
@ -214,14 +214,13 @@ pub fn main() !void {
|
||||||
const ret = pipeline.as(gst.Element).setState(gst.State.playing);
|
const ret = pipeline.as(gst.Element).setState(gst.State.playing);
|
||||||
if (ret == gst.StateChangeReturn.failure) {
|
if (ret == gst.StateChangeReturn.failure) {
|
||||||
pipeline.unref();
|
pipeline.unref();
|
||||||
std.debug.print("Could not start pipeline! Aboring\n", .{});
|
std.debug.print("Could not start pipeline! Aborting\n", .{});
|
||||||
break :gst_block;
|
break :gst_block;
|
||||||
}
|
}
|
||||||
|
|
||||||
const bus: *gst.Bus = pipeline.getBus();
|
const bus: *gst.Bus = pipeline.getBus();
|
||||||
|
|
||||||
|
|
||||||
std.debug.print("Getting vstream info\n", .{});
|
|
||||||
var stream_info: hlo.hailo_vstream_info_t = undefined;
|
var stream_info: hlo.hailo_vstream_info_t = undefined;
|
||||||
status = hlo.hailo_get_input_vstream_info(input_vstreams[0], &stream_info);
|
status = hlo.hailo_get_input_vstream_info(input_vstreams[0], &stream_info);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
|
@ -229,7 +228,6 @@ pub fn main() !void {
|
||||||
var output_info: hlo.hailo_vstream_info_t = undefined;
|
var output_info: hlo.hailo_vstream_info_t = undefined;
|
||||||
status = hlo.hailo_get_output_vstream_info(output_vstreams[0], &output_info);
|
status = hlo.hailo_get_output_vstream_info(output_vstreams[0], &output_info);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
std.debug.print("\nOutput info: {any}\n\n", .{ output_info });
|
|
||||||
|
|
||||||
|
|
||||||
var input_frame_size: usize = 0;
|
var input_frame_size: usize = 0;
|
||||||
|
@ -244,7 +242,6 @@ pub fn main() !void {
|
||||||
var output_frame_size: usize = 0;
|
var output_frame_size: usize = 0;
|
||||||
status = hlo.hailo_get_output_vstream_frame_size(output_vstreams[0], &output_frame_size);
|
status = hlo.hailo_get_output_vstream_frame_size(output_vstreams[0], &output_frame_size);
|
||||||
assert(status == hlo.HAILO_SUCCESS);
|
assert(status == hlo.HAILO_SUCCESS);
|
||||||
std.debug.print("output frame size is: {d}\n", .{ output_frame_size });
|
|
||||||
|
|
||||||
const output_frame_count = output_frame_size / @sizeOf(f32);
|
const output_frame_count = output_frame_size / @sizeOf(f32);
|
||||||
const output_data: [:0]f32 = try alloc.allocSentinel(f32, output_frame_count, 0);
|
const output_data: [:0]f32 = try alloc.allocSentinel(f32, output_frame_count, 0);
|
||||||
|
|
Loading…
Reference in a new issue