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
6a9df8ab
Commit
6a9df8ab
authored
Jul 14, 2013
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
MSW/Direct3D: retain only picture_sys_t* instead of picture_resource_t
parent
81b4850d
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
17 deletions
+17
-17
modules/video_output/msw/common.h
modules/video_output/msw/common.h
+1
-1
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+16
-16
No files found.
modules/video_output/msw/common.h
View file @
6a9df8ab
...
@@ -146,7 +146,7 @@ struct vout_display_sys_t
...
@@ -146,7 +146,7 @@ struct vout_display_sys_t
int
d3dregion_count
;
int
d3dregion_count
;
struct
d3d_region_t
*
d3dregion
;
struct
d3d_region_t
*
d3dregion
;
picture_
resource_t
resource
;
picture_
sys_t
*
picsys
;
/* */
/* */
bool
reset_device
;
bool
reset_device
;
...
...
modules/video_output/msw/direct3d.c
View file @
6a9df8ab
...
@@ -916,25 +916,25 @@ static int Direct3DCreatePool(vout_display_t *vd, video_format_t *fmt)
...
@@ -916,25 +916,25 @@ static int Direct3DCreatePool(vout_display_t *vd, video_format_t *fmt)
IDirect3DDevice9_ColorFill
(
d3ddev
,
surface
,
NULL
,
D3DCOLOR_ARGB
(
0xFF
,
0
,
0
,
0
));
IDirect3DDevice9_ColorFill
(
d3ddev
,
surface
,
NULL
,
D3DCOLOR_ARGB
(
0xFF
,
0
,
0
,
0
));
/* Create the associated picture */
/* Create the associated picture */
picture_resource_t
*
rsc
=
&
sys
->
resource
;
picture_sys_t
*
picsys
=
malloc
(
sizeof
(
*
picsys
));
rsc
->
p_sys
=
malloc
(
sizeof
(
*
rsc
->
p_sys
));
if
(
unlikely
(
picsys
==
NULL
))
{
if
(
!
rsc
->
p_sys
)
{
IDirect3DSurface9_Release
(
surface
);
IDirect3DSurface9_Release
(
surface
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
rsc
->
p_
sys
->
surface
=
surface
;
pic
sys
->
surface
=
surface
;
rsc
->
p_
sys
->
fallback
=
NULL
;
pic
sys
->
fallback
=
NULL
;
for
(
int
i
=
0
;
i
<
PICTURE_PLANE_MAX
;
i
++
)
{
rsc
->
p
[
i
].
p_pixels
=
NULL
;
picture_resource_t
resource
=
{
.
p_sys
=
picsys
}
;
rsc
->
p
[
i
].
i_pitch
=
0
;
for
(
int
i
=
0
;
i
<
PICTURE_PLANE_MAX
;
i
++
)
r
sc
->
p
[
i
].
i_lines
=
fmt
->
i_height
/
(
i
>
0
?
2
:
1
);
r
esource
.
p
[
i
].
i_lines
=
fmt
->
i_height
/
(
i
>
0
?
2
:
1
);
}
picture_t
*
picture
=
picture_NewFromResource
(
fmt
,
rsc
);
picture_t
*
picture
=
picture_NewFromResource
(
fmt
,
&
resource
);
if
(
!
picture
)
{
if
(
!
picture
)
{
IDirect3DSurface9_Release
(
surface
);
IDirect3DSurface9_Release
(
surface
);
free
(
rsc
->
p_
sys
);
free
(
pic
sys
);
return
VLC_ENOMEM
;
return
VLC_ENOMEM
;
}
}
sys
->
picsys
=
picsys
;
/* Wrap it into a picture pool */
/* Wrap it into a picture pool */
picture_pool_configuration_t
pool_cfg
;
picture_pool_configuration_t
pool_cfg
;
...
@@ -960,10 +960,10 @@ static void Direct3DDestroyPool(vout_display_t *vd)
...
@@ -960,10 +960,10 @@ static void Direct3DDestroyPool(vout_display_t *vd)
vout_display_sys_t
*
sys
=
vd
->
sys
;
vout_display_sys_t
*
sys
=
vd
->
sys
;
if
(
sys
->
pool
)
{
if
(
sys
->
pool
)
{
picture_
resource_t
*
rsc
=
&
sys
->
resource
;
picture_
sys_t
*
picsys
=
sys
->
picsys
;
IDirect3DSurface9_Release
(
rsc
->
p_
sys
->
surface
);
IDirect3DSurface9_Release
(
pic
sys
->
surface
);
if
(
rsc
->
p_
sys
->
fallback
)
if
(
pic
sys
->
fallback
)
picture_Release
(
rsc
->
p_
sys
->
fallback
);
picture_Release
(
pic
sys
->
fallback
);
picture_pool_Delete
(
sys
->
pool
);
picture_pool_Delete
(
sys
->
pool
);
}
}
sys
->
pool
=
NULL
;
sys
->
pool
=
NULL
;
...
...
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