mirror of
https://github.com/tuxbox-neutrino/libstb-hal.git
synced 2025-08-28 07:51:21 +02:00
libeplayer3-arm: Code formatting
This commit is contained in:
@@ -25,7 +25,7 @@
|
||||
static inline int HasADTSHeader(uint8_t *data, int size)
|
||||
{
|
||||
if (size >= AAC_HEADER_LENGTH && 0xFF == data[0] && 0xF0 == 0xF0 & data[1] &&
|
||||
size == ((data[3] & 0x3) << 11 | data[4] << 3 | data[5] >> 5))
|
||||
size == ((data[3] & 0x3) << 11 | data[4] << 3 | data[5] >> 5))
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
@@ -1,7 +1,7 @@
|
||||
#ifndef COMMON_H_
|
||||
#define COMMON_H_
|
||||
|
||||
#include<stdint.h>
|
||||
#include <stdint.h>
|
||||
|
||||
#include "container.h"
|
||||
#include "output.h"
|
||||
|
@@ -86,7 +86,6 @@ typedef struct TrackDescription_s
|
||||
int32_t aspect_ratio_num;
|
||||
int32_t aspect_ratio_den;
|
||||
int progressive;
|
||||
|
||||
} TrackDescription_t;
|
||||
|
||||
typedef struct Manager_s
|
||||
@@ -94,7 +93,6 @@ typedef struct Manager_s
|
||||
char *Name;
|
||||
int (* Command)(/*Context_t*/void *, ManagerCmd_t, void *);
|
||||
char **Capabilities;
|
||||
|
||||
} Manager_t;
|
||||
|
||||
typedef struct ManagerHandler_s
|
||||
|
@@ -15,16 +15,16 @@
|
||||
|
||||
typedef struct BitPacker_s
|
||||
{
|
||||
uint8_t *Ptr; /* write pointer */
|
||||
uint32_t BitBuffer; /* bitreader shifter */
|
||||
int32_t Remaining; /* number of remaining in the shifter */
|
||||
uint8_t *Ptr; /* write pointer */
|
||||
uint32_t BitBuffer; /* bitreader shifter */
|
||||
int32_t Remaining; /* number of remaining in the shifter */
|
||||
} BitPacker_t;
|
||||
|
||||
/* ***************************** */
|
||||
/* Makros/Constants */
|
||||
/* ***************************** */
|
||||
|
||||
#define INVALID_PTS_VALUE 0x200000000ull
|
||||
#define INVALID_PTS_VALUE 0x200000000ull
|
||||
|
||||
/* ***************************** */
|
||||
/* Prototypes */
|
||||
@@ -96,16 +96,16 @@ static inline int32_t IsDreambox()
|
||||
static inline uint32_t ReadUint32(uint8_t *buffer)
|
||||
{
|
||||
uint32_t num = (uint32_t)buffer[0] << 24 |
|
||||
(uint32_t)buffer[1] << 16 |
|
||||
(uint32_t)buffer[2] << 8 |
|
||||
(uint32_t)buffer[3];
|
||||
(uint32_t)buffer[1] << 16 |
|
||||
(uint32_t)buffer[2] << 8 |
|
||||
(uint32_t)buffer[3];
|
||||
return num;
|
||||
}
|
||||
|
||||
static inline uint16_t ReadUInt16(uint8_t *buffer)
|
||||
{
|
||||
uint16_t num = (uint16_t)buffer[0] << 8 |
|
||||
(uint16_t)buffer[1];
|
||||
(uint16_t)buffer[1];
|
||||
return num;
|
||||
}
|
||||
|
||||
|
@@ -2,6 +2,7 @@
|
||||
#define OUTPUT_H_
|
||||
|
||||
#include <stdio.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum
|
||||
{
|
||||
@@ -69,7 +70,6 @@ typedef struct Output_s
|
||||
int32_t (* Command)(/*Context_t*/void *, OutputCmd_t, void *);
|
||||
int32_t (* Write)(/*Context_t*/void *, void *privateData);
|
||||
char **Capabilities;
|
||||
|
||||
} Output_t;
|
||||
|
||||
extern Output_t LinuxDvbOutput;
|
||||
|
@@ -3,7 +3,28 @@
|
||||
#include <sys/types.h>
|
||||
#include <stdint.h>
|
||||
|
||||
typedef enum {PLAYBACK_OPEN, PLAYBACK_CLOSE, PLAYBACK_PLAY, PLAYBACK_STOP, PLAYBACK_PAUSE, PLAYBACK_CONTINUE, PLAYBACK_FLUSH, PLAYBACK_TERM, PLAYBACK_FASTFORWARD, PLAYBACK_SEEK, PLAYBACK_SEEK_ABS, PLAYBACK_PTS, PLAYBACK_LENGTH, PLAYBACK_SWITCH_AUDIO, PLAYBACK_SWITCH_SUBTITLE, PLAYBACK_INFO, PLAYBACK_SLOWMOTION, PLAYBACK_FASTBACKWARD, PLAYBACK_GET_FRAME_COUNT, PLAYBACK_METADATA} PlaybackCmd_t;
|
||||
typedef enum {
|
||||
PLAYBACK_OPEN,
|
||||
PLAYBACK_CLOSE,
|
||||
PLAYBACK_PLAY,
|
||||
PLAYBACK_STOP,
|
||||
PLAYBACK_PAUSE,
|
||||
PLAYBACK_CONTINUE,
|
||||
PLAYBACK_FLUSH,
|
||||
PLAYBACK_TERM,
|
||||
PLAYBACK_FASTFORWARD,
|
||||
PLAYBACK_SEEK,
|
||||
PLAYBACK_SEEK_ABS,
|
||||
PLAYBACK_PTS,
|
||||
PLAYBACK_LENGTH,
|
||||
PLAYBACK_SWITCH_AUDIO,
|
||||
PLAYBACK_SWITCH_SUBTITLE,
|
||||
PLAYBACK_INFO,
|
||||
PLAYBACK_SLOWMOTION,
|
||||
PLAYBACK_FASTBACKWARD,
|
||||
PLAYBACK_GET_FRAME_COUNT,
|
||||
PLAYBACK_METADATA
|
||||
} PlaybackCmd_t;
|
||||
|
||||
typedef struct PlaybackHandler_s
|
||||
{
|
||||
|
Reference in New Issue
Block a user