Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
81 commits
Select commit Hold shift + click to select a range
2243a7f
Update version for v0.29.alpha dev branch
rjhowell44 Jan 30, 2024
3b126ff
Refactor Remuxer - no longer tee - add Metamuxer
rjhowell44 Feb 12, 2024
3853d28
Create new OpenCV example using DslSurfaceTransform.h
rjhowell44 Feb 12, 2024
69a24d5
Refactor Remuxer - no longer tee - add Metamuxer
rjhowell44 Feb 17, 2024
e9281ad
Refactor Remuxer - no longer tee - add Metamuxer
rjhowell44 Feb 18, 2024
e74982f
Add python parallel inference example
rjhowell44 Feb 19, 2024
6cb86eb
Create api-remuxer.md
rjhowell44 Feb 19, 2024
1bd08df
WIP remove Remuxer from api-tee.md
rjhowell44 Feb 19, 2024
9fe5541
WIP create api-remuxer.md
rjhowell44 Feb 19, 2024
9541ac5
WIP remove Remuxer from api-tee.md
rjhowell44 Feb 19, 2024
64a4fda
WIP create api-remuxer.md
rjhowell44 Feb 20, 2024
cfa6425
Add files via upload
rjhowell44 Feb 21, 2024
ba8e707
WIP create api-remuxer.md
rjhowell44 Feb 21, 2024
c227b0e
WIP remove Remuxer from api-tee.md
rjhowell44 Feb 22, 2024
fc7e939
Update remuxer.png
rjhowell44 Feb 22, 2024
ecc4801
Update remuxer.png
rjhowell44 Feb 22, 2024
ead1b19
WIP Create api-remuxer.md
rjhowell44 Feb 22, 2024
af03b95
Update api-component.md for Remuxer
rjhowell44 Feb 23, 2024
f944d0c
Update api-tiler.md for Remuxer
rjhowell44 Feb 23, 2024
8295c3a
WIP Create api-remuxer.md
rjhowell44 Feb 23, 2024
54b3d94
Add files via upload
rjhowell44 Feb 24, 2024
6a2bb38
Delete Images/parallel-inference.png
rjhowell44 Feb 24, 2024
df9f80b
Add files via upload
rjhowell44 Feb 24, 2024
00e232a
WIP Update overview.md for Parallel Inference
rjhowell44 Feb 25, 2024
8703bb8
Update dsl-pipeline-components.png for Remuxer
rjhowell44 Feb 25, 2024
925fab2
Update README.md with Remuxer API Reference link
rjhowell44 Feb 26, 2024
0a053dd
Add files via upload
rjhowell44 Feb 26, 2024
9afee09
Update overview.md with Remuxer and Selective Parallel Inference
rjhowell44 Feb 26, 2024
24a4fd1
Add updated remuxer.png
rjhowell44 Feb 26, 2024
18b8c87
Complete the Remuxer API Reference
rjhowell44 Feb 26, 2024
d6f03d8
Update api-reference-list.md with Remuxer API Reference
rjhowell44 Feb 26, 2024
c51b5c2
Update api-pipeline.md with Remuxer link
rjhowell44 Feb 26, 2024
177232a
Update api-player.md with Remuxer link
rjhowell44 Feb 26, 2024
882c07e
Update api-source.md with Remuxer link
rjhowell44 Feb 26, 2024
4bb4507
Update api-tap.md with Remuxer link
rjhowell44 Feb 26, 2024
b9f5d62
Update api-dewarper.md with Remuxer link
rjhowell44 Feb 26, 2024
c5adaeb
Update api-preproc.md with Remuxer link
rjhowell44 Feb 26, 2024
52f94c8
Update api-infer.md with Remuxer link
rjhowell44 Feb 26, 2024
1ae1ab6
Update api-tracker.md with Remuxer link
rjhowell44 Feb 26, 2024
7879f33
Update api-segvisual.md with Remuxer link
rjhowell44 Feb 26, 2024
a155aa0
Update api-osd.md with Remuxer link
rjhowell44 Feb 26, 2024
3c80540
Update api-sink.md with Remuxer link
rjhowell44 Feb 26, 2024
56ddd19
Update api-pph.md with Remuxer link
rjhowell44 Feb 26, 2024
39d3904
Update api-ode-trigger.md with Remuxer link
rjhowell44 Feb 26, 2024
1abe045
Update api-ode-action.md with Remuxer link
rjhowell44 Feb 26, 2024
d818bfc
Update api-ode-area.md with Remuxer link
rjhowell44 Feb 26, 2024
7547b13
Update api-ode-heat-mapper.md with Remuxer link
rjhowell44 Feb 26, 2024
18e9549
Update api-display-type.md with Remuxer link
rjhowell44 Feb 26, 2024
4dbe63f
Update api-branch.md with Remuxer link
rjhowell44 Feb 26, 2024
286ea04
Update api-branch.md with Remuxer link
rjhowell44 Feb 26, 2024
d6d266f
Update api-mailer.md with Remuxer link
rjhowell44 Feb 26, 2024
a35eab1
Update api-ws-server.md with Remuxer link
rjhowell44 Feb 26, 2024
3a9c3c8
Update api-msg-broker.md with Remuxer link
rjhowell44 Feb 26, 2024
460cbb9
Update api-info.md with Remuxer link
rjhowell44 Feb 26, 2024
19510b8
Clean up after removal of Remuxer from api-tee.md
rjhowell44 Feb 27, 2024
8778230
Save Metamuxer config file to /tmp folder
rjhowell44 Feb 27, 2024
69d7cb2
Merge pull request #1162 from prominenceai/refactor_remuxer
rjhowell44 Feb 28, 2024
30f183a
Alow PPHs to be added to both primary and secondary infer components
rjhowell44 Feb 28, 2024
4c2f30e
Change dsl_infer_primary_pph_add/remove to dsl_infer_pph_add/remove
rjhowell44 Feb 29, 2024
02b8be0
Change dsl_infer_primary_pph_add/remove to dsl_infer_pph_add/remove
rjhowell44 Feb 29, 2024
5cb6be3
Merge pull request #1163 from prominenceai/infer_pph
rjhowell44 Feb 29, 2024
3b958b6
test and example updates for dgpu
rjhowell44 Mar 14, 2024
36dcd31
Update tests for GPU
rjhowell44 Mar 18, 2024
fd06d2f
Minor updates to examples for dGPU
rjhowell44 Mar 21, 2024
9fa3db1
Update FFmpeg dependencies for dGPU
rjhowell44 Mar 21, 2024
c3f93d3
Merge pull request #1166 from prominenceai/dgpu_updates
rjhowell44 Mar 21, 2024
d437a72
Add files via upload
rjhowell44 Mar 21, 2024
8fde321
Update Selective Parallel Inference section
rjhowell44 Mar 21, 2024
49bbc56
Merge pull request #1167 from prominenceai/v0.29.alpha.docs
rjhowell44 Mar 21, 2024
72b16b7
Complete interim parallel inference examples
rjhowell44 Mar 23, 2024
befefb5
Complete comments - Remuxer implementation
rjhowell44 Mar 23, 2024
bfaa6e4
Merge pull request #1168 from prominenceai/remuxer_examples
rjhowell44 Mar 23, 2024
ec40739
Add missing constants
rjhowell44 Mar 23, 2024
160d35a
Add Remuxer link
rjhowell44 Mar 23, 2024
0049ecc
Fix link to default streammux dimensions
rjhowell44 Mar 23, 2024
3c85900
WIP Create v0.29.alpha.md
rjhowell44 Mar 24, 2024
d44c5b4
Complete v0.29.alpha.md
rjhowell44 Mar 24, 2024
ce7b43e
Update v0.29.alpha.md
rjhowell44 Mar 24, 2024
040f200
Update dsl-releases.md for v0.29.alpha release
rjhowell44 Mar 24, 2024
75a52b7
Merge pull request #1172 from prominenceai/v0.29.alpha.docs
rjhowell44 Mar 24, 2024
4a63d11
Update DSL version to v0.29.alpha
rjhowell44 Mar 24, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Refactor Remuxer - no longer tee - add Metamuxer
  • Loading branch information
