summaryrefslogtreecommitdiffstats
path: root/vidix
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-22 15:44:42 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2007-04-22 15:44:42 +0000
commit110c2b9cdc63b26e2c1bfc1d1364dcc0948c846e (patch)
tree38fcb324bde5da033f3df4b08bb8220f980d9bfd /vidix
parent03e61642f92fbf25ca66a3735c3134ae99b48187 (diff)
downloadmpv-110c2b9cdc63b26e2c1bfc1d1364dcc0948c846e.tar.bz2
mpv-110c2b9cdc63b26e2c1bfc1d1364dcc0948c846e.tar.xz
simplified depth definition
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@23078 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'vidix')
-rw-r--r--vidix/mach64_vid.c6
-rw-r--r--vidix/nvidia_vid.c6
-rw-r--r--vidix/pm2_vid.c6
-rw-r--r--vidix/pm3_vid.c6
-rw-r--r--vidix/radeon_vid.c6
-rw-r--r--vidix/savage_vid.c5
-rw-r--r--vidix/unichrome_vid.c5
7 files changed, 7 insertions, 33 deletions
diff --git a/vidix/mach64_vid.c b/vidix/mach64_vid.c
index 649c1e89fe..93f85b83f4 100644
--- a/vidix/mach64_vid.c
+++ b/vidix/mach64_vid.c
@@ -881,11 +881,7 @@ static int mach64_query_fourcc(vidix_fourcc_t *to)
{
if(is_supported_fourcc(to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP| VID_DEPTH_15BPP|
- VID_DEPTH_16BPP| VID_DEPTH_24BPP|
- VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}
diff --git a/vidix/nvidia_vid.c b/vidix/nvidia_vid.c
index e68707b3d5..9f9fe3de20 100644
--- a/vidix/nvidia_vid.c
+++ b/vidix/nvidia_vid.c
@@ -985,11 +985,7 @@ inline static int is_supported_fourcc(uint32_t fourcc)
static int nv_query_fourcc(vidix_fourcc_t *to){
if(is_supported_fourcc(to->fourcc)){
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP| VID_DEPTH_15BPP|
- VID_DEPTH_16BPP| VID_DEPTH_24BPP|
- VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}
diff --git a/vidix/pm2_vid.c b/vidix/pm2_vid.c
index dc78c1c29f..262685fe88 100644
--- a/vidix/pm2_vid.c
+++ b/vidix/pm2_vid.c
@@ -171,11 +171,7 @@ static int pm2_query_fourcc(vidix_fourcc_t *to)
{
if(is_supported_fourcc(to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP| VID_DEPTH_15BPP|
- VID_DEPTH_16BPP| VID_DEPTH_24BPP|
- VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}
diff --git a/vidix/pm3_vid.c b/vidix/pm3_vid.c
index 8dbf0cd2b2..d9b463e040 100644
--- a/vidix/pm3_vid.c
+++ b/vidix/pm3_vid.c
@@ -164,11 +164,7 @@ static int pm3_query_fourcc(vidix_fourcc_t *to)
{
if(is_supported_fourcc(to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP| VID_DEPTH_15BPP|
- VID_DEPTH_16BPP| VID_DEPTH_24BPP|
- VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}
diff --git a/vidix/radeon_vid.c b/vidix/radeon_vid.c
index 36a55f96e6..c76bbea98a 100644
--- a/vidix/radeon_vid.c
+++ b/vidix/radeon_vid.c
@@ -1474,11 +1474,7 @@ static int radeon_query_fourcc(vidix_fourcc_t *to)
{
if(is_supported_fourcc(to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP| VID_DEPTH_15BPP|
- VID_DEPTH_16BPP| VID_DEPTH_24BPP|
- VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY |
VID_CAP_BLEND;
return 0;
diff --git a/vidix/savage_vid.c b/vidix/savage_vid.c
index 599852f68f..d352614df0 100644
--- a/vidix/savage_vid.c
+++ b/vidix/savage_vid.c
@@ -1066,10 +1066,7 @@ savage_query_fourcc (vidix_fourcc_t * to)
{
if (is_supported_fourcc (to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP | VID_DEPTH_15BPP |
- VID_DEPTH_16BPP | VID_DEPTH_24BPP | VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}
diff --git a/vidix/unichrome_vid.c b/vidix/unichrome_vid.c
index 9c5cfe4c4a..70f756bb87 100644
--- a/vidix/unichrome_vid.c
+++ b/vidix/unichrome_vid.c
@@ -637,10 +637,7 @@ unichrome_query_fourcc (vidix_fourcc_t * to)
{
if (is_supported_fourcc (to->fourcc))
{
- to->depth = VID_DEPTH_1BPP | VID_DEPTH_2BPP |
- VID_DEPTH_4BPP | VID_DEPTH_8BPP |
- VID_DEPTH_12BPP | VID_DEPTH_15BPP |
- VID_DEPTH_16BPP | VID_DEPTH_24BPP | VID_DEPTH_32BPP;
+ to->depth = VID_DEPTH_ALL;
to->flags = VID_CAP_EXPAND | VID_CAP_SHRINK | VID_CAP_COLORKEY;
return 0;
}