From xvid-devel-bounces@xvid.org Sat Jul 8 11:10:25 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id 6FA98126D8B for ; Sat, 8 Jul 2006 11:10:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id DAD8D182C45; Sat, 8 Jul 2006 11:10:42 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23286-08; Sat, 8 Jul 2006 11:10:42 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 5F5F3182C46; Sat, 8 Jul 2006 11:10:34 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 93256181C4E for ; Sat, 8 Jul 2006 11:10:31 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 23286-04 for ; Sat, 8 Jul 2006 11:10:25 +0200 (CEST) Received: from mail-ihug.icp-qv1-irony4.iinet.net.au (ihug-mail.icp-qv1-irony4.iinet.net.au [203.59.1.198]) by s8.lansco.de (Postfix) with ESMTP id 63B2C181B23 for ; Sat, 8 Jul 2006 11:10:22 +0200 (CEST) Received: from 203-173-34-137.dyn.iinet.net.au (HELO [10.1.1.3]) ([203.173.34.137]) by mail-ihug.icp-qv1-irony4.iinet.net.au with ESMTP; 08 Jul 2006 17:09:54 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.06,219,1149436800"; d="scan'208"; a="807205818:sNHT27492330" Message-ID: <44AF765F.8050301@syskin.cjb.net> Date: Sat, 08 Jul 2006 18:39:51 +0930 From: Radek Czyz User-Agent: Thunderbird 2.0a1 (Windows/20060529) MIME-Version: 1.0 To: xvid-devel@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] mpeg intra quantization X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hi everyone, long time no see :) Alex_W on irc pointed out that xvid's intra quantization is weird, mostly when compared to libav's. I went on to debug it, and it seems that it's rounding coefficients *up*, creating huge frames at low psnr. For example, if mpeg matrix entry is 32 at Q=1, a level of 1 is quantized to 1: level = ((level << 4) + (intra_matrix[i] >> 1)) / intra_matrix[i]; level = ((level + quantd) * mult) >> SCALEBITS; which is level = (1*16+16)/32 = 1; level = (1+1)*65537/(2*65536) = 1; This is later dequantized to 4. Bad comparison happens at different quants too, so this is not limited to Q1 or anything like that. In this simple example, changing quantd=0 gives: 18:30:11 : xvid 1.1: 17772 KB 41.8 dB 18:30:11 : xvid quantd = 0: 10813 KB 46.42 dB Can someone (Skal?:) ) explain what was *meant* to be happening here? :) Radek _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Sat Jul 8 12:33:52 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id C4163126D82 for ; Sat, 8 Jul 2006 12:33:52 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id BCF63182C9B; Sat, 8 Jul 2006 12:34:17 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 27108-06; Sat, 8 Jul 2006 12:34:17 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 74B38182CA1; Sat, 8 Jul 2006 12:34:10 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 428EB182C94 for ; Sat, 8 Jul 2006 12:34:08 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 26670-08 for ; Sat, 8 Jul 2006 12:34:00 +0200 (CEST) Received: from customer-domains.icp-qv1-irony7.iinet.net.au (customer-domains.icp-qv1-irony7.iinet.net.au [203.59.1.128]) by s8.lansco.de (Postfix) with ESMTP id 04079182C91 for ; Sat, 8 Jul 2006 12:33:59 +0200 (CEST) Received: from 203-173-34-137.dyn.iinet.net.au (HELO [10.1.1.3]) ([203.173.34.137]) by customer-domains.icp-qv1-irony7.iinet.net.au with ESMTP; 08 Jul 2006 18:33:29 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.06,219,1149436800"; d="scan'208"; a="338986688:sNHT30656878" Message-ID: <44AF89F5.8010801@syskin.cjb.net> Date: Sat, 08 Jul 2006 20:03:25 +0930 From: Radek Czyz User-Agent: Thunderbird 2.0a1 (Windows/20060529) MIME-Version: 1.0 To: xvid-devel@xvid.org References: <44AF765F.8050301@syskin.cjb.net> In-Reply-To: <44AF765F.8050301@syskin.cjb.net> X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] mpeg intra quantization X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hi again, In fact, can someone explain to me just why we don't keep quant*matrx_entry in memory and use it to both quantize and dequantize? Seems to me it should be both more precise (rounding) and faster. VHQ would like that. Radek Radek Czyz wrote: > Hi everyone, long time no see :) > > Alex_W on irc pointed out that xvid's intra quantization is weird, > mostly when compared to libav's. I went on to debug it, and it seems > that it's rounding coefficients *up*, creating huge frames at low psnr. > > For example, if mpeg matrix entry is 32 at Q=1, a level of 1 is > quantized to 1: > > level = ((level << 4) + (intra_matrix[i] >> 1)) / intra_matrix[i]; > level = ((level + quantd) * mult) >> SCALEBITS; > > which is > level = (1*16+16)/32 = 1; > level = (1+1)*65537/(2*65536) = 1; > > This is later dequantized to 4. > > Bad comparison happens at different quants too, so this is not limited > to Q1 or anything like that. > > In this simple example, changing quantd=0 gives: > 18:30:11 : xvid 1.1: 17772 KB 41.8 dB > 18:30:11 : xvid quantd = 0: 10813 KB 46.42 dB > > Can someone (Skal?:) ) explain what was *meant* to be happening here? > > :) > Radek > _______________________________________________ > XviD-devel mailing list > XviD-devel@xvid.org > http://list.xvid.org/mailman/listinfo/xvid-devel > > _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Sat Jul 8 14:36:06 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id E56CD126D82 for ; Sat, 8 Jul 2006 14:36:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id C3E68182CEF; Sat, 8 Jul 2006 14:36:31 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32177-09; Sat, 8 Jul 2006 14:36:31 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 68D89182CF3; Sat, 8 Jul 2006 14:36:19 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 6B282182CE7 for ; Sat, 8 Jul 2006 14:36:17 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32397-03 for ; Sat, 8 Jul 2006 14:36:13 +0200 (CEST) Received: from localhost (ASte-Genev-Bois-151-1-84-152.w86-212.abo.wanadoo.fr [86.212.169.152]) by s8.lansco.de (Postfix) with ESMTP id BACDB182C71 for ; Sat, 8 Jul 2006 14:36:12 +0200 (CEST) Received: from massimin by localhost with local (Exim 4.60) (envelope-from ) id 1FzC1k-00009i-Vm for xvid-devel@xvid.org; Sat, 08 Jul 2006 14:35:17 +0200 From: skal To: xvid-devel@xvid.org In-Reply-To: <44AF765F.8050301@syskin.cjb.net> References: <44AF765F.8050301@syskin.cjb.net> Date: Sat, 08 Jul 2006 14:35:16 +0200 Message-Id: <1152362116.31276.14.camel@localhost> Mime-Version: 1.0 X-Mailer: Evolution 2.4.2.1 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] mpeg intra quantization X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hey Radek, On Sat, 2006-07-08 at 18:39 +0930, Radek Czyz wrote: [...] > For example, if mpeg matrix entry is 32 at Q=1, a level of 1 is > quantized to 1: > > level = ((level << 4) + (intra_matrix[i] >> 1)) / intra_matrix[i]; > level = ((level + quantd) * mult) >> SCALEBITS; [...] > > In this simple example, changing quantd=0 gives: > 18:30:11 : xvid 1.1: 17772 KB 41.8 dB > 18:30:11 : xvid quantd = 0: 10813 KB 46.42 dB ouch. Just to be sure: this doesn't show up with the ASM code, right? > Can someone (Skal?:) ) explain what was *meant* to be happening here? There's a problem indeed: the intended bias (3q/4) isn't spread evenly between the two 'divides'. I suggest we replace the above two lines by: level = ((level<<3) + ((3*quant*intra_matrix[i])>>3)) / (quant*intra_matrix[i]); Should be about the same, speed-wise. What do you think? Also: > In fact, can someone explain to me just why we don't keep > quant*matrx_entry in memory and use it to both quantize and dequantize? > Seems to me it should be both more precise (rounding) and faster. Yep, that's doable. Just you need to store a set a matrices for each 31 possible quant values (oh, and the biases, too). Oh, and if you want to store the (1< X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id 3EFE9126DBB for ; Sat, 8 Jul 2006 14:55:35 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id C1B53182CFC; Sat, 8 Jul 2006 14:55:59 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 01040-01; Sat, 8 Jul 2006 14:55:59 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id A4A03182D0A; Sat, 8 Jul 2006 14:55:51 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 00FB6182CFB for ; Sat, 8 Jul 2006 14:55:50 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 00630-08 for ; Sat, 8 Jul 2006 14:55:45 +0200 (CEST) Received: from customer-domains.icp-qv1-irony8.iinet.net.au (customer-domains.icp-qv1-irony8.iinet.net.au [203.59.1.133]) by s8.lansco.de (Postfix) with ESMTP id B7483182CF5 for ; Sat, 8 Jul 2006 14:55:44 +0200 (CEST) Received: from 203-173-34-137.dyn.iinet.net.au (HELO [10.1.1.3]) ([203.173.34.137]) by customer-domains.icp-qv1-irony8.iinet.net.au with ESMTP; 08 Jul 2006 20:55:14 +0800 X-BrightmailFiltered: true X-Brightmail-Tracker: AAAAAA== X-IronPort-AV: i="4.06,219,1149436800"; d="scan'208"; a="379988266:sNHT16510186" Message-ID: <44AFAB31.2040405@syskin.cjb.net> Date: Sat, 08 Jul 2006 22:25:13 +0930 From: Radek Czyz User-Agent: Thunderbird 2.0a1 (Windows/20060529) MIME-Version: 1.0 To: xvid-devel@xvid.org References: <44AF765F.8050301@syskin.cjb.net> <1152362116.31276.14.camel@localhost> In-Reply-To: <1152362116.31276.14.camel@localhost> X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] mpeg intra quantization X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hey Skal :) Thanks for that. Something similar definitely happens in xmm code too, I only fell back to C to see what's going on. Bad idea I see - I'll write a C equivalent of xmm first, then poke around further. skal wrote: > Hey Radek, > > On Sat, 2006-07-08 at 18:39 +0930, Radek Czyz wrote: > [...] >> For example, if mpeg matrix entry is 32 at Q=1, a level of 1 is >> quantized to 1: >> >> level = ((level << 4) + (intra_matrix[i] >> 1)) / intra_matrix[i]; >> level = ((level + quantd) * mult) >> SCALEBITS; > [...] >> In this simple example, changing quantd=0 gives: >> 18:30:11 : xvid 1.1: 17772 KB 41.8 dB >> 18:30:11 : xvid quantd = 0: 10813 KB 46.42 dB > > ouch. Just to be sure: this doesn't show up with > the ASM code, right? > >> Can someone (Skal?:) ) explain what was *meant* to be happening here? > > There's a problem indeed: the intended bias (3q/4) isn't spread > evenly between the two 'divides'. I suggest we replace the above > two lines by: > > level = ((level<<3) + ((3*quant*intra_matrix[i])>>3)) / (quant*intra_matrix[i]); > > Should be about the same, speed-wise. What do you think? > > Also: > >> In fact, can someone explain to me just why we don't keep >> quant*matrx_entry in memory and use it to both quantize and dequantize? >> Seems to me it should be both more precise (rounding) and faster. > > Yep, that's doable. Just you need to store a set a matrices for > each 31 possible quant values (oh, and the biases, too). > Oh, and if you want to store the (1< you'll probably need more than 17 bits for the max possible > denominator (=31*255). Iirc, it's 20bits at least. > > bye! > > Skal > > _______________________________________________ > XviD-devel mailing list > XviD-devel@xvid.org > http://list.xvid.org/mailman/listinfo/xvid-devel > > _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Tue Jul 11 18:50:51 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id 3CF46126D88 for ; Tue, 11 Jul 2006 18:50:51 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 2D9831109DC; Tue, 11 Jul 2006 18:51:16 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 09958-06; Tue, 11 Jul 2006 18:51:15 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 372881109EC; Tue, 11 Jul 2006 18:51:11 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id CE40C1109D5 for ; Tue, 11 Jul 2006 18:51:07 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 10023-03 for ; Tue, 11 Jul 2006 18:51:05 +0200 (CEST) Received: from web60122.mail.yahoo.com (web60122.mail.yahoo.com [209.73.178.90]) by s8.lansco.de (Postfix) with SMTP id C06521109D4 for ; Tue, 11 Jul 2006 18:51:04 +0200 (CEST) Received: (qmail 65539 invoked by uid 60001); 11 Jul 2006 16:50:36 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=DuC/FDwWmKfxzFfrlCbrMGEKmJS4o3cDPoXbCNSPau4jRlP+GeN+Mk3VwNK88zWJt2066eUwdWaFqSOzbzLXjWUb5a12TcRjAYbfUuCGIiLDGLO7FpduQaNMUVZQEyHA/TVPtvbZetrY0uwJgfnoW3mnFr+IVpE7NCxuOg8vdOg= ; Message-ID: <20060711165036.65537.qmail@web60122.mail.yahoo.com> Received: from [142.179.218.68] by web60122.mail.yahoo.com via HTTP; Tue, 11 Jul 2006 09:50:36 PDT Date: Tue, 11 Jul 2006 09:50:36 -0700 (PDT) From: Greg Handi To: xvid development MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] Are dequant_h263_intra and dequant_mpeg_intra interchangeable? X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de In playing around with trying to merge things to see where I could get better speed (for a RISC DSP) by combining methods I tried merging the dequant_mpeg_intra method with the idct code (and then not calling idct seperately afterwards of course). Just for fun I removed the logic to test for which dequant method to use (since I had only made a combined version for mpeg) and just used mpeg and then played a file that used h263 to see what it would look like using mpeg instead and much to my surprise it still looked correct. I would have thought that they were not interchangeable but it seems to work, can anyone enlighten me on why this is? I have not written a test to do a binary comparison of the output of an individual frame but to my eyes the video seems to look fine... Another question about combining operations for optimization, it made sense for me to create two versions of the idct and combine them, as apropriate, with the transfer_16to8copy and transfer_16to8add respectively to eliminate extra memory accesses and some scaling shifts, is this something that might be desireable to be done to the main tree? I'm not sure if I could write a proper patch for all the various assembly versions but I'm wondering if one would even be desireable? Or would this be an inappropriate change to make? Thank-you __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Tue Jul 18 08:40:33 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id B8F64126D83 for ; Tue, 18 Jul 2006 08:40:33 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 9B495185530; Tue, 18 Jul 2006 08:41:00 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24095-04; Tue, 18 Jul 2006 08:41:00 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 1E3EA1855BC; Tue, 18 Jul 2006 08:40:53 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 69445185474 for ; Tue, 18 Jul 2006 08:40:49 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 24073-01 for ; Tue, 18 Jul 2006 08:40:46 +0200 (CEST) Received: from reloaded.ext.ti.com (reloaded.ext.ti.com [192.94.94.6]) by s8.lansco.de (Postfix) with ESMTP id 83A9C185101 for ; Tue, 18 Jul 2006 08:40:46 +0200 (CEST) Received: from dlep30.itg.ti.com ([157.170.170.32]) by reloaded.ext.ti.com (8.13.4/8.13.4) with ESMTP id k6I6eCJO021725 for ; Tue, 18 Jul 2006 01:40:17 -0500 (CDT) Received: from dlep95.itg.ti.com (localhost [127.0.0.1]) by dlep30.itg.ti.com (8.12.11/8.12.11) with ESMTP id k6I6eBBk013784 for ; Tue, 18 Jul 2006 01:40:11 -0500 (CDT) Received: from dbde01.ent.ti.com (localhost [127.0.0.1]) by dlep95.itg.ti.com (8.13.7/8.13.7) with ESMTP id k6I6eAEU027330 for ; Tue, 18 Jul 2006 01:40:11 -0500 (CDT) X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Date: Tue, 18 Jul 2006 12:10:09 +0530 Message-ID: <2195AF8E2250C54D8D8A726C8AE84A338ECFA8@dbde01.ent.ti.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Question about rate control in XVID codec Thread-Index: Acapf1Ff2PlqdCMFRiSFVUPxEXRuFgAtZqwg From: "Banerjee, Serene" To: X-Virus-Scanned: amavisd-new at lansco.de X-Content-Filtered-By: Mailman/MimeDel 2.1.6 Subject: [XviD-devel] Question about rate control in XVID codec X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hello, Is p-domain rate control currently implemented in the XVID open source codec? If yes, could you help me identify part of the open source code that uses it. Regards, Serene _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Mon Jul 31 18:51:25 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id E72D3126D90 for ; Mon, 31 Jul 2006 18:51:25 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 8E86F855BB; Mon, 31 Jul 2006 18:51:52 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04389-02; Mon, 31 Jul 2006 18:51:51 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id EC23918078B; Mon, 31 Jul 2006 18:51:43 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 892901109CD for ; Mon, 31 Jul 2006 18:51:40 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 04005-10 for ; Mon, 31 Jul 2006 18:51:37 +0200 (CEST) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.202]) by s8.lansco.de (Postfix) with ESMTP id 16E8D15391 for ; Mon, 31 Jul 2006 18:51:36 +0200 (CEST) Received: by nz-out-0102.google.com with SMTP id k1so196037nzf for ; Mon, 31 Jul 2006 09:51:08 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:content-type:content-transfer-encoding; b=m0Uxb0M/drXuSvjS/362kJFLpNJQB6vSxVXBcIm6+8XcAad7a8eypVqDJHV/y2AnrHXfbugeUgImKueJ4yKlvpfxz2g7IdnL/sa8DkGct9QYFwuUZqqypkRRhB3FV70I1jiNVYJTkNlABDo9QPftflZ3tv8q0/v5iqYFUTSiDQU= Received: by 10.65.97.18 with SMTP id z18mr2193607qbl; Mon, 31 Jul 2006 09:51:05 -0700 (PDT) Received: from ?192.168.1.11? ( [212.159.110.80]) by mx.gmail.com with ESMTP id r1sm4062192nzd.2006.07.31.09.51.04; Mon, 31 Jul 2006 09:51:05 -0700 (PDT) Message-ID: <44CE34F4.8010502@gmail.com> Date: Mon, 31 Jul 2006 17:51:00 +0100 From: Robert Swain User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: XviD-devel X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] Mac OS X Mactel compilation X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de Hello, I've been prodding at the XviD assembly stuff as I would like to have asm enabled on my x86 Intel Core Duo MacBook. Apple's NASM requires "-f macho" so I added the following to the configure script just after line 4073 by looking at the stuff above it (I'm not familiar with configure scripts): [dD][aA][rR][wW][iI][nN]*) echo "$as_me:$LINENO: result: darwin" >&5 echo "${ECHO_T}darwin" >&6 NASM_FORMAT="macho" PREFIX="-DPREFIX" MARK_FUNCS="" ;; The echo which forwards to the nasm format detection line should probably read "macho" and not "darwin" but never mind. I don't know what the PREFIX and MARK_FUNCS variables are for but I set -DPREFIX as without it many more errors were apparent. The errors produced on compilation were as follows: L: libxvidcore.4.dylib ld: bitstream/x86_asm/cbp_mmx.o has local relocation entries in non-writable section (__TEXT,__text) /usr/bin/libtool: internal link edit command failed make: *** [libxvidcore.4.dylib] Error 1 I was told that some linkers are lenient on this issue but some aren't. As stated, I would like to get assembly code working on my MacBook. Any suggestions would be appreciated. Kind regards, Rob P.S. - I was using Apple's GCC and Apple's NASM in OS X 10.4.7 _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Mon Jul 31 20:31:49 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id A2D19126D90 for ; Mon, 31 Jul 2006 20:31:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 992AA18A33A; Mon, 31 Jul 2006 20:32:15 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07850-02; Mon, 31 Jul 2006 20:32:15 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 6E00D18A327; Mon, 31 Jul 2006 20:32:08 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id CB8533CB76 for ; Mon, 31 Jul 2006 20:32:06 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 07581-09 for ; Mon, 31 Jul 2006 20:32:04 +0200 (CEST) Received: from r00tworld.com (r00tworld.com [212.85.137.21]) by s8.lansco.de (Postfix) with ESMTP id 178113CB36 for ; Mon, 31 Jul 2006 20:32:04 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by r00tworld.com (8.13.1/8.13.1) with ESMTP id k6VIVTUx002339 for ; Mon, 31 Jul 2006 20:31:29 +0200 Received: from r00tworld.com ([127.0.0.1]) by localhost (r00tworld.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 01709-04 for ; Mon, 31 Jul 2006 20:31:22 +0200 (CEST) Received: from [192.168.0.14] (x.r00tworld.com [212.85.137.21]) by r00tworld.com (8.13.1/8.13.1) with ESMTP id k6VIVG44002284 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 31 Jul 2006 20:31:18 +0200 From: pageexec@freemail.hu To: XviD-devel Date: Mon, 31 Jul 2006 20:30:30 +0200 MIME-Version: 1.0 Message-ID: <44CE6866.14404.47D092C2@pageexec.freemail.hu> Priority: normal In-reply-to: <44CE34F4.8010502@gmail.com> X-mailer: Pegasus Mail for Windows (4.31) Content-description: Mail message body X-Virus-Scanned: r00tworld Anti-Virus System X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Mac OS X Mactel compilation X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: pageexec@freemail.hu, xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de On 31 Jul 2006 at 17:51, Robert Swain wrote: > L: libxvidcore.4.dylib > ld: bitstream/x86_asm/cbp_mmx.o has local relocation entries in non-writable > section (__TEXT,__text) > /usr/bin/libtool: internal link edit command failed > make: *** [libxvidcore.4.dylib] Error 1 > > I was told that some linkers are lenient on this issue but some aren't. As > stated, I would like to get assembly code working on my MacBook. Any suggestions > would be appreciated. gentoo has fixes for text relocations in xvid, maybe it works on mac os x too: http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/distfiles/xvid-1.1.0-textrel-2.patch.bz2 _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Mon Jul 31 20:55:37 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id CB9F0126D90 for ; Mon, 31 Jul 2006 20:55:37 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 90A4A18A362; Mon, 31 Jul 2006 20:56:03 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08550-09; Mon, 31 Jul 2006 20:56:03 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 9BBBD18A37D; Mon, 31 Jul 2006 20:55:56 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id BEF9118A35D for ; Mon, 31 Jul 2006 20:55:54 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 08420-09 for ; Mon, 31 Jul 2006 20:55:52 +0200 (CEST) Received: from nz-out-0102.google.com (nz-out-0102.google.com [64.233.162.195]) by s8.lansco.de (Postfix) with ESMTP id 041B913F16 for ; Mon, 31 Jul 2006 20:55:51 +0200 (CEST) Received: by nz-out-0102.google.com with SMTP id k1so206601nzf for ; Mon, 31 Jul 2006 11:55:23 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=KY+WGKnP9wmce6zrshw04tBq+w+vVIAB9CGVRR4WMQTzfpzWfqRw4sto0ETVPBk0/3MmCScRq/8m+QuBttWjMEql9iLzxdTj/dYsbbUsiGRb7SNVeuplmPyScSD1HRqDbFzcXOskpB7JVNoyeNkJsWDixcdD69tgpucKgeYjOs0= Received: by 10.65.211.16 with SMTP id n16mr106412qbq; Mon, 31 Jul 2006 11:55:23 -0700 (PDT) Received: from ?192.168.1.11? ( [212.159.110.80]) by mx.gmail.com with ESMTP id e19sm926662qba.2006.07.31.11.55.19; Mon, 31 Jul 2006 11:55:22 -0700 (PDT) Message-ID: <44CE520F.5020404@gmail.com> Date: Mon, 31 Jul 2006 19:55:11 +0100 From: Robert Swain User-Agent: Thunderbird 1.5.0.5 (Macintosh/20060719) MIME-Version: 1.0 To: xvid-devel@xvid.org References: <44CE6866.14404.47D092C2@pageexec.freemail.hu> In-Reply-To: <44CE6866.14404.47D092C2@pageexec.freemail.hu> X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Mac OS X Mactel compilation X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de pageexec@freemail.hu wrote: > On 31 Jul 2006 at 17:51, Robert Swain wrote: >> L: libxvidcore.4.dylib >> ld: bitstream/x86_asm/cbp_mmx.o has local relocation entries in non-writable >> section (__TEXT,__text) >> /usr/bin/libtool: internal link edit command failed >> make: *** [libxvidcore.4.dylib] Error 1 >> >> I was told that some linkers are lenient on this issue but some aren't. As >> stated, I would like to get assembly code working on my MacBook. Any suggestions >> would be appreciated. > > gentoo has fixes for text relocations in xvid, maybe it works on mac os x too: > > http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/distfiles/xvid-1.1.0-textrel-2.patch.bz2 Worth a try but it doesn't like the ..gotoff stuff: ../../src/dct/x86_asm/fdct_mmx_ffmpeg.asm:428: error: symbol `..gotpc' undefined ../../src/dct/x86_asm/fdct_mmx_ffmpeg.asm:428: error: symbol `..gotoff' undefined and much more... Rob _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Mon Jul 31 22:43:47 2006 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from s8.lansco.de (s8.lansco.de [85.10.209.66]) by mail.kliche.org (Postfix) with ESMTP id D399C126D90 for ; Mon, 31 Jul 2006 22:43:47 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 566CC18A4FF; Mon, 31 Jul 2006 22:44:13 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11984-03; Mon, 31 Jul 2006 22:44:13 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 0B5D918A504; Mon, 31 Jul 2006 22:44:07 +0200 (CEST) X-Original-To: xvid-devel@s8.lansco.de Delivered-To: xvid-devel@s8.lansco.de Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 89CED18A4CD for ; Mon, 31 Jul 2006 22:44:04 +0200 (CEST) Received: from s8.lansco.de ([127.0.0.1]) by localhost (s8.lansco.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 11814-09 for ; Mon, 31 Jul 2006 22:44:01 +0200 (CEST) Received: from r00tworld.com (r00tworld.com [212.85.137.21]) by s8.lansco.de (Postfix) with ESMTP id C32BB18A4AE for ; Mon, 31 Jul 2006 22:44:01 +0200 (CEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by r00tworld.com (8.13.1/8.13.1) with ESMTP id k6VKhUwC007095 for ; Mon, 31 Jul 2006 22:43:31 +0200 Received: from r00tworld.com ([127.0.0.1]) by localhost (r00tworld.com [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 06843-05 for ; Mon, 31 Jul 2006 22:43:29 +0200 (CEST) Received: from [192.168.0.14] (x.r00tworld.com [212.85.137.21]) by r00tworld.com (8.13.1/8.13.1) with ESMTP id k6VKhRCE007089 (version=TLSv1/SSLv3 cipher=DES-CBC3-SHA bits=168 verify=NO) for ; Mon, 31 Jul 2006 22:43:28 +0200 From: pageexec@freemail.hu To: xvid-devel@xvid.org Date: Mon, 31 Jul 2006 22:42:40 +0200 MIME-Version: 1.0 Message-ID: <44CE8760.19521.484993B9@pageexec.freemail.hu> Priority: normal In-reply-to: <44CE520F.5020404@gmail.com> References: <44CE6866.14404.47D092C2@pageexec.freemail.hu> X-mailer: Pegasus Mail for Windows (4.31) Content-description: Mail message body X-Virus-Scanned: r00tworld Anti-Virus System X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Mac OS X Mactel compilation X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: pageexec@freemail.hu, xvid-devel@xvid.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de On 31 Jul 2006 at 19:55, Robert Swain wrote: > Worth a try but it doesn't like the ..gotoff stuff: > > ../../src/dct/x86_asm/fdct_mmx_ffmpeg.asm:428: error: symbol `..gotpc' undefined > ../../src/dct/x86_asm/fdct_mmx_ffmpeg.asm:428: error: symbol `..gotoff' undefined > > and much more... guess the ELF way of doing position independent code doesn't quite work for mach-o ;-). you could look at the gcc -S -fPIC output and see how gcc does it and try to adapt that in the nasm assembly. _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel