blob: af89a6add14df5e60317c1a3605109f212ea1fd7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
// Copyright 2018 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/gpu/vaapi/vaapi_common.h"
namespace media {
VaapiH264Picture::VaapiH264Picture(scoped_refptr<VASurface> va_surface)
: va_surface_(va_surface) {}
VaapiH264Picture::~VaapiH264Picture() {}
VaapiH264Picture* VaapiH264Picture::AsVaapiH264Picture() {
return this;
}
VaapiVP8Picture::VaapiVP8Picture(scoped_refptr<VASurface> va_surface)
: va_surface_(va_surface) {}
VaapiVP8Picture::~VaapiVP8Picture() {}
VaapiVP8Picture* VaapiVP8Picture::AsVaapiVP8Picture() {
return this;
}
VaapiVP9Picture::VaapiVP9Picture(scoped_refptr<VASurface> va_surface)
: va_surface_(va_surface) {}
VaapiVP9Picture::~VaapiVP9Picture() {}
VaapiVP9Picture* VaapiVP9Picture::AsVaapiVP9Picture() {
return this;
}
scoped_refptr<VP9Picture> VaapiVP9Picture::CreateDuplicate() {
return new VaapiVP9Picture(va_surface_);
}
} // namespace media
|