GST_END_TEST
GST_START_TEST (test_glfilterapp)
{
  gchar *s;
  GstState target_state = GST_STATE_PLAYING;

  s = "videotestsrc num-buffers=10 ! glfilterapp ! fakesink";
  run_pipeline (setup_pipeline (s), s,
      GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
      GST_MESSAGE_UNKNOWN, target_state);

  s = "gltestsrc num-buffers=10 ! glfilterapp ! fakesink";
  run_pipeline (setup_pipeline (s), s,
      GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
      GST_MESSAGE_UNKNOWN, target_state);
}
Beispiel #2
0
void RenderSequence::run() {
    scene_.window().apply_func_to_objects(std::bind(&Viewport::clear, std::tr1::placeholders::_1));

    for(Pipeline::ptr pipeline: ordered_pipelines_) {
        run_pipeline(pipeline);
    }
}
Beispiel #3
0
int main(int argc, const char * argv[])
{
    /* constants */
    const int POOL_SIZE = 5;
    
    //process pool
    pid_t pool[POOL_SIZE];
    
    //parent write - children read
    int pipes[POOL_SIZE][2];
    
    signal(SIGCHLD, sigchld_handler);
    
    debug_print("parent pid: %d\n", getpid());
    
    create_pool(pool, POOL_SIZE, pipes);
    
    int marker = run_pipeline(pool, POOL_SIZE, pipes, 0);
    assert(marker == 50);
    
    printf("[%d] all done. marker value: %d\n", (unsigned)time(NULL), marker);
    
    destroy_pool(pool, POOL_SIZE);
    return EXIT_SUCCESS;
}
Beispiel #4
0
int
main (int   argc,
      char *argv[])
{

/*
    Default values
*/
    gchar *output_result_file ="shot.txt";
    gchar *str_pipeline = NULL;

    /* Get input arguments */
    if (get_input_arguments (argc, argv, &option, &output_result_file, &str_pipeline) == FALSE)
    {
        return -1;
    }

    {/* Play the pipeline */
        g_assert( run_pipeline(argc,argv,str_pipeline) == 0);
    }

    {/* print the results */
        print_results (option, output_result_file);
    }

    { /* Cleaning global variables */
        g_hash_table_destroy (timestamps);
    }


    return 0;
}
Beispiel #5
0
TEST_P(jsonWithLAZ, pipeline)
{
#if defined PDAL_HAVE_LASZIP || defined PDAL_HAVE_LAZPERF
    run_pipeline(GetParam());
#else
    std::cerr << "WARNING: no LAZ support, skipping test" << std::endl;
#endif
}
Beispiel #6
0
TEST_P(jsonWithP2G, pipeline)
{
    pdal::StageFactory f;
    pdal::Stage* s = f.createStage("writers.p2g");
    if (s)
        run_pipeline(GetParam());
    else
        std::cerr << "WARNING: could not create writers.p2g, skipping test" << std::endl;
}
Beispiel #7
0
TEST_P(jsonWithHexer, pipeline)
{
    pdal::StageFactory f;
    pdal::Stage* s = f.createStage("filters.hexbin");
    if (s)
        run_pipeline(GetParam());
    else
        std::cerr << "WARNING: could not create filters.hexbin, skipping test" << std::endl;
}
Beispiel #8
0
int run_commands(int no_pipe)
{
  char **v[NCOMMANDS];
  int j = 0;
  for (int i = 0; i < NCOMMANDS; i++)
    if (commands[i].get_name() != 0)
      v[j++] = commands[i].get_argv();
  return run_pipeline(j, v, no_pipe);
}
TEST_P(jsonWithPredicate, pipeline)
{
    pdal::plang::Environment::get();
    pdal::StageFactory f;
    pdal::Stage* s = f.createStage("filters.predicate");
    if (s)
        run_pipeline(GetParam());
    else
        std::cerr << "WARNING: could not create filters.predicate, skipping test" << std::endl;
}
Beispiel #10
0
TEST_P(jsonWithNITF, pipeline)
{
    pdal::StageFactory f;
    pdal::Stage* s1 = f.createStage("readers.nitf");
    pdal::Stage* s2 = f.createStage("writers.nitf");
    if (s1 && s2)
        run_pipeline(GetParam());
    else
        std::cerr << "WARNING: could not create readers.nitf or writers.nitf, skipping test" << std::endl;
}
GST_END_TEST
#undef N_EFFECTS
#if GST_GL_HAVE_OPENGL
#define N_SRCS 13
GST_START_TEST (test_gltestsrc)
{
  gchar *s;
  GstState target_state = GST_STATE_PLAYING;
  guint i;

  for (i = 0; i < N_SRCS; i++) {
    s = g_strdup_printf ("gltestsrc pattern=%i num-buffers=10 ! fakesink", i);
    run_pipeline (setup_pipeline (s), s,
        GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
        GST_MESSAGE_UNKNOWN, target_state);
    g_free (s);
  }
}
GST_END_TEST
#if GST_GL_HAVE_GLES2
# define N_EFFECTS 3
#else
# define N_EFFECTS 16
#endif
GST_START_TEST (test_gleffects)
{
  gchar *s;
  GstState target_state = GST_STATE_PLAYING;
  guint i;

  for (i = 0; i < N_EFFECTS; i++) {
    s = g_strdup_printf ("videotestsrc num-buffers=10 ! gleffects effect=%i"
        " ! fakesink", i);
    run_pipeline (setup_pipeline (s), s,
        GST_MESSAGE_ANY & ~(GST_MESSAGE_ERROR | GST_MESSAGE_WARNING),
        GST_MESSAGE_UNKNOWN, target_state);
    g_free (s);
  }
}
Beispiel #13
0
int main(int argc, char *argv[]) {
    char *pager_env = getenv("PAGER");

    /* Create pipeline    file        argv                        err  next    fallback */
    command_t more     = {"more",     (char *[]){"more", NULL},     0, NULL,   NULL};
    command_t less     = {"less",     (char *[]){"less", NULL},     0, NULL,   &more};
    command_t pager    = {pager_env,  (char *[]){pager_env, NULL},  0, NULL,   &less};
    command_t sort     = {"sort",     (char *[]){"sort", NULL},     0, &pager, NULL};
    command_t grep     = {"grep",     argv,                         0, &sort,  NULL};
    command_t printenv = {"printenv", (char *[]){"printenv", NULL}, 0, &sort,  NULL};

    argv[0] = "grep"; /* Since we reuse argv for grep */

    if (argc > 1) {
        /* Arguments given: Run grep as well */
        printenv.next = &grep;
    }

    /* Run pipeline */
    run_pipeline(&printenv, STDIN_FILENO);

    return 0;
}
Beispiel #14
0
TEST(pipelineNitfTest, write_options)
{ run_pipeline("nitf/write_options.xml"); }
Beispiel #15
0
TEST(pipelineTextTest, geojson_writer)
{ run_pipeline("io/text-writer-geojson.xml"); }
Beispiel #16
0
TEST(pipelinePLangTest, predicate_keep_ground_and_unclass)
{ run_pipeline("plang/predicate-keep-ground-and-unclass.xml"); }
Beispiel #17
0
TEST(pipelineP2gTest, writer)
{ run_pipeline("io/p2g-writer.xml"); }
Beispiel #18
0
TEST_P(json, pipeline)
{
    run_pipeline(GetParam());
}
Beispiel #19
0
TEST(pipelinePLangTest, predicate_keep_last_return)
{ run_pipeline("plang/predicate-keep-last-return.xml"); }
Beispiel #20
0
TEST(pipelineQfitTest, DISABLED_conversion)
{ run_pipeline("qfit/conversion.xml"); }
Beispiel #21
0
TEST(pipelinePLangTest, predicate_keep_specified_returns)
{ run_pipeline("plang/predicate-keep-specified-returns.xml"); }
Beispiel #22
0
TEST(pipelineQfitTest, DISABLED_pipeline)
{ run_pipeline("qfit/pipeline.xml"); }
Beispiel #23
0
TEST(pipelineQfitTest, DISABLED_little_endian_conversion)
{ run_pipeline("qfit/little-endian-conversion.xml"); }
Beispiel #24
0
TEST(pipelineSbetTest, pipeline)
{ run_pipeline("sbet/pipeline.xml"); }
Beispiel #25
0
TEST(pipelineSQLiteTest, DISABLED_reader)
{ run_pipeline("io/sqlite-reader.xml"); }
Beispiel #26
0
TEST(pipelineNitfTest, write_laz)
{ run_pipeline("nitf/write_laz.xml"); }
Beispiel #27
0
TEST(pipelineSQLiteTest, DISABLED_writer)
{ run_pipeline("io/sqlite-writer.xml"); }
Beispiel #28
0
TEST(pipelineTextTest, csv_writer)
{ run_pipeline("io/text-writer-csv.xml"); }
Beispiel #29
0
TEST(pipelineTextTest, space_delimited_writer)
{ run_pipeline("io/text-writer-space-delimited.xml"); }
Beispiel #30
0
TEST(pipelineNitfTest, las2nitf)
{ run_pipeline("nitf/las2nitf.xml"); }