media/gmp-clearkey/0.1/AnnexB.h
author Mike de Boer <mdeboer@mozilla.com>
Fri, 10 Apr 2015 13:23:14 +0200
changeset 267072 719d7e41abeac7fee33b6d7ab4676ed6b537c3af
parent 255902 a483e217bbaafadaeab88b9a28ee3921ac3b6014
child 269239 38f4f036b6119f8c3d00480426c505fb07a80306
permissions -rw-r--r--
Bug 1132301 - Part 5: Add unit tests for the Social Sharing feature of Loop. r=Standard8, a=lizzard

/* This Source Code Form is subject to the terms of the Mozilla Public
 * License, v. 2.0. If a copy of the MPL was not distributed with this
 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef __AnnexB_h__
#define __AnnexB_h__

#include <cstdint>
#include <vector>

class AnnexB
{
public:
  static void ConvertFrameInPlace(std::vector<uint8_t>& aBuffer);

  static void ConvertConfig(const std::vector<uint8_t>& aBuffer,
                            std::vector<uint8_t>& aOutAnnexB);
};

#endif // __AnnexB_h__