From e118f5b490b67303e3770751d584a4405548f6a6 Mon Sep 17 00:00:00 2001
From: xuxiuxi <xuxiuxi@454eff88-639b-444f-9e54-f578c98de674>
Date: 星期四, 30 三月 2017 11:43:29 +0800
Subject: [PATCH]
---
RtspFace/PL_AVFrameBGRA.cpp | 16 ++++++++--------
1 files changed, 8 insertions(+), 8 deletions(-)
diff --git a/RtspFace/PL_AVFrameBGRA.cpp b/RtspFace/PL_AVFrameBGRA.cpp
index addb967..8e333ce 100644
--- a/RtspFace/PL_AVFrameBGRA.cpp
+++ b/RtspFace/PL_AVFrameBGRA.cpp
@@ -160,9 +160,9 @@
in->buffSize = src_width * src_height * 4; // #todo use ret value?
}
- else if (in->config.convertTo == PL_AVFrameBGRA_Config::I420_TO_ARGB8888)
+ else if (in->config.convertTo == PL_AVFrameBGRA_Config::I420_TO_RGBA8888)
{
- libyuv::I420ToARGB(src_y, src_width,
+ libyuv::I420ToRGBA(src_y, src_width,
src_u, SUBSAMPLE(src_width, 2),
src_v, SUBSAMPLE(src_width, 2),
in->buffer, 4 * src_width,
@@ -190,12 +190,12 @@
in->lastFrame.pts = frame->pts;
//#test
- //static size_t f=0;
- //char fname[50];
- //sprintf(fname, "%u.argb", ++f);
- //FILE * pFile = fopen (fname,"wb");
- //fwrite (in->buffer , sizeof(char), in->buffSize, pFile);
- //fclose(pFile);
+ static size_t f=0;
+ char fname[50];
+ sprintf(fname, "%u.rgba", ++f);
+ FILE * pFile = fopen (fname,"wb");
+ fwrite (in->buffer , sizeof(char), in->buffSize, pFile);
+ fclose(pFile);
return true;
}
--
Gitblit v1.8.0