#include "avcodec.h"
#include "get_bits.h"
#include "bytestream.h"
+#include "internal.h"
#include "libavutil/colorspace.h"
#define DVBSUB_PAGE_SEGMENT 0x10
0x88, 0x99, 0xaa, 0xbb, 0xcc, 0xdd, 0xee, 0xff};
uint8_t *map_table;
- av_dlog(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
+ ff_dlog(avctx, "DVB pixel block size %d, %s field:\n", buf_size,
top_bottom ? "bottom" : "top");
for (i = 0; i < buf_size; i++) {
if (i % 16 == 0)
- av_dlog(avctx, "0x%8p: ", buf+i);
+ ff_dlog(avctx, "0x%8p: ", buf+i);
- av_dlog(avctx, "%02x ", buf[i]);
+ ff_dlog(avctx, "%02x ", buf[i]);
if (i % 16 == 15)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
}
if (i % 16)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
if (region == 0)
return;
int y, cr, cb, alpha;
int r, g, b, r_add, g_add, b_add;
- av_dlog(avctx, "DVB clut packet:\n");
+ ff_dlog(avctx, "DVB clut packet:\n");
for (i=0; i < buf_size; i++) {
- av_dlog(avctx, "%02x ", buf[i]);
+ ff_dlog(avctx, "%02x ", buf[i]);
if (i % 16 == 15)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
}
if (i % 16)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
clut_id = *buf++;
buf += 1;
YUV_TO_RGB1_CCIR(cb, cr);
YUV_TO_RGB2_CCIR(r, g, b, y);
- av_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
+ ff_dlog(avctx, "clut %d := (%d,%d,%d,%d)\n", entry_id, r, g, b, alpha);
if (depth & 0x80)
clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha);
region->bgcolor = (((*buf++) >> 2) & 3);
}
- av_dlog(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
+ ff_dlog(avctx, "Region %d, (%dx%d)\n", region_id, region->width, region->height);
if (fill) {
memset(region->pbuf, region->bgcolor, region->buf_size);
- av_dlog(avctx, "Fill region (%d)\n", region->bgcolor);
+ ff_dlog(avctx, "Fill region (%d)\n", region->bgcolor);
}
delete_region_display_list(ctx, region);
ctx->time_out = *buf++;
page_state = ((*buf++) >> 2) & 3;
- av_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
+ ff_dlog(avctx, "Page time out %ds, state %d\n", ctx->time_out, page_state);
if (page_state == 2) {
delete_state(ctx);
ctx->display_list = display;
ctx->display_list_size++;
- av_dlog(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
+ ff_dlog(avctx, "Region %d, (%d,%d)\n", region_id, display->x_pos, display->y_pos);
}
while (tmp_display_list) {
int segment_length;
int i;
- av_dlog(avctx, "DVB sub packet:\n");
+ ff_dlog(avctx, "DVB sub packet:\n");
for (i=0; i < buf_size; i++) {
- av_dlog(avctx, "%02x ", buf[i]);
+ ff_dlog(avctx, "%02x ", buf[i]);
if (i % 16 == 15)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
}
if (i % 16)
- av_dlog(avctx, "\n");
+ ff_dlog(avctx, "\n");
if (buf_size <= 6 || *buf != 0x0f) {
- av_dlog(avctx, "incomplete or broken packet");
+ ff_dlog(avctx, "incomplete or broken packet");
return AVERROR_INVALIDDATA;
}
p += 2;
if (p_end - p < segment_length) {
- av_dlog(avctx, "incomplete or broken packet");
+ ff_dlog(avctx, "incomplete or broken packet");
return -1;
}
*data_size = ret;
break;
default:
- av_dlog(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
+ ff_dlog(avctx, "Subtitling segment type 0x%x, page id %d, length %d\n",
segment_type, page_id, segment_length);
break;
}