Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
2a4afa38
Commit
2a4afa38
authored
Feb 03, 2005
by
Eric Petit
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
beos/VideoOutput.cpp: added yet another overlay mode (minimum VRAM usage)
parent
5b567860
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
17 deletions
+20
-17
modules/gui/beos/VideoOutput.cpp
modules/gui/beos/VideoOutput.cpp
+20
-17
No files found.
modules/gui/beos/VideoOutput.cpp
View file @
2a4afa38
...
...
@@ -334,7 +334,7 @@ VideoWindow::VideoWindow(int v_width, int v_height, BRect frame,
{
overlay_restrictions
r
;
bitmap
[
1
]
->
GetOverlayRestrictions
(
&
r
);
bitmap
[
0
]
->
GetOverlayRestrictions
(
&
r
);
SetSizeLimits
((
i_width
*
r
.
min_width_scale
),
i_width
*
r
.
max_width_scale
,
(
i_height
*
r
.
min_height_scale
),
i_height
*
r
.
max_height_scale
);
}
...
...
@@ -724,12 +724,13 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
int
noOverlay
=
!
config_GetInt
(
p_vout
,
"overlay"
);
/* Test for overlay capability: for every chroma in colspace,
we try to do double-buffered overlay,
or we fallback on
single-buffered overlay. In nothing worked, we then have
to work with
a non-overlay BBitmap. */
we try to do double-buffered overlay,
single-buffered overlay
or basic overlay. If nothing worked, we then have to work with
a non-overlay BBitmap. */
for
(
int
i
=
0
;
i
<
COLOR_COUNT
;
i
++
)
{
if
(
noOverlay
)
break
;
if
(
noOverlay
)
break
;
bitmap
[
0
]
=
new
BBitmap
(
bitmapFrame
,
B_BITMAP_WILL_OVERLAY
|
...
...
@@ -739,18 +740,19 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
{
colspace_index
=
i
;
*
mode
=
OVERLAY
;
rgb_color
key
;
view
->
SetViewOverlay
(
bitmap
[
0
],
bitmap
[
0
]
->
Bounds
(),
view
->
Bounds
(),
&
key
,
B_FOLLOW_ALL
,
B_OVERLAY_FILTER_HORIZONTAL
|
B_OVERLAY_FILTER_VERTICAL
);
view
->
SetViewColor
(
key
);
SetTitle
(
"VLC "
PACKAGE_VERSION
" (Overlay)"
);
bitmap
[
1
]
=
new
BBitmap
(
bitmapFrame
,
B_BITMAP_WILL_OVERLAY
,
colspace
[
colspace_index
].
colspace
);
if
(
bitmap
[
1
]
&&
bitmap
[
1
]
->
InitCheck
()
==
B_OK
)
{
*
mode
=
OVERLAY
;
rgb_color
key
;
view
->
SetViewOverlay
(
bitmap
[
0
],
bitmap
[
0
]
->
Bounds
(),
view
->
Bounds
(),
&
key
,
B_FOLLOW_ALL
,
B_OVERLAY_FILTER_HORIZONTAL
|
B_OVERLAY_FILTER_VERTICAL
);
view
->
SetViewColor
(
key
);
SetTitle
(
"VLC "
PACKAGE_VERSION
" (Overlay)"
);
bitmap
[
2
]
=
new
BBitmap
(
bitmapFrame
,
B_BITMAP_WILL_OVERLAY
,
colspace
[
colspace_index
].
colspace
);
...
...
@@ -764,17 +766,18 @@ VideoWindow::_AllocateBuffers(int width, int height, int* mode)
bitmap_count
=
2
;
if
(
bitmap
[
2
]
)
{
delete
bitmap
[
2
];
bitmap
[
2
]
=
NULL
;
}
}
break
;
}
else
{
*
mode
=
BITMAP
;
_FreeBuffers
();
msg_Dbg
(
p_vout
,
"using simple overlay"
);
bitmap_count
=
1
;
if
(
bitmap
[
1
]
)
{
delete
bitmap
[
1
];
bitmap
[
1
]
=
NULL
;
}
}
break
;
}
else
{
delete
bitmap
[
0
];
if
(
bitmap
[
0
]
)
{
delete
bitmap
[
0
];
bitmap
[
0
]
=
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