Blame channels/tsmf/client/tsmf_media.h

Packit 1fb8d4
/**
Packit 1fb8d4
 * FreeRDP: A Remote Desktop Protocol Implementation
Packit 1fb8d4
 * Video Redirection Virtual Channel - Media Container
Packit 1fb8d4
 *
Packit 1fb8d4
 * Copyright 2010-2011 Vic Lee
Packit 1fb8d4
 * Copyright 2012 Hewlett-Packard Development Company, L.P.
Packit 1fb8d4
 * Copyright 2015 Thincast Technologies GmbH
Packit 1fb8d4
 * Copyright 2015 DI (FH) Martin Haimberger <martin.haimberger@thincast.com>
Packit 1fb8d4
 *
Packit 1fb8d4
 * Licensed under the Apache License, Version 2.0 (the "License");
Packit 1fb8d4
 * you may not use this file except in compliance with the License.
Packit 1fb8d4
 * You may obtain a copy of the License at
Packit 1fb8d4
 *
Packit 1fb8d4
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 1fb8d4
 *
Packit 1fb8d4
 * Unless required by applicable law or agreed to in writing, software
Packit 1fb8d4
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 1fb8d4
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 1fb8d4
 * See the License for the specific language governing permissions and
Packit 1fb8d4
 * limitations under the License.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
/**
Packit 1fb8d4
 * The media container maintains a global list of presentations, and a list of
Packit 1fb8d4
 * streams in each presentation.
Packit 1fb8d4
 */
Packit 1fb8d4
Packit 1fb8d4
#ifndef FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H
Packit 1fb8d4
#define FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H
Packit 1fb8d4
Packit 1fb8d4
#include <freerdp/freerdp.h>
Packit 1fb8d4
Packit 1fb8d4
typedef struct _TSMF_PRESENTATION TSMF_PRESENTATION;
Packit 1fb8d4
Packit 1fb8d4
typedef struct _TSMF_STREAM TSMF_STREAM;
Packit 1fb8d4
Packit 1fb8d4
typedef struct _TSMF_SAMPLE TSMF_SAMPLE;
Packit 1fb8d4
Packit 1fb8d4
TSMF_PRESENTATION* tsmf_presentation_new(const BYTE* guid,
Packit Service 5a9772
                                         IWTSVirtualChannelCallback* pChannelCallback);
Packit 1fb8d4
TSMF_PRESENTATION* tsmf_presentation_find_by_id(const BYTE* guid);
Packit 1fb8d4
BOOL tsmf_presentation_start(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
BOOL tsmf_presentation_stop(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
UINT tsmf_presentation_sync(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
BOOL tsmf_presentation_paused(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
BOOL tsmf_presentation_restarted(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
BOOL tsmf_presentation_volume_changed(TSMF_PRESENTATION* presentation, UINT32 newVolume,
Packit 1fb8d4
                                      UINT32 muted);
Packit Service 5a9772
BOOL tsmf_presentation_set_geometry_info(TSMF_PRESENTATION* presentation, UINT32 x, UINT32 y,
Packit Service 5a9772
                                         UINT32 width, UINT32 height, int num_rects,
Packit Service 5a9772
                                         RDP_RECT* rects);
Packit Service 5a9772
void tsmf_presentation_set_audio_device(TSMF_PRESENTATION* presentation, const char* name,
Packit Service 5a9772
                                        const char* device);
Packit 1fb8d4
void tsmf_presentation_free(TSMF_PRESENTATION* presentation);
Packit 1fb8d4
Packit 1fb8d4
TSMF_STREAM* tsmf_stream_new(TSMF_PRESENTATION* presentation, UINT32 stream_id,
Packit 1fb8d4
                             rdpContext* rdpcontext);
Packit 1fb8d4
TSMF_STREAM* tsmf_stream_find_by_id(TSMF_PRESENTATION* presentation, UINT32 stream_id);
Packit 1fb8d4
BOOL tsmf_stream_set_format(TSMF_STREAM* stream, const char* name, wStream* s);
Packit 1fb8d4
void tsmf_stream_end(TSMF_STREAM* stream, UINT32 message_id,
Packit 1fb8d4
                     IWTSVirtualChannelCallback* pChannelCallback);
Packit 1fb8d4
void tsmf_stream_free(TSMF_STREAM* stream);
Packit 1fb8d4
BOOL tsmf_stream_flush(TSMF_STREAM* stream);
Packit 1fb8d4
Packit 1fb8d4
BOOL tsmf_stream_push_sample(TSMF_STREAM* stream, IWTSVirtualChannelCallback* pChannelCallback,
Packit Service 5a9772
                             UINT32 sample_id, UINT64 start_time, UINT64 end_time, UINT64 duration,
Packit Service 5a9772
                             UINT32 extensions, UINT32 data_size, BYTE* data);
Packit 1fb8d4
Packit 1fb8d4
BOOL tsmf_media_init(void);
Packit 1fb8d4
void tsmf_stream_start_threads(TSMF_STREAM* stream);
Packit 1fb8d4
Packit 1fb8d4
#endif /* FREERDP_CHANNEL_TSMF_CLIENT_MEDIA_H */