armbox eplayer: remove writeReverseData (unused)

This commit is contained in:
max_10
2018-01-04 00:56:28 +01:00
committed by Thilo Graf
parent d2bb71dcab
commit e6c29f2545
33 changed files with 11 additions and 100 deletions

View File

@@ -39,7 +39,6 @@ typedef struct Writer_s
{
int (* reset)();
int (* writeData)(void *);
int (* writeReverseData)(void *);
WriterCaps_t *caps;
} Writer_t;

View File

@@ -333,7 +333,6 @@ struct Writer_s WriterAudioAAC =
{
&reset,
&writeDataADTS,
NULL,
&caps
};
@@ -351,7 +350,6 @@ struct Writer_s WriterAudioAACLATM =
{
&reset,
&writeDataLATM,
NULL,
&caps_aac_latm
};
@@ -369,6 +367,5 @@ struct Writer_s WriterAudioAACPLUS =
{
&reset,
&writeDataADTS,
NULL,
&caps_aacplus
};

View File

@@ -147,7 +147,6 @@ struct Writer_s WriterAudioAC3 =
{
&reset,
&writeData,
NULL,
&caps_ac3
};
@@ -165,6 +164,5 @@ struct Writer_s WriterAudioEAC3 =
{
&reset,
&writeData,
NULL,
&caps_eac3
};

View File

@@ -169,6 +169,5 @@ struct Writer_s WriterAudioAMR =
{
&reset,
&writeData,
NULL,
&caps_amr
};

View File

@@ -190,6 +190,5 @@ struct Writer_s WriterVideoDIVX3 =
{
&reset,
&writeData,
NULL,
&divix3_caps
};

View File

@@ -173,6 +173,5 @@ struct Writer_s WriterAudioDTS =
{
&reset,
&writeData,
NULL,
&caps
};

View File

@@ -148,7 +148,6 @@ struct Writer_s WriterVideoH263 =
{
&reset,
&writeData,
NULL,
&caps_h263
};
@@ -166,6 +165,5 @@ struct Writer_s WriterVideoFLV =
{
&reset,
&writeData,
NULL,
&caps_flv
};

View File

@@ -413,11 +413,6 @@ static int writeData(void *_call)
return len;
}
static int writeReverseData(void *_call)
{
WriterAVCallData_t *call = (WriterAVCallData_t *) _call;
return 0;
}
/* ***************************** */
/* Writer Definition */
/* ***************************** */
@@ -436,6 +431,5 @@ struct Writer_s WriterVideoH264 =
{
&reset,
&writeData,
&writeReverseData,
&caps
};

View File

@@ -282,11 +282,6 @@ static int writeData(void *_call)
return len;
}
static int writeReverseData(void *_call)
{
WriterAVCallData_t *call = (WriterAVCallData_t *) _call;
return 0;
}
/* ***************************** */
/* Writer Definition */
/* ***************************** */
@@ -305,6 +300,5 @@ struct Writer_s WriterVideoH265 =
{
&reset,
&writeData,
&writeReverseData,
&caps
};

View File

@@ -261,6 +261,5 @@ struct Writer_s WriterAudioLPCM =
{
&reset,
&writeData, /* writeDataLPCM */
NULL,
&caps_lpcm
};

View File

@@ -147,7 +147,6 @@ struct Writer_s WriterAudioMP3 =
{
&reset,
&writeData,
NULL,
&caps_mp3
};
@@ -165,7 +164,6 @@ struct Writer_s WriterAudioMPEGL3 =
{
&reset,
&writeData,
NULL,
&caps_mpegl3
};
@@ -183,6 +181,5 @@ struct Writer_s WriterAudioVORBIS =
{
&reset,
&writeData,
NULL,
&caps_vorbis
};

View File

@@ -157,7 +157,6 @@ struct Writer_s WriterVideoMPEG2 =
{
&reset,
&writeData,
NULL,
&caps
};
@@ -175,6 +174,5 @@ struct Writer_s WriterVideoMPEG1 =
{
&reset,
&writeData,
NULL,
&mpg1_caps
};

