Lines Matching refs:fs
61 av_cold int ff_ffv1_init_slice_state(const FFV1Context *f, FFV1Context *fs)
65 fs->plane_count = f->plane_count;
66 fs->transparency = f->transparency;
68 PlaneContext *const p = &fs->plane[j];
70 if (fs->ac != AC_GOLOMB_RICE) {
89 if (fs->ac == AC_RANGE_CUSTOM_TAB) {
92 fs->c. one_state[ j] = f->state_transition[j];
93 fs->c.zero_state[256 - j] = 256 - fs->c.one_state[j];
104 FFV1Context *fs = f->slice_context[i];
105 if ((ret = ff_ffv1_init_slice_state(f, fs)) < 0)
124 FFV1Context *fs = av_mallocz(sizeof(*fs));
126 if (!fs)
129 f->slice_context[i++] = fs;
130 memcpy(fs, f, sizeof(*fs));
131 memset(fs->rc_stat2, 0, sizeof(fs->rc_stat2));
133 fs->slice_width = sxe - sxs;
134 fs->slice_height = sye - sys;
135 fs->slice_x = sxs;
136 fs->slice_y = sys;
138 fs->sample_buffer = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
139 sizeof(*fs->sample_buffer));
140 fs->sample_buffer32 = av_malloc_array((fs->width + 6), 3 * MAX_PLANES *
141 sizeof(*fs->sample_buffer32));
142 if (!fs->sample_buffer || !fs->sample_buffer32)
168 void ff_ffv1_clear_slice_state(const FFV1Context *f, FFV1Context *fs)
173 PlaneContext *p = &fs->plane[i];
178 if (fs->ac != AC_GOLOMB_RICE) {
210 FFV1Context *fs = s->slice_context[j];
212 PlaneContext *p = &fs->plane[i];
217 av_freep(&fs->sample_buffer);
218 av_freep(&fs->sample_buffer32);