Debian Codegraph @

src/videofilters/h26x/media-codec-h265-decoder.cpp

raw
1 /*
2 * Copyright (c) 2010-2022 Belledonne Communications SARL.
3 *
4 * This file is part of mediastreamer2
5 * (see https://gitlab.linphone.org/BC/public/mediastreamer2).
6 *
7 * This program is free software: you can redistribute it and/or modify
8 * it under the terms of the GNU Affero General Public License as
9 * published by the Free Software Foundation, either version 3 of the
10 * License, or (at your option) any later version.
11 *
12 * This program is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15 * GNU Affero General Public License for more details.
16 *
17 * You should have received a copy of the GNU Affero General Public License
18 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20
21 #include "media-codec-h265-decoder.h"
22 #include "filter-wrapper/decoding-filter-wrapper.h"
23 #include "h26x-decoder-filter.h"
24
25 namespace mediastreamer {
26
27 class MediaCodecH265DecoderFilterImpl : public H26xDecoderFilter {
28 public:
29 MediaCodecH265DecoderFilterImpl(MSFilter *f) : H26xDecoderFilter(f, new MediaCodecH265Decoder()) {
30 }
31 };
32
33 } // namespace mediastreamer
34
35 using namespace mediastreamer;
36
37 MS_DECODING_FILTER_WRAPPER_METHODS_DECLARATION(MediaCodecH265Decoder);
38 MS_DECODING_FILTER_WRAPPER_DESCRIPTION_DECLARATION(MediaCodecH265Decoder,
39 MS_MEDIACODEC_H265_DEC_ID,
40 "A H265 decoder based on MediaCodec API.",
41 "H265",
42 MS_FILTER_IS_PUMP | MS_FILTER_IS_HW_ACCELERATED);