mirror of
https://projects.vdr-developer.org/git/vdr-plugin-softhddevice.git
synced 2023-10-10 19:16:51 +02:00
90 lines
2.8 KiB
C
90 lines
2.8 KiB
C
///
|
|
/// @file softhddev.h @brief software HD device plugin header file.
|
|
///
|
|
/// Copyright (c) 2011 - 2012 by Johns. All Rights Reserved.
|
|
///
|
|
/// 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
|
|
extern void FeedKeyPress(const char *, const char *, int, int);
|
|
|
|
/// 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
|
|
extern int PlayAudio(const uint8_t *, int, uint8_t);
|
|
/// C plugin set audio volume
|
|
extern void SetVolumeDevice(int);
|
|
|
|
/// C plugin play video packet
|
|
extern int PlayVideo(const uint8_t *, int);
|
|
/// C plugin play TS video packet
|
|
extern void PlayTsVideo(const uint8_t *, int);
|
|
/// C plugin grab an image
|
|
extern uint8_t *GrabImage(int *, int, int, int, int);
|
|
|
|
/// C plugin set play mode
|
|
extern void SetPlayMode(void);
|
|
/// C plugin set trick speed
|
|
extern void TrickSpeed(int);
|
|
/// 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);
|
|
/// C plugin mute audio
|
|
extern void Mute(void);
|
|
/// C plugin display I-frame as a still picture.
|
|
extern void StillPicture(const uint8_t *, int);
|
|
/// C plugin poll if ready
|
|
extern int Poll(int);
|
|
/// C plugin flush output buffers
|
|
extern int Flush(int);
|
|
|
|
/// C plugin command line help
|
|
extern const char *CommandLineHelp(void);
|
|
/// C plugin process the command line arguments
|
|
extern int ProcessArgs(int, char *const[]);
|
|
|
|
/// C plugin exit + cleanup
|
|
extern void SoftHdDeviceExit(void);
|
|
/// C plugin start code
|
|
extern void Start(void);
|
|
/// C plugin stop code
|
|
extern void Stop(void);
|
|
/// C plugin main thread hook
|
|
extern void MainThreadHook(void);
|
|
|
|
/// Suspend plugin
|
|
extern void Suspend(int, int, int);
|
|
/// Resume plugin
|
|
extern void Resume(void);
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|