/*
 *  VOBSUB (.idx and .sub) parser
 *  Copyright (C) 2012 Andreas Öman
 *
 *  This program 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 3 of the License, or
 *  (at your option) any later version.
 *
 *  This program 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 this program.  If not, see <http://www.gnu.org/licenses/>.
 */
#pragma once

struct prop;
struct ext_subtitles;
struct media_pipe;

void vobsub_probe(const char *url, const char *filename,
		  int score, struct prop *prop,
		  const char *subfile);

struct ext_subtitles *vobsub_load(const char *json, char *errbuf,
				  size_t errlen, struct media_pipe *mp);


void vobsub_decode_palette(uint32_t *clut, const char *str);

void vobsub_decode_size(int *width, int *height, const char *str);
