[MPlayer-dev-eng] [PATCH] view stereoscopic videos

Gordon Schmidt gordon.schmidt at s2000.tu-chemnitz.de
Tue Feb 2 15:23:36 CET 2010


Hi,

thanks for the comments. I've changed the stuff Reimar Döffinger and  
Diego Biurrun remarked.

On Mon, Feb 01, 2010 at 09:10:19PM +0100, Reimar Döffinger wrote:
> Overall resulting in
> static inline uint8_t ana_conv(int coeff[6], int rl, int gl, int bl,  
> int rr, int gr, int gl)
> {...}
> ana_conv(vf->priv->ana_matrix[i], ...);
>
> Also I suggest changing the shift from >> 10 to >> 16 (and adjusting  
> the constants appropriately).
> This will be faster on some architectures and also easier to  
> accelerate with SIMD.
done

> Maybe move NOT_SET last or add a STEREO_CODE_COUNT last so you can verify
> the command-line values?
done

> && ?
> Personally I consider
> (width & 3) etc. more readable.
what's with the logical AND?
Since i've removed YV12 support, width and height don't need to be  
divisible by 4 any longer, only divisible by 2 for the above-below  
variants - i've used width & 1 instead.

> I think it would be nicer if you declared those values as static const
> tables and copied them over to ana_maatrix with memcpy.
> Maybe a bit too hackish, but if you put the ANAGLYPH enums first you could
> even do something like
> memcpy(vf->priv->ana_matrix, ana_tables[format],  
> sizeof(vf->priv->ana_matrix));
> for all of those.
done

> One space more than necessary for aligning the +=?
done

> That's far too much code.
> Use a table + loop to do the string -> number conversion.
> Has also the advantage that it's easy to reuse it if you ever want to do
> the conversion the other way round.
I'm not sure, how you meant that, but i've changed something. Please  
have another look.

> Look at e.g. vf_scale.c and there the vf_opts_fields
> for how to reuse the parsing code MPlayer already has.
> Actually vf_format is probably the simples example,
> it contains almost no other code.
> By adding m_struct_t to vf_info_t you also don't need
> to alloc and initialize vf->priv manually.
I left this out for now, i'm not sure how to do it.

On Mon, Feb 02, 2010 at 01:15:21PM +0100, Diego Biurrun wrote:
> Get rid of all tabs and trailing whitespace, break those long
> lines please.
I hope i've found every mistake.

