Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-gpu
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-gpu
Commits
a882fa8a
Commit
a882fa8a
authored
Aug 13, 2009
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Used date_t instead of audio_date_t in visualizations.
parent
c58b24c5
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/visualization/goom.c
modules/visualization/goom.c
+10
-10
No files found.
modules/visualization/goom.c
View file @
a882fa8a
...
@@ -108,7 +108,7 @@ typedef struct
...
@@ -108,7 +108,7 @@ typedef struct
block_t
*
pp_blocks
[
MAX_BLOCKS
];
block_t
*
pp_blocks
[
MAX_BLOCKS
];
int
i_blocks
;
int
i_blocks
;
audio_date_t
date
;
date_t
date
;
}
goom_thread_t
;
}
goom_thread_t
;
...
@@ -184,8 +184,8 @@ static int Open( vlc_object_t *p_this )
...
@@ -184,8 +184,8 @@ static int Open( vlc_object_t *p_this )
vlc_cond_init
(
&
p_thread
->
wait
);
vlc_cond_init
(
&
p_thread
->
wait
);
p_thread
->
i_blocks
=
0
;
p_thread
->
i_blocks
=
0
;
aout_DateInit
(
&
p_thread
->
date
,
p_filter
->
output
.
i_rate
);
date_Init
(
&
p_thread
->
date
,
p_filter
->
output
.
i_rate
,
1
);
aout_Date
Set
(
&
p_thread
->
date
,
0
);
date_
Set
(
&
p_thread
->
date
,
0
);
p_thread
->
i_channels
=
aout_FormatNbChannels
(
&
p_filter
->
input
);
p_thread
->
i_channels
=
aout_FormatNbChannels
(
&
p_filter
->
input
);
p_thread
->
psz_title
=
TitleGet
(
VLC_OBJECT
(
p_filter
)
);
p_thread
->
psz_title
=
TitleGet
(
VLC_OBJECT
(
p_filter
)
);
...
@@ -263,7 +263,7 @@ static inline int16_t FloatToInt16( float f )
...
@@ -263,7 +263,7 @@ static inline int16_t FloatToInt16( float f )
* Fill buffer
* Fill buffer
*****************************************************************************/
*****************************************************************************/
static
int
FillBuffer
(
int16_t
*
p_data
,
int
*
pi_data
,
static
int
FillBuffer
(
int16_t
*
p_data
,
int
*
pi_data
,
audio_date_t
*
pi_date
,
audio_
date_t
*
pi_date_end
,
date_t
*
pi_date
,
date_t
*
pi_date_end
,
goom_thread_t
*
p_this
)
goom_thread_t
*
p_this
)
{
{
int
i_samples
=
0
;
int
i_samples
=
0
;
...
@@ -279,13 +279,13 @@ static int FillBuffer( int16_t *p_data, int *pi_data,
...
@@ -279,13 +279,13 @@ static int FillBuffer( int16_t *p_data, int *pi_data,
/* Date management */
/* Date management */
if
(
p_block
->
i_pts
>
0
&&
if
(
p_block
->
i_pts
>
0
&&
p_block
->
i_pts
!=
aout_Date
Get
(
pi_date_end
)
)
p_block
->
i_pts
!=
date_
Get
(
pi_date_end
)
)
{
{
aout_Date
Set
(
pi_date_end
,
p_block
->
i_pts
);
date_
Set
(
pi_date_end
,
p_block
->
i_pts
);
}
}
p_block
->
i_pts
=
0
;
p_block
->
i_pts
=
0
;
aout_Date
Increment
(
pi_date_end
,
i_samples
);
date_
Increment
(
pi_date_end
,
i_samples
);
while
(
i_samples
>
0
)
while
(
i_samples
>
0
)
{
{
...
@@ -323,7 +323,7 @@ static void* Thread( vlc_object_t *p_this )
...
@@ -323,7 +323,7 @@ static void* Thread( vlc_object_t *p_this )
{
{
goom_thread_t
*
p_thread
=
(
goom_thread_t
*
)
p_this
;
goom_thread_t
*
p_thread
=
(
goom_thread_t
*
)
p_this
;
int
width
,
height
,
speed
;
int
width
,
height
,
speed
;
audio_
date_t
i_pts
;
date_t
i_pts
;
int16_t
p_data
[
2
][
512
];
int16_t
p_data
[
2
][
512
];
int
i_data
=
0
,
i_count
=
0
;
int
i_data
=
0
,
i_count
=
0
;
PluginInfo
*
p_plugin_info
;
PluginInfo
*
p_plugin_info
;
...
@@ -354,7 +354,7 @@ static void* Thread( vlc_object_t *p_this )
...
@@ -354,7 +354,7 @@ static void* Thread( vlc_object_t *p_this )
if
(
speed
&&
(
++
i_count
%
(
speed
+
1
))
)
continue
;
if
(
speed
&&
(
++
i_count
%
(
speed
+
1
))
)
continue
;
/* Frame dropping if necessary */
/* Frame dropping if necessary */
if
(
aout_Date
Get
(
&
i_pts
)
+
GOOM_DELAY
<=
mdate
()
)
continue
;
if
(
date_
Get
(
&
i_pts
)
+
GOOM_DELAY
<=
mdate
()
)
continue
;
plane
=
goom_update
(
p_plugin_info
,
p_data
,
0
,
0
.
0
,
plane
=
goom_update
(
p_plugin_info
,
p_data
,
0
,
0
.
0
,
p_thread
->
psz_title
,
NULL
);
p_thread
->
psz_title
,
NULL
);
...
@@ -372,7 +372,7 @@ static void* Thread( vlc_object_t *p_this )
...
@@ -372,7 +372,7 @@ static void* Thread( vlc_object_t *p_this )
memcpy
(
p_pic
->
p
[
0
].
p_pixels
,
plane
,
width
*
height
*
4
);
memcpy
(
p_pic
->
p
[
0
].
p_pixels
,
plane
,
width
*
height
*
4
);
p_pic
->
date
=
aout_Date
Get
(
&
i_pts
)
+
GOOM_DELAY
;
p_pic
->
date
=
date_
Get
(
&
i_pts
)
+
GOOM_DELAY
;
vout_DisplayPicture
(
p_thread
->
p_vout
,
p_pic
);
vout_DisplayPicture
(
p_thread
->
p_vout
,
p_pic
);
}
}
...
...
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