VideoFrame 클래스

정의

비디오 데이터의 단일 프레임을 나타냅니다.

public ref class VideoFrame sealed : IClosable
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.IVideoFrameFactory, 65536, Windows.Foundation.UniversalApiContract)]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class VideoFrame final : IClosable
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.GCPressure]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
/// [Windows.Foundation.Metadata.Activatable(Windows.Media.IVideoFrameFactory, 65536, "Windows.Foundation.UniversalApiContract")]
class VideoFrame final : IClosable
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.IVideoFrameFactory), 65536, typeof(Windows.Foundation.UniversalApiContract))]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class VideoFrame : System.IDisposable
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.GCPressure]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
[Windows.Foundation.Metadata.Activatable(typeof(Windows.Media.IVideoFrameFactory), 65536, "Windows.Foundation.UniversalApiContract")]
public sealed class VideoFrame : System.IDisposable
function VideoFrame(format, width, height, alpha)
Public NotInheritable Class VideoFrame
Implements IDisposable
상속
Object IInspectable VideoFrame
특성
구현

Windows 요구 사항

디바이스 패밀리
Windows 10 (10.0.10240.0에서 도입되었습니다.)
API contract
Windows.Foundation.UniversalApiContract (v1.0에서 도입되었습니다.)

설명

버전 기록

Windows 버전 SDK 버전 추가된 값
1803 17134 CopyToAsync(VideoFrame, Nullable<BitmapBounds&gt,Nullable<BitmapBounds&gt)

생성자

VideoFrame(BitmapPixelFormat, Int32, Int32)

VideoFrame 클래스의 새 인스턴스를 초기화합니다.

VideoFrame(BitmapPixelFormat, Int32, Int32, BitmapAlphaMode)

VideoFrame 클래스의 새 인스턴스를 초기화합니다.

속성

Direct3DSurface

비디오 프레임이 IDirect3DSurface 있는 경우 비디오 프레임의 픽셀 데이터가 포함된 개체를 가져옵니다.

Duration

비디오 프레임의 기간을 가져오거나 설정합니다.

ExtendedProperties

미디어 프레임에서 속성을 가져오고 설정할 수 있는 확장 속성 집합을 가져옵니다.

IsDiscontinuous

비디오 프레임이 스트림의 간격 이후 첫 번째 프레임인지 여부를 나타내는 값을 가져오거나 설정합니다.

IsReadOnly

비디오 프레임이 읽기 전용인지 여부를 나타내는 값을 가져옵니다.

RelativeTime

비디오 스트림 내에서 프레임의 상대 시간을 가져오거나 설정합니다.

SoftwareBitmap

비디오 프레임이 있는 경우 비디오 프레임의 픽셀 데이터를 포함하는 SoftwareBitmap 개체를 가져옵니다.

SystemRelativeTime

시스템을 기준으로 하며 동일한 디바이스의 여러 미디어 원본에서 상호 연결할 수 있는 타임스탬프를 가져오거나 설정합니다.

Type

비디오 프레임에 포함된 비디오 데이터의 형식을 나타내는 문자열을 가져옵니다.

메서드

Close()

개체 및 연결된 리소스를 삭제합니다.

CopyToAsync(VideoFrame)

현재를 VideoFrame 제공된 VideoFrame 개체에 복사합니다.

CopyToAsync(VideoFrame, IReference<BitmapBounds>, IReference<BitmapBounds>)

현재 VideoFrame 에서 지정한 사각형을 제공 VideoFrame 된 개체의 지정된 사각형에 복사합니다.

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32)

이미지 데이터가 기본 Direct3D 디바이스에 의해 할당된 IDXGISurface에 저장되는 클래스의 새 인스턴스 VideoFrame 를 만듭니다.

CreateAsDirect3D11SurfaceBacked(DirectXPixelFormat, Int32, Int32, IDirect3DDevice)

제공된 Direct3D 디바이스에서 할당한 IDXGISurface에 이미지 데이터가 저장되는 클래스의 새 인스턴스 VideoFrame 를 만듭니다.

CreateWithDirect3D11Surface(IDirect3DSurface)

제공된 IDXGISurface에 이미지 데이터가 저장되는 클래스의 새 인스턴스 VideoFrame 를 만듭니다.

CreateWithSoftwareBitmap(SoftwareBitmap)

제공된 SoftwareBitmap클래스에서 클래스의 VideoFrame 새 인스턴스를 만듭니다.

적용 대상

추가 정보