📄 encodedecode.txt
字号:
NAME
encodedecode - encode and decode H.264 video
SYNOPSIS
encodedecode [options...]
DESCRIPTION
This demo uses the Codec Engine to encode data from the capture device
(V4L2) using the H.264 algorithm into an intermediate buffer before
the data is decoded to the display framebuffer.
The DSP Link and CMEM kernel modules need to be inserted for this demo
to run. Worst case CMEM pools needed by this demo are 1x1382400 and
1x202752. Use the script 'loadmodules.sh' to make sure both kernel
modules are loaded with adequate parameters.
OPTIONS
-r <resolution>, --resolution <resolution>
This option sets the resolution of the demo. One of the following
resolution values must be supplied:
CIF - This will capture and display 352x240 on an NTSC system
and 352x288 on a PAL system. The image will be centered
on the screen.
ZOOM - This will capture video at 352x240 on an NTSC system and
352x288 on a PAL system. After the data has been encoded
and decoded back it will be zoomed by the display to D1
resolution (720x480 on NTSC and 720x576 on PAL).
D1 - This will capture and display 720x480 on an NTSC system
and 720x576 on a PAL based system.
If this option isn't supplied the demo defaults to D1.
-t <seconds>, --time <seconds>
The number of seconds to run the demo. Defaults to infinite time.
-h, --help
This will print the usage of the demo.
EXAMPLE USAGE
First execute this script to load kernel modules required:
./loadmodules.sh
General usage:
./encodedecode -h
Use ZOOM resolution and quit after 20 seconds:
./encodedecode -r ZOOM -t 20
COPYRIGHT
Copyright (c) Texas Instruments Inc 2005
Use of this software is controlled by the terms and conditions found in
the license agreement under which this software has been supplied or
provided.
KNOWN ISSUES
Currently for the ZOOM and CIF resolutions an extra memcpy is required,
as the 'displayWidth' parameter of the TI H.264 decode algorithm isn't
supported. This causes the ARM CPU load to vary slightly when these
resolutions are used.
As the TI H.264 encoder currently doesn't support PAL D1 (720x576), we
currently show 720x480 also on PAL systems leaving a 96 pixel high
black border at the bottom of the screen.
CHANGELOG
SEE ALSO
For documentation and release notes on the individual components see
the html files in the host installation directory.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -