mdec: cosmetics, reformat
This commit is contained in:
@@ -119,7 +119,8 @@ static inline int mdec_decode_block_intra(MDECContext *a, int16_t *block, int n)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int decode_mb(MDECContext *a, int16_t block[6][64]){
|
||||
static inline int decode_mb(MDECContext *a, int16_t block[6][64])
|
||||
{
|
||||
int i;
|
||||
const int block_index[6] = { 5, 4, 0, 1, 2, 3 };
|
||||
|
||||
@@ -133,7 +134,8 @@ static inline int decode_mb(MDECContext *a, int16_t block[6][64]){
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void idct_put(MDECContext *a, int mb_x, int mb_y){
|
||||
static inline void idct_put(MDECContext *a, int mb_x, int mb_y)
|
||||
{
|
||||
int16_t (*block)[64] = a->block;
|
||||
int linesize = a->picture.linesize[0];
|
||||
|
||||
@@ -156,9 +158,9 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
void *data, int *got_frame,
|
||||
AVPacket *avpkt)
|
||||
{
|
||||
MDECContext * const a = avctx->priv_data;
|
||||
const uint8_t *buf = avpkt->data;
|
||||
int buf_size = avpkt->size;
|
||||
MDECContext * const a = avctx->priv_data;
|
||||
AVFrame *picture = data;
|
||||
AVFrame * const p = &a->picture;
|
||||
int i;
|
||||
@@ -189,9 +191,7 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
a->qscale = get_bits(&a->gb, 16);
|
||||
a->version = get_bits(&a->gb, 16);
|
||||
|
||||
a->last_dc[0]=
|
||||
a->last_dc[1]=
|
||||
a->last_dc[2]= 128;
|
||||
a->last_dc[0] = a->last_dc[1] = a->last_dc[2] = 128;
|
||||
|
||||
for (a->mb_x = 0; a->mb_x < a->mb_width; a->mb_x++) {
|
||||
for (a->mb_y = 0; a->mb_y < a->mb_height; a->mb_y++) {
|
||||
@@ -211,7 +211,8 @@ static int decode_frame(AVCodecContext *avctx,
|
||||
return (get_bits_count(&a->gb) + 31) / 32 * 4;
|
||||
}
|
||||
|
||||
static av_cold int decode_init(AVCodecContext *avctx){
|
||||
static av_cold int decode_init(AVCodecContext *avctx)
|
||||
{
|
||||
MDECContext * const a = avctx->priv_data;
|
||||
AVFrame *p = &a->picture;
|
||||
|
||||
@@ -234,7 +235,8 @@ static av_cold int decode_init(AVCodecContext *avctx){
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold int decode_init_thread_copy(AVCodecContext *avctx){
|
||||
static av_cold int decode_init_thread_copy(AVCodecContext *avctx)
|
||||
{
|
||||
MDECContext * const a = avctx->priv_data;
|
||||
AVFrame *p = &a->picture;
|
||||
|
||||
@@ -246,7 +248,8 @@ static av_cold int decode_init_thread_copy(AVCodecContext *avctx){
|
||||
return 0;
|
||||
}
|
||||
|
||||
static av_cold int decode_end(AVCodecContext *avctx){
|
||||
static av_cold int decode_end(AVCodecContext *avctx)
|
||||
{
|
||||
MDECContext * const a = avctx->priv_data;
|
||||
|
||||
if (a->picture.data[0])
|
||||
|
Reference in New Issue
Block a user