View File

@@ -159,6 +159,5 @@ struct Writer_s WriterVideoMPEG4 =
{
&reset,
&writeData,
NULL,
&mpeg4p2_caps
};

View File

@@ -288,7 +288,6 @@ struct Writer_s WriterAudioPCM =
{
&reset,
&writeData,
NULL,
&caps_pcm
};
@@ -306,6 +305,5 @@ struct Writer_s WriterAudioIPCM =
{
&reset,
&writeData, /* writeDataIPCM */
NULL,
&caps_ipcm
};

View File

@@ -194,6 +194,5 @@ struct Writer_s WriterVideoVC1 =
{
&reset,
&writeData,
NULL,
&caps
};

View File

@@ -167,7 +167,6 @@ struct Writer_s WriterVideoVP6 =
{
&reset,
&writeDataVP6,
NULL,
&capsVP6
};
@@ -185,7 +184,6 @@ struct Writer_s WriterVideoVP8 =
{
&reset,
&writeDataVP89,
NULL,
&capsVP8
};
@@ -203,7 +201,6 @@ struct Writer_s WriterVideoVP9 =
{
&reset,
&writeDataVP89,
NULL,
&capsVP9
};
@@ -221,6 +218,5 @@ struct Writer_s WriterVideoSPARK =
{
&reset,
&writeDataVP89,
NULL,
&capsSPARK
};

View File

@@ -178,7 +178,6 @@ struct Writer_s WriterAudioWMAPRO =
{
&reset,
&writeData,
NULL,
&capsWMAPRO
};
@@ -196,6 +195,5 @@ struct Writer_s WriterAudioWMA =
{
&reset,
&writeData,
NULL,
&capsWMA
};

View File

@@ -201,6 +201,5 @@ struct Writer_s WriterVideoWMV =
{
&reset,
&writeData,
NULL,
&caps
};

View File

@@ -22,6 +22,7 @@
/* ***************************** */
/* Includes */
/* ***************************** */
#include <stdlib.h>
#include <string.h>
#include <errno.h>

View File

@@ -330,7 +330,6 @@ struct Writer_s WriterAudioAAC =
{
&reset,
&writeDataADTS,
NULL,
&caps
};
@@ -348,7 +347,6 @@ struct Writer_s WriterAudioAACLATM =
{
&reset,
&writeDataLATM,
NULL,
&caps_aac_latm
};
@@ -366,6 +364,5 @@ struct Writer_s WriterAudioAACPLUS =
{
&reset,
&writeDataADTS,
NULL,
&caps_aacplus
};

View File

@@ -142,7 +142,6 @@ struct Writer_s WriterAudioAC3 =
{
&reset,
&writeData,
NULL,
&caps_ac3
};
@@ -160,6 +159,5 @@ struct Writer_s WriterAudioEAC3 =
{
&reset,
&writeData,
NULL,
&caps_eac3
};

View File

@@ -187,7 +187,6 @@ struct Writer_s WriterVideoMPEG4 =
{
&reset,
&writeData,
NULL,
&mpeg4p2_caps
};
@@ -195,7 +194,6 @@ struct Writer_s WriterVideoMSCOMP =
{
&reset,
&writeData,
NULL,
&mpeg4p2_caps
};
@@ -213,7 +211,6 @@ struct Writer_s WriterVideoFOURCC =
{
&reset,
&writeData,
NULL,
&fourcc_caps
};
@@ -231,6 +228,5 @@ struct Writer_s WriterVideoDIVX =
{
&reset,
&writeData,
NULL,
&divx_caps
};

View File

@@ -213,7 +213,6 @@ struct Writer_s WriterVideoMPEG4 =
{
&reset,
&writeData,
NULL,
&mpeg4p2_caps
};
@@ -221,7 +220,6 @@ struct Writer_s WriterVideoMSCOMP =
{
&reset,
&writeData,
NULL,
&mpeg4p2_caps
};
@@ -239,7 +237,6 @@ struct Writer_s WriterVideoFOURCC =
{
&reset,
&writeData,
NULL,
&fourcc_caps
};
@@ -257,6 +254,5 @@ struct Writer_s WriterVideoDIVX =
{
&reset,
&writeData,
NULL,
&divx_caps
};

