~ubuntu-branches/ubuntu/maverick/vlc/maverick

« back to all changes in this revision

Viewing changes to modules/misc/dummy/vout.c

  • Committer: Bazaar Package Importer
  • Author(s): Reinhard Tartler
  • Date: 2008-09-17 21:56:14 UTC
  • mfrom: (1.1.17 upstream)
  • Revision ID: james.westby@ubuntu.com-20080917215614-tj0vx8xzd57e52t8
Tags: 0.9.2-1ubuntu1
* New Upstream Release, exception granted by
    - dktrkranz, norsetto, Hobbsee (via irc). LP: #270404

Changes done in ubuntu:

* add libxul-dev to build-depends
* make sure that vlc is build against libxul in configure. This doesn't
  change anything in the package, but makes it more robust if building
  in an 'unclean' chroot or when modifying the package.
* debian/control: make Vcs-* fields point to the motumedia branch
* add libx264-dev and libass-dev to build-depends
  LP: #210354, #199870
* actually enable libass support by passing --enable-libass to configure
* enable libdca: add libdca-dev to build depends and --enable-libdca
* install the x264 plugin.

Changes already in the pkg-multimedia branch in debian:

* don't install usr/share/vlc/mozilla in debian/mozilla-plugin-vlc.install  
* new upstream .desktop file now registers flash video mimetype LP: #261567
* add Xb-Npp-Applications to mozilla-plugin-vlc
* remove duplicate entries in debian/vlc-nox.install

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * vout_dummy.c: Dummy video output display method for testing purposes
3
3
 *****************************************************************************
4
4
 * Copyright (C) 2000, 2001 the VideoLAN team
5
 
 * $Id: 44bc425d4df7d19edcb136acdbffaa8e407f92d4 $
 
5
 * $Id$
6
6
 *
7
7
 * Authors: Samuel Hocevar <sam@zoy.org>
8
8
 *
24
24
/*****************************************************************************
25
25
 * Preamble
26
26
 *****************************************************************************/
27
 
#include <stdlib.h>                                                /* free() */
28
 
#include <string.h>                                            /* strerror() */
29
 
 
30
 
#include <vlc/vlc.h>
31
 
#include <vlc/vout.h>
 
27
 
 
28
#ifdef HAVE_CONFIG_H
 
29
# include "config.h"
 
30
#endif
 
31
 
 
32
#include <vlc_common.h>
 
33
#include <vlc_vout.h>
32
34
 
33
35
#define DUMMY_WIDTH 16
34
36
#define DUMMY_HEIGHT 16
35
37
#define DUMMY_MAX_DIRECTBUFFERS 10
36
38
 
 
39
#include "dummy.h"
 
40
 
37
41
/*****************************************************************************
38
42
 * Local prototypes
39
43
 *****************************************************************************/
43
47
static void Render     ( vout_thread_t *, picture_t * );
44
48
static void Display    ( vout_thread_t *, picture_t * );
45
49
static void SetPalette ( vout_thread_t *, uint16_t *, uint16_t *, uint16_t * );
 
50
static int  Control   ( vout_thread_t *, int, va_list );
46
51
 
47
52
/*****************************************************************************
48
53
 * OpenVideo: activates dummy video thread output method
49
54
 *****************************************************************************
50
55
 * This function initializes a dummy vout method.
51
56
 *****************************************************************************/
52
 
int E_(OpenVideo) ( vlc_object_t *p_this )
 
57
int OpenVideo ( vlc_object_t *p_this )
53
58
{
54
59
    vout_thread_t * p_vout = (vout_thread_t *)p_this;
55
60
 
58
63
    p_vout->pf_manage = Manage;
59
64
    p_vout->pf_render = Render;
60
65
    p_vout->pf_display = Display;
 
66
    p_vout->pf_control = Control;
61
67
 
62
68
    return VLC_SUCCESS;
63
69
}
64
70
 
65
71
/*****************************************************************************
 
72
 * Control: control facility for the vout
 
73
 *****************************************************************************/
 
74
static int Control( vout_thread_t *p_vout, int i_query, va_list args )
 
75
{
 
76
    switch( i_query )
 
77
    {
 
78
       default:
 
79
            return vout_vaControlDefault( p_vout, i_query, args );
 
80
    }
 
81
}
 
82
 
 
83
 
 
84
/*****************************************************************************
66
85
 * Init: initialize dummy video thread output method
67
86
 *****************************************************************************/
68
87
static int Init( vout_thread_t *p_vout )
70
89
    int i_index, i_chroma;
71
90
    char *psz_chroma;
72
91
    picture_t *p_pic;
73
 
    vlc_bool_t b_chroma = 0;
 
92
    bool b_chroma = 0;
74
93
 
75
94
    psz_chroma = config_GetPsz( p_vout, "dummy-chroma" );
76
95
    if( psz_chroma )
177
196
 *****************************************************************************/
178
197
static int Manage( vout_thread_t *p_vout )
179
198
{
 
199
    VLC_UNUSED(p_vout);
180
200
    return( 0 );
181
201
}
182
202
 
185
205
 *****************************************************************************/
186
206
static void Render( vout_thread_t *p_vout, picture_t *p_pic )
187
207
{
 
208
    VLC_UNUSED(p_vout); VLC_UNUSED(p_pic);
188
209
    /* No need to do anything, the fake direct buffers stay as they are */
189
210
}
190
211
 
193
214
 *****************************************************************************/
194
215
static void Display( vout_thread_t *p_vout, picture_t *p_pic )
195
216
{
 
217
    VLC_UNUSED(p_vout); VLC_UNUSED(p_pic);
196
218
    /* No need to do anything, the fake direct buffers stay as they are */
197
219
}
198
220
 
202
224
static void SetPalette ( vout_thread_t *p_vout,
203
225
                         uint16_t *red, uint16_t *green, uint16_t *blue )
204
226
{
 
227
    VLC_UNUSED(p_vout); VLC_UNUSED(red); VLC_UNUSED(green); VLC_UNUSED(blue);
205
228
    /* No need to do anything, the fake direct buffers stay as they are */
206
229
}