31
About the Matrox M264 hardware decoder
7
Allocate a sufficient amount of memory to hold the compressed data, and then
call
IMvSurface::AssignUserBufferReference()
to assign the memory to
the user buffer surfaces created in step
. Use a surface description that matches
the decoder input resolution and the
keMvSurfaceFormatAVC
parameter as the
surface format.
Remarks
$
If the size of each compressed frame is known, the user buffer surface can
reference that size.
$
If the bit rate is not known, allocating 512 KB is sufficient.
$
If the bit rate is known, it can be used to estimate the average size of one frame
of compressed data.
8
Set up the
IMvAVContent
interface of these compressed buffers with correct
read and write counts. Once the write operation is finished, call
IMvAVContent::SignalWriteCompletion()
to signal that the surface is
ready to be used by the decoder.
For information on working with buffers, see “Synchronizing surface operations”
in the
Matrox DSX.sdk User Guide
or “Working with buffers” in the
Matrox DSX
Topology API User Guide
.
9
Call
IMvDecoderVideo::PutCompressedSurface()
for each prepared user
buffer in the order that they were read.
10
Set up the
IMvAVContent
interface for the buffers created in step
and call
IMvDecoderVideo::GetUncompressedVideoAndVANCSurface()
with
these buffers.
Remarks
$
Because VANC surfaces are not supported yet, set VANC surfaces to
NULL
.
$
IMvDecoderVideo::GetUncompressedVideoAndVANCSurface()
can
be called until all the buffers from the pool are sent to the decoder and as
buffers are returned to the pool.
$
To ensure that the decoder is not slowed down because it does not have buffers
at the input or output, call
IMvDecoderVideo::
PutCompressedSurface()
and
IMvDecoderVideo::
GetUncompressedVideoAndVANCSurface()
with as many buffers
available from the pool.
11
Continue the
IMvDecoderVideo::PutCompressedSurface()
and
IMvDecoderVideo::GetUncompressedVideoAndVANCSurface()
loop
until all compressed data has been sent to the decoder.
Содержание 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 ...