avcodec/mpegutils: Constify ff_print_debug_info2, ff_draw_horiz_band
Signed-off-by: Andreas Rheinhardt <andreas.rheinhardt@outlook.com>
This commit is contained in:
parent
fa5440cbcd
commit
68a90ac3e6
@ -49,7 +49,7 @@ static int add_mb(AVMotionVector *mb, uint32_t mb_type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
void ff_draw_horiz_band(AVCodecContext *avctx,
|
void ff_draw_horiz_band(AVCodecContext *avctx,
|
||||||
AVFrame *cur, AVFrame *last,
|
const AVFrame *cur, const AVFrame *last,
|
||||||
int y, int h, int picture_structure,
|
int y, int h, int picture_structure,
|
||||||
int first_field, int low_delay)
|
int first_field, int low_delay)
|
||||||
{
|
{
|
||||||
@ -68,7 +68,7 @@ void ff_draw_horiz_band(AVCodecContext *avctx,
|
|||||||
return;
|
return;
|
||||||
|
|
||||||
if (avctx->draw_horiz_band) {
|
if (avctx->draw_horiz_band) {
|
||||||
AVFrame *src;
|
const AVFrame *src;
|
||||||
int offset[AV_NUM_DATA_POINTERS];
|
int offset[AV_NUM_DATA_POINTERS];
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
@ -153,8 +153,9 @@ static char get_interlacement_char(int mb_type)
|
|||||||
return ' ';
|
return ' ';
|
||||||
}
|
}
|
||||||
|
|
||||||
void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table,
|
void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict,
|
||||||
uint32_t *mbtype_table, int8_t *qscale_table, int16_t (*motion_val[2])[2],
|
const uint8_t *mbskip_table, const uint32_t *mbtype_table,
|
||||||
|
const int8_t *qscale_table, int16_t (*const motion_val[2])[2],
|
||||||
int mb_width, int mb_height, int mb_stride, int quarter_sample)
|
int mb_width, int mb_height, int mb_stride, int quarter_sample)
|
||||||
{
|
{
|
||||||
if ((avctx->export_side_data & AV_CODEC_EXPORT_DATA_MVS) && mbtype_table && motion_val[0]) {
|
if ((avctx->export_side_data & AV_CODEC_EXPORT_DATA_MVS) && mbtype_table && motion_val[0]) {
|
||||||
|
@ -127,15 +127,16 @@ enum OutputFormat {
|
|||||||
*
|
*
|
||||||
* @param h is the normal height, this will be reduced automatically if needed
|
* @param h is the normal height, this will be reduced automatically if needed
|
||||||
*/
|
*/
|
||||||
void ff_draw_horiz_band(AVCodecContext *avctx, AVFrame *cur, AVFrame *last,
|
void ff_draw_horiz_band(AVCodecContext *avctx, const AVFrame *cur, const AVFrame *last,
|
||||||
int y, int h, int picture_structure, int first_field,
|
int y, int h, int picture_structure, int first_field,
|
||||||
int low_delay);
|
int low_delay);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Print debugging info for the given picture.
|
* Print debugging info for the given picture.
|
||||||
*/
|
*/
|
||||||
void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict, uint8_t *mbskip_table,
|
void ff_print_debug_info2(AVCodecContext *avctx, AVFrame *pict,
|
||||||
uint32_t *mbtype_table, int8_t *qscale_table, int16_t (*motion_val[2])[2],
|
const uint8_t *mbskip_table, const uint32_t *mbtype_table,
|
||||||
|
const int8_t *qscale_table, int16_t (*const motion_val[2])[2],
|
||||||
int mb_width, int mb_height, int mb_stride, int quarter_sample);
|
int mb_width, int mb_height, int mb_stride, int quarter_sample);
|
||||||
|
|
||||||
#endif /* AVCODEC_MPEGUTILS_H */
|
#endif /* AVCODEC_MPEGUTILS_H */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user