mirror of
https://github.com/koush/scrypted.git
synced 2026-02-09 16:52:18 +00:00
python-codecs: fix vaapi gray output
This commit is contained in:
4
plugins/python-codecs/package-lock.json
generated
4
plugins/python-codecs/package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@scrypted/python-codecs",
|
||||
"version": "0.1.63",
|
||||
"version": "0.1.64",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@scrypted/python-codecs",
|
||||
"version": "0.1.63",
|
||||
"version": "0.1.64",
|
||||
"devDependencies": {
|
||||
"@scrypted/sdk": "file:../../sdk"
|
||||
}
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@scrypted/python-codecs",
|
||||
"version": "0.1.63",
|
||||
"version": "0.1.64",
|
||||
"description": "Python Codecs for Scrypted",
|
||||
"keywords": [
|
||||
"scrypted",
|
||||
|
||||
@@ -172,8 +172,14 @@ class VaapiPostProcess():
|
||||
vaapipostproc.set_property('height', outputHeight)
|
||||
|
||||
# not sure vaapi supports non-rgba across all hardware...
|
||||
# (11): rgba - GST_VIDEO_FORMAT_RGBA
|
||||
vaapipostproc.set_property('format', 11)
|
||||
# GST_VIDEO_FORMAT_RGBA (11) – rgb with alpha channel last
|
||||
# GST_VIDEO_FORMAT_GRAY8 (25) – 8-bit grayscale
|
||||
|
||||
format = toCapsFormat(options)
|
||||
if format == 'GRAY8':
|
||||
vaapipostproc.set_property('format', 25)
|
||||
else:
|
||||
vaapipostproc.set_property('format', 11)
|
||||
|
||||
if crop:
|
||||
left = int(crop['left'])
|
||||
|
||||
Reference in New Issue
Block a user