From xvid-devel-bounces@xvid.org Thu Jun 1 07:31:17 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 77E0E126D82 for ; Thu, 1 Jun 2006 07:31:17 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 0E6E5168868; Thu, 1 Jun 2006 07:31:32 +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 16325-03; Thu, 1 Jun 2006 07:31:31 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id CF1BE168C4D; Thu, 1 Jun 2006 07:31: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 3CC44168B4B for ; Thu, 1 Jun 2006 07:31:18 +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 16254-03 for ; Thu, 1 Jun 2006 07:31:13 +0200 (CEST) Received: from mail-relay-3.tiscali.it (mail-relay-3.tiscali.it [213.205.33.43]) by s8.lansco.de (Postfix) with ESMTP id 66E7F168868 for ; Thu, 1 Jun 2006 07:31:08 +0200 (CEST) Received: from mng (84.221.2.40) by mail-relay-3.tiscali.it (7.3.104) id 44329D4C006F8341 for xvid-devel@xvid.org; Thu, 1 Jun 2006 07:30:40 +0200 Message-ID: <001201c6853c$8d042970$2802dd54@mng> From: "Giorgio Menaguale" To: Date: Thu, 1 Jun 2006 07:30:53 +0200 MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="----=_NextPart_000_000E_01C6854D.50587BF0" X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: amavisd-new at lansco.de X-Content-Filtered-By: Mailman/MimeDel 2.1.6 Subject: [XviD-devel] Home Theatre profile hardware compatibility 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: , Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org X-Virus-Scanned: amavisd-new at lansco.de This is a multi-part message in MIME format. ------=_NextPart_000_000E_01C6854D.50587BF0 Content-Type: text/plain; charset="ISO-8859-15" Content-Transfer-Encoding: quoted-printable Files produced with VirtualDubMod and Xvid "Home Theater PAL" profile=20 are not reproduced on my KISS DP1000 DVD player (2.9.1 fw). I get no video and the counter holds to "00:00:00". =20 I have compared files compressed with DivX and Xvid and I have found=20 some difference in bitstreams. The attached files are the printout of the debugger opening a divx and=20 an xvid (home theater profile) compressed file. The files produced with the attached patch works fine for my DVD=20 player. I haven't found the right way to get bitrate, buffer_size and occupancy=20 vbv parameters from profile. GM ------=_NextPart_000_000E_01C6854D.50587BF0 Content-Type: text/plain; name="divx.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="divx.txt" vo id 0 vol id 0 + is_object_layer_identifier ver_id 2 + vol_control_parameters low_delay 0 + vbv_parameters bitrate 12135 (unit=400 bps) buffer_size 192 (unit=16384 bits) occupancy 36864 (unit=64 bits) shape 0 vop_time_increment_resolution 30000 width 720 height 304 interlacing 0 quant_type 0 quarterpel 0 reduced_resolution_enable 0 coding_type=-2, packed=0, time=0, time_pp=0, time_bp=0 : DivX503b1920p divx version=503, build=1920 packed=1 coding_type 0 time_base 0 time_increment 0 ------=_NextPart_000_000E_01C6854D.50587BF0 Content-Type: text/plain; name="xvid.txt" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="xvid.txt" profile_and_level_indication 245 vo id 0 vol id 0 + vol_control_parameters low_delay 0 shape 0 vop_time_increment_resolution 65535 + fixed_vop_rate width 720 height 400 interlacing 0 quant_type 0 coding_type=-2, packed=0, time=0, time_pp=0, time_bp=0 : DivX503b1393p divx version=503, build=1393 packed=1 : XviD0041 xvid bitstream version=41 coding_type 0 time_base 0 time_increment 0 ------=_NextPart_000_000E_01C6854D.50587BF0 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel ------=_NextPart_000_000E_01C6854D.50587BF0-- From xvid-devel-bounces@xvid.org Thu Jun 1 10:27:05 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 D52EC126D88 for ; Thu, 1 Jun 2006 10:27:05 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 24DED1686BA; Thu, 1 Jun 2006 10:27:20 +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 23321-01; Thu, 1 Jun 2006 10:27:19 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 144011686BD; Thu, 1 Jun 2006 10:27:09 +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 E3CEB160C0F for ; Thu, 1 Jun 2006 10:27: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 22836-08 for ; Thu, 1 Jun 2006 10:26:59 +0200 (CEST) Received: from s5.lansco.de (s5.lansco.de [212.63.130.170]) by s8.lansco.de (Postfix) with ESMTP id 480F3160BC4 for ; Thu, 1 Jun 2006 10:26:59 +0200 (CEST) Received: from localhost (s5.lansco.de [212.63.130.170]) by s5.lansco.de (Postfix) with ESMTP id 44D133092E for ; Thu, 1 Jun 2006 10:26:33 +0200 (CEST) Received: from p549377A3.dip.t-dialin.net (p549377A3.dip.t-dialin.net [84.147.119.163]) by www.lansco.de (IMP) with HTTP for ; Thu, 1 Jun 2006 10:26:33 +0200 Message-ID: <1149150393.447ea4b908371@www.lansco.de> Date: Thu, 1 Jun 2006 10:26:33 +0200 From: Michael Militzer To: xvid-devel@xvid.org References: <001201c6853c$8d042970$2802dd54@mng> In-Reply-To: <001201c6853c$8d042970$2802dd54@mng> MIME-Version: 1.0 User-Agent: Internet Messaging Program (IMP) 3.2.3 X-Originating-IP: 84.147.119.163 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Home Theatre profile hardware compatibility 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, thanks for the report. Can you comment on which version of Xvid you used? And which options did you use for encoding (mainly rate-control mode: one-pass, two-pass, constant quality?)? Also, your proposed patch didn't seem to go through (attachments exceeding a rather small size limit are stripped by the mailing list). You should paste the patch into the body of your mail or upload it somewhere. Will be glad to review it then. Thanks, Michael Quoting Giorgio Menaguale : > Files produced with VirtualDubMod and Xvid "Home Theater PAL" profile > are not reproduced on my KISS DP1000 DVD player (2.9.1 fw). > I get no video and the counter holds to "00:00:00". > > I have compared files compressed with DivX and Xvid and I have found > some difference in bitstreams. > > The attached files are the printout of the debugger opening a divx and > an xvid (home theater profile) compressed file. > > The files produced with the attached patch works fine for my DVD > player. > > I haven't found the right way to get bitrate, buffer_size and occupancy > vbv parameters from profile. > > GM > _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Thu Jun 1 19:36:50 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 CA484126D82 for ; Thu, 1 Jun 2006 19:36:50 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id EFE4A16891C; Thu, 1 Jun 2006 19:37:05 +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 12721-03; Thu, 1 Jun 2006 19:37:05 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 90E7D1689B4; Thu, 1 Jun 2006 19:36:55 +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 BE813168962 for ; Thu, 1 Jun 2006 19:36:53 +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 12243-08 for ; Thu, 1 Jun 2006 19:36:48 +0200 (CEST) Received: from mail-relay-3.tiscali.it (mail-relay-3.tiscali.it [213.205.33.43]) by s8.lansco.de (Postfix) with ESMTP id D5801159511 for ; Thu, 1 Jun 2006 19:36:48 +0200 (CEST) Received: from mng (84.220.60.49) by mail-relay-3.tiscali.it (7.3.104) id 44329D4C00715126 for xvid-devel@xvid.org; Thu, 1 Jun 2006 19:36:22 +0200 Message-ID: <000801c685a1$ef7c7de0$313cdc54@mng> From: "Giorgio Menaguale" To: References: <001201c6853c$8d042970$2802dd54@mng> <1149150393.447ea4b908371@www.lansco.de> Date: Thu, 1 Jun 2006 19:36:37 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Home Theatre profile hardware compatibility 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, I have used version 1.2 (20060513 cvs snapshot). I have used "Home Theatre PAL" profile and single pass constant bitrate or twopass encoding Giorgio --- bitstream156.c 2006-06-01 07:22:08.203125000 +0200 +++ bitstream.c 2006-05-31 07:23:30.906250000 +0200 @@ -1073,10 +1073,18 @@ int vol_ver_id = 1; int vol_type_ind = VIDOBJLAY_TYPE_SIMPLE; int vol_profile = pParam->profile; + unsigned long bitrate; /* (unit=400 bps) */ + unsigned long buffer_size; /* (unit=16384 bits) */ + unsigned long occupancy; /* (unit=64 bits) */ + + if ( (pParam->vol_flags & XVID_VOL_QUARTERPEL) || - (pParam->vol_flags & XVID_VOL_GMC)) + (pParam->vol_flags & XVID_VOL_GMC) || + /* Added for compatibility with Divx bitstream */ + (pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { vol_ver_id = 2; + } if ((pParam->vol_flags & (XVID_VOL_MPEGQUANT|XVID_VOL_QUARTERPEL|XVID_VOL_GMC|XVID_VOL_INTERLACING)) || pParam->max_bframes>0) { @@ -1110,6 +1118,9 @@ } /* Write the VOS header */ + + /* Added for compatibility with Divx bitstream */ + if (!(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBits(bs, VISOBJSEQ_START_CODE, 32); BitstreamPutBits(bs, vol_profile, 8); /* profile_and_level_indication */ @@ -1125,6 +1136,8 @@ /* video object_start_code & vo_id */ BitstreamPadAlways(bs); /* next_start_code() */ + } + BitstreamPutBits(bs, VIDOBJ_START_CODE|(vo_id&0x5), 32); /* video_object_layer_start_code & vol_id */ @@ -1158,7 +1171,31 @@ { BitstreamPutBit(bs, 1); /* low_delay */ } + /* Added for compatibility with Divx bitstream */ + if (!(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBit(bs, 0); /* vbv_parameters (0=not given) */ + } else + { + BitstreamPutBit(bs, 1); /* vbv_parameters */ + + bitrate=12135; /* (unit=400 bps) */ + buffer_size=192; /* (unit=16384 bits) */ + occupancy=36864; /* (unit=64 bits) */ + + BitstreamPutBits(bs, bitrate >> 15, 15); + WRITE_MARKER(); + BitstreamPutBits(bs, bitrate & 0x7fff, 15); + WRITE_MARKER(); + + BitstreamPutBits(bs, buffer_size >> 3, 15); + WRITE_MARKER(); + BitstreamPutBits(bs, buffer_size & 0x7, 3); + + BitstreamPutBits(bs, occupancy >> 15, 11); + WRITE_MARKER(); + BitstreamPutBits(bs, occupancy & 0x7fff, 15); + WRITE_MARKER(); + } BitstreamPutBits(bs, 0, 2); /* video_object_layer_shape (0=rectangular) */ @@ -1174,7 +1211,8 @@ WRITE_MARKER(); - if (pParam->fincr>0) { + /* Added for compatibility with Divx bitstream */ + if ((pParam->fincr>0)&& !(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ BitstreamPutBits(bs, pParam->fincr, MAX(log2bin(pParam->fbase-1),1)); /* fixed_vop_time_increment */ }else{ @@ -1249,7 +1287,7 @@ BitstreamWriteUserData(bs, DIVX5_ID, strlen(DIVX5_ID)); if (pParam->max_bframes > 0 && (pParam->global_flags & XVID_GLOBAL_PACKED)) BitstreamPutBits(bs, 'p', 8); - } + } else /* Added for compatibility with Divx bitstream */ /* xvid id */ { _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Thu Jun 1 19:37: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 220EA126D82 for ; Thu, 1 Jun 2006 19:37:49 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 441041689BA; Thu, 1 Jun 2006 19:38: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 12564-07; Thu, 1 Jun 2006 19:37:59 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 991A61689C0; Thu, 1 Jun 2006 19:37:47 +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 CC15B168883 for ; Thu, 1 Jun 2006 19:37:45 +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 12564-05 for ; Thu, 1 Jun 2006 19:37:37 +0200 (CEST) Received: from mail-relay-2.tiscali.it (mail-relay-2.tiscali.it [213.205.33.42]) by s8.lansco.de (Postfix) with ESMTP id CAC401689AD for ; Thu, 1 Jun 2006 19:37:37 +0200 (CEST) Received: from mng (84.220.60.49) by mail-relay-2.tiscali.it (7.3.104) id 443AD4620064BC66 for xvid-devel@xvid.org; Thu, 1 Jun 2006 19:35:19 +0200 Message-ID: <000501c685a1$ca3493b0$313cdc54@mng> From: "Giorgio Menaguale" To: References: <001201c6853c$8d042970$2802dd54@mng> <1149150393.447ea4b908371@www.lansco.de> Date: Thu, 1 Jun 2006 19:35:35 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Home Theatre profile hardware compatibility 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, I have used version 1.2 (20060513 cvs snapshot). I have used "Home Theatre PAL" profile and single pass constant bitrate or twopass encoding Giorgio --- bitstream156.c 2006-06-01 07:22:08.203125000 +0200 +++ bitstream.c 2006-05-31 07:23:30.906250000 +0200 @@ -1073,10 +1073,18 @@ int vol_ver_id = 1; int vol_type_ind = VIDOBJLAY_TYPE_SIMPLE; int vol_profile = pParam->profile; + unsigned long bitrate; /* (unit=400 bps) */ + unsigned long buffer_size; /* (unit=16384 bits) */ + unsigned long occupancy; /* (unit=64 bits) */ + + if ( (pParam->vol_flags & XVID_VOL_QUARTERPEL) || - (pParam->vol_flags & XVID_VOL_GMC)) + (pParam->vol_flags & XVID_VOL_GMC) || + /* Added for compatibility with Divx bitstream */ + (pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { vol_ver_id = 2; + } if ((pParam->vol_flags & (XVID_VOL_MPEGQUANT|XVID_VOL_QUARTERPEL|XVID_VOL_GMC|XVID_VOL_INTERLACING)) || pParam->max_bframes>0) { @@ -1110,6 +1118,9 @@ } /* Write the VOS header */ + + /* Added for compatibility with Divx bitstream */ + if (!(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBits(bs, VISOBJSEQ_START_CODE, 32); BitstreamPutBits(bs, vol_profile, 8); /* profile_and_level_indication */ @@ -1125,6 +1136,8 @@ /* video object_start_code & vo_id */ BitstreamPadAlways(bs); /* next_start_code() */ + } + BitstreamPutBits(bs, VIDOBJ_START_CODE|(vo_id&0x5), 32); /* video_object_layer_start_code & vol_id */ @@ -1158,7 +1171,31 @@ { BitstreamPutBit(bs, 1); /* low_delay */ } + /* Added for compatibility with Divx bitstream */ + if (!(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBit(bs, 0); /* vbv_parameters (0=not given) */ + } else + { + BitstreamPutBit(bs, 1); /* vbv_parameters */ + + bitrate=12135; /* (unit=400 bps) */ + buffer_size=192; /* (unit=16384 bits) */ + occupancy=36864; /* (unit=64 bits) */ + + BitstreamPutBits(bs, bitrate >> 15, 15); + WRITE_MARKER(); + BitstreamPutBits(bs, bitrate & 0x7fff, 15); + WRITE_MARKER(); + + BitstreamPutBits(bs, buffer_size >> 3, 15); + WRITE_MARKER(); + BitstreamPutBits(bs, buffer_size & 0x7, 3); + + BitstreamPutBits(bs, occupancy >> 15, 11); + WRITE_MARKER(); + BitstreamPutBits(bs, occupancy & 0x7fff, 15); + WRITE_MARKER(); + } BitstreamPutBits(bs, 0, 2); /* video_object_layer_shape (0=rectangular) */ @@ -1174,7 +1211,8 @@ WRITE_MARKER(); - if (pParam->fincr>0) { + /* Added for compatibility with Divx bitstream */ + if ((pParam->fincr>0)&& !(pParam->global_flags & XVID_GLOBAL_DIVX5_USERDATA)) { BitstreamPutBit(bs, 1); /* fixed_vop_rate = 1 */ BitstreamPutBits(bs, pParam->fincr, MAX(log2bin(pParam->fbase-1),1)); /* fixed_vop_time_increment */ }else{ @@ -1249,7 +1287,7 @@ BitstreamWriteUserData(bs, DIVX5_ID, strlen(DIVX5_ID)); if (pParam->max_bframes > 0 && (pParam->global_flags & XVID_GLOBAL_PACKED)) BitstreamPutBits(bs, 'p', 8); - } + } else /* Added for compatibility with Divx bitstream */ /* xvid id */ { _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Fri Jun 2 23:27:32 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 A33EE126D89 for ; Fri, 2 Jun 2006 23:27:32 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 04F32168696; Fri, 2 Jun 2006 23:27:47 +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 10185-01; Fri, 2 Jun 2006 23:27:46 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id A6B32168659; Fri, 2 Jun 2006 23:27:35 +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 2129B137F49 for ; Fri, 2 Jun 2006 23:27:33 +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 09532-05 for ; Fri, 2 Jun 2006 23:27:27 +0200 (CEST) Received: from smtp7.libero.it (smtp7.libero.it [193.70.192.90]) by s8.lansco.de (Postfix) with ESMTP id 5F44D109CB0 for ; Fri, 2 Jun 2006 23:27:27 +0200 (CEST) Received: from localhost (172.16.1.47) by smtp7.libero.it (7.0.027-DD01) id 4464C60901F6CA31 for xvid-devel@xvid.org; Fri, 2 Jun 2006 23:27:01 +0200 Received: from smtp3.libero.it ([172.16.1.53]) by localhost (asav7.libero.it [193.70.193.93]) (amavisd-new, port 10024) with ESMTP id 09622-03-4 for ; Fri, 2 Jun 2006 23:27:00 +0200 (CEST) Received: from libero.it (192.168.17.4) by smtp3.libero.it (7.0.027-DD01) id 44755DBA0023BE69 for xvid-devel@xvid.org; Fri, 2 Jun 2006 23:27:00 +0200 Date: Fri, 2 Jun 2006 23:27:00 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 From: "carlo.bramix" To: "xvid-devel" X-XaM3-API-Version: 4.3 (R1) (B3pl17) X-SenderIP: 151.25.158.57 X-Scanned: with antispam and antivirus automated system at libero.it X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] Improved YV12 -> YUYV color conversion 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 did some changes to "colorspace_yuyv_mmx.asm". I rewrote the YV12_TO_YUYV macro and now on my old PC I'm getting smoother playback, with lot less frameskips. The YUYV and UYVY routines are coded separately because the YV12->UYVY conversion is the same one used in previous version. Perhaps it could be done for it too, but my videocard doesn't support the UYVY colorspace (only YUYV works) so I couldn't test it. Sincerely, Carlo Bramini. diff -urN xvidcore-1.1.0/src/image/x86_asm/colorspace_yuyv_mmx.asm xvidcore-1.2.0/src/image/x86_asm/colorspace_yuyv_mmx.asm --- xvidcore-1.1.0/src/image/x86_asm/colorspace_yuyv_mmx.asm Fri Dec 30 13:34:58 2005 +++ xvidcore-1.2.0/src/image/x86_asm/colorspace_yuyv_mmx.asm Fri Jun 2 21:01:18 2006 @@ -172,9 +172,7 @@ ;----------------------------------------------------------------------------- ; YV12_TO_YUYV( TYPE ) ; -; TYPE 0=yuyv, 1=uyvy -; -; bytes=2, pixels = 8, vpixels=2 +; bytes=2, pixels = 16, vpixels=2 ;----------------------------------------------------------------------------- %macro YV12_TO_YUYV_INIT 2 @@ -182,24 +180,52 @@ %macro YV12_TO_YUYV 2 - movd mm4, [ebx] ; [ |uuuu] - movd mm5, [ecx] ; [ |vvvv] - movq mm0, [esi] ; [yyyy|yyyy] ; y row 0 - movq mm1, [esi+eax] ; [yyyy|yyyy] ; y row 1 - punpcklbw mm4, mm5 ; [vuvu|vuvu] ; uv row 0 - -%if %1 == 0 ; YUYV + movq mm6, [ebx] ; [uuuu|uuuu] + movq mm2, [ecx] ; [vvvv|vvvv] + movq mm0, [esi] ; [yyyy|yyyy] ; y[0..7] row 0 + movq mm1, [esi+eax] ; [yyyy|yyyy] ; y[0..7] row 1 + movq mm7, mm6 + punpcklbw mm6, mm2 ; [vuvu|vuvu] ; uv[0..3] + punpckhbw mm7, mm2 ; [vuvu|vuvu] ; uv[4..7] movq mm2, mm0 movq mm3, mm1 - punpcklbw mm0, mm4 ; [vyuy|vyuy] ; y row 0 + 0 - punpckhbw mm2, mm4 ; [vyuy|vyuy] ; y row 0 + 8 - punpcklbw mm1, mm4 ; [vyuy|vyuy] ; y row 1 + 0 - punpckhbw mm3, mm4 ; [vyuy|vyuy] ; y row 1 + 8 + movq mm4, [esi+8] ; [yyyy|yyyy] ; y[8..15] row 0 + movq mm5, [esi+eax+8] ; [yyyy|yyyy] ; y[8..15] row 1 + punpcklbw mm0, mm6 ; [vyuy|vyuy] ; y row 0 + 0 + punpckhbw mm2, mm6 ; [vyuy|vyuy] ; y row 0 + 8 + punpcklbw mm1, mm6 ; [vyuy|vyuy] ; y row 1 + 0 + punpckhbw mm3, mm6 ; [vyuy|vyuy] ; y row 1 + 8 movq [edi], mm0 movq [edi+8], mm2 movq [edi+edx], mm1 movq [edi+edx+8], mm3 -%else ; UYVY + movq mm0, mm4 + movq mm2, mm5 + punpcklbw mm0, mm7 ; [vyuy|vyuy] ; y row 0 + 16 + punpckhbw mm4, mm7 ; [vyuy|vyuy] ; y row 0 + 24 + punpcklbw mm2, mm7 ; [vyuy|vyuy] ; y row 1 + 16 + punpckhbw mm5, mm7 ; [vyuy|vyuy] ; y row 1 + 24 + movq [edi+16], mm0 + movq [edi+24], mm4 + movq [edi+edx+16], mm2 + movq [edi+edx+24], mm5 +%endmacro + +;----------------------------------------------------------------------------- +; YV12_TO_UYVY( TYPE ) +; +; bytes=2, pixels = 8, vpixels=2 +;----------------------------------------------------------------------------- + +%macro YV12_TO_UYVY_INIT 2 +%endmacro + +%macro YV12_TO_UYVY 2 + movd mm4, [ebx] ; [ |uuuu] + movd mm5, [ecx] ; [ |vvvv] + movq mm0, [esi] ; [yyyy|yyyy] ; y row 0 + movq mm1, [esi+eax] ; [yyyy|yyyy] ; y row 1 + punpcklbw mm4, mm5 ; [vuvu|vuvu] ; uv row 0 movq mm5, mm4 movq mm6, mm4 movq mm7, mm4 @@ -211,7 +237,6 @@ movq [edi+8], mm5 movq [edi+edx], mm6 movq [edi+edx+8], mm7 -%endif %endmacro ;------------------------------------------------------------------------------ @@ -324,8 +349,8 @@ ; output -MAKE_COLORSPACE yv12_to_yuyv_mmx,0, 2,8,2, YV12_TO_YUYV, 0, -1 -MAKE_COLORSPACE yv12_to_uyvy_mmx,0, 2,8,2, YV12_TO_YUYV, 1, -1 +MAKE_COLORSPACE yv12_to_yuyv_mmx,0, 2,16,2, YV12_TO_YUYV, 0, -1 +MAKE_COLORSPACE yv12_to_uyvy_mmx,0, 2,8,2, YV12_TO_UYVY, 1, -1 MAKE_COLORSPACE yv12_to_yuyvi_mmx,0, 2,8,4, YV12_TO_YUYVI, 0, -1 MAKE_COLORSPACE yv12_to_uyvyi_mmx,0, 2,8,4, YV12_TO_YUYVI, 1, -1 _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Mon Jun 5 23:33:43 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 4A577126D85 for ; Mon, 5 Jun 2006 23:33:43 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 3515316AE40; Mon, 5 Jun 2006 23:33:58 +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 13472-09; Mon, 5 Jun 2006 23:33:57 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 9B6BF16AEED; Mon, 5 Jun 2006 23:33:48 +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 F3ED916AC7B for ; Mon, 5 Jun 2006 23:33: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 13473-06 for ; Mon, 5 Jun 2006 23:33:34 +0200 (CEST) Received: from localhost (ASte-Genev-Bois-151-1-52-70.w82-121.abo.wanadoo.fr [82.121.2.70]) by s8.lansco.de (Postfix) with ESMTP id 333F916AC88 for ; Mon, 5 Jun 2006 23:33:33 +0200 (CEST) Received: from massimin by localhost with local (Exim 4.60) (envelope-from ) id 1FnMfy-0001qe-Cd for xvid-devel@xvid.org; Mon, 05 Jun 2006 23:31:54 +0200 From: skal To: xvid-devel@xvid.org In-Reply-To: References: Date: Mon, 05 Jun 2006 23:31:53 +0200 Message-Id: <1149543114.31612.1.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] Improved YV12 -> YUYV color conversion 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 Carlo and all, On Fri, 2006-06-02 at 23:27 +0200, carlo.bramix wrote: > Hello, > I did some changes to "colorspace_yuyv_mmx.asm". > I rewrote the YV12_TO_YUYV macro and now on my old PC I'm getting smoother playback, with lot less frameskips. > The YUYV and UYVY routines are coded separately because the YV12->UYVY conversion is the same one used in previous version. > Perhaps it could be done for it too, but my videocard doesn't support the UYVY colorspace (only YUYV works) so I couldn't test it. some new yv12->yuyv / uyvy funcs based on your code is now committed. I've added some little tests in xvid_bench.c (`xvid_bench 14`). Hope it's ok. SKal _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Tue Jun 6 15:56: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 D67DA126D84 for ; Tue, 6 Jun 2006 15:56:06 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 1B38D16A599; Tue, 6 Jun 2006 15:56: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 16022-03; Tue, 6 Jun 2006 15:56:30 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 32DC916ACF3; Tue, 6 Jun 2006 15:56:23 +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 2E6AA16A599 for ; Tue, 6 Jun 2006 15:56: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 15947-03 for ; Tue, 6 Jun 2006 15:56:08 +0200 (CEST) Received: from localhost (ASte-Genev-Bois-151-1-39-149.w83-114.abo.wanadoo.fr [83.114.149.149]) by s8.lansco.de (Postfix) with ESMTP id 4171216ACF3 for ; Tue, 6 Jun 2006 15:56:08 +0200 (CEST) Received: from massimin by localhost with local (Exim 4.60) (envelope-from ) id 1Fnc0m-0005jO-Rr for xvid-devel@xvid.org; Tue, 06 Jun 2006 15:54:24 +0200 From: skal To: xvid-devel@xvid.org In-Reply-To: <000501c685a1$ca3493b0$313cdc54@mng> References: <001201c6853c$8d042970$2802dd54@mng> <1149150393.447ea4b908371@www.lansco.de> <000501c685a1$ca3493b0$313cdc54@mng> Date: Tue, 06 Jun 2006 15:54:24 +0200 Message-Id: <1149602064.31612.10.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] Home Theatre profile hardware compatibility 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 Giorgio and all, On Thu, 2006-06-01 at 19:35 +0200, Giorgio Menaguale wrote: > I have used version 1.2 (20060513 cvs snapshot). > > I have used "Home Theatre PAL" profile and single pass constant bitrate or > twopass encoding thanks for your investigations Are you sure *all* of these modifications are required to make your bitstream play? My guess would be : your player is choking on vol_profile (saying: "Ouch! A profile i'm not supposed to read!! => abort"). That's why we maybe should not emit a VISOBJSEQ_START_CODE, only. Anyway, could you try enabling only one feature at a time and see which one really makes your file play? (if this is the case. After all, maybe all of the three {profile}{bitrate} {fixed_vop_rate} set of features are really needed, who knows). bye! Skal _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Tue Jun 6 17:58:26 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 5596B126D83 for ; Tue, 6 Jun 2006 17:58:26 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 7CC5E16AF1E; Tue, 6 Jun 2006 17:58: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 20810-09; Tue, 6 Jun 2006 17:58:50 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id ADBAB16AF5C; Tue, 6 Jun 2006 17:58:40 +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 8445516AEF1 for ; Tue, 6 Jun 2006 17:58:38 +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 20810-07 for ; Tue, 6 Jun 2006 17:58:33 +0200 (CEST) Received: from web60118.mail.yahoo.com (web60118.mail.yahoo.com [209.73.178.86]) by s8.lansco.de (Postfix) with SMTP id 6985216ADCA for ; Tue, 6 Jun 2006 17:58:33 +0200 (CEST) Received: (qmail 70861 invoked by uid 60001); 6 Jun 2006 15:58:05 -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=DPhKYCrrAXDKrdEJaliZuN4wd7CMKu5g6ylC+DwzH1RPVT544rm2Nho3VkhC4xP+UldKy8muUisYUl/eEqmuQXsWEEzbuOCAiG2Pe2/K4tvCx/k2aM/2DTZ+HQDnzUlOiKiwk07gVMbrLewm/bqotR44JBg6yi2EVq5d8ajdBIQ= ; Message-ID: <20060606155805.70859.qmail@web60118.mail.yahoo.com> Received: from [142.179.218.68] by web60118.mail.yahoo.com via HTTP; Tue, 06 Jun 2006 08:58:05 PDT Date: Tue, 6 Jun 2006 08:58:05 -0700 (PDT) From: Greg Handi To: xvid-devel@xvid.org MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] Naive/newbie questions 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 1) In the file interpolate8x8.c why do several methods say "if (rounding)" but then do a +1 in the "else" instead? (e.g. below) if (rounding) { for (j = 0; j < 8*stride; j+=stride) { dst[j + 0] = (uint8_t)((src[j + 0] + src[j + 1] )>>1); dst[j + 1] = (uint8_t)((src[j + 1] + src[j + 2] )>>1); dst[j + 2] = (uint8_t)((src[j + 2] + src[j + 3] )>>1); dst[j + 3] = (uint8_t)((src[j + 3] + src[j + 4] )>>1); dst[j + 4] = (uint8_t)((src[j + 4] + src[j + 5] )>>1); dst[j + 5] = (uint8_t)((src[j + 5] + src[j + 6] )>>1); dst[j + 6] = (uint8_t)((src[j + 6] + src[j + 7] )>>1); dst[j + 7] = (uint8_t)((src[j + 7] + src[j + 8] )>>1); } } else { for (j = 0; j < 8*stride; j+=stride) { dst[j + 0] = (uint8_t)((src[j + 0] + src[j + 1] + 1)>>1); dst[j + 1] = (uint8_t)((src[j + 1] + src[j + 2] + 1)>>1); dst[j + 2] = (uint8_t)((src[j + 2] + src[j + 3] + 1)>>1); dst[j + 3] = (uint8_t)((src[j + 3] + src[j + 4] + 1)>>1); dst[j + 4] = (uint8_t)((src[j + 4] + src[j + 5] + 1)>>1); dst[j + 5] = (uint8_t)((src[j + 5] + src[j + 6] + 1)>>1); dst[j + 6] = (uint8_t)((src[j + 6] + src[j + 7] + 1)>>1); dst[j + 7] = (uint8_t)((src[j + 7] + src[j + 8] + 1)>>1); } } 2) also per the interpolation routines, is there a way to get the "src" parameter to always be a four byte aligned memory address? (I realize this may not be possible/practicle given how it is derived but I thought I should ask) If it could be four byte aligned then I could make use of some very fast specialized DSP instructions I would like to port to that require 4 byte alignment to work. 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 Jun 6 21:27:04 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 B8C5B126D83 for ; Tue, 6 Jun 2006 21:27:04 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id E807616B1B4; Tue, 6 Jun 2006 21:27:28 +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 29131-07; Tue, 6 Jun 2006 21:27:28 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id CD08716B1D0; Tue, 6 Jun 2006 21:27:17 +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 6F97E16B1B8 for ; Tue, 6 Jun 2006 21:27: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 28926-10 for ; Tue, 6 Jun 2006 21:27:08 +0200 (CEST) Received: from localhost (ASte-Genev-Bois-151-1-39-149.w83-114.abo.wanadoo.fr [83.114.149.149]) by s8.lansco.de (Postfix) with ESMTP id 6A11016B1B1 for ; Tue, 6 Jun 2006 21:27:08 +0200 (CEST) Received: from massimin by localhost with local (Exim 4.60) (envelope-from ) id 1FnhB5-00071f-87 for xvid-devel@xvid.org; Tue, 06 Jun 2006 21:25:23 +0200 From: skal To: xvid-devel@xvid.org In-Reply-To: <20060606155805.70859.qmail@web60118.mail.yahoo.com> References: <20060606155805.70859.qmail@web60118.mail.yahoo.com> Date: Tue, 06 Jun 2006 21:25:22 +0200 Message-Id: <1149621922.31612.16.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] Naive/newbie questions 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, On Tue, 2006-06-06 at 08:58 -0700, Greg Handi wrote: > 1) In the file interpolate8x8.c why do several methods say "if > (rounding)" but then do a +1 in the "else" instead? (e.g. below) [...] Because the mpeg4-v2 format specified two ways of rounding ("up" and "down") interpolated samples. It's just the syntax. > 2) also per the interpolation routines, is there a way to get the "src" > parameter to always be a four byte aligned memory address? (I realize > this may not be possible/practicle given how it is derived but I > thought I should ask) Usually, the "src" reference samples can be anywhere in the picture, and in particular are not aligned at all. Now, you can do some aligned reads of more samples and shift the whole in the right place ("funnel shift"), but ... it's a patented trick: http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1=6,449,706.PN.&OS=PN/6,449,706&RS=PN/6,449,706 too bad hey? :) > If it could be four byte aligned then I could > make use of some very fast specialized DSP instructions I would like to > port to that require 4 byte alignment to work. i'm interested in looking at the result of your port, in case... bye! Skal _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Wed Jun 7 22:39:57 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 0D935126D82 for ; Wed, 7 Jun 2006 22:39:57 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 90A4F16B25C; Wed, 7 Jun 2006 22:40:19 +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 08060-08; Wed, 7 Jun 2006 22:40:19 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id E1E7716B272; Wed, 7 Jun 2006 22:40:03 +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 7D03A16B1A7 for ; Wed, 7 Jun 2006 22:39: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 07787-05 for ; Wed, 7 Jun 2006 22:39:48 +0200 (CEST) Received: from web60125.mail.yahoo.com (web60125.mail.yahoo.com [209.73.178.93]) by s8.lansco.de (Postfix) with SMTP id F2A3916894D for ; Wed, 7 Jun 2006 22:39:47 +0200 (CEST) Received: (qmail 92867 invoked by uid 60001); 7 Jun 2006 20:39:20 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.com; h=Message-ID:Received:Date:From:Subject:To:In-Reply-To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=Gua6drtmdTCzru9A1G8Qmsqtw/rS+o1MutJZxGTlJ0bRYGYSrdDk/uIATEMgk4tUIf4BfDC0/anZBZZvYZhInujZqoCrEp5FzUhO42p8hTAIRk4Szrf76BkFU0WHMq8fQMC52QH/+gRe3Yu9GOIwH5AtJFWfx3yjXd6MDj6o9Cw= ; Message-ID: <20060607203920.92865.qmail@web60125.mail.yahoo.com> Received: from [142.179.218.68] by web60125.mail.yahoo.com via HTTP; Wed, 07 Jun 2006 13:39:20 PDT Date: Wed, 7 Jun 2006 13:39:20 -0700 (PDT) From: Greg Handi To: xvid-devel@xvid.org In-Reply-To: <1149621922.31612.16.camel@localhost> MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Naive/newbie questions 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 > > 2) also per the interpolation routines, is there a way to get the > > "src" parameter to always be a four byte aligned memory address? > > (I realize this may not be possible/practicle given how it is > > derived but I thought I should ask) > > Usually, the "src" reference samples can be anywhere in the picture, > and in particular are not aligned at all. Now, you can do some > aligned reads of more samples and shift the whole in the right place > ("funnel shift"), but ... it's a patented trick: > http://patft.uspto.gov/netacgi/nph-Parser?Sect1=PTO1&Sect2=HITOFF&d=PALL&p=1&u=%2Fnetahtml%2FPTO%2Fsrchnum.htm&r=1&f=G&l=50&s1=6,449,706.PN.&OS=PN/6,449,706&RS=PN/6,449,706 > > too bad hey? :) Interesting patent; there are funnel shift op-codes on the chip I'm using so that does work but introduces 3 more operations per 4 bytes (extra read + extra average + funnel shift) but at least big-endian vs. little-endian doesn't require a byte swap. ;) I think it is still 1/3 as many instructions in the inner loop but unfortunately introduces extra branching... Thanks for answering, hopefully I can be of some use to the project some day. :) __________________________________________________ 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 Thu Jun 8 20:02:28 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 27A5E126D82 for ; Thu, 8 Jun 2006 20:02:28 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id CCE7D16C136; Thu, 8 Jun 2006 20:02:53 +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 29207-07-3; Thu, 8 Jun 2006 20:02:43 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id B909916C11C; Thu, 8 Jun 2006 20:02:42 +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 53B8516C11F for ; Thu, 8 Jun 2006 20:02:38 +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 29536-02 for ; Thu, 8 Jun 2006 20:02:27 +0200 (CEST) Received: from mail-relay-2.tiscali.it (mail-relay-2.tiscali.it [213.205.33.42]) by s8.lansco.de (Postfix) with ESMTP id 2E03E16C11B for ; Thu, 8 Jun 2006 20:02:27 +0200 (CEST) Received: from mng (84.221.22.254) by mail-relay-2.tiscali.it (7.3.104) id 443AD462007138BC for xvid-devel@xvid.org; Thu, 8 Jun 2006 20:01:59 +0200 Message-ID: <001301c68b25$aca67a00$fe16dd54@mng> From: "Giorgio Menaguale" To: References: <001201c6853c$8d042970$2802dd54@mng><1149150393.447ea4b908371@www.lansco.de><000501c685a1$ca3493b0$313cdc54@mng> <1149602064.31612.10.camel@localhost> Date: Thu, 8 Jun 2006 20:02:14 +0200 MIME-Version: 1.0 X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 6.00.2900.2869 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2869 X-Virus-Scanned: amavisd-new at lansco.de Subject: Re: [XviD-devel] Home Theatre profile hardware compatibility 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 What I have tried to do is to make the bitstream as "DivX-like" as possible. If I found that enabling only one of that feature make the bitstream play on my dvd player, will it also play on other players? Bye Giorgio _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Fri Jun 9 16:59:31 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 36EA2126D82 for ; Fri, 9 Jun 2006 16:59:31 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 78D6D16BF40; Fri, 9 Jun 2006 16:59: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 14455-06; Fri, 9 Jun 2006 16:59:54 +0200 (CEST) Received: from s8.lansco.de (localhost [127.0.0.1]) by s8.lansco.de (Postfix) with ESMTP id 6203816C2E4; Fri, 9 Jun 2006 16:59:42 +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 7F89F16BF40 for ; Fri, 9 Jun 2006 16:59: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 14455-04 for ; Fri, 9 Jun 2006 16:59:29 +0200 (CEST) Received: from smtp-out2.email.it (smtp-out2.email.it [80.247.70.7]) by s8.lansco.de (Postfix) with ESMTP id 816AA16C2E0 for ; Fri, 9 Jun 2006 16:59:29 +0200 (CEST) Received: from 81.208.83.219 (unknown [80.247.70.16]) by smtp-out2.email.it (Email.it) with ESMTP id 3430D1BC251 for ; Fri, 9 Jun 2006 16:59:04 +0200 (CEST) Received: from Email-mailer ([81.208.83.219]) by 81.208.83.219 with HTTP (Wmail); Fri, 9 Jun 2006 16:58:55 +0200 Date: Fri, 9 Jun 2006 16:58:55 +0200 To: "." From: Simonechiesa Message-ID: X-Priority: X-Mailer: Webmail-Email.it [Mailer version 1.70] X-SenderIP: 81.208.83.219 MIME-Version: 1.0 X-Virus-Scanned: amavisd-new at lansco.de Subject: [XviD-devel] ***SPAM*** xvid avc for testing X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.6 Precedence: list Reply-To: Simonechiesa , 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, my name is Simone, I'm a graduating student in Information Technologies at University of Bologna (Italy). I'm doing a research over video codecs focalized on the comparison of the performance. I wish to receive the latests beta versions of xvid and especially xvid-avc with suggestions on the parameters for a better performance on quality and speed fot testing them. If you can send me a pre-compiled version for windows xp (I'm using testing software not working in linux) and eventually, if you are working on it, a 64-bit version, I would be greatefull. Thanks to you all and good work Simone Chiesa - C.S. University of Bologna -- Email.it, the professional e-mail, gratis per te: http://www.email.it/f Sponsor: Grande Offerta di Benvenuto Cassine di Pietra: 36 bottiglie di ottimo vino veneto direttamente a casa tua! Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=3923&d=20060609 _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel