Add header file for draw.c

This commit is contained in:
MrDave
2019-09-29 22:37:50 -06:00
committed by Mr-Dave
parent b0bec06a1b
commit fe9c40e6fa
5 changed files with 36 additions and 7 deletions

View File

@@ -8,6 +8,7 @@
*/
#include "motion.h"
#include "alg.h"
#include "draw.h"
#define MAX2(x, y) ((x) > (y) ? (x) : (y))
#define MAX3(x, y, z) ((x) > (y) ? ((x) > (z) ? (x) : (z)) : ((y) > (z) ? (y) : (z)))

View File

@@ -11,6 +11,7 @@
#include <ctype.h>
#include "motion.h"
#include "draw.h"
/* Highest ascii value is 126 (~) */
#define ASCII_MAX 127

33
src/draw.h Normal file
View File

@@ -0,0 +1,33 @@
/* dbse.h
*
* This file is part of the Motion application
* Copyright (C) 2019 Motion-Project Developers(motion-project.github.io)
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the
* Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
* Boston, MA 02110-1301, USA.
*/
#ifndef _INCLUDE_DRAW_H_
#define _INCLUDE_DRAQ_H_
/* date/time drawing, draw.c */
int draw_text(unsigned char *image,
int width, int height,
int startx, int starty,
const char *text, int factor);
int initialize_chars(void);
#endif

View File

@@ -19,6 +19,7 @@
#include "rotate.h"
#include "webu.h"
#include "dbse.h"
#include "draw.h"
#define IMAGE_BUFFER_FLUSH ((unsigned int)-1)

View File

@@ -282,13 +282,6 @@ struct stream_data {
* These values are set in rotate_init.
*/
/* date/time drawing, draw.c */
int draw_text(unsigned char *image,
int width, int height,
int startx, int starty,
const char *text, int factor);
int initialize_chars(void);
struct images {
struct ctx_image_data *image_ring; /* The base address of the image ring buffer */
int image_ring_size;