18 Aug 2012 17:30
[PATCH 1/4] cabac: move some tables to cabac.h for sharing between h264 and hevc
From: Guillaume Martres <smarter@...> --- libavcodec/cabac.c | 16 ++++++++-------- libavcodec/cabac.h | 4 ++++ 2 files changed, 12 insertions(+), 8 deletions(-) diff --git a/libavcodec/cabac.c b/libavcodec/cabac.c index bd7d949..f51e79c 100644 --- a/libavcodec/cabac.c +++ b/libavcodec/cabac.c <at> <at> -54,7 +54,7 <at> <at> uint8_t ff_h264_cabac_tables[512 + 4*2*64 + 4*64 + 63] = { 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, }; -static const uint8_t lps_range[64][4]= { +const uint8_t ff_lps_range[64][4]= { {128,176,208,240}, {128,167,197,227}, {128,158,187,216}, {123,150,178,205}, {116,142,169,195}, {111,135,160,185}, {105,128,152,175}, {100,122,144,166}, { 95,116,137,158}, { 90,110,130,150}, { 85,104,123,142}, { 81, 99,117,135}, <at> <at> -75,7 +75,7 <at> <at> static const uint8_t lps_range[64][4]= { static uint8_t h264_mps_state[2 * 64]; -static const uint8_t mps_state[64]= { +const uint8_t ff_mps_state[64]= { 1, 2, 3, 4, 5, 6, 7, 8, 9,10,11,12,13,14,15,16, 17,18,19,20,21,22,23,24, <at> <at> -86,7 +86,7 <at> <at> static const uint8_t mps_state[64]= {(Continue reading)
RSS Feed