libavfilter/libmpcodecs/vf_stereo3d.c File Reference

#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"

Go to the source code of this file.

Data Structures

struct  component
struct  vf_priv_s
 Stores persistant variables. More...

Enumerations

enum  stereo_code {
  ANAGLYPH_RC_GRAY, ANAGLYPH_RC_HALF, ANAGLYPH_RC_COLOR, ANAGLYPH_RC_DUBOIS,
  ANAGLYPH_GM_GRAY, ANAGLYPH_GM_HALF, ANAGLYPH_GM_COLOR, ANAGLYPH_YB_GRAY,
  ANAGLYPH_YB_HALF, ANAGLYPH_YB_COLOR, MONO_L, MONO_R,
  SIDE_BY_SIDE_LR, SIDE_BY_SIDE_RL, SIDE_BY_SIDE_2_LR, SIDE_BY_SIDE_2_RL,
  ABOVE_BELOW_LR, ABOVE_BELOW_RL, ABOVE_BELOW_2_LR, ABOVE_BELOW_2_RL,
  INTERLEAVE_ROWS_LR, INTERLEAVE_ROWS_RL, STEREO_CODE_COUNT
}

Functions

static uint8_t ana_convert (int coeff[6], uint8_t left[3], uint8_t right[3])
static int config (struct vf_instance *vf, int width, int height, int d_width, int d_height, unsigned int flags, unsigned int outfmt)
static int put_image (struct vf_instance *vf, mp_image_t *mpi, double pts)
static int query_format (struct vf_instance *vf, unsigned int fmt)
static void uninit (vf_instance_t *vf)
static int vf_open (vf_instance_t *vf, char *args)

Variables

static const int ana_coeff [10][3][6]
struct vf_priv_s vf_priv_default
const vf_info_t vf_info_stereo3d


Enumeration Type Documentation

Enumerator:
ANAGLYPH_RC_GRAY 
ANAGLYPH_RC_HALF 
ANAGLYPH_RC_COLOR 
ANAGLYPH_RC_DUBOIS 
ANAGLYPH_GM_GRAY 
ANAGLYPH_GM_HALF 
ANAGLYPH_GM_COLOR 
ANAGLYPH_YB_GRAY 
ANAGLYPH_YB_HALF 
ANAGLYPH_YB_COLOR 
MONO_L 
MONO_R 
SIDE_BY_SIDE_LR 
SIDE_BY_SIDE_RL 
SIDE_BY_SIDE_2_LR 
SIDE_BY_SIDE_2_RL 
ABOVE_BELOW_LR 
ABOVE_BELOW_RL 
ABOVE_BELOW_2_LR 
ABOVE_BELOW_2_RL 
INTERLEAVE_ROWS_LR 
INTERLEAVE_ROWS_RL 
STEREO_CODE_COUNT 

Definition at line 38 of file vf_stereo3d.c.


Function Documentation

static uint8_t ana_convert ( int  coeff[6],
uint8_t  left[3],
uint8_t  right[3] 
) [inline, static]

Definition at line 121 of file vf_stereo3d.c.

Referenced by put_image().

static int config ( struct vf_instance vf,
int  width,
int  height,
int  d_width,
int  d_height,
unsigned int  flags,
unsigned int  outfmt 
) [static]

Definition at line 131 of file vf_stereo3d.c.

static int put_image ( struct vf_instance vf,
mp_image_t mpi,
double  pts 
) [static]

Definition at line 263 of file vf_stereo3d.c.

static int query_format ( struct vf_instance vf,
unsigned int  fmt 
) [static]

Definition at line 365 of file vf_stereo3d.c.

static void uninit ( vf_instance_t vf  )  [static]

Definition at line 373 of file vf_stereo3d.c.

static int vf_open ( vf_instance_t vf,
char *  args 
) [static]

Definition at line 378 of file vf_stereo3d.c.


Variable Documentation

const int ana_coeff[10][3][6] [static]

Definition at line 75 of file vf_stereo3d.c.

Referenced by config().

Initial value:

 {
    "stereoscopic 3d view",
    "stereo3d",
    "Gordon Schmidt",
    "view stereoscopic videos",
    vf_open,

}

Definition at line 505 of file vf_stereo3d.c.


Generated on Fri Oct 26 02:43:51 2012 for FFmpeg by  doxygen 1.5.8