Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
2be7fadd
Commit
2be7fadd
authored
Jul 07, 2013
by
Felix Paul Kühne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
ios2_vout: minor cleanup
parent
e6c890d1
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
25 deletions
+15
-25
modules/video_output/ios2.m
modules/video_output/ios2.m
+15
-25
No files found.
modules/video_output/ios2.m
View file @
2be7fadd
...
...
@@ -4,16 +4,13 @@
* Copyright (C) 2001-2013 VLC authors and VideoLAN
* $Id$
*
* Authors: Derk-Jan Hartman <hartman at videolan dot org>
* Eric Petit <titer@m0k.org>
* Benjamin Pracht <bigben at videolan dot org>
* Damien Fouilleul <damienf at videolan dot org>
* Pierre d'Herbemont <pdherbemont at videolan dot org>
* Authors: Pierre d'Herbemont <pdherbemont at videolan dot org>
* Felix Paul Kühne <fkuehne at videolan dot org>
* David Fuhrmann <david dot fuhrmann at googlemail dot com>
* Rémi Denis-Courmont
* Juho Vähä-Herttua <juhovh at iki dot fi>
* Laurent Aimar <fenrir _AT_ videolan _DOT_ org>
* Eric Petit <titer@m0k.org>
*
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as published by
...
...
@@ -54,8 +51,8 @@
/**
* Forward declarations
*/
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
int
Open
(
vlc_object_t
*
);
static
void
Close
(
vlc_object_t
*
);
static
picture_pool_t
*
PicturePool
(
vout_display_t
*
vd
,
unsigned
requested_count
);
static
void
PictureRender
(
vout_display_t
*
vd
,
picture_t
*
pic
,
subpicture_t
*
subpicture
);
...
...
@@ -71,18 +68,17 @@ static void OpenglESSwap(vlc_gl_t* gl);
* Module declaration
*/
vlc_module_begin
()
set_shortname
(
"iOS vout"
)
set_description
(
N_
(
"iOS OpenGL video output"
))
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_capability
(
"vout display"
,
300
)
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"vout_ios2"
)
set_shortname
(
"iOS vout"
)
set_description
(
N_
(
"iOS OpenGL video output"
))
set_category
(
CAT_VIDEO
)
set_subcategory
(
SUBCAT_VIDEO_VOUT
)
set_capability
(
"vout display"
,
300
)
set_callbacks
(
Open
,
Close
)
add_shortcut
(
"vout_ios2"
)
vlc_module_end
()
@interface
VLCOpenGLES2VideoView
:
UIView
{
@interface
VLCOpenGLES2VideoView
:
UIView
{
vout_display_t
*
_voutDisplay
;
EAGLContext
*
_eaglContext
;
GLuint
_renderBuffer
;
...
...
@@ -98,10 +94,8 @@ vlc_module_end ()
-
(
void
)
createBuffers
;
-
(
void
)
destroyBuffers
;
-
(
void
)
resetBuffers
;
@end
struct
vout_display_sys_t
{
VLCOpenGLES2VideoView
*
glESView
;
...
...
@@ -111,13 +105,11 @@ struct vout_display_sys_t
vout_display_opengl_t
*
vgl
;
picture_pool_t
*
picturePool
;
picture_t
*
current
;
bool
has_first_frame
;
vout_display_place_t
place
;
};
static
void
*
OurGetProcAddress
(
vlc_gl_t
*
gl
,
const
char
*
name
)
{
VLC_UNUSED
(
gl
);
...
...
@@ -233,8 +225,7 @@ static int Control(vout_display_t *vd, int query, va_list ap)
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
switch
(
query
)
{
switch
(
query
)
{
case
VOUT_DISPLAY_CHANGE_FULLSCREEN
:
case
VOUT_DISPLAY_CHANGE_WINDOW_STATE
:
case
VOUT_DISPLAY_HIDE_MOUSE
:
...
...
@@ -326,7 +317,6 @@ static void PictureDisplay(vout_display_t *vd, picture_t *pic, subpicture_t *sub
static
void
PictureRender
(
vout_display_t
*
vd
,
picture_t
*
pic
,
subpicture_t
*
subpicture
)
{
vout_display_sys_t
*
sys
=
vd
->
sys
;
if
(
likely
([
sys
->
glESView
isAppActive
]))
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment