[vlc-devel] Picture size differs from encoder init fmt
Francois Cartegnie
fcvlcdev at free.fr
Wed Jan 15 20:39:51 CET 2014
Le 15/01/2014 19:58, Rafaël Carré a écrit :
> Can you give all the struct members to avoid any ambiguity?
>
> (gdb) print *fmt_in
(gdb) print p_enc->fmt_in
$2 = {i_cat = 1, i_codec = 0, i_original_fourcc = 0, i_id = -1, i_group
= 0, i_priority = 0,
psz_language = 0x0, psz_description = 0x0, i_extra_languages = 0,
p_extra_languages = 0x0, audio = {
i_format = 0, i_rate = 0, i_physical_channels = 0,
i_original_channels = 0, i_bytes_per_frame = 0,
i_frame_length = 0, i_bitspersample = 0, i_blockalign = 0,
i_channels = 0 '\000'},
audio_replay_gain = {pb_peak = {false, false}, pf_peak = {0, 0},
pb_gain = {false, false},
pf_gain = {0, 0}}, video = {i_chroma = 0, i_width = 640, i_height =
336, i_x_offset = 0,
i_y_offset = 0, i_visible_width = 640, i_visible_height = 336,
i_bits_per_pixel = 0,
i_sar_num = 0, i_sar_den = 0, i_frame_rate = 958033,
i_frame_rate_base = 39958, i_rmask = 0,
i_gmask = 0, i_bmask = 0, i_rrshift = 0, i_lrshift = 0, i_rgshift =
0, i_lgshift = 0,
i_rbshift = 0, i_lbshift = 0, p_palette = 0x0, orientation =
ORIENT_TOP_LEFT}, subs = {
psz_encoding = 0x0, i_x_origin = 0, i_y_origin = 0, spu = {palette =
{0 <repeats 17 times>},
i_original_frame_width = 0, i_original_frame_height = 0}, dvb =
{i_id = 0}, teletext = {
i_magazine = 0, i_page = 0}}, i_bitrate = 0, i_profile = -1,
i_level = -1, b_packetized = true,
i_extra = 0, p_extra = 0x0}
> (gdb) print *p_pic
(gdb) print *p_pic
$1 = {format = {i_chroma = 808596553, i_width = 640, i_height = 352,
i_x_offset = 0, i_y_offset = 0, i_visible_width = 640, i_visible_height
= 336, i_bits_per_pixel = 12, i_sar_num = 1, i_sar_den = 1,
i_frame_rate = 958033, i_frame_rate_base = 39958, i_rmask = 0,
i_gmask = 0, i_bmask = 0, i_rrshift = 0, i_lrshift = 0, i_rgshift = 0,
i_lgshift = 0, i_rbshift = 0, i_lbshift = 0, p_palette = 0x0,
orientation = ORIENT_TOP_LEFT}, p = {{p_pixels = 0x7fffdc20ca80
'\032' <repeats 16 times>, '\031' <repeats 181 times>,
"\030\030\030"..., i_lines = 356, i_pitch = 640, i_pixel_pitch = 1,
i_visible_lines = 352, i_visible_pitch = 640}, {
p_pixels = 0x7fffdc244480 '\204' <repeats 48 times>,
"\203\203\203\203\203\203\203\203", '\204' <repeats 36 times>,
"\205\205\205\205\205\205\206\207\206\206\207\210\204\203\203\202\203\205\206\207\211\212\212\213\220\225\226\223\233\233\234\234\233\233\234\235\241\241\240\237\236\233\231\230\212\212\211\207\207\206\205\204\205\206\207\210\210\207\206\205\204\204\204\205\205\205\205\205",
'\204' <repeats 16 times>, "\206\206\206\206\206\206\206\206", '\204'
<repeats 16 times>..., i_lines = 178, i_pitch = 320, i_pixel_pitch = 1,
i_visible_lines = 176, i_visible_pitch = 320}, {
p_pixels = 0x7fffdc252300 '\206' <repeats 48 times>,
"\207\207\207\207\207\207\207\207", '\206' <repeats 33 times>,
"\205\204\203\202\202\202\202\202\203\202\200\200\204\206\206\204\205\205\205\205\204\203\202\201\201\177~|{zyvvwwwwxxxwvtssrrxy|\200\203\205\204\203\205\202\202\204\205\204\204\206\207\207\207\206\205\205\206\210",
'\207' <repeats 16 times>, '\206' <repeats 24 times>..., i_lines = 178,
i_pitch = 320, i_pixel_pitch = 1, i_visible_lines = 176,
i_visible_pitch = 320}, {p_pixels = 0x0, i_lines = 0, i_pitch = 0,
i_pixel_pitch = 0, i_visible_lines = 0, i_visible_pitch = 0}, {
p_pixels = 0x0, i_lines = 0, i_pitch = 0, i_pixel_pitch = 0,
i_visible_lines = 0, i_visible_pitch = 0}}, i_planes = 3, date =
18871424512, b_force = true, b_progressive = true,
b_top_field_first = false, i_nb_fields = 2, context = 0x0, p_sys =
0x0, gc = {refcount = 1, pf_destroy = 0x7ffff7b6acb0 <PictureDestroy>,
p_sys = 0x7fffdc20ca80}, p_next = 0x0}
More information about the vlc-devel
mailing list