2012-11-11 04:56:15 +04:00
|
|
|
/**
|
|
|
|
* xrdp: A Remote Desktop Protocol server.
|
|
|
|
*
|
2013-06-08 21:51:53 +04:00
|
|
|
* Copyright (C) Laxmikant Rashinkar 2012-2013 LK.Rashinkar@gmail.com
|
2013-12-19 11:33:28 +04:00
|
|
|
* Copyright (C) Jay Sorg 2013 jay.sorg@gmail.com
|
2012-11-11 04:56:15 +04:00
|
|
|
*
|
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
|
|
* you may not use this file except in compliance with the License.
|
|
|
|
* You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*
|
|
|
|
* a program that uses xrdpapi and ffmpeg to redirect media streams
|
|
|
|
* to a FreeRDP client where it is decompressed and played locally
|
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __XRDPVR_H__
|
|
|
|
#define __XRDPVR_H__
|
|
|
|
|
2012-12-09 04:36:41 +04:00
|
|
|
#include <stdint.h>
|
|
|
|
|
2012-11-14 02:53:41 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
2012-12-09 04:36:41 +04:00
|
|
|
int xrdpvr_init_player(void *channel, int stream_id, char *filename);
|
|
|
|
int xrdpvr_deinit_player(void *channel, int stream_id);
|
|
|
|
int xrdpvr_play_media(void *channel, int stream_id, char *filename);
|
2013-12-19 11:33:28 +04:00
|
|
|
int xrdpvr_set_geometry(void *channel, int stream_id, int xpos, int ypos,
|
|
|
|
int width, int height);
|
|
|
|
int xrdpvr_set_video_format(void *channel, uint32_t stream_id, int format,
|
|
|
|
int width, int height);
|
|
|
|
int xrdpvr_set_audio_format(void *channel, uint32_t stream_id, int format,
|
|
|
|
char *extradata, int extradata_size,
|
|
|
|
int sample_rate, int bit_rate,
|
2013-11-08 23:39:31 +04:00
|
|
|
int channels, int block_align);
|
2013-12-19 11:33:28 +04:00
|
|
|
int xrdpvr_send_video_data(void *channel, uint32_t stream_id,
|
|
|
|
uint32_t data_len, uint8_t *data);
|
|
|
|
int xrdpvr_send_audio_data(void *channel, uint32_t stream_id,
|
|
|
|
uint32_t data_len, uint8_t *data);
|
2012-12-09 04:36:41 +04:00
|
|
|
int xrdpvr_create_metadata_file(void *channel, char *filename);
|
2013-12-19 11:33:28 +04:00
|
|
|
int xrdpvr_play_frame(void *channel, int stream_id, int *vdoTimeout,
|
|
|
|
int *audioTimeout);
|
2012-12-09 04:36:41 +04:00
|
|
|
void xrdpvr_get_media_duration(int64_t *start_time, int64_t *duration);
|
|
|
|
int xrdpvr_seek_media(int64_t pos, int backward);
|
2013-12-19 11:33:28 +04:00
|
|
|
int xrdpvr_get_frame(void **av_pkt_ret, int *is_video_frame,
|
|
|
|
int *delay_in_us);
|
2012-12-27 06:48:17 +04:00
|
|
|
int send_audio_pkt(void *channel, int stream_id, void *pkt_p);
|
|
|
|
int send_video_pkt(void *channel, int stream_id, void *pkt_p);
|
2013-07-20 04:34:39 +04:00
|
|
|
int xrdpvr_set_volume(void *channel, int volume);
|
2013-11-08 23:39:31 +04:00
|
|
|
int xrdpvr_send_init(void *channel);
|
2013-11-11 13:52:14 +04:00
|
|
|
int xrdpvr_read_ack(void *channel, int *frame);
|
2012-11-11 04:56:15 +04:00
|
|
|
|
2012-11-14 02:53:41 +04:00
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
2012-11-11 04:56:15 +04:00
|
|
|
#endif /* __XRDPVR_H__ */
|