else return code - 3;
}
+#ifdef CONFIG_ENCODERS
+
static inline void put_level(PutBitContext *pb, int level){
unsigned int index= level + 3;
}
}
+#endif //CONFIG_ENCODERS
+
static inline int decode_block(ASV1Context *a, DCTELEM block[64]){
int i;
return 0;
}
+#ifdef CONFIG_ENCODERS
+
static inline void encode_block(ASV1Context *a, DCTELEM block[64]){
int i;
int nc_count=0;
put_bits(&a->pb, ccp_tab[16][1], ccp_tab[16][0]);
}
+#endif //CONFIG_ENCODERS
+
static inline int decode_mb(ASV1Context *a, DCTELEM block[6][64]){
int i;
return 0;
}
+#ifdef CONFIG_ENCODERS
+
static inline void encode_mb(ASV1Context *a, DCTELEM block[6][64]){
int i;
}
}
+#endif //CONFIG_ENCODERS
+
static inline void idct_put(ASV1Context *a, int mb_x, int mb_y){
DCTELEM (*block)[64]= a->block;
int linesize= a->picture.linesize[0];
}
}
+#ifdef CONFIG_ENCODERS
+
static inline void dct_get(ASV1Context *a, int mb_x, int mb_y){
DCTELEM (*block)[64]= a->block;
int linesize= a->picture.linesize[0];
}
}
+#endif //CONFIG_ENCODERS
+
static int decode_frame(AVCodecContext *avctx,
void *data, int *data_size,
uint8_t *buf, int buf_size)
return (get_bits_count(&a->gb)+31)/32*4;
}
+#ifdef CONFIG_ENCODERS
+
static int encode_frame(AVCodecContext *avctx, unsigned char *buf, int buf_size, void *data){
ASV1Context * const a = avctx->priv_data;
AVFrame *pict = data;
return size*4;
}
+#endif //CONFIG_ENCODERS
+
static void common_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
return 0;
}
+#ifdef CONFIG_ENCODERS
+
static int encode_init(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
int i;
return 0;
}
+#endif //CONFIG_ENCODERS
+
static int decode_end(AVCodecContext *avctx){
ASV1Context * const a = avctx->priv_data;
CODEC_CAP_DR1,
};
+#ifdef CONFIG_ENCODERS
+
AVCodec asv1_encoder = {
"asv1",
CODEC_TYPE_VIDEO,
encode_frame,
//encode_end,
};
+
+#endif //CONFIG_ENCODERS