Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
7cf947c9
Commit
7cf947c9
authored
Dec 04, 2002
by
Jean-Paul Saman
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Small updates.
parent
f7979be0
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
12 deletions
+37
-12
plugins/qte/vout_qte.cpp
plugins/qte/vout_qte.cpp
+37
-12
No files found.
plugins/qte/vout_qte.cpp
View file @
7cf947c9
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* vout_qte.cpp : Qt Embedded video output plugin implementation
* vout_qte.cpp : Qt Embedded video output plugin implementation
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: vout_qte.cpp,v 1.1.2.
1 2002/11/26 19:54:12
jpsaman Exp $
* $Id: vout_qte.cpp,v 1.1.2.
2 2002/12/04 20:52:27
jpsaman Exp $
*
*
* Authors: Gerald Hansink <gerald.hansink@ordina.nl>
* Authors: Gerald Hansink <gerald.hansink@ordina.nl>
* Jean-Paul Saman <jpsaman@wxs.nl>
* Jean-Paul Saman <jpsaman@wxs.nl>
...
@@ -136,14 +136,30 @@ typedef struct picture_sys_s
...
@@ -136,14 +136,30 @@ typedef struct picture_sys_s
extern
"C"
extern
"C"
{
{
/*****************************************************************************
/*****************************************************************************
* * * Seeking function TODO: put this in a generic location !
* * * Seeking function TODO: put this in a generic location !
*****************************************************************************/
*****************************************************************************/
static
inline
void
vout_Seek
(
off_t
i_seek
)
static
inline
void
vout_Seek
(
off_t
i_seek
)
{
{
}
off_t
i_tell
;
vlc_mutex_lock
(
&
p_input_bank
->
lock
);
if
(
p_input_bank
->
pp_input
[
0
]
!=
NULL
)
{
#define S p_input_bank->pp_input[0]->stream
i_tell
=
S
.
p_selected_area
->
i_tell
+
i_seek
*
(
off_t
)
50
*
S
.
i_mux_rate
;
i_tell
=
(
i_tell
<=
0
/*S.p_selected_area->i_start*/
)
?
0
/*S.p_selected_area->i_start*/
:
(
i_tell
>=
S
.
p_selected_area
->
i_size
)
?
S
.
p_selected_area
->
i_size
:
i_tell
;
input_Seek
(
p_input_bank
->
pp_input
[
0
],
i_tell
);
#undef S
}
vlc_mutex_unlock
(
&
p_input_bank
->
lock
);
}
void
_M
(
vout_getfunctions
)(
function_list_t
*
p_function_list
);
void
_M
(
vout_getfunctions
)(
function_list_t
*
p_function_list
);
...
@@ -182,6 +198,8 @@ static int vout_Create( vout_thread_t *p_vout )
...
@@ -182,6 +198,8 @@ static int vout_Create( vout_thread_t *p_vout )
memset
(
p_vout
->
p_sys
,
0
,
sizeof
(
vout_sys_t
));
memset
(
p_vout
->
p_sys
,
0
,
sizeof
(
vout_sys_t
));
p_vout
->
b_fullscreen
=
TRUE
;
CreateQtWindow
(
p_vout
);
CreateQtWindow
(
p_vout
);
//intf_ErrMsg( "-vout_Create::qte\n" );
//intf_ErrMsg( "-vout_Create::qte\n" );
...
@@ -418,7 +436,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -418,7 +436,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
}
}
p_pic
->
p
->
p_pixels
=
(
p_pic
->
p_sys
->
pQImage
->
jumpTable
())[
0
];
p_pic
->
p
->
p_pixels
=
(
p_pic
->
p_sys
->
pQImage
->
jumpTable
())[
0
];
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
pQImage
->
bytesPerLine
();
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
pQImage
->
bytesPerLine
();
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
...
@@ -444,7 +461,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -444,7 +461,6 @@ static int NewPicture( vout_thread_t *p_vout, picture_t *p_pic )
}
}
p_pic
->
p
->
p_pixels
=
(
p_pic
->
p_sys
->
pQImage
->
jumpTable
())[
0
];
p_pic
->
p
->
p_pixels
=
(
p_pic
->
p_sys
->
pQImage
->
jumpTable
())[
0
];
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
pQImage
->
bytesPerLine
();
p_pic
->
p
->
i_pitch
=
p_pic
->
p_sys
->
pQImage
->
bytesPerLine
();
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
p_pic
->
p
->
i_lines
=
p_vout
->
output
.
i_height
;
...
@@ -486,6 +502,8 @@ static void FreePicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -486,6 +502,8 @@ static void FreePicture( vout_thread_t *p_vout, picture_t *p_pic )
*****************************************************************************/
*****************************************************************************/
static
void
ToggleFullScreen
(
vout_thread_t
*
p_vout
)
static
void
ToggleFullScreen
(
vout_thread_t
*
p_vout
)
{
{
p_vout
->
b_fullscreen
=
!
p_vout
->
b_fullscreen
;
// Need to change output window
}
}
...
@@ -514,9 +532,16 @@ static int CreateQtWindow( vout_thread_t *p_vout )
...
@@ -514,9 +532,16 @@ static int CreateQtWindow( vout_thread_t *p_vout )
return
(
-
1
);
return
(
-
1
);
}
}
if
(
p_vout
->
b_fullscreen
==
TRUE
)
{
p_vout
->
p_sys
->
i_width
=
320
;
p_vout
->
p_sys
->
i_width
=
320
;
p_vout
->
p_sys
->
i_height
=
240
;
p_vout
->
p_sys
->
i_height
=
240
;
}
else
{
p_vout
->
p_sys
->
i_width
=
220
;
p_vout
->
p_sys
->
i_height
=
160
;
}
// just wait until the crew is complete...
// just wait until the crew is complete...
while
(
p_vout
->
p_sys
->
pcVoutWidget
==
NULL
)
while
(
p_vout
->
p_sys
->
pcVoutWidget
==
NULL
)
{
{
...
@@ -584,10 +609,10 @@ vout_run_qtapp_exec(void* pVoid)
...
@@ -584,10 +609,10 @@ vout_run_qtapp_exec(void* pVoid)
{
{
QWidget
vo
(
0
,
"vout"
);
QWidget
vo
(
0
,
"vout"
);
if
(
p_vout
->
b_fullscreen
==
TRUE
)
vo
.
showFullScreen
();
vo
.
showFullScreen
();
vo
.
show
();
vo
.
show
();
p_vout
->
p_sys
->
pcVoutWidget
=
&
vo
;
p_vout
->
p_sys
->
pcVoutWidget
=
&
vo
;
p_vout
->
p_sys
->
bRunning
=
TRUE
;
p_vout
->
p_sys
->
bRunning
=
TRUE
;
if
(
p_vout
->
p_sys
->
bOwnsQApp
)
if
(
p_vout
->
p_sys
->
bOwnsQApp
)
...
...
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