| 120 | } |
| 121 | |
| 122 | void setProf(void) |
| 123 | { |
| 124 | if(!profChoice) return; |
| 125 | if(!fconfig.transvalid[RRTRANS_VGL] || strlen(fconfig.transport) > 0) |
| 126 | { |
| 127 | profChoice->value(3); profChoice->deactivate(); |
| 128 | } |
| 129 | else |
| 130 | { |
| 131 | profChoice->activate(); |
| 132 | if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 30 |
| 133 | && fconfig.subsamp == 4) |
| 134 | profChoice->value(0); |
| 135 | else if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 80 |
| 136 | && fconfig.subsamp == 2) |
| 137 | profChoice->value(1); |
| 138 | else if(fconfig.compress == RRCOMP_JPEG && fconfig.qual == 95 |
| 139 | && fconfig.subsamp == 1) |
| 140 | profChoice->value(2); |
| 141 | else profChoice->value(3); |
| 142 | } |
| 143 | } |
| 144 | |
| 145 | void setIF(void) |
| 146 | { |