videoconvert: Take account of the amount of bitdepth loss for output format selection

... and select a format which has the minimum loss than the others.

Fixes: gstreamer/gst-plugins-base#689
26 jobs for convert-format in 54 minutes and 52 seconds (queued for 29 seconds)
latest
Status Job ID Name Coverage
  Preparation
passed #973085
gst indent

00:00:29

passed #973084
manifest

00:00:37

 
  Build
passed #973095
build cerbero cross-android universal

00:19:52

manual #973099
gst-ios-12.2 allowed to fail manual
build cerbero cross-ios universal
passed #973096
build cerbero cross win32

00:04:18

passed #973097
build cerbero cross win64

00:04:09

passed #973094
build cerbero fedora x86_64

00:05:03

passed #973098
gst-macos-10.14
build cerbero macos x86_64

00:18:18

passed #973090
build clang fedora x86_64

00:05:17

passed #973086
build fedora x86_64

00:06:48

passed #973093
docker windows 1607
build msys2

00:13:13

passed #973087
build nodebug fedora x86_64

00:04:45

passed #973088
build static fedora x86_64

00:11:51

passed #973089
build static nodebug fedora x86_64

00:03:56

passed #973091
docker windows 1607
build vs2017 amd64

00:10:45

passed #973092
docker windows 1607
build vs2017 x86

00:11:32

 
  Test
failed #973100
gstreamer
check fedora

00:03:50

failed #973101
gstreamer
integration testsuites fedora

00:43:11

passed #973105
gstreamer
valgrind bad

00:07:37

passed #973102
gstreamer
valgrind base

00:08:23

passed #973106
gstreamer
valgrind ges

00:06:29

passed #973103
gstreamer
valgrind good

00:08:53

passed #973104
gstreamer
valgrind ugly

00:02:18

 
  Integrate
passed #973107
cross-android universal examples

00:06:07

skipped #973109
gst-ios-12.2 allowed to fail manual
cross-ios universal examples
passed #973108
documentation

00:03:33

 
Name Stage Failure
failed
check fedora Test
!! Could not derive your terminal width !!
Uploading artifacts...
gst-build/build/meson-logs/: found 2 matching files
validate-logs: found 3585 matching files

Uploading artifacts to coordinator... ok
id=973100 responseStatus=201 Created token=pgKaEyik
Uploading artifacts...
validate-logs/*.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=973100 responseStatus=201 Created token=pgKaEyik
ERROR: Job failed: exit code 1
failed
integration testsuites fedora Test
!! Could not derive your terminal width !!
Uploading artifacts...
gst-build/build/meson-logs/: found 2 matching files
validate-logs: found 70084 matching files

Uploading artifacts to coordinator... ok
id=973101 responseStatus=201 Created token=-MK3BV_A
Uploading artifacts...
validate-logs/*.xml: found 1 matching files

Uploading artifacts to coordinator... ok
id=973101 responseStatus=201 Created token=-MK3BV_A
ERROR: Job failed: exit code 1