Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(95)

Side by Side Diff: services/media/framework_ffmpeg/av_frame.h

Issue 1814553002: Motown: Improvements to packet definition (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Added a comment. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « services/media/framework_ffmpeg/BUILD.gn ('k') | services/media/framework_ffmpeg/av_packet.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 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
5 #ifndef SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_FRAME_H_
6 #define SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_FRAME_H_
7
8 extern "C" {
9 #include "third_party/ffmpeg/libavutil/frame.h"
10 }
11
12 namespace mojo {
13 namespace media {
14 namespace ffmpeg {
15
16 struct AVFrameDeleter {
17 inline void operator()(AVFrame* ptr) const {
18 av_frame_free(&ptr);
19 }
20 };
21
22 using AvFramePtr = std::unique_ptr<AVFrame, AVFrameDeleter>;
23
24 struct AvFrame{
25 static AvFramePtr Create() {
26 return AvFramePtr(av_frame_alloc());
27 }
28 };
29
30 } // namespace ffmpeg
31 } // namespace media
32 } // namespace mojo
33
34 #endif // SERVICES_MEDIA_FRAMEWORK_FFMPEG_AV_FRAME_H_
OLDNEW
« no previous file with comments | « services/media/framework_ffmpeg/BUILD.gn ('k') | services/media/framework_ffmpeg/av_packet.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698