Message ID | 1273246144-6876-1-git-send-email-stefan.ringel@arcor.de (mailing list archive) |
---|---|
State | Superseded, archived |
Headers |
Return-path: <linux-media-owner@vger.kernel.org> Envelope-to: mchehab@infradead.org Delivery-date: Fri, 07 May 2010 15:31:09 +0000 Received: from bombadil.infradead.org [18.85.46.34] by pedra with IMAP (fetchmail-6.3.6) for <mchehab@localhost> (single-drop); Fri, 07 May 2010 12:35:13 -0300 (BRT) Received: from vger.kernel.org ([209.132.180.67]) by bombadil.infradead.org with esmtp (Exim 4.69 #1 (Red Hat Linux)) id 1OAPW9-0005BY-5J; Fri, 07 May 2010 15:31:09 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756612Ab0EGPaq (ORCPT <rfc822; kmpark@infradead.org> + 1 other); Fri, 7 May 2010 11:30:46 -0400 Received: from mail-in-04.arcor-online.net ([151.189.21.44]:41879 "EHLO mail-in-04.arcor-online.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756567Ab0EGPap (ORCPT <rfc822;linux-media@vger.kernel.org>); Fri, 7 May 2010 11:30:45 -0400 Received: from mail-in-10-z2.arcor-online.net (mail-in-10-z2.arcor-online.net [151.189.8.27]) by mx.arcor.de (Postfix) with ESMTP id 185EAAA1F6; Fri, 7 May 2010 17:30:43 +0200 (CEST) Received: from mail-in-09.arcor-online.net (mail-in-09.arcor-online.net [151.189.21.49]) by mail-in-10-z2.arcor-online.net (Postfix) with ESMTP id 025E223D8E7; Fri, 7 May 2010 17:30:42 +0200 (CEST) Received: from localhost.localdomain (dslb-188-102-101-158.pools.arcor-ip.net [188.102.101.158]) (Authenticated sender: stefan.ringel@arcor.de) by mail-in-09.arcor-online.net (Postfix) with ESMTPA id A3F1D197A70; Fri, 7 May 2010 17:30:42 +0200 (CEST) X-DKIM: Sendmail DKIM Filter v2.8.2 mail-in-09.arcor-online.net A3F1D197A70 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=arcor.de; s=mail-in; t=1273246242; bh=x4ZeDkFplbYSpWgznNaBjZXogEH9VvaYL99PmzvQ8a8=; h=From:To:Cc:Subject:Date:Message-Id; b=CTTUGHjaumAn9L8crPnOjBbxvO4EsnKBUD9a4xR1gJ+Zzd4ZErwM6O4t4cjTlTtD1 lb5E2fzdyM7Wtcwi11Q7G3KGgKhLxChv2+uMo2QFj2YYTbd2OKCue4n13sKQ2KOvNs gcwHDZxl6D+hVQbe+5wqvObjgX6uaSYW5qDKmti8= From: stefan.ringel@arcor.de To: linux-media@vger.kernel.org Cc: mchehab@redhat.com, Stefan Ringel <stefan.ringel@arcor.de> Subject: [PATCH] tm6000: bugfix image position Date: Fri, 7 May 2010 17:29:04 +0200 Message-Id: <1273246144-6876-1-git-send-email-stefan.ringel@arcor.de> X-Mailer: git-send-email 1.7.0.3 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: <linux-media.vger.kernel.org> X-Mailing-List: linux-media@vger.kernel.org |
Commit Message
Stefan Ringel
May 7, 2010, 3:29 p.m. UTC
From: Stefan Ringel <stefan.ringel@arcor.de> bugfix incorrect image and line position in videobuffer Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> --- drivers/staging/tm6000/tm6000-video.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
Comments
Am 07.05.2010 17:29, schrieb stefan.ringel@arcor.de: > From: Stefan Ringel <stefan.ringel@arcor.de> > > bugfix incorrect image and line position in videobuffer > > > Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> > --- > drivers/staging/tm6000/tm6000-video.c | 4 ++-- > 1 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c > index 9554472..f7248f0 100644 > --- a/drivers/staging/tm6000/tm6000-video.c > +++ b/drivers/staging/tm6000/tm6000-video.c > @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, > * It should, instead, check if the user selected > * entrelaced or non-entrelaced mode > */ > - pos= ((line<<1)+field)*linewidth + > - block*TM6000_URB_MSG_LEN; > + pos = ((line << 1) - field - 1) * linewidth + > + block * TM6000_URB_MSG_LEN; > > /* Don't allow to write out of the buffer */ > if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) { > http://www.stefanringel.de/pub/tm6000_image_07_05_2010.jpg
Stefan, This fix the ugly green line on the top. btw, do you notice that there seem to be black gap on the left and right of the screen? On Fri, May 7, 2010 at 11:46 PM, Stefan Ringel <stefan.ringel@arcor.de> wrote: > Am 07.05.2010 17:29, schrieb stefan.ringel@arcor.de: >> From: Stefan Ringel <stefan.ringel@arcor.de> >> >> bugfix incorrect image and line position in videobuffer >> >> >> Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> >> --- >> drivers/staging/tm6000/tm6000-video.c | 4 ++-- >> 1 files changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c >> index 9554472..f7248f0 100644 >> --- a/drivers/staging/tm6000/tm6000-video.c >> +++ b/drivers/staging/tm6000/tm6000-video.c >> @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, >> * It should, instead, check if the user selected >> * entrelaced or non-entrelaced mode >> */ >> - pos= ((line<<1)+field)*linewidth + >> - block*TM6000_URB_MSG_LEN; >> + pos = ((line << 1) - field - 1) * linewidth + >> + block * TM6000_URB_MSG_LEN; >> >> /* Don't allow to write out of the buffer */ >> if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) { >> > > > http://www.stefanringel.de/pub/tm6000_image_07_05_2010.jpg > > -- > Stefan Ringel <stefan.ringel@arcor.de> > > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
Am 07.05.2010 20:17, schrieb Bee Hock Goh: > Stefan, > > This fix the ugly green line on the top. > > btw, do you notice that there seem to be black gap on the left and > right of the screen? > Have you seen my picture? I corrected that field inverted is, ergo line 1 field 1 is line 0, line 1 field 0 is line 1, line 2 field 1 is line 2, line 2 field 0 is line 3 ... . I have not wrote from the black gap - that is video calibration! And what for ugly green line, what I have is a green code and that is normal! > On Fri, May 7, 2010 at 11:46 PM, Stefan Ringel <stefan.ringel@arcor.de> wrote: > >> Am 07.05.2010 17:29, schrieb stefan.ringel@arcor.de: >> >>> From: Stefan Ringel <stefan.ringel@arcor.de> >>> >>> bugfix incorrect image and line position in videobuffer >>> >>> >>> Signed-off-by: Stefan Ringel <stefan.ringel@arcor.de> >>> --- >>> drivers/staging/tm6000/tm6000-video.c | 4 ++-- >>> 1 files changed, 2 insertions(+), 2 deletions(-) >>> >>> diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c >>> index 9554472..f7248f0 100644 >>> --- a/drivers/staging/tm6000/tm6000-video.c >>> +++ b/drivers/staging/tm6000/tm6000-video.c >>> @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, >>> * It should, instead, check if the user selected >>> * entrelaced or non-entrelaced mode >>> */ >>> - pos= ((line<<1)+field)*linewidth + >>> - block*TM6000_URB_MSG_LEN; >>> + pos = ((line << 1) - field - 1) * linewidth + >>> + block * TM6000_URB_MSG_LEN; >>> >>> /* Don't allow to write out of the buffer */ >>> if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) { >>> >>> >> >> http://www.stefanringel.de/pub/tm6000_image_07_05_2010.jpg >> >> -- >> Stefan Ringel <stefan.ringel@arcor.de> >> >> -- >> To unsubscribe from this list: send the line "unsubscribe linux-media" in >> the body of a message to majordomo@vger.kernel.org >> More majordomo info at http://vger.kernel.org/majordomo-info.html >> >> > -- > To unsubscribe from this list: send the line "unsubscribe linux-media" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html >
diff --git a/drivers/staging/tm6000/tm6000-video.c b/drivers/staging/tm6000/tm6000-video.c index 9554472..f7248f0 100644 --- a/drivers/staging/tm6000/tm6000-video.c +++ b/drivers/staging/tm6000/tm6000-video.c @@ -223,8 +223,8 @@ static int copy_packet(struct urb *urb, u32 header, u8 **ptr, u8 *endp, * It should, instead, check if the user selected * entrelaced or non-entrelaced mode */ - pos= ((line<<1)+field)*linewidth + - block*TM6000_URB_MSG_LEN; + pos = ((line << 1) - field - 1) * linewidth + + block * TM6000_URB_MSG_LEN; /* Don't allow to write out of the buffer */ if (pos+TM6000_URB_MSG_LEN > (*buf)->vb.size) {