Regards
Gordon
-------------- next part --------------
Index: libmpcodecs/vf_stereo3d.c
===================================================================
--- libmpcodecs/vf_stereo3d.c	(revision 0)
+++ libmpcodecs/vf_stereo3d.c	(revision 0)
@@ -0,0 +1,405 @@
+/*
+ * Copyright (C) 2010 Gordon Schmidt <gordon.schmidt at s2000.tu-chemnitz.de>
+ *
+ * This file is part of MPlayer.
+ *
+ * MPlayer is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * MPlayer is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License along
+ * with MPlayer; if not, write to the Free Software Foundation, Inc.,
+ * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
+ */
+
+//==includes==//
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+
+#include "config.h"
+#include "mp_msg.h"
+#include "help_mp.h"
+
+#include "img_format.h"
+#include "mp_image.h"
+#include "vf.h"
+
+#include "libavutil/common.h"
+#include "libvo/fastmemcpy.h"
+
+//==types==//
+typedef enum stereo_code {
+    ANAGLYPH_RC_GRAY,   //anaglyph red/cyan gray
+    ANAGLYPH_RC_HALF,   //anaglyph red/cyan half colored
+    ANAGLYPH_RC_COLOR,  //anaglyph red/cyan colored
+    ANAGLYPH_RC_DUBOIS, //anaglyph red/cyan dubois
+    ANAGLYPH_GM_GRAY,   //anaglyph green/magenta gray
+    ANAGLYPH_GM_HALF,   //anaglyph green/magenta half colored
+    ANAGLYPH_GM_COLOR,  //anaglyph green/magenta colored
+    ANAGLYPH_YB_GRAY,   //anaglyph yellow/blue gray
+    ANAGLYPH_YB_HALF,   //anaglyph yellow/blue half colored
+    ANAGLYPH_YB_COLOR,  //anaglyph yellow/blue colored
+    MONO_L,             //mono output for debugging (left eye only)
+    MONO_R,             //mono output for debugging (right eye only)
+    SIDE_BY_SIDE_LR,    //side by side parallel (left eye left, right eye right)
+    SIDE_BY_SIDE_RL,    //side by side crosseye (right eye left, left eye right)
+    ABOVE_BELOW_LR,     //above-below (left eye above, right eye below)
+    ABOVE_BELOW_RL,     //above-below (right eye above, left eye below)
+    ABOVE_BELOW_2_LR,   //above-below with half height resolution
+    ABOVE_BELOW_2_RL,   //above-below with half height resolution
+    STEREO_CODE_COUNT   //no value set - TODO: needs autodetection
+} stereo_code;
+
+typedef struct component {
+    unsigned int width;
+    unsigned int height;
+    unsigned int off_left;
+    unsigned int off_right;
+    unsigned int stride;
+    unsigned int hres;
+    stereo_code  fmt;
+} component;
+
+//==global variables==//
+static const char* stereo_code_strings[STEREO_CODE_COUNT][2] = {
+    {"arcg", "anaglyph_red_cyan_gray"},             //ANAGLYPH_RC_GRAY
+    {"arch", "anaglyph_red_cyan_half_color"},       //ANAGLYPH_RC_HALF
+    {"arcc", "anaglyph_red_cyan_color"},            //ANAGLYPH_RC_COLOR
+    {"arcd", "anaglyph_red_cyan_dubios"},           //ANAGLYPH_RC_DUBOIS
+    {"agmg", "anaglyph_green_magenta_gray"},        //ANAGLYPH_GM_GRAY
+    {"agmh", "anaglyph_green_magenta_half_color"},  //ANAGLYPH_GM_HALF
+    {"agmc", "anaglyph_green_magenta_color"},       //ANAGLYPH_GM_COLOR
+    {"aybg", "anaglyph_yellow_blue_gray"},          //ANAGLYPH_YB_GRAY
+    {"aybh", "anaglyph_yellow_blue_half_color"},    //ANAGLYPH_YB_HALF
+    {"aybc", "anaglyph_yellow_blue_color"},         //ANAGLYPH_YB_COLOR
+    {"ml",   "mono_left"},                          //MONO_L
+    {"mr",   "mono_right"},                         //MONO_R
+    {"sbsl", "side_by_side_left_first"},            //SIDE_BY_SIDE_LR
+    {"sbsr", "side_by_side_right_first"},           //SIDE_BY_SIDE_RL
+    {"abl",  "above_below_left_first"},             //ABOVE_BELOW_LR
+    {"abr",  "above_below_right_first"},            //ABOVE_BELOW_RL
+    {"ab2l", "above_below_half_height_left_first"}, //ABOVE_BELOW_2_LR
+    {"ab2r", "above_below_half_height_right_first"} //ABOVE_BELOW_2_RL
+};
+
+static const int ana_coeff[10][3][6] = {
+    {{19595, 38470,  7471,     0,     0,     0},    //ANAGLYPH_RC_GRAY
+     {    0,     0,     0, 19595, 38470,  7471},
+     {    0,     0,     0, 19595, 38470,  7471}},
+    {{19595, 38470,  7471,     0,     0,     0},    //ANAGLYPH_RC_HALF
+     {    0,     0,     0,     0, 65536,     0},
+     {    0,     0,     0,     0,     0, 65536}},
+    {{65536,     0,     0,     0,     0,     0},    //ANAGLYPH_RC_COLOR
+     {    0,     0,     0,     0, 65536,     0},
+     {    0,     0,     0,     0,     0, 65536}},
+    {{29891, 32800, 11559, -2849, -5763,  -102},    //ANAGLYPH_RC_DUBOIS
+     {-2627, -2479, -1033, 24804, 48080, -1209},
+     { -997, -1350,  -358, -4729, -7403, 80373}},
+    {{    0,     0,     0, 19595, 38470,  7471},    //ANAGLYPH_GM_GRAY
+     {19595, 38470,  7471,     0,     0,     0},
+     {    0,     0,     0, 19595, 38470,  7471}},
+    {{    0,     0,     0, 65536,     0,     0},    //ANAGLYPH_GM_HALF
+     {19595, 38470,  7471,     0,     0,     0},
+     {    0,     0,     0,     0,     0, 65536}},
+    {{    0,     0,     0, 65536,     0,     0},    //ANAGLYPH_GM_COLOR
+     {    0, 65536,     0,     0,     0,     0},
+     {    0,     0,     0,     0,     0, 65536}},
+    {{    0,     0,     0, 19595, 38470,  7471},    //ANAGLYPH_YB_GRAY
+     {    0,     0,     0, 19595, 38470,  7471},
+     {19595, 38470,  7471,     0,     0,     0}},
+    {{    0,     0,     0, 65536,     0,     0},    //ANAGLYPH_YB_HALF
+     {    0,     0,     0,     0, 65536,     0},
+     {19595, 38470,  7471,     0,     0,     0}},
+    {{    0,     0,     0, 65536,     0,     0},    //ANAGLYPH_YB_COLOR
+     {    0,     0,     0,     0, 65536,     0},
+     {    0,     0, 65536,     0,     0,     0}}
+};
+
+struct vf_priv_s {
+    int ana_matrix[3][6];
+    unsigned int width;
+    unsigned int height;
+    component in;
+    component out;
+};
+
+extern int opt_screen_size_x;
+extern int opt_screen_size_y;
+
+//==functions==//
+static inline uint8_t ana_convert(int coeff[6], int rl, int gl, int bl,
+    int rr, int gr, int br)
+{
+    return av_clip_uint8(((coeff[0] * rl + coeff[1] * gl + coeff[2] * bl
+         + coeff[3] * rr + coeff[4] * gr + coeff[5] * br) >> 16));
+}
+
+static int config(struct vf_instance_s *vf, int width, int height, int d_width,
+                  int d_height, unsigned int flags, unsigned int outfmt)
+{
+    if ((width & 1) && (height & 1)) {
+        mp_msg(MSGT_VFILTER, MSGL_WARN, "[stereo3d] invalid height or width\n");
+        return 0;
+    }
+    //default input values
+    vf->priv->width             = width;
+    vf->priv->height            = height;
+    vf->priv->in.width          = width;
+    vf->priv->in.height         = height;
+    vf->priv->in.hres           = 1;
+    vf->priv->in.off_left       = 0;
+    vf->priv->in.off_right      = 0;
+    vf->priv->in.stride         = vf->priv->width * 3;
+
+    //check input format
+    switch (vf->priv->in.fmt) {
+    case SIDE_BY_SIDE_LR:
+        vf->priv->width         = width / 2;
+        vf->priv->in.off_right  = vf->priv->width * 3;
+        vf->priv->in.stride     = vf->priv->width * 6;
+        break;
+    case SIDE_BY_SIDE_RL:
+        vf->priv->width         = width / 2;
+        vf->priv->in.off_left   = vf->priv->width * 3;
+        vf->priv->in.stride     = vf->priv->width * 6;
+        break;
+    case ABOVE_BELOW_LR:
+        vf->priv->height        = height / 2;
+        vf->priv->in.off_right  = vf->priv->width * vf->priv->height * 3;
+        break;
+    case ABOVE_BELOW_RL:
+        vf->priv->height        = height / 2;
+        vf->priv->in.off_left   = vf->priv->width * vf->priv->height * 3;
+        break;
+    case ABOVE_BELOW_2_LR:
+        vf->priv->in.hres       = 2;
+        vf->priv->in.off_right  = vf->priv->width * vf->priv->height / 2 * 3;
+        break;
+    case ABOVE_BELOW_2_RL:
+        vf->priv->in.hres       = 2;
+        vf->priv->in.off_left   = vf->priv->width * vf->priv->height / 2 * 3;
+        break;
+    default:
+        mp_msg(MSGT_VFILTER, MSGL_WARN,
+               "[stereo3d] stereo format of input is not supported\n");
+        return 0;
+        break;
+    }
+    //default output values
+    vf->priv->out.width         = vf->priv->width;
+    vf->priv->out.height        = vf->priv->height;
+    vf->priv->out.hres          = 1;
+    vf->priv->out.off_left      = 0;
+    vf->priv->out.off_right     = 0;
+    vf->priv->out.stride        = vf->priv->width * 3;
+
+    //check output format
+    switch (vf->priv->out.fmt) {
+    case ANAGLYPH_RC_GRAY:
+    case ANAGLYPH_RC_HALF:
+    case ANAGLYPH_RC_COLOR:
+    case ANAGLYPH_RC_DUBOIS:
+    case ANAGLYPH_GM_GRAY:
+    case ANAGLYPH_GM_HALF:
+    case ANAGLYPH_GM_COLOR:
+    case ANAGLYPH_YB_GRAY:
+    case ANAGLYPH_YB_HALF:
+    case ANAGLYPH_YB_COLOR:
+        memcpy(vf->priv->ana_matrix, ana_coeff[vf->priv->out.fmt],
+               sizeof(vf->priv->ana_matrix));
+        break;
+    case SIDE_BY_SIDE_LR:
+        vf->priv->out.width     = vf->priv->width * 2;
+        vf->priv->out.off_right = vf->priv->width * 3;
+        vf->priv->out.stride    = vf->priv->width * 6;
+        break;
+    case SIDE_BY_SIDE_RL:
+        vf->priv->out.width     = vf->priv->width * 2;
+        vf->priv->out.off_left  = vf->priv->width * 3;
+        vf->priv->out.stride    = vf->priv->width * 6;
+        break;
+    case ABOVE_BELOW_LR:
+        vf->priv->out.height    = vf->priv->height * 2;
+        vf->priv->out.off_right = vf->priv->width * vf->priv->height * 3;
+        break;
+    case ABOVE_BELOW_RL:
+        vf->priv->out.height    = vf->priv->height * 2;
+        vf->priv->out.off_left  = vf->priv->width * vf->priv->height * 3;
+        break;
+    case ABOVE_BELOW_2_LR:
+        vf->priv->out.hres      = 2;
+        vf->priv->out.off_right = vf->priv->width * vf->priv->height / 2 * 3;
+        break;
+    case ABOVE_BELOW_2_RL:
+        vf->priv->out.hres      = 2;
+        vf->priv->out.off_left  = vf->priv->width * vf->priv->height / 2 * 3;
+        break;
+    case MONO_R:
+        //same as MONO_L only needs switching of input offsets 
+        vf->priv->in.off_left   = vf->priv->in.off_right;
+        //nobreak;
+    case MONO_L:
+        //use default settings
+        break;
+    default:
+        mp_msg(MSGT_VFILTER, MSGL_WARN,
+            "[stereo3d] stereo format of output is not supported\n");
+        return 0;
+        break;
+    }
+    if (!opt_screen_size_x && !opt_screen_size_y) {
+        d_width     = d_width  * vf->priv->out.width  / width;
+        d_height    = d_height * vf->priv->out.height / height;
+    }
+    return vf_next_config(vf, vf->priv->out.width, vf->priv->out.height,
+                          d_width, d_height, flags, outfmt);
+}
+
+static int put_image(struct vf_instance_s *vf, mp_image_t *mpi, double pts)
+{
+    mp_image_t *dmpi;
+    if (vf->priv->in.fmt == vf->priv->out.fmt) { //nothing to do
+        dmpi = mpi; 
+    } else {
+        dmpi = vf_get_image(vf->next, IMGFMT_RGB24, MP_IMGTYPE_TEMP, 0,
+                            vf->priv->out.width, vf->priv->out.height);
+        dmpi->h = vf->priv->out.height;
+        dmpi->width = vf->priv->out.width;
+        switch (vf->priv->out.fmt) {
+        case SIDE_BY_SIDE_LR:
+        case SIDE_BY_SIDE_RL:
+        case ABOVE_BELOW_LR:
+        case ABOVE_BELOW_RL:
+        case ABOVE_BELOW_2_LR:
+        case ABOVE_BELOW_2_RL:
+            for (int i = 0; i < vf->priv->in.hres; i++) {
+                memcpy_pic(dmpi->planes[0] + vf->priv->out.off_left +
+                           (i * vf->priv->out.stride), mpi->planes[0] +
+                           vf->priv->in.off_left, 3 * vf->priv->width,
+                           vf->priv->height / (vf->priv->in.hres *
+                           vf->priv->out.hres), vf->priv->out.stride *
+                           vf->priv->in.hres, vf->priv->in.stride *
+                           vf->priv->out.hres);
+                memcpy_pic(dmpi->planes[0] + vf->priv->out.off_right +
+                           (i * vf->priv->out.stride), mpi->planes[0] + 
+                           vf->priv->in.off_right, 3 * vf->priv->width,
+                           vf->priv->height / (vf->priv->in.hres *
+                           vf->priv->out.hres), vf->priv->out.stride *
+                           vf->priv->in.hres, vf->priv->in.stride *
+                           vf->priv->out.hres);
+            }
+            break;
+        case MONO_L:
+        case MONO_R:
+            for (int i = 0; i < vf->priv->in.hres; i++) {
+                memcpy_pic(dmpi->planes[0] + (i * vf->priv->out.stride),
+                           mpi->planes[0] + vf->priv->in.off_left, 3 *
+                           vf->priv->width, vf->priv->height /
+                           vf->priv->in.hres, vf->priv->out.stride *
+                           vf->priv->in.hres, vf->priv->in.stride);
+            }
+            break;
+        case ANAGLYPH_RC_GRAY:
+        case ANAGLYPH_RC_HALF:
+        case ANAGLYPH_RC_COLOR:
+        case ANAGLYPH_RC_DUBOIS:
+        case ANAGLYPH_GM_GRAY:
+        case ANAGLYPH_GM_HALF:
+        case ANAGLYPH_GM_COLOR:
+        case ANAGLYPH_YB_GRAY:
+        case ANAGLYPH_YB_HALF:
+        case ANAGLYPH_YB_COLOR: {
+            int x,y,rl,gl,bl,rr,gr,br,il,ir,o;
+            for (y = 0; y < vf->priv->out.height; y++) {
+                o   = vf->priv->out.stride * y;
+                il  = vf->priv->in.off_left  + (y / vf->priv->in.hres) *
+                      vf->priv->in.stride;
+                ir  = vf->priv->in.off_right + (y / vf->priv->in.hres) *
+                      vf->priv->in.stride;
+                for (x = 0; x < vf->priv->out.width; x++) {
+                    rl  = mpi->planes[0][il    ];
+                    gl  = mpi->planes[0][il + 1];
+                    bl  = mpi->planes[0][il + 2];
+                    rr  = mpi->planes[0][ir    ];
+                    gr  = mpi->planes[0][ir + 1];
+                    br  = mpi->planes[0][ir + 2];
+                    dmpi->planes[0][o    ]  = ana_convert(
+                        vf->priv->ana_matrix[0], rl, gl, bl, rr, gr, br);
+                    dmpi->planes[0][o + 1]  = ana_convert(
+                        vf->priv->ana_matrix[1], rl, gl, bl, rr, gr, br);
+                    dmpi->planes[0][o + 2]  = ana_convert(
+                        vf->priv->ana_matrix[2], rl, gl, bl, rr, gr, br);
+                    il += 3;
+                    ir += 3;
+                    o  += 3;
+                }
+            }
+            break;
+        }
+        default:
+            mp_msg(MSGT_VFILTER, MSGL_WARN,
+                   "[stereo3d] stereo format of output is not supported\n");
+            return 0;
+            break;
+        }
+    }
+    return vf_next_put_image(vf, dmpi, pts);
+}
+
+static int query_format(struct vf_instance_s *vf, unsigned int fmt)
+{
+    switch (fmt)
+    case IMGFMT_RGB24:
+        return vf_next_query_format(vf, fmt);
+    return 0;
+}
+
+static stereo_code get_arg(char *arg)
+{
+    for (int i = 0; i < STEREO_CODE_COUNT; i++) {
+        if ((0 == strcmp(arg, stereo_code_strings[i][0])) ||
+            (0 == strcmp(arg, stereo_code_strings[i][1]))) {
+            return (stereo_code)i;
+        }
+    }
+    return STEREO_CODE_COUNT;
+}
+
+static void uninit(struct vf_instance_s *vf)
+{
+    free(vf->priv);
+}
+
+static int open(vf_instance_t *vf, char *args)
+{
+    vf->priv = calloc(1, sizeof(struct vf_priv_s));
+    vf->config          = config;
+    vf->uninit          = uninit;
+    vf->put_image       = put_image;
+    vf->query_format    = query_format;
+    vf->default_reqs    = VFCAP_ACCEPT_STRIDE;
+    if (args) {
+        //input code
+        vf->priv->in.fmt = get_arg(strtok(args, ": \0\n"));
+        //output code
+        vf->priv->out.fmt = get_arg(strtok(NULL, ": \0\n"));
+    }
+    return 1;
+}
+
+//==info struct==//
+const vf_info_t vf_info_stereo3d = {
+    "stereoscopic 3d view",
+    "stereo3d",
+    "Gordon Schmidt",
+    "view stereoscopic videos",
+    open,
+    NULL
+};
Index: libmpcodecs/vf.c
===================================================================
--- libmpcodecs/vf.c	(revision 30485)
+++ libmpcodecs/vf.c	(working copy)
@@ -118,6 +118,7 @@
 extern const vf_info_t vf_info_blackframe;
 extern const vf_info_t vf_info_geq;
 extern const vf_info_t vf_info_ow;
