Revision 794f8e97

View differences:

configure
159 159
  echo "  --enable-protocol=NAME   enables protocol NAME"
160 160
  echo "  --disable-protocol=NAME  disables protocol NAME"
161 161
  echo "  --disable-protocols      disables all protocols"
162
  echo "  --list-decoders          show all available decoders"
163
  echo "  --list-encoders          show all available encoders"
164
  echo "  --list-muxers            show all available muxers"
165
  echo "  --list-demuxers          show all available demuxers"
166
  echo "  --list-parsers           show all available parsers"
167
  echo "  --list-protocols         show all available protocols"
168
  echo "  --list-bsfs              show all available bitstream filters"
162 169
  echo
163 170
  echo "Developer options (useful when working on FFmpeg itself):"
164 171
  echo "  --enable-gprof           enable profiling with gprof [$gprof]"
......
909 916
    exit 1
910 917
}
911 918

  
919
show_list() {
920
    for part in $*; do
921
        echo $part | sed 's/_[^_]*$//'
922
    done | sort
923
    exit 0
924
}
925

  
912 926
for opt do
913 927
  optval="${opt#*=}"
914 928
  case "$opt" in
......
982 996
  echo "$CMDLINE_SELECT" | grep -q "^ *$option\$" || die_unknown $opt
983 997
  $action $option
984 998
  ;;
999
  --list-*)
1000
    NAME="${opt#--list-}"
1001
    NAME=$(toupper ${NAME%s})
1002
    eval show_list \$${NAME}_LIST
1003
  ;;
985 1004
  --help) show_help
986 1005
  ;;
987 1006
  *)

Also available in: Unified diff