[Example] update exam pipeline using decoder
authorJaeyun <jy1210.jung@samsung.com>
Thu, 15 Nov 2018 02:48:29 +0000 (11:48 +0900)
committerMyungJoo Ham <myungjoo.ham@gmail.com>
Thu, 15 Nov 2018 06:23:09 +0000 (06:23 +0000)
change decode mode direct video to play video sink

Signed-off-by: Jaeyun Jung <jy1210.jung@samsung.com>
nnstreamer_example/example_cam/nnstreamer_example_cam.c
nnstreamer_example/example_sink/nnstreamer_sink_example_play.c

index 67ebb6c..a085d35 100644 (file)
@@ -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);
index 5840aff..c59f4da 100644 (file)
@@ -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);