Select one of the symbols to view example projects that use it.
 
Outline
Includes
#include "jdata_conf.h"
read_file(FIL *, uint8_t *, uint32_t)
write_file(FIL *, uint8_t *, uint32_t)
Files
loading...
CodeScopeSTM32 Libraries and SamplesLibJPEG_EncodingSrc/jdata_conf.c
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
/** ****************************************************************************** * @file LibJPEG/LibJPEG_Encoding/Src/jdata_conf.c * @author MCD Application Team * @brief ****************************************************************************** * @attention * * Copyright (c) 2017 STMicroelectronics. * All rights reserved. * * This software is licensed under terms that can be found in the LICENSE file * in the root directory of this software component. * If no LICENSE file comes with this software, it is provided AS-IS. * ****************************************************************************** *//* ... */ /* Includes ------------------------------------------------------------------*/ #include "jdata_conf.h" Includes /* Private typedef -----------------------------------------------------------*/ /* Private define ------------------------------------------------------------*/ /* Private macro -------------------------------------------------------------*/ /* Private variables ---------------------------------------------------------*/ /* Private function prototypes -----------------------------------------------*/ /* Private functions ---------------------------------------------------------*/ /* * The modules that use fread() and fwrite() always invoke them through * these macros. On some systems you may need to twiddle the argument casts. * CAUTION: argument order is different from underlying functions! *//* ... */ size_t read_file (JFILE *file, uint8_t *buf, uint32_t sizeofbuf) { static size_t BytesReadfile ; f_read (file, buf , sizeofbuf, &BytesReadfile); return BytesReadfile; }{ ... } size_t write_file (JFILE *file, uint8_t *buf, uint32_t sizeofbuf) { static size_t BytesWritefile ; f_write (file, buf , sizeofbuf, &BytesWritefile); return BytesWritefile; }{ ... }