int size;
const uint8_t *data;
+ /**
+ * Size, in bits, of just the data, excluding the stop bit and any trailing
+ * padding. I.e. what HEVC calls SODB.
+ */
+ int size_bits;
+
int raw_size;
const uint8_t *raw_data;
GetBitContext gb;
+ /**
+ * NAL unit type
+ */
int type;
+
+ /**
+ * HEVC only, nuh_temporal_id_plus_1 - 1
+ */
int temporal_id;
+
+ /**
+ * H.264 only, nal_ref_idc
+ */
+ int ref_idc;
} H2645NAL;
/* an input packet split into unescaped NAL units */
* Split an input packet into NAL units.
*/
int ff_h2645_packet_split(H2645Packet *pkt, const uint8_t *buf, int length,
- AVCodecContext *avctx, int is_nalff, int nal_length_size);
+ void *logctx, int is_nalff, int nal_length_size,
+ enum AVCodecID codec_id);
+
+/**
+ * Free all the allocated memory in the packet.
+ */
+void ff_h2645_packet_uninit(H2645Packet *pkt);
#endif /* AVCODEC_H2645_PARSE_H */