Quellcode durchsuchen

Mark pipi_open_sequence's first argument as const.

git-svn-id: file:///srv/caca.zoy.org/var/lib/svn/libpipi/trunk@3630 92316355-f0b4-4df1-b90c-862c8a59935f
master
sam vor 15 Jahren
Ursprung
Commit
6d12c28052
2 geänderte Dateien mit 3 neuen und 2 gelöschten Zeilen
  1. +1
    -1
      pipi/pipi.h
  2. +2
    -1
      pipi/sequence.c

+ 1
- 1
pipi/pipi.h Datei anzeigen

@@ -237,7 +237,7 @@ __extern int pipi_get_image_histogram(pipi_image_t *, pipi_histogram_t *, int);
__extern int pipi_free_histogram(pipi_histogram_t*);
__extern int pipi_render_histogram(pipi_image_t *, pipi_histogram_t*, int);

__extern pipi_sequence_t *pipi_open_sequence(char *, int, int, int);
__extern pipi_sequence_t *pipi_open_sequence(char const *, int, int, int);
__extern int pipi_feed_sequence(pipi_sequence_t *, uint8_t *, int, int);
__extern int pipi_close_sequence(pipi_sequence_t *);



+ 2
- 1
pipi/sequence.c Datei anzeigen

@@ -58,7 +58,8 @@ ffmpeg_codec_t;
#define PAR_DEN 1
#define BITRATE (16 * 1024 * 1024)

pipi_sequence_t *pipi_open_sequence(char *file, int width, int height, int fps)
pipi_sequence_t *pipi_open_sequence(char const *file,
int width, int height, int fps)
{
#if defined USE_FFMPEG
static int initialised = 0;


Laden…
Abbrechen
Speichern