o Update to development version OpenDivX Alpha 4.0 a 50, port version

0.4.0.50
o Bump lib version due to api changes: 0 -> 1
This commit is contained in:
Mario Sergio Fujikawa Ferreira 2001-09-24 18:02:18 +00:00
parent 73086c2cfd
commit 4acd2bcfe6
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=48160
10 changed files with 96 additions and 18 deletions

View file

@ -6,12 +6,11 @@
#
PORTNAME= libdivxdecore
PORTVERSION= 0.4.0.48
PORTREVISION= 1
PORTVERSION= 0.4.0.50
CATEGORIES= graphics
MASTER_SITES= http://download.projectmayo.com/dnload/divxcore/
PKGNAMESUFFIX= -devel
DISTNAME= decore48src
DISTNAME= decore${PORTVERSION:E}src
MAINTAINER= lioux@FreeBSD.org
@ -20,19 +19,24 @@ BUILD_DEPENDS= ${NONEXISTENT}:${LIBDIVXDECORE_PORT}:patch
WRKSRC= ${WRKDIR}/${LIBDIVXDECORE_PORT_WRKSRC:C/.+\///}
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -a
EXTRACT_BEFORE_ARGS= -a -L
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
PLIST_SUB= LIB_VERSION="${LIB_VERSION}"
LIB_VERSION= 0
LIB_VERSION= 1
post-extract:
@${CP} -Rp ${LIBDIVXDECORE_PORT_WRKSRC} ${WRKDIR}
@${MV} ${WRKSRC}/src ${WRKSRC}/src.old
@${MV} ${WRKDIR}/decore/src ${WRKSRC}/src
@${CP} ${WRKSRC}/src.old/Makefile.* ${WRKSRC}/src
.for ext in c h
@${MV} ${WRKSRC}/src/transferidct.${ext} \
${WRKSRC}/src/transferIDCT.${ext}
.endfor
post-install:
@${LN} -sf ${PORTNAME}.so ${PREFIX}/lib/${PORTNAME}.so.${LIB_VERSION}

View file

@ -1 +1 @@
MD5 (decore48src.zip) = a2fb482ae4831cf918b2bcf3bbb1d87a
MD5 (decore50src.zip) = a6492abd6981eb2b9e51b18b05e0865f

View file

@ -1,5 +1,5 @@
--- src/Makefile.in.orig Sun Mar 18 11:31:24 2001
+++ src/Makefile.in Sun Mar 18 11:42:49 2001
--- src/Makefile.in.orig Mon Sep 24 14:38:28 2001
+++ src/Makefile.in Mon Sep 24 14:42:08 2001
@@ -77,7 +77,7 @@
libdivxdecore_la_LDFLAGS = -module -avoid-version
@ -49,7 +49,7 @@
mp4_header.h basic_prediction.h
mp4_vld.lo mp4_vld.o : mp4_vld.c mp4_decoder.h global.h mp4_header.h \
mp4_vld.h
+store.lo store.o : debug.h mp4_decoder.h global.h
+store.lo store.o : debug.h mp4_decoder.h global.h store.h store.c
postprocess.lo postprocess.o : postprocess.c postprocess.h
transferIDCT.lo transferIDCT.o : transferIDCT.c
+yuv2rgb.lo yuv2rgb.o : yuv2rgb.c yuv2rgb.h

View file

@ -0,0 +1,27 @@
--- src/store.c.orig Mon Sep 24 14:37:06 2001
+++ src/store.c Mon Sep 24 14:37:23 2001
@@ -55,20 +55,19 @@
/***/
// Purpose: store a frame in yuv format
-void storeframe (unsigned char *src[], int width, int height)
+void storeframe (char *name, unsigned char *src[], int width, int height, int hor_size)
{
int offset = 0;
- int hor_size = mp4_state->horizontal_size;
- store_yuv (mp4_state->outputname, src[0], offset, width, hor_size, height);
+ store_yuv (name, src[0], offset, width, hor_size, height);
offset >>= 1;
width >>= 1;
height >>= 1;
hor_size >>= 1;
- store_yuv (mp4_state->outputname, src[1], offset, width, hor_size, height);
- store_yuv (mp4_state->outputname, src[2], offset, width, hor_size, height);
+ store_yuv (name, src[1], offset, width, hor_size, height);
+ store_yuv (name, src[2], offset, width, hor_size, height);
}
/***/

View file

@ -0,0 +1,8 @@
--- src/store.h.orig Mon Sep 24 14:37:09 2001
+++ src/store.h Mon Sep 24 14:37:16 2001
@@ -36,4 +36,4 @@
/*** *** ***/
-extern void storeframe (unsigned char *src[], int xsize, int ysize);
+extern void storeframe (char * outputname, unsigned char *src[], int xsize, int ysize, int hor_stride);

View file

@ -6,12 +6,11 @@
#
PORTNAME= libdivxdecore
PORTVERSION= 0.4.0.48
PORTREVISION= 1
PORTVERSION= 0.4.0.50
CATEGORIES= graphics
MASTER_SITES= http://download.projectmayo.com/dnload/divxcore/
PKGNAMESUFFIX= -devel
DISTNAME= decore48src
DISTNAME= decore${PORTVERSION:E}src
MAINTAINER= lioux@FreeBSD.org
@ -20,19 +19,24 @@ BUILD_DEPENDS= ${NONEXISTENT}:${LIBDIVXDECORE_PORT}:patch
WRKSRC= ${WRKDIR}/${LIBDIVXDECORE_PORT_WRKSRC:C/.+\///}
USE_ZIP= yes
EXTRACT_BEFORE_ARGS= -a
EXTRACT_BEFORE_ARGS= -a -L
GNU_CONFIGURE= yes
USE_GMAKE= yes
USE_LIBTOOL= yes
INSTALLS_SHLIB= yes
PLIST_SUB= LIB_VERSION="${LIB_VERSION}"
LIB_VERSION= 0
LIB_VERSION= 1
post-extract:
@${CP} -Rp ${LIBDIVXDECORE_PORT_WRKSRC} ${WRKDIR}
@${MV} ${WRKSRC}/src ${WRKSRC}/src.old
@${MV} ${WRKDIR}/decore/src ${WRKSRC}/src
@${CP} ${WRKSRC}/src.old/Makefile.* ${WRKSRC}/src
.for ext in c h
@${MV} ${WRKSRC}/src/transferidct.${ext} \
${WRKSRC}/src/transferIDCT.${ext}
.endfor
post-install:
@${LN} -sf ${PORTNAME}.so ${PREFIX}/lib/${PORTNAME}.so.${LIB_VERSION}

View file

@ -1 +1 @@
MD5 (decore48src.zip) = a2fb482ae4831cf918b2bcf3bbb1d87a
MD5 (decore50src.zip) = a6492abd6981eb2b9e51b18b05e0865f

View file

@ -1,5 +1,5 @@
--- src/Makefile.in.orig Sun Mar 18 11:31:24 2001
+++ src/Makefile.in Sun Mar 18 11:42:49 2001
--- src/Makefile.in.orig Mon Sep 24 14:38:28 2001
+++ src/Makefile.in Mon Sep 24 14:42:08 2001
@@ -77,7 +77,7 @@
libdivxdecore_la_LDFLAGS = -module -avoid-version
@ -49,7 +49,7 @@
mp4_header.h basic_prediction.h
mp4_vld.lo mp4_vld.o : mp4_vld.c mp4_decoder.h global.h mp4_header.h \
mp4_vld.h
+store.lo store.o : debug.h mp4_decoder.h global.h
+store.lo store.o : debug.h mp4_decoder.h global.h store.h store.c
postprocess.lo postprocess.o : postprocess.c postprocess.h
transferIDCT.lo transferIDCT.o : transferIDCT.c
+yuv2rgb.lo yuv2rgb.o : yuv2rgb.c yuv2rgb.h

View file

@ -0,0 +1,27 @@
--- src/store.c.orig Mon Sep 24 14:37:06 2001
+++ src/store.c Mon Sep 24 14:37:23 2001
@@ -55,20 +55,19 @@
/***/
// Purpose: store a frame in yuv format
-void storeframe (unsigned char *src[], int width, int height)
+void storeframe (char *name, unsigned char *src[], int width, int height, int hor_size)
{
int offset = 0;
- int hor_size = mp4_state->horizontal_size;
- store_yuv (mp4_state->outputname, src[0], offset, width, hor_size, height);
+ store_yuv (name, src[0], offset, width, hor_size, height);
offset >>= 1;
width >>= 1;
height >>= 1;
hor_size >>= 1;
- store_yuv (mp4_state->outputname, src[1], offset, width, hor_size, height);
- store_yuv (mp4_state->outputname, src[2], offset, width, hor_size, height);
+ store_yuv (name, src[1], offset, width, hor_size, height);
+ store_yuv (name, src[2], offset, width, hor_size, height);
}
/***/

View file

@ -0,0 +1,8 @@
--- src/store.h.orig Mon Sep 24 14:37:09 2001
+++ src/store.h Mon Sep 24 14:37:16 2001
@@ -36,4 +36,4 @@
/*** *** ***/
-extern void storeframe (unsigned char *src[], int xsize, int ysize);
+extern void storeframe (char * outputname, unsigned char *src[], int xsize, int ysize, int hor_stride);