pixelflux 1.4.3__tar.gz → 1.4.4__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of pixelflux might be problematic. Click here for more details.
- {pixelflux-1.4.3/pixelflux.egg-info → pixelflux-1.4.4}/PKG-INFO +2 -1
- {pixelflux-1.4.3 → pixelflux-1.4.4}/README.md +1 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/screen_capture_module.cpp +33 -31
- {pixelflux-1.4.3 → pixelflux-1.4.4/pixelflux.egg-info}/PKG-INFO +2 -1
- {pixelflux-1.4.3 → pixelflux-1.4.4}/setup.py +1 -1
- {pixelflux-1.4.3 → pixelflux-1.4.4}/LICENSE +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/MANIFEST.in +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/__init__.py +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/__pycache__/__init__.cpython-311.pyc +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/include/cuda.h +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/include/nvEncodeAPI.h +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/include/stb_image.h +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/include/xxhash.c +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux/include/xxhash.h +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux.egg-info/SOURCES.txt +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux.egg-info/dependency_links.txt +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pixelflux.egg-info/top_level.txt +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/pyproject.toml +0 -0
- {pixelflux-1.4.3 → pixelflux-1.4.4}/setup.cfg +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pixelflux
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: A performant web native pixel delivery pipeline for diverse sources, blending VNC-inspired parallel processing of pixel buffers with flexible modern encoding formats.
|
|
5
5
|
Home-page: https://github.com/linuxserver/pixelflux
|
|
6
6
|
Author: Linuxserver.io
|
|
@@ -32,6 +32,7 @@ This module relies on a native C++ extension that is compiled during installatio
|
|
|
32
32
|
sudo apt-get update && \
|
|
33
33
|
sudo apt-get install -y \
|
|
34
34
|
g++ \
|
|
35
|
+
libavcodec-dev \
|
|
35
36
|
libdrm-dev \
|
|
36
37
|
libjpeg-turbo8-dev \
|
|
37
38
|
libva-dev \
|
|
@@ -1577,37 +1577,39 @@ StripeEncodeResult ScreenCaptureModule::encode_fullframe_vaapi(int width, int he
|
|
|
1577
1577
|
if (ret < 0) {
|
|
1578
1578
|
throw std::runtime_error("VAAPI_ENCODE_ERROR: Failed to send frame to encoder: " + std::to_string(ret));
|
|
1579
1579
|
}
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
|
|
1589
|
-
|
|
1590
|
-
|
|
1591
|
-
|
|
1592
|
-
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1580
|
+
while (true) {
|
|
1581
|
+
ret = avcodec_receive_packet(vaapi_state_.codec_ctx, vaapi_state_.packet);
|
|
1582
|
+
if (ret == AVERROR(EAGAIN) || ret == AVERROR_EOF) {
|
|
1583
|
+
return {};
|
|
1584
|
+
} else if (ret < 0) {
|
|
1585
|
+
throw std::runtime_error("VAAPI_ENCODE_ERROR: Failed to receive packet from encoder: " + std::to_string(ret));
|
|
1586
|
+
}
|
|
1587
|
+
StripeEncodeResult result;
|
|
1588
|
+
result.type = StripeDataType::H264;
|
|
1589
|
+
result.stripe_y_start = 0;
|
|
1590
|
+
result.stripe_height = height;
|
|
1591
|
+
result.frame_id = frame_counter;
|
|
1592
|
+
if (vaapi_state_.packet->size > 0) {
|
|
1593
|
+
const unsigned char TAG = 0x04;
|
|
1594
|
+
unsigned char type_hdr = (vaapi_state_.packet->flags & AV_PKT_FLAG_KEY) ? 0x01 : 0x00;
|
|
1595
|
+
int header_sz = 10;
|
|
1596
|
+
result.data = new unsigned char[vaapi_state_.packet->size + header_sz];
|
|
1597
|
+
result.size = vaapi_state_.packet->size + header_sz;
|
|
1598
|
+
result.data[0] = TAG;
|
|
1599
|
+
result.data[1] = type_hdr;
|
|
1600
|
+
uint16_t net_val = htons(static_cast<uint16_t>(result.frame_id % 65536));
|
|
1601
|
+
std::memcpy(result.data + 2, &net_val, 2);
|
|
1602
|
+
net_val = htons(static_cast<uint16_t>(result.stripe_y_start));
|
|
1603
|
+
std::memcpy(result.data + 4, &net_val, 2);
|
|
1604
|
+
net_val = htons(static_cast<uint16_t>(width));
|
|
1605
|
+
std::memcpy(result.data + 6, &net_val, 2);
|
|
1606
|
+
net_val = htons(static_cast<uint16_t>(height));
|
|
1607
|
+
std::memcpy(result.data + 8, &net_val, 2);
|
|
1608
|
+
std::memcpy(result.data + header_sz, vaapi_state_.packet->data, vaapi_state_.packet->size);
|
|
1609
|
+
}
|
|
1610
|
+
av_packet_unref(vaapi_state_.packet);
|
|
1611
|
+
return result;
|
|
1612
|
+
}
|
|
1611
1613
|
}
|
|
1612
1614
|
|
|
1613
1615
|
/**
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.1
|
|
2
2
|
Name: pixelflux
|
|
3
|
-
Version: 1.4.
|
|
3
|
+
Version: 1.4.4
|
|
4
4
|
Summary: A performant web native pixel delivery pipeline for diverse sources, blending VNC-inspired parallel processing of pixel buffers with flexible modern encoding formats.
|
|
5
5
|
Home-page: https://github.com/linuxserver/pixelflux
|
|
6
6
|
Author: Linuxserver.io
|
|
@@ -32,6 +32,7 @@ This module relies on a native C++ extension that is compiled during installatio
|
|
|
32
32
|
sudo apt-get update && \
|
|
33
33
|
sudo apt-get install -y \
|
|
34
34
|
g++ \
|
|
35
|
+
libavcodec-dev \
|
|
35
36
|
libdrm-dev \
|
|
36
37
|
libjpeg-turbo8-dev \
|
|
37
38
|
libva-dev \
|
|
@@ -48,7 +48,7 @@ with open("README.md", "r", encoding="utf-8") as fh:
|
|
|
48
48
|
long_description = fh.read()
|
|
49
49
|
setup(
|
|
50
50
|
name="pixelflux",
|
|
51
|
-
version="1.4.
|
|
51
|
+
version="1.4.4",
|
|
52
52
|
author="Linuxserver.io",
|
|
53
53
|
author_email="pypi@linuxserver.io",
|
|
54
54
|
description="A performant web native pixel delivery pipeline for diverse sources, blending VNC-inspired parallel processing of pixel buffers with flexible modern encoding formats.",
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|