2011-12-07 15:05:38 +01:00
|
|
|
///
|
|
|
|
/// @file softhddev.h @brief software HD device plugin header file.
|
|
|
|
///
|
2014-01-08 16:57:08 +01:00
|
|
|
/// Copyright (c) 2011 - 2014 by Johns. All Rights Reserved.
|
2011-12-07 15:05:38 +01:00
|
|
|
///
|
|
|
|
/// Contributor(s):
|
|
|
|
///
|
|
|
|
/// License: AGPLv3
|
|
|
|
///
|
|
|
|
/// This program is free software: you can redistribute it and/or modify
|
|
|
|
/// it under the terms of the GNU Affero General Public License as
|
|
|
|
/// published by the Free Software Foundation, either version 3 of the
|
|
|
|
/// License.
|
|
|
|
///
|
|
|
|
/// 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 Affero General Public License for more details.
|
|
|
|
///
|
|
|
|
/// $Id$
|
|
|
|
//////////////////////////////////////////////////////////////////////////////
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C"
|
|
|
|
{
|
|
|
|
#endif
|
|
|
|
/// C callback feed key press
|
2014-01-08 16:57:08 +01:00
|
|
|
extern void FeedKeyPress(const char *, const char *, int, int,
|
|
|
|
const char *);
|
2011-12-07 15:05:38 +01:00
|
|
|
|
|
|
|
/// C plugin get osd size and ascpect
|
|
|
|
extern void GetOsdSize(int *, int *, double *);
|
|
|
|
|
|
|
|
/// C plugin close osd
|
|
|
|
extern void OsdClose(void);
|
|
|
|
/// C plugin draw osd pixmap
|
|
|
|
extern void OsdDrawARGB(int, int, int, int, const uint8_t *);
|
|
|
|
|
|
|
|
/// C plugin play audio packet
|
2012-01-08 21:46:00 +01:00
|
|
|
extern int PlayAudio(const uint8_t *, int, uint8_t);
|
2012-02-21 20:55:28 +01:00
|
|
|
/// C plugin play TS audio packet
|
|
|
|
extern int PlayTsAudio(const uint8_t *, int);
|
2011-12-07 15:05:38 +01:00
|
|
|
/// C plugin set audio volume
|
|
|
|
extern void SetVolumeDevice(int);
|
2015-02-16 10:02:27 +01:00
|
|
|
/// C plugin reset channel id (restarts audio)
|
|
|
|
extern void ResetChannelId(void);
|
2011-12-07 15:05:38 +01:00
|
|
|
|
|
|
|
/// C plugin play video packet
|
2011-12-12 17:06:05 +01:00
|
|
|
extern int PlayVideo(const uint8_t *, int);
|
2011-12-07 15:05:38 +01:00
|
|
|
/// C plugin play TS video packet
|
|
|
|
extern void PlayTsVideo(const uint8_t *, int);
|
2012-01-20 21:46:22 +01:00
|
|
|
/// C plugin grab an image
|
|
|
|
extern uint8_t *GrabImage(int *, int, int, int, int);
|
2011-12-07 15:05:38 +01:00
|
|
|
|
|
|
|
/// C plugin set play mode
|
2012-02-23 15:32:43 +01:00
|
|
|
extern int SetPlayMode(int);
|
2012-03-31 21:27:54 +02:00
|
|
|
/// C plugin get current system time counter
|
|
|
|
extern int64_t GetSTC(void);
|
2012-10-10 17:26:49 +02:00
|
|
|
/// C plugin get video stream size and aspect
|
|
|
|
extern void GetVideoSize(int *, int *, double *);
|
2012-02-16 15:31:53 +01:00
|
|
|
/// C plugin set trick speed
|
|
|
|
extern void TrickSpeed(int);
|
2011-12-14 18:01:03 +01:00
|
|
|
/// C plugin clears all video and audio data from the device
|
|
|
|
extern void Clear(void);
|
|
|
|
/// C plugin sets the device into play mode
|
|
|
|
extern void Play(void);
|
|
|
|
/// C plugin sets the device into "freeze frame" mode
|
|
|
|
extern void Freeze(void);
|
2012-02-16 15:31:53 +01:00
|
|
|
/// C plugin mute audio
|
|
|
|
extern void Mute(void);
|
2012-01-08 21:46:00 +01:00
|
|
|
/// C plugin display I-frame as a still picture.
|
|
|
|
extern void StillPicture(const uint8_t *, int);
|
2011-12-12 17:06:05 +01:00
|
|
|
/// C plugin poll if ready
|
|
|
|
extern int Poll(int);
|
2012-01-08 21:46:00 +01:00
|
|
|
/// C plugin flush output buffers
|
|
|
|
extern int Flush(int);
|
2011-12-07 15:05:38 +01:00
|
|
|
|
|
|
|
/// C plugin command line help
|
|
|
|
extern const char *CommandLineHelp(void);
|
|
|
|
/// C plugin process the command line arguments
|
|
|
|
extern int ProcessArgs(int, char *const[]);
|
|
|
|
|
2011-12-08 20:50:32 +01:00
|
|
|
/// C plugin exit + cleanup
|
|
|
|
extern void SoftHdDeviceExit(void);
|
2011-12-07 15:05:38 +01:00
|
|
|
/// C plugin start code
|
2012-03-02 00:05:03 +01:00
|
|
|
extern int Start(void);
|
2011-12-07 15:05:38 +01:00
|
|
|
/// C plugin stop code
|
|
|
|
extern void Stop(void);
|
2012-04-05 15:47:59 +02:00
|
|
|
/// C plugin house keeping
|
|
|
|
extern void Housekeeping(void);
|
2011-12-07 15:05:38 +01:00
|
|
|
/// C plugin main thread hook
|
|
|
|
extern void MainThreadHook(void);
|
|
|
|
|
2012-01-10 15:52:07 +01:00
|
|
|
/// Suspend plugin
|
2012-01-26 15:00:49 +01:00
|
|
|
extern void Suspend(int, int, int);
|
2012-01-10 15:52:07 +01:00
|
|
|
/// Resume plugin
|
|
|
|
extern void Resume(void);
|
2012-07-02 17:05:36 +02:00
|
|
|
|
|
|
|
/// Get decoder statistics
|
|
|
|
extern void GetStats(int *, int *, int *, int *);
|
2013-01-01 15:21:28 +01:00
|
|
|
/// C plugin scale video
|
|
|
|
extern void ScaleVideo(int, int, int, int);
|
2013-01-04 15:56:26 +01:00
|
|
|
|
2013-01-04 21:50:55 +01:00
|
|
|
/// Set Pip position
|
|
|
|
extern void PipSetPosition(int, int, int, int, int, int, int, int);
|
2013-01-04 15:56:26 +01:00
|
|
|
/// Pip start
|
|
|
|
extern void PipStart(int, int, int, int, int, int, int, int);
|
|
|
|
/// Pip stop
|
|
|
|
extern void PipStop(void);
|
|
|
|
/// Pip play video packet
|
|
|
|
extern int PipPlayVideo(const uint8_t *, int);
|
2013-02-11 16:53:51 +01:00
|
|
|
|
|
|
|
extern const char *X11DisplayName; ///< x11 display name
|
2011-12-07 15:05:38 +01:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|