![background image](http://html.mh-extra.com/html/texas-instruments/dm365/dm365_user-manual_1094517127.webp)
Simple Two-pass Encoding Sample Usage
E-3
Note:
Call
control()
function with the
XDM_SETPARAMS
command before
starting encoding at low-resolution and high resolution instance for every
frame (See section 3.1.3).
The following steps explains how to use STP feature of the DM365/DM368
based H264 encoder.
1) Set
metaDataGenerateConsume
flag value for low and high-resolution
encoder to 1 and 2 respectively. If
meteDataGenerateConsume
is set
to 0, no
metaData
is generated or consumed.
2) Request I/O buffers for two encoder instances as explained in the
Chapter 3. In case of STP extra buffers are requested to store
metadata. This is taken care inside the codec if the
metaDataGenerateConsume
flag is set appropriately
.
3) After creating instances of both the encoders, initiate coding of low-
resolution encoder.
4) Update metadata values in
frame_info
structure at low-resolution
encoder. Once encoding operation is completed, copy the metadata
into the output buffers of low-resolution encoder requested in the step
2.
5) If the frame skip occurs at low resolution, no metadata information is
passed to the high-resolution encoder.
6) Now set the value of
metaDataGenerateConsume
flag for low-
resolution encoder instance to 3, which means the metadata is
generated but not yet consumed.
7) Before starting high resolution encoding, if
metaDataGenerateConsume
flag for low-resolution encoder instance
is 3, copy metadata information from the output buffers of low-
resolution encoder to the input buffer of the high-resolution encoder
requested in the step 2. The metadata information from this input
buffers is utilized appropriately by the codec at high-resolution
encoder.
8) If the frame skip occurs at high-resolution encoder, metadata
information will used by next frame appropriately.
Case-5
Summary of Contents for DM365
Page 10: ...x This page is intentionally left blank ...
Page 12: ...xii This page is intentionally left blank ...
Page 24: ...Introduction 1 12 This page is intentionally left blank ...
Page 34: ...Installation Overview 2 10 This page is intentionally left blank ...
Page 116: ...API Reference 4 70 This page is intentionally left blank ...
Page 120: ...Error Description B 2 This page is intentionally left blank ...
Page 124: ...ARM926 TCM Buffer Usage By Codec D 2 This page is intentionally left blank ...
Page 126: ...Simple Two pass Encoding Sample Usage E 2 Case 1 Case 2 Case 3 Case 4 Frame Skip ...
Page 130: ...Simple Two pass Encoding Sample Usage E 6 This page is intentionally left blank ...