-
-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
#2344 only load the codecs we now we need, simplify the loader code
git-svn-id: https://xpra.org/svn/Xpra/trunk@23045 3bb7dfac-3a0b-4e04-842a-767bc560f471
- Loading branch information
Showing
5 changed files
with
32 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# This file is part of Xpra. | ||
# Copyright (C) 2008 Nathaniel Smith <[email protected]> | ||
# Copyright (C) 2012-2018 Antoine Martin <[email protected]> | ||
# Copyright (C) 2012-2019 Antoine Martin <[email protected]> | ||
# Xpra is released under the terms of the GNU GPL v2, or, at your option, any | ||
# later version. See the file COPYING for details. | ||
|
||
|
@@ -10,7 +10,7 @@ | |
from xpra.net.mmap_pipe import mmap_read | ||
from xpra.net import compression | ||
from xpra.util import typedict, csv, envint, envbool, repr_ellipsized | ||
from xpra.codecs.loader import get_codec, is_loaded | ||
from xpra.codecs.loader import get_codec | ||
from xpra.codecs.video_helper import getVideoHelper | ||
from xpra.os_util import bytestostr, _buffer | ||
try: | ||
|
@@ -97,12 +97,11 @@ def __init__(self, wid, window_alpha): | |
self.jpeg_decoder = None | ||
self.webp_decoder = None | ||
self.pil_decoder = None | ||
if is_loaded(): | ||
self.pil_decoder = get_codec("dec_pillow") | ||
if self.pil_decoder: | ||
self._PIL_encodings = self.pil_decoder.get_encodings() | ||
self.jpeg_decoder = get_codec("dec_jpeg") | ||
self.webp_decoder = get_codec("dec_webp") | ||
self.pil_decoder = get_codec("dec_pillow") | ||
if self.pil_decoder: | ||
self._PIL_encodings = self.pil_decoder.get_encodings() | ||
self.jpeg_decoder = get_codec("dec_jpeg") | ||
self.webp_decoder = get_codec("dec_webp") | ||
self.draw_needs_refresh = True | ||
self.mmap = None | ||
self.mmap_enabled = False | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters