|
From: libvidcap c. <lib...@li...> - 2010-02-01 19:48:31
|
Revision: 105
http://libvidcap.svn.sourceforge.net/libvidcap/?rev=105&view=rev
Author: bcholew
Date: 2010-02-01 19:48:25 +0000 (Mon, 01 Feb 2010)
Log Message:
-----------
Add convenience parameter 'format' to the capture callback 'vidcap_capture_info'
structure. This parameter represents the vidcap_fmt_info structure describing
the frame returned by the capture callback.
NOTE: This change alters libvidcap's public interface.
Modified Paths:
--------------
trunk/include/vidcap/vidcap.h
trunk/src/sapi.c
Modified: trunk/include/vidcap/vidcap.h
===================================================================
--- trunk/include/vidcap/vidcap.h 2010-02-01 19:37:31 UTC (rev 104)
+++ trunk/include/vidcap/vidcap.h 2010-02-01 19:48:25 UTC (rev 105)
@@ -78,6 +78,7 @@
int error_status;
long capture_time_sec;
long capture_time_usec;
+ struct vidcap_fmt_info format;
};
typedef int (*vidcap_src_capture_callback) (vidcap_src *,
Modified: trunk/src/sapi.c
===================================================================
--- trunk/src/sapi.c 2010-02-01 19:37:31 UTC (rev 104)
+++ trunk/src/sapi.c 2010-02-01 19:48:25 UTC (rev 105)
@@ -302,6 +302,8 @@
cap_info.video_data_size = buf_data_size;
}
+ cap_info.format = src_ctx->fmt_nominal;
+
if ( ( send_frame || error_status ) && cap_callback &&
cap_data != VIDCAP_INVALID_USER_DATA )
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|