30
Chapter 6, Using the Matrox M264 Hardware Codecs
Decompression operation
The following steps explain how to control the Matrox M264 hardware decoder using
the
IMvDecoderVideo
interface.
1
Instantiate the Matrox M264 decoder codec GUID,
CLSID_MvM264Decoder
,
using the
CreateCodecEx()
method of the
IMvFlexEngine
interface.
For more information on the
IMvFlexEngine
interface, see “Overview of the
Flex Engine” in the
Matrox DSX.sdk User Guide
or “Obtaining a Flex Engine for
processing buffers using the card configuration interface” in the
Matrox DSX
Topology API User Guide.
2
Allocate a pool of Flex user buffers that will be used for the compressed data.
For information on allocating buffers, see “Audio/video surface allocation and
management” in the
Matrox DSX.sdk User Guide
or “Using buffers to update a
card node” in the
Matrox DSX Topology API User Guide
.
3
Allocate a pool of uncompressed Flex host buffers (YUV 4:2:2 8-bit,
YUV 4:2:2 10-bit, or v210 4:2:2 10-bit) that will receive the uncompressed
images.
4
Call
IMvDecoderVideo::Open()
to open a stream for decoding and pass a
pointer to the
SMvM264DecompressionOptions
structure.
5
The user application must implement the completion observer interface using
IMvCompletionObserver::NotifyCompletion()
and set a notification
callback by calling
IMvDecoderVideo::SetOption()
with the
keMvCodecOptionFlushObserver_pI
parameter.
¦
Note
The notification will be called once the codec is finished decoding all the
data and after
IMvDecoderVideo::Flush()
is called. The user application calls
IMvDecoderVideo::Flush()
when it is finished passing all the compressed data
to the codec.
6
The user application must implement the error notification callback interface
using
IMvErrorNotificationCallback::Notify()
and set an asynchronous
error notification callback by calling
IMvDecoderVideo::SetOption()
with
the
keMvCodecOptionAsynchErrorCallback_pI
parameter.
¦
Note
This allows the user application to handle decoder errors.
Содержание M264
Страница 1: ...Y11360 101 0970 Matrox M264 Installation and User Guide June 30 2016 ...
Страница 8: ...vi MATROX SOFTWARE LICENSE AGREEMENT Your notes ...
Страница 13: ...1 Introducing Matrox DSX This chapter provides an overview of Matrox DSX Topology API hardware ...
Страница 15: ...2 Preparing for the DSX Installation This chapter explains how to prepare for installing your DSX hardware ...
Страница 20: ...8 Chapter 2 Preparing for the DSX Installation Your notes ...
Страница 28: ...16 Chapter 4 Installing Your DSX Software for Windows Your notes ...
Страница 58: ...46 Chapter 8 Monitoring Your DSX System in Windows Your notes ...
Страница 62: ...50 Chapter 9 Monitoring Your DSX System in Linux Your notes ...
Страница 63: ...A DSX Specifications This appendix provides specifications for DSX hardware ...
Страница 66: ...54 Appendix A DSX Specifications Your notes ...
Страница 72: ...60 Index Your notes ...
Страница 74: ...www matrox com video ...