scoped_vpx_codec.h 574 B

123456789101112131415161718192021222324
  1. // Copyright 2013 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef REMOTING_CODEC_SCOPED_VPX_CODEC_H_
  5. #define REMOTING_CODEC_SCOPED_VPX_CODEC_H_
  6. #include <memory>
  7. extern "C" {
  8. typedef struct vpx_codec_ctx vpx_codec_ctx_t;
  9. }
  10. namespace remoting {
  11. struct VpxCodecDeleter {
  12. void operator()(vpx_codec_ctx_t* codec);
  13. };
  14. typedef std::unique_ptr<vpx_codec_ctx_t, VpxCodecDeleter> ScopedVpxCodec;
  15. } // namespace remoting
  16. #endif // REMOTING_CODEC_SCOPED_VPX_CODEC_H_