hevc: store the escaped/raw bitstream in HEVCNAL
Hardware Accelerators require access to the escaped bitstream. Signed-off-by: Anton Khirnov <anton@khirnov.net>
This commit is contained in:
parent
b0593a4bca
commit
36779a8405
@ -2657,8 +2657,10 @@ static int extract_rbsp(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;
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -2697,6 +2699,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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -692,6 +692,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;
|
||||||
|
|
||||||
struct HEVCContext;
|
struct HEVCContext;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user