os/mm/mmlibs/mmfw/inc/Mda/Common/Video.h
changeset 0 bde4ae8d615e
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/os/mm/mmlibs/mmfw/inc/Mda/Common/Video.h	Fri Jun 15 03:10:57 2012 +0200
     1.3 @@ -0,0 +1,421 @@
     1.4 +// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
     1.5 +// All rights reserved.
     1.6 +// This component and the accompanying materials are made available
     1.7 +// under the terms of "Eclipse Public License v1.0"
     1.8 +// which accompanies this distribution, and is available
     1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
    1.10 +//
    1.11 +// Initial Contributors:
    1.12 +// Nokia Corporation - initial contribution.
    1.13 +//
    1.14 +// Contributors:
    1.15 +//
    1.16 +// Description:
    1.17 +// Mda\Common\Video.h
    1.18 +// This version forms part of the backwards compatible ImageConversion routines
    1.19 +// 
    1.20 +//
    1.21 +
    1.22 +#ifndef __MDA_COMMON_VIDEO_H__
    1.23 +#define __MDA_COMMON_VIDEO_H__
    1.24 +
    1.25 +#include <gdi.h>
    1.26 +#include <mda/common/resource.h>
    1.27 +#include <mda/common/video.hrh>
    1.28 +
    1.29 +// Video data type Uid
    1.30 +
    1.31 +MDA_UID(KUidMdaMediaTypeVideo)
    1.32 +MDA_UID(KUidMdaVideoFrameSettings)
    1.33 +MDA_UID(KUidMdaVideoCurrentFrame)
    1.34 +MDA_UID(KUidMdaDstPortSourceRect)
    1.35 +MDA_UID(KUidMdaMbmClipFormat)
    1.36 +MDA_UID(KUidMdaMbmCodec)
    1.37 +MDA_UID(KUidMdaBmpClipFormat)
    1.38 +MDA_UID(KUidMdaBmpCodec)
    1.39 +MDA_UID(KUidMda1BppBmpCodec)
    1.40 +MDA_UID(KUidMda4BppBmpCodec)
    1.41 +MDA_UID(KUidMda8BppBmpCodec)
    1.42 +MDA_UID(KUidMda24BppBmpCodec)
    1.43 +MDA_UID(KUidMdaFbsBitmapDevice)
    1.44 +MDA_UID(KUidMdaFbsBitmapHandle)
    1.45 +MDA_UID(KUidMdaFbsBitmapMaskHandle)
    1.46 +MDA_UID(KUidMdaJfifClipFormat)
    1.47 +MDA_UID(KUidMdaJpgCodec)
    1.48 +MDA_UID(KUidMdaJpgQTable)
    1.49 +MDA_UID(KUidMdaJpgComment)
    1.50 +MDA_UID(KUidMdaWbmpClipFormat)
    1.51 +MDA_UID(KUidMdaWbmpCodec)
    1.52 +MDA_UID(KUidMdaOtaClipFormat)
    1.53 +MDA_UID(KUidMdaOtaCodec)
    1.54 +MDA_UID(KUidMdaPngClipFormat)
    1.55 +MDA_UID(KUidMdaPngCodec)
    1.56 +MDA_UID(KUidMdaWmfClipFormat)
    1.57 +MDA_UID(KUidMdaWmfApmClipFormat)
    1.58 +MDA_UID(KUidMdaWmfClpClipFormat)
    1.59 +MDA_UID(KUidMdaWmfCodec)
    1.60 +MDA_UID(KUidMdaTiffLittleEndianClipFormat)
    1.61 +MDA_UID(KUidMdaTiffBigEndianClipFormat)
    1.62 +MDA_UID(KUidMdaTiffCodec)
    1.63 +MDA_UID(KUidMdaIcoClipFormat)
    1.64 +MDA_UID(KUidMdaIcoCodec)
    1.65 +MDA_UID(KUidMdaGif87aClipFormat)
    1.66 +MDA_UID(KUidMdaGif89aClipFormat)
    1.67 +MDA_UID(KUidMdaGifCodec)
    1.68 +
    1.69 +
    1.70 +/**
    1.71 +@publishedAll
    1.72 +@released
    1.73 +
    1.74 +Video buffer settings. May be combined.
    1.75 +*/
    1.76 +enum TMdaVideoBufferSettings
    1.77 +	{
    1.78 +	/** Can only handle buffers whilst playing
    1.79 +	*/
    1.80 +	EMdaVideoBufferAtPlay =		0x0000000,
    1.81 +	/** Can handle buffers when primed
    1.82 +	*/
    1.83 +	EMdaVideoBufferAtPrime =	0x0000001,
    1.84 +	/** Must have two buffers for uninterrupted play
    1.85 +	*/
    1.86 +	EMdaVideoBufferDouble =		0x0000002,
    1.87 +	/** Will supply buffers for efficiency
    1.88 +	*/
    1.89 +	EMdaVideoBufferSupply =		0x0000004
    1.90 +	};
    1.91 +
    1.92 +
    1.93 +/**
    1.94 + * @publishedAll
    1.95 + * @deprecated
    1.96 + *
    1.97 + * Bmp Clip Format
    1.98 + */
    1.99 +class TMdaBmpClipFormat : public TMdaClipFormat
   1.100 +	{
   1.101 +public:
   1.102 +	inline TMdaBmpClipFormat();
   1.103 +	};
   1.104 +
   1.105 +
   1.106 +/**
   1.107 + * @publishedAll
   1.108 + * @deprecated
   1.109 + *
   1.110 + * 1 Bpp Bmp Codec
   1.111 + */
   1.112 +class TMda1BppBmpCodec : public TMdaPackage
   1.113 +	{
   1.114 +public:
   1.115 +	inline TMda1BppBmpCodec();
   1.116 +	};
   1.117 +
   1.118 +
   1.119 +/**
   1.120 + * @publishedAll
   1.121 + * @deprecated
   1.122 + *
   1.123 + * 4 Bpp Bmp Codec
   1.124 + */
   1.125 +class TMda4BppBmpCodec : public TMdaPackage
   1.126 +	{
   1.127 +public:
   1.128 +	inline TMda4BppBmpCodec();
   1.129 +	};
   1.130 +
   1.131 +
   1.132 +/**
   1.133 + * @publishedAll
   1.134 + * @deprecated
   1.135 + *
   1.136 + * 8 Bpp Bmp Codec
   1.137 + */
   1.138 +class TMda8BppBmpCodec : public TMdaPackage
   1.139 +	{
   1.140 +public:
   1.141 +	inline TMda8BppBmpCodec();
   1.142 +	};
   1.143 +
   1.144 +
   1.145 +/**
   1.146 + * @publishedAll
   1.147 + * @deprecated
   1.148 + *
   1.149 + * 24 Bpp Bmp Codec
   1.150 + */
   1.151 +class TMda24BppBmpCodec : public TMdaPackage
   1.152 +	{
   1.153 +public:
   1.154 +	inline TMda24BppBmpCodec();
   1.155 +	};
   1.156 +
   1.157 +
   1.158 +/**
   1.159 + * @publishedAll 
   1.160 + * @deprecated
   1.161 + *
   1.162 + * Jpeg settings
   1.163 + */
   1.164 +class TMdaJpgSettings
   1.165 +	{
   1.166 +public:
   1.167 +	inline TMdaJpgSettings(); // Defaults to EColor420 and 50
   1.168 +public:
   1.169 +	enum TColorSampling
   1.170 +		{
   1.171 +		EMonochrome,
   1.172 +		EColor420,
   1.173 +		EColor422,
   1.174 +		EColor444
   1.175 +		};
   1.176 +public:
   1.177 +	TColorSampling iSampleScheme;
   1.178 +	TInt iQualityFactor; // 0 to 100 inclusive
   1.179 +	};
   1.180 +
   1.181 +
   1.182 +/**
   1.183 + * @publishedAll 
   1.184 + * @deprecated
   1.185 + *
   1.186 + * Jfif Clip Format
   1.187 + */
   1.188 +class TMdaJfifClipFormat : public TMdaClipFormat
   1.189 +	{
   1.190 +public:
   1.191 +	inline TMdaJfifClipFormat();
   1.192 +public:
   1.193 +	TMdaJpgSettings iSettings;
   1.194 +	};
   1.195 +
   1.196 +
   1.197 +/** @publishedAll */
   1.198 +const TInt KMdaJpgQTableEntries = 64;
   1.199 +
   1.200 +class TMdaJpgQTable : public TMdaPackage
   1.201 +/**
   1.202 + * @publishedAll
   1.203 + * @deprecated
   1.204 + *
   1.205 + * Jpeg Quantization table - in direct format
   1.206 + */
   1.207 +	{
   1.208 +public:
   1.209 +	inline TMdaJpgQTable();
   1.210 +public:
   1.211 +	enum TQTableIndex { ELumaTable = 0, EChromaTable = 1 };
   1.212 +public:
   1.213 +	TInt iTableIndex;
   1.214 +	TBuf8<KMdaJpgQTableEntries> iEntries;
   1.215 +	};
   1.216 +
   1.217 +
   1.218 +/** @deprecated */
   1.219 +const TInt KJpgCommentBufferSize = 256;
   1.220 +/**
   1.221 + * @publishedAll  
   1.222 + * @deprecated
   1.223 + *
   1.224 + * Jpeg comment
   1.225 + */
   1.226 +class TMdaJpgComment : public TMdaPackage
   1.227 +	{
   1.228 +public:
   1.229 +	inline TMdaJpgComment();
   1.230 +public:
   1.231 +	TInt iCommentIndex; // Comment block to set/query
   1.232 +	TInt iCommentBufferIndex; // Index of KJpgCommentBufferSize block within comment to set/query
   1.233 +	TInt iTotalCommentLength; // Total size of comment being queried
   1.234 +	TBuf8<KJpgCommentBufferSize> iComment; // Comment to set/query
   1.235 +	};
   1.236 +
   1.237 +
   1.238 +/**
   1.239 + * @publishedAll 
   1.240 + * @deprecated
   1.241 + *
   1.242 + * Mbm Clip Format
   1.243 + */
   1.244 +class TMdaMbmClipFormat : public TMdaClipFormat
   1.245 +	{
   1.246 +public:
   1.247 +	inline TMdaMbmClipFormat();
   1.248 +public:
   1.249 +	TDisplayMode iDisplayMode;
   1.250 +	};
   1.251 +
   1.252 +
   1.253 +/**
   1.254 + * @publishedAll 
   1.255 + * @deprecated
   1.256 + *
   1.257 + * Wbmp Clip Format
   1.258 + */
   1.259 +class TMdaWbmpClipFormat : public TMdaClipFormat
   1.260 +	{
   1.261 +public:
   1.262 +	inline TMdaWbmpClipFormat();
   1.263 +	};
   1.264 +
   1.265 +
   1.266 +/**
   1.267 + * @publishedAll 
   1.268 + * @deprecated
   1.269 + *
   1.270 + * Wbmp Codec
   1.271 + */
   1.272 +class TMdaWbmpCodec : public TMdaPackage
   1.273 +	{
   1.274 +public:
   1.275 +	inline TMdaWbmpCodec();
   1.276 +	};
   1.277 +
   1.278 +
   1.279 +/**
   1.280 + * @publishedAll 
   1.281 + * @deprecated
   1.282 + *
   1.283 + * Ota Clip Format
   1.284 + */
   1.285 +class TMdaOtaClipFormat : public TMdaClipFormat
   1.286 +	{
   1.287 +public:
   1.288 +	inline TMdaOtaClipFormat();
   1.289 +	};
   1.290 +
   1.291 +
   1.292 +/**
   1.293 + * @publishedAll 
   1.294 + * @deprecated
   1.295 + *
   1.296 + * Ota Codec
   1.297 + */
   1.298 +class TMdaOtaCodec : public TMdaPackage
   1.299 +	{
   1.300 +public:
   1.301 +	inline TMdaOtaCodec();
   1.302 +	};
   1.303 +
   1.304 +
   1.305 +/**
   1.306 + * @publishedAll 
   1.307 + * @deprecated
   1.308 + *
   1.309 + * Png Clip Format
   1.310 + */
   1.311 +class TMdaPngClipFormat : public TMdaClipFormat
   1.312 +	{
   1.313 +public:
   1.314 +	inline TMdaPngClipFormat();
   1.315 +	};
   1.316 +
   1.317 +
   1.318 +/**
   1.319 + * @publishedAll 
   1.320 + * @deprecated
   1.321 + *
   1.322 + * Png Codec
   1.323 + */
   1.324 +class TMdaPngCodec : public TMdaPackage
   1.325 +	{
   1.326 +public:
   1.327 +	inline TMdaPngCodec();
   1.328 +	};
   1.329 +
   1.330 +
   1.331 +/**
   1.332 + * @publishedAll 
   1.333 + * @deprecated
   1.334 + *
   1.335 + * Wmf Clip Format
   1.336 + */
   1.337 +class TMdaWmfClipFormat : public TMdaClipFormat
   1.338 +	{
   1.339 +public:
   1.340 +	inline TMdaWmfClipFormat();
   1.341 +	};
   1.342 +
   1.343 +
   1.344 +/**
   1.345 + * @publishedAll 
   1.346 + * @deprecated
   1.347 + *
   1.348 + * Wmf Apm Clip Format
   1.349 + */
   1.350 +class TMdaWmfApmClipFormat : public TMdaClipFormat
   1.351 +	{
   1.352 +public:
   1.353 +	inline TMdaWmfApmClipFormat();
   1.354 +	};
   1.355 +
   1.356 +
   1.357 +/**
   1.358 + * @publishedAll 
   1.359 + * @deprecated
   1.360 + *
   1.361 + * Wmf Clp Clip Format
   1.362 + */
   1.363 +class TMdaWmfClpClipFormat : public TMdaClipFormat
   1.364 +	{
   1.365 +public:
   1.366 +	inline TMdaWmfClpClipFormat();
   1.367 +	};
   1.368 +
   1.369 +
   1.370 +/**
   1.371 + * @publishedAll 
   1.372 + * @deprecated
   1.373 + *
   1.374 + * Wmf Codec
   1.375 + */
   1.376 +class TMdaWmfCodec : public TMdaPackage
   1.377 +	{
   1.378 +public:
   1.379 +	inline TMdaWmfCodec();
   1.380 +	};
   1.381 +
   1.382 +
   1.383 +/**
   1.384 + * @publishedAll 
   1.385 + * @deprecated
   1.386 + *
   1.387 + * Gif87a Clip Format
   1.388 + */
   1.389 +class TMdaGif87aClipFormat : public TMdaClipFormat
   1.390 +	{
   1.391 +public:
   1.392 +	inline TMdaGif87aClipFormat();
   1.393 +	};
   1.394 +
   1.395 +
   1.396 +/**
   1.397 + * @publishedAll 
   1.398 + * @deprecated
   1.399 + *
   1.400 + * Gif89a Clip Format (Animated)
   1.401 + */
   1.402 +class TMdaGif89aClipFormat : public TMdaClipFormat
   1.403 +	{
   1.404 +public:
   1.405 +	inline TMdaGif89aClipFormat();
   1.406 +	};
   1.407 +
   1.408 +
   1.409 +/**
   1.410 + * @publishedAll 
   1.411 + * @deprecated
   1.412 + *
   1.413 + * Gif Codec
   1.414 + */
   1.415 +class TMdaGifCodec : public TMdaPackage
   1.416 +	{
   1.417 +public:
   1.418 +	inline TMdaGifCodec();
   1.419 +	};
   1.420 +
   1.421 +#include <mda/common/video.inl>
   1.422 +
   1.423 +#endif
   1.424 +