Subversion Repositories Kolibri OS

Compare Revisions

Regard whitespace Rev 6658 → Rev 6657

/contrib/media/fplay/fplay.h
114,23 → 114,18
{
const char *name;
enum AVCodecID codec_id;
int profile;
enum AVPixelFormat pix_fmt;
int width;
int height;
AVFrame *Frame;
vframe_t *active_frame;
vframe_t vframes[16];
int nframes;
void *hwctx;
int is_hw:1;
int has_surfaces:1;
int frame_reorder:1;
void (*fini)(vst_t *vst);
int nframes;
vframe_t vframes[16];
};
 
typedef struct decoder* decoder_init_fn(vst_t *vst);
struct decoder* init_va_decoder(vst_t *vst);
 
struct vstate
{
AVFormatContext *fCtx; /* format context */
138,6 → 133,8
AVCodecContext *aCtx; /* audio decoder context */
AVCodec *vCodec; /* video codec */
AVCodec *aCodec; /* audio codec */
enum AVCodecID codec_id;
int codec_profile;
char *input_file;
char *input_name;
int vStream; /* video stream index */
155,7 → 152,6
mutex_t output_lock;
struct list_head input_list;
struct list_head output_list;
struct list_head destructor_list;
 
struct decoder *decoder;
int snd_format;
172,7 → 168,7
#define AUDIO_THREAD 2
#define VIDEO_THREAD 4
 
extern volatile int threads_running;
extern int threads_running;
extern astream_t astream;
 
render_t *create_render(vst_t *vst, window_t *win, uint32_t flags);
221,4 → 217,3
#define LEAVE() printf("leave %s\n",__FUNCTION__)
#define FAIL() printf("fail %s\n",__FUNCTION__)