mirror of
https://github.com/outbackdingo/UltraGrid.git
synced 2026-03-22 05:40:27 +00:00
Libug testers: disable strips options
This commit is contained in:
@@ -33,13 +33,14 @@ static void usage(const char *progname) {
|
||||
printf("\t-h - show this help\n");
|
||||
printf("\t-d - display (default vrg)\n");
|
||||
printf("\t-c I420|RGBA - force decompress to codec\n");
|
||||
printf("\t-n - disable strips\n");
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[]) {
|
||||
struct ug_receiver_parameters init_params = { 0 };
|
||||
|
||||
int ch = 0;
|
||||
while ((ch = getopt(argc, argv, "c:d:h")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "c:d:hn")) != -1) {
|
||||
switch (ch) {
|
||||
case 'c':
|
||||
assert(strcmp(optarg, "RGBA") == 0 || strcmp(optarg, "I420") == 0);
|
||||
@@ -51,6 +52,9 @@ int main(int argc, char *argv[]) {
|
||||
case 'h':
|
||||
usage(argv[0]);
|
||||
return 0;
|
||||
case 'n':
|
||||
init_params.disable_strips = 1;
|
||||
break;
|
||||
default:
|
||||
usage(argv[0]);
|
||||
return 1;
|
||||
|
||||
@@ -22,6 +22,7 @@ static void usage(const char *progname) {
|
||||
printf("options:\n");
|
||||
printf("\t-h - show this help\n");
|
||||
printf("\t-j - use JPEG\n");
|
||||
printf("\t-n - disable strips\n");
|
||||
}
|
||||
|
||||
static void fill(unsigned char *data, int width, int height, libug_pixfmt_t pixfmt) {
|
||||
@@ -42,9 +43,10 @@ int main(int argc, char *argv[]) {
|
||||
init_params.compression = UG_UNCOMPRESSED;
|
||||
init_params.rprc = render_packet_received_callback;
|
||||
init_params.rprc_udata = NULL; // not used by render_packet_received_callback()
|
||||
bool disable_strips = false;
|
||||
|
||||
int ch = 0;
|
||||
while ((ch = getopt(argc, argv, "hj")) != -1) {
|
||||
while ((ch = getopt(argc, argv, "hjn")) != -1) {
|
||||
switch (ch) {
|
||||
case 'h':
|
||||
usage(argv[0]);
|
||||
@@ -52,6 +54,9 @@ int main(int argc, char *argv[]) {
|
||||
case 'j':
|
||||
init_params.compression = UG_JPEG;
|
||||
break;
|
||||
case 'n':
|
||||
init_params.disable_strips = 1;
|
||||
break;
|
||||
default:
|
||||
usage(argv[0]);
|
||||
return -2;
|
||||
|
||||
Reference in New Issue
Block a user