| 71 | } |
| 72 | |
| 73 | void setSamp(void) |
| 74 | { |
| 75 | if(!sampChoice) return; |
| 76 | if(_Maxsubsamp[fconfig.compress] == _Minsubsamp[fconfig.compress] |
| 77 | && strlen(fconfig.transport) == 0) |
| 78 | sampChoice->deactivate(); |
| 79 | else sampChoice->activate(); |
| 80 | if(strlen(fconfig.transport) == 0) |
| 81 | { |
| 82 | if(_Minsubsamp[fconfig.compress] > 0) |
| 83 | sampChoice->mode(0, FL_MENU_INACTIVE); |
| 84 | else sampChoice->mode(0, 0); |
| 85 | if(_Minsubsamp[fconfig.compress] > 1 || _Maxsubsamp[fconfig.compress] < 1) |
| 86 | sampChoice->mode(1, FL_MENU_INACTIVE); |
| 87 | else sampChoice->mode(1, 0); |
| 88 | if(_Minsubsamp[fconfig.compress] > 2 || _Maxsubsamp[fconfig.compress] < 2) |
| 89 | sampChoice->mode(2, FL_MENU_INACTIVE); |
| 90 | else sampChoice->mode(2, 0); |
| 91 | if(_Minsubsamp[fconfig.compress] > 4 || _Maxsubsamp[fconfig.compress] < 4) |
| 92 | sampChoice->mode(3, FL_MENU_INACTIVE); |
| 93 | else sampChoice->mode(3, 0); |
| 94 | if(_Minsubsamp[fconfig.compress] > 8 || _Maxsubsamp[fconfig.compress] < 8) |
| 95 | sampChoice->mode(4, FL_MENU_INACTIVE); |
| 96 | else sampChoice->mode(4, 0); |
| 97 | if(_Minsubsamp[fconfig.compress] > 16 |
| 98 | || _Maxsubsamp[fconfig.compress] < 16) |
| 99 | sampChoice->mode(5, FL_MENU_INACTIVE); |
| 100 | else sampChoice->mode(5, 0); |
| 101 | } |
| 102 | switch(fconfig.subsamp) |
| 103 | { |
| 104 | case 0: sampChoice->value(0); break; |
| 105 | case 1: sampChoice->value(1); break; |
| 106 | case 2: sampChoice->value(2); break; |
| 107 | case 4: sampChoice->value(3); break; |
| 108 | case 8: sampChoice->value(4); break; |
| 109 | case 16: sampChoice->value(5); break; |
| 110 | } |
| 111 | } |
| 112 | |
| 113 | void setQual(void) |
| 114 | { |