+extern const vf_info_t vf_info_stereo3d;
 
 // list of available filters:
 static const vf_info_t* const filter_list[]={
@@ -211,6 +212,7 @@
     &vf_info_yadif,
     &vf_info_blackframe,
     &vf_info_ow,
+    &vf_info_stereo3d,
     NULL
 };
 
Index: Makefile
===================================================================
--- Makefile	(revision 30485)
+++ Makefile	(working copy)
@@ -453,6 +453,7 @@
               libmpcodecs/vf_smartblur.c \
               libmpcodecs/vf_softpulldown.c \
               libmpcodecs/vf_softskip.c \
+              libmpcodecs/vf_stereo3d.c \
               libmpcodecs/vf_swapuv.c \
               libmpcodecs/vf_telecine.c \
               libmpcodecs/vf_test.c \
Index: DOCS/man/en/mplayer.1
===================================================================
--- DOCS/man/en/mplayer.1	(revision 30485)
+++ DOCS/man/en/mplayer.1	(working copy)
@@ -7470,8 +7470,104 @@
 .IPs <threshold>
 Threshold below which a pixel value is considered black (default: 32).
 .RE
+.PD 1
 .
 .TP
+.B stereo3d[=in:out]
+Stereo3d converts between different stereoscopic image formats.
+.RSs
+.IPs <in>
+Stereoscopic image format of input. Possible values:
+.RS
+.B sbsl or side_by_side_left_first
+.RS
+side by side parallel (left eye left, right eye right)
+.RE
+.B sbsr or side_by_side_right_first
+.RS
+side by side crosseye (right eye left, left eye right)
+.RE
+.B abl or above_below_left_first
+.RS
+above-below (left eye above, right eye below)
+.RE
+.B abl or above_below_right_first
+.RS
+above-below (right eye above, left eye below)
+.RE
+.B ab2l or above_below_half_height_left_first
+.RS
+above-below with half height resolution (left eye above, right eye below)
+.RE
+.B ab2r or above_below_half_height_right_first
+.RS
+above-below with half height resolution (right eye above, left eye below)
+.RE
+.RE
+.IPs <out>
+Stereoscopic image format of output. Possible values are all the input formats
+as well as:
+.RS
+.B arcg or anaglyph_red_cyan_gray
+.RS
+anaglyph red/cyan gray (red filter on left eye, cyan filter on right eye)
+.RE
+.B arch or anaglyph_red_cyan_half_color
+.RS
+anaglyph red/cyan half colored (red filter on left eye, cyan filter on right
+eye)
+.RE
+.B arcc or anaglyph_red_cyan_color
+.RS
+anaglyph red/cyan color (red filter on left eye, cyan filter on right eye)
+.RE
+.B arcd or anaglyph_red_cyan_dubois
+.RS
+anaglyph red/cyan color optimized with the least squares projection of dubois
+(red filter on left eye, cyan filter on right eye)
+.RE
+.B agmg or anaglyph_green_magenta_gray
+.RS
+anaglyph green/magenta gray (green filter on left eye, magenta filter on right
+eye)
+.RE
+.B agmh or anaglyph_green_magenta_half_color
+.RS
+anaglyph green/magenta half colored (green filter on left eye, magenta filter on
+right eye)
+.RE
+.B agmc or anaglyph_green_magenta_color
+.RS
+anaglyph green/magenta colored (green filter on left eye, magenta filter on
+right eye)
+.RE
+.B aybg or anaglyph_yellow_blue_gray
+.RS
+anaglyph yellow/blue gray (yellow filter on left eye, blue filter on right eye)
+.RE
+.B aybh or anaglyph_yellow_blue_half_color
+.RS
+anaglyph yellow/blue half colored (yellow filter on left eye, blue filter on
+right eye)
+.RE
+.B aybc or anaglyph_yellow_blue_color
+.RS
+anaglyph yellow/blue colored (yellow filter on left eye, blue filter on right
+eye)
+.RE
+.B ml or mono_left
+.RS
+mono output (left eye only)
+.RE
+.B mr or mono_right
+.RS
+mono output (right eye only)
+.RE
+.RE
+.RE
+.PD 1
+.
+.TP
 .B gradfun[=strength[:radius]]
 Fix the banding artifacts that are sometimes introduced into nearly flat
 regions by truncation to 8bit colordepth.
