mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-01-03 05:10:03 +02:00
avcodec/h264dec: Move pack8to16 to its only user
Namely to h264_cabac.c. Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
b531b58b2c
commit
0ebfd64858
@ -1281,6 +1281,15 @@ void ff_h264_init_cabac_states(const H264Context *h, H264SliceContext *sl)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static av_always_inline uint16_t pack8to16(unsigned a, unsigned b)
|
||||||
|
{
|
||||||
|
#if HAVE_BIGENDIAN
|
||||||
|
return (b & 0xFF) + (a << 8);
|
||||||
|
#else
|
||||||
|
return (a & 0xFF) + (b << 8);
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
static int decode_cabac_field_decoding_flag(const H264Context *h, H264SliceContext *sl)
|
static int decode_cabac_field_decoding_flag(const H264Context *h, H264SliceContext *sl)
|
||||||
{
|
{
|
||||||
const int mbb_xy = sl->mb_xy - 2*h->mb_stride;
|
const int mbb_xy = sl->mb_xy - 2*h->mb_stride;
|
||||||
|
@ -685,15 +685,6 @@ static av_always_inline uint32_t pack16to32(unsigned a, unsigned b)
|
|||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static av_always_inline uint16_t pack8to16(unsigned a, unsigned b)
|
|
||||||
{
|
|
||||||
#if HAVE_BIGENDIAN
|
|
||||||
return (b & 0xFF) + (a << 8);
|
|
||||||
#else
|
|
||||||
return (a & 0xFF) + (b << 8);
|
|
||||||
#endif
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get the chroma qp.
|
* Get the chroma qp.
|
||||||
*/
|
*/
|
||||||
|
Loading…
Reference in New Issue
Block a user