From patchwork Wed Jan 23 22:21:56 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2026991 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id EAEA2DF23E for ; Wed, 23 Jan 2013 22:22:17 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752154Ab3AWWWP (ORCPT ); Wed, 23 Jan 2013 17:22:15 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:62661 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750899Ab3AWWWO (ORCPT ); Wed, 23 Jan 2013 17:22:14 -0500 Received: by mail-ee0-f46.google.com with SMTP id e49so4217060eek.5 for ; Wed, 23 Jan 2013 14:22:13 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=wyzWWfrDyIrgrR+9mGh6f0t557sHpyv2McYElm1IPFE=; b=ceH7ROKhF3yNfwptERJUhMSPLo0R++p6Ayr6sew8pJQOreo7yc50GMT2t3/OTZ/uJh 32ZxQ51PQ7XZhPfJXeL+MKGHw2sIIdvROczBfGwKKUnmSpVVQ1t9bf4++mgU5DuQZJbd kBw/Y5bwOnTQ1tEWu+DRBQP8Ka3rIYIyucpPI1pRVaxLk+er1gz9VeAD8O/1ENPS2x53 clVS7HjJ3IFUZom3xNC8E4P0M0ofOTBqeiHptX4sGPQctUVG5xBbqQXt/zK6G71EjiW/ mdTCVba2KzQr5u56fsZIlIouaDxigDetYwSg2VMCbm16YiNXLmlpJfEupin5H1j4Nuvg 5JdA== X-Received: by 10.14.215.6 with SMTP id d6mr8298824eep.40.1358979733424; Wed, 23 Jan 2013 14:22:13 -0800 (PST) Received: from localhost.localdomain (031011138205.warszawa.vectranet.pl. [31.11.138.205]) by mx.google.com with ESMTPS id f49sm32606042eep.12.2013.01.23.14.22.11 (version=TLSv1 cipher=RC4-SHA bits=128/128); Wed, 23 Jan 2013 14:22:12 -0800 (PST) From: Sylwester Nawrocki To: linux-media@vger.kernel.org Cc: hverkuil@xs4all.nl, laurent.pinchart@ideasonboard.com, sylvester.nawrocki@gmail.com Subject: [PATCH RFC v3 1/6] [media] Add header file defining standard image sizes Date: Wed, 23 Jan 2013 23:21:56 +0100 Message-Id: <1358979721-17473-2-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1358979721-17473-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1358979721-17473-1-git-send-email-sylvester.nawrocki@gmail.com> Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org Add common header file defining standard image sizes, so we can avoid redefining those in each driver. Signed-off-by: Sylwester Nawrocki --- Changes since v2: - the file rename image-sizes.h -> v4l2-image-sizes.h --- include/media/v4l2-image-sizes.h | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 include/media/v4l2-image-sizes.h diff --git a/include/media/v4l2-image-sizes.h b/include/media/v4l2-image-sizes.h new file mode 100644 index 0000000..10daf92 --- /dev/null +++ b/include/media/v4l2-image-sizes.h @@ -0,0 +1,34 @@ +/* + * Standard image size definitions + * + * Copyright (C) 2013, Sylwester Nawrocki + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License version 2 as + * published by the Free Software Foundation. + */ +#ifndef _IMAGE_SIZES_H +#define _IMAGE_SIZES_H + +#define CIF_WIDTH 352 +#define CIF_HEIGHT 288 + +#define QCIF_WIDTH 176 +#define QCIF_HEIGHT 144 + +#define QQCIF_WIDTH 88 +#define QQCIF_HEIGHT 72 + +#define QQVGA_WIDTH 160 +#define QQVGA_HEIGHT 120 + +#define QVGA_WIDTH 320 +#define QVGA_HEIGHT 240 + +#define SXGA_WIDTH 1280 +#define SXGA_HEIGHT 1024 + +#define VGA_WIDTH 640 +#define VGA_HEIGHT 480 + +#endif /* _IMAGE_SIZES_H */