using tee and appsink with nvstreammux
hello i want to make a pipeline with multiple sources and multiple branches and one of the branches is c++ application that does some processing on the extracted batch of images from the nvstreammux plugin. my goal is that i want the reading and decoding of the sources to happen one time. the proces…
deepstream-appsrc-test is the sample for appsrc and appsink

tee can be used as normal. no special code is needed.
It' just standard c++ ifstream and ofstream. When the program starts, try to open the file, if it success then read it. Hi Valdeth. You should use input and output file streams if you want to write and read from a file. Basically you open the file for writing and once you are done close the file. Later you can open the file for reading. The example below reads numbers from the file and just prints them out. If you want to read the file line by line you should look at the getline() function. I have just used your initial array to come up with a result per array which gives the product of all negative numbers in the array. Note that there **HAS** to be at least 1 negative number per array.



```
const int m=4, n=5;
	int i,j;
	int num;
	int result;
	int A[m][n]={{5,3,-4,8,2},
				 {1,5,2,7,-8},
				 {-3,9,5,2,4},
				 {4,-1,3,6,8}};

	ofstream outfile;
	ifstream infile; 

	outfile.open("c:/matrix/matrix.txt");

	for (i=0;i<m;i++)
	{
		result = 1;

		for (j=0;j<n;j++)
		{
			outfile << setw(3)<< A[i][j];

                            // Multiply negative numbers in each array (has to be at least 1 negative number in each array)
			if (A[i][j] < 0)              				                      result *= A[i][j];  // result = result x A[i][j]
		}
		cout << "Result of array " << i << " is " << result << endl;
		outfile << "\n";
	}

	outfile.close(); // Close for writing

	infile.open("c:/matrix/matrix.txt"); // opens the file
    
	infile >> num;
	while ( !infile.eof() ) 
	{ // keep reading until end-of-file
		cout << "The next number is " << num << endl;
		infile >> num; // sets EOF flag if no value found
	}
	infile.close();  //Close for reading
``` What is Delayed Branching ?
  

One way to maximize the use of the pipeline, is to find an instruction that can be safely exeucted whether the branch is taken or not, and execute that instruction. So, when a branch instruction is encountered, the hardware puts the instruction following the branch into the pipe and begins executing it, just as in predict-not-taken. However, unlike in predict-not-taken, we do not need to worry about whether the branch is taken or not, we do not need to clear the pipe because no matter whether the branch is taken or not, we know the instruction is safe to execute.
  

More Read : <https://www.cs.umd.edu/class/fall2001/cmsc411/projects/branches/delay.html>
  

Moving $I\_1$ after branch


* $I1$ is updating the value of  $R2$
* $R2$ which is used to determine branch condition $R1$
* Value of $R2$ is available after branch
  

$\Rightarrow$ `Cannot be moved`


Moving $I\_3$ after branch


* value of $R1$ is computed in this instruction
* $R1$ is the branch condition
  

$\Rightarrow$ `Cannot be moved`


Moving $I\_4$ after branch


* $I4$ is simple store instruction used to store R1 in memory
* program execution will have no effect if this is placed after conditional branch
  

$\Rightarrow$ `Can be moved`


Moving $I\_2$ after branch


* It update the memory location to place the storing of conditional branch instruction $R1$
* If moved after branch , when compiler reaches $I4$ program execution will stop
  

$\Rightarrow $ `Cannot be moved`


Hence, **option D is answer.** [VNC](http://www.realvnc.com/index.html) is an excellent tool for this purpose. There are other versions out there called UltraVNC, TightVNC. You can also use Remote Desktop if these are Windows machines.


You could also use STRCPYSCN How about in c++?



[http://www.1cplusplusstreet.com/vb/scripts/ShowCode.asp?txtCodeId=6877&lngWId=3](/posts/bad_link/258354?url=http%3A%2F%2Fwww.1cplusplusstreet.com%2Fvb%2Fscripts%2FShowCode.asp%3FtxtCodeId%3D6877%26lngWId%3D3) hi yerhu,

i could imagine, that one of the two following scenarios may cause the issue:

you’re using an outdated version of tk-core. check in your configuration: core/core\_api.yml

you’re using a pipelineconfiguration, which is pointing to a local-path and includes a file like python\_interpreter, i… more information: [c++ friend functions](http://www.tutorialspoint.com/cplusplus/cpp_friend_functions.htm) here’s the preview link:

<https://preview.webflow.com/preview/growing-divs?utm_medium=preview_link&utm_source=dashboard&utm_content=growing-divs&preview=b04849fa7dd685a1d207211c6ddc7c5b&mode=preview>

let me know if you can do it with this or if you need me to make the project clonable. so if you want to be able to run them as separate runs, you’ll still need some way of communicating between them. one mechanism we provide for that is by serializing daml values as json through the --input-file and --output-file options to daml script. so in your case, you should make sure that the … experiment a little with the export code itself. the number of lines in the code are reflected in the output.

so if you want to have the output close together, something like the following might be better:

$filename(c:\users\me\desktop%album%.txt,utf-16)$loop(%track%)%track%|%year%|%genre%

$loope…