diff options
author | Harm van der Heijden <hrm@users.sourceforge.net> | 2001-12-02 21:14:51 +0000 |
---|---|---|
committer | Harm van der Heijden <hrm@users.sourceforge.net> | 2001-12-02 21:14:51 +0000 |
commit | 0c7f1fc07f7fcb5948f3c696d07afe738e51cb1e (patch) | |
tree | 860f159e568b74fc6a56317cc578e0b3782dac02 /src/dxr3/dxr3_vo_encoder.h | |
parent | a77bbcfbd72eb77d1eb8ace960762be1a1228f8d (diff) | |
download | xine-lib-0c7f1fc07f7fcb5948f3c696d07afe738e51cb1e.tar.gz xine-lib-0c7f1fc07f7fcb5948f3c696d07afe738e51cb1e.tar.bz2 |
switched to librte for mpeg encoding from the zapping project
(zapping.sf.net). librte is a wrapper for the mp1e backend.
This works very well. I'm considering throwing out support
for libfame (current default) and libffmpeg to be able to clean
up the code. It's now a tangled mess of defines...
Read the comments at the top of dxr3_vo_encoder.c to find out
how to enable librte.
CVS patchset: 1161
CVS date: 2001/12/02 21:14:51
Diffstat (limited to 'src/dxr3/dxr3_vo_encoder.h')
-rw-r--r-- | src/dxr3/dxr3_vo_encoder.h | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/dxr3/dxr3_vo_encoder.h b/src/dxr3/dxr3_vo_encoder.h index 47d645222..6635f2c2f 100644 --- a/src/dxr3/dxr3_vo_encoder.h +++ b/src/dxr3/dxr3_vo_encoder.h @@ -17,7 +17,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA * - * $Id: dxr3_vo_encoder.h,v 1.9 2001/12/02 07:10:02 hrm Exp $ + * $Id: dxr3_vo_encoder.h,v 1.10 2001/12/02 21:14:51 hrm Exp $ * */ @@ -72,10 +72,14 @@ #endif #if USE_MP1E - #include <stdio.h> - FILE* mp1e; - char* mp1e_command; /* from config, with %s for runtime stuff */ - char mp1e_cmd[256]; /* complete, with %s filled in */ + #define _GNU_SOURCE + #include <unistd.h> + #include <rte.h> + rte_context* context; /* handle for encoding */ + void* rte_ptr; /* buffer maintened by librte */ + double rte_time; /* frame time (s) */ + double rte_time_step; /* time per frame (s) */ + double rte_bitrate; /* mpeg out bitrate, default 2.3e6 bits/s */ # undef USE_MPEG_BUFFER # define USE_MPEG_BUFFER 0 #endif |