View File

@@ -171,6 +171,5 @@ struct Writer_s WriterAudioDTS =
{
&reset,
&writeData,
NULL,
&caps
};

View File

@@ -150,7 +150,6 @@ struct Writer_s WriterVideoH263 =
{
&reset,
&writeData,
NULL,
&caps_h263
};
@@ -168,6 +167,5 @@ struct Writer_s WriterVideoFLV =
{
&reset,
&writeData,
NULL,
&caps_flv
};

View File

@@ -105,6 +105,7 @@ static int avc3 = 0;
/* ***************************** */
/* MISC Functions */
/* ***************************** */
// Please see: https://bugzilla.mozilla.org/show_bug.cgi?id=1105771
static int32_t UpdateExtraData(uint8_t **ppExtraData, uint32_t *pExtraDataSize, uint8_t *pData, uint32_t dataSize)
{
@@ -434,28 +435,6 @@ static int32_t writeData(void *_call)
return len;
}
static int writeReverseData(void *_call)
{
WriterAVCallData_t *call = (WriterAVCallData_t *) _call;
h264_printf(10, "\n");
if (call == NULL)
{
h264_err("call data is NULL...\n");
return 0;
}
h264_printf(10, "VideoPts %lld\n", call->Pts);
if ((call->data == NULL) || (call->len <= 0))
{
h264_err("NULL Data. ignoring...\n");
return 0;
}
if (call->fd < 0)
{
h264_err("file pointer < 0. ignoring ...\n");
return 0;
}
return 0;
}
/* ***************************** */
/* Writer Definition */
/* ***************************** */
@@ -474,6 +453,5 @@ struct Writer_s WriterVideoH264 =
{
&reset,
&writeData,
&writeReverseData,
&caps
};

View File

@@ -140,7 +140,6 @@ struct Writer_s WriterAudioMP3 =
{
&reset,
&writeData,
NULL,
&caps_mp3
};
@@ -156,7 +155,6 @@ struct Writer_s WriterAudioMPEGL3 =
{
&reset,
&writeData,
NULL,
&caps_mpegl3
};
@@ -172,6 +170,5 @@ struct Writer_s WriterAudioVORBIS =
{
&reset,
&writeData,
NULL,
&caps_vorbis
};

View File

@@ -158,7 +158,6 @@ struct Writer_s WriterVideoMPEG2 =
{
&reset,
&writeData,
NULL,
&caps
};
@@ -176,6 +175,5 @@ struct Writer_s WriterVideoMPEGH264 =
{
&reset,
&writeData,
NULL,
&h264_caps
};

View File

@@ -333,7 +333,6 @@ struct Writer_s WriterAudioPCM =
{
&reset,
&writeData,
NULL,
&caps_pcm
};
@@ -349,6 +348,5 @@ struct Writer_s WriterAudioIPCM =
{
&reset,
&writeData,
NULL,
&caps_ipcm
};

View File

@@ -254,6 +254,5 @@ struct Writer_s WriterVideoVC1 =
{
&reset,
&writeData,
NULL,
&caps
};

View File

@@ -141,6 +141,5 @@ struct Writer_s WriterAudioVORBIS =
{
&reset,
&writeData,
NULL,
&caps_vorbis
};

View File

@@ -167,7 +167,6 @@ struct Writer_s WriterAudioWMAPRO =
{
&reset,
&writeData,
NULL,
&capsWMAPRO
};
@@ -185,6 +184,5 @@ struct Writer_s WriterAudioWMA =
{
&reset,
&writeData,
NULL,
&capsWMA
};

View File

@@ -248,6 +248,5 @@ struct Writer_s WriterVideoWMV =
{
&reset,
&writeData,
NULL,
&caps
};