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
afde41da
Commit
afde41da
authored
Feb 20, 2010
by
Laurent Aimar
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed dead picture_t::pf_lock/unlock fields.
parent
9517fa11
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
0 additions
and
39 deletions
+0
-39
include/vlc_picture.h
include/vlc_picture.h
+0
-4
src/video_output/video_output.c
src/video_output/video_output.c
+0
-2
src/video_output/vout_pictures.c
src/video_output/vout_pictures.c
+0
-33
No files found.
include/vlc_picture.h
View file @
afde41da
...
@@ -113,10 +113,6 @@ struct picture_t
...
@@ -113,10 +113,6 @@ struct picture_t
int
i_qtype
;
/**< quantification style */
int
i_qtype
;
/**< quantification style */
/**@}*/
/**@}*/
/* Some vouts require the picture to be locked before it can be modified */
int
(
*
pf_lock
)
(
vout_thread_t
*
,
picture_t
*
);
int
(
*
pf_unlock
)
(
vout_thread_t
*
,
picture_t
*
);
/** Private data - the video output plugin might want to put stuff here to
/** Private data - the video output plugin might want to put stuff here to
* keep track of the picture */
* keep track of the picture */
picture_sys_t
*
p_sys
;
picture_sys_t
*
p_sys
;
...
...
src/video_output/video_output.c
View file @
afde41da
...
@@ -330,8 +330,6 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
...
@@ -330,8 +330,6 @@ vout_thread_t * vout_Create( vlc_object_t *p_parent, video_format_t *p_fmt )
* will be initialized later in InitThread */
* will be initialized later in InitThread */
for
(
i_index
=
0
;
i_index
<
2
*
VOUT_MAX_PICTURES
+
1
;
i_index
++
)
for
(
i_index
=
0
;
i_index
<
2
*
VOUT_MAX_PICTURES
+
1
;
i_index
++
)
{
{
p_vout
->
p_picture
[
i_index
].
pf_lock
=
NULL
;
p_vout
->
p_picture
[
i_index
].
pf_unlock
=
NULL
;
p_vout
->
p_picture
[
i_index
].
i_status
=
FREE_PICTURE
;
p_vout
->
p_picture
[
i_index
].
i_status
=
FREE_PICTURE
;
p_vout
->
p_picture
[
i_index
].
i_type
=
EMPTY_PICTURE
;
p_vout
->
p_picture
[
i_index
].
i_type
=
EMPTY_PICTURE
;
p_vout
->
p_picture
[
i_index
].
b_slow
=
0
;
p_vout
->
p_picture
[
i_index
].
b_slow
=
0
;
...
...
src/video_output/vout_pictures.c
View file @
afde41da
...
@@ -317,18 +317,6 @@ void vout_UnlinkPicture( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -317,18 +317,6 @@ void vout_UnlinkPicture( vout_thread_t *p_vout, picture_t *p_pic )
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
vlc_mutex_unlock
(
&
p_vout
->
picture_lock
);
}
}
static
int
vout_LockPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_picture
)
{
if
(
p_picture
->
pf_lock
)
return
p_picture
->
pf_lock
(
p_vout
,
p_picture
);
return
VLC_SUCCESS
;
}
static
void
vout_UnlockPicture
(
vout_thread_t
*
p_vout
,
picture_t
*
p_picture
)
{
if
(
p_picture
->
pf_unlock
)
p_picture
->
pf_unlock
(
p_vout
,
p_picture
);
}
/**
/**
* Render a picture
* Render a picture
*
*
...
@@ -351,17 +339,12 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -351,17 +339,12 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
/* We have subtitles. First copy the picture to
/* We have subtitles. First copy the picture to
* the spare direct buffer, then render the
* the spare direct buffer, then render the
* subtitles. */
* subtitles. */
if
(
vout_LockPicture
(
p_vout
,
PP_OUTPUTPICTURE
[
0
]
)
)
return
NULL
;
picture_Copy
(
PP_OUTPUTPICTURE
[
0
],
p_pic
);
picture_Copy
(
PP_OUTPUTPICTURE
[
0
],
p_pic
);
spu_RenderSubpictures
(
p_vout
->
p_spu
,
spu_RenderSubpictures
(
p_vout
->
p_spu
,
PP_OUTPUTPICTURE
[
0
],
&
p_vout
->
fmt_out
,
PP_OUTPUTPICTURE
[
0
],
&
p_vout
->
fmt_out
,
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
vout_UnlockPicture
(
p_vout
,
PP_OUTPUTPICTURE
[
0
]
);
return
PP_OUTPUTPICTURE
[
0
];
return
PP_OUTPUTPICTURE
[
0
];
}
}
...
@@ -378,17 +361,11 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -378,17 +361,11 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
/* Picture is not in a direct buffer, but is exactly the
/* Picture is not in a direct buffer, but is exactly the
* same size as the direct buffers. A memcpy() is enough,
* same size as the direct buffers. A memcpy() is enough,
* then render the subtitles. */
* then render the subtitles. */
if
(
vout_LockPicture
(
p_vout
,
PP_OUTPUTPICTURE
[
0
]
)
)
return
NULL
;
picture_Copy
(
PP_OUTPUTPICTURE
[
0
],
p_pic
);
picture_Copy
(
PP_OUTPUTPICTURE
[
0
],
p_pic
);
spu_RenderSubpictures
(
p_vout
->
p_spu
,
spu_RenderSubpictures
(
p_vout
->
p_spu
,
PP_OUTPUTPICTURE
[
0
],
&
p_vout
->
fmt_out
,
PP_OUTPUTPICTURE
[
0
],
&
p_vout
->
fmt_out
,
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
vout_UnlockPicture
(
p_vout
,
PP_OUTPUTPICTURE
[
0
]
);
return
PP_OUTPUTPICTURE
[
0
];
return
PP_OUTPUTPICTURE
[
0
];
}
}
...
@@ -424,16 +401,10 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -424,16 +401,10 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
p_tmp_pic
,
&
p_vout
->
fmt_out
,
p_tmp_pic
,
&
p_vout
->
fmt_out
,
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
if
(
vout_LockPicture
(
p_vout
,
&
p_vout
->
p_picture
[
0
]
)
)
return
NULL
;
picture_Copy
(
&
p_vout
->
p_picture
[
0
],
p_tmp_pic
);
picture_Copy
(
&
p_vout
->
p_picture
[
0
],
p_tmp_pic
);
}
}
else
else
{
{
if
(
vout_LockPicture
(
p_vout
,
&
p_vout
->
p_picture
[
0
]
)
)
return
NULL
;
/* Convert image to the first direct buffer */
/* Convert image to the first direct buffer */
p_vout
->
p
->
p_chroma
->
p_owner
=
(
filter_owner_sys_t
*
)
&
p_vout
->
p_picture
[
0
];
p_vout
->
p
->
p_chroma
->
p_owner
=
(
filter_owner_sys_t
*
)
&
p_vout
->
p_picture
[
0
];
p_vout
->
p
->
p_chroma
->
pf_video_filter
(
p_vout
->
p
->
p_chroma
,
p_pic
);
p_vout
->
p
->
p_chroma
->
pf_video_filter
(
p_vout
->
p
->
p_chroma
,
p_pic
);
...
@@ -444,8 +415,6 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
...
@@ -444,8 +415,6 @@ picture_t *vout_RenderPicture( vout_thread_t *p_vout, picture_t *p_pic,
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
p_subpic
,
&
p_vout
->
fmt_in
,
render_date
);
}
}
vout_UnlockPicture
(
p_vout
,
&
p_vout
->
p_picture
[
0
]
);
return
&
p_vout
->
p_picture
[
0
];
return
&
p_vout
->
p_picture
[
0
];
}
}
...
@@ -711,8 +680,6 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma,
...
@@ -711,8 +680,6 @@ int picture_Setup( picture_t *p_picture, vlc_fourcc_t i_chroma,
p_picture
->
pf_release
=
NULL
;
p_picture
->
pf_release
=
NULL
;
p_picture
->
p_release_sys
=
NULL
;
p_picture
->
p_release_sys
=
NULL
;
p_picture
->
pf_lock
=
NULL
;
p_picture
->
pf_unlock
=
NULL
;
p_picture
->
i_refcount
=
0
;
p_picture
->
i_refcount
=
0
;
p_picture
->
i_qtype
=
QTYPE_NONE
;
p_picture
->
i_qtype
=
QTYPE_NONE
;
...
...
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