void traceVdpOutputSurfaceRenderBitmapSurface(const char *impl_state, VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpBitmapSurface source_surface, VdpRect const *source_rect, VdpColor const *colors, VdpOutputSurfaceRenderBlendState const *blend_state, uint32_t flags) { if (!enabled) return; fprintf(tlog, "%s%s VdpOutputSurfaceRenderBitmapSurface destination_surface=%d, " "destination_rect=%s,\n", trace_header, impl_state, destination_surface, rect2string(destination_rect)); fprintf(tlog, "%s source_surface=%d, source_rect=%s\n", trace_header_blank, source_surface, rect2string(source_rect)); if (blend_state) { fprintf(tlog, "%s blend_state.blend_factor_source_color=%s\n" "%s blend_state.blend_factor_destination_color=%s\n" "%s blend_state.blend_factor_source_alpha=%s\n" "%s blend_state.blend_factor_destination_alpha=%s\n" "%s blend_state.blend_equation_color=%s\n" "%s blend_state.blend_equation_alpha=%s\n" "%s blend_constant = (%11f, %11f, %11f, %11f)\n", trace_header_blank, reverse_blend_factor(blend_state->blend_factor_source_color), trace_header_blank, reverse_blend_factor(blend_state->blend_factor_destination_color), trace_header_blank, reverse_blend_factor(blend_state->blend_factor_source_alpha), trace_header_blank, reverse_blend_factor(blend_state->blend_factor_destination_alpha), trace_header_blank, reverse_blend_equation(blend_state->blend_equation_color), trace_header_blank, reverse_blend_equation(blend_state->blend_equation_alpha), trace_header_blank, blend_state->blend_constant.red, blend_state->blend_constant.green, blend_state->blend_constant.blue, blend_state->blend_constant.alpha); } else { fprintf(tlog, "%s blend_state=NULL\n", trace_header_blank); } fprintf(tlog, "%s flags = %s", trace_header_blank, reverse_output_surface_render_rotate(flags)); if (flags & VDP_OUTPUT_SURFACE_RENDER_COLOR_PER_VERTEX) fprintf(tlog, "| VDP_OUTPUT_SURFACE_RENDER_COLOR_PER_VERTEX"); fprintf(tlog, "\n"); int color_count = 0; if (colors) { if (flags & VDP_OUTPUT_SURFACE_RENDER_COLOR_PER_VERTEX) color_count = 4; else color_count = 1; } fprintf(tlog, "%s colors=[", trace_header_blank); for (int k = 0; k < color_count; k ++) { if (k > 0) fprintf(tlog, ", "); fprintf(tlog, "(%f,%f,%f,%f)", colors[k].red, colors[k].green, colors[k].blue, colors[k].alpha); } fprintf(tlog, "]\n"); }
void traceVdpBitmapSurfacePutBitsNative(const char *impl_state, VdpBitmapSurface surface, void const *const *source_data, uint32_t const *source_pitches, VdpRect const *destination_rect) { (void)source_data; (void)source_pitches; if (!enabled) return; fprintf(tlog, "%s%s VdpBitmapSurfacePutBitsNative surface=%d, destination_rect=%s\n", trace_header, impl_state, surface, rect2string(destination_rect)); }
void traceVdpOutputSurfaceGetBitsNative(const char *impl_state, VdpOutputSurface surface, VdpRect const *source_rect, void *const *destination_data, uint32_t const *destination_pitches) { (void)destination_data; (void)destination_pitches; if (!enabled) return; fprintf(tlog, "%s%s VdpOutputSurfaceGetBitsNative surface=%d, source_rect=%s\n", trace_header, impl_state, surface, rect2string(source_rect)); }
void traceVdpOutputSurfacePutBitsYCbCr(const char *impl_state, VdpOutputSurface surface, VdpYCbCrFormat source_ycbcr_format, void const *const *source_data, uint32_t const *source_pitches, VdpRect const *destination_rect, VdpCSCMatrix const *csc_matrix) { (void)source_data; (void)source_pitches; if (!enabled) return; fprintf(tlog, "%s%s VdpOutputSurfacePutBitsYCbCr surface=%d, source_ycbcr_format=%s, " "destination_rect=%s, csc_matrix=%p\n", trace_header, impl_state, surface, reverse_ycbcr_format(source_ycbcr_format), rect2string(destination_rect), csc_matrix); }
void traceVdpOutputSurfacePutBitsIndexed(const char *impl_state, VdpOutputSurface surface, VdpIndexedFormat source_indexed_format, void const *const *source_data, uint32_t const *source_pitch, VdpRect const *destination_rect, VdpColorTableFormat color_table_format, void const *color_table) { (void)source_data; (void)source_pitch; (void)color_table; if (!enabled) return; fprintf(tlog, "%s%s VdpOutputSurfacePutBitsIndexed surface=%d, source_indexed_format=%s, " "destination_rect=%s, color_table_format=%s\n", trace_header, impl_state, surface, reverse_indexed_format(source_indexed_format), rect2string(destination_rect), reverse_color_table_format(color_table_format)); }
void traceVdpVideoMixerRender(const char *impl_state, VdpVideoMixer mixer, VdpOutputSurface background_surface, VdpRect const *background_source_rect, VdpVideoMixerPictureStructure current_picture_structure, uint32_t video_surface_past_count, VdpVideoSurface const *video_surface_past, VdpVideoSurface video_surface_current, uint32_t video_surface_future_count, VdpVideoSurface const *video_surface_future, VdpRect const *video_source_rect, VdpOutputSurface destination_surface, VdpRect const *destination_rect, VdpRect const *destination_video_rect, uint32_t layer_count, VdpLayer const *layers) { if (!enabled) return; fprintf(tlog, "%s%s VdpVideoMixerRender mixer=%d, background_surface=%d, " "background_source_rect=%s,\n", trace_header, impl_state, mixer, background_surface, rect2string(background_source_rect)); fprintf(tlog, "%s current_picture_structure=%s, video_surface_past=[", trace_header_blank, reverser_video_mixer_picture_structure(current_picture_structure)); for (uint32_t k = 0; k < video_surface_past_count; k ++) { if (0 != k) fprintf(tlog, ","); fprintf(tlog, "%d", video_surface_past[k]); } fprintf(tlog, "],\n%s video_surface_current=%d, video_surface_future=[", trace_header_blank, video_surface_current); for (uint32_t k = 0; k < video_surface_future_count; k ++) { if (0 != k) fprintf(tlog, ","); fprintf(tlog, "%d", video_surface_future[k]); } fprintf(tlog, "],\n%s video_source_rect=%s, destination_surface=%d, destination_rect=%s, " "destination_video_rect=%s, layers=[", trace_header_blank, rect2string(video_source_rect), destination_surface, rect2string(destination_rect), rect2string(destination_video_rect)); for (uint32_t k = 0; k < layer_count; k ++) { if (0 != k) fprintf(tlog, ","); fprintf(tlog, "{%d,src:%s,dst:%s}", layers[k].source_surface, rect2string(layers[k].source_rect), rect2string(layers[k].destination_rect)); } fprintf(tlog, "]\n"); }