![]() |
DVBCore
22.3.0
Open Source DVB Engine
|
Video Transformations functions. More...
#include <techtype.h>
#include <dbgfuncs.h>
#include "stbvtc.h"
#include "stbhwav.h"
#include "stbheap.h"
#include "stbhwos.h"
#include "stbhwosd.h"
#include "vtc.h"
Macros | |
#define | STB_VT_PRINT(x) |
Functions | |
void | STB_VTInitialise (void) |
Initialise the VTC module. More... | |
void | STB_VTSetVideoAlignmentPref (E_VIDEO_ASPECT_MODE alignment) |
Set video alignment preference. More... | |
void | STB_VTCSetCustomModeCallback (F_VT_CUSTOM_MODE_CALLBACK callback) |
Sets the callback used to control the format conversion when the aspect mode set by STB_VTSetVideoAlignmentPref is ASPECT_MODE_CUSTOM. More... | |
void | STB_VTSetVideoOutput (S_RECTANGLE *output) |
DVBCore application output window for entire video. More... | |
void | STB_VTSetMhegEnable (BOOLEAN enable) |
Turn on or off MHEG5 scaling calculation. More... | |
void | STB_VTSetMhegScalingResolution (U16BIT width, U16BIT height) |
Set Mheg scaling resolution for video. More... | |
void | STB_VTSetMhegVideoScaling (S_RECTANGLE *scaling) |
Set Mheg video scaling. More... | |
E_ASPECT_RATIO | STB_VTGetDisplayAspectRatio (void) |
Get display aspect ratio. More... | |
void | STB_VTSetDisplayAspectRatio (E_ASPECT_RATIO aspect_ratio) |
Set display aspect ratio. More... | |
void | STB_VTSetMhegAspectRatio (E_ASPECT_RATIO aspect_ratio) |
Set scene aspect ratio (MHEG-5 specific) More... | |
void | STB_VTSetMhegVideoAlignment (E_VIDEO_ASPECT_MODE mode) |
Set MHEG5 widescreen alignment. More... | |
void | STB_VTSetHbbtvEnable (BOOLEAN enable) |
Turn on or off HBBTV scaling calculation. More... | |
void | STB_VTSetHbbtvVideoWindow (S_RECTANGLE *rect) |
Set video scaling by HBBTV. More... | |
void | STB_VTSetVideoPrefChangedCallback (void(*callback)(void *), void *user_data) |
Set video preferences change callback. More... | |
void | STB_VTSetVideoRatioCallback (F_NOTIFY_VIDEO_AR ar) |
Set video preferences change callback. More... | |
E_FORMAT_CONVERSION | STB_VTGetDecoderFormatConversion (void) |
Return the current decoder format conversion. More... | |
void | STB_VTGetVideoResolution (U16BIT *width, U16BIT *height) |
Return the current video resolution. More... | |
E_ASPECT_RATIO | STB_VTGetVideoAspectRatio (void) |
Return the current video aspect ratio. More... | |
Video Transformations functions.
void STB_VTCSetCustomModeCallback | ( | F_VT_CUSTOM_MODE_CALLBACK | callback | ) |
Sets the callback used to control the format conversion when the aspect mode set by STB_VTSetVideoAlignmentPref is ASPECT_MODE_CUSTOM.
callback | Function used by the VTC module to determine what format conversion needs to be applied. |
E_FORMAT_CONVERSION STB_VTGetDecoderFormatConversion | ( | void | ) |
Return the current decoder format conversion.
E_ASPECT_RATIO STB_VTGetDisplayAspectRatio | ( | void | ) |
Get display aspect ratio.
aspect_ratio | - display aspect ratio |
E_ASPECT_RATIO STB_VTGetVideoAspectRatio | ( | void | ) |
Return the current video aspect ratio.
void STB_VTGetVideoResolution | ( | U16BIT * | width, |
U16BIT * | height | ||
) |
Return the current video resolution.
width | - video width |
height | - video height |
void STB_VTInitialise | ( | void | ) |
Initialise the VTC module.
None |
void STB_VTSetDisplayAspectRatio | ( | E_ASPECT_RATIO | aspect_ratio | ) |
Set display aspect ratio.
aspect_ratio | - display aspect ratio |
void STB_VTSetHbbtvEnable | ( | BOOLEAN | enable | ) |
Turn on or off HBBTV scaling calculation.
enable | TRUE - turn on MHEG5 calculations |
void STB_VTSetHbbtvVideoWindow | ( | S_RECTANGLE * | rect | ) |
Set video scaling by HBBTV.
rect | output window rectangle |
void STB_VTSetMhegAspectRatio | ( | E_ASPECT_RATIO | aspect_ratio | ) |
Set scene aspect ratio (MHEG-5 specific)
aspect_ratio | - scene aspect ratio |
void STB_VTSetMhegEnable | ( | BOOLEAN | enable | ) |
Turn on or off MHEG5 scaling calculation.
enable | TRUE - turn on MHEG5 calculations |
void STB_VTSetMhegScalingResolution | ( | U16BIT | width, |
U16BIT | height | ||
) |
Set Mheg scaling resolution for video.
Set MHEG5 scaling resolution for video.
width | - width resolution |
height | - height resolution |
void STB_VTSetMhegVideoAlignment | ( | E_VIDEO_ASPECT_MODE | mode | ) |
Set MHEG5 widescreen alignment.
mode | - widescreen alignment mode |
void STB_VTSetMhegVideoScaling | ( | S_RECTANGLE * | scaling | ) |
Set Mheg video scaling.
Set video scaling by MHEG5.
scaling | - scaling transformation (offset, size) |
void STB_VTSetVideoAlignmentPref | ( | E_VIDEO_ASPECT_MODE | alignment | ) |
Set video alignment preference.
pref | - video alignment |
void STB_VTSetVideoOutput | ( | S_RECTANGLE * | output | ) |
DVBCore application output window for entire video.
output | - output video rectangle. NULL means full-screen, unless MHEG says duifferently. |
void STB_VTSetVideoPrefChangedCallback | ( | void(*)(void *) | callback, |
void * | user_data | ||
) |
Set video preferences change callback.
The callback function is called when video transformation is changed as a result of a user preference change (only).
callback | - callback for notification |
user_data | - user data for the callback |
void STB_VTSetVideoRatioCallback | ( | F_NOTIFY_VIDEO_AR | ar | ) |
Set video preferences change callback.
The callback function is called when video transformation is changed as a result of a user preference change (only).
callback | - callback for notification |
user_data | - user data for the callback |