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
6a35aadd
Commit
6a35aadd
authored
Jan 23, 2009
by
Kaarlo Raiha
Committed by
Jean-Baptiste Kempf
Jan 23, 2009
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
better direct3d image quality
Signed-off-by:
Jean-Baptiste Kempf
<
jb@videolan.org
>
parent
c96b1b89
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
10 deletions
+12
-10
modules/video_output/msw/direct3d.c
modules/video_output/msw/direct3d.c
+12
-10
No files found.
modules/video_output/msw/direct3d.c
View file @
6a35aadd
...
@@ -1387,35 +1387,37 @@ static void Direct3DVoutRenderScene( vout_thread_t *p_vout, picture_t *p_pic )
...
@@ -1387,35 +1387,37 @@ static void Direct3DVoutRenderScene( vout_thread_t *p_vout, picture_t *p_pic )
}
}
/* Setup vertices */
/* Setup vertices */
f_width
=
(
float
)(
p_vout
->
output
.
i_width
)
+
1
;
f_width
=
(
float
)(
p_vout
->
output
.
i_width
);
f_height
=
(
float
)(
p_vout
->
output
.
i_height
)
+
1
;
f_height
=
(
float
)(
p_vout
->
output
.
i_height
);
p_vertices
[
0
].
x
=
0
.
0
f
;
// left
/* -0.5f is a "feature" of DirectX and it seems to apply to Direct3d also */
p_vertices
[
0
].
y
=
0
.
0
f
;
// top
/* http://www.sjbrown.co.uk/2003/05/01/fix-directx-rasterisation/ */
p_vertices
[
0
].
x
=
-
0
.
5
f
;
// left
p_vertices
[
0
].
y
=
-
0
.
5
f
;
// top
p_vertices
[
0
].
z
=
0
.
0
f
;
p_vertices
[
0
].
z
=
0
.
0
f
;
p_vertices
[
0
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
0
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
0
].
rhw
=
1
.
0
f
;
p_vertices
[
0
].
rhw
=
1
.
0
f
;
p_vertices
[
0
].
tu
=
0
.
0
f
;
p_vertices
[
0
].
tu
=
0
.
0
f
;
p_vertices
[
0
].
tv
=
0
.
0
f
;
p_vertices
[
0
].
tv
=
0
.
0
f
;
p_vertices
[
1
].
x
=
f_width
;
// right
p_vertices
[
1
].
x
=
f_width
-
0
.
5
f
;
// right
p_vertices
[
1
].
y
=
0
.
0
f
;
// top
p_vertices
[
1
].
y
=
-
0
.
5
f
;
// top
p_vertices
[
1
].
z
=
0
.
0
f
;
p_vertices
[
1
].
z
=
0
.
0
f
;
p_vertices
[
1
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
1
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
1
].
rhw
=
1
.
0
f
;
p_vertices
[
1
].
rhw
=
1
.
0
f
;
p_vertices
[
1
].
tu
=
1
.
0
f
;
p_vertices
[
1
].
tu
=
1
.
0
f
;
p_vertices
[
1
].
tv
=
0
.
0
f
;
p_vertices
[
1
].
tv
=
0
.
0
f
;
p_vertices
[
2
].
x
=
f_width
;
// right
p_vertices
[
2
].
x
=
f_width
-
0
.
5
f
;
// right
p_vertices
[
2
].
y
=
f_height
;
// bottom
p_vertices
[
2
].
y
=
f_height
-
0
.
5
f
;
// bottom
p_vertices
[
2
].
z
=
0
.
0
f
;
p_vertices
[
2
].
z
=
0
.
0
f
;
p_vertices
[
2
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
2
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
2
].
rhw
=
1
.
0
f
;
p_vertices
[
2
].
rhw
=
1
.
0
f
;
p_vertices
[
2
].
tu
=
1
.
0
f
;
p_vertices
[
2
].
tu
=
1
.
0
f
;
p_vertices
[
2
].
tv
=
1
.
0
f
;
p_vertices
[
2
].
tv
=
1
.
0
f
;
p_vertices
[
3
].
x
=
0
.
0
f
;
// left
p_vertices
[
3
].
x
=
-
0
.
5
f
;
// left
p_vertices
[
3
].
y
=
f_height
;
// bottom
p_vertices
[
3
].
y
=
f_height
-
0
.
5
f
;
// bottom
p_vertices
[
3
].
z
=
0
.
0
f
;
p_vertices
[
3
].
z
=
0
.
0
f
;
p_vertices
[
3
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
3
].
diffuse
=
D3DCOLOR_ARGB
(
255
,
255
,
255
,
255
);
p_vertices
[
3
].
rhw
=
1
.
0
f
;
p_vertices
[
3
].
rhw
=
1
.
0
f
;
...
...
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