Atmel Software Framework

lodepng_example.c File Reference
#include "string.h"
#include "board.h"
#include "sdramc.h"
#include "intc.h"
#include "gpio.h"
#include "print_funcs.h"
#include "usart.h"
#include "et024006dhu.h"
#include "power_clocks_lib.h"
#include "delay.h"
#include "pngfile.h"
#include "lodepng.h"
#include "conf_clock.h"
#include "pwm.h"

Macros

#define AVERAGE(a, b)
 
#define PIXEL   uint16_t
 
External Board Mappings
#define EXAMPLE_TC_CHANNEL_PIN   AVR32_TC0_A0_0_0_PIN
 
#define EXAMPLE_TC_CHANNEL_FUNCTION   AVR32_TC0_A0_0_0_FUNCTION
 

Functions

void lodepng_decode_display (unsigned char *table, size_t buffersize, int scale)
 
int main (void)
 
void scale_by_denom (PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight, int denom)
 
static void tft_bl_init (void)
 

Variables

pcl_freq_param_t pcl_freq_param
 
avr32_pwm_channel_t pwm_channel6
 

#define AVERAGE (   a,
  b 
)
Value:
(PIXEL)( (a) == (b) ? (a) \
: (((a) & 0xf7dfU) + ((b) & 0xf7dfU)) >> 1 )
#define PIXEL
Definition: lodepng_example.c:86
JOCTET b[APPN_DATA_LEN]
Definition: jdmarker.c:693
return a(a%b)

Referenced by scale_by_denom().

#define EXAMPLE_TC_CHANNEL_FUNCTION   AVR32_TC0_A0_0_0_FUNCTION
#define EXAMPLE_TC_CHANNEL_PIN   AVR32_TC0_A0_0_0_PIN
#define PIXEL   uint16_t

Referenced by scale_by_denom().

void scale_by_denom ( PIXEL Target,
PIXEL Source,
int  SrcWidth,
int  SrcHeight,
int  denom 
)

References AVERAGE, PIXEL, r1, s, x, and y.

Referenced by lodepng_decode_display().

static void tft_bl_init ( void  )
static

pcl_freq_param_t pcl_freq_param
Initial value:
= {
.cpu_f = FCPU_HZ,
.pba_f = FPBA_HZ,
.osc0_f = FOSC0,
.osc0_startup = OSC0_STARTUP
}
#define FPBA_HZ
Definition: thirdparty/hd/example/ports/avr32/conf/conf_clock.h:85
#define FCPU_HZ
Definition: thirdparty/hd/example/ports/avr32/conf/conf_clock.h:82
#define FOSC0
Definition: bsp-evk1105.c:23
avr32_pwm_channel_t pwm_channel6
Initial value:
= {
.cdty = 0,
.cprd = 100
}