jpeg: propagate buffer data as a const guchar * pointer (cosmetics).

This commit is contained in:
Gwenole Beauchesne 2013-03-21 13:43:46 +01:00
parent 4009430bec
commit 2c6e235e4d

View file

@ -314,7 +314,7 @@ static GstVaapiDecoderStatus
decode_picture( decode_picture(
GstVaapiDecoderJpeg *decoder, GstVaapiDecoderJpeg *decoder,
guint8 profile, guint8 profile,
guchar *buf, const guchar *buf,
guint buf_size guint buf_size
) )
{ {
@ -368,7 +368,7 @@ decode_picture(
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_huffman_table( decode_huffman_table(
GstVaapiDecoderJpeg *decoder, GstVaapiDecoderJpeg *decoder,
guchar *buf, const guchar *buf,
guint buf_size guint buf_size
) )
{ {
@ -385,7 +385,7 @@ decode_huffman_table(
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_quant_table( decode_quant_table(
GstVaapiDecoderJpeg *decoder, GstVaapiDecoderJpeg *decoder,
guchar *buf, const guchar *buf,
guint buf_size guint buf_size
) )
{ {
@ -402,7 +402,7 @@ decode_quant_table(
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_restart_interval( decode_restart_interval(
GstVaapiDecoderJpeg *decoder, GstVaapiDecoderJpeg *decoder,
guchar *buf, const guchar *buf,
guint buf_size guint buf_size
) )
{ {
@ -418,10 +418,11 @@ decode_restart_interval(
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_scan( decode_scan(
GstVaapiDecoderJpeg *decoder, GstVaapiDecoderJpeg *decoder,
guchar *scan_header, const guchar *scan_header,
guint scan_header_size, guint scan_header_size,
guchar *scan_data, const guchar *scan_data,
guint scan_data_size) guint scan_data_size
)
{ {
GstVaapiDecoderJpegPrivate * const priv = decoder->priv; GstVaapiDecoderJpegPrivate * const priv = decoder->priv;
GstVaapiPicture *picture = priv->current_picture; GstVaapiPicture *picture = priv->current_picture;
@ -490,7 +491,7 @@ decode_scan(
} }
static GstVaapiDecoderStatus static GstVaapiDecoderStatus
decode_buffer(GstVaapiDecoderJpeg *decoder, guchar *buf, guint buf_size) decode_buffer(GstVaapiDecoderJpeg *decoder, const guchar *buf, guint buf_size)
{ {
GstVaapiDecoderJpegPrivate * const priv = decoder->priv; GstVaapiDecoderJpegPrivate * const priv = decoder->priv;
GstVaapiDecoderStatus status = GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA; GstVaapiDecoderStatus status = GST_VAAPI_DECODER_STATUS_ERROR_NO_DATA;
@ -679,7 +680,7 @@ gst_vaapi_decoder_jpeg_decode(GstVaapiDecoder *base_decoder,
GstVaapiDecoderStatus status; GstVaapiDecoderStatus status;
GstBuffer * const buffer = GstBuffer * const buffer =
GST_VAAPI_DECODER_CODEC_FRAME(decoder)->input_buffer; GST_VAAPI_DECODER_CODEC_FRAME(decoder)->input_buffer;
guchar *buf; const guchar *buf;
guint buf_size; guint buf_size;
status = ensure_decoder(decoder); status = ensure_decoder(decoder);