From 017b7eb736ccc53c52f81486be8196d7fafc3289 Mon Sep 17 00:00:00 2001 From: houxiao <houxiao@454eff88-639b-444f-9e54-f578c98de674> Date: 星期三, 28 十二月 2016 10:31:42 +0800 Subject: [PATCH] add MaterialBuffer --- RtspFace/main.cpp | 28 ++++++++++++++-------------- 1 files changed, 14 insertions(+), 14 deletions(-) diff --git a/RtspFace/main.cpp b/RtspFace/main.cpp index ef672a1..b75f9ea 100644 --- a/RtspFace/main.cpp +++ b/RtspFace/main.cpp @@ -37,8 +37,18 @@ exit(EXIT_FAILURE); } } - - //{ + + { + PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder"); + h264Decoder->init(nullptr); + } + + { + PL_AVFrameYUV420* avFrameYUV420 = (PL_AVFrameYUV420*)pipeLine.push_elem("PL_AVFrameYUV420"); + avFrameYUV420->init(nullptr); + } + + //{//#todo queue should support deep copy // PL_Queue_Config config; // PL_Queue* queue1 = (PL_Queue*)pipeLine.push_elem("PL_Queue"); // bool ret = queue1->init(&config); @@ -48,21 +58,11 @@ // exit(EXIT_FAILURE); // } //} - - { - PL_H264Decoder* h264Decoder = (PL_H264Decoder*)pipeLine.push_elem("PL_H264Decoder"); - h264Decoder->init(nullptr); - } //{ - // PL_AVFrameYUV420* avFrameYUV420 = (PL_AVFrameYUV420*)pipeLine.push_elem("PL_AVFrameYUV420"); - // avFrameYUV420->init(nullptr); + // PL_H264Encoder* h264Encoder = (PL_H264Encoder*)pipeLine.push_elem("PL_H264Encoder"); + // h264Encoder->init(nullptr); //} - - { - PL_H264Encoder* h264Encoder = (PL_H264Encoder*)pipeLine.push_elem("PL_H264Encoder"); - h264Encoder->init(nullptr); - } //{ // RTSPServerConfig config; -- Gitblit v1.8.0