NVIDIA DeepStream SDK API Reference

9.2 Release
service-maker/sources/python/src/bindings/docstrings/bufferdoc.h
Go to the documentation of this file.
1 /*
2  * SPDX-FileCopyrightText: Copyright (c) 2026 NVIDIA CORPORATION & AFFILIATES. All rights reserved.
3  * SPDX-License-Identifier: Apache-2.0
4  *
5  * Licensed under the Apache License, Version 2.0 (the "License");
6  * you may not use this file except in compliance with the License.
7  * You may obtain a copy of the License at
8  *
9  * http://www.apache.org/licenses/LICENSE-2.0
10  *
11  * Unless required by applicable law or agreed to in writing, software
12  * distributed under the License is distributed on an "AS IS" BASIS,
13  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14  * See the License for the specific language governing permissions and
15  * limitations under the License.
16  */
17 
18 #pragma once
19 
20 namespace pydeepstreamdoc
21 {
22  namespace buffer
23  {
24  namespace BufferDoc
25  {
26  constexpr const char* descr = R"pydeepstream(
27  Wrapper of a deepstream buffer
28 
29  :ivar batch_size: *int*, Batch size of the buffer
30  :ivar batch_meta: :class:`BatchMetadata`, Batch metadata of the buffer
31  :ivar timestamp: *int*, Timestamp of the buffer)pydeepstream";
32  constexpr const char* init_empty = R"pydeepstream(Construct an empty buffer.)pydeepstream";
33  constexpr const char* init_bytes = R"pydeepstream(
34  Construct a buffer from a list of bytes.
35 
36  :arg data: *list of int* Byte list to construct the buffer)pydeepstream";
37 
38  constexpr const char* init_gst_buffer = R"pydeepstream(
39  Typecast a buffer from a GstBuffer object.
40 
41  :arg gst_buffer: :class:`Gst.Buffer` GstBuffer object)pydeepstream
42  :returns: :class:`Buffer` Buffer object)pydeepstream";
43  constexpr const char* get_chunk_id = R"pydeepstream(
44  Retrieve chunk ID of the buffer from the batch ID, in case of dynamic src decoder.
45  Always returns 0 in case of uridecodebin.
46 
47  :arg batch_id: Batch id of the buffer
48  :returns: Chunk id of the buffer)pydeepstream";
49  constexpr const char* extract = R"pydeepstream(
50  Extract data from the buffer in the batch with given id to a tensor
51 
52  :arg batch_id: *int* Batch id of the buffer
53  :returns: :class:`Tensor` Buffer data as tensor)pydeepstream";
54  }
55 
56  namespace FeederDoc
57  {
58  constexpr const char* descr = R"pydeepstream(Class for injecting buffers to an appsrc instance, requiring a :class:`BufferProvider` implementation to generate buffers)pydeepstream";
59  constexpr const char* init = R"pydeepstream(
60  Initialize the feeder with the given name and buffer provider
61 
62  :arg name: *str* Name of the feeder
63  :arg provider: :class:`BufferProvider` Buffer provider)pydeepstream";
64  }
65 
66  namespace BufferProviderDoc
67  {
68  constexpr const char* descr = R"pydeepstream(Interface for generating buffers)pydeepstream";
69  constexpr const char* init = R"pydeepstream(Construct an empty buffer provider.)pydeepstream";
70  constexpr const char* generate = R"pydeepstream(
71  Generate a buffer of size *size*. Empty buffer indicates the EOS
72 
73  :arg size: *int* Size of the buffer
74  :returns: :class:`Buffer` Generated buffer object)pydeepstream";
75  }
76 
77  namespace ReceiverDoc
78  {
79  constexpr const char* descr = R"pydeepstream(Class for receiving buffers from an appsink instance, requiring a :class:`BufferRetriever` implementation to consume the buffers.)pydeepstream";
80  constexpr const char* init = R"pydeepstream(
81  Initialize the receiver with the given name and buffer retriever.
82 
83  :arg name: *str* Name of the receiver
84  :arg retriever: :class:`BufferRetriever` Buffer retriever)pydeepstream";
85  }
86 
87  namespace BufferRetrieverDoc
88  {
89  constexpr const char* descr = R"pydeepstream(Interface for retrieving buffers)pydeepstream";
90  constexpr const char* init = R"pydeepstream(Construct an empty buffer retriever.)pydeepstream";
91  constexpr const char* consume = R"pydeepstream(
92  Consume a buffer.
93 
94  :arg receiver: :class:`Receiver` Receiver to consume the buffer
95  :arg buffer: :class:`Receiver` Buffer to consume
96  :returns: Consumed bytes, a negative value indicates error.)pydeepstream";
97  }
98  }
99 }
pydeepstreamdoc
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:20
pydeepstreamdoc::buffer::FeederDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:59
pydeepstreamdoc::buffer::BufferRetrieverDoc::consume
constexpr const char * consume
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:91
pydeepstreamdoc::buffer::BufferRetrieverDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:90
pydeepstreamdoc::buffer::BufferDoc::init_empty
constexpr const char * init_empty
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:32
pydeepstreamdoc::buffer::BufferDoc::get_chunk_id
constexpr const char * get_chunk_id
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:43
pydeepstreamdoc::buffer::FeederDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:58
pydeepstreamdoc::buffer::BufferProviderDoc::generate
constexpr const char * generate
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:70
pydeepstreamdoc::buffer::BufferRetrieverDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:89
pydeepstreamdoc::buffer::BufferDoc::init_bytes
constexpr const char * init_bytes
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:33
pydeepstreamdoc::buffer::ReceiverDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:80
pydeepstreamdoc::buffer::ReceiverDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:79
pydeepstreamdoc::buffer::BufferDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:26
pydeepstreamdoc::buffer::BufferDoc::extract
constexpr const char * extract
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:49
pydeepstreamdoc::buffer::BufferProviderDoc::init
constexpr const char * init
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:69
pydeepstreamdoc::buffer::BufferProviderDoc::descr
constexpr const char * descr
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:68
pydeepstreamdoc::buffer::BufferDoc::init_gst_buffer
constexpr const char * init_gst_buffer
Definition: service-maker/sources/python/src/bindings/docstrings/bufferdoc.h:38