Mercurial > cgi-bin > hgwebdir.cgi > PR > Applications > VSs > VSs__H264__App
comparison h264dec.c @ 3:0b056460c67d
changed code to use VSs
| author | Nina Engelhardt <nengel@mailbox.tu-berlin.de> |
|---|---|
| date | Mon, 29 Oct 2012 16:44:27 +0100 |
| parents | 897f711a7157 |
| children | c8259123d224 |
comparison
equal
deleted
inserted
replaced
| 0:1d48cf2d9468 | 1:cef93a68c4d1 |
|---|---|
| 18 #include <sys/resource.h> | 18 #include <sys/resource.h> |
| 19 #include <time.h> | 19 #include <time.h> |
| 20 | 20 |
| 21 #include <assert.h> | 21 #include <assert.h> |
| 22 | 22 |
| 23 #include "VSs_impl/VSs.h" | |
| 23 | 24 |
| 24 static const char program_name[] = "h264dec"; | 25 static const char program_name[] = "h264dec"; |
| 25 static const int program_birth_year = 2010; | 26 static const int program_birth_year = 2010; |
| 26 | 27 |
| 27 static const char *file_name; | 28 static const char *file_name; |
| 257 av_exit(1); | 258 av_exit(1); |
| 258 } | 259 } |
| 259 | 260 |
| 260 H264Context *h = get_h264dec_context(file_name, ifile, ofile, frame_width, frame_height, &cli_opts); | 261 H264Context *h = get_h264dec_context(file_name, ifile, ofile, frame_width, frame_height, &cli_opts); |
| 261 #if OMPSS | 262 #if OMPSS |
| 262 if (h264_decode_ompss( h ) < 0) | 263 VSs__create_seed_slave_and_do_work( &h264_decode_ompss , (void*)h ); |
| 263 av_exit(-1); | |
| 264 #else | 264 #else |
| 265 if (parallel){ | 265 if (parallel){ |
| 266 if (ARCH_CELL && !no_arch){ | 266 if (ARCH_CELL && !no_arch){ |
| 267 if (h264_decode_cell( h ) < 0) | 267 if (h264_decode_cell( h ) < 0) |
| 268 av_exit(-1); | 268 av_exit(-1); |
