annotate libvo/Makefile @ 4218:3931c41f740a

Added new syncengine thanks to a new previously undocumented feature of the em8300, this might fix playback on both slow and fast machines (more testing needed). This also requires users to get the em8300 driver from cvs until the next version is released (will probably happen this weekend) Added lots of comments, should be pretty easy to understand most of the internals now Added lots of brackets to if's for's while's etc, this is not a cosmetical thing but rather due to the fact I got some very odd bugs with else's since I didn't properly use brackets (and it's the K&R standard to have brackets everywhere) Fixed some bugs that would occur when disabling libmp1e Switched to default to the new naming scheme of device nodes, the driver will slowly switch over to this state, if it can't find devices under the new name it will try the old naming scheme I stopped opening devices in non-blocking mode, it would break the new syncengine which tries to burst data to the device (alot of times meaning it will fill the fifo pretty fast which would previously result in jerkyness on fast machines) The device now sets the initial state of the pts and speed (probably not needed, but assumption is the mother of all fuckups =) Keep the control interface open during the entire duration of the libvo device, we might need this to flush video buffers on seeking (currently not implemented, therefore seeking is broken) This is beta stuff to the driver, I will get some users to test it for me and do my best to fix seeking as soon as possible...
author mswitch
date Thu, 17 Jan 2002 10:33:47 +0000
parents 2d8403f1c54e
children 88843786301e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
2 include config.mak
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
3
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
4 LIBNAME = libvo.a
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
5
4089
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
6 SRCS=aspect.c aclib.c osd.c font_load.c video_out.c vo_null.c vo_pgm.c vo_md5.c vo_mpegpes.c x11_common.c $(OPTIONAL_SRCS) img_format.c sub.c
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 698
diff changeset
7 OBJS=$(SRCS:.c=.o)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
8
4089
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
9 ifeq ($(VIDIX),yes)
4168
2d8403f1c54e Fix xvidix for non-x11 systems, 10l Alex :)
atmos4
parents: 4124
diff changeset
10 SRCS += vosub_vidix.c
4089
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
11 endif
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
12
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
13 CFLAGS = $(OPTFLAGS) -I. -I.. $(SDL_INC) $(X11_INC) $(EXTRA_INC) $(DVB_INC) -DMPG12PLAY #-Wall
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
14 ifeq ($(VIDIX),yes)
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
15 CFLAGS += -DVIDIX_PATH='"$(prefix)/lib/mplayer/vidix/"'
e1c6178de089 Configurable VIDIX usage
nick
parents: 4088
diff changeset
16 endif
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
17 # -I/usr/X11R6/include/
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
18
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
19 .SUFFIXES: .c .o
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
20
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
21 # .PHONY: all clean
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
22
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
23 .c.o:
24
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
24 $(CC) -c $(CFLAGS) -o $@ $<
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
25
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
26 $(LIBNAME): $(OBJS)
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
27 $(AR) r $(LIBNAME) $(OBJS)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
28
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
29 all: $(LIBNAME)
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
30
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
31 clean:
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
32 rm -f *.o *.a *~
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
33
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
34 distclean:
24
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
35 rm -f Makefile.bak *.o *.a *~ .depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
36
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
37 dep: depend
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
38
1010
6d3a6d42c831 dependency stuff fixed
arpi_esp
parents: 866
diff changeset
39 depend:
866
91087aaea5c7 using gcc -MM instead of makedepend, make OBJS from SRCS where possible
arpi_esp
parents: 698
diff changeset
40 $(CC) -MM $(CFLAGS) $(SRCS) 1>.depend
1
3b5f5d1c5041 Initial revision
arpi_esp
parents:
diff changeset
41
24
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
42 #
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
43 # include dependency files if they exist
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
44 #
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
45 ifneq ($(wildcard .depend),)
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
46 include .depend
b4fdbec3d729 New dependency system
arpi_esp
parents: 1
diff changeset
47 endif