mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-27 09:38:17 +00:00
codecparsers: Spread some G_GNUC_INTERNAL in various places
This commit is contained in:
parent
1bf448cbbd
commit
d0332c2a16
5 changed files with 33 additions and 6 deletions
|
@ -15,6 +15,7 @@
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <limits.h>
|
#include <limits.h>
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
typedef size_t VP8_BD_VALUE;
|
typedef size_t VP8_BD_VALUE;
|
||||||
|
|
||||||
|
@ -44,12 +45,14 @@ typedef struct
|
||||||
|
|
||||||
extern const unsigned char vp8_norm[256];
|
extern const unsigned char vp8_norm[256];
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
int vp8dx_start_decode(BOOL_DECODER *br,
|
int vp8dx_start_decode(BOOL_DECODER *br,
|
||||||
const unsigned char *source,
|
const unsigned char *source,
|
||||||
unsigned int source_sz,
|
unsigned int source_sz,
|
||||||
vp8_decrypt_cb *decrypt_cb,
|
vp8_decrypt_cb *decrypt_cb,
|
||||||
void *decrypt_state);
|
void *decrypt_state);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
void vp8dx_bool_decoder_fill(BOOL_DECODER *br);
|
void vp8dx_bool_decoder_fill(BOOL_DECODER *br);
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -53,19 +53,35 @@ typedef struct
|
||||||
guint64 cache; /* cached bytes */
|
guint64 cache; /* cached bytes */
|
||||||
} NalReader;
|
} NalReader;
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
void nal_reader_init (NalReader * nr, const guint8 * data, guint size);
|
void nal_reader_init (NalReader * nr, const guint8 * data, guint size);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_read (NalReader * nr, guint nbits);
|
gboolean nal_reader_read (NalReader * nr, guint nbits);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_skip (NalReader * nr, guint nbits);
|
gboolean nal_reader_skip (NalReader * nr, guint nbits);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_skip_long (NalReader * nr, guint nbits);
|
gboolean nal_reader_skip_long (NalReader * nr, guint nbits);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
guint nal_reader_get_pos (const NalReader * nr);
|
guint nal_reader_get_pos (const NalReader * nr);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
guint nal_reader_get_remaining (const NalReader * nr);
|
guint nal_reader_get_remaining (const NalReader * nr);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
guint nal_reader_get_epb_count (const NalReader * nr);
|
guint nal_reader_get_epb_count (const NalReader * nr);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_is_byte_aligned (NalReader * nr);
|
gboolean nal_reader_is_byte_aligned (NalReader * nr);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_has_more_data (NalReader * nr);
|
gboolean nal_reader_has_more_data (NalReader * nr);
|
||||||
|
|
||||||
#define NAL_READER_READ_BITS_H(bits) \
|
#define NAL_READER_READ_BITS_H(bits) \
|
||||||
|
G_GNUC_INTERNAL \
|
||||||
gboolean nal_reader_get_bits_uint##bits (NalReader *nr, guint##bits *val, guint nbits)
|
gboolean nal_reader_get_bits_uint##bits (NalReader *nr, guint##bits *val, guint nbits)
|
||||||
|
|
||||||
NAL_READER_READ_BITS_H (8);
|
NAL_READER_READ_BITS_H (8);
|
||||||
|
@ -73,11 +89,15 @@ NAL_READER_READ_BITS_H (16);
|
||||||
NAL_READER_READ_BITS_H (32);
|
NAL_READER_READ_BITS_H (32);
|
||||||
|
|
||||||
#define NAL_READER_PEEK_BITS_H(bits) \
|
#define NAL_READER_PEEK_BITS_H(bits) \
|
||||||
|
G_GNUC_INTERNAL \
|
||||||
gboolean nal_reader_peek_bits_uint##bits (const NalReader *nr, guint##bits *val, guint nbits)
|
gboolean nal_reader_peek_bits_uint##bits (const NalReader *nr, guint##bits *val, guint nbits)
|
||||||
|
|
||||||
NAL_READER_PEEK_BITS_H (8);
|
NAL_READER_PEEK_BITS_H (8);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_get_ue (NalReader * nr, guint32 * val);
|
gboolean nal_reader_get_ue (NalReader * nr, guint32 * val);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gboolean nal_reader_get_se (NalReader * nr, gint32 * val);
|
gboolean nal_reader_get_se (NalReader * nr, gint32 * val);
|
||||||
|
|
||||||
#define CHECK_ALLOWED_MAX(val, max) { \
|
#define CHECK_ALLOWED_MAX(val, max) { \
|
||||||
|
@ -159,4 +179,5 @@ gboolean nal_reader_get_se (NalReader * nr, gint32 * val);
|
||||||
val = tmp; \
|
val = tmp; \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
gint scan_for_start_codes (const guint8 * data, guint size);
|
gint scan_for_start_codes (const guint8 * data, guint size);
|
||||||
|
|
|
@ -101,7 +101,7 @@ struct _VLCTable
|
||||||
guint cbits;
|
guint cbits;
|
||||||
};
|
};
|
||||||
|
|
||||||
gboolean
|
G_GNUC_INTERNAL gboolean
|
||||||
decode_vlc (GstBitReader * br, guint * res, const VLCTable * table,
|
decode_vlc (GstBitReader * br, guint * res, const VLCTable * table,
|
||||||
guint length);
|
guint length);
|
||||||
|
|
||||||
|
|
|
@ -25,19 +25,19 @@
|
||||||
|
|
||||||
#include <gst/codecparsers/gstvp8parser.h>
|
#include <gst/codecparsers/gstvp8parser.h>
|
||||||
|
|
||||||
void
|
G_GNUC_INTERNAL void
|
||||||
gst_vp8_token_update_probs_init (GstVp8TokenProbs * probs);
|
gst_vp8_token_update_probs_init (GstVp8TokenProbs * probs);
|
||||||
|
|
||||||
void
|
G_GNUC_INTERNAL void
|
||||||
gst_vp8_token_probs_init_defaults (GstVp8TokenProbs * probs);
|
gst_vp8_token_probs_init_defaults (GstVp8TokenProbs * probs);
|
||||||
|
|
||||||
void
|
G_GNUC_INTERNAL void
|
||||||
gst_vp8_mv_update_probs_init (GstVp8MvProbs * probs);
|
gst_vp8_mv_update_probs_init (GstVp8MvProbs * probs);
|
||||||
|
|
||||||
void
|
G_GNUC_INTERNAL void
|
||||||
gst_vp8_mv_probs_init_defaults (GstVp8MvProbs * probs);
|
gst_vp8_mv_probs_init_defaults (GstVp8MvProbs * probs);
|
||||||
|
|
||||||
void
|
G_GNUC_INTERNAL void
|
||||||
gst_vp8_mode_probs_init_defaults (GstVp8ModeProbs * probs, gboolean key_frame);
|
gst_vp8_mode_probs_init_defaults (GstVp8ModeProbs * probs, gboolean key_frame);
|
||||||
|
|
||||||
#endif /* GST_VP8_UTILS_H */
|
#endif /* GST_VP8_UTILS_H */
|
||||||
|
|
|
@ -11,13 +11,16 @@
|
||||||
#define __VP9_QUANT_H__
|
#define __VP9_QUANT_H__
|
||||||
|
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
|
#include <glib.h>
|
||||||
|
|
||||||
#define MAXQ 255
|
#define MAXQ 255
|
||||||
#define QINDEX_RANGE 256
|
#define QINDEX_RANGE 256
|
||||||
#define QINDEX_BITS 8
|
#define QINDEX_BITS 8
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
int16_t gst_vp9_dc_quant(int qindex, int delta, int bit_depth);
|
int16_t gst_vp9_dc_quant(int qindex, int delta, int bit_depth);
|
||||||
|
|
||||||
|
G_GNUC_INTERNAL
|
||||||
int16_t gst_vp9_ac_quant(int qindex, int delta, int bit_depth);
|
int16_t gst_vp9_ac_quant(int qindex, int delta, int bit_depth);
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue