Ai
5 Star 2 Fork 3

SpacemiT Buildroot SDK/mpp

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
format.sh 1.06 KB
一键复制 编辑 原始数据 按行查看 历史
James Deng 提交于 2024-04-15 11:42 +08:00 . Update for v1.0beta3.1
#!/bin/bash
###
# Copyright 2022-2023 SPACEMIT. All rights reserved.
# Use of this source code is governed by a BSD-style license
# that can be found in the LICENSE file.
#
# @Author: David(qiang.fu@spacemit.com)
# @Date: 2023-01-18 11:26:26
# @LastEditTime: 2023-11-02 17:56:41
# @Description: code style optimization, use clang-format to format the code
###
###
# How to use
# 1. apt install clang-format(if not root, do it in docker)
# 2. su username, switch from root to normal
# 3. ./format.sh in the mpp root directory
# 4. check the code and verify it again, code-stype optimization may cause trouble
###
find . -name "*.cc" -o -name "*.c" ! -name "module.c" -o -name "*.h" -o -name "*.hh" -o -name "*.cpp" | xargs clang-format -style=Google -i
git checkout al/vcodec/openh264/include/*
git checkout al/vps/k1/v2d/include/*
git checkout al/vcodec/v4l2/linlonv5v7/include/mvx-v4l2-controls.h
git checkout al/vcodec/openmax/include/sfomxil_find_dec_library.h
git checkout al/vcodec/openmax/include/sfomxil_find_enc_library.h
git checkout al/vo/sdl2/include/*
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/spacemit-buildroot/mpp.git
git@gitee.com:spacemit-buildroot/mpp.git
spacemit-buildroot
mpp
mpp
k1-bl-v2.2.y

搜索帮助