[MPlayer-dev-eng] [PATCH] HuffYUV native support
Roberto Togni
rtogni at bresciaonline.it
Wed Mar 20 23:21:21 CET 2002
Hi all.
These patches add HuffYUV native support to Mplayer for YUV and RGB
files (RGBA not supported yet).
Output format is YUY2 or BGR32,BGR24, and is selected in init function
because frame format is not known at demuxer. This portion does not
work correctly: some vo (es. sdl) select YUV, other (es. x11) RGB,
ignoring my request made by mpcodecs_config_vo.
This is the code fragment:
switch (hc->bitmaptype) {
case BMPTYPE_YUV:
vo_ret = mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_YUY2);
break;
case BMPTYPE_RGB:
vo_ret = mpcodecs_config_vo(sh,sh->disp_w,sh->disp_h,IMGFMT_BGR24);
break;
}
Is output format selection by mpcodecs already implemented?
I also had to disable MP_IMAGEFLAG_ACCEPT_STRIDE for BGR32/BGR24 output
because it wasn't working, i'm still looking at it.
I uploaded some samples in different formats to incoming/HuffYUV. The
codec plays ok also huffyuv_segfault.avi and cons_huffyuv.avi from the
samples directory on ftp. I did not downloaded the 22Mb file.
If you have questions/problems contact me.
Ciao,
Roberto
-------------- next part --------------
A non-text attachment was scrubbed...
Name: Makefile.diff
Type: text/x-makefile
Size: 645 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020320/889310a9/attachment.bin>
-------------- next part --------------
--- codec-cfg.c.orig Tue Mar 19 21:21:51 2002
+++ codec-cfg.c Tue Mar 19 21:58:34 2002
@@ -254,6 +254,7 @@
"qtrpza",
"mpng",
"ijpg",
+ "huffyuv",
NULL
};
char **drv=audioflag?audiodrv:videodrv;
-------------- next part --------------
--- codec-cfg.h.orig Tue Mar 19 21:21:51 2002
+++ codec-cfg.h Tue Mar 19 21:58:59 2002
@@ -64,6 +64,7 @@
#define VFM_QTRPZA 20
#define VFM_MPNG 21
#define VFM_IJPG 22
+#define VFM_HUFFYUV 23
#ifndef GUID_TYPE
#define GUID_TYPE
-------------- next part --------------
--- codecs.conf.orig Tue Mar 19 21:21:53 2002
+++ codecs.conf Tue Mar 19 23:53:15 2002
@@ -393,6 +393,14 @@
driver qtrpza
out BGR32,BGR24,BGR15
+videocodec mphuffyuv
+ info "HuffYUV Mplayer Native Decoder"
+ status buggy
+ fourcc HFYU
+ driver huffyuv
+ out YUY2
+ out BGR32,BGR24
+
audiocodec imaadpcm
info "IMA ADPCM"
status working
-------------- next part --------------
--- vd.c.orig Fri Mar 15 12:40:40 2002
+++ vd.c Fri Mar 15 12:51:43 2002
@@ -44,6 +44,7 @@
extern vd_functions_t mpcodecs_vd_mpng;
extern vd_functions_t mpcodecs_vd_ijpg;
extern vd_functions_t mpcodecs_vd_libmpeg2;
+extern vd_functions_t mpcodecs_vd_huffyuv;
vd_functions_t* mpcodecs_vd_drivers[] = {
&mpcodecs_vd_null,
@@ -84,6 +85,7 @@
&mpcodecs_vd_ijpg,
#endif
&mpcodecs_vd_libmpeg2,
+ &mpcodecs_vd_huffyuv,
NULL
};
-------------- next part --------------
A non-text attachment was scrubbed...
Name: vd_huffyuv.c
Type: text/x-c
Size: 24662 bytes
Desc: not available
URL: <http://lists.mplayerhq.hu/pipermail/mplayer-dev-eng/attachments/20020320/889310a9/attachment-0001.bin>
More information about the MPlayer-dev-eng
mailing list