[util]: Add frame checksum calculation function

Add checksum calculation function and file access function for debug.
NOTE: checksum for YUV image and for luma only so far.

Change-Id: I54509bebd64f5e5143e14824733d9c25af9db204
Signed-off-by: Herman Chen <herman.chen@rock-chips.com>
This commit is contained in:
Herman Chen
2017-06-13 09:18:02 +08:00
parent c360c70be2
commit f96141033d
2 changed files with 47 additions and 0 deletions

View File

@@ -37,6 +37,9 @@ extern "C" {
void _show_options(int count, OptionInfo *options);
void dump_mpp_frame_to_file(MppFrame frame, FILE *fp);
void calc_frm_checksum(MppFrame frame, RK_U8 *sum);
void write_checksum(FILE *fp, RK_U8 *sum);
void read_checksum(FILE *fp, RK_U8 *sum);
#ifdef __cplusplus
}