Index: DOCS/man/de/mplayer.1
===================================================================
--- DOCS/man/de/mplayer.1	(revision 30485)
+++ DOCS/man/de/mplayer.1	(working copy)
@@ -7543,9 +7543,106 @@
 Schwellenwert, unter dem ein Pixelwert als schwarz angenommen wird
 (Standard: 32).
 .RE
+.PD 1
 .
+.TP
+.B stereo3d[=in:out]
+Stereo3d wandelt zwischen verschiedenen stereoskopischen Bildformaten um.
+.RSs
+.IPs <in>
+Stereoskopisches Eingabeformat. M?che Werte:
+.RS
+.B sbsl oder side_by_side_left_first
+.RS
+nebeneinander parallel (linkes Auge links, rechtes Auge rechts)
+.RE
+.B sbsr oder side_by_side_right_first
+.RS
+nebeneinander gekreuzt (rechtes Auge links, linkes Auge rechts)
+.RE
+.B abl oder above_below_left_first
+.RS
+oben-unten (linkes Auge oben, rechtes Auge unten)
+.RE
+.B abl oder above_below_right_first
+.RS
+oben-unten (rechtes Auge oben, linkes Auge unten)
+.RE
+.B ab2l oder above_below_half_height_left_first
+.RS
+oben-unten mit halber H?aufl?g (linkes Auge oben, rechtes Auge unten)
+.RE
+.B ab2r oder above_below_half_height_right_first
+.RS
+oben-unten mit halber H?aufl?g (rechtes Auge oben, linkes Auge unten)
+.RE
+.RE
+.IPs <out>
+Stereoskopisches Ausgabeformat. M?che Werte sind alle Eingabeformate, sowie:
+.RS
+.B arcg oder anaglyph_red_cyan_gray
+.RS
+anaglyph rot/cyan grau (roter Filter auf dem linken Auge, cyan Filter auf dem
+rechten Auge)
+.RE
+.B arch oder anaglyph_red_cyan_half_color
+.RS
+anaglyph rot/cyan halbfarbig (roter Filter auf dem linken Auge, cyan Filter auf
+dem rechten Auge)
+.RE
+.B arcc oder anaglyph_red_cyan_color
+.RS
+anaglyph rot/cyan farbig (roter Filter auf dem linken Auge, cyan Filter auf dem
+rechten Auge)
+.RE
+.B arcd oder anaglyph_red_cyan_dubios
+.RS
+anaglyph red/cyan farbig optimiert mit der Least-Squares-Projektion von Dubois
+(roter Filter auf dem linken Auge, cyan Filter auf dem rechten Auge)
+.RE
+.B agmg oder anaglyph_green_magenta_gray
+.RS
+anaglyph gr?enta grau (gr?ilter auf dem linken Auge, magenta Filter
+auf dem rechten Auge)
+.RE
+.B agmh oder anaglyph_green_magenta_half_color
+.RS
+anaglyph gr?enta halbfarbig (gr?ilter auf dem linken Auge, magenta
+Filter auf dem rechten Auge)
+.RE
+.B agmc oder anaglyph_green_magenta_color
+.RS
+anaglyph gr?enta farbig (gr?ilter auf dem linken Auge, magenta Filter
+auf dem rechten Auge)
+.RE
+.B aybg oder anaglyph_yellow_blue_gray
+.RS
+anaglyph gelb/blau grau (gelber Filter auf dem linken Auge, blauer Filter auf
+dem rechten Auge)
+.RE
+.B aybh oder anaglyph_yellow_blue_half_color
+.RS
+anaglyph gelb/blau halbfarbig (gelber Filter auf dem linken Auge, blauer Filter
+auf dem rechten Auge)
+.RE
+.B aybc oder anaglyph_yellow_blue_color
+.RS
+anaglyph gelb/blau farbig (gelber Filter auf dem linken Auge, blauer Filter auf
+dem rechten Auge)
+.RE
+.B ml oder mono_left
+.RS
+mono Ausgabe (nur linkes Auge)
+.RE
+.B mr oder mono_right
+.RS
+mono Ausgabe (nur rechtes Auge)
+.RE
+.RE
+.RE
 .
 .
+.
 .SH "ALLGEMEINE ENCODING-OPTIONEN (NUR BEI MENCODER)"
 .
 .TP


More information about the MPlayer-dev-eng mailing list