rjhowell44 committed Feb 18, 2024
commit e9281adc80d0528f5e622bbb478a95c460f3e020
1 change: 1 addition & 0 deletions dsl.py
Original file line number Diff line number Diff line change
Expand Up @@ -5253,6 +5253,7 @@ def dsl_remuxer_branch_remove_many(name, branches):
arr[:] = branches
result =_dsl.dsl_remuxer_branch_remove_many(name, arr)
return int(result)

##
## dsl_remuxer_batch_size_get()
##
Expand Down
2 changes: 1 addition & 1 deletion src/DslRemuxerBintr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ namespace DSL
m_queues[m_streamIds[i]] = pQueue;

std::string sinkPadName =
"sink_" + std::to_string(i);
"sink_" + std::to_string(m_streamIds[i]);

if (!pQueue->LinkToSinkMuxer(m_pStreammux,
sinkPadName.c_str()))
Expand Down
113 changes: 113 additions & 0 deletions test/api/DslRemuxerApiTest.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,6 +321,110 @@ SCENARIO( "A Remuxer can set a Branch config-file correctly", "[remuxer-api]" )
}
}

static boolean pad_probe_handler_cb1(void* buffer, void* user_data)
{
return true;
}
static boolean pad_probe_handler_cb2(void* buffer, void* user_data)
{
return true;
}
SCENARIO( "A Sink Pad Probe Handler can be added and removed from a Remuxer",
"[remuxer-api]" )
{
GIVEN( "A new Remuxer and Custom PPH" )
{
std::wstring remuxer_name(L"remuxer");
std::wstring customPpmName(L"custom-ppm");

REQUIRE( dsl_remuxer_new(remuxer_name.c_str()) == DSL_RESULT_SUCCESS );

REQUIRE( dsl_pph_custom_new(customPpmName.c_str(),
pad_probe_handler_cb1, NULL) == DSL_RESULT_SUCCESS );

WHEN( "A Sink Pad Probe Handler is added to the Remuxer" )
{
// Test the remove failure case first, prior to adding the handler
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SINK) == DSL_RESULT_REMUXER_HANDLER_REMOVE_FAILED );

REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SINK) == DSL_RESULT_SUCCESS );

