Hi,
there's a new 0.4 version of libcle266mpegdec available:
http://sourceforge.net/projects/cle266mpegdec/
2006-09-10: Version 0.4
- Library API changes:
* CLE266MPEGGetDecoderState now returns additional
information about the current frame to be displayed.
- Bug fixes:
* Hardware decoder is now only reset if an error occurs
during the decode. Resetting before each sequence was
causing intermittent picture disturbances.
* Hardware decoder wait function implements a real 2ms
timeout period.
Also a new decoder plugin for xine, xineplug_decode_cle266-0.1,
is now available for download.
I've attached a patch for softdevice that improves the libcle266mpegdec
detection and implements some minor API changes in mpeg2decoder.c.
BR,
--
rofa
Index: configure
===================================================================
RCS file: /cvsroot/softdevice/softdevice/configure,v
retrieving revision 1.24
diff -u -r1.24 configure
--- configure 27 Aug 2006 12:48:46 -0000 1.24
+++ configure 10 Sep 2006 20:07:18 -0000
@@ -324,23 +324,20 @@
fi
#########################################################
-# cle266mpegdec: check if present
+# libcle266mpegdec: check if version 0.4 or greater is
+# present
#
if test "${dfb}" = "yes" ; then
echo -n "Checking for libcle266mpegdec ... "
- cle266_cflags=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags
libcle266mpegdec 2>>config.log` || cle266="no"
+ pkg-config --atleast-version=0.4 libcle266mpegdec 2>>config.log ||
cle266="no"
if test "${cle266}" = "yes" ; then
+ cle266_cflags=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --cflags
libcle266mpegdec`
cle266_libs=`PKG_CONFIG_PATH=$PKG_CONFIG_PATH pkg-config --libs
libcle266mpegdec`
cle266_opts="${cle266_cflags} ${cle266_libs}"
- fi
-
- if test "${cle266}" = "yes" ; then
echo "Enabled cle266 hardware decoding."
else
echo "Not found."
fi
-else
- cle266="no"
fi
#########################################################
Index: mpeg2decoder.c
===================================================================
RCS file: /cvsroot/softdevice/softdevice/mpeg2decoder.c,v
retrieving revision 1.66
diff -u -r1.66 mpeg2decoder.c
--- mpeg2decoder.c 17 Jun 2006 16:27:34 -0000 1.66
+++ mpeg2decoder.c 10 Sep 2006 20:07:19 -0000
@@ -757,7 +757,7 @@
};
#ifdef HAVE_CLE266_MPEG_DECODER
-float aspect_ratio_values[5]={1.0, 1.0, 4.0/3.0, 16.0/9.0, 221.0/110 };
+float aspect_ratio_values[5]={1.0, 1.0, 4.0/3.0, 16.0/9.0, 2.21 };
int cVideoStreamDecoder::DecodePicture_cle266(sPicBuffer *&pic,
int &got_picture,uint8_t *data, int length, int64_t pkt_pts) {
@@ -790,9 +790,9 @@
pic->width = decoder.width;
pic->height = decoder.height;
pic->pts = pkt_pts;
- pic->edge_width=pic->edge_height=0;
- pic->dtg_active_format = 0; // currently not parsed
- pic->interlaced_frame = true; // FIXME Do we have that information?
+ pic->edge_width = pic->edge_height = 0;
+ pic->dtg_active_format = decoder.dtg_active_format;
+ pic->interlaced_frame = decoder.progressive_frame ? false : true;
pic->aspect_ratio = ( decoder.aspect_ratio_info >= 0
&& decoder.aspect_ratio_info < 5 ) ?
aspect_ratio_values[decoder.aspect_ratio_info] : 1.0;
_______________________________________________
Softdevice-devel mailing list
[email protected]
https://lists.berlios.de/mailman/listinfo/softdevice-devel