From xvid-devel-bounces@xvid.org Sat Oct 1 02:45:12 2005 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from edu.bnhof.de (edu.bnhof.de [213.167.167.52]) by mail.kliche.org (Postfix) with ESMTP id 08E25126D83 for ; Sat, 1 Oct 2005 02:45:12 +0200 (CEST) Received: from edu.bnhof.de (localhost [127.0.0.1]) by edu.bnhof.de (Postfix) with ESMTP id 20B4F16AFA; Sat, 1 Oct 2005 02:45:00 +0200 (CEST) X-Original-To: xvid-devel@edu.bnhof.de Delivered-To: xvid-devel@edu.bnhof.de Received: from s6.lansco.de (s6.lansco.de [213.239.218.110]) by edu.bnhof.de (Postfix) with ESMTP id E043B16AF5 for ; Sat, 1 Oct 2005 02:44:57 +0200 (CEST) Received: from smtp2.dei.uc.pt (smtp.dei.uc.pt [193.137.203.228]) by s6.lansco.de (Postfix) with ESMTP id 5314C15CEC for ; Sat, 1 Oct 2005 02:44:51 +0200 (CEST) Received: from student.dei.uc.pt (student-out.dei.uc.pt [193.137.203.247]) by smtp2.dei.uc.pt (8.13.4/8.13.4) with ESMTP id j910ito6021214 for ; Sat, 1 Oct 2005 01:44:55 +0100 Received: from student.dei.uc.pt (localhost.localdomain [127.0.0.1]) by student.dei.uc.pt (8.13.5/8.13.5) with ESMTP id j910iqMY028523 for ; Sat, 1 Oct 2005 01:44:52 +0100 Received: from localhost (pmfa@localhost) by student.dei.uc.pt (8.13.5/8.12.8/Submit) with ESMTP id j910ip3w011135 for ; Sat, 1 Oct 2005 01:44:51 +0100 Date: Sat, 1 Oct 2005 01:44:51 +0100 (WEST) From: Pedro Miguel Felizardo Antunes To: xvid-devel@xvid.org Subject: Re: [XviD-devel] xvid_decore return values In-Reply-To: <433D88A9.8000006@leoninedev.com> Message-ID: References: <433D88A9.8000006@leoninedev.com> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed X-FCTUC-DEI-SIC-MailScanner-Information: Please contact helpdesk@dei.uc.pt for more information X-FCTUC-DEI-SIC-MailScanner: Found to be clean X-FCTUC-DEI-SIC-MailScanner-SpamCheck: not spam (whitelisted), SpamAssassin (score=-4.399, required 3, autolearn=not spam, ALL_TRUSTED -1.80, BAYES_00 -2.60) X-FCTUC-DEI-SIC-MailScanner-From: pmfa@student.dei.uc.pt X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: xvid-devel.xvid.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org On Fri, 30 Sep 2005, Bryan Mayland wrote: > Pedro Miguel Felizardo Antunes wrote: > >> After some coding done, I noticed that the xvid_decore function returned >> the value -4 when using the XVID_DEC_DECODE opt. >> Does anyone know where I can find a list of return values for the function, >> or perhaps anyone can tell me what the -4 stands for? > > The return codes are in xvid.h. -4 is XVID_ERR_VERSION, in that either > the xvid_dec_frame_t.version (param1) or the xvid_dec_stats_t.version > (param2) isn't right. I believe both should be 1. Hi again After trying to solve the problem as sugested, I noticed that the -4 return comes even from an earlyer stage, when I use the xvid_global function with the xvid_glb_init struct. I try putting the version as 1, but it always returns -4 even if I leave it untouched. Here's the code i'm using: memset(&xvid_gbl_init, 0, sizeof(xvid_gbl_init_t)); memset(&xvid_dec_create, 0, sizeof(xvid_dec_create_t)); /*------------------------------------------------------------------------ * XviD core initialization *----------------------------------------------------------------------*/ /* Version */ //xvid_gbl_init.version = XVID_VERSION; xvid_gbl_init.version = 1; //CPU_FLAGS //xvid_gbl_init.cpu_flags = 0; //DEBUG_LEVEL //xvid_gbl_init.debug = debug_level; // !!!BUG!!! ret = xvid_global(NULL, 0, &xvid_gbl_init, NULL); printf("XVID_INIT RETURN: %i\n",ret); _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel From xvid-devel-bounces@xvid.org Sun Oct 23 23:53:43 2005 Return-Path: X-Original-To: itdp@fh-biergarten.de Delivered-To: itdp@localhost Received: from edu.bnhof.de (edu.bnhof.de [213.167.167.52]) by mail.kliche.org (Postfix) with ESMTP id 5C5EF126D82 for ; Sun, 23 Oct 2005 23:53:43 +0200 (CEST) Received: from edu.bnhof.de (localhost [127.0.0.1]) by edu.bnhof.de (Postfix) with ESMTP id DBEDE13E54; Sun, 23 Oct 2005 23:53:29 +0200 (CEST) X-Original-To: xvid-devel@edu.bnhof.de Delivered-To: xvid-devel@edu.bnhof.de Received: from s6.lansco.de (s6.lansco.de [213.239.218.110]) by edu.bnhof.de (Postfix) with ESMTP id 591FEDFC5 for ; Sun, 23 Oct 2005 23:53:26 +0200 (CEST) Received: from cytosin.uni-konstanz.de (cytosin.uni-konstanz.de [134.34.240.61]) by s6.lansco.de (Postfix) with ESMTP id CE6C715E70 for ; Sun, 23 Oct 2005 23:53:24 +0200 (CEST) Received: from [217.185.22.188] (kons-d9b916bc.pool.mediaWays.net [217.185.22.188]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by cytosin.uni-konstanz.de (Postfix) with ESMTP id 3CAA6AC8 for ; Sun, 23 Oct 2005 23:53:21 +0200 (CEST) Message-ID: <435C0647.5090205@uni-konstanz.de> Date: Sun, 23 Oct 2005 23:53:11 +0200 From: Johannes Reinhardt User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 To: "xvid-devel@xvid.org" Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [XviD-devel] Lambda for plugins X-BeenThere: xvid-devel@xvid.org X-Mailman-Version: 2.1.4 Precedence: list Reply-To: xvid-devel@xvid.org List-Id: xvid-devel.xvid.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: xvid-devel-bounces@xvid.org Errors-To: xvid-devel-bounces@xvid.org Hi everybody, I tried to expose the lambda values for macroblocks to plugins, to be able to do some HVS stuff. It seems to compile fine and not bork anything here. I am at the moment not able to test it more careful. The patch is against the latest CVS. http://web3.gleitz.org/Kopernikus/lambdaplugin.diff But for now, I have not tried to code a plugin that uses the lambda values. Can someone with a better knowledge of the XviD Code look through it, if I have borked some really important things, propose improvements or correct me if my style is bad. I have some questions on the code: Why is dquant_stride in xvid_plg_data_t in xvid.h needed? Is it possible that its different from mb_width? I assumed that the lambda[6] in SearchData in estimation.h is the lambda for the 6 blocks of a macroblock (4 Luminance and 2 Chrominance blocks). Is that correct? In xvid_plg_data_t there is a remark that deprecated data is kept for binary compatibility. Does it break binary compatibility if I add the pointer to the lambda table to xvid_plg_data? Would it make sense, to replace one of the deprecated ints with the pointer to keep compatibility? Does it make sense, to multiplicate the lambda in dct_quantize_trellis_c in mbtransquant.c with the lambda modificator? I am not sure I understood trellis completly. Is there any further information about trellis quantization? Why are the dquants available for plugins at PLUGIN_AFTER? Is that needed for the lambdas? And finally, is there a draft of the specs or something similar available for download. I would like to have precise Information on some things. Thanks in advance Johannes Reinhardt _______________________________________________ XviD-devel mailing list XviD-devel@xvid.org http://list.xvid.org/mailman/listinfo/xvid-devel