mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-04-14 00:58:38 +02:00
dpcm: misc pretty-printing
This commit is contained in:
parent
1de8401c56
commit
4bad464e7f
@ -84,13 +84,15 @@ static const int interplay_delta_table[] = {
|
|||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
static const int sol_table_old[16] =
|
static const int sol_table_old[16] = {
|
||||||
{ 0x0, 0x1, 0x2 , 0x3, 0x6, 0xA, 0xF, 0x15,
|
0x0, 0x1, 0x2, 0x3, 0x6, 0xA, 0xF, 0x15,
|
||||||
-0x15, -0xF, -0xA, -0x6, -0x3, -0x2, -0x1, 0x0};
|
-0x15, -0xF, -0xA, -0x6, -0x3, -0x2, -0x1, 0x0
|
||||||
|
};
|
||||||
|
|
||||||
static const int sol_table_new[16] =
|
static const int sol_table_new[16] = {
|
||||||
{ 0x0, 0x1, 0x2, 0x3, 0x6, 0xA, 0xF, 0x15,
|
0x0, 0x1, 0x2, 0x3, 0x6, 0xA, 0xF, 0x15,
|
||||||
0x0, -0x1, -0x2, -0x3, -0x6, -0xA, -0xF, -0x15};
|
0x0, -0x1, -0x2, -0x3, -0x6, -0xA, -0xF, -0x15
|
||||||
|
};
|
||||||
|
|
||||||
static const int sol_table_16[128] = {
|
static const int sol_table_16[128] = {
|
||||||
0x000, 0x008, 0x010, 0x020, 0x030, 0x040, 0x050, 0x060, 0x070, 0x080,
|
0x000, 0x008, 0x010, 0x020, 0x030, 0x040, 0x050, 0x060, 0x070, 0x080,
|
||||||
@ -109,7 +111,6 @@ static const int sol_table_16[128] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
static av_cold int dpcm_decode_init(AVCodecContext *avctx)
|
static av_cold int dpcm_decode_init(AVCodecContext *avctx)
|
||||||
{
|
{
|
||||||
DPCMContext *s = avctx->priv_data;
|
DPCMContext *s = avctx->priv_data;
|
||||||
@ -130,7 +131,6 @@ static av_cold int dpcm_decode_init(AVCodecContext *avctx)
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
||||||
case CODEC_ID_SOL_DPCM:
|
case CODEC_ID_SOL_DPCM:
|
||||||
switch(avctx->codec_tag){
|
switch(avctx->codec_tag){
|
||||||
case 1:
|
case 1:
|
||||||
@ -162,8 +162,8 @@ static av_cold int dpcm_decode_init(AVCodecContext *avctx)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int dpcm_decode_frame(AVCodecContext *avctx,
|
|
||||||
void *data, int *data_size,
|
static int dpcm_decode_frame(AVCodecContext *avctx, void *data, int *data_size,
|
||||||
AVPacket *avpkt)
|
AVPacket *avpkt)
|
||||||
{
|
{
|
||||||
const uint8_t *buf = avpkt->data;
|
const uint8_t *buf = avpkt->data;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user