|
@@ -252,7 +252,7 @@ read_YUV_frame(NvBuffer & buffer)
|
|
|
static int
|
|
|
write_encoder_output_frame(ofstream * stream, NvBuffer * buffer)
|
|
|
{
|
|
|
- stream->write((char *) buffer->planes[0].data, buffer->planes[0].bytesused);
|
|
|
+// stream->write((char *) buffer->planes[0].data, buffer->planes[0].bytesused);
|
|
|
return 0;
|
|
|
}
|
|
|
|
|
@@ -328,7 +328,7 @@ encoder_capture_plane_dq_callback(struct v4l2_buffer *v4l2_buf, NvBuffer * buffe
|
|
|
{
|
|
|
std::cout<<" out a buffer, size: "<<buffer->planes[0].bytesused<<std::endl;
|
|
|
// if(a1 < 30)
|
|
|
- write_encoder_output_frame(ctx->out_file, buffer);
|
|
|
+// write_encoder_output_frame(ctx->out_file, buffer);
|
|
|
a1++;
|
|
|
share_encoder_output_frame(buffer);
|
|
|
}
|
|
@@ -1453,8 +1453,8 @@ encode_proc(context_t& ctx, int argc, char *argv[])
|
|
|
if (!ctx.stats)
|
|
|
{
|
|
|
/* Open output file for encoded bitstream */
|
|
|
- ctx.out_file = new ofstream(ctx.out_file_path);
|
|
|
- TEST_ERROR(!ctx.out_file->is_open(), "Could not open output file", cleanup);
|
|
|
+// ctx.out_file = new ofstream(ctx.out_file_path);
|
|
|
+// TEST_ERROR(!ctx.out_file->is_open(), "Could not open output file", cleanup);
|
|
|
}
|
|
|
|
|
|
if (ctx.ROI_Param_file_path) {
|
|
@@ -2207,7 +2207,7 @@ cleanup:
|
|
|
/* Release encoder configuration specific resources. */
|
|
|
delete ctx.enc;
|
|
|
delete ctx.in_file;
|
|
|
- delete ctx.out_file;
|
|
|
+// delete ctx.out_file;
|
|
|
delete ctx.roi_Param_file;
|
|
|
delete ctx.recon_Ref_file;
|
|
|
delete ctx.rps_Param_file;
|