From patchwork Sat Jan 19 21:27:20 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sylwester Nawrocki X-Patchwork-Id: 2007341 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 4505ADF2A2 for ; Sat, 19 Jan 2013 21:27:42 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751550Ab3ASV1j (ORCPT ); Sat, 19 Jan 2013 16:27:39 -0500 Received: from mail-ee0-f42.google.com ([74.125.83.42]:40146 "EHLO mail-ee0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751531Ab3ASV1i (ORCPT ); Sat, 19 Jan 2013 16:27:38 -0500 Received: by mail-ee0-f42.google.com with SMTP id b47so2256074eek.15 for ; Sat, 19 Jan 2013 13:27:37 -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=c/YzgWBH7Cr9+xCEXkFVHtfIHqYVuW9MwqbTtlhxy+k=; b=kGYo61TJMbmJzPtbfoCZDU76MwlTwBAqwmeuzabQbvmLAwqsCE/WHxJ+59ElJBP4DD 2IGrKHLZbVL63QF1KKJdl38EGqdFRTVa8pFCPU4k9ZalUgIPanhht7WALTTVX4YVywJU k4rXJ4ob/P6aPByYG2XAZd2pzYXXzBCFExkal8XZKqD4v1MbDNUiu2NLGkhwuRht/Jh2 7TTk0cZ0OVTHwiSa/PFRs0c80D3akBDS8rQkNMppL3APwMTHaYQVm0ZOEVYFDIFkY8/d pUFhQbR+x0/bI45TXufQklacUf0D9ryt2QKI9iT896dC3rdHBRblCwFhoGb5KYSczeZo HP6w== X-Received: by 10.14.2.5 with SMTP id 5mr4538283eee.30.1358630857249; Sat, 19 Jan 2013 13:27:37 -0800 (PST) Received: from localhost.localdomain (031011138205.warszawa.vectranet.pl. [31.11.138.205]) by mx.google.com with ESMTPS id a2sm14261475eeo.1.2013.01.19.13.27.35 (version=TLSv1 cipher=RC4-SHA bits=128/128); Sat, 19 Jan 2013 13:27:36 -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 1/3] [media] Add header file defining standard image sizes Date: Sat, 19 Jan 2013 22:27:20 +0100 Message-Id: <1358630842-12689-2-git-send-email-sylvester.nawrocki@gmail.com> X-Mailer: git-send-email 1.7.4.1 In-Reply-To: <1358630842-12689-1-git-send-email-sylvester.nawrocki@gmail.com> References: <1358630842-12689-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 --- include/media/image-sizes.h | 34 ++++++++++++++++++++++++++++++++++ 1 files changed, 34 insertions(+), 0 deletions(-) create mode 100644 include/media/image-sizes.h diff --git a/include/media/image-sizes.h b/include/media/image-sizes.h new file mode 100644 index 0000000..10daf92 --- /dev/null +++ b/include/media/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 */