mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-12-29 18:11:05 +00:00
A single frame of the scanned heat map is too big to fit into RAM. Let's encode it so that we can get the whole frame. BUG=None TEST=Touch on various places on the panel and see corresponding results. BRANCH=None Change-Id: I8c7c72d5d4a83ebc2018c0abd57075697c931bef Signed-off-by: Vic Yang <victoryang@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/199940 Reviewed-by: Vincent Palatin <vpalatin@chromium.org>
21 lines
519 B
C
21 lines
519 B
C
/* Copyright (c) 2014 The Chromium OS Authors. All rights reserved.
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
* found in the LICENSE file.
|
|
*/
|
|
|
|
/* Touch data encoding/decoding */
|
|
|
|
#ifndef __KEYBORG_ENCODE_H
|
|
#define __KEYBORG_ENCODE_H
|
|
|
|
/* Start encoding a new frame */
|
|
void encode_reset(void);
|
|
|
|
/* Encode a single column */
|
|
void encode_add_column(const uint8_t *dptr);
|
|
|
|
/* Decode and print the encoded frame to console */
|
|
void encode_dump_matrix(void);
|
|
|
|
#endif /* __KEYBORG_ENCODE_H */
|