Add FPS log print in vaapiencode
authorWind Yuan <feng.yuan@intel.com>
Fri, 9 Dec 2011 07:55:01 +0000 (15:55 +0800)
committerZhong Cong <congx.zhong@intel.com>
Tue, 5 Feb 2013 07:37:10 +0000 (15:37 +0800)
gst-libs/gst/vaapi/gstvaapidebug.h
gst/vaapiencode/gstvaapibaseencoder.c

index 09ad7ef..1f74ad8 100644 (file)
@@ -23,6 +23,9 @@
 #define GST_VAAPI_DEBUG_H
 
 #include <gst/gstinfo.h>
+#include <sys/time.h>
+#include <gst/gst.h>
+#include <gst/vaapi/gstvaapidisplay.h>
 
 #if DEBUG
 GST_DEBUG_CATEGORY_EXTERN(gst_debug_vaapi);
index 7a8a037..c2bb0e9 100644 (file)
@@ -19,6 +19,8 @@
 #include "gst/vaapi/gstvaapisurfacepool.h"
 #include "gst/vaapi/gstvaapivideobuffer.h"
 #include "gst/vaapi/gstvaapidisplay_priv.h"
+#include "gst/vaapi/gstvaapiutils_gst.h"
+
 
 GST_DEBUG_CATEGORY_STATIC (gst_vaapi_base_encoder_debug);
 #define GST_CAT_DEFAULT gst_vaapi_base_encoder_debug
@@ -791,6 +793,7 @@ base_query_encoding_status(GstVaapiBaseEncoder *base_encoder,
       buf_list = (VACodedBufferSegment*)buf_list->next;
       ENCODER_ASSERT(NULL == buf_list);
       has_coded_data = TRUE;
+      FPS_CALCULATION(vaapiencode);
   }
 
 #if SHARE_CODED_BUF