Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Steve Lhomme
VLC
Commits
1f4b7408
Commit
1f4b7408
authored
Oct 18, 2005
by
Marian Durkovic
Browse files
prepare video outputs for display size not equal to encoded size
parent
6798e163
Changes
2
Hide whitespace changes
Inline
Side-by-side
modules/video_output/sdl.c
View file @
1f4b7408
...
...
@@ -42,7 +42,8 @@
#include SDL_INCLUDE_FILE
#define SDL_MAX_DIRECTBUFFERS 10
/* SDL is not able to crop overlays - so use only 1 direct buffer */
#define SDL_MAX_DIRECTBUFFERS 1
#define SDL_DEFAULT_BPP 16
/*****************************************************************************
...
...
modules/video_output/x11/xcommon.c
View file @
1f4b7408
...
...
@@ -2030,6 +2030,11 @@ static IMAGE_TYPE * CreateShmImage( vout_thread_t *p_vout,
/* Create XImage / XvImage */
#ifdef MODULE_NAME_IS_xvideo
/* Make sure the buffer is aligned to multiple of 16 */
i_height
=
(
i_height
+
15
)
>>
4
<<
4
;
i_width
=
(
i_width
+
15
)
>>
4
<<
4
;
p_image
=
XvShmCreateImage
(
p_display
,
i_xvport
,
i_chroma
,
0
,
i_width
,
i_height
,
p_shm
);
#else
...
...
@@ -2114,6 +2119,11 @@ static IMAGE_TYPE * CreateImage( vout_thread_t *p_vout,
/* Allocate memory for image */
#ifdef MODULE_NAME_IS_xvideo
/* Make sure the buffer is aligned to multiple of 16 */
i_height
=
(
i_height
+
15
)
>>
4
<<
4
;
i_width
=
(
i_width
+
15
)
>>
4
<<
4
;
p_data
=
(
byte_t
*
)
malloc
(
i_width
*
i_height
*
i_bits_per_pixel
/
8
);
#elif defined(MODULE_NAME_IS_x11)
i_bytes_per_line
=
i_width
*
i_bytes_per_pixel
;
...
...
Write
Preview
Supports
Markdown
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