summaryrefslogtreecommitdiff
path: root/src/dxr3/dxr3_vo_encoder.h
diff options
context:
space:
mode:
authorHarm van der Heijden <hrm@users.sourceforge.net>2001-12-11 02:26:58 +0000
committerHarm van der Heijden <hrm@users.sourceforge.net>2001-12-11 02:26:58 +0000
commit1416e359d0bfcb59d2021d3904b50dc55bbfe466 (patch)
tree70b528bb6b17cfbbcdc1d05bfe3d00813dd9909b /src/dxr3/dxr3_vo_encoder.h
parent92e1c20178c3517c3edb47936f4b532a575331d4 (diff)
downloadxine-lib-1416e359d0bfcb59d2021d3904b50dc55bbfe466.tar.gz
xine-lib-1416e359d0bfcb59d2021d3904b50dc55bbfe466.tar.bz2
- major code cleanup in dxr3enc driver. Still one big c file, but now
easy to split into core + fame + rte - now official support for librte-0.4 (zapping.sf.net); updated configure scripts, checks for librte added. Possible to compile both librte and libfame support in at the same time, configuration via .xinerc. - fixed YUY2 decoding, both for libfame and librte. Note: unifying dxr3enc (non-mpeg) and dxr3 (mpeg) seems rather easy right now. I think I'll wait with it for a bit, because perhaps the dxr3-dvd fixes need major replumbing in the dxr3 vo driver (but I don't expect that; all mpeg stuff is done in the dxr3 decoder plugin) CVS patchset: 1220 CVS date: 2001/12/11 02:26:58
Diffstat (limited to 'src/dxr3/dxr3_vo_encoder.h')
-rw-r--r--src/dxr3/dxr3_vo_encoder.h89
1 files changed, 0 insertions, 89 deletions
diff --git a/src/dxr3/dxr3_vo_encoder.h b/src/dxr3/dxr3_vo_encoder.h
deleted file mode 100644
index 6635f2c2f..000000000
--- a/src/dxr3/dxr3_vo_encoder.h
+++ /dev/null
@@ -1,89 +0,0 @@
-/*
- * Copyright (C) 2000-2001 the xine project
- *
- * This file is part of xine, a unix video player.
- *
- * xine is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * xine is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * 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.10 2001/12/02 21:14:51 hrm Exp $
- *
- */
-
-/*************************************************************************
- * Dxr3 Encoding Plugin Configuration Options *
- *************************************************************************/
-
-/* 1: enable to buffer the mpeg1 stream;
- * 0: write to mpeg device immediately;
- * with 1 sync is better, but playback still not smooth (but see below)
- * (not supported with mp1e; will disable automatically) */
-#define USE_MPEG_BUFFER 1
-
-/* 1: write 6 to MV_COMMAND register. This seems to fix playback problems!
- * 0: don't write to register */
-#define USE_MAGIC_REGISTER 1
-
-/* select one mpeg encoder out of the three below */
-#define USE_LIBFAME 1
-
-#define USE_FFMPEG 0
-
-#define USE_MP1E 0
-
-/*************************************************************************
- * Dxr3 Encoding private stuff below - You shouldn't need to change this *
- *************************************************************************/
-
-/* buffer size for encoded mpeg1 stream; will hold one intra frame
- * at 640x480 typical sizes are <50 kB. 512 kB should be plenty */
-#define DEFAULT_BUFFER_SIZE 512*1024
-
-#if (USE_LIBFAME && USE_FFMPEG) || (USE_LIBFAME && USE_MP1E) || (USE_LIBFFMPEG && USE_MP1E)
-# error "Configure only one mpeg encoder"
-#endif
-
-#if USE_LIBFAME
- #include <fame.h>
-
- /* some global stuff for libfame, could use some cleanup :-) */
- fame_parameters_t fp = FAME_PARAMETERS_INITIALIZER;
- fame_yuv_t yuv;
- fame_context_t *fc; /* needed for fame calls */
-#endif
-
-#if USE_FFMPEG
- /* use libffmpeg */
- #include <ffmpeg/avcodec.h>
- AVCodecContext *avc;
- AVPicture avp;
- AVCodec *avcodec;
-#endif
-
-#if USE_MP1E
- #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
-
-/* mpeg1 buffer, used by both encoders */
-unsigned char *buffer;
-