2007-04-09 04:02:40 +02:00
|
|
|
/*
|
2008-12-28 09:09:59 +01:00
|
|
|
* Copyright (C) 2006 Evgeniy Stepanov <eugeni.stepanov@gmail.com>
|
|
|
|
*
|
|
|
|
* This file is part of libass.
|
|
|
|
*
|
|
|
|
* libass is free software; you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* libass is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License along
|
|
|
|
* with libass; if not, write to the Free Software Foundation, Inc.,
|
|
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
|
|
*/
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2008-03-21 06:32:23 +01:00
|
|
|
#ifndef LIBASS_ASS_H
|
|
|
|
#define LIBASS_ASS_H
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2008-03-21 06:32:23 +01:00
|
|
|
#include <stdio.h>
|
2009-07-14 00:43:25 +02:00
|
|
|
#include <stdarg.h>
|
2007-04-09 04:02:40 +02:00
|
|
|
#include "ass_types.h"
|
|
|
|
|
2010-01-10 22:09:48 +01:00
|
|
|
#define LIBASS_VERSION 0x00908000
|
2009-07-19 21:33:29 +02:00
|
|
|
|
2009-09-02 03:23:51 +02:00
|
|
|
/*
|
|
|
|
* A linked list of images produced by an ass renderer.
|
|
|
|
*
|
|
|
|
* These images have to be rendered in-order for the correct screen
|
|
|
|
* composition. The libass renderer clips these bitmaps to the frame size.
|
|
|
|
* w/h can be zero, in this case the bitmap should not be rendered at all.
|
|
|
|
* The last bitmap row is not guaranteed to be padded up to stride size,
|
|
|
|
* e.g. in the worst case a bitmap has the size stride * (h - 1) + w.
|
|
|
|
*/
|
|
|
|
typedef struct ass_image {
|
2009-07-19 21:33:29 +02:00
|
|
|
int w, h; // Bitmap width/height
|
|
|
|
int stride; // Bitmap stride
|
2009-07-11 17:48:50 +02:00
|
|
|
unsigned char *bitmap; // 1bpp stride*h alpha buffer
|
2009-09-02 03:23:51 +02:00
|
|
|
// Note: the last row may not be padded to
|
|
|
|
// bitmap stride!
|
2009-07-19 21:33:29 +02:00
|
|
|
uint32_t color; // Bitmap color and alpha, RGBA
|
|
|
|
int dst_x, dst_y; // Bitmap placement inside the video frame
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-09-02 03:23:51 +02:00
|
|
|
struct ass_image *next; // Next image, or NULL
|
|
|
|
} ASS_Image;
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-09-02 03:23:51 +02:00
|
|
|
/*
|
2010-01-10 22:09:48 +01:00
|
|
|
* Hinting type. (see ass_set_hinting below)
|
2009-09-02 03:23:51 +02:00
|
|
|
*
|
|
|
|
* FreeType's native hinter is still buggy sometimes and it is recommended
|
|
|
|
* to use the light autohinter, ASS_HINTING_LIGHT, instead. For best
|
|
|
|
* compatibility with problematic fonts, disable hinting.
|
|
|
|
*/
|
2009-07-19 21:33:29 +02:00
|
|
|
typedef enum {
|
|
|
|
ASS_HINTING_NONE = 0,
|
2009-07-11 17:48:50 +02:00
|
|
|
ASS_HINTING_LIGHT,
|
|
|
|
ASS_HINTING_NORMAL,
|
|
|
|
ASS_HINTING_NATIVE
|
2009-09-02 03:23:51 +02:00
|
|
|
} ASS_Hinting;
|
2008-01-17 17:50:19 +01:00
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Initialize the library.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \return library handle or NULL if failed
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Library *ass_library_init(void);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Finalize the library
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param priv library handle
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_library_done(ASS_Library *priv);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Set private font directory.
|
2007-04-09 04:02:40 +02:00
|
|
|
* It is used for saving embedded fonts and also in font lookup.
|
2009-07-19 21:33:29 +02:00
|
|
|
*
|
|
|
|
* \param priv library handle
|
|
|
|
* \param fonts_dir private directory for font extraction
|
2007-04-09 04:02:40 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_fonts_dir(ASS_Library *priv, const char *fonts_dir);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/**
|
|
|
|
* \brief Whether fonts should be extracted from track data.
|
|
|
|
* \param priv library handle
|
|
|
|
* \param extract whether to extract fonts
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_extract_fonts(ASS_Library *priv, int extract);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/**
|
|
|
|
* \brief Register style overrides with a library instance.
|
|
|
|
* The overrides should have the form [Style.]Param=Value, e.g.
|
|
|
|
* SomeStyle.Font=Arial
|
|
|
|
* ScaledBorderAndShadow=yes
|
|
|
|
*
|
|
|
|
* \param priv library handle
|
|
|
|
* \param list NULL-terminated list of strings
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_style_overrides(ASS_Library *priv, char **list);
|
2009-07-11 17:48:50 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/**
|
|
|
|
* \brief Explicitly process style overrides for a track.
|
|
|
|
* \param track track handle
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_process_force_style(ASS_Track *track);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/**
|
|
|
|
* \brief Register a callback for debug/info messages.
|
|
|
|
* If a callback is registered, it is called for every message emitted by
|
|
|
|
* libass. The callback receives a format string and a list of arguments,
|
|
|
|
* to be used for the printf family of functions. Additionally, a log level
|
|
|
|
* from 0 (FATAL errors) to 7 (verbose DEBUG) is passed. Usually, level 5
|
|
|
|
* should be used by applications.
|
|
|
|
* If no callback is set, all messages level < 5 are printed to stderr,
|
|
|
|
* prefixed with [ass].
|
|
|
|
*
|
|
|
|
* \param priv library handle
|
|
|
|
* \param msg_cb pointer to callback function
|
|
|
|
* \param data additional data, will be passed to callback
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_message_cb(ASS_Library *priv, void (*msg_cb)
|
|
|
|
(int level, const char *fmt, va_list args, void *data),
|
2009-07-14 00:43:25 +02:00
|
|
|
void *data);
|
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Initialize the renderer.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param priv library handle
|
|
|
|
* \return renderer handle or NULL if failed
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Renderer *ass_renderer_init(ASS_Library *);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Finalize the renderer.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param priv renderer handle
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_renderer_done(ASS_Renderer *priv);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/**
|
|
|
|
* \brief Set the frame size in pixels, including margins.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param w width
|
|
|
|
* \param h height
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_frame_size(ASS_Renderer *priv, int w, int h);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set frame margins. These values may be negative if pan-and-scan
|
|
|
|
* is used.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param t top margin
|
|
|
|
* \param b bottom margin
|
|
|
|
* \param l left margin
|
|
|
|
* \param r right margin
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_margins(ASS_Renderer *priv, int t, int b, int l, int r);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Whether margins should be used for placing regular events.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param use whether to use the margins
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_use_margins(ASS_Renderer *priv, int use);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set aspect ratio parameters.
|
|
|
|
* \param priv renderer handle
|
2009-09-02 03:23:51 +02:00
|
|
|
* \param dar display aspect ratio (DAR), prescaled for output PAR
|
|
|
|
* \param sar storage aspect ratio (SAR)
|
2009-07-19 21:33:29 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_aspect_ratio(ASS_Renderer *priv, double dar, double sar);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set a fixed font scaling factor.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param font_scale scaling factor, default is 1.0
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_font_scale(ASS_Renderer *priv, double font_scale);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set font hinting method.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param ht hinting method
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_hinting(ASS_Renderer *priv, ASS_Hinting ht);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set line spacing. Will not be scaled with frame size.
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param line_spacing line spacing in pixels
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_line_spacing(ASS_Renderer *priv, double line_spacing);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Set font lookup defaults.
|
2010-01-10 22:09:48 +01:00
|
|
|
* \param default_font path to default font to use. Must be supplied if
|
|
|
|
* fontconfig is disabled or unavailable.
|
|
|
|
* \param default_family fallback font family for fontconfig, or NULL
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param fc whether to use fontconfig
|
|
|
|
* \param config path to fontconfig configuration file, or NULL. Only relevant
|
|
|
|
* if fontconfig is used.
|
|
|
|
* \param update whether fontconfig cache should be built/updated now. Only
|
|
|
|
* relevant if fontconfig is used.
|
2007-04-09 04:02:40 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_fonts(ASS_Renderer *priv, const char *default_font,
|
2009-07-19 21:33:29 +02:00
|
|
|
const char *default_family, int fc, const char *config,
|
|
|
|
int update);
|
2008-12-28 09:09:59 +01:00
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Update/build font cache. This needs to be called if it was
|
|
|
|
* disabled when ass_set_fonts was set.
|
|
|
|
*
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \return success
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
int ass_fonts_update(ASS_Renderer *priv);
|
2009-07-19 21:33:29 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Set hard cache limits. Do not set, or set to zero, for reasonable
|
|
|
|
* defaults.
|
|
|
|
*
|
|
|
|
* \param priv renderer handle
|
|
|
|
* \param glyph_max maximum number of cached glyphs
|
|
|
|
* \param bitmap_max_size maximum bitmap cache size (in MB)
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_set_cache_limits(ASS_Renderer *priv, int glyph_max,
|
2009-07-19 21:33:29 +02:00
|
|
|
int bitmap_max_size);
|
|
|
|
|
|
|
|
/**
|
2009-09-02 03:23:51 +02:00
|
|
|
* \brief Render a frame, producing a list of ASS_Image.
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param priv renderer handle
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track subtitle track
|
|
|
|
* \param now video timestamp in milliseconds
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param detect_change will be set to 1 if a change occured compared
|
|
|
|
* to the last invocation
|
2007-04-09 04:02:40 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Image *ass_render_frame(ASS_Renderer *priv, ASS_Track *track,
|
|
|
|
long long now, int *detect_change);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
/*
|
|
|
|
* The following functions operate on track objects and do not need
|
|
|
|
* an ass_renderer
|
|
|
|
*/
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Allocate a new empty track object.
|
|
|
|
* \param library handle
|
2007-04-09 04:02:40 +02:00
|
|
|
* \return pointer to empty track
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Track *ass_new_track(ASS_Library *);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Deallocate track and all its child objects (styles and events).
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track to deallocate
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_free_track(ASS_Track *track);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Allocate new style.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track
|
|
|
|
* \return newly allocated style id
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
int ass_alloc_style(ASS_Track *track);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Allocate new event.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track
|
|
|
|
* \return newly allocated event id
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
int ass_alloc_event(ASS_Track *track);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Delete a style.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track
|
|
|
|
* \param sid style id
|
|
|
|
* Deallocates style data. Does not modify track->n_styles.
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_free_style(ASS_Track *track, int sid);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Delete an event.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track
|
|
|
|
* \param eid event id
|
|
|
|
* Deallocates event data. Does not modify track->n_events.
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_free_event(ASS_Track *track, int eid);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2008-12-28 09:09:59 +01:00
|
|
|
/**
|
|
|
|
* \brief Parse a chunk of subtitle stream data.
|
|
|
|
* \param track track
|
|
|
|
* \param data string to parse
|
|
|
|
* \param size length of data
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_process_data(ASS_Track *track, char *data, int size);
|
2008-12-28 09:09:59 +01:00
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Parse Codec Private section of subtitle stream.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track target track
|
|
|
|
* \param data string to parse
|
|
|
|
* \param size length of data
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_process_codec_private(ASS_Track *track, char *data, int size);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Parse a chunk of subtitle stream data. In Matroska,
|
|
|
|
* this contains exactly 1 event (or a commentary).
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track track
|
|
|
|
* \param data string to parse
|
|
|
|
* \param size length of data
|
|
|
|
* \param timecode starting time of the event (milliseconds)
|
|
|
|
* \param duration duration of the event (milliseconds)
|
2009-07-19 21:33:29 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_process_chunk(ASS_Track *track, char *data, int size,
|
2009-07-11 17:48:50 +02:00
|
|
|
long long timecode, long long duration);
|
2008-03-21 06:32:23 +01:00
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
|
|
|
* \brief Read subtitles from file.
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param library library handle
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param fname file name
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param codepage encoding (iconv format)
|
2007-04-09 04:02:40 +02:00
|
|
|
* \return newly allocated track
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Track *ass_read_file(ASS_Library *library, char *fname,
|
|
|
|
char *codepage);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Read subtitles from memory.
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param library library handle
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param buf pointer to subtitles text
|
|
|
|
* \param bufsize size of buffer
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param codepage encoding (iconv format)
|
2007-04-09 04:02:40 +02:00
|
|
|
* \return newly allocated track
|
2009-07-11 17:48:50 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
ASS_Track *ass_read_memory(ASS_Library *library, char *buf,
|
|
|
|
size_t bufsize, char *codepage);
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Read styles from file into already initialized track.
|
|
|
|
* \param fname file name
|
|
|
|
* \param codepage encoding (iconv format)
|
2007-04-09 04:02:40 +02:00
|
|
|
* \return 0 on success
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
int ass_read_styles(ASS_Track *track, char *fname, char *codepage);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
|
|
|
/**
|
|
|
|
* \brief Add a memory font.
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param library library handle
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param name attachment name
|
|
|
|
* \param data binary font data
|
|
|
|
* \param data_size data size
|
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_add_font(ASS_Library *library, char *name, char *data,
|
2009-07-11 17:48:50 +02:00
|
|
|
int data_size);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2008-03-21 06:32:23 +01:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Remove all fonts stored in an ass_library object.
|
|
|
|
* \param library library handle
|
2008-03-21 06:32:23 +01:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
void ass_clear_fonts(ASS_Library *library);
|
2008-03-21 06:32:23 +01:00
|
|
|
|
2007-04-09 04:02:40 +02:00
|
|
|
/**
|
2009-07-19 21:33:29 +02:00
|
|
|
* \brief Calculates timeshift from now to the start of some other subtitle
|
|
|
|
* event, depending on movement parameter.
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param track subtitle track
|
2009-07-19 21:33:29 +02:00
|
|
|
* \param now current time in milliseconds
|
2007-04-09 04:02:40 +02:00
|
|
|
* \param movement how many events to skip from the one currently displayed
|
|
|
|
* +2 means "the one after the next", -1 means "previous"
|
2009-07-19 21:33:29 +02:00
|
|
|
* \return timeshift in milliseconds
|
2007-04-09 04:02:40 +02:00
|
|
|
*/
|
2009-09-02 03:23:51 +02:00
|
|
|
long long ass_step_sub(ASS_Track *track, long long now, int movement);
|
2007-04-09 04:02:40 +02:00
|
|
|
|
2009-07-19 21:33:29 +02:00
|
|
|
#endif /* LIBASS_ASS_H */
|