32 printf(
"Testing av_downmix_info_update_side_data()\n");
40 printf(
"defaults: type=%d center=%.3f center_ltrt=%.3f surround=%.3f"
41 " surround_ltrt=%.3f lfe=%.3f\n",
57 printf(
"write: type=%d center=%.3f center_ltrt=%.3f surround=%.3f"
58 " surround_ltrt=%.3f lfe=%.3f\n",
70 printf(
"reuse: same_pointer=%s preserved_type=%d preserved_center=%.3f\n",
71 info == info2 ?
"yes" :
"no",
78 printf(
"\nTesting OOM path\n");
83 printf(
"OOM: %s\n", info ?
"FAIL" :
"OK");
__device__ int printf(const char *,...)
reference-counted frame API
AVDownmixInfo * av_downmix_info_update_side_data(AVFrame *frame)
Get a frame's AV_FRAME_DATA_DOWNMIX_INFO side data for editing.
@ AV_DOWNMIX_TYPE_LTRT
Lt/Rt 2-channel downmix, Dolby Surround compatible.
void av_frame_free(AVFrame **frame)
Free the frame and any dynamically allocated objects in it, e.g.
AVFrame * av_frame_alloc(void)
Allocate an AVFrame and set its fields to default values.
void av_max_alloc(size_t max)
Set the maximum size that may be allocated in one block.
Memory handling functions.
This structure describes optional metadata relevant to a downmix procedure.
double lfe_mix_level
Absolute scale factor representing the level at which the LFE data is mixed into L/R channels during ...
double surround_mix_level_ltrt
Absolute scale factor representing the nominal level of the surround channels during an Lt/Rt compati...
double surround_mix_level
Absolute scale factor representing the nominal level of the surround channels during a regular downmi...
double center_mix_level
Absolute scale factor representing the nominal level of the center channel during a regular downmix.
enum AVDownmixType preferred_downmix_type
Type of downmix preferred by the mastering engineer.
double center_mix_level_ltrt
Absolute scale factor representing the nominal level of the center channel during an Lt/Rt compatible...
This structure describes decoded (raw) audio or video data.