Lines Matching defs:frame

48 #define MAX_BLOCKS           8   ///< maximum number of blocks per frame
53 #define MAX_FRAMESIZE 160 ///< maximum number of samples per frame
57 #define SFRAME_CACHE_MAXSIZE 256 ///< maximum cache size for frame data that
71 ACB_TYPE_ASYMMETRIC = 1, ///< adaptive codebook with per-frame pitch, which
87 ///< with per-frame (low) gain values
98 * Description of frame types.
101 uint8_t n_blocks; ///< amount of blocks per frame (each block
141 int8_t vbm_tree[25]; ///< converts VLC codes to frame type
159 int lsps; ///< number of LSPs per frame [10 or 16]
167 ///< pitch value in the frame header
196 ///< set, each frame contains its own, fully
216 * Superframe and frame data - these can change from frame to frame,
218 * the next frame or superframe.
221 double prev_lsps[MAX_LSPS]; ///< LSPs of the last frame of the previous
223 int last_pitch_val; ///< pitch value of the previous frame
224 int last_acb_type; ///< frame type [0-2] of the previous frame
248 int frame_cntr; ///< current frame index [0 - 0xFFFE]; is
716 * the frame boundary) are saved and applied to subsequent frames by an
724 * @param lpcs LPCs used to synthesize this frame's speech data
743 /* The IRDFT output (127 samples for 7-bit filter) beyond the frame
744 * size is applied to the next frame. All input beyond this is zero,
1033 * the distribution of pulses between the two blocks in this frame.
1036 * @param pitch pitch for each block in this frame
1061 * the distribution of the pulses in each block contained in this frame. */
1086 * @param block_idx block index in frame [0, 1]
1177 * @param block_idx block index in frame [0, 1]
1235 * @param frame_cntr current frame number
1329 /* For the other frame types, this is where we apply the innovation
1435 * @param lsps LSPs for (the end of) this frame
1436 * @param prev_lsps LSPs for the last frame
1437 * @param frame_desc frame type descriptor
1471 * Synthesize output samples for a single frame.
1479 * @param prev_lsps array of previous frame's LSPs
1493 /* Parse frame type ("frame header"), see frame_descs */
1500 "Invalid frame type VLC code, skipping\n");
1506 /* Pitch calculation for ACB_TYPE_ASYMMETRIC ("pitch-per-frame") */
1508 /* Pitch is provided per frame, which is interpreted as the pitch of
1509 * the last sample of the last block of this frame. We can interpolate
1634 /* Cache values for next frame */
1700 * to give a total of 480 samples per frame. See #synth_frame() for frame
1703 * also be specified individually per-frame. See the s->has_residual_lsps
1711 static int synth_superframe(AVCodecContext *ctx, AVFrame *frame,
1754 /* Parse LSPs, if global for the superframe (can also be per-frame). */
1776 * free potential previous frame */
1777 av_frame_unref(frame);
1780 frame->nb_samples = MAX_SFRAMESIZE;
1781 if ((res = ff_get_buffer(ctx, frame, 0)) < 0)
1783 frame->nb_samples = n_samples;
1784 samples = (float *)frame->data[0];
1786 /* Parse frames, optionally preceded by per-frame (independent) LSPs. */
1911 static int wmavoice_decode_packet(AVCodecContext *ctx, AVFrame *frame,
1950 if ((res = synth_superframe(ctx, frame, got_frame_ptr)) == 0 &&
1973 if ((res = synth_superframe(ctx, frame, got_frame_ptr)) < 0) {