13d0407baSopenharmony_ci/*
23d0407baSopenharmony_ci * Copyright (C) 2016 Rockchip Electronics Co., Ltd.
33d0407baSopenharmony_ci * Authors:
43d0407baSopenharmony_ci *  Zhiqin Wei <wzq@rock-chips.com>
53d0407baSopenharmony_ci *
63d0407baSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
73d0407baSopenharmony_ci * you may not use this file except in compliance with the License.
83d0407baSopenharmony_ci * You may obtain a copy of the License at
93d0407baSopenharmony_ci *
103d0407baSopenharmony_ci *      http://www.apache.org/licenses/LICENSE-2.0
113d0407baSopenharmony_ci *
123d0407baSopenharmony_ci * Unless required by applicable law or agreed to in writing, software
133d0407baSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
143d0407baSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
153d0407baSopenharmony_ci * See the License for the specific language governing permissions and
163d0407baSopenharmony_ci * limitations under the License.
173d0407baSopenharmony_ci */
183d0407baSopenharmony_ci
193d0407baSopenharmony_ci#ifndef _rga_utils_h_
203d0407baSopenharmony_ci#define _rga_utils_h_
213d0407baSopenharmony_ci
223d0407baSopenharmony_ci// -------------------------------------------------------------------------------
233d0407baSopenharmony_cifloat get_bpp_from_format(int format);
243d0407baSopenharmony_ciint get_buf_from_file(void *buf, int f, int sw, int sh, int index);
253d0407baSopenharmony_ciint output_buf_data_to_file(void *buf, int f, int sw, int sh, int index);
263d0407baSopenharmony_ciconst char *translate_format_str(int format);
273d0407baSopenharmony_ci#endif
283d0407baSopenharmony_ci
29