Home | History | Annotate | Download | only in src

Lines Matching defs:self

38 static void mix_videoformatenc_preview_init(MixVideoFormatEnc_Preview * self) {
39 MixVideoFormatEnc *parent = MIX_VIDEOFORMATENC(self);
44 self->encoded_frames = 0;
45 self->pic_skipped = FALSE;
46 self->is_intra = TRUE;
47 self->cur_fame = NULL;
48 self->ref_fame = NULL;
49 self->rec_fame = NULL;
51 self->ci_shared_surfaces = NULL;
52 self->surfaces= NULL;
53 self->surface_num = 0;
188 MixVideoFormatEnc_Preview *self = MIX_VIDEOFORMATENC_PREVIEW(mix);
396 self->surface_num = numSurfaces + parent->ci_frame_num;
427 self->ci_shared_surfaces =
430 if (self->ci_shared_surfaces == NULL)
449 &self->ci_shared_surfaces[index]);
464 self->surfaces = g_malloc(sizeof(VASurfaceID) * self->surface_num);
466 if (self->surfaces == NULL)
479 self->surfaces[index] = self->ci_shared_surfaces[index];
483 self->surfaces[index + parent->ci_frame_num] = surfaces[index];
526 self->surfaces, parent->ci_frame_num + numSurfaces);
547 0, self->surfaces, parent->ci_frame_num + numSurfaces,
565 self->coded_buf_size = 4;
570 self->coded_buf_size, //
572 &self->coded_buf);
661 MixVideoFormatEnc_Preview *self = MIX_VIDEOFORMATENC_PREVIEW (mix);
672 ret = mix_videofmtenc_preview_process_encode (self,
717 MixVideoFormatEnc_Preview *self = MIX_VIDEOFORMATENC_PREVIEW(mix);
723 if (self->cur_fame != NULL)
725 mix_videoframe_unref (self->cur_fame);
726 self->cur_fame = NULL;
731 if (self->rec_fame != NULL)
733 mix_videoframe_unref (self->rec_fame);
734 self->rec_fame = NULL;
738 if (self->ref_fame != NULL)
740 mix_videoframe_unref (self->ref_fame);
741 self->ref_fame = NULL;
745 self->encoded_frames = 0;
746 self->pic_skipped = FALSE;
747 self->is_intra = TRUE;
790 MixVideoFormatEnc_Preview *self = MIX_VIDEOFORMATENC_PREVIEW(mix);
798 if (self->cur_fame != NULL)
800 mix_videoframe_unref (self->cur_fame);
801 self->cur_fame = NULL;
806 if (self->rec_fame != NULL)
808 mix_videoframe_unref (self->rec_fame);
809 self->rec_fame = NULL;
813 if (self->ref_fame != NULL)
815 mix_videoframe_unref (self->ref_fame);
816 self->ref_fame = NULL;
821 if (self->ci_shared_surfaces)
823 g_free (self->ci_shared_surfaces);
824 self->ci_shared_surfaces = NULL;
827 if (self->surfaces)
829 g_free (self->surfaces);
830 self->surfaces = NULL;