Commit fa8af20d authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Move GUID_ helpers to vlc_codecs.h

parent fce3563d
......@@ -471,6 +471,15 @@ static inline int guidcmp( const GUID *s1, const GUID *s2 )
s1->Data3 == s2->Data3 && !memcmp( s1->Data4, s2->Data4, 8 ) );
}
#define GUID_FMT "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_PRINT( guid ) \
(unsigned)(guid).Data1, \
(guid).Data2, \
(guid).Data3, \
(guid).Data4[0],(guid).Data4[1],(guid).Data4[2],(guid).Data4[3], \
(guid).Data4[4],(guid).Data4[5],(guid).Data4[6],(guid).Data4[7]
static inline void sf_tag_to_fourcc( GUID *guid_tag,
vlc_fourcc_t *fcc, const char **ppsz_name )
{
......
......@@ -27,10 +27,10 @@
#include <vlc_common.h>
#include <vlc_rand.h>
#include <vlc_codecs.h>
#include "asf.h"
#include "buffer.h"
#include "../../demux/asf/libasf_guid.h"
void GenerateGuid ( guid_t *p_guid )
{
......
......@@ -31,7 +31,7 @@
#ifndef _ASF_H_
#define _ASF_H_ 1
#include "../../demux/asf/libasf_guid.h"
#include <vlc_codecs.h>
#define ASF_CODEC_TYPE_VIDEO 0x0001
#define ASF_CODEC_TYPE_AUDIO 0x0002
......
......@@ -41,6 +41,7 @@
#include <vlc_fourcc.h>
#include <vlc_cpu.h>
#include <vlc_plugin.h>
#include <vlc_codecs.h>
#include <libavcodec/avcodec.h>
# define DXVA2API_USE_BITFIELDS
......@@ -50,7 +51,6 @@
#include "avcodec.h"
#include "va.h"
#include "../../video_chroma/copy.h"
#include "../../demux/asf/libasf_guid.h"
static int Open(vlc_va_t *, AVCodecContext *, const es_format_t *);
static void Close(vlc_va_t *, AVCodecContext *);
......
......@@ -28,14 +28,6 @@
/*****************************************************************************
* Structure needed for decoder
*****************************************************************************/
#define GUID_FMT "0x%x-0x%x-0x%x-0x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x%2.2x"
#define GUID_PRINT( guid ) \
(unsigned)(guid).Data1, \
(guid).Data2, \
(guid).Data3, \
(guid).Data4[0],(guid).Data4[1],(guid).Data4[2],(guid).Data4[3], \
(guid).Data4[4],(guid).Data4[5],(guid).Data4[6],(guid).Data4[7]
enum
{
ASF_OBJECT_NULL = 0,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment