33#define DVBSUB_PAGE_SEGMENT 0x10
34#define DVBSUB_REGION_SEGMENT 0x11
35#define DVBSUB_CLUT_SEGMENT 0x12
36#define DVBSUB_OBJECT_SEGMENT 0x13
37#define DVBSUB_DISPLAYDEFINITION_SEGMENT 0x14
38#define DVBSUB_END_DISPLAY_SEGMENT 0x80
40#define cm (ff_crop_tab + MAX_NEG_CROP)
42#define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b))
149 while (ptr && ptr->
id != object_id) {
160 while (ptr && ptr->
id != clut_id) {
171 while (ptr && ptr->
id != region_id) {
189 obj_disp_ptr = &
object->display_list;
190 obj_disp = *obj_disp_ptr;
192 while (obj_disp && obj_disp != display) {
194 obj_disp = *obj_disp_ptr;
201 obj2_ptr = &
ctx->object_list;
204 while (obj2 !=
object) {
206 obj2_ptr = &obj2->
next;
210 *obj2_ptr = obj2->
next;
226 while (
ctx->clut_list) {
237 while (
ctx->object_list) {
240 ctx->object_list =
object->next;
248 while (
ctx->region_list) {
251 ctx->region_list = region->
next;
262 int i,
r,
g,
b,
a = 0;
273 for (
i = 1;
i < 16;
i++) {
275 r = (
i & 1) ? 255 : 0;
276 g = (
i & 2) ? 255 : 0;
277 b = (
i & 4) ? 255 : 0;
279 r = (
i & 1) ? 127 : 0;
280 g = (
i & 2) ? 127 : 0;
281 b = (
i & 4) ? 127 : 0;
287 for (
i = 1;
i < 256;
i++) {
289 r = (
i & 1) ? 255 : 0;
290 g = (
i & 2) ? 255 : 0;
291 b = (
i & 4) ? 255 : 0;
296 r = ((
i & 1) ? 85 : 0) + ((
i & 0x10) ? 170 : 0);
297 g = ((
i & 2) ? 85 : 0) + ((
i & 0x20) ? 170 : 0);
298 b = ((
i & 4) ? 85 : 0) + ((
i & 0x40) ? 170 : 0);
302 r = ((
i & 1) ? 85 : 0) + ((
i & 0x10) ? 170 : 0);
303 g = ((
i & 2) ? 85 : 0) + ((
i & 0x20) ? 170 : 0);
304 b = ((
i & 4) ? 85 : 0) + ((
i & 0x40) ? 170 : 0);
308 r = 127 + ((
i & 1) ? 43 : 0) + ((
i & 0x10) ? 85 : 0);
309 g = 127 + ((
i & 2) ? 43 : 0) + ((
i & 0x20) ? 85 : 0);
310 b = 127 + ((
i & 4) ? 43 : 0) + ((
i & 0x40) ? 85 : 0);
314 r = ((
i & 1) ? 43 : 0) + ((
i & 0x10) ? 85 : 0);
315 g = ((
i & 2) ? 43 : 0) + ((
i & 0x20) ? 85 : 0);
316 b = ((
i & 4) ? 43 : 0) + ((
i & 0x40) ? 85 : 0);
330 if (
ctx->substream < 0) {
331 ctx->composition_id = -1;
332 ctx->ancillary_id = -1;
335 ctx->composition_id = -1;
336 ctx->ancillary_id = -1;
369 while (
ctx->display_list) {
370 display =
ctx->display_list;
371 ctx->display_list = display->
next;
380 uint8_t *destbuf,
int dbuf_len,
381 const uint8_t **srcbuf,
int buf_size,
382 int non_mod, uint8_t *map_table,
int x_pos)
388 int pixels_read = x_pos;
394 while (
get_bits_count(&gb) < buf_size << 3 && pixels_read < dbuf_len) {
398 if (non_mod != 1 ||
bits != 1) {
400 *destbuf++ = map_table[
bits];
411 if (non_mod == 1 &&
bits == 1)
412 pixels_read += run_length;
416 while (run_length-- > 0 && pixels_read < dbuf_len) {
429 if (non_mod == 1 &&
bits == 1)
430 pixels_read += run_length;
434 while (run_length-- > 0 && pixels_read < dbuf_len) {
439 }
else if (
bits == 3) {
443 if (non_mod == 1 &&
bits == 1)
444 pixels_read += run_length;
448 while (run_length-- > 0 && pixels_read < dbuf_len) {
453 }
else if (
bits == 1) {
459 while (run_length-- > 0 && pixels_read < dbuf_len) {
488 const uint8_t **srcbuf,
int buf_size,
489 int non_mod, uint8_t *map_table,
int x_pos)
495 int pixels_read = x_pos;
501 while (
get_bits_count(&gb) < buf_size << 3 && pixels_read < dbuf_len) {
505 if (non_mod != 1 ||
bits != 1) {
507 *destbuf++ = map_table[
bits];
517 if (run_length == 0) {
529 while (run_length-- > 0 && pixels_read < dbuf_len) {
539 if (non_mod == 1 &&
bits == 1)
540 pixels_read += run_length;
544 while (run_length-- > 0 && pixels_read < dbuf_len) {
555 if (non_mod == 1 &&
bits == 1)
556 pixels_read += run_length;
560 while (run_length-- > 0 && pixels_read < dbuf_len) {
565 }
else if (
bits == 3) {
569 if (non_mod == 1 &&
bits == 1)
570 pixels_read += run_length;
574 while (run_length-- > 0 && pixels_read < dbuf_len) {
579 }
else if (
bits == 1) {
585 while (run_length-- > 0 && pixels_read < dbuf_len) {
611 uint8_t *destbuf,
int dbuf_len,
612 const uint8_t **srcbuf,
int buf_size,
613 int non_mod, uint8_t *map_table,
int x_pos)
617 int pixels_read = x_pos;
624 bits = bytestream2_get_byteu(gb);
627 if (non_mod != 1 ||
bits != 1) {
629 *destbuf++ = map_table[
bits];
635 bits = bytestream2_get_byte(gb);
636 run_length =
bits & 0x7f;
637 if ((
bits & 0x80) == 0) {
638 if (run_length == 0) {
645 bits = bytestream2_get_byte(gb);
647 if (non_mod == 1 &&
bits == 1)
648 pixels_read += run_length;
652 while (run_length-- > 0 && pixels_read < dbuf_len) {
660 if (bytestream2_get_byte(gb))
664 if (!bytestream2_peek_byte(gb))
665 bytestream2_get_byte(gb);
673 uint8_t
list[256] = {0};
674 uint8_t list_inv[256];
675 int counttab[256] = {0};
676 int (*counttab2)[256] =
ctx->clut_count2;
680 memset(
ctx->clut_count2, 0 ,
sizeof(
ctx->clut_count2));
682#define V(x,y) rect->data[0][(x) + (y)*stride]
683 for (y = 0; y<
h; y++) {
684 for (x = 0; x<
w; x++) {
686 int vl = x ?
V(x-1,y) + 1 : 0;
687 int vr = x+1<
w ?
V(x+1,y) + 1 : 0;
688 int vt = y ?
V(x,y-1) + 1 : 0;
689 int vb = y+1<
h ?
V(x,y+1) + 1 : 0;
690 counttab[v-1] += !!((v!=vl) + (v!=vr) + (v!=vt) + (v!=vb));
691 counttab2[vl][v-1] ++;
692 counttab2[vr][v-1] ++;
693 counttab2[vt][v-1] ++;
694 counttab2[vb][v-1] ++;
697#define L(x,y) list[d[(x) + (y)*stride]]
699 for (
i = 0;
i<256;
i++) {
700 counttab2[
i+1][
i] = 0;
702 for (
i = 0;
i<256;
i++) {
706 for (x = 0; x < 256; x++) {
710 scorev += counttab2[0][x];
711 for (y = 0; y < 256; y++) {
712 scorev +=
list[y] * counttab2[y+1][x];
716 int score = 1024LL*scorev / counttab[x];
717 if (score > bestscore) {
726 list_inv[
i ] = bestv;
730 for (
i--;
i >= 0;
i--) {
731 int v =
i * 255 / count;
745 const uint32_t *clut_table;
747 int offset_x=0, offset_y=0;
752 offset_x = display_def->
x;
753 offset_y = display_def->
y;
761 for (display =
ctx->display_list; display; display = display->
next) {
763 if (region && region->
dirty)
767 if (
ctx->compute_edt == 0) {
792 for (display =
ctx->display_list; display; display = display->
next) {
815 switch (region->
depth) {
817 clut_table = clut->
clut4;
824 clut_table = clut->
clut16;
829 if (!
rect->data[1]) {
833 memcpy(
rect->data[1], clut_table, (1 << region->
depth) *
sizeof(*clut_table));
836 if (!
rect->data[0]) {
872 const uint8_t *buf,
int buf_size,
int top_bottom,
int non_mod)
877 const uint8_t *buf_end = buf + buf_size;
882 uint8_t map2to4[] = { 0x0, 0x7, 0x8, 0xf};
883 uint8_t map2to8[] = {0x00, 0x77, 0x88, 0xff};
884 uint8_t map4to8[] = {0x00, 0x11, 0x22, 0x33, 0x44, 0x55, 0x66, 0x77,
885 0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
889 ff_dlog(avctx,
"DVB pixel block size %d, %s field:\n", buf_size,
890 top_bottom ?
"bottom" :
"top");
892 for (
i = 0;
i < buf_size;
i++) {
911 x_pos = display->
x_pos;
912 y_pos = display->
y_pos;
916 while (buf < buf_end) {
917 if ((*buf!=0xf0 && x_pos >= region->
width) || y_pos >= region->
height) {
924 if (region->
depth == 8)
926 else if (region->
depth == 4)
932 region->
width, &buf, buf_end - buf,
933 non_mod, map_table, x_pos);
936 if (region->
depth < 4) {
941 if (region->
depth == 8)
947 region->
width, &buf, buf_end - buf,
948 non_mod, map_table, x_pos);
951 if (region->
depth < 8) {
957 region->
width, &buf, buf_end - buf,
958 non_mod,
NULL, x_pos);
962 map2to4[0] = (*buf) >> 4;
963 map2to4[1] = (*buf++) & 0xf;
964 map2to4[2] = (*buf) >> 4;
965 map2to4[3] = (*buf++) & 0xf;
968 for (
i = 0;
i < 4;
i++)
972 for (
i = 0;
i < 16;
i++)
977 x_pos = display->
x_pos;
985 if (
ctx->compute_clut != -2)
990 const uint8_t *buf,
int buf_size)
994 const uint8_t *buf_end = buf + buf_size;
998 int top_field_len, bottom_field_len;
1000 int coding_method, non_modifying_color;
1013 coding_method = ((*buf) >> 2) & 3;
1014 non_modifying_color = ((*buf++) >> 1) & 1;
1016 if (coding_method == 0) {
1017 if (buf_end - buf < 4)
1021 bottom_field_len =
AV_RB16(buf);
1024 if (buf + top_field_len + bottom_field_len > buf_end) {
1025 av_log(avctx,
AV_LOG_ERROR,
"Field data size %d+%d too large\n", top_field_len, bottom_field_len);
1030 const uint8_t *
block = buf;
1031 int bfl = bottom_field_len;
1034 non_modifying_color);
1036 if (bottom_field_len > 0)
1037 block = buf + top_field_len;
1039 bfl = top_field_len;
1042 non_modifying_color);
1044 }
else if (coding_method == 1) {
1047 }
else if (coding_method == 2) {
1059 const uint8_t *buf,
int buf_size)
1063 const uint8_t *buf_end = buf + buf_size;
1069 int r,
g,
b, r_add, g_add, b_add;
1071 ff_dlog(avctx,
"DVB clut packet:\n");
1073 for (
i=0;
i < buf_size;
i++) {
1097 ctx->clut_list = clut;
1104 while (buf + 4 < buf_end) {
1107 depth = (*buf) & 0xe0;
1122 cr = (((buf[0] & 3) << 2) | ((buf[1] >> 6) & 3)) << 4;
1123 cb = (buf[1] << 2) & 0xf0;
1124 alpha = (buf[1] << 6) & 0xc0;
1135 ff_dlog(avctx,
"clut %d := (%d,%d,%d,%d)\n", entry_id,
r,
g,
b,
alpha);
1136 if (!!(depth & 0x80) + !!(depth & 0x40) + !!(depth & 0x20) > 1) {
1137 ff_dlog(avctx,
"More than one bit level marked: %x\n", depth);
1142 if (depth & 0x80 && entry_id < 4)
1144 else if (depth & 0x40 && entry_id < 16)
1146 else if (depth & 0x20)
1156 const uint8_t *buf,
int buf_size)
1160 const uint8_t *buf_end = buf + buf_size;
1161 int region_id, object_id;
1181 region->
id = region_id;
1184 region->
next =
ctx->region_list;
1185 ctx->region_list = region;
1189 fill = ((*buf++) >> 3) & 1;
1197 if (
ret >= 0 && region->
width * region->
height > 320 * 1024 * 8 / 2) {
1212 if (!region->
pbuf) {
1223 region->
depth = 1 << (((*buf++) >> 2) & 7);
1224 if (region->
depth < 2 || region->
depth > 8) {
1228 region->
clut = *buf++;
1230 if (region->
depth == 8) {
1236 if (region->
depth == 4)
1237 region->
bgcolor = (((*buf++) >> 4) & 15);
1239 region->
bgcolor = (((*buf++) >> 2) & 3);
1251 while (buf + 5 < buf_end) {
1262 object->id = object_id;
1263 object->next =
ctx->object_list;
1264 ctx->object_list = object;
1267 object->type = (*buf) >> 6;
1288 if ((object->
type == 1 || object->
type == 2) && buf+1 < buf_end) {
1297 object->display_list = display;
1304 const uint8_t *buf,
int buf_size,
AVSubtitle *sub,
int *got_output)
1310 const uint8_t *buf_end = buf + buf_size;
1321 page_state = ((*buf++) >> 2) & 3;
1327 ctx->time_out = timeout;
1330 ff_dlog(avctx,
"Page time out %ds, state %d\n",
ctx->time_out, page_state);
1332 if (
ctx->compute_edt == 1)
1335 if (page_state == 1 || page_state == 2) {
1341 tmp_display_list =
ctx->display_list;
1344 while (buf + 5 < buf_end) {
1348 display =
ctx->display_list;
1349 while (display && display->
region_id != region_id) {
1350 display = display->
next;
1357 display = tmp_display_list;
1358 tmp_ptr = &tmp_display_list;
1360 while (display && display->
region_id != region_id) {
1361 tmp_ptr = &display->
next;
1362 display = display->
next;
1378 *tmp_ptr = display->
next;
1380 display->
next =
ctx->display_list;
1381 ctx->display_list = display;
1383 ff_dlog(avctx,
"Region %d, (%d,%d)\n", region_id, display->
x_pos, display->
y_pos);
1386 while (tmp_display_list) {
1387 display = tmp_display_list;
1389 tmp_display_list = display->
next;
1403 int dds_version, info_byte;
1408 info_byte = bytestream_get_byte(&buf);
1409 dds_version = info_byte >> 4;
1410 if (display_def && display_def->
version == dds_version)
1414 display_def =
av_mallocz(
sizeof(*display_def));
1417 ctx->display_definition = display_def;
1420 display_def->
version = dds_version;
1423 display_def->
width = bytestream_get_be16(&buf) + 1;
1424 display_def->
height = bytestream_get_be16(&buf) + 1;
1431 if (info_byte & 1<<3) {
1435 display_def->
x = bytestream_get_be16(&buf);
1436 display_def->
width = bytestream_get_be16(&buf) - display_def->
x + 1;
1437 display_def->
y = bytestream_get_be16(&buf);
1438 display_def->
height = bytestream_get_be16(&buf) - display_def->
y + 1;
1445 int buf_size,
AVSubtitle *sub,
int *got_output)
1449 if (
ctx->compute_edt == 0)
1455 int *got_sub_ptr,
const AVPacket *avpkt)
1457 const uint8_t *buf = avpkt->
data;
1458 int buf_size = avpkt->
size;
1460 const uint8_t *p, *p_end;
1469 int got_end_display = 0;
1470 int got_displaydef = 0;
1472 ff_dlog(avctx,
"DVB sub packet:\n");
1474 for (
i=0;
i < buf_size;
i++) {
1483 if (buf_size <= 6 || *buf != 0x0f) {
1484 ff_dlog(avctx,
"incomplete or broken packet");
1489 p_end = buf + buf_size;
1491 while (p_end - p >= 6 && *p == 0x0f) {
1493 segment_type = *p++;
1500 av_log(avctx,
AV_LOG_DEBUG,
"segment_type:%d page_id:%d segment_length:%d\n", segment_type, page_id, segment_length);
1503 if (p_end - p < segment_length) {
1504 ff_dlog(avctx,
"incomplete or broken packet");
1509 if (page_id ==
ctx->composition_id || page_id ==
ctx->ancillary_id ||
1510 ctx->composition_id == -1 ||
ctx->ancillary_id == -1) {
1512 switch (segment_type) {
1523 if (
ret < 0)
goto end;
1536 got_end_display = 1;
1539 ff_dlog(avctx,
"Subtitling segment type 0x%x, page id %d, length %d\n",
1540 segment_type, page_id, segment_length);
1547 p += segment_length;
1552 if (got_page && got_region && got_object) {
1554 if (!got_displaydef && !avctx->
width && !avctx->
height) {
1562 if (!got_end_display) {
1571 if (
ctx->compute_edt == 1)
1578#define DS AV_OPT_FLAG_DECODING_PARAM | AV_OPT_FLAG_SUBTITLE_PARAM
1579#define OFFSET(x) offsetof(DVBSubContext, x)
1581 {
"compute_edt",
"compute end of time using pts or timeout",
OFFSET(compute_edt),
AV_OPT_TYPE_BOOL, {.i64 = 0}, 0, 1,
DS},
1582 {
"compute_clut",
"compute clut when not available(-1) or only once (-2) or always(1) or never(0)",
OFFSET(compute_clut),
AV_OPT_TYPE_BOOL, {.i64 = -1}, -2, 1,
DS},
1587 .class_name =
"DVB Sub Decoder",
const FFCodec ff_dvbsub_decoder
static AVFormatContext * ctx
#define av_assert0(cond)
assert() equivalent, that is always enabled.
Libavcodec external API header.
#define FF_DEBUG_STARTCODE
static av_always_inline int bytestream2_get_bytes_left(const GetByteContext *g)
static av_always_inline void bytestream2_init(GetByteContext *g, const uint8_t *buf, int buf_size)
static av_always_inline int bytestream2_tell(const GetByteContext *g)
#define i(width, name, range_min, range_max)
#define CODEC_LONG_NAME(str)
#define FF_CODEC_DECODE_SUB_CB(func)
int ff_set_dimensions(AVCodecContext *s, int width, int height)
#define FF_COMPLIANCE_NORMAL
int(* init)(AVBSFContext *ctx)
static int dvbsub_read_4bit_string(AVCodecContext *avctx, uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos)
#define DVBSUB_END_DISPLAY_SEGMENT
static int dvbsub_parse_region_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static av_cold void init_default_clut(void)
static void delete_regions(DVBSubContext *ctx)
static int dvbsub_parse_object_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static int dvbsub_display_end_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output)
#define DVBSUB_OBJECT_SEGMENT
static int dvbsub_decode(AVCodecContext *avctx, AVSubtitle *sub, int *got_sub_ptr, const AVPacket *avpkt)
#define DVBSUB_PAGE_SEGMENT
static void delete_objects(DVBSubContext *ctx)
static void compute_default_clut(DVBSubContext *ctx, uint8_t *clut, AVSubtitleRect *rect, int w, int h)
static int save_subtitle_set(AVCodecContext *avctx, AVSubtitle *sub, int *got_output)
static av_cold int dvbsub_close_decoder(AVCodecContext *avctx)
static int dvbsub_read_2bit_string(AVCodecContext *avctx, uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos)
static int dvbsub_parse_page_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size, AVSubtitle *sub, int *got_output)
static void delete_cluts(DVBSubContext *ctx)
static const AVClass dvbsubdec_class
#define DVBSUB_CLUT_SEGMENT
static void dvbsub_parse_pixel_data_block(AVCodecContext *avctx, DVBSubObjectDisplay *display, const uint8_t *buf, int buf_size, int top_bottom, int non_mod)
static int dvbsub_parse_display_definition_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static av_cold int dvbsub_init_decoder(AVCodecContext *avctx)
#define DVBSUB_DISPLAYDEFINITION_SEGMENT
static DVBSubCLUT * get_clut(DVBSubContext *ctx, int clut_id)
#define DVBSUB_REGION_SEGMENT
static DVBSubCLUT default_clut
static int dvbsub_parse_clut_segment(AVCodecContext *avctx, const uint8_t *buf, int buf_size)
static DVBSubRegion * get_region(DVBSubContext *ctx, int region_id)
static int dvbsub_read_8bit_string(AVCodecContext *avctx, uint8_t *destbuf, int dbuf_len, const uint8_t **srcbuf, int buf_size, int non_mod, uint8_t *map_table, int x_pos)
static DVBSubObject * get_object(DVBSubContext *ctx, int object_id)
static void delete_region_display_list(DVBSubContext *ctx, DVBSubRegion *region)
static const uint8_t bits[8]
bitstream reader API header.
static unsigned int get_bits1(GetBitContext *s)
static int get_bits_count(const GetBitContext *s)
static unsigned int get_bits(GetBitContext *s, int n)
Read 1-25 bits.
static int init_get_bits(GetBitContext *s, const uint8_t *buffer, int bit_size)
Initialize GetBitContext.
@ AV_OPT_TYPE_INT
Underlying C type is int.
@ AV_OPT_TYPE_BOOL
Underlying C type is int.
@ SUBTITLE_BITMAP
A bitmap, pict will be set.
@ AV_CODEC_ID_DVB_SUBTITLE
#define AVERROR_PATCHWELCOME
Not yet implemented in FFmpeg, patches welcome.
#define AVERROR_INVALIDDATA
Invalid data found when processing input.
#define AV_LOG_DEBUG
Stuff which is only useful for libav* developers.
#define AV_LOG_WARNING
Something somehow does not look correct.
#define AV_LOG_INFO
Standard information.
#define AV_LOG_ERROR
Something went wrong and cannot losslessly be recovered.
const char * av_default_item_name(void *ptr)
Return the context name.
int64_t av_rescale_q(int64_t a, AVRational bq, AVRational cq)
Rescale a 64-bit integer by 2 rational numbers.
void * av_memdup(const void *p, size_t size)
Duplicate a buffer with av_malloc().
int av_image_check_size2(unsigned int w, unsigned int h, int64_t max_pixels, enum AVPixelFormat pix_fmt, int log_offset, void *log_ctx)
Check if the given dimension of an image is valid, meaning that all bytes of a plane of an image with...
#define AV_NOPTS_VALUE
Undefined timestamp value.
#define AV_TIME_BASE_Q
Internal time base represented as fractional value.
#define LIBAVUTIL_VERSION_INT
static const int16_t alpha[]
av_cold void CBS_FUNC close(CodedBitstreamContext **ctx_ptr)
Close a context and free all internal state.
Various defines for YUV<->RGB conversion.
#define YUV_TO_RGB1_CCIR(cb1, cr1)
#define YUV_TO_RGB2_CCIR(r, g, b, y1)
void avpriv_report_missing_feature(void *avc, const char *msg,...) av_printf_format(2
Log a generic warning message about a missing feature.
static int ff_thread_once(char *control, void(*routine)(void))
#define FFSWAP(type, a, b)
void * av_calloc(size_t nmemb, size_t size)
Memory handling functions.
@ AV_PIX_FMT_PAL8
8 bits with AV_PIX_FMT_RGB32 palette
Describe the class of an AVClass context structure.
main external API structure.
int width
picture width / height.
int64_t max_pixels
The number of pixels per image to maximally accept.
int strict_std_compliance
strictly follow the standard (MPEG-4, ...).
uint8_t * extradata
Out-of-band global headers that may be used by some codecs.
This structure stores compressed data.
Rational number (pair of numerator and denominator).
uint32_t end_display_time
int64_t pts
Same as packet pts, in AV_TIME_BASE.
DVBSubObject * object_list
int compute_edt
if 1 end display time calculated using pts if 0 (Default) calculated using time out
DVBSubRegionDisplay * display_list
DVBSubDisplayDefinition * display_definition
DVBSubRegion * region_list
int clut_count2[257][256]
struct DVBSubObjectDisplay * object_list_next
struct DVBSubObjectDisplay * region_list_next
struct DVBSubObject * next
DVBSubObjectDisplay * display_list
struct DVBSubRegionDisplay * next
DVBSubObjectDisplay * display_list
struct DVBSubRegion * next
uint8_t computed_clut[4 *256]
#define avpriv_request_sample(...)
static double cr(void *priv, double x, double y)
static double cb(void *priv, double x, double y)
static const Range full_range