refactor: rename video port flow_id → video_flow_id everywhere
All nodes now use video_flow_id/audio_flow_id consistently: - nodes/testpattern: flow_id → video_flow_id - nodes/fakesink: flow_id → video_flow_id - graph.json: from_port/to_port flow_id → video_flow_id - studio-manager: hardcoded build_graph edges + FlowGraph.hpp comment Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -17,7 +17,7 @@ struct NodeDef {
|
||||
//
|
||||
// from_port / to_port are the NODE_CONFIG keys each end receives the flow descriptor under.
|
||||
// The injected value is a JSON object: { "id": "<uuid>", ...format fields }.
|
||||
// Nodes read the UUID as cfg["flow_id"]["id"] and format fields as cfg["flow_id"]["fps_num"] etc.
|
||||
// Nodes read the UUID as cfg["video_flow_id"]["id"] and format fields as cfg["video_flow_id"]["fps_num"] etc.
|
||||
//
|
||||
// format examples:
|
||||
// video: { "kind":"video", "width":1920, "height":1080, "fps_num":25, "fps_den":1 }
|
||||
|
||||
@@ -106,11 +106,11 @@ static dmf::FlowGraph build_graph() {
|
||||
{"kind","audio"}, {"sample_rate",48000}, {"channels",2}, {"bit_depth",32}
|
||||
};
|
||||
g.edges = {
|
||||
// { tp_video_flow, "testpattern", "flow_id", "fakesink", "flow_id", video_fmt },
|
||||
// { tp_video_flow, "testpattern", "video_flow_id", "fakesink", "video_flow_id", video_fmt },
|
||||
// { tp_audio_flow, "testpattern", "audio_flow_id", "", "", audio_fmt },
|
||||
// { ndi_video_flow, "ndiin", "video_flow_id", "ndiout", "flow_id", video_fmt },
|
||||
// { ndi_video_flow, "ndiin", "video_flow_id", "ndiout", "video_flow_id", video_fmt },
|
||||
// { ndi_audio_flow, "ndiin", "audio_flow_id", "", "", audio_fmt },
|
||||
{ tp_video_flow, "testpattern", "flow_id", "ndiout", "flow_id", video_fmt },
|
||||
{ tp_video_flow, "testpattern", "video_flow_id", "ndiout", "video_flow_id", video_fmt },
|
||||
{ tp_audio_flow, "testpattern", "audio_flow_id", "ndiout", "audio_flow_id", audio_fmt },
|
||||
};
|
||||
return g;
|
||||
|
||||
Reference in New Issue
Block a user