示例#1
0
        public static IEnumerable <byte[]> GetFrameCollectionByRange(string path, int width, int height, Int64 startTimestamp, int step, int count)
        {
            if (string.IsNullOrEmpty(path) || width <= 0 || height <= 0 ||
                startTimestamp < 0 || step < 0 || count < 0 || (step == 0 && count == 0))
            {
                return(null);
            }

            _getImageCollectionCallback = InternalGetImageCollectionCallback;
            int res = GetFrameCollection(_getImageCollectionCallback, path, width, height, startTimestamp, step, count);

            return(_frameCollection);
        }
示例#2
0
 private static extern int GetFrameCollection(GetImageCollectionCallback fGetImageCollectionCallback, string filePath,
                                              int width, int height, Int64 startTimestamp, int step, int count);