diff options
Diffstat (limited to 'accel')
-rw-r--r-- | accel/Android.bp | 2 | ||||
-rw-r--r-- | accel/video_decode_accelerator.cc | 18 | ||||
-rw-r--r-- | accel/video_decode_accelerator.h | 39 | ||||
-rw-r--r-- | accel/video_encode_accelerator.cc | 28 | ||||
-rw-r--r-- | accel/video_encode_accelerator.h | 48 |
5 files changed, 0 insertions, 135 deletions
diff --git a/accel/Android.bp b/accel/Android.bp index 46e77a0..7739f20 100644 --- a/accel/Android.bp +++ b/accel/Android.bp @@ -15,8 +15,6 @@ cc_library { "color_plane_layout.cc", "fourcc.cc", "video_codecs.cc", - "video_decode_accelerator.cc", - "video_encode_accelerator.cc", "video_frame.cc", "video_frame_layout.cc", "video_pixel_format.cc", diff --git a/accel/video_decode_accelerator.cc b/accel/video_decode_accelerator.cc deleted file mode 100644 index 9e18206..0000000 --- a/accel/video_decode_accelerator.cc +++ /dev/null @@ -1,18 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// Note: ported from Chromium commit head: 85fdf90 - -#include "base/logging.h" - -#include "video_decode_accelerator.h" - -namespace media { - -VideoDecodeAccelerator::SupportedProfile::SupportedProfile() - : profile(VIDEO_CODEC_PROFILE_UNKNOWN), encrypted_only(false) {} - -VideoDecodeAccelerator::SupportedProfile::~SupportedProfile() = default; - -} // namespace media - diff --git a/accel/video_decode_accelerator.h b/accel/video_decode_accelerator.h deleted file mode 100644 index 6a6020f..0000000 --- a/accel/video_decode_accelerator.h +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) 2012 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// Note: ported from Chromium commit head: 85fdf90 - -#ifndef VIDEO_DECODE_ACCELERATOR_H_ -#define VIDEO_DECODE_ACCELERATOR_H_ - -#include <vector> - -#include "base/memory/ref_counted.h" -#include "base/memory/weak_ptr.h" - -#include "size.h" -#include "video_codecs.h" - -namespace media { - -// Video decoder interface. -// This interface is extended by the various components that ultimately -// implement the backend of PPB_VideoDecoder_Dev. -class VideoDecodeAccelerator { - public: - // Specification of a decoding profile supported by an decoder. - // |max_resolution| and |min_resolution| are inclusive. - struct SupportedProfile { - SupportedProfile(); - ~SupportedProfile(); - VideoCodecProfile profile; - Size max_resolution; - Size min_resolution; - bool encrypted_only; - }; - using SupportedProfiles = std::vector<SupportedProfile>; -}; - -} // namespace media - -#endif // VIDEO_DECODE_ACCELERATOR_H_ diff --git a/accel/video_encode_accelerator.cc b/accel/video_encode_accelerator.cc deleted file mode 100644 index 351af8d..0000000 --- a/accel/video_encode_accelerator.cc +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// Note: ported from Chromium commit head: 9e40822e3a3d -// Note: only necessary functions are ported. - -#include "video_encode_accelerator.h" - -namespace media { - -VideoEncodeAccelerator::SupportedProfile::SupportedProfile() - : profile(media::VIDEO_CODEC_PROFILE_UNKNOWN), - max_framerate_numerator(0), - max_framerate_denominator(0) {} - -VideoEncodeAccelerator::SupportedProfile::SupportedProfile( - VideoCodecProfile profile, - const Size& max_resolution, - uint32_t max_framerate_numerator, - uint32_t max_framerate_denominator) - : profile(profile), - max_resolution(max_resolution), - max_framerate_numerator(max_framerate_numerator), - max_framerate_denominator(max_framerate_denominator) {} - -VideoEncodeAccelerator::SupportedProfile::~SupportedProfile() = default; - -} // namespace media diff --git a/accel/video_encode_accelerator.h b/accel/video_encode_accelerator.h deleted file mode 100644 index a47f59b..0000000 --- a/accel/video_encode_accelerator.h +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright 2013 The Chromium Authors. All rights reserved. -// Use of this source code is governed by a BSD-style license that can be -// found in the LICENSE file. -// Note: ported from Chromium commit head: 9e40822e3a3d -// Note: only necessary functions are ported. - -#ifndef MEDIA_VIDEO_VIDEO_ENCODE_ACCELERATOR_H_ -#define MEDIA_VIDEO_VIDEO_ENCODE_ACCELERATOR_H_ - -#include <stddef.h> -#include <stdint.h> - -#include <memory> -#include <vector> - -#include "base/macros.h" -#include "base/optional.h" -#include "base/time/time.h" - -#include "size.h" -#include "video_codecs.h" - -namespace media { - -// Video encoder interface. -class VideoEncodeAccelerator { - public: - // Specification of an encoding profile supported by an encoder. - struct SupportedProfile { - SupportedProfile(); - SupportedProfile(VideoCodecProfile profile, - const Size& max_resolution, - uint32_t max_framerate_numerator = 0u, - uint32_t max_framerate_denominator = 1u); - ~SupportedProfile(); - - VideoCodecProfile profile; - Size min_resolution; - Size max_resolution; - uint32_t max_framerate_numerator; - uint32_t max_framerate_denominator; - }; - using SupportedProfiles = std::vector<SupportedProfile>; -}; - -} // namespace media - -#endif // MEDIA_VIDEO_VIDEO_ENCODE_ACCELERATOR_H_ |