[vlc-commits] [Git][videolan/vlc][master] VLCSampleBufferDisplay: apply the subpicture region alpha
Steve Lhomme (@robUx4)
gitlab at videolan.org
Mon Feb 3 11:32:18 UTC 2025
Steve Lhomme pushed to branch master at VideoLAN / VLC
Commits:
1a74fc79 by Steve Lhomme at 2025-02-03T11:00:02+00:00
VLCSampleBufferDisplay: apply the subpicture region alpha
- - - - -
1 changed file:
- modules/video_output/apple/VLCSampleBufferDisplay.m
Changes:
=====================================
modules/video_output/apple/VLCSampleBufferDisplay.m
=====================================
@@ -473,6 +473,7 @@ static void DeletePipController( pip_controller_t * pipcontroller );
@property (nonatomic, weak) VLCSampleBufferSubpicture *subpicture;
@property (nonatomic) CGRect backingFrame;
@property (nonatomic) CGImageRef image;
+ at property (nonatomic) CGFloat alpha;
@end
@implementation VLCSampleBufferSubpictureRegion
@@ -551,6 +552,7 @@ static void DeletePipController( pip_controller_t * pipcontroller );
#else
CGRect regionFrame = region.backingFrame;
#endif
+ CGContextSetAlpha(cgCtx, region.alpha);
CGContextDrawImage(cgCtx, regionFrame, region.image);
}
#if TARGET_OS_IPHONE
@@ -934,6 +936,7 @@ static void UpdateSubpictureRegions(vout_display_t *vd,
region = [VLCSampleBufferSubpictureRegion new];
region.subpicture = sys.subpicture;
region.image = image;
+ region.alpha = r->i_alpha / 255.f;
region.backingFrame = RegionBackingFrame(vd->cfg->display.height, r);
[regions addObject:region];
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1a74fc79340003245f682ec45bdebfa09a92a5f3
--
View it on GitLab: https://code.videolan.org/videolan/vlc/-/commit/1a74fc79340003245f682ec45bdebfa09a92a5f3
You're receiving this email because of your account on code.videolan.org.
VideoLAN code repository instance
More information about the vlc-commits
mailing list