Lines Matching refs:SURFACE_NUM

75 #define SURFACE_NUM 16 /* 16 surfaces for source YUV */  macro
76 #define SURFACE_NUM 16 /* 16 surfaces for reference */ macro
82 static VASurfaceID src_surface[SURFACE_NUM];
83 static VABufferID coded_buf[SURFACE_NUM];
84 static VASurfaceID ref_surface[SURFACE_NUM];
132 #define current_slot (current_frame_display % SURFACE_NUM)
149 static int srcsurface_status[SURFACE_NUM];
1128 &src_surface[0], SURFACE_NUM, in setup_encode()
1136 &ref_surface[0], SURFACE_NUM, in setup_encode()
1141 tmp_surfaceid = calloc(2 * SURFACE_NUM, sizeof(VASurfaceID)); in setup_encode()
1142 memcpy(tmp_surfaceid, src_surface, SURFACE_NUM * sizeof(VASurfaceID)); in setup_encode()
1143 memcpy(tmp_surfaceid + SURFACE_NUM, ref_surface, SURFACE_NUM * sizeof(VASurfaceID)); in setup_encode()
1149 tmp_surfaceid, 2 * SURFACE_NUM, in setup_encode()
1156 for (i = 0; i < SURFACE_NUM; i++) { in setup_encode()
1419 for (i = numShortTerm; i < SURFACE_NUM; i++) { in render_picture()
1681 for (i = 0; i < SURFACE_NUM; i++) { in upload_source_YUV_once_for_all()
1815 va_status = vaMapBuffer(va_dpy,coded_buf[display_order % SURFACE_NUM],(void **)(&buf_list)); in save_codeddata()
1823 vaUnmapBuffer(va_dpy,coded_buf[display_order % SURFACE_NUM]); in save_codeddata()
1885 srcsurface_status[display_order % SURFACE_NUM] = SRC_SURFACE_IN_STORAGE; in storage_task_queue()
1899 va_status = vaSyncSurface(va_dpy, src_surface[display_order % SURFACE_NUM]); in storage_task()
1906 save_recyuv(ref_surface[display_order % SURFACE_NUM], display_order, encode_order); in storage_task()
1911 load_surface(src_surface[display_order % SURFACE_NUM], display_order + SURFACE_NUM); in storage_task()
1915 srcsurface_status[display_order % SURFACE_NUM] = SRC_SURFACE_IN_ENCODING; in storage_task()
1955 for (i = 0; i < SURFACE_NUM; i++) in encode_frames()
2037 vaDestroySurfaces(va_dpy,&src_surface[0],SURFACE_NUM); in release_encode()
2038 vaDestroySurfaces(va_dpy,&ref_surface[0],SURFACE_NUM); in release_encode()
2040 for (i = 0; i < SURFACE_NUM; i++) in release_encode()