mirror of
https://github.com/Motion-Project/motion.git
synced 2026-02-02 19:11:26 -05:00
Add header file for draw.c
This commit is contained in:
@@ -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)))
|
||||
|
||||
@@ -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
33
src/draw.h
Normal 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
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "rotate.h"
|
||||
#include "webu.h"
|
||||
#include "dbse.h"
|
||||
#include "draw.h"
|
||||
|
||||
#define IMAGE_BUFFER_FLUSH ((unsigned int)-1)
|
||||
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user