Mercurial > libavcodec.hg
changeset 11896:47b770054db4 libavcodec
Rename PS bitstream reading functions to have a read_ prefix.
author | alexc |
---|---|
date | Sun, 20 Jun 2010 21:53:51 +0000 |
parents | 775714d113cd |
children | 697ab0e6d756 |
files | ps.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/ps.c Sun Jun 20 20:13:11 2010 +0000 +++ b/ps.c Sun Jun 20 21:53:51 2010 +0000 @@ -81,7 +81,7 @@ * @param dt 1: time delta-coded, 0: frequency delta-coded */ #define READ_PAR_DATA(PAR, OFFSET, MASK, ERR_CONDITION) \ -static int PAR ## _data(AVCodecContext *avctx, GetBitContext *gb, PSContext *ps, \ +static int read_ ## PAR ## _data(AVCodecContext *avctx, GetBitContext *gb, PSContext *ps, \ int8_t (*PAR)[PS_MAX_NR_IIDICC], int table_idx, int e, int dt) \ { \ int b, num = ps->nr_ ## PAR ## _par; \ @@ -116,7 +116,7 @@ READ_PAR_DATA(icc, huff_offset[table_idx], 0, ps->icc_par[e][b] > 7U) READ_PAR_DATA(ipdopd, 0, 0x07, 0) -static int ps_extension(GetBitContext *gb, PSContext *ps, int ps_extension_id) +static int ps_read_extension_data(GetBitContext *gb, PSContext *ps, int ps_extension_id) { int e; int count = get_bits_count(gb); @@ -128,9 +128,9 @@ if (ps->enable_ipdopd) { for (e = 0; e < ps->num_env; e++) { int dt = get_bits1(gb); - ipdopd_data(NULL, gb, ps, ps->ipd_par, dt ? huff_ipd_dt : huff_ipd_df, e, dt); + read_ipdopd_data(NULL, gb, ps, ps->ipd_par, dt ? huff_ipd_dt : huff_ipd_df, e, dt); dt = get_bits1(gb); - ipdopd_data(NULL, gb, ps, ps->opd_par, dt ? huff_opd_dt : huff_opd_df, e, dt); + read_ipdopd_data(NULL, gb, ps, ps->opd_par, dt ? huff_opd_dt : huff_opd_df, e, dt); } } skip_bits1(gb); //reserved_ps @@ -196,7 +196,7 @@ if (ps->enable_iid) { for (e = 0; e < ps->num_env; e++) { int dt = get_bits1(gb); - if (iid_data(avctx, gb, ps, ps->iid_par, huff_iid[2*dt+ps->iid_quant], e, dt)) + if (read_iid_data(avctx, gb, ps, ps->iid_par, huff_iid[2*dt+ps->iid_quant], e, dt)) goto err; } } else @@ -205,7 +205,7 @@ if (ps->enable_icc) for (e = 0; e < ps->num_env; e++) { int dt = get_bits1(gb); - if (icc_data(avctx, gb, ps, ps->icc_par, dt ? huff_icc_dt : huff_icc_df, e, dt)) + if (read_icc_data(avctx, gb, ps, ps->icc_par, dt ? huff_icc_dt : huff_icc_df, e, dt)) goto err; } else @@ -219,7 +219,7 @@ cnt *= 8; while (cnt > 7) { int ps_extension_id = get_bits(gb, 2); - cnt -= 2 + ps_extension(gb, ps, ps_extension_id); + cnt -= 2 + ps_read_extension_data(gb, ps, ps_extension_id); } if (cnt < 0) { av_log(avctx, AV_LOG_ERROR, "ps extension overflow %d", cnt);