2020-06-30 12:34:31 +02:00
|
|
|
/****************************************************************************
|
2021-09-16 04:03:33 +02:00
|
|
|
* apps/examples/camera/camera_fileutil.h
|
2020-06-30 12:34:31 +02:00
|
|
|
*
|
2021-09-16 04:03:33 +02:00
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership. The
|
|
|
|
* ASF licenses this file to you under the Apache License, Version 2.0 (the
|
|
|
|
* "License"); you may not use this file except in compliance with the
|
|
|
|
* License. You may obtain a copy of the License at
|
2020-06-30 12:34:31 +02:00
|
|
|
*
|
2021-09-16 04:03:33 +02:00
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
2020-06-30 12:34:31 +02:00
|
|
|
*
|
2021-09-16 04:03:33 +02:00
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
|
|
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
|
|
* License for the specific language governing permissions and limitations
|
|
|
|
* under the License.
|
2020-06-30 12:34:31 +02:00
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2022-01-16 03:31:55 +01:00
|
|
|
#ifndef __APPS_EXAMPLES_CAMERA_CAMERA_FILEUTIL_H
|
|
|
|
#define __APPS_EXAMPLES_CAMERA_CAMERA_FILEUTIL_H
|
2020-06-30 12:34:31 +02:00
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Included Files
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
#include <stdint.h>
|
|
|
|
#include <sys/types.h>
|
|
|
|
|
|
|
|
/****************************************************************************
|
|
|
|
* Public Function Prototypes
|
|
|
|
****************************************************************************/
|
|
|
|
|
|
|
|
/* Initialize file util of camera example */
|
|
|
|
|
2022-12-07 03:36:41 +01:00
|
|
|
FAR const char *futil_initialize(void);
|
2020-06-30 12:34:31 +02:00
|
|
|
|
|
|
|
/* Write an image file */
|
|
|
|
|
2022-12-07 03:36:41 +01:00
|
|
|
int futil_writeimage(FAR uint8_t *data, size_t len, FAR const char *fsuffix);
|
2020-06-30 12:34:31 +02:00
|
|
|
|
2022-01-16 03:31:55 +01:00
|
|
|
#endif /* __APPS_EXAMPLES_CAMERA_CAMERA_FILEUTIL_H */
|
2020-06-30 12:34:31 +02:00
|
|
|
|