videditor/VideoEditorCommon/inc/VideoEditorCommon.h
changeset 9 d87d32eab1a9
parent 0 951a5db380a0
equal deleted inserted replaced
0:951a5db380a0 9:d87d32eab1a9
     1 /*
       
     2 * Copyright (c) 2010 Ixonos Plc.
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of the "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - Initial contribution
       
    11 *
       
    12 * Contributors:
       
    13 * Ixonos Plc
       
    14 *
       
    15 * Description: 
       
    16 *
       
    17 */
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef VIDEOEDITORCOMMON_H
       
    23 #define VIDEOEDITORCOMMON_H
       
    24 
       
    25 // INCLUDES
       
    26 // System includes
       
    27 #include <f32file.h>    // TDriveNumber
       
    28 #include <gdi.h>        // TDisplayMode
       
    29 #include "VideoEditorCommon.hrh"
       
    30 
       
    31 // TYPE DEFINITIONS
       
    32 namespace VideoEditor
       
    33 	{
       
    34 	/**
       
    35 	* Enumeration for possible cursor locations.
       
    36 	*/
       
    37 	enum TCursorLocation 
       
    38 		{
       
    39 		ECursorOnClip = 0,
       
    40 		ECursorOnTransition,
       
    41 		ECursorOnAudio,
       
    42 		ECursorOnEmptyVideoTrack,
       
    43 		ECursorOnEmptyAudioTrack
       
    44 		};
       
    45 
       
    46 	/**
       
    47 	* Enumeration for used memory locations.
       
    48 	*/
       
    49 	enum TMemory 
       
    50 		{
       
    51 		EMemAutomatic = 0,
       
    52 		EMemPhoneMemory,
       
    53 		EMemMemoryCard
       
    54 		};
       
    55 
       
    56 	/**
       
    57 	* Publish & Subscribe property keys.
       
    58 	*/
       
    59 	enum TPropertyKeys
       
    60 		{
       
    61 		EPropertyFilename   // Document file name
       
    62 		};
       
    63 	
       
    64 	
       
    65 	/**
       
    66 	* Animations for simple functions
       
    67 	*/
       
    68 	enum TSimpleFunctionAnimations
       
    69 		{
       
    70 		EAnimationMerging,
       
    71 		EAnimationChangeAudio,
       
    72 		EAnimationAddText,
       
    73 		EAnimationCut
       
    74 		};
       
    75 	}
       
    76 
       
    77 
       
    78 // CONSTANTS
       
    79 const TUid KUidVideoEditor = { 0x10208A29 };		// app. UID of the manual video editor
       
    80 const TUid KUidSimpleCutVideo = {0x200009DF};		// app. UID of the simple cut video
       
    81 const TUid KUidVideoProvider = { 0x101FFA8E };		// interface UID of the AIW provider
       
    82 const TUid KUidTrimForMms = {0x200009D};            // app. UID of the trim for mms
       
    83 const TUid KUidVideoEditorProperties = {0x03341234};// Property UID for Publish & Subscribe API. NOTE: currently unregistered UID
       
    84 
       
    85 const TInt KMmcDrive( EDriveE );    // Memory card drive number
       
    86 
       
    87 const TInt KAudioSampleInterval = 200; // Audio sample rate in audio visualization (in milliseconds)
       
    88 const TReal KVolumeMaxGain = 127; // scale is -127 - 127
       
    89 
       
    90 const TInt KMaxVideoFrameResolutionX = 640; // use VGA as maximum resolution
       
    91 const TInt KMaxVideoFrameResolutionY = 480;
       
    92 const TDisplayMode KVideoClipGenetatorDisplayMode = EColor64K;
       
    93 const TInt KMinCutVideoLength = 1000000; // in microseconds
       
    94 
       
    95 // If the number of files given to AIW provider (i.e. files selected in Gallery)
       
    96 // exceeds this number, the AIW provider does not provide menu items.
       
    97 // Otherwise the menu slows down dramatically when a very large number
       
    98 // of files is selected.
       
    99 const TInt KAiwMaxNumberOfFilesSimultaneouslyHandled = KMaxTInt;
       
   100 
       
   101 // erros codes used in simple functions "Merge", "Add text", "Change sound"
       
   102 const TInt KErrUnableToInsertVideo 			= -50000;
       
   103 const TInt KErrUnableToInsertSound 			= KErrUnableToInsertVideo - 1;
       
   104 const TInt KErrUnableToInsertImage 			= KErrUnableToInsertVideo - 2;
       
   105 const TInt KErrUnableToInsertText 			= KErrUnableToInsertVideo - 3;
       
   106 const TInt KErrUnableToMergeVideos 			= KErrUnableToInsertVideo - 4;
       
   107 const TInt KErrUnableToMergeVideoAndImage 	= KErrUnableToInsertVideo - 5;
       
   108 const TInt KErrUnableToChangeSound 			= KErrUnableToInsertVideo - 6;
       
   109 const TInt KErrVideoFormatNotSupported 		= KErrUnableToInsertVideo - 7;
       
   110 const TInt KErrAudioFormatNotSupported 		= KErrUnableToInsertVideo - 8;
       
   111 const TInt KErrImageFormatNotSupported 		= KErrUnableToInsertVideo - 9;
       
   112 const TInt KErrUnableToEditVideo 		    = KErrUnableToInsertVideo - 10;
       
   113 
       
   114 // error code(s) used in simple function cut
       
   115 const TInt KErrTooShortVideoForCut 			= -60000;
       
   116 
       
   117 // file name extensions
       
   118 _LIT (KExtMp4, ".mp4");
       
   119 _LIT (KExt3gp, ".3gp");
       
   120 _LIT (KExtAmr, ".amr");
       
   121 
       
   122 #endif      // VIDEOEDITORCOMMON_H   
       
   123             
       
   124 // End of File