Pārlūkot izejas kodu

Z991239-3726 #comment 视频增加序号信息

80274480 3 gadi atpakaļ
vecāks
revīzija
ff510d51c6

+ 5 - 1
Other/libvideoqueue/libvideoqueue.cpp

@@ -239,6 +239,7 @@ public:
 					}					
 					videotmp->height				= Video->height;
 					videotmp->width					= Video->width;
+					videotmp->iframeid				= Video->iframeid;
 					unsigned int*Ptr				= (unsigned int*)nTimeSignAddr;
 					*Ptr	= nowtime;
 #ifdef RVC_OS_WIN
@@ -300,6 +301,7 @@ public:
 					Video->framesize = videotemp->framesize;
 					Video->height = videotemp->height;
 					Video->width = videotemp->width;
+					Video->iframeid = videotemp->iframeid;
 
 #ifdef RVC_OS_WIN
 					if (flags) {
@@ -411,6 +413,7 @@ public:
 						ippiCopy_8u_C3R((unsigned char*)aImgDataAddr[m_pQueue->frontindex], videotemp->width*3, Video->data[0], Video->linesize[0], roiSize);
 					}
 #else
+					Video->iframeid = videotemp->iframeid;
 					for (int i = 0; i < videotemp->height; i++)
 					{
 						memcpy(Video->data[0] + i*Video->linesize[0], (unsigned char*)aImgDataAddr[m_pQueue->frontindex] + i * Video->width*3, Video->width*3);
@@ -451,6 +454,7 @@ public:
 					Video->framesize = videotemp->framesize;
 					Video->height = videotemp->height;
 					Video->width = videotemp->width;
+					Video->iframeid = videotemp->iframeid;
 #ifdef RVC_OS_WIN
 					if (flags) 
 					{
@@ -537,7 +541,7 @@ public:
 					Video->framesize		= videotemp->framesize;
 					Video->height			= videotemp->height;
 					Video->width			= videotemp->width;
-
+					Video->iframeid			= videotemp->iframeid;
 #ifdef RVC_OS_WIN
 					if (flags) {
 						IppiAxis flip;

+ 1 - 0
Other/libvideoqueue/libvideoqueue.h

@@ -32,6 +32,7 @@ typedef struct videoq_frame
 	int height;
 	int framesize;
 	int format; /* VIDEO_FORMAT_xxx */
+	int iframeid;
 }videoq_frame;
 
 class libvideoqueue_impl;  //桥接