#ifndef ka_codecs_h
#define ka_codecs_h

#include "inttypes.h"
#include "ka_acodec.h"
#include "ka_scodec.h"
#include "ka_vcodec.h"

#define MKTAG(a,b,c,d) ((a<<24) | (b<<16) | (c<<8) | d)
#define MKREVTAG(a,b,c,d) (a | (b<<8) | (c<<16) | (d<<24))

uint32_t ka_tag_to_video(uint32_t fourcc);
uint32_t ka_tag_to_subtitle(uint32_t fourcc);
uint32_t ka_tag_to_audio(uint32_t fourcc);
const kav_vcodec_t* ka_block_to_vcodec(uint32_t typ);
const kav_scodec_t* ka_block_to_scodec(uint32_t typ);
const char* ka_block_to_name(uint32_t typ);

#endif
