提交 2af82a1a 编写于 作者: H Hendrik Leppkes 提交者: Michael Niedermayer

hevc: store the escaped/raw bitstream in HEVCNAL

Hardware Accelerators require access to the escaped bitstream.
Signed-off-by: NMichael Niedermayer <michaelni@gmx.at>
上级 afa3c996
...@@ -2772,8 +2772,10 @@ int ff_hevc_extract_rbsp(HEVCContext *s, const uint8_t *src, int length, ...@@ -2772,8 +2772,10 @@ int ff_hevc_extract_rbsp(HEVCContext *s, const uint8_t *src, int length,
#endif /* HAVE_FAST_UNALIGNED */ #endif /* HAVE_FAST_UNALIGNED */
if (i >= length - 1) { // no escaped 0 if (i >= length - 1) { // no escaped 0
nal->data = src; nal->data =
nal->size = length; nal->raw_data = src;
nal->size =
nal->raw_size = length;
return length; return length;
} }
...@@ -2823,6 +2825,8 @@ nsc: ...@@ -2823,6 +2825,8 @@ nsc:
nal->data = dst; nal->data = dst;
nal->size = di; nal->size = di;
nal->raw_data = src;
nal->raw_size = si;
return si; return si;
} }
......
...@@ -734,6 +734,9 @@ typedef struct HEVCNAL { ...@@ -734,6 +734,9 @@ typedef struct HEVCNAL {
int size; int size;
const uint8_t *data; const uint8_t *data;
int raw_size;
const uint8_t *raw_data;
} HEVCNAL; } HEVCNAL;
typedef struct HEVCLocalContext { typedef struct HEVCLocalContext {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册