camerauis/cameraxui/cxengine/inc/api/cxequalitydetails.h
branchRCL_3
changeset 54 bac7acad7cb3
parent 53 61bc0f252b2b
child 57 2c87b2808fd7
equal deleted inserted replaced
53:61bc0f252b2b 54:bac7acad7cb3
     1 /*
       
     2 * Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "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 *
       
    14 * Description:
       
    15 *
       
    16 */
       
    17 #ifndef CXEQUALITYDETAILS_H
       
    18 #define CXEQUALITYDETAILS_H
       
    19 
       
    20 #include "cxenamespace.h"
       
    21 
       
    22 
       
    23 /*!
       
    24 * data structure that holds ALL details of Image.
       
    25 */
       
    26 struct CxeImageDetails
       
    27 {
       
    28     static const int UNKNOWN = -1;
       
    29 
       
    30     int mWidth;
       
    31     int mHeight;
       
    32     int mEstimatedSize; // size in bytes
       
    33     QString mMpxCount; // mega pixel count
       
    34     int mPossibleImages; // no of images that can be taken, with current resolution
       
    35     QString mImageFileExtension;
       
    36     Cxe::AspectRatio mAspectRatio;
       
    37     // for sorting list of CxeImageDetails.
       
    38     bool operator<(const CxeImageDetails &s1) const;
       
    39 };
       
    40 
       
    41 
       
    42 /*!
       
    43 data structure that holds ALL details of Video.
       
    44 */
       
    45 struct CxeVideoDetails
       
    46 {
       
    47     static const int UNKNOWN = -1;
       
    48 
       
    49     int mWidth;
       
    50     int mHeight;
       
    51     int mRemainingTime;
       
    52     int mMaximumSizeInBytes; // zero means no limit
       
    53     int mAudioBitRate;
       
    54     int mVideoBitRate;
       
    55     qreal mVideoFrameRate;
       
    56     QString mAudioType;
       
    57     QString mVideoFileMimeType;
       
    58     QString mPreferredSupplier;
       
    59     QString mVideoCodecMimeType;
       
    60     Cxe::AspectRatio mAspectRatio;
       
    61 
       
    62     // for sorting list of CxeVideoDetails.
       
    63     bool operator<(const CxeVideoDetails &s1) const;
       
    64 };
       
    65 
       
    66 
       
    67 #endif  // CXEQUALITYDETAILS_H