Rediger

Del via


Describing Extended Sample Information in AVStream Codecs

Decoder filters can find extended sample information in the extended KSSTREAM_HEADER structure KS_FRAME_INFO, which follows KSSTREAM_HEADER in memory.

The driver must propagate information specified in KSSTREAM_HEADER.OptionsFlags from input (source) to output (destination) KS pins.

Encoders should include extended sample information in the extended KSSTREAM_HEADER structure, KS_FRAME_INFO. Specifically, an encoder should update the member dwFrameFlags to indicate KS_VIDEO_FLAG_I_FRAME and KS_VIDEO_FLAG_P_FRAME, as applicable.

Surface stride is specified in KS_FRAME_INFO's lSurfacePitch member (union with Reserved1 member). For more information about surface stride, see Handling Stride in AVStream Codecs.