#include <frsh.h>
#endif
+#ifdef CONFIG_STREAMER_WITH_FRSH
+/*temporrary solution to pass network parameters */
extern long int udp_budget, udp_period;
+#endif /*CONFIG_STREAMER_WITH_FRSH*/
static const char *sdp_file = "sdp.txt";
static const char *vdev = "/dev/video0";
printf(" -r <path> video device [%s]\n", vdev);
printf(" -m <addr> destination IP address\n");
printf(" -i <string> input video device format [%s]\n", impform);
+ #ifdef CONFIG_STREAMER_WITH_FRSH
+ printf(" -b <number> network budget\n");
+ printf(" -p <number> network period for given budget\n");
+ #endif /*CONFIG_STREAMER_WITH_FRSH*/
#ifdef CONFIG_OC_ULUT
printf(" -l <number>|<domain>=<number>,...\n");
#endif /*CONFIG_OC_ULUT*/
{
int v;
- while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:")) >= 0) {
+ while ((v = getopt(argc, argv, "w:h:r:d:m:i:l:b:p:")) >= 0) {
switch (v) {
case 'w':
width = atoi(optarg);
else if(!strcmp(impform, "v4l2"))
impform = "video4linux2";
break;
+ #ifdef CONFIG_STREAMER_WITH_FRSH
+ case 'b':
+ udp_budget = atol(optarg);
+ break;
+ case 'p':
+ udp_period = atol(optarg);
+ break;
+ #endif /*CONFIG_STREAMER_WITH_FRSH*/
+
#ifdef CONFIG_OC_ULUT
case 'l':
ul_log_domain_arg2levels(optarg);
#ifdef CONFIG_STREAMER_WITH_FRSH
ret = frsh_init();
if (ret) PERROR_AND_EXIT(ret, "frsh_init1");
-#endif /*CONFIG_STREAMER_WITH_FRSH*/
-
- /* fill contract params */
+
+ /* fill default network contract params */
udp_budget = 50000;
udp_period = 500;
-
+#endif /*CONFIG_STREAMER_WITH_FRSH*/
+
avcodec_register_all();
av_register_all();
avdevice_register_all();