]> git.sesse.net Git - ffmpeg/blobdiff - libavcodec/h2645_parse.h
qsvdec: do not sync PIX_FMT_QSV surfaces
[ffmpeg] / libavcodec / h2645_parse.h
index 4901ccfbc1938644704c9cbb5be18e4ecb694e4a..9cc4441d9e3547b76d3e66d62e236d5ddd3b68fd 100644 (file)
@@ -33,13 +33,31 @@ typedef struct H2645NAL {
     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 */
@@ -59,6 +77,12 @@ int ff_h2645_extract_rbsp(const uint8_t *src, int length,
  * 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 */