• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright (c) 2011 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 // Note: ported from Chromium commit head: 9e40822e3a3d
5 // Note: only necessary functions are ported.
6 
7 #include "video_encode_accelerator.h"
8 
9 namespace media {
10 
Vp8Metadata()11 Vp8Metadata::Vp8Metadata()
12     : non_reference(false), temporal_idx(0), layer_sync(false) {}
13 Vp8Metadata::Vp8Metadata(const Vp8Metadata& other) = default;
14 Vp8Metadata::Vp8Metadata(Vp8Metadata&& other) = default;
15 Vp8Metadata::~Vp8Metadata() = default;
16 
BitstreamBufferMetadata()17 BitstreamBufferMetadata::BitstreamBufferMetadata()
18     : payload_size_bytes(0), key_frame(false) {}
19 BitstreamBufferMetadata::BitstreamBufferMetadata(
20     BitstreamBufferMetadata&& other) = default;
BitstreamBufferMetadata(size_t payload_size_bytes,bool key_frame,base::TimeDelta timestamp)21 BitstreamBufferMetadata::BitstreamBufferMetadata(size_t payload_size_bytes,
22                                                  bool key_frame,
23                                                  base::TimeDelta timestamp)
24     : payload_size_bytes(payload_size_bytes),
25       key_frame(key_frame),
26       timestamp(timestamp) {}
27 BitstreamBufferMetadata::~BitstreamBufferMetadata() = default;
28 
SupportedProfile()29 VideoEncodeAccelerator::SupportedProfile::SupportedProfile()
30     : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN),
31       max_framerate_numerator(0),
32       max_framerate_denominator(0) {}
33 
SupportedProfile(VideoCodecProfile profile,const Size & max_resolution,uint32_t max_framerate_numerator,uint32_t max_framerate_denominator)34 VideoEncodeAccelerator::SupportedProfile::SupportedProfile(
35     VideoCodecProfile profile,
36     const Size& max_resolution,
37     uint32_t max_framerate_numerator,
38     uint32_t max_framerate_denominator)
39     : profile(profile),
40       max_resolution(max_resolution),
41       max_framerate_numerator(max_framerate_numerator),
42       max_framerate_denominator(max_framerate_denominator) {}
43 
44 VideoEncodeAccelerator::SupportedProfile::~SupportedProfile() = default;
45 
46 }  // namespace media
47