Source
x
/*
* Copyright (c) 2013, Texas Instruments Incorporated
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
*
* * Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
*
* * Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
*
* * Neither the name of Texas Instruments Incorporated nor the names of
* its contributors may be used to endorse or promote products derived
* from this software without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
* AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
* THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
* PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
* CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
* EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
* PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
* OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
* OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
* EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
%C dce encoder test application to test libdce for encoding functionality
Syntax:
%C [options]
Options:
-h Print out the help information
Examples:
1. Encoding h.264
dce_enc_test width height inpattern outpattern codec profile level buffertype mode
example to encode H.264 QCIF with Profile baseline and Level 1.0; nontiler; full frame.
dce_enc_test 176 144 inputfile.yuv outputfile.h264 h264 baseline 10 nontiler full
Acceptable input value for profile:
baseline
hight
Acceptable input value for level:
10 - Level 1.0
9 - Level 1.b
11 - Level 1.1
12 - Level 1.2
13 - Level 1.3
20 - Level 2.0
21 - Level 2.1
22 - Level 2.2
30 - Level 3.0
31 - Level 3.1
32 - Level 3.2
40 - Level 4.0
41 - Level 4.1
42 - Level 4.2
50 - Level 5.0
51 - Level 5.1
Acceptable input value for buffertype:
tiler (beware of ERRATA i878)
nontiler
Acceptable input value for mode:
numrow
slice
fixed
full
2. encoding Mpeg4
dce_enc_test width height inpattern outpattern codec profile 0 buffertype mode
example to encode MPEG4 QCIF with profile simple level 0; nontiler; full frame.
dce_enc_test 176 144 inputfile.yuv outputfile.mpeg4 mpeg4 0 0 nontiler full
Acceptable input value for profile:
0 - MPEG4 SIMPLE PROFILE LEVEL 0
9 - MPEG4 SIMPLE PROFILE LEVEL 0B
1 - MPEG4 SIMPLE PROFILE LEVEL 1
2 - MPEG4 SIMPLE PROFILE LEVEL 2
3 - MPEG4 SIMPLE PROFILE LEVEL 3
4 - MPEG4 SIMPLE PROFILE LEVEL 4A
5 - MPEG4 SIMPLE PROFILE LEVEL 5
6 - MPEG4 SIMPLE PROFILE LEVEL 6