I have tried to add a plunging to the "libtheora-1.0beta2" (network
bandwidth measuring component was added) and Got it success for some far<br><br>now the problem is when it is added the encoding process get extremely slow (around 20 seconds delay). <br>
<br>I think that the problem is with my modified Makefile (some flag may have missed). <br><br>the following is my modified Makefile.am which is in the "libtheora-1.0beta2/lib" directory.<br><br>******************************<div id="1flp" class="ArwC7c ckChnd">
*********************************************************<br>
<br><span style="color: rgb(0, 102, 0);">DEFS = -DLINUX -DRETSIGTYPE=void -DHAVE_SIGACTION=1</span><br style="color: rgb(0, 102, 0);"><span style="color: rgb(0, 102, 0);">LIBS = -lpthread </span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);">INCS = -I. </span><br><br><br>INCLUDES = -I$(top_srcdir)/include -I$(top_srcdir)/lib -I$(top_srcdir)/lib/dec -I$(top_srcdir)/lib/enc<br><br>EXTRA_DIST = \<br> enc/x86_32/dct_decode_mmx.c \<br>
enc/x86_32/dsp_mmx.c \<br> enc/x86_32/dsp_mmxext.c \<br> enc/x86_32/recon_mmx.c \<br> enc/x86_32/fdct_mmx.c \<br> enc/x86_32/idct_mmx.c \<br> enc/x86_64/dsp_mmx.c \<br> enc/x86_64/dsp_mmxext.c \<br>
enc/x86_64/recon_mmx.c \<br> enc/x86_64/fdct_mmx.c \<br> enc/x86_64/idct_mmx.c \<br> enc/x86_32_vs/dsp_mmx.c \<br> enc/x86_32_vs/fdct_mmx.c \<br> enc/x86_32_vs/recon_mmx.c \<br>
enc/dct_encode.c \<br>
enc/encode.c \<br> enc/encoder_toplevel.c<br><br>lib_LTLIBRARIES = <a href="http://libtheora.la/" target="_blank">libtheora.la</a><br><br>if THEORA_DISABLE_ENCODE<br>encoder_sources = \<br> enc/encoder_disabled.c<br>
else<br>
encoder_sources = \<br> enc/dct_encode.c \<br> enc/encode.c \<br> enc/encoder_huffman.c \<br> enc/encoder_idct.c \<br> enc/encoder_toplevel.c \<br><span style="color: rgb(0, 102, 0);"> ../net/nbs_client.c \</span><br style="color: rgb(0, 102, 0);">
<span style="color: rgb(0, 102, 0);"> ../net/nbs_setsignal.c \</span><br> enc/encoder_quant.c \<br> enc/blockmap.c \<br> enc/common.c \<br> enc/dct.c \<br> enc/dct_decode.c \<br> enc/frarray.c \<br> enc/frinit.c \<br>
enc/mcomp.c \<br> enc/misc_common.c \<br> enc/pb.c \<br> enc/pp.c \<br> enc/reconstruct.c \<br> enc/scan.c \<br> enc/dsp.c<br> <br>if CPU_x86_64<br>enc_arch_dir = enc/x86_64<br>encoder_arch_sources= \<br>
$(enc_arch_dir)/dct_decode_mmx.c \<br> $(enc_arch_dir)/dsp_mmx.c \<br> $(enc_arch_dir)/dsp_mmxext.c \<br> $(enc_arch_dir)/recon_mmx.c \<br> $(enc_arch_dir)/idct_mmx.c \<br> $(enc_arch_dir)/fdct_mmx.c<br>
else<br>if CPU_x86_32<br>enc_arch_dir = enc/x86_32<br>encoder_arch_sources= \<br> $(enc_arch_dir)/dct_decode_mmx.c \<br> $(enc_arch_dir)/dsp_mmx.c \<br> $(enc_arch_dir)/dsp_mmxext.c \<br> $(enc_arch_dir)/recon_mmx.c \<br>
$(enc_arch_dir)/idct_mmx.c \<br> $(enc_arch_dir)/fdct_mmx.c<br>endif<br>endif<br><br>endif<br><br>decoder_sources = \<br> dec/apiwrapper.c \<br> dec/decapiwrapper.c \<br> dec/decinfo.c \<br> dec/decode.c \<br>
dec/dequant.c \<br> dec/fragment.c \<br> dec/huffdec.c \<br> dec/idct.c \<br> dec/info.c \<br> dec/internal.c \<br> dec/quant.c \<br> dec/state.c<br><br>if CPU_x86_64<br>decoder_x86_sources = \<br>
dec/x86/mmxidct.c \<br> dec/x86/mmxfrag.c \<br> dec/x86/mmxstate.c \<br> dec/x86/x86state.c<br>else<br>if CPU_x86_32<br>decoder_x86_sources = \<br> dec/x86/mmxidct.c \<br> dec/x86/mmxfrag.c \<br> dec/x86/mmxstate.c \<br>
dec/x86/x86state.c<br>endif<br>endif<br><br>libtheora_la_SOURCES = \<br> cpu.c \<br> $(decoder_x86_sources) \<br> $(decoder_sources) \<br> $(encoder_arch_sources) \<br> $(encoder_sources) \<br> Version_script<br>
<br>noinst_HEADERS = \<br> cpu.h \<br> internal.h \<br> enc/block_inline.h \<br> enc/codec_internal.h \<br> enc/encoder_lookup.h \<br> enc/encoder_huffman.h \<br> enc/hufftables.h \<br> enc/pp.h \<br>
enc/quant_lookup.h \<br> enc/toplevel_lookup.h \<br> enc/dsp.h \<br> dec/apiwrapper.h \<br> dec/dct.h \<br> dec/decint.h \<br> dec/dequant.h \<br> dec/enquant.h \<br> dec/huffdec.h \<br> dec/huffman.h \<br>
dec/idct.h \<br> dec/ocintrin.h \<br> dec/quant.h \<br> dec/x86/x86int.h<br> <br><span style="color: rgb(0, 102, 0);">CFLAGS = -g -Wall $(DEFS) $(INCS)</span><br><br><br>libtheora_la_CFLAGS = $(OGG_CFLAGS)<br>
libtheora_la_LDFLAGS = -version-info @TH_LIB_CURRENT@:@TH_LIB_REVISION@:@TH_LIB_AGE@ @THEORA_LDFLAGS@<br>libtheora_la_LIBADD = $(OGG_LIBS) <span style="color: rgb(0, 102, 0);">$(LIBS)</span><br><br>debug:<br> $(MAKE) all CFLAGS="@DEBUG@" LDFLAGS="-lefence"<br>
<br>profile:<br> $(MAKE) all CFLAGS="@PROFILE@"<br><br>***************************************************************************************<br><br>the green color lines are newly added or modified by me.<br>
<br>As a solution I used gcc optimization options also (<span style="color: rgb(0, 102, 0);">CFLAGS = -<span style="color: rgb(255, 0, 0);">O2</span> -Wall $(DEFS) $(INCS)</span>) <br>In this case I got some problelmes with not working some threads as I expected.<br>
<br>I think there is a way to chage this makefile to work properly but unfortunately I have not do it.<br>
<br>please can anyone help me to find what the wrong with me.<br><br>if
the information provided with this mail is not enough to decide what is
the error, please inform me what are the additional things should I
provides. <br clear="all">
</div><br clear="all"><br>-- <br>Regards,<br>R. P. Janaka