Backup/vfw/AVIReader.cs
(开头部分) 5KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
namespace Tiger.Video.VFW
{
using System;
using System.Drawing;
using System.Drawing.Imaging;
using System.Runtime.InteropServices;
/// <summary>
/// Reading AVI files using Video for Windows
/// </summary>
public class AVIReader : IDisposable
{
private IntPtr file;
private IntPtr stream;
private IntPtr getFrame;
private int width;
private int height;
private int position;
private int start;
private int length;
private float rate;
private string codec;
// Width property
public int Width
{
get { return width; }
}
// Height property
public int Height
{
get { return height; }
}
// FramesRate property
public float FrameRate
{
get { return rate; }
}
// CurrentPosition property
public int CurrentPosition
{
get { return position; }
set
{
if ((value < start) || (value >= start + length))
position = start;
else
position = value;
}
}
// Length property
public int Length
{
get { return length; }
}
// Codec property
public string Codec
{
get { return codec; }
后面还有 176 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。