Files
UxPlay/lib/stream.h

45 lines
1.2 KiB
C
Raw Normal View History

2020-04-15 16:24:10 +03:00
/*
* Copyright (c) 2019 dsafa22, All Rights Reserved.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
*=================================================================
* modified by fduncanh 2022-2023
2020-04-15 16:24:10 +03:00
*/
#ifndef AIRPLAYSERVER_STREAM_H
#define AIRPLAYSERVER_STREAM_H
#include <stdint.h>
#include <stdbool.h>
2020-04-15 16:24:10 +03:00
typedef struct {
2024-09-17 18:12:40 -04:00
bool is_h265;
2022-04-16 20:12:30 -04:00
int nal_count;
2020-04-15 16:24:10 +03:00
unsigned char *data;
int data_len;
uint64_t ntp_time_local;
uint64_t ntp_time_remote;
2024-09-17 18:12:40 -04:00
} video_decode_struct;
2020-04-15 16:24:10 +03:00
typedef struct {
unsigned char *data;
2023-02-12 18:03:03 -05:00
unsigned char ct;
2020-04-15 16:24:10 +03:00
int data_len;
int sync_status;
uint64_t ntp_time_local;
uint64_t ntp_time_remote;
uint32_t rtp_time;
2022-06-15 13:27:44 -04:00
unsigned short seqnum;
} audio_decode_struct;
2020-04-15 16:24:10 +03:00
#endif //AIRPLAYSERVER_STREAM_H