• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /**
2  * Copyright 2024 Huawei Technologies Co., Ltd
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 #include "minddata/dataset/kernels/ir/vision/decode_video_ir.h"
17 
18 #include "minddata/dataset/kernels/image/decode_video_op.h"
19 #include "minddata/dataset/kernels/ir/validators.h"
20 #include "minddata/dataset/util/validators.h"
21 
22 namespace mindspore {
23 namespace dataset {
24 namespace vision {
25 // DecodeVideoOperation
DecodeVideoOperation()26 DecodeVideoOperation::DecodeVideoOperation() {}
27 
28 DecodeVideoOperation::~DecodeVideoOperation() = default;
29 
Name() const30 std::string DecodeVideoOperation::Name() const { return kDecodeVideoOperation; }
31 
ValidateParams()32 Status DecodeVideoOperation::ValidateParams() { return Status::OK(); }
33 
Build()34 std::shared_ptr<TensorOp> DecodeVideoOperation::Build() { return std::make_shared<DecodeVideoOp>(); }
35 
to_json(nlohmann::json * out_json)36 Status DecodeVideoOperation::to_json(nlohmann::json *out_json) { return Status::OK(); }
37 
from_json(nlohmann::json op_params,std::shared_ptr<TensorOperation> * operation)38 Status DecodeVideoOperation::from_json(nlohmann::json op_params, std::shared_ptr<TensorOperation> *operation) {
39   *operation = std::make_shared<vision::DecodeVideoOperation>();
40   return Status::OK();
41 }
42 }  // namespace vision
43 }  // namespace dataset
44 }  // namespace mindspore
45