netwerk/protocol/rtsp/controller/RtspMetaData.h

Fri, 16 Jan 2015 18:13:44 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Fri, 16 Jan 2015 18:13:44 +0100
branch
TOR_BUG_9701
changeset 14
925c144e1f1f
permissions
-rw-r--r--

Integrate suggestion from review to improve consistency with existing code.

     1 /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
     2 /* vim: set sw=2 ts=8 et tw=80 : */
     3 /* This Source Code Form is subject to the terms of the Mozilla Public
     4  * License, v. 2.0. If a copy of the MPL was not distributed with this
     5  * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
     7 #ifndef RtspMetaData_h
     8 #define RtspMetaData_h
    10 #include "mozilla/net/PRtspController.h"
    11 #include "nsIStreamingProtocolController.h"
    12 #include "nsCOMPtr.h"
    13 #include "nsString.h"
    15 namespace mozilla {
    16 namespace net {
    18 class RtspMetaData : public nsIStreamingProtocolMetaData
    19 {
    20  public:
    21   NS_DECL_THREADSAFE_ISUPPORTS
    22   NS_DECL_NSISTREAMINGPROTOCOLMETADATA
    24   RtspMetaData();
    25   ~RtspMetaData();
    27   nsresult DeserializeRtspMetaData(const InfallibleTArray<RtspMetadataParam>& metaArray);
    29  private:
    30   uint32_t  mFrameType;
    31   uint32_t  mIndex;
    32   uint32_t  mTotalTracks;
    33   uint32_t  mWidth;
    34   uint32_t  mHeight;
    35   uint64_t  mDuration;
    36   uint32_t  mSampleRate;
    37   uint64_t  mCurrentTimeStamp;
    38   uint32_t  mChannelCount;
    39   nsCString mMimeType;
    40   nsCString mESDS;
    41   nsCString mAVCC;
    42 };
    44 } // namespace net
    45 } // namespace mozilla
    47 #endif // RtspMetaData_h

mercurial