blob: 12850780cc3dd7b6e1476b945b0f9d2fe6873dc9 [file] [log] [blame]
// 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.
#include "media/video/video_encode_accelerator.h"
#include "base/callback.h"
namespace media {
VideoEncodeAccelerator::~VideoEncodeAccelerator() = default;
VideoEncodeAccelerator::SupportedProfile::SupportedProfile()
: profile(media::VIDEO_CODEC_PROFILE_UNKNOWN),
max_framerate_numerator(0),
max_framerate_denominator(0) {
}
VideoEncodeAccelerator::SupportedProfile::~SupportedProfile() = default;
bool VideoEncodeAccelerator::TryToSetupEncodeOnSeparateThread(
const base::WeakPtr<Client>& encode_client,
const scoped_refptr<base::SingleThreadTaskRunner>& encode_task_runner) {
return false;
}
void VideoEncodeAccelerator::Flush(FlushCallback flush_callback) {
// TODO(owenlin): implements this https://crbug.com/755889.
NOTIMPLEMENTED();
std::move(flush_callback).Run(false);
}
} // namespace media
namespace std {
void default_delete<media::VideoEncodeAccelerator>::operator()(
media::VideoEncodeAccelerator* vea) const {
vea->Destroy();
}
} // namespace std