OpenCores
URL https://opencores.org/ocsvn/mpeg2fpga/mpeg2fpga/trunk

Subversion Repositories mpeg2fpga

[/] [mpeg2fpga/] [trunk/] [tools/] [mpeg2dec/] [README.koen] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 kdv
Additional tracing and dumping added. Sample command line:
2
 mpeg2decode -r -v9 -t -o0  'dump_%d_out_%c' -b tcela-10.bits
3
Write frames to ppm files:
4
 mpeg2decode -r -o3  'frame_%d_field_%c' -b tcela-10.bits
5
Output to X11:
6
 mpeg2decode -r -o5 -b tcela-10.bits
7
 
8
Trace options in the code:
9
In global.h:
10
#define TRACE 1
11
// Run-length decoding
12
//#define TRACE_RLD 1
13
// DCT decoding
14
//#define TRACE_DCT 1
15
// Inverse Discrete Cosine Transform
16
//#define TRACE_IDCT 1
17
// Trace calculation of individual pixels (very detailed)
18
//#define TRACE_RECON 1
19
 
20
TRACE_RECON is for low-level debugging, and produces very large amounts of logging.
21
A sample line from TRACE_RECON logging:
22
 
23
form_component_prediction (6): 0.5 * (fwd_y[  5,  0](=156) + fwd_y[  6,  0](=158)) ->  aux_y[  0,  0](=157)
24
 
25
Interpret this as: calculate the average of the y[5,0] of the forward reference frame (with value 156) and y[6,0] of the forward reference frame (with value 158), and store the result (with value 157) in pixel y[0,0] of the auxiliary frame.
26
 
27
koen

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.