From d33520030a1c8ec26357c5b64329b4fc58909556 Mon Sep 17 00:00:00 2001 From: Jaeyun Date: Thu, 15 Nov 2018 11:48:29 +0900 Subject: [PATCH] [Example] update exam pipeline using decoder change decode mode direct video to play video sink Signed-off-by: Jaeyun Jung --- nnstreamer_example/example_cam/nnstreamer_example_cam.c | 2 +- nnstreamer_example/example_sink/nnstreamer_sink_example_play.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/nnstreamer_example/example_cam/nnstreamer_example_cam.c b/nnstreamer_example/example_cam/nnstreamer_example_cam.c index 67ebb6c..a085d35 100644 --- a/nnstreamer_example/example_cam/nnstreamer_example_cam.c +++ b/nnstreamer_example/example_cam/nnstreamer_example_cam.c @@ -197,7 +197,7 @@ main (int argc, char **argv) "sink_1::xpos=0 sink_1::ypos=0 sink_1::zorder=1 sink_1::alpha=0.7 ! " "videoconvert ! ximagesink name=img_mixed " "t_raw. ! queue ! mix.sink_0 " - "t_raw. ! queue ! tensor_converter ! tensor_decoder ! videoscale ! video/x-raw,width=%d,height=%d ! mix.sink_1 " + "t_raw. ! queue ! tensor_converter ! tensor_decoder mode=direct_video ! videoscale ! video/x-raw,width=%d,height=%d ! mix.sink_1 " "t_raw. ! queue ! videoconvert ! ximagesink name=img_origin", width, height, width / 2, height / 2); g_app.pipeline = gst_parse_launch (str_pipeline, NULL); diff --git a/nnstreamer_example/example_sink/nnstreamer_sink_example_play.c b/nnstreamer_example/example_sink/nnstreamer_sink_example_play.c index 5840aff..c59f4da 100644 --- a/nnstreamer_example/example_sink/nnstreamer_sink_example_play.c +++ b/nnstreamer_example/example_sink/nnstreamer_sink_example_play.c @@ -296,7 +296,7 @@ main (int argc, char **argv) /** init player pipeline */ str_pipeline = g_strdup_printf - ("appsrc name=player_src ! tensor_decoder ! videoconvert ! ximagesink"); + ("appsrc name=player_src ! tensor_decoder mode=direct_video ! videoconvert ! ximagesink"); g_app.player_pipeline = gst_parse_launch (str_pipeline, NULL); g_free (str_pipeline); _check_cond_err (g_app.player_pipeline != NULL); -- 2.7.4