libcamera: Drop file name from header comment blocks
Source files in libcamera start by a comment block header, which includes the file name and a one-line description of the file contents. While the latter is useful to get a quick overview of the file contents at a glance, the former is mostly a source of inconvenience. The name in the comments can easily get out of sync with the file name when files are renamed, and copy & paste during development have often lead to incorrect names being used to start with. Readers of the source code are expected to know which file they're looking it. Drop the file name from the header comment block. The change was generated with the following script: ---------------------------------------- dirs="include/libcamera src test utils" declare -rA patterns=( ['c']=' \* ' ['cpp']=' \* ' ['h']=' \* ' ['py']='# ' ['sh']='# ' ) for ext in ${!patterns[@]} ; do files=$(for dir in $dirs ; do find $dir -name "*.${ext}" ; done) pattern=${patterns[${ext}]} for file in $files ; do name=$(basename ${file}) sed -i "s/^\(${pattern}\)${name} - /\1/" "$file" done done ---------------------------------------- This misses several files that are out of sync with the comment block header. Those will be addressed separately and manually. Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Reviewed-by: Daniel Scally <dan.scally@ideasonboard.com>
This commit is contained in:
parent
fdcd5d04ec
commit
626172a16b
522 changed files with 522 additions and 522 deletions
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* agc.cpp - AGC/AEC mean-based control algorithm
|
||||
* AGC/AEC mean-based control algorithm
|
||||
*/
|
||||
|
||||
#include "agc.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* agc.h - RkISP1 AGC/AEC mean-based control algorithm
|
||||
* RkISP1 AGC/AEC mean-based control algorithm
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021, Ideas On Board
|
||||
*
|
||||
* algorithm.h - RkISP1 control algorithm interface
|
||||
* RkISP1 control algorithm interface
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* awb.cpp - AWB control algorithm
|
||||
* AWB control algorithm
|
||||
*/
|
||||
|
||||
#include "awb.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* awb.h - AWB control algorithm
|
||||
* AWB control algorithm
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* blc.cpp - RkISP1 Black Level Correction control
|
||||
* RkISP1 Black Level Correction control
|
||||
*/
|
||||
|
||||
#include "blc.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* blc.h - RkISP1 Black Level Correction control
|
||||
* RkISP1 Black Level Correction control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* cproc.cpp - RkISP1 Color Processing control
|
||||
* RkISP1 Color Processing control
|
||||
*/
|
||||
|
||||
#include "cproc.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* cproc.h - RkISP1 Color Processing control
|
||||
* RkISP1 Color Processing control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* dpcc.cpp - RkISP1 Defect Pixel Cluster Correction control
|
||||
* RkISP1 Defect Pixel Cluster Correction control
|
||||
*/
|
||||
|
||||
#include "dpcc.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* dpcc.h - RkISP1 Defect Pixel Cluster Correction control
|
||||
* RkISP1 Defect Pixel Cluster Correction control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* dpf.cpp - RkISP1 Denoise Pre-Filter control
|
||||
* RkISP1 Denoise Pre-Filter control
|
||||
*/
|
||||
|
||||
#include "dpf.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* dpf.h - RkISP1 Denoise Pre-Filter control
|
||||
* RkISP1 Denoise Pre-Filter control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* filter.cpp - RkISP1 Filter control
|
||||
* RkISP1 Filter control
|
||||
*/
|
||||
|
||||
#include "filter.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* filter.h - RkISP1 Filter control
|
||||
* RkISP1 Filter control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* gsl.cpp - RkISP1 Gamma Sensor Linearization control
|
||||
* RkISP1 Gamma Sensor Linearization control
|
||||
*/
|
||||
|
||||
#include "gsl.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* gsl.h - RkISP1 Gamma Sensor Linearization control
|
||||
* RkISP1 Gamma Sensor Linearization control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* lsc.cpp - RkISP1 Lens Shading Correction control
|
||||
* RkISP1 Lens Shading Correction control
|
||||
*/
|
||||
|
||||
#include "lsc.h"
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
/*
|
||||
* Copyright (C) 2021-2022, Ideas On Board
|
||||
*
|
||||
* lsc.h - RkISP1 Lens Shading Correction control
|
||||
* RkISP1 Lens Shading Correction control
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue