Projects
Essentials
kvazaar
kvazaar.memset.patch
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File kvazaar.memset.patch of Package kvazaar (Revision 18)
Currently displaying revision
18
,
Show latest
Index: kvazaar-1.2.0/src/rdo.c =================================================================== --- kvazaar-1.2.0.orig/src/rdo.c +++ kvazaar-1.2.0/src/rdo.c @@ -593,6 +593,7 @@ void kvz_rdoq(encoder_state_t * const st uint32_t cg_num = width * height >> 4; +#if 0 // Explicitly tell the only possible numbers of elements to be zeroed. // Hope the compiler is able to utilize this information. switch (cg_num) { @@ -602,6 +603,9 @@ void kvz_rdoq(encoder_state_t * const st case 64: FILL_ARRAY(sig_coeffgroup_flag, 0, 64); break; default: assert(0 && "There should be 1, 4, 16 or 64 coefficient groups"); } +#else + memset(&sig_coeffgroup_flag, 0, sizeof(sig_coeffgroup_flag)); +#endif cabac_ctx_t *base_coeff_group_ctx = &(cabac->ctx.cu_sig_coeff_group_model[type]); cabac_ctx_t *baseCtx = (type == 0) ? &(cabac->ctx.cu_sig_model_luma[0]) : &(cabac->ctx.cu_sig_model_chroma[0]);
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.