mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
jpeg: propagate buffer data as a const guchar * pointer (cosmetics).
This commit is contained in:
parent
4009430bec
commit
2c6e235e4d
1 changed files with 10 additions and 9 deletions
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue