libeplayer3-arm: insert original blank lines from exteplayer3.git, for better merge

This commit is contained in:
max_10
2018-04-10 11:31:57 +02:00
committed by Thilo Graf
parent d00c87b361
commit 704bcc5a21
79 changed files with 2070 additions and 117 deletions

View File

@@ -29,6 +29,7 @@ static inline int HasADTSHeader(uint8_t *data, int size)
{
return 1;
}
return 0;
}

View File

@@ -35,6 +35,7 @@ typedef enum
CT_VP9
} video_codec_type_t;
typedef enum
{
STREAMTYPE_UNKNOWN = -1,
@@ -56,6 +57,8 @@ typedef enum
STREAMTYPE_SPARK = 21,
} video_stream_type_t;
typedef enum
{
AUDIOTYPE_UNKNOWN = -1,
@@ -75,4 +78,8 @@ typedef enum
AUDIOTYPE_RAW = 0xf
} audio_stream_type_t;
#endif /* H_DVB_BCM_H */

View File

@@ -6,6 +6,7 @@
static inline void Hexdump(unsigned char *Data, int length)
{
int k;
for (k = 0; k < length; k++)
{
@@ -14,6 +15,7 @@ static inline void Hexdump(unsigned char *Data, int length)
printf("\n");
}
printf("\n");
}
#endif

View File

@@ -94,6 +94,7 @@ typedef struct TrackDescription_s
int32_t aspect_ratio_num;
int32_t aspect_ratio_den;
int progressive;
} TrackDescription_t;
struct Context_s;
@@ -104,6 +105,7 @@ typedef struct Manager_s
char *Name;
int (* Command)(Context_t *, ManagerCmd_t, void *);
char **Capabilities;
} Manager_t;
typedef struct ManagerHandler_s

View File

@@ -56,14 +56,17 @@ static inline char *basename(char *name)
{
int i = 0;
int pos = 0;
while (name[i] != 0)
{
if (name[i] == '/')
pos = i;
i++;
}
if (name[pos] == '/')
pos++;
return name + pos;
}
@@ -73,6 +76,7 @@ static inline char *dirname(char *name)
static char path[100];
uint32_t i = 0;
int32_t pos = 0;
while ((name[i] != 0) && (i < sizeof(path)))
{
if (name[i] == '/')
@@ -82,8 +86,10 @@ static inline char *dirname(char *name)
path[i] = name[i];
i++;
}
path[i] = 0;
path[pos] = 0;
return path;
}

View File

@@ -74,6 +74,7 @@ typedef struct Output_s
int32_t (* Command)(Context_t *, OutputCmd_t, void *);
int32_t (* Write)(Context_t *, void *);
char **Capabilities;
} Output_t;
extern Output_t LinuxDvbOutput;

View File

@@ -12,8 +12,10 @@
#define PES_START_CODE_RESERVED_4 0xfd
#define PES_VERSION_FAKE_START_CODE 0x31
#define MAX_PES_PACKET_SIZE (65535)
/* start codes */
#define PCM_PES_START_CODE 0xbd
#define PRIVATE_STREAM_1_PES_START_CODE 0xbd

View File

@@ -92,6 +92,7 @@ typedef enum
VIDEO_ENCODING_PRIVATE
} video_encoding_t;
/*
* List of possible audio encodings - used to select frame parser and codec.
*/
@@ -198,6 +199,7 @@ typedef struct dvb_play_info_s
typedef dvb_play_info_t video_play_info_t;
typedef dvb_play_info_t audio_play_info_t;
typedef enum
{
#define DVB_OPTION_VALUE_DISABLE 0
@@ -283,6 +285,7 @@ typedef enum
// Legacy typo correction
#define DVP_OPTION_H264_FORCE_PIC_ORDER_CNT_IGNORE_DPB_DISPLAY_FRAME_ORDERING DVB_OPTION_H264_FORCE_PIC_ORDER_CNT_IGNORE_DPB_DISPLAY_FRAME_ORDERING
typedef dvb_option_t video_option_t;
/* Decoder commands */
@@ -293,6 +296,7 @@ typedef dvb_option_t video_option_t;
#define VIDEO_CMD_SET_OPTION (4)
#define VIDEO_CMD_GET_OPTION (5)
/* Flags for VIDEO_CMD_FREEZE */
#define VIDEO_CMD_FREEZE_TO_BLACK (1 << 0)

View File

@@ -26,6 +26,8 @@ typedef struct
ssize_t (* WriteV) (int, const struct iovec *, size_t);
} WriterAVCallData_t;
typedef struct WriterCaps_s
{
char *name;
@@ -88,6 +90,6 @@ Writer_t *getDefaultVideoWriter();
Writer_t *getDefaultAudioWriter();
ssize_t write_with_retry(int fd, const void *buf, size_t size);
ssize_t writev_with_retry(int fd, const struct iovec *iov, size_t ic);
ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, const void *buf, size_t size);
ssize_t WriteWithRetry(Context_t *context, int pipefd, int fd, const void *buf, size_t size);
#endif