THEN( "The Padd Probe Handler can then be removed" )
{
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(),
customPpmName.c_str(), DSL_PAD_SINK) == DSL_RESULT_SUCCESS );
REQUIRE( dsl_component_delete_all() == DSL_RESULT_SUCCESS );
REQUIRE( dsl_pph_delete_all() == DSL_RESULT_SUCCESS );
}
}
WHEN( "A Sink Pad Probe Handler is added to the Tiler" )
{
REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SINK) == DSL_RESULT_SUCCESS );

THEN( "Attempting to add the same Sink Pad Probe Handler twice failes" )
{
REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SINK) == DSL_RESULT_REMUXER_HANDLER_ADD_FAILED );
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SINK) == DSL_RESULT_SUCCESS );
REQUIRE( dsl_component_delete_all() == DSL_RESULT_SUCCESS );
REQUIRE( dsl_pph_delete_all() == DSL_RESULT_SUCCESS );
}
}
}
}

SCENARIO( "A Source Pad Probe Handler can be added and removed from a Remuxer",
"[remuxer-api]" )
{
GIVEN( "A new Remuxer and Custom PPH" )
{
std::wstring remuxer_name(L"remuxer");
std::wstring customPpmName(L"custom-ppm");

REQUIRE( dsl_remuxer_new(remuxer_name.c_str()) == DSL_RESULT_SUCCESS );
REQUIRE( dsl_component_list_size() == 1 );
REQUIRE( dsl_pph_custom_new(customPpmName.c_str(), pad_probe_handler_cb1,
NULL) == DSL_RESULT_SUCCESS );

WHEN( "A Source Pad Probe Handler is added to the Remuxer" )
{
// Test the remove failure case first, prior to adding the handler
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SRC) == DSL_RESULT_REMUXER_HANDLER_REMOVE_FAILED );

REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SRC) == DSL_RESULT_SUCCESS );

THEN( "The Padd Probe Handler can then be removed" )
{
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(),
customPpmName.c_str(), DSL_PAD_SRC) == DSL_RESULT_SUCCESS );
REQUIRE( dsl_component_delete_all() == DSL_RESULT_SUCCESS );
REQUIRE( dsl_pph_delete_all() == DSL_RESULT_SUCCESS );
}
}
WHEN( "A Source Pad Probe Handler is added to the Remuxer" )
{
REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SRC) == DSL_RESULT_SUCCESS );

THEN( "Attempting to add the same Source Pad Probe Handler twice failes" )
{
REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(), customPpmName.c_str(),
DSL_PAD_SRC) == DSL_RESULT_REMUXER_HANDLER_ADD_FAILED );
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(),
customPpmName.c_str(), DSL_PAD_SRC) == DSL_RESULT_SUCCESS );
REQUIRE( dsl_component_delete_all() == DSL_RESULT_SUCCESS );
REQUIRE( dsl_pph_delete_all() == DSL_RESULT_SUCCESS );
}
}
}
}

SCENARIO( "The Remuxer API checks for NULL input parameters", "[remuxer-api]" )
{
GIVEN( "An empty list of Components" )
Expand Down Expand Up @@ -394,6 +498,15 @@ SCENARIO( "The Remuxer API checks for NULL input parameters", "[remuxer-api]" )
REQUIRE( dsl_remuxer_dimensions_set(NULL,
1, 1) == DSL_RESULT_INVALID_INPUT_PARAM );
}
REQUIRE( dsl_remuxer_pph_add(NULL,
NULL, DSL_PAD_SRC) == DSL_RESULT_INVALID_INPUT_PARAM );
REQUIRE( dsl_remuxer_pph_add(remuxer_name.c_str(),
NULL, DSL_PAD_SRC) == DSL_RESULT_INVALID_INPUT_PARAM );
REQUIRE( dsl_remuxer_pph_remove(NULL,
NULL, DSL_PAD_SRC) == DSL_RESULT_INVALID_INPUT_PARAM );
REQUIRE( dsl_remuxer_pph_remove(remuxer_name.c_str(),
NULL, DSL_PAD_SRC) == DSL_RESULT_INVALID_INPUT_PARAM );

}
}
}
Expand Down
Loading