summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJames Stembridge <jstembridge@users.sourceforge.net>2004-03-10 22:54:52 +0000
committerJames Stembridge <jstembridge@users.sourceforge.net>2004-03-10 22:54:52 +0000
commit0627ab6d893c54b95bd8fb7d1135dd1182488d3e (patch)
treef659292b6d8b92dbe9518bec122244ab471c358f
parent66aacfedf41c1d401c3dec4ad3199657a29968c4 (diff)
downloadxine-lib-0627ab6d893c54b95bd8fb7d1135dd1182488d3e.tar.gz
xine-lib-0627ab6d893c54b95bd8fb7d1135dd1182488d3e.tar.bz2
Remove defunct v4l specific yuv_frames decoder
CVS patchset: 6241 CVS date: 2004/03/10 22:54:52
-rw-r--r--src/libxinevdec/Makefile.am7
-rw-r--r--src/libxinevdec/yuv_frames.c179
2 files changed, 1 insertions, 185 deletions
diff --git a/src/libxinevdec/Makefile.am b/src/libxinevdec/Makefile.am
index 2848ab57e..c114f44d4 100644
--- a/src/libxinevdec/Makefile.am
+++ b/src/libxinevdec/Makefile.am
@@ -24,8 +24,7 @@ lib_LTLIBRARIES = $(image_module) \
xineplug_decode_qtrpza.la \
xineplug_decode_wc3video.la \
xineplug_decode_qtrle.la \
- xineplug_decode_interplayvideo.la \
- xineplug_decode_yuv_frames.la
+ xineplug_decode_interplayvideo.la
xineplug_decode_bitplane_la_SOURCES = bitplane.c
xineplug_decode_bitplane_la_LIBADD = $(XINE_LIB)
@@ -91,10 +90,6 @@ xineplug_decode_interplayvideo_la_SOURCES = interplayvideo.c
xineplug_decode_interplayvideo_la_LIBADD = $(XINE_LIB)
xineplug_decode_interplayvideo_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@
-xineplug_decode_yuv_frames_la_SOURCES = yuv_frames.c
-xineplug_decode_yuv_frames_la_LIBADD = $(XINE_LIB)
-xineplug_decode_yuv_frames_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@
-
xineplug_decode_image_la_SOURCES = image.c
xineplug_decode_image_la_LIBADD = $(XINE_LIB) $(DYNAMIC_LD_LIBS) $(PNG_LIBS)
xineplug_decode_image_la_LDFLAGS = -avoid-version -module @XINE_PLUGIN_MIN_SYMS@
diff --git a/src/libxinevdec/yuv_frames.c b/src/libxinevdec/yuv_frames.c
deleted file mode 100644
index 3464a2de0..000000000
--- a/src/libxinevdec/yuv_frames.c
+++ /dev/null
@@ -1,179 +0,0 @@
-/*
- * Copyright (C) 2003-2004 the xine project
- *
- * This file is part of xine, a free 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: yuv_frames.c,v 1.11 2004/01/12 17:35:19 miguelfreitas Exp $
- *
- * dummy video decoder for uncompressed video frames as delivered by v4l
- */
-
-
-#include <stdlib.h>
-#include <string.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#include <fcntl.h>
-#include <unistd.h>
-
-#define LOG_MODULE "yuv_frame_video_decoder"
-#define LOG_VERBOSE
-/*
-#define LOG
-*/
-
-#include "xine_internal.h"
-#include "video_out.h"
-#include "buffer.h"
-
-typedef struct {
- video_decoder_class_t decoder_class;
-} mpeg2_class_t;
-
-
-typedef struct yuv_frames_decoder_s {
- video_decoder_t video_decoder;
- mpeg2_class_t *class;
- xine_stream_t *stream;
-} yuv_frames_decoder_t;
-
-static void yuv_frames_decode_data (video_decoder_t *this_gen, buf_element_t *buf) {
- yuv_frames_decoder_t *this = (yuv_frames_decoder_t *) this_gen;
- int frame_size;
- vo_frame_t *img;
-
- lprintf ("decode_data, flags=0x%08x ...\n", buf->decoder_flags);
-
- img = this->stream->video_out->get_frame (this->stream->video_out,
- buf->decoder_info[0],
- buf->decoder_info[1],
- (double)buf->decoder_info[0]/(double)buf->decoder_info[1],
- XINE_IMGFMT_YV12,
- VO_BOTH_FIELDS | VO_INTERLACED_FLAG);
-
- img->duration = 3600;
- img->pts = buf->pts;
-
- frame_size = buf->decoder_info[0] * buf->decoder_info[1];
-
- yv12_to_yv12(
- /* Y */
- buf->content, buf->decoder_info[0],
- img->base[0], img->pitches[0],
- /* U */
- buf->content + frame_size, buf->decoder_info[0] / 2,
- img->base[1], img->pitches[1],
- /* V */
- buf->content + (frame_size * 5/4), buf->decoder_info[0] / 2,
- img->base[2], img->pitches[2],
- /* width x height */
- buf->decoder_info[0], buf->decoder_info[1]);
-
- img->draw (img, this->stream);
- img->free (img);
-
- lprintf ("decode_data...done\n");
-}
-
-static void yuv_frames_flush (video_decoder_t *this_gen) {
- /* yuv_frames_decoder_t *this = (yuv_frames_decoder_t *) this_gen; */
-
- lprintf ("flush\n");
-}
-
-static void yuv_frames_reset (video_decoder_t *this_gen) {
- /* yuv_frames_decoder_t *this = (yuv_frames_decoder_t *) this_gen; */
-}
-
-static void yuv_frames_discontinuity (video_decoder_t *this_gen) {
- /* yuv_frames_decoder_t *this = (yuv_frames_decoder_t *) this_gen; */
-}
-
-static void yuv_frames_dispose (video_decoder_t *this_gen) {
-
- yuv_frames_decoder_t *this = (yuv_frames_decoder_t *) this_gen;
-
- lprintf ("close\n");
-
- this->stream->video_out->close(this->stream->video_out, this->stream);
-
- free (this);
-}
-
-static video_decoder_t *open_plugin (video_decoder_class_t *class_gen, xine_stream_t *stream) {
- yuv_frames_decoder_t *this ;
-
- this = (yuv_frames_decoder_t *) xine_xmalloc (sizeof (yuv_frames_decoder_t));
-
- this->video_decoder.decode_data = yuv_frames_decode_data;
- this->video_decoder.flush = yuv_frames_flush;
- this->video_decoder.reset = yuv_frames_reset;
- this->video_decoder.discontinuity = yuv_frames_discontinuity;
- this->video_decoder.dispose = yuv_frames_dispose;
- this->stream = stream;
- this->class = (mpeg2_class_t *) class_gen;
-
- stream->video_out->open(stream->video_out, stream);
-
- return &this->video_decoder;
-}
-
-/*
- * mpeg2 plugin class
- */
-
-static char *get_identifier (video_decoder_class_t *this) {
- return "yuv_frames";
-}
-
-static char *get_description (video_decoder_class_t *this) {
- return "mpeg2 based video decoder plugin";
-}
-
-static void dispose_class (video_decoder_class_t *this) {
- free (this);
-}
-
-static void *init_plugin (xine_t *xine, void *data) {
-
- mpeg2_class_t *this;
-
- this = (mpeg2_class_t *) xine_xmalloc (sizeof (mpeg2_class_t));
-
- this->decoder_class.open_plugin = open_plugin;
- this->decoder_class.get_identifier = get_identifier;
- this->decoder_class.get_description = get_description;
- this->decoder_class.dispose = dispose_class;
-
- return this;
-}
-/*
- * exported plugin catalog entry
- */
-
-static uint32_t supported_types[] = { BUF_VIDEO_YUV_FRAMES, 0 };
-
-static decoder_info_t dec_info_yuv_frames = {
- supported_types, /* supported types */
- 6 /* priority */
-};
-
-plugin_info_t xine_plugin_info[] = {
- /* type, API, "name", version, special_info, init_function */
- { PLUGIN_VIDEO_DECODER, 18, "yuv_frames", XINE_VERSION_CODE, &dec_info_yuv_frames, init_plugin },
- { PLUGIN_NONE, 0, "", 0, NULL, NULL }
-};