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.
|
2023-02-09 10:32:36 -05:00
|
|
|
*
|
|
|
|
|
*=================================================================
|
|
|
|
|
* modified by fduncanh 2022-2023
|
2020-04-15 16:24:10 +03:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
#ifndef AIRPLAYSERVER_STREAM_H
|
|
|
|
|
#define AIRPLAYSERVER_STREAM_H
|
|
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2022-05-03 16:29:08 -04:00
|
|
|
#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;
|
2023-02-10 14:05:08 -05:00
|
|
|
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;
|
2023-02-10 14:05:08 -05:00
|
|
|
int sync_status;
|
|
|
|
|
uint64_t ntp_time_local;
|
|
|
|
|
uint64_t ntp_time_remote;
|
2025-08-31 02:22:50 -04:00
|
|
|
uint32_t rtp_time;
|
2022-06-15 13:27:44 -04:00
|
|
|
unsigned short seqnum;
|
2022-05-01 17:54:37 -04:00
|
|
|
} audio_decode_struct;
|
2020-04-15 16:24:10 +03:00
|
|
|
|
|
|
|
|
#endif //AIRPLAYSERVER_STREAM_H
|