Browse Source

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 15 years ago
parent
commit
6d12c28052
2 changed files with 3 additions and 2 deletions
  1. +1
    -1
      pipi/pipi.h
  2. +2
    -1
      pipi/sequence.c

+ 1
- 1
pipi/pipi.h View File

@@ -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_free_histogram(pipi_histogram_t*);
__extern int pipi_render_histogram(pipi_image_t *, pipi_histogram_t*, int); __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_feed_sequence(pipi_sequence_t *, uint8_t *, int, int);
__extern int pipi_close_sequence(pipi_sequence_t *); __extern int pipi_close_sequence(pipi_sequence_t *);




+ 2
- 1
pipi/sequence.c View File

@@ -58,7 +58,8 @@ ffmpeg_codec_t;
#define PAR_DEN 1 #define PAR_DEN 1
#define BITRATE (16 * 1024 * 1024) #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 #if defined USE_FFMPEG
static int initialised = 0; static int initialised = 0;


Loading…
Cancel
Save