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
3422455f
Commit
3422455f
authored
Feb 08, 2013
by
Ilkka Ollakka
Committed by
Felix Paul Kühne
Feb 08, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
opengl: implement manual unpacking for OpenGL ES
Signed-off-by:
Felix Paul Kühne
<
fkuehne@videolan.org
>
parent
eae547f4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
5 deletions
+28
-5
modules/video_output/opengl.c
modules/video_output/opengl.c
+28
-5
No files found.
modules/video_output/opengl.c
View file @
3422455f
...
@@ -659,11 +659,34 @@ int vout_display_opengl_Prepare(vout_display_opengl_t *vgl,
...
@@ -659,11 +659,34 @@ int vout_display_opengl_Prepare(vout_display_opengl_t *vgl,
}
}
glBindTexture
(
vgl
->
tex_target
,
vgl
->
texture
[
0
][
j
]);
glBindTexture
(
vgl
->
tex_target
,
vgl
->
texture
[
0
][
j
]);
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
picture
->
p
[
j
].
i_pitch
/
picture
->
p
[
j
].
i_pixel_pitch
);
glPixelStorei
(
GL_UNPACK_ROW_LENGTH
,
picture
->
p
[
j
].
i_pitch
/
picture
->
p
[
j
].
i_pixel_pitch
);
#if USE_OPENGL_ES
if
(
(
picture
->
p
[
j
].
i_pitch
/
picture
->
p
[
j
].
i_pixel_pitch
)
!=
(
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
)
)
{
uint8_t
*
new_plane
=
malloc
(
picture
->
p
[
j
].
i_pitch
*
picture
->
p
[
j
].
i_pixel_pitch
*
vgl
->
fmt
.
i_height
*
vgl
->
chroma
->
p
[
j
].
h
.
num
/
vgl
->
chroma
->
p
[
j
].
h
.
den
);
uint8_t
*
destination
=
new_plane
;
const
uint8_t
*
source
=
picture
->
p
[
j
].
p_pixels
;
for
(
unsigned
height
=
0
;
height
<
vgl
->
fmt
.
i_height
*
vgl
->
chroma
->
p
[
j
].
h
.
num
/
vgl
->
chroma
->
p
[
j
].
h
.
den
;
height
++
)
{
memcpy
(
destination
,
source
,
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
);
source
+=
picture
->
p
[
j
].
i_pitch
*
picture
->
p
[
j
].
i_pixel_pitch
;
destination
+=
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
;
}
glTexSubImage2D
(
vgl
->
tex_target
,
0
,
0
,
0
,
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
,
vgl
->
fmt
.
i_height
*
vgl
->
chroma
->
p
[
j
].
h
.
num
/
vgl
->
chroma
->
p
[
j
].
h
.
den
,
vgl
->
tex_format
,
vgl
->
tex_type
,
new_plane
);
free
(
new_plane
);
}
else
{
#endif
glTexSubImage2D
(
vgl
->
tex_target
,
0
,
glTexSubImage2D
(
vgl
->
tex_target
,
0
,
0
,
0
,
0
,
0
,
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
,
vgl
->
fmt
.
i_width
*
vgl
->
chroma
->
p
[
j
].
w
.
num
/
vgl
->
chroma
->
p
[
j
].
w
.
den
,
vgl
->
fmt
.
i_height
*
vgl
->
chroma
->
p
[
j
].
h
.
num
/
vgl
->
chroma
->
p
[
j
].
h
.
den
,
vgl
->
fmt
.
i_height
*
vgl
->
chroma
->
p
[
j
].
h
.
num
/
vgl
->
chroma
->
p
[
j
].
h
.
den
,
vgl
->
tex_format
,
vgl
->
tex_type
,
picture
->
p
[
j
].
p_pixels
);
vgl
->
tex_format
,
vgl
->
tex_type
,
picture
->
p
[
j
].
p_pixels
);
#if USE_OPENGL_ES
}
#endif
}
}
int
last_count
=
vgl
->
region_count
;
int
last_count
=
vgl
->
region_count
;
...
...
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