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

« back to all changes in this revision

Viewing changes to modules/gui/minimal_macosx/VLCOpenGLVoutView.h

  • 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:
 
1
/*****************************************************************************
 
2
 * VLCOpenGLVoutView.h: MacOS X OpenGL provider
 
3
 *****************************************************************************
 
4
 * Copyright (C) 2001-2007 the VideoLAN team
 
5
 * $Id$
 
6
 *
 
7
 * Authors: Colin Delacroix <colin@zoy.org>
 
8
 *          Florian G. Pflug <fgp@phlo.org>
 
9
 *          Jon Lech Johansen <jon-vl@nanocrew.net>
 
10
 *          Derk-Jan Hartman <hartman at videolan dot org>
 
11
 *          Eric Petit <titer@m0k.org>
 
12
 *          Benjamin Pracht <bigben at videolan dot org>
 
13
 *          Damien Fouilleul <damienf at videolan dot org>
 
14
 *
 
15
 * This program is free software; you can redistribute it and/or modify
 
16
 * it under the terms of the GNU General Public License as published by
 
17
 * the Free Software Foundation; either version 2 of the License, or
 
18
 * (at your option) any later version.
 
19
 *
 
20
 * This program is distributed in the hope that it will be useful,
 
21
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
22
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
23
 * GNU General Public License for more details.
 
24
 *
 
25
 * You should have received a copy of the GNU General Public License
 
26
 * along with this program; if not, write to the Free Software
 
27
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
 
28
 *****************************************************************************/
 
29
 
 
30
#import <Cocoa/Cocoa.h>
 
31
 
 
32
#include <OpenGL/OpenGL.h>
 
33
#include <OpenGL/gl.h>
 
34
 
 
35
#include <vlc_common.h>
 
36
 
 
37
/* Entry point */
 
38
int  cocoaglvoutviewInit( vout_thread_t * p_vout );
 
39
void cocoaglvoutviewEnd( vout_thread_t * p_vout );
 
40
int  cocoaglvoutviewManage( vout_thread_t * p_vout );
 
41
int  cocoaglvoutviewControl( vout_thread_t *p_vout, int i_query, va_list args );
 
42
void cocoaglvoutviewSwap( vout_thread_t * p_vout );
 
43
int  cocoaglvoutviewLock( vout_thread_t * p_vout );
 
44
void cocoaglvoutviewUnlock( vout_thread_t * p_vout );
 
45
 
 
46
/* To commmunicate with the VLC.framework */
 
47
@protocol VLCOpenGLVoutEmbedding
 
48
- (void)addVoutSubview:(NSView *)view;
 
49
- (void)removeVoutSubview:(NSView *)view;
 
50
 
 
51
- (void)enterFullscreen;
 
52
- (void)leaveFullscreen;
 
53
 
 
54
- (BOOL)stretchesVideo;
 
55
 
 
56
- (void)setOnTop: (BOOL)ontop; /* Do we really want that in protocol? */
 
57
@end
 
58
 
 
59
/* VLCOpenGLVoutView */
 
60
@interface VLCOpenGLVoutView : NSOpenGLView
 
61
{
 
62
    id <VLCOpenGLVoutEmbedding> container;
 
63
    vout_thread_t * p_vout;
 
64
    NSLock        * objectLock;
 
65
}
 
66
/* Init a new gl view and register it to both the framework and the
 
67
 * vout_thread_t. Must be called from main thread */
 
68
+ (void) autoinitOpenGLVoutViewIntVoutWithContainer: (NSData *) args;
 
69
 
 
70
- (id) initWithVout: (vout_thread_t *) vout container: (id <VLCOpenGLVoutEmbedding>) container;
 
71
 
 
72
- (void) detachFromVout;
 
73
- (id <VLCOpenGLVoutEmbedding>) container;
 
74
 
 
75
- (void) reshape;
 
76
- (void) update;
 
77
- (void) drawRect: (NSRect) rect;
 
78